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

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

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


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

 Copyright Google LLC All Rights Reserved.

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

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

 (The MIT License)

 Copyright (C) 2014 by Vitaly Puzrin

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

 Copyright (c) 2014, John MacFarlane

 All rights reserved.

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

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

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

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

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


 The MIT License (MIT)

 Copyright (c) 2015-present Dan Abramov

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

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

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

 The MIT License (MIT)

 Copyright (c) 2016 Denis Rul

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

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

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

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

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

 Copyright Google Inc. All Rights Reserved.

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

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

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

Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var xfc,Lc3,Swh,Qnh,JGs,Kch,S0,Z3G,M0p,JG,yb,dff,PsO,bs,Yf,jn0,vf3,V00,Fh,uhh,gf4,e0,mfc,T00,GNh,lpf,B0b,Wc0,AGh,N0c,i34,ofc,L2,X44,OR,cGO,Zh,nfs,yQ,PC,xhN,L_f,sR,TB,SR3,Z2w,yrh,BC,MWw,dh4,Ar,PGs,ji0,vHN,$H,Ihc,rA,hdp,gH3,YRw,Eu,F_0,si0,yW,pCN,Kl,mhw,b2G,wCG,W_n,qR0,Hs,rr4,$hh,NAf,i2h,fh4,ahf,zd0,nHs,tWw,Dqn,QIc,K30,EXh,dq3,MGc,Bs,Pqh,Hln,qq,gX0,Yuh,ps0,F3N,mqf,A5,oH4,$X,r$,Nq,sIO,fl,RlG,T$N,elb,cs,GgO,Cqh,lYh,UqG,B$s,wsG,W34,qub,A5s,aI,r5s,ilG,oXh,zl0,Qv,c54,xe0,KU,S5f,KRn,tG3,OUh,ywc,If0,VN4,des,
HUG,gzO,kiw,me0,bU0,T8h,eU0,CQn,wif,WRs,q5p,$e0,iU3,cw4,Fs,tNb,LWf,DTf,lQ,U5,Bi,fU,aN,Xs,IEO,dTs,PPp,VfG,HZh,u53,yD,g2b,Et,MT,dP,PH,pH0,mTn,bZw,Yt0,FW4,TP0,e0n,R0f,G6f,lEN,hB,VD,UTw,wHn,BPc,qtN,WW0,ABN,$TN,rB0,F5,st,T6,ef,G6,iZs,CZ,o2b,n2w,Ut,tff,xpw,Loc,BH,DpN,SqO,QDc,WH,O8O,AB,Ixf,ERc,rP,dpb,Mif,P8w,jDf,vRw,ViN,oT,h9f,H80,aT,uZN,gRN,z6,X5,cH,tB,kjO,mpb,pns,xR,Yqb,Fos,sDG,Dx,Qr,Jc,Oq,Zx,yr,Tkw,e93,Gjp,C8N,Up4,wnf,Bkw,Woh,qq4,Ac4,dk,$ps,rcf,Nkc,i80,fxh,oR3,axb,z9h,Vr,Xnn,Hn,gk,cc4,x4b,Lgw,D4G,QmO,
JxN,Kgs,Ib3,Ea3,M1N,d4h,Pxc,jmh,vaf,uR0,mo,gaf,kes,pfn,m44,bwn,Y7f,sms,Ax0,$4f,rxf,fbw,oa3,Gj,abc,cxO,xN3,L5c,DNp,Ss4,Qub,JIN,K50,Oqs,yI0,IKf,nab,EVN,M$4,dNh,Pm0,juc,vVf,V$b,hzb,Hqh,pBs,gVh,YsO,mN0,bq0,ezw,Rzw,GJf,F5G,lK0,THp,wBs,XZ,BHh,cn,tc,W5p,AIO,$Nb,iq3,Lrp,oVf,fKf,zzG,cIb,aK0,Omf,Q1w,Zmh,yuG,Iaf,E6G,MFs,Pff,d93,j1G,v6c,VFc,h1s,u03,kSb,pdw,m9s,YXO,bmh,Wrh,S1,qXc,$9b,ruf,NOf,im0,faG,aas,z13,Xdf,Im,E7,cus,S2N,Pf,j1,OHw,y8w,HHN,gb,kUG,pY4,Fvs,bHG,Y2c,Ya,sZs,TEf,RhO,GUp,Cjf,lNs,UwN,wY4,BEN,q2n,A80,
r83,$wb,fNf,wb,q4,aN4,zhG,XYh,c8c,nQw,tTw,LNn,SDc,Dgn,DK,Qo,e30,ZK,wWb,Btf,yo,qDc,WN0,z33,XWb,cE0,tVO,Sh0,J7f,KSp,OVs,ZVG,I8b,M73,dyf,dH,jR4,hFb,HVs,ud4,gZ0,pIf,V7c,PY0,kGh,j$,Yhf,eF0,sR0,GGs,l83,UyN,wIp,BzG,kV,WSn,A7s,qhc,$yc,Nz0,bm,XI4,D6s,J60,QHh,Zh3,TJ,E33,GJ,lm,Cq,jHG,I5f,v3G,BB,uEw,AI,$V,pvf,YUb,sHh,TQO,eop,rH,Roc,NN,GL3,l50,U6n,wvh,BQw,qUs,fq,A6b,$6h,zJ,x6,ihn,f5s,o3N,a50,c64,n3f,xuf,Lzf,ZL0,y30,J3G,E7n,MoO,dus,EX,dO,Pd,Voc,h5b,vd,HLw,uYs,g7s,k0b,mun,bLc,YKb,Fz0,pof,scb,Hd,e5n,Uuh,uf,lRn,wo0,
Trw,Brh,pm,qKw,A3b,$uh,r34,iLs,Nrh,fRf,z5f,o7h,c3h,S8f,J_f,O6s,Igp,y_0,Z6b,ETb,dFb,j8f,PlN,VqO,Cm,H63,uIh,gTn,k8f,b64,Fmc,Y8f,s80,TgG,Bd,eDN,RDb,Clp,UFh,Wmc,A_0,q8n,KH,$Ff,lgN,zD4,c_4,nTw,tq3,Mw,xUb,DUG,J2w,Z70,O7p,Mmn,dU0,P6c,jtf,Vm3,kDf,h$c,utf,gN0,paO,mUw,Y4n,b7f,sts,FHw,bj,TDp,R$n,GDN,wac,CH,lj,BDb,WHc,U2,r2s,qw,A8,$Q,oNf,rE,Xac,fH,c20,nNf,tmO,xBh,zU,Ltw,DBf,SOf,JdN,OBO,Ivh,MR3,JE,dBh,P1s,jq4,v84,VRb,hN3,HBw,uA3,ZA,pq3,mBN,bBs,YOs,Fth,sq0,TYG,eN3,RNN,GFn,C14,lvw,UBN,vW,av4,zNN,V5,hE,HW,Xqf,cds,
n8f,tRN,x$4,LX0,D$0,O$f,Z$G,yqp,I4c,E9N,pK,b7,Yg,Fg,eV,RE,G3,d$c,l7,jWc,UD,v9f,Vrc,wt,hK0,H$h,u10,TcG,RKw,wPp,Aqp,qYc,eKO,$$f,i$c,JH0,cqs,IHG,trn,yH0,Ei4,rt,dLG,i7,j6s,vi0,hZ0,HIc,ufO,k$N,aE,mLf,bI0,Ykc,FAw,s6f,TBs,eZ3,ppc,CiN,lHh,ULf,Xg,$Ln,rHG,AHc,iI3,fHN,aH0,zZb,ois,Djf,Qlw,KUn,Zu3,KV,jl3,dj0,Pc0,uTG,kQw,pDb,mj3,bub,YIp,FUb,vI,wDf,WU4,ltN,Cch,BF3,TF0,ADn,nOO,NF0,iuN,ft4,ZXh,Is0,OXf,vef,KF0,slf,jBG,rD4,cDw,yLp,qIw,Ru3,euf,GQN,Ujw,JLw,CV,e6f,GRn,Cks,ls3,Ubc,iXc,cLf,nec,Ny,x10,S3p,OFn,KBO,yi3,Inn,
M8w,PSf,d1f,jS4,QB,vcc,V8c,HF4,hMf,J6,bFb,m10,p2b,Tq4,Y3n,eM0,sSw,RMN,Gkf,w2f,ln3,U1f,WBb,$1n,riN,fnb,oc0,anf,X20,IH,ncb,LIn,t8h,Dk4,KIp,OGs,ISf,MKb,jc,vv,vvG,VK0,VB,h6,hrf,Hv,uv,HG3,gQ,uo4,k3,gvw,kn0,mu,pFG,mkh,bGn,Yyf,FIp,TVh,sPf,RrG,lSG,Cy4,Uk0,wF4,erp,BV0,AK0,qyb,Gnw,$kN,rK0,TL,NVp,fSp,iGb,ov3,aSO,XF3,zrh,cKO,RH,tKO,xaG,nvf,Da0,S9N,QM0,Zis,EIw,vIN,uKG,GL,pN3,ma0,Ch,bi0,Bv,Wv,REG,UU,N6,GEf,CV4,Uah,wNf,Wi4,A9c,$a0,r9c,Nyp,oIs,nI0,XNG,fc3,t_h,xCs,aH,c9O,L8f,cv,DCh,Sc3,Qas,Jop,yo3,K8w,Zt4,dCn,PWp,
Ht0,hsw,kCs,saG,TT0,Rss,CWG,lVw,wMc,BT3,W80,Ao3,$CG,ro0,fVO,XMG,co4,olw,t9h,Le0,x_n,nlp,D_w,Qwf,JRp,Ken,OW3,ZWc,yz,Ic,dr,jo,ExG,MSO,PO3,VSh,vo,Vz,hSp,h3,kmb,pc0,m_G,uz,TGh,COb,U_s,wcn,BGO,Wep,q10,rRG,k7,NGw,oxh,pL,a90,cRN,nxf,tSf,XcO,Jms,Zrc,KsN,ymf,Mun,PJO,v0p,uNN,Hrb,mon,sK,brO,Yx0,T0,Fsh,eo,s2w,Tfn,eQb,GpN,RQ0,CJG,l70,Uof,wZn,NfG,f7s,a73,o0G,Am3,Wsc,XZs,n0s,SHf,Qsc,Odp,dl4,js4,lz,vob,h7f,Hds,goh,bdb,ssn,R70,GTc,CBc,lB0,qHp,Uln,NIb,id3,fB0,aBc,Bo,z70,cSf,no0,tpN,xcN,LD4,Dcp,SLb,Jsb,KDp,$7,O0G,Z0w,
Iws,Nu,yss,MH4,vtn,oc,VHs,hj3,H0G,kP0,pOf,u4N,b0s,T_n,ejw,Rj0,t3,GPO,wO4,B_n,Sq,As0,WDn,qLw,N_h,i0N,fwb,XON,tHh,ntf,cs0,xYN,DY0,SFp,Z1b,Q_p,y4f,EE4,IzN,Vd3,uOf,kX4,mYw,s_f,UYh,qF,Bhh,$Yb,Nhp,B$,a8,Xub,xVG,tdb,DVf,SWh,JaG,Qfp,KG3,OSw,z8,Bcp,c40,LGp,nEw,f6,IFw,EKn,Mvc,PZh,jfw,vKN,Vv3,hBc,K7,HSn,un0,gK3,kd0,pgn,It,mVc,FGs,T14,eB3,B1f,qW0,Aaf,$VO,N1N,iSG,gD,oKf,aFN,zB3,Xgh,ca3,nKf,xJN,DJw,QQG,JMf,EhO,yMc,M3s,jQN,vhN,s4,V3b,hen,Hvp,kus,mJN,p5w,Y6f,sQO,GD,een,Reh,TeN,Gu4,Ce0,UJf,Bec,w5c,W1G,lq3,q6s,AMs,
$JG,rMp,Nef,ivp,fqw,ohN,aqf,cMp,X5h,nh0,xI4,t3n,C7,L$f,QOs,Zp3,DIp,ErG,MPw,dIs,Poh,VP0,mIN,bpO,F$s,sOO,ot,Gy3,wyh,qjh,at,N6w,AYs,$IO,rY0,ip0,Xy0,n7,cYf,nrn,tP0,Llf,DPp,SBf,QU4,KlG,OJf,vPb,MZp,PrG,hY4,VZG,HJ4,uW0,kZb,mPf,YBf,sUc,Ts3,Zfw,hTc,gsc,pGp,mKO,bfs,YVc,Fw0,TU0,eTh,CHh,ldN,UKs,wGp,BU0,Wwp,qV4,AT4,NU0,adp,EO,MB,dY,zTb,XG0,vq,nsN,OO3,dXO,Ej4,TKw,e8w,R8n,xXn,KPw,SGp,CMs,lQh,UX4,wV4,yQp,BKn,qG0,$Xp,iOp,fQh,FA,eR,Rq,xS0,tCh,Qbw,Jyf,PAO,v5f,hgc,HEb,kaG,mSf,pzh,FJw,Tdb,wz0,lkf,Rg0,USh,Ga0,Bd3,$Sn,
cq,cy4,ak0,tEs,xr3,Dr4,S0w,td,Qdc,ODs,ZDO,yAp,Eqh,I64,D4,Vgf,Z4,HDh,ubG,IW,gq4,k2w,pEn,mrb,bDn,Y00,FO3,sdG,TNn,ep4,Rp0,G2p,Cuw,l6n,Urw,EY,wEO,BNN,WOO,q0N,AAc,$rO,rAN,NNw,iDc,f6h,oqp,a6w,dc,XEN,nqO,xM0,S_4,Kx0,Oa3,Za0,IOw,MIs,dM3,P03,k9,Has,VIb,uJ0,gAf,kWp,bac,Y_0,Fxp,TWf,UY,Rfn,C$,C0s,lOO,wc,UMw,wS0,BWb,Wxh,WP,rec,ia0,XSh,zfG,nAs,tI3,aW,x0n,Lqn,SMc,Jbs,Kq0,Zzf,ybw,Q0c,I1G,j0s,HzG,uGN,zV,gpw,kfw,FqO,pTh,bz3,YMs,Cg3,TJN,l1f,wTs,Wqs,qMO,Abc,$0N,rbf,NJG,f1c,op0,a10,zin,XTf,npf,xAG,Sd0,O53,IIN,MM0,jgh,
DH,vMc,VMs,h4b,H5s,upf,k_G,pkh,mAc,b53,Ydw,F4N,sgw,TXO,e4w,R4f,G_0,lIN,C$w,BX3,qdn,JH,Afc,NXh,rfs,oMh,aI4,z4w,cfn,xZb,Sgf,DZn,tMh,Kn3,JNs,E$O,O4n,I6,yN0,hqh,PCf,jvO,v$h,Vbh,H43,g$c,u73,Ek,ML,svf,pUb,Fn4,Ygb,mZN,b43,Rqf,CCO,UZn,lM0,wUO,ANn,qgw,rNs,i40,fMp,NSO,o$0,zqw,aM0,cNN,xGb,hH,Lds,DGc,J14,Iyw,vDp,ui,hL4,kb3,YN4,bTw,p6O,mG4,bi,eLh,Fd4,sjc,RL3,Ctb,GbG,w63,BCp,qN4,A1p,$Gp,r10,NC3,fy0,oDN,Wp,zL4,X6O,xsh,LLf,NL,Dsb,QoO,dsb,z$,ZRs,MJf,yhG,I_w,VJf,vmG,gmf,h2c,kI3,pQb,cp,bRw,YEb,FL0,ms4,Lu,soN,nI,GIn,
qEs,Ahb,$sn,rhO,Nxs,iR4,z2O,omO,a_b,f_s,chG,xHO,SAp,QLG,KTf,yF4,Ogf,ZgO,I24,Mys,dHb,Pb0,jLb,vyO,Vy0,Hg4,yO,gyp,mHp,p1f,YAp,bgf,FT3,sLN,eWw,RW0,$H3,qA3,ig3,f2b,nyw,tyf,xWf,Lbw,DWN,Src,Kbw,Oy4,Zyc,I00,E1b,MYO,pu,v1c,jXn,P23,dWO,hAf,g1p,Hy0,p_0,mWb,by4,Yr0,FbN,sXw,TpN,eA4,UWh,RAc,GON,C2p,w_O,Bp3,WbO,l0h,FT,$Wp,Npb,rlf,TQ,f0O,o1b,a0w,iyf,zAf,X_c,clb,n14,tYG,LK0,Dis,Soc,QKs,O9b,KK3,M4c,JOw,en,di0,Z9c,EYp,vYb,V4f,hww,H9n,uQh,gY4,kKs,p8w,mip,b9f,Yon,FKn,TZb,ew3,Rwf,CEO,Uiw,BZh,qof,i9s,rOh,NZG,$is,AOO,fZN,
oYO,fu,X8f,nYn,t4O,xOG,Lj0,DOf,SmO,ZCw,Jkn,QVh,Kjf,HCf,Vew,OCO,vBf,Ymn,Fjb,sV4,Twf,eI3,CXh,UOG,Bwn,qmb,AkO,$O4,fPO,iC0,oB0,zIf,Mb,nBn,te4,xv0,Las,PX,j2,Q50,Jtb,ON0,Iun,vCc,uln,gCG,k70,pe0,mvb,bN0,FaO,ToG,s50,etf,G70,C30,lup,Uvf,we0,Bo3,g4,Waw,fuf,oCf,rt0,$vp,iNs,Non,nCw,tan,x50,LMw,D50,SzO,KMw,JXc,Q3p,PTs,j30,vkw,HA3,uxn,VAc,hmc,s33,emc,Gtf,lW3,wbc,WM4,rXn,iAw,fWO,zm0,aW0,okf,Xbh,cXn,tAn,xQw,Lpb,DQO,SC0,Q7f,KpG,OjG,Zjh,ygw,IT3,EUc,j7b,vUp,hPb,ukh,HjG,gU0,lk,kxh,pj4,mQc,bj0,Tup,s70,ePf,RPG,Gx3,CpO,
wjO,Wps,qC0,Agn,$Qs,rg0,Nun,ijn,fT3,oUb,aTf,Xjs,zP0,cgh,nUw,txb,xEw,LVh,DEs,Sep,QA0,r4,KVb,Obp,yV3,Iew,ESb,MLN,dEf,PFh,vS3,VLO,Hbc,gSw,pmh,FV0,bb4,mEw,YeG,sAp,Tnf,eC0,CF4,lec,UEw,wm0,WV0,qef,AVN,rVw,$E3,NnG,ib0,feN,zCw,Xm3,cV0,nS0,tLs,x3N,S$h,Q9N,Dn,IUw,EwN,d3b,vwO,j9n,VBb,hcN,S8,Ji,uvO,gw0,Zn,yx,bkG,k1G,pR3,s9n,Tjn,ecb,RcG,U33,Bj0,WQp,q$f,APf,$3s,Nj3,ik4,fUN,owb,aUO,zcO,XRc,M1,cPN,nw0,P2,tB0,x8b,Lh3,D8f,SlO,Qef,Vx,hi,JZ0,Khf,H2,Oon,Zoh,yZh,Ilb,Mwh,d8G,jes,uM4,Hoc,haw,gun,klN,sep,boh,Ylw,m83,Fhf,
gq,Rac,Gl3,CI4,ll0,U84,Bv3,qlh,rZh,ouf,ioO,kc,Nvp,nup,x73,pF,LYf,D7f,Sih,JJp,KYs,OsG,Zs0,Imf,Ebf,Msn,PUG,jhO,Vsn,hxw,plf,ksf,bs3,Yib,FYn,CUf,lm0,U7c,wlO,qis,rJN,e8,Gk,RS,CF,N7c,is4,fms,obs,am0,Xlw,cJ4,nbs,tsO,LZN,Dtn,SJ4,lS,Qy0,J0n,ZYn,y0h,U3,wq,Mtp,IGw,dtp,vFO,P90,Vtf,HYs,Ai,uHO,gFp,mts,YJN,$c,sy0,TLw,eJh,RJn,Gw0,C9s,lGw,UtO,qJf,A0b,NL3,$tO,r0f,iY4,zJN,fGc,aGp,Xhc,c0N,nFc,L2O,Dmn,SQO,Jp0,K20,MzG,Enf,hRb,gn4,c2,kA0,Auc,p7f,mm0,YQb,Tif,eR4,Bi0,W2w,qQb,Apb,$mp,rp3,i_N,fLO,aLc,X7c,on0,zRf,nnp,cp3,xxb,
Sfb,LE0,Q$f,Jnc,KEh,OxN,Zxb,yn0,EGn,IXp,j$s,hbb,vG0,Hx0,u8N,gG0,KG,kYb,p0N,ZS,bxc,mxb,YfG,FE4,T20,eb0,GYp,CLf,lX0,Uxb,WEf,Anb,N2c,rnw,ix0,fXf,zb0,JUO,thO,Oef,Zew,IrN,EW4,jG4,vWp,V60,hVn,He0,uLf,kqO,pLb,mnh,YZp,be0,T5b,eV0,RVc,GqO,Cw0,lrf,Unh,B5c,AUf,$nN,rUs,N5n,ief,frn,zVf,ars,t6n,xdh,Lfs,Ddc,ST0,JWf,Qp0,OMb,MkO,v_p,jpG,Vkw,hn0,HM3,g_h,Tn,pwn,CG,bM0,Ffn,sp0,Udn,Blp,AWh,rWc,Nlh,fjh,o_h,ajO,Xw0,n_b,tkp,LyG,QxO,Snb,D24,qk,Ky0,Jv4,OQn,ZQ3,yvc,IDh,EdG,MXc,d2h,jxc,vdN,VXf,hHc,HQw,uFf,gd3,k54,ptf,bQf,YnO,
lDs,U2f,wtN,Wyb,qnG,Avb,NRp,Xo,Xt0,cvh,ndO,tX0,xD4,cF,nG,S$,tK,Li,Zc0,y$b,Mj4,Pd4,dDN,S_,jz4,vLc,Vj3;xfc=function(){var x,L;return typeof CSS!=="undefined"&&((L=(x=CSS).supports)==null?void 0:L.call(x,"selector(:has(*))"))};
Lc3=function(x){return x.visibility!=="hidden"&&x.display!=="none"};
Swh=function(x){if(xfc()||x.tagName!=="DETAILS"?!x.matches(Dfc):x.querySelector("summary")!==null)return-1;x=x.getAttribute("tabindex")||"0";return Number(x)};
Qnh=function(x){return x.some(function(L){return Swh(L)>0})};
JGs=function(x){if(x.textContent||x.ariaLabel)return!0;if(x instanceof HTMLInputElement){if(!x.labels)return!1;x=_.O(x.labels);for(var L=x.next();!L.done;L=x.next())if(L.value.textContent)return!0}return!1};
Kch=function(x){return x.sort(function(L,D){return Swh(D)-Swh(L)})};
_.O3O=function(x){x=Array.from(x.querySelectorAll(Dfc)).filter(function(L){return(Lc3(L.style)?Lc3(window.getComputedStyle(L)):!1)&&JGs(L)});
return Qnh(x)?Kch(x):x};
_.Dp=function(x,L){if(Error.captureStackTrace)Error.captureStackTrace(this,_.Dp);else{var D=Error().stack;D&&(this.stack=D)}x&&(this.message=String(x));L!==void 0&&(this.cause=L)};
S0=function(){throw Error("E");};
Z3G=function(x,L){L=String.fromCharCode.apply(null,L);return x==null?L:x+L};
M0p=function(x){var L=!1;L=L===void 0?!1:L;if(yGn){if(L&&(Ipn?!x.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(x)))throw Error("F");x=(Efw||(Efw=new TextEncoder)).encode(x)}else{for(var D=0,S=new Uint8Array(3*x.length),Q=0;Q<x.length;Q++){var J=x.charCodeAt(Q);if(J<128)S[D++]=J;else{if(J<2048)S[D++]=J>>6|192;else{if(J>=55296&&J<=57343){if(J<=56319&&Q<x.length){var Z=x.charCodeAt(++Q);if(Z>=56320&&Z<=57343){J=(J-55296)*1024+Z-56320+65536;S[D++]=J>>18|
240;S[D++]=J>>12&63|128;S[D++]=J>>6&63|128;S[D++]=J&63|128;continue}else Q--}if(L)throw Error("F");J=65533}S[D++]=J>>12|224;S[D++]=J>>6&63|128}S[D++]=J&63|128}}x=D===S.length?S:S.subarray(0,D)}return x};
JG=function(x){_.Qb.setTimeout(function(){throw x;},0)};
_.Ow=function(x,L){return x.lastIndexOf(L,0)==0};
yb=function(x,L){var D=x.length-L.length;return D>=0&&x.indexOf(L,D)==D};
_.Ew=function(x){return/^[\s\xa0]*$/.test(x)};
_.Mf=function(x,L){return x.indexOf(L)!=-1};
_.d0=function(x,L){return _.Mf(x.toLowerCase(),L.toLowerCase())};
_.v4=function(x,L){var D=0;x=j0(String(x)).split(".");L=j0(String(L)).split(".");for(var S=Math.max(x.length,L.length),Q=0;D==0&&Q<S;Q++){var J=x[Q]||"",Z=L[Q]||"";do{J=/(\d*)(\D*)(.*)/.exec(J)||["","","",""];Z=/(\d*)(\D*)(.*)/.exec(Z)||["","","",""];if(J[0].length==0&&Z[0].length==0)break;D=dff(J[1].length==0?0:parseInt(J[1],10),Z[1].length==0?0:parseInt(Z[1],10))||dff(J[2].length==0,Z[2].length==0)||dff(J[2],Z[2]);J=J[3];Z=Z[3]}while(D==0)}return D};
dff=function(x,L){return x<L?-1:x>L?1:0};
_.hG=function(){var x=_.Qb.navigator;return x&&(x=x.userAgent)?x:""};
PsO=function(x){if(!us||!g0)return!1;for(var L=0;L<g0.brands.length;L++){var D=g0.brands[L].brand;if(D&&_.Mf(D,x))return!0}return!1};
bs=function(x){return _.Mf(_.hG(),x)};
Yf=function(){return us?!!g0&&g0.brands.length>0:!1};
jn0=function(){return Yf()?!1:bs("Opera")};
vf3=function(){return Yf()?!1:bs("Trident")||bs("MSIE")};
V00=function(){return Yf()?PsO("Microsoft Edge"):bs("Edg/")};
Fh=function(){return bs("Firefox")||bs("FxiOS")};
_.hO3=function(){return bs("Safari")&&!(_.TN()||(Yf()?0:bs("Coast"))||jn0()||(Yf()?0:bs("Edge"))||V00()||(Yf()?PsO("Opera"):bs("OPR"))||Fh()||bs("Silk")||bs("Android"))};
_.TN=function(){return Yf()?PsO("Chromium"):(bs("Chrome")||bs("CriOS"))&&!(Yf()?0:bs("Edge"))||bs("Silk")};
_.H3n=function(){return bs("Android")&&!(_.TN()||Fh()||jn0()||bs("Silk"))};
uhh=function(x){var L={};x.forEach(function(D){L[D[0]]=D[1]});
return function(D){return L[D.find(function(S){return S in L})]||""}};
gf4=function(x){var L=_.hG();if(x==="Internet Explorer"){if(vf3())if((x=/rv: *([\d\.]*)/.exec(L))&&x[1])L=x[1];else{x="";var D=/MSIE +([\d\.]+)/.exec(L);if(D&&D[1])if(L=/Trident\/(\d.\d)/.exec(L),D[1]=="7.0")if(L&&L[1])switch(L[1]){case "4.0":x="8.0";break;case "5.0":x="9.0";break;case "6.0":x="10.0";break;case "7.0":x="11.0"}else x="7.0";else x=D[1];L=x}else L="";return L}var S=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");D=[];for(var Q;Q=S.exec(L);)D.push([Q[1],Q[2],Q[3]||void 0]);
L=uhh(D);switch(x){case "Opera":if(jn0())return L(["Version","Opera"]);if(Yf()?PsO("Opera"):bs("OPR"))return L(["OPR"]);break;case "Microsoft Edge":if(Yf()?0:bs("Edge"))return L(["Edge"]);if(V00())return L(["Edg"]);break;case "Chromium":if(_.TN())return L(["Chrome","CriOS","HeadlessChrome"])}return x==="Firefox"&&Fh()||x==="Safari"&&_.hO3()||x==="Android Browser"&&_.H3n()||x==="Silk"&&bs("Silk")?(L=D[2])&&L[1]||"":""};
_.kNb=function(x){if(Yf()&&x!=="Silk"){var L=g0.brands.find(function(D){return D.brand===x});
if(!L||!L.version)return NaN;L=L.version.split(".")}else{L=gf4(x);if(L==="")return NaN;L=L.split(".")}return L.length===0?NaN:Number(L[0])};
e0=function(){return us?!!g0&&!!g0.platform:!1};
_.p4G=function(){return e0()?g0.platform==="Android":bs("Android")};
mfc=function(){return bs("iPhone")&&!bs("iPod")&&!bs("iPad")};
_.GN=function(){return mfc()||bs("iPad")||bs("iPod")};
_.b3O=function(){return e0()?g0.platform==="macOS":bs("Macintosh")};
_.Ywf=function(){return e0()?g0.platform==="Windows":bs("Windows")};
_.FcN=function(){return e0()?g0.platform==="Chrome OS":bs("CrOS")};
_.ls=function(x){return x[x.length-1]};
_.Uw=function(x,L,D){L=_.snn(x,L,D);return L<0?null:typeof x==="string"?x.charAt(L):x[L]};
_.snn=function(x,L,D){for(var S=x.length,Q=typeof x==="string"?x.split(""):x,J=0;J<S;J++)if(J in Q&&L.call(D,Q[J],J,x))return J;return-1};
T00=function(x){for(var L=_.B4,D=typeof x==="string"?x.split(""):x,S=x.length-1;S>=0;S--)if(S in D&&L.call(void 0,D[S],S,x))return S;return-1};
_.AG=function(x,L){return _.qf(x,L)>=0};
_.eO0=function(x,L){_.AG(x,L)||x.push(L)};
_.$f=function(x,L){L=_.qf(x,L);var D;(D=L>=0)&&_.ROp(x,L);return D};
_.ROp=function(x,L){Array.prototype.splice.call(x,L,1)};
_.r0=function(x){var L=x.length;if(L>0){for(var D=Array(L),S=0;S<L;S++)D[S]=x[S];return D}return[]};
_.is=function(x,L){for(var D=1;D<arguments.length;D++){var S=arguments[D];if(_.Nf(S)){var Q=x.length||0,J=S.length||0;x.length=Q+J;for(var Z=0;Z<J;Z++)x[Q+Z]=S[Z]}else x.push(S)}};
_.Csn=function(x,L,D,S){Array.prototype.splice.apply(x,GNh(arguments,1))};
GNh=function(x,L,D){return arguments.length<=2?Array.prototype.slice.call(x,L):Array.prototype.slice.call(x,L,D)};
lpf=function(x,L){L=L||x;for(var D=0,S=0,Q={};S<x.length;){var J=x[S++],Z=_.on(J)?"o"+_.zN(J):(typeof J).charAt(0)+J;Object.prototype.hasOwnProperty.call(Q,Z)||(Q[Z]=!0,L[D++]=J)}L.length=D};
_.w40=function(x,L,D){D=D||_.Uf4;for(var S=0,Q=x.length,J;S<Q;){var Z=S+(Q-S>>>1);var y=D(L,x[Z]);y>0?S=Z+1:(Q=Z,J=!y)}return J?S:-S-1};
_.Xh=function(x,L,D){if(!_.Nf(x)||!_.Nf(L)||x.length!=L.length)return!1;var S=x.length;D=D||B0b;for(var Q=0;Q<S;Q++)if(!D(x[Q],L[Q]))return!1;return!0};
_.Uf4=function(x,L){return x>L?1:x<L?-1:0};
B0b=function(x,L){return x===L};
Wc0=function(x,L,D){L=Array.prototype.splice.call(x,L,1);Array.prototype.splice.call(x,D,0,L[0])};
AGh=function(x){return qw3[x]||""};
N0c=function(x){if(!$fG)return _.tG(x);x=rGf.test(x)?x.replace(rGf,AGh):x;x=atob(x);for(var L=new Uint8Array(x.length),D=0;D<x.length;D++)L[D]=x.charCodeAt(D);return L};
i34=function(x,L){x.__closure__error__context__984382||(x.__closure__error__context__984382={});x.__closure__error__context__984382.severity=L};
_.xH=function(x){x=Error(x);i34(x,"warning");return x};
ofc=function(x,L){if(x!=null){var D;var S=(D=fpG)!=null?D:fpG={};D=S[x]||0;D>=L||(S[x]=D+1,x=Error(),i34(x,"incident"),JG(x))}};
L2=function(x,L,D){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(D===void 0?0:D)&&Symbol.for&&x?Symbol.for(x):x!=null?Symbol(x):Symbol():L};
X44=function(x,L){QQ||_.Jr in x||aps(x,zOw);x[_.Jr]|=L};
OR=function(x,L){QQ||_.Jr in x||aps(x,zOw);x[_.Jr]=L};
cGO=function(x){if(4&x)return 512&x?512:1024&x?1024:0};
Zh=function(x){X44(x,34);return x};
nfs=function(x){X44(x,32);return x};
yQ=function(){return typeof BigInt==="function"};
PC=function(x,L){return L===void 0?x.copyOnWrite!==Ii&&!!(2&(x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.Jr]|0)):!!(2&L)&&x.copyOnWrite!==Ii};
_.bG=function(x,L){if(x!=null)if(typeof x==="string")x=x?new gA(x,kH):_.m_();else if(x.constructor!==gA)if(t0c&&x!=null&&x instanceof Uint8Array)x=x.length?new gA(new Uint8Array(x),kH):_.m_();else{if(!L)throw Error();x=void 0}return x};
xhN=function(x,L){if(typeof L!=="number"||L<0||L>=x.length)throw Error();};
L_f=function(x,L,D){var S=L&128?0:-1,Q=x.length,J;if(J=!!Q)J=x[Q-1],J=J!=null&&typeof J==="object"&&J.constructor===Object;var Z=Q+(J?-1:0);for(L=L&128?1:0;L<Z;L++)D(L-S,x[L]);if(J){x=x[Q-1];for(var y in x)!isNaN(y)&&D(+y,x[y])}};
sR=function(x){return x&128?YH:void 0};
TB=function(x){x.isGuard_doNotManuallySetPrettyPlease=!0;return x};
SR3=function(){var x=Dhs;return TB(function(L){for(var D in x)if(L===x[D]&&!/^[0-9]+$/.test(D))return!0;return!1})};
_.eW=function(x){var L=x;if(Qif(L)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(L))throw Error(String(L));}else if(Jrw(L)&&!Number.isSafeInteger(L))throw Error(String(L));return K_f?BigInt(x):x=O23(x)?x?"1":"0":Qif(x)?x.trim()||"0":String(x)};
Z2w=function(x,L){if(x.length>L.length)return!1;if(x.length<L.length||x===L)return!0;for(var D=0;D<x.length;D++){var S=x[D],Q=L[D];if(S>Q)return!1;if(S<Q)return!0}};
yrh=function(x){var L=x>>>0;Ri=L;wA=(x-L)/4294967296>>>0};
BC=function(x){if(x<0){yrh(-x);var L=_.O(Ihc(Ri,wA));x=L.next().value;L=L.next().value;Ri=x>>>0;wA=L>>>0}else yrh(x)};
MWw=function(x){var L=EHh||(EHh=new DataView(new ArrayBuffer(8)));L.setFloat32(0,+x,!0);wA=0;Ri=L.getUint32(0,!0)};
dh4=function(x,L){var D=L*4294967296+(x>>>0);return Number.isSafeInteger(D)?D:_.WC(x,L)};
Ar=function(x,L){var D=L&2147483648;D&&(x=~x+1>>>0,L=~L>>>0,x==0&&(L=L+1>>>0));x=dh4(x,L);return typeof x==="number"?D?-x:x:D?"-"+x:x};
PGs=function(x){var L=Ri,D=wA,S=D>>31;D=(D<<1|L>>>31)^S;x(L<<1^S,D)};
ji0=function(x,L){var D=-(x&1);x=(x>>>1|L<<31)^D;return Ar(x,L>>>1^D)};
_.WC=function(x,L){L>>>=0;x>>>=0;if(L<=2097151)var D=""+(4294967296*L+x);else yQ()?D=""+(BigInt(L)<<BigInt(32)|BigInt(x)):(D=(x>>>24|L<<8)&16777215,L=L>>16&65535,x=(x&16777215)+D*6777216+L*6710656,D+=L*8147497,L*=2,x>=1E7&&(D+=x/1E7>>>0,x%=1E7),D>=1E7&&(L+=D/1E7>>>0,D%=1E7),D=L+vHN(D)+vHN(x));return D};
vHN=function(x){x=String(x);return"0000000".slice(x.length)+x};
_.VWs=function(x,L){L&2147483648?yQ()?x=""+(BigInt(L|0)<<BigInt(32)|BigInt(x>>>0)):(L=_.O(Ihc(x,L)),x=L.next().value,L=L.next().value,x="-"+_.WC(x,L)):x=_.WC(x,L);return x};
$H=function(x){if(x.length<16)BC(Number(x));else if(yQ())x=BigInt(x),Ri=Number(x&BigInt(4294967295))>>>0,wA=Number(x>>BigInt(32)&BigInt(4294967295));else{var L=+(x[0]==="-");wA=Ri=0;for(var D=x.length,S=L,Q=(D-L)%6+L;Q<=D;S=Q,Q+=6)S=Number(x.slice(S,Q)),wA*=1E6,Ri=Ri*1E6+S,Ri>=4294967296&&(wA+=Math.trunc(Ri/4294967296),wA>>>=0,Ri>>>=0);L&&(L=_.O(Ihc(Ri,wA)),x=L.next().value,L=L.next().value,Ri=x,wA=L)}};
Ihc=function(x,L){L=~L;x?x=~x+1:L+=1;return[x,L]};
rA=function(x){return Array.prototype.slice.call(x)};
_.Nh=function(x,L){throw Error(L===void 0?"unexpected value "+x+"!":L);};
_.iG=function(x){if(x!=null&&typeof x!=="number")throw Error("L`"+typeof x+"`"+x);return x};
_.f2=function(x){if(x==null||typeof x==="number")return x;if(x==="NaN"||x==="Infinity"||x==="-Infinity")return Number(x)};
hdp=function(x){if(x!=null&&typeof x!=="boolean")throw Error("M`"+_.X2(x)+"`"+x);return x};
_.H20=function(x){if(x==null||typeof x==="boolean")return x;if(typeof x==="number")return!!x};
_.tr=function(x){switch(typeof x){case "bigint":return!0;case "number":return cC(x);case "string":return u24.test(x);default:return!1}};
_.Ll=function(x){if(!cC(x))throw _.xH("enum");return x|0};
_.DY=function(x){return x==null?x:cC(x)?x|0:void 0};
gH3=function(x){if(typeof x!=="number")throw _.xH("int32");if(!cC(x))throw _.xH("int32");return x|0};
_.SG=function(x){return x==null?x:gH3(x)};
_.QW=function(x){if(x==null)return x;if(typeof x==="string"&&x)x=+x;else if(typeof x!=="number")return;return cC(x)?x|0:void 0};
_.kBh=function(x){if(x==null)return x;if(typeof x==="string"&&x)x=+x;else if(typeof x!=="number")return;return cC(x)?x>>>0:void 0};
YRw=function(x){var L=0;L=L===void 0?0:L;if(!_.tr(x))throw _.xH("int64");var D=typeof x;switch(L){case 512:switch(D){case "string":return Kl(x);case "bigint":return String(ZY(64,x));default:return pCN(x)}case 1024:switch(D){case "string":return mhw(x);case "bigint":return _.eW(ZY(64,x));default:return b2G(x)}case 0:switch(D){case "string":return Kl(x);case "bigint":return _.eW(ZY(64,x));default:return yW(x)}default:return _.Nh(L,"Unknown format requested type for int64")}};
Eu=function(x){return x==null?x:YRw(x)};
F_0=function(x){var L=x.length;if(x[0]==="-"?L<20||L===20&&x<="-9223372036854775808":L<19||L===19&&x<="9223372036854775807")return x;$H(x);return _.VWs(Ri,wA)};
si0=function(x){if(x[0]==="-")var L=!1;else L=x.length,L=L<20?!0:L===20&&x<="18446744073709551615";if(L)return x;$H(x);return _.WC(Ri,wA)};
yW=function(x){x=Mq(x);d$(x)||(BC(x),x=Ar(Ri,wA));return x};
_.TAp=function(x){x=Mq(x);x>=0&&d$(x)||(BC(x),x=dh4(Ri,wA));return x};
pCN=function(x){x=Mq(x);d$(x)?x=String(x):(BC(x),x=_.VWs(Ri,wA));return x};
_.edc=function(x){x=Mq(x);x>=0&&d$(x)?x=String(x):(BC(x),x=_.WC(Ri,wA));return x};
Kl=function(x){var L=Mq(Number(x));if(d$(L))return String(L);L=x.indexOf(".");L!==-1&&(x=x.substring(0,L));return F_0(x)};
mhw=function(x){var L=Mq(Number(x));if(d$(L))return _.eW(L);L=x.indexOf(".");L!==-1&&(x=x.substring(0,L));return yQ()?_.eW(ZY(64,BigInt(x))):_.eW(F_0(x))};
b2G=function(x){return d$(x)?_.eW(yW(x)):_.eW(pCN(x))};
_.RdN=function(x){return d$(x)?_.eW(_.TAp(x)):_.eW(_.edc(x))};
_.GBN=function(x){var L=Mq(Number(x));if(d$(L)&&L>=0)return String(L);L=x.indexOf(".");L!==-1&&(x=x.substring(0,L));return si0(x)};
_.CGN=function(x){var L=Mq(Number(x));if(d$(L)&&L>=0)return _.eW(L);L=x.indexOf(".");L!==-1&&(x=x.substring(0,L));return yQ()?_.eW((0,_.jG)(64,BigInt(x))):_.eW(si0(x))};
_.Uhb=function(x){if(x==null)return x;if(typeof x==="bigint")return lh0(x)?x=Number(x):(x=ZY(64,x),x=lh0(x)?Number(x):String(x)),x;if(_.tr(x))return typeof x==="number"?yW(x):Kl(x)};
wCG=function(x,L){L=L===void 0?!1:L;var D=typeof x;if(x==null)return x;if(D==="bigint")return String(ZY(64,x));if(_.tr(x))return D==="string"?Kl(x):L?pCN(x):yW(x)};
_.BA0=function(x){var L=typeof x;if(x==null)return x;if(L==="bigint")return _.eW(ZY(64,x));if(_.tr(x))return L==="string"?mhw(x):b2G(x)};
W_n=function(x){if(x==null)return x;var L=typeof x;if(L==="bigint")return String(ZY(64,x));if(_.tr(x)){if(L==="string")return Kl(x);if(L==="number")return yW(x)}};
qR0=function(x){if(x==null)return x;var L=typeof x;if(L==="bigint")return String((0,_.jG)(64,x));if(_.tr(x)){if(L==="string")return _.GBN(x);if(L==="number")return _.TAp(x)}};
_.VW=function(x){if(typeof x!=="string")throw Error();return x};
Hs=function(x){if(x!=null&&typeof x!=="string")throw Error();return x};
_.uq=function(x){return x==null||typeof x==="string"?x:void 0};
rr4=function(x,L,D,S){if(x!=null&&x[m3]===bq)return x;if(!Array.isArray(x))return D?S&2?L[ArN]||(L[ArN]=$hh(L)):new L:void 0;D=x[_.Jr]|0;S=D|S&32|S&2;S!==D&&OR(x,S);return new L(x)};
$hh=function(x){x=new x;Zh(x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return x};
NAf=function(x,L,D){x=L?gH3(x):_.QW(x);return x==null?D?0:void 0:x|0};
i2h=function(x){return x};
fh4=function(x){return x};
ahf=function(x,L,D,S,Q,J){x=rr4(x,S,D,J);Q&&(x=oH4(x));return x};
zd0=function(x){return[x,this.get(x)]};
nHs=function(){return XCc||(XCc=new su(Zh([]),void 0,void 0,void 0,crh))};
tWw=function(x){var L=eG(RI);return L?x[L]:void 0};
Dqn=function(x,L){var D=D===void 0?!1:D;if(eG(xqG)&&eG(RI)&&void 0===xqG){var S=x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Q=S[RI];if(!Q)return;if(Q=Q.reviveUnknownFields)try{Q(S,L,L3s);return}catch(J){JG(J)}}D&&(x=x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(D=eG(RI))&&D in x&&(x=x[D])&&delete x[L])};
QIc=function(x,L){var D=eG(RI),S;QQ&&D&&((S=x[D])==null?void 0:S[L])!=null&&ofc(Sus,3)};
K30=function(x,L){L<100||ofc(J5N,1)};
EXh=function(x,L,D,S){var Q=S!==void 0;S=!!S;var J=eG(RI),Z;!Q&&QQ&&J&&(Z=x[J])&&OlO(Z,K30);J=[];var y=x.length;Z=4294967295;var E=!1,P=!!(L&64),v=P?L&128?0:-1:void 0;if(!(L&1)){var V=y&&x[y-1];V!=null&&typeof V==="object"&&V.constructor===Object?(y--,Z=y):V=void 0;if(P&&!(L&128)&&!Q){E=!0;var h;Z=((h=ZlG)!=null?h:i2h)(Z-v,v,x,V,void 0)+v}}L=void 0;for(h=0;h<y;h++){var H=x[h];if(H!=null&&(H=D(H,S))!=null)if(P&&h>=Z){var k=h-v,T=void 0;((T=L)!=null?T:L={})[k]=H}else J[h]=H}if(V)for(var G in V)y=V[G],
y!=null&&(y=D(y,S))!=null&&(h=+G,H=void 0,P&&!Number.isNaN(h)&&(H=h+v)<Z?J[H]=y:(h=void 0,((h=L)!=null?h:L={})[G]=y));L&&(E?J.push(L):J[Z]=L);Q&&eG(RI)&&(x=tWw(x))&&x instanceof y53&&(J[RI]=IYG(x));return J};
dq3=function(x){x[0]=MGc(x[0]);x[1]=MGc(x[1]);return x};
MGc=function(x){switch(typeof x){case "number":return Number.isFinite(x)?x:""+x;case "bigint":return lh0(x)?Number(x):""+x;case "boolean":return x?1:0;case "object":if(Array.isArray(x)){var L=x[_.Jr]|0;return x.length===0&&L&1?void 0:EXh(x,L,MGc)}if(x!=null&&x[m3]===bq)return Pqh(x);if(x instanceof gA){L=x.JSC$8825_value_;if(L==null)x="";else if(typeof L==="string")x=L;else{if($fG){for(var D="",S=0,Q=L.length-10240;S<Q;)D+=String.fromCharCode.apply(null,L.subarray(S,S+=10240));D+=String.fromCharCode.apply(null,
S?L.subarray(S):L);L=btoa(D)}else L=_.Gg(L);x=x.JSC$8825_value_=L}return x}if(x instanceof su)return x=x.size!==0?Array.from(lq.prototype.entries.call(x),dq3):void 0,x;return}return x};
Bs=function(x,L){if(L){ZlG=L==null||L===i2h||L[jIb]!==vXb?i2h:L;try{return Pqh(x)}finally{ZlG=void 0}}return Pqh(x)};
Pqh=function(x){x=x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return EXh(x,x[_.Jr]|0,MGc)};
Hln=function(x){switch(typeof x){case "boolean":return VGh||(VGh=[0,void 0,!0]);case "number":return x>0?void 0:x===0?hlG||(hlG=[0,void 0]):[-x,void 0];case "string":return[0,x];case "object":return x}};
qq=function(x,L,D){return x=_.Ws(x,L[0],L[1],D?1:2)};
_.Ws=function(x,L,D,S){S=S===void 0?0:S;if(x==null){var Q=32;D?(x=[D],Q|=128):x=[];L&&(Q=Q&-8380417|(L&1023)<<13)}else{if(!Array.isArray(x))throw Error("O");Q=x[_.Jr]|0;if(u90&&1&Q)throw Error("P");2048&Q&&!(2&Q)&&gX0();if(Q&256)throw Error("Q");if(Q&64)return S!==0||Q&2048||OR(x,Q|2048),x;if(D&&(Q|=128,D!==x[0]))throw Error("R");a:{D=x;Q|=64;var J=D.length;if(J){var Z=J-1,y=D[Z];if(y!=null&&typeof y==="object"&&y.constructor===Object){L=Q&128?0:-1;Z-=L;if(Z>=1024)throw Error("T");for(var E in y)J=
+E,J<Z&&(D[J+L]=y[E],delete y[E]);Q=Q&-8380417|(Z&1023)<<13;break a}}if(L){E=Math.max(L,J-(Q&128?0:-1));if(E>1024)throw Error("U");Q=Q&-8380417|(E&1023)<<13}}}Q|=64;S===0&&(Q|=2048);OR(x,Q);return x};
gX0=function(){if(u90)throw Error("S");ofc(kgN,5)};
Yuh=function(x,L){if(typeof x!=="object")return x;if(Array.isArray(x)){var D=x[_.Jr]|0;return x.length===0&&D&1?void 0:ps0(x,D,L)}if(x!=null&&x[m3]===bq)return mqf(x);if(x instanceof su){L=x.arrayState;if(L&2)return x;if(!x.size)return;D=Zh(bl4(x));if(x.valueCtor)for(x=0;x<D.length;x++){var S=D[x],Q=S[1];Q==null||typeof Q!=="object"?Q=void 0:Q!=null&&Q[m3]===bq?Q=mqf(Q):Array.isArray(Q)?Q=ps0(Q,Q[_.Jr]|0,!!(L&32)):Q=void 0;S[1]=Q}return D}if(x instanceof gA)return x};
ps0=function(x,L,D){if(L&2)return x;!D||4096&L||16&L?x=A5(x,L,!1,D&&!(L&16)):(X44(x,34),L&4&&Object.freeze(x));return x};
F3N=function(x,L,D){x=new x.constructor(L);D&&(x.copyOnWrite=Ii);x.noLegacyNull=Ii;return x};
mqf=function(x){var L=x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,D=L[_.Jr]|0;return PC(x,D)?x:sIO(x,L,D)?F3N(x,L):A5(L,D)};
A5=function(x,L,D,S){S!=null||(S=!!(34&L));x=EXh(x,L,Yuh,S);S=32;D&&(S|=2);L=L&8380609|S;OR(x,L);return x};
oH4=function(x){var L=x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,D=L[_.Jr]|0;return PC(x,D)?sIO(x,L,D)?F3N(x,L,!0):new x.constructor(A5(L,D,!1)):x};
$X=function(x){if(x.copyOnWrite!==Ii)return!1;var L=x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;L=A5(L,L[_.Jr]|0);X44(L,2048);x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=L;x.copyOnWrite=void 0;x.noLegacyNull=void 0;return!0};
r$=function(x){if(!$X(x)&&PC(x,x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.Jr]|0))throw Error();};
Nq=function(x,L){L===void 0&&(L=x[_.Jr]|0);L&32&&!(L&4096)&&OR(x,L|4096)};
sIO=function(x,L,D){return D&2?!0:D&32&&!(D&4096)?(OR(L,D|2),x.copyOnWrite=Ii,!0):!1};
fl=function(x,L,D,S,Q){var J=D+(Q?0:-1),Z=x.length-1;if(Z>=1+(Q?0:-1)&&J>=Z){var y=x[Z];if(y!=null&&typeof y==="object"&&y.constructor===Object)return y[D]=S,L}if(J<=Z)return x[J]=S,L;if(S!==void 0){var E;Z=((E=L)!=null?E:L=x[_.Jr]|0)>>13&1023||536870912;D>=Z?S!=null&&(J={},x[Z+(Q?0:-1)]=(J[D]=S,J)):x[J]=S}return L};
_.zg=function(x,L,D,S,Q){var J=x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Z=J[_.Jr]|0;S=PC(x,Z)?1:S;Q=!!Q||S===3;S===2&&$X(x)&&(J=x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Z=J[_.Jr]|0);x=T$N(J,L);var y=x===oI?7:x[_.Jr]|0,E=elb(y,Z);var P=4&E?!1:!0;if(P){4&E&&(x=rA(x),y=0,E=aI(E,Z),Z=fl(J,Z,L,x));for(var v=0,V=0;v<x.length;v++){var h=D(x[v]);h!=null&&(x[V++]=h)}V<v&&(x.length=V);D=(E|4)&-513;E=D&=-1025;E&=-4097}E!==y&&(OR(x,E),2&E&&Object.freeze(x));return x=RlG(x,E,J,
Z,L,S,P,Q)};
RlG=function(x,L,D,S,Q,J,Z,y){var E=L;J===1||(J!==4?0:2&L||!(16&L)&&32&S)?cs(L)||(L|=!x.length||Z&&!(4096&L)||32&S&&!(4096&L||16&L)?2:256,L!==E&&OR(x,L),Object.freeze(x)):(J===2&&cs(L)&&(x=rA(x),E=0,L=aI(L,S),S=fl(D,S,Q,x)),cs(L)||(y||(L|=16),L!==E&&OR(x,L)));2&L||!(4096&L||16&L)||Nq(D,S);return x};
T$N=function(x,L,D){x=nl(x,L,D);return Array.isArray(x)?x:oI};
elb=function(x,L){2&L&&(x|=2);return x|1};
cs=function(x){return!!(2&x)&&!!(4&x)||!!(256&x)};
GgO=function(x){return _.bG(x,!0)};
Cqh=function(x){x=rA(x);for(var L=0;L<x.length;L++){var D=x[L]=rA(x[L]);Array.isArray(D[1])&&(D[1]=Zh(D[1]))}return x};
lYh=function(x,L){var D=x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,S=D[_.Jr]|0;a:{var Q=S;S=PC(x,S);!S&&$X(x)&&(D=x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Q=D[_.Jr]|0);var J=nl(D,L);x=!1;if(J==null){if(S){L=nHs();break a}J=[]}else if(J.constructor===su)if(J.arrayState&2&&!S)J=bl4(J);else{L=J;break a}else Array.isArray(J)?x=!!((J[_.Jr]|0)&2):J=[];if(S){if(!J.length){L=nHs();break a}x||(x=!0,Zh(J))}else x&&(x=!1,J=Cqh(J));!x&&Q&32&&nfs(J);S=new su(J,void 0,NAf,NAf);Q=fl(D,
Q,L,S);x||Nq(D,Q);L=S}return L};
_.t5=function(x,L,D,S){r$(x);var Q=x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,J=Q[_.Jr]|0;if(D==null)return fl(Q,J,L),x;var Z=D===oI?7:D[_.Jr]|0,y=Z,E=cs(Z),P=E||Object.isFrozen(D);E||(Z=0);P||(D=rA(D),y=0,Z=aI(Z,J),P=!1);Z|=5;var v;E=(v=cGO(Z))!=null?v:0;for(v=0;v<D.length;v++){var V=D[v],h=S(V,E);Object.is(V,h)||(P&&(D=rA(D),y=0,Z=aI(Z,J),P=!1),D[v]=h)}Z!==y&&(P&&(D=rA(D),Z=aI(Z,J)),OR(D,Z));fl(Q,J,L,D);return x};
_.xz=function(x,L,D,S,Q){r$(x);var J=x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;fl(J,J[_.Jr]|0,L,(S==="0"?Number(D)===0:D===S)?void 0:D,Q);return x};
_.LU=function(x,L,D){if(L&2)throw Error();var S=sR(L),Q=T$N(x,D,S),J=Q===oI?7:Q[_.Jr]|0,Z=elb(J,L);if(2&Z||cs(Z)||16&Z)Q=rA(Q),J=0,Z=aI(Z,L),fl(x,L,D,Q,S);Z&=-13;Z!==J&&OR(Q,Z);return Q};
UqG=function(x){if(QQ){var L;return(L=x[Df])!=null?L:x[Df]=new Map}if(Df in x)return x[Df];L=new Map;Object.defineProperty(x,Df,{value:L});return L};
B$s=function(x,L,D,S,Q){var J=UqG(x),Z=wsG(J,x,L,D,Q);Z!==S&&(Z&&(L=fl(x,L,Z,void 0,Q)),J.set(D,S));return L};
wsG=function(x,L,D,S,Q){var J=x.get(S);if(J!=null)return J;for(var Z=J=0;Z<S.length;Z++){var y=S[Z];nl(L,y,Q)!=null&&(J!==0&&(D=fl(L,D,J,void 0,Q)),J=y)}x.set(S,J);return J};
W34=function(x,L,D,S,Q){var J=!1;S=nl(x,S,Q,function(Z){var y=rr4(Z,D,!1,L);J=y!==Z&&y!=null;return y});
if(S!=null)return J&&!PC(S)&&Nq(x,L),S};
qub=function(x,L,D,S,Q,J,Z,y){var E=PC(x,D);J=E?1:J;Z=!!Z||J===3;E=y&&!E;(J===2||E)&&$X(x)&&(L=x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,D=L[_.Jr]|0);x=T$N(L,Q);var P=x===oI?7:x[_.Jr]|0,v=elb(P,D);if(y=!(4&v)){var V=x,h=D,H=!!(2&v);H&&(h|=2);for(var k=!H,T=!0,G=0,U=0;G<V.length;G++){var l=rr4(V[G],S,!1,h);if(l instanceof S){if(!H){var X=PC(l);k&&(k=!X);T&&(T=X)}V[U++]=l}}U<G&&(V.length=U);v|=4;v=T?v&-4097:v|4096;v=k?v|8:v&-9}v!==P&&(OR(x,v),2&v&&Object.freeze(x));if(E&&!(8&v||!x.length&&
(J===1||(J!==4?0:2&v||!(16&v)&&32&D)))){cs(v)&&(x=rA(x),v=aI(v,D),D=fl(L,D,Q,x));S=x;E=v;for(P=0;P<S.length;P++)V=S[P],v=oH4(V),V!==v&&(S[P]=v);E|=8;v=E=S.length?E|4096:E&-4097;OR(x,v)}return x=RlG(x,v,L,D,Q,J,y,Z)};
A5s=function(x){x==null&&(x=void 0);return x};
aI=function(x,L){return x=(2&L?x|2:x&-3)&-273};
_.$q0=function(x,L,D,S,Q){r$(x);L=_.zg(x,L,Q,2,!0);var J;Q=(J=cGO(L===oI?7:L[_.Jr]|0))!=null?J:0;L.push(D(S,Q));return x};
r5s=function(x,L,D,S,Q,J,Z){r$(x);var y=x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;x=qub(x,y,y[_.Jr]|0,D,L,2,!0);if(J&&Z)Q!=null||(Q=x.length-1),xhN(x,Q),x.splice(Q,J),x.length||(x[_.Jr]&=-4097);else{if(J){if(typeof Q!=="number"||Q<0||Q>x.length)throw Error();}else S=S!=null?S:new D;Q!=void 0?x.splice(Q,J,S):x.push(S);Q=D=x===oI?7:x[_.Jr]|0;(S=PC(S))?(D&=-9,x.length===1&&(D&=-4097)):D|=4096;D!==Q&&OR(x,D);S||Nq(y)}};
ilG=function(x,L){if(typeof x==="string")return new SN(N0c(x),L);if(Array.isArray(x))return new SN(new Uint8Array(x),L);if(x.constructor===Uint8Array)return new SN(x,!1);if(x.constructor===ArrayBuffer)return x=new Uint8Array(x),new SN(x,!1);if(x.constructor===gA)return L=N$w(x)||new Uint8Array(0),new SN(L,!0,x);if(x instanceof Uint8Array)return x=x.constructor===Uint8Array?x:new Uint8Array(x.buffer,x.byteOffset,x.byteLength),new SN(x,!1);throw Error();};
oXh=function(x){switch(typeof x){case "string":fYh(x)}};
zl0=function(x){switch(typeof x){case "string":aYs(x)}};
Qv=function(){var x=function(){throw Error();};
Object.setPrototypeOf(x,x.prototype);return x};
c54=function(x,L){var D=D===void 0?Xsf:D;return new Jw(x,L,D)};
xe0=function(x,L,D,S,Q){nXn(x,D,tG3(L,S),Q)};
KU=function(x,L,D,S){var Q=S[x];if(Q)return Q;Q={};Q.binaryFields=S;Q.messageMetadata=Hln(S[0]);var J=S[1],Z=1;J&&J.constructor===Object&&(Q.extensions=J,J=S[++Z],typeof J==="function"&&(Q.isMessageSet=!0,LRf!=null||(LRf=J),DeN!=null||(DeN=S[Z+1]),J=S[Z+=2]));for(var y={};J&&S5f(J);){for(var E=0;E<J.length;E++)y[J[E]]=J;J=S[++Z]}for(E=1;J!==void 0;){typeof J==="number"&&(E+=J,J=S[++Z]);var P=void 0;if(J instanceof Jw)var v=J;else v=QNn,Z--;J=void 0;if((J=v)==null?0:J.$$isMsg){J=S[++Z];P=S;var V=Z;
typeof J==="function"&&(J=J(),P[V]=J);P=J}J=S[++Z];V=E+1;typeof J==="number"&&J<0&&(V-=J,J=S[++Z]);for(;E<V;E++){var h=y[E];P?D(Q,E,v,P,h):L(Q,E,v,h)}}return S[x]=Q};
S5f=function(x){return Array.isArray(x)&&!!x.length&&typeof x[0]==="number"&&x[0]>0};
KRn=function(x){return Array.isArray(x)?x[0]instanceof Jw?x:[Jwf,x]:[x,void 0]};
tG3=function(x,L){if(x instanceof _.O5)return x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(x))return qq(x,L,!1)};
OUh=function(x,L,D,S){var Q=D.$$binaryReaderFn;x[L]=S?function(J,Z,y){return Q(J,Z,y,S)}:Q};
ywc=function(x,L,D,S,Q){var J=D.$$binaryReaderFn,Z,y;x[L]=function(E,P,v){return J(E,P,v,y||(y=KU(ZU0,OUh,ywc,S).messageMetadata),Z||(Z=If0(S)),Q)}};
If0=function(x){var L=x[EzG];if(L!=null)return L;var D=KU(ZU0,OUh,ywc,x);L=D.isMessageSet?function(S,Q){return LRf(S,Q,D)}:function(S,Q){for(;MNf(Q)&&Q.nextWireType_!=4;){var J=Q.nextField_,Z=D[J];
if(Z==null){var y=D.extensions;y&&(y=y[J])&&(y=des(y),y!=null&&(Z=D[J]=y))}if(Z==null||!Z(Q,S,J)){y=Q;Z=y.fieldCursor_;PQ0(y);if(y.discardUnknownFields)var E=void 0;else{var P=y.decoder_.cursor_-Z;y.decoder_.cursor_=Z;E=jNb(y.decoder_,P)}P=y=Z=void 0;var v=S;E&&((Z=(y=(P=v[RI])!=null?P:v[RI]=new y53)[J])!=null?Z:y[J]=[]).push(E)}}if(S=tWw(S))S.reviveUnknownFields=D.binaryFields[vzs];return!0};
x[EzG]=L;x[vzs]=VN4.bind(x);return L};
VN4=function(x,L,D,S){var Q=this[ZU0],J=this[EzG],Z=qq(void 0,Q.messageMetadata,!1),y=tWw(x);if(y){var E=!1,P=Q.extensions;if(P){Q=function(k,T,G){if(G.length!==0)if(P[T])for(k=_.O(G),T=k.next();!T.done;T=k.next()){T=hUf(T.value);try{E=!0,J(Z,T)}finally{T.free()}}else S==null||S(x,T,G)};
if(L==null)OlO(y,Q);else if(y!=null){var v=y[L];v&&Q(y,L,v)}if(E){var V=x[_.Jr]|0;if(V&2&&V&2048&&(D==null||!D.reviveIntoImmutable))throw Error();var h=sR(V),H=function(k,T){if(nl(x,k,h)!=null)switch(D==null?void 0:D.resolutionBehavior){case 1:return;default:throw Error();}T!=null&&(V=fl(x,V,k,T,h));delete y[k]};
L==null?L_f(Z,Z[_.Jr]|0,function(k,T){H(k,T)}):H(L,nl(Z,L,h))}}}};
des=function(x){x=KRn(x);var L=x[0].$$binaryReaderFn;if(x=x[1]){var D=If0(x),S=KU(ZU0,OUh,ywc,x).messageMetadata;return function(Q,J,Z){return L(Q,J,Z,S,D)}}return L};
HUG=function(x,L,D){x[L]=D.$$binaryWriterFn};
gzO=function(x,L,D,S){var Q,J,Z=D.$$binaryWriterFn;x[L]=function(y,E,P){return Z(y,E,P,J||(J=KU(usc,HUG,gzO,S).messageMetadata),Q||(Q=kiw(S)))}};
kiw=function(x){var L=x[pi4];if(!L){var D=KU(usc,HUG,gzO,x);L=function(S,Q){return me0(S,Q,D)};
x[pi4]=L}return L};
me0=function(x,L,D){L_f(x,x[_.Jr]|0,function(S,Q){if(Q!=null){var J=bU0(D,S);J?J(L,Q,S):S<500||ofc(Y54,3)}});
(x=tWw(x))&&OlO(x,function(S,Q,J){Zf(L,L.encoder_.end());for(S=0;S<J.length;S++)Zf(L,N$w(J[S])||new Uint8Array(0))})};
bU0=function(x,L){var D=x[L];if(D)return D;if(D=x.extensions)if(D=D[L]){D=KRn(D);var S=D[0].$$binaryWriterFn;if(D=D[1]){var Q=kiw(D),J=KU(usc,HUG,gzO,D).messageMetadata;D=x.isMessageSet?DeN(J,Q):function(Z,y,E){return S(Z,y,E,J,Q)}}else D=S;
return x[L]=D}};
_.FRf=function(x,L,D){if(Array.isArray(L)){var S=L[_.Jr]|0;if(S&4)return L;for(var Q=0,J=0;Q<L.length;Q++){var Z=x(L[Q]);Z!=null&&(L[J++]=Z)}J<Q&&(L.length=J);D&&(OR(L,(S|5)&-1537),S&2&&Object.freeze(L));return L}};
_.IN=function(x,L,D){return new Jw(x,L,D)};
_.sN4=function(x,L,D){return new Jw(x,L,D)};
_.E5=function(x,L,D){fl(x,x[_.Jr]|0,L,D,sR(x[_.Jr]|0))};
T8h=function(x,L,D){L=_.f2(L);L!=null&&(_.Me(x,D,1),x=x.encoder_,D=EHh||(EHh=new DataView(new ArrayBuffer(8))),D.setFloat64(0,+L,!0),Ri=D.getUint32(0,!0),wA=D.getUint32(4,!0),_.d8(x,Ri),_.d8(x,wA))};
eU0=function(x,L,D){L=_.f2(L);L!=null&&(_.Me(x,D,5),x=x.encoder_,MWw(L),_.d8(x,Ri))};
_.jN=function(x,L,D){L=W_n(L);if(L!=null&&(oXh(L),L!=null))switch(_.Me(x,D,0),typeof L){case "number":x=x.encoder_;BC(L);Pi(x,Ri,wA);break;case "bigint":D=BigInt.asUintN(64,L);D=new RUG(Number(D&BigInt(4294967295)),Number(D>>BigInt(32)));Pi(x.encoder_,D.JSC$8868_lo,D.JSC$8868_hi);break;default:D=fYh(L),Pi(x.encoder_,D.JSC$8868_lo,D.JSC$8868_hi)}};
CQn=function(x,L,D){L=_.QW(L);L!=null&&L!=null&&(_.Me(x,D,0),_.GiO(x.encoder_,L))};
_.Ueb=function(x,L,D){lff(x,D,qR0(L))};
wif=function(x,L,D){L=_.H20(L);L!=null&&(_.Me(x,D,0),x.encoder_.JSC$8870_buffer_.push(L?1:0))};
WRs=function(x,L,D){L=_.uq(L);L!=null&&B8f(x,D,M0p(L))};
q5p=function(x,L,D,S,Q){nXn(x,D,tG3(L,S),Q)};
_.Aw0=function(x,L,D){L=L==null||typeof L=="string"||L instanceof gA?L:void 0;L!=null&&B8f(x,D,ilG(L,!0).buffer)};
$e0=function(x,L,D){L=_.kBh(L);L!=null&&L!=null&&(_.Me(x,D,0),vi(x.encoder_,L))};
_.rwn=function(x,L,D){L=_.QW(L);L!=null&&(L=parseInt(L,10),_.Me(x,D,0),_.GiO(x.encoder_,L))};
_.Vv=function(x,L){return function(D,S){var Q={treatNewDataAsImmutable:!0};S&&Object.assign(Q,S);D=hUf(D,void 0,void 0,Q);try{var J=new x,Z=J.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;If0(L)(Z,D);var y=J}finally{D.free()}return y}};
_.hw=function(x){return function(L){return N84(L,x)}};
iU3=function(x){return function(){return N84(this,x)}};
_.ff0=function(x){return TB(function(L){return L instanceof x&&!PC(L)})};
_.uQ=function(x){return function(L){return ozO(x,L)}};
cw4=function(x,L){return af3({child:x,origin:L||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:zUh,getPayloadCase:function(D){return D.getPayloadCase()},
createInitMessage:function(D){var S=new pU,Q=new XiG;D=_.mR(Q,1,D);return _.bQ(S,5,Yz,D)}})};
Fs=function(x){return{valueOf:x}.valueOf()};
tNb=function(){var x=null;if(!nzN)return x;try{var L=function(D){return D};
x=nzN.createPolicy("goog#html",{createHTML:L,createScript:L,createScriptURL:L})}catch(D){}return x};
LWf=function(){xT0===void 0&&(xT0=tNb());return xT0};
_.Ti=function(x){var L=LWf();x=L?L.createScriptURL(x):x;return new s5(x)};
_.RN=function(x){if(x instanceof s5)return x.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("Z");};
_.Gi=function(x){return Object.isFrozen(x)&&Object.isFrozen(x.raw)};
DTf=function(x){return x.toString().indexOf("`")===-1};
lQ=function(x){return new _.CU(StO,x)};
U5=function(x){return x instanceof _.CU};
_.w8=function(x){if(U5(x))return x.privateDoNotAccessOrElseWrappedUrl;throw Error("Z");};
Bi=function(x){return new QTh(function(L){return L.substr(0,x.length+1).toLowerCase()===x+":"})};
_.Wi=function(x,L){L=L===void 0?JB3:L;if(U5(x))return x;for(var D=0;D<L.length;++D){var S=L[D];if(S instanceof QTh&&S.isValid(x))return lQ(x)}};
_.$z=function(x,L){L=L===void 0?JB3:L;return _.Wi(x,L)||Aw};
_.r8=function(x){var L=window;if(typeof MediaSource!=="undefined"&&x instanceof MediaSource||typeof L.ManagedMediaSource!=="undefined"&&x instanceof L.ManagedMediaSource)return lQ(URL.createObjectURL(x));L=x.type;L.toLowerCase()==="application/octet-stream"?L=!0:(L=L.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),L=(L==null?void 0:L.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(L[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(L[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(L[1])||/^font\/[\w-]+$/i.test(L[1])));if(!L)throw Error("Z");return lQ(URL.createObjectURL(x))};
_.KW0=function(x){for(var L=_.Ne.apply(1,arguments),D=[x[0]],S=0;S<L.length;S++)D.push(String(L[S])),D.push(x[S+1]);return lQ(D.join(""))};
_.ZZ0=function(x){if(!OZb){a:{var L=document.createElement("a");try{L.href=x}catch(D){x=void 0;break a}x=L.protocol;x=x===":"||x===""?"https:":x}return x}try{L=new URL(x)}catch(D){return"https:"}return L.protocol};
_.iQ=function(x){x instanceof _.CU?x=_.w8(x):x=yBb.test(x)?x:void 0;return x};
fU=function(x,L){L=_.iQ(L);L!==void 0&&(x.href=L)};
aN=function(x){var L=LWf();x=L?L.createHTML(x):x;return new oN(x)};
Xs=function(x){if(x instanceof oN)return x.privateDoNotAccessOrElseWrappedHtml;throw Error("Z");};
_.ci=function(x,L){x.src=_.RN(L).toString()};
IEO=function(x,L){x.setAttribute("sandbox","");for(var D=0;D<L.length;D++)x.sandbox.supports&&!x.sandbox.supports(L[D])||x.sandbox.add(L[D])};
_.Mff=function(x,L,D){x.removeAttribute("srcdoc");switch(L){case 0:if(D instanceof s5)throw new E20("TrustedResourceUrl",0);IEO(x,[]);L=_.iQ(D);L!==void 0&&(x.src=L);break;case 1:if(!(D instanceof s5))throw new E20(typeof D,1);IEO(x,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.ci(x,D);break;case 2:if(D instanceof s5)throw new E20("TrustedResourceUrl",2);IEO(x,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
L=_.iQ(D);L!==void 0&&(x.src=L);break;default:_.Nh(L)}};
_.nU=function(x,L,D,S){L=_.iQ(L);return L!==void 0?x.open(L,D,S):null};
_.tw=function(x){x=x===void 0?document:x;var L,D;x=(D=(L=x).querySelector)==null?void 0:D.call(L,"script[nonce]");return x==null?"":x.nonce||x.getAttribute("nonce")||""};
_.DE=function(x){var L=LWf();x=L?L.createScript(x):x;return new _.LZ(x)};
dTs=function(x){if(x instanceof _.LZ)return x.privateDoNotAccessOrElseWrappedScript;throw Error("Z");};
PPp=function(x){var L=_.tw(x.ownerDocument);L&&x.setAttribute("nonce",L)};
_.Sf=function(x,L){x.textContent=dTs(L);PPp(x)};
_.QD=function(x,L){x.src=_.RN(L);PPp(x)};
_.JB=function(x,L){if(x.nodeType===1&&/^(script|style)$/i.test(x.tagName))throw Error("Z");x.innerHTML=Xs(L)};
_.KZ=function(x,L,D,S){if(x.length===0)throw Error("Z");x=x.map(function(J){if(J instanceof jTc)J=J.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("Z");return J});
var Q=D.toLowerCase();if(x.every(function(J){return Q.indexOf(J)!==0}))throw Error("aa`"+D);
L.setAttribute(D,S)};
_.Ot=function(x,L,D){if(L instanceof s5)x.href=_.RN(L).toString(),x.rel=D;else{if(v2n.indexOf(D)===-1)throw Error("ba`"+D);L=_.iQ(L);L!==void 0&&(x.href=L,x.rel=D)}};
VfG=function(x){if(x instanceof ZE)return x.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("Z");};
_.h04=function(x,L){L=_.iQ(L);L!==void 0&&(x.href=L)};
HZh=function(x){return _.Ti(x)};
u53=function(x,L){x&&(L=x.indexOf(L),0<=L&&x.splice(L,1))};
yD=function(x){return typeof x==="function"};
g2b=function(x){return x instanceof IT||x&&"closed"in x&&yD(x.remove)&&yD(x.add)&&yD(x.unsubscribe)};
Et=function(){};
MT=function(x){k6w(function(){throw x;})};
dP=function(x){return x};
PH=function(){return pH0(_.Ne.apply(0,arguments))};
pH0=function(x){return x.length===0?dP:x.length===1?x[0]:function(L){return x.reduce(function(D,S){return S(D)},L)}};
mTn=function(x){var L;return(L=x!=null?x:void 0)!=null?L:Promise};
bZw=function(x,L){return new jf(function(D){var S=0;return L.schedule(function(){S===x.length?D.complete():(D.next(x[S++]),D.closed||this.schedule())})})};
Yt0=function(x,L){if(!x)throw Error("ca");return new jf(function(D){var S=new IT;S.add(L.schedule(function(){var Q=x[Symbol.asyncIterator]();S.add(L.schedule(function(){var J=this;Q.next().then(function(Z){Z.done?D.complete():(D.next(Z.value),J.schedule())})}))}));
return S})};
FW4=function(x,L,D){L=L.schedule(function(){try{D.call(this)}catch(S){x.error(S)}},0);
x.add(L)};
TP0=function(x,L){return new jf(function(D){var S;D.add(L.schedule(function(){S=x[sTN]();FW4(D,L,function(){var Q=S.next(),J=Q.value;Q.done?D.complete():(D.next(J),this.schedule())})}));
return function(){var Q;return yD((Q=S)==null?void 0:Q.return)&&S.return()}})};
e0n=function(x,L){return new jf(function(D){var S=new IT;S.add(L.schedule(function(){var Q=x[vH]();S.add(Q.subscribe({next:function(J){S.add(L.schedule(function(){return D.next(J)}))},
error:function(J){S.add(L.schedule(function(){return D.error(J)}))},
complete:function(){S.add(L.schedule(function(){return D.complete()}))}}))}));
return S})};
R0f=function(x,L){return new jf(function(D){return L.schedule(function(){return x.then(function(S){D.add(L.schedule(function(){D.next(S);D.add(L.schedule(function(){return D.complete()}))}))},function(S){D.add(L.schedule(function(){return D.error(S)}))})})})};
G6f=function(x){return new TypeError("da`"+(x!==null&&typeof x==="object"?"an invalid object":"'"+x+"'"))};
lEN=function(x,L){if(x!=null){if(yD(x[vH]))return e0n(x,L);if(CPw(x))return bZw(x,L);if(yD(x==null?void 0:x.then))return R0f(x,L);if(Symbol.asyncIterator&&yD(x==null?void 0:x[Symbol.asyncIterator]))return Yt0(x,L);if(yD(x==null?void 0:x[sTN]))return TP0(x,L)}throw G6f(x);};
hB=function(x,L){return L?lEN(x,L):VD(x)};
VD=function(x){if(x instanceof jf)return x;if(x!=null){if(yD(x[vH]))return UTw(x);if(CPw(x))return wHn(x);if(yD(x==null?void 0:x.then))return BPc(x);if(Symbol.asyncIterator&&yD(x==null?void 0:x[Symbol.asyncIterator]))return WW0(x);if(yD(x==null?void 0:x[sTN]))return qtN(x)}throw G6f(x);};
UTw=function(x){return new jf(function(L){var D=x[vH]();if(yD(D.subscribe))return D.subscribe(L);throw new TypeError("ea");})};
wHn=function(x){return new jf(function(L){for(var D=0;D<x.length&&!L.closed;D++)L.next(x[D]);L.complete()})};
BPc=function(x){return new jf(function(L){x.then(function(D){L.closed||(L.next(D),L.complete())},function(D){return L.error(D)}).then(null,MT)})};
qtN=function(x){return new jf(function(L){for(var D=x[sTN]();!L.closed;){var S=D.next(),Q=S.value;S.done?L.complete():L.next(Q)}return function(){return yD(D==null?void 0:D.return)&&D.return()}})};
WW0=function(x){return new jf(function(L){ABN(x,L).catch(function(D){return L.error(D)})})};
ABN=function(x,L){var D,S,Q,J,Z,y;return _.I(function(E){switch(E.nextAddress){case 1:_.HH(E,2,3),J=_.uP(x);case 5:return E.yield(J.next(),8);case 8:S=E.yieldResult;if(S.done){E.jumpTo(3);break}Z=S.value;L.next(Z);E.jumpTo(5);break;case 3:_.gP(E);_.k2(E,9);if(!S||S.done||!(Q=J.return)){E.jumpTo(9);break}return E.yield(Q.call(J),9);case 9:_.gP(E,0,0,1);if(D)throw D.error;_.pZ(E,10,1);break;case 10:_.pZ(E,4);break;case 2:y=_.mW(E);D={error:y};E.jumpTo(3);break;case 4:L.complete(),_.Y2(E)}})};
$TN=function(x,L){return L?bZw(x,L):wHn(x)};
rB0=function(x){return yD(x[x.length-1])?x.pop():void 0};
F5=function(x){var L=x[x.length-1];return L&&yD(L.schedule)?x.pop():void 0};
st=function(){var x=_.Ne.apply(0,arguments),L=F5(x);return L?bZw(x,L):$TN(x)};
T6=function(x){var L=yD(x)?x:function(){return x};
return new jf(function(D){return D.error(L())})};
ef=function(x){return function(L){if(yD(L==null?void 0:L.lift))return L.lift(function(D){try{return x(D,this)}catch(S){this.error(S)}});
throw new TypeError("fa");}};
G6=function(){return ef(function(x,L){var D=null;x._refCount++;var S=new RT(L,void 0,void 0,void 0,function(){if(!x||x._refCount<=0||0<--x._refCount)D=null;else{var Q=x._connection,J=D;D=null;!Q||J&&Q!==J||Q.unsubscribe();L.unsubscribe()}});
x.subscribe(S);S.closed||(D=x.connect())})};
iZs=function(){var x=NPf;var L=L===void 0?0:L;return ef(function(D,S){S.add(x.schedule(function(){return D.subscribe(S)},L))})};
CZ=function(x){return ef(function(L,D){var S=0;L.subscribe(new RT(D,function(Q){D.next(x.call(void 0,Q,S++))}))})};
o2b=function(x){return CZ(function(L){return fEc(L)?x.apply(null,_.lP(L)):x(L)})};
n2w=function(x){if(x.length===1){var L=x[0];if(aEw(L))return{args:L,keys:null};if(L&&typeof L==="object"&&z0f(L)===XHw)return x=cBf(L),{args:x.map(function(D){return L[D]}),
keys:x}}return{args:x,keys:null}};
Ut=function(){var x=_.Ne.apply(0,arguments),L=F5(x),D=rB0(x);x=n2w(x);var S=x.args,Q=x.keys;if(S.length===0)return hB([],L);L=new jf(tff(S,L,Q?function(J){for(var Z={},y=0;y<J.length;y++)Z[Q[y]]=J[y];return Z}:dP));
return D?L.pipe(o2b(D)):L};
tff=function(x,L,D){D=D===void 0?dP:D;return function(S){xpw(L,function(){for(var Q=x.length,J=Array(Q),Z=Q,y=x.map(function(){return!1}),E=!0,P={i$jscomp$217:0};P.i$jscomp$217<Q;P={i$jscomp$217:P.i$jscomp$217},P.i$jscomp$217++)xpw(L,function(v){return function(){hB(x[v.i$jscomp$217],L).subscribe(new wP(S,function(V){J[v.i$jscomp$217]=V;
E&&(y[v.i$jscomp$217]=!0,E=!y.every(dP));E||S.next(D(J.slice()))},function(){return--Z===0}))}}(P),S)},S)}};
xpw=function(x,L,D){x?D.add(x.schedule(L)):L()};
Loc=function(x,L,D,S){var Q=[],J=0,Z=0,y=!1,E=function(P){J++;VD(D(P,Z++)).subscribe(new RT(L,function(v){L.next(v)},void 0,function(){J--;
for(var v={};Q.length&&J<S;v={bufferedValue:void 0})v.bufferedValue=Q.shift(),E(v.bufferedValue);!y||Q.length||J||L.complete()}))};
x.subscribe(new RT(L,function(P){return J<S?E(P):Q.push(P)},void 0,function(){y=!0;
!y||Q.length||J||L.complete()}));
return function(){Q=null}};
BH=function(x,L){var D=D===void 0?Infinity:D;if(yD(L))return BH(function(S,Q){return CZ(function(J,Z){return L(S,J,Q,Z)})(VD(x(S,Q)))},D);
typeof L==="number"&&(D=L);return ef(function(S,Q){return Loc(S,Q,x,D)})};
DpN=function(x){x=x===void 0?Infinity:x;return BH(dP,x)};
SqO=function(){var x=_.Ne.apply(0,arguments);return DpN(1)($TN(x,F5(x)))};
QDc=function(x){return new jf(function(L){VD(x()).subscribe(L)})};
WH=function(x,L,D){if(yD(D)){var S=D;D=void 0}if(S)return WH(x,L,D).pipe(o2b(S));S=_.O(yD(x.addEventListener)&&yD(x.removeEventListener)?JcN.map(function(Z){return function(y){return x[Z](L,y,D)}}):yD(x.addListener)&&yD(x.removeListener)?Ko0.map(O8O(x,L)):yD(x.on)&&yD(x.off)?Z8p.map(O8O(x,L)):[]);
var Q=S.next().value,J=S.next().value;return!Q&&CPw(x)?BH(function(Z){return WH(Z,L,D)})($TN(x)):new jf(function(Z){if(!Q)throw new TypeError("ga");
var y=function(){var E=_.Ne.apply(0,arguments);return Z.next(1<E.length?E:E[0])};
Q(y);return function(){return J(y)}})};
O8O=function(x,L){return function(D){return function(S){return x[D](L,S)}}};
AB=function(){var x=_.Ne.apply(0,arguments),L=F5(x);var D=typeof x[x.length-1]==="number"?x.pop():Infinity;return x.length?x.length===1?VD(x[0]):DpN(D)($TN(x,L)):qT};
Ixf=function(x){return x.length===1&&ycf(x[0])?x[0]:x};
ERc=function(){var x=Ixf(_.Ne.apply(0,arguments));return ef(function(L,D){var S=[L].concat(_.lP(x)),Q=function(){if(!D.closed)if(S.length>0){try{var J=VD(S.shift())}catch(y){Q();return}var Z=new RT(D,void 0,Et,Et);D.add(J.subscribe(Z));Z.add(Q)}else D.complete()};
Q()})};
rP=function(x){return ef(function(L,D){var S=0;L.subscribe(new RT(D,function(Q){return x.call(void 0,Q,S++)&&D.next(Q)}))})};
dpb=function(){var x=_.Ne.apply(0,arguments);x=Ixf(x);return x.length===1?VD(x[0]):new jf(Mif(x))};
Mif=function(x){return function(L){for(var D=[],S={i$jscomp$220:0};D&&!L.closed&&S.i$jscomp$220<x.length;S={i$jscomp$220:S.i$jscomp$220},S.i$jscomp$220++)D.push(VD(x[S.i$jscomp$220]).subscribe(new RT(L,function(Q){return function(J){if(D){for(var Z=0;Z<D.length;Z++)Z!==Q.i$jscomp$220&&D[Z].unsubscribe();D=null}L.next(J)}}(S))))}};
P8w=function(){var x=_.Ne.apply(0,arguments),L=rB0(x),D=Ixf(x);return D.length?new jf(function(S){var Q=D.map(function(){return[]}),J=D.map(function(){return!1});
S.add(function(){Q=J=null});
for(var Z={sourceIndex$jscomp$1:0};!S.closed&&Z.sourceIndex$jscomp$1<D.length;Z={sourceIndex$jscomp$1:Z.sourceIndex$jscomp$1},Z.sourceIndex$jscomp$1++)VD(D[Z.sourceIndex$jscomp$1]).subscribe(new RT(S,function(y){return function(E){Q[y.sourceIndex$jscomp$1].push(E);Q.every(function(P){return P.length})&&(E=Q.map(function(P){return P.shift()}),S.next(L?L.apply(null,_.lP(E)):E),Q.some(function(P,v){return!P.length&&J[v]})&&S.complete())}}(Z),void 0,function(y){return function(){J[y.sourceIndex$jscomp$1]=
!0;
!Q[y.sourceIndex$jscomp$1].length&&S.complete()}}(Z)));
return function(){Q=J=null}}):qT};
jDf=function(x){var L,D,S;return!!x&&typeof x.active==="boolean"&&typeof((L=x.clock)==null?void 0:L.now)==="function"&&((D=x.clock)==null?void 0:D.timeline)!==void 0&&!((S=x.lastMeasurement)==null||!S.timestamp)&&typeof x.equivalentTo==="function"&&typeof x.extrapolateToNow==="function"&&typeof x.extrapolateToTime==="function"&&typeof x.map==="function"&&typeof x.joinWith==="function"};
vRw=function(x){function L(D){return typeof D==="boolean"||typeof D==="string"||typeof D==="number"||D===void 0||D===null}
return L(x)?!0:Array.isArray(x)?x.every(L):typeof x==="object"?Object.keys(x).every(function(D){return typeof D==="string"})&&Object.values(x).every(function(D){return Array.isArray(D)?D.every(L):L(D)}):!1};
ViN=function(x){if(vRw(x))return x;if(jDf(x))return{lastMeasurement:{value:ViN(x.lastMeasurement.value),timestamp:iP(x.lastMeasurement.timestamp,new fZ(0,x.lastMeasurement.timestamp.timeline))},active:x.active};try{return JSON.parse(JSON.stringify(x))}catch(L){}return String(x)};
oT=function(x,L){return function(D){return new jf(function(S){return D.subscribe(function(Q){x.timeExecution(L,function(){S.next(Q)})()},function(Q){x.timeExecution(L,function(){S.error(Q)})()},function(){x.timeExecution(L,function(){S.complete()})()})})}};
h9f=function(x,L){var D=!1;return new jf(function(S){var Q=x.setTimeout(function(){D=!0;S.next(!0);S.complete()},L);
return function(){D||x.clearTimeout(Q)}})};
H80=function(x){x=x.global;if(x.fetchLater)return x.fetchLater.bind(x)};
aT=function(x){return ef(function(L,D){var S=null,Q=!1,J;S=L.subscribe(new RT(D,void 0,function(Z){J=VD(x(Z,aT(x)(L)));S?(S.unsubscribe(),S=null,J.subscribe(D)):Q=!0}));
Q&&(S.unsubscribe(),S=null,J.subscribe(D))})};
uZN=function(x,L,D){return function(S,Q){var J=D,Z=L,y=0;S.subscribe(new RT(Q,function(E){var P=y++;Z=J?x(Z,E,P):(J=!0,E);Q.next(Z)},void 0,void 0))}};
gRN=function(x){x=x===void 0?null:x;return ef(function(L,D){var S=!1;L.subscribe(new RT(D,function(Q){S=!0;D.next(Q)},void 0,function(){S||D.next(x);
D.complete()}))})};
z6=function(){return ef(function(x,L){x.subscribe(new RT(L,Et))})};
X5=function(x){return ef(function(L,D){L.subscribe(new RT(D,function(){return D.next(x)}))})};
cH=function(x){return x<=0?function(){return qT}:ef(function(L,D){var S=0;
L.subscribe(new RT(D,function(Q){++S<=x&&(D.next(Q),x<=S&&D.complete())}))})};
tB=function(x){var L=L===void 0?dP:L;var D;x=(D=x)!=null?D:kjO;return ef(function(S,Q){var J,Z=!0;S.subscribe(new RT(Q,function(y){var E=L(y);if(Z||!x(J,E))Z=!1,J=E,Q.next(y)}))})};
kjO=function(x,L){return x===L};
mpb=function(x){x=x===void 0?pns:x;return ef(function(L,D){var S=!1;L.subscribe(new RT(D,function(Q){S=!0;D.next(Q)},void 0,function(){return S?D.complete():D.error(x())}))})};
pns=function(){return new b8N};
xR=function(){var x=_.Ne.apply(0,arguments);return function(L){return SqO(L,st.apply(null,_.lP(x)))}};
Yqb=function(x){return ef(function(L,D){var S=0;L.subscribe(new RT(D,function(Q){x.call(void 0,Q,S++,L)||(D.next(!1),D.complete())},void 0,function(){D.next(!0);
D.complete()}))})};
Fos=function(){return ef(function(x,L){var D=[];x.subscribe(new RT(L,function(S){D.push(S);1<D.length&&D.shift()},void 0,function(){for(var S=_.O(D),Q=S.next();!Q.done;Q=S.next())L.next(Q.value);
L.complete()},function(){D=null}))})};
sDG=function(x,L){var D=arguments.length>=2;return function(S){return S.pipe(x?rP(function(Q,J){return x(Q,J,S)}):dP,Fos(),D?gRN(L):mpb(function(){return new b8N}))}};
Dx=function(x){var L=yD(x)?x:function(){return x};
return yD()?ef(function(D,S){var Q=L();(void 0)(Q).subscribe(S).add(D.subscribe(Q))}):function(D){var S=new L8(D,L);
yD(D==null?void 0:D.lift)&&(S.lift=D.lift);S.source=D;S.subjectFactory=L;return S}};
Qr=function(x){var L=new Si(x,void 0,void 0);return function(D){return Dx(function(){return L})(D)}};
Jc=function(x,L){return ef(uZN(x,L,arguments.length>=2))};
Oq=function(){var x=_.Ne.apply(0,arguments),L=F5(x);return ef(function(D,S){(L?SqO(x,D,L):SqO(x,D)).subscribe(S)})};
Zx=function(x){return ef(function(L,D){var S=null,Q=0,J=!1;L.subscribe(new RT(D,function(Z){var y;(y=S)==null||y.unsubscribe();y=Q++;VD(x(Z,y)).subscribe(S=new RT(D,function(E){return D.next(E)},void 0,function(){S=null;
J&&!S&&D.complete()}))},void 0,function(){(J=!0,!S)&&D.complete()}))})};
yr=function(x,L){L=L===void 0?!1:L;return ef(function(D,S){var Q=0;D.subscribe(new RT(S,function(J){var Z=x(J,Q++);(Z||L)&&S.next(J);!Z&&S.complete()}))})};
Tkw=function(x,L,D){var S=yD(x)||L||D?{next:x,error:L,complete:D}:x;return S?ef(function(Q,J){Q.subscribe(new RT(J,function(Z){var y;(y=S.next)==null||y.call(S,Z);J.next(Z)},function(Z){var y;
(y=S.error)==null||y.call(S,Z);J.error(Z)},function(){var Z;
(Z=S.complete)==null||Z.call(S);J.complete()}))}):dP};
e93=function(){var x=_.Ne.apply(0,arguments),L=rB0(x);return ef(function(D,S){for(var Q=x.length,J=Array(Q),Z=x.map(function(){return!1}),y=!1,E={i$jscomp$230:0};E.i$jscomp$230<Q;E={i$jscomp$230:E.i$jscomp$230},E.i$jscomp$230++)VD(x[E.i$jscomp$230]).subscribe(new RT(S,function(P){return function(v){J[P.i$jscomp$230]=v;
y||Z[P.i$jscomp$230]||(Z[P.i$jscomp$230]=!0,(y=Z.every(dP))&&(Z=null))}}(E),void 0,Et));
D.subscribe(new RT(S,function(P){y&&(P=[P].concat(_.lP(J)),S.next(L?L.apply(null,_.lP(P)):P))}))})};
Gjp=function(x){var L=R93;if(L)for(var D in L)Object.prototype.hasOwnProperty.call(L,D)&&x(L[D],D,L)};
C8N=function(){var x=[];Gjp(function(L){x.push(L)});
return x};
Up4=function(x){try{return!!x&&x.location.href!=null&&lxb(x,"foo")}catch(L){return!1}};
_.ID=function(x){return new jTc(x[0].toLowerCase())};
wnf=function(x){for(var L=_.Ne.apply(1,arguments),D=x[0],S=0;S<x.length-1;S++)D+=String(L[S]),D+=x[S+1];L=document.implementation.createHTMLDocument("");S=L.createElement("style");L.head.appendChild(S);L=S.sheet;L.insertRule(D,0);if(L.cssRules.length===1&&(D=L.cssRules[0],D instanceof CSSStyleRule))return new ZE(D.cssText.replace(/</g,"\\3C "))};
Bkw=function(x){try{return new URL(x,window.document.baseURI)}catch(L){return new URL("about:invalid")}};
Woh=function(x,L){var D=L.createRange();D.selectNode(L.body);x=aN(x);return D.createContextualFragment(Xs(x))};
qq4=function(x){x=x.nodeName;return typeof x==="string"?x:"FORM"};
Ac4=function(x){x=x.nodeType;return x===1||typeof x!=="number"};
dk=function(x,L,D){x.setAttribute(L,D)};
$ps=function(x){return x.parts.map(function(L){var D=L.descriptor;return""+L.url+(D?" "+D:"")}).join(" , ")};
_.Pn=function(x){var L=_.Ne.apply(1,arguments);if(L.length===0)return _.Ti(x[0]);for(var D=x[0],S=0;S<L.length;S++)D+=encodeURIComponent(L[S])+x[S+1];return _.Ti(D)};
_.vn=function(x,L){x=_.RN(x).toString();var D=x.split(/[?#]/),S=/[?]/.test(x)?"?"+D[1]:"";return rcf(D[0],S,/[#]/.test(x)?"#"+(S?D[2]:D[1]):"",L)};
rcf=function(x,L,D,S){function Q(Z,y){Z!=null&&(Array.isArray(Z)?Z.forEach(function(E){return Q(E,y)}):(L+=J+encodeURIComponent(y)+"="+encodeURIComponent(Z),J="&"))}
var J=L.length?"&":"?";S.constructor===Object&&(S=Object.entries(S));Array.isArray(S)?S.forEach(function(Z){return Q(Z[1],Z[0])}):S.forEach(Q);
return _.Ti(x+L+D)};
Nkc=function(x){var L=[],D=0,S;for(S in x)L[D++]=S;return L};
i80=function(x,L){for(var D in x)if(x[D]==L)return!0;return!1};
fxh=function(x,L,D){for(var S in x)if(L.call(D,x[S],S,x))return S};
oR3=function(x){if(!x||typeof x!=="object")return x;if(typeof x.clone==="function")return x.clone();if(typeof Map!=="undefined"&&x instanceof Map)return new Map(x);if(typeof Set!=="undefined"&&x instanceof Set)return new Set(x);if(x instanceof Date)return new Date(x.getTime());var L=Array.isArray(x)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(x)||x instanceof DataView?{}:new x.constructor(x.length),D;for(D in x)L[D]=oR3(x[D]);return L};
axb=function(x){var L=arguments.length;if(L==1&&Array.isArray(arguments[0]))return axb.apply(null,arguments[0]);if(L%2)throw Error("ma");for(var D={},S=0;S<L;S+=2)D[arguments[S]]=arguments[S+1];return D};
z9h=function(x){var L=arguments.length;if(L==1&&Array.isArray(arguments[0]))return z9h.apply(null,arguments[0]);for(var D={},S=0;S<L;S++)D[arguments[S]]=!0;return D};
Vr=function(x,L,D,S){this.top=x;this.right=L;this.bottom=D;this.left=S};
Xnn=function(x){x=x.global;if(x.PendingGetBeacon)return x.PendingGetBeacon};
Hn=function(x){return function(L){return L.pipe(cc4(x,Dx(new hc)))}};
gk=function(x){return function(L){return L.pipe(cc4(x,Qr(1)))}};
cc4=function(x,L){function D(S){return new jf(function(Q){return S.subscribe(function(J){kR(x,function(){return void Q.next(J)},3)},function(J){kR(x,function(){return void Q.error(J)},3)},function(){kR(x,function(){return void Q.complete()},3)})})}
return PH(D,iZs(),L,G6(),D)};
x4b=function(x){var L=nR3(x);return L===null?new p8(null):L.pipe(CZ(function(D){D=D.serialize();if(tic)D=_.Qb.btoa(D);else{for(var S=[],Q=0,J=0;J<D.length;J++){var Z=D.charCodeAt(J);Z>255&&(S[Q++]=Z&255,Z>>=8);S[Q++]=Z}D=_.Gg(S)}return D}),cH(1),gk(x.queue))};
Lgw=function(x){var L=L===void 0?{}:L;if(typeof Event==="function")return new Event(x,L);if(typeof document!=="undefined"){var D=document.createEvent("CustomEvent");D.initCustomEvent(x,L.bubbles||!1,L.cancelable||!1,L.detail);return D}throw Error();};
D4G=function(x){return typeof x==="string"?document.getElementById(x):x};
QmO=function(x){var L=!1;L=L===void 0?!1:L;if(x.tagName==="IMG"){if(x.complete&&(!x.naturalWidth||!x.naturalHeight))return!0;var D;if(L&&((D=x.style)==null?void 0:D.display)==="none")return!0}var S,Q;return S7b.test((S=x.getAttribute("width"))!=null?S:"")&&S7b.test((Q=x.getAttribute("height"))!=null?Q:"")};
JxN=function(x,L){if(x.tagName==="IMG")return x.naturalWidth&&x.naturalHeight?!0:!1;try{if(x.readyState)var D=x.readyState;else{var S,Q;D=(S=x.contentWindow)==null?void 0:(Q=S.document)==null?void 0:Q.readyState}return D==="complete"}catch(J){return L===void 0?!1:L}};
Kgs=function(x){x||(x=function(L,D,S){L.addEventListener(D,S)});
return x};
Ib3=function(x,L){var D=Ow0();D=D===void 0?new ZwN:D;if(x=D4G(x)){var S=Kgs(S);for(var Q=!1,J=function(G){Q||(Q=!0,L(G))},Z,y=2,E=0;E<yxh.length;++E)if(yxh[E]===x.tagName){y=3;
Z=[x];break}Z||(Z=x.querySelectorAll(yxh.join(",")));var P=0,v=0,V=!0,h=x=!1;E={};for(var H=0;H<Z.length;E={isImg:void 0},H++){var k=Z[H];if(!QmO(k))if(E.isImg=k.tagName==="IMG",JxN(k,D.crossDomainLoadedDefault))x=!0,E.isImg&&(V=!0);else{P++;var T=function(G){return function(U){P--;!P&&V&&J(y);G.isImg&&(U=U&&U.type==="error",v--,U||(V=!0),!v&&h&&V&&J(y))}}(E);
S(k,"load",T);E.isImg&&(v++,S(k,"error",T))}}v===0&&(V=!0);Z=null;Z=_.Qb.document.readyState==="complete";if(P===0&&!x&&Z)y=5;else if(P||!x){S(_.Qb,"load",function(){!D.pendingImagesBlockLoad||!v&&V?J(4):h=!0});
return}J(y)}};
Ea3=function(x,L,D){if(x)for(var S=0;x!=null&&S<500&&!D(x);++S)x=L(x)};
M1N=function(x,L){Ea3(x,function(D){try{return D===D.parent?null:D.parent}catch(S){}return null},L)};
d4h=function(x,L){if(x.tagName=="IFRAME")L(x);else{x=x.querySelectorAll("IFRAME");for(var D=0;D<x.length&&!L(x[D]);++D);}};
Pxc=function(x){return(x=x.ownerDocument)&&(x.parentWindow||x.defaultView)||null};
jmh=function(x,L,D){try{var S=JSON.parse(D.data)}catch(Z){}if(typeof S==="object"&&S&&S.type==="creativeLoad"){var Q=Pxc(x);if(D.source&&Q){var J;M1N(D.source,function(Z){try{if(Z.parent===Q)return J=Z,!0}catch(y){}});
J&&d4h(x,function(Z){if(Z.contentWindow===J)return L(S),!0})}}};
vaf=function(x){return typeof x==="string"?document.getElementById(x):x};
uR0=function(){var x={};return x[0]=_.Pn(V10,"current"),x[1]=_.Pn(hv0),x[2]=_.Pn(HwN),x};
mo=function(x,L){return x.left===L.left&&x.top===L.top&&x.width===L.width&&x.height===L.height};
gaf=function(x,L){return{left:Math.max(x.left,L.left),top:Math.max(x.top,L.top),width:Math.max(0,Math.min(x.left+x.width,L.left+L.width)-Math.max(x.left,L.left)),height:Math.max(0,Math.min(x.top+x.height,L.top+L.height)-Math.max(x.top,L.top))}};
kes=function(x,L){return{left:Math.round(x.left+L.x),top:Math.round(x.top+L.y),width:x.width,height:x.height}};
pfn=function(x,L,D){if(x&&L!==null&&L!=L.top){if(!L.top)return new _.b8(-12245933,-12245933);L=L.top}try{return(D===void 0?0:D)?(new _.b8(L.innerWidth,L.innerHeight)).round():_.YR(L).round()}catch(S){return new _.b8(-12245933,-12245933)}};
m44=function(x,L,D){try{if(x){if(!L.top)return new Vr(-12245933,-12245933,-12245933,-12245933);L=L.top}var S=pfn(x,L,D),Q=S.height,J=S.width;if(J===-12245933)return new Vr(J,J,J,J);var Z=FZ(Tj(L.document)),y=Z.x,E=Z.y;return new Vr(E,y+J,E+Q,y)}catch(P){return new Vr(-12245933,-12245933,-12245933,-12245933)}};
bwn=function(x){var L;return(L=x.google_tag_data)!=null?L:x.google_tag_data={}};
Y7f=function(x){var L,D;return typeof((L=x.navigator)==null?void 0:(D=L.userAgentData)==null?void 0:D.getHighEntropyValues)==="function"};
sms=function(x){if(!Y7f(x))return null;var L=bwn(x);if(L.uach_promise)return L.uach_promise;x=x.navigator.userAgentData.getHighEntropyValues(FgN).then(function(D){L.uach!=null||(L.uach=D);return D});
return L.uach_promise=x};
Ax0=function(x){var L;return Tbf(ev3(Rv4(Gef(CxO(lbc(U4s(wff(Bbh(new Wgf,x.architecture||""),x.bitness||""),x.mobile||!1),x.model||""),x.platform||""),x.platformVersion||""),x.uaFullVersion||""),((L=x.fullVersionList)==null?void 0:L.map(function(D){var S=new q7N;S=_.ei(S,1,D.brand);return _.ei(S,2,D.version)}))||[]),x.wow64||!1)};
$4f=function(x){var L,D;return(D=(L=sms(x))==null?void 0:L.then(function(S){return Ax0(S)}))!=null?D:null};
rxf=function(x,L){return new jf(function(D){var S=!1,Q=Array(L.length);Q.fill(void 0);var J=new Set,Z=new Set,y=function(V,h){x.running?(Q[h]=V,J.add(h),S||(S=!0,kR(x,function(){S=!1;D.next(_.r0(Q))},1))):D.error(new RD(h))},E=function(V,h){Z.add(h);
J.add(h);kR(x,function(){D.error(V)},1)},P=function(V){Z.add(V);
kR(x,function(){Z.size===L.length&&D.complete()},1)},v=L.map(function(V,h){return V.subscribe(function(H){return void y(H,h)},function(H){return void E(H,h)},function(){return void P(h)})});
return function(){v.forEach(function(V){return void V.unsubscribe()})}})};
fbw=function(x,L,D){function S(){if(L.debugChannel){var G=L.debugChannel,U=G.next;var l={creativeId:L.debugNames.getName(D),requiredSignals:Q,signals:Object.assign({},J),hasPrematurelyCompleted:Z,errorMessage:y,erroredSignalKey:E};l={specMajor:2,specMinor:0,specPatch:0,timestamp:iP(L.timeProvider.now(),new fZ(0,L.timeProvider.timeline)),instanceId:L.debugNames.getName(L.symbol),creativeState:l};U.call(G,l)}}
for(var Q=Object.keys(x),J={},Z=!1,y=null,E=null,P={},v=new Set,V=[],h=[],H=_.O(Q),k=H.next(),T={};!k.done;T={key$jscomp$394:void 0},k=H.next())T.key$jscomp$394=k.value,k=x[T.key$jscomp$394],k instanceof p8?(P[T.key$jscomp$394]=k.value,v.add(T.key$jscomp$394),L.debugChannel&&(J[String(T.key$jscomp$394)]=ViN(k.value))):(k=k.pipe(tB(function(G,U){return jDf(G)||jDf(U)?!1:G===U}),CZ(function(G){return function(U){L.debugChannel&&(J[String(G.key$jscomp$394)]=ViN(U),S());
var l={};return l[G.key$jscomp$394]=U,l}}(T)),aT(function(G){return function(U){if(U instanceof RD)throw new NbN(String(G.key$jscomp$394));
throw U;}}(T)),Tkw(function(G){return function(){v.add(G.key$jscomp$394)}}(T),function(G){return function(U){E=String(G.key$jscomp$394);
y=String(U);S()}}(T),function(G){return function(){v.has(G.key$jscomp$394)||(Z=!0,S())}}(T))),h.push(T.key$jscomp$394),V.push(k));
(x=Object.keys(J).length>0)&&S();H=rxf(L.queue,V).pipe(aT(function(G){if(G instanceof RD)throw new iwc(String(h[G.inputObservableIndex]));throw G;}),CZ(function(G){return Object.freeze(Object.assign.apply(Object,[{},
P].concat(_.lP(G))))}));
return(V=V.length>0)&&x?AB(st(Object.freeze(P)),H):V?H:st(Object.freeze(P))};
oa3=function(x,L,D,S,Q){return x.performanceMonitor.timeExecution.bind(x.performanceMonitor)(733,function(){var J={};try{return L.pipe(aT(function(Z){S(Object.assign({},J,{error:Z}));return qT}),BH(function(Z){try{var y=D(x,Z)}catch(P){return S(Object.assign({},J,{error:P instanceof Error?P:String(P)})),qT}var E={};
return fbw(y,x,Z.symbol).pipe(Tkw(function(P){E=P}),Qr(1),G6()).pipe(Q,aT(function(P){S(Object.assign({},E,{error:P}));
return qT}),xR(void 0),CZ(function(){return!0}))})).pipe(Jc(function(Z){return Z+1},0),aT(function(Z){S(Object.assign({},J,{error:Z}));
return qT}))}catch(Z){return S(Object.assign({},J,{error:Z})),qT}})()};
Gj=function(x){var L=new Map;if(typeof x!=="object"||x===null)return L;Object.values(x).forEach(function(D){D&&typeof D.extrapolateToNow==="function"&&(L.has(D.clock.timeline)||L.set(D.clock.timeline,D.clock.now()))});
return L};
abc=function(x,L){return typeof x==="string"?encodeURIComponent(x):typeof x==="number"?String(x):Array.isArray(x)?x.map(function(D){return abc(D,L)}).join(","):x instanceof fZ?x.toString():x&&typeof x.extrapolateToNow==="function"?abc(x.extrapolateUsingTimestampMap(L).value,L):x===!0?"1":x===!1?"0":x===void 0||x===null?null:x instanceof zvf?Xfc(x):[x.top,
x.left,x.top+x.height,x.left+x.width].join()};
cxO=function(x,L){x=Object.entries(x).map(function(D){var S=_.O(D);D=S.next().value;S=S.next().value;S=abc(S,L);return S===null?"":D+"="+S}).filter(function(D){return D!==""});
return x.length?x.join("&"):""};
xN3=function(x,L){var D=nab,S=t10;L=L===void 0?.01:L;return function(Q){L>0&&Math.random()<=L&&(x.global.HTMLFencedFrameElement&&x.global.fence&&typeof x.global.fence.reportEvent==="function"&&x.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),Q=Object.assign({},Q,{errorMessage:Q.error instanceof Error&&Q.error.message?Q.error.message:String(Q.error),errorStack:Q.error instanceof Error&&Q.error.stack?String(Q.error.stack):null,errorName:Q.error instanceof
Error&&Q.error.name?String(Q.error.name):null,errorContext:String(x.performanceMonitor.timedFunctionContext),errorEscapedQueryId:Q.escapedQueryId}),D(Object.assign({},Q,{payloadMapper:function(){return function(J){try{return S(Object.assign({},J))}catch(Z){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),Gj(Q)).forEach(function(J){x.beaconFactory.makeBeacon(J).sendNow()}))}};
L5c=function(){var x=_.Ne.apply(0,arguments);return function(L){var D=L.pipe(Qr(1),G6());L=x.map(function(S){return D.pipe(S,xR(!0))});
return Ut(L).pipe(cH(1),z6())}};
DNp=function(){var x=_.Ne.apply(0,arguments);return function(L){var D=L.pipe(Qr(1),G6());L=x.map(function(S){return D.pipe(S,xR(!0))});
return AB.apply(null,_.lP(L)).pipe(cH(1),z6())}};
Ss4=function(x,L){return function(D){var S=D.pipe(Qr(1),G6());D=S.pipe(x,xR(!0));S=S.pipe(PH(L,Qr(),G6()),xR(!0));D=Ut([D,S]);return dpb(D,S).pipe(cH(1),z6())}};
Qub=function(x,L,D){D(!0)};
JIN=function(x,L){return PH(Zx(function(D){var S=x(D),Q=L(D),J={};return S&&Q&&J?new jf(function(Z){Q(S,J,function(y){Z.next(Object.assign({},D,{canEmit:y}));Z.complete()});
return function(){}}):C8}),rP(function(D){return D.canEmit}))};
K50=function(x){var L={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(D){return D.pipe(Zx(function(S){return new jf(function(Q){function J(){y.disconnect();E.unsubscribe()}
var Z=x.MutationObserver;if(Z&&S.ref!==void 0){var y=new Z(function(P){Q.next(P)});
y.observe(S.ref,L);var E=S.JSC$9364_released.subscribe(J);return J}})}))}};
Oqs=function(x){if(x.measurementDeferralState===3)return null;if(x.timeOnScreenReason!==void 0){var L=x.creativeFound===!1?"n":null;if(L!==null)return L}return x.geometricMeasurementErrors instanceof l8?"msf":x.contextValidationErrors instanceof Uq?"c":x.contextVisibilityKnown===!1?"pv":x.geometricMeasurementErrors||x.contextValidationErrors?"x":null};
yI0=function(x,L){return x.replace(Zqc,function(D,S){try{var Q=_.wk.get(L,S);if(Q==null||Q.toString()==null)return D;Q=Q.toString();if(Q==""||!_.Ew(Q==null?"":String(Q)))return encodeURIComponent(Q).replace(/%2C/g,",")}catch(J){}return D})};
IKf=function(x,L){var D=Object.assign({},x),S=x.userAgentClientHints;D=(delete D.userAgentClientHints,D);D=x.payloadMapper(D);var Q=cxO(D,L);return _.Bn(x.urlPrefixes,function(J){var Z="";typeof S==="string"&&(Z="&"+cxO({uach:S},L));var y={};return yI0(J,(y.VIEWABILITY=Q,y))+Z})};
nab=function(x,L){var D=x.payloadMapper(x),S=cxO(D,L);return S?_.Bn(x.urlPrefixes,function(Q){Q=Q.indexOf("?")>=0?Q:Q+"?";Q="?&".indexOf(Q.slice(-1))>=0?Q:Q+"&";return Q+S}):x.urlPrefixes};
EVN=function(){return PH(rP(function(x){return x!==void 0}),CZ(function(x){return x}))};
M$4=function(x){return PH(CZ(function(){return!0}),Oq(!1),gk(x))};
dNh=function(x){return x.length<=0?qT:Ut(x.map(function(L){var D=0;return L.pipe(CZ(function(S){return{index:D++,value:S}}))})).pipe(rP(function(L){return L.every(function(D){return D.index===L[0].index})}),CZ(function(L){return L.map(function(D){return D.value})}))};
Pm0=function(x,L){x.currentState&&(x.previousState=x.currentState);x.currentState=L;x.previousState&&x.previousState.value?(L=Math.max(0,iP(L.timestamp,x.previousState.timestamp)),x.totalTime+=L,x.consecutiveTime+=L):x.consecutiveTime=0;return x};
juc=function(){return PH(Jc(Pm0,{totalTime:0,consecutiveTime:0}),CZ(function(x){return x.totalTime}))};
vVf=function(){return PH(Jc(Pm0,{totalTime:0,consecutiveTime:0}),CZ(function(x){return x.consecutiveTime}))};
V$b=function(x,L){return function(D){return dNh(L.map(function(S){return D.pipe(x(S))}))}};
hzb=function(){var x;return PH(Tkw(function(L){return void(x=L.timestamp)}),vVf(),CZ(function(L){return{timestamp:x,
value:Math.round(L)}}))};
Hqh=function(x,L){return mo(x.topWindowViewportExternalGeometry,L.topWindowViewportExternalGeometry)&&mo(x.elementGeometry,L.elementGeometry)&&mo(x.exposedViewportLocalGeometry,L.exposedViewportLocalGeometry)&&mo(x.intersectionGeometry,L.intersectionGeometry)&&x.elementGeometrySourceName===L.elementGeometrySourceName&&x.measurementRequests===L.measurementRequests&&x.viewportGeometrySourceName===L.viewportGeometrySourceName&&x.viewportLocalAppOffset.x===L.viewportLocalAppOffset.x&&x.viewportLocalAppOffset.y===
L.viewportLocalAppOffset.y};
pBs=function(x,L){return function(D){return function(S){var Q=S.pipe(Dx(new hc),G6());S=D.element.pipe(tB());Q=Q.pipe(CZ(function(J){return J.value}));
return Ut([S,Q,L]).pipe(CZ(function(J){var Z=_.O(J);J=Z.next().value;var y=Z.next().value;Z=Z.next().value;if(J.ref===void 0)var E={top:0,left:0,width:0,height:0};else{E=J.ref.getBoundingClientRect();var P=J.ref,v=x.global,V=new _.Wn(0,0),h=qp(_.Ac(P));if(lxb(h,"parent")){do{if(h==v)var H=_.$R(P);else H=uUf(P),H=new _.Wn(H.left,H.top);V.x+=H.x;V.y+=H.y}while(h&&h!=v&&h!=h.parent&&(P=h.frameElement)&&(h=h.parent))}E={top:V.y,left:V.x,width:E.width,height:E.height}}E=kes(E,y.viewportLocalAppOffset);
v=gaf(E,y.exposedViewportLocalGeometry);V=x.timeProvider.now();h=Object;P=h.assign;if(Z!==2||x.inCrossDomainIframe||v.width<=0||v.height<=0)var k=!1;else try{var T=x.document.elementFromPoint(v.left+v.width/2,v.top+v.height/2);k=T?!gVh(T,J):!1}catch(G){k=!1}return{timestamp:V,value:P.call(h,{},y,{elementGeometrySourceName:"geo",intersectionGeometry:k?kJf.intersectionGeometry:v,elementGeometry:E})}}),Hn(x.queue))}}};
gVh=function(x,L,D){D=D===void 0?0:D;return x.ref===void 0||L.ref===void 0?!1:x.ref===L.ref||_.rk(L.ref,function(S){return S===x.ref})?!0:L.ref.ownerDocument&&L.ref.ownerDocument.defaultView&&L.ref.ownerDocument.defaultView===L.ref.ownerDocument.defaultView.top?!1:D<10&&L.ref.ownerDocument&&L.ref.ownerDocument.defaultView&&L.ref.ownerDocument.defaultView.frameElement?gVh(x,new Np(L.ref.ownerDocument.defaultView.frameElement),D+1):!0};
YsO=function(x){return function(L){return L.pipe(x.ResizeObserver?mN0(x):bq0(x),Qr(1),G6())}};
mN0=function(x){return function(L){return L.pipe(Zx(function(D){var S=x.ResizeObserver;if(!S||D.ref===void 0)return st(kJf.elementGeometry);var Q=(new jf(function(J){function Z(){D.ref!==void 0&&y.unobserve(D.ref);y.disconnect();E.unsubscribe()}
if(D.ref===void 0)return J.complete(),function(){};
var y=new S(function(P){P.forEach(function(v){J.next(v)})});
y.observe(D.ref);var E=D.JSC$9364_released.subscribe(Z);return Z})).pipe(oT(x.performanceMonitor,736),CZ(function(J){return J.contentRect}));
return AB(st(D.ref.getBoundingClientRect()),Q)}),tB(mo))}};
bq0=function(x){return function(L){var D=L.pipe(K50(x)),S=x.onResize;D=AB(L.pipe(CZ(function(){return Lgw("resize")})),D,S);
return Ut(L,D).pipe(oT(x.performanceMonitor,737),CZ(function(Q){Q=_.O(Q).next().value;return Q.ref===void 0?void 0:Q.ref.getBoundingClientRect()}),EVN(),tB(mo))}};
ezw=function(x,L){var D=F5G(x,L).pipe(Qr(1),G6());return function(S){return function(Q){Q=Q.pipe(Zx(function(J){return J.element}),tB());
return Ut([D,Q]).pipe(Zx(function(J){var Z=_.O(J);J=Z.next().value;Z=Z.next().value;return THp(x,J.intersectionObserver,YsO(x),J.observations,S,J.flushRecords,Z)}),Hn(x.queue))}}};
Rzw=function(x){return CZ(function(L){return L.value.viewportGeometrySourceName!=="nio"?L:Object.assign({},L,{value:Object.assign({},L.value,{exposedViewportLocalGeometry:i8(x,!0),topWindowViewportExternalGeometry:i8(x,!0)})})})};
GJf=function(x,L){return st(L).pipe(x,CZ(function(){return L}))};
F5G=function(x,L){return x.timeProvider.timeline!==Cmf?T6(new l8(2)):x.MutationObserver?typeof IntersectionObserver==="undefined"?T6(new l8(0)):(new jf(function(D){var S=new hc,Q=new f8(S.next.bind(S),{threshold:[].concat(_.lP(L))});D.next({observations:S.pipe(oT(x.performanceMonitor,735)),intersectionObserver:Q,flushRecords:function(J){J=Q.takeRecords(J);J.length>0&&S.next(J)}})})).pipe(cH(1),Qr(1),G6()):T6(new l8(1))};
lK0=function(x){return lEN(x.sort(function(L,D){return L.time-D.time}),NPf)};
THp=function(x,L,D,S,Q,J,Z){return new jf(function(y){function E(){k||(k=!0,Z.ref!==void 0&&L.unobserve(Q,Z.ref),v.unsubscribe(),H.unsubscribe(),h.unsubscribe(),T.unsubscribe())}
if(Z.ref!==void 0){UNh(L,Q);L.observe(Q,Z.ref);var P=new oD({timestamp:x.timeProvider.now(),value:Object.assign({},kJf,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),v=S.pipe(BH(function(G){return lK0(G)}),rP(function(G){return G.target===Z.ref}),CZ(function(G){return{timestamp:new fZ(G.time,Cmf),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:G.rootBounds||zj,topWindowViewportExternalGeometry:G.rootBounds||i8(x,!0),measurementRequests:V,elementGeometrySourceName:"nio",intersectionGeometry:G.intersectionRect,elementGeometry:G.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:G.isIntersecting,isV2Visible:G.isVisible}}}),Dx(P),G6()).subscribe(y),V=new hc,h=V.subscribe(function(){J(Q);
y.next({timestamp:x.timeProvider.now(),value:P.value.value});Z.ref!==void 0&&(L.unobserve(Q,Z.ref),L.observe(Q,Z.ref))}),H=GJf(D,Z).subscribe(function(){V.next()}),k=!1,T=Z.JSC$9364_released.subscribe(function(){return E()});
return E}})};
wBs=function(x,L){var D=x.getOnBackgrounded().pipe(CZ(function(){return"b"}));
return dpb(L,D).pipe(cH(1),gk(x.queue))};
XZ=function(x){return function(L){var D;return L.pipe(Tkw(function(S){return void(D=S.timestamp)}),CZ(function(S){return S.value}),x,CZ(function(S){return{timestamp:D,
value:S}}))}};
BHh=function(x){return x.intersectionGeometry.width*x.intersectionGeometry.height/(x.elementGeometry.width*x.elementGeometry.height)};
cn=function(x,L,D){D=D===void 0?function(S,Q){return S===Q}:D;
return x.timestamp.equals(L.timestamp)&&D(x.value,L.value)};
tc=function(x,L){return L.pipe(CZ(function(D){return new n8(x.timeProvider,{timestamp:x.timeProvider.now(),value:D})}))};
W5p=function(x){return function(L){return L.pipe(e93(x),CZ(function(D){var S=_.O(D);D=S.next().value;S=S.next().value;var Q=D.value;return{timestamp:D.timestamp,value:Q>=1?!0:Q<=0?!1:Q>=S}}))}};
AIO=function(){return PH(rP(function(x,L){return L>0}),qs0,Oq(-1),tB())};
$Nb=function(x,L,D){return x?Ut([L,D]).pipe(rP(function(S){var Q=_.O(S);S=Q.next().value;Q=Q.next().value;return S.timestamp.equals(Q.timestamp)}),CZ(function(S){var Q=_.O(S);
S=Q.next().value;Q=Q.next().value;return S.value>Q.value?S:Q})):L};
iq3=function(x){return function(L){var D=L.pipe(rIp),S=L.pipe(NHn);return x instanceof jf?x.pipe(Zx(function(Q){return $Nb(Q,D,S)})):$Nb(x.value,D,S)}};
Lrp=function(x,L,D,S){var Q=S.geometryIsOccluded,J=S.exposureThreshold,Z=S.wasLargeAdAtRender,y=S.allowLargeAdThreshold,E=S.largeAdExposureThreshold,P=S.mayUseViewportShareExposure,v=S.hasMeasurementStarted;S=S.useIntersectionObserverV2;L=fKf(x,D,L);D=oVf(x,D);S=aK0(L,S);var V=zzG(x,Q,P,L),h=V.pipe(CZ(function(N){return N.value}),tB(),gk(x),Jc(function(N,z){return Math.max(N,z)},0)),H=V.pipe(CZ(function(N){return N.value}),AIO(),gk(x)),k=L.pipe(XBw,CZ(function(N){return N.value}),cH(2),tB(),gk(x));
Z=cIb(x,L,Z,y);var T=Z.pipe(Oq(!1),tB(),CZ(function(N){return N?E:J}));
y=V.pipe(W5p(T),tB(),gk(x));var G=Ut([y,L]).pipe(rP(function(N){var z=_.O(N);N=z.next().value;z=z.next().value;return N.timestamp.equals(z.timestamp)}),CZ(function(N){var z=_.O(N);
N=z.next().value;z=z.next().value;return{visible:N.value,geometry:z.value.elementGeometry}}),Jc(function(N,z){return!z.visible&&N.visible?N:z},{visible:!1,
geometry:zj}),CZ(function(N){return N.geometry}),Oq(zj),gk(x),tB(mo));
P=P instanceof jf?P.pipe(tB(),X5()):C8;T=Ut([P,T]).pipe(X5());var U=L.pipe(rP(function(N){return N.value.viewportGeometrySourceName!=="ns"&&N.value.elementGeometrySourceName!=="ns"}),Jc(function(N){return N+1},0),Oq(0),gk(x)),l=D.pipe(X5(!0),Oq(!1),gk(x));
l=Ut([v,l]).pipe(CZ(function(N){var z=_.O(N);N=z.next().value;z=z.next().value;return N&&!z}),gk(x));
var X=L.pipe(nV0,tB()),f=X.pipe(CZ(function(N){return N.value}),Jc(function(N,z){return Math.max(N,z)},0),tB(),gk(x));
x=X.pipe(CZ(function(N){return N.value}),AIO(),gk(x));
return{shouldResetExposureSignals:P,shouldResetViewabilitySignals:T,geometrySignals:{readyGeometryWithDefault:L,measurementStrategy:L.pipe(t$N),creativePosition:G.pipe(tB(mo)),visible:y.pipe(tB(cn)),timestampedExposure:V.pipe(tB(cn)),maximumExposure:h,minimumExposure:H,browserSize:L.pipe(x9b,tB(_.Xh)),timestampedScreenShare:X,maxScreenShare:f,minScreenShare:x,geometricMeasurementErrors:D,measurementRequests:L.pipe(CZ(function(N){return N.value.measurementRequests})),
isLargeAd:Z,geometryIsOccluded:Q,hasMeasurementStarted:v,geometryMeasurable:l,validMeasurementCount:U,loadTimeExposure:k,v2VisibilityBitVector:S}}};
oVf=function(x,L){return L.pipe(rP(function(){return!1}),CZ(function(D){return D}),aT(function(D){return xa(new p8(D),x)}))};
fKf=function(x,L,D){return L.pipe(ERc(C8),gk(x)).pipe(tB(function(S,Q){return cn(S,Q,Hqh)}),Oq({timestamp:D.now(),
value:kJf}),gk(x))};
zzG=function(x,L,D,S){D=S.pipe(iq3(D),XZ(CZ(function(Q){return Math.round(Q*100)/100})),gk(x));
return L instanceof p8?D:Ut([D,L]).pipe(CZ(function(Q){var J=_.O(Q);Q=J.next().value;J=J.next().value;return{timestamp:J.timestamp.maximum(Q.timestamp),value:J.value?0:Q.value}}),tB(cn),gk(x))};
cIb=function(x,L,D,S){L=[L.pipe(CZ(function(Q){return Q.value.elementGeometry.width*Q.value.elementGeometry.height>=242500}))];
D instanceof jf&&L.push(D.pipe(CZ(function(Q){return!!Q})));
D=Ut(L);return S?D.pipe(CZ(function(Q){return Q.some(function(J){return J})}),Oq(!1),tB(),gk(x)):xa(new p8(!1),x)};
aK0=function(x,L){x=Ut([x,L]).pipe(CZ(function(Q){var J=_.O(Q);Q=J.next().value;if(J.next().value&&Q.value.isIntersecting)return Q.value.isV2Visible}),tB());
var D=x.pipe(CZ(function(Q){return Q===void 0?!0:Q}),Jc(function(Q,J){return Q||!J},!1)),S=x.pipe(Jc(function(Q,J){return J===void 0?Q:J?!1:Q!=null?Q:!0},void 0),CZ(function(Q){return!!Q}));
return Ut([L,P8w(x,D,S)]).pipe(CZ(function(Q){var J=_.O(Q);Q=J.next().value;var Z=_.O(J.next().value);J=Z.next().value;var y=Z.next().value;Z=Z.next().value;var E=0;if(!Q)return 0;if(J===void 0)return 16;J&&(E|=1);J||(E|=2);y&&(E|=4);Z&&(E|=8);return E}))};
Omf=function(x,L,D,S,Q){var J=D9w.timeThresholdMs;var Z=Z===void 0?new SXw(L,S):Z;return(new jf(function(y){var E=D.pipe(Oq(void 0),Zx(function(){return Q1w(Q)})).pipe(CZ(function(P){var v=P.value;
P=P.timestamp;var V=v.visible;v=v.consecutiveViewTime;var h=v>=J;h||!V?Jus(Z):(P=Math.max(0,iP(L.now(),P)),KrN(Z,Math.max(0,J-v-P)));return h}),Jc(function(P,v){return v||P},!1),tB()).subscribe(y);
return function(){Z.dispose();E.unsubscribe()}})).pipe(yr(function(y){return!y},!0),gk(x))};
Q1w=function(x){return dNh([x,x.pipe(hzb())]).pipe(CZ(function(L){var D=_.O(L);L=D.next().value;D=D.next().value;return{timestamp:L.timestamp,value:{visible:L.value,consecutiveViewTime:D.value}}}),tB(function(L,D){return cn(L,D,function(S,Q){return S.consecutiveViewTime===Q.consecutiveViewTime&&S.visible===Q.visible})}))};
Zmh=function(){return PH(vVf(),Jc(function(x,L){return Math.max(x,L)},0),CZ(function(x){return Math.round(x)}))};
yuG=function(x){return PH(W5p(st(x)),Zmh())};
Iaf=function(x,L){return L instanceof jf?L.pipe(Zx(function(D){return(D=D?15:null)?T6(new l8(D)):x})):(L=L.value?15:null)?T6(new l8(L)):x};
E6G=function(x){var L=new l8(13);if(x.length<1)return{chain:qT,capturedErrors:qT};var D=new hc,S=x[0];return{chain:x.slice(1).reduce(function(Q,J){return Q.pipe(aT(function(Z){D.next(Z);return J}))},S).pipe(aT(function(Q){D.next(Q);
return T6(L)}),Dx(new hc),G6()),
capturedErrors:D}};
MFs=function(x,L){var D=x.pipe(Dx(new hc),G6());return Zx(function(S){return D.pipe(L(S))})};
Pff=function(x,L){if(x.inCrossDomainIframe)return T6(new l8(6));var D=new hc;return AB(st({}),L,D).pipe(CZ(function(){return{timestamp:x.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:d93(x),topWindowViewportExternalGeometry:i8(x,!0),measurementRequests:D,viewportLocalAppOffset:{x:0,y:0}}}}),Hn(x.queue))};
d93=function(x){var L=i8(x,!1);if(!x.inIframe||!Up4(x.global.parent)||x.global.parent===x.global)return L;var D=new Lw(x.global.parent,x.debugChannel);D.beaconFactory=x.beaconFactory;D=d93(D);x=x.global.frameElement.getBoundingClientRect();return gaf(kes(gaf(D,x),{x:L.left-x.left,y:L.top-x.top}),L)};
j1G=function(x){if(x.prerendering)return 3;var L;return(L={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[x.visibilityState||x.webkitVisibilityState||x.mozVisibilityState||""])!=null?L:0};
v6c=function(x){return x.document.JSC$9375_onVisibilityChange.pipe(CZ(function(L){return L==="visible"}),tB(),gk(x.queue))};
VFc=function(x,L,D){var S;return L.pipe(tB(),Zx(function(Q){return D.pipe(CZ(function(){if(!S){S=!0;try{Q.next()}finally{S=!1}}return!0}))}),Oq(!1),gk(x.queue))};
h1s=function(x){return PH(XZ(CZ(function(L){return L>=1?!0:L<=0?!1:L>=x})),juc(),CZ(function(L){return Math.round(L)}))};
u03=function(x,L,D,S,Q){var J=Hmc;if(J.length>1)for(var Z=0;Z<J.length-1;Z++)if(J[Z]<J[Z+1])throw Error();Z=Q.pipe(Oq(void 0),Zx(function(){return D.pipe(hzb())}),tB(),gk(x));
Q=Q.pipe(Oq(void 0),Zx(function(){return D.pipe(Zmh())}),tB(),gk(x));
return{totalMeasurementTime:S.pipe(Oq(void 0),Zx(function(){return L.pipe(CZ(function(y){return{timestamp:y.timestamp,value:!0}}),juc())}),tB(),gk(x)),
totalUnviewedTime:S.pipe(Oq(void 0),Zx(function(){return L.pipe(CZ(function(y){return{timestamp:y.timestamp,value:y.value===0}}),juc())}),tB(),gk(x)),
maxTimeOnScreen:S.pipe(Oq(void 0),Zx(function(){return L.pipe(V$b(yuG,J))}),tB(_.Xh),gk(x)),
timeOnScreen:S.pipe(Oq(void 0),Zx(function(){return L.pipe(V$b(h1s,J),CZ(function(y){return y.map(function(E,P){return P>0?E-y[P-1]:E})}))}),tB(_.Xh),gk(x)),
maxConsecutiveViewTime:Q,consecutiveViewTime:Z.pipe(tB(cn),gk(x))}};
kSb=function(x){var L=!0;L=L===void 0?!1:L;return PH(Zx(function(D){return g60(x.document,D,L)}),gk(x.queue))};
pdw=function(x,L,D){var S=D.pipe(CZ(function(Q){return{value:Q,timestamp:x.timeProvider.now()}}),tB(cn));
return L instanceof jf?L.pipe(tB(),Zx(function(Q){return Q?xa(new p8({value:!1,timestamp:x.timeProvider.now()}),x.queue):S})):L.value===!1?S:new p8(!1)};
m9s=function(x,L,D,S,Q,J,Z){var y=D9w;L=L instanceof jf?L.pipe(Oq(!1),tB()):L;var E=!x.isMobile();D=pdw(x,D,S);x=Z.measurableCreative.pipe(M$4(x.queue));return Object.assign({},y,{geometryIsOccluded:D,wasLargeAdAtRender:Q,allowLargeAdThreshold:E,mayUseViewportShareExposure:L,hasMeasurementStarted:x,useIntersectionObserverV2:J})};
YXO=function(x,L,D,S,Q,J){var Z=1;J=J===void 0?!0:J;Z=Z===void 0?.01:Z;var y=y===void 0?x.timeProvider.intervalObservable(100).pipe(gk(x.queue)):y;return x.performanceMonitor.timeExecution(916,function(){return bmh(x,L.pipe(Hn(x.queue)),D.pipe(Hn(x.queue)),S,Q,J,Z,y)})()};
bmh=function(x,L,D,S,Q,J,Z,y){var E=v6c(x).pipe(CZ(function(v){return!v})),P=new FrO(x,[new s10(x,Hmc),
new TOw(x,y)]);y=L5c(e1n,R14);return oa3(x,L,function(v,V){var h=xa(new p8(V.element),v.queue).pipe(kSb(v),gk(v.queue)),H={loadedElement:h,shouldMeasure:h.pipe(X5(!0)),measurableCreative:h.pipe(CZ(function(N){var z=z===void 0?Symbol():z;return Object.freeze({symbol:z,element:xa(new p8(N),v.queue)})})),
creativeSearchResult:xa(new p8("mue"),v.queue)},k=new p8(!1),T=new p8(!1),G=new p8(17),U=new p8(!1),l=new p8(!1),X=xa(Db,v.queue);k=P.buildGeometrySource(H,{inApp:k,useV2:!1,requestSource:xa(G,v.queue)}).geometrySource;H=m9s(v,U,T,E,l,X,H);T=Lrp(v.queue,v.timeProvider,k,H);H=T.geometrySignals;U=T.shouldResetViewabilitySignals;T=u03(v.queue,H.timestampedExposure,H.visible,T.shouldResetExposureSignals,U);U=Omf(v.queue,v.timeProvider,U,H.measurementRequests,H.visible);l=D.pipe(rP(function(N){return N===
V.element.ref}),CZ(function(){return"ur"}));
X=h9f(v.timeProvider,Q).pipe(X5("t"));l=wBs(v,AB(l,X));X=VFc(v,H.measurementRequests,l.pipe(rP(function(N){return N!==null})));
k=l.pipe(rP(function(N){return N!==null}),CZ(function(){return j1G(v.global.document)===1}));
var f=GSw(v.document);return Object.assign({},{beaconFactory:new p8(v.beaconFactory),context:new p8(v),inferredPingId:new p8("lidar2"),timeOnScreenPingId:new p8("lidartos"),binaryContext:new p8(17),binaryVersion:new p8(S),requestSource:G,contextValidationErrors:new p8(v.validate()?null:new Uq),contextVisibilityKnown:new p8(f),payloadMapper:new p8(t10),endOfSessionReason:l,timeOnScreenReason:l,requestMeasurementOnEndOfSession:X,hasImpressionFired:Cfp,crossDomainIframeState:new p8(v.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:Db,inFetchLaterBeaconExperiment:Db,isTurtlex:Db,turtlexReportEventData:new p8(""),reportFencedFrameEvent:C8,isViewableAttributionEnabled:Db,inViewableAttributionExperiment:new p8(0),fetchBeaconFactory:C8,supportsPendingBeacon:Db,supportsFetchLater:Db,emit:new p8(Qub),beginToRenderEvent:new p8(Symbol()),activeViewUnmeasurableEvent:new p8(Symbol()),activeViewViewableEvent:new p8(Symbol()),creativeFound:Cfp,immediateUrlPrefixes:new p8(V.immediateUrls),timeOnScreenUrlPrefixes:new p8(V.timeOnScreenUrls),
cpmavUrls:C8,viewableRelayUrls:C8,measurementDeferralState:new p8(2),urlSerializer:new p8(IKf),viewUrlSerializer:new p8(lac),isCreativeLoaded:h.pipe(M$4(v.queue)),pageVisible:E.pipe(CZ(function(N){return!N})),
eosPageVisible:k,timestampedExposureHistory:H.timestampedExposure.pipe(Jc(function(N,z){N.push(z);return N},[]))},H,{viewable:tc(v,U),
maxTimeOnScreen:tc(v,T.maxTimeOnScreen),timeOnScreen:tc(v,T.timeOnScreen),maxConsecutiveViewTime:tc(v,T.maxConsecutiveViewTime),consecutiveViewTime:T.consecutiveViewTime.pipe(CZ(function(N){return new n8(v.timeProvider,N)})),
totalMeasurementTime:tc(v,T.totalMeasurementTime),totalUnviewedTime:tc(v,T.totalUnviewedTime),userAgentClientHints:x4b(v),clientOrderPingCounter:new p8(new zvf)})},xN3(x,Z),DNp(J?Ss4(y,U9c):Ss4(y,wdp),BO0))};
Wrh=function(x){var L=_.Ne.apply(1,arguments).filter(Boolean).join("&");if(!L)return x;var D=x.match(/[?&]adurl=/);return D?x.slice(0,D.index+1)+L+"&"+x.slice(D.index+1):x+(x.indexOf("?")<0?"?":"&")+L};
S1=function(x,L){return L?"&"+x+"="+encodeURIComponent(L):""};
qXc=function(){try{var x,L;return!!((x=window)==null?0:(L=x.top)==null?0:L.location.href)&&!1}catch(D){return!0}};
_.Q1=function(x){x&&typeof x.dispose=="function"&&x.dispose()};
_.Jx=function(x){for(var L=0,D=arguments.length;L<D;++L){var S=arguments[L];_.Nf(S)?_.Jx.apply(null,S):_.Q1(S)}};
$9b=function(){var x=Auc();x=x===void 0?"bevasrsg":x;return new Promise(function(L){var D=window===window.top?window:qXc()?window:window.top,S=D[x],Q;((Q=S)==null?0:Q.bevasrs)?L(new Kw(S.bevasrs)):(S||(S={},S=(S.nqfbel=[],S),D[x]=S),S.nqfbel.push(function(J){L(new Kw(J))}))})};
ruf=function(x){var L={c:x.o2,e:x.xhg,mc:x.mbF,me:x.byW};x.we&&(L.co={c:x.we.fQq,a:x.we.jQn,s:x.we.vy9});return L};
NOf=function(x){var L,D,S={o2:x.c,xhg:x.e,mbF:(L=x.mc)!=null?L:!1,byW:(D=x.me)!=null?D:!1};x.co&&(S.we={fQq:x.co.c,jQn:x.co.a,vy9:x.co.s});return S};
im0=function(x){return function(){var L;return _.I(function(D){if(D.nextAddress==1)return D.yield(x(),2);L=D.yieldResult;return D.return({f:function(){return L.bwm()},
c:function(S){return L.pcB(S)},
m:function(S){return L.gT(NOf(S))},
mws:function(S){return L.moC(NOf(S))}})})}};
faG=function(x,L){var D=Auc();D=D===void 0?"bevasrsg":D;L={s:function(J){var Z;return x.snapshot(Object.assign({},J.c&&{o2:J.c},J.s&&{cT7:J.s},{hlV:(Z=J.p)!=null?Z:!0}))},
e:function(J){var Z;return void((Z=x.vV7)==null?void 0:Z.call(x,J))},
c:function(J,Z){return x.mR8(J,Z)},
p:x.d17,l:function(){return x.kix()},
wpc:L?im0(L):void 0};var S=window===window.top?window:qXc()?window:window.top,Q=S[D];if(Q){Q.bevasrs=L;if(Q.nqfbel!==void 0)for(D=_.O(Q.nqfbel),S=D.next();!S.done;S=D.next())S=S.value,S(L);Q.nqfbel=void 0}else Q={},Q=(Q.bevasrs=L,Q.nqfbel=void 0,Q),S[D]=Q};
aas=function(x){var L=L===void 0?51:L;var D=[];_.O7(x,o6w,6,_.Zb()).forEach(function(S){_.y1(S,2)<=L&&D.push(_.y1(S,1))});
return D};
z13=function(x){var L=L===void 0?51:L;var D=[];_.O7(x,o6w,6,_.Zb()).forEach(function(S){_.y1(S,2)>L&&D.push(_.y1(S,1))});
return D};
Xdf=function(x){x.then(function(){},function(){})};
Im=function(x){return{fieldType:1,fieldName:x}};
E7=function(x){return{fieldType:2,fieldName:x}};
_.M4=function(x){return{fieldType:3,fieldName:x}};
cus=function(){function x(){Q[0]=1732584193;Q[1]=4023233417;Q[2]=2562383102;Q[3]=271733878;Q[4]=3285377520;v=P=0}
function L(V){for(var h=Z,H=0;H<64;H+=4)h[H/4]=V[H]<<24|V[H+1]<<16|V[H+2]<<8|V[H+3];for(H=16;H<80;H++)V=h[H-3]^h[H-8]^h[H-14]^h[H-16],h[H]=(V<<1|V>>>31)&4294967295;V=Q[0];var k=Q[1],T=Q[2],G=Q[3],U=Q[4];for(H=0;H<80;H++){if(H<40)if(H<20){var l=G^k&(T^G);var X=1518500249}else l=k^T^G,X=1859775393;else H<60?(l=k&T|G&(k|T),X=2400959708):(l=k^T^G,X=3395469782);l=((V<<5|V>>>27)&4294967295)+l+U+X+h[H]&4294967295;U=G;G=T;T=(k<<30|k>>>2)&4294967295;k=V;V=l}Q[0]=Q[0]+V&4294967295;Q[1]=Q[1]+k&4294967295;Q[2]=
Q[2]+T&4294967295;Q[3]=Q[3]+G&4294967295;Q[4]=Q[4]+U&4294967295}
function D(V,h){if(typeof V==="string"){V=unescape(encodeURIComponent(V));for(var H=[],k=0,T=V.length;k<T;++k)H.push(V.charCodeAt(k));V=H}h||(h=V.length);H=0;if(P==0)for(;H+64<h;)L(V.slice(H,H+64)),H+=64,v+=64;for(;H<h;)if(J[P++]=V[H++],v++,P==64)for(P=0,L(J);H+64<h;)L(V.slice(H,H+64)),H+=64,v+=64}
function S(){var V=[],h=v*8;P<56?D(y,56-P):D(y,64-(P-56));for(var H=63;H>=56;H--)J[H]=h&255,h>>>=8;L(J);for(H=h=0;H<5;H++)for(var k=24;k>=0;k-=8)V[h++]=Q[H]>>k&255;return V}
for(var Q=[],J=[],Z=[],y=[128],E=1;E<64;++E)y[E]=0;var P,v;x();return{reset:x,update:D,digest:S,digestString:function(){for(var V=S(),h="",H=0;H<V.length;H++)h+="0123456789ABCDEF".charAt(Math.floor(V[H]/16))+"0123456789ABCDEF".charAt(V[H]%16);return h}}};
S2N=function(x,L){L=L===void 0?n6h:L;if(!tFs){var D;x=(D=x.navigator)==null?void 0:D.userAgentData;if(!x||typeof x.getHighEntropyValues!=="function"||x.brands&&typeof x.brands.map!=="function")return Promise.reject(Error("ua"));xwf((x.brands||[]).map(function(Q){var J=new LvO;J=_.ei(J,1,Q.brand);return _.ei(J,2,Q.version)}));
typeof x.mobile==="boolean"&&_.db(Dw0,2,x.mobile);tFs=x.getHighEntropyValues(L)}var S=new Set(L);return tFs.then(function(Q){var J=Dw0.clone();S.has("platform")&&_.ei(J,3,Q.platform);S.has("platformVersion")&&_.ei(J,4,Q.platformVersion);S.has("architecture")&&_.ei(J,5,Q.architecture);S.has("model")&&_.ei(J,6,Q.model);S.has("uaFullVersion")&&_.ei(J,7,Q.uaFullVersion);return J.serialize()}).catch(function(){return Dw0.serialize()})};
Pf=function(x,L,D,S){this.initialValue_=x;this.maxValue_=L;this.currBaseValue_=this.currValue_=x;this.randomFactor_=D||0;this.backoffFactor_=S||2};
j1=function(x){this.src=x;this.listeners={};this.typeCount_=0};
OHw=function(){for(var x;x=QZh.remove();){try{x.fn.call(x.scope)}catch(L){JG(L)}J8b.put(x)}Kvs=!1};
_.ZHN=function(x){switch(x){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}};
y8w=function(x){switch(x){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""}};
_.INc=function(){};
HHN=function(x,L,D,S){x=EQO(MTs(dw3(new _.vf(1828,"0"),x),new Pj0)).disableWithCredentials();L.length&&jZb(x,vQn(new VTn,L));S!==void 0&&(x.destinationUrl=S);var Q=new hhN(1828,"","",!1,"",x.build());_.V1(Q,x);var J=new ux({flush:function(Z){try{Q.flush(Z)}catch(y){D(y)}}});
J.addOnDisposeCallback(function(){setTimeout(function(){try{J.snapshotAndFlush()}finally{Q.dispose()}})});
J.invocationLimit=1E5;J.flushInterval=3E4;J.JSC$9791_flushTimer.setInterval(3E4);return J};
gb=function(){var x,L,D;return(D=(x=globalThis.performance)==null?void 0:(L=x.now)==null?void 0:L.call(x))!=null?D:Date.now()};
kUG=function(x,L){if(x.disable)return new uDs;L=L?aas(L):[];x={iV:x.iV,rJg:x.yPF,uun:x.lsX,destinationUrl:x.destinationUrl,rd8:x.rd8,jo8:x.jo8};L=L===void 0?[]:L;return new gQw(x,L)};
pY4=function(x){if(!x)return null;x=_.ka(x,2);return x===null||x===void 0?null:aN(x)};
_.mw0=function(x){if(!x)return null;x=_.ka(x,4);return x===null||x===void 0?null:_.Ti(x)};
Fvs=function(x,L){return L?bHG(L):x?Y2c(x):Promise.resolve()};
bHG=function(x){return new Promise(function(L,D){var S=_.pw("SCRIPT"),Q=_.mw0(x);_.QD(S,Q);S.onload=function(){_.mg(S);L()};
S.onerror=function(){_.mg(S);D(Error("Fa"))};
(bx("HEAD")[0]||document.documentElement).appendChild(S)})};
Y2c=function(x){return new Promise(function(L){var D=_.pw("SCRIPT");if(x){var S=_.ka(x,6);S=S===null||S===void 0?null:_.DE(S)}else S=null;_.Sf(D,S);(bx("HEAD")[0]||document.documentElement).appendChild(D);_.mg(D);L()})};
Ya=function(x,L,D){var S,Q=new Promise(function(J){S=setTimeout(J,L)});
return Promise.race([x.finally(function(){return void clearTimeout(S)}),
Q.then(D)])};
sZs=function(x,L){try{return globalThis.sessionStorage.setItem(x,L),!0}catch(D){return!1}};
TEf=function(x,L,D,S){L=L===void 0?0:L;D=D===void 0?x.length:D;var Q=0;for(S&&(Q=TEf(S));L<D;L++)S=typeof x==="string"?x.charCodeAt(L):x[L],Q=ehf(31,Q)+S|0;return Q};
RhO=function(x,L){return[TEf(x,0,x.length>>1,L),TEf(x,x.length>>1)]};
GUp=function(x){var L=_.O(RhO(x,FR));x=L.next().value;L=L.next().value;return x.toString(16)+L.toString(16)};
Cjf=function(x,L){var D=RhO(L);x=new Uint32Array(x.buffer);L=x[0];var S=_.O(D);D=S.next().value;S=S.next().value;for(var Q=1;Q<x.length;Q+=2){for(var J=L,Z=Q,y=D,E=S,P=0;P<22;P++)Z=Z>>>8|Z<<24,Z+=J|0,Z^=y+38293,J=J<<3|J>>>29,J^=Z,E=E>>>8|E<<24,E+=y|0,E^=P+38293,y=y<<3|y>>>29,y^=E;J=[J,Z];x[Q]^=J[0];Q+1<x.length&&(x[Q+1]^=J[1])}};
lNs=function(x,L,D,S,Q){var J=(4-(FR.length+D.length)%4)%4,Z=new Uint8Array(4+J+FR.length+4+D.length),y=new DataView(Z.buffer),E=0;y.setUint32(E,Math.random()*4294967295);E=E+4+J;Z.set(FR,E);E+=FR.length;y.setUint32(E,Q);Z.set(D,E+4);Cjf(Z,S);return x.insert(L,function(P){return void globalThis.sessionStorage.removeItem(P)})?sZs(L,_.Gg(Z))?"s":"t":"i"};
UwN=function(x,L){var D=globalThis.sessionStorage.getItem(x);if(!D)return["m"];try{var S=_.tG(D);Cjf(S,L)}catch(Q){return globalThis.sessionStorage.removeItem(x),["c"]}for(L=4;L<7&&S[L]===0;)L++;for(D=0;D<FR.length;D++)if(S[L++]!==FR[D])return globalThis.sessionStorage.removeItem(x),["d"];D=(new DataView(S.buffer)).getUint32(L);return Math.floor(Date.now()/1E3)>=D?(globalThis.sessionStorage.removeItem(x),["e"]):["a",new Uint8Array(S.buffer,L+4)]};
wY4=function(x){return globalThis.TextEncoder?(new TextEncoder).encode(x):_.s7(x)};
BEN=function(x){var L=x,D;return function(){if(L){var S=L;L=void 0;D=S.apply(this,arguments)}return D}};
q2n=function(x){return TB(function(L){if(L instanceof x)return!0;var D,S,Q=L==null?void 0:(D=L.ownerDocument)==null?void 0:(S=D.defaultView)==null?void 0:S[x.name];return Wv0(Q)&&L instanceof Q})};
_.Rm=function(x,L,D){_.Te.call(this);this.JSC$10005_listener_=x;this.JSC$10005_interval_=L||0;this.handler_=D;this.callback_=(0,_.e1)(this.JSC$10007_doAction_,this)};
_.Cw=function(x){x=A80(x);return _.Ti(x)};
A80=function(x){return x===null?"null":x===void 0?"undefined":x};
r83=function(x){if(x&&x.focus)if(x!==document.activeElement)x.focus();else return $wb(function(){return _.I(function(L){document.activeElement&&document.activeElement.blur();return L.return($wb(function(){x.focus()}))})})};
_.NE0=function(x){var L=L===void 0?5:L;setTimeout(function(){var D;return _.I(function(S){S.nextAddress==1&&(D=document.activeElement);if(S.nextAddress!=5)return(document.activeElement===D||document.activeElement===document.body)&&L>=0&&x?S.yield(r83(x),5):S.jumpTo(0);if(document.activeElement===x)return S.return();x=x.parentElement;--L;return S.jumpTo(2)})},15)};
$wb=function(x){return new Promise(function(L){requestAnimationFrame(function(){L(x())})})};
fNf=function(x){if(_.lx)x(_.lx);else{var L;((L=iHG)!=null?L:iHG=[]).push(x)}};
wb=function(){!_.lx&&_.U7&&_.oQf(_.U7());return _.lx};
_.oQf=function(x){_.lx=x;var L;(L=iHG)==null||L.forEach(fNf);iHG=void 0};
_.Bf=function(x){_.lx&&_.lx.beforeLoadModuleCode(x)};
_.Wf=function(){_.lx&&_.lx.JSC$11061_setLoaded()};
q4=function(x){return lh0(x)?Number(x):String(x)};
aN4=function(x){this.action=x;this.wfv=!1};
zhG=function(x,L){aN4.call(this,"set-drive-options");this.appId=x;this.appOrigin=L};
XYh=function(x){aN4.call(this,"visibility");this.visible=x};
c8c=function(x,L,D){Ax.call(this,x,L,D)};
nQw=function(x){rb.call(this,x)};
tTw=function(x){x=x&&x.getWindow()||window;return x.gadgets&&x.gadgets.rpc};
LNn=function(x,L){var D=L&&L.getWindow()||window;if(tTw(L))x();else if(xg4)xg4.push(x);else var S=xg4=[x],Q=D.setInterval(function(){if(tTw(L)){D.clearInterval(Q);for(var J=0;J<S.length;J++)S[J]();xg4=null}},100)};
SDc=function(x,L){var D=new N4(x);_.V1(L,D);var S={passive:!1};L.listen(D,"mousewheel",function(Q){return void Dgn(x,Q)},S).listen(x,"scroll",function(Q){return void Dgn(x,Q)},S)};
Dgn=function(x,L){var D;a:{for(D=L.target;D;){if(D.nodeType==1){var S=_.ix(D,"overflowY");if(S=="auto"||S=="scroll")break a}D=D.parentNode}D=null}if(!D||!_.fw(x,D)||D.scrollHeight==D.clientHeight||L.deltaY>0&&Math.abs(D.scrollTop-(D.scrollHeight-D.clientHeight))<=1||L.deltaY<0&&D.scrollTop==0)L.preventDefault(),L.stopPropagation()};
DK=function(x,L,D,S,Q,J,Z,y,E){y=y===void 0?!1:y;E=E===void 0?!1:E;Ax.call(this,void 0,void 0,void 0);Ax.call(this,J?J+" picker modal-dialog":"picker modal-dialog",!0,D);_.om(x,"protocol");this.iframeManager_=new ggp;this.targetId_=am();this.rpcToken_=am();x=_.ze(x);_.cf(x,"hostId");D=_.cf(x,"parent");this.useGapi_=!E&&!0||(D==null?void 0:D.includes("onepick.corp.google.com"));y&&_.xV(x,"fv2","true");this.setUrl(x.toString());this.preferredDialogWidth_=S;this.preferredDialogHeight_=Q;S!==void 0||
Q!==void 0?S=!0:(S=_.cf(_.ze(x.toString()),"hostId"),k30||(k30=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),S=!k30.has(S));this.autoSizeDialog_=S;this.JSC$10195_gadgetsDomHelper_=Z||this.JSC$10146_dom_;L&&(Z=this.JSC$10195_gadgetsDomHelper_,L=_.cf(_.ze(this.JSC$10197_url_),"grugl")=="true"?pWO:mgh,tTw(Z)||(Z=Z||Tj(document),S=Z.createElement("SCRIPT"),_.QD(S,L),S.type="text/javascript",Z.JSC$9330_document_.body.appendChild(S)));
x=x.toString();L=null;Z=x.indexOf("/picker?");Z>-1?L=x.substring(0,Z+8-1):yb(x,"/picker")&&(L=x);L&&this.setRelayUrl(L+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(x=this.buttons_,x.JSC$10180_element_=this.buttonEl_,x.render()):_.JB(this.buttonEl_,bK4),_.Lq(this.buttonEl_,!!this.buttons_))};
_.TtG=function(x){var L=L===void 0?YD4:L;var D=_.zN(x),S=function(J){J=_.O(J);J.next();J=S$(J);return L(D,J)},Q=function(J){var Z=_.O(J);
J=Z.next().value;Z=S$(Z);return x.apply(J,Z)};
return function(){var J=_.Ne.apply(0,arguments),Z=this||_.Qb,y=FNs.get(Z);y||(y={},FNs.set(Z,y));return sE4(y,[this].concat(_.lP(J)),Q,S)}};
Qo=function(x){var L={};x=x.replace(/\r/g,"").split("\n");for(var D=0;D<x.length;D++){var S=x[D],Q=S.indexOf(":");Q<0||(L[S.substring(0,Q)]=S.substring(Q+2,S.length))}return L};
e30=function(x,L,D){D=D===void 0?function(){}:D;
return x?L():D()};
_.G3n=function(x){var L;return((L=R3N.documentOverride)!=null?L:x).__wizdispatcher};
_.Kq=function(x){var L=JI;JI=x;return L};
_.lA3=function(x){return x===C7O||(x==null?void 0:x.name)==="\u0275NotFound"};
_.Os=function(x,L){var D;if((D=x)==null?0:D.isDisposed)throw Error("jb`"+String(x.debugName));for(;x!==void 0;){D=x;if(D.retrieve)return D.retrieve(L,{optional:!0});x=x.parent}return C7O};
ZK=function(x){return{"\u0275prov":{providedIn:"root",token:Symbol(x),factory:void 0,value:void 0}}};
_.Ugf=function(x){var L=JI;if(!L){switch(x===void 0?3:x){case 0:x=Error("ib");break;case 1:x=Error("kb");break;case 2:x=Error("lb");break;default:x=Error("mb")}throw x;}return L};
wWb=function(x){var L=_.Kq(x);x={};return x[Symbol.dispose]=function(){_.Kq(L)},x};
Btf=function(x,L){x.disposables||(x.disposables=[]);x.disposables.push(L)};
yo=function(x){var L=JI;L&&!L.isDisposed&&(Btf(L,x),x.parent=L)};
qDc=function(x){if(x.disposables){for(var L=_.O(x.disposables),D=L.next();!D.done;D=L.next())D=D.value,typeof D==="function"?D():WN0(D);x.disposables.length=0}};
WN0=function(x){if(!x.isDisposed){x.isDisposed=!0;var L;(L=x[Symbol.dispose])==null||L.call(x);delete x.parent;qDc(x)}};
z33=function(x){var L={retrieve:function(D){switch(D.\u0275prov.token){case AEf.\u0275prov.token:var S=x.asyncDeps;break;case _.$gn.\u0275prov.token:S=x.rootElement;break;case rEc.\u0275prov.token:S=x.modelRootElement;break;case NtO.\u0275prov.token:S=x.appContext;break;case iK0.\u0275prov.token:S=x.rendererData;break;case fA3.\u0275prov.token:S=x.injectingConstructor;break;case ogf.\u0275prov.token:S=x.dispatcher}if(S)D=S;else a:{for(S=L.parent;S;){var Q=S;if(Q.retrieve){D=Q.retrieve(D);break a}S=
S.parent}S=D.\u0275prov.token;Q=aAw[S];Q!==void 0?D=Q:(Q=D.\u0275prov.providedIn,D.\u0275prov.factory?(D=D.\u0275prov.factory(),S&&Q==="root"&&(aAw[S]=D)):D=C7O)}return D}};
yo(L);return L};
XWb=function(){var x=_.Ugf(1),L=_.Os(x,NtO);if(!_.lA3(L))return L;x=_.Os(x,ogf);if(!_.lA3(x))return x.getOptionalAppContext()};
cE0=function(x){if(typeof document!=="undefined"&&document&&document.getElementById&&(x=document.getElementById(x))){var L=x.tagName.toUpperCase();if(L=="SCRIPT"||L=="LINK")return x}return null};
tVO=function(x,L){if((x=x===void 0?"":x)&&L)throw Error("sb");var D="";var S=_.Qb._F_jsUrl;(x=L||cE0(x))&&(D=x.src?x.src:x.getAttribute("href"));if(S&&D){if(S!=D)throw Error("tb`"+S+"`"+D);D=S}else D=S||D;if(!ngh(D))throw Error("ub");return D};
Sh0=function(){if(!xyn){xyn=!0;try{var x=tVO(_.Qb._F_jsUrl?"":"base-js")}catch(S){return}var L=LSp(DyG(x)),D=Object.keys(L);D.length!==0&&fNf(function(S){for(var Q=_.O(D),J=Q.next();!J.done;J=Q.next()){J=J.value;for(var Z=_.O(Object.keys(L[J])),y=Z.next();!y.done;y=Z.next())S.addExtraEdge(J,y.value)}})}};
J7f=function(){var x=Object.assign({},QRO);Object.getOwnPropertyNames(QRO).forEach(function(L){Iu[L]!==void 0&&(x[L]=Iu[L])});
return x};
KSp=function(x,L){if(Iu.enablePerformanceTiming){var D,S;(S=(D=performance).mark)==null||S.call(D,x+"Start__"+L)}};
OVs=function(x,L){if(Iu.enablePerformanceTiming){var D,S;(S=(D=performance).measure)==null||S.call(D,x+"__"+L,x+"Start__"+L)}};
ZVG=function(x,L,D){var S;return x&&L?x+"__"+L:(S=x!=null?x:L)!=null?S:D};
I8b=function(x,L){var D=Object.create(y7G);D.debugName=L;!JI||yo(D);L=_.Kq(D);try{x(D)}finally{_.Kq(L)}return function(){return void WN0(D)}};
M73=function(x){return Es(x)&&EZb in x};
dyf=function(x,L){return Object.is(x,L)};
dH=function(x){var L=MN;MN=x;return L};
jR4=function(x){if(PB)throw Error("Z");if(MN!==null){var L=MN.producersTail;if(L===void 0||L.producer!==x){var D=void 0,S=MN.recomputing;if(S&&(D=L!==void 0?L.nextProducer:MN.producers,D!==void 0&&D.producer===x)){MN.producersTail=D;D.lastReadVersion=x.version;return}var Q=x.consumersTail,J;if(!(J=Q===void 0||Q.consumer!==MN)){if(S){a:{J=MN;S=J.producersTail;if(S!==void 0){J=J.producers;do{if(J===Q){S=!0;break a}if(J===S)break;J=J.nextProducer}while(J!==void 0)}S=!1}S=!S}J=S}J&&(S=j$(MN),D={producer:x,
consumer:MN,nextProducer:D,prevConsumer:Q,lastReadVersion:x.version,nextConsumer:void 0},MN.producersTail=D,L!==void 0?L.nextProducer=D:MN.producers=D,S&&PY0(x,D))}}};
hFb=function(x){if(!j$(x)||x.dirty)if(x.dirty||x.lastCleanEpoch!==vZO)(x.producerMustRecompute(x)||V7c(x))&&x.producerRecomputeValue(x),x.dirty=!1,x.lastCleanEpoch=vZO};
HVs=function(x){if(x.consumers!==void 0){var L=PB;PB=!0;try{for(var D=x.consumers;D!==void 0;D=D.nextConsumer){var S=D.consumer;S.dirty||(x=void 0,S.dirty=!0,HVs(S),(x=S.consumerMarkedDirty)==null||x.call(S,S))}}finally{PB=L}}};
ud4=function(){var x;return((x=MN)==null?void 0:x.consumerAllowSignalWrites)!==!1};
gZ0=function(x){x&&(x.producersTail=void 0,x.recomputing=!0);return dH(x)};
pIf=function(x){x.recomputing=!1;var L=x.producersTail,D=L!==void 0?L.nextProducer:x.producers;if(D!==void 0){if(j$(x)){do D=kGh(D);while(D!==void 0)}L!==void 0?L.nextProducer=void 0:x.producers=void 0}};
V7c=function(x){for(x=x.producers;x!==void 0;x=x.nextProducer){var L=x.producer,D=x.lastReadVersion;if(D!==L.version)return!0;hFb(L);if(D!==L.version)return!0}return!1};
PY0=function(x,L){var D=x.consumersTail,S=j$(x);D!==void 0?(L.nextConsumer=D.nextConsumer,D.nextConsumer=L):(L.nextConsumer=void 0,x.consumers=L);L.prevConsumer=D;x.consumersTail=L;if(!S)for(x=x.producers;x!==void 0;x=x.nextProducer)PY0(x.producer,x)};
kGh=function(x){var L=x.producer,D=x.nextProducer,S=x.nextConsumer,Q=x.prevConsumer;x.nextConsumer=void 0;x.prevConsumer=void 0;S!==void 0?S.prevConsumer=Q:L.consumersTail=Q;if(Q!==void 0)Q.nextConsumer=S;else if(L.consumers=S,!j$(L))for(x=L.producers;x!==void 0;)x=kGh(x);return D};
j$=function(x){return x.consumerIsAlwaysLive||x.consumers!==void 0};
Yhf=function(x){var L=Object.create(myO);L.computation=x;x=function(){hFb(L);jR4(L);if(L.value===vB)throw L.error;return L.value};
x[bVf]=L;return x};
eF0=function(x,L){var D=Object.create(FSf);D.value=x;L!==void 0&&(D.equal=L);x=function(){jR4(D);return D.value};
x[bVf]=D;return[x,function(S){return sR0(D,S)},
function(S){ud4()||Tz0(D);sR0(D,S(D.value))}]};
sR0=function(x,L){ud4()||Tz0(x);if(!x.equal(x.value,L)){x.value=L;x.version++;vZO++;HVs(x);var D;(D=RFO)==null||D(x)}};
_.hI=function(x){var L=dH(null);try{return x()}finally{dH(L)}};
_.HB=function(x,L,D){D=D===void 0?"":D;x=eF0(x,L==null?void 0:L.equals);var S=x[0],Q=S[bVf];Q.debugName=ZVG(L==null?void 0:L.debugName,D,"[signal]");if(!Iu.enablePerformanceTiming)return x;var J=x[1],Z=x[2];return[S,function(y){GGs(function(){return void J(y)},Q)},
function(y){GGs(function(){return void Z(y)},Q)}]};
GGs=function(x,L){KSp("signalSet",L.debugName);try{x()}finally{OVs("signalSet",L.debugName)}};
l83=function(x,L){var D=_.O(_.HB(x,void 0,"cPpJzc"));x=D.next().value;D=D.next().value;x[CYG]=D;x[um]=L;return x};
UyN=function(x){return!!x&&typeof x==="object"&&Object.getPrototypeOf(x)===Object.prototype};
wIp=function(x){return typeof x==="function"&&CYG in x&&typeof x[CYG]==="function"};
BzG=function(x,L){Object.defineProperty(x,um,{get:function(){return L}})};
kV=function(x,L){if(gH(x)){var D=x.map(function(J){return kV(J,L)});
BzG(D,L);return D}if(UyN(x)){D={};x=_.O(Object.entries(x));for(var S=x.next();!S.done;S=x.next()){var Q=_.O(S.value);S=Q.next().value;Q=Q.next().value;D[S]=kV(Q,L)}BzG(D,L);return D}return l83(x,L)};
WSn=function(x){if(gH(x))return x.map(function(Q){return WSn(Q)});
if(UyN(x)){var L={};x=_.O(Object.entries(x));for(var D=x.next();!D.done;D=x.next()){var S=_.O(D.value);D=S.next().value;S=S.next().value;L[D]=WSn(S)}return L}return wIp(x)?x():x};
A7s=function(){var x={height:0,width:0};if(!UyN(x))throw Error("Jb");var L=Symbol("Kb");return[kV(x,L),function(D,S){if(D[um]===L)if(typeof S==="function"){var Q=[].concat(_.lP(WSn(D)));S=S(Q)||Q;qhc(D,[].concat(_.lP(S)))}else qhc(D,S);else throw Error("Lb");}]};
qhc=function(x,L){if(wIp(x))x[CYG](L);else if(gH(x)&&gH(L))L=kV(L,x[um]),x.length=0,x.push.apply(x,_.lP(L));else if((UyN(x)||gH(x))&&(gH(L)||typeof L==="object"&&L!==null)){L=_.O(Object.entries(L));for(var D=L.next();!D.done;D=L.next()){var S=_.O(D.value);D=S.next().value;S=S.next().value;var Q=x,J=Q[D];Object.hasOwn(x,D)?qhc(J,S):Q[D]=kV(S,x[um])}}else throw Error("Mb");};
$yc=function(x){return Object.create(Object.assign({},pq,x))};
Nz0=function(){var x;return(x=r7h)!=null?x:r7h=$yc({consumerAllowSignalWrites:!0})};
_.m5=function(x,L,D){D=D===void 0?"":D;var S=Yhf(function(){return x()}),Q=S[bVf];
Q.debugName=ZVG(L==null?void 0:L.debugName,D,"[computed]");(L==null?void 0:L.equals)!=null&&(Q.equal=L.equals);return S};
bm=function(x){var L=dH(iVf);try{x()}finally{dH(L)}};
XI4=function(x){switch(x.onInitType){case f8n:oZh.schedule(x);break;case a8f:zFG.schedule(x);break;default:_.Nh(x.onInitType)}};
D6s=function(x){if(!x.isDisposed)switch(x.effectType){case YV:c70.schedule(x);break;case nZh:t7c.schedule(x);break;case x6w:Lup.schedule(x);break;default:_.Nh(x.effectType)}};
J60=function(){if(FU>0)Iu.flushRenderEffectsDuringRender&&c70.flush();else{for(var x=_.O(SUn),L=x.next();!L.done;L=x.next())L.value.flush();QHh()}};
QHh=function(){_.I(function(x){if(x.nextAddress==1)return x.yield(Promise.resolve(),2);for(var L=_.O(Kub),D=L.next();!D.done;D=L.next())D.value.flush();_.Y2(x)})};
Zh3=function(x){ss=!0;try{for(var L=_.O(x),D=L.next();!D.done;D=L.next()){for(var S=D.value,Q=[S],J=S;J.parent!==void 0;)J=J.parent,Oh0(J)&&x.has(J)&&Q.push(J);for(;Q.length>0;){var Z=Q.pop();x.delete(Z);Z.run()}}}finally{ss=!1}};
TJ=function(x){FU--;if(x){x=_.O(y64);for(var L=x.next();!L.done;L=x.next())L.value.clear()}else FU>0||ss&&!Iu.flushRenderEffectsDuringRender||J60()};
E33=function(x,L,D){var S=I5f(x);e$={name:D?S+" ("+D+")":S,isReactive:x.componentType!==Ru,parent:e$};x=L();e$=e$.parent;return x};
GJ=function(){var x=e$;return x?x.isReactive:!1};
lm=function(x,L,D){var S=e$;L&&(e$=L);try{return D==null?x():x.call(D)}catch(J){x=J;Cq(x,e$);if(x!==Mcn){d60=e$;L=[];for(D=JI;D;){var Q=void 0;L.push((Q=D.debugName)!=null?Q:"[context]");Q=void 0;D=(Q=D.parent)!=null?Q:null}PvO=L.reverse()}Mcn=x;throw x;}finally{e$=S}};
Cq=function(x,L){try{var D=jHG(L);if(D&&!x.componentStack&&(x.componentStack=D,Iu.enableComponentStacksInErrorMessages)){var S=x.message+"\n\nComponent stack: "+D;x.stack&&(x.stack=x.stack.replace(x.message,S));x.message=S}}catch(Q){}};
jHG=function(x){if(Es(x)&&x.name!==void 0&&x.isReactive!==void 0&&x.parent!==void 0||x===null){for(var L=0,D="";L<20&&x;)D+=x.name+" > ",x=x.parent,L++;x=D.slice(0,-3)}else if(Iu.enableContextBasedComponentStacks){a:{for(x=x===void 0?JI:x;x;){if(M73(x))break a;L=void 0;x=(L=x.parent)!=null?L:null}x=null}x=x.getComponentStack().slice(0,20).join(" > ")}else x="";return x};
I5f=function(x){return x.debugName||x.name||"[component]"};
v3G=function(x,L,D){L=Object.create(L);x&&(L.effectFn=x);D&&(L.debugName=D);yo(L);L.componentStack=e$;return L};
_.Us=function(x,L){x=v3G(x,Vcp,L);D6s(x)};
_.wH=function(x){var L=JI;if(L){var D=e$;Btf(L,function(){var S=dH(Nz0());try{lm(function(){return void x()},D)}catch(Q){throw Iu.enableContextBasedComponentStacks&&Cq(Q),Q;
}finally{dH(S)}})}};
BB=function(x,L){var D={};(L===void 0||L)&&yo(D);L=_.Kq(D);try{x(D)}finally{_.Kq(L)}return function(){return void WN0(D)}};
_.WB=function(x){return typeof x==="function"?x():(x==null?0:x[hoN])?x.get():x};
_.qN=function(x,L){x=v3G(x,Hhw,L);D6s(x)};
uEw=function(x){if(JI)throw Error("nb");BB(x,!1)};
AI=function(x,L){x=_.Kq(x);try{return _.hI(L)}finally{_.Kq(x)}};
$V=function(x,L){var D=jHG(d60),S,Q;var J=(Q=(S=PvO)==null?void 0:S.slice())!=null?Q:[];L={componentStack:D,contextTrace:J,errorSeverity:3,featureFlags:J7f(),tagName:L};return[x,L]};
pvf=function(x,L,D){if(Object.hasOwnProperty.call(g30,x)&&(x=g30[x],Object.hasOwnProperty.call(x,L)&&(x=x[L],x instanceof Array))){for(var S=null,Q=!1,J=0,Z=x.length;J<Z;++J){var y=x[J],E=y.contingentAttribute;if(!E)return y.contract;S===null&&(S={});E=Object.hasOwnProperty.call(S,E)?S[E]:S[E]=D(E);if(E===y.requiredValue)return y.contract;E==null&&(Q=!0)}if(Q)return null}L=kLn[L];return typeof L==="number"?L:null};
YUb=function(x,L,D){var S=null;(x=m6w[x])&&(S=x[L]);return typeof S!=="number"&&((x=m6w["*"])&&(S=x[L]),typeof S!=="number")?!1:!0===bhp[S][String(D).toLowerCase()]};
sHh=function(x,L){L=pvf(x.toLowerCase(),L,function(){var S;(S=Iu.handleError)==null||S.call.apply(S,[Iu].concat(_.lP($V(Error("Wb"),x.toLowerCase()))))});
if(L===null)return null;var D;return(D=FuO[L])!=null?D:null};
TQO=function(x,L,D){if(D===null||D===void 0)return D;L=L.toLowerCase();x=sHh(x,L);return x===null?D:x(L,D)};
eop=function(){};
rH=function(x,L){for(;x.length>L;)x.pop()};
Roc=function(x){x=Array(x);rH(x,0);return x};
NN=function(x,L,D){if(D==null)x.removeAttribute(L);else{var S;(S=L.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":L.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?x.setAttributeNS(S,L,D):x.setAttribute(L,D)}};
GL3=function(x,L,D){x[L]=D};
l50=function(x,L,D){x=x.style;if(typeof D==="string")x.cssText=D;else{x.cssText="";for(var S in D)if(Cvs.call(D,S)){L=x;var Q=S,J=D[S];Q.indexOf("-")>=0?L.setProperty(Q,J):L[Q]=J}}};
U6n=function(x,L,D){var S=typeof D;S==="object"||S==="function"?x[L]=D:NN(x,L,D)};
wvh=function(){var x=new eop;x[im.default]=U6n;x.style=l50;return x};
BQw=function(x,L,D,S){(S[L]||S[im.default])(x,L,D)};
qUs=function(x,L,D){L=new Wu4(L,D);return x.__incrementalDOMData=L};
fq=function(x,L){if(x.__incrementalDOMData)return x.__incrementalDOMData;var D=x.nodeType===1?x.localName:x.nodeName,S=x.nodeType===1?x.getAttribute("key"):null;L=qUs(x,D,x.nodeType===1?S||L:null);if(x.nodeType===1&&(x=x.attributes,D=x.length)){S=L._attrsArr||(L._attrsArr=Roc(D*2));for(var Q=0,J=0;Q<D;Q+=1,J+=2){var Z=x[Q],y=Z.value;S[J]=Z.name;S[J+1]=y}}return L};
A6b=function(x,L,D,S,Q){return L==D&&S==Q};
$6h=function(x){for(var L=au,D=zJ();D!==x;){var S=D.nextSibling;L.removeChild(D);nq.deleted.push(D);D=S}};
zJ=function(){return tI?tI.nextSibling:au.firstChild};
x6=function(){tI=zJ()};
ihn=function(x,L,D){x6();var S;a:{if(S=tI){do{var Q=S,J=x,Z=L,y=fq(Q,Z);if(r6w(Q,J,y.nameOrCtor,Z,y.key))break a}while(L&&(S=S.nextSibling))}S=null}S||(x==="#text"?(D=Lm.createTextNode(""),qUs(D,"#text",null),x=D):(S=Lm,Q=au,typeof x==="function"?S=new x:S=(Q=x==="svg"?"http://www.w3.org/2000/svg":x==="math"?"http://www.w3.org/1998/Math/MathML":Q==null||fq(Q).nameOrCtor==="foreignObject"?null:Q.namespaceURI)?S.createElementNS(Q,x):S.createElement(x),qUs(S,x,L),x=S,D&&x.setAttribute("nonce",D)),nq.created.push(x),
S=x);D=S;if(D!==tI){if(NQG.indexOf(D)>=0)for(x=au,L=D.nextSibling,S=tI;S!==null&&S!==D;)Q=S.nextSibling,x.insertBefore(S,L),S=Q;else au.insertBefore(D,tI);tI=D}};
f5s=function(x,L,D){ihn(x,L,D);au=tI;tI=null;return au};
o3N=function(){$6h(null);tI=au;au=au.parentNode};
a50=function(){tI=au.lastChild};
c64=function(x,L){L=L===void 0?{}:L;var D=L.matches===void 0?A6b:L.matches;return function(S,Q,J){var Z=nq,y=Lm,E=NQG,P=Da,v=SF,V=tI,h=au,H=r6w;Lm=S.ownerDocument;nq=new zo0(S);r6w=D;Da=[];SF=[];tI=null;var k=au=S.parentNode,T,G=XvO.call(S);if((T=G.nodeType===11||G.nodeType===9?G.activeElement:null)&&S.contains(T)){for(G=[];T!==k;)G.push(T),T=T.parentNode||(k?T.host:null);k=G}else k=[];NQG=k;try{return x(S,Q,J)}finally{S=nq,QN&&S.deleted.length>0&&QN(S.deleted),Lm=y,nq=Z,r6w=H,Da=P,SF=v,tI=V,au=h,
NQG=E}}};
n3f=function(x,L,D,S){Ju.push(BQw);Ju.push(x);Ju.push(L);Ju.push(D);Ju.push(S)};
xuf=function(x,L,D){var S=SF;L=L._attrsArr||(L._attrsArr=Roc(S.length));for(var Q=!L.length||!1,J=0;J<S.length;J+=2){var Z=S[J];if(Q)L[J]=Z;else if(L[J]!==Z)break;var y=S[J+1];if(Q||L[J+1]!==y)L[J+1]=y,n3f(x,Z,y,D)}if(J<S.length||J<L.length){for(J=Q=J;J<L.length;J+=2)Km[L[J]]=L[J+1];for(J=Q;J<S.length;J+=2)Q=S[J],Z=S[J+1],Km[Q]!==Z&&n3f(x,Q,Z,D),L[J]=Q,L[J+1]=Z,delete Km[Q];rH(L,S.length);for(var E in Km)n3f(x,E,void 0,D),delete Km[E]}x=tcG;tcG=D=Ju.length;for(E=x;E<D;E+=5)(0,Ju[E])(Ju[E+1],Ju[E+
2],Ju[E+3],Ju[E+4]);tcG=x;rH(Ju,x);rH(S,0)};
Lzf=function(x){ihn("#text",null);var L=tI;var D=fq(L);if(D.text!==x){D=D.text=x;for(var S=1;S<arguments.length;S+=1)D=(0,arguments[S])(D);L.data!==D&&(L.data=D)}};
ZL0=function(x,L,D){if(D===!1&&Duh.has(L))NN(x,L,null);else if(L!=="idomKey"&&L!=="skip"&&L!=="skipchildren"&&L!=="children"&&L!=="el")if(L.startsWith("on")){if(L[2]!==":")throw Error("Sb`"+L);if(D===void 0||D===null){var S;(S=Iu.handleError)==null||S.call.apply(S,[Iu].concat(_.lP($V(Error("$b`"+L),x.tagName))));x[L]=void 0}else{var Q=L.slice(3);S=GJ();if(Q==="jsaction"){D=Array.isArray(D)?D:[D];D=_.O(D);for(var J=D.next();!J.done;J=D.next()){J=J.value;if(typeof J!=="object"||J===null||typeof J.selfReg!==
"function")throw Error("Tb`"+L);J.selfReg(0,x,S?_.wH:function(){})}}else{if(typeof D!=="object"||D===null)throw Error("Vb`"+L+"`"+typeof D);
if(typeof D.getFn!=="function")throw Error("Ub`"+L+"`"+Object.keys(D));if(D.selfReg)D.selfReg(0,x,Q,S?_.wH:function(){});
else if(S&&x["on"+Q]===void 0){var Z=D.getFn(0);x.addEventListener(Q,Z);_.wH(function(){return void x.removeEventListener(Q,Z)})}else if(S||!SKn.includes(Q))x["on"+Q]=D.getFn(0)}}}else{if(L.startsWith("data-")&&typeof D==="string")try{D=QcN(D)}catch(y){D="zSoyz"}typeof D!=="function"||x._disposeEffects!=null?((S=L.startsWith("prop:"))&&(L=L.slice(5)),Iu.enableAttributeSanitization&&(S&&J3G(x.tagName)||(D=TQO(x.tagName,L,D))),L==="style"?("function"==typeof _.OX&&D instanceof _.OX&&(D=D.toString()),
Kzn(x,L,D)):S?x[L]=D:OL3(x,L,D)):(x._signalProps||(x._signalProps=[]),x._signalValues||(x._signalValues=[]),x._signalProps.push(L))}};
y30=function(x,L,D){D=(D===void 0?{}:D).isReactive;if(L==null?0:L.el){var S=L.el,Q;(Q=S.onRender)==null||Q.call(S,x);x._disposeRef||(x._disposeRef=function(){var J;(J=S.onUnmount)==null||J.call(S);delete x._disposeRef},D&&_.wH(function(){var J;
(J=x._disposeRef)==null||J.call(x)}))}};
J3G=function(x){return x.length>0&&x.includes("-")&&!IRp.includes(x.toLowerCase())};
E7n=function(x){return Es(x)&&Za in x};
MoO=function(x){return E7n(x)?x[Za].flattened:x};
dus=function(x,L){var D=_.Ne.apply(2,arguments),S;L=(S=L)!=null?S:{};S={};return S.type=x,S.props=L,S.children=D,S[yN]=!0,S};
_.I1=function(x){return x.children};
EX=function(x){var L=Pzc!==dus;Pzc=x?jcG:dus;return L};
_.M9=function(x){return _.on(x)?"nodeType"in x:!1};
dO=function(){return document.createTextNode("")};
Pd=function(x){x=document.createTextNode(String(x));x._isSignalTextNode=!0;return x};
Voc=function(x){return x!=null&&x.contentKind===jF||x instanceof oN||v70(x)};
h5b=function(x){var L=document.createElement("div");if(v70(x)&&pY4(x))_.JB(L,pY4(x));else if(x instanceof oN)_.JB(L,x);else if(x!=null&&x.contentKind===jF){if(x.contentKind!==jF)throw Error("Zb");x=aN(x.toString());_.JB(L,x)}x=_.O(L.childNodes);for(var D=x.next();!D.done;D=x.next())D.value._isSafeOrSanitizedHtmlNode=!0;return L};
vd=function(x){x=typeof x;return x==="string"||x==="number"||x==="boolean"};
HLw=function(x){return x instanceof s5||U5(x)||x instanceof ZE||"function"==typeof _.OX&&x instanceof _.OX};
uYs=function(x,L){var D=x.parentElement;if(!D)return L;D.replaceChild(L,x);return L};
g7s=function(x,L){var D=x[0].parentElement;if(D)if(x[0].previousSibling||x[x.length-1].nextSibling){D.insertBefore(L,x[0]);for(var S=x.length-1;S>=0;S--)D.removeChild(x[S])}else D.textContent="",D.appendChild(L);return L};
k0b=function(x,L){if(x[0].parentElement)for(var D=x[0].parentElement,S=L.length,Q=x.length,J=S,Z=0,y=0,E=x[Q-1].nextSibling,P=null;Z<Q||y<J;)if(x[Z]===L[y])Z++,y++;else{for(;x[Q-1]===L[J-1];)Q--,J--;if(Q===Z)for(var v=J<S?y?L[y-1].nextSibling:L[J-y]:E;y<J;){var V=L[y++];D.insertBefore(V,v)}else if(J===y)for(;Z<Q;)v=x[Z],P&&P.has(v)||D.removeChild(v),Z++;else if(x[Z]===L[J-1]&&L[y]===x[Q-1])v=x[--Q].nextSibling,D.insertBefore(L[y++],x[Z++].nextSibling),D.insertBefore(L[--J],v),x[Q]=L[J];else{if(!P)for(P=
new Map,v=y;v<J;)P.set(L[v],v++);v=P.get(x[Z]);if(v==null)D.removeChild(x[Z]),Z++;else if(y<v&&v<J){V=Z;for(var h=1,H=void 0;++V<Q&&V<J&&(H=P.get(x[V]))!=null&&H===v+h;)h++;if(h>v-y)for(V=x[Z];y<v;)D.insertBefore(L[y++],V);else D.replaceChild(L[y++],x[Z++])}else Z++}}return L};
mun=function(x){if(Array.isArray(x)){if(x.length>1)throw Error("jc`"+x.length+"`"+x.map(pof).join(", "));x=x[0]}if(x==null)return null;if(!(x instanceof _.LZ)){var L,D;if((L=window)==null?0:(D=L.trustedTypes)==null?0:D.isScript(x))throw Error("ic");if(String(x).trim().length===0)return null;throw Error("kc`"+pof(x));}return x};
bLc=function(x,L){L=mun(L);L!==null&&_.Sf(x,L)};
YKb=function(x){if(Array.isArray(x)){if(x.length>1)throw Error("lc`"+x.length+"`"+x.map(pof).join(", "));x=x[0]}if(x==null)return null;if(!(x instanceof ZE)){if(String(x).trim().length===0)return null;throw Error("mc`"+pof(x));}return x};
Fz0=function(x,L){L=YKb(L);L!==null&&(x.textContent=VfG(L))};
pof=function(x){return"("+typeof x+") "+(x!=null&&typeof x==="object"?x.constructor.name:typeof x)+" "+x};
scb=function(){};
Hd=function(x,L){L=L===void 0?{}:L;var D=Trw(),S=!0,Q,J=!!Iu.legacyTriggerSoyRendererEvents;J&&(Q=XWb());_.qN(function(){var Z=!S&&L.isControlFlowComponent&&J,y=Z?D[Za].flattened[0].parentElement:void 0;S=!1;_.VN.setUp();L.isControlFlowComponent&&FU++;var E=D[0],P=D[Za].flattened,v=EX(!0);try{var V=x(),h=e5n(E,V,D);Array.isArray(h)||(D[Za].flattened=[h]);var H=D[Za].flattened;if(P&&(!Array.isArray(P)||P.length!==0)){var k=Array.isArray(P)?P[0]:P,T=k[hu],G=k._disposeEffects;k._disposeEffects=void 0;
k=Array.isArray(H)?H[0]:H;k[hu]=T;k[hu]&&(k[hu].numNodes=k===H?1:H.length);k._disposeEffects=G}D[0]=h;L.isControlFlowComponent&&TJ(!1)}catch(U){throw L.isControlFlowComponent&&TJ(!0),U;}finally{EX(v),_.VN.tearDown()}Z&&(Z=Q,Z!=null||(Z=_.G3n(document).getAppContext()),Z.get(R5b).JSC$29103_getEventTarget().dispatchEvent(new G0b(Cz4,y,jF)))},L.debugName);
return D};
e5n=function(x,L,D){for(;typeof L==="function";)L=L();if(L!=null&&L[yN]){var S,Q,J;(J=Iu.handleError)==null||J.call.apply(J,[Iu].concat(_.lP($V(Error("nc`"+((S=L.type)==null?void 0:S.TAG_NAME)),(Q=L.type)==null?void 0:Q.TAG_NAME))))}if(x==null)return L==null?dO():vd(L)?Pd(L):HLw(L)?Pd(L.toString()):_.M9(L)?L:L.length===0?dO():lRn(L,D);if(_.M9(x)){if(L==null)return uYs(x,dO());if(vd(L))return Uuh(x,L);if(HLw(L))return Uuh(x,L.toString());if(_.M9(L))return uYs(x,L);if(L.length===0)return uYs(x,dO());
L=lRn(L,D);k0b([x],D[Za].flattened);return L}x=uf(x);if(L==null)return g7s(x,dO());if(vd(L))return g7s(x,Pd(L));if(HLw(L))return g7s(x,Pd(L.toString()));if(_.M9(L))return k0b(x,[L])[0];if(L.length===0)return g7s(x,dO());L=lRn(L,D);k0b(x,D[Za].flattened);return L};
Uuh=function(x,L){x.nodeType===Node.TEXT_NODE?x.textContent!==String(L)&&(x.textContent=String(L)):x=uYs(x,Pd(L));return x};
uf=function(x,L,D){return wo0(x,L!=null?L:[],D===void 0?!1:D)};
lRn=function(x,L){var D=uf(x,void 0,!0);if(D.length===0)return dO();L[Za].flattened=D;return x};
wo0=function(x,L,D,S,Q){L=L===void 0?[]:L;D=D===void 0?!1:D;Q=Q===void 0?-1:Q;if(x==null)return L;if(x instanceof k6){var J=x.render();return wo0(J,L,D,S,Q)}if(_.M9(L)&&L.nodeType===Node.ELEMENT_NODE)switch(L.tagName){case "SCRIPT":bLc(L,x);return;case "STYLE":Fz0(L,x);return}vd(x)&&(x=Pd(x),S&&D&&(S[Q]=x));if(Voc(x)){D=h5b(x);D=Array.from(D.childNodes);D=_.O(D);for(J=D.next();!J.done;J=D.next())Brh(L,J.value);return L}HLw(x)&&(x=Pd(x.toString()),S&&D&&(S[Q]=x));if(_.M9(x))return Brh(L,x);if(Array.isArray(x)){for(J=
0;J<x.length;J++)wo0(x[J],L,D,x,J);return L}if(typeof x==="function"){J=Hd(function(){var y=x();return y!=null&&!vd(y)&&Voc(y)?(y=h5b(y),Array.from(y.childNodes)):y},{debugName:"qmF2ne",
debugFn:x})[0];if(Array.isArray(J)){D=_.O(J);for(J=D.next();!J.done;J=D.next())Brh(L,J.value);return L}S&&D&&(S[Q]=J);return Brh(L,J)}if(x!=null&&x[yN]){S=x;Q=EX(!0);var Z=Pzc;try{J=Z.apply(null,[S.type,S.props].concat(_.lP(S.children)))}finally{EX(Q)}return wo0(J,L,D)}(Z=Iu.handleError)==null||Z.call.apply(Z,[Iu].concat(_.lP($V(Error("oc")))));return L};
Trw=function(x){var L={};L=Object.assign([],(L[Za]={flattened:[]},L));if(!x)return L;L[0]=lRn(x,L);return L};
Brh=function(x,L){Array.isArray(x)?x.push(L):x.appendChild(L);return x};
pm=function(x){if(!Iu.enableLazyTsx)return x;if(Array.isArray(x)){for(var L=0;L<x.length;L++)x[L]=pm(x[L]);return x}return x instanceof k6?(x=x.render(),pm(x)):x};
qKw=function(x,L){var D,S,Q=I5f(x),J=function(H){S=H;H=EX(!0);var k=dH(mr);KSp("render",Q);try{D=pm(x(L))}finally{OVs("render",Q),dH(k),EX(H)}};
J=Iu.enableContextPerComponent?I8b(J,Q):BB(J,Iu.alwaysTrackContexts||!!JI);M73(S);if(!L.renderedFromIdom){var Z=_.Kq(S);try{return WzN(x,L,D),D}finally{_.Kq(Z)}}!E7n(D)&&Array.isArray(D)&&(D=Trw(D));var y=MoO(D);Z=Array.isArray(y)?y[0]:y;var E=!1;if(Z){var P,v=(P=L==null?void 0:L.idomKey)!=null?P:x;P=y!==Z;Z._disposeEffects=J;var V=Z[hu]||{},h=E7n(D)?D:V.sourceDynamicRange;Object.assign(V,{key:v,numNodes:P?y.length:1,context:S,higherOrder:!!Z[hu],sourceDynamicRange:h});Z[hu]=V}else E=!0;(function(){var H=
_.Kq(S);try{WzN(x,L,y)}finally{_.Kq(H)}})();
E&&J();return D};
A3b=function(x){var L={},D;for(D in x)L={prev$jscomp$24:void 0,next$jscomp$33:void 0},L.prev$jscomp$24=bf[D],L.next$jscomp$33=x[D],bf[D]=function(S){return function(){var Q=_.Ne.apply(0,arguments);S.prev$jscomp$24.apply(null,_.lP(Q));S.next$jscomp$33.apply(null,_.lP(Q))}}(L)};
$uh=function(){if(GJ())throw Error("pc");return Y6};
r34=function(x,L){if(!x.__unmounted&&L){x.__unmounted=!0;try{x.didUnmount()}catch(Q){var D,S;(S=Iu.handleError)==null||S.call.apply(S,[Iu].concat(_.lP($V(Q,(D=x.__type)==null?void 0:D.TAG_NAME))))}bf.didUnmount(x);x.el=null;L.__instance&&delete L.__instance}};
iLs=function(x,L,D){x._signalProps!=null&&x._disposeEffects==null&&((D===void 0?0:D)?x._disposeEffects=BB(function(){return void Nrh(x,L)},Iu.alwaysTrackContexts||!!JI):Nrh(x,L))};
Nrh=function(x,L){_.qN(function(){for(var D=x._signalProps,S=x._signalValues,Q=0;Q<D.length;Q++){var J=D[Q],Z=L[J]();S[Q]!==Z&&(S[Q]=Z,ZL0(x,J,Z))}},"e3YVbb")};
fRf=function(x,L,D){var S,Q=[];x._disposeEffects=BB(function(){_.qN(function(){var J=D();if(J===null||J===void 0)J="";if(vd(J)||J===null)S!=null||(S=document.createTextNode("")),S.parentNode!==x&&(S._isSignalTextNode=!0,x.insertBefore(S,L)),S.textContent=String(J);else if(Voc(J)){for(var Z=Q.length>0?Q[Q.length-1].nextSibling:L,y=_.O(Q),E=y.next();!E.done;E=y.next())x.removeChild(E.value);J=h5b(J);Q=Array.from(J.childNodes);J=_.O(Q);for(y=J.next();!y.done;y=J.next())x.insertBefore(y.value,Z)}else throw E=
(y=(Z=e$)==null?void 0:Z.name)!=null?y:"unknown",Error("ec`"+E+"`"+typeof J);},"VvDgC")},Iu.alwaysTrackContexts||!!JI)};
z5f=function(x,L){var D=_.Ne.apply(2,arguments);L!=null||(L={});return!Iu.enableLazyTsx||e$!=null&&!GJ()?o7h(x,L,D):new aRc(x,L,D)};
o7h=function(x,L,D){if(x===_.I1)return D;if(typeof x==="function")return e$&&!GJ()&&(L.renderedFromIdom=!0),E33(x,function(){var J=XoN(x,L,D);if(J)return J;D.length>0&&(L.children=D.length===1?D[0]:D);if(x.componentType===Ru){var Z;I8b(function(){var y=L;if(x.componentType!==Ru)Z=!1;else{y||(y={});var E=new F0(y,x),P=dH(mr);try{var v=E.render(y)}finally{dH(P)}v instanceof HTMLElement?(v.__instance=E,E.el=v,E.__type=x,x.TAG_NAME=v.tagName.toLowerCase(),bf.didPatch(E),Z=v):Z=v}},x.name);
if(Z)return Z}return qKw(x,L)},L.debugInstance);
var S=c3h(x,L),Q;for(Q in L)ZL0(S,Q,L[Q]);iLs(S,L);uf(D,S);y30(S,L,{isReactive:!0});n7c(S,L);return S};
c3h=function(x,L){x=(to4.has(x.toLowerCase())?0:xFs.has(x.startsWith("svg:")?x.replace("svg:",""):x))?document.createElementNS("http://www.w3.org/2000/svg",x.startsWith("svg:")?x.replace("svg:",""):x):LmO(x,L)||document.createElement(x);x[DFs]=!0;return x};
S8f=function(x){if(x){var L;(L=x._disposeRef)==null||L.call(x);var D;(D=x._disposeEffects)==null||D.call(x);x.__instance&&x.__instance instanceof sX&&(L=x.__instance,r34(L,x),L instanceof F0&&L.disposeEffects());for(L=0;L<x.childNodes.length;L++)S8f(x.childNodes[L])}};
J_f=function(x){Q8s.push(x)===1&&requestAnimationFrame(function(){setTimeout(function(){var L=[].concat(_.lP(Q8s));Q8s=[];L=_.O(L);for(var D=L.next();!D.done;D=L.next()){D=D.value;try{for(var S=0;S<D.length;S++)S8f(D[S])}catch(Q){S=D=void 0,(S=(D=Iu).handleError)==null||S.call.apply(S,[D].concat(_.lP($V(Q))))}}})})};
_.M=function(x,L){return Pzc.apply(null,[x,L].concat(_.lP(_.Ne.apply(2,arguments))))};
_.TS=function(x){return x};
_.eF=function(x){return{isDefault:!0,children:x.children}};
_.d=function(x){var L=x.cond;if(L===void 0)return x.else&&x.else();var D=_.m5(function(){return!!L()},void 0,"JHVi8"),S=function(){var Q=L();
if(!Q){var J;(J=Iu.handleError)==null||J.call.apply(J,[Iu].concat(_.lP($V(Kmp.nonNullableCondIsNull()))))}return Q};
return Hd(function(){var Q=D(),J;BB(function(){var Z=dH(mr);try{J=pm(Q?x.then(S):x.else&&x.else())}finally{dH(Z)}},!0);
return J},{debugName:x.debugInstance,
debugFn:x.then,isControlFlowComponent:!0})};
O6s=function(x){return _.d(x)};
_.R1=function(x){return x.keyBy==="INDEX"?Z6b(x):y_0(x)};
Igp=function(x){x=_.O(x);for(var L=x.next();!L.done;L=x.next()){var D=void 0;(D=L.value)==null||D()}};
y_0=function(x){var L=x.keyBy===void 0||x.keyBy==="REFERENCE",D=L?function(v){return v}:x.keyBy,S=[],Q=[],J=[],Z=[],y=[],E=[],P=!0;
_.wH(function(){Igp(Z)});
return Hd(function(){var v=x.each(),V=v.length;if(V===0){if(S.length===0&&!P)return J;Igp(Z);S=v;Q=[];for(v=0;v<S.length;v++)Q.push(D(S[v]));J=[];Z=[];y=[];E=[];x.fallback&&(Z[0]=ETb(function(){J[0]=pm(x.fallback())}));
P=!1;return J}for(var h=new MqO,H=S.length-1;H>=0;H--)h.push(Q[H],H);H=Array(V);for(var k=Array(V),T=Array(V),G=Array(V),U=Array(L?0:V),l={i$jscomp$450:0};l.i$jscomp$450<V;l={i$jscomp$450:l.i$jscomp$450,item$jscomp$104:void 0,key$jscomp$562:void 0},l.i$jscomp$450++){l.item$jscomp$104=v[l.i$jscomp$450];l.key$jscomp$562=D(l.item$jscomp$104);var X=h.pop(l.key$jscomp$562);X!=null?(T[l.i$jscomp$450]=J[X],k[l.i$jscomp$450]=Q[X],H[l.i$jscomp$450]=Z[X],G[l.i$jscomp$450]=y[X],L||(U[l.i$jscomp$450]=E[X]),bm(function(f){return function(){G[f.i$jscomp$450](f.i$jscomp$450);
if(!L)U[f.i$jscomp$450](f.item$jscomp$104)}}(l)),delete Z[X]):H[l.i$jscomp$450]=ETb(function(f){return function(){var N=_.O(_.HB(f.i$jscomp$450,void 0,"Fqk1zd")),z=N.next().value;
N=N.next().value;G[f.i$jscomp$450]=N;k[f.i$jscomp$450]=f.key$jscomp$562;if(L)T[f.i$jscomp$450]=pm(x.children(f.item$jscomp$104,z));else{var xf=_.O(_.HB(f.item$jscomp$104,void 0,"GBj5de"));N=xf.next().value;xf=xf.next().value;U[f.i$jscomp$450]=xf;T[f.i$jscomp$450]=pm(x.children(N,z))}}}(l))}Igp(Z);
S=v;Q=k;J=T;Z=H;y=G;E=U;P=!1;return T},{debugName:x.debugInstance,
debugFn:x.each,isControlFlowComponent:!0})};
Z6b=function(x){var L=[],D=[],S=[],Q=[],J=!1;_.wH(function(){for(var Z=_.O(Q),y=Z.next();!y.done;y=Z.next())y=y.value,y()});
return Hd(function(){var Z=x.each();J&&Z.length>0&&(Q.pop()(),L.pop(),J=!1);for(var y=Array(Z.length),E={i$jscomp$451:0};E.i$jscomp$451<Z.length;E={i$jscomp$451:E.i$jscomp$451},E.i$jscomp$451++)if(E.i$jscomp$451<L.length)L[E.i$jscomp$451]!==Z[E.i$jscomp$451]&&(bm(function(v){return function(){return void D[v.i$jscomp$451](Z[v.i$jscomp$451])}}(E)),L[E.i$jscomp$451]=Z[E.i$jscomp$451]),y[E.i$jscomp$451]=S[E.i$jscomp$451];
else{var P=ETb(function(v){return function(){L[v.i$jscomp$451]=Z[v.i$jscomp$451];var V=_.O(_.HB(Z[v.i$jscomp$451],void 0,"JMMLmd")),h=V.next().value;V=V.next().value;D[v.i$jscomp$451]=V;y[v.i$jscomp$451]=pm(x.children(h,v.i$jscomp$451))}}(E));
Q[E.i$jscomp$451]=P}for(;L.length>Z.length;)L.pop(),Q.pop()(),D.pop();Z.length===0&&!J&&x.fallback&&(E=ETb(function(){y[0]=pm(x.fallback())}),Q[0]=E,J=!0);
return S=y},{debugName:x.debugInstance,
isControlFlowComponent:!0})};
ETb=function(x){var L=JI;return BB(function(D){var S=dH(mr);try{D.parent=L,x(D)}finally{dH(S)}},!1)};
_.GS=function(x){var L=dFb(x),D=_.m5(function(){return PlN(L)},void 0,"F1PF4");
return Hd(function(){var S=D(),Q;BB(function(){var J=dH(mr);try{Q=pm(S())}finally{dH(J)}});
return Q},{debugName:x.debugInstance,
isControlFlowComponent:!0})};
dFb=function(x){x=x.children;return Array.isArray(x)?x:[x]};
j8f=function(x){var L=x.props;x=x.getChildren()[0];return L.when?{when:L.when,children:x}:{isDefault:!0,children:x}};
PlN=function(x){var L=function(){return null};
x=_.O(x);for(var D=x.next();!D.done;D=x.next())if(D=D.value,D!=null&&D[yN]&&(D=D.type===_.eF?{isDefault:!0,children:D.children[0]}:{when:D.props.when,children:D.children[0]}),D instanceof k6&&(D=j8f(D)),D.isDefault)L=D.children;else if(D.when())return D.children;return L};
VqO=function(x){var L=null,D,S={get value(){var J,Z;(Z=(J=Q).validateGetValue)==null||Z.call(J);return Q.__value},set value(J){var Z,y;(y=(Z=Q).validateSetValue)==null||y.call(Z,J);Q.__value=J;Q.__hasBeenSet=!0}},Q=(S.__value=null,S.__hasBeenSet=!1,S.__hasErrored=!1,S.onRender=function(J){if(D&&J!==D){D._disposeRef=void 0;var Z;(Z=L)==null||Z()}D=J;L=x(J)||null},S.onUnmount=function(){var J;
(J=L)==null||J();L=Q.value=null},S[_.vT4]=!0,S);
return Q};
Cm=function(x){return typeof x==="symbol"};
H63=function(x){var L=$uh();if(L==null)throw _.hDp.PRIMITIVE_INVALID_HOOK_CALL();var D=L.hookCounter++;L.hooks||(L.hooks=[]);var S=L.hooks;S[D]||(S[D]={key:x,host:L});if(x!==S[D].key){if(L.__type){var Q;x=(Q=L.__type)==null?void 0:Q.name}else x=L instanceof F0?I5f(L.functionComponent):"<"+L.el.tagName.toLowerCase()+">";throw _.hDp.OUT_OF_ORDER_HOOK_CALL(x);}return S[D]};
uIh=function(x,L){return!x||x.length!==(L==null?void 0:L.length)||x.some(function(D,S){return D!==L[S]})};
gTn=function(x,L){var D=H63("onChange"),S=$uh();uIh(D.deps,L)&&(D.deps=L,D.pendingEffect=x,S.__syncEffects||(S.__syncEffects=[]),S.__syncEffects.push(D))};
_.lf=function(x,L,D){D!=null||(D={});D=D.appContext;var S=!!Iu.legacyTriggerSoyRendererEvents;_.VN.setUp();try{var Q=k8f(x,L,D);S&&(L=D,L!=null||(L=_.G3n(document).getAppContext()),L.get(R5b).JSC$29103_getEventTarget().dispatchEvent(new G0b(p$0,x,jF)));_.VN.log(x);return Q}finally{_.VN.tearDown()}};
k8f=function(x,L,D){var S=function(){var J=dH(mr);try{return BB(function(){var Z=_.G3n(_.Ac(x)),y;var E=z33({rootElement:{value:x},appContext:D||(Z==null?void 0:(y=Z.getOptionalAppContext)==null?void 0:y.call(Z)),dispatcher:Z});Z=_.Kq(E);E=EX(!0);FU++;try{uf(L(),x),TJ(!1)}catch(P){throw TJ(!0),P;}finally{EX(E),_.Kq(Z)}},!1)}catch(Z){throw Iu.enableContextBasedComponentStacks&&Cq(Z),Z;
}finally{dH(J)}},Q=lm(function(){return S()});
x[mF0]=!0;return function(){x.textContent="";Q();x[mF0]=!1}};
_.UX=function(x){if(Oh0(MN)){var L;(L=Iu.handleError)==null||L.call.apply(L,[Iu].concat(_.lP($V(Error("dc")))))}var D=JI,S=e$;XI4({onInitType:a8f,run:function(){if(D&&!D.isDisposed){var Q=_.Kq(D);try{lm(function(){x()},S)}catch(J){throw Iu.enableContextBasedComponentStacks&&Cq(J),J;
}finally{_.Kq(Q)}}}})};
b64=function(x,L){gTn(function(){return _.hI(x)},L)};
_.wO=function(x){GJ()?_.UX(function(){_.hI(x)}):gTn(function(){return _.hI(x)},[])};
Fmc=function(x){var L=[].concat(_.lP(x));x.length=0;x=_.O(L);for(L=x.next();!L.done;L=x.next()){L=L.value;Y8f(L);var D=L.pendingEffect;L.pendingEffect=null;if(D=D==null?void 0:D())L.pendingCleanup=D}};
Y8f=function(x){var L=x.pendingCleanup;x.pendingCleanup=null;L==null||L()};
s80=function(x,L){if(GJ())return x();var D=H63("useMemoInternal");uIh(D.deps,L)&&(D.deps=L,D.value=x());return D.value};
TgG=function(x,L){return s80(x,L)};
Bd=function(x){return s80(x,[])};
eDN=function(x){return Bd(function(){return{value:x}})};
_.Wd=function(x,L){if(!x)return null;x=Object.keys(x);x=_.O(x);for(var D=x.next();!D.done;D=x.next()){D=D.value;var S=D.toLowerCase();if(S.indexOf(L,S.length-L.length)>-1)return D}return null};
_.Au=function(){var x=arguments,L=_.q9;x.length>1?L[x[0]]=x[1]:x.length===1&&Object.assign(L,x[0])};
_.$6=function(x,L){return x in _.q9?_.q9[x]:L};
_.rO=function(x,L){return!!_.$6(x,L)};
RDb=function(x){var L=_.q9.EXPERIMENT_FLAGS;return L?L[x]:void 0};
Clp=function(x){G8h.forEach(function(L){return L(x)})};
_.fm=function(x){return x&&window.yterr?function(){try{return x.apply(this,arguments)}catch(L){_.N9(L)}}:x};
_.N9=function(x){var L=_.o1("yt.logging.errors.log");L?L(x,"ERROR",void 0,void 0,void 0,void 0,void 0):(L=_.$6("ERRORS",[]),L.push([x,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.Au("ERRORS",L));Clp(x)};
_.X0=function(x,L,D,S,Q){var J=_.o1("yt.logging.errors.log");J?J(x,"WARNING",L,D,S,void 0,Q):(J=_.$6("ERRORS",[]),J.push([x,"WARNING",L,D,S,void 0,Q]),_.Au("ERRORS",J))};
UFh=function(x,L){L=x.split(L);for(var D={},S=0,Q=L.length;S<Q;S++){var J=L[S].split("=");if(J.length===1&&J[0]||J.length===2)try{var Z=lgN(J[0]||""),y=lgN(J[1]||"");if(Z in D){var E=D[Z];Array.isArray(E)?_.is(E,y):D[Z]=[E,y]}else D[Z]=y}catch(h){var P=h,v=J[0],V=String(UFh);P.args=[{key:v,value:J[1],query:x,method:w$N===V?"unchanged":V}];Bg0.hasOwnProperty(v)||_.X0(P)}}return D};
Wmc=function(x){var L=[];_.wk.forEach(x,function(D,S){var Q=_.cd(S);D=Array.isArray(D)?D:[D];_.nm(D,function(J){J==""?L.push(Q):L.push(Q+"="+_.cd(J))})});
return L.join("&")};
_.tu=function(x){x.charAt(0)==="?"&&(x=x.substring(1));return UFh(x,"&")};
_.xQ=function(x){return x.indexOf("?")!==-1?(x=(x||"").split("#")[0],x=x.split("?",2),_.tu(x.length>1?x[1]:x[0])):{}};
_.LH=function(x,L){return q8n(x,L||{},!0)};
A_0=function(x,L){return q8n(x,L||{},!1)};
q8n=function(x,L,D){var S=x.split("#",2);x=S[0];S=S.length>1?"#"+S[1]:"";var Q=x.split("?",2);x=Q[0];Q=_.tu(Q[1]||"");for(var J in L)if(D||!_.wk.containsKey(Q,J))Q[J]=L[J];return _.DN(x,Q)+S};
KH=function(x){if(!L)var L=window.location.href;var D=_.ST(x)[1]||null,S=_.QY(x);return D&&S?J8(x,L):S?_.QY(L)===S&&(Number(_.ST(L)[4]||null)||null)===(Number(_.ST(x)[4]||null)||null):!0};
_.r_b=function(x){x=$Ff(x);return x===null?!1:x[0]==="com"&&x[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
$Ff=function(x){x=_.QY(x);return x!==null?x.split(".").reverse():null};
lgN=function(x){return x&&x.match(Ngw)?x:O2(x)};
_.ZN=function(x){return new i6h(x)};
_.yY=function(){fg4||(fg4=new oTb);return fg4};
zD4=function(){var x=agf;return function(){var L=_.yY();if(!L.resolve(_.ZN(x))){var D={};L.addProvider((D.provide=x,D.useClass=x,D[IZ]=void 0,D))}return L.resolve(x)}};
c_4=function(x){var L=_.E2,D,S;_.I(function(Q){D=_.yY();return(S=D.resolve(_.ZN(L)))?(x(S),Q.return(Promise.resolve(S))):Q.return(D.resolve(new X$f(L)).then(function(J){x(J);return J}))})};
_.u=function(x){x=Mw(x);return typeof x==="string"&&x==="false"?!1:!!x};
_.dE=function(x,L){x=Mw(x);return x===void 0&&L!==void 0?L:Number(x||0)};
nTw=function(x){x=Mw(x);return Array.isArray(x)?_.Bn(x,function(L){return Number(L||0)}):[Number(x||0)]};
_.PY=function(x){x=Mw(x);return x!==void 0?String(x):""};
_.jT=function(x){x=Mw(x);return Array.isArray(x)?_.Bn(x,function(L){return String(L||"")}):[String(x||"")]};
tq3=function(){return _.$6("EXPERIMENTS_TOKEN","")};
Mw=function(x){return _.$6("EXPERIMENT_FLAGS",{})[x]};
xUb=function(){for(var x=[],L=_.$6("EXPERIMENTS_FORCED_FLAGS",{}),D=_.O(Object.keys(L)),S=D.next();!S.done;S=D.next())S=S.value,x.push({key:S,value:String(L[S])});D=_.$6("EXPERIMENT_FLAGS",{});S=_.O(Object.keys(D));for(var Q=S.next();!Q.done;Q=S.next())Q=Q.value,Q.startsWith("force_")&&L[Q]===void 0&&x.push({key:Q,value:String(D[Q])});return x};
DUG=function(){if(!LH0)return null;var x=LH0();return"open"in x?x:null};
_.S4n=function(x){switch(_.vY(x)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.vY=function(x){return x&&"status"in x?x.status:-1};
_.VY=function(x,L){typeof x==="function"&&(x=_.fm(x));return window.setTimeout(x,L)};
_.h8=function(x,L){typeof x==="function"&&(x=_.fm(x));return window.setInterval(x,L)};
_.uj=function(x){window.clearTimeout(x)};
J2w=function(x){x=_.xQ(x);for(var L=_.O(QtN),D=L.next();!D.done;D=L.next())if(x[D.value]!==void 0)return!0;return!1};
Z70=function(x,L,D,S,Q,J,Z,y,E){D=D===void 0?"GET":D;S=S===void 0?"":S;y=y===void 0?!1:y;var P=DUG();if(!P)return null;var v=function(){(P&&"readyState"in P?P.readyState:0)===4&&L&&_.fm(L)(P)};
"onloadend"in P?P.addEventListener("loadend",v,!1):P.onreadystatechange=v;_.u("debug_forward_web_query_parameters")&&(x=KHc(x,window.location.search));P.open(D,x,!0);J&&(P.responseType=J);Z&&(P.withCredentials=!0);D=D==="POST"&&(window.FormData===void 0||!(S instanceof FormData));if(Q=O7p(x,Q))for(var V in Q)P.setRequestHeader(V,Q[V]),"content-type"===V.toLowerCase()&&(D=!1);D&&P.setRequestHeader("Content-Type","application/x-www-form-urlencoded");E&&"onprogress"in P&&(P.onprogress=function(){E(P.responseText)});
if(y&&"setAttributionReporting"in XMLHttpRequest.prototype){x={eventSourceEligible:!0,triggerEligible:!1};try{P.setAttributionReporting(x)}catch(h){_.X0(h)}}P.send(S);return P};
O7p=function(x,L){L=L===void 0?{}:L;var D=KH(x),S=_.$6("INNERTUBE_CLIENT_NAME"),Q=_.u("web_ajax_ignore_global_headers_if_set"),J;for(J in y2N){var Z=_.$6(y2N[J]),y=J==="X-Goog-AuthUser"||J==="X-Goog-PageId";J!=="X-Goog-Visitor-Id"||Z||(Z=_.$6("VISITOR_DATA"));var E;if(!(E=!Z)){if(!(E=D||(_.QY(x)?!1:!0))){E=x;var P;if(P=_.u("add_auth_headers_to_remarketing_google_dot_com_ping")&&J==="Authorization"&&(S==="TVHTML5"||S==="TVHTML5_UNPLUGGED"||S==="TVHTML5_SIMPLY"))P=$Ff(E),P=P===null?!1:P[1]==="google"?
!0:P[2]==="google"?P[0]==="au"&&P[1]==="com"?!0:P[0]==="uk"&&P[1]==="co"?!0:!1:!1;P&&(E=_.gE(E)||"",E=E.split("/"),E="/"+(E.length>1?E[1]:""),P=E==="/pagead");E=P?!0:!1}E=!E}E||Q&&L[J]!==void 0||S==="TVHTML5_UNPLUGGED"&&y||(L[J]=Z)}"X-Goog-EOM-Visitor-Id"in L&&"X-Goog-Visitor-Id"in L&&delete L["X-Goog-Visitor-Id"];if(D||!_.QY(x))L["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(D||!_.QY(x)){try{var v=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(V){}v&&(L["X-YouTube-Time-Zone"]=
v)}document.location.hostname.endsWith("youtubeeducation.com")||!D&&_.QY(x)||(L["X-YouTube-Ad-Signals"]=Wmc(IoN()));return L};
_.ENs=function(x,L){var D=_.QY(x);_.u("debug_handle_relative_url_for_query_forward_killswitch")||!D&&KH(x)&&(D=document.location.hostname);var S=_.gE(x);S=(D=D&&(D.endsWith("youtube.com")||D.endsWith("youtube-nocookie.com")))&&S&&S.startsWith("/api/");if(!D||S)return x;var Q=_.tu(L),J={};_.nm(QtN,function(Z){Q[Z]&&(J[Z]=Q[Z])});
return A_0(x,J)};
Mmn=function(x,L){L.method="POST";L.postParams||(L.postParams={});return _.kQ(x,L)};
dU0=function(x,L){var D=_.$6("XSRF_FIELD_NAME"),S;L.headers&&(S=L.headers["Content-Type"]);return!L.excludeXsrf&&(!_.QY(x)||L.withCredentials||_.QY(x)===document.location.hostname)&&L.method==="POST"&&(!S||S==="application/x-www-form-urlencoded")&&!(L.postParams&&L.postParams[D])};
_.kQ=function(x,L){var D=L.format||"JSON";x=P6c(x,L);var S=jtf(x,L),Q=!1,J=vN3(x,function(E){if(!Q){Q=!0;y&&_.uj(y);var P=_.S4n(E),v=null,V=400<=E.status&&E.status<500,h=500<=E.status&&E.status<600;if(P||V||h)v=Vm3(x,D,E,L.convertToSafeHtml);P&&(P=h$c(D,E,v));v=v||{};V=L.context||_.Qb;P?L.onSuccess&&L.onSuccess.call(V,E,v):L.onError&&L.onError.call(V,E,v);L.onFinish&&L.onFinish.call(V,E,v)}},L.method,S,L.headers,L.responseType,L.withCredentials,!1,L.onProgress);
S=L.timeout||0;if(L.onTimeout&&S>0){var Z=L.onTimeout;var y=_.VY(function(){Q||(Q=!0,J.abort(),_.uj(y),Z.call(L.context||_.Qb,J))},S)}return J};
P6c=function(x,L){L.includeDomain&&(x=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+x);var D=_.$6("XSRF_FIELD_NAME");if(L=L.urlParams)L[D]&&delete L[D],x=_.LH(x,L);return x};
jtf=function(x,L){var D=_.$6("XSRF_FIELD_NAME"),S=_.$6("XSRF_TOKEN"),Q=L.postBody||"",J=L.postParams;dU0(x,L)&&(J||(J={}),J[D]=S);(_.u("ajax_parse_query_data_only_when_filled")&&J&&Object.keys(J).length>0||J)&&typeof Q==="string"&&(Q=_.tu(Q),_.wk.extend(Q,J),Q=L.postBodyFormat&&L.postBodyFormat==="JSON"?JSON.stringify(Q):_.pH(Q));J=Q||J&&!_.wk.isEmpty(J);!H7b&&J&&L.method!=="POST"&&(H7b=!0,_.N9(Error("Jc")));return Q};
Vm3=function(x,L,D,S){var Q=null;switch(L){case "JSON":try{var J=D.responseText}catch(Z){throw S=Error("Kc"),S.params=x,_.X0(S),Z;}x=D.getResponseHeader("Content-Type")||"";J&&x.indexOf("json")>=0&&(J.substring(0,5)===")]}'\n"&&(J=J.substring(5)),Q=JSON.parse(J));break;case "XML":if(x=(x=D.responseXML)?utf(x):null)Q={},_.nm(x.getElementsByTagName("*"),function(Z){Q[Z.tagName]=gN0(Z)})}S&&kDf(Q);
return Q};
kDf=function(x){if(_.on(x))for(var L in x)L==="html_content"||yb(L,"_html")?x[L]=aN(x[L]):kDf(x[L])};
h$c=function(x,L,D){if(L&&L.status===204)return!0;switch(x){case "JSON":return!!D;case "XML":return Number(D&&D.return_code)===0;case "RAW":return!0;default:return!!D}};
utf=function(x){return x?(x=("responseXML"in x?x.responseXML:x).getElementsByTagName("root"))&&x.length>0?x[0]:null:null};
gN0=function(x){var L="";_.nm(x.childNodes,function(D){L+=D.nodeValue});
return L};
paO=function(x){if(x.name==="JavaException")return!0;x=x.stack;return x.includes("chrome://")||x.includes("-extension://")||x.includes("webkit-masked-url://")};
mUw=function(x){if(!x.stack)return!0;var L=!x.stack.includes("\n");return L&&x.stack.includes("ErrorType: ")||L&&x.stack.includes("Anonymous function (Unknown script")||x.stack.toLowerCase()==="not available"||x.fileName==="user-script"||x.fileName.startsWith("user-script:")?!0:!1};
_.mv=function(x){_.Te.call(this);this.JSC$10526_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!x};
Y4n=function(x,L){var D=x.length,S=0,Q=function(){return x.charCodeAt(S++)};
do{var J=b7f(Q);if(J===Infinity)break;var Z=J>>3;switch(J&7){case 0:J=b7f(Q);if(Z===L)return J;break;case 1:if(Z===L)return;S+=8;break;case 2:J=b7f(Q);if(Z===L)return x.substr(S,J);S+=J;break;case 5:if(Z===L)return;S+=4;break;default:return}}while(S<D)};
b7f=function(x){var L=x(),D=L&127;if(L<128)return D;L=x();D|=(L&127)<<7;if(L<128)return D;L=x();D|=(L&127)<<14;if(L<128)return D;L=x();return L<128?D|(L&127)<<21:Infinity};
sts=function(x,L,D,S){if(x)if(Array.isArray(x)){var Q=S;for(S=0;S<x.length&&!(x[S]&&(Q+=FHw(S,x[S],L,D),Q>500));S++);S=Q}else if(typeof x==="object")for(Q in x){if(x[Q]){var J=Q;var Z=x[Q],y=L,E=D;J=typeof Z!=="string"||J!=="clickTrackingParams"&&J!=="trackingParams"?0:(Z=Y4n(atob(Z.replace(/-/g,"+").replace(/_/g,"/")),2))?FHw(J+".ve",Z,y,E):0;S+=J;S+=FHw(Q,x[Q],L,D);if(S>500)break}}else D[L]=bj(x),S+=D[L].length;else D[L]=bj(x),S+=D[L].length;return S};
FHw=function(x,L,D,S){D+="."+x;x=bj(L);S[D]=x;return D.length+x.length};
bj=function(x){try{return(typeof x==="string"?x:String(JSON.stringify(x))).substr(0,500)}catch(L){return"unable to serialize "+typeof x+" ("+L.message+")"}};
TDp=function(x){switch(x){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}};
_.FD=function(x,L,D,S,Q){_.YQ.set(x,L,{maxAge:D,path:"/",domain:S===void 0?"youtube.com":S,secure:Q===void 0?!1:Q})};
_.e$s=function(x,L,D){_.YQ.remove(x,L===void 0?"/":L,D===void 0?"youtube.com":D)};
_.s2=function(){if(_.u("embeds_web_enable_cookie_detection_fix")){if(!_.Qb.navigator.cookieEnabled)return!1}else if(!_.YQ.isEnabled())return!1;if(!_.YQ.isEmpty())return!0;_.u("embeds_web_enable_cookie_detection_fix")?_.YQ.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.YQ.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.YQ.get("TESTCOOKIESENABLED")!=="1")return!1;_.YQ.remove("TESTCOOKIESENABLED");return!0};
R$n=function(){var x=_.Qb.navigator;return x?x.connection:void 0};
GDN=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(x){}};
_.lob=function(){var x=R$n();if(x){var L=C60[x.type||"unknown"]||"CONN_UNKNOWN";x=C60[x.effectiveType||"unknown"]||"CONN_UNKNOWN";L==="CONN_CELLULAR_UNKNOWN"&&x!=="CONN_UNKNOWN"&&(L=x);if(L!=="CONN_UNKNOWN")return L;if(x!=="CONN_UNKNOWN")return x}};
wac=function(){var x=R$n();if(x!=null&&x.effectiveType)return UUN.hasOwnProperty(x.effectiveType)?UUN[x.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.eT=function(){try{return _.TU(),!0}catch(x){return!1}};
_.TU=function(x){if(_.$6("DATASYNC_ID")!==void 0)return _.$6("DATASYNC_ID");throw new _.RZ("Datasync ID not set",x===void 0?"unknown":x);};
_.GU=function(x){this.mechanism=x};
CH=function(x){this.mechanism=x};
lj=function(x){this.storage_=x;this.cachedIsStorageAvailable_=null};
BDb=function(){var x=null;try{x=_.Qb.localStorage||null}catch(L){}lj.call(this,x)};
WHc=function(){var x=null;try{x=_.Qb.sessionStorage||null}catch(L){}lj.call(this,x)};
U2=function(x,L){this.mechanism_=x;this.JSC$10628_prefix_=L+"::"};
_.q40=function(x){var L=new BDb;return L.isAvailable()?x?new U2(L,x):L:null};
_.A20=function(x){var L=new WHc;return L.isAvailable()?x?new U2(L,x):L:null};
r2s=function(){var x;return(x=$UO())==null?void 0:x.get("LAST_RESULT_ENTRY_KEY",!0)};
_.WY=function(x){NDc||(_.wE?_.wE.logError(x):(_.BY.push({type:"ERROR",payload:x}),_.BY.length>10&&_.BY.shift()))};
qw=function(x,L){NDc||(_.wE?_.wE.logEvent(x,L):(_.BY.push({type:"EVENT",eventType:x,payload:L}),_.BY.length>10&&_.BY.shift()))};
A8=function(x){if(x.indexOf(":")>=0)throw Error("Rc");};
$Q=function(x){return x.substr(0,x.indexOf(":"))||x};
oNf=function(){return(i7n||foG)&&rE("applewebkit")&&!rE("version")&&(!rE("safari")||rE("gsa/"))};
rE=function(x){var L=_.hG();return L?L.toLowerCase().indexOf(x)>=0:!1};
Xac=function(x,L,D,S){L=$Q(L);var Q=x instanceof Error?x:Error("Sc`"+x);if(Q instanceof Nw)return Q;x={objectStoreNames:D,dbName:L,dbVersion:S};if(Q.name==="QuotaExceededError")return new Nw("QUOTA_EXCEEDED",x);if(_.ij&&Q.name==="UnknownError")return new Nw("QUOTA_MAYBE_EXCEEDED",x);if(Q instanceof ao0)return new Nw("MISSING_INDEX",Object.assign({},x,{objectStore:Q.objectStore,index:Q.index}));if(Q.name==="InvalidStateError"&&z$c.some(function(J){return Q.message.includes(J)}))return new Nw("EXECUTE_TRANSACTION_ON_CLOSED_DB",
x);
if(Q.name==="AbortError")return new Nw("UNKNOWN_ABORT",x,Q.message);Q.args=[Object.assign({},x,{name:"IdbError",originalName:Q.name})];Q.level="WARNING";return Q};
fH=function(x,L,D){var S=r2s();return new Nw("IDB_NOT_SUPPORTED",{context:{caller:x,publicName:L,version:D,hasSucceededOnce:S==null?void 0:S.hasSucceededOnce}})};
c20=function(x){if(!x)throw Error();throw x;};
nNf=function(x){return x};
tmO=function(x,L,D){var S=function(){try{x.removeEventListener("success",Q),x.removeEventListener("error",J)}catch(Z){}},Q=function(){L(x.result);
S()},J=function(){D(x.error);
S()};
x.addEventListener("success",Q);x.addEventListener("error",J)};
xBh=function(x){return new Promise(function(L,D){tmO(x,L,D)})};
zU=function(x){return new oZ(new aZ(function(L,D){tmO(x,L,D)}))};
Ltw=function(x,L){return new oZ(new aZ(function(D,S){var Q=function(){var J=x?L(x):null;J?J.then(function(Z){x=Z;Q()},S):D()};
Q()}))};
DBf=function(x,L,D){return new Promise(function(S,Q){var J=L!==void 0?self.indexedDB.open(x,L):self.indexedDB.open(x);var Z=D.blocked,y=D.blocking,E=D.terminated,P=D.upgrade,v=D.closed,V,h=function(){V||(V=new XD(J.result,{closed:v}));return V};
J.addEventListener("upgradeneeded",function(H){try{if(H.newVersion===null)throw Error("Xc");if(J.transaction===null)throw Error("Yc");H.dataLoss&&H.dataLoss!=="none"&&qw("IDB_DATA_CORRUPTED",{reason:H.dataLossMessage||"unknown reason",dbName:$Q(x)});var k=h(),T=new cY(J.transaction);P&&P(k,function(G){return H.oldVersion<G&&H.newVersion>=G},T);
T.done.catch(function(G){Q(G)})}catch(G){Q(G)}});
J.addEventListener("success",function(){var H=J.result;y&&H.addEventListener("versionchange",function(){y(h())});
H.addEventListener("close",function(){qw("IDB_UNEXPECTEDLY_CLOSED",{dbName:$Q(x),dbVersion:H.version});E&&E()});
S(h())});
J.addEventListener("error",function(){Q(J.error)});
Z&&J.addEventListener("blocked",function(){Z()})})};
SOf=function(x,L,D){D=D===void 0?{}:D;return DBf(x,L,D)};
_.t8=function(x,L){L=L===void 0?{}:L;var D,S,Q,J;return _.I(function(Z){if(Z.nextAddress==1)return _.HH(Z,2),D=self.indexedDB.deleteDatabase(x),S=L,(Q=S.blocked)&&D.addEventListener("blocked",function(){Q()}),Z.yield(xBh(D),4);
if(Z.nextAddress!=2)return _.nH(Z,0);J=_.mW(Z);throw Xac(J,x,"",-1);})};
JdN=function(x,L){var D;return _.I(function(S){if(S.nextAddress==1)return S.yield(_.xg(QqO,L),2);D=S.yieldResult;return S.return(_.LK(D,["databases"],{enableRetries:!0,mode:"readwrite"},function(Q){var J=Q.objectStore("databases");return J.get(x.actualName).then(function(Z){if(Z?x.actualName!==Z.actualName||x.publicName!==Z.publicName||x.userIdentifier!==Z.userIdentifier:1)return J.put(x).then(function(){})})}))})};
_.DA=function(x,L){var D;return _.I(function(S){if(S.nextAddress==1)return x?S.yield(_.xg(QqO,L),2):S.return();D=S.yieldResult;return S.return(D.delete("databases",x))})};
_.Kts=function(x,L){var D,S;return _.I(function(Q){return Q.nextAddress==1?(D=[],Q.yield(_.xg(QqO,L),2)):Q.nextAddress!=3?(S=Q.yieldResult,Q.yield(_.LK(S,["databases"],{enableRetries:!0,mode:"readonly"},function(J){D.length=0;return SV(J.objectStore("databases"),{},function(Z){x(Z.getValue())&&D.push(Z.getValue());return Z.continue()})}),3)):Q.return(D)})};
OBO=function(x,L){return _.Kts(function(D){return D.publicName===x&&D.userIdentifier!==void 0},L)};
Ivh=function(){var x,L,D,S;return _.I(function(Q){switch(Q.nextAddress){case 1:x=r2s();if((L=x)==null?0:L.hasSucceededOnce)return Q.return(!0);var J;if(J=ZBb)J=/WebKit\/([0-9]+)/.exec(_.hG()),J=!!(J&&parseInt(J[1],10)>=600);J&&(J=/WebKit\/([0-9]+)/.exec(_.hG()),J=!(J&&parseInt(J[1],10)>=602));if(J||Q5)return Q.return(!1);try{if(D=self,!(D.indexedDB&&D.IDBIndex&&D.IDBKeyRange&&D.IDBObjectStore))return Q.return(!1)}catch(Z){return Q.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return Q.return(!1);
_.HH(Q,2);S={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return Q.yield(JdN(S,ydN),4);case 4:return Q.yield(_.DA("yt-idb-test-do-not-use",ydN),5);case 5:return Q.return(!0);case 2:return _.mW(Q),Q.return(!1)}})};
MR3=function(){if(E8N!==void 0)return E8N;NDc=!0;return E8N=Ivh().then(function(x){NDc=!1;var L;if((L=$UO())!=null&&L.expiringStorage_){var D;L={hasSucceededOnce:((D=r2s())==null?void 0:D.hasSucceededOnce)||x};var S;(S=$UO())==null||S.set("LAST_RESULT_ENTRY_KEY",L,2592E3,!0)}return x})};
JE=function(){return _.o1("ytglobal.idbToken_")||void 0};
_.OD=function(){var x=JE();return x?Promise.resolve(x):MR3().then(function(L){(L=L?ydN:void 0)&&_.KK("ytglobal.idbToken_",L);return L})};
dBh=function(x){if(!_.eT())throw x=new Nw("AUTH_INVALID",{dbName:x}),_.WY(x),x;var L=_.TU();return{actualName:x+":"+L,publicName:x,userIdentifier:L}};
P1s=function(x,L,D,S){var Q,J,Z,y,E,P;return _.I(function(v){switch(v.nextAddress){case 1:return J=(Q=Error().stack)!=null?Q:"",v.yield(_.OD(),2);case 2:Z=v.yieldResult;if(!Z)throw y=fH("openDbImpl",x,L),_.u("ytidb_async_stack_killswitch")||(y.stack=y.stack+"\n"+J.substring(J.indexOf("\n")+1)),_.WY(y),y;A8(x);E=D?{actualName:x,publicName:x,userIdentifier:void 0}:dBh(x);_.HH(v,3);return v.yield(JdN(E,Z),5);case 5:return v.yield(SOf(E.actualName,L,S),6);case 6:return v.return(v.yieldResult);case 3:return P=
_.mW(v),_.HH(v,7),v.yield(_.DA(E.actualName,Z),9);case 9:_.nH(v,8);break;case 7:_.mW(v);case 8:throw P;}})};
jq4=function(x,L,D){D=D===void 0?{}:D;return P1s(x,L,!1,D)};
v84=function(x,L,D){D=D===void 0?{}:D;return P1s(x,L,!0,D)};
VRb=function(x,L){L=L===void 0?{}:L;var D,S;return _.I(function(Q){if(Q.nextAddress==1)return Q.yield(_.OD(),2);if(Q.nextAddress!=3){D=Q.yieldResult;if(!D)return Q.return();A8(x);S=dBh(x);return Q.yield(_.t8(S.actualName,L),3)}return Q.yield(_.DA(S.actualName,D),0)})};
hN3=function(x,L,D){x=x.map(function(S){return _.I(function(Q){return Q.nextAddress==1?Q.yield(_.t8(S.actualName,L),2):Q.yield(_.DA(S.actualName,D),0)})});
return Promise.all(x).then(function(){})};
HBw=function(x){var L=L===void 0?{}:L;var D,S;return _.I(function(Q){if(Q.nextAddress==1)return Q.yield(_.OD(),2);if(Q.nextAddress!=3){D=Q.yieldResult;if(!D)return Q.return();A8(x);return Q.yield(OBO(x,D),3)}S=Q.yieldResult;return Q.yield(hN3(S,L,D),0)})};
uA3=function(x,L){L=L===void 0?{}:L;var D;return _.I(function(S){if(S.nextAddress==1)return S.yield(_.OD(),2);if(S.nextAddress!=3){D=S.yieldResult;if(!D)return S.return();A8(x);return S.yield(_.t8(x,L),3)}return S.yield(_.DA(x,D),0)})};
ZA=function(x,L){return g80(x,L)};
pq3=function(x){return _.xg(kFw(),x)};
mBN=function(x,L,D,S){var Q,J,Z;return _.I(function(y){switch(y.nextAddress){case 1:return Q={config:x,hashData:L,timestamp:S!==void 0?S:(0,_.y5)()},y.yield(pq3(D),2);case 2:return J=y.yieldResult,y.yield(J.clear("hotConfigStore"),3);case 3:return y.yield(J.put("hotConfigStore",Q),4);case 4:return Z=y.yieldResult,y.return(Z)}})};
bBs=function(x,L,D,S,Q){var J,Z,y;return _.I(function(E){switch(E.nextAddress){case 1:return J={config:x,hashData:L,configData:D,timestamp:Q!==void 0?Q:(0,_.y5)()},E.yield(pq3(S),2);case 2:return Z=E.yieldResult,E.yield(Z.clear("coldConfigStore"),3);case 3:return E.yield(Z.put("coldConfigStore",J),4);case 4:return y=E.yieldResult,E.return(y)}})};
YOs=function(x){var L,D;return _.I(function(S){return S.nextAddress==1?S.yield(pq3(x),2):S.nextAddress!=3?(L=S.yieldResult,D=void 0,S.yield(_.LK(L,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(Q){return _.IE(Q.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(J){D=J.getValue()})}),3)):S.return(D)})};
Fth=function(x){var L,D;return _.I(function(S){return S.nextAddress==1?S.yield(pq3(x),2):S.nextAddress!=3?(L=S.yieldResult,D=void 0,S.yield(_.LK(L,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(Q){return _.IE(Q.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(J){D=J.getValue()})}),3)):S.return(D)})};
sq0=function(){return _.I(function(x){return x.yield(HBw("ytGcfConfig"),0)})};
TYG=function(){return"INNERTUBE_API_KEY"in _.q9&&"INNERTUBE_API_VERSION"in _.q9};
_.ED=function(){return{innertubeApiKey:_.$6("INNERTUBE_API_KEY"),innertubeApiVersion:_.$6("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.$6("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.$6("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.$6("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.$6("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.$6("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.$6("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.$6("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.rO("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.rO("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.$6("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.wqs=function(x){var L={client:{hl:x.innertubeContextHostLanguage,gl:x.innertubeContextGeoLocation,clientName:x.innertubeContextClientName,clientVersion:x.innertubeContextClientVersion,configInfo:x.innertubeContextClientConfigInfo}};navigator.userAgent&&(L.client.userAgent=String(navigator.userAgent));var D=_.Qb.devicePixelRatio;D&&D!=1&&(L.client.screenDensityFloat=String(D));D=tq3();D!==""&&(L.client.experimentsToken=D);D=xUb();D.length>0&&(L.request={internalExperimentFlags:D});eN3(x,void 0,L);
RNN(void 0,L);GFn(void 0,L);C14(x,void 0,L);lvw(void 0,L);_.u("start_client_gcf")&&UBN(void 0,L);_.$6("DELEGATED_SESSION_ID")&&!_.u("pageid_as_header_web")&&(L.user={onBehalfOfUser:_.$6("DELEGATED_SESSION_ID")});!_.u("fill_delegate_context_in_gel_killswitch")&&(x=_.$6("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(L.user=Object.assign({},L.user,{serializedDelegationContext:x}));x=_.$6("INNERTUBE_CONTEXT");var S;if(_.u("enable_persistent_device_token")&&(x==null?0:(S=x.client)==null?0:S.rolloutToken)){var Q;
L.client.rolloutToken=x==null?void 0:(Q=x.client)==null?void 0:Q.rolloutToken}S=Object;Q=S.assign;x=L.client;D={};for(var J=_.O(Object.entries(_.tu(_.$6("DEVICE","")))),Z=J.next();!Z.done;Z=J.next()){var y=_.O(Z.value);Z=y.next().value;y=y.next().value;Z==="cbrand"?D.deviceMake=y:Z==="cmodel"?D.deviceModel=y:Z==="cbr"?D.browserName=y:Z==="cbrver"?D.browserVersion=y:Z==="cos"?D.osName=y:Z==="cosver"?D.osVersion=y:Z==="cplatform"&&(D.platform=y)}L.client=Q.call(S,x,D);return L};
eN3=function(x,L,D){x=x.innertubeContextClientName;if(x==="WEB"||x==="MWEB"||x===1||x===2)if(L){D=_.Mg(L,BYf,96)||new BYf;var S=Wt0();S=Object.keys(qOf).indexOf(S);S=S===-1?null:S;S!==null&&_.dt(D,3,S);_.mR(L,96,D)}else D&&(D.client.mainAppWebInfo=(S=D.client.mainAppWebInfo)!=null?S:{},D.client.mainAppWebInfo.webDisplayMode=Wt0())};
RNN=function(x,L){var D=_.o1("yt.embedded_player.embed_url");D&&(x?(L=_.Mg(x,Ad0,7)||new Ad0,_.ei(L,4,D),_.mR(x,7,L)):L&&(L.thirdParty={embedUrl:D}))};
GFn=function(x,L){var D;if(_.u("web_log_memory_total_kbytes")&&((D=_.Qb.navigator)==null?0:D.deviceMemory)){var S;D=(S=_.Qb.navigator)==null?void 0:S.deviceMemory;x?_.PW(x,95,Eu(D*1E6)):L&&(L.client.memoryTotalKbytes=""+D*1E6)}};
C14=function(x,L,D){if(x.appInstallData)if(L){var S;D=(S=_.Mg(L,jV,62))!=null?S:new jV;_.ei(D,6,x.appInstallData);_.mR(L,62,D)}else D&&(D.client.configInfo=D.client.configInfo||{},D.client.configInfo.appInstallData=x.appInstallData)};
lvw=function(x,L){var D=_.lob();D&&(x?_.dt(x,61,$BG[D]):L&&(L.client.connectionType=D));_.u("web_log_effective_connection_type")&&(D=wac())&&(x?_.dt(x,94,rd0[D]):L&&(L.client.effectiveConnectionType=D))};
_.fvG=function(x,L,D){D=D===void 0?{}:D;var S={};_.$6("EOM_VISITOR_DATA")?S={"X-Goog-EOM-Visitor-Id":_.$6("EOM_VISITOR_DATA")}:S={"X-Goog-Visitor-Id":D.visitorData||_.$6("VISITOR_DATA","")};if(L&&L.includes("www.youtube-nocookie.com"))return S;L=D.authorization||_.$6("AUTHORIZATION");L||(x?L="Bearer "+_.o1("gapi.auth.getToken")().access_token:(NYf.instance||(NYf.instance=new NYf),x=iBc(),_.u("pageid_as_header_web")||delete x["X-Goog-PageId"],S=Object.assign({},S,x)));L&&(S.Authorization=L);return S};
UBN=function(x,L){var D=o8s();if(D){var S=D.coldConfigData,Q=D.coldHashData;D=D.hotHashData;if(x){var J;L=(J=_.Mg(x,jV,62))!=null?J:new jV;S=_.ei(L,1,S);_.ei(S,3,Q).setHotHashData(D);_.mR(x,62,L)}else L&&(L.client.configInfo=L.client.configInfo||{},S&&(L.client.configInfo.coldConfigData=S),Q&&(L.client.configInfo.coldHashData=Q),D&&(L.client.configInfo.hotHashData=D))}};
vW=function(x){for(var L=x.length;--L>=0;)x[L]=0};
av4=function(x,L,D,S,Q){this.static_tree=x;this.extra_bits=L;this.extra_base=D;this.elems=S;this.max_length=Q;this.has_stree=x&&x.length};
zNN=function(x,L){this.dyn_tree=x;this.max_code=0;this.stat_desc=L};
V5=function(x,L){x.pending_buf[x.pending++]=L&255;x.pending_buf[x.pending++]=L>>>8&255};
hE=function(x,L,D){x.bi_valid>16-D?(x.bi_buf|=L<<x.bi_valid&65535,V5(x,x.bi_buf),x.bi_buf=L>>16-x.bi_valid,x.bi_valid+=D-16):(x.bi_buf|=L<<x.bi_valid&65535,x.bi_valid+=D)};
HW=function(x,L,D){hE(x,D[L*2],D[L*2+1])};
Xqf=function(x,L){var D=0;do D|=x&1,x>>>=1,D<<=1;while(--L>0);return D>>>1};
cds=function(x,L,D){var S=Array(16),Q=0,J;for(J=1;J<=15;J++)S[J]=Q=Q+D[J-1]<<1;for(D=0;D<=L;D++)Q=x[D*2+1],Q!==0&&(x[D*2]=Xqf(S[Q]++,Q))};
n8f=function(x){var L;for(L=0;L<286;L++)x.dyn_ltree[L*2]=0;for(L=0;L<30;L++)x.dyn_dtree[L*2]=0;for(L=0;L<19;L++)x.bl_tree[L*2]=0;x.dyn_ltree[512]=1;x.opt_len=x.static_len=0;x.last_lit=x.matches=0};
tRN=function(x){x.bi_valid>8?V5(x,x.bi_buf):x.bi_valid>0&&(x.pending_buf[x.pending++]=x.bi_buf);x.bi_buf=0;x.bi_valid=0};
x$4=function(x,L,D){tRN(x);V5(x,D);V5(x,~D);u7.arraySet(x.pending_buf,x.window,L,D,x.pending);x.pending+=D};
LX0=function(x,L,D,S){var Q=L*2,J=D*2;return x[Q]<x[J]||x[Q]===x[J]&&S[L]<=S[D]};
D$0=function(x,L,D){for(var S=x.heap[D],Q=D<<1;Q<=x.heap_len;){Q<x.heap_len&&LX0(L,x.heap[Q+1],x.heap[Q],x.depth)&&Q++;if(LX0(L,S,x.heap[Q],x.depth))break;x.heap[D]=x.heap[Q];D=Q;Q<<=1}x.heap[D]=S};
O$f=function(x,L,D){var S=0;if(x.last_lit!==0){do{var Q=x.pending_buf[x.d_buf+S*2]<<8|x.pending_buf[x.d_buf+S*2+1];var J=x.pending_buf[x.l_buf+S];S++;if(Q===0)HW(x,J,L);else{var Z=gt[J];HW(x,Z+256+1,L);var y=SYw[Z];y!==0&&(J-=QWO[Z],hE(x,J,y));Q--;Z=Q<256?kg[Q]:kg[256+(Q>>>7)];HW(x,Z,D);y=Jq4[Z];y!==0&&(Q-=KX4[Z],hE(x,Q,y))}}while(S<x.last_lit)}HW(x,256,L)};
Z$G=function(x,L){var D=L.dyn_tree,S=L.stat_desc.static_tree,Q=L.stat_desc.has_stree,J=L.stat_desc.elems,Z,y=-1;x.heap_len=0;x.heap_max=573;for(Z=0;Z<J;Z++)D[Z*2]!==0?(x.heap[++x.heap_len]=y=Z,x.depth[Z]=0):D[Z*2+1]=0;for(;x.heap_len<2;){var E=x.heap[++x.heap_len]=y<2?++y:0;D[E*2]=1;x.depth[E]=0;x.opt_len--;Q&&(x.static_len-=S[E*2+1])}L.max_code=y;for(Z=x.heap_len>>1;Z>=1;Z--)D$0(x,D,Z);E=J;do Z=x.heap[1],x.heap[1]=x.heap[x.heap_len--],D$0(x,D,1),S=x.heap[1],x.heap[--x.heap_max]=Z,x.heap[--x.heap_max]=
S,D[E*2]=D[Z*2]+D[S*2],x.depth[E]=(x.depth[Z]>=x.depth[S]?x.depth[Z]:x.depth[S])+1,D[Z*2+1]=D[S*2+1]=E,x.heap[1]=E++,D$0(x,D,1);while(x.heap_len>=2);x.heap[--x.heap_max]=x.heap[1];Z=L.dyn_tree;E=L.max_code;S=L.stat_desc.static_tree;Q=L.stat_desc.has_stree;J=L.stat_desc.extra_bits;var P=L.stat_desc.extra_base,v=L.stat_desc.max_length,V,h=0;for(V=0;V<=15;V++)x.bl_count[V]=0;Z[x.heap[x.heap_max]*2+1]=0;for(L=x.heap_max+1;L<573;L++){var H=x.heap[L];V=Z[Z[H*2+1]*2+1]+1;V>v&&(V=v,h++);Z[H*2+1]=V;if(!(H>
E)){x.bl_count[V]++;var k=0;H>=P&&(k=J[H-P]);var T=Z[H*2];x.opt_len+=T*(V+k);Q&&(x.static_len+=T*(S[H*2+1]+k))}}if(h!==0){do{for(V=v-1;x.bl_count[V]===0;)V--;x.bl_count[V]--;x.bl_count[V+1]+=2;x.bl_count[v]--;h-=2}while(h>0);for(V=v;V!==0;V--)for(H=x.bl_count[V];H!==0;)S=x.heap[--L],S>E||(Z[S*2+1]!==V&&(x.opt_len+=(V-Z[S*2+1])*Z[S*2],Z[S*2+1]=V),H--)}cds(D,y,x.bl_count)};
yqp=function(x,L,D){var S,Q=-1,J=L[1],Z=0,y=7,E=4;J===0&&(y=138,E=3);L[(D+1)*2+1]=65535;for(S=0;S<=D;S++){var P=J;J=L[(S+1)*2+1];++Z<y&&P===J||(Z<E?x.bl_tree[P*2]+=Z:P!==0?(P!==Q&&x.bl_tree[P*2]++,x.bl_tree[32]++):Z<=10?x.bl_tree[34]++:x.bl_tree[36]++,Z=0,Q=P,J===0?(y=138,E=3):P===J?(y=6,E=3):(y=7,E=4))}};
I4c=function(x,L,D){var S,Q=-1,J=L[1],Z=0,y=7,E=4;J===0&&(y=138,E=3);for(S=0;S<=D;S++){var P=J;J=L[(S+1)*2+1];if(!(++Z<y&&P===J)){if(Z<E){do HW(x,P,x.bl_tree);while(--Z!==0)}else P!==0?(P!==Q&&(HW(x,P,x.bl_tree),Z--),HW(x,16,x.bl_tree),hE(x,Z-3,2)):Z<=10?(HW(x,17,x.bl_tree),hE(x,Z-3,3)):(HW(x,18,x.bl_tree),hE(x,Z-11,7));Z=0;Q=P;J===0?(y=138,E=3):P===J?(y=6,E=3):(y=7,E=4)}}};
E9N=function(x){var L=4093624447,D;for(D=0;D<=31;D++,L>>>=1)if(L&1&&x.dyn_ltree[D*2]!==0)return 0;if(x.dyn_ltree[18]!==0||x.dyn_ltree[20]!==0||x.dyn_ltree[26]!==0)return 1;for(D=32;D<256;D++)if(x.dyn_ltree[D*2]!==0)return 1;return 0};
pK=function(x,L,D){x.pending_buf[x.d_buf+x.last_lit*2]=L>>>8&255;x.pending_buf[x.d_buf+x.last_lit*2+1]=L&255;x.pending_buf[x.l_buf+x.last_lit]=D&255;x.last_lit++;L===0?x.dyn_ltree[D*2]++:(x.matches++,L--,x.dyn_ltree[(gt[D]+256+1)*2]++,x.dyn_dtree[(L<256?kg[L]:kg[256+(L>>>7)])*2]++);return x.last_lit===x.lit_bufsize-1};
b7=function(x,L){x.msg=mN[L];return L};
Yg=function(x){for(var L=x.length;--L>=0;)x[L]=0};
Fg=function(x){var L=x.state,D=L.pending;D>x.avail_out&&(D=x.avail_out);D!==0&&(u7.arraySet(x.output,L.pending_buf,L.pending_out,D,x.next_out),x.next_out+=D,L.pending_out+=D,x.total_out+=D,x.avail_out-=D,L.pending-=D,L.pending===0&&(L.pending_out=0))};
eV=function(x,L){var D=x.block_start>=0?x.block_start:-1,S=x.strstart-x.block_start,Q=0;if(x.level>0){x.strm.data_type===2&&(x.strm.data_type=E9N(x));Z$G(x,x.l_desc);Z$G(x,x.d_desc);yqp(x,x.dyn_ltree,x.l_desc.max_code);yqp(x,x.dyn_dtree,x.d_desc.max_code);Z$G(x,x.bl_desc);for(Q=18;Q>=3&&x.bl_tree[Mrf[Q]*2+1]===0;Q--);x.opt_len+=3*(Q+1)+5+5+4;var J=x.opt_len+3+7>>>3;var Z=x.static_len+3+7>>>3;Z<=J&&(J=Z)}else J=Z=S+5;if(S+4<=J&&D!==-1)hE(x,L?1:0,3),x$4(x,D,S);else if(x.strategy===4||Z===J)hE(x,2+(L?
1:0),3),O$f(x,sD,T3);else{hE(x,4+(L?1:0),3);D=x.l_desc.max_code+1;S=x.d_desc.max_code+1;Q+=1;hE(x,D-257,5);hE(x,S-1,5);hE(x,Q-4,4);for(J=0;J<Q;J++)hE(x,x.bl_tree[Mrf[J]*2+1],3);I4c(x,x.dyn_ltree,D-1);I4c(x,x.dyn_dtree,S-1);O$f(x,x.dyn_ltree,x.dyn_dtree)}n8f(x);L&&tRN(x);x.block_start=x.strstart;Fg(x.strm)};
RE=function(x,L){x.pending_buf[x.pending++]=L};
G3=function(x,L){x.pending_buf[x.pending++]=L>>>8&255;x.pending_buf[x.pending++]=L&255};
d$c=function(x,L){var D=x.max_chain_length,S=x.strstart,Q=x.prev_length,J=x.nice_match,Z=x.strstart>x.w_size-262?x.strstart-(x.w_size-262):0,y=x.window,E=x.w_mask,P=x.prev,v=x.strstart+258,V=y[S+Q-1],h=y[S+Q];x.prev_length>=x.good_match&&(D>>=2);J>x.lookahead&&(J=x.lookahead);do{var H=L;if(y[H+Q]===h&&y[H+Q-1]===V&&y[H]===y[S]&&y[++H]===y[S+1]){S+=2;for(H++;y[++S]===y[++H]&&y[++S]===y[++H]&&y[++S]===y[++H]&&y[++S]===y[++H]&&y[++S]===y[++H]&&y[++S]===y[++H]&&y[++S]===y[++H]&&y[++S]===y[++H]&&S<v;);
H=258-(v-S);S=v-258;if(H>Q){x.match_start=L;Q=H;if(H>=J)break;V=y[S+Q-1];h=y[S+Q]}}}while((L=P[L&E])>Z&&--D!==0);return Q<=x.lookahead?Q:x.lookahead};
l7=function(x){var L=x.w_size,D;do{var S=x.window_size-x.lookahead-x.strstart;if(x.strstart>=L+(L-262)){u7.arraySet(x.window,x.window,L,L,0);x.match_start-=L;x.strstart-=L;x.block_start-=L;var Q=D=x.hash_size;do{var J=x.head[--Q];x.head[Q]=J>=L?J-L:0}while(--D);Q=D=L;do J=x.prev[--Q],x.prev[Q]=J>=L?J-L:0;while(--D);S+=L}if(x.strm.avail_in===0)break;Q=x.strm;D=x.window;J=x.strstart+x.lookahead;var Z=Q.avail_in;Z>S&&(Z=S);Z===0?D=0:(Q.avail_in-=Z,u7.arraySet(D,Q.input,Q.next_in,Z,J),Q.state.wrap===
1?Q.adler=PN0(Q.adler,D,Z,J):Q.state.wrap===2&&(Q.adler=CK(Q.adler,D,Z,J)),Q.next_in+=Z,Q.total_in+=Z,D=Z);x.lookahead+=D;if(x.lookahead+x.insert>=3)for(S=x.strstart-x.insert,x.ins_h=x.window[S],x.ins_h=(x.ins_h<<x.hash_shift^x.window[S+1])&x.hash_mask;x.insert&&!(x.ins_h=(x.ins_h<<x.hash_shift^x.window[S+3-1])&x.hash_mask,x.prev[S&x.w_mask]=x.head[x.ins_h],x.head[x.ins_h]=S,S++,x.insert--,x.lookahead+x.insert<3););}while(x.lookahead<262&&x.strm.avail_in!==0)};
jWc=function(x,L){for(var D;;){if(x.lookahead<262){l7(x);if(x.lookahead<262&&L===0)return 1;if(x.lookahead===0)break}D=0;x.lookahead>=3&&(x.ins_h=(x.ins_h<<x.hash_shift^x.window[x.strstart+3-1])&x.hash_mask,D=x.prev[x.strstart&x.w_mask]=x.head[x.ins_h],x.head[x.ins_h]=x.strstart);D!==0&&x.strstart-D<=x.w_size-262&&(x.match_length=d$c(x,D));if(x.match_length>=3)if(D=pK(x,x.strstart-x.match_start,x.match_length-3),x.lookahead-=x.match_length,x.match_length<=x.max_lazy_match&&x.lookahead>=3){x.match_length--;
do x.strstart++,x.ins_h=(x.ins_h<<x.hash_shift^x.window[x.strstart+3-1])&x.hash_mask,x.prev[x.strstart&x.w_mask]=x.head[x.ins_h],x.head[x.ins_h]=x.strstart;while(--x.match_length!==0);x.strstart++}else x.strstart+=x.match_length,x.match_length=0,x.ins_h=x.window[x.strstart],x.ins_h=(x.ins_h<<x.hash_shift^x.window[x.strstart+1])&x.hash_mask;else D=pK(x,0,x.window[x.strstart]),x.lookahead--,x.strstart++;if(D&&(eV(x,!1),x.strm.avail_out===0))return 1}x.insert=x.strstart<2?x.strstart:2;return L===4?(eV(x,
!0),x.strm.avail_out===0?3:4):x.last_lit&&(eV(x,!1),x.strm.avail_out===0)?1:2};
UD=function(x,L){for(var D,S;;){if(x.lookahead<262){l7(x);if(x.lookahead<262&&L===0)return 1;if(x.lookahead===0)break}D=0;x.lookahead>=3&&(x.ins_h=(x.ins_h<<x.hash_shift^x.window[x.strstart+3-1])&x.hash_mask,D=x.prev[x.strstart&x.w_mask]=x.head[x.ins_h],x.head[x.ins_h]=x.strstart);x.prev_length=x.match_length;x.prev_match=x.match_start;x.match_length=2;D!==0&&x.prev_length<x.max_lazy_match&&x.strstart-D<=x.w_size-262&&(x.match_length=d$c(x,D),x.match_length<=5&&(x.strategy===1||x.match_length===3&&
x.strstart-x.match_start>4096)&&(x.match_length=2));if(x.prev_length>=3&&x.match_length<=x.prev_length){S=x.strstart+x.lookahead-3;D=pK(x,x.strstart-1-x.prev_match,x.prev_length-3);x.lookahead-=x.prev_length-1;x.prev_length-=2;do++x.strstart<=S&&(x.ins_h=(x.ins_h<<x.hash_shift^x.window[x.strstart+3-1])&x.hash_mask,x.prev[x.strstart&x.w_mask]=x.head[x.ins_h],x.head[x.ins_h]=x.strstart);while(--x.prev_length!==0);x.match_available=0;x.match_length=2;x.strstart++;if(D&&(eV(x,!1),x.strm.avail_out===0))return 1}else if(x.match_available){if((D=
pK(x,0,x.window[x.strstart-1]))&&eV(x,!1),x.strstart++,x.lookahead--,x.strm.avail_out===0)return 1}else x.match_available=1,x.strstart++,x.lookahead--}x.match_available&&(pK(x,0,x.window[x.strstart-1]),x.match_available=0);x.insert=x.strstart<2?x.strstart:2;return L===4?(eV(x,!0),x.strm.avail_out===0?3:4):x.last_lit&&(eV(x,!1),x.strm.avail_out===0)?1:2};
v9f=function(x,L){for(var D,S,Q,J=x.window;;){if(x.lookahead<=258){l7(x);if(x.lookahead<=258&&L===0)return 1;if(x.lookahead===0)break}x.match_length=0;if(x.lookahead>=3&&x.strstart>0&&(S=x.strstart-1,D=J[S],D===J[++S]&&D===J[++S]&&D===J[++S])){for(Q=x.strstart+258;D===J[++S]&&D===J[++S]&&D===J[++S]&&D===J[++S]&&D===J[++S]&&D===J[++S]&&D===J[++S]&&D===J[++S]&&S<Q;);x.match_length=258-(Q-S);x.match_length>x.lookahead&&(x.match_length=x.lookahead)}x.match_length>=3?(D=pK(x,1,x.match_length-3),x.lookahead-=
x.match_length,x.strstart+=x.match_length,x.match_length=0):(D=pK(x,0,x.window[x.strstart]),x.lookahead--,x.strstart++);if(D&&(eV(x,!1),x.strm.avail_out===0))return 1}x.insert=0;return L===4?(eV(x,!0),x.strm.avail_out===0?3:4):x.last_lit&&(eV(x,!1),x.strm.avail_out===0)?1:2};
Vrc=function(x,L){for(var D;;){if(x.lookahead===0&&(l7(x),x.lookahead===0)){if(L===0)return 1;break}x.match_length=0;D=pK(x,0,x.window[x.strstart]);x.lookahead--;x.strstart++;if(D&&(eV(x,!1),x.strm.avail_out===0))return 1}x.insert=0;return L===4?(eV(x,!0),x.strm.avail_out===0?3:4):x.last_lit&&(eV(x,!1),x.strm.avail_out===0)?1:2};
wt=function(x,L,D,S,Q){this.good_length=x;this.max_lazy=L;this.nice_length=D;this.max_chain=S;this.func=Q};
hK0=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 u7.Buf16(1146);this.dyn_dtree=new u7.Buf16(122);this.bl_tree=new u7.Buf16(78);Yg(this.dyn_ltree);Yg(this.dyn_dtree);Yg(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new u7.Buf16(16);this.heap=new u7.Buf16(573);Yg(this.heap);this.heap_max=this.heap_len=0;this.depth=new u7.Buf16(573);Yg(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};
H$h=function(x,L){if(!x||!x.state||L>5||L<0)return x?b7(x,-2):-2;var D=x.state;if(!x.output||!x.input&&x.avail_in!==0||D.status===666&&L!==4)return b7(x,x.avail_out===0?-5:-2);D.strm=x;var S=D.last_flush;D.last_flush=L;if(D.status===42)if(D.wrap===2)x.adler=0,RE(D,31),RE(D,139),RE(D,8),D.gzhead?(RE(D,(D.gzhead.text?1:0)+(D.gzhead.hcrc?2:0)+(D.gzhead.extra?4:0)+(D.gzhead.name?8:0)+(D.gzhead.comment?16:0)),RE(D,D.gzhead.time&255),RE(D,D.gzhead.time>>8&255),RE(D,D.gzhead.time>>16&255),RE(D,D.gzhead.time>>
24&255),RE(D,D.level===9?2:D.strategy>=2||D.level<2?4:0),RE(D,D.gzhead.os&255),D.gzhead.extra&&D.gzhead.extra.length&&(RE(D,D.gzhead.extra.length&255),RE(D,D.gzhead.extra.length>>8&255)),D.gzhead.hcrc&&(x.adler=CK(x.adler,D.pending_buf,D.pending,0)),D.gzindex=0,D.status=69):(RE(D,0),RE(D,0),RE(D,0),RE(D,0),RE(D,0),RE(D,D.level===9?2:D.strategy>=2||D.level<2?4:0),RE(D,3),D.status=113);else{var Q=8+(D.w_bits-8<<4)<<8;Q|=(D.strategy>=2||D.level<2?0:D.level<6?1:D.level===6?2:3)<<6;D.strstart!==0&&(Q|=
32);D.status=113;G3(D,Q+(31-Q%31));D.strstart!==0&&(G3(D,x.adler>>>16),G3(D,x.adler&65535));x.adler=1}if(D.status===69)if(D.gzhead.extra){for(Q=D.pending;D.gzindex<(D.gzhead.extra.length&65535)&&(D.pending!==D.pending_buf_size||(D.gzhead.hcrc&&D.pending>Q&&(x.adler=CK(x.adler,D.pending_buf,D.pending-Q,Q)),Fg(x),Q=D.pending,D.pending!==D.pending_buf_size));)RE(D,D.gzhead.extra[D.gzindex]&255),D.gzindex++;D.gzhead.hcrc&&D.pending>Q&&(x.adler=CK(x.adler,D.pending_buf,D.pending-Q,Q));D.gzindex===D.gzhead.extra.length&&
(D.gzindex=0,D.status=73)}else D.status=73;if(D.status===73)if(D.gzhead.name){Q=D.pending;do{if(D.pending===D.pending_buf_size&&(D.gzhead.hcrc&&D.pending>Q&&(x.adler=CK(x.adler,D.pending_buf,D.pending-Q,Q)),Fg(x),Q=D.pending,D.pending===D.pending_buf_size)){var J=1;break}J=D.gzindex<D.gzhead.name.length?D.gzhead.name.charCodeAt(D.gzindex++)&255:0;RE(D,J)}while(J!==0);D.gzhead.hcrc&&D.pending>Q&&(x.adler=CK(x.adler,D.pending_buf,D.pending-Q,Q));J===0&&(D.gzindex=0,D.status=91)}else D.status=91;if(D.status===
91)if(D.gzhead.comment){Q=D.pending;do{if(D.pending===D.pending_buf_size&&(D.gzhead.hcrc&&D.pending>Q&&(x.adler=CK(x.adler,D.pending_buf,D.pending-Q,Q)),Fg(x),Q=D.pending,D.pending===D.pending_buf_size)){J=1;break}J=D.gzindex<D.gzhead.comment.length?D.gzhead.comment.charCodeAt(D.gzindex++)&255:0;RE(D,J)}while(J!==0);D.gzhead.hcrc&&D.pending>Q&&(x.adler=CK(x.adler,D.pending_buf,D.pending-Q,Q));J===0&&(D.status=103)}else D.status=103;D.status===103&&(D.gzhead.hcrc?(D.pending+2>D.pending_buf_size&&Fg(x),
D.pending+2<=D.pending_buf_size&&(RE(D,x.adler&255),RE(D,x.adler>>8&255),x.adler=0,D.status=113)):D.status=113);if(D.pending!==0){if(Fg(x),x.avail_out===0)return D.last_flush=-1,0}else if(x.avail_in===0&&(L<<1)-(L>4?9:0)<=(S<<1)-(S>4?9:0)&&L!==4)return b7(x,-5);if(D.status===666&&x.avail_in!==0)return b7(x,-5);if(x.avail_in!==0||D.lookahead!==0||L!==0&&D.status!==666){S=D.strategy===2?Vrc(D,L):D.strategy===3?v9f(D,L):BW[D.level].func(D,L);if(S===3||S===4)D.status=666;if(S===1||S===3)return x.avail_out===
0&&(D.last_flush=-1),0;if(S===2&&(L===1?(hE(D,2,3),HW(D,256,sD),D.bi_valid===16?(V5(D,D.bi_buf),D.bi_buf=0,D.bi_valid=0):D.bi_valid>=8&&(D.pending_buf[D.pending++]=D.bi_buf&255,D.bi_buf>>=8,D.bi_valid-=8)):L!==5&&(hE(D,0,3),x$4(D,0,0),L===3&&(Yg(D.head),D.lookahead===0&&(D.strstart=0,D.block_start=0,D.insert=0))),Fg(x),x.avail_out===0))return D.last_flush=-1,0}if(L!==4)return 0;if(D.wrap<=0)return 1;D.wrap===2?(RE(D,x.adler&255),RE(D,x.adler>>8&255),RE(D,x.adler>>16&255),RE(D,x.adler>>24&255),RE(D,
x.total_in&255),RE(D,x.total_in>>8&255),RE(D,x.total_in>>16&255),RE(D,x.total_in>>24&255)):(G3(D,x.adler>>>16),G3(D,x.adler&65535));Fg(x);D.wrap>0&&(D.wrap=-D.wrap);return D.pending!==0?0:1};
u10=function(x){if(!(this instanceof u10))return new u10(x);x=this.options=u7.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},x||{});x.raw&&x.windowBits>0?x.windowBits=-x.windowBits:x.gzip&&x.windowBits>0&&x.windowBits<16&&(x.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new g9G;this.strm.avail_out=0;var L=this.strm;var D=x.level,S=x.method,Q=x.windowBits,J=x.memLevel,Z=x.strategy;if(L){var y=1;D===-1&&(D=6);Q<0?(y=0,Q=-Q):Q>15&&
(y=2,Q-=16);if(J<1||J>9||S!==8||Q<8||Q>15||D<0||D>9||Z<0||Z>4)L=b7(L,-2);else{Q===8&&(Q=9);var E=new hK0;L.state=E;E.strm=L;E.wrap=y;E.gzhead=null;E.w_bits=Q;E.w_size=1<<E.w_bits;E.w_mask=E.w_size-1;E.hash_bits=J+7;E.hash_size=1<<E.hash_bits;E.hash_mask=E.hash_size-1;E.hash_shift=~~((E.hash_bits+3-1)/3);E.window=new u7.Buf8(E.w_size*2);E.head=new u7.Buf16(E.hash_size);E.prev=new u7.Buf16(E.w_size);E.lit_bufsize=1<<J+6;E.pending_buf_size=E.lit_bufsize*4;E.pending_buf=new u7.Buf8(E.pending_buf_size);
E.d_buf=E.lit_bufsize;E.l_buf=3*E.lit_bufsize;E.level=D;E.strategy=Z;E.method=S;if(L&&L.state){L.total_in=L.total_out=0;L.data_type=2;D=L.state;D.pending=0;D.pending_out=0;D.wrap<0&&(D.wrap=-D.wrap);D.status=D.wrap?42:113;L.adler=D.wrap===2?0:1;D.last_flush=0;if(!kVh){S=Array(16);for(J=Z=0;J<28;J++)for(QWO[J]=Z,Q=0;Q<1<<SYw[J];Q++)gt[Z++]=J;gt[Z-1]=J;for(J=Z=0;J<16;J++)for(KX4[J]=Z,Q=0;Q<1<<Jq4[J];Q++)kg[Z++]=J;for(Z>>=7;J<30;J++)for(KX4[J]=Z<<7,Q=0;Q<1<<Jq4[J]-7;Q++)kg[256+Z++]=J;for(Q=0;Q<=15;Q++)S[Q]=
0;for(Q=0;Q<=143;)sD[Q*2+1]=8,Q++,S[8]++;for(;Q<=255;)sD[Q*2+1]=9,Q++,S[9]++;for(;Q<=279;)sD[Q*2+1]=7,Q++,S[7]++;for(;Q<=287;)sD[Q*2+1]=8,Q++,S[8]++;cds(sD,287,S);for(Q=0;Q<30;Q++)T3[Q*2+1]=5,T3[Q*2]=Xqf(Q,5);pPb=new av4(sD,SYw,257,286,15);m$c=new av4(T3,Jq4,0,30,15);b$n=new av4([],YY0,0,19,7);kVh=!0}D.l_desc=new zNN(D.dyn_ltree,pPb);D.d_desc=new zNN(D.dyn_dtree,m$c);D.bl_desc=new zNN(D.bl_tree,b$n);D.bi_buf=0;D.bi_valid=0;n8f(D);D=0}else D=b7(L,-2);D===0&&(L=L.state,L.window_size=2*L.w_size,Yg(L.head),
L.max_lazy_match=BW[L.level].max_lazy,L.good_match=BW[L.level].good_length,L.nice_match=BW[L.level].nice_length,L.max_chain_length=BW[L.level].max_chain,L.strstart=0,L.block_start=0,L.lookahead=0,L.insert=0,L.match_length=L.prev_length=2,L.match_available=0,L.ins_h=0);L=D}}else L=-2;if(L!==0)throw Error(mN[L]);x.header&&(L=this.strm)&&L.state&&L.state.wrap===2&&(L.state.gzhead=x.header);if(x.dictionary){var P;typeof x.dictionary==="string"?P=FXf(x.dictionary):sWN.call(x.dictionary)==="[object ArrayBuffer]"?
P=new Uint8Array(x.dictionary):P=x.dictionary;x=this.strm;J=P;Z=J.length;if(x&&x.state)if(P=x.state,L=P.wrap,L===2||L===1&&P.status!==42||P.lookahead)L=-2;else{L===1&&(x.adler=PN0(x.adler,J,Z,0));P.wrap=0;Z>=P.w_size&&(L===0&&(Yg(P.head),P.strstart=0,P.block_start=0,P.insert=0),D=new u7.Buf8(P.w_size),u7.arraySet(D,J,Z-P.w_size,P.w_size,0),J=D,Z=P.w_size);D=x.avail_in;S=x.next_in;Q=x.input;x.avail_in=Z;x.next_in=0;x.input=J;for(l7(P);P.lookahead>=3;){J=P.strstart;Z=P.lookahead-2;do P.ins_h=(P.ins_h<<
P.hash_shift^P.window[J+3-1])&P.hash_mask,P.prev[J&P.w_mask]=P.head[P.ins_h],P.head[P.ins_h]=J,J++;while(--Z);P.strstart=J;P.lookahead=2;l7(P)}P.strstart+=P.lookahead;P.block_start=P.strstart;P.insert=P.lookahead;P.lookahead=0;P.match_length=P.prev_length=2;P.match_available=0;x.next_in=S;x.input=Q;x.avail_in=D;P.wrap=L;L=0}else L=-2;if(L!==0)throw Error(mN[L]);this._dict_set=!0}};
TcG=function(x,L){L=L||{};L.gzip=!0;L=new u10(L);L.push(x,!0);if(L.err)throw L.msg||mN[L.err];return L.result};
RKw=function(x,L){var D=eKO();D&&D.publish.call(D,x.toString(),x,L)};
wPp=function(x,L,D){var S=eKO();if(!S)return 0;var Q=S.subscribe(x.toString(),function(J,Z){var y=_.o1("ytPubsub2Pubsub2SkipSubKey");y&&y==Q||(y=function(){if(GVf[Q])try{if(Z&&x instanceof CNs&&x!=J)try{var E=x.dataClass,P=Z;if(!P.args||!P.version)throw Error("$c");try{if(!E.version_){var v=new E;E.version_=v.version}var V=E.version_}catch(h){}if(!V||P.version!=V)throw Error("ad");try{Z=Reflect.construct(E,_.r0(P.args))}catch(h){throw h.message="yt.pubsub2.Data.deserialize(): "+h.message,h;}}catch(h){throw h.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+x.toString()+": "+h.message,h;}L.call(D||window,Z)}catch(h){_.N9(h)}},l4b[x.toString()]?_.o1("yt.scheduler.instance")?_.WW.addLowPriorityJob(y):_.VY(y,0):y())});
GVf[Q]=!0;U$0[x.toString()]||(U$0[x.toString()]=[]);U$0[x.toString()].push(Q);return Q};
Aqp=function(){var x=Bcp,L=wPp(WXh,function(D){x.apply(void 0,arguments);qYc(L)});
return L};
qYc=function(x){var L=eKO();L&&(typeof x==="number"&&(x=[x]),_.nm(x,function(D){L.unsubscribeByKey(D);delete GVf[D]}))};
eKO=function(){return _.o1("ytPubsub2Pubsub2Instance")};
$$f=function(x,L,D){D=D===void 0?{sampleRate:.1}:D;Math.random()<Math.min(.02,D.sampleRate/100)&&RKw("meta_logging_csi_event",{timerName:x,timelineData:L})};
_.rq4=function(x){return x?(x=x.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.DE(x):null:null};
_.qg=function(x){return x?(x=x.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.Ti(x):null:null};
i$c=function(){NcO||(NcO=_.qg(_.$6("WORKER_SERIALIZATION_URL")));return NcO||void 0};
_.o9b=function(){var x=i$c();f4f||x===void 0||(f4f=new Worker(_.RN(x),void 0));return f4f};
_.a4b=function(){return typeof Worker==="function"&&i$c()?!0:!1};
_.n9w=function(){if(_.a4b()&&!zKN){var x=function(D){D=D.data;if(D.op==="gzippedGelBatch"){var S=XPG.get(D.key);S&&(cqs(D.gzippedBatch,S.latencyPayload,S.url,S.options,S.sendFn),XPG.delete(D.key))}},L=_.o9b();
L&&(L.addEventListener("message",x),L.onerror=function(){XPG.clear()},zKN=!0)}};
JH0=function(x,L,D,S,Q){Q=Q===void 0?!1:Q;var J={startTime:(0,_.y5)(),ticks:{},infos:{}};if(AE)try{var Z=trn(L);if(Z!=null&&(Z>xL3||Z<LA4))S(x,D);else{if(_.u("gzip_gel_with_worker")&&(_.u("initial_gzip_use_main_thread")&&!DLN||!_.u("initial_gzip_use_main_thread"))){zKN||_.n9w();var y=_.o9b();if(y&&!Q){XPG.set(Sk3,{latencyPayload:J,url:x,options:D,sendFn:S});y.postMessage({op:"gelBatchToGzip",serializedBatch:L,key:Sk3});Sk3++;return}}var E=TcG(Q6c(L));cqs(E,J,x,D,S)}}catch(P){_.X0(P),S(x,D)}else S(x,
D)};
cqs=function(x,L,D,S,Q){DLN=!1;var J=(0,_.y5)();L.ticks.gelc=J;$g++;_.u("disable_compression_due_to_performance_degredation")&&J-L.startTime>=KAf&&(OIb++,_.u("abandon_compression_after_N_slow_zips")?$g===_.dE("compression_disable_point")&&OIb>ZI4&&(AE=!1):AE=!1);yH0(L);S.headers||(S.headers={});S.headers["Content-Encoding"]="gzip";S.postBody=x;S.postParams=void 0;Q(D,S)};
IHG=function(x){var L=L===void 0?!1:L;var D=D===void 0?!1:D;var S=(0,_.y5)(),Q={startTime:S,ticks:{},infos:{}},J=L?_.o1("yt.logging.gzipForFetch",!1):!0;if(AE&&J){if(!x.body)return x;try{var Z=D?x.body:typeof x.body==="string"?x.body:JSON.stringify(x.body);J=Z;if(!D&&typeof Z==="string"){var y=trn(Z);if(y!=null&&(y>xL3||y<LA4))return x;D=L?{level:1}:void 0;J=TcG(Q6c(Z),D);var E=(0,_.y5)();Q.ticks.gelc=E;if(L){$g++;if((_.u("disable_compression_due_to_performance_degredation")||_.u("disable_compression_due_to_performance_degradation_lr"))&&
E-S>=KAf)if(OIb++,_.u("abandon_compression_after_N_slow_zips")||_.u("abandon_compression_after_N_slow_zips_lr")){L=OIb/$g;var P=ZI4/_.dE("compression_disable_point");$g>0&&$g%_.dE("compression_disable_point")===0&&L>=P&&(AE=!1)}else AE=!1;yH0(Q)}}x.headers=Object.assign({},{"Content-Encoding":"gzip"},x.headers||{});x.body=J;return x}catch(v){return _.X0(v),x}}else return x};
trn=function(x){try{return(new Blob(x.split(""))).size}catch(L){return _.X0(L),null}};
yH0=function(x){_.u("gel_compression_csi_killswitch")||!_.u("log_gel_compression_latency")&&!_.u("log_gel_compression_latency_lr")||$$f("gel_compression",x,{sampleRate:.1})};
Ei4=function(){this.blockSize=-1};
rt=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var x=1;x<this.blockSize;++x)this.pad_[x]=0;this.total_=this.inbuf_=0;this.reset()};
dLG=function(x){x=Object.assign({},x);delete x.Authorization;var L=_.MOf();if(L){var D=new rt;D.update(_.$6("INNERTUBE_API_KEY"));D.update(L);x.hash=_.Gg(D.digest(),3)}return x};
i7=function(){Pip||(Pip=new _.Ng("yt.innertube"));return Pip};
j6s=function(x,L,D,S){if(S)return null;S=i7().get("nextId",!0)||1;var Q=i7().get("requests",!0)||{};Q[S]={method:x,request:L,authState:dLG(D),requestTime:Math.round((0,_.y5)())};i7().set("nextId",S+1,86400,!0);i7().set("requests",Q,86400,!0);return S};
vi0=function(x){var L=i7().get("requests",!0)||{};delete L[x];i7().set("requests",L,86400,!0)};
hZ0=function(x){var L=i7().get("requests",!0);if(L){for(var D in L){var S=L[D];if(!(Math.round((0,_.y5)())-S.requestTime<6E4)){var Q=S.authState,J=dLG(_.fvG(!1));_.wk.equals(Q,J)&&(Q=S.request,"requestTimeMs"in Q&&(Q.requestTimeMs=Math.round((0,_.y5)())),VO0(x,S.method,Q,{}));delete L[D]}}i7().set("requests",L,86400,!0)}};
HIc=function(x){var L;return(x=x==null?void 0:(L=x.error)==null?void 0:L.code)&&x>=400&&x<=599?!1:!0};
ufO=function(x){var L;x=x==null?void 0:(L=x.error)==null?void 0:L.code;return!(x!==400&&x!==415)};
k$N=function(){if(gi3)return gi3();var x={};gi3=ZA("LogsDatabaseV2",{objectStores:(x.LogsRequestsStore={addedAtVersion:2},x),shared:!1,upgrade:function(L,D,S){D(2)&&fK(L,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});D(3);D(5)&&(S=S.objectStore("LogsRequestsStore"),S.JSC$10687_wrapped.indexNames.contains("newRequest")&&S.JSC$10687_wrapped.deleteIndex("newRequest"),oE(S,"newRequestV2",["status","interface","timestamp"]));D(7)&&L.JSC$10672_wrapped.objectStoreNames.contains("sapisid")&&L.JSC$10672_wrapped.deleteObjectStore("sapisid");
D(9)&&L.JSC$10672_wrapped.objectStoreNames.contains("SWHealthLog")&&L.JSC$10672_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return gi3()};
aE=function(x){return _.xg(k$N(),x)};
mLf=function(x,L){var D,S,Q,J;return _.I(function(Z){if(Z.nextAddress==1)return D={startTime:(0,_.y5)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},Z.yield(aE(L),2);if(Z.nextAddress!=3)return S=Z.yieldResult,Q=Object.assign({},x,{options:JSON.parse(JSON.stringify(x.options)),interface:_.$6("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),Z.yield(S.put("LogsRequestsStore",Q),3);J=Z.yieldResult;D.ticks.tc=(0,_.y5)();ppc(D);return Z.return(J)})};
bI0=function(x,L){var D,S,Q,J,Z,y,E,P,v;return _.I(function(V){if(V.nextAddress==1)return D={startTime:(0,_.y5)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},V.yield(aE(L),2);if(V.nextAddress!=3)return S=V.yieldResult,Q=_.$6("INNERTUBE_CONTEXT_CLIENT_NAME",0),J=[x,Q,0],Z=[x,Q,(0,_.y5)()],y=IDBKeyRange.bound(J,Z),E="prev",_.u("use_fifo_for_networkless")&&(E="next"),P=void 0,v=x==="NEW"?"readwrite":"readonly",_.u("use_readonly_for_get_most_recent_by_status_killswitch")&&(v="readwrite"),
V.yield(_.LK(S,["LogsRequestsStore"],{mode:v,enableRetries:!0},function(h){return _.IE(h.objectStore("LogsRequestsStore").index("newRequestV2"),{query:y,direction:E},function(H){H.getValue()&&(P=H.getValue(),x==="NEW"&&(P.status="QUEUED",H.update(P)))})}),3);
D.ticks.tc=(0,_.y5)();ppc(D);return V.return(P)})};
Ykc=function(x,L){var D;return _.I(function(S){if(S.nextAddress==1)return S.yield(aE(L),2);D=S.yieldResult;return S.return(_.LK(D,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(Q){var J=Q.objectStore("LogsRequestsStore");return J.get(x).then(function(Z){if(Z)return Z.status="QUEUED",J.put(Z).then(function(){return Z})})}))})};
FAw=function(x,L,D,S){D=D===void 0?!0:D;var Q;return _.I(function(J){if(J.nextAddress==1)return J.yield(aE(L),2);Q=J.yieldResult;return J.return(_.LK(Q,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(Z){var y=Z.objectStore("LogsRequestsStore");return y.get(x).then(function(E){return E?(E.status="NEW",D&&(E.sendCount+=1),S!==void 0&&(E.options.compress=S),y.put(E).then(function(){return E})):oZ.resolve(void 0)})}))})};
s6f=function(x,L){var D;return _.I(function(S){if(S.nextAddress==1)return S.yield(aE(L),2);D=S.yieldResult;return S.return(D.delete("LogsRequestsStore",x))})};
TBs=function(x){var L,D;return _.I(function(S){if(S.nextAddress==1)return S.yield(aE(x),2);L=S.yieldResult;D=(0,_.y5)()-2592E6;return S.yield(_.LK(L,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(Q){return SV(Q.objectStore("LogsRequestsStore"),{},function(J){if(J.getValue().timestamp<=D)return J.delete().then(function(){return J.continue()})})}),0)})};
eZ3=function(){_.I(function(x){return x.yield(HBw("LogsDatabaseV2"),0)})};
ppc=function(x){_.u("nwl_csi_killswitch")||$$f("networkless_performance",x,{sampleRate:1})};
_.G$b=function(x){return _.xg(RZh(),x)};
CiN=function(x){var L,D;_.I(function(S){if(S.nextAddress==1)return S.yield(_.G$b(x),2);L=S.yieldResult;D=(0,_.y5)()-2592E6;return S.yield(_.LK(L,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(Q){return SV(Q.objectStore("SWHealthLog"),{},function(J){if(J.getValue().timestamp<=D)return J.delete().then(function(){return J.continue()})})}),0)})};
lHh=function(x){var L;return _.I(function(D){if(D.nextAddress==1)return D.yield(_.G$b(x),2);L=D.yieldResult;return D.yield(L.clear("SWHealthLog"),0)})};
_.z3=function(x,L,D,S,Q,J,Z){Q=Q===void 0?"":Q;J=J===void 0?!1:J;Z=Z===void 0?!1:Z;if(x)if(D&&!rE("cobalt"))_.X0(new _.RZ("Legacy referrer-scrubbed ping detected")),x&&ULf(x,void 0,{scrubReferrer:!0});else if(Q)Z70(x,L,"POST",Q,S);else if(_.$6("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||S||Z)Z70(x,L,"GET","",S,void 0,J,Z);else{b:{try{c:{var y=new wpp({url:x});if(y.urlParamValues_.dsh==="1")var E=null;else{var P=y.urlParamValues_.ae;if(P==="1"){var v=y.urlParamValues_.adurl;if(v)try{E={version:3,directUrl:decodeURIComponent(v),
asyncUrl:Wrh(y.JSC$9480_url_,"act=1","ri=1",BB3(y))};break c}catch(k){}}E=P==="2"?{version:4,directUrl:Wrh(y.JSC$9480_url_,"dct=1","suid="+y.suid_,""),asyncUrl:Wrh(y.JSC$9480_url_,"act=1","ri=1","suid="+y.suid_)}:null}}if(E){var V=_.gE(x);var h=!(!V||!V.endsWith("/aclk")||_.om(x,"ri")!=="1");break b}}catch(k){}h=!1}if(h){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(x,"")){var H=!0;break b}}catch(k){}H=!1}H?(L&&L(),D=!0):D=!1}else D=!1;D||ULf(x,L)}};
ULf=function(x,L,D){D=D===void 0?{}:D;var S=new Image,Q=""+WAN++;qk0[Q]=S;S.onload=S.onerror=function(){L&&qk0[Q]&&L();delete qk0[Q]};
D.scrubReferrer&&(S.referrerPolicy="no-referrer");S.src=x};
Xg=function(x,L){AHc(x,L==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
$Ln=function(x){var L;return((L=document.featurePolicy)==null?0:L.allowedFeatures().includes("attribution-reporting"))?x+"&nis=6":x+"&nis=5"};
rHG=function(x){if(!x)return!1;try{var L;if(((L=_.tu(x))==null?void 0:L.asm)==="4")return!0}catch(D){_.N9(D)}return!1};
AHc=function(x,L){L?(x=$Ln(x),_.z3(x,void 0,void 0,void 0,"",!0,!0)):_.z3(x)};
iI3=function(){NBh||(NBh=new _.Ng("yt.offline"));return NBh};
fHN=function(x){if(_.u("offline_error_handling")){var L=iI3().get("errors",!0)||{};L[x.message]={name:x.name,stack:x.stack};x.level&&(L[x.message].level=x.level);iI3().set("errors",L,2592E3,!0)}};
aH0=function(x,L,D,S){S=S===void 0?!1:S;L=_.u("web_fp_via_jspb")?Object.assign({},L):L;_.u("use_cfr_monitor")&&ois(x,L);if(_.u("use_request_time_ms_header"))L.headers&&KH(x)&&(L.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.y5)())));else{var Q;if((Q=L.postParams)==null?0:Q.requestTimeMs)L.postParams.requestTimeMs=Math.round((0,_.y5)())}D&&Object.keys(L).length===0?_.z3(x):L.compress?L.postBody?(typeof L.postBody!=="string"&&(L.postBody=JSON.stringify(L.postBody)),JH0(x,L.postBody,
L,_.kQ,S)):JH0(x,JSON.stringify(L.postParams),L,Mmn,S):_.kQ(x,L)};
zZb=function(x,L){_.u("use_event_time_ms_header")&&KH(x)&&(L.headers||(L.headers={}),L.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.y5)())));return L};
_.cHb=function(){Xph||(Xph=new _.cW({logOfflineErrors:!0,enablePolling:!0}));return Xph};
ois=function(x,L){var D=L.onError?L.onError:function(){};
L.onError=function(Q,J){nK().requestComplete(x,!1);D(Q,J)};
var S=L.onSuccess?L.onSuccess:function(){};
L.onSuccess=function(Q,J){nK().requestComplete(x,!0);S(Q,J)}};
_.ni3=function(){return _.QY(document.location.toString())!=="www.youtube-nocookie.com"};
_.LU0=function(){return _.o1("ytNetworklessLoggingInitializationOptions")?_.tO4.isNwlInitialized:_.xjb};
Djf=function(x,L){if(_.u("polymer_on_demand_shady_dom")){var D;var S=(D=x.__shady_native_firstElementChild)!=null?D:x.firstElementChild}else S=x.firstElementChild;for(;S;){if(x=L(S)?S:Djf(S,L))return x;S=S.nextElementSibling}return null};
Qlw=function(){var x=document;if("visibilityState"in x)return x.visibilityState;var L=SI4+"VisibilityState";if(L in x)return x[L]};
_.JD0=function(x,L){var D;tE(x,function(S){D=L[S];return!!D});
return D};
_.LV=function(x){var L=KUn(x);L?L.focus(void 0):_.xZ(x)};
KUn=function(x){return(x=Djf(x,function(L){return _.D8(L)?Ou0(L)&&!!L.offsetParent:!1}))?x:null};
_.xZ=function(x,L){x.hasAttribute("tabindex")||x.setAttribute("tabindex","-1");x.focus(L)};
Zu3=function(x,L,D,S){S=S===void 0?{}:S;x.addEventListener&&(L!="mouseenter"||"onmouseenter"in document?L!="mouseleave"||"onmouseenter"in document?L=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(L="MozMousePixelScroll"):L="mouseout":L="mouseover");return _.wk.findKey(S7,function(Q){var J=typeof Q[4]==="boolean"&&Q[4]==!!S,Z=_.on(Q[4])&&_.on(S)&&_.wk.equals(Q[4],S);return!!Q.length&&Q[0]==x&&Q[1]==L&&Q[2]==D&&(J||Z)})};
_.J7=function(x,L,D,S){S=S===void 0?{}:S;if(!x||!x.addEventListener&&!x.attachEvent)return"";var Q=Zu3(x,L,D,S);if(Q)return Q;Q=++yD3.count+"";var J=!(L!="mouseenter"&&L!="mouseleave"||!x.addEventListener||"onmouseenter"in document);var Z=J?function(y){y=new QF(y);if(!_.rk(y.relatedTarget,function(E){return E==x},!0))return y.currentTarget=x,y.type=L,D.call(x,y)}:function(y){y=new QF(y);
y.currentTarget=x;return D.call(x,y)};
Z=_.fm(Z);x.addEventListener?(L=="mouseenter"&&J?L="mouseover":L=="mouseleave"&&J?L="mouseout":L=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(L="MozMousePixelScroll"),Itf()||typeof S==="boolean"?x.addEventListener(L,Z,S):x.addEventListener(L,Z,!!S.capture)):x.attachEvent("on"+L,Z);S7[Q]=[x,L,D,Z,S];return Q};
_.Mnh=function(x,L,D){var S=S===void 0?{}:S;var Q=_.J7(x,L,function(){_.EOh(Q);D.apply(x,arguments)},S)};
_.EOh=function(x){x&&(typeof x=="string"&&(x=[x]),_.nm(x,function(L){if(L in S7){var D=S7[L],S=D[0],Q=D[1],J=D[3];D=D[4];S.removeEventListener?Itf()||typeof D==="boolean"?S.removeEventListener(Q,J,D):S.removeEventListener(Q,J,!!D.capture):S.detachEvent&&S.detachEvent("on"+Q,J);delete S7[L]}}))};
KV=function(x){this.callback_=x;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(x=0;x<4;x++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.J7(window,"mousemove",(0,_.e1)(this.onMouseMove_,this));this.timerId_=_.h8((0,_.e1)(this.checkPosition_,this),25)};
jl3=function(){var x={};var L=x.preferMobileEvents===void 0?!1:x.preferMobileEvents;x=x.enableScrollEventListener===void 0?!0:x.enableScrollEventListener;if(_.o1("_lact",window)==null){var D=parseInt(_.$6("LACT"),10);D=isFinite(D)?Date.now()-Math.max(D,0):-1;_.KK("_lact",D,window);_.KK("_fact",D,window);D==-1&&_.Oh();dj0(window,L,x);new KV(function(){Pc0("mouse",100)})}};
dj0=function(x,L,D){L=L===void 0?!1:L;D=D===void 0?!0:D;_.J7(x.document,"keydown",_.Oh);_.J7(x.document,"keyup",_.Oh);_.J7(x.document,"mousedown",_.Oh);_.J7(x.document,"mouseup",_.Oh);L?_.J7(x,"touchmove",function(){Pc0("touchmove",200)},{passive:!0}):(_.J7(x,"resize",function(){Pc0("resize",200)}),D&&_.J7(x,"scroll",function(){Pc0("scroll",200)}));
_.J7(x.document,"touchstart",_.Oh,{passive:!0});_.J7(x.document,"touchend",_.Oh,{passive:!0})};
Pc0=function(x,L){vOf[x]||(vOf[x]=!0,_.WW.addLowPriorityJob(function(){_.Oh();vOf[x]=!1},L))};
_.Oh=function(){_.o1("_lact",window)==null&&jl3();var x=Date.now();_.KK("_lact",x,window);_.o1("_fact",window)==-1&&_.KK("_fact",x,window);(x=_.o1("ytglobal.ytUtilActivityCallback_"))&&x()};
_.Z8=function(){var x=_.o1("_lact",window);return x==null?-1:Math.max(Date.now()-x,0)};
_.My=function(x,L,D){var S=_.yF();if(S&&L){var Q=S.subscribe(x,function(){var J=arguments,Z=function(){IR[Q]&&L.apply&&typeof L.apply=="function"&&L.apply(D||window,J)};
try{_.Vnf[x]?Z():_.VY(Z,0)}catch(y){_.N9(y)}},D);
IR[Q]=!0;Eh[x]||(Eh[x]=[]);Eh[x].push(Q);return Q}return 0};
_.huw=function(x){var L=_.yF();L&&(typeof x==="number"?x=[x]:typeof x==="string"&&(x=[parseInt(x,10)]),_.nm(x,function(D){L.unsubscribeByKey(D);delete IR[D]}))};
_.HuN=function(x,L){var D=_.yF();D&&D.publish.apply(D,arguments)};
_.gOn=function(x){var L=_.yF();if(L)if(L.clear(x),x)uTG(x);else for(var D in Eh)uTG(D)};
_.yF=function(){return _.Qb.ytPubsubPubsubInstance};
uTG=function(x){Eh[x]&&(x=Eh[x],_.nm(x,function(L){IR[L]&&delete IR[L]}),x.length=0)};
kQw=function(){var x,L;return"h5vcc"in dz&&((x=dz.h5vcc.traceEvent)==null?0:x.traceBegin)&&((L=dz.h5vcc.traceEvent)==null?0:L.traceEnd)?1:"performance"in dz&&dz.performance.mark&&dz.performance.measure?2:0};
pDb=function(x){var L=kQw();switch(L){case 1:dz.h5vcc.traceEvent.traceBegin("YTLR",x);break;case 2:dz.performance.mark(x+"-start");break;case 0:break;default:_.Nh(L,"unknown trace type")}};
mj3=function(x){var L=kQw();switch(L){case 1:dz.h5vcc.traceEvent.traceEnd("YTLR",x);break;case 2:L=x+"-start";var D=x+"-end";dz.performance.mark(D);dz.performance.measure(x,L,D);break;case 0:break;default:_.Nh(L,"unknown trace type")}};
bub=function(x){var L,D;(D=(L=window).onerror)==null||D.call(L,x.message,"",0,0,x)};
YIp=function(x){if(_.u("web_lifecycle_error_handling_killswitch"))return x();try{return x()}catch(L){bub(L)}};
FUb=function(x){return[x.auth===void 0?"undefined":x.auth,x.isJspb===void 0?"undefined":x.isJspb,x.cttAuthInfo===void 0?"undefined":x.cttAuthInfo,x.tier===void 0?"undefined":x.tier].join("/")};
_.g=function(x,L){if(x)return x[L.name]};
vI=function(){var x=_.o1("yt.logging.ims");x||(x=new j7,_.KK("yt.logging.ims",x));return x};
wDf=function(x,L){if(x.endpoint==="log_event"){slf(x);var D=TF0(x),S=euf(x.payload)||"",Q=Ru3(S),J=200;if(Q){if(Q.enabled===!1&&!_.u("web_payload_policy_disabled_killswitch"))return;J=GQN(Q.tier);if(J===400){Cch(x,L);return}}VF[D]=!0;D={cttAuthInfo:D,isJspb:!1,tier:J};vI().storePayload(D,x.payload);ltN(L,!1,D,Ujw(S))}};
WU4=function(x,L,D){if(L.endpoint==="log_event"){slf(void 0,L);var S=TF0(L,!0),Q=Ru3(x),J=200;if(Q){if(Q.enabled===!1&&!_.u("web_payload_policy_disabled_killswitch"))return;J=GQN(Q.tier);if(J===400){BF3(x,L,D);return}}VF[S]=!0;S={cttAuthInfo:S,isJspb:!0,tier:J};vI().storePayload(S,Bs(L.payload));ltN(D,!0,S,Ujw(x))}};
ltN=function(x,L,D,S){L=L===void 0?!1:L;S=S===void 0?!1:S;x&&(h7=new x);x=_.dE("tvhtml5_logging_max_batch_ads_fork")||_.dE("tvhtml5_logging_max_batch")||_.dE("web_logging_max_batch")||100;var Q=(0,_.y5)(),J=qIw(L,D.tier),Z=J.lastDebounceQueueFromLogTimeMs;S&&(J.useVideoStatsEndPoint=!0);S=0;D&&(S=vI().getSequenceCount(D));var y=function(){ADn({writeThenSend:!0},L,D.tier)};
S>=1E3?y():S>=x?$j4||($j4=rD4(function(){y();$j4=void 0},0)):Q-Z>=10&&(NF0(L,D.tier),J.lastDebounceQueueFromLogTimeMs=Q)};
Cch=function(x,L){if(x.endpoint==="log_event"){_.u("more_accurate_gel_parser")&&vI().storePayload({isJspb:!1},x.payload);slf(x);var D=TF0(x),S=new Map;S.set(D,[x.payload]);var Q=euf(x.payload)||"";L&&(h7=new L);return new _.HI(function(J,Z){h7&&h7.isReady()?iuN(S,h7,J,Z,{bypassNetworkless:!0},!0,Ujw(Q)):J()})}};
BF3=function(x,L,D){if(L.endpoint==="log_event"){slf(void 0,L);var S=TF0(L,!0),Q=new Map;Q.set(S,[Bs(L.payload)]);D&&(h7=new D);return new _.HI(function(J){h7&&h7.isReady()?ft4(Q,h7,J,{bypassNetworkless:!0},!0,Ujw(x)):J()})}};
TF0=function(x,L){var D="";if(x.dangerousLogToVisitorSession)D="visitorOnlyApprovedKey";else if(x.cttAuthInfo){if(L===void 0?0:L){L=x.cttAuthInfo.token;D=x.cttAuthInfo;var S=new oOs;D.videoId?S.setVideoId(D.videoId):D.playlistId&&uY(S,2,at3,Hs(D.playlistId));zus[L]=S}else L=x.cttAuthInfo,D={},L.videoId?D.videoId=L.videoId:L.playlistId&&(D.playlistId=L.playlistId),XDf[x.cttAuthInfo.token]=D;D=x.cttAuthInfo.token}return D};
ADn=function(x,L,D){x=x===void 0?{}:x;L=L===void 0?!1:L;new _.HI(function(S,Q){var J=qIw(L,D),Z=J.useVideoStatsEndPoint;J.useVideoStatsEndPoint=!1;cDw(J.queueTimer);cDw(J.queueMaxTimer);J.queueMaxTimer=0;h7&&h7.isReady()?D===void 0&&_.u("enable_web_tiered_gel")?nOO(S,Q,x,L,300,Z):nOO(S,Q,x,L,D,Z):(NF0(L,D),S())})};
nOO=function(x,L,D,S,Q,J){var Z=h7;D=D===void 0?{}:D;S=S===void 0?!1:S;Q=Q===void 0?200:Q;J=J===void 0?!1:J;var y=new Map,E=new Map,P={isJspb:S,cttAuthInfo:void 0,tier:Q},v={isJspb:S,cttAuthInfo:void 0};if(S){L=_.O(Object.keys(VF));for(Q=L.next();!Q.done;Q=L.next())Q=Q.value,E=_.u("enable_web_tiered_gel")?vI().smartExtractMatchingEntries({keys:[P,v],sizeLimit:1E3}):vI().extractMatchingEntries({isJspb:!0,cttAuthInfo:Q}),E.length>0&&y.set(Q,E),(_.u("web_fp_via_jspb_and_json")&&D.writeThenSend||!_.u("web_fp_via_jspb_and_json"))&&
delete VF[Q];ft4(y,Z,x,D,!1,J)}else{y=_.O(Object.keys(VF));for(P=y.next();!P.done;P=y.next())P=P.value,v=_.u("enable_web_tiered_gel")?vI().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:P,tier:Q},{isJspb:!1,cttAuthInfo:P}],sizeLimit:1E3}):vI().extractMatchingEntries({isJspb:!1,cttAuthInfo:P}),v.length>0&&E.set(P,v),(_.u("web_fp_via_jspb_and_json")&&D.writeThenSend||!_.u("web_fp_via_jspb_and_json"))&&delete VF[P];iuN(E,Z,x,L,D,!1,J)}};
NF0=function(x,L){x=x===void 0?!1:x;L=L===void 0?200:L;var D=function(){ADn({writeThenSend:!0},x,L)},S=qIw(x,L),Q=S===tn0||S===xbb?5E3:LFf;
_.u("web_gel_timeout_cap")&&!S.queueMaxTimer&&(Q=rD4(function(){D()},Q),S.queueMaxTimer=Q);
cDw(S.queueTimer);Q=_.$6("LOGGING_BATCH_TIMEOUT",_.dE("web_gel_debounce_ms",1E4));_.u("shorten_initial_gel_batch_timeout")&&Dbb&&(Q=Sv4);Q=rD4(function(){_.dE("gel_min_batch_size")>0?vI().getSequenceCount({cttAuthInfo:void 0,isJspb:x,tier:L})>=QB0&&D():D()},Q);
S.queueTimer=Q};
iuN=function(x,L,D,S,Q,J,Z){Q=Q===void 0?{}:Q;var y=Math.round((0,_.y5)()),E=x.size,P=JLw(Z);x=_.O(x);var v=x.next();for(Z={};!v.done;Z={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},v=x.next()){var V=_.O(v.value);v=V.next().value;V=V.next().value;Z.batchRequest=_.wk.unsafeClone({context:_.wqs(L.config_||_.ED())});if(!_.Nf(V)&&!_.u("throw_err_when_logevent_malformed_killswitch")){S();break}Z.batchRequest.events=V;
(V=XDf[v])&&KF0(Z.batchRequest,v,V);delete XDf[v];Z.dangerousLogToVisitorSession=v==="visitorOnlyApprovedKey";OXf(Z.batchRequest,y,Z.dangerousLogToVisitorSession);ZXh(Q);Z.onSuccess$jscomp$3=function(h){_.u("start_client_gcf")&&_.WW.addLowPriorityJob(function(){return _.I(function(H){return H.yield(yLp(h),0)})});
E--;E||D()};
Z.networkFailures=0;Z.onError$jscomp$5=function(h){return function(){h.networkFailures++;if(Q.bypassNetworkless&&h.networkFailures===1)try{VO0(L,P,h.batchRequest,Is0({writeThenSend:!0},h.dangerousLogToVisitorSession,h.onSuccess$jscomp$3,h.onError$jscomp$5,J)),Dbb=!1}catch(H){_.N9(H),S()}E--;E||D()}}(Z);
try{VO0(L,P,Z.batchRequest,Is0(Q,Z.dangerousLogToVisitorSession,Z.onSuccess$jscomp$3,Z.onError$jscomp$5,J)),Dbb=!1}catch(h){_.N9(h),S()}}};
ft4=function(x,L,D,S,Q,J){S=S===void 0?{}:S;var Z=Math.round((0,_.y5)()),y={value:x.size},E=new Map([].concat(_.lP(x)));E=_.O(E);for(var P=E.next();!P.done;P=E.next()){var v=_.O(P.value).next().value,V=x.get(v);P=new EeG;var h=L.config_||_.ED(),H=new gz,k=new M2c;_.ei(k,1,h.innertubeContextHostLanguage);_.ei(k,2,h.innertubeContextGeoLocation);_.dt(k,16,h.innertubeContextClientNameFieldNumber);_.ei(k,17,h.innertubeContextClientVersion);if(h.innertubeContextClientConfigInfo){var T=h.innertubeContextClientConfigInfo,
G=new jV;T.coldConfigData&&_.ei(G,1,T.coldConfigData);T.appInstallData&&_.ei(G,6,T.appInstallData);T.coldHashData&&_.ei(G,3,T.coldHashData);T.hotHashData&&G.setHotHashData(T.hotHashData);_.mR(k,62,G)}(T=_.Qb.devicePixelRatio)&&T!=1&&_.PW(k,65,_.iG(T));T=tq3();T!==""&&_.ei(k,54,T);T=xUb();if(T.length>0){G=new dbc;for(var U=0;U<T.length;U++){var l=new kZ;l.setKey(T[U].key);uY(l,2,Pkn,Hs(T[U].value));pV(G,15,kZ,l)}_.mR(H,5,G)}eN3(h,k);RNN(H);GFn(k);C14(h,k);lvw(k);_.u("start_client_gcf")&&UBN(k);_.$6("DELEGATED_SESSION_ID")&&
!_.u("pageid_as_header_web")&&(h=new mS,_.ei(h,3,_.$6("DELEGATED_SESSION_ID")));!_.u("fill_delegate_context_in_gel_killswitch")&&(T=_.$6("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(G=_.Mg(H,mS,3)||new mS,h=H,T=_.ei(G,18,T),_.mR(h,3,T));h=k;T=_.O(Object.entries(_.tu(_.$6("DEVICE",""))));for(G=T.next();!G.done;G=T.next())U=_.O(G.value),G=U.next().value,U=U.next().value,G==="cbrand"?_.ei(h,12,U):G==="cmodel"?_.ei(h,13,U):G==="cbr"?_.ei(h,87,U):G==="cbrver"?_.ei(h,88,U):G==="cos"?_.ei(h,18,
U):G==="cosver"?_.ei(h,19,U):G==="cplatform"&&_.dt(h,42,TDp(U));H.setClient(k);_.mR(P,1,H);if(k=zus[v])a:{if(_.ka(k,bY(k,at3,1)))H=1;else if(k.getPlaylistId())H=2;else break a;_.mR(P,4,k);k=P.getContext()||new gz;h=_.Mg(k,mS,3)||new mS;T=new YZ;T.setToken(v);_.dt(T,1,H);pV(h,12,YZ,T);_.mR(k,3,h)}delete zus[v];v=v==="visitorOnlyApprovedKey";jBG()||_.Fd(P,2,Z);!v&&(H=_.$6("EVENT_ID"))&&(k=vef(),h=new V2s,_.ei(h,1,H),_.Fd(h,2,k),_.mR(P,5,h));ZXh(S);if(_.u("jspb_serialize_with_worker")&&(H=_.o9b())&&
S.writeThenSend){_.h6s.set(HXf,{client:L,resolve:D,networklessOptions:S,isIsolated:Q,useVSSEndpoint:J,dangerousLogToVisitorSession:v,requestsOutstanding:y});H.postMessage({op:"gelBatchToSerialize",batchRequest:Bs(P),clientEvents:V,key:HXf});HXf++;break}if(V){H=[];for(k=0;k<V.length;k++)try{H.push(new sh(V[k]))}catch(X){_.N9(new _.RZ("Transport failed to deserialize "+String(V[k])))}V=H}else V=[];V=_.O(V);for(H=V.next();!H.done;H=V.next())pV(P,3,sh,H.value);V={startTime:(0,_.y5)(),ticks:{},infos:{}};
P=P.serialize();V.ticks.geljspc=(0,_.y5)();_.u("log_jspb_serialize_latency")&&$$f("gel_jspb_serialize",V,{sampleRate:.1});_.ujs(P,L,D,S,Q,J,v,y)}};
_.ujs=function(x,L,D,S,Q,J,Z,y){S=S===void 0?{}:S;y=y===void 0?{value:0}:y;J=JLw(J);S=Is0(S,Z,function(E){_.u("start_client_gcf")&&_.WW.addLowPriorityJob(function(){return _.I(function(P){return P.yield(yLp(E),0)})});
y.value--;y.value||D()},function(){y.value--;
y.value||D()},Q);
S.headers["Content-Type"]="application/json+protobuf";S.postBodyFormat="JSPB";S.postBody=x;VO0(L,J,"",S);Dbb=!1};
ZXh=function(x){_.u("always_send_and_write")&&(x.writeThenSend=!1)};
Is0=function(x,L,D,S,Q){x={retry:!0,onSuccess:D,onError:S,networklessOptions:x,dangerousLogToVisitorSession:L,bypassMonitoring:!!Q,headers:{},postBodyFormat:"",postBody:"",compress:_.u("compress_gel")||_.u("compress_gel_lr")};jBG()&&(x.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.y5)())));return x};
OXf=function(x,L,D){jBG()||(x.requestTimeMs=String(L));_.u("unsplit_gel_payloads_in_logs")&&(x.unsplitGelPayloadsInLogs=!0);!D&&(L=_.$6("EVENT_ID"))&&(D=vef(),x.serializedClientEventId={serializedEventId:L,clientCounter:String(D)})};
vef=function(){var x=_.$6("BATCH_CLIENT_COUNTER")||0;x||(x=Math.floor(Math.random()*65535/2));x++;x>65535&&(x=1);_.Au("BATCH_CLIENT_COUNTER",x);return x};
KF0=function(x,L,D){if(D.videoId)var S="VIDEO";else if(D.playlistId)S="PLAYLIST";else return;x.credentialTransferTokenTargetId=D;x.context=x.context||{};x.context.user=x.context.user||{};x.context.user.credentialTransferTokens=[{token:L,scope:S}]};
slf=function(x,L){var D=_.PY("il_payload_scraping")==="enable_il_payload_scraping";if(!_.o1("yt.logging.transport.enableScrapingForTest"))if(D)geh=[],_.KK("yt.logging.transport.enableScrapingForTest",!0),_.KK("yt.logging.transport.scrapedPayloadsForTesting",geh),_.KK("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.KK("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.KK("yt.logging.transport.scrapeClientEvent",!0);else return;D=_.o1("yt.logging.transport.scrapedPayloadsForTesting");var S=_.o1("yt.logging.transport.payloadToScrape");L&&(L=_.o1("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(L.payload)())&&D.push(L);L=_.o1("yt.logging.transport.scrapeClientEvent");if(S&&S.length>=1)for(var Q=0;Q<S.length;Q++)if(x&&x.payload[S[Q]])if(L)D.push(x.payload);else{var J=void 0;D.push(((J=x)==null?void 0:J.payload)[S[Q]])}_.KK("yt.logging.transport.scrapedPayloadsForTesting",
D)};
jBG=function(){return _.u("use_request_time_ms_header")||_.u("lr_use_request_time_ms_header")};
rD4=function(x,L){return _.u("transport_use_scheduler")===!1?_.VY(x,L):_.u("logging_avoid_blocking_during_navigation")||_.u("lr_logging_avoid_blocking_during_navigation")?_.TG(_.WW,function(){if(_.kRc().currentState==="none")x();else{var D={};_.kRc().install((D.none={callback:x},D))}},L):_.TG(_.WW,x,L)};
cDw=function(x){_.u("transport_use_scheduler")?_.WW.cancelJob(x):_.uj(x)};
yLp=function(x){var L,D,S,Q,J,Z,y,E,P,v;return _.I(function(V){return V.nextAddress==1?(S=(L=x)==null?void 0:(D=L.responseContext)==null?void 0:D.globalConfigGroup,Q=_.g(S,pX0),Z=(J=S)==null?void 0:J.hotHashData,y=_.g(S,mbO),P=(E=S)==null?void 0:E.coldHashData,(v=_.yY().resolve(_.ZN(e7)))?Z?Q?V.yield(bX3(v,Z,Q),2):V.yield(bX3(v,Z),2):V.jumpTo(2):V.return()):P?y?V.yield(Yv3(v,P,y),0):V.yield(Yv3(v,P),0):V.jumpTo(0)})};
qIw=function(x,L){L=L===void 0?200:L;return x?L===300?tn0:FFf:L===300?xbb:sBs};
Ru3=function(x){if(_.u("enable_web_tiered_gel")){x=T4f[x||""];var L,D,S,Q=_.yY().resolve(_.ZN(e7))==null?void 0:(L=RR())==null?void 0:(D=L.loggingHotConfig)==null?void 0:(S=D.eventLoggingConfig)==null?void 0:S.payloadPolicies;if(Q)for(L=0;L<Q.length;L++)if(Q[L].payloadNumber===x)return Q[L]}};
euf=function(x){x=Object.keys(x);x=_.O(x);for(var L=x.next();!L.done;L=x.next())if(L=L.value,T4f[L])return L};
GQN=function(x){switch(x){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}};
Ujw=function(x){return x==="gelDebuggingEvent"};
JLw=function(x){return(x===void 0?0:x)&&_.u("vss_through_gel_video_stats")?"video_stats":"log_event"};
CV=function(x,L,D,S){S=S===void 0?{}:S;var Q={},J=Math.round(S.timestamp||(0,_.y5)());Q.eventTimeMs=J<Number.MAX_SAFE_INTEGER?J:0;Q[x]=L;x=_.Z8();Q.context={lastActivityMs:String(S.timestamp||!isFinite(x)?-1:x)};S.sequenceGroup&&!_.u("web_gel_sequence_info_killswitch")&&(x=Q.context,L=S.sequenceGroup,L={index:e6f(L),groupKey:L},x.sequence=L,S.endOfSequence&&delete GG[S.sequenceGroup]);_.u("web_tag_automated_log_events")&&(Q.context.automatedLogEventSource=S.automatedLogEventSource);(S.sendIsolatedPayload?
Cch:wDf)({endpoint:"log_event",payload:Q,cttAuthInfo:S.cttAuthInfo,dangerousLogToVisitorSession:S.dangerousLogToVisitorSession},D)};
e6f=function(x){GG[x]=x in GG?GG[x]+1:0;return GG[x]};
_.Uh=function(x,L,D){D=D===void 0?{}:D;var S=lY;_.rO("ytLoggingEventsDefaultDisabled",!1)&&lY===lY&&(S=null);CV(x,L,S,D)};
_.wz=function(){if(_.u("web_fp_via_jspb")){var x=!0;x=x===void 0?!1:x;var L=R6s;R6s=[];if(L){L=_.O(L);for(var D=L.next();!D.done;D=L.next())D=D.value,x?CV(D.payloadName,D.payload,lY,D.options):_.Uh(D.payloadName,D.payload,D.options)}ADn(void 0,!0);if(!_.u("web_fp_via_jspb_and_json"))return}ADn(void 0,!1)};
GRn=function(x,L){var D;if((D=L)==null?0:D.componentStack)return L;if(x=x.componentStack)L||(L={}),L.componentStack=x;return L};
Cks=function(){_.nm(_.$6("ERRORS")||[],function(x){_.BI.apply(null,x)});
_.Au("ERRORS",[])};
_.WI=function(x){_.BI(x)};
_.qy=function(x){_.BI(x,"WARNING")};
ls3=function(x){x instanceof Error?_.BI(x):(x=_.on(x)?JSON.stringify(x):String(x),x=new _.RZ(x),x.name="RejectedPromiseError",_.qy(x))};
Ubc=function(x,L,D,S,Q,J){L=L===void 0?"Unknown file":L;D=D===void 0?0:D;var Z=!1,y=RDb("log_window_onerror_fraction");if(y&&Math.random()<y)Z=!0;else{y=document.getElementsByTagName("script");for(var E=0,P=y.length;E<P;E++)if(y[E].src.indexOf("/debug-")>0){Z=!0;break}}Z&&(Z=!1,Q?Z=!0:(typeof x==="string"?y=x:ErrorEvent&&x instanceof ErrorEvent?(Z=!0,y=x.message,L=x.filename,D=x.lineno,S=x.colno):(y="Unknown error",L="Unknown file",D=0),Q=new _.RZ(y),Q.name="UnhandledWindowError",Q.message=y,Q.fileName=
L,Q.lineNumber=D,isNaN(S)?delete Q.columnNumber:Q.columnNumber=S),_.u("wiz_enable_component_stack_propagation_killswitch")||(J=GRn(Q,J)),J&&_.A7(Q,J),Z?_.BI(Q):_.qy(Q))};
_.BI=function(x,L,D,S,Q,J,Z,y){J=J===void 0?{}:J;J.name=D||_.$6("INNERTUBE_CONTEXT_CLIENT_NAME",1);J.version=S||_.$6("INNERTUBE_CONTEXT_CLIENT_VERSION");D=J;L=L===void 0?"ERROR":L;Z=Z===void 0?!1:Z;L=L===void 0?"ERROR":L;Z=Z===void 0?!1:Z;if(x&&(x.hasOwnProperty("level")&&x.level&&(L=x.level),_.u("console_log_js_exceptions")&&(S=[],S.push("Name: "+x.name),S.push("Message: "+x.message),x.hasOwnProperty("params")&&S.push("Error Params: "+JSON.stringify(x.params)),x.hasOwnProperty("args")&&S.push("Error args: "+
JSON.stringify(x.args)),S.push("File name: "+x.fileName),S.push("Stacktrace: "+x.stack),S=S.join("\n"),window.console.log(S,x)),!(wXO>=5))){S=[];Q=_.O(B40);for(J=Q.next();!J.done;J=Q.next()){J=J.value;try{J()&&S.push(J())}catch(G){}}S=[].concat(_.lP(WFc),_.lP(S));var E=qvn(x);Q=E.message||"Unknown Error";J=E.name||"UnknownError";var P=E.stack||x.stacktrace||"Not available";if(P.startsWith(J+": "+Q)){var v=P.split("\n");v.shift();P=v.join("\n")}v=E.lineNumber||"Not available";E=E.fileName||"Not available";
var V=0;if(x.hasOwnProperty("args")&&x.args&&x.args.length)for(var h=0;h<x.args.length&&!(V=sts(x.args[h],"params."+h,D,V),V>=500);h++);else if(x.hasOwnProperty("params")&&x.params){var H=x.params;if(typeof x.params==="object")for(h in H){if(H[h]){var k="params."+h,T=bj(H[h]);D[k]=T;V+=k.length+T.length;if(V>500)break}}else D.params=bj(H)}if(S.length)for(h=0;h<S.length&&!(V=sts(S[h],"params.context."+h,D,V),V>=500);h++);navigator.vendor&&!D.hasOwnProperty("vendor")&&(D["device.vendor"]=navigator.vendor);
h={message:Q,name:J,lineNumber:v,fileName:E,stack:P,params:D,sampleWeight:1};D=Number(x.columnNumber);isNaN(D)||(h.lineNumber=h.lineNumber+":"+D);if(x.level==="IGNORED")x=0;else a:{x=ALn();D=_.O(x.messageWeights);for(S=D.next();!S.done;S=D.next())if(S=S.value,h.message&&h.message.match(S.messageRegExp)){x=S.weight;break a}x=_.O(x.callbackWeights);for(D=x.next();!D.done;D=x.next())if(D=D.value,D.callback(h)){x=D.weight;break a}x=1}h.sampleWeight=x;x=_.O($b4);for(D=x.next();!D.done;D=x.next())if(D=
D.value,D.patternsForType[h.name])for(Q=_.O(D.patternsForType[h.name]),S=Q.next();!S.done;S=Q.next())if(J=S.value,S=h.message.match(J.regexp)){h.params["params.error.original"]=S[0];Q=J.groups;J={};for(v=0;v<Q.length;v++)J[Q[v]]=S[v+1],h.params["params.error."+Q[v]]=S[v+1];h.message=D.messageFn(J);break}h.params||(h.params={});x=ALn();h.params["params.errorServiceSignature"]="msg="+x.messageWeights.length+"&cb="+x.callbackWeights.length;h.params["params.serviceWorker"]="false";_.Qb.document&&_.Qb.document.querySelectorAll&&
(h.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new $Z(rLw,"sample")).constructor!==$Z&&(h.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(h);if(h.sampleWeight!==0&&!N4h.has(h.message)){if(Z&&_.u("web_enable_error_204"))iXc(L===void 0?"ERROR":L,h);else{L=L===void 0?"ERROR":L;L==="ERROR"?(fsw.publish("handleError",h),_.u("record_app_crashed_web")&&oe3===0&&h.sampleWeight===1&&(oe3++,Z={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.u("report_client_error_with_app_crash_ks")||(Z.systemHealth={crashData:{clientError:{logMessage:{message:h.message}}}}),_.Uh("appCrashed",Z)),as4++):L==="WARNING"&&fsw.publish("handleWarning",h);if(_.u("kevlar_gel_error_routing")){Z=L;y=y===void 0?{}:y;b:{x=_.O(z6w);for(D=x.next();!D.done;D=x.next())if(rE(D.value.toLowerCase())){x=!0;break b}x=!1}if(x)y=void 0;else{D={stackTrace:h.stack};h.fileName&&(D.filename=h.fileName);x=h.lineNumber&&h.lineNumber.split?h.lineNumber.split(":"):[];x.length!==
0&&(x.length!==1||isNaN(Number(x[0]))?x.length!==2||isNaN(Number(x[0]))||isNaN(Number(x[1]))||(D.lineNumber=Number(x[0]),D.columnNumber=Number(x[1])):D.lineNumber=Number(x[0]));x={level:"ERROR_LEVEL_UNKNOWN",message:h.message,errorClassName:h.name,sampleWeight:h.sampleWeight};Z==="ERROR"?x.level="ERROR_LEVEL_ERROR":Z==="WARNING"&&(x.level="ERROR_LEVEL_WARNNING");D={isObfuscated:!0,browserStackInfo:D};y.pageUrl=window.location.href;y.kvPairs=[];_.$6("FEXP_EXPERIMENTS")&&(y.experimentIds=_.$6("FEXP_EXPERIMENTS"));
S=_.$6("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!RDb("web_disable_gel_stp_ecatcher_killswitch")&&S)for(Q=_.O(Object.keys(S)),J=Q.next();!J.done;J=Q.next())J=J.value,y.kvPairs.push({key:J,value:String(S[J])});if(S=h.params)for(Q=_.O(Object.keys(S)),J=Q.next();!J.done;J=Q.next())J=J.value,y.kvPairs.push({key:"client."+J,value:String(S[J])});S=_.$6("SERVER_NAME");Q=_.$6("SERVER_VERSION");S&&Q&&(y.kvPairs.push({key:"server.name",value:S}),y.kvPairs.push({key:"server.version",value:Q}));y={errorMetadata:y,
stackTrace:D,logMessage:x}}y&&(_.Uh("clientError",y),(Z==="ERROR"||_.u("errors_flush_gel_always_killswitch"))&&_.wz())}_.u("suppress_error_204_logging")||iXc(L,h)}try{N4h.add(h.message)}catch(G){}wXO++}}};
iXc=function(x,L){var D=L.params||{};x={urlParams:{a:"logerror",t:"jserror",type:L.name,msg:L.message.substr(0,250),line:L.lineNumber,level:x,"client.name":D.name},postParams:{url:_.$6("PAGE_NAME",window.location.href),file:L.fileName},method:"POST"};D.version&&(x["client.version"]=D.version);if(x.postParams){L.stack&&(x.postParams.stack=L.stack);L=_.O(Object.keys(D));for(var S=L.next();!S.done;S=L.next())S=S.value,x.postParams["client."+S]=D[S];if(D=_.$6("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(L=
_.O(Object.keys(D)),S=L.next();!S.done;S=L.next())S=S.value,x.postParams[S]=D[S];(D=_.$6("LAVA_VERSION"))&&(x.postParams["lava.version"]=D);D=_.$6("SERVER_NAME");L=_.$6("SERVER_VERSION");D&&L&&(x.postParams["server.name"]=D,x.postParams["server.version"]=L)}_.kQ(_.$6("ECATCHER_REPORT_HOST","")+"/error_204",x)};
_.XXh=function(x,L){L=L===void 0?"ERROR":L;var D=D===void 0?{}:D;var S=_.o1("ytbin.polymer.shared.lib.tampering.info");S&&(S=S())&&(D["params.tamperingInfo"]=S.sort().join(","));_.BI(x,L,void 0,void 0,!0,D)};
_.A7=function(x){var L=_.Ne.apply(1,arguments);x.args||(x.args=[]);Array.isArray(x.args)&&x.args.push.apply(x.args,_.lP(L))};
cLf=function(x){x.level="IGNORED"};
nec=function(x,L){WFc.push(x);L();WFc.pop()};
Ny=function(x,L){for(var D in L)L.hasOwnProperty(D)&&(x=_.rz(x,D,L[D]));return x};
_.t2h=function(x,L,D){D=D===void 0?!1:D;if(!x)return null;if(x.adInfoDialogEndpoint||x.backstageImageUploadEndpoint||x.confirmDialogEndpoint||x.clientActionEndpoint||x.createBackstagePostDialogEndpoint||x.createCommentReplyDialogEndpoint||x.flowEndpoint||x.guideBuilderEndpoint||x.liveChatDialogEndpoint||x.modalEndpoint||x.openPopupAction||x.shareEndpoint||x.shareEntityEndpoint||x.showLiveChatItemEndpoint||x.subscriptionManagerEndpoint||x.unlimitedCreateFamilyEndpoint||x.unlimitedFamilyFlowEndpoint||
x.updateCommentDialogEndpoint||x.updateCommentReplyDialogEndpoint||x.userFeedbackEndpoint||x.videoEditorEndpoint||x.ypcCancelSurveyEndpoint)return L=_.dE("polymer_report_client_url_requested_rate"),!D&&Math.random()<L&&_.qy(new _.RZ("urlForEndpoint used on client endpoint",x)),null;var S=_.dE("polymer_report_missing_web_navigation_endpoint_rate");if(x.liveChatEndpoint||x.liveChatReplayEndpoint)S=0;if(!x.commandMetadata&&!x.clickTrackingParams&&Math.random()<S){var Q={},J;for(J in x)Q[J]="1";_.qy(new _.RZ("Missing navigation data",
Q))}Q="";if(x.commandMetadata&&x.commandMetadata.webCommandMetadata&&x.commandMetadata.webCommandMetadata.url)Q=x.commandMetadata.webCommandMetadata.url;else if(x.searchEndpoint)Math.random()<S&&_.qy(new _.RZ("Should not manually handle search",x)),Q="/results?search_query="+encodeURIComponent(x.searchEndpoint.query).replace(/%20/g,"+"),x.searchEndpoint.params&&(Q+="&sp="+x.searchEndpoint.params);else if(x.watchEndpoint)Math.random()<S&&_.qy(new _.RZ("Should not manually handle watch",x)),Q="/watch?v="+
x.watchEndpoint.videoId,x.watchEndpoint.playlistId&&(Q+="&list="+x.watchEndpoint.playlistId),x.watchEndpoint.index&&(Q+="&index="+x.watchEndpoint.index),x.watchEndpoint.startTimeSeconds&&(Q+="&t="+x.watchEndpoint.startTimeSeconds);else if(x.browseEndpoint)S=x.browseEndpoint.browseId,(J=x.browseEndpoint.canonicalBaseUrl)?Q=J:S&&(Q=S.substr(0,2),Q=Q==="FE"?S==="FEwhat_to_watch"?"/":S==="FEmy_videos"?"/my_videos":"/feed/"+S.substr(2):Q==="VL"?"/playlist?list="+S.substr(2):"/channel/"+S),Q&&x.browseEndpoint.query&&
(Q=Ny(Q+"/search",{query:x.browseEndpoint.query})),Q&&x.browseEndpoint.params&&(Q=Ny(Q,{params:x.browseEndpoint.params}));else{if(x.urlEndpoint)return x.urlEndpoint.url;x.signInEndpoint?(Q="https://accounts.google.com/ServiceLogin",S={},_.wk.extend(S,L||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),L=S):x.uploadEndpoint?Q="//www.youtube.com/upload":x.liveChatEndpoint?(Q=x.liveChatEndpoint,S=_.wk.clone(Q),_.on(Q.continuation)&&(J=Object.keys(Q.continuation)[0],
S.continuation=Q.continuation[J].continuation),Q=Ny("/youtubei/v1/live_chat/get_live_chat",S)):x.liveChatReplayEndpoint?(Q=_.wk.clone(x.liveChatReplayEndpoint),Q.currentPlayerState&&(_.wk.extend(Q,Q.currentPlayerState),delete Q.currentPlayerState),Q=Ny("/youtubei/v1/live_chat/get_live_chat_replay",Q)):x.liveChatItemContextMenuEndpoint?Q=Ny("/youtubei/v1/live_chat/get_item_context_menu",x.liveChatItemContextMenuEndpoint):x.liveChatPurchaseMessageEndpoint?Q=Ny("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
x.liveChatPurchaseMessageEndpoint):x.openSuperStickerBuyFlowCommand?Q=Ny("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",x.openSuperStickerBuyFlowCommand):x.videoEditEndpoint?Q=Ny("/edit",{video_id:x.videoEditEndpoint.videoId}):x.liveDashboardEndpoint?Q=x.liveDashboardEndpoint.videoId?Ny("/live_dashboard",{v:x.liveDashboardEndpoint.videoId}):"/live_dashboard":x.signalNavigationEndpoint&&x.signalNavigationEndpoint.signal&&x.signalNavigationEndpoint.signal==="WEBCAM"?Q="/webcam":x.getPdgBuyFlowCommand&&
(Q=Ny(x.getPdgBuyFlowCommand.buyflowApiPath,{params:x.getPdgBuyFlowCommand.params}))}return Q||D?Ny(Q,L||{}):(_.qy(new _.RZ("Error: Can't construct url for endpoint","keys:"+Object.keys(x).sort().join(","),x)),null)};
x10=function(x){if(x){if(x.browseEndpoint)return!!x.browseEndpoint.nofollow;if(x.watchEndpoint)return!!x.watchEndpoint.nofollow;if(x.urlEndpoint)return!!x.urlEndpoint.nofollow}return!1};
_.D13=function(x,L){var D=L+x,S=LB0.get(D);if(S)return S;x=L+"-"+x.replace(/([A-Z])/g,"-$1").toLowerCase();LB0.set(D,x);return x};
S3p=function(x){var L=_.Wd(x,"action")||_.Wd(x,"command")||_.Wd(x,"endpoint");if(!L)return null;L=_.D13(L,"yt");_.g(x,_.iY)&&(L+="-"+_.g(x,_.iY).signal.toLowerCase().replace(/_/g,"-"));return L};
OFn=function(x){try{var L=Object.keys(x)}catch(Q){return[]}for(var D=0;D<L.length;D++){var S=L[D];if(QSs.test(S)||Ji4.test(S))return KBO(x[S])}return[]};
KBO=function(x){return x.command?[x.command]:x.onExecutionAction?[x.onExecutionAction]:x.onResponseReceivedCommand?[x.onResponseReceivedCommand]:x.updateFlowCommand?[x.updateFlowCommand]:x.clientActions?x.clientActions:x.action?[x.action]:x.actions||x.commands||x.onResponseReceivedActions||x.onResponseReceivedCommands||x.onResponseReceivedEndpoints||[]};
yi3=function(x,L){L=L===void 0?!1:L;var D=_.yY().resolve(_.ZN(fV));D||(D=new ZF3,_.yY().addProvider({provide:fV,useValue:D}));return D&&x&&!_.wk.isEmpty(x)?D.getUrl(x,L):""};
Inn=function(x,L,D){D=D===void 0?"":D;if(L){x.data=L;var S=yi3(L);S?(fU(x,S),x10(L)||!KH(S)?x.rel="nofollow":x.removeAttribute("rel"),_.g(L,_.oR)&&_.g(L,_.oR).target==="TARGET_NEW_WINDOW"?x.target="_blank":D?x.target=D:x.removeAttribute("target")):(x.removeAttribute("href"),x.removeAttribute("rel"),x.removeAttribute("target"))}};
_.t7=function(x,L){var D=JI;if(GJ())EcO(x,function(){var J=_.Ne.apply(0,arguments);AI(D,function(){L.apply(null,_.lP(J))})});
else{var S=_.aR.getInstance(),Q=eDN(L);gTn(function(){Q.value=L});
_.wO(function(){var J={},Z=_.cI(S,(J[x]=function(){var y=_.Ne.apply(0,arguments);AI(D,function(){Q.value.apply(Q,_.lP(y))})},J));
return function(){var y={};_.nV(S,(y[x]="",y),Z)}})}};
_.x3=function(x,L){return M8w(x,!1,L)};
_.Sc=function(x,L){return M8w(x,!0,L)};
M8w=function(x,L,D){return GJ()?d1f(x,L,D):PSf(x,L,D)};
PSf=function(x,L,D){return Bd(function(){return d1f(x,L,D)})};
d1f=function(x,L,D){var S=VqO(function(Q){S.value=Q;var J=function(){var Z=dH(null);try{return D==null?void 0:D(Q)}finally{dH(Z)}}();
return function(){J==null||J()}});
S.__expectedTagName=x;S.__optional=L;S.isIdom=!GJ();return S};
jS4=function(x){var L=JI,D=e$;return{getFn:function(){return function(S){L.isDisposed||lm(function(){return _.hI(function(){return x(S)})},D)!==!0&&S.stopPropagation()}}}};
QB=function(x){if(typeof x.children==="function")return x.children(),null;x=_.O(x.children);for(var L=x.next();!L.done;L=x.next())L=L.value,L();return null};
vcc=function(x){var L;return((L=x.prototype)==null?void 0:L.render)===void 0};
V8c=function(x){return x.items.map(x.children)};
HF4=function(x,L,D){D=D===void 0?!1:D;lm(function(){return hMf(x,L,D)})};
hMf=function(x,L,D){var S=null;FU++;D=(D===void 0?0:D)?um3:gc3;try{S=D(x,function(){J6(L)}),TJ(!1)}catch(Q){throw TJ(!0),Q;
}return S===null?x:S};
J6=function(x){if(x!==void 0&&x!==null)if(x instanceof k6)for(var L=au;zJ()!=null&&DFs in zJ()&&L.contains(zJ());)x6();else if(Array.isArray(x))for(L=_.O(x),x=L.next();!x.done;x=L.next())J6(x.value);else if(x instanceof s5||x instanceof ZE||"function"==typeof _.OX&&x instanceof _.OX)Lzf(x.toString());else if(_.M9(x)){if(zJ()!==x){var D,S;L=(S=(D=e$)==null?void 0:D.name)!=null?S:"unknown";throw Error("hc`"+x.tagName+"`"+L);}x6()}else if(x!=null&&x.contentKind===jF||x instanceof oN||v70(x))for(L=h5b(x),
L=Array.from(L.childNodes),L=_.O(L),x=L.next();!x.done;x=L.next())au.appendChild(x.value),x6();else if(U5(x)&&(x=x.toString()),D=typeof x,D==="boolean"||D==="number"||D==="string")Lzf(x);else if(typeof x==="function"){L=au;var Q=zJ();Q&&(Q._isSignalTextNode||Q._isSafeOrSanitizedHtmlNode)||fRf(L,Q,x);x6()}else if(x.type===V8c)J6(x.type(Object.assign({},x.props,{children:x.children[0]})));else{bf.beforeVisit(x);if(typeof x.type==="string"){a:{x.__open||f5s(x.type,x.props.idomKey);Q=au;for(L in x.props)if(x.props[L]!==
kkw){var J=x.props[L];D=SF;D.push(L);D.push(J)}L=Iu.attributes;L=L===void 0?Kh:L;J=au;D=fq(J);xuf(J,D,L);iLs(Q,x.props,!0);if((x.props.skip||x.props.skipchildren)&&au.hasChildNodes())a50();else{if(x.type==="style"&&YKb(x.children)===null){a50();L=void 0;break a}J6(x.children)}o3N();x.__open&&(x.__open=!1);y30(Q,x.props);L=Q}return L}if(x.type===_.I1)J6(x.children);else if(!p2b(x)){L=x;try{m10(L)}catch(Z){x=Z,(J=Iu.handleError)==null||J.call.apply(J,[Iu].concat(_.lP($V(x,(Q=L.type)==null?void 0:Q.TAG_NAME))))}L.__open&&
(o3N(),L.__open=!1)}}};
bFb=function(x,L){var D;vcc(x)?D=new F0(L,x):D=new x(L);D.__type=x;D.__updateContext={nextState:D.state,isForced:!1};return D};
m10=function(x){var L=x.type,D=L.TAG_NAME;if(L===QB)x.props.children=x.children,L(x.props);else{x.children.length>0&&(x.props.children=x.children);var S;(S=x.props).idomKey||(S.idomKey=L);if(D){var Q=f5s(D,x.props.idomKey);x.__open=!0;var J=Q.__instance}J||(J=bFb(L,x.props),J.props=null,Q&&(Q.__instance=J,J.el=Q));var Z;D=((Z=J.__updateContext)!=null?Z:{nextState:J.state,isForced:!1}).nextState;J.__updateContext=void 0;L.getDerivedStateFromProps&&(D=L.getDerivedStateFromProps(x.props,D));J.props=
x.props;J.state=D;Z=function(){var y=J;bf.beforeRender(y);var E=y.render(y.props);bf.afterRender(y,E);E?(y.props.idomKey&&(E.props.idomKey=y.props.idomKey),y=E):y=void 0;if(E=y)if(E.__open=x.__open,y=J6(E),x.__open=E.__open,!L.TAG_NAME)if(y)L.TAG_NAME=y.tagName.toLowerCase(),y.__instance=J,J.el=y;else{var P;if((P=J.hooks)==null?0:P.length){var v;(v=Iu.handleError)==null||v.call.apply(v,[Iu].concat(_.lP($V(Error("nd")))))}}J.didPatch();bf.didPatch(J)};
(D=J.functionComponent)?E33(D,Z,J.props.debugInstance):Z()}};
p2b=function(x){var L=x.type;if(!vcc(L)||L===QB||L.componentType===Ru)return!1;x.props.children=x.children.length>1?x.children:x.children[0];var D,S=(D=x.props.idomKey)!=null?D:x.type,Q;if(zJ()&&((Q=zJ()[hu])==null?void 0:Q.key)===S){var J=zJ(),Z=J[hu];if(!Z)throw Error("gc`"+J.tagName);var y;(y=Z.updateSignalsFromIdomProps)==null||y.call(Z,x.props);Y3n(Z);return!0}if(FB0.has(L.name))throw y=L.name,L=(Z=(J=e$)==null?void 0:J.name)!=null?Z:"unknown",Error("fc`"+y+"`"+L);XoN(x.type,x.props,x.children);
x.props.renderedFromIdom=!0;(y=E33(x.type,function(){return qKw(x.type,x.props)},x.props.debugInstance))&&sSw(y);
return!0};
Tq4=function(x){for(var L=0;L<uf(x).length;L++)x6()};
Y3n=function(x){var L=eM0();if(L)Tq4(L);else for(var D=0;D<x.numNodes;D++)(L=eM0())?Tq4(L):x6()};
eM0=function(){var x;return(x=zJ()[hu])==null?void 0:x.sourceDynamicRange};
sSw=function(x){x=MoO(x);x=Array.isArray(x)?x:[x];x=_.O(x);for(var L=x.next();!L.done;L=x.next())au.insertBefore(L.value,zJ()),x6()};
RMN=function(){var x=$uh(),L=Bd(function(){return{value:0}});
return[L.value,function(D){if(Y6!==null){var S;(S=Iu.handleError)==null||S.call.apply(S,[Iu].concat(_.lP($V(Error("od")))))}L.value=typeof D==="function"?D(L.value):D;x.__updateContext={nextState:x.state,isForced:!0};D=_.Kq(x.effectContext);S=EX(!1);try{if(x.el){var Q,J={},Z=(J.props=x.props,J.type=x.__type,J.children=(Q=x.props.children)!=null?Q:[],J[yN]=!0,J);try{HF4(x.el,Z,!0)}catch(P){var y,E;(E=Iu.handleError)==null||E.call.apply(E,[Iu].concat(_.lP($V(P,(y=x.__type)==null?void 0:y.TAG_NAME))))}}}finally{EX(S),
_.Kq(D)}}]};
_.OU=function(x,L){var D=JI,S=function(Q){AI(D,function(){L(Q)})};
window.addEventListener(x,S,void 0);_.wH(function(){window.removeEventListener(x,S,void 0)})};
_.yB=function(x){var L=JI;return function(D){var S,Q=(S=x.observer)!=null?S:_.yY().resolve(Z5);S=Gkf(D);var J=[];x.showOption&&J.push(Q.observe(D,function(){AI(L,function(){x.visibilityCallback(!0,D)})},x.showOption));
x.hideOption&&J.push(Q.observe(D,function(){AI(L,function(){x.visibilityCallback(!1,D)})},x.hideOption));
x.prescanOption&&x.prescanCallback&&J.push(Q.observe(D,function(){AI(L,function(){x.prescanCallback()})},x.prescanOption));
var Z;S.visibilityMonitorKeys=((Z=S.visibilityMonitorKeys)!=null?Z:[]).concat(J)}};
Gkf=function(x){var L;return(L=x.polymerController)!=null?L:x};
w2f=function(x,L){var D=CSb;return _.M(_.I1,null,e30(Iu.enableLazyTsx,function(){return _.M(ln3,{id:D,value:x,children:L})},function(){var S=U1f(D,x);
yo(S);S=_.Kq(S);try{return L()}finally{_.Kq(S)}}))};
ln3=function(x){var L=x.children;x=U1f(x.id,x.value);yo(x);x=_.Kq(x);try{return _.M(_.I1,null,pm(L()))}finally{_.Kq(x)}};
U1f=function(x,L){return Object.assign(Object.create(Bq0),{id:x,contextValue:L})};
WBb=function(x){var L,D=JI;_.qN(function(){var S=_.Kq(D),Q=EX(!L);try{if(L)HF4(L,x.children(),!0);else if(L=pm(x.children()),!(L instanceof Element))throw Error("pd");}finally{EX(Q),_.Kq(S)}},"f");
return L};
_.q34=function(x,L){var D;L=BB(function(){var S=EX(!0);FU++;try{D=uf(x()),TJ(!1)}catch(Q){throw TJ(!0),Q;}finally{EX(S)}},L===void 0?!1:L);
return[D,L]};
$1n=function(x){var L=new Ai0;L.abort(x);return L.signal};
riN=function(){if(this.aborted){var x;throw(x=this.reason)!=null?x:new DOMException("signal is aborted without reason","AbortError");}};
fnb=function(x){var L=new Ai0;x=_.O(x);for(var D=x.next();!D.done;D=x.next())if(D=D.value,D.aborted){L.abort(D.reason);break}else Nqn.set(L.signal,L),iF0.add(D,L.signal);return L.signal};
oc0=function(){for(var x=_.O(iF0.get(this)),L=x.next();!L.done;L=x.next())Nqn.get(L.value).abort(this.reason)};
anf=function(x){var L=new Ai0;setTimeout(function(){L.abort(new DOMException("signal timed out","TimeoutError"))},x);
return L.signal};
X20=function(x){x=x.buf.charCodeAt(x.pos++);return zMf[x]};
IH=function(x){var L=0,D=0;do{var S=X20(x);L|=(S&31)<<D;D+=5}while(S&32);return L<0?L+4294967296:L};
ncb=function(){var x=!0;x=x===void 0?!1:x;var L=L===void 0?!1:L;var D=D===void 0?{}:D;var S=D.cssRowKey||"",Q=D.combinedSignature||"";!S&&window&&window._F_cssRowKey&&(S=window._F_cssRowKey,!Q&&window._F_combinedSignature&&(Q=window._F_combinedSignature));if(S&&typeof window._F_installCss!=="function")throw Error("zd");var J=D.loaderClass||_.EU,Z=cE0("base-js");x=new J(HZh(tVO("",Z)),S,Q,x,L);L=D.useCors||Z&&Z.hasAttribute("crossorigin");Z=D.corsMode||Z&&Z.getAttribute("crossorigin");L&&(x.useCors_=
L);Z&&(x.corsMode_=Z);D.urlMaxLength&&(x.urlMaxLength=D.urlMaxLength);D.fetchPriority&&(x.fetchPriority=D.fetchPriority);var y=wb();y.JSC$10058_loader_=x;y.setBatchModeEnabled(!0);_.ci0=function(E){return Promise.resolve(y.load(E))}};
LIn=function(x,L,D){t8h(x,L);x[L][xk3].unshift(D)};
t8h=function(x,L){if(!x[L]||!x[L][xk3]){var D=x[L],S=D?[D]:[];x[L]=function(){for(var Q=_.O(S),J=Q.next();!J.done;J=Q.next())J.value.apply(this,arguments)};
x[L][xk3]=S}};
Dk4=function(x){if(!x)return[];var L=[];x=_.O(x);for(var D=x.next();!D.done;D=x.next())D=D.value,Array.isArray(D)?L.push.apply(L,_.lP(Dk4(D))):L.push(D);return L};
_.dQ=function(x,L){if(x&&Sy0.test(x)||x==="//")return x;if(QPc===void 0){QPc=!1;try{var D=new URL("b","http://a");D.pathname="c%20d";QPc=D.href==="http://a/c%20d"}catch(S){}}L||(L=document.baseURI||window.location.href);if(QPc)try{return(new URL(x,L)).href}catch(S){return x}M6||(M6=document.implementation.createHTMLDocument("temp"),M6.base=M6.createElement("base"),M6.head.appendChild(M6.base),M6.anchor=M6.createElement("a"),M6.body.appendChild(M6.anchor));M6.base.href=L;M6.anchor.href=x;return M6.anchor.href||
x};
KIp=function(x,L){return x.replace(JKb,function(D,S,Q,J){return S+"'"+_.dQ(Q.replace(/["']/g,""),L)+"'"+J})};
OGs=function(x){return x.substring(0,x.lastIndexOf("/")+1)};
ISf=function(){ZG4=!1;for(var x=Pv.length,L=0;L<x;L++){var D=Pv[L];if(D)try{D()}catch(S){setTimeout(function(){throw S;})}}Pv.splice(0,x);
yKn+=x};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(x){console.log("["+x.is+"]: registered")};
MKb=function(x){Evn.push(x)};
jc=function(x){return dk3[x]||(dk3[x]=x.indexOf("-")<0?x:x.replace(Pyn,function(L){return L[1].toUpperCase()}))};
vv=function(x){return dk3[x]||(dk3[x]=x.replace(jPn,"-$1").toLowerCase())};
vvG=function(x,L){var D=L.parentInfo&&vvG(x,L.parentInfo);if(D)for(x=D.firstChild,D=0;x;x=x.nextSibling){if(L.parentIndex===D++)return x}else return x};
VK0=function(x,L){x=x._methodHost||x;return function(D){if(x[L])x[L](D,D.detail);else console.warn("listener method `"+L+"` not defined")}};
VB=function(x){return x.indexOf(".")>=0};
h6=function(x){var L=x.indexOf(".");return L===-1?x:x.slice(0,L)};
hrf=function(x,L){return x.indexOf(L+".")===0};
Hv=function(x,L){return L.indexOf(x+".")===0};
uv=function(x,L,D){return L+D.slice(x.length)};
HG3=function(x,L){return x===L||hrf(x,L)||Hv(x,L)};
gQ=function(x){if(Array.isArray(x)){for(var L=[],D=0;D<x.length;D++)for(var S=x[D].toString().split("."),Q=0;Q<S.length;Q++)L.push(S[Q]);return L.join(".")}return x};
uo4=function(x){return Array.isArray(x)?gQ(x).split("."):x.toString().split(".")};
k3=function(x,L,D){L=uo4(L);for(var S=0;S<L.length;S++){if(!x)return;x=x[L[S]]}D&&(D.path=L.join("."));return x};
gvw=function(x,L,D){var S=uo4(L),Q=S[S.length-1];if(S.length>1){for(L=0;L<S.length-1;L++)if(x=x[S[L]],!x)return;x[Q]=D}else x[L]=D;return S.join(".")};
kn0=function(x,L,D){var S=x[L];if(!S)S=x[L]={};else if(!x.hasOwnProperty(L)&&(S=x[L]=Object.create(x[L]),D))for(var Q in S)for(x=S[Q],L=S[Q]=Array(x.length),D=0;D<x.length;D++)L[D]=x[D];return S};
mu=function(x,L,D,S,Q,J){if(L){var Z=!1,y=ph++,E;for(E in D){var P=Q?h6(E):E;if(P=L[P])for(var v=0,V=P.length,h=void 0;v<V&&(h=P[v]);v++)h.info&&h.info.lastRun===y||Q&&!pFG(E,h.trigger)||(h.info&&(h.info.lastRun=y),h.fn(x,E,D,S,h.info,Q,J),Z=!0)}return Z}return!1};
pFG=function(x,L){if(L){var D=L.name;return D==x||!(!L.structured||!hrf(D,x))||!(!L.wildcard||!Hv(D,x))}return!0};
mkh=function(x,L,D,S,Q){L=typeof Q.method==="string"?x[Q.method]:Q.method;D=Q.property;L?L.call(x,x.__data[D],S[D]):Q.dynamicFn||console.warn("observer method `"+Q.method+"` not defined")};
bGn=function(x,L,D,S){D={value:D,queueProperty:!0};S&&(D.path=S);(0,_.bv)(x).dispatchEvent(new CustomEvent(L,{detail:D}))};
Yyf=function(x,L,D,S,Q,J){J=(S=(J?h6(L):L)!=L?L:null)?k3(x,S):x.__data[L];S&&J===void 0&&(J=D[L]);bGn(x,Q.eventName,J,S)};
FIp=function(x,L,D,S,Q){D=x.__data[L];Y3&&(D=Y3(D,Q.attrName,"attribute",x));x._propertyToAttribute(L,Q.attrName,D)};
TVh=function(x){var L=x.constructor.__orderedComputedDeps;if(!L){L=new Map;for(var D=x.__computeEffects,S=sPf(x),Q=S.counts,J=S.ready,Z=S.total;S=J.shift();)L.set(S,L.size),(S=D[S])&&S.forEach(function(y){y=y.info.methodInfo;--Z;--Q[y]===0&&J.push(y)});
Z!==0&&console.warn("Computed graph for "+x.localName+" incomplete; circular?");x.constructor.__orderedComputedDeps=L}return L};
sPf=function(x){var L=x.__computeInfo,D={};x=x.__computeEffects;var S=[],Q=0,J;for(J in L){var Z=L[J];Q+=D[J]=Z.args.filter(function(E){return!E.literal}).length+(Z.dynamicFn?1:0)}for(var y in x)L[y]||S.push(y);
return{counts:D,ready:S,total:Q}};
RrG=function(x,L,D,S,Q){L=erp(x,L,D,S,Q);if(L===FE)return!1;Q=Q.methodInfo;if(x.__dataHasAccessor&&x.__dataHasAccessor[Q])return x._setPendingProperty(Q,L,!0);x[Q]=L;return!1};
lSG=function(x,L,D,S,Q,J,Z){D.bindings=D.bindings||[];S={kind:S,target:Q,parts:J,literal:Z,isCompound:J.length!==1};D.bindings.push(S);S.target&&S.kind!="attribute"&&S.kind!="text"&&!S.isCompound&&S.parts[0].mode==="{"&&(D=S.parts[0],J=D.negate,S.listenerEvent=D.event||vv(Q)+"-changed",S.listenerNegate=J);Q=L.nodeInfoList.length;for(D=0;D<S.parts.length;D++){var y=S.parts[D];y.compoundIndex=D;J=x;Z=L;var E=S,P=y,v=Q;if(!P.literal)if(E.kind==="attribute"&&E.target[0]==="-")console.warn("Cannot set attribute "+
E.target+' because "-" is not a valid attribute starting character');else for(y=P.dependencies,E={index:v,binding:E,part:P,evaluator:J},P=0;P<y.length;P++)v=y[P],typeof v=="string"&&(v=Gnw(v),v.wildcard=!0),J._addTemplatePropertyEffect(Z,v.rootProperty,{fn:Cy4,info:E,trigger:v})}};
Cy4=function(x,L,D,S,Q,J,Z){Z=Z[Q.index];var y=Q.binding,E=Q.part;J&&E.source&&L.length>E.source.length&&y.kind=="property"&&!y.isCompound&&Z.__isPropertyEffectsClient&&Z.__dataHasAccessor&&Z.__dataHasAccessor[y.target]?(D=D[L],L=uv(E.source,y.target,L),Z._setPendingPropertyOrPath(L,D,!1,!0)&&x._enqueueClient(Z)):(L=Q.evaluator._evaluateBinding(x,E,L,D,S,J),L!==FE&&(y.isCompound&&(D=Z.__dataCompoundStorage[y.target],D[E.compoundIndex]=L,L=D.join("")),y.kind==="attribute"||y.target!=="textContent"&&
(y.target!=="value"||Z.localName!=="input"&&Z.localName!=="textarea")||(L=L==void 0?"":L),E=L,Y3&&(E=Y3(E,y.target,y.kind,Z)),y.kind=="attribute"?x._valueToNodeAttribute(Z,E,y.target):(y=y.target,Z.__isPropertyEffectsClient&&Z.__dataHasAccessor&&Z.__dataHasAccessor[y]?Z.__readOnly&&Z.__readOnly[y]||Z._setPendingProperty(y,E)&&x._enqueueClient(Z):x._setUnmanagedPropertyToNode(Z,y,E))))};
Uk0=function(x,L,D){if(D.listenerEvent){var S=D.parts[0];x.addEventListener(D.listenerEvent,function(Q){var J=D.target,Z=S.source,y=S.negate,E=Q.detail,P=E&&E.path;P?(Z=uv(J,Z,P),Q=E&&E.value):Q=Q.currentTarget[J];L.__readOnly&&L.__readOnly[Z]||!L._setPendingPropertyOrPath(Z,y?!Q:Q,!0,!!P)||E&&E.queueProperty||L._invalidateProperties()})}};
wF4=function(x,L,D,S,Q,J){J=L.static||J&&(typeof J!=="object"||J[L.methodName]);Q={methodName:L.methodName,args:L.args,methodInfo:Q,dynamicFn:J};for(var Z=0,y=void 0;Z<L.args.length&&(y=L.args[Z]);Z++)y.literal||x._addPropertyEffect(y.rootProperty,D,{fn:S,info:Q,trigger:y});J&&x._addPropertyEffect(L.methodName,D,{fn:S,info:Q});return Q};
erp=function(x,L,D,S,Q){S=x._methodHost||x;var J=S[Q.methodName];if(J)return x=x._marshalArgs(Q.args,L,D),x===FE?FE:J.apply(S,x);Q.dynamicFn||console.warn("method `"+Q.methodName+"` not defined")};
BV0=function(x){for(var L="",D=0;D<x.length;D++)L+=x[D].literal||"";return L};
AK0=function(x){if(x=x.match(/([^\s]+?)\(([\s\S]*)\)/)){var L={methodName:x[1],static:!0,args:WIO};return x[2].trim()?qyb(x[2].replace(/\\,/g,"&comma;").split(","),L):L}return null};
qyb=function(x,L){L.args=x.map(function(D){D=Gnw(D);D.literal||(L.static=!1);return D},this);
return L};
Gnw=function(x){x=x.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var L={name:x,value:"",literal:!1},D=x[0];D==="-"&&(D=x[1]);D>="0"&&D<="9"&&(D="#");switch(D){case "'":case '"':L.value=x.slice(1,-1);L.literal=!0;break;case "#":L.value=Number(x),L.literal=!0}L.literal||(L.rootProperty=h6(x),L.structured=VB(x),L.structured&&(L.wildcard=x.slice(-2)==".*",L.wildcard&&(L.name=x.slice(0,-2))));return L};
$kN=function(x,L,D){x=k3(x,D);x===void 0&&(x=L[D]);return x};
rK0=function(x,L,D,S){S={indexSplices:S};sU&&!x._overrideLegacyUndefined&&(L.splices=S);x.notifyPath(D+".splices",S);x.notifyPath(D+".length",L.length);sU&&!x._overrideLegacyUndefined&&(S.indexSplices=[])};
TL=function(x,L,D,S,Q,J){rK0(x,L,D,[{index:S,addedCount:Q,removed:J,object:L,type:"splice"}])};
NVp=function(x){x=KIp((x.body?x.body:x).textContent,x.baseURI);var L=document.createElement("style");L.textContent=x;return L};
fSp=function(x){x=x.trim().split(/\s+/);for(var L=[],D=0;D<x.length;D++)L.push.apply(L,_.lP(iGb(x[D])));return L};
iGb=function(x){var L=ec.import(x);if(!L)return console.warn("Could not find style data in module named",x),[];if(L._styles===void 0){x=[];x.push.apply(x,_.lP(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(L)));var D=L.querySelector("template");D&&x.push.apply(x,_.lP(ov3(D,L.assetpath)));L._styles=x}return L._styles};
ov3=function(x,L){if(!x._styles){for(var D=[],S=x.content.querySelectorAll("style"),Q=0;Q<S.length;Q++){var J=S[Q],Z=J.getAttribute("include");Z&&D.push.apply(D,_.lP(fSp(Z).filter(function(y,E,P){return P.indexOf(y)===E})));
L&&(J.textContent=KIp(J.textContent,L));D.push(J)}x._styles=D}return x._styles};
aSO=function(x){return(x=ec.import(x))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(x):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(x){var L=[];x=x.querySelectorAll("link[rel=import][type~=css]");for(var D=0;D<x.length;D++){var S=x[D];if(S.import){var Q=S.import;if((S=S.hasAttribute("shady-unscoped"))&&!Q._unscopedStyle){var J=NVp(Q);J.setAttribute("shady-unscoped","");Q._unscopedStyle=J}else Q._style||(Q._style=NVp(Q));L.push(S?Q._unscopedStyle:Q._style)}}return L};
XF3=function(x){x=x.trim().split(/\s+/);for(var L="",D=0;D<x.length;D++)L+=zrh(x[D]);return L};
zrh=function(x){var L=ec.import(x);if(L&&L._cssText===void 0){var D=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(L),S=L.querySelector("template");S&&(D+=cKO(S,L.assetpath));L._cssText=D||null}L||console.warn("Could not find style data in module named",x);return L&&L._cssText||""};
cKO=function(x,L){var D="";x=ov3(x,L);for(L=0;L<x.length;L++){var S=x[L];S.parentNode&&S.parentNode.removeChild(S);D+=S.textContent}return D};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(x){var L="";x=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(x);for(var D=0;D<x.length;D++)L+=x[D].textContent;return L};
RH=function(x,L){return{index:x,removed:[],addedCount:L}};
tKO=function(x,L,D,S){var Q=0,J=0,Z=0,y=0,E=Math.min(L-Q,S-J);if(Q==0&&J==0)a:{for(Z=0;Z<E;Z++)if(x[Z]!==D[Z])break a;Z=E}if(L==x.length&&S==D.length){y=x.length;for(var P=D.length,v=0;v<E-Z&&nvf(x[--y],D[--P]);)v++;y=v}Q+=Z;J+=Z;L-=y;S-=y;if(L-Q==0&&S-J==0)return[];if(Q==L){for(L=RH(Q,0);J<S;)L.removed.push(D[J++]);return[L]}if(J==S)return[RH(Q,L-Q)];E=Q;Z=J;S=S-Z+1;y=L-E+1;L=Array(S);for(P=0;P<S;P++)L[P]=Array(y),L[P][0]=P;for(P=0;P<y;P++)L[0][P]=P;for(P=1;P<S;P++)for(v=1;v<y;v++)if(x[E+v-1]===
D[Z+P-1])L[P][v]=L[P-1][v-1];else{var V=L[P-1][v]+1,h=L[P][v-1]+1;L[P][v]=V<h?V:h}E=L.length-1;Z=L[0].length-1;S=L[E][Z];for(x=[];E>0||Z>0;)E==0?(x.push(2),Z--):Z==0?(x.push(3),E--):(y=L[E-1][Z-1],P=L[E-1][Z],v=L[E][Z-1],V=P<v?P<y?P:y:v<y?v:y,V==y?(y==S?x.push(0):(x.push(1),S=y),E--,Z--):V==P?(x.push(3),E--,S=P):(x.push(2),Z--,S=v));x.reverse();L=void 0;E=[];for(Z=0;Z<x.length;Z++)switch(x[Z]){case 0:L&&(E.push(L),L=void 0);Q++;J++;break;case 1:L||(L=RH(Q,0));L.addedCount++;Q++;L.removed.push(D[J]);
J++;break;case 2:L||(L=RH(Q,0));L.addedCount++;Q++;break;case 3:L||(L=RH(Q,0)),L.removed.push(D[J]),J++}L&&E.push(L);return E};
xaG=function(x,L){return tKO(x,x.length,L,L.length)};
nvf=function(x,L){return x===L};
Da0=function(x){if(x instanceof Li0)return x.value;throw Error("Hd`"+x);};
S9N=function(x,L){for(var D in L)D===null?x.style.removeProperty(D):x.style.setProperty(D,L[D])};
QM0=function(x,L){return(x=window.getComputedStyle(x).getPropertyValue(L))?x.trim():""};
Zis=function(x){requestAnimationFrame(function(){J9N?J9N(x):(Kib||(Kib=new Promise(function(L){Ois=L}),document.readyState==="complete"?Ois():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&Ois()})),Kib.then(function(){x&&x()}))})};
EIw=function(x){y93=x&&x.shimcssproperties?!1:IcG||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
vIN=function(x){if(!(M_w.indexOf(x)>-1)&&x!=="touchend"&&da3&&PVw&&jMh)return{passive:!0}};
uKG=function(x){for(var L=V_f?["click"]:M_w,D=0,S;D<L.length;D++)S=L[D],x?(hEc.length=0,document.addEventListener(S,Hiw,!0)):document.removeEventListener(S,Hiw,!0)};
GL=function(x){var L=x.type;return M_w.indexOf(L)>-1?L==="mousemove"?(L=x.buttons===void 0?1:x.buttons,x instanceof window.MouseEvent&&!gIf&&(L=kEG[x.which]||0),!!(L&1)):(x.button===void 0?0:x.button)===0:!1};
pN3=function(x){if(x.type==="click"){if(x.detail===0)return!0;var L=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(x);if(!L.nodeType||L.nodeType!==Node.ELEMENT_NODE)return!0;L=L.getBoundingClientRect();var D=x.pageX;x=x.pageY;return!(D>=L.left&&D<=L.right&&x>=L.top&&x<=L.bottom)}return!1};
ma0=function(x,L,D){x.movefn=L;x.upfn=D;document.addEventListener("mousemove",L);document.addEventListener("mouseup",D)};
Ch=function(x){document.removeEventListener("mousemove",x.movefn);document.removeEventListener("mouseup",x.upfn);x.movefn=null;x.upfn=null};
bi0=function(x,L){for(var D=document.elementFromPoint(x,L),S=D;S&&S.shadowRoot&&!window.ShadyDOM;){var Q=S;S=S.shadowRoot.elementFromPoint(x,L);if(Q===S)break;S&&(D=S)}return D};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(x){var L=Y9c(x);return L.length>0?L[0]:x.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(x){var L=x.type,D=x.currentTarget.__polymerGestures;if(D&&(D=D[L])){if(!x.__polymerGesturesHandled&&(x.__polymerGesturesHandled={},L.slice(0,5)==="touch")){var S=x.changedTouches[0];L==="touchstart"&&x.touches.length===1&&(Fib=S.identifier);if(Fib!==S.identifier)return;da3||(L==="touchstart"||L==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(x)}S=
x.__polymerGesturesHandled;if(!S.skip){for(var Q=0,J;Q<lv.length;Q++)J=lv[Q],D[J.name]&&!S[J.name]&&J.flow&&J.flow.start.indexOf(x.type)>-1&&J.reset&&J.reset();for(Q=0;Q<lv.length;Q++)J=lv[Q],D[J.name]&&!S[J.name]&&(S[J.name]=!0,J[L](x))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(x){var L=x.changedTouches[0],D=x.type;if(D==="touchstart")sMf=L.clientX,Tyw=L.clientY,eEf=!1;else if(D==="touchmove"&&!eEf){eEf=!0;D="auto";for(var S=Y9c(x),Q=0,J;Q<S.length;Q++)if(J=S[Q],J.__polymerGesturesTouchAction){D=J.__polymerGesturesTouchAction;break}S=!1;Q=Math.abs(sMf-L.clientX);L=Math.abs(Tyw-L.clientY);x.cancelable&&(D==="none"?S=!0:D==="pan-x"?S=L>Q:D==="pan-y"&&(S=Q>L));S?x.preventDefault():
UU("track")}};
Bv=function(x,L,D){return wQ[L]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(x,L,D),!0):!1};
Wv=function(x,L,D){return wQ[L]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(x,L,D),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(x,L,D){var S=wQ[L],Q=S.deps,J=S.name,Z=x.__polymerGestures;Z||(x.__polymerGestures=Z={});for(var y=0,E,P;y<Q.length;y++)E=Q[y],V_f&&M_w.indexOf(E)>-1&&E!=="click"||((P=Z[E])||(Z[E]=P={_count:0}),P._count===0&&x.addEventListener(E,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,vIN(E)),P[J]=(P[J]||0)+1,P._count=(P._count||0)+1);x.addEventListener(L,D);S.touchAction&&_.q6(x,S.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(x,L,D){var S=wQ[L],Q=S.deps;S=S.name;var J=x.__polymerGestures;if(J)for(var Z=0,y,E;Z<Q.length;Z++)y=Q[Z],(E=J[y])&&E[S]&&(E[S]=(E[S]||1)-1,E._count=(E._count||1)-1,E._count===0&&x.removeEventListener(y,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,vIN(y)));x.removeEventListener(L,D)};
REG=function(x){lv.push(x);for(var L=0;L<x.emits.length;L++)wQ[x.emits[L]]=x};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(x){for(var L=0,D;L<lv.length;L++){D=lv[L];for(var S=0,Q;S<D.emits.length;S++)if(Q=D.emits[S],Q===x)return D}return null};
_.q6=function(x,L){da3&&x instanceof HTMLElement&&rQ.run(function(){x.style.touchAction=L});
x.__polymerGesturesTouchAction=L};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(x,L,D){L=new Event(L,{bubbles:!0,cancelable:!0,composed:!0});L.detail=D;(0,_.bv)(x).dispatchEvent(L);L.defaultPrevented&&(x=D.preventer||D.sourceEvent)&&x.preventDefault&&x.preventDefault()};
UU=function(x){x=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(x);x.info&&(x.info.prevent=!0)};
N6=function(x,L,D,S){L&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(L,x,{x:D.clientX,y:D.clientY,sourceEvent:D,preventer:S,prevent:function(Q){return UU(Q)}})};
GEf=function(x,L,D){if(x.prevent)return!1;if(x.started)return!0;D=Math.abs(x.y-D);return Math.abs(x.x-L)>=5||D>=5};
CV4=function(x,L,D){if(L){var S=x.moves[x.moves.length-2],Q=x.moves[x.moves.length-1],J=Q.x-x.x,Z=Q.y-x.y,y=0;if(S){var E=Q.x-S.x;y=Q.y-S.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(L,"track",{state:x.state,x:D.clientX,y:D.clientY,dx:J,dy:Z,ddx:E,ddy:y,sourceEvent:D,hover:function(){return bi0(D.clientX,D.clientY)}})}};
Uah=function(x,L,D){var S=Math.abs(L.clientX-x.x),Q=Math.abs(L.clientY-x.y),J=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D||L);!J||lc0[J.localName]&&J.hasAttribute("disabled")||!(isNaN(S)||isNaN(Q)||S<=25&&Q<=25||pN3(L))||x.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(J,"tap",{x:L.clientX,y:L.clientY,sourceEvent:L,preventer:D})};
wNf=function(x,L,D,S,Q){var J;Q&&(J=typeof D==="object"&&D!==null)&&(S=x.__dataTemp[L]);S=S!==D&&(S===S||D===D);J&&S&&(x.__dataTemp[L]=D);return S};
Wi4=function(){if(iv&&!fh){if(!ByG){ByG=!0;var x=document.createElement("style");x.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(x)}return!0}return!1};
A9c=function(){return q9p};
$a0=function(x,L){q9p=x;Object.setPrototypeOf(x,L.prototype);new L;q9p=null};
r9c=function(x,L){for(var D=0;D<L.length;D++){var S=L[D];if(!!x!=!!S.__hideTemplateChildren__)if(S.nodeType===Node.TEXT_NODE)x?(S.__polymerTextContent__=S.textContent,S.textContent=""):S.textContent=S.__polymerTextContent__;else if(S.localName==="slot")if(x)S.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.bv)((0,_.bv)(S).parentNode).replaceChild(S.__polymerReplaced__,S);else{var Q=S.__polymerReplaced__;Q&&(0,_.bv)((0,_.bv)(Q).parentNode).replaceChild(S,Q)}else S.style&&(x?(S.__polymerDisplay__=
S.style.display,S.style.display="none"):S.style.display=S.__polymerDisplay__);S.__hideTemplateChildren__=x;S._showHideChildren&&S._showHideChildren(x)}};
Nyp=function(x){return(x=x.__dataHost)&&x._methodHost||x};
oIs=function(x,L,D){var S=D.mutableData?iis:oH;aH.mixin&&(S=aH.mixin(S));var Q=function(){return S.apply(this,arguments)||this};
_.p(Q,S);Q.prototype.__templatizeOptions=D;Q.prototype._bindTemplate(x);fc3(Q,x,L,D);return Q};
nI0=function(x,L,D,S){var Q=D.forwardHostProp;if(Q&&L.hasHostProps){var J=x.localName=="template",Z=L.templatizeTemplateClass;if(!Z){if(J){var y=D.mutableData?acn:zEN;Z=function(){return y.apply(this,arguments)||this};
_.p(Z,y);Z=L.templatizeTemplateClass=Z}else{var E=x.constructor;Z=function(){return E.apply(this,arguments)||this};
_.p(Z,E);Z=L.templatizeTemplateClass=Z}var P=L.hostProps,v;for(v in P)Z.prototype._addPropertyEffect("_host_"+v,Z.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:XNG(Q)}),Z.prototype._createNotifyingProperty("_host_"+v);zL&&S&&c9O(L,D,S)}x.__dataProto&&Object.assign(x.__data,x.__dataProto);if(J)$a0(x,Z),x.__dataTemp={},x.__dataPending=null,x.__dataOld=null,x._enableProperties();else{Object.setPrototypeOf(x,Z.prototype);L=L.hostProps;for(var V in L)V="_host_"+V,V in x&&(L=x[V],delete x[V],x.__data[V]=
L)}}};
XNG=function(x){return function(L,D,S){x.call(L.__templatizeOwner,D.substring(6),S[D])}};
fc3=function(x,L,D,S){var Q=D.hostProps||{},J;for(J in S.instanceProps){delete Q[J];var Z=S.notifyInstanceProp;Z&&x.prototype._addPropertyEffect(J,x.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:t_h(Z)})}if(S.forwardHostProp&&L.__dataHost)for(var y in Q)D.hasHostProps||(D.hasHostProps=!0),x.prototype._addPropertyEffect(y,x.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:xCs()})};
t_h=function(x){return function(L,D,S){x.call(L.__templatizeOwner,L,D,S[D])}};
xCs=function(){return function(x,L,D){x.__dataHost._setPendingPropertyOrPath("_host_"+L,D[L],!0,!0)}};
aH=function(x,L,D){if(XE&&!Nyp(x))throw Error("Nd");D=D||{};if(x.__templatizeOwner)throw Error("Od");x.__templatizeOwner=L;var S=(L?L.constructor:oH)._parseTemplate(x),Q=S.templatizeInstanceClass;Q||(Q=oIs(x,S,D),S.templatizeInstanceClass=Q);var J=Nyp(x);nI0(x,S,D,J);D=function(){return Q.apply(this,arguments)||this};
_.p(D,Q);D.prototype._methodHost=J;D.prototype.__dataHost=x;D.prototype.__templatizeOwner=L;D.prototype.__hostProps=S.hostProps;return D};
c9O=function(x,L,D){D=D.constructor._properties;x=x.propertyEffects;L=L.instanceProps;for(var S in x)if(!(D[S]||L&&L[S]))for(var Q=x[S],J=0;J<Q.length;J++){var Z=Q[J].info.part;if(!Z.signature||!Z.signature.static){console.warn("Property '"+S+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
L8f=function(x,L){for(var D;L;)if(D=L.__dataHost?L:L.__templatizeInstance)if(D.__dataHost!=x)L=D.__dataHost;else return D;else L=(0,_.bv)(L).parentNode;return null};
cv=function(x){return x.localName==="slot"};
DCh=function(){for(var x=nh.prototype,L="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),D={},S=0;S<L.length;D={method$jscomp$33:void 0},S++)D.method$jscomp$33=L[S],x[D.method$jscomp$33]=function(Q){return function(){return this.node[Q.method$jscomp$33].apply(this.node,arguments)}}(D)};
Sc3=function(x,L){for(var D={},S=0;S<L.length;D={name$jscomp$448:void 0},S++)D.name$jscomp$448=L[S],Object.defineProperty(x,D.name$jscomp$448,{get:function(Q){return function(){return this.node[Q.name$jscomp$448]}}(D),
configurable:!0})};
Qas=function(){for(var x=nh.prototype,L=["textContent","innerHTML","className"],D={},S=0;S<L.length;D={name$jscomp$449:void 0},S++)D.name$jscomp$449=L[S],Object.defineProperty(x,D.name$jscomp$449,{get:function(Q){return function(){return this.node[Q.name$jscomp$449]}}(D),
set:function(Q){return function(J){this.node[Q.name$jscomp$449]=J}}(D),
configurable:!0})};
Jop=function(){t6=document.documentElement.getAttribute("dir");t6=document.documentElement.getAttribute("dir");for(var x=0;x<x7.length;x++){var L=x7[x];L.__autoDirOptOut||L.setAttribute("dir",t6)}};
yo3=function(){LL=!0;requestAnimationFrame(function(){LL=!1;K8w(Otf);setTimeout(function(){for(var x=0,L=DR.length;x<L;x++)Zt4(DR.shift())})})};
K8w=function(x){for(;x.length;)Zt4(x.shift())};
Zt4=function(x){var L=x[0],D=x[1];x=x[2];try{D.apply(L,x)}catch(S){setTimeout(function(){throw S;})}};
_.IVw=function(x,L,D){LL||yo3();Otf.push([x,L,D])};
_.So=function(x,L,D){LL||yo3();DR.push([x,L,D])};
dCn=function(x,L){L=L===void 0?!1:L;if(!ElG||!M9N||!ElG.handlesDynamicScoping)return null;var D=M9N.ScopingShim;if(!D)return null;var S=D.scopeForNode(x),Q=(0,_.bv)(x).getRootNode(),J=function(Z){if((0,_.bv)(Z).getRootNode()===Q){var y=Array.from(ElG.nativeMethods.querySelectorAll.call(Z,"*"));y.push(Z);for(Z=0;Z<y.length;Z++){var E=y[Z];if((0,_.bv)(E).getRootNode()===Q){var P=D.currentScopeForNode(E);P!==S&&(P!==""&&D.unscopeNode(E,P),D.scopeNode(E,S))}}}};
J(x);return L?(L=new MutationObserver(function(Z){for(var y=0;y<Z.length;y++)for(var E=Z[y],P=0;P<E.addedNodes.length;P++){var v=E.addedNodes[P];v.nodeType===Node.ELEMENT_NODE&&J(v)}}),L.observe(x,{childList:!0,
subtree:!0}),L):null};
PWp=function(){document.body.removeAttribute("unresolved")};
Ht0=function(x){var L=x=x.replace(jap,"").replace(vl0,""),D=new V9G;D.start=0;D.end=L.length;for(var S=D,Q=0,J=L.length;Q<J;Q++)if(L[Q]==="{"){S.rules||(S.rules=[]);var Z=S,y=Z.rules[Z.rules.length-1]||null;S=new V9G;S.start=Q+1;S.parent=Z;S.previous=y;Z.rules.push(S)}else L[Q]==="}"&&(S.end=Q+1,S=S.parent||D);return hsw(D,x)};
hsw=function(x,L){var D=L.substring(x.start,x.end-1);x.parsedCssText=x.cssText=D.trim();x.parent&&(D=L.substring(x.previous?x.previous.end:x.parent.start,x.start-1),D=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(D),D=D.replace(uq3," "),D=D.substring(D.lastIndexOf(";")+1),D=x.parsedSelector=x.selector=D.trim(),x.atRule=D.indexOf("@")===0,x.atRule?D.indexOf("@media")===0?x.type=4:D.match(glh)&&(x.type=7,x.keyframesName=x.selector.split(uq3).pop()):D.indexOf("--")===
0?x.type=1E3:x.type=1);if(D=x.rules)for(var S=0,Q=D.length,J=void 0;S<Q&&(J=D[S]);S++)hsw(J,L);return x};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(x){return x.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var L=arguments[1],D=6-L.length;D--;)L="0"+L;return"\\"+L})};
kCs=function(x,L,D){D=D===void 0?"":D;var S="";if(x.cssText||x.rules){var Q=x.rules;if(Q&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(Q))for(var J=0,Z=Q.length,y=void 0;J<Z&&(y=Q[J]);J++)S=kCs(y,L,S);else L?L=x.cssText:(L=x.cssText,L=L.replace(pMs,"").replace(mCf,""),L=L.replace(btc,"").replace(Ycp,"")),(S=L.trim())&&(S="  "+S+"\n")}S&&(x.selector&&(D+=x.selector+" {\n"),D+=S,x.selector&&(D+="}\n\n"));return D};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(x){x=x[0];return!!x&&!!x.selector&&x.selector.indexOf("--")===0};
saG=function(x){if(x=F80[x])x._applyShimCurrentVersion=x._applyShimCurrentVersion||0,x._applyShimValidatingVersion=x._applyShimValidatingVersion||0,x._applyShimNextVersion=(x._applyShimNextVersion||0)+1};
TT0=function(x){return x._applyShimCurrentVersion===x._applyShimNextVersion};
Rss=function(x){x._applyShimValidatingVersion=x._applyShimNextVersion;x._validating||(x._validating=!0,esb.then(function(){x._applyShimCurrentVersion=x._applyShimNextVersion;x._validating=!1}))};
CWG=function(x){if(!x)return"";typeof x==="string"&&(x=Ht0(x));return kCs(x,GCf)};
lVw=function(x){!x.__cssRules&&x.textContent&&(x.__cssRules=Ht0(x.textContent));return x.__cssRules||null};
wMc=function(x,L,D,S){if(x){var Q=!1,J=x.type;if(S&&J===4){var Z=x.selector.match(UC3);Z&&(window.matchMedia(Z[1]).matches||(Q=!0))}J===1?L(x):D&&J===7?D(x):J===1E3&&(Q=!0);if((x=x.rules)&&!Q)for(Q=0,J=x.length,Z=void 0;Q<J&&(Z=x[Q]);Q++)wMc(Z,L,D,S)}};
BT3=function(x,L){var D=x.indexOf("var(");if(D===-1)return L(x,"","","");a:{var S=0;var Q=D+3;for(var J=x.length;Q<J;Q++)if(x[Q]==="(")S++;else if(x[Q]===")"&&--S===0)break a;Q=-1}S=x.substring(D+4,Q);D=x.substring(0,D);x=BT3(x.substring(Q+1),L);J=S.indexOf(",");if(J===-1)return L(D,S.trim(),"",x);Q=S.substring(0,J).trim();S=S.substring(J+1).trim();return L(D,Q,S,x)};
W80=function(x){if(Qz!==void 0)return Qz;if(x.__cssBuild===void 0){var L=x.getAttribute("css-build");if(L)x.__cssBuild=L;else{a:{L=x.localName==="template"?x.content.firstChild:x.firstChild;if(L instanceof Comment&&(L=L.textContent.trim().split(":"),L[0]==="css-build")){L=L[1];break a}L=""}if(L!==""){var D=x.localName==="template"?x.content.firstChild:x.firstChild;D.parentNode.removeChild(D)}x.__cssBuild=L}}return x.__cssBuild||""};
Ao3=function(x,L,D,S){for(var Q=L._noAccessors,J=Object.getOwnPropertyNames(L),Z=0;Z<J.length;Z++){var y=J[Z];if(!(y in S))if(Q)x[y]=L[y];else{var E=Object.getOwnPropertyDescriptor(L,y);E&&(E.configurable=!0,Object.defineProperty(x,y,E))}}for(var P in qc0)L[P]&&(D[P]=D[P]||[],D[P].push(L[P]))};
$CG=function(x,L,D){L=L||[];for(var S=x.length-1;S>=0;S--){var Q=x[S];Q?Array.isArray(Q)?$CG(Q,L):L.indexOf(Q)<0&&(!D||D.indexOf(Q)<0)&&L.unshift(Q):console.warn("behavior is null, check for missing or 404 import")}return L};
ro0=function(x,L){for(var D in L){var S=x[D],Q=L[D];x[D]=!("value"in Q)&&S&&"value"in S?Object.assign({value:S.value},Q):Q}};
fVO=function(x,L,D){var S={},Q=function(){return L.apply(this,arguments)||this};
_.p(Q,L);Q._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(Z)for(var E=0,P;E<Z.length;E++)P=Z[E],P.properties&&this.createProperties(P.properties),P.observers&&this.createObservers(P.observers,P.properties);x.properties&&this.createProperties(x.properties);x.observers&&this.createObservers(x.observers,x.properties);this._prepareTemplate()}else L._finalizeClass.call(this)};
Q.prototype.created=function(){L.prototype.created.call(this);var E=S.created;if(E)for(var P=0;P<E.length;P++)E[P].call(this)};
Q.prototype._registered=function(){var E=Q.prototype;if(!E.hasOwnProperty("__hasRegisterFinished")){E.__hasRegisterFinished=!0;L.prototype._registered.call(this);iv&&y(E);E=Object.getPrototypeOf(this);var P=S.beforeRegister;if(P)for(var v=0;v<P.length;v++)P[v].call(E);if(P=S.registered)for(v=0;v<P.length;v++)P[v].call(E)}};
Q.prototype._applyListeners=function(){L.prototype._applyListeners.call(this);var E=S.listeners;if(E)for(var P=0;P<E.length;P++){var v=E[P];if(v)for(var V in v)this._addMethodEventListenerToNode(this,V,v[V])}};
Q.prototype._ensureAttributes=function(){var E=S.hostAttributes;if(E)for(var P=E.length-1;P>=0;P--){var v=E[P],V;for(V in v)this._ensureAttribute(V,v[V])}L.prototype._ensureAttributes.call(this)};
Q.prototype.ready=function(){L.prototype.ready.call(this);var E=S.ready;if(E)for(var P=0;P<E.length;P++)E[P].call(this)};
Q.prototype.attached=function(){L.prototype.attached.call(this);var E=S.attached;if(E)for(var P=0;P<E.length;P++)E[P].call(this)};
Q.prototype.detached=function(){L.prototype.detached.call(this);var E=S.detached;if(E)for(var P=0;P<E.length;P++)E[P].call(this)};
Q.prototype.attributeChanged=function(E,P,v){L.prototype.attributeChanged.call(this);var V=S.attributeChanged;if(V)for(var h=0;h<V.length;h++)V[h].call(this,E,P,v)};
_.J3.Object.defineProperties(Q,{properties:{configurable:!0,enumerable:!0,get:function(){var E={};if(Z)for(var P=0;P<Z.length;P++)ro0(E,Z[P].properties);ro0(E,x.properties);return E}},
observers:{configurable:!0,enumerable:!0,get:function(){var E=[];if(Z)for(var P=0,v;P<Z.length;P++)v=Z[P],v.observers&&(E=E.concat(v.observers));x.observers&&(E=E.concat(x.observers));return E}}});
if(D){Array.isArray(D)||(D=[D]);var J=L.prototype.behaviors;var Z=$CG(D,null,J);Q.prototype.behaviors=J?J.concat(D):Z}var y=function(E){if(Z)for(var P=Z,v=0;v<P.length;v++)Ao3(E,P[v],S,NT3);Ao3(E,x,S,its)};
iv||y(Q.prototype);Q.generatedFrom=x;return Q};
XMG=function(x){var L=typeof x!=="string"?x:{is:x,notifyObserversOnUndefined:!0};L.fastInit===void 0&&(L.fastInit=!0);return function(D){if(!L.disableInheritanceCheck&&Object.getPrototypeOf(D.prototype).constructor!==_.KL)throw Error("Sd");var S=D.prototype;S.is=L.is;LIn(S,"created",function(){this.hostElement=this;this.polymerController=this});
olw(S,D,L.fastInit);L.notifyObserversOnUndefined&&(S._overrideLegacyUndefined=!0);if(aVO)for(var Q=_.O(Object.getOwnPropertyNames(S)),J=Q.next();!J.done;J=Q.next()){J=J.value;var Z=Object.getOwnPropertyDescriptor(S,J);Z.enumerable===!1&&(Z.enumerable=!0,Object.defineProperty(S,J,Z))}if("template"in D)var y=function(){return D.template};
else L.template!==void 0&&(y=L.template);if(y!==void 0){var E;Object.defineProperty(S,"_template",{get:function(){E===void 0&&(E=y());return E},
set:function(P){E=P},
configurable:!0,enumerable:!0})}Polymer(S);D[zsp]=S}};
co4=function(x){x=x===void 0?{}:x;x.fastInit===void 0&&(x.fastInit=!0);return function(L){if(!x.disableInheritanceCheck&&Object.getPrototypeOf(L.prototype).constructor!==OK)throw Error("Td");olw(L.prototype,L,x.fastInit)}};
olw=function(x,L,D){D=D===void 0?!1:D;nlp(L);D?LIn(x,"created",function(){this.disableEnforceFastDefaultValuesCheck||t9h(L,this)}):LIn(x,"ready",function(){for(var S={},Q=_.O(Dk4(this.behaviors)),J=Q.next();!J.done;J=Q.next())J=J.value,J.properties&&Object.assign(S,x_n(this,J.properties));
Object.assign(S,x_n(this,this.properties));t9h(L,this);Q=_.O(Object.keys(S));for(J=Q.next();!J.done;J=Q.next())J=J.value,this[J]=S[J]})};
t9h=function(x,L){if(aVO){x=new x;for(var D=_.O(Object.getOwnPropertyNames(x)),S=D.next();!S.done;S=D.next())S=S.value,L[S]=x[S];for(D=L;D&&D!==Object.prototype;D=Object.getPrototypeOf(D)){S=_.O(Object.getOwnPropertyNames(D));for(var Q=S.next();!Q.done;Q=S.next())Q=Q.value,x.hasOwnProperty(Q)||Object.defineProperty(x,Q,Le0(L,Q))}}else x.apply(L)};
Le0=function(x,L){return{get:function(){var D=x[L];return D instanceof Function?D.bind(x):D},
set:function(D){x[L]=D}}};
x_n=function(x,L){if(!L)return{};for(var D={},S=_.O(Object.keys(L)),Q=S.next();!Q.done;Q=S.next())if(Q=Q.value,!L[Q].readOnly){var J=x[Q];J!==void 0&&(D[Q]=J)}return D};
nlp=function(x){var L=new x;x=x.prototype.properties||{};for(var D=_.O(Object.keys(x)),S=D.next();!S.done;S=D.next())if(S=S.value,L.hasOwnProperty(S)){var Q=x[S];typeof Q==="function"&&(x[S]=Q={type:Q});L[S]!=null&&Q.type===Object&&(Q.type=D_w(L[S].constructor))}};
D_w=function(x){for(var L=_.O(S1O),D=L.next();!D.done;D=L.next())if(D=D.value,x===D)return D;return Object};
Qwf=function(x){return function(L,D){L.behaviors=L.behaviors||[];L.behaviors.push(x||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",L,D).prototype:void 0));Object.defineProperty(L,D,{get:function(){return this},
enumerable:!0,configurable:!0})}};
JRp=function(x){x=x===void 0?{}:x;return function(L,D){L.properties=L.properties||{};x.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?x.type=D_w(Reflect.getMetadata("design:type",L,D)):x.type=String);var S=x,Q=L.properties[D];L.properties[D]=Q?Object.assign({},Q,S):S}};
Ken=function(x){return function(L,D){L.listeners=L.listeners||{};L.listeners[x]=D}};
OW3=function(){var x=_.Ne.apply(0,arguments);if(x.length===0)throw Error("Ud");return function(L,D){L.observers=L.observers||[];L.observers.push(D+"("+x.join(",")+")")}};
ZWc=function(){var x=_.Ne.apply(0,arguments);return function(L,D,S){var Q=Object.getOwnPropertyDescriptor(L,D).get,J="__compute__"+D;Object.defineProperty(L,J,{value:Q,enumerable:!0});L.properties=L.properties||{};Q=L.properties[D];Q||(Q={},L.properties[D]=Q);Q.computed=J+"("+x.join(",")+")";S.get=void 0}};
_.ZR=function(x,L,D){_.Te.call(this);this.JSC$11318_id_=null;this.usingListeners_=!1;this.JSC$11318_listener_=x;this.handler_=D;this.JSC$11318_win_=L||window;this.callback_=(0,_.e1)(this.JSC$11320_doAction_,this)};
yz=function(x){this.range_=x};
Ic=function(x){this.range_=x};
dr=function(x,L,D){_.Te.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=x;this.scrollTimer_=new _.EK(50);this.JSC$11397_eventHandler_=new _.Mu(this);this.scrollDelta_=new _.Wn;this.containerIsActuallyContent_=x.tagName==="BODY"||x.tagName==="HTML";this.containerBounds_=yRp(x);this.containerIsActuallyContent_&&(x=_.YR(),this.containerBounds_.height=x.height,this.containerBounds_.width=x.width);this.margin_=L||0;if(L){if(L=this.containerBounds_.clone(),x=this.margin_){var S=
Math.min(x,L.height*.25);L.top+=S;L.height-=2*S;x=Math.min(x,L.width*.25);L.left+=x;L.width-=2*x}}else L=this.containerBounds_;this.scrollBounds_=L;D||this.JSC$11397_eventHandler_.listen(_.Ac(this.containerNode_),"mousemove",this.JSC$11399_onMouseMove);this.JSC$11397_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$11399_onTick_)};
_.Po=function(x){this.mechanism=x};
jo=function(x,L){this.JSC$11495_key_=x;this.JSC$11495_value_=L};
ExG=function(x){if(x>=55296&&x<=57343||x>1114111)return"\ufffd";x in I9f&&(x=I9f[x]);var L="";x>65535&&(x-=65536,L+=String.fromCharCode(x>>>10&1023|55296),x=56320|x&1023);return L+=String.fromCharCode(x)};
MSO=function(x,L){return x<L?1:-1};
PO3=function(){return function(x){return x.charAt(1)==="#"?x.charAt(2)==="X"||x.charAt(2)==="x"?ExG(parseInt(x.substr(3),16)):ExG(parseInt(x.substr(2),10)):d_O[x.slice(1,-1)]}};
VSh=function(x){return x.slice(1,x.length-1).trim().replace(jwb,function(L){return vxs[L]||" "})};
vo=function(x){return x===32||x===9};
Vz=function(x,L){return L<x.length?x.charCodeAt(L):-1};
hSp=function(x){for(;x;){if(x._lastLineBlank)return!0;var L=x.type;if(L==="list"||L==="item")x=x._lastChild;else break}return!1};
h3=function(x){if(uCc.test(x)){var L=1,D=0,S=0;for(x[D]=="|"&&D++;D<x.length;){switch(x[D]){case "|":S=1;break;case " ":break;case "\t":break;default:S&&(S=0,L++)}D++}return gx3.test(x)?-L:L}return 0};
kmb=function(x){return x=="table"||x=="row"||x=="cell"};
pc0=function(){return new Ho("document",[[1,1],[0,0]])};
m_G=function(){};
uz=function(){var x={safe:!1};x=x||{};x.softbreak=x.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=x};
TGh=function(x,L){var D="";if(x)if(x=x.toLowerCase(),x===" "||bW4.test(x))D="space";else if(Y10.test(x))D="esc";else if(x.length==1){if(!L||Fes.test(x))D=x}else D=swf.test(x)?x.replace("arrow",""):x=="multiply"?"*":x;return D};
COb=function(x,L){var D=x.hasModifiers;if(L.key)D=TGh(L.key,D);else if(L.detail&&L.detail.key)D=TGh(L.detail.key,D);else{D=L.keyIdentifier;var S="";D&&(D in eSb?S=eSb[D]:RSn.test(D)?(D=parseInt(D.replace("U+","0x"),16),S=String.fromCharCode(D).toLowerCase()):S=D.toLowerCase());(D=S)||(D=L.keyCode,S="",Number(D)&&(D>=65&&D<=90?S=String.fromCharCode(32+D):D>=112&&D<=123?S="f"+(D-112+1):D>=48&&D<=57?S=String(D-48):D>=96&&D<=105?S=String(D-96):S=Gmb[D]),D=S);D=D||""}return D===x.key&&(!x.hasModifiers||
!!L.shiftKey===!!x.shiftKey&&!!L.ctrlKey===!!x.ctrlKey&&!!L.altKey===!!x.altKey&&!!L.metaKey===!!x.metaKey)};
U_s=function(x){return x.length===1?{combo:x,key:x,event:"keydown"}:x.split("+").reduce(function(L,D){var S=D.split(":");D=S[0];S=S[1];D in l9f?(L[l9f[D]]=!0,L.hasModifiers=!0):(L.key=D,L.event=S||"keydown");return L},{combo:x.split(":").shift()})};
wcn=function(x){return x.trim().split(" ").map(function(L){return U_s(L)})};
BGO=function(x,L){if(x&&x.fn){var D=x.fn;x.fn=function(){try{D.apply(this,arguments)}catch(S){if(S instanceof gr)console.warn("Argument '"+S.arg+"'"+(L?" for method '"+L+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw S;}}}return x};
Wep=function(){var x=_.Ne.apply(0,arguments);return x.length===0?function(L){return L}:x.length===1?x[0]:x.reduce(function(L,D){return function(){return L(D.apply(null,_.lP(_.Ne.apply(0,arguments))))}})};
q10=function(){var x=_.Ne.apply(0,arguments);return function(L){return function(D,S){D=L(D,S);var Q=function(){throw Error("Ee");},J={getState:D.getState,
dispatch:function(Z){return Q.apply(null,[Z].concat(_.lP(_.Ne.apply(1,arguments))))}};
S=x.map(function(Z){return Z(J)});
Q=Wep.apply(null,_.lP(S))(D.dispatch);return Object.assign({},D,{dispatch:Q})}}};
rRG=function(x){Object.keys(x).forEach(function(L){var D=x[L];if(typeof D(void 0,{type:ARO})==="undefined")throw Error("Fe`"+L);if(typeof D(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+$_O()})==="undefined")throw Error("Ge`"+L+"`"+ARO);})};
k7=function(x){for(var L=Object.keys(x),D={},S=0;S<L.length;S++){var Q=L[S];typeof x[Q]==="function"&&(D[Q]=x[Q])}var J=Object.keys(D);try{rRG(D)}catch(y){var Z=y}return function(y,E){y=y===void 0?{}:y;if(Z)throw Z;for(var P=!1,v={},V=0;V<J.length;V++){var h=J[V],H=y[h],k=(0,D[h])(H,E);if(typeof k==="undefined")throw y=E&&E.type,Error("He`"+(y?'"'+String(y)+'"':"(unknown type)")+"`"+h);v[h]=k;P=P||k!==H}return(P=P||J.length!==Object.keys(y).length)?v:y}};
NGw=function(x,L,D){function S(){if(v)throw Error("Ie");return y}
function Q(H){if(typeof H!=="function")throw Error("Je`"+typeof H);if(v)throw Error("Ke");var k=!0;P===E&&(P=E.slice());P.push(H);return function(){if(k){if(v)throw Error("Le");k=!1;P===E&&(P=E.slice());var T=P.indexOf(H);P.splice(T,1);E=null}}}
function J(H){if(typeof H!=="object"||H===null)var k=!1;else{for(k=H;Object.getPrototypeOf(k)!==null;)k=Object.getPrototypeOf(k);k=Object.getPrototypeOf(H)===k}if(!k)throw Error("Me`"+typeof H);if(typeof H.type==="undefined")throw Error("Ne");if(v)throw Error("Oe");try{v=!0,y=Z(y,H)}finally{v=!1}k=E=P;for(var T=0;T<k.length;T++)(0,k[T])();return H}
if(typeof L==="function"&&typeof D==="function"||typeof D==="function"&&typeof arguments[3]==="function")throw Error("Pe");typeof L==="function"&&typeof D==="undefined"&&(D=L,L=void 0);if(typeof D!=="undefined"){if(typeof D!=="function")throw Error("Qe`"+typeof D);return D(NGw)(x,L)}if(typeof x!=="function")throw Error("Re`"+typeof x);var Z=x,y=L,E=[],P=E,v=!1;J({type:ARO});var V={},h=(V.dispatch=J,V.subscribe=Q,V.getState=S,V.replaceReducer=function(H){if(typeof H!=="function")throw Error("Se`"+
typeof H);Z=H;J({type:iWc});return h},V[f9G]=function(){var H={};
return H.subscribe=function(k){function T(){k.next&&k.next(S())}
if(typeof k!=="object"||k===null)throw new TypeError("Te`"+typeof k);T();return{unsubscribe:Q(T)}},H[f9G]=function(){return this},H},V);
return h};
oxh=function(x){function L(){Q&&(Q=!1,x());J&&S()}
function D(){requestAnimationFrame(L)}
function S(){var y=Date.now();if(Q){if(y-Z<2)return;J=!0}else Q=!0,J=!1,setTimeout(D,20);Z=y}
var Q=!1,J=!1,Z=0;return S};
pL=function(x){return typeof x==="number"?x:parseFloat(x)||0};
a90=function(x){return _.Ne.apply(1,arguments).reduce(function(L,D){return L+pL(x["border-"+D+"-width"])},0)};
_.m=function(x,L){L=Xs(aN(L));x.innerHTML=L};
cRN=function(x){var L=zSf;L||(L=XcO(),L=zSf=_.wk.transpose(L));L=L[x];return typeof L==="string"?L:_.mz(x)};
nxf=function(x){x=String(x).toLowerCase();var L=XcO()[x];return typeof L==="string"?L:_.bz(x)};
tSf=function(x){x=x.toLowerCase();x=XcO()[x];return typeof x==="string"?x:null};
XcO=function(){if(!xoc){for(var x=Object.assign({},Lsh),L=_.O(Dof),D=L.next();!D.done;D=L.next())D=D.value,x[D.toLowerCase()]=D;xoc=x}return xoc};
Jms=function(x,L){var D=window.customElements;return D&&D.get(x)||Sxf[x]===!0?2:L.name==="HTMLUnknownElement"?1:L.name==="HTMLElement"&&Q2G.test(x)?3:0};
Zrc=function(x,L){switch(L){case "innerHTML":return KsN(x)===1?2:null;case "textContent":return x=KsN(x),x===1||x===6?1:null;default:var D,S;return(S=(D=Ors[x.localName])==null?void 0:D[L])!=null?S:null}};
KsN=function(x){var L=x.localName,D=Jms(L,x.constructor);switch(D){case 0:case 1:return ymf(L,x);case 3:case 2:return 1;default:_.Nh(D,"got an unknown element classification")}};
ymf=function(x,L){var D=Object.hasOwnProperty.call(I7f,x)?I7f[x]:null;return D!==null?D:Object.hasOwnProperty.call(E0h,x)&&L instanceof SVGElement?E0h[x]:null};
Mun=function(x,L){return L};
PJO=function(x){return(x=x.split(doN,2))?{url:x[0],metadata:x[1]}:null};
v0p=function(x){var L=String(x.url).replace(j24,encodeURIComponent);if(x=x.metadata){j24.lastIndex=0;if(j24.test(x))return null;L+=" "+x}return L};
uNN=function(x){function L(P){var v=P.localName;if(!P.getAttribute("is")&&Jms(v,P.constructor)===2){var V;return(V=E)!=null?V:E=document.createElement("polyresinuncustomized")}(P=y[v])||(P=y[v]=document.createElement(v));return P}
var D=x.reportHandler||void 0,S=x.safeTypesBridge||VuN,Q=/^$/;if(x=x.allowedIdentifierPrefixes){x=_.O(x);for(var J=x.next();!J.done;J=x.next())Q=new RegExp(Q.source+"|^"+_.hQs(J.value))}D&&D(!1,"initResin",null);var Z=Hrb(Q,S,D),y={},E=null;return function(P,v,V){var h=P.nodeType;if(h!==Node.ELEMENT_NODE){if(h===Node.TEXT_NODE){v=P.parentElement;V=!v;if(v&&v.nodeType===Node.ELEMENT_NODE){h=v.localName;var H=Jms(h,v.constructor);switch(H){case 0:case 1:v=ymf(h,v);V=v===1||v===6;break;case 3:case 2:V=
!0;break;default:_.Nh(H,"got an unknown element classification")}}if(V)return function(U){return""+S(U,"STRING",U)}}return function(U){if(!U&&U!==document.all)return U;
D&&D(!0,"Failed to sanitize "+(P.parentElement&&P.parentElement.nodeName)+" #text node to value "+U,P.parentElement);return Y7}}var k=P.localName;
h=L(P);var T=null;switch(V){case "attribute":if(nxf(v)in h)break;return function(U){return U};
case "property":if(v in h){T=Zrc(h,v);break}if((H=tSf(v))&&H in h)break;return function(U){return U};
default:_.Nh(V,"got an unknown resin type, expected either 'property' or 'attribute'")}var G=V==="attribute"?v.toLowerCase():cRN(v);T||(T=pvf(k,G,function(U){var l=P.getAttribute(U);return!l||/[\[\{]/.test(U)?null:l}));
return function(U){var l=FY,X=null;if(!U&&U!==document.all)return U;if(T!=null){var f=Z[T],N=f.safeType;X=f.safeReplacement;N&&(l=S(U,N,FY));l===FY&&(f.filterString?(l=String(S(U,"STRING",U)),l=f.filterString(k,G,l)):f.filterRaw&&(l=f.filterRaw(k,G,U,P)),l===X&&(l=FY))}l===FY&&(l=X||Y7,D&&D(!0,"Failed to sanitize attribute of <"+k+">: <"+k+" "+G+'="'+U+'">',P));return l}}};
Hrb=function(x,L,D){return[,{filterRaw:function(S,Q,J){return J},
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:g0h,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:g0h,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:Y7,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:kpf,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(S,Q,J){J=
String(J).toLowerCase();return YUb(S,Q,J)?J:Y7},
safeReplacement:Y7,safeType:void 0},,{filterRaw:void 0,filterString:function(S,Q,J){return x.test(J)?J:Y7},
safeReplacement:Y7,safeType:"CONSTANT"},{filterRaw:function(S,Q,J,Z){if(typeof J==="string")var y=(y=J.match(pZw))?y.map(PJO).filter(Boolean):[];else if(Array.isArray(J))y=J;else return g0h;var E=y;y=[];var P=[],v={};if(Array.isArray(E))for(var V=0,h=E.length;V<h;++V){var H=E[V],k=H&&H.url;if(k){var T=L(k,"URL",v);if(T){var G=T!==v;(G?y:P).push({url:G?T:k,metadata:H.metadata})}}}else P.push(E);E=P.length?JSON.stringify(P):null;P=FY;if(y.length){if(!Array.isArray(y))throw Error();P=y.map(v0p).filter(Boolean).join(" , ")||
FY}E&&D&&D(!0,"Failed to sanitize attribute value of <"+S+">: <"+S+" "+Q+'="'+J+'">: '+E,Z);return P===FY?g0h:P},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
mon=function(x){var L=uNN(x);return function(D,S,Q,J){return J||J===document.all?L(D,S,Q)(J):J}};
sK=function(x,L){function D(){function Q(y,E,P){for(E=Reflect.getMetadata("parameters",y)||[];E.length<=P;)E.push(null);E[P]=E[P]||[];E[P].push(Z);Reflect.defineMetadata(E,y);return y}
var J=_.Ne.apply(0,arguments);if(this instanceof D)return S.apply(this,J),this;var Z=new (Function.prototype.bind.apply(D,[null].concat(_.lP(J))));Q.annotation=Z;return Q}
var S=brO(L);D.prototype.toString=function(){return"@"+x};
return D.annotationCls=D};
brO=function(x){return function(){var L=_.Ne.apply(0,arguments),D=this;x.forEach(function(S,Q){Q=L[Q];if(Array.isArray(S))D[S[0]]=Q&&Q!==void 0?Q:S[1];else for(var J in S)D[J]=Q&&Q[J]!==void 0?Q[J]:S[J]})}};
Yx0=function(x){return x!==void 0&&x!==null};
T0=function(x){if(typeof x==="string")return x;if(x===void 0||x===null)return""+x;if(x.overriddenName)return x.overriddenName;if(x.name)return x.name;x=x.toString();var L=x.indexOf("\n");return L===-1?x:x.substring(0,L)};
Fsh=function(x){x.__forward_ref__=Fsh;x.toString=function(){return T0(this())};
return x};
eo=function(x){return typeof x==="function"&&x.hasOwnProperty("__forward_ref__")&&x.__forward_ref__===Fsh?x():x};
s2w=function(x){return x?x.map(function(L){return new (Function.prototype.bind.apply(L.type.annotationCls,[null].concat(_.lP(L.args?L.args:[]))))}):[]};
Tfn=function(x){for(var L=[],D=0;D<x.length;++D){if(L.indexOf(x[D])>-1){L.push(x[D]);break}L.push(x[D])}return L};
eQb=function(x){return x.length>1?" ("+Tfn(x.slice().reverse()).map(function(L){return T0(L.token)}).join(" -> ")+")":""};
GpN=function(x,L,D,S){if(S){var Q=Error("$e``"+(S instanceof Error?S.message:S));Q.ngOriginalError=S}else Q=Error();Q.addKey=RQ0;Q.keys=[L];Q.injectors=[x];Q.constructResolvingMessage=D;Q.message=Q.constructResolvingMessage();Q.ngOriginalError=S;return Q};
RQ0=function(x,L){this.injectors.push(x);this.keys.push(L);this.message=this.constructResolvingMessage()};
CJG=function(x,L){return GpN(x,L,function(){return"No provider for "+T0(this.keys[0].token)+"!"+eQb(this.keys)})};
l70=function(x,L){return GpN(x,L,function(){return"Cannot instantiate cyclic dependency!"+eQb(this.keys)})};
Uof=function(x,L,D){return GpN(x,D,function(){var S=T0(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+S+"!"+eQb(this.keys)+"."},L)};
wZn=function(x,L){for(var D=[],S=0,Q=L.length;S<Q;S++){var J=L[S];J&&J.length!=0?D.push(J.map(T0).join(" ")):D.push("?")}return Error("df`"+T0(x)+"`"+D.join(", ")+"`"+T0(x))};
NfG=function(x){var L=void 0,D=void 0;if(x&&x.useClass!==void 0){L=x.useClass;var S=eo(x.useClass);var Q=Bff.factory(S);S=Wsc(S)}else x&&x.useExisting!==void 0?(Q=function(J){return J},S=[qxh(Rc.get(eo(x.useExisting)))]):x&&x.useFactory!==void 0?(Q=x.useFactory,S=Am3(x.useFactory,x.deps)):(D=x.useValue,Q=function(){return x.useValue},S=$o3);
return new rmO(Q,S,L,D)};
f7s=function(x){return new ir0(Rc.get(eo(x.provide)),[NfG(x)],x.multi)};
a73=function(x){x=o0G(x,[]).map(f7s);for(var L=new Map,D=0;D<x.length;D++){var S=x[D],Q=L.get(S.key.id);if(Q){if(S.multiProvider!==Q.multiProvider)throw Error("ff`"+Q+"`"+S);if(S.multiProvider)for(var J=0;J<S.resolvedFactories.length;J++)Q.resolvedFactories.push(S.resolvedFactories[J]);else L.set(S.key.id,S)}else Q=void 0,S.multiProvider?Q=new ir0(S.key,S.resolvedFactories.slice(),S.multiProvider):Q=S,L.set(S.key.id,Q)}return Array.from(L.values())};
o0G=function(x,L){x.forEach(function(D){if(D instanceof zQc)L.push({provide:D,useClass:D});else if(D&&typeof D=="object"&&D.provide!==void 0)L.push(D);else if(D instanceof Array)o0G(D,L);else throw Error("cf`"+D);});
return L};
Am3=function(x,L){if(L){var D=L.map(function(S){return[S]});
return L.map(function(S){return XZs(x,S,D)})}return Wsc(x)};
Wsc=function(x){var L=Bff.parameters(x);if(!L)return[];if(L.some(function(D){return D==null}))throw wZn(x,L);
return L.map(function(D){return XZs(x,D,L)})};
XZs=function(x,L,D){var S=null,Q=!1;if(!Array.isArray(L))return L instanceof cmN?n0s(L.token,Q,null):n0s(L,Q,null);for(var J=null,Z=0;Z<L.length;++Z){var y=L[Z];if(y instanceof zQc)S=y;else if(y instanceof cmN)S=y.token;else if(y instanceof tup)Q=!0;else if(y instanceof xlO||y instanceof Lkn)J=y}S=eo(S);if(S!=null)return n0s(S,Q,J);throw wZn(x,D);};
n0s=function(x,L,D){return new Dl0(Rc.get(eo(x)),L,D)};
SHf=function(x,L){for(var D=Array(x.providers.length),S=0;S<x.providers.length;++S){var Q=S;if(S<0||S>=x.providers.length)throw Error("ef`"+S);D[Q]=L(x.providers[S])}return D};
Qsc=function(x){return typeof x==="function"&&Bff.parameters(x).every(function(L){return!!L})};
Odp=function(x){var L=JS0;KkG.get(x)||KkG.set(x,new L);return KkG.get(x)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(x){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(x)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(x){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(x)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(x,L){var D,S;if(x.contains(L))return!0;x=_.G0(x).querySelectorAll("content,slot");for(D=0;D<x.length;++D){var Q=_.G0(x[D]).getDistributedNodes();for(S=0;S<Q.length;++S)if(Q[S].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(Q[S],L))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(x){x.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(x)&&x.preventDefault();x.targetTouches&&(x=x.targetTouches[0],Zd0=x.pageX,ySh=x.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 x=0,L=CL.length;x<L;x++)document.addEventListener(CL[x],_._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 x=0,L=CL.length;x<L;x++)document.removeEventListener(CL[x],_._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(x){var L=_.G0(x).rootTarget;x.type!=="touchmove"&&IBf!==L&&(IBf=L,Eof=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.G0(x).path));if(!Eof.length)return!0;if(x.type==="touchstart")return!1;x=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(x);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(Eof,x.deltaX,x.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(x){for(var L=[],D=x.indexOf(Mpn),S=0;S<=D;S++)if(x[S].nodeType===Node.ELEMENT_NODE){var Q=x[S],J=Q.style;J.overflow!=="scroll"&&J.overflow!=="auto"&&(J=window.getComputedStyle(Q));J.overflow!=="scroll"&&J.overflow!=="auto"||L.push(Q)}return L};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(x,L,D){if(L||D)for(var S=Math.abs(D)>=Math.abs(L),Q=0;Q<x.length;Q++){var J=x[Q];if(S?D<0?J.scrollTop>0:J.scrollTop<J.scrollHeight-J.clientHeight:L<0?J.scrollLeft>0:J.scrollLeft<J.scrollWidth-J.clientWidth)return J}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(x){var L={deltaX:x.deltaX,deltaY:x.deltaY};"deltaX"in x||("wheelDeltaX"in x&&"wheelDeltaY"in x?(L.deltaX=-x.wheelDeltaX,L.deltaY=-x.wheelDeltaY):"wheelDelta"in x?(L.deltaX=0,L.deltaY=-x.wheelDelta):"axis"in x?(L.deltaX=x.axis===1?x.detail:0,L.deltaY=x.axis===2?x.detail:0):x.targetTouches&&(x=x.targetTouches[0],L.deltaX=Zd0-x.pageX,L.deltaY=ySh-x.pageY));return L};
dl4=function(x){this.element=x;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
js4=function(x){this.element=x;this.color=window.getComputedStyle(x).color;this.wave=document.createElement("div");this.waveContainer=document.createElement("div");this.wave.style.backgroundColor=this.color;this.wave.classList.add("wave");this.waveContainer.classList.add("wave-container");_.G0(this.waveContainer).appendChild(this.wave);PBc(this)};
lz=function(x,L){for(var D in x)if(D.toLowerCase()===L.toLowerCase())return x[D]};
vob=function(x,L){for(var D in x)if(D.toLowerCase()===L.toLowerCase()){delete x[D];break}};
h7f=function(x){x=_.wk.clone(x);for(var L=0;L<Vpn.length;++L){var D=Vpn[L],S=lz(x,D);S&&(x["X-Goog-Upload-Header-"+D]=S,vob(x,D))}return x};
Hds=function(x){x=_.wk.clone(x);vob(x,"X-Goog-Upload-Status")};
goh=function(x){return uuN.some(function(L){return L.test(x)})};
bdb=function(x,L){var D;var S=(D=x.formContent)==null?void 0:D.locale;D=S==null?void 0:S.split("-")[0];S=S&&kTN.includes(S)?S:D&&kTN.includes(D)?D:void 0;S=(S!=null?S:"en").replaceAll("-","_").toLowerCase();var Q;x=((Q=x.initializationData)==null?0:Q.useNightlyRelease)?"nightly":"live";var J;return(L==null?0:(J=L.getEnableAlohaBinarySplit)==null?0:J.call(L))?_.Pn(pxf,x):_.Pn(mlf,x,S)};
ssn=function(x,L,D,S){if(YHf&&Fkb===L)return YHf;Fkb=L;var Q=bdb(x,S);return YHf=L.feedbackV2GlobalObject?Promise.resolve(L.feedbackV2GlobalObject):new Promise(function(J,Z){var y=_.pw("SCRIPT");_.QD(y,Q);y.onload=function(){L.feedbackV2GlobalObject?J(L.feedbackV2GlobalObject):Z(Error("jf"))};
y.onerror=function(){Z(Error("kf`"+Q.toString()))};
D.body.appendChild(y)})};
R70=function(x,L,D,S){if(TIh&&e7N===L)return TIh;e7N=L;var Q=bdb(x,S);return TIh=L.feedbackV2GlobalObject?Promise.resolve(L.feedbackV2GlobalObject):new Promise(function(J,Z){var y=_.pw("SCRIPT");_.QD(y,Q);y.onload=function(){L.feedbackV2GlobalObject?J(L.feedbackV2GlobalObject):Z(Error("jf"))};
y.onerror=function(){Z(Error("kf`"+Q.toString()))};
D.body.appendChild(y)})};
GTc=function(x,L,D,S,Q){Q=Q===void 0?!0:Q;var J,Z,y,E,P;return _.I(function(v){switch(v.nextAddress){case 1:return J=Date.now(),v.yield(ssn(x,D,S,L),2);case 2:Z=v.yieldResult;if(!(Q||((E=x.initializationData)==null?0:E.useNightlyRelease)||((P=x.initializationData)==null?0:P.isLocalServer))){y=Z.initializeFeedbackClient(x,J,L);v.jumpTo(3);break}return v.yield(Z.initializeFeedbackClientAsync(x,J,L),4);case 4:y=v.yieldResult;case 3:return y.initiateAloha(),v.return(y)}})};
CBc=function(x,L,D,S){var Q,J,Z;return _.I(function(y){if(y.nextAddress==1)return Q=Date.now(),y.yield(R70(x,D,S.document,L),2);if(y.nextAddress!=3)return J=y.yieldResult,y.yield(J.initializeFeedbackClientAsync(x,Q,L,S),3);Z=y.yieldResult;Z.initiateAloha();return y.return(Z)})};
lB0=function(x,L,D){var S=!0;S=S===void 0?!0:S;var Q,J,Z,y,E,P,v,V,h,H;return _.I(function(k){Q=D||_.Qb;if((J=L)==null?0:(y=(Z=J).getEnableAlohaBinarySplit)==null?0:y.call(Z)){E=Q;if(E.isFormOpened)throw P=Error("lf"),P.name="DuplicateFormError",P;E.isFormOpened=!0;x.callbacks=x.callbacks||{};v=x.callbacks.onClose||function(){};
x.callbacks.onClose=function(T){E.isFormOpened=!1;v(T)};
try{return k.return(CBc(x,L,E,Q))}catch(T){throw E.isFormOpened=!1,T;}}else{V=Q;if(V.isFormOpened)throw h=Error("lf"),h.name="DuplicateFormError",h;V.isFormOpened=!0;x.callbacks=x.callbacks||{};H=x.callbacks.onClose||function(){};
x.callbacks.onClose=function(T){V.isFormOpened=!1;H(T)};
try{return k.return(GTc(x,L,V,Q.document,S))}catch(T){throw V.isFormOpened=!1,T;}}_.Y2(k)})};
qHp=function(x,L){return _.I(function(D){return D.return(new Promise(function(S,Q){Number.isInteger(Number(x))&&Number(x)>0?(Q=Uln(L!=null?L:"")+"/aloha_form_properties?productId="+x,wx4(Q,function(J){J=J.target;var Z=null;try{var y=JSON,E=y.stringify;if(J.JSC$9800_xhr_){var P=J.JSC$9800_xhr_.responseText;P.indexOf(")]}'\n")==0&&(P=P.substring(5));var v=(0,_.UK)(P)}else v=void 0;Z=ozO(BIb,E.call(y,v))}catch(V){E=new BIb,v=Wk3(),v=_.wr(v,13,!1),v=_.wr(v,14,!0),v=_.wr(v,15,!0),v=_.wr(v,20,!1),Z=_.mR(E,
1,v)}S(Z)},"GET","",{},2E3,!0)):Q(Error("mf`"+x))}))})};
Uln=function(x){return goh(x)?x:"https://www.google.com/tools/feedback"};
NIb=function(x){x=x.match(new RegExp(ASs,"gi"))||[];x=_.O(x);for(var L=x.next();!L.done;L=x.next()){L=L.value;a:{var D=_.O($lb);for(var S=D.next();!S.done;S=D.next())if(S.value.test(L)){D=!1;break a}D=!0}if(!D)a:{D=_.O(rSh);for(S=D.next();!S.done;S=D.next())if(S.value.test(L)){D=!0;break a}D=!1}if(D)return!0}return!1};
id3=function(x,L){var D={},S=Object.keys(x);S=_.O(S);for(var Q=S.next();!Q.done;Q=S.next())Q=Q.value,D[Q]=L(Q,x[Q]);return D};
fB0=function(x){switch(x){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"}};
aBc=function(x){if(window.crypto&&window.crypto.getRandomValues)try{var L=Array(x),D=new Uint8Array(x);window.crypto.getRandomValues(D);for(var S=0;S<L.length;S++)L[S]=D[S];return L}catch(J){}L=Array(x);for(D=0;D<x;D++){S=Date.now();for(var Q=0;Q<S%23;Q++)L[D]=Math.random();L[D]=Math.floor(Math.random()*256)}if(oos)for(D=1,S=0;S<oos.length;S++)L[D%x]^=L[(D-1)%x]/4^oos.charCodeAt(S),D++;return L};
Bo=function(x){x=aBc(x);for(var L=[],D=0;D<x.length;D++)L.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(x[D]&63));return L.join("")};
z70=function(){var x=_.Qb.ytLoggingDocDocumentNonce_;x||(x=Bo(16),_.KK("ytLoggingDocDocumentNonce_",x));return x};
cSf=function(x){x&&_.Uh("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:Xx3,clientScreenNonce:x})};
no0=function(x){return _.$6("client-screen-nonce-store",{})[x===void 0?0:x]};
tpN=function(x,L){L=L===void 0?0:L;var D=_.$6("client-screen-nonce-store");D||(D={},_.Au("client-screen-nonce-store",D));D[L]=x};
xcN=function(x){x=x===void 0?0:x;return x===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+x};
LD4=function(x){return _.$6(xcN(x===void 0?0:x))};
_.qu=function(x){return(x=LD4(x===void 0?0:x))?new Wo({veType:x,youtubeData:void 0,jspbYoutubeData:void 0}):null};
Dcp=function(){var x=_.$6("csn-to-ctt-auth-info");x||(x={},_.Au("csn-to-ctt-auth-info",x));return x};
SLb=function(){return Object.values(_.$6("client-screen-nonce-store",{})).filter(function(x){return x!==void 0})};
_.A3=function(x){x=no0(x===void 0?0:x);if(!x&&!_.rO("USE_CSN_FALLBACK",!0))return null;x||(x="UNDEFINED_CSN");return x?x:null};
Jsb=function(x){for(var L=_.O(Object.values(Q40)),D=L.next();!D.done;D=L.next())if(_.A3(D.value)===x)return!0;return!1};
KDp=function(x,L,D){var S=Dcp();(D=_.A3(D))&&delete S[D];L&&(S[x]=L)};
$7=function(x){return Dcp()[x]};
_.rr=function(x,L,D,S){D=D===void 0?0:D;if(x!==no0(D)||L!==_.$6(xcN(D)))if(KDp(x,S,D),tpN(x,D),_.Au(xcN(D),L),L=function(){setTimeout(function(){cSf(x)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(L)}catch(Q){L()}else L()};
O0G=function(x,L){L=L===void 0?"":L;var D=[],S;for(S in x)if(x.hasOwnProperty(S)){var Q=L!==""?L+"."+S:S;typeof x[S]==="object"?D.push.apply(D,_.lP(O0G(x[S],Q))):D.push([Q,x[S]])}D.sort();return D};
_.iz=function(x){var L=_.Ne.apply(1,arguments);if(!Nu(x)||L.some(function(S){return!Nu(S)}))throw Error("nf");
L=_.O(L);for(var D=L.next();!D.done;D=L.next())Z0w(x,D.value)};
Z0w=function(x,L){for(var D in L)if(Nu(L[D])){if(D in x&&!Nu(x[D]))throw Error("of");D in x||(x[D]={});Z0w(x[D],L[D])}else if(yss(L[D])){if(D in x&&!yss(x[D]))throw Error("pf");D in x||(x[D]=[]);Iws(x[D],L[D])}else x[D]=L[D];return x};
Iws=function(x,L){L=_.O(L);for(var D=L.next();!D.done;D=L.next())D=D.value,Nu(D)?x.push(Z0w({},D)):yss(D)?x.push(Iws([],D)):x.push(D);return x};
Nu=function(x){return typeof x==="object"&&!Array.isArray(x)};
yss=function(x){return typeof x==="object"&&Array.isArray(x)};
MH4=function(x){for(var L=_.O(Object.entries(Etb)),D=L.next();!D.done;D=L.next())if(D=_.O(D.value),D.next(),D=D.next().value,D==="SLI_STATUS_"+x)return D;return"SLI_STATUS_UNKNOWN"};
_.fL=function(x,L,D,S){return dc3(x,L,function(){return new _.P_G(x,L,D,S)})};
_.j44=function(){return _.fL("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
vtn=function(){return _.fL("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
oc=function(){return _.fL("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
VHs=function(){return _.fL("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
hj3=function(){return _.fL("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
H0G=function(){return _.fL("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
kP0=function(x){x&&(x.dataset?x.dataset[u4N()]="true":_.KZ([_.ID(gtb)],x,"data-loaded","true".toString()))};
pOf=function(x){return x?x.dataset?x.dataset[u4N()]:x.getAttribute("data-loaded"):null};
u4N=function(){return mc0.loaded||(mc0.loaded="loaded".replace(/\-([a-z])/g,function(x,L){return L.toUpperCase()}))};
_.ac=function(x,L,D){b0s(x,L,D===void 0?null:D)};
_.FDN=function(x,L){x&&L&&(x=""+_.zN(L),(x=YLb[x])&&_.huw(x))};
b0s=function(x,L,D){D=D===void 0?null:D;var S=_.s43(typeof x==="string"?x:x.toString()),Q=document.getElementById(S),J=Q&&pOf(Q),Z=Q&&!J;J?L&&L():(L&&(J=_.My(S,L),L=""+_.zN(L),YLb[L]=J),Z||(Q=T_n(x,S,function(){pOf(Q)||(kP0(Q),_.HuN(S),_.VY(function(){_.gOn(S)},0))},D)))};
T_n=function(x,L,D,S){S=S===void 0?null:S;var Q=_.pw("SCRIPT");Q.id=L;Q.onload=function(){D&&setTimeout(D,0)};
Q.onreadystatechange=function(){switch(Q.readyState){case "loaded":case "complete":Q.onload()}};
S&&Q.setAttribute("nonce",S);_.QD(Q,typeof x==="string"?_.Cw(x):x);x=document.getElementsByTagName("head")[0]||document.body;x.insertBefore(Q,x.firstChild);return Q};
_.s43=function(x){var L=document.createElement("a");fU(L,x);return"js-"+z0(L.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
ejw=function(x){var L=_.$6("INNERTUBE_HOST_OVERRIDE");L&&(x=String(L)+String(_.XY(x)));return x};
Rj0=function(x){var L={};_.u("json_condensed_response")&&(L.prettyPrint="false");return x=A_0(x,L)};
_.co=function(x){return KH(x)?"same-origin":"include"};
_.nL=function(x){return KH(x)?"same-origin":"cors"};
t3=function(x,L,D){D=D===void 0?{}:D;x={method:L===void 0?"POST":L,mode:_.nL(x),credentials:_.co(x)};L={};for(var S=_.O(Object.keys(D)),Q=S.next();!Q.done;Q=S.next())Q=Q.value,D[Q]&&(L[Q]=D[Q]);Object.keys(L).length>0&&(x.headers=L);return x};
_.xT=function(x,L){L=L===void 0?{}:L;return"service:"+x+"/"+Object.keys(L).sort().map(function(D){return D+":"+L[D]}).join("/")};
GPO=function(x){var L,D,S,Q;x=(L=_.g(x,_.L6))==null?void 0:(D=L.watchEndpointSupportedOnesieConfig)==null?void 0:(S=D.html5PlaybackOnesieConfig)==null?void 0:(Q=S.commonConfig)==null?void 0:Q.url;if(!x)return[];L=new _.Dg(x);return L.JSC$10036_domain_?["https://"+L.JSC$10036_domain_+"/generate_204"]:[]};
_.UcG=function(){return C_p()||oNf()||lw4&&rE("version/")?!0:_.$6("EOM_VISITOR_DATA")?!1:!0};
wO4=function(x){var L=x.docid||x.video_id||x.videoId||x.id;if(L)return L;L=x.raw_player_response;L||(x=x.player_response)&&(L=JSON.parse(x));return L&&L.videoDetails&&L.videoDetails.videoId||null};
B_n=function(x){return x.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
Sq=function(x){return!isNaN(Number(x))&&!_.Ew(x)};
_.J_=function(x,L,D,S){S=S===void 0?!0:S;var Q=_.$6("VALID_SESSION_TEMPDATA_DOMAINS",[]),J=_.QY(window.location.href);J&&Q.push(J);J=_.QY(x);if(_.AG(Q,J)||!J&&_.Ow(x,"/"))if(Q=document.createElement("a"),fU(Q,x),x=Q.href)if(x=_.XY(x),x=_.Q0(x))S&&!L.csn&&(L.itct||L.ved)&&(L=Object.assign({csn:_.A3()},L)),D?(D=parseInt(D,10),isFinite(D)&&D>0&&WDn(x,L,D)):WDn(x,L)};
As0=function(x){var L=_.$6("VALID_SESSION_TEMPDATA_DOMAINS",[]),D=_.QY(window.location.href);D&&L.push(D);D=_.QY(x);if(!(_.AG(L,D)||!D&&_.Ow(x,"/")))return null;x=_.XY(x);(x=_.Q0(x))?(x=qLw(x),x=(x=_.YQ.get(x,void 0)||null)?_.tu(x):{}):x=null;return x};
WDn=function(x,L,D){x=qLw(x);L=L?_.pH(L):"";D=D||5;_.UcG()&&_.FD(x,L,D)};
qLw=function(x){for(var L=_.O($cs),D=L.next();!D.done;D=L.next())x=_.K6(x,D.value);return"ST-"+z0(x).toString(36)};
_.rsw=function(x){if(x.requestFullscreen)x=x.requestFullscreen(void 0);else if(x.webkitRequestFullscreen)x=x.webkitRequestFullscreen();else if(x.mozRequestFullScreen)x=x.mozRequestFullScreen();else if(x.msRequestFullscreen)x=x.msRequestFullscreen();else if(x.webkitEnterFullscreen)x=x.webkitEnterFullscreen();else return Promise.reject(Error("yf"));return x instanceof Promise?x:Promise.resolve()};
_.Zg=function(x){var L;_.JD0(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.O8()==x&&(L=document):L=x;if(L&&(x=_.JD0(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],L))){x.call(L)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.O8=function(){var x=x===void 0?!1:x;var L=_.JD0(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(x)for(;L&&L.shadowRoot;)L=L.shadowRoot.fullscreenElement;return L?L:null};
_.y0=function(x,L){L=L===void 0?!0:L;x.addEventListener("wheel",N_h);x.overscrollConfig={cooldown:L}};
_.I8=function(x){x.overscrollConfig=void 0;x.removeEventListener("wheel",N_h)};
N_h=function(x){var L=x.deltaY,D=x.target,S=null;if(window.Polymer&&window.Polymer.Element){if(D=x.path||x.composedPath&&x.composedPath()){D=_.O(D);for(var Q=D.next();!Q.done&&(Q=Q.value,!i0N(Q,L));Q=D.next())if(Q.overscrollConfig){S=Q;break}}}else for(;D&&!i0N(D,L);){if(D.overscrollConfig){S=D;break}D=D.parentElement}S&&(L=S.overscrollConfig,L.cooldown?(S=x.deltaY,D=L.lastDeltaY||0,L.lastDeltaY=S,Q=L.lastStopped||0,D&&Q&&D>0==S>0?Math.abs(D)>=Math.abs(S)?(S=Q+1200,D=!1):(S=Q+600,D=!0):(S=Date.now()+
600,D=!0),S>Date.now()&&(x.preventDefault(),D&&(L.lastStopped=Date.now()))):x.preventDefault())};
i0N=function(x,L){return L<0&&x.scrollTop>0||L>0&&x.scrollTop<x.scrollHeight-x.clientHeight-1?(x=getComputedStyle(x).overflowY,x=="auto"||x=="scroll"):!1};
_.MF=function(x,L,D,S){S||(S={bubbles:!0,cancelable:!1,composed:!0});D!==null&&D!==void 0&&(S.detail=D);var Q=new CustomEvent(L,S);_.u("untrack_fire_custom_event_killswitch")?x.dispatchEvent(Q):_.hI(function(){return void x.dispatchEvent(Q)});
return Q};
fwb=function(x){var L=window,D=function(S){L.removeEventListener("yt-navigate-start",D);return x.call(L,S)};
L.addEventListener("yt-navigate-start",D,void 0)};
_.dg=function(x,L,D,S){L=new ot3(L,!(S===void 0||!S),D);_.MF(x,"yt-action",L);return L.returnValue};
_.P$=function(x,L,D){return _.dg(x,L,D,!0)};
_.v$=function(x,L,D,S){L&&L.length&&L.forEach(function(Q){var J=S3p(Q);J&&(_.u("handle_service_request_actions")&&Q.commandMetadata&&Q.commandMetadata.webCommandMetadata&&Q.commandMetadata.webCommandMetadata.sendPost?_.jq(D?D:x,[Q]):_.P$(x,J,[Q,D,S]))})};
_.jq=function(x,L){var D=[x];L&&D.push.apply(D,L);L=_.dg(x,"yt-service-request",D);return L.length>0&&(L=L[0],_.MF(x,"yt-service-request-sent",L),L&&L.ajaxPromise)?(L.ajaxPromise.then(function(S){_.MF(x,"yt-service-request-completed",S)},function(S){_.MF(x,"yt-service-request-error",{error:S,
params:D})},x),L.ajaxPromise):_.V0()};
_.H$=function(x,L){if(_.u("handle_service_request_actions"))_.v$(L,x,L);else{x=_.O(x);for(var D=x.next();!D.done;D=x.next()){D=D.value;var S=void 0;((S=_.g(D,_.h_))==null?0:S.commands)?_.H$(_.g(D,_.h_).commands,L):(S=void 0,((S=_.g(D,_.ul))==null?0:S.actions)?_.H$(_.g(D,_.ul).actions,L):(S=void 0,((S=_.g(D.commandMetadata,_.gg))==null?0:S.sendPost)?_.jq(L,[D]):_.v$(L,[D],L)))}}};
_.zjp=function(x,L,D){L=L===void 0?{}:L;typeof L==="function"&&(L={callback:L});D||L._c&&L._c.jsl&&L._c.jsl.h||_.wk.extend(L,{_c:{jsl:{h:_.$6("GAPI_HINT_PARAMS")}}});(L.gapiHintOverride||_.$6("GAPI_HINT_OVERRIDE"))&&(D=_.xQ(document.location.href).gapi_jsh)&&_.wk.extend(L,{_c:{jsl:{h:D}}});awc(x,L)};
_.p6=function(x,L,D){L=L===void 0?{}:L;x=(x=x in kT?kT[x]:D)||"";D={};for(var S in L){D={key$jscomp$836:D.key$jscomp$836};D.key$jscomp$836=S;var Q=function(J){return function(){return String(L[J.key$jscomp$836])}}(D);
x=x.replace(new RegExp("\\$\\{"+D.key$jscomp$836+"\\}","gi"),Q);x=x.replace(new RegExp("\\$"+D.key$jscomp$836,"gi"),Q)}return x};
_.mm=function(x,L){return XON(x in kT?kT[x]:{},L)};
XON=function(x,L){var D=_.$6("I18N_PLURAL_RULES");D||(D=function(S){return S==1?"one":"other"});
return(x=x["case"+L]||x[D(L)])?x.replace("#",L.toString()):L+""};
tHh=function(x){var L=cs0(x),D=document.getElementById(L),S=D&&pOf(D);S||D&&!S||(D=ntf(x,L,function(){if(!pOf(D)){kP0(D);_.HuN(L);var Q=_.bl(_.gOn,L);_.VY(Q,0)}}))};
ntf=function(x,L,D){var S=document.createElement("link");S.id=L;S.onload=function(){D&&setTimeout(D,0)};
x=_.Cw(x);_.Ot(S,x,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(S);return S};
cs0=function(x){var L=_.pw("A");fU(L,lQ(x));return"css-"+z0(L.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.L9s=function(x){var L=xYN();x!==L&&(L=_.FI(),!_.u("web_autonav_allow_off_by_default")&&x||_.s8(0,141,!0),_.s8(0,140,!x),L.save())};
xYN=function(){var x=_.FI();return _.u("web_autonav_allow_off_by_default")&&!x.getFlag(141)&&_.$6("AUTONAV_OFF_BY_DEFAULT")?!1:!x.getFlag(140)};
DY0=function(x,L){var D,S;x=((D=x.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(S=D.videoAuthorizationToken)==null?void 0:S.credentialTransferTokens)||[];for(D=0;D<x.length;++D)if(x[D].scope===L)return x[D].token||void 0};
SFp=function(x){for(var L=0,D=0;D<x.length;D++)L=L*31+x.charCodeAt(D),D<x.length-1&&(L%=0x800000000000);return L%1E5};
_.T8=function(x){return _.o1("ytcsi."+(x||"")+"data_")||Q_p(x)};
_.J40=function(x){x=_.T8(x);x.metadata||(x.metadata={});return x.metadata};
_.K90=function(x){x=_.T8(x);x.tick||(x.tick={});return x.tick};
_.eq=function(x){x=_.T8(x);if(x.gel){var L=x.gel;L.gelInfos||(L.gelInfos={});L.gelTicks||(L.gelTicks={})}else x.gel={gelTicks:{},gelInfos:{}};return x.gel};
_.O1G=function(x){x=_.eq(x);x.gelInfos||(x.gelInfos={});return x.gelInfos};
Z1b=function(x){var L=_.T8(x).nonce;L||(L=Bo(16),_.T8(x).nonce=L);return L};
Q_p=function(x){var L={tick:{},info:{}};_.KK("ytcsi."+(x||"")+"data_",L);return L};
y4f=function(){var x=_.o1("ytcsi.debug");x||(x=[],_.KK("ytcsi.debug",x),_.KK("ytcsi.reference",{}));return x};
_.R8=function(x){x=x||"";var L=IzN();if(L[x])return L[x];var D=y4f(),S={timerName:x,info:{},tick:{},span:{},jspbInfo:[]};D.push(S);return L[x]=S};
EE4=function(x){x=x||"";var L=IzN();L[x]&&delete L[x];var D=y4f(),S={timerName:x,info:{},tick:{},span:{},jspbInfo:[]};D.push(S);L[x]=S};
IzN=function(){var x=_.o1("ytcsi.reference");if(x)return x;y4f();return _.o1("ytcsi.reference")};
_.dYO=function(x){return Mdb[x]||"LATENCY_ACTION_UNKNOWN"};
Vd3=function(x,L,D){D=D===void 0?{}:D;var S=!1;_.rO("ytLoggingEventsDefaultDisabled",!1)&&(S=!0);S=S?null:lY;D=D===void 0?{}:D;var Q=Math.round(D.timestamp||(0,_.y5)());_.Fd(L,1,Q<Number.MAX_SAFE_INTEGER?Q:0);Q=new Phb;if(D.lact)_.Fd(Q,1,isFinite(D.lact)?D.lact:-1);else if(D.timestamp)_.Fd(Q,1,-1);else{var J=_.Z8();_.Fd(Q,1,isFinite(J)?J:-1)}if(D.sequenceGroup&&!_.u("web_gel_sequence_info_killswitch")){J=D.sequenceGroup;var Z=e6f(J),y=new j_0;_.Fd(y,2,Z);_.ei(y,1,J);_.mR(Q,3,y);D.endOfSequence&&delete vEh[D.sequenceGroup]}_.mR(L,
33,Q);(D.sendIsolatedPayload?BF3:WU4)(x,{endpoint:"log_event",payload:L,cttAuthInfo:D.cttAuthInfo,dangerousLogToVisitorSession:D.dangerousLogToVisitorSession},S)};
_.C6=function(){return(_.u("csi_use_time_origin")||_.u("csi_use_time_origin_tvhtml5"))&&_.G8.timeOrigin?Math.floor(_.G8.timeOrigin):_.G8.timing.navigationStart};
_.h_s=function(x,L){_.ll("_start",x,L)};
_.U8=function(x,L){if(!_.u("web_csi_action_sampling_enabled")||!_.T8(L).actionDisabled){var D=_.R8(L||"");_.iz(D.info,x);x.loadType&&(D=x.loadType,_.J40(L).loadType=D);_.iz(_.O1G(L),x);D=Z1b(L);L=_.T8(L).cttAuthInfo;H1n().info(x,D,L)}};
uOf=function(){var x,L,D,S;return((S=_.yY().resolve(_.ZN(e7))==null?void 0:(x=RR())==null?void 0:(L=x.loggingHotConfig)==null?void 0:(D=L.csiConfig)==null?void 0:D.debugTicks)!=null?S:[]).map(function(Q){return Object.values(Q)[0]})};
_.ll=function(x,L,D){if(!_.u("web_csi_action_sampling_enabled")||!_.T8(D).actionDisabled){var S=Z1b(D),Q;if(Q=_.u("web_csi_debug_sample_enabled")&&S){(_.yY().resolve(_.ZN(e7))==null?0:RR())&&!gEw&&(gEw=!0,_.ll("gcfl",(0,_.y5)(),D));var J,Z,y;Q=(_.yY().resolve(_.ZN(e7))==null?void 0:(J=RR())==null?void 0:(Z=J.loggingHotConfig)==null?void 0:(y=Z.csiConfig)==null?void 0:y.debugSampleWeight)||0;if(J=Q!==0)b:{J=uOf();if(J.length>0)for(Z=0;Z<J.length;Z++)if(x===J[Z]){J=!0;break b}J=!1}J?(Q=SFp(S)%Q!==0,
_.T8(D).debugTicksExcludedLogged||(J={},J.debugTicksExcluded=Q,_.U8(J,D)),_.T8(D).debugTicksExcludedLogged=!0):Q=!1}if(!Q){x[0]!=="_"&&kX4(x,D,L);Q=_.R8(D||"");Q.tick[x]=L||(0,_.y5)();if(Q.callback&&Q.callback[x])for(Q=_.O(Q.callback[x]),J=Q.next();!J.done;J=Q.next())J=J.value,J();Q=_.eq(D);Q.gelTicks&&(Q.gelTicks[x]=!0);J=_.K90(D);Q=L||(0,_.y5)();_.u("log_repeated_ytcsi_ticks")?x in J||(J[x]=Q):J[x]=Q;J=_.T8(D).cttAuthInfo;x==="_start"?H1n().baseline(S,L,J):H1n().tick(x,S,L,J);_.pub(D);return Q}}};
kX4=function(x,L,D){if(_.G8.mark)if(x.startsWith("mark_")||(x="mark_"+x),L&&(x+=" ("+L+")"),D===void 0||_.u("web_csi_disable_alt_time_performance_mark"))_.G8.mark(x);else{D=_.u("csi_use_performance_navigation_timing")?D-_.G8.timeOrigin:D-(_.G8.timeOrigin||_.G8.timing.navigationStart);try{_.G8.mark(x,{startTime:D})}catch(S){}}};
mYw=function(){var x,L=(x=_.G8.getEntriesByType)==null?void 0:x.call(_.G8,"mark");L&&L.forEach(function(D){if(D.name.startsWith("mark_")){var S;(S=_.G8.clearMarks)==null||S.call(_.G8,D.name)}})};
_.b1N=function(){switch(Qlw()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.YF0=function(x){var L={},D=function(J,Z,y){Z=Z.match("_rid")?Z.split("_rid")[0]:Z;typeof y==="number"&&(y=JSON.stringify(y));J.requestIds?J.requestIds.push({endpoint:Z,id:y}):J.requestIds=[{endpoint:Z,id:y}]};
x=_.O(Object.entries(x));for(var S=x.next();!S.done;S=x.next()){var Q=_.O(S.value);S=Q.next().value;Q=Q.next().value;switch(S){case "GetBrowse_rid":D(L,S,Q);break;case "GetGuide_rid":D(L,S,Q);break;case "GetHome_rid":D(L,S,Q);break;case "GetPlayer_rid":D(L,S,Q);break;case "GetSearch_rid":D(L,S,Q);break;case "GetSettings_rid":D(L,S,Q);break;case "GetTrending_rid":D(L,S,Q);break;case "GetWatchNext_rid":D(L,S,Q);break;case "yt_red":L.isRedSubscriber=!!Q;break;case "yt_ad":L.isMonetized=!!Q}}return L};
s_f=function(x,L,D,S,Q,J){if(!_.u("web_csi_action_sampling_enabled")||!_.T8(J).actionDisabled){var Z=_.eq(J);if(Z.gelSpans)Z.gelSpans[x]=!0;else{var y={};Z.gelSpans=(y[x]=!0,y)}F90++;x={spanName:x,spanLengthUsec:String(Math.round(L*1E3)),spanNonce:F90};S&&(x.spanInfo=S);Q&&(x.parentSpanNonce=Q);D&&(x.spanStartTimeUsec=String(Math.round(D*1E3)));_.R8(J||"").span[String(x.spanName)]=x;D=_.eq(J);D.gelSpans||(D.gelSpans={});_.iz(D.gelSpans,x);D=Z1b(J);J=_.T8(J).cttAuthInfo;H1n().span(x,D,J);return x.spanNonce}};
_.ThG=function(x){var L=_.wg("aft",x);if(L)return L;L=_.$6((x||"")+"TIMING_AFT_KEYS",["ol"]);for(var D=L.length,S=0;S<D;S++){var Q=_.wg(L[S],x);if(Q)return Q}return NaN};
_.e_w=function(x,L){_.KK("ytglobal.timing"+(L||"")+"ready_",x)};
_.wg=function(x,L){if(x=_.K90(L)[x])return typeof x==="number"?x:x[x.length-1]};
_.pub=function(x){var L=_.wg("_start",x),D=_.ThG(x),S=!R_O;L&&D&&S&&(RKw(GX0,new Chp(Math.round(D-L),x)),R_O=!0)};
UYh=function(x){Q_p(x);lzN();mYw();x||(_.$6("TIMING_ACTION")&&_.Au("PREVIOUS_ACTION",_.$6("TIMING_ACTION")),_.Au("TIMING_ACTION",""))};
_.wus=function(x){x=x===void 0?{}:x;_.fm(function(){B$();EE4();UYh();_.e_w(!1);x.cttAuthInfo&&(_.T8().cttAuthInfo=x.cttAuthInfo);_.Au("TIMING_AFT_KEYS",[]);x.isHot?_.W$({loadType:"hot"}):_.W$({loadType:"warm"});_.Au("TIMING_ACTION","");delete _.$6("TIMING_INFO",{}).yt_lt;_.fm(_.h_s)(x.startTime,void 0)})()};
_.A_=function(x,L,D,S){L=L===void 0?{}:L;_.fm(function(){var Q=D?D:x;qF(Q);var J=L.sampleRate;if(!_.u("web_csi_action_sampling_enabled")||J===void 0||J<=1)J=!1;else{var Z=Z1b(Q);J=SFp(Z)%J!==0}J&&(_.T8(Q).actionDisabled=!0);_.R8(Q||"").info.actionType=x;L.cttAuthInfo&&(_.T8(Q).cttAuthInfo=L.cttAuthInfo);_.Au(Q+"TIMING_ACTION",x);_.fm(_.h_s)(L.startTime,Q);J={actionType:S||_.dYO(x)};L.logPreviousAction&&(J.previousAction=_.dYO(_.$6("TIMING_ACTION")));(Z=_.A3())&&Z!=="UNDEFINED_CSN"&&(J.clientScreenNonce=
Z);_.W$(J,Q);_.e_w(!0,Q)})()};
qF=function(x){_.fm(function(){B$(x);EE4(x);UYh(x)})()};
Bhh=function(){_.fm(function(){var x=[],L;for(L in _.o1("ytcsi.".slice(0,-1)))L.endsWith("data_")&&x.push(L.slice(0,-5));x=_.O(x);for(L=x.next();!L.done;L=x.next())qF(L.value);B$()})()};
_.qFf=function(x){return _.fm(function(){return _.W94("_start",x)})()};
_.W$=function(x,L,D){_.fm(_.U8)(x,L,D===void 0?!1:D)};
_.$T=function(x,L,D){return _.fm(_.ll)(x,L,D)};
_.W94=function(x,L){return _.fm(function(){var D=_.K90(L);return x in D})()};
$Yb=function(x){if(!_.u("universal_csi_network_ticks"))return"";x=_.gE(x)||"";for(var L=Object.keys(A4s),D=0;D<L.length;D++){var S=L[D];if(x.includes(S))return S}return""};
Nhp=function(x){if(!_.u("universal_csi_network_ticks"))return function(){};
var L=A4s[x];return L?(_.rg(L),function(){var D=_.u("universal_csi_network_ticks")?(D=r4f[x])?_.rg(D):!1:!1;return D}):function(){}};
_.rg=function(x,L,D){return _.fm(function(){if(_.W94(x,D))return!1;_.$T(x,L,D);return!0})()};
_.NF=function(x,L,D){_.fm(function(){if(!_.qFf(D)||_.W94(x,D))return!1;_.$T(x,L,D);return!0})()};
_.il=function(x){return _.fm(_.wg)(x,void 0)};
B$=function(x){_.qFf(x)&&_.$T("aa",void 0,x)};
_.z_3=function(x,L,D,S,Q,J,Z,y,E){var P=i1G();y=new Wo({veType:L,youtubeData:J,jspbYoutubeData:y});J=f6({},P);Q&&(J.cttAuthInfo=Q);Q={csn:P,pageVe:y.getAsJson()};_.u("expectation_logging")&&E&&E.screenCreatedLoggingExpectations&&(Q.screenCreatedLoggingExpectations=E.screenCreatedLoggingExpectations);D&&D.visualElement?(Q.implicitGesture={parentCsn:D.clientScreenNonce,gesturedVe:D.visualElement.getAsJson()},Z&&(Q.implicitGesture.gestureType=Z)):D&&_.qy(new _.RZ("newScreen() parent element does not have a VE - rootVe",
L));S&&(Q.cloneCsn=S);x?CV("screenCreated",Q,x,J):_.Uh("screenCreated",Q,J);RKw(WXh,new fzn(P));o8.clear();oEG.clear();azn.clear();return P};
a8=function(x,L,D,S,Q,J){J=J===void 0?{}:J;Xub(x,L,D,[S],Q===void 0?!1:Q,J)};
Xub=function(x,L,D,S,Q,J){Q=Q===void 0?!1:Q;J=J===void 0?{}:J;Object.assign(J,f6({cttAuthInfo:$7(L)||void 0},L));for(var Z=_.O(S),y=Z.next();!y.done;y=Z.next()){y=y.value;var E=y.getAsJson();(_.wk.isEmpty(E)||!E.trackingParams&&!E.veType)&&_.qy(Error("zf"));if(_.u("no_client_ve_attach_unless_shown")){var P=c40(y,L);if(E.veType&&!oEG.has(P)&&!azn.has(P)&&!Q){if(!_.u("il_attach_cache_limit")||o8.size<1E3){o8.set(P,[x,L,D,y]);return}_.u("il_attach_cache_limit")&&o8.size>1E3&&_.qy(new _.RZ("IL Attach cache exceeded limit"))}y=
c40(D,L);o8.has(y)?nEw(D,L):azn.set(y,!0)}}S=S.filter(function(v){v.csn!==L?(v.csn=L,v=!0):v=!1;return v});
D={csn:L,parentVe:D.getAsJson(),childVes:_.Bn(S,function(v){return v.getAsJson()})};
L==="UNDEFINED_CSN"?z8("visualElementAttached",J,D):x?CV("visualElementAttached",D,x,J):_.Uh("visualElementAttached",D,J)};
xVG=function(x,L,D,S,Q){tdb(x,L,D,Q)};
tdb=function(x,L,D,S){LGp(D,L);var Q=f6({cttAuthInfo:$7(L)||void 0},L);D={csn:L,ve:D.getAsJson(),eventType:1};S&&(D.clientData=S);L==="UNDEFINED_CSN"?z8("visualElementShown",Q,D):x?CV("visualElementShown",D,x,Q):_.Uh("visualElementShown",D,Q)};
DVf=function(x,L,D,S){LGp(D,L);var Q=f6({cttAuthInfo:$7(L)||void 0},L);D={csn:L,ve:D.getAsJson(),eventType:4};S&&(D.clientData=S);L==="UNDEFINED_CSN"?z8("visualElementShown",Q,D):x?CV("visualElementShown",D,x,Q):_.Uh("visualElementShown",D,Q)};
SWh=function(x,L,D,S,Q){var J=(S=S===void 0?!1:S)?16:8;S=f6({cttAuthInfo:$7(L)||void 0,endOfSequence:S},L);D={csn:L,ve:D.getAsJson(),eventType:J};Q&&(D.clientData=Q);L==="UNDEFINED_CSN"?z8("visualElementHidden",S,D):x?CV("visualElementHidden",D,x,S):_.Uh("visualElementHidden",D,S)};
JaG=function(x,L,D,S,Q){Qfp(x,L,D,void 0,S,Q)};
Qfp=function(x,L,D,S,Q){LGp(D,L);S=S||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var J=f6({cttAuthInfo:$7(L)||void 0},L);D={csn:L,ve:D.getAsJson(),gestureType:S};Q&&(D.clientData=Q);L==="UNDEFINED_CSN"?z8("visualElementGestured",J,D):x?CV("visualElementGestured",D,x,J):_.Uh("visualElementGestured",D,J)};
KG3=function(x,L,D,S){var Q=f6({cttAuthInfo:$7(L)||void 0},L);D={csn:L,ve:D.getAsJson(),clientData:S};L==="UNDEFINED_CSN"?z8("visualElementStateChanged",Q,D):x?CV("visualElementStateChanged",D,x,Q):_.Uh("visualElementStateChanged",D,Q)};
OSw=function(){var x=aBc(16);for(var L=[],D=0;D<x.length;D++)L.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(x[D]&63));return L.join("")};
z8=function(x,L,D){ZSN.push({payloadName:x,payload:D,jspbPayload:void 0,options:L});yab||(yab=Aqp())};
Bcp=function(x){if(ZSN){for(var L=_.O(ZSN),D=L.next();!D.done;D=L.next())D=D.value,D.payload&&(D.payload.csn=x.csn,_.Uh(D.payloadName,D.payload,D.options));ZSN.length=0}yab=0};
c40=function(x,L){return""+x.getAsJson().veType+x.getAsJson().veCounter+L};
LGp=function(x,L){if(_.u("no_client_ve_attach_unless_shown")){var D=c40(x,L);oEG.set(D,!0);nEw(x,L)}};
nEw=function(x,L){x=c40(x,L);o8.has(x)&&(L=o8.get(x)||[],a8(L[0],L[1],L[2],L[3],!0),o8.delete(x))};
f6=function(x,L){_.u("log_sequence_info_on_gel_web")&&(x.sequenceGroup=L);return x};
_.XI=function(x,L,D){_.fm(a8)(void 0,x,L,D)};
_.c$=function(x,L,D){_.fm(Xub)(void 0,x,L,D)};
_.n6=function(x,L){_.fm(xVG)(void 0,x,L,void 0,void 0,void 0)};
_.t_=function(x,L,D){_.fm(function(){_.nm(L,function(S){DVf(void 0,x,S,D)})})()};
_.xN=function(x,L,D,S){_.fm(function(){_.nm(L,function(Q){SWh(void 0,x,Q,D,S)})})()};
_.L7=function(x,L,D){_.fm(JaG)(void 0,x,L,D,void 0)};
_.Do=function(x,L,D,S){_.fm(Qfp)(void 0,x,L,D,S,void 0)};
_.Sm=function(x,L,D){_.fm(KG3)(void 0,x,L,D,void 0)};
IFw=function(x,L){Qa.set(x,L)};
EKn=function(x){return J2.initialized?J2.enabledSpans?J2.enabledSpans[x]:!0:!1};
Mvc=function(x,L){if(x){L=L===void 0?1:L;if(x){x.endTime=(0,_.y5)();L&&(x.status=L);L=_.O(J2.processors);for(var D=L.next();!D.done;D=L.next()){var S=void 0,Q=void 0;(Q=(S=D.value).onSpanEnd)==null||Q.call(S,x)}}x!==J2.stack[J2.stack.length-1]&&_.qy(Error("Cf`"+x.name));J2.stack.pop()}};
PZh=function(x,L,D){if(EKn(x)&&J2.shouldSampleFn(x,L,dVc)){var S=J2.nextSpanId++,Q=J2.stack[J2.stack.length-1];x={id:S,parentId:Q==null?void 0:Q.id,name:x,attributes:L,traceId:Q?Q.traceId:S,sessionId:J2.sessionId,startTime:(0,_.y5)(),status:0};Q&&(Q.children||(Q.children=[]),Q.children.push(x));Q=_.O(J2.processors);for(L=Q.next();!L.done;L=Q.next()){var J=S=void 0;(J=(S=L.value).onSpanStart)==null||J.call(S,x)}}else x=void 0;x?J2.stack.push(x):x=void 0;if(!x)return D();try{var Z=D(x);Mvc(x);return Z}catch(y){throw Mvc(x,
2),y;}};
jfw=function(){};
vKN=function(x,L){var D=Object.keys(x);x=new _.RZ("[Command Handler] "+L,{filteredCommandNames:D,originalCommand:x});_.BI(x)};
Vv3=function(x,L){vKN(x,L+" was called but not set")};
hBc=function(x){return function(){return new x}};
K7=function(x){return function(){return _.yY().resolve(x)}};
HSn=function(x,L){var D=_.g(x,_.iY);if(D&&(D=L[D.signal]))return D();x=_.O(Object.keys(x));for(D=x.next();!D.done;D=x.next())if(D=D.value,L[D]&&(D=L[D]))return D()};
_.O4=function(x,L,D,S){return{browseEndpoint:{browseId:x},commandMetadata:{webCommandMetadata:{url:L,rootVe:D,webPageType:S===void 0?"WEB_PAGE_TYPE_BROWSE":S}}}};
un0=function(x,L,D){var S=L=L===void 0?0:L;D=D===void 0?0:D;var Q=D-S;return _.Zo(x,"PPSV",void 0,void 0,(Q>600?0:Q<60||D<=0||S/D>.9)?0:L)};
_.Zo=function(x,L,D,S,Q){var J="/watch?v="+x;x={videoId:x};L&&(x.playlistId=L,J+="&list="+L);S&&(J+="&pp="+S);Q&&(x.startTimeSeconds=Q,J+="&t="+Q+"s");L={watchEndpoint:x,commandMetadata:{webCommandMetadata:{url:J,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};D&&(L.clickTrackingParams=D);S&&(_.g(L,_.L6).playerParams=S);return L};
gK3=function(x){return{browseEndpoint:{browseId:"VL"+x},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+x,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
kd0=function(x){if(x){var L;if(x){var D=(L=_.g(x.commandMetadata,_.gg))==null?void 0:L.url;L=!(!D||D==="/service_ajax")}else L=!1;if(L)return x;var S;if(x=(S=_.g(x,_.h_))==null?void 0:S.commands)for(S=_.O(x),x=S.next();!x.done;x=S.next())if(x=kd0(x.value))return x}};
_.ya=function(x){return{runs:[{text:x}]}};
pgn=function(x,L){return x&&L?{runs:[{text:x,navigationEndpoint:L}]}:void 0};
It=function(x){return x?_.ya(x):void 0};
_.E4=function(x){return x?{simpleText:x}:void 0};
_.MU=function(x){var L=x.type;x=x.payload;L={type:L};x!==void 0&&(L.payload=x);return L};
mVc=function(x,L,D){for(var S=Object.assign({},x),Q=_.O(Object.keys(L)),J=Q.next();!J.done;J=Q.next()){J=J.value;var Z=x[J],y=L[J];if(y===void 0)delete S[J];else if(Z===void 0)S[J]=y;else if(Array.isArray(y)&&Array.isArray(Z))S[J]=D?[].concat(_.lP(Z),_.lP(y)):y;else if(!Array.isArray(y)&&_.on(y)&&!Array.isArray(Z)&&_.on(Z))S[J]=mVc(Z,y,D);else if(typeof y===typeof Z)S[J]=y;else return L=new _.RZ("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:J,originalValue:Z,updateValue:y}),
_.BI(L),x}return S};
FGs=function(x){if(!x.length)return"";try{if(bSc)return bSc.decode(x);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(x)}catch(Z){}for(var L=0,D=[],S=x.length;L<S;){for(var Q=0;Q<1024&&L<S;){var J=x[L++];if(J<128)YWn[Q++]=J;else{if(J<224)J=(J&31)<<6|x[L++]&63;else if(J<240)J=(J&15)<<12|(x[L++]&63)<<6|x[L++]&63;else{if(Q+1===1024){--L;break}J=(J&7)<<18|(x[L++]&63)<<12|(x[L++]&63)<<6|x[L++]&63;J-=65536;YWn[Q++]=55296|J>>10;J=56320|J&1023}YWn[Q++]=J}}J=String.fromCharCode.apply(String,
YWn);Q<1024&&(J=J.substring(0,Q));D.push(J)}return D.join("")};
T14=function(x,L){var D;if((D=sff)==null?0:D.encodeInto)return L=sff.encodeInto(x,L),L.read<x.length?x.length*4:L.written;for(var S=D=0;S<x.length;S++){var Q=x.charCodeAt(S);Q<128?L[D++]=Q:(Q<2048?L[D++]=Q>>6|192:((Q&64512)===55296&&S+1<x.length&&(x.charCodeAt(S+1)&64512)===56320?(Q=65536+((Q&1023)<<10)+(x.charCodeAt(++S)&1023),L[D++]=Q>>18|240,L[D++]=Q>>12&63|128):L[D++]=Q>>12|224,L[D++]=Q>>6&63|128),L[D++]=Q&63|128)}return D};
eB3=function(x,L,D){if(L&&D&&D.buffer===L.exports.memory.buffer){var S=L.realloc(D.byteOffset,x);if(S)return new Uint8Array(L.exports.memory.buffer,S,x)}x=L?new Uint8Array(L.exports.memory.buffer,L.malloc(x),x):new Uint8Array(x);D&&x.set(D);return x};
_.va=function(x){x=new RBN(new Gd4([_.tG(decodeURIComponent(x))]));if(CZh(x,2)){var L=dD(x);var D=x.pos;var S=x.arrayView;D=D===void 0?0:D;var Q=L===void 0?-1:L;D=D===void 0?0:D;Q=Q===void 0?-1:Q;if(S.totalLength&&Q){Q<0&&(Q=S.totalLength-D);S.focus(D);if(!(D-S.arrayPos+Q<=S.arrays[S.arrayIdx].length)){var J=S.arrayIdx,Z=S.arrayPos;S.focus(D+Q-1);Z=new Uint8Array(S.arrayPos+S.arrays[S.arrayIdx].length-Z);for(var y=0,E=J;E<=S.arrayIdx;E++)Z.set(S.arrays[E],y),y+=S.arrays[E].length;S.arrays.splice(J,
S.arrayIdx-J+1,Z);S.arrayIdx=0;S.arrayPos=0;S.focus(D)}J=S.arrays[S.arrayIdx];S=new DataView(J.buffer,J.byteOffset+D-S.arrayPos,Q)}else S=new DataView(new ArrayBuffer(0));S=new Uint8Array(S.buffer,S.byteOffset,S.byteLength);x.pos+=L;L=S}else L=void 0;L=L?FGs(L):void 0;x=CZh(x,4)?dD(x):void 0;S=lFb[x];if(typeof S==="undefined")throw x=new _.RZ("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:x}),_.BI(x),x;return{entityTypeFieldNumber:x,entityType:S,entityId:L}};
_.Ha=function(x,L,D){D=D===void 0?0:D;var S=new UVn;if(sff)x=sff.encode(x);else{var Q=new Uint8Array(Math.ceil(x.length*1.2)),J=T14(x,Q);Q.length<J&&(Q=new Uint8Array(J),J=T14(x,Q));Q.length>J&&(Q=Q.subarray(0,J));x=Q}x!==void 0&&(Va(S,18),Q=x.length,Va(S,Q),h2(S,Q),S.buf.set(x,S.pos),S.pos+=Q);x=wgO[L];if(typeof x==="undefined")throw D=new _.RZ("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:L}),_.BI(D),D;x!==void 0&&(Va(S,32),Va(S,x));Va(S,40);Va(S,1);L=new Uint8Array(S.buf.buffer,
S.buf.byteOffset,S.pos);return encodeURIComponent(_.Gg(L,D))};
B1f=function(x){x=x.key||x.id;if(!x)throw Error("Ef");return x};
qW0=function(x,L){x=x===void 0?{}:x;return WGG(x,L)};
Aaf=function(x,L,D,S){if(S===void 0)return S=Object.assign({},x[L]||{}),D=(delete S[D],S),S={},Object.assign({},x,(S[L]=D,S));var Q={},J={};return Object.assign({},x,(J[L]=Object.assign({},x[L],(Q[D]=S,Q)),J))};
$VO=function(x,L,D,S,Q){var J=x[L];if(J==null||!J[D])return x;S=mVc(J[D],S,Q==="REPEATED_FIELDS_MERGE_OPTION_APPEND");Q={};J={};return Object.assign({},x,(J[L]=Object.assign({},x[L],(Q[D]=S,Q)),J))};
_.u6=function(x,L,D){return x[L]?x[L][D]||null:null};
N1N=function(){if(ra0)return ra0();var x={};ra0=ZA("PersistentEntityStoreDb",{objectStores:(x.EntityStore={addedAtVersion:1},x.EntityAssociationStore={addedAtVersion:2},x),shared:!1,upgrade:function(L,D){D(1)&&oE(fK(L,"EntityStore",{keyPath:"key"}),"entityType","entityType");D(2)&&(L=fK(L,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),oE(L,"byParentEntityKey","parentEntityKey"),oE(L,"byChildEntityKey","childEntityKey"))},
version:3});return ra0()};
iSG=function(x){return _.xg(N1N(),x)};
gD=function(x){return window.Int32Array?new Int32Array(x):Array(x)};
oKf=function(x){return _.xg(fFf(),x)};
aFN=function(x){return new kN("WRONG_DATA_TYPE",{encoderVersion:x})};
zB3=function(x){return x instanceof Error?new kN("UNKNOWN_ENCODE_ERROR",{originalMessage:x.message}):new kN("UNKNOWN_ENCODE_ERROR")};
Xgh=function(x){return x instanceof Error?new kN("UNKNOWN_DECODE_ERROR",{originalMessage:x.message}):new kN("UNKNOWN_DECODE_ERROR")};
ca3=function(x,L){x=x instanceof kN?x:L(x);_.BI(x);throw x;};
nKf=function(x){x=(new TextEncoder).encode(x).subarray(0,16);var L=new Uint8Array(16);L.set(x);return L};
xJN=function(x){var L=tvG[x];if(L)return L;_.qy(new _.RZ("Entity model not found.",{entityType:x}))};
_.p7=function(){L1N||(L1N=DJw());return L1N};
DJw=function(){var x,L,D;return _.I(function(S){if(S.nextAddress==1)return _.HH(S,2),S.yield(_.OD(),4);if(S.nextAddress!=2){x=S.yieldResult;if(!x||!_.eT()||typeof _.Qb.BroadcastChannel==="undefined")return S.return();L=new S60;return S.return(new mH(x,L))}D=_.mW(S);D instanceof Error&&_.BI(D);return S.return()})};
_.b6=function(x,L){var D;return _.I(function(S){if(S.nextAddress==1){D=x.mutations;if(!D||D.length<=0)return S.return();L&&L.dispatch(_.MU({type:"ENTITY_LOADED",payload:D}));return S.yield(QQG(D),2)}D.length=0;_.Y2(S)})};
QQG=function(x){var L;return _.I(function(D){return D.nextAddress==1?D.yield(_.p7(),2):(L=D.yieldResult)?D.yield(_.YN(L,"readwrite",function(S){for(var Q={},J=_.O(x),Z=J.next(),y={};!Z.done;y={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},Z=J.next())y.mutation$jscomp$4=Z.value,y.mutation$jscomp$4.entityKey&&JMf(y.mutation$jscomp$4)&&(y.mutationEntityType$jscomp$3=(0,_.wk.getAnyKey)(y.mutation$jscomp$4.payload),Z=void 0,y.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(Z=function(E){return function(){return _.K10(S,
E.mutation$jscomp$4.payload[E.mutationEntityType$jscomp$3],E.mutationEntityType$jscomp$3)}}(y)),y.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(Z=function(E){return function(){return Ovb(S,E.mutation$jscomp$4.entityKey)}}(y)),y.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(Z=function(E){return function(){return Zvh(S,E.mutation$jscomp$4.entityKey,E.mutation$jscomp$4.payload[E.mutationEntityType$jscomp$3],E.mutationEntityType$jscomp$3)}}(y)),Z&&(Q[y.mutation$jscomp$4.entityKey]=
Q[y.mutation$jscomp$4.entityKey]?Q[y.mutation$jscomp$4.entityKey].then(Z):Z()));
return oZ.all(Object.values(Q))}),0):D.return()})};
JMf=function(x){var L;x=(L=x.options)==null?void 0:L.persistenceOption;return x==="ENTITY_PERSISTENCE_OPTION_PERSIST"||x==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
EhO=function(x,L){var D,S;_.I(function(Q){if(Q.nextAddress==1)return Q.yield(_.p7(),2);if(Q.nextAddress!=3)return(D=Q.yieldResult)?Q.yield(_.YN(D,"readonly",function(J){var Z={},y=Object.keys(L).map(function(E){var P=L[E]?[].concat(_.lP(L[E])):[];return yMc(J,E,P,Z)});
return oZ.all(y).then(function(){return Z})}),3):Q.return();
S=Q.yieldResult;Object.keys(S).length>0&&x.dispatch(Iqb(S));_.Y2(Q)})};
yMc=function(x,L,D,S){return Ft(x,L,D).then(function(Q){S[L]=M3s(D,Q)})};
M3s=function(x,L){if(L.length!==x.length)throw Error("Hf");return L.reduce(function(D,S,Q){D[x[Q]]=S;return D},{})};
jQN=function(x){var L=x.filter(function(Q){var J;return(Q==null?void 0:(J=Q.transferEntity)==null?void 0:J.transferState)==="TRANSFER_STATE_COMPLETE"}).length,D=x.filter(function(Q){var J;
return(Q==null?void 0:(J=Q.transferEntity)==null?void 0:J.transferState)==="TRANSFER_STATE_FAILED"}).length,S=x.filter(function(Q){var J;
return(Q==null?void 0:(J=Q.transferEntity)==null?void 0:J.transferState)&&dJ0.includes(Q.transferEntity.transferState)});
if(!(L||S!=null&&S.length))return 0;L=_.PeO(S)+L;x=x.length-D;return x===0?0:Math.round(L*100/x)/100};
_.PeO=function(x){var L=[];L=L.concat.apply(L,_.lP(x.filter(function(J){return J.streamEntity}).map(function(J){var Z=Object.assign({},J.streamEntity),y,E=(y=J.transferEntity)==null?void 0:y.transferState;
Z.streamsProgress=Z.streamsProgress||[];Z.streamsProgress=Z.streamsProgress.map(function(P){var v=Object.assign({},P);v.numBytesDownloaded=E==="TRANSFER_STATE_COMPLETE"?P.numTotalBytes:P.numBytesDownloaded;return v});
return Z}).map(function(J){return J.streamsProgress})));
var D=x=0;L=_.O(L);for(var S=L.next();!S.done;S=L.next()){var Q=S.value;S=Number(Q.numBytesDownloaded);Q=Number(Q.numTotalBytes);D+=isNaN(S)?0:S;x+=isNaN(Q)?0:Q}return x===0?0:Math.round(D*100/x)/100};
vhN=function(x){if(!x||!x.expirationTimestamp||!x.action)return!1;var L=(0,_.y5)()/1E3;return Number(x.expirationTimestamp)>=L};
s4=function(x){return x&&x.expirationTimestamp&&x.action?vhN(x)&&x.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.TD=function(x){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(x||"TRANSFER_STATE_UNKNOWN")};
V3b=function(x){var L=new UVn;if(x!==void 0){var D=Math.ceil(Math.log2(x.length*4+2)/7);D=D===void 0?2:D;Va(L,10);L.submessagePosStack.push(L.pos);L.submessagePosStack.push(D);L.pos+=D;h2(L,x.length*1.2);D=T14(x,L.buf.subarray(L.pos));L.pos+D>L.buf.length&&(h2(L,D),D=T14(x,L.buf.subarray(L.pos)));L.pos+=D;x=L.submessagePosStack.pop();D=L.submessagePosStack.pop();for(var S=L.pos-D-x;x--;){var Q=x?128:0;L.view.setUint8(D++,S&127|Q);S>>=7}}L=new Uint8Array(L.buf.buffer,L.buf.byteOffset,L.pos);return(new TextDecoder("utf-8")).decode(L)};
_.em=function(x){var L=0;x=_.O(x);for(var D=x.next(),S={};!D.done;S={transferState$jscomp$3:void 0},D=x.next()){var Q=D.value,J=void 0;D=(J=Q.streamEntity)!=null?J:{};J=void 0;S.transferState$jscomp$3=(J=Q.transferEntity)==null?void 0:J.transferState;J=Q=void 0;((Q=D)==null?0:(J=Q.streamsProgress)==null?0:J.length)&&D.streamsProgress.forEach(function(Z){return function(y){y=Number(Z.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?y.numTotalBytes:y.numBytesDownloaded);isFinite(y)&&(L+=y)}}(S))}return L};
hen=function(x){return x.some(function(L){var D;if(!(L==null?0:(D=L.transferEntity)==null?0:D.transferState)){var S;return!(L==null?0:(S=L.policyEntity)==null?0:S.action)||L.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return dJ0.includes(L.transferEntity.transferState)})};
Hvp=function(x,L){if(!L)return!1;if(_.u("of_pb_en_po_ks"))return!0;var D;x=(D=_.u6(x,"offlineVideoPolicy",_.Ha(L,"offlineVideoPolicy")))!=null?D:void 0;return!!x&&s4(x)};
_.gh4=function(x){var L=["TRANSFER_STATE_COMPLETE"];L=L===void 0?urb:L;return x.filter(function(D){var S,Q;return L.includes((Q=(S=D.transferEntity)==null?void 0:S.transferState)!=null?Q:"TRANSFER_STATE_UNKNOWN")})};
kus=function(x,L){if(L){var D,S=(D=_.u6(x,"playbackData",_.Ha(L,"playbackData")))!=null?D:null,Q;D=(Q=_.u6(x,"transfer",_.Ha(L,"transfer")))!=null?Q:null;var J;Q=(J=_.u6(x,"offlineVideoStreams",_.Ha(L,"offlineVideoStreams")))!=null?J:null;var Z;x=(Z=_.u6(x,"offlineVideoPolicy",_.Ha(L,"offlineVideoPolicy")))!=null?Z:null;if(S||D||Q||x)return{playbackDataEntity:S,transferEntity:D,streamEntity:Q,policyEntity:x}}};
_.Rt=function(x){var L=x.playbackData;if(!L)return[];var D=[];L=_.O(Object.keys(L));for(var S=L.next();!S.done;S=L.next()){var Q=S.value;if(!p5w(x,_.va(Q).entityId)&&(S=kus(x,_.va(Q).entityId))){var J=void 0,Z=void 0;Q=(Z=Number((J=_.u6(x,"playbackData",Q))==null?void 0:J.streamDownloadTimestampSeconds))!=null?Z:(0,_.y5)();D.push({entity:S,streamDownloadTimestamp:Q})}}return D.sort(function(y,E){var P=y.streamDownloadTimestamp,v=E.streamDownloadTimestamp;return v===P?y.entity.streamEntity&&!E.entity.streamEntity?
1:-1:v-P}).map(function(y){return y.entity})};
mJN=function(x){return _.gh4(_.Rt(x))};
_.bvb=function(x){return _.Rt(x).filter(function(L){var D;if(((D=L.policyEntity)==null?0:D.action)&&L.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var S;if((S=L.transferEntity)==null?0:S.transferState){var Q;return dJ0.includes((Q=L.transferEntity)==null?void 0:Q.transferState)}return!0})};
p5w=function(x,L){var D;return((D=_.u6(x,"downloadStatusEntity",_.Ha(L,"downloadStatusEntity")))==null?void 0:D.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
Y6f=function(x){var L;if(x==null?0:(L=x.playbackDataEntity)==null?0:L.key)return _.va(x.playbackDataEntity.key).entityId;var D;if(x==null?0:(D=x.transferEntity)==null?0:D.key)return _.va(x.transferEntity.key).entityId;var S;if(x==null?0:(S=x.streamEntity)==null?0:S.key)return _.va(x.streamEntity.key).entityId;var Q;if(x==null?0:(Q=x.policyEntity)==null?0:Q.key)return _.va(x.policyEntity.key).entityId};
sQO=function(x){var L=new Set,D;x=(D=x.mainDownloadsListEntity)==null?void 0:D[F1w];var S;if(!(x==null?0:(S=x.downloads)==null?0:S.length))return L;var Q;x==null||(Q=x.downloads)==null||Q.forEach(function(J){(J==null?0:J.videoItem)&&L.add(J.videoItem)});
return L};
GD=function(x,L){if(L){var D=_.u6(x,"mainVideoEntity",_.Ha(L,"mainVideoEntity")),S=_.u6(x,"downloadStatusEntity",_.Ha(L,"downloadStatusEntity")),Q=_.u6(x,"ytMainChannelEntity",_.Ha(L,"ytMainChannelEntity")),J={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};x=kus(x,L);S=(S==null?void 0:S.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.u("woffle_render_failed_download_state_ks")&&(S==null?void 0:S.downloadState)==="DOWNLOAD_STATE_FAILED";!x&&S&&(x=J);if(x&&D&&
Q)return Object.assign({},{videoEntity:D,channelEntity:Q},x)}};
een=function(x,L){return TeN(x,L)==="TRANSFER_STATE_COMPLETE"&&Hvp(x,L)};
Reh=function(x,L){if(!L)return!1;var D;x=(D=_.u6(x,"playbackData",_.Ha(L,"playbackData")))!=null?D:void 0;return!!x&&!!x.playerResponseJson};
TeN=function(x,L){if(!L)return"TRANSFER_STATE_UNKNOWN";var D=_.u6(x,"transfer",_.Ha(L,"transfer"));if(D){var S;return(S=D.transferState)!=null?S:"TRANSFER_STATE_UNKNOWN"}D=_.u6(x,"offlineOrchestrationActionWrapperEntity",_.Ha(L,"offlineOrchestrationActionWrapperEntity"));x=_.u6(x,"mainVideoEntity",_.Ha(L,"mainVideoEntity"));return D||x?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
Gu4=function(x,L){if(!L)return"TRANSFER_STATE_UNKNOWN";if(x=_.u6(x,"transfer",_.Ha(L,"transfer"))){var D;return(D=x.transferState)!=null?D:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
Ce0=function(x,L){return L&&(x=_.u6(x,"videoPlaybackPositionEntity",_.Ha(L,"videoPlaybackPositionEntity")),x==null?0:x.lastPlaybackPositionSeconds)?Number(x.lastPlaybackPositionSeconds):0};
UJf=function(x,L){return lq3(x).some(function(D){var S;return(D==null?void 0:(S=D.mainPlaylistEntity)==null?void 0:S.playlistId)===L})};
Bec=function(x,L,D){var S=w5c(x,L);if(!S.length)return[];L=[];S=_.O(S);for(var Q=S.next();!Q.done;Q=S.next()){Q=Q.value;var J=GD(x,Q);D&&TeN(x,Q)!=="TRANSFER_STATE_COMPLETE"||J&&L.push(J)}return L};
w5c=function(x,L){if(!L)return[];var D=_.Ha(L,"mainPlaylistEntity"),S;L=(S=x.mainPlaylistEntity)==null?void 0:S[D];S=[];if(L==null||!L.videos)return S;L=_.O(L.videos);for(D=L.next();!D.done;D=L.next()){D=D.value;var Q=void 0,J=void 0,Z=void 0,y=(Q=x)==null?void 0:(J=Q.mainPlaylistVideoEntity)==null?void 0:(Z=J[D])==null?void 0:Z.video;y&&(D=_.va(y).entityId)&&S.push(D)}return S};
W1G=function(x,L){if(L){var D=_.u6(x,"mainPlaylistEntity",_.Ha(L,"mainPlaylistEntity")),S=_.u6(x,"mainPlaylistDownloadStateEntity",_.Ha(L,"mainPlaylistDownloadStateEntity"));x=_.u6(x,"ytMainChannelEntity",_.Ha(L,"ytMainChannelEntity"));if(S&&D)return Object.assign({},{mainPlaylistEntity:D,mainPlaylistDownloadStateEntity:S},!!x&&{channelEntity:x})}};
lq3=function(x){return q6s(x).sort(function(L,D){return D.addedTimestampMillis-L.addedTimestampMillis}).map(function(L){return L.downloadedPlaylistEntities})};
q6s=function(x){var L=x.mainPlaylistDownloadStateEntity,D=[];if(!L)return D;for(var S=_.O(Object.keys(L)),Q=S.next();!Q.done;Q=S.next()){var J=Q.value;Q=W1G(x,_.va(J).entityId);var Z=void 0;J=Number((Z=L[J])==null?void 0:Z.addedTimestampMillis);Z=isNaN(J)?(0,_.y5)():J;Q!==void 0&&D.push({downloadedPlaylistEntities:Q,addedTimestampMillis:Z})}return D};
AMs=function(x){var L,D=(L=x.mainPlaylistVideoEntity)!=null?L:{};return new Set(lq3(x).reduce(function(S,Q){S=S===void 0?[]:S;var J,Z;Q==null||(J=Q.mainPlaylistEntity)==null||(Z=J.videos)==null||Z.forEach(function(y){var E;(y=(E=D[y])==null?void 0:E.video)&&S.push(y)});
return S},[]))};
$JG=function(x){return"downloadedMusicPlaylistEntities"in x};
rMp=function(x){return"mainPlaylistEntity"in x&&"mainPlaylistDownloadStateEntity"in x};
Nef=function(x){return"videoEntity"in x&&"channelEntity"in x};
ivp=function(x){var L=x.musicPlaylistDownloadMetadataEntity,D=[];if(!L)return D;for(var S=_.O(Object.keys(L)),Q=S.next();!Q.done;Q=S.next()){Q=Q.value;a:{var J=x,Z=_.va(Q).entityId;if(Z){var y=_.u6(J,"musicPlaylist",_.Ha(Z,"musicPlaylist"));J=_.u6(J,"musicPlaylistDownloadMetadataEntity",_.Ha(Z,"musicPlaylistDownloadMetadataEntity"));if(y&&J){y={musicPlaylistEntity:y,musicPlaylistDownloadStateEntity:J};break a}}y=void 0}J=void 0;Q=Number((J=L[Q])==null?void 0:J.addedTimestampMillis);Q=isNaN(Q)?(0,_.y5)():
Q;y!==void 0&&D.push({downloadedMusicPlaylistEntities:y,addedTimestampMillis:Q})}return D};
fqw=function(x){var L=new Set;x=_.O(x);for(var D=x.next();!D.done;D=x.next())if(D=D.value,"musicPlaylistEntity"in D&&"musicPlaylistDownloadStateEntity"in D){D=_.O(D.musicPlaylistEntity.tracks);for(var S=D.next();!S.done;S=D.next())L.add(S.value)}return L};
ohN=function(x,L){if(L){var D=_.u6(x,"musicTrack",_.Ha(L,"musicTrack")),S=_.u6(x,"musicArtist",_.Ha(L,"musicArtist"))||{};if((x=kus(x,L))&&D&&S)return Object.assign({},{musicTrackEntity:D,musicArtistEntity:S},x)}};
aqf=function(x){var L=x.musicTrackDownloadMetadataEntity,D=[];if(!L)return[];L=_.O(Object.keys(L));for(var S=L.next();!S.done;S=L.next()){var Q=S.value;S=ohN(x,_.va(Q).entityId);var J=void 0;Q=Number((J=_.u6(x,"musicTrackDownloadMetadataEntity",Q))==null?void 0:J.addedTimestampMillis);J=isNaN(Q)?(0,_.y5)():Q;S!==void 0&&D.push({downloadedMusicEntities:S,addedTimestampMillis:J})}return D};
cMp=function(x,L){if(!L)return[];if(Object.values(zes).includes(L))return X5h(x,L);L=_.Ha(L,"musicPlaylist");var D;x=(D=x.musicPlaylist)==null?void 0:D[L];D=[];if(x==null||!x.tracks)return D;x=_.O(x.tracks);for(L=x.next();!L.done;L=x.next())(L=_.va(L.value).entityId)&&D.push(L);return D};
X5h=function(x,L){var D=new Set,S=ivp(x).map(function(J){return J.downloadedMusicPlaylistEntities});
S=fqw(S);S=_.O(S);for(var Q=S.next();!Q.done;Q=S.next())(Q=_.va(Q.value).entityId)&&D.add(Q);return nh0(x).downloadedMusicEntities.filter(function(J){var Z;if((Z=J.musicTrackEntity)!=null&&Z.videoId){J=J.musicTrackEntity;if(Z=L==="PPOM"?!0:!D.has(J.videoId))b:switch(J=J.musicVideoType,L){case "PPSE":Z=J==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:Z=J!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}J=Z}else J=!1;return J}).map(function(J){var Z;
return(Z=J.musicTrackEntity)==null?void 0:Z.videoId})};
nh0=function(x){var L=aqf(x).sort(function(D,S){return S.addedTimestampMillis-D.addedTimestampMillis}).map(function(D){return"downloadedMusicEntities"in D?D.downloadedMusicEntities:$JG(D)?D.downloadedMusicPlaylistEntities:{}});
x=ivp(x).sort(function(D,S){return S.addedTimestampMillis-D.addedTimestampMillis}).map(function(D){return"downloadedMusicEntities"in D?D.downloadedMusicEntities:$JG(D)?D.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:L,downloadedMusicPlaylistEntities:x}};
xI4=function(x,L){L=_.$6("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?cMp(x,L):w5c(x,L);if(!L.length)return"TRANSFER_STATE_UNKNOWN";L=L.map(function(D){return Gu4(x,D)});
return t3n(L)};
t3n=function(x){var L=new Set(x);if(L.has("TRANSFER_STATE_FAILED")&&L.size===1)return"TRANSFER_STATE_FAILED";L.delete("TRANSFER_STATE_FAILED");if(L.has("TRANSFER_STATE_UNKNOWN")&&L.size===1)return"TRANSFER_STATE_PRE_TRANSFER";L.delete("TRANSFER_STATE_UNKNOWN");if(L.has("TRANSFER_STATE_PRE_TRANSFER")&&L.size===1||L.size===0)return"TRANSFER_STATE_PRE_TRANSFER";x=L.has("TRANSFER_STATE_TRANSFERRING");L=L.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return x||L?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
C7=function(x){var L=x.mainVideoDownloadStateEntity,D=[];if(!L)return[];L=_.O(Object.keys(L));for(var S=L.next();!S.done;S=L.next()){var Q=S.value;if(!p5w(x,_.va(Q).entityId)){S=GD(x,_.va(Q).entityId);var J=void 0,Z=void 0;Q=(Z=Number((J=_.u6(x,"mainVideoDownloadStateEntity",Q))==null?void 0:J.addedTimestampMillis))!=null?Z:(0,_.y5)();S!==void 0&&D.push({downloadedVideoEntities:S,addedTimestampMillis:Q})}}return D};
L$f=function(x){return C7(x).sort(function(L,D){return D.addedTimestampMillis-L.addedTimestampMillis}).map(function(L){return L.downloadedVideoEntities})};
_.Sj0=function(x){var L=AMs(x),D=_.l6(x),S=sQO(x),Q=C7(x).filter(function(Z){var y,E;if((Z==null?void 0:(y=Z.downloadedVideoEntities)==null?void 0:(E=y.transferEntity)==null?void 0:E.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var P,v;Z=Z==null?void 0:(P=Z.downloadedVideoEntities)==null?void 0:(v=P.videoEntity)==null?void 0:v.key;return _.u("kevlar_use_library_entity")?Z&&(S.has(Z)||D[Z]):Z&&!L.has(Z)}),J=q6s(x).filter(function(Z){return xI4(x,Z.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.lP(Q),_.lP(J)).sort(function(Z,y){return y.addedTimestampMillis-Z.addedTimestampMillis}).map(function(Z){return DIp(Z)})};
QOs=function(x,L){if(L&&Hvp(x,L)){var D,S,Q=(S=(D=_.u6(x,"playbackData",_.Ha(L,"playbackData")))!=null?D:void 0)==null?void 0:S.playerResponseJson;if(Q){try{var J=JSON.parse(Q);var Z=_.u6(x,"transfer",_.Ha(L,"transfer")),y=Ce0(x,L);y&&(J=Object.assign({},J,{playerConfig:Object.assign({},J.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+y*1E3}}})}));J.cotn=Z==null?void 0:Z.cotn}catch(E){}return J}}};
_.K$b=function(x){var L,D,S;x=(S=(D=((L=x.downloadsPageViewConfigurationEntity)!=null?L:{})[_.U4])==null?void 0:D.smartDownloadsOptInBannerVisibility)!=null?S:{};var Q;return(Q=_.g(x,JYN))!=null?Q:{}};
_.l6=function(x){var L,D,S;x=(S=(D=((L=x.mainDownloadsListEntity)!=null?L:{})[_.Opf])==null?void 0:D.downloads)!=null?S:[];L={};D=_.O(x);for(S=D.next();!S.done;S=D.next())x=void 0,L[(x=S.value.videoItem)!=null?x:""]=!0;return L};
Zp3=function(x){var L=_.l6(x);if(Object.keys(L).length===0)return!1;var D=x.mainVideoEntity;if(!D)return!0;D=_.O(Object.keys(D));for(var S=D.next();!S.done;S=D.next()){S=S.value;var Q=_.va(S).entityId;if(L[S]&&!p5w(x,Q))return!1}return!0};
_.wD=function(x){var L=_.l6(x);return C7(x).sort(function(D,S){return D.addedTimestampMillis-S.addedTimestampMillis}).map(function(D){return D.downloadedVideoEntities}).filter(function(D){var S;
return(D=D==null?void 0:(S=D.videoEntity)==null?void 0:S.key)&&!!L[D]})};
_.IJ0=function(x){var L,D,S;x=(S=(D=((L=x.downloadsPageViewConfigurationEntity)!=null?L:{})[_.U4])==null?void 0:D.downloadsUpsellBannerVisibility)!=null?S:{};var Q;return(Q=_.g(x,yYp))!=null?Q:{}};
DIp=function(x){return"downloadedVideoEntities"in x?x.downloadedVideoEntities:"downloadedPlaylistEntities"in x?x.downloadedPlaylistEntities:{}};
ErG=function(x){var L=_.l6(x),D=AMs(x),S=C7(x).filter(function(Q){var J,Z;return(Q=Q==null?void 0:(J=Q.downloadedVideoEntities)==null?void 0:(Z=J.videoEntity)==null?void 0:Z.key)&&!L[Q]&&!D.has(Q)});
x=q6s(x);return[].concat(_.lP(S),_.lP(x)).sort(function(Q,J){return J.addedTimestampMillis-Q.addedTimestampMillis}).map(function(Q){return DIp(Q)})};
_.Ba=function(x){if(!_.u("kevlar_use_library_entity"))return ErG(x);var L=C7(x).filter(function(S){var Q,J;if(Q=S=S==null?void 0:(Q=S.downloadedVideoEntities)==null?void 0:(J=Q.videoEntity)==null?void 0:J.key){var Z,y,E;Q=((y=(Z=x.mainDownloadsListEntity)==null?void 0:Z[F1w])==null?0:(E=y.downloads)==null?0:E.length)?sQO(x).has(S):!1}return Q}),D=q6s(x);
return[].concat(_.lP(L),_.lP(D)).sort(function(S,Q){return Q.addedTimestampMillis-S.addedTimestampMillis}).map(function(S){return DIp(S)})};
MPw=function(x){var L=_.l6(x),D=AMs(x);return L$f(x).filter(function(S){var Q;return(S=S==null?void 0:(Q=S.videoEntity)==null?void 0:Q.key)&&!L[S]&&!D.has(S)})};
dIs=function(x){if(!_.u("kevlar_use_library_entity"))return MPw(x);var L=_.l6(x),D=sQO(x);return L$f(x).filter(function(S){var Q;return(S=S==null?void 0:(Q=S.videoEntity)==null?void 0:Q.key)&&!L[S]&&D.has(S)})};
Poh=function(x,L){L=_.Ha(L,"settingEntity");var D,S,Q;return!!((Q=(S=((D=x.settingEntity)!=null?D:{})[L])==null?void 0:S.settingOptionValue)!=null?Q:{}).boolValue};
_.Wa=function(x){var L=_.wD(x);if(hen(L))return 0;var D=[];L=_.O(L);for(var S=L.next();!S.done;S=L.next()){S=S.value;var Q=void 0,J=void 0;if((Q=S)==null?0:(J=Q.videoEntity)==null?0:J.key)Q=_.va(S.videoEntity.key).entityId,S=x,Q=_.Ha(Q,"mainVideoDownloadStateEntity"),S=_.u6(S,"mainVideoDownloadStateEntity",Q),(S=Number(S==null?void 0:S.addedTimestampMillis))&&D.push(S)}return Math.max.apply(Math,_.lP(D))};
_.qU=function(x){return x.ui.richGridMiniMode};
_.A2=function(x){return x.ui.richGridItemsPerRow};
_.jOG=function(x){return x.ui.richGridSlimItemsPerRow};
_.vrc=function(x){return x.ui.guideIsExpanded};
_.$N=function(x){return x.ui.miniplayerIsActive};
VP0=function(x){return x.ui.singleOptionSurveyIsActive};
_.rD=function(x){var L;return((L=x.ui)==null?void 0:L.currentPageType)||"WEB_PAGE_TYPE_UNKNOWN"};
_.hyG=function(x){return _.rD(x)==="WEB_PAGE_TYPE_WATCH"};
_.HpG=function(x){return _.rD(x)==="WEB_PAGE_TYPE_SHORTS"};
_.uen=function(x){return x.ui.inlinePreviewIsActive};
_.grn=function(x){return x.ui.inlinePreviewIsEnabled};
_.ky0=function(x){return x.ui.miniplayerPlaybackState};
_.NU=function(x){return x.ui.isOnline};
_.py3=function(x){return x.ui.frostedGlassMode};
_.i6=function(x,L){return TeN(x.entities,L)};
_.f7=function(x,L){return xI4(x.entities,L)};
mIN=function(x,L){var D;if(L){var S;x=(S=_.u6(x.entities,"offlineVideoPolicy",_.Ha(L,"offlineVideoPolicy")))==null?void 0:S.action}else x=void 0;return(D=x)!=null?D:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
bpO=function(x,L){var D;L?(x=_.u6(x.entities,"offlineVideoPolicy",_.Ha(L,"offlineVideoPolicy")),x=Number(x==null?void 0:x.expirationTimestamp)):x=void 0;return(D=x)!=null?D:0};
_.Yj4=function(x){return _.Rt(x.entities).length};
F$s=function(x,L){return GD(x.entities,L)};
sOO=function(x,L){return W1G(x.entities,L)};
ot=function(x,L){return(x=GD(x.entities,L))?_.PeO([x]):0};
_.T6p=function(x,L){var D=_.$6("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(D){var S=x.entities;var Q=cMp(S,L);if(Q.length){var J=[];Q=_.O(Q);for(var Z=Q.next();!Z.done;Z=Q.next())(Z=ohN(S,Z.value))&&J.push(Z);S=J}else S=[]}else S=Bec(x.entities,L);var y;if(D){var E=x.entities;L?(L=_.Ha(L,"musicPlaylist"),E=(y=E.musicPlaylist)==null?void 0:y[L],y=E!=null&&E.tracks?E.tracks.length:0):y=0}else y=x.entities,L?(L=_.Ha(L,"mainPlaylistEntity"),y=(E=y.mainPlaylistEntity)==null?void 0:E[L],y=y!=null&&y.videos?
y.videos.length:0):y=0;return S.length!==y?0:S?jQN(S):0};
_.eyb=function(x){return x.download.isLeaderTab};
_.RyG=function(x,L,D){if(!L&&D){var S=x.entities;if(D){var Q=V3b(D),J,Z;L=(Z=(J=_.u6(S,"offlineabilityEntity",_.Ha(Q,"offlineabilityEntity")))==null?void 0:J.addToOfflineButtonState)!=null?Z:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else L="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else J=x.entities,L?(Z=V3b(L),L=(Q=(S=_.u6(J,"offlineabilityEntity",_.Ha(Z,"offlineabilityEntity")))==null?void 0:S.addToOfflineButtonState)!=null?Q:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):L="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return L};
Gy3=function(x,L){x=x.entities;if(L){L=V3b(L);var D,S;L=(S=(D=_.u6(x,"offlineabilityEntity",_.Ha(L,"offlineabilityEntity")))==null?void 0:D.addToOfflineButtonState)!=null?S:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else L="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return L};
_.CoG=function(x){var L=x.entities;x=_.NU(x);var D=Poh(L,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.u("kevlar_modern_downloads_page")&&D)var S=!1;else{var Q,J;L=(J=(Q=((S=L.downloadsPageViewConfigurationEntity)!=null?S:{})[_.U4])==null?void 0:Q.smartDownloadsOptInBannerVisibility)!=null?J:{};S=x?!!L.visibleWithConnection:!!L.visibleWithoutConnection}return S};
_.lJf=function(x){return Poh(x.entities,"SMART_DOWNLOADS_ENABLED")};
_.UI4=function(x){return Zp3(x.entities)};
wyh=function(x){return _.wD(x.entities).every(function(L){var D;return(L==null?void 0:(D=L.transferEntity)==null?void 0:D.transferState)&&!dJ0.includes(L.transferEntity.transferState)})};
_.B6h=function(x){var L,D,S,Q=(S=(D=((L=x.entities.downloadsPageViewConfigurationEntity)!=null?L:{})[_.U4])==null?void 0:D.downloadsUpsellBannerVisibility)!=null?S:{};return _.NU(x)?!!Q.visibleWithConnection:!!Q.visibleWithoutConnection};
_.W$b=function(x,L){return p5w(x.entities,L)};
qjh=function(x,L){if(L){var D,S;x=(S=(D=_.u6(x.entities,"downloadStatusEntity",_.Ha(L,"downloadStatusEntity")))==null?void 0:D.downloadState)!=null?S:"DOWNLOAD_STATE_UNKNOWN"}else x="DOWNLOAD_STATE_UNKNOWN";return x};
at=function(x,L){return Ce0(x.entities,L)};
N6w=function(x){x=AYs(x);var L=x.hours===void 0?0:x.hours,D=x.minutes===void 0?0:x.minutes,S=x.seconds===void 0?0:x.seconds,Q=L>0;x=[];Q&&(L=$IO(L),x.push(L));L=Q;L=L===void 0?!1:L;D=(["af","be","lt"].includes(zD)||L)&&D<10?rY0().format(D):(new Intl.NumberFormat("en-u-nu-latn")).format(D);x.push(D);D=rY0().format(S);x.push(D);D=":";"da fi id si sr sr-Latn".split(" ").includes(zD)&&(D=".");return x.join(D)};
_.fJ0=function(x){x=AYs(x);var L=x.hours===void 0?0:x.hours,D=x.minutes===void 0?0:x.minutes,S=x.seconds===void 0?0:x.seconds;x=[];if(L>0){var Q=ip0().format({hours:L});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(zD)||L>9999)Q=Q.replace(L.toString(),$IO(L)),zD==="km"&&(Q=Q.replace(".",","));x.push(Q)}D>0&&x.push(ip0().format({minutes:D}));S>0&&x.push(ip0().format({seconds:S}));L="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");D=zD=="am"?"{0}\u1363 ":zD=="fa"?"{0}\u060c\u200f ":
zD=="my"?"{0} - ":zD=="ne"?"{0},":zD=="th"?"{0} ":zD=="ur"?"{0}\u060c ":zD=="ar"||zD=="ar-XB"?"{0} \u0648":zD=="ja"||zD=="zh-CN"||zD=="zh-HK"||zD=="zh-TW"?"{0}\u3001":"{0}, ";S=zD=="am"?"\u1363 ":zD=="fa"?"\u060c\u200f ":zD=="my"?" - ":zD=="th"?" ":zD=="ur"?"\u060c ":zD=="ar"||zD=="ar-XB"?" \u0648":zD=="ja"||zD=="zh-CN"||zD=="zh-HK"||zD=="zh-TW"?"\u3001":", ";Q=zD=="am"?" \u12a5\u1293 {0}":zD=="as"?" \u0986\u09f0\u09c1 {0}":zD=="az"?" v\u0259 {0}":zD=="bn"?" \u098f\u09ac\u0982 {0}":zD=="cs"?" a\u00a0{0}":
zD=="de"?" und {0}":zD=="el"?" \u03ba\u03b1\u03b9 {0}":zD=="eu"?" eta {0}":zD=="fa"?"\u060c \u0648 {0}":zD=="fil"?", at {0}":zD=="gu"?" \u0a85\u0aa8\u0ac7 {0}":zD=="hi"?", \u0914\u0930 {0}":zD=="hu"?" \u00e9s {0}":zD=="hy"?" \u0587 {0}":zD=="id"?", dan {0}":zD=="iw"?" \u05d5-{0}":zD=="ja"?"\u3001{0}":zD=="ka"?" \u10d3\u10d0 {0}":zD=="km"?" \u1793\u17b7\u1784 {0}":zD=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":zD=="ko"?" \ubc0f {0}":zD=="ky"?" \u0436\u0430\u043d\u0430 {0}":zD=="lt"?" ir {0}":zD==
"lv"?" un {0}":zD=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":zD=="mr"?" \u0906\u0923\u093f {0}":zD=="ms"?" dan {0}":zD=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":zD=="ne"?" \u0930 {0}":zD=="or"?", \u0b13 {0}":zD=="pa"?" \u0a05\u0a24\u0a47 {0}":zD=="ro"?" \u0219i {0}":zD=="si"?", \u0dc3\u0dc4 {0}":zD=="sk"?" a {0}":zD=="sl"?" in {0}":zD=="sq"?" dhe {0}":zD=="sv"?" och {0}":zD=="sw"?" na {0}":zD=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":zD=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":
zD=="th"?" \u0e41\u0e25\u0e30{0}":zD=="tr"?" ve {0}":zD=="ur"?"\u060c \u0627\u0648\u0631 {0}":zD=="uz"?" va {0}":zD=="vi"?" v\u00e0 {0}":zD=="zh-HK"?"\u53ca{0}":zD=="zu"?", ne-{0}":zD=="af"||zD=="nl"?" en {0}":zD=="ar"||zD=="ar-XB"?" \u0648{0}":zD=="be"||zD=="uk"?" \u0456 {0}":zD=="en-GB"||zD=="en-IN"?" and {0}":zD=="en"||zD=="en-XA"?", and {0}":zD=="et"||zD=="fi"?" ja {0}":zD=="fr"||zD=="fr-CA"?" et {0}":zD=="zh-CN"||zD=="zh-TW"?"\u548c{0}":zD=="da"||zD=="is"||zD=="no"?" og {0}":zD=="es"||zD=="es-419"||
zD=="es-US"?" y {0}":zD=="kk"||zD=="lo"||zD=="mn"?", {0}":zD=="bg"||zD=="mk"||zD=="ru"||zD=="sr"?" \u0438 {0}":zD=="gl"||zD=="it"||zD=="pt-BR"||zD=="pt-PT"?" e {0}":" i {0}";var J=zD=="am"?"{0} \u12a5\u1293 {1}":zD=="as"?"{0} \u0986\u09f0\u09c1 {1}":zD=="az"?"{0} v\u0259 {1}":zD=="bn"?"{0} \u098f\u09ac\u0982 {1}":zD=="de"?"{0} und {1}":zD=="el"?"{0} \u03ba\u03b1\u03b9 {1}":zD=="eu"?"{0} eta {1}":zD=="fa"?"{0} \u0648 {1}":zD=="fil"?"{0} at {1}":zD=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":zD=="hi"?"{0} \u0914\u0930 {1}":
zD=="hu"?"{0} \u00e9s {1}":zD=="hy"?"{0} \u0587 {1}":zD=="iw"?"{0} \u05d5-{1}":zD=="ja"?"{0}\u3001{1}":zD=="ka"?"{0} \u10d3\u10d0 {1}":zD=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":zD=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":zD=="kn"?"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":zD=="ko"?"{0} \ubc0f {1}":zD=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":zD=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":zD=="lt"?"{0} ir {1}":zD=="lv"?"{0} un {1}":zD=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":zD=="mn"?"{0}, {1}":zD==
"mr"?"{0} \u0906\u0923\u093f {1}":zD=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":zD=="ne"?"{0} \u0930 {1}":zD=="or"?"{0} \u0b13 {1}":zD=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":zD=="ro"?"{0} \u0219i {1}":zD=="si"?"{0} \u0dc3\u0dc4 {1}":zD=="sl"?"{0} in {1}":zD=="sq"?"{0} dhe {1}":zD=="sv"?"{0} och {1}":zD=="sw"?"{0} na {1}":zD=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":zD=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":zD=="th"?"{0}\u0e41\u0e25\u0e30{1}":zD=="tr"?"{0} ve {1}":zD=="ur"?
"{0} \u0627\u0648\u0631 {1}":zD=="uz"?"{0} va {1}":zD=="vi"?"{0} v\u00e0 {1}":zD=="zh-HK"?"{0}\u53ca{1}":zD=="zu"?"{0} ne-{1}":zD=="af"||zD=="nl"?"{0} en {1}":zD=="ar"||zD=="ar-XB"?"{0} \u0648{1}":zD=="be"||zD=="uk"?"{0} \u0456 {1}":zD=="cs"||zD=="sk"?"{0} a\u00a0{1}":zD=="et"||zD=="fi"?"{0} ja {1}":zD=="fr"||zD=="fr-CA"?"{0} et {1}":zD=="id"||zD=="ms"?"{0} dan {1}":zD=="zh-CN"||zD=="zh-TW"?"{0}\u548c{1}":zD=="da"||zD=="is"||zD=="no"?"{0} og {1}":zD=="es"||zD=="es-419"||zD=="es-US"?"{0} y {1}":zD==
"bg"||zD=="mk"||zD=="ru"||zD=="sr"?"{0} \u0438 {1}":zD=="en"||zD=="en-GB"||zD=="en-IN"||zD=="en-XA"?"{0} and {1}":zD=="gl"||zD=="it"||zD=="pt-BR"||zD=="pt-PT"?"{0} e {1}":"{0} i {1}";zD==="sq"?(Q=Q.replace("dhe","e"),J=J.replace("dhe","e")):zD==="th"?(S=S.replace("{0}"," {0}"),J=J.replace("{0}","{0} "),J=J.replace("{1}"," {1}")):zD==="ne"?S=",":zD==="zh-CN"?S="":L.includes(zD)&&(S=" ");return x.length<2?x.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(zD)?
x.length===2?J.replace("{0}",x[0]).replace("{1}",x[1]):D.replace("{0}",x[0])+x.slice(1,-1).join(S)+Q.replace("{0}",x[x.length-1]):x.join(S)};
AYs=function(x){var L=x.hours||0,D=x.minutes||0,S=x.seconds||0;L=S+D*60+L*3600+(x.days||0)*86400+(x.weeks||0)*604800+(x.months||0)*2629800+(x.years||0)*31557600;if(L<=0)return{hours:0,minutes:0,seconds:0};x=L;L=Math.floor(x/3600);x%=3600;D=Math.floor(x/60);S=Math.floor(x%60);return{hours:L,minutes:D,seconds:S}};
$IO=function(x){x=(new Intl.NumberFormat("en-u-nu-latn")).format(x);var L=["fr"],D="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(zD)?x.replace(",","\u00a0"):L.includes(zD)?x.replace(",","\u202f"):D.includes(zD)?x.replace(",","."):x};
rY0=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
ip0=function(){or0||(Xt=aJw,or0=new zyp);return or0};
Xy0=function(x){try{return(new _.ca(5)).format(x)}catch(L){}};
n7=function(x){return{thumbnailOverlayDownloadingRenderer:{state:x}}};
cYf=function(x){if(x=Xy0(x))return{thumbnailOverlaySidePanelRenderer:{text:_.ya(x),icon:{iconType:"PLAYLISTS"}}}};
nrn=function(){var x=_.p6("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.ya(x),icon:{iconType:"PLAY_ALL"}}}};
tP0=function(x){x=_.t2(x,2);return zD!=="ru"&&zD!=="es_419"&&zD!=="es-419"&&zD!=="es"&&zD!=="es_US"&&zD!=="es-US"&&zD!=="fr"&&zD!=="pl"&&zD!=="it"&&zD!=="nl"&&zD!=="uk"&&zD!=="fr_CA"&&zD!=="fr-CA"||x===""?x:x[0].toLocaleUpperCase()+x.substring(1)};
Llf=function(x){return function(L){var D=x(),S=_.t2(L,D.dateFormat);L=_.t2(L,D.timeFormat);var Q=xPf.DATETIMEFORMATS[D.joinerStyle];Q=Q.replace(/'(?!')/g,"");Q=Q.replace("{0}",L);Q=Q.replace("{1}",S);return D.capitalize(Q)}};
DPp=function(x){return x?typeof x.seconds==="string"&&(x.nanos===void 0||typeof x.nanos==="number"):!1};
SBf=function(x){return new Date(Number(x.seconds)*1E3+(x.nanos||0)*1E-6)};
_.t2=function(x,L){if(typeof x.getTime==="function")x={date:x};else if(DPp(x))x={date:SBf(x)};else if(typeof DPp(x.timestamp)&&typeof x.i18nInternalSecondsEastOfUtc==="number")x={date:SBf(x.timestamp),timeZone:x8(-x.i18nInternalSecondsEastOfUtc/60)};else throw Error("If`"+JSON.stringify(x));var D=x;x=D.date;D=D.timeZone;L=QU4(L).format(x,D);zD==="zh-TW"&&(x=D?Number(QU4("H").format(x,D)):x.getHours(),L=x<5?L.replace("\u4e0a\u5348","\u51cc\u6668"):x<8?L.replace("\u4e0a\u5348","\u65e9\u4e0a"):x<12?
L.replace("\u4e0a\u5348","\u4e0a\u5348"):x<13?L.replace("\u4e0b\u5348","\u4e2d\u5348"):x<19?L.replace("\u4e0b\u5348","\u4e0b\u5348"):L.replace("\u4e0b\u5348","\u665a\u4e0a"));return L};
QU4=function(x){if(Jzn.has(x))return Jzn.get(x);var L=KlG(x);L=OJf(L);ZJf!==!0&&(ZJf=!0);yzN=!0;yzN=!1;L=new LB(L,xPf);Jzn.set(x,L);return L};
KlG=function(x){return(new LB(x,xPf)).patternParts_.map(function(L){return L.type===0?"'"+L.text+"'":L.text}).join("")};
OJf=function(x){return zD==="en"||zD==="es_US"||zD==="es-US"?x:x.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(L,D,S){return"H".repeat(D.length)+S})};
vPb=function(x,L){IiN||(Xt=aJw,IiN=new EPn);var D=IiN;a:if(x=MZp(x),L=MZp(L||new Date),x>L)D=x.getTime()-L.getTime()>6048E5?_.t2(x,1):dPs(x);else{for(var S=0;PrG(x,12*(S+1))<L;)++S;if(S>0)D=D.format(-S,0);else{for(S=0;PrG(x,S+1)<L;)++S;if(S>0)D=D.format(-S,2);else{x=L.getTime()-x.getTime();L=_.O(jU0);for(S=L.next();!S.done;S=L.next()){S=S.value;var Q=S.unit,J=Math.floor(x/S.unitDuration);if(J>=(S.threshold===void 0?1:S.threshold)){D=D.format(-J,Q);break a}}D=D.format(-0,7)}}}return D};
MZp=function(x){if(typeof x.getTime==="function")return x;if(DPp(x))return SBf(x);throw Error("Jf`"+JSON.stringify(x));};
PrG=function(x,L){for(var D=0,S;;++D)if(S=new Date(x.getFullYear(),x.getMonth()+L,x.getDate()-D,x.getHours(),x.getMinutes(),x.getSeconds()),S.getMonth()===(x.getMonth()+L)%12)return S};
_.Dv=function(x){return{runs:[{text:x}]}};
_.SR=function(x){if(x&&x.simpleText)return x.simpleText;var L="";if(x&&x.runs)for(var D=0;D<x.runs.length;D++)x.runs[D].text&&(L+=x.runs[D].text);return L};
hY4=function(x,L,D,S){return x.videoEntity&&!x.policyEntity&&D!=="DOWNLOAD_STATE_FAILED"?[n7("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:s4(x.policyEntity)&&L!=="TRANSFER_STATE_FAILED"&&L!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?L==="TRANSFER_STATE_PAUSED_BY_USER"?[n7("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.TD(L)?[n7("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:x.videoEntity.lengthSeconds?VZG(x.videoEntity.lengthSeconds,S):[]:
[n7("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
VZG=function(x,L){var D=[{thumbnailOverlayTimeStatusRenderer:{text:_.ya(N6w({seconds:x})),style:"DEFAULT"}}];L&&(x=L<=0||x<=0?0:L>=x?100:Math.ceil(L*100/x),x>0&&D.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:x}}));return D};
HJ4=function(x,L,D,S,Q){if(L==="TRANSFER_STATE_UNKNOWN"||!x)return{};if(_.TD(L)||L==="TRANSFER_STATE_PRE_TRANSFER")var J=[n7("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var Z,y;if(L==="TRANSFER_STATE_COMPLETE"&&((Z=x.mainPlaylistEntity)==null?0:(y=Z.videos)==null?0:y.length)){if(_.u("web_modern_collections_v2")){var E;var P=(J=x.mainPlaylistEntity)==null?void 0:(E=J.videos)==null?void 0:E.length;J=(J=Xy0(P))?{thumbnailOverlayBottomPanelRenderer:{text:_.ya(J),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var v;J=cYf((P=x.mainPlaylistEntity)==null?void 0:(v=P.videos)==null?void 0:v.length)}var V;J=[nrn(),Object.assign({},(V=J)!=null?V:{})]}else J=[]}V=J;a:if(L==="TRANSFER_STATE_PRE_TRANSFER")D=It(_.p6("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(L==="TRANSFER_STATE_TRANSFER_IN_QUEUE")D=It(_.p6("WAITING_TO_DOWNLOAD"));else if(_.TD(L))D=Math.floor(D*100).toString(),D=It(_.p6("DOWNLOADING_PERCENT",{percent:D},"Downloading... "+D+"%"));else{if(S&&(_.u("playlist_is_offline_selector_killswitch")&&
(Q=_.yY().resolve(_.cW).isNetworkAvailable()),Q)){D=pgn(_.p6("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),gK3(S));break a}D=void 0}L=L==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.p6("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},V.length?{thumbnailOverlays:V}:{},D?{viewPlaylistText:D}:{viewPlaylistText:_.Dv("")},L.length?{badges:L}:{})};
uW0=function(x,L,D,S,Q,J){if(L==="TRANSFER_STATE_UNKNOWN"||!x)return{};if(S==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var Z=hY4(x,L,S);if(x.videoEntity&&!x.policyEntity&&S!=="DOWNLOAD_STATE_FAILED"){var y=_.p6("WAITING_TO_DOWNLOAD");if(y)return{shortViewCountText:_.Dv(y),publishedTimeText:void 0,thumbnailOverlays:Z}}if(!s4(x.policyEntity)){J=x.policyEntity&&!vhN(x.policyEntity)?_.p6("DOWNLOAD_EXPIRED",{},"Download expired"):
_.p6("TRANSFER_FAILED",{},"Download failed");var E;if((E=x.policyEntity)==null?0:E.shortMessageForDisabledAction)J=x.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:It(J),publishedTimeText:void 0,thumbnailOverlays:Z}}if(L==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.Dv(_.p6("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:Z};if(L==="TRANSFER_STATE_FAILED"||L==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.Dv(_.p6("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:Z};if(L==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(E=_.p6("WAITING_TO_DOWNLOAD"),S==="DOWNLOAD_STATE_PAUSED"&&(E=_.p6("DOWNLOAD_PAUSED",{},"Download paused")),E))return{shortViewCountText:_.Dv(E),publishedTimeText:void 0,thumbnailOverlays:Z};if(_.TD(L))return x=Math.floor(D*100).toString(),{shortViewCountText:_.Dv(_.p6("DOWNLOADING_PERCENT",{percent:x},"Downloading... "+x+"%")),publishedTimeText:void 0,thumbnailOverlays:Z};L=void 0;x.videoEntity.publishedTimestampMillis&&
(L=new Date,Q&&(L=new Date(Q)),L=It(vPb(new Date(Number(x.videoEntity.publishedTimestampMillis)),L)));Q=[];_.u("kevlar_woffle_badge_killswitch")||(Q=[{metadataBadgeRenderer:{label:_.p6("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var P;x=It((P=x.videoEntity.localizedStrings)==null?void 0:P.viewCount);return Object.assign({},J?{shortViewCountText:void 0}:{shortViewCountText:x},J?{}:{publishedTimeText:L},{badges:Q,thumbnailOverlays:Z})};
kZb=function(x,L){x=x===void 0?_.gPs:x;switch(L.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:L.payload.playlistId,inviteLinkURL:L.payload.inviteLinkUrl};default:return x}};
mPf=function(x,L){x=x===void 0?_.p9s:x;switch(L.type){case "SET_CURRENT_FORM_ID":return L=L.payload.formId,x.currentFormId===L?x:{currentFormId:L,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var D=L.payload;L=D.groupId;D=D.command;if(x.currentFormId){var S=Object.assign({},x.commandsMap);S[L]=D;x=Object.assign({},x,{commandsMap:S})}return x;case "RESET_COMMAND_MAP":return Object.assign({},x,{commandsMap:{}});default:return x}};
YBf=function(x,L){x=x===void 0?_.bJb:x;switch(L.type){case "UPDATE_CANVAS_MODE":return Object.assign({},x,{currentMode:L.payload.currentMode});default:return x}};
sUc=function(x,L){x=x===void 0?_.Fls:x;switch(L.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},x,{guideIsExpanded:L.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},x,{scrollAtTop:L.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},x,{guideIsVisibleButNotPersistent:L.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},x,{miniplayerIsActive:L.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},x,{singleOptionSurveyIsActive:L.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},x,{slimlineSurveyRatingSelectedIndex:L.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},x,{richGridMiniMode:L.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},x,{richGridItemsPerRow:L.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},x,{richGridSlimItemsPerRow:L.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},x,{richGridContainerWidth:L.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},x,{richGridStyle:L.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},x,{currentPageType:L.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},x,{inlinePreviewIsActive:L.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},x,{inlinePreviewIsEnabled:L.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},x,{darkModeIsEnabled:L.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
x,{miniplayerPlaybackState:L.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},x,{tabGesturesIsActive:L.payload});case "SET_ONLINE_STATUS":return Object.assign({},x,{isOnline:L.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},x,{chipBarIsSticky:L.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},x,{frostedGlassMode:L.payload});default:return x}};
Ts3=function(){return _.u("kevlar_disable_theater_mode_persistence")?!1:_.rO("START_IN_THEATER_MODE")};
Zfw=function(x,L){x=x===void 0?_.eYf:x;switch(L.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},x,{transcription:L.payload});case "SET_OVERLAY_STATE":return Object.assign({},x,{overlay:L.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return x}};
hTc=function(){return k7(Object.assign({},{continuation:yTf,download:Idf,canvas:YBf,reportChannelAbuse:Es4,share:MQw,talkToRecs:dKN,ui:sUc,voiceSearch:Zfw,watch:PHb,ypc:jkh,shorts:vsb,radioButtonGroup:mPf,collabInviteLink:kZb},VQ4))};
gsc=function(){return _.u("web_player_entities_middleware")?new Qy(hTc(),[Hfs,uzs]):new Qy(hTc(),[Hfs])};
_.Jd=function(){kMO||(kMO=gsc());return kMO};
pGp=function(x,L,D){if(x.length)return{titleText:_.ya(L!=null?L:_.p6("DOWNLOADS",void 0,"Downloads")),contents:x.map(function(S){var Q=S.videoEntity;S={videoId:Q.videoId,title:It(Q.title),shortBylineText:It(S.channelEntity.title),thumbnail:Q.thumbnail};var J=Q.videoId?at(_.Jd().getState(),Q.videoId):0;Q.videoId&&D?S.navigationEndpoint=_.Zo(Q.videoId,D,void 0,void 0,J):Q.videoId&&(S.navigationEndpoint=un0(Q.videoId,J,Q.lengthSeconds));Q.lengthSeconds&&(S.thumbnailOverlays=VZG(Q.lengthSeconds,J));return{playlistPanelVideoRenderer:S}}),
totalVideos:x.length}};
mKO=function(x){return(x=(0,_.wk.getValueByKeys)(x,"playlistId"))?{playlistId:x}:null};
bfs=function(){return{}};
YVc=function(x,L){return new _.HI(function(D,S){x.then(function(Q){if(Q){if(Q=L(Q))return D(Q);S()}},S)})};
Fw0=function(x){var L,D,S,Q=(L=x.contents)==null?void 0:(D=L.twoColumnWatchNextResults)==null?void 0:(S=D.autoplay)==null?void 0:S.autoplay,J,Z,y;L=(J=x.contents)==null?void 0:(Z=J.twoColumnWatchNextResults)==null?void 0:(y=Z.playlist)==null?void 0:y.playlist;return Q&&L&&L.playlistId?{rawResponse:x,autoplayRenderer:Q,playlistPanelRenderer:L,playlistId:L.playlistId}:null};
TU0=function(x){var L=L===void 0?"UNKNOWN_INTERFACE":L;if(x.length===1)return x[0];var D=skw[L];if(D){D=new RegExp(D);for(var S=_.O(x),Q=S.next();!Q.done;Q=S.next())if(Q=Q.value,D.exec(Q))return Q}var J=[];Object.entries(skw).forEach(function(Z){var y=_.O(Z);Z=y.next().value;y=y.next().value;L!==Z&&J.push(y)});
D=new RegExp(J.join("|"));x.sort(function(Z,y){return Z.length-y.length});
S=_.O(x);for(Q=S.next();!Q.done;Q=S.next())if(Q=Q.value,!D.exec(Q))return Q;return x[0]};
_.KB=function(x){return"/youtubei/v1/"+TU0(x)};
_.Zv=function(x,L){return{openPopupAction:Object.assign({},{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:x}}},L!==void 0?{durationHintMs:L}:{})}};
_.yy=function(x,L){return _.Zv(_.Dv(x),L)};
eTh=function(x,L){var D={mode:"NORMAL"};x&&(D.autoplayVideo=x.navigationEndpoint,D.nextButtonVideo=x.navigationEndpoint);L&&(D.previousButtonVideo=L.navigationEndpoint);return D};
CHh=function(x,L,D){if(!D||!D.sets)return{sets:[eTh(x,L)]};var S=D.sets.find(function(Z){return Z.mode==="NORMAL"}),Q=(0,_.wk.unsafeClone)(D);
if(!S)return Q.sets.push(eTh(x,L)),Q;if(!x)return D;S=_.wk.getValueByKeys.apply(null,[S].concat(_.lP(RTh)));var J=_.wk.getValueByKeys.apply(null,[x].concat(_.lP(GM3)));if(S===J)return D;Q.sets=Q.sets.filter(function(Z){return Z.mode!=="NORMAL"});
Q.sets.push(eTh(x,L));return Q};
ldN=function(x){return!!x.playlistPanelVideoRenderer&&!x.playlistPanelVideoRenderer.unplayableText};
UKs=function(x){return!!x.playlistPanelVideoRenderer&&!!x.playlistPanelVideoRenderer.title};
wGp=function(x,L){if(L.contents&&!(x>=L.contents.length)&&(x=L.contents.slice(x).find(ldN)))return x.playlistPanelVideoRenderer};
BU0=function(x,L){if(L.contents)return(L=L.contents.find(function(D){return!!D.playlistPanelVideoRenderer&&D.playlistPanelVideoRenderer.videoId===x}))?L.playlistPanelVideoRenderer:void 0};
Wwp=function(x,L){return L.contents?L.contents.findIndex(function(D){return!!D.playlistPanelVideoRenderer&&D.playlistPanelVideoRenderer.videoId===x}):-1};
qV4=function(x,L){return L.contents?L.contents.findIndex(function(D){return!!D.playlistPanelVideoRenderer&&D.playlistPanelVideoRenderer.playlistSetVideoId===x}):-1};
AT4=function(x,L){x.contents&&L!==-1&&x.contents.splice(L,1).length===1&&x.totalVideos!==void 0&&(--x.totalVideos,delete x.videoCountText)};
_.$Kf=function(x){var L=[];if(!x||!x.contents)return L;x=_.O(x.contents);for(var D=x.next();!D.done;D=x.next())D=D.value,D.playlistPanelVideoRenderer&&D.playlistPanelVideoRenderer.videoId&&L.push(D.playlistPanelVideoRenderer.videoId);return L};
_.rTb=function(x){if(x&&x.contents)return(x=x.contents.find(function(L){return!!L.playlistPanelVideoRenderer&&!!L.playlistPanelVideoRenderer.selected})||x.contents[x.currentIndex])?x.playlistPanelVideoRenderer:void 0};
NU0=function(x,L,D,S,Q,J,Z){Q=Q===void 0?!1:Q;J=J===void 0?!1:J;Z=Z===void 0?!1:Z;if(x.contents&&x.contents.length!==0){S&&(x.contents=x.contents.filter(S));S=x.contents.length;for(var y=0;y<S;y++){var E=x.contents[y].playlistPanelVideoRenderer;E&&(y===L?(J&&delete E.menu,E.indexText=_.Dv("\u25b6")):Q||x.isInfinite||E.indexText===void 0?delete E.indexText:E.indexText=_.Dv((y+1+D).toString()))}x.currentIndex=L+D;Z&&(delete x.videoCountText,x.totalVideos=S)}};
_.Iq=function(x){x=ifn(x);if(x){var L=x.length;var D=-18%L;D<0&&(D=L+D);x=x.slice(L-D)+x.slice(0,L-D)}else x="";D="";for(L=0;L<x.length&&x[L]!==fdN;L++)D+=x[L];return D};
_.osG=function(x,L){var D=document.body;L=L===void 0?function(y){return y}:L;
var S,Q=null;x=_.O(x);for(S=x.next();!S.done;S=x.next()){var J=S.value;S="div";J[2]&&(S=L(J[2]));S=document.createElement(S);Q||(Q=S);var Z=J[0];J=J[1];Z&&(S.id=L(Z));if(J)for(J=_.O(J),Z=J.next();!Z.done;Z=J.next())S.classList.add(L(Z.value));D.appendChild(S);D=S}return[Q,D]};
adp=function(x,L){for(var D="",S=0;S<L;S++)D+=x.charAt(Math.floor(Math.random()*x.length));return D};
EO=function(x){return adp("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",x)};
MB=function(x){return adp("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",x)};
dY=function(x){return adp("0123456789",x)};
zTb=function(){var x=performance.now(),L=new Date;var D="2."+L.getFullYear()+String(L.getMonth()+1).padStart(2,"0")+String(L.getDate()).padStart(2,"0");for(var S,Q=Math.floor(Math.random()*11)+15,J=[],Z=0;Z<Q;Z++)J.push(Math.floor(Math.random()*26476865)+24547720);S=J.join(",");var y=EO(10),E=EO(100),P=EO(102),v=EO(106),V=EO(108),h=EO(11),H=EO(1140),k=EO(123),T=EO(14),G=EO(16),U=EO(1900),l=EO(23),X=EO(26),f=EO(34),N=EO(397),z=EO(44),xf=EO(5),K3=EO(72),P4=EO(74),kf=EO(75),H4=EO(88),p3=EO(91),w0="rr1---sn-q4flrn7r rr1---sn-5hneknek rr3---sn-aigl6nsd rr3---sn-hgn7rnee rr1---sn-aigzrnld rr2---sn-q4flrne7 rr1---sn-5hne6nzs rr5---sn-q4flrne6 rr1---sn-5hne6n6l rr2---sn-q4flrner rr1---sn-q4flrnsk rr4---sn-q4fl6n6d rr1---sn-q4flrnez rr4---sn-q4fl6nsd rr2---sn-t0a7lnee rr4---sn-q4fl6nz7 rr5---sn-aigl6n6s rr5---sn-ntqe6nel rr3---sn-aigl6nl7 rr3---sn-q4fzenee".split(" ");
var Rn=w0[Math.floor(Math.random()*w0.length)];var lG=(new Date("2010-01-01")).getTime();var xX=(new Date(lG+Math.random()*((new Date).getTime()-lG))).toISOString().split("T")[0];for(var UR,c4=[],hr=0;hr<4;hr++)c4.push(Math.floor(Math.random()*100));UR=c4.join(".");var GB=Number(dY(5)),C2=Number(dY(6)),X9=Number(dY(7)),vs=Number(dY(9)),Zp=dY(1),K2=dY(10),F2=dY(16),II=dY(19),jW=dY(2),J5=dY(20),Eq=dY(21),zB=dY(3),ER=dY(4),qh=dY(5),g$=dY(6),p2=dY(7),uG=dY(8),h5=dY(9);var x2=adp("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var YX=[MB(5),MB(5),MB(5)].join("%2C"),$2=[dY(3),dY(5),dY(5)].join("%2C"),zG=MB(0),K8=MB(1),oi=MB(10),kX=MB(108),n2=MB(11),Vo=MB(12),hx=MB(13),Ge=MB(14),nw=MB(15),nZ=MB(16),OO=MB(17),sw=MB(18),W4=MB(19),f3=MB(2),vC=MB(20),Ps=MB(22),eN=MB(23),F9=MB(24),HC=MB(266),VQ=MB(3),w$=MB(30),Hi=MB(34),dA=MB(35),sq=MB(36),tx=MB(4),qe=MB(40),ou=MB(43),Xd=MB(47),pG=MB(5),u8=MB(6),TV=MB(7),Yy=MB(75),an=MB(8),pl=MB(80),Uu=MB(9),Ou="https://www."+MB(12)+".com",Mp={},aD={},$a={},tH={},sv={},Wl={},q7={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:S}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:D},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+MB(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:D},{key:"client.name",value:"WEB"},{key:"client.fexp",value:S}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:Eq+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+MB(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:qe,ypcGetOfflineUpsellEndpoint:{params:pl}},trackingParams:dA+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+Rn+".googlevideo.com/videoplayback?expire="+K2+"&ei="+l+"&ip="+UR+"&id=o-AF"+ou+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+$2+"&mn="+YX+"&ms="+YX+"&mv="+K8+"&mvi="+Zp+"&pl="+jW+"&initcwndbps="+p2+"&siu="+Zp+"&spc="+z+"&vprv="+Zp+"&svpuc="+Zp+"&mime=video%2Fmp4&ns="+F9+"&cnr="+jW+"&ratebypass=yes&dur="+uG+"&lmt="+F2+"&mt="+K2+"&fvip=3&c=WEB&txp="+p2+"&n="+G+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
V+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:C2,width:640,height:360,lastModified:F2,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:p2,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+Rn+".googlevideo.com/videoplayback?expire="+K2+"&ei="+l+"&ip="+UR+"&id=o-AF"+ou+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+$2+"&mn="+
YX+"&ms="+YX+"&mv="+K8+"&mvi="+Zp+"&pl="+jW+"&initcwndbps="+p2+"&siu="+Zp+"&spc="+z+"&vprv="+Zp+"&svpuc="+Zp+"&mime=video%2Fmp4&ns="+F9+"&cnr="+jW+"&ratebypass=yes&dur="+uG+"&lmt="+F2+"&mt="+K2+"&fvip=3&c=WEB&txp="+p2+"&n="+G+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+kX+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:C2,width:1280,
height:720,lastModified:F2,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:p2,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+Rn+".googlevideo.com/videoplayback?expire="+K2+"&ei="+l+"&ip="+UR+"&id=o-AF"+ou+"&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="+$2+"&mn="+YX+"&ms="+
YX+"&mv="+K8+"&mvi="+Zp+"&pl="+jW+"&initcwndbps="+p2+"&siu="+Zp+"&spc="+z+"&vprv="+Zp+"&svpuc="+Zp+"&mime=video%2Fmp4&ns="+F9+"&gir="+VQ+"&clen="+h5+"&dur="+uG+"&lmt="+F2+"&mt="+K2+"&fvip=3&keepalive="+VQ+"&c=WEB&txp="+p2+"&n="+nZ+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+E+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:X9,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:zB,end:ER},lastModified:F2,contentLength:h5,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:X9,approxDurationMs:p2},{itag:248,url:"https://"+Rn+".googlevideo.com/videoplayback?expire="+K2+"&ei="+l+"&ip="+UR+"&id=o-AF"+ou+"&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="+$2+"&mn="+YX+"&ms="+YX+"&mv="+
K8+"&mvi="+Zp+"&pl="+jW+"&initcwndbps="+p2+"&siu="+Zp+"&spc="+z+"&vprv="+Zp+"&svpuc="+Zp+"&mime=video%2Fwebm&ns="+F9+"&gir="+VQ+"&clen="+h5+"&dur="+uG+"&lmt="+F2+"&mt="+K2+"&fvip=3&keepalive="+VQ+"&c=WEB&txp="+p2+"&n="+nZ+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+v+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/webm; codecs="vp9"',bitrate:X9,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:zB,end:ER},lastModified:F2,contentLength:h5,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:X9,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:p2},{itag:399,url:"https://"+Rn+".googlevideo.com/videoplayback?expire="+K2+"&ei="+l+"&ip="+UR+"&id=o-AF"+ou+"&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="+
$2+"&mn="+YX+"&ms="+YX+"&mv="+K8+"&mvi="+Zp+"&pl="+jW+"&initcwndbps="+p2+"&siu="+Zp+"&spc="+z+"&vprv="+Zp+"&svpuc="+Zp+"&mime=video%2Fmp4&ns="+F9+"&gir="+VQ+"&clen="+h5+"&dur="+uG+"&lmt="+F2+"&mt="+K2+"&fvip=3&keepalive="+VQ+"&c=WEB&txp="+p2+"&n="+nZ+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+E+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:X9,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:zB,end:ER},lastModified:F2,contentLength:h5,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:X9,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:p2},{itag:136,url:"https://"+Rn+".googlevideo.com/videoplayback?expire="+K2+"&ei="+l+"&ip="+UR+"&id=o-AF"+ou+"&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="+
$2+"&mn="+YX+"&ms="+YX+"&mv="+K8+"&mvi="+Zp+"&pl="+jW+"&initcwndbps="+p2+"&siu="+Zp+"&spc="+z+"&vprv="+Zp+"&svpuc="+Zp+"&mime=video%2Fmp4&ns="+F9+"&gir="+VQ+"&clen="+h5+"&dur="+uG+"&lmt="+F2+"&mt="+K2+"&fvip=3&keepalive="+VQ+"&c=WEB&txp="+p2+"&n="+nZ+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+V+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:X9,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:zB,end:ER},lastModified:F2,contentLength:h5,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:C2,approxDurationMs:p2},{itag:247,url:"https://"+Rn+".googlevideo.com/videoplayback?expire="+K2+"&ei="+l+"&ip="+UR+"&id=o-AF"+ou+"&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="+$2+"&mn="+
YX+"&ms="+YX+"&mv="+K8+"&mvi="+Zp+"&pl="+jW+"&initcwndbps="+p2+"&siu="+Zp+"&spc="+z+"&vprv="+Zp+"&svpuc="+Zp+"&mime=video%2Fwebm&ns="+F9+"&gir="+VQ+"&clen="+h5+"&dur="+uG+"&lmt="+F2+"&mt="+K2+"&fvip=3&keepalive="+VQ+"&c=WEB&txp="+p2+"&n="+nZ+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+V+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/webm; codecs="vp9"',bitrate:X9,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:zB,end:ER},lastModified:F2,contentLength:h5,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:C2,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:p2},{itag:398,url:"https://"+Rn+".googlevideo.com/videoplayback?expire="+K2+"&ei="+l+"&ip="+UR+"&id=o-AF"+ou+"&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="+
$2+"&mn="+YX+"&ms="+YX+"&mv="+K8+"&mvi="+Zp+"&pl="+jW+"&initcwndbps="+p2+"&siu="+Zp+"&spc="+z+"&vprv="+Zp+"&svpuc="+Zp+"&mime=video%2Fmp4&ns="+F9+"&gir="+VQ+"&clen="+h5+"&dur="+uG+"&lmt="+F2+"&mt="+K2+"&fvip=3&keepalive="+VQ+"&c=WEB&txp="+p2+"&n="+nZ+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+V+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:X9,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:zB,end:ER},lastModified:F2,contentLength:h5,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:C2,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:p2},{itag:135,url:"https://"+Rn+".googlevideo.com/videoplayback?expire="+K2+"&ei="+l+"&ip="+UR+"&id=o-AF"+ou+"&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="+
$2+"&mn="+YX+"&ms="+YX+"&mv="+K8+"&mvi="+Zp+"&pl="+jW+"&initcwndbps="+p2+"&siu="+Zp+"&spc="+z+"&vprv="+Zp+"&svpuc="+Zp+"&mime=video%2Fmp4&ns="+F9+"&gir="+VQ+"&clen="+uG+"&dur="+uG+"&lmt="+F2+"&mt="+K2+"&fvip=3&keepalive="+VQ+"&c=WEB&txp="+p2+"&n="+nZ+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+V+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:C2,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:zB,end:ER},lastModified:F2,contentLength:uG,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:C2,approxDurationMs:p2},{itag:244,url:"https://"+Rn+".googlevideo.com/videoplayback?expire="+K2+"&ei="+l+"&ip="+UR+"&id=o-AF"+ou+"&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="+$2+"&mn="+
YX+"&ms="+YX+"&mv="+K8+"&mvi="+Zp+"&pl="+jW+"&initcwndbps="+p2+"&siu="+Zp+"&spc="+z+"&vprv="+Zp+"&svpuc="+Zp+"&mime=video%2Fwebm&ns="+F9+"&gir="+VQ+"&clen="+uG+"&dur="+uG+"&lmt="+F2+"&mt="+K2+"&fvip=3&keepalive="+VQ+"&c=WEB&txp="+p2+"&n="+nZ+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+kX+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/webm; codecs="vp9"',bitrate:C2,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:zB,end:ER},lastModified:F2,contentLength:uG,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:C2,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:p2},{itag:397,url:"https://"+Rn+".googlevideo.com/videoplayback?expire="+K2+"&ei="+l+"&ip="+UR+"&id=o-AF"+ou+"&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="+
$2+"&mn="+YX+"&ms="+YX+"&mv="+K8+"&mvi="+Zp+"&pl="+jW+"&initcwndbps="+p2+"&siu="+Zp+"&spc="+z+"&vprv="+Zp+"&svpuc="+Zp+"&mime=video%2Fmp4&ns="+F9+"&gir="+VQ+"&clen="+uG+"&dur="+uG+"&lmt="+F2+"&mt="+K2+"&fvip=3&keepalive="+VQ+"&c=WEB&txp="+p2+"&n="+nZ+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+E+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:C2,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:zB,end:ER},lastModified:F2,contentLength:uG,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:C2,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:p2},{itag:134,url:"https://"+Rn+".googlevideo.com/videoplayback?expire="+K2+"&ei="+l+"&ip="+UR+"&id=o-AF"+ou+"&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="+
$2+"&mn="+YX+"&ms="+YX+"&mv="+K8+"&mvi="+Zp+"&pl="+jW+"&initcwndbps="+p2+"&siu="+Zp+"&spc="+z+"&vprv="+Zp+"&svpuc="+Zp+"&mime=video%2Fmp4&ns="+F9+"&gir="+VQ+"&clen="+uG+"&dur="+uG+"&lmt="+F2+"&mt="+K2+"&fvip=3&keepalive="+VQ+"&c=WEB&txp="+p2+"&n="+nZ+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+V+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:C2,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:zB,end:ER},lastModified:F2,contentLength:uG,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:C2,highReplication:!0,approxDurationMs:p2},{itag:243,url:"https://"+Rn+".googlevideo.com/videoplayback?expire="+K2+"&ei="+l+"&ip="+UR+"&id=o-AF"+ou+"&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="+
$2+"&mn="+YX+"&ms="+YX+"&mv="+K8+"&mvi="+Zp+"&pl="+jW+"&initcwndbps="+p2+"&siu="+Zp+"&spc="+z+"&vprv="+Zp+"&svpuc="+Zp+"&mime=video%2Fwebm&ns="+F9+"&gir="+VQ+"&clen="+uG+"&dur="+uG+"&lmt="+F2+"&mt="+K2+"&fvip=3&keepalive="+VQ+"&c=WEB&txp="+p2+"&n="+nZ+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+v+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/webm; codecs="vp9"',bitrate:C2,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:zB,end:ER},lastModified:F2,contentLength:uG,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:C2,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:p2},{itag:396,url:"https://"+Rn+".googlevideo.com/videoplayback?expire="+K2+"&ei="+l+"&ip="+UR+"&id=o-AF"+ou+"&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="+
$2+"&mn="+YX+"&ms="+YX+"&mv="+K8+"&mvi="+Zp+"&pl="+jW+"&initcwndbps="+p2+"&siu="+Zp+"&spc="+z+"&vprv="+Zp+"&svpuc="+Zp+"&mime=video%2Fmp4&ns="+F9+"&gir="+VQ+"&clen="+uG+"&dur="+uG+"&lmt="+F2+"&mt="+K2+"&fvip=3&keepalive="+VQ+"&c=WEB&txp="+p2+"&n="+nZ+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+V+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:C2,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:zB,end:ER},lastModified:F2,contentLength:uG,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:C2,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:p2},{itag:133,url:"https://"+Rn+".googlevideo.com/videoplayback?expire="+K2+"&ei="+l+"&ip="+UR+"&id=o-AF"+ou+"&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="+
$2+"&mn="+YX+"&ms="+YX+"&mv="+K8+"&mvi="+Zp+"&pl="+jW+"&initcwndbps="+p2+"&siu="+Zp+"&spc="+z+"&vprv="+Zp+"&svpuc="+Zp+"&mime=video%2Fmp4&ns="+F9+"&gir="+VQ+"&clen="+uG+"&dur="+uG+"&lmt="+F2+"&mt="+K2+"&fvip=3&keepalive="+VQ+"&c=WEB&txp="+p2+"&n="+nZ+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+V+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:C2,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:zB,end:ER},lastModified:F2,contentLength:uG,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:C2,approxDurationMs:p2},{itag:242,url:"https://"+Rn+".googlevideo.com/videoplayback?expire="+K2+"&ei="+l+"&ip="+UR+"&id=o-AF"+ou+"&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="+$2+"&mn="+
YX+"&ms="+YX+"&mv="+K8+"&mvi="+Zp+"&pl="+jW+"&initcwndbps="+p2+"&siu="+Zp+"&spc="+z+"&vprv="+Zp+"&svpuc="+Zp+"&mime=video%2Fwebm&ns="+F9+"&gir="+VQ+"&clen="+uG+"&dur="+uG+"&lmt="+F2+"&mt="+K2+"&fvip=3&keepalive="+VQ+"&c=WEB&txp="+p2+"&n="+nZ+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+V+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/webm; codecs="vp9"',bitrate:C2,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:zB,end:ER},lastModified:F2,contentLength:uG,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:C2,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:p2},{itag:395,url:"https://"+Rn+".googlevideo.com/videoplayback?expire="+K2+"&ei="+l+"&ip="+UR+"&id=o-AF"+ou+"&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="+
$2+"&mn="+YX+"&ms="+YX+"&mv="+K8+"&mvi="+Zp+"&pl="+jW+"&initcwndbps="+p2+"&siu="+Zp+"&spc="+z+"&vprv="+Zp+"&svpuc="+Zp+"&mime=video%2Fmp4&ns="+F9+"&gir="+VQ+"&clen="+uG+"&dur="+uG+"&lmt="+F2+"&mt="+K2+"&fvip=3&keepalive="+VQ+"&c=WEB&txp="+p2+"&n="+nZ+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+V+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:C2,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:zB,end:ER},lastModified:F2,contentLength:uG,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:C2,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:p2},{itag:160,url:"https://"+Rn+".googlevideo.com/videoplayback?expire="+K2+"&ei="+l+"&ip="+UR+"&id=o-AF"+ou+"&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="+
$2+"&mn="+YX+"&ms="+YX+"&mv="+K8+"&mvi="+Zp+"&pl="+jW+"&initcwndbps="+p2+"&siu="+Zp+"&spc="+z+"&vprv="+Zp+"&svpuc="+Zp+"&mime=video%2Fmp4&ns="+F9+"&gir="+VQ+"&clen="+uG+"&dur="+uG+"&lmt="+F2+"&mt="+K2+"&fvip=3&keepalive="+VQ+"&c=WEB&txp="+p2+"&n="+nZ+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+v+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:C2,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:zB,end:ER},lastModified:F2,contentLength:uG,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:GB,approxDurationMs:p2},{itag:278,url:"https://"+Rn+".googlevideo.com/videoplayback?expire="+K2+"&ei="+l+"&ip="+UR+"&id=o-AF"+ou+"&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="+$2+"&mn="+
YX+"&ms="+YX+"&mv="+K8+"&mvi="+Zp+"&pl="+jW+"&initcwndbps="+p2+"&siu="+Zp+"&spc="+z+"&vprv="+Zp+"&svpuc="+Zp+"&mime=video%2Fwebm&ns="+F9+"&gir="+VQ+"&clen="+uG+"&dur="+uG+"&lmt="+F2+"&mt="+K2+"&fvip=3&keepalive="+VQ+"&c=WEB&txp="+p2+"&n="+nZ+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+V+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/webm; codecs="vp9"',bitrate:C2,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:zB,end:ER},lastModified:F2,contentLength:uG,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:GB,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:p2},{itag:394,url:"https://"+Rn+".googlevideo.com/videoplayback?expire="+K2+"&ei="+l+"&ip="+UR+"&id=o-AF"+ou+"&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="+
$2+"&mn="+YX+"&ms="+YX+"&mv="+K8+"&mvi="+Zp+"&pl="+jW+"&initcwndbps="+p2+"&siu="+Zp+"&spc="+z+"&vprv="+Zp+"&svpuc="+Zp+"&mime=video%2Fmp4&ns="+F9+"&gir="+VQ+"&clen="+uG+"&dur="+uG+"&lmt="+F2+"&mt="+K2+"&fvip=3&keepalive="+VQ+"&c=WEB&txp="+p2+"&n="+nZ+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+E+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:GB,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:zB,end:ER},lastModified:F2,contentLength:uG,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:GB,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:p2},{itag:140,url:"https://"+Rn+".googlevideo.com/videoplayback?expire="+K2+"&ei="+l+"&ip="+UR+"&id=o-AF"+ou+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
$2+"&mn="+YX+"&ms="+YX+"&mv="+K8+"&mvi="+Zp+"&pl="+jW+"&initcwndbps="+p2+"&siu="+Zp+"&spc="+z+"&vprv="+Zp+"&svpuc="+Zp+"&mime=audio%2Fmp4&ns="+F9+"&gir="+VQ+"&clen="+uG+"&dur="+uG+"&lmt="+F2+"&mt="+K2+"&fvip=3&keepalive="+VQ+"&c=WEB&txp="+p2+"&n="+nZ+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+v+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:C2,
initRange:{start:"0",end:"631"},indexRange:{start:zB,end:ER},lastModified:F2,contentLength:uG,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:C2,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:p2,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+Rn+".googlevideo.com/videoplayback?expire="+K2+"&ei="+l+"&ip="+UR+"&id=o-AF"+ou+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+$2+"&mn="+YX+"&ms="+YX+"&mv="+K8+"&mvi="+Zp+"&pl="+
jW+"&initcwndbps="+p2+"&siu="+Zp+"&spc="+z+"&vprv="+Zp+"&svpuc="+Zp+"&mime=audio%2Fwebm&ns="+F9+"&gir="+VQ+"&clen="+p2+"&dur="+uG+"&lmt="+F2+"&mt="+K2+"&fvip=3&keepalive="+VQ+"&c=WEB&txp="+p2+"&n="+nZ+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+v+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'audio/webm; codecs="opus"',bitrate:GB,initRange:{start:"0",end:"265"},indexRange:{start:zB,
end:ER},lastModified:F2,contentLength:p2,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:GB,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:p2,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+Rn+".googlevideo.com/videoplayback?expire="+K2+"&ei="+l+"&ip="+UR+"&id=o-AF"+ou+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+$2+"&mn="+YX+"&ms="+YX+"&mv="+K8+"&mvi="+Zp+"&pl="+jW+"&initcwndbps="+p2+"&siu="+Zp+"&spc="+z+"&vprv="+Zp+"&svpuc="+Zp+"&mime=audio%2Fwebm&ns="+
F9+"&gir="+VQ+"&clen="+p2+"&dur="+uG+"&lmt="+F2+"&mt="+K2+"&fvip=3&keepalive="+VQ+"&c=WEB&txp="+p2+"&n="+nZ+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+v+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'audio/webm; codecs="opus"',bitrate:GB,initRange:{start:"0",end:"265"},indexRange:{start:zB,end:ER},lastModified:F2,contentLength:p2,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:GB,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:p2,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+Rn+".googlevideo.com/videoplayback?expire="+K2+"&ei="+l+"&ip="+UR+"&id=o-AF"+ou+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+$2+"&mn="+YX+"&ms="+YX+"&mv="+K8+"&mvi="+Zp+"&pl="+jW+"&initcwndbps="+p2+"&siu="+Zp+"&spc="+z+"&vprv="+Zp+"&svpuc="+Zp+"&mime=audio%2Fwebm&ns="+F9+"&gir="+VQ+"&clen="+uG+"&dur="+uG+"&lmt="+F2+"&mt="+K2+"&fvip=3&keepalive="+VQ+"&c=WEB&txp="+
p2+"&n="+nZ+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+E+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+V,mimeType:'audio/webm; codecs="opus"',bitrate:C2,initRange:{start:"0",end:"265"},indexRange:{start:zB,end:ER},lastModified:F2,contentLength:uG,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:C2,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:p2,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="+h5+"&docid="+h+"&ei="+l+"&feature="+y+"&fexp="+zG+"&ns="+f3+"&plid="+G+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+K8+"&el="+oi+"&len="+ER+"&of="+Ps+
"&uga="+jW+"&vm="+HC},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+h5+"&docid="+h+"&ei="+l+"&feature="+y+"&fexp="+zG+"&ns="+f3+"&plid="+G+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+K8+"&el="+oi+"&len="+ER+"&of="+Ps+"&uga="+jW+"&vm="+HC},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+h5+"&docid="+h+"&ei="+l+"&feature="+y+"&fexp="+zG+"&ns="+f3+"&plid="+G+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
K8+"&el="+oi+"&len="+ER+"&of="+Ps+"&uga="+jW+"&vm="+HC},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+l+"&m="+H4+"&oid="+Ps+"&plid="+G+"&pltype="+TV+"&ptchn="+Ps+"&ptk="+T+"&video_id="+h},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+h5+"&docid="+h+"&ei="+l+"&event="+Ge+"&feature="+y+"&fexp="+zG+"&ns="+f3+"&plid="+G+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+K8},atrUrl:{baseUrl:"https://www.youtube.com/api/stats/atr?ns=yt&el=detailpage&cpn="+
nZ+"&ver=2&cmt=1."+zB+"&fmt="+zB+"&fs=0&rt="+qh+"&euri&lact="+zB+"&cl="+h5+"&mos="+Zp+"&volume=100&cbrand="+pG+"&cbr="+u8+"&cbrver="+UR+"&c=WEB&cver="+D+"&cplayer=UNIPLAYER&cos="+Uu+"&cosver="+p2+"&cplatform=DESKTOP&hl=en_US&cr=US&uga="+jW+"&len="+uG+"&fexp="+YX+"&feature=g-high-rec&afmt="+zB+"&muted=0&conn=1&docid="+h+"&ei="+l+"&plid="+G+"&vm="+MB(191),elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+
h+"&caps="+VQ+"&opi="+h5+"&xoaf="+Zp+"&hl="+f3+"&ip="+UR+"&ipbits="+Zp+"&expire="+K2+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+UR+"&key="+VQ+"&lang="+xf,name:{simpleText:Vo},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+h+"&caps="+VQ+"&opi="+h5+"&xoaf="+Zp+"&hl="+f3+"&ip="+UR+"&ipbits="+Zp+"&expire="+K2+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+UR+"&key="+VQ+"&kind="+VQ+"&lang="+f3,name:{simpleText:Ge},
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:n2,title:n2,lengthSeconds:"1155",keywords:[oi,n2,TV,nZ],channelId:F9,isOwnerViewing:!1,shortDescription:Vo,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+h+"/hqdefault.jpg?sqp=-oaymwE"+sq+"G&rs="+Hi,width:168,height:94},{url:"https://i.ytimg.com/vi/"+h+"/hqdefault.jpg?sqp=-oaymwE"+sq+
"G&rs="+Hi,width:196,height:110},{url:"https://i.ytimg.com/vi/"+h+"/hqdefault.jpg?sqp=-oaymwE"+sq+"G&rs="+f,width:246,height:138},{url:"https://i.ytimg.com/vi/"+h+"/hqdefault.jpg?sqp=-oaymwE"+sq+"G&rs="+f,width:336,height:188},{url:"https://i.ytimg.com/vi/"+h+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:p2,author:hx,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:p2,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+
Ps+"/featured_channel.jpg?v="+an,width:40,height:40}]},trackingParams:dA+"=",navigationEndpoint:{clickTrackingParams:qe,commandMetadata:{webCommandMetadata:{url:"/channel/"+F9,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:F9}},channelName:hx,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:an}]},subscribed:!1,enabled:!0,type:"FREE",channelId:F9,showPreferences:!1,subscribedButtonText:{runs:[{text:oi}]},unsubscribedButtonText:{runs:[{text:pG}]},
trackingParams:dA+"=",unsubscribeButtonText:{runs:[{text:tx}]},serviceEndpoints:[{clickTrackingParams:qe,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[F9],params:an}},{clickTrackingParams:qe,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:qe,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:dA+"=",dialogMessages:[{runs:[{text:nw},
{text:an},{text:nw}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Vo}]},serviceEndpoint:{clickTrackingParams:qe,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[F9],params:an}},accessibility:{label:sw},trackingParams:dA+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:vC}]},accessibility:{label:oi},
trackingParams:dA+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:W4}},unsubscribeAccessibility:{accessibilityData:{label:Ge}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:uG},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,
readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:qe,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},subscribeCommand:{clickTrackingParams:qe,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[F9],
params:an}},unsubscribeCommand:{clickTrackingParams:qe,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[F9],params:an}},addToWatchLaterCommand:{clickTrackingParams:qe,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:n2,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:qe,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:n2}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+h+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+sq+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+h+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+n2,width:1280,
height:720},title:{simpleText:sw},description:{simpleText:nw},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+TV,externalChannelId:F9,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:p2,category:"Travel & Events",publishDate:xX,ownerChannelName:hx,uploadDate:xX}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:pG},trackingParams:dA+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:qe,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:dA+"="}}],headerText:{simpleText:OO},icon:{infoCardIconRenderer:{trackingParams:dA+"="}},closeButton:{infoCardIconRenderer:{trackingParams:dA+"="}},trackingParams:dA+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:dA+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+n2+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:x2,interpreterSafeUrl:(Mp.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+w$+".js",Mp),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:n2},{text:W4,bold:!0}]},endpoint:{clickTrackingParams:qe,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:dA+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:hx}]},actionButton:{buttonRenderer:{text:{runs:[{text:OO}]},navigationEndpoint:{clickTrackingParams:qe,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+h,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
h,target:"TARGET_NEW_WINDOW"}},trackingParams:dA+"="}},trackingParams:dA+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+K3+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+K3+"=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:p2,endMs:p2,title:{accessibility:{accessibilityData:{label:nw}},simpleText:u8},metadata:{simpleText:u8},callToAction:{simpleText:an},dismiss:{simpleText:nw},endpoint:{clickTrackingParams:qe,commandMetadata:{webCommandMetadata:{url:"/channel/"+F9,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:F9}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:tx}]},subscribed:!1,enabled:!0,type:"FREE",channelId:F9,showPreferences:!1,
subscribedButtonText:{runs:[{text:an}]},unsubscribedButtonText:{runs:[{text:sw}]},trackingParams:dA+"=",unsubscribeButtonText:{runs:[{text:nZ}]},serviceEndpoints:[{clickTrackingParams:qe,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[F9],params:an}},{clickTrackingParams:qe,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:qe,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:dA+
"=",dialogMessages:[{runs:[{text:n2},{text:sw},{text:sw}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:W4}]},serviceEndpoint:{clickTrackingParams:qe,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[F9],params:an}},accessibility:{label:oi},trackingParams:dA+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Ge}]},
accessibility:{label:n2},trackingParams:dA+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:hx}},unsubscribeAccessibility:{accessibilityData:{label:n2}}}},trackingParams:dA+"=",isSubscribe:!0,id:J5}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+h+"/hqdefault.jpg?sqp=-oaymwE"+sq+"G&rs="+f,width:168,height:94},{url:"https://i.ytimg.com/vi/"+h+"/hqdefault.jpg?sqp=-oaymwE"+sq+"G&rs="+Hi,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+h+"/hqdefault.jpg?sqp=-oaymwE"+sq+"G&rs="+f,width:246,height:138},{url:"https://i.ytimg.com/vi/"+h+"/hqdefault.jpg?sqp=-oaymwE"+sq+"G&rs="+f,width:336,height:188},{url:"https://i.ytimg.com/vi/"+h+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:p2,endMs:p2,title:{accessibility:{accessibilityData:{label:nZ}},simpleText:W4},metadata:{simpleText:vC},endpoint:{clickTrackingParams:qe,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
n2,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:n2,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+Rn+".googlevideo.com/videoplayback?source=youtube&oeis="+Zp+"&c=WEB&oad="+ER+"&ovd="+ER+"&oaad="+qh+"&oavd="+qh+"&ocs="+zB+"&oewis="+Zp+"&oputc="+Zp+"&ofpcc="+Zp+"&siu="+Zp+"&msp="+Zp+"&odepv="+Zp+
"&id=o-AF"+ou+"&ip="+UR+"&initcwndbps="+p2+"&mt="+K2+"&oweuc="+zG}}}}},trackingParams:dA+"=",id:J5,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:n2}},simpleText:W4},style:"DEFAULT"}}]}}],startMs:p2,trackingParams:dA+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:Zp,offsetEndMilliseconds:qh},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+h5+";dc_trk_cid="+h5+";dc_dbm_token="+V+";ord="+K2+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Zp+";dc_rui="+Zp+";dc_exteid="+J5+";dc_av="+zB+";dc_sk="+Zp+";dc_ctype="+jW+";dc_ref=http://www.youtube.com/video/"+n2+";dc_pubid="+Zp+";dc_btype=23?gclid="+p3+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
H+"____________"+k+"AxAA&sigh="+n2+"&cid="+X+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+Zp+"&ns="+Zp+"&event="+Zp+"&device="+Zp+"&content_v="+h+"&el="+oi+"&ei="+l+"&devicever="+D+"&bti="+p2+"&format="+g$+"&break_type="+Zp+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+Zp+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+UR+"&slot_pos="+Zp+"&slot_len="+Zp+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+$2+"&ad_len="+qh+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
n2+"&aqi="+l+"&ad_rmp="+Zp+"&sli="+Zp}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+H+"____________"+k+"AxAA&sigh="+h+"&cid="+X+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+H+"____________"+k+"AxAA&sigh="+h+"&cid="+X+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Zp+";dc_exteid="+J5+";met="+Zp+";ecn"+Zp+"="+Zp+
";etm1="+Zp+";eid1="+jW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+H+"____________"+k+"AxAA&sigh="+h+"&cid="+X+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Zp+";dc_exteid="+J5+";met="+Zp+";ecn"+Zp+"="+Zp+";etm1="+Zp+";eid1="+g$+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
H+"____________"+k+"AxAA&sigh="+h+"&cid="+X+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Zp+";dc_exteid="+J5+";met="+Zp+";ecn"+Zp+"="+Zp+";etm1="+Zp+";eid1="+jW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+H+"____________"+k+"AxAA&sigh="+h+"&cid="+X+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+H+"____________"+k+"AxAA&sigh="+h+"&cid="+X+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Zp+";dc_exteid="+J5+";met="+Zp+";ecn"+Zp+"="+Zp+";etm1="+Zp+";eid1="+jW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+H+"____________"+k+"AxAA&sigh="+h+"&cid="+X+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Zp+";dc_exteid="+J5+";met="+Zp+";ecn"+Zp+"="+Zp+";etm1="+Zp+";eid1="+p2+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+H+"____________"+k+"AxAA&sigh="+h+"&cid="+X+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
H+"____________"+k+"AxAA&sigh="+h+"&cid="+X+"&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"+H+"____________"+k+"AxAA&ase=2&num="+Zp+"&cid="+X+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+Ou+"&ctype="+zB+"&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"+
H+"____________"+k+"AxAA&ase=2&num="+Zp+"&cid="+X+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+Ou+"&label=video_engaged_view&ctype="+zB+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Zp+";dc_exteid="+J5+";met="+Zp+";ecn"+Zp+"="+Zp+";etm1="+Zp+";eid1="+g$+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
h5+";dc_trk_cid="+h5+";dc_dbm_token="+V+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Zp+";ord="+h5+";dc_rui="+Zp+";dc_exteid="+II+";dc_av="+Zp+";dc_sk="+Zp+";dc_ctype="+jW+";dc_pubid="+Zp+";dc_btype=3?gclid="+p3+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+H+"____________"+k+"AxAA&sigh="+h+"&cid="+X+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Zp+";dc_exteid="+J5+";met="+Zp+";ecn"+Zp+"="+Zp+";etm1="+Zp+";eid1="+jW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+P+"&sig="+eN+"&ad_cpn=[AD_CPN]&id="+u8+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+u8+"&dc_pubid="+Zp+"&dc_exteid="+J5+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+H+"____________"+k+"AxAA&sigh="+h+"&cid="+X+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+P+"&sig="+eN+"&ad_cpn=[AD_CPN]&id="+u8+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+Zp},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+u8+"&avm="+Zp+"&dc_pubid="+Zp+"&dc_exteid="+
J5+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+H+"____________"+k+"AxAA&sigh="+h+"&cid="+X+"&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="+Zp+";dc_exteid="+J5+";met="+Zp+";ecn"+Zp+"="+Zp+";etm1="+Zp+";eid1="+jW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
P+"&sig="+eN+"&ad_cpn=[AD_CPN]&id="+u8+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+Zp},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+u8+"&dc_pubid="+Zp+"&dc_exteid="+J5+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Zp+";dc_exteid="+J5+";met="+Zp+";ecn"+Zp+"="+Zp+";etm1="+Zp+";eid1="+jW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
Zp+";dc_exteid="+J5+";met="+Zp+";ecn"+Zp+"="+Zp+";etm1="+Zp+";eid1="+g$+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Zp+";dc_exteid="+J5+";met="+Zp+";ecn"+Zp+"="+Zp+";etm1="+Zp+";eid1="+jW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Zp+";dc_exteid="+J5+";met="+Zp+";ecn"+Zp+"="+Zp+";etm1="+Zp+";eid1="+g$+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+H+"____________"+k+"AxAA&sigh="+h+"&cid="+X+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Zp+";dc_exteid="+J5+";met="+Zp+";ecn"+Zp+"="+Zp+";etm1="+Zp+";eid1="+jW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:qe,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+H+"____________"+k+"AxAA&ase=2&num="+Zp+"&cid="+X+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+Ou+"&label=video_click_to_advertiser_site&ctype="+zB+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+H+"____________"+k+"AxAA&ase=2&num="+Zp+"&cid="+X+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+Ou+"&label=video_click_to_advertiser_site&ctype="+
zB+"&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/"+h+"/mqdefault.jpg",width:320,height:180}]},trackingParams:dA+"="},trackingParams:dA+
"=",templatedCountdown:{templatedAdText:{text:n2,isTemplated:!0,trackingParams:dA+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:pG,isTemplated:!1,trackingParams:dA+"="},trackingParams:dA+"="}},trackingParams:dA+"=",skipOffsetMilliseconds:5E3}},trackingParams:dA+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:TV},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:qe,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
H+"____________"+k+"AxAA&ase=2&num="+Zp+"&cid="+X+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+Ou+"&label=video_click_to_advertiser_site&ctype="+zB+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+H+"____________"+k+"AxAA&ase=2&num="+Zp+"&cid="+X+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+Ou+"&label=video_click_to_advertiser_site&ctype="+zB+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:dA+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:u8,isTemplated:!1,trackingParams:dA+"="},trackingParams:dA+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:tx,isTemplated:!0,trackingParams:dA+"="}},trackingParams:dA+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:qe,openPopupAction:{popup:{aboutThisAdRenderer:{url:(aD.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+U+"&hl="+f3+"&origin=www.youtube.com&ata_theme="+tx,aD),trackingParams:dA+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:dA+"="}},hoverText:{runs:[{text:vC}]},trackingParams:dA+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Xd+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:dA+"="},headline:{text:OO,isTemplated:!1,trackingParams:dA+"="},description:{text:oi,
trackingParams:dA+"="},actionButton:{buttonRenderer:{text:{simpleText:hx},navigationEndpoint:{clickTrackingParams:qe,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+h5+";dc_trk_cid="+h5+";dc_dbm_token="+V+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Zp+";ord="+h5+";dc_rui="+Zp+";dc_exteid="+J5+";dc_av="+Zp+";dc_sk="+Zp+";dc_ctype="+jW+";dc_pubid="+Zp+";dc_btype=3?gclid="+p3+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
H+"____________"+k+"AxAA&ase=2&num="+Zp+"&cid="+X+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+Ou+"&label=video_click_to_advertiser_site&ctype="+zB+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+H+"____________"+k+"AxAA&ase=2&num="+Zp+"&cid="+X+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+Ou+"&label=video_click_to_advertiser_site&ctype="+zB+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:dA+"="}},startMs:Zp,trackingParams:dA+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:an},elementId:pG}},elementId:TV,trackingParams:dA+"=",legacyInfoCardVastExtension:oi,sodarExtensionData:{siub:tx,bgub:Uu,scs:nw,bgp:sw},externalVideoId:n2,adLayoutLoggingData:{serializedAdServingDataEntry:pG},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Xd+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:dA+"="},
headline:{text:pG,isTemplated:!1,trackingParams:dA+"="},description:{text:TV,isTemplated:!1,trackingParams:dA+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:nZ},navigationEndpoint:{clickTrackingParams:qe,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+h5+";dc_trk_cid="+h5+";dc_dbm_token="+V+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Zp+";ord="+h5+";dc_rui="+Zp+";dc_exteid="+
J5+";dc_av="+Zp+";dc_sk="+Zp+";dc_ctype="+jW+";dc_pubid="+Zp+";dc_btype=3?gclid="+p3+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+H+"____________"+k+"AxAA&ase=2&num="+Zp+"&cid="+X+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+Ou+"&label=video_click_to_advertiser_site&ctype="+zB+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+H+"____________"+k+"AxAA&ase=2&num="+
Zp+"&cid="+X+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+Ou+"&label=video_click_to_advertiser_site&ctype="+zB+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:dA+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:dA+"="}},navigationEndpoint:{clickTrackingParams:qe,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+h5+";dc_trk_cid="+
h5+";dc_dbm_token="+V+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Zp+";ord="+h5+";dc_rui="+Zp+";dc_exteid="+J5+";dc_av="+Zp+";dc_sk="+Zp+";dc_ctype="+jW+";dc_pubid="+Zp+";dc_btype=3?gclid="+p3+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+H+"____________"+k+"AxAA&sigh="+h+"&cid="+X+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+H+"____________"+
k+"AxAA&ase=2&num="+Zp+"&cid="+X+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+Ou+"&label=video_click_to_advertiser_site&ctype="+zB+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+H+"____________"+k+"AxAA&ase=2&num="+Zp+"&cid="+X+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+Ou+"&label=video_click_to_advertiser_site&ctype="+zB+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:dA+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:dA+"="},abandonCommands:{commands:[{clickTrackingParams:qe,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+H+"____________"+k+"AxAA&sigh="+h+"&cid="+X+"&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="+Zp+";dc_exteid="+J5+";met="+Zp+";ecn"+
Zp+"="+Zp+";etm1="+Zp+";eid1="+jW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:qe,commandExecutorCommand:{commands:[{clickTrackingParams:qe,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+H+"____________"+k+"AxAA&sigh="+h+"&cid="+X+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:TV,isTemplated:!1,trackingParams:dA+
"="},trackingParams:dA+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Vo},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+H+"____________"+k+"AxAA&sigh="+h+"&cid="+X+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Zp+";dc_exteid="+J5+";met="+Zp+";ecn"+Zp+"="+Zp+";etm1="+Zp+";eid1="+p2+";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="+h5+";dc_trk_cid="+h5+";ord="+K2+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Zp+";dc_rui="+Zp+";dc_exteid="+J5+";dc_av="+zB+";dc_sk="+Zp+";dc_ctype="+jW+";dc_ref=http://www.youtube.com/video/"+n2+";dc_pubid="+Zp+";dc_btype=23?gclid="+p3+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+H+"____________"+k+"AxAA&sigh="+n2+"&cid="+X+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+Zp+"&ns="+Zp+"&event="+Zp+"&device="+Zp+"&content_v="+h+"&el="+oi+"&ei="+l+"&devicever="+D+"&bti="+p2+"&format="+g$+"&break_type="+Zp+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+Zp+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+UR+"&slot_pos="+Zp+"&slot_len="+Zp+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
$2+"&ad_len="+qh+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+n2+"&aqi="+l+"&ad_rmp="+Zp+"&sli="+Zp}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+H+"____________"+k+"AxAA&sigh="+n2+"&cid="+X+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+H+"____________"+k+"AxAA&sigh="+n2+"&cid="+X+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
Zp+";dc_exteid="+J5+";met="+Zp+";ecn"+Zp+"="+Zp+";etm1="+Zp+";eid1="+jW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+H+"____________"+k+"AxAA&sigh="+n2+"&cid="+X+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Zp+";dc_exteid="+J5+";met="+Zp+";ecn"+Zp+"="+Zp+";etm1="+Zp+";eid1="+g$+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+H+"____________"+k+"AxAA&sigh="+n2+"&cid="+X+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Zp+";dc_exteid="+J5+";met="+Zp+";ecn"+Zp+"="+Zp+";etm1="+Zp+";eid1="+jW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+H+"____________"+k+"AxAA&sigh="+n2+"&cid="+
X+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+H+"____________"+k+"AxAA&sigh="+n2+"&cid="+X+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Zp+";dc_exteid="+J5+";met="+Zp+";ecn"+Zp+"="+Zp+";etm1="+Zp+";eid1="+jW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
H+"____________"+k+"AxAA&sigh="+n2+"&cid="+X+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Zp+";dc_exteid="+J5+";met="+Zp+";ecn"+Zp+"="+Zp+";etm1="+Zp+";eid1="+p2+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+H+"____________"+k+"AxAA&sigh="+n2+"&cid="+X+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+H+"____________"+k+"AxAA&sigh="+n2+"&cid="+X+"&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"+H+"____________"+k+"AxAA&ase=2&num="+Zp+"&cid="+X+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+Ou+"&ctype="+zB+"&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"+H+"____________"+k+"AxAA&ase=2&num="+Zp+"&cid="+X+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+Ou+"&label=video_engaged_view&ctype="+zB+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Zp+";dc_exteid="+J5+";met="+Zp+";ecn"+Zp+"="+Zp+";etm1="+Zp+";eid1="+g$+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+H+"____________"+k+"AxAA&sigh="+n2+"&cid="+X+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Zp+";dc_exteid="+J5+";met="+Zp+";ecn"+Zp+"="+Zp+";etm1="+Zp+";eid1="+jW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+P+"&sig="+eN+"&ad_cpn=[AD_CPN]&id="+
u8+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+u8+"&dc_pubid="+Zp+"&dc_exteid="+J5+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+H+"____________"+k+"AxAA&sigh="+n2+"&cid="+X+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+P+
"&sig="+eN+"&ad_cpn=[AD_CPN]&id="+u8+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+Zp},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+u8+"&avm="+Zp+"&dc_pubid="+Zp+"&dc_exteid="+J5+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+H+"____________"+k+"AxAA&sigh="+n2+"&cid="+X+"&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="+Zp+";dc_exteid="+J5+";met="+Zp+";ecn"+Zp+"="+Zp+";etm1="+Zp+";eid1="+jW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+P+"&sig="+eN+"&ad_cpn=[AD_CPN]&id="+u8+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+Zp},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+u8+"&dc_pubid="+Zp+"&dc_exteid="+J5+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Zp+";dc_exteid="+J5+";met="+Zp+";ecn"+Zp+"="+Zp+";etm1="+Zp+";eid1="+jW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Zp+";dc_exteid="+J5+";met="+Zp+";ecn"+Zp+"="+Zp+";etm1="+Zp+";eid1="+g$+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
Zp+";dc_exteid="+J5+";met="+Zp+";ecn"+Zp+"="+Zp+";etm1="+Zp+";eid1="+jW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Zp+";dc_exteid="+J5+";met="+Zp+";ecn"+Zp+"="+Zp+";etm1="+Zp+";eid1="+g$+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+H+"____________"+k+"AxAA&sigh="+n2+"&cid="+X+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Zp+";dc_exteid="+J5+";met="+Zp+";ecn"+Zp+"="+Zp+";etm1="+Zp+";eid1="+jW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:qe,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+H+"____________"+k+"AxAA&ase=2&num="+Zp+"&cid="+X+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+Ou+"&label=video_click_to_advertiser_site&ctype="+
zB+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+H+"____________"+k+"AxAA&ase=2&num="+Zp+"&cid="+X+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+Ou+"&label=video_click_to_advertiser_site&ctype="+zB+"&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/"+h+"/mqdefault.jpg",width:320,height:180}]},trackingParams:dA+"="},trackingParams:dA+"=",templatedCountdown:{templatedAdText:{text:sw,isTemplated:!0,trackingParams:dA+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:W4,isTemplated:!1,trackingParams:dA+"="},trackingParams:dA+"="}},
trackingParams:dA+"=",skipOffsetMilliseconds:5E3}},trackingParams:dA+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:tx},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:qe,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+H+"____________"+k+"AxAA&ase=2&num="+Zp+"&cid="+X+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+Ou+"&label=video_click_to_advertiser_site&ctype="+zB+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+H+"____________"+k+"AxAA&ase=2&num="+Zp+"&cid="+X+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+Ou+"&label=video_click_to_advertiser_site&ctype="+zB+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:dA+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:sw,isTemplated:!1,trackingParams:dA+"="},trackingParams:dA+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:u8,
isTemplated:!0,trackingParams:dA+"="}},trackingParams:dA+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:qe,openPopupAction:{popup:{aboutThisAdRenderer:{url:($a.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+U+"&hl="+f3+"&origin=www.youtube.com&ata_theme="+tx,$a),trackingParams:dA+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:dA+"="}},hoverText:{runs:[{text:an}]},trackingParams:dA+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+P4+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:dA+"="},headline:{text:sw,isTemplated:!1,trackingParams:dA+"="},description:{text:nw,trackingParams:dA+"="},actionButton:{buttonRenderer:{text:{simpleText:OO},navigationEndpoint:{clickTrackingParams:qe,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
H+"____________"+k+"AxAA&ase=2&num="+Zp+"&cid="+X+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+Ou+"&label=video_click_to_advertiser_site&ctype="+zB+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+H+"____________"+k+"AxAA&ase=2&num="+Zp+"&cid="+X+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+Ou+"&label=video_click_to_advertiser_site&ctype="+zB+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:dA+"="}},startMs:Zp,trackingParams:dA+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:nw},elementId:sw}},elementId:nZ,trackingParams:dA+"=",legacyInfoCardVastExtension:an,sodarExtensionData:{siub:tx,bgub:W4,scs:W4,bgp:Uu},externalVideoId:n2,adLayoutLoggingData:{serializedAdServingDataEntry:Vo},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+P4+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:dA+"="},headline:{text:nZ,
isTemplated:!1,trackingParams:dA+"="},description:{text:oi,isTemplated:!1,trackingParams:dA+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:TV},navigationEndpoint:{clickTrackingParams:qe,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+H+"____________"+k+"AxAA&ase=2&num="+Zp+"&cid="+X+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+Ou+"&label=video_click_to_advertiser_site&ctype="+zB+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+H+"____________"+k+"AxAA&ase=2&num="+Zp+"&cid="+X+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+Ou+"&label=video_click_to_advertiser_site&ctype="+zB+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:dA+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:dA+"="}},navigationEndpoint:{clickTrackingParams:qe,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
H+"____________"+k+"AxAA&sigh="+n2+"&cid="+X+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+H+"____________"+k+"AxAA&ase=2&num="+Zp+"&cid="+X+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+Ou+"&label=video_click_to_advertiser_site&ctype="+zB+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+H+"____________"+k+"AxAA&ase=2&num="+
Zp+"&cid="+X+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+Ou+"&label=video_click_to_advertiser_site&ctype="+zB+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:dA+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:dA+"="},abandonCommands:{commands:[{clickTrackingParams:qe,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+H+"____________"+k+"AxAA&sigh="+n2+"&cid="+X+"&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="+Zp+";dc_exteid="+J5+";met="+Zp+";ecn"+Zp+"="+Zp+";etm1="+Zp+";eid1="+jW+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:qe,commandExecutorCommand:{commands:[{clickTrackingParams:qe,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+H+"____________"+k+"AxAA&sigh="+n2+"&cid="+X+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:Vo,isTemplated:!1,trackingParams:dA+"="},trackingParams:dA+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:TV},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+H+"____________"+k+"AxAA&sigh="+n2+"&cid="+X+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Zp+";dc_exteid="+J5+";met="+Zp+";ecn"+Zp+"="+Zp+";etm1="+Zp+";eid1="+
p2+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:nZ}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:oi}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:qh,offsetEndMilliseconds:g$},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+l+"&m_pos="+jW+"&token=ALHj"+N+"&index="+Zp+"&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="+D+"&m_pos_ms="+qh}},adSlotLoggingData:{serializedSlotAdServingDataEntry:hx}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:g$,offsetEndMilliseconds:g$},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+l+"&m_pos="+zB+"&token=ALHj"+N+"&index="+Zp+"&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="+
D+"&m_pos_ms="+g$}},adSlotLoggingData:{serializedSlotAdServingDataEntry:u8}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:g$,offsetEndMilliseconds:g$},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+l+"&m_pos="+zB+"&token=ALHj"+N+"&index="+Zp+"&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="+
D+"&m_pos_ms="+g$}},adSlotLoggingData:{serializedSlotAdServingDataEntry:tx}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:g$,offsetEndMilliseconds:g$},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+l+"&m_pos="+zB+"&token=ALHj"+N+"&index="+Zp+"&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="+
D+"&m_pos_ms="+g$}},adSlotLoggingData:{serializedSlotAdServingDataEntry:nw}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:g$,offsetEndMilliseconds:jW},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+l+"&m_pos="+zB+"&token=ALHj"+N+"&index="+Zp+"&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="+
D+"&m_pos_ms="+g$}},adSlotLoggingData:{serializedSlotAdServingDataEntry:oi}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:jW,offsetEndMilliseconds:jW},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+l+"&m_pos="+jW+"&token=ALHj"+N+"&index="+Zp+"&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="+
D+"&m_pos_ms="+jW}},adSlotLoggingData:{serializedSlotAdServingDataEntry:OO}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:W4,isTemplated:!1,trackingParams:dA+"="},description:{text:Vo,isTemplated:!1,trackingParams:dA+"="},actionButton:{buttonRenderer:{text:{simpleText:n2},navigationEndpoint:{clickTrackingParams:qe,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
h5+";dc_trk_cid="+h5+";dc_dbm_token="+V+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Zp+";ord="+h5+";dc_rui="+Zp+";dc_exteid="+J5+";dc_av="+Zp+";dc_sk="+Zp+";dc_ctype="+jW+";dc_pubid="+Zp+";dc_btype=3?gclid="+p3+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+H+"____________"+k+"AxAA&ase=2&num="+Zp+"&cid="+X+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+Ou+"&label=video_click_to_advertiser_site&ctype="+zB+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+H+"____________"+k+"AxAA&ase=2&num="+Zp+"&cid="+X+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+Ou+"&label=video_click_to_advertiser_site&ctype="+zB+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:dA+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Xd+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:dA+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+kf+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:dA+"="},navigationEndpoint:{clickTrackingParams:qe,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+h5+";dc_trk_cid="+h5+";dc_dbm_token="+V+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Zp+";ord="+h5+
";dc_rui="+Zp+";dc_exteid="+J5+";dc_av="+Zp+";dc_sk="+Zp+";dc_ctype="+jW+";dc_pubid="+Zp+";dc_btype=3?gclid="+p3+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+H+"____________"+k+"AxAA&ase=2&num="+Zp+"&cid="+X+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+Ou+"&label=video_click_to_advertiser_site&ctype="+zB+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
H+"____________"+k+"AxAA&ase=2&num="+Zp+"&cid="+X+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+Ou+"&label=video_click_to_advertiser_site&ctype="+zB+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:dA+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:qe,openPopupAction:{popup:{aboutThisAdRenderer:{url:(tH.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+U+"&hl="+f3+"&origin=www.youtube.com&ata_theme="+tx,tH),trackingParams:dA+"="}},popupType:"DIALOG"}},trackingParams:dA+"="}},hoverText:{runs:[{text:Uu}]},trackingParams:dA+"="}},adVideoId:n2,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+H+"____________"+k+"AxAA&sigh="+h+"&cid="+X+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Ge},associatedCompositePlayerBytesLayoutId:nZ}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:hx}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:Uu,isTemplated:!1,trackingParams:dA+"="},description:{text:Uu,isTemplated:!1,trackingParams:dA+"="},actionButton:{buttonRenderer:{text:{simpleText:TV},navigationEndpoint:{clickTrackingParams:qe,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+H+"____________"+
k+"AxAA&ase=2&num="+Zp+"&cid="+X+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+Ou+"&label=video_click_to_advertiser_site&ctype="+zB+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+H+"____________"+k+"AxAA&ase=2&num="+Zp+"&cid="+X+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+Ou+"&label=video_click_to_advertiser_site&ctype="+zB+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:dA+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+P4+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:dA+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Yy+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:dA+"="},navigationEndpoint:{clickTrackingParams:qe,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+H+"____________"+k+"AxAA&ase=2&num="+
Zp+"&cid="+X+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+Ou+"&label=video_click_to_advertiser_site&ctype="+zB+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+H+"____________"+k+"AxAA&ase=2&num="+Zp+"&cid="+X+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+Ou+"&label=video_click_to_advertiser_site&ctype="+zB+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:dA+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:qe,openPopupAction:{popup:{aboutThisAdRenderer:{url:(sv.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+U+"&hl="+f3+"&origin=www.youtube.com&ata_theme="+tx,sv),trackingParams:dA+"="}},popupType:"DIALOG"}},trackingParams:dA+"="}},
hoverText:{runs:[{text:tx}]},trackingParams:dA+"="}},adVideoId:n2,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+H+"____________"+k+"AxAA&sigh="+n2+"&cid="+X+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Uu},associatedCompositePlayerBytesLayoutId:nZ}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Ge}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:n2,
isTemplated:!1,trackingParams:dA+"="},description:{text:tx,isTemplated:!1,trackingParams:dA+"="},actionButton:{buttonRenderer:{text:{simpleText:u8},navigationEndpoint:{clickTrackingParams:qe,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+h5+";dc_trk_cid="+h5+";dc_dbm_token="+V+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Zp+";ord="+h5+";dc_rui="+Zp+";dc_exteid="+J5+";dc_av="+Zp+";dc_sk="+Zp+";dc_ctype="+
jW+";dc_pubid="+Zp+";dc_btype=3?gclid="+p3+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+H+"____________"+k+"AxAA&ase=2&num="+Zp+"&cid="+X+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+Ou+"&label=video_click_to_advertiser_site&ctype="+zB+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+H+"____________"+k+"AxAA&ase=2&num="+Zp+"&cid="+X+"&ad_cpn=%5BAD_CPN%5D&sig="+
f+"&adurl="+Ou+"&label=video_click_to_advertiser_site&ctype="+zB+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:dA+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Xd+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:dA+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+kf+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:dA+
"="},navigationEndpoint:{clickTrackingParams:qe,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+h5+";dc_trk_cid="+h5+";dc_dbm_token="+V+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Zp+";ord="+h5+";dc_rui="+Zp+";dc_exteid="+J5+";dc_av="+Zp+";dc_sk="+Zp+";dc_ctype="+jW+";dc_pubid="+Zp+";dc_btype=3?gclid="+p3+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
H+"____________"+k+"AxAA&ase=2&num="+Zp+"&cid="+X+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+Ou+"&label=video_click_to_advertiser_site&ctype="+zB+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+H+"____________"+k+"AxAA&ase=2&num="+Zp+"&cid="+X+"&ad_cpn=%5BAD_CPN%5D&sig="+f+"&adurl="+Ou+"&label=video_click_to_advertiser_site&ctype="+zB+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:dA+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:qe,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Wl.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+U+"&hl="+f3+"&origin=www.youtube.com&ata_theme="+tx,Wl),trackingParams:dA+"="}},popupType:"DIALOG"}},trackingParams:dA+
"="}},hoverText:{runs:[{text:tx}]},trackingParams:dA+"="}},adVideoId:n2,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+H+"____________"+k+"AxAA&sigh="+h+"&cid="+X+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:tx},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:nZ}},adSlotLoggingData:{serializedSlotAdServingDataEntry:n2}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:w$,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:w$,command:{innertubeCommand:{clickTrackingParams:qe,ypcGetOfflineUpsellEndpoint:{params:pl}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:dA+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:K2,nanos:vs}}}},HW3=JSON.stringify(q7),AJ=performance.now()-x;return{objectRepresentation:q7,jsonRepresentation:HW3,generationTime:AJ}};
XG0=function(x,L){if(x===L)return!0;if(!x||!L||typeof x!==typeof L)return!1;if(x instanceof Array&&L instanceof Array){if(x.length!==L.length)return!1;for(var D=0;D<x.length;D++)if(!XG0(x[D],L[D]))return!1;return!0}if(typeof x==="object"&&typeof L==="object"&&x&&L){for(D in x)if(!(D in L&&XG0(x[D],L[D])))return!1;for(var S in L)if(!(S in x))return!1;return!0}return!1};
_.jR=function(){if(!Pq){Pq=new ux(new cTf);var x=_.dE("client_streamz_web_flush_count",-1);x!==-1&&(Pq.invocationLimit=x)}return Pq};
vq=function(x,L,D,S){if(x===L)return!0;if(Array.isArray(x)&&Array.isArray(L)){if(x.length!==L.length)return!1;for(var Q=0;Q<x.length;Q++)if(!vq(x[Q],L[Q],D,S))return!1;return!0}if(x instanceof Set||L instanceof Set){if(x instanceof Set&&L instanceof Set){if(x.size!==L.size)return!1;S=_.O(x.values());for(Q=S.next();!Q.done;Q=S.next())if(!L.has(Q.value))return!1;return!0}return!1}if(x instanceof Function){if(S)return!0;x.name===""&&_.BI(Error("Nf"),"ERROR");return!1}if(x instanceof Date&&L instanceof
Date)return x.getTime()===L.getTime();if(x instanceof Object&&L instanceof Object){if(nsN(x)&&nsN(L))try{return x.equals(L)}catch(Z){_.BI(Error("Of`"+Z),"ERROR")}Q=Object.getOwnPropertyNames(x).filter(function(Z){return D?x[Z]!==void 0:!0});
var J=Object.getOwnPropertyNames(L).filter(function(Z){return D?L[Z]!==void 0:!0});
if(Q.length!==J.length)return!1;Q=_.O(Q);for(J=Q.next();!J.done;J=Q.next())if(J=J.value,!vq(x[J],L[J],D,S))return!1;return!0}return!1};
nsN=function(x){x=Object.getPrototypeOf(x).equals;return x instanceof Function&&x.length===1};
_.LP4=function(){return _.I(function(x){if(x.nextAddress==1)return tQG!==2?x.jumpTo(2):x.yield(xXn(),3);x.nextAddress!=2&&(tQG=x.yieldResult);return x.return(tQG)})};
_.QFw=function(){return _.I(function(x){if(x.nextAddress==1)return _.u("ab_pl_man")?DXf!==2?x.jumpTo(2):x.yield(SGp(),3):x.return(1);x.nextAddress!=2&&(DXf=x.yieldResult);return x.return(DXf)})};
OO3=function(){return _.I(function(x){if(x.nextAddress==1)return _.u("ab_fk_sk_cl")?JQp!==2?x.jumpTo(2):x.yield(KPw(),3):x.return(1);x.nextAddress!=2&&(JQp=x.yieldResult);return x.return(JQp)})};
_.IQp=function(){return _.I(function(x){if(x.nextAddress==1)return _.u("ab_det_apb_b")?ZOp!==2?x.jumpTo(2):x.yield(yQp(),3):x.return(1);x.nextAddress!=2&&(ZOp=x.yieldResult);return x.return(ZOp)})};
dXO=function(){var x;return _.I(function(L){if(L.nextAddress==1)return L.yield(Promise.all([_.LP4(),_.IQp(),_.QFw(),OO3()]),2);if(L.nextAddress!=3)return Ej4()?L.return(!0):L.yield(_.MCN(),3);x=L.yieldResult;return L.return(x===0)})};
Ej4=function(){var x=!1,L=function(D,S){PMb.increment(S,D);D===0&&(x=!0)};
L(_.jFO(),"j.s_");L(tQG,"f.i_");L(ZOp,"a.b_");L(DXf,"p.m_");L(JQp,"i.f_");vjw===2&&(vjw=_.VCf(h8O));L(vjw,"e.h_");_.u("ks_det_gpbl")||L(_.HO0(),"p.i_");_.u("ks_get_o_pp")||L(_.u6c(),"g.o_");_.u("ab_deg_unex_thr")||L(_.gjp(),"a.o_");L(kzG,"s.t_");_.u("ab_det_sc_inj_enf")&&L(_.pVO(),"s.i_");L(mXN,"d.p_");L(_.bOn(_.Vy),"o.p_");L(_.YGf()===0?0:_.FP4(),"o.a_");return _.u("debug_sk_em_precheck")?!0:x};
TKw=function(){var x=[].concat(_.lP(sFO));try{var L=zTb();x.push({jsonRepresentation:L.jsonRepresentation,objectRepresentation:L.objectRepresentation})}catch(D){x=[].concat(_.lP(sFO))}return x};
e8w=function(){var x=["adPlacements","adSlots"];try{return x.filter(function(){return!0}).length!==x.length?0:1}catch(L){return 0}};
_.u6c=function(){if(e8w()===0)return 0;var x=zTb(),L=x.objectRepresentation,D=(0,_.wk.unsafeClone)(L),S=[];if(L&&typeof L==="object")for(var Q in L)S.push(Q);else return 4;x=x.objectRepresentation.adPlacements;if(!(x&&x.length>0))return 4;try{if(!XG0(S,Object.getOwnPropertyNames(L)))return 0}catch(J){return 0}return XG0(D,L)?1:0};
_.bOn=function(x){if(!x||!x.length||typeof x==="string")return 0;for(var L=Object.getOwnPropertyNames(Object.prototype),D=0;D<x.length;D++)for(var S=_.Iq(x[D]),Q=_.O(L),J=Q.next();!J.done;J=Q.next())if(S===J.value)return 0;return 1};
R8n=function(x){var L=_.Iq(x[1]);if(x[0]===null)return L;x=x[0];for(var D={},S=0;S<x.length;S++){var Q=_.Iq(x[S]);if(S===0)D[Q]=L;else{var J={};J[Q]=D;D=J}}return D};
_.YGf=function(){for(var x=_.hd,L=0;L<x.length;L++){var D=R8n(x[L]),S=[];S.push(D);if(S.length===0)return 0}return 1};
_.FP4=function(){for(var x=_.hd,L={},D=0;D<x.length;L={kfx:void 0},D++){var S=[R8n(x[D])];L.kfx=[];S.forEach(function(Q){return function(J){Q.kfx[Q.kfx.length]=J}}(L));
if(L.kfx.length===0)return 0}return 1};
_.jFO=function(){for(var x=_.O(TKw()),L=x.next();!L.done;L=x.next()){var D=L.value;L=D.jsonRepresentation;D=D.objectRepresentation;try{var S=JSON.parse(L);if(!vq(S,D,!1,!1))return 0}catch(Q){return 0}}return 1};
_.pVO=function(){try{var x=_.jT("ab_det_sc_inj_val");x.length===1&&x[0]===""&&(x=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var L=document.querySelectorAll("script"),D=_.O(L),S=D.next();!S.done;S=D.next())for(var Q=S.value,J=_.O(x),Z=J.next();!Z.done;Z=J.next()){var y=Z.value;L=void 0;if((L=Q.textContent)==null?0:L.includes(y))return 0}}catch(E){return 4}return 1};
_.MCN=function(){var x,L,D,S,Q,J,Z;return _.I(function(y){switch(y.nextAddress){case 1:_.HH(y,2),x=_.O(sFO),L=x.next();case 4:if(L.done)return y.return(1);S=D=L.value;Q=S.jsonRepresentation;J=S.objectRepresentation;return y.yield((new Response(Q,{status:200})).json(),7);case 7:Z=y.yieldResult;if(!vq(Z,J,!1,!1))return y.return(0);L=x.next();y.jumpTo(4);break;case 2:return _.mW(y),y.return(4)}})};
_.gjp=function(){try{btoa("abc")}catch(x){return 0}return 1};
xXn=function(){var x,L,D,S,Q,J,Z,y,E,P,v;return _.I(function(V){switch(V.nextAddress){case 1:_.HH(V,2),x=_.O(TKw()),L=x.next();case 4:if(L.done)return V.return(1);S=D=L.value;Q=S.jsonRepresentation;J=S.objectRepresentation;Z=btoa(Q);y="data:application/json;base64,"+Z;E=new Request(y);Object.defineProperty(E,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(E,"method",{get:function(){return"POST"}});
Object.defineProperty(E,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(E,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(E,"body",{get:function(){return new ReadableStream}});
return V.yield(fetch(E),7);case 7:return P=V.yieldResult,V.yield(P.json(),8);case 8:v=V.yieldResult;if(!vq(v,J,!1,!1))return V.return(0);L=x.next();V.jumpTo(4);break;case 2:return _.mW(V),V.return(4)}})};
_.VCf=function(x){if(!x||!x.length||typeof x==="string")return 0;for(var L=function(Q){return _.Iq(Q)},D=2,S=0;S<x.length&&(D=_.Gzh(_.osG(x[S],L)),D!==0);S++);
return D};
_.Gzh=function(x){var L=_.O(x);x=L.next().value;L=L.next().value;try{var D=document.createElement("div");document.body.appendChild(D);var S=getComputedStyle(D).display;document.body.removeChild(D);if(S==="none")return 4;var Q=getComputedStyle(L).display==="none"?0:1;document.body.removeChild(x);return Q}catch(J){return 4}};
KPw=function(){var x,L,D;return _.I(function(S){x=new _.Hq;L=document.createElement("button");L.classList.add("ytp-ad-skip-button");L.style.opacity="0";L.style.height="0px";L.style.width="0px";L.style.padding="0px";L.style.border="none";D=function(){L.parentElement&&L.parentElement.removeChild(L)};
L.onclick=function(){x.resolve(0);D()};
document.body.appendChild(L);setTimeout(function(){D();x.resolve(1)},50);
return S.return(x.promise)})};
SGp=function(){var x,L,D,S,Q,J,Z;return _.I(function(y){x=new _.Hq;L=document.createElement("ytd-player");try{document.body.prepend(L)}catch(E){return y.return(4)}D=function(){L.parentElement&&L.parentElement.removeChild(L)};
L.getElementsByTagName("div").length>0?S=L.getElementsByTagName("div")[0]:(S=document.createElement("div"),L.appendChild(S));Q=document.createElement("div");S.appendChild(Q);J=document.createElement("video");Z=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"});J.src=_.w8(_.r8(Z));J.ontimeupdate=function(){D();x.resolve(0)};
Q.appendChild(J);J.classList.add("html5-main-video");setTimeout(function(){Q.classList.add("ad-interrupting")},200);
setTimeout(function(){D();x.resolve(1)},5E3);
return y.return(x.promise)})};
CMs=function(x){var L=zTb().objectRepresentation.playbackTracking;if(L){var D=[],S;D.push(L==null?void 0:(S=L.videostatsPlaybackUrl)==null?void 0:S.baseUrl);var Q;D.push(L==null?void 0:(Q=L.videostatsDelayplayUrl)==null?void 0:Q.baseUrl);var J;D.push(L==null?void 0:(J=L.videostatsWatchtimeUrl)==null?void 0:J.baseUrl);var Z;D.push(L==null?void 0:(Z=L.ptrackingUrl)==null?void 0:Z.baseUrl);var y;D.push(L==null?void 0:(y=L.qoeUrl)==null?void 0:y.baseUrl);var E;D.push(L==null?void 0:(E=L.atrUrl)==null?
void 0:E.baseUrl);L=_.O(D);for(D=L.next();!D.done;D=L.next())if((D=D.value)&&x.test(D))return D.replace("https://www.youtube.com","").replace("https://s.youtube.com","")}};
lQh=function(x,L){var D,S;return _.I(function(Q){switch(Q.nextAddress){case 1:D=[],S=0;case 2:if(!(S<3)){Q.jumpTo(4);break}return Q.yield(fetch(x,{cache:"no-store",method:L}).then(function(J){D.push(J.status)}).catch(function(){D.push(-1)}),3);
case 3:S++;Q.jumpTo(2);break;case 4:return Q.return(D)}})};
UX4=function(x){return x.domainLookupStart===0&&x.domainLookupEnd===0&&x.connectStart===0&&x.connectEnd===0};
wV4=function(x,L,D){D=D===void 0?"GET":D;var S,Q,J,Z,y,E,P,v,V,h;return _.I(function(H){if(H.nextAddress==1)return H.yield(Promise.all([lQh(x,D),lQh(L,D)]),2);S=H.yieldResult;Q=_.O(S);J=Q.next().value;Z=Q.next().value;y=J;E=Z;if(Math.min.apply(Math,_.lP(E))!==Math.max.apply(Math,_.lP(E))||Math.min.apply(Math,_.lP(y))!==Math.max.apply(Math,_.lP(y)))return H.return(2);if(Math.min.apply(Math,_.lP(E))===Math.min.apply(Math,_.lP(y)))return H.return(1);v=(P=performance.getEntriesByName(x))==null?void 0:
P[0];h=(V=performance.getEntriesByName(L))==null?void 0:V[0];return v&&h?UX4(h)?H.return(1):UX4(v)?H.return(0):H.return(1):H.return(2)})};
yQp=function(){var x;return _.I(function(L){var D=[];var S;var Q,J,Z;(Q=S=(Q=zTb().objectRepresentation.streamingData)==null?void 0:(J=Q.formats)==null?void 0:(Z=J[0])==null?void 0:Z.url)&&Q&&!S.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(Q=Q.replace("initcwndbps","ctier=L&initcwndbps"),Q=Q.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),S={testUrl:Q,baseUrl:S,method:"GET"}):S=void 0;S&&D.push(S);_.u("ab_net_tp_e")&&D.push({testUrl:_.Qb.location.origin+"/ad_companion",baseUrl:_.Qb.location.origin+
"/generate_204",method:"OPTIONS"});_.u("ab_fix_creator_view_cnt")&&(D.length=0,(S=CMs(/api\/stats\/atr/))&&D.push({testUrl:_.Qb.location.origin+S,baseUrl:_.Qb.location.origin+"/generate_204",method:"OPTIONS"}));_.u("ad_net_pb_pbp")&&(S=CMs(/api\/stats\/qoe/))&&D.push({testUrl:_.Qb.location.origin+S,baseUrl:_.Qb.location.origin+"/feed/download",method:"GET"});D=D.length!==0?D[Math.floor(Math.random()*D.length)]:void 0;return(x=D)?L.return(wV4(x.testUrl,x.baseUrl,x.method)):L.return(4)})};
_.HO0=function(){if(_.Qb.rxp===void 0||_.Qb.rxp===null||typeof _.Qb.rxp!=="function")return 2;try{return _.Qb.rxp()===!0?0:1}catch(x){return 0}};
BKn=function(x){switch(x){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.Nh(x,"unknown result type")}};
_.WPn=function(x,L){var D=Number(_.$6("CATSTAT",0));if(L.fV1===void 0)return D;L=L.fV1;x=BKn(x);return D&~(3<<L)|x<<L};
qG0=function(x){var L,D;if((x=(L=x.auxiliaryUi)==null?void 0:(D=L.messageRenderers)==null?void 0:D.bkaEnforcementMessageViewModel)&&x.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return x};
$Xp=function(){for(var x=_.O(Object.values(_.AQG)),L=x.next();!L.done;L=x.next())L=L.value,L.isAsync&&L.fV1&&_.Au("CATSTAT",_.WPn(2,L))};
_.k8=function(x,L){x=_.u1("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",x);(L===void 0?0:L)?_.rQ0(x,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.gY().logFlowEvent(x,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
iOp=function(){if(!NKs){if(Polymer.Base){var x=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{x.apply(this,arguments)}catch(V){_.N9(V)}};
var L=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{L.apply(this,arguments)}catch(V){_.N9(V)}};
var D=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{D.apply(this,arguments)}catch(V){_.N9(V)}};
var S=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{S.apply(this,arguments)}catch(V){_.N9(V)}};
var Q=Polymer.Base._listen,J=new WeakMap;Polymer.Base._listen=function(V,h,H){var k=function(){try{H.apply(this,arguments)}catch(T){_.N9(T)}};
J.set(H,k);Q.call(this,V,h,k)};
var Z=Polymer.Base._unlisten;Polymer.Base._unlisten=function(V,h,H){Z.call(this,V,h,J.get(H))}}if(Polymer.Async){var y=Polymer.Async,E=y._atEndOfMicrotask;
y._atEndOfMicrotask=function(){try{E.apply(y,arguments)}catch(V){_.N9(V)}}}if(Polymer.RenderStatus){var P=Polymer.RenderStatus,v=P.afterNextRender;
P.afterNextRender=function(V,h,H){v.call(P,V,function(){try{h.apply(this,arguments)}catch(k){_.N9(k)}},H)}}NKs=!0}};
_.ojw=function(x){var L=x?_.gE(x):"";if(L){if(L.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(L.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(L.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(L.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(L.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.u("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(L.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";L=L.toLowerCase();if(L==="/")return"home";if(L==="/channel_memberships")return"channel-memberships-shopfront";if(L.indexOf("/feed/trending")===0)return"trending";if(L.indexOf("/feed/explore")===0)return"explore";if(L.indexOf("/live")===0)return"live";if(L.indexOf("/results")===0)return"search";if(L.indexOf("/sports")===0)return"sports";if(L.indexOf("/fashion")===0||L.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(L))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(L))return _.u("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(L.indexOf("/channel/")===0||L.indexOf("/user/")===0||L.indexOf("/gaming")===0||L.indexOf("/post/")===0)return"channel";if(fQh(x))return"show";if(L==="/playlist"||L.indexOf("/playlist/")===0||L==="/view_play_list"||L.indexOf("/view_play_list/")===0||L.indexOf("/show/")===0)return"playlist";if(L==="/companion_canvas")return"companion-canvas";if(L==="/feed/history"||
L.indexOf("/feed/history/")===0)return"history";if(L==="/new")return"labs";if(L==="/feed/subscriptions")return"subscriptions";if(L.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(L==="/history_controls")return"standalone";if(L.indexOf("/account")===0||L==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(L.indexOf("/paid_memberships")===0||L.indexOf("/refund")===0||L.indexOf("/purchases")===0||L.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(L.indexOf("/product")===
0)return"yts-products";if(L.indexOf("/premium")===0||L.indexOf("/musicpremium")===0)return L.indexOf("/premium/offers")===0||L.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(L==="/cart/checkout"||L==="/cart")return"ypc-checkout";if(L.indexOf("/feed/downloads")===0||L.indexOf("/redeem")===0||L.indexOf("/reporthistory")===0)return"browse";if(L.indexOf("/hashtag")===0)return"hashtag-landing-page";if(L.indexOf("/handle")===0)return"handle";if(L.indexOf("/source")===0)return"audio-pivot";if(L.search(RegExp("^/playables/(?!saved)."))===
0)return"mini_app";if(L.indexOf("/playables")===0)return"playables";if(L.indexOf("/create/live/join")===0)return"open-in-app";if(L.indexOf("/shorts")===0)return"shorts";if(L.indexOf("/feed/channels")===0)return"subscriptions-channels";(L=x?_.gE(x):"")&&L.indexOf("/watch")===0&&_.u("web_watch_enable_learning_journey")?(x=_.xQ(x),x=!!x.list&&x.list.indexOf("LJPP")===0):x=!1;if(x)return"learning_journey_watch"}};
_.pB=function(x){var L,D;(x=(D=_.g(x==null?void 0:x.commandMetadata,_.gg))==null?void 0:D.url)&&(L=_.ojw(x));return L};
fQh=function(x){var L=x?_.gE(x):"";if(!L)return!1;L=L.toLowerCase();return L.indexOf("/show/")===0||L.indexOf("/playlist")===0&&(x=_.xQ(x),x.list&&x.list.indexOf("EL")===0)?!0:!1};
FA=function(x){var L="unknown",D;var S=((D=_.g(x==null?void 0:x.commandMetadata,_.gg))==null?void 0:D.webPageType)||"";S?(D=S.toLowerCase(),D.startsWith("web_page_type_")&&(D=D.slice(14))):D=S;D&&aQc[D.toUpperCase()]?L=aQc[D.toUpperCase()]:_.g(x,_.mt)||_.g(x,z8f)?L="browse":_.g(x,_.b1)?L="search":_.g(x,_.L6)&&(L="watch");L==="watch"&&_.pB(x||null)==="learning_journey_watch"&&(L="learning_journey_watch");L==="unknown"&&_.qy(Error("Qf`"+JSON.stringify({clickTrackingParams:x==null?void 0:x.clickTrackingParams,
commandMetadata:x==null?void 0:x.commandMetadata,allEndpointKeys:Object.keys(x||[])})));return L};
_.sO=function(x){if(!_.XVp||x)_.XVp=_.YR();return _.XVp};
_.cQh=function(x){return!!_.g(x,_.L6)||!!_.g(x,_.TF)&&_.u("kevlar_enable_shorts_prefetch")};
_.njp=function(x,L){x=_.g(x,_.L6)||_.g(x,_.TF);return"v"+x.videoId+(x.playlistId?"-pl"+x.playlistId:"")+(L?"-an1":"")+(x.params?"-pr"+x.params:"")};
eR=function(x){return function(){return new x}};
Rq=function(x){var L=_.yY();return function(){return L.resolve(x)}};
xS0=function(x){var L=_.dE("web_pbj_log_warning_rate",0);L=L>0&&Math.random()<L;if(!_.g(x,_.TF))return L&&_.qy(Error("Tf")),!1;var D;return _.u("shorts_controller_retrieve_seedless_sequence_v2")&&((D=_.g(x,_.TF))==null?void 0:D.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:tCh(x)?!0:(L&&_.qy(Error("Uf")),!1)};
tCh=function(x){var L=(_.g(x,_.L6)||_.g(x,_.TF)).videoId;if(!L||!LJO.test(L))return!1;var D;return(x=(D=_.g(x.commandMetadata,_.gg))==null?void 0:D.url)&&(x.includes(L)||x.startsWith("/clip"))?!0:!1};
_.SaO=function(){var x=_.FI();return x.getFlag(192)?x.getFlag(190):!(_.u("web_watch_cinematics_disabled_by_default")||_.u("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&DSf())};
_.GF=function(x,L,D){var S={};S.currentUrl=L;S.vis=x.vis!==void 0?x.vis:0;S.splay=!1;L=_.FI();S.autoCaptionsDefaultOn=L.getFlag(66);L.getFlag(141)?L.getFlag(140)?S.autonavState="STATE_OFF":S.autonavState="STATE_ON":S.autonavState="STATE_NONE";S.html5Preference="HTML5_PREF_WANTS";isNaN(_.$6("STS"))||(S.signatureTimestamp=_.$6("STS"));x.autonav&&(S.autoplay=!0,S.autonav=!0);x.mutedAutoplay&&(S.autoplay=!0,S.mutedAutoplay=!0);x.inlinePlayback&&(S.autoplay=!0,S.autonav=!1,S.isInlineUnmutedPlayback=!!x.inlineUnmuted);
S.referer=D;S.lactMilliseconds=x.lact!==void 0?x.lact.toString():"-1";_.u("enable_unknown_lact_fix_on_html5")&&S.lactMilliseconds==="-1"&&_.qy(new _.RZ("Unknown LACT is set in playbackContext.",{"lact in tempData":x.lact||"undefined",autonav:x.autonav||"undefined"}));x={};L.getFlag(194)&&(x.hasShownAmbientMode=!0);L.getFlag(192)&&(x.hasToggledOffAmbientMode=!0);_.SaO()&&(x.watchAmbientModeEnabled=!0);S.watchAmbientModeContext=x;return S};
Qbw=function(x){var L={},D=x.pbis||0;D&&(L.playbackBeginsInSeconds=D);x.prefetch_reason&&x.prefetch_reason==="hc_pbis"&&(L.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return L};
_.l1=function(x){x=x===void 0?!1:x;var L=_.FI(),D="USER_INTERFACE_THEME_LIGHT";L.getFlag(165)?D="USER_INTERFACE_THEME_DARK":L.getFlag(174)?D="USER_INTERFACE_THEME_LIGHT":_.CB()&&(D="USER_INTERFACE_THEME_DARK");return x?D:Jyf()||D};
_.KJs=function(){return!_.u("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.CB=function(){return _.KJs()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.UO=function(){var x=_.FI();return _.KJs()&&!x.getFlag(165)&&!x.getFlag(174)};
Jyf=function(){var x=x===void 0?window.location.href:x;if(_.u("kevlar_disable_theme_param"))return null;var L=_.gE(x);if(_.OE0(L))return"USER_INTERFACE_THEME_DARK";try{var D=_.xQ(x).theme;return ZEp.get(D)||null}catch(S){}return null};
_.OE0=function(x){return _.u("enable_dark_theme_only_on_shorts")?!(x==null||!x.startsWith("/shorts/")):!1};
_.E50=function(x,L,D,S,Q){L=L===void 0?!1:L;D=D===void 0?!1:D;var J=_.$6("INNERTUBE_CONTEXT");if(!J)return _.BI(Error("Xf")),{};J=(0,_.wk.unsafeClone)(J);_.u("web_no_tracking_params_in_shell_killswitch")||delete J.clickTracking;J.client||(J.client={});var Z=J.client;Z.clientName==="MWEB"&&Z.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(Z.clientFormFactor=_.$6("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");Z.screenWidthPoints=window.innerWidth;Z.screenHeightPoints=window.innerHeight;Z.screenPixelDensity=
Math.round(window.devicePixelRatio||1);Z.screenDensityFloat=window.devicePixelRatio||1;Z.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());Z.userInterfaceTheme=_.l1();if(!L){var y=_.lob();y&&(Z.connectionType=y);_.u("web_log_effective_connection_type")&&(y=wac())&&(J.client.effectiveConnectionType=y)}var E;if(_.u("web_log_memory_total_kbytes")&&((E=_.Qb.navigator)==null?0:E.deviceMemory)){var P;E=(P=_.Qb.navigator)==null?void 0:P.deviceMemory;J.client.memoryTotalKbytes=""+E*1E6}L&&S&&!_.u("web_it_context_set_original_url_ks")&&
(Z.originalUrl=yys(_.Qb.location.href,S).toString());_.u("web_gcf_hashes_innertube")&&(y=o8s())&&(P=y.coldConfigData,E=y.coldHashData,y=y.hotHashData,J.client.configInfo=J.client.configInfo||{},P&&(J.client.configInfo.coldConfigData=P),E&&(J.client.configInfo.coldHashData=E),y&&(J.client.configInfo.hotHashData=y));P=_.xQ(_.Qb.location.href);!_.u("web_populate_internal_geo_killswitch")&&P.internalcountrycode&&(Z.internalGeo=P.internalcountrycode);!_.u("web_populate_client_screen_killswitch")&&Q&&(Z.clientScreen=
Q);Z.clientName==="MWEB"||Z.clientName==="WEB"?(Z.mainAppWebInfo||(Z.mainAppWebInfo={}),Z.mainAppWebInfo.graftUrl=S||_.Qb.location.href,_.u("kevlar_woffle")&&_.wY.instance&&(S=_.wY.instance,Z.mainAppWebInfo.pwaInstallabilityStatus=!S.appInstalledEventFired&&S.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),Z.mainAppWebInfo.webDisplayMode=Wt0(),Z.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):Z.clientName==="TVHTML5"&&
(!_.u("web_lr_app_quality_killswitch")&&(S=_.$6("LIVING_ROOM_APP_QUALITY"))&&(Z.tvAppInfo=Object.assign(Z.tvAppInfo||{},{appQuality:S})),S=_.$6("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(Z.tvAppInfo=Object.assign(Z.tvAppInfo||{},{certificationScope:S}));!_.u("web_populate_time_zone_itc_killswitch")&&(S=GDN())&&(Z.timeZone=S);(S=tq3())?Z.experimentsToken=S:delete Z.experimentsToken;Z=xUb();S=_.Ikf();S=(0,_.wk.getValues)(S.tokenJars);J.request=Object.assign({},J.request,{internalExperimentFlags:Z,consistencyTokenJars:S});
!_.u("web_prequest_context_killswitch")&&(Z=_.$6("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(J.request.externalPrequestContext=Z);S=_.FI();Z=S.getFlag(58);S=S.get("gsml","");J.user=Object.assign({},J.user);Z&&(J.user.enableSafetyMode=Z);S&&(J.user.lockedSafetyMode=!0);_.u("warm_op_csn_cleanup")?D&&(L=_.A3())&&(J.clientScreenNonce=L):!L&&(L=_.A3())&&(J.clientScreenNonce=L);x&&(J.clickTracking={clickTrackingParams:x});if(x=_.o1("yt.mdx.remote.remoteClient_"))J.remoteClient=x;_.Bq.getInstance().setLocationOnInnerTubeContext(J);
try{var v=IoN(),V=v.bid;delete v.bid;J.adSignalsInfo={params:[],bid:V};for(var h=_.O(Object.entries(v)),H=h.next();!H.done;H=h.next()){var k=_.O(H.value),T=k.next().value,G=k.next().value;v=T;V=G;x=void 0;(x=J.adSignalsInfo.params)==null||x.push({key:v,value:""+V})}var U,l;if(((U=J.client)==null?void 0:U.clientName)==="TVHTML5"||((l=J.client)==null?void 0:l.clientName)==="TVHTML5_UNPLUGGED"){var X=_.$6("INNERTUBE_CONTEXT");X.adSignalsInfo&&(J.adSignalsInfo.advertisingId=X.adSignalsInfo.advertisingId,
J.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",J.adSignalsInfo.limitAdTracking=X.adSignalsInfo.limitAdTracking)}}catch(f){_.BI(f)}return J};
_.qB=function(x,L,D){var S=D&&D>0?D:0;D=S?Date.now()+S*1E3:0;if((S=S?_.Wq.getLocalStorage():_.Wq.getSessionStorage())&&window.JSON){typeof L!=="string"&&(L=JSON.stringify(L,void 0));try{S.set(x,L,D)}catch(Q){S.remove(x)}}};
_.Ad=function(x){var L=_.Wq.getSessionStorage(),D=_.Wq.getLocalStorage();if(!L&&!D||!window.JSON)return null;try{var S=L.get(x)}catch(Q){}if(typeof S!=="string")try{S=D.get(x)}catch(Q){}if(typeof S!=="string")return null;try{S=JSON.parse(S,void 0)}catch(Q){}return S};
_.$8=function(x){try{var L=_.Wq.getSessionStorage(),D=_.Wq.getLocalStorage();L&&L.remove(x);D&&D.remove(x)}catch(S){}};
_.MEw=function(x){var L=new rY(_.$6("ONE_PICK_URL",""));L.urlParamMap_.set("hostId",x);(x=_.$6("GAPI_LOCALE"))&&L.urlParamMap_.set("hl",x);(x=_.$6("SESSION_INDEX"))&&L.urlParamMap_.set("authuser",x);(x=_.$6("DELEGATED_SESSION_ID"))&&L.urlParamMap_.set("groupId",x);return L};
PAO=function(){var x=_.yY(),L=x.resolve(_.NB);x=x.resolve(_.i1);return new dS3(L,x)};
v5f=function(x){if(window.IntersectionObserver)return new jbf(x,400);throw new TypeError("dg");};
hgc=function(){var x=Hammer.TouchAction,L=x.prototype.preventDefaults;x.prototype.preventDefaults=function(D){var S=this.actions.indexOf("pan-down")>-1;if(!S)return L.call(this,D);if(!VEf){var Q=D.srcEvent;D=D.direction;var J;if((J=this.manager)==null?0:J.session.prevented)Q.preventDefault();else if(S&&D&Hammer.DIRECTION_DOWN)return this.preventSrc(Q)}}};
HEb=function(x){if(!x||x.size===0)return Hammer.DIRECTION_ALL;if(x.size===2){if(x.has("up")&&x.has("down"))return Hammer.DIRECTION_VERTICAL;if(x.has("right")&&x.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(x.size===1){if(x.has("up"))return Hammer.DIRECTION_UP;if(x.has("down"))return Hammer.DIRECTION_DOWN;if(x.has("right"))return Hammer.DIRECTION_RIGHT;if(x.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.g5h=function(){return uP0?Promise.resolve(uP0):new Promise(function(x,L){var D=self.indexedDB.open("swpushnotificationsdb");D.onerror=L;D.onsuccess=function(){var S=D.result;if(S.objectStoreNames.contains("swpushnotificationsstore"))uP0=S,x(uP0);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.g5h()};
D.onupgradeneeded=kaG})};
kaG=function(x){x=x.target.result;x.objectStoreNames.contains("swpushnotificationsstore")&&x.deleteObjectStore("swpushnotificationsstore");x.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
mSf=function(x){var L=pzh(),D;return _.I(function(S){switch(S.nextAddress){case 1:return _.HH(S,2),S.yield(x.match(L,{cacheName:"yt-appshell-assets"}),4);case 4:D=S.yieldResult;_.nH(S,3);break;case 2:_.mW(S);case 3:return S.return(D)}})};
pzh=function(){var x=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?bEp.registration.scope:Ya0;x.endsWith("/")&&(x=x.slice(0,-1));return x+"/app_shell_home"};
FJw=function(x){x.map(function(L){return L.source}).join("|")};
_.sb0=function(x){return _.I(function(L){return L.return(mSf(x))})};
Tdb=function(){var x=window.caches,L;return _.I(function(D){if(D.nextAddress==1)return D.yield(_.sb0(x),2);L=D.yieldResult;return D.return(!!L)})};
wz0=function(){_.I(function(x){if(x.nextAddress==1){if(egp)return x.jumpTo(0);egp=!0;if(_.u("enable_system_health_primes_monitoring"))return _.h8(Rg0,3E4),Ga0(),x.return();if(!(Math.random()<_.dE("web_system_health_fraction")))return x.jumpTo(0);CAN={heightPixels:screen.height,widthPixels:screen.width};fB&&!isNaN(fB.jsHeapSizeLimit)&&(CAN.memoryTotalKbytes=String(Math.round(fB.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(CAN.devicePixelRatio=window.devicePixelRatio);return x.yield(lkf(),4)}_.h8(Rg0,
3E4);return x.yield(USh(),0)})};
lkf=function(){return _.I(function(x){if(x.nextAddress==1)return oq.intersectionObserverPresent="IntersectionObserver"in window,oq.serviceWorkerPresent="serviceWorker"in navigator,oq.webSharePresent="share"in navigator,oq.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,oq.cacheStoragePresent="caches"in window,oq.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,oq.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
oq.webkitTemporaryStoragePresent="webkitTemporaryStorage"in aq&&aq.webkitTemporaryStorage&&"queryUsageAndQuota"in aq.webkitTemporaryStorage,oq.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",x.yield(MR3(),2);oq.indexedDbPresent=x.yieldResult;oq.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;oq.broadcastChannelPresent="BroadcastChannel"in window;oq.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(oq.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,oq.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.Y2(x)})};
Rg0=function(){var x=9E4+Math.random()*2E3;_.Z8()>x||(_.u("enable_system_health_primes_monitoring")?Ga0():USh())};
USh=function(){var x;return _.I(function(L){if(L.nextAddress==1)return L.yield(Bd3(),2);x=L.yieldResult;_.Uh("systemHealthCaptured",x);_.Y2(L)})};
Ga0=function(){var x={metric:{}},L=WJc();L.networkEvents.length&&(x.metric.networkEvents=qa0(L));_.Uh("systemHealthCaptured",x)};
Bd3=function(){var x,L,D,S,Q,J,Z,y,E,P;return _.I(function(v){switch(v.nextAddress){case 1:x={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)};L=window.screen;_.u("enable_is_extended_monitoring")&&L&&"isExtended"in L&&(x.isExtended=!!L.isExtended);D={metric:{staticContext:CAN,dynamicContext:x,webMetric:Ay4,webApiSupport:oq}};
if(S=_.A3())D.csn=S;fB&&(D.metric.webMetric.currentHeapKbytes=Math.round(fB.usedJSHeapSize/1E3));window.matchMedia&&(D.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,D.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,D.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in aq&&typeof aq.getBattery==="function")){v.jumpTo(2);break}return v.yield(aq.getBattery(),3);case 3:if(Q=
v.yieldResult)D.metric.dynamicContext.chargingStatus=Q.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(D.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(oq.storageEstimatePresent)return v.yield(navigator.storage.estimate(),8);if(!oq.webkitTemporaryStoragePresent){v.jumpTo(5);break}return v.yield($Sn(),7);case 7:J=v.yieldResult;v.jumpTo(5);break;case 8:J=v.yieldResult;case 5:return D.metric.dynamicContext.deviceStorageQuotaMbytes=((Z=J)==null?0:Z.quota)?String(Math.round(J.quota/
1048576/10)*10):"-1",D.metric.dynamicContext.deviceStorageUsageMbytes=((y=J)==null?0:y.usage)?String(Math.round(J.usage/1048576/10)*10):"-1",E=D.metric.dynamicContext,v.yield(Tdb(),9);case 9:return E.hasAppShell=v.yieldResult,P=WJc(),P.networkEvents.length&&(D.metric.networkEvents=qa0(P)),v.return(D)}})};
$Sn=function(){return new Promise(function(x){var L;oq.webkitTemporaryStoragePresent&&(L=aq.webkitTemporaryStorage)!=null&&L.queryUsageAndQuota?aq.webkitTemporaryStorage.queryUsageAndQuota(function(D,S){x({usage:D,quota:S})}):x(void 0)})};
_.zF=function(x){x&=16777215;x=[(x&16711680)>>16,(x&65280)>>8,x&255];return ryn(x[0],x[1],x[2])};
_.XA=function(x){x=[(x&16711680)>>>16,(x&65280)>>>8,x&255,(x&4278190080)>>>24];if(!_.Ndc(x,function(L){return L===(L&255)}))throw Error("eg`"+x.join(","));
return"rgba("+x[0]+","+x[1]+","+x[2]+","+(x[3]/255).toFixed(3)+")"};
_.iEn=function(x){return[(x&16711680)>>>16,(x&65280)>>>8,x&255]};
_.fkw=function(x){x=x.map(function(L){L/=255;return L<=.03928?L/12.92:Math.pow((L+.05)/1.05,2.4)});
return x[0]*.2126+x[1]*.7152+x[2]*.0722};
cq=function(x,L){x=_.iEn(x);return"rgba("+x[0]+", "+x[1]+", "+x[2]+", "+L+")"};
_.o5w=function(){try{return!!self.localStorage}catch(x){return!1}};
cy4=function(){if(ak0())_.qy(Error("fg"));else{var x=document.createElement("iframe");x.style.display="none";var L=L===void 0?window.location.href:L;var D=_.qg(_.$6("PERSIST_IDENTITY_IFRAME_URL"));L=D?D:(new URL(L)).host.indexOf("studio")===0?_.Pn(zgf,"persist_identity"):_.Pn(Xzh,"persist_identity");_.Mff(x,1,L);x.id="persist_identity";var S;(S=document.body)==null||S.appendChild(x)}};
ak0=function(){var x=n5b;x||(x=document.querySelector("#persist_identity"));return x};
tEs=function(){var x=!1;try{x=!!window.sessionStorage.getItem("session_logininfo")}catch(L){x=!0}return(_.$6("INNERTUBE_CLIENT_NAME")==="WEB"||_.$6("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&x};
xr3=function(x,L){if(!tEs())return!1;L||(L=_.$6("LOGIN_INFO"));return L?(x.session_logininfo=L,!0):!1};
Dr4=function(x,L){x=x===void 0?!1:x;if((L===void 0||!L)&&LO0!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.rO("LOG_STICKINESS",!1)){L=_.A3();var D=_.qu(),S={identityStickinessData:{initialState:LO0}};L&&D&&_.Sm(L,D,S)}if(L=ak0())if(D=L.src?(new URL(L.src)).origin:"*",x){var Q;(Q=L.contentWindow)==null||Q.postMessage({action:"clear"},D)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(x=window.sessionStorage.getItem("session_logininfo"))){var J;(J=L.contentWindow)==null||J.postMessage({loginInfo:x},D)}};
_.nB=function(x){x=x===void 0?!0:x;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.Au("LOGIN_INFO",""),x&&window.sessionStorage.setItem("from_switch_account","1"),Dr4(!0,x)}catch(L){}};
S0w=function(x){x&&(x.startsWith("https://accounts.google.com/AddSession")?_.nB():x.startsWith("https://accounts.google.com/ServiceLogin")?_.nB():x.startsWith("https://myaccount.google.com")&&_.ze(x).getPath().endsWith("/youtubeoptions")&&_.nB())};
td=function(x,L){S0w(x);if(_.rO("LOGGED_IN",!0)&&tEs()){var D=As0(x);D==null&&(D={});xr3(D,L)&&_.J_(x,D)}};
Qdc=function(){function x(L){for(L=L.target;L&&L.nodeName!=="A";)if(L=L.parentNode,!(L&&L instanceof HTMLElement))return;if(L&&!L.hasAttribute("download")&&L.getAttribute("rel")!=="external"&&L.href)return L.href}
document.addEventListener("mousedown",function(L){L.button!==0&&(L=x(L))&&td(L)});
document.addEventListener("click",function(L){(L=x(L))&&td(L)})};
ODs=function(){var x=new JAw;try{if(_.rO("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(y){x.increment(5,!1);return}if(_.$6("LOGIN_INFO")){var L=KO4?KO4:window.location;_.$6("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&cy4();var D=As0(L.href);D==null&&(D={});var S=D.session_logininfo,Q=Number(window.sessionStorage.getItem("stickiness_reload")),J=S===_.$6("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
Q>=2||J)Q>=2?x.increment(2,J):J?x.increment(7,J):window.sessionStorage.getItem("session_logininfo")||(x.increment(3,J),LO0="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.$6("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.$6("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))x.increment(4,J),window.sessionStorage.removeItem("stickiness_reload");
else if(Q<2){window.sessionStorage.setItem("stickiness_reload",String(Q+1));var Z=L.href;Z=_.K6(Z,"sttick");td(Z,window.sessionStorage.getItem("session_logininfo"));Z=_.LH(Z,{sttick:Q});x.increment(Q,J);_.h04(L,Z)}}else x.increment(6,!1)}else _.nB(!1)}catch(y){}};
_.x9=function(x,L,D,S,Q){L=L===void 0?{}:L;D=D===void 0?"":D;S=S===void 0?window:S;x=_.DN(x,L);td(x);D=_.$z(x+D,Q);_.h04(S.location,D)};
ZDO=function(x){if(x.urlEndpoint){if(x=_.xQ(x.urlEndpoint.url),x.adurl)return O2(x.adurl)}else if(x.watchEndpoint)return"//www.youtube.com/watch?v="+x.watchEndpoint.videoId;return null};
yAp=function(x){if(!x||!x.reportingPings)return null;var L={};x.reportingPings.forEach(function(D){D.pingType in L?L[D.pingType].push(D.url):L[D.pingType]=[D.url]});
return{adpings:Wmc(L)}};
_.L$=function(){return{isShellLoad:_.rO("IS_SHELL_LOAD",!1)}};
Eqh=function(){navigator.serviceWorker.getRegistrations().then(function(x){x.forEach(I64)})};
I64=function(x){x&&_.MgO(drO,x.scope)};
_.MgO=function(x,L){L={scope:L||_.PY("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.RN(x),L)};
D4=function(x,L,D,S){if(L&&L.serializedYpcCujLoggingParams){if(D){var Q={};Q.transactionErrorType=D;S&&(Q.errorMessage=S);L.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:Q}}}D={};D.ypcCujContext=L;x=_.u1("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",x,D);_.gY().logFlowEvent(x,"FLOW_TYPE_YPC_ACQUISITION")}};
_.Pun=function(x,L,D,S){var Q={};Q.serializedTransactionFlowLoggingParams=L;D&&(Q.errorType=D);S&&(Q.errorMessage=S);_.Uh(x,Q);_.wz()};
_.jds=function(x){x&&_.Pun("transactionFlowStarted",x)};
_.vq3=function(x){x&&_.Pun("transactionFlowCancelled",x)};
_.Sr=function(x,L,D){L&&_.Pun("transactionFlowFailed",L,x,D)};
Vgf=function(x){var L=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");L&&(L.inert=x)};
_.QA=function(){this.megabloxUrl_=null};
_.Jq=function(x){try{var L=hpc==null?void 0:hpc.composedPath(x)}catch(D){L=x.composedPath?x.composedPath():[]}return L&&L.length>0?L:x.composedPath?x.composedPath():[]};
_.K$=function(x){return _.Jq(x)[0]};
_.OY=function(x){if(!(x instanceof Element))return null;x=x.classList?Array.from(x.classList):void 0;if(!x)return null;var L=x.indexOf("style-scope");return L>-1&&L+1<x.length?x[L+1]:null};
Z4=function(x){if(!(x instanceof HTMLElement))return null;var L=x&&(x.$$||x.polymerController)?x.tagName.toLowerCase():null;return L?L:_.OY(x)};
HDh=function(x,L){return x.replace(/[^a-z]*[^\s]+/g,function(D){return D+".style-scope."+L})};
ubG=function(x,L){return L?x.split(",").map(function(D){return HDh(D.trim(),L)}).join(", "):x};
_.yA=function(x){var L,D,S,Q;return(Q=(S=(D=(L=x.root)!=null?L:x.shadowRoot)!=null?D:x.__shady_native_shadowRoot)!=null?S:x.__shady_shadowRoot)!=null?Q:x};
IW=function(x){return x instanceof ShadowRoot?ShadowRoot:x instanceof DocumentFragment?DocumentFragment:x instanceof Document?Document:HTMLElement};
gq4=function(x){var L,D,S;return(S=(D=(L=x.parentElement)!=null?L:x.__shady_native_parentElement)!=null?D:x.__shady_parentElement)!=null?S:null};
k2w=function(x){var L,D,S;return(S=(D=(L=x.parentNode)!=null?L:x.__shady_native_parentNode)!=null?D:x.__shady_parentNode)!=null?S:null};
pEn=function(x){var L,D,S;return(S=(D=(L=x.__shady_parentNode)!=null?L:x.__shady_native_parentNode)!=null?D:x.parentNode)!=null?S:null};
mrb=function(x){var L,D;return(D=(L=k2w(x))!=null?L:x.host)!=null?D:null};
bDn=function(x){var L,D,S;return(S=(D=(L=x.nextSibling)!=null?L:x.__shady_native_nextSibling)!=null?D:x.__shady_nextSibling)!=null?S:null};
Y00=function(x){var L,D,S;return(S=(D=(L=x.previousSibling)!=null?L:x.__shady_native_previousSibling)!=null?D:x.__shady_previousSibling)!=null?S:null};
FO3=function(x){var L,D,S;return(S=(D=(L=x.nextElementSibling)!=null?L:x.__shady_native_nextElementSibling)!=null?D:x.__shady_nextElementSibling)!=null?S:null};
sdG=function(x){var L,D,S;return(S=(D=(L=x.previousElementSibling)!=null?L:x.__shady_native_previousElementSibling)!=null?D:x.__shady_previousElementSibling)!=null?S:null};
TNn=function(x){var L,D,S;return new Set([].concat(_.lP((L=x.children)!=null?L:[]),_.lP((D=x.__shady_native_children)!=null?D:[]),_.lP((S=x.__shady_children)!=null?S:[])))};
ep4=function(x){var L,D,S;return new Set([].concat(_.lP((L=x.childNodes)!=null?L:[]),_.lP((D=x.__shady_native_childNodes)!=null?D:[]),_.lP((S=x.__shady_childNodes)!=null?S:[])))};
Rp0=function(x){if(!x)return null;var L=_.OY(x);if(!L){var D;return(D=Node.prototype.getRootNode)==null?void 0:D.call(x)}L=L.toUpperCase();for(x=gq4(x);x&&x.tagName!==L;)x=gq4(x);return x?_.yA(x):null};
G2p=function(x){for(;x&&!(x instanceof HTMLElement);)x=mrb(x);return x};
Cuw=function(x){var L=G2p(x);return x===L?_.OY(x):L?Z4(L):null};
l6n=function(x){return(x=G2p(x))?Z4(x):null};
Urw=function(x){if(x instanceof Comment)return!1;if(x instanceof Text){var L,D;if(((D=(L=x.textContent)==null?void 0:L.trim())!=null?D:"")==="")return!1}return!0};
EY=function(x,L,D){var S=L(x);for(D=D===void 0?l6n(x):D;S&&(Cuw(S)!==D||!Urw(S));)x=S,S=L(x);return S};
wEO=function(x,L,D){if(!L)return null;x=l6n(x);return Cuw(L)===x&&Urw(L)?L:EY(L,D,x)};
BNN=function(x){return EY(x,pEn,_.OY(x))};
WOO=function(x){return EY(x,FO3)};
q0N=function(x){return EY(x,bDn)};
AAc=function(x){return EY(x,sdG)};
$rO=function(x){return EY(x,Y00)};
rAN=function(x){return wEO(x,x.firstChild||x.__shady_native_firstChild||x.__shady_firstChild||null,bDn)};
NNw=function(x){var L,D,S;var Q=(S=(D=(L=x.firstElementChild)!=null?L:x.__shady_native_firstElementChild)!=null?D:x.__shady_firstElementChild)!=null?S:null;return wEO(x,Q,FO3)};
iDc=function(x){var L,D,S;var Q=(S=(D=(L=x.lastChild)!=null?L:x.__shady_native_lastChild)!=null?D:x.__shady_lastChild)!=null?S:null;return wEO(x,Q,Y00)};
f6h=function(x){var L,D,S;var Q=(S=(D=(L=x.lastElementChild)!=null?L:x.__shady_native_lastElementChild)!=null?D:x.__shady_lastElementChild)!=null?S:null;return wEO(x,Q,sdG)};
oqp=function(x){var L=l6n(x);return Array.from(ep4(x)).filter(function(D){return Cuw(D)===L})};
a6w=function(x){var L=Z4(x);return Array.from(TNn(x)).filter(function(D){return _.OY(D)===L})};
_.M$=function(x,L,D){if(x instanceof HTMLElement&&_.OY(x)===D){var S=Array.from(x.classList).indexOf("style-scope");if(S===-1)x.classList.add("style-scope"),x.classList.add(L);else if(!(S+1>=x.classList.length)){S=x.classList[S+1];var Q,J;x==null||(Q=x.classList)==null||(J=Q.replace)==null||J.call(Q,S,L)}}if(x instanceof HTMLElement||x instanceof DocumentFragment)for(Q=_.O(TNn(x)),J=Q.next();!J.done;J=Q.next())_.M$(J.value,L,D);return x};
dc=function(x,L){if(x instanceof HTMLElement&&_.OY(x)===L){var D=Array.from(x.classList).indexOf("style-scope");D===-1||D+1>=x.classList.length||x.classList.remove("style-scope",x.classList[D+1])}if(x instanceof HTMLElement||x instanceof DocumentFragment){D=_.O(x.children);for(var S=D.next();!S.done;S=D.next())dc(S.value,L)}return x};
_.zpG=function(x,L){return IW(x).prototype.appendChild.call(x,L)};
XEN=function(x,L){if(x===L)return!0;x=ep4(x);return Array.from(x).some(function(D){return XEN(D,L)})};
_.jr=function(x,L){if(x instanceof PP)return x;(L==null?0:L.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(x,"ownerDocument")&&Object.defineProperty(x,"ownerDocument",{get:function(){return window.document}});
return new PP(x)};
nqO=function(){var x=PP.prototype,L=[].concat(_.lP(cA0?[]:["getRootNode"]),["setAttribute","removeAttribute"]);L=_.O(L);for(var D=L.next(),S={};!D.done;S={method$jscomp$51:void 0},D=L.next())S.method$jscomp$51=D.value,x[S.method$jscomp$51]=function(Q){return function(){return this.host[Q.method$jscomp$51].apply(this.host,arguments)}}(S)};
xM0=function(){var x=PP.prototype,L=[].concat(_.lP(cA0?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.lP(tgh?[]:["querySelector","querySelectorAll"]));L=_.O(L);for(var D=L.next(),S={};!D.done;S={method$jscomp$52:void 0},D=L.next())S.method$jscomp$52=D.value,x[S.method$jscomp$52]=function(Q){return function(){return this.root[Q.method$jscomp$52].apply(this.root,arguments)}}(S)};
S_4=function(){var x=PP.prototype,L=[].concat(_.lP(Lxf?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.lP(DM0?[]:["parentNode"]));L=_.O(L);for(var D=L.next(),S={};!D.done;S={prop$jscomp$63:void 0},D=L.next())S.prop$jscomp$63=D.value,Object.defineProperty(x,S.prop$jscomp$63,{get:function(Q){return function(){return this.host[Q.prop$jscomp$63]}}(S),
configurable:!0})};
Kx0=function(){var x=PP.prototype,L=["activeElement"].concat(_.lP(Lxf?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.lP(QYO?[]:["children"]),_.lP(Jep?[]:["lastChild"]));L=_.O(L);for(var D=L.next(),S={};!D.done;S={prop$jscomp$64:void 0},D=L.next())S.prop$jscomp$64=D.value,Object.defineProperty(x,S.prop$jscomp$64,{get:function(Q){return function(){return this.root[Q.prop$jscomp$64]}}(S),
configurable:!0})};
Oa3=function(){for(var x=PP.prototype,L=_.O(["innerHTML","textContent"]),D=L.next(),S={};!D.done;S={prop$jscomp$65:void 0},D=L.next())S.prop$jscomp$65=D.value,Object.defineProperty(x,S.prop$jscomp$65,{get:function(Q){return function(){return this.root[Q.prop$jscomp$65]}}(S),
set:function(Q){return function(J){this.root[Q.prop$jscomp$65]=J}}(S),
configurable:!0})};
Za0=function(x){var L=PP.prototype;x=_.O(Object.entries(x));for(var D=x.next(),S={};!D.done;S={fn$jscomp$402:void 0},D=x.next()){var Q=_.O(D.value);D=Q.next().value;Q=Q.next().value;S.fn$jscomp$402=Q;L[D]=function(J){return function(){return J.fn$jscomp$402.apply(null,[this.host.node||this.host].concat(_.lP(arguments)))}}(S)}};
IOw=function(){for(var x=PP.prototype,L=_.O(Object.entries(yeG)),D=L.next(),S={};!D.done;S={fn$jscomp$403:void 0},D=L.next()){var Q=_.O(D.value);D=Q.next().value;Q=Q.next().value;S.fn$jscomp$403=Q;Object.defineProperty(x,D,{get:function(J){return function(){return J.fn$jscomp$403.apply(null,[this.host.node||this.host].concat(_.lP(arguments)))}}(S),
configurable:!0})}};
_.vP=function(x){return x instanceof EAn||x instanceof Document?x:new EAn(x)};
MIs=function(){for(var x=EAn.prototype,L=_.O("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),D=L.next(),S={};!D.done;S={method$jscomp$53:void 0},D=L.next())S.method$jscomp$53=D.value,x[S.method$jscomp$53]=function(Q){return function(){return HTMLElement.prototype[Q.method$jscomp$53].call.apply(HTMLElement.prototype[Q.method$jscomp$53],[this.node].concat(_.lP(arguments)))}}(S)};
dM3=function(){for(var x=EAn.prototype,L=_.O("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),D=L.next(),S={};!D.done;S={prop$jscomp$66:void 0},D=L.next())S.prop$jscomp$66=D.value,Object.defineProperty(x,S.prop$jscomp$66,{get:function(Q){return function(){var J;return(J=this.node["__shady_native_"+Q.prop$jscomp$66])!=null?J:this.node[Q.prop$jscomp$66]}}(S),
configurable:!0})};
_.VA=function(x,L,D){D===void 0&&(D=!x.classList.contains(L));D?x.classList.add(L):x.classList.remove(L)};
_.hq=function(x,L,D){D===void 0&&(D=!x.hasAttribute(L));if(L==="class")throw Error("kg");D?_.vP(x).setAttribute(L,""):_.vP(x).removeAttribute(L)};
P03=function(x){return(x.localName!=="slot"?[]:(0,_.HP)(x).assignedNodes({flatten:!0})).filter(function(L){return L.nodeType===Node.ELEMENT_NODE})};
_.jYp=function(x){return(x=_.jr(x).querySelector("slot"))&&x.localName==="slot"?P03(x):[]};
_.uN=function(x,L){window.ShadyCSS&&window.ShadyCSS.styleSubtree(x,L)};
k9=function(x,L){var D=L.bind(x);return function(S){D(S,S.detail)}};
_.p$=function(x,L){var D=vAb.get(x);D||(D=new WeakMap,vAb.set(x,D));if(D.has(L))return D.get(L);if(_.u("web_fi_listen_disable_bound_fn_helper")){var S=L.bind(x);x=function(Q){S(Q,Q==null?void 0:Q.detail)}}else x=k9(x,L);
D.set(L,x);return x};
Has=function(x,L){VIb(x);x.created[hfn].push(L)};
VIb=function(x){if(!x.created||!x.created[hfn]){var L=x.created,D=L?[L]:[];x.created=function(){for(var S=_.O(D),Q=S.next();!Q.done;Q=S.next())Q.value.apply(this)};
x.created[hfn]=D}};
uJ0=function(x){return function(){var L=_.Ne.apply(0,arguments);return function(D,S,Q){x.apply(null,_.lP(L))(D,S,Q)}}};
gAf=function(){return function(){var x=_.Ne.apply(0,arguments);return function(L,D,S){Qwf.apply(null,_.lP(x))(L,D,S)}}};
_.b=function(x){return gAf()(x)};
_.Y=function(){return uJ0(ZWc).apply(null,_.lP(_.Ne.apply(0,arguments)))};
_.mX=function(x){return _.u("pbcm_fi_listen_decorators")?kWp(x):uJ0(Ken)(x)};
kWp=function(x){return function(L,D){Has(L,function(){var S=this[D],Q=_.u("web_fi_listen_disable_bound_fn_helper")?function(J){S(J,J.detail)}.bind(this):k9(this,S);
pSc.has(x)?Bv(this.hostElement,x,Q):this.hostElement.addEventListener(x,Q)})}};
_.bN=function(){return uJ0(OW3).apply(null,_.lP(_.Ne.apply(0,arguments)))};
_.F=function(x){x=x===void 0?{}:x;return uJ0(JRp)(x)};
_.Y9=function(x){if(x.hostElement&&x!==x.hostElement){var L=_.G0(x.hostElement);L=x.renderIdom?L:L.shadowRoot}L||(x=x.root,L=x instanceof Node?_.G0(x):null);return L};
_.F1=function(x){return mMG?bac(x):function(L,D){Object.defineProperty(L,D,{get:function(){var S;return(S=_.Y9(this))==null?void 0:S.querySelector(x)},
enumerable:!0,configurable:!0})}};
bac=function(x){return function(L,D){Object.defineProperty(L,D,{get:function(){var S,Q=(S=_.jr(this.hostElement))==null?void 0:S.querySelector(x);if(Q)return Q;var J;return(J=_.Y9(this))==null?void 0:J.querySelector(x)},
enumerable:!0,configurable:!0})}};
_.sY=function(x){return mMG?Y_0(x):function(L,D){Object.defineProperty(L,D,{get:function(){var S;return(S=_.Y9(this))==null?void 0:S.querySelectorAll(x)},
enumerable:!0,configurable:!0})}};
Y_0=function(x){return function(L,D){Object.defineProperty(L,D,{get:function(){var S,Q=(S=_.jr(this.hostElement))==null?void 0:S.querySelectorAll(x);if(Q==null?0:Q.length)return Q;var J;return(J=_.Y9(this))==null?void 0:J.querySelectorAll(x)},
enumerable:!0,configurable:!0})}};
Fxp=function(x){return function(L){if(![_.KL,_.e].includes(Object.getPrototypeOf(L.prototype).constructor))throw Error("lg");XMG(Object.assign({},typeof x!=="string"?x:{is:x,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(L)}};
_.RW=function(){var x=x===void 0?{}:x;return function(L){if(![OK,_.er].includes(Object.getPrototypeOf(L.prototype).constructor))throw Error("mg");co4(Object.assign({},x,{disableInheritanceCheck:!0}))(L)}};
TWf=function(x,L){sY0[x]!=null||(sY0[x]=new Set);sY0[x].add(L)};
_.GV=function(){var x=_.bN.apply(null,_.lP(_.Ne.apply(0,arguments)));return function(L,D){TWf(L.is,D);x(L,D)}};
UY=function(x,L,D){if(C$(x)&&!efG.has(L)){L=L.replace(/^JSC\$[\d]+_/,"");L=L.replace(/\.\d+(\.|$)/g,function(J,Z){return".#"+Z});
lN[x]!=null||(lN[x]={});var S,Q;(S=lN[x])[Q=L]!=null||(S[Q]=new Set);lN[x][L].has(D)||(lN[x][L].add(D),_.Uh("polymerPropertyAccessEvent",{componentName:x,propertyName:L,accessType:D}))}};
Rfn=function(){return _.u("polymer_property_access_logging_debug")||_.u("polymer_enable_property_access_logging")};
C$=function(x){if(_.u("polymer_property_access_logging_debug"))return!0;if(!_.u("polymer_enable_property_access_logging"))return!1;GWN||(GWN=Date.now());return(z0(x)+GWN)%100<_.dE("polymer_property_access_logging_percent")};
C0s=function(x,L){return C$(L)&&x.hostElement.loggingStatus?new Proxy(x,{get:function(D,S,Q){if(D.hostElement.loggingStatus.bypassProxyController)return D[S];D.hostElement.loggingStatus.isExternalGet=!0;var J=D[S];D.hostElement.loggingStatus.isExternalGet=!1;if(J instanceof Function)return function(){var Z=_.Ne.apply(0,arguments);try{return D.hostElement.loggingStatus.currentExternalCall=S,UY(L,S,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),J.apply(this===Q?D:this,Z)}finally{D.hostElement.loggingStatus.currentExternalCall=
void 0}};
UY(L,S,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return J},
set:function(D,S,Q){if(D.hostElement.loggingStatus.bypassProxyController)return D[S]=Q,!0;D.hostElement.loggingStatus.isRendererStamper?UY(L,S,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):D.hostElement.loggingStatus.isDeclarativeExternal||UY(L,S,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{D.hostElement.loggingStatus.currentExternalSet=S,D[S]=Q}finally{D.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):x};
lOO=function(x,L){x&&x.loggingStatus&&!x.loggingStatus.isDeclarativeExternal&&!x.loggingStatus.isExternalGet&&x.loggingStatus.currentExternalSet!==L&&UY(x.tagName.toLowerCase(),L,"PROPERTY_ACCESS_GET_INTERNAL")};
wc=function(x,L,D){x&&(D||x.loggingStatus&&!x.loggingStatus.isInitializing&&!x.loggingStatus.isDefiningPropertyAccessor&&x.loggingStatus.currentExternalSet!==L)&&UY(x.tagName.toLowerCase(),L,"PROPERTY_ACCESS_SET_INTERNAL")};
UMw=function(){return{_definePropertyAccessor:function(x,L){var D=this,S=D.hostElement.loggingStatus;S&&(S.isDefiningPropertyAccessor=!0);var Q=D[x];Q!==void 0&&(D.__data?D._setPendingProperty(x,Q):(D.__dataProto!=null||(D.__dataProto={}),D.__dataProto[x]=Q));S&&(S.isDefiningPropertyAccessor=!1);Object.defineProperty(this,x,{get:function(){lOO(D.hostElement,x);return this.__data[x]},
set:function(J){L||this._setPendingProperty(x,J,!0)&&this._invalidateProperties()}})},
created:function(){var x=this._setPendingProperty.bind(this);this._setPendingProperty=function(L,D,S){wc(this.hostElement,L);return x.apply(this,[L,D,S])}}}};
wS0=function(x){Rfn()&&_.b(BP.prototype)(x.prototype,"__templateBindingLoggingBehavior")};
BWb=function(x,L){if(L.resolvedFactories.length!==x.resolvedFactories.length)return!0;L=_.O(L.resolvedFactories.entries());for(var D=L.next();!D.done;D=L.next()){var S=_.O(D.value);D=S.next().value;S=S.next().value;if(S.providerClass){if(S.providerClass!==x.resolvedFactories[D].providerClass)return!0}else if(S.providerValue){if(S.providerValue!==x.resolvedFactories[D].providerValue)return!0}else if(S.factory!==x.resolvedFactories[D].factory)return!0}return!1};
Wxh=function(x,L){x=_.O(x);for(var D=x.next();!D.done;D=x.next())if(D=D.value,D.constructor===Array)Wxh(D,L);else{var S=L;S.has(D)||(D.inject&&S.add(D),D.behaviors&&Wxh(D.behaviors,S))}};
WP=function(x,L){var D=x[L];x[L]=function(){var S=_.Ne.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(D)return D.apply(this,S)}};
rec=function(){_.q$.Class=function(D,S){D=q_f(D,S);WP(D.prototype,"created");return D};
WP(Aq.prototype,"_initializeProperties");WP(_.$9.prototype,"_initializeProperties");if(Ae3)WP($MN,"created");else{var x=function(){WP(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))x();else{var L=customElements.define;customElements.define=function(D,S,Q){L.call(customElements,D,S,Q);D==="tp-yt-iron-list"&&(x(),customElements.define=L)}}}};
ia0=function(x,L){x.prototype.behaviors=x.prototype.behaviors||[];x.prototype.behaviors.unshift(NWh.InjectBehavior);x.prototype.provide=L};
_.oW=function(x){return function(L){if(!x.disableElementRegistration){x.noInjection||ia0(L,x.providers);var D=L.prototype;D.__templateHelpers||Qwf(rc.prototype)(D,"__templateHelpers");D=x.is;fOf||(fOf=Date.now());(z0(D)+fOf)%100<_.dE("polymer_log_prop_change_observer_percent")&&Qwf(N$.prototype)(L.prototype,"__propertyObserverObserver");L.prototype.behaviors=L.prototype.behaviors||[];L.prototype.behaviors.unshift(_.oA3.YtHostElementBehavior);wS0(L);Fxp({is:x.is,notifyObserversOnUndefined:x.notifyObserversOnUndefined!==
!1,fastInit:x.fastInit,template:x.template,disableEnforceFastDefaultValuesCheck:!0})(L)}}};
_.w=function(x){return _.oW({is:x.is,template:x.template,disableElementRegistration:x.disableElementRegistration,cssBuildOptOut:x.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
XSh=function(x,L){if(aOp){x=new x;for(var D=_.O(Object.getOwnPropertyNames(x)),S=D.next();!S.done;S=D.next())S=S.value,L[S]=x[S];for(D=L;D&&D!==Object.prototype;D=Object.getPrototypeOf(D)){S=_.O(Object.getOwnPropertyNames(D));for(var Q=S.next();!Q.done;Q=S.next())Q=Q.value,x.hasOwnProperty(Q)||Object.defineProperty(x,Q,zfG(L,Q))}}else x.apply(L)};
zfG=function(x,L){return{get:function(){var D=x[L];return D instanceof Function?D.bind(x):D},
set:function(D){x[L]=D}}};
nAs=function(x,L){for(var D=x._noAccessors,S=_.O(Object.getOwnPropertyNames(x)),Q=S.next();!Q.done;Q=S.next())if(Q=Q.value,!ceN.has(Q))if(D)L[Q]=x[Q];else{var J=Object.getOwnPropertyDescriptor(x,Q);J&&(J.configurable=!0,Object.defineProperty(L,Q,J))}};
tI3=function(x,L,D){return function(S){if(D){var Q=D();S.model=Q}if(x[L])x[L](S,S.detail)}};
aW=function(x){var L=[];if(typeof x==="string")x.length>0&&L.push.apply(L,_.lP(x.split(".")));else{x=_.O(x);for(var D=x.next();!D.done;D=x.next())D=D.value,typeof D==="string"?L.push.apply(L,_.lP(D.split("."))):L.push(D)}return L};
x0n=function(x,L){if(L[L.length-1]!=="*"&&L[L.length-1]!=="splices"){for(var D=0;D<L.length;D++){if(!x)return;x=x[L[D]]}return x}};
Lqn=function(x,L){if(x.length>L.length)return!1;for(var D=0;D<x.length;D++)if(x[D]!==L[D])return!1;return!0};
SMc=function(x,L,D){if(L.type==="compute"){var S=L.getter.bind(D);var Q=L.args}else S=function(){return D[L.method.methodName].apply(D,_.lP(_.Ne.apply(0,arguments)))},Q=L.method.args;
D00(x,L.propertyKey,S,Q,L.value)};
Jbs=function(x,L){if(L.readOnly){var D=Object.getOwnPropertyDescriptor(x.model,L.propertyKey);Object.defineProperty(x.model,L.propertyKey,{get:D.get,set:function(){}});
x.model[Q0c(L.propertyKey)]=D.set}};
Kq0=function(x,L,D){if(D){var S=L.propertyKey,Q=L.selector;L=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.lP(L.selectorArgs.map(function(J){return{type:"path",path:J}})));
D00(x,S,function(J){var Z=_.Ne.apply(1,arguments);return Q.apply(null,[D.getState()].concat(_.lP(Z)))},L)}};
Zzf=function(x,L,D){var S=_.mz(L.propertyKey)+"-changed";OzG(x,function(Q){var J={value:Q.value,queueProperty:!0};Q.path.split(".").length>1&&(J.path=Q.path);D.dispatchEvent(new CustomEvent(S,{detail:J}))},[{type:"wildcard",
path:L.propertyKey}])};
ybw=function(x,L,D){OzG(x,function(){D[L.method.methodName].apply(D,_.lP(_.Ne.apply(0,arguments)))},L.method.args)};
Q0c=function(x){return"_set"+(x.charAt(0).toUpperCase()+x.slice(1))};
I1G=function(){var x,L=BB(function(D){x=D},!1);
return[x,L]};
j0s=function(x){x=x.trim().replace(EpO,",").replace(MDb,"$1");var L=x[0];L==="-"&&(L=x[1]);if(L>="0"&&L<="9")return{type:"literal",value:Number(x)};if(L==="'"||L==='"')return{type:"literal",value:x.slice(1,-1)};if(L=x.match(d0N)){L=L[1];var D=Pgs[L];if(D)return{type:D,path:x.slice(0,-(L.length+1))}}return{type:"path",path:x}};
HzG=function(x){var L=x.match(vpb);if(L)return x={methodName:L[1],args:VDO},L[2].trim()&&(L=L[2].replace(hi0,"&comma;").split(","),x.args=L.map(j0s)),x};
uGN=function(x,L,D,S){S=S===void 0?!1:S;L=_.mz(L);var Q=Y3;Q&&(D=Q(D,L,"attribute",x));zV(x,D,L,S)};
zV=function(x,L,D,S){L=gpw(L,S===void 0?!1:S);L===void 0?x.removeAttribute(D):x.setAttribute(D,L)};
gpw=function(x,L){switch(typeof x){case "object":case "function":if(x instanceof Date)return x.toString();if(x){if((L===void 0?0:L)&&!_.u("polymer_reflect_objects_as_boolean_killswitch"))return x?"":void 0;L=window.trustedTypes?window.trustedTypes.isHTML(x)||window.trustedTypes.isScript(x)||window.trustedTypes.isScriptURL(x):void 0;if(L)return x;try{return JSON.stringify(x)}catch(D){_.qy(Error("Ig`"+x))}}break;case "boolean":return x?"":void 0;default:return x!==null&&x!==void 0?x.toString():void 0}};
kfw=function(x){if(x===void 0)throw Error("Jg");return x};
FqO=function(x,L,D,S){var Q=pTh(S);if(Q.length){S=D;var J="property";m0O.test(D)?J="attribute":D[D.length-1]==="$"&&(D=D.slice(0,-1),J="attribute");var Z=bz3(Q);Z&&J==="attribute"&&(D==="class"&&x.hasAttribute("class")&&(Z+=" "+x.getAttribute(D)),zV(x,Z,D));J==="attribute"&&S==="disable-upgrade$"&&x.setAttribute("disable-upgrade","");x.localName==="input"&&S==="value"&&x.setAttribute("value","");x.removeAttribute(S);J==="property"&&(D=_.bz(D));L=kfw(L);YMs(L,J,D,Q);return!0}return D.slice(0,3)===
"on-"?(x.removeAttribute(D),(J=L).events!=null||(J.events=[]),L.events.push({name:D.slice(3),value:S}),!0):D==="id"?(L.id=S,!0):!1};
pTh=function(x){for(var L=[],D=0,S;(S=s00.exec(x))!==null;){S.index>D&&L.push({type:"literal",value:x.slice(D,S.index)});var Q=S[1][0];D=!!S[2];S=S[3].trim();if(Q==="{")throw Error("Kg");(Q=HzG(S))?L.push({type:"method",negate:D,signature:Q}):L.push({type:"path",negate:D,path:S});D=s00.lastIndex}D&&D<x.length&&(x=x.substring(D))&&L.push({type:"literal",value:x});return L};
bz3=function(x){for(var L="",D=0;D<x.length;D++){var S=x[D];S.type==="literal"&&(L+=S.value)}return L};
YMs=function(x,L,D,S){x.bindings!=null||(x.bindings=[]);x.bindings.push({kind:L,target:D,parts:S})};
Cg3=function(x,L,D){var S=!1;if(x.localName==="template"){S=D;var Q=L.stripWhitespace;Q=TJN(x,Q===void 0?!1:Q);var J=x.content.ownerDocument.createDocumentFragment();Q.content=J;J.appendChild(x.content);S&&(S.templateInfo=Q);S=!0}else x.localName==="slot"&&(L.hasInsertionPoint=!0);if(x.firstChild&&(Q=D,x.localName!=="script"&&x.localName!=="style")){J=0;for(var Z=x.firstChild;Z;){var y=Z;if(y.localName==="template"){var E=y.getAttribute("is");if((Z=E==="dom-if")||E==="dom-repeat"){y.removeAttribute("is");
E=y.ownerDocument.createElement("ps-"+E);y.parentNode.replaceChild(E,y);E.appendChild(y);var P=Array.from(y.attributes);P=_.O(P);for(var v=P.next();!v.done;v=P.next())v=v.value,Z?ei3.has(v.name)&&zV(E,v.value,v.name):Ri0.has(v.name)?zV(E,v.value,v.name):Gf0.has(v.name),y.removeAttribute(v.name);Z=E}else Z=y}if(Z.nodeType===Node.TEXT_NODE){y=void 0;E=x;for(P=Z;((y=P.nextSibling)==null?void 0:y.nodeType)===Node.TEXT_NODE;)v=void 0,(v=P).textContent!=null||(v.textContent=""),P.nextSibling.textContent&&
(P.textContent+=P.nextSibling.textContent),E.removeChild(P.nextSibling);if(L.stripWhitespace&&Z.textContent&&!Z.textContent.trim()){x.removeChild(Z);Z=Z.nextSibling;continue}}Cg3(Z,L,{parentIndex:J,parentInfo:Q});Z.parentNode&&J++;Z=Z.nextSibling}}var V;if((V=x.hasAttributes)==null?0:V.call(x)){V=D=kfw(D);Q=!1;J=Array.from(x.attributes);J=_.O(J);for(y=J.next();!y.done;y=J.next())y=y.value,Q=FqO(x,V,y.name,y.value)||Q;S=Q||S}x.nodeType===Node.TEXT_NODE&&(V=pTh(x.textContent),V.length&&(x.textContent=
bz3(V)||" ",D=kfw(D),YMs(D,"text","textContent",V),S=!0));D&&S&&(D.infoIndex=L.nodeInfoList.push(D)-1)};
TJN=function(x,L){L={nodeInfoList:[],stripWhitespace:(L===void 0?!1:L)||x.hasAttribute("strip-whitespace")};Cg3(x.content,L);return L};
l1f=function(x){Object.assign(x,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
wTs=function(x,L,D){L.signalCache!=null||(L.signalCache={});var S=L.signalCache[D];if(!S){var Q=D.split(".");S=!U04(x,Q[0]);if(Q.length>1&&S){var J=x.getPathMutationSignal(Q);S=function(){var Z=AI(x.owner,function(){return x.getWithPath([Q[0]])}),y,E=(y=J())==null?void 0:y.value;
return{rootWasDefined:Z!==void 0,value:E}}}else S=function(){var Z=x.getWithPath(Q);
return{rootWasDefined:Z!==void 0,value:Z}};
L.signalCache[D]=S}return S()};
Wqs=function(x,L,D,S,Q){L=L.parts.map(function(Z,y){if(Z.type==="literal"){D.partWasDefined!=null||(D.partWasDefined=[]);var E;(E=D.partWasDefined)[y]||(E[y]=Z.value!==void 0);return Z.value}var P;if(Z.type==="method"){var v,V=(v=(P=D.partWasDefined)==null?void 0:P[y])!=null?v:!1;V||(V=Z.signature.args.every(function(k){return k.type==="literal"}));
var h=!1,H=!0;P=Z.signature.args.map(function(k){if(k.type==="literal")return k.value;if(k.type!=="path")throw Error("Lg`"+k.type);var T=wTs(x,D,k.path);k=T.value;T=T.rootWasDefined;h||(h=T);H&&(H=T);return k});
V||(V=Q===1?H:h);D.partWasDefined!=null||(D.partWasDefined={});D.partWasDefined[y]=V;if(!V)return;P=(y=wTs(x,D,Z.signature.methodName).value)&&typeof y==="function"?y.apply(S,P):void 0}else v=wTs(x,D,Z.path),P=v.value,D.partWasDefined!=null||(D.partWasDefined={}),(V=D.partWasDefined)[y]||(V[y]=P!==void 0||v.rootWasDefined);Z.negate&&(P=!P);return P});
if(L.length===1){var J;return((J=D.partWasDefined)==null?0:J[0])?L[0]:BJ3}return L.join("")};
qMO=function(x){return typeof x==="object"&&!!x&&"notifyPath"in x&&"canNotifyPath"in x};
Abc=function(x){return typeof x==="object"&&!!x&&"notifyPath"in x};
$0N=function(x){return"polymerController"in x};
rbf=function(x,L){L=""+aW(L)[0];if(qMO(x))return x.canNotifyPath(L);if($0N(x)&&qMO(x.polymerController))return x.polymerController.canNotifyPath(L);if(Abc(x)){var D;return!((D=x.properties)==null||!D[L])}if($0N(x)&&Abc(x.polymerController)){var S;return!((S=x.polymerController.properties)==null||!S[L])}return!1};
NJG=function(x,L,D){qMO(x)||Abc(x)?x.notifyPath(L,D):$0N(x)&&(qMO(x.polymerController)||Abc(x.polymerController))&&x.polymerController.notifyPath(L,D)};
f1c=function(x,L,D){if(D!==BJ3){x.kind==="attribute"||x.target!=="textContent"&&(x.target!=="value"||L.localName!=="input"&&L.localName!=="textarea")||(D=D===void 0?"":D);var S,Q=(S=izc.Polymer)==null?void 0:S.sanitizeDOMValue;Q&&(D=Q(D,x.target,x.kind,L));if(x.kind==="attribute"){x=x.target;if(x==="class"||x==="name"||x==="slot")L=(0,_.HP)(L);zV(L,D,x)}else if(x=x.target,D!==L[x]||typeof D==="object")L.loggingStatus&&(L.loggingStatus.isDeclarativeExternal=!0,UY(L.localName,x,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
L[x]=D,L.loggingStatus&&(L.loggingStatus.isDeclarativeExternal=!1)}};
op0=function(x,L,D,S){var Q=L.parts[0];if(L.parts.length!==1||Q.type!=="path"||!rbf(D,L.target))return!1;var J=_.O(Q.path.split(".")),Z=J.next().value,y=S$(J);if(U04(x,Z))return!1;S.signalCache!=null||(S.signalCache={});J=S.signalCache[Q.path];var E;J=(E=J)==null?void 0:E().value;if((J==null?void 0:J.path)!==void 0){S=aW(J.path);var P=aW(Q.path);S=[L.target].concat(_.lP(S.slice(P.length-1)));NJG(D,S,Q.negate?!J.value:J.value);return!0}var v=X1(x,Z);var V=v.getChangeRecordSignal(y),h=!1;J=function(){if(!h){var k=
AI(x.owner,function(){return v.getWithPath([])});
h||(h=k!==void 0)}return{value:V(),rootWasDefined:h}};
S.signalCache[Q.path]=J;S.partWasDefined!=null||(S.partWasDefined={});J=J();(P=S.partWasDefined)[0]||(P[0]=J.rootWasDefined);var H=AI(x.owner,function(){return v.getWithPath(y)});
S.partWasDefined[0]&&AI(x.owner,function(){return void f1c(L,D,Q.negate?!H:H)});
return!0};
a10=function(x,L,D,S,Q,J){if(!op0(x,L,D,S)){var Z=Wqs(x,L,S,Q,J);AI(x.owner,function(){return void f1c(L,D,Z)})}};
zin=function(x,L,D,S,Q,J){D=_.O(D);for(var Z=D.next(),y={};!Z.done;y={infoIndex:void 0},Z=D.next()){Z=Z.value;var E=Z.bindings;y.infoIndex=Z.infoIndex;Z=Z.parentInfo;if(E){E=_.O(E);for(var P=E.next(),v={};!P.done;v={b$jscomp$254:void 0,bindingCtx$jscomp$4:void 0},P=E.next()){v.b$jscomp$254=P.value;if(y.infoIndex===void 0)throw Error("Mg");v.bindingCtx$jscomp$4={};x.effect(function(V,h){return function(){Q&&!Q()||a10(x,V.b$jscomp$254,L[h.infoIndex],V.bindingCtx$jscomp$4,S,J)}}(v,y))}}Z&&zin(x,L,[Z],
S,Q,J)}};
XTf=function(x,L){x=(L.parentInfo?XTf(x,L.parentInfo):x).firstChild;for(var D=0;x;x=x.nextSibling)if(L.parentIndex===D++)return x;throw Error("Ng");};
npf=function(x,L,D,S){x=document.importNode(x.content,!0);x.__noInsertionPoint=!(S==null?0:S.hasInsertionPoint);for(var Q=Array(L.length),J={},Z=0;Z<L.length;Z++){var y=L[Z],E=XTf(x,y);Q[Z]=E;y.id&&(J[y.id]=E);if(y.templateInfo){var P=E.parentElement;P&&(P.templateInfo=y.templateInfo,P.parentSignalProxy=D,P.eventListenerHost=S.eventListenerHost,P.stampingEnabled=S.enabledSignal)}P=void 0;if((P=y.events)==null?0:P.length)for(P=0;P<y.events.length;P++){var v=y.events[P];cb4(S.eventListenerHost,E,v.name,
v.value,S.getModel)}}zin(D,Q,L,S.thisCtx,S.enabledSignal,S.methodInvocationRequirement);return{root:x,nodes:Q,nodesById:J}};
xAG=function(x,L){x=x();var D;(D=tDO.ShadyCSS)==null||D.prepareTemplate(x,L);L=TJN(x);return{template:x,nodeInfoList:L.nodeInfoList,hasInsertionPoint:L.hasInsertionPoint}};
Sd0=function(){L44=!1;for(var x=cP.length,L=0;L<x;L++){var D=cP[L];if(D)try{D()}catch(S){Promise.resolve().then(function(){throw S;})}}cP.splice(0,x);
DAp+=x};
O53=function(x){L44||(L44=!0,Qgf.textContent=(JfN++).toString());cP.push(x);return K4G++};
_.xi=function(x,L,D){n$++;x=L?new Z5n(n$,x,L,D):new yf3(n$,x);tq.set(n$,x);return n$};
IIN=function(x){(x=tq.get(x))&&x.cancel()};
MM0=function(x,L){x=EMO.get(x);return x?(L=x.get(L))?L:null:null};
_.LI=function(x,L,D,S){var Q=MM0(x,L);if(!Q){Q=new dAh;var J=EMO.get(x);J||(J=new Map,EMO.set(x,J));J.set(L,Q)}x=D.bind(x);Q.run(x,S,void 0)};
_.P$n=function(x,L){var D;(D=MM0(x,L))==null||D.cancel()};
jgh=function(x){var L;(L=MM0(x,"doRender"))==null||L.flush()};
DH=function(x){var L;return(L=x.hostElement)!=null?L:x};
vMc=function(x){var L=x.indexOf(".");return L===-1?x:x.slice(0,L)};
VMs=function(x,L,D,S,Q,J){J=(Q=(S=J?vMc(L):L)?L:null)?x.get(Q):x.__data[L];Q&&J===void 0&&(J=D[L]);_.MF(x.hostElement,B_n(S)+"-changed",{value:J,queueProperty:!0,path:Q!=null?Q:void 0},{bubbles:!1,composed:!1})};
h4b=function(x,L){x.__isReflecting=!0;uGN(x.hostElement,L,x.__data[L]);x.__isReflecting=!1};
H5s=function(x){if(x._onIronRequestResizeNotifications){var L=x._onIronRequestResizeNotifications.bind(x);x._onIronRequestResizeNotifications=function(D){_.K$(D)!==x.hostElement&&L(D)}}x._ariaActiveAttributeChanged&&(x._ariaActiveAttributeChanged=x._ariaActiveAttributeChanged.bind(x.hostElement));
x._activeChanged&&(x._activeChanged=function(D){x.toggles?zV(x.hostElement,D?"true":"false",x.ariaActiveAttribute):x.hostElement.removeAttribute(x.ariaActiveAttribute);x._changedButtonState()});
x._asyncClick&&(x._asyncClick=function(){_.xi(function(){x.hostElement.click()},1)});
!x.keyEventTarget||x.keyEventTarget instanceof EventTarget||(x.keyEventTarget=DH(x.keyEventTarget));x._disabledChanged&&(x._disabledChanged=x._disabledChanged.bind(x.hostElement));x._observeItems&&(x._observeItems=function(D){var S=DH(D);return _.G0(S).observeNodes(function(Q){x._updateItems();x._updateSelected();_.MF(S,"iron-items-changed",Q,{bubbles:!1,cancelable:!1})})});
x._updateItems&&x._updateItems===_.SO._updateItems&&(x._updateItems=function(){var D=_.G0(x.hostElement).queryDistributedElements(x.selectable||"*");D=Array.prototype.filter.call(D,x._bindFilterItem);x._setItems(D)});
x._computeKeyboardClass&&(x._computeKeyboardClass=function(D){_.VA(x.hostElement,"keyboard-focus",D)});
x.ensureRipple&&(x.ensureRipple=function(D){if(x.hasRipple&&!x.hasRipple()){if(!x._createRipple)return;x._ripple=x._createRipple();x._ripple.noink=x.noink;var S=x._rippleContainer||x.hostElement;S&&_.jr(S).appendChild(x._ripple)}var Q;if(D&&((Q=x._ripple)==null?0:Q.uiDownAction)){S=_.jr(x._rippleContainer||x.hostElement);var J;Q=(J=D.composedPath())==null?void 0:J[0];S.contains(Q)&&x._ripple.uiDownAction(D)}});
x._updateMultiselectable&&(x._updateMultiselectable=function(D){D?x.hostElement.setAttribute("aria-multiselectable","true"):x.hostElement.removeAttribute("aria-multiselectable")})};
upf=function(x,L,D){D=_.O(D);for(var S=D.next();!S.done;S=D.next())XSh(S.value.constructor,x);XSh(L.constructor,x)};
k_G=function(x,L){x=_.O(x);for(var D=x.next();!D.done;D=x.next())if(D=D.value,D.type==="signal"){var S=D.propertyKey;if(L.hasOwnProperty(S)&&L[S]!=null&&D.attributeType===Object){a:{S=L[S].constructor;for(var Q=_.O(gMs),J=Q.next();!J.done;J=Q.next())if(J=J.value,S===J){S=J;break a}S=Object}D.attributeType=S}}};
pkh=function(){};
mAc=function(x){var L;return(L=x.hostElement)!=null?L:x};
b53=function(){throw Error("Rg");};
Ydw=function(x,L){x.constructor.prototype.useSignals=!0;var D=new x.constructor;upf(D,x,L.behaviors);k_G(L.reactiveSchemas,D);D={};for(var S=_.O(L.reactiveSchemas),Q=S.next();!Q.done;Q=S.next())Q=Q.value,Q.type==="signal"&&(D[Q.propertyKey]=Q.attributeType);var J={copyPropertiesToProto:b53,didRegister:!1,typesForSignals:D},Z=["disable-upgrade"].concat(_.lP(L.observedAttributes)),y=function(E){Qm.call(this,x,L,J,E)};
_.p(y,Qm);_.J3.Object.defineProperties(y,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return Z}}});
J.copyPropertiesToProto=function(){for(var E=0;E<L.behaviors.length;E++)nAs(L.behaviors[E],y.prototype);nAs(x,y.prototype)};
L.legacyOptimizations||J.copyPropertiesToProto();y.prototype.is=x.is;return y};
F4N=function(x,L){if(Object.getPrototypeOf(L.prototype).constructor!==_.e)throw Error("Sg");L.prototype.is=x.is;return Ydw(L.prototype,x)};
sgw=function(x){return x.type==="compute"||x.type==="computeWithMethod"};
TXO=function(x){for(var L=x.reactiveSchemas.filter(sgw),D=new Map,S=new Map,Q=new Map,J=_.O(L),Z=J.next();!Z.done;Z=J.next())Z=Z.value,D.set(Z.propertyKey,Z),S.set(Z.propertyKey,[]),Q.set(Z.propertyKey,0);J=0;L=_.O(L);for(Z=L.next();!Z.done;Z=L.next()){Z=Z.value;for(var y=_.O(Z.type==="computeWithMethod"?Z.method.args:Z.args),E=y.next();!E.done;E=y.next())E=E.value,E.type!=="literal"&&(E=E.path.split(".")[0],S.has(E)&&(S.get(E).push(Z.propertyKey),Q.set(Z.propertyKey,Q.get(Z.propertyKey)+1),J++))}Z=
[].concat(_.lP(S.keys())).filter(function(P){return Q.get(P)===0});
for(L=[];Z.length;)for(y=Z.shift(),L.push(D.get(y)),y=_.O(S.get(y)),E=y.next();!E.done;E=y.next())E=E.value,Q.set(E,Q.get(E)-1),J--,Q.get(E)===0&&Z.push(E);D=x.reactiveSchemas.filter(function(P){return!sgw(P)});
x.reactiveSchemas=[].concat(_.lP(D),_.lP(L))};
e4w=function(x,L){if(L.properties)for(var D=_.O(Object.entries(L.properties)),S=D.next();!S.done;S=D.next()){var Q=_.O(S.value);S=Q.next().value;Q=Q.next().value;x.properties[S]=typeof Q==="function"?{type:Q}:Q}L.observers&&x.observers.push.apply(x.observers,_.lP(L.observers));L.disabledPolySiReactions&&x.disabledPolySiReactions.push.apply(x.disabledPolySiReactions,_.lP(L.disabledPolySiReactions))};
R4f=function(x,L){for(var D=L.length-1;D>=0;D--){var S=L[D];Array.isArray(S)?R4f(x,S):x.indexOf(S)<0&&x.unshift(S)}};
G_0=function(x,L){x.reactiveSchemas=x.reactiveSchemas.filter(function(D){return D.type==="observe"&&L.includes(D.method.methodName)||sgw(D)&&L.includes(D.propertyKey)?!1:!0})};
lIN=function(x,L){var D=L.prototype,S,Q,J={is:x.is,reactiveSchemas:[],observedAttributes:[],behaviors:[NWh.InjectBehavior,rc.prototype],disableElementRegistration:x.disableElementRegistration,provide:(S=x.providers)!=null?S:[],reactivityMode:x.reactivityMode,signalProperties:(Q=D.signalProperties)!=null?Q:[]};"template"in L?J.templateGetter=function(){return L.template}:x.getTemplate&&(J.templateGetter=x.getTemplate);
D.behaviors&&R4f(J.behaviors,D.behaviors);C$w(J,L);return J};
C$w=function(x,L){for(var D=L.prototype,S={properties:{},observers:[],disabledPolySiReactions:[]},Q=_.O(x.behaviors),J=Q.next();!J.done;J=Q.next())e4w(S,J.value);e4w(S,D);if(x.signalProperties)for(D=_.O(x.signalProperties),Q=D.next();!Q.done;Q=D.next())delete S.properties[Q.value];D=_.O(Object.entries(S.properties));for(Q=D.next();!Q.done;Q=D.next()){J=_.O(Q.value);Q=J.next().value;J=J.next().value;var Z=void 0;if((Z=x.signalProperties)==null||!Z.includes(Q)){Z=void 0;var y=x,E=J.type;if(!E)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{E=Reflect.getMetadata("design:type",L,Q);for(var P=_.O(UAh),v=P.next();!v.done;v=P.next())if(v=v.value,E===v){E=v;break a}E=Object}else E=String;J.computed||J.selector||(y.reactiveSchemas.push({type:"signal",propertyKey:Q,value:J.value,attributeType:E,readOnly:J.readOnly}),y.observedAttributes.push(_.mz(Q)));J.reflectToAttribute&&y.reactiveSchemas.push({type:"reflect",propertyKey:Q});if(J.computed){E=HzG(J.computed);if(!E)throw Error("Tg");y.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:Q,method:E,value:J.value})}J.observer&&y.reactiveSchemas.push({type:"observe",method:{methodName:J.observer,args:[{type:"path",path:Q}]}});J.notify&&y.reactiveSchemas.push({type:"notify",propertyKey:Q});J.selector&&y.reactiveSchemas.push({type:"redux",propertyKey:Q,selector:J.selector,selectorArgs:(Z=J.selectorArgs)!=null?Z:[]})}}wk3&&TXO(x);L=_.O(S.observers);for(Q=L.next();!Q.done;Q=L.next())D=x,Q=Q.value,(J=HzG(Q))?D.reactiveSchemas.push({type:"observe",method:J}):console.log('Warning: unable to parse observe declaration: "'+
Q+'"');G_0(x,S.disabledPolySiReactions)};
BX3=function(x,L){for(var D=0;D<L.length;D++){var S=L[D],Q=void 0;(Q=S).showHideApi!=null||(Q.showHideApi={});Q=void 0;!!x!==!((Q=S.showHideApi)==null||!Q.hideTemplateChildren)&&(S.nodeType===Node.TEXT_NODE?x?(S.showHideApi.polymerTextContent=S.textContent,S.textContent=""):(Q=void 0,S.textContent=(Q=S.showHideApi.polymerTextContent)!=null?Q:null):S instanceof Element&&S.localName==="slot"?x?(S.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.HP)((0,_.HP)(S).parentNode).replaceChild(S.showHideApi.polymerReplaced,
S)):(Q=S.showHideApi.polymerReplaced)&&(0,_.HP)((0,_.HP)(Q).parentNode).replaceChild(S,Q):S instanceof HTMLElement&&S.style&&(x?(S.showHideApi.polymerDisplay=S.style.display,S.style.display="none"):S.style.display=S.showHideApi.polymerDisplay));S.showHideApi.hideTemplateChildren=x;S.showHideChildren&&S.showHideChildren(x)}};
qdn=function(){if(!W40){var x=document.createElement("style");x.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(x);W40=!0}};
JH=function(){return _.u("disable_hidden_dom_if_using_stamper")};
Afc=function(x,L){var D=_.KI().getState();return L?x.apply(null,[D].concat(_.lP(L))):x(D)};
NXh=function(){if($A3)return $A3;var x=_.O(_.HB(0,void 0,"MB1Hb")),L=x.next().value;x.next();var D=x.next().value;_.KI().subscribe(function(){rfs(D)});
return $A3=L};
rfs=function(x){i5h||(i5h=!0,Promise.resolve().then(function(){x(function(L){return L+1});
i5h=!1}))};
_.KI=function(){return fI3.getAppStore()};
oMh=function(x,L){return fI3.getSelectFn()(x,L)};
_.Ok=function(x){fI3.getDispatchFn()(x)};
aI4=function(x,L){var D={},S;for(S in x)D[S]=L(x[S],S);return D};
_.ZH=function(x,L){return function(){var D;return(D=_.WB(x))!=null?D:L}};
_.ym=function(x,L){var D=Object.assign({},x),S;for(S in L)L.hasOwnProperty(S)&&(D[S]=_.ZH(x[S],L[S]));return D};
z4w=function(x,L,D){x instanceof Element&&(D.debugName||(D.debugName="<"+x.tagName.toLowerCase()+(x.tagName.includes("-")?">":"."+x.className+">")),_.u("ytwiz_enable_debug_component_props")&&(x.debugProps||(x.debugProps=aI4(L,function(S){return function(){return S()}}))))};
cfn=function(x){var L;return XkN.value.traceAllComponents||((L=J2.stack[J2.stack.length-1])==null?void 0:L.name)!=="ytComponent"?PZh("ytComponent",{},x):x()};
_.B=function(x,L){var D=function(S){return cfn(function(Q){var J=nMw={};var Z;if(((Z=D)==null?0:Z.idomCompat)&&S.renderedFromIdom){var y;Z=typeof D.idomCompat==="object"?(y=D)==null?void 0:y.idomCompat.callbacks:{};Z=_.O(tMh(S,Z,D.debugName));y=Z.next().value;Z.next();Z=Z.next().value;var E=xZb(x,y);J.privateValue=E;nMw=void 0;z4w(E,y,D);J={debugName:D.debugName};Q&&J&&Object.assign(Q.attributes,J);Q=MoO(E);Q=Array.isArray(Q)?Q[0]:Q;Q[hu]||(Q[hu]={});Q[hu].updateSignalsFromIdomProps=Z;Lnf(y,E);return E}Z=
aI4(S,DZn);y=xZb(x,Z);J.privateValue=y;nMw=void 0;z4w(y,Z,D);J={debugName:D.debugName};Q&&J&&Object.assign(Q.attributes,J);Lnf(Z,y);return y})};
D.debugName=L===void 0?"":L;return D};
xZb=function(x,L){x=x(L);return pm(x)};
Sgf=function(x,L){x[L]||(x=new _.RZ("IDOM interop setter undefined. Key:",L),_.BI(x))};
DZn=function(x,L){return L==="children"||L==="ref"||typeof x==="function"||x===void 0?x:function(){return _.WB(x)}};
tMh=function(x,L,D){var S={},Q={},J={},Z={},y;for(y in x){Z={key$jscomp$945:Z.key$jscomp$945};Z.key$jscomp$945=y;var E=x[Z.key$jscomp$945];if(Z.key$jscomp$945==="children"||Z.key$jscomp$945==="ref")S[Z.key$jscomp$945]=E;else if(typeof E==="function")Z.key$jscomp$945 in L||E.length>0?(J[Z.key$jscomp$945]=E,S[Z.key$jscomp$945]=function(v){return function(){return J[v.key$jscomp$945].apply(J,_.lP(_.Ne.apply(0,arguments)))}}(Z)):S[Z.key$jscomp$945]=E;
else if(!(x[Z.key$jscomp$945]===void 0&&Z.key$jscomp$945 in L)){var P=_.O(_.HB(x[Z.key$jscomp$945],{debugName:Z.key$jscomp$945+":cwis:"+D},"rvrjQe"));E=P.next().value;P=P.next().value;S[Z.key$jscomp$945]=E;Q[Z.key$jscomp$945]=P}}return[S,Q,function(v){var V={},h;for(h in v)V={key$jscomp$946:V.key$jscomp$946,val$jscomp$122:void 0},V.key$jscomp$946=h,V.val$jscomp$122=v[V.key$jscomp$946],V.key$jscomp$946!=="children"&&V.key$jscomp$946!=="ref"&&(typeof V.val$jscomp$122==="function"?V.key$jscomp$946 in
L?J[V.key$jscomp$946]=V.val$jscomp$122:V.val$jscomp$122.length>0&&(J[V.key$jscomp$946]=V.val$jscomp$122,_.qy(new _.RZ("Callback detected that was not set in the idomCompat callbacks map. Key:",V.key$jscomp$946))):V.key$jscomp$946 in L&&V.val$jscomp$122===void 0||(Sgf(Q,V.key$jscomp$946),bm(function(H){return function(){Q[H.key$jscomp$946](H.val$jscomp$122)}}(V))))}]};
Kn3=function(x,L,D){var S=fVO(x.prototype,QvG,x.prototype.behaviors);S.prototype.is=L;S.prototype.localName=L;D&&JNs(S,D);return function(Q){Q&&(S.prototype.hostElement=Q);var J=new S;J.root=J;J.hostElement=Q;return J}};
JNs=function(x,L){var D;Object.defineProperty(x.prototype,"_template",{get:function(){D===void 0&&(D=L());return D},
set:function(S){D=S},
configurable:!0,enumerable:!0})};
E$O=function(x,L,D,S){function Q(){if(!H){for(var k=new Set,T=_.O(v),G=T.next();!G.done;G=T.next()){G=G.value;for(var U=_.O(Object.getOwnPropertyNames(G)),l=U.next();!l.done;l=U.next()){l=l.value;var X=void 0,f=(X=Object.getOwnPropertyDescriptor(G,l))==null?void 0:X.value;f&&f instanceof Function&&!I6(l)&&(!y[l]||_.u("polymer_forward_method_killswitch"))&&k.add(l)}}T=_.O(Object.entries(Object.getOwnPropertyDescriptors(x.prototype)));for(G=T.next();!G.done;G=T.next())U=_.O(G.value),G=U.next().value,
U=U.next().value,U.value instanceof Function&&!I6(G)&&k.add(G);H=k}return H}
O4n(x,L,S==null?void 0:S.providers);olw(x.prototype,x,!0);var J=Kn3(x,L,D),Z,y=(Z=x.prototype.properties)!=null?Z:{},E,P,v=(P=(E=x.prototype.behaviors)==null?void 0:E.flat(Infinity))!=null?P:[];D=_.O(v);for(Z=D.next();!Z.done;Z=D.next())y=Object.assign({},Z.value.properties,y);var V=[].concat(_.lP(Z4s),_.lP(Object.keys(y).map(function(k){return _.mz(k)}))),h=!1,H;
return{ctor:function(k,T){var G=J(k),U,l;k=[].concat(_.lP((U=S==null?void 0:S.allowedProps)!=null?U:[]),_.lP((l=S==null?void 0:S.allowedPropsFromBehaviors)!=null?l:[]));G.allowedProps=k.length>0?k:void 0;U={};l=_.O(V);for(k=l.next();!k.done;k=l.next())k=k.value,U[k]=_.bz(k);G.__dataAttributes=U;var X=G.ready.bind(G);G.ready=function(){T.beforeReady();X();if(C$(L)&&!h){var f=G.__templateInfo;if(f==null?0:f.hostProps){f=_.O(Object.keys(f.hostProps));for(var N=f.next();!N.done;N=f.next())UY(L,N.value,
"PROPERTY_ACCESS_GET_INTERNAL")}h=!0}};
G._overrideLegacyUndefined=!0;return G},
props:y,observedAttributes:V,getInitialMethods:Q,getPropsToForwardBeforeRegister:function(){for(var k=[],T=new Set,G=_.O(Object.keys(y)),U=G.next();!U.done;U=G.next())U=U.value,k.push([U,y[U].readOnly]),T.add(U);G=Q();U=_.O(Object.keys(Object.getOwnPropertyDescriptors(x.prototype)));for(var l=U.next();!l.done;l=U.next())l=l.value,!yN0(l)||G.has(l)||T.has(l)||(k.push([l,!1]),T.add(l));T=_.O(IMf);for(G=T.next();!G.done;G=T.next())k.push([G.value,!0]);return k},
getPropsToForwardBeforeReady:function(k){for(var T=[],G=_.O(Object.entries(k)),U=G.next();!U.done;U=G.next()){var l=_.O(U.value);U=l.next().value;l=l.next().value;if(yN0(U)&&!(l instanceof Function)&&(T.push([U,!1]),C$(L))){var X=l=void 0;(X=(l=k)._createPropertyAccessor)==null||X.call(l,U)}}return T},
shouldForwardProp:yN0,shouldLog:C$}};
O4n=function(x,L,D){ia0(x,D);x.prototype.behaviors.unshift(Mb0);if(Rfn()){if(C$(L)){var S;(S=x.prototype).behaviors!=null||(S.behaviors=[]);x.prototype.behaviors.unshift(UMw())}wS0(x)}_.b(rc.prototype)(x.prototype,"__templateHelpers")};
I6=function(x){return dZp.has(x)||x.startsWith("__compute__")};
yN0=function(x){return!I6(x)&&!x.startsWith("_")&&!x.endsWith("_")};
hqh=function(x,L){function D(){var h=E();h=_.O(h);for(var H=h.next();!H.done;H=h.next()){var k=_.O(H.value);H=k.next().value;k=k.next().value;PCf(V.prototype,H,k)}S=!0}
var S=!1,Q=x.ctor,J=x.getInitialMethods,Z=x.observedAttributes,y=x.getPropsToForwardBeforeReady,E=x.getPropsToForwardBeforeRegister,P=x.shouldForwardProp,v=x.shouldLog,V=function(){var h=HTMLElement.call(this)||this;h.didForwardDynamicProps=!1;h.loggingStatus={};S||D();h.inst=Q(h,{beforeReady:function(){h.didForwardDynamicProps||(h.forwardDynamicProps(),h.didForwardDynamicProps=!0)}});
h.controllerProxy=C0s(h.inst,L);h.forwardMethods();return h};
_.p(V,HTMLElement);V.prototype.forwardMethods=function(){for(var h=this,H=_.O(this.inst.getExtraMethodsToForward()),k=H.next(),T={};!k.done;T={method$jscomp$63:void 0},k=H.next()){var G=_.O(k.value);k=G.next().value;G=G.next().value;T.method$jscomp$63=G;this[k]=function(U){return function(){return U.method$jscomp$63.call.apply(U.method$jscomp$63,[h.inst].concat(_.lP(_.Ne.apply(0,arguments))))}}(T)}H=_.O(J());
for(T=H.next();!T.done;T=H.next())T=T.value,P(T)&&jvO(this,T),v(L)&&!I6(T)&&v$h(this.inst,T)};
V.prototype.forwardDynamicProps=function(){var h=y(this.inst);h=_.O(h);for(var H=h.next();!H.done;H=h.next()){var k=_.O(H.value);H=k.next().value;k=k.next().value;PCf(this,H,k);v(L)&&!I6(H)&&Vbh(this.inst,H)}};
V.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
V.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
V.prototype.attributeChangedCallback=function(h,H,k){this.inst.attributeChangedCallbackWrapper(h,H,k)};
_.J3.Object.defineProperties(V.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return L}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.J3.Object.defineProperties(V,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return Z}}});
customElements.define(L,V)};
PCf=function(x,L,D){x.hasOwnProperty(L)||Object.defineProperty(x,L,{get:function(){var S,Q=((S=x.is)!=null?S:x.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||UY(Q,L,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,S=this.polymerController[L],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,S},
set:function(S){if(!D){var Q,J=((Q=x.is)!=null?Q:x.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||UY(J,L,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=L,this.loggingStatus.bypassProxyController=!0,this.polymerController[L]!==S&&(Q={},this.polymerController.setProperties((Q[L]=S,Q)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
jvO=function(x,L,D){var S=x.polymerController;x[L]=function(){var Q=_.Ne.apply(0,arguments);x.loggingStatus.currentExternalCall=L;x.loggingStatus.bypassProxyController=!0;var J,Z=((J=x.is)!=null?J:x.tagName).toLowerCase();UY(Z,L,"PROPERTY_ACCESS_CALL_EXTERNAL");var y;J=(y=D!=null?D:S[L])==null?void 0:y.call.apply(y,[S].concat(_.lP(Q)));x.loggingStatus.currentExternalCall=void 0;x.loggingStatus.bypassProxyController=!1;return J}};
v$h=function(x,L){var D=x.hostElement,S=x[L];x[L]=function(){var Q=_.Ne.apply(0,arguments);if(D.loggingStatus.currentExternalCall!==L){var J,Z=((J=D.is)!=null?J:D.tagName).toLowerCase();UY(Z,L,"PROPERTY_ACCESS_CALL_INTERNAL")}return S==null?void 0:S.apply(x,Q)}};
Vbh=function(x,L){var D=Object.getOwnPropertyDescriptor(x,L);D&&!D.get&&Object.defineProperty(x,L,{get:function(){lOO(x.hostElement,L);return D.value},
set:function(S){wc(x.hostElement,L);D.value=S}})};
H43=function(x){return _.u("poly_si_dom_repeat_detached_fix_killswitch")||x.tagName!=="PS-DOM-REPEAT"?x.tagName==="DOM-REPEAT":!0};
g$c=function(x,L){var D=u73(x);x instanceof Element&&D.unshift(x);x=_.O(D.filter(H43));for(var S=x.next();!S.done;S=x.next()){var Q=void 0;S=_.O((Q=S.value.__instances)!=null?Q:[]);for(Q=S.next();!Q.done;Q=S.next())if(Q=Q.value,Q.root){Q=Array.from(Q.root.children);Q=_.O(Q);for(var J=Q.next();!J.done;J=Q.next())D.push.apply(D,_.lP(g$c(J.value,L)))}}return D.filter(function(Z){return Z.usePatchedLifecycles&&Z.lifecycleIsConnected===L})};
u73=function(x){var L=null;x instanceof Element?L=Element.prototype.querySelectorAll:x instanceof DocumentFragment&&(L=DocumentFragment.prototype.querySelectorAll);return L?Array.from(L.call(x,"*")):[]};
Ek=function(x){_.hI(function(){for(var L=_.O(g$c(x,!1)),D=L.next();!D.done;D=L.next()){D=D.value;D.lifecycleIsConnected=!0;try{var S=void 0,Q=void 0,J=void 0,Z=void 0;(S=(Z=D.polymerController)!=null?Z:D)==null||(J=(Q=S).connectedCallback)==null||J.call(Q)}catch(y){_.BI(y)}}})};
ML=function(x){_.hI(function(){for(var L=_.O(g$c(x,!0)),D=L.next();!D.done;D=L.next()){D=D.value;D.lifecycleIsConnected=!1;try{var S=void 0,Q=void 0,J=void 0,Z=void 0;(S=(Z=D.polymerController)!=null?Z:D)==null||(J=(Q=S).disconnectedCallback)==null||J.call(Q)}catch(y){_.BI(y)}}})};
svf=function(){if(!k9G){k9G=!0;var x=[Node];dB&&x.push(dB.Wrapper);var L=Node.prototype.insertBefore,D=Node.prototype.removeChild;x=_.O(x);for(var S=x.next(),Q={};!S.done;Q={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},S=x.next())S=S.value,Q.nativeInsertBefore=S.prototype.insertBefore,S.prototype.insertBefore=function(Z){return function(y,E){if(y instanceof DocumentFragment){var P=Array.from(y.children);y=Z.nativeInsertBefore.call(this,y,E);
if(this.isConnected&&Z.nativeInsertBefore===L)for(E=_.O(P),P=E.next();!P.done;P=E.next())Ek(P.value);return y}P=y instanceof Element&&y.isConnected;E=Z.nativeInsertBefore.call(this,y,E);P&&ML(y);this.isConnected&&Ek(y);return E}}(Q),Q.nativeAppendChild=S.prototype.appendChild,S.prototype.appendChild=function(Z){return function(y){if(y instanceof DocumentFragment){var E=Array.from(y.children);
y=Z.nativeAppendChild.call(this,y);if(this.isConnected){E=_.O(E);for(var P=E.next();!P.done;P=E.next())Ek(P.value)}return y}E=y instanceof Element&&y.isConnected;P=Z.nativeAppendChild.call(this,y);E&&ML(y);this.isConnected&&Ek(y);return P}}(Q),Q.nativeRemoveChild=S.prototype.removeChild,S.prototype.removeChild=function(Z){return function(y){var E=y instanceof Element&&y.isConnected,P=Z.nativeRemoveChild.call(this,y);
E&&D===Z.nativeRemoveChild&&ML(y);return P}}(Q),Q.nativeReplaceChild=S.prototype.replaceChild,S.prototype.replaceChild=function(Z){return function(y,E){if(y instanceof DocumentFragment){var P=Array.from(y.children);
y=Z.nativeReplaceChild.call(this,y,E);if(this.isConnected)for(ML(E),E=_.O(P),P=E.next();!P.done;P=E.next())Ek(P.value);return y}P=y instanceof Element&&y.isConnected;var v=this.isConnected,V=Z.nativeReplaceChild.call(this,y,E);v&&ML(E);P&&ML(y);v&&Ek(y);return V}}(Q);
x=[Element];dB&&x.push(dB.Wrapper);x=_.O(x);S=x.next();for(Q={};!S.done;Q={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},S=x.next())S=S.value,S.prototype.before=pUb(S.prototype.before),S.prototype.after=pUb(S.prototype.after),Q.nativeReplaceWith=S.prototype.replaceWith,S.prototype.replaceWith=function(Z){return function(){var y=_.Ne.apply(0,arguments),E=_.O(mZN(y)),P=E.next().value,
v=E.next().value;E=this.isConnected;Z.nativeReplaceWith.apply(this,y);y=_.O(v);for(v=y.next();!v.done;v=y.next())ML(v.value);if(E)for(ML(this),P=_.O(P),E=P.next();!E.done;E=P.next())E=E.value,E instanceof Element&&Ek(E)}}(Q),Q.nativeRemove=S.prototype.remove,S.prototype.remove=function(Z){return function(){var y=this.isConnected;
Z.nativeRemove.call(this);y&&ML(this)}}(Q),Q.nativeInsertAdjacentElement=S.prototype.insertAdjacentElement,S.prototype.insertAdjacentElement=function(Z){return function(y,E){var P=E.isConnected;
y=Z.nativeInsertAdjacentElement.call(this,y,E);P&&ML(E);y.isConnected&&Ek(y);return y}}(Q),Q.nativeSetAttribute=S.prototype.setAttribute,S.prototype.setAttribute=function(Z){return function(y,E){var P=b43(this);
if(!P.usePatchedLifecycles)return Z.nativeSetAttribute.call(this,y,E);var v=this.getAttribute(y);Z.nativeSetAttribute.call(this,y,E);E=this.getAttribute(y);Ygb(P,y,v,E)}}(Q),Q.nativeRemoveAttribute=S.prototype.removeAttribute,S.prototype.removeAttribute=function(Z){return function(y){var E=b43(this);
if(!E.usePatchedLifecycles)return Z.nativeRemoveAttribute.call(this,y);var P=this.getAttribute(y);Z.nativeRemoveAttribute.call(this,y);P!==null&&Ygb(E,y,P,null)}}(Q),Q.nativeToggleAttribute=S.prototype.toggleAttribute,S.prototype.toggleAttribute=function(Z){return function(y,E){var P=b43(this);
if(!this.usePatchedLifecycles)return Z.nativeToggleAttribute.call(this,y,E);var v=this.getAttribute(y),V=v!==null;E=Z.nativeToggleAttribute.call(this,y,E);E!==V&&Ygb(P,y,v,E?"":null);return E}}(Q);
x=[Document,DocumentFragment,Element,ShadowRoot];dB&&x.push(dB.Wrapper);x=_.O(x);for(Q=x.next();!Q.done;Q=x.next())Q=Q.value,Q.prototype.prepend=pUb(Q.prototype.prepend),Q.prototype.append=pUb(Q.prototype.append);(dB==null?void 0:dB.noPatch)===!0&&Fn4();document.readyState==="complete"?Ek(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&Ek(document.body)});
var J=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");J&&J.get&&J.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:J.enumerable,configurable:!0,get:J.get,set:function(Z){Z||ML(this);J.set.call(this,Z);return Z}})}};
pUb=function(x){return function(){var L=_.Ne.apply(0,arguments),D=_.O(mZN(L)),S=D.next().value;D=D.next().value;x.apply(this,L);L=_.O(D);for(D=L.next();!D.done;D=L.next())ML(D.value);if(this.isConnected)for(S=_.O(S),L=S.next();!L.done;L=S.next())L=L.value,L instanceof Element&&Ek(L)}};
Fn4=function(){for(var x=_.O(TSw),L=x.next();!L.done;L=x.next()){L=L.value.prototype;for(var D=_.O(eqp),S=D.next();!S.done;S=D.next()){S=S.value;var Q=Object.getOwnPropertyDescriptor(L,S);Q&&Object.defineProperty(L,"__shady_native_"+S,Q)}}};
Ygb=function(x,L,D,S){var Q,J;if((Q=x.polymerController)==null?0:(J=Q.observedAttributes)==null?0:J.includes(L))if(x=x.polymerController,x.attributeChangedCallbackWrapper)x.attributeChangedCallbackWrapper.call(x,L,D,S);else{var Z;(Z=x.attributeChangedCallback)==null||Z.call(x,L,D,S)}};
mZN=function(x){var L=[],D=[];x=_.O(x);for(var S=x.next();!S.done;S=x.next())S=S.value,S instanceof Element&&S.isConnected&&D.push(S),S instanceof DocumentFragment?L.push.apply(L,_.lP(Array.from(S.children))):L.push(S);return[L,D]};
b43=function(x){return!(x instanceof Element)&&x.node instanceof Element?x.node:x};
Rqf=function(x,L){var D=L?["children"].concat(_.lP(L)):["children"];L=[];D=_.O(D);for(var S=D.next();!S.done;S=D.next()){var Q=S.value;if(x.hasOwnProperty(Q)){S=x[Q];S=typeof S==="function"?S():S;S=Array.isArray(S)?S:[S];S=pm(S).flat();if(Q!=="children"){Q=B_n(Q);for(var J=_.O(S),Z=J.next();!Z.done;Z=J.next())Z=Z.value,Z instanceof Element&&Z.setAttribute("slot",Q)}L.push(S)}}L.length===0?x=[]:(x=pm(_.M("div",null,L)),x=Array.from(x.childNodes));return x};
CCO=function(x,L,D){var S={};_.qN(function(){var Q={},J;for(J in L)if(L.hasOwnProperty(J)){var Z=void 0,y=void 0;if(!(((Z=D.slotProps)==null?0:Z.includes(J))||J==="children"||((y=D.callbackProps)==null?0:y.includes(J))||J==="ref")&&(Z=_.WB(L[J]),S[J]!==Z)){S[J]=Z;y=void 0;var E=(y=x.hostElement)!=null?y:x;G9w.has(J)&&(E[J]=Z);Q[J]=Z}}bm(function(){if(x.setProperties)x.setProperties(Q);else for(var P=_.O(Object.entries(Q)),v=P.next();!v.done;v=P.next()){var V=_.O(v.value);v=V.next().value;V=V.next().value;
x[v]=V}})},"i")};
UZn=function(x,L,D,S){var Q=Rqf(D,S.slotProps),J=(0,_.HP)(x);Q=_.O(Q);for(var Z=Q.next();!Z.done;Z=Q.next())J.appendChild(Z.value);CCO(L,D,S);S=_.O(S.callbackProps||[]);Q=S.next();for(J={};!Q.done;J={kebabEventName:void 0,eventListener:void 0},Q=S.next())Z=Q=Q.value,String(Q).substring(0,2)==="on"&&D[Z]?(J.kebabEventName=B_n(String(Q).substring(2)),J.eventListener=D[Z],x.addEventListener(J.kebabEventName,J.eventListener),_.wH(function(v){return function(){x.removeEventListener(v.kebabEventName,v.eventListener)}}(J))):
L[Z]=D[Z];
if(D.ref){D=_.O(lM0(D.ref));var y=D.next().value,E=D.next().value,P=L.attached.bind(L);L.attached=function(){y(x);P()};
_.wH(function(){E()})}};
lM0=function(x){if(typeof x==="function"){var L;return[function(D){L=x(D)},
function(){var D;(D=L)==null||D()}]}if(!x.onRender||!x.onUnmount)throw Error("Xg");
return[x.onRender,x.onUnmount]};
wUO=function(x,L){L=L===void 0?{}:L;var D=function(S){var Q=document.createElement(x),J;var Z=(J=Q.polymerController)!=null?J:Q;UZn(Q,Z,S,L);return Q};
D.debugName=x+" (CoW wrapped)";return D};
ANn=function(x,L,D,S,Q){S=S===void 0?{}:S;var J=BSp,Z=!1;J?(Z=!0,BSp=void 0):(Wnw=L,J=document.createElement(L),Wnw=void 0);var y=J;y.usePatchedLifecycles=!0;y.lifecycleIsConnected=!1;J.loggingStatus={};var E=qgw(x,L,J,S,Q);_.wH(function(){y.lifecycleIsConnected&&(y.lifecycleIsConnected=!1,E.disconnectedCallback())});
Z||(J.__noInsertionPoint=!0,UZn(J,E,D,S));return J};
qgw=function(x,L,D,S,Q){Q=Q===void 0?E$O:Q;$ZO[L]!=null||($ZO[L]=Q(x,L,S==null?void 0:S.getTemplate,S));var J=$ZO[L],Z=J.ctor;Q=J.getInitialMethods;var y=J.getPropsToForwardBeforeReady;x=J.getPropsToForwardBeforeRegister;S=J.shouldForwardProp;var E=J.observedAttributes,P=J.shouldLog,v=Z(D,{beforeReady:function(){var V=v;V._takeAttributes?V._takeAttributes():V.setPropertiesFromInitialAttributeValues&&V.setPropertiesFromInitialAttributeValues();V=_.O(y(D.polymerController));for(var h=V.next();!h.done;h=
V.next()){var H=_.O(h.value);h=H.next().value;H=H.next().value;PCf(D,h,H);P(L)&&!I6(h)&&Vbh(D.polymerController,h)}D.polymerController=C0s(v,L)}});
D.polymerController=v;D.polymerController.observedAttributes=E;J=_.O(v.getExtraMethodsToForward());for(Z=J.next();!Z.done;Z=J.next())E=_.O(Z.value),Z=E.next().value,E=E.next().value,jvO(D,Z,E);Q=_.O(Q());for(J=Q.next();!J.done;J=Q.next())J=J.value,S(J)&&jvO(D,J),P(L)&&!I6(J)&&v$h(v,J);x=_.O(x());for(S=x.next();!S.done;S=x.next())Q=_.O(S.value),S=Q.next().value,Q=Q.next().value,PCf(D,S,Q);return v};
rNs=function(x){var L=Pp;Pp=x;return L};
i40=function(x){if(jO.has(x)&&Pp&&NSO(Pp)===x){var L;(L=Pp)._numRenders!=null||(L._numRenders=0);Pp._numRenders++;if(Pp._numRenders>1)throw Error("Yg");return Pp}};
fMp=function(x){jO.has(NSO(x))&&Pp!==x&&(x._isInert=!0)};
NSO=function(x){var L;return(L=x==null?void 0:x.tagName.toLowerCase())!=null?L:""};
o$0=function(x,L){if(x.componentType===Ru)throw Error("Zg");jO.add(L);var D=function(){var S=HTMLElement.call(this)||this;S.is=L;if(Wnw===L)return S.isInert=!0,S;S.createElement();return S};
_.p(D,HTMLElement);D.prototype.createElement=function(){if(!this.isInert){BSp=this;var S=_.O(_.q34(function(){return _.M(x,null)})).next().value;
BSp=void 0;l1f(this);return S}};
customElements.define(L,D)};
zqw=function(x,L,D,S,Q){x.prototype.is=L;(S==null?0:S.useSink)?aM0(x,L,D,S,Q):(D=E$O(x,L,D,S),hqh(D,L));return x};
aM0=function(x,L,D,S,Q){svf();var J=_.B(function(Z){return ANn(x,L,Z,Object.assign({},S,{getTemplate:D}),Q)},"j");
J.debugName=L+" (CoW wrapped)";o$0(J,L);return J};
cNN=function(x){return!XUc.has(x)};
xGb=function(x,L,D,S){function Q(){if(!V){for(var h=new Set(n$O),H=_.O(J.behaviors),k=H.next();!k.done;k=H.next()){k=k.value;for(var T=_.O(Object.getOwnPropertyNames(k)),G=T.next();!G.done;G=T.next()){G=G.value;var U=void 0,l=(U=Object.getOwnPropertyDescriptor(k,G))==null?void 0:U.value;l&&l instanceof Function&&(!P[G]||_.u("polymer_forward_method_killswitch"))&&h.add(G)}}H=_.O(Object.entries(Object.getOwnPropertyDescriptors(x.prototype)));for(k=H.next();!k.done;k=H.next())T=_.O(k.value),k=T.next().value,
T=T.next().value,T.value instanceof Function&&h.add(k);V=h}return V}
var J=lIN({is:L,disableElementRegistration:!1,getTemplate:D,providers:S==null?void 0:S.providers,reactivityMode:S==null?void 0:S.reactivityMode},x);if((S==null?0:S.allowedProps)||(S==null?0:S.allowedPropsFromBehaviors)){var Z,y;J.allowedProps=[].concat(_.lP((Z=S.allowedProps)!=null?Z:[]),_.lP((y=S.allowedPropsFromBehaviors)!=null?y:[]))}var E=F4N(J,x);L=E.observedAttributes;var P={};D=_.O(J.reactiveSchemas);for(S=D.next();!S.done;S=D.next())if(S=S.value,S.type==="signal")P[S.propertyKey]={readOnly:S.readOnly},
S.readOnly&&(P[Q0c(S.propertyKey)]={readOnly:!0});else if(S.type==="compute"||S.type==="computeWithMethod"||S.type==="redux")P[S.propertyKey]={readOnly:!0};var v=J.reactiveSchemas.length,V;return{ctor:function(h,H){h=new E(h);h.beforeReady=H.beforeReady;return h},
props:P,observedAttributes:L,getInitialMethods:Q,getPropsToForwardBeforeRegister:function(){for(var h=[],H=new Set,k=_.O(tb4),T=k.next();!T.done;T=k.next())T=T.value,h.push([T,T!=="observers"&&T!=="properties"]),H.add(T);k=_.O(Object.keys(P));for(T=k.next();!T.done;T=k.next())T=T.value,h.push([T,P[T].readOnly]),H.add(T);k=Q();T=_.O(Object.keys(Object.getOwnPropertyDescriptors(x.prototype)));for(var G=T.next();!G.done;G=T.next())G=G.value,!cNN(G)||k.has(G)||H.has(G)||(h.push([G,!1]),H.add(G));h.push(["allowedProps",
!0]);return h},
getPropsToForwardBeforeReady:function(h){var H=[];h=_.O(Object.keys(h));for(var k=h.next();!k.done;k=h.next()){k=k.value;var T=Q();cNN(k)&&!T.has(k)&&H.push([k,!1])}h=_.O(J.reactiveSchemas.slice(v));for(k=h.next();!k.done;k=h.next())k=k.value,k.type!=="compute"&&k.type!=="computeWithMethod"&&k.type!=="redux"&&k.type!=="signal"||H.push([k.propertyKey,k.type==="signal"?k.readOnly:!0]);return H},
shouldForwardProp:cNN,shouldLog:C$}};
_.q=function(x,L,D,S){var Q,J,Z=(J=(Q=S)==null?void 0:Q.mode)!=null?J:0;S!=null||(S={});var y;(y=S).reactivityMode!=null||(y.reactivityMode=0);Z===1&&_.jT("creator_poly_si_disable_list").includes(L)&&(Z=2);return Z===1?zqw(x,L,D,Object.assign({},S,{useSink:!0}),xGb):zqw(x,L,D,Object.assign({},S,{useSink:Z===2}))};
_.vp=function(){return function(x,L,D,S){var Q,J,Z=(J=(Q=S)==null?void 0:Q.mode)!=null?J:2;S!=null||(S={});var y;(y=S).reactivityMode!=null||(y.reactivityMode=0);if(Z===0)throw Error("$g`"+Z);return aM0(x,L,D,S,Z===1?xGb:void 0)}};
_.Vm=function(x){return _.u("creator_poly_si_killswitch")?!1:_.u("force_all_poly_si_batches")&&(x==="poly_si_all_on_test_check"||x==="creator_poly_si_batch_050"?0:x)||document.documentElement.hasAttribute("use-signals")?!0:!x||_.u(x+"_holdback_enabled")&&_.u("kevlar_polysi_holdback")?!1:_.u(x)};
hH=function(x){return x?x.icon?x.icon.iconType.toLowerCase():x.customThumbnail?"member":"":""};
Lds=function(x){if(!x)return"";x=_.O(x);for(var L=x.next();!L.done;L=x.next())if((L=L.value)&&L.liveChatAuthorBadgeRenderer&&(L=hH(L.liveChatAuthorBadgeRenderer))&&L!=="verified")return L;return""};
DGc=function(x,L){if(!x)return null;var D;return((D=x.find(function(S){return S&&S.liveChatAuthorBadgeRenderer?hH(S.liveChatAuthorBadgeRenderer)===L:!1}))==null?void 0:D.liveChatAuthorBadgeRenderer)||null};
_.ZT0=function(x){var L=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;x=SNs(x);L=SNs(L);var D=Qj4(x.hex);L=Qj4(L.hex);var S=L[0]/255;var Q=L[1]/255,J=L[2]/255,Z=Math.max(S,Q,J),y=Math.min(S,Q,J),E=0,P=0,v=.5*(Z+y);Z!=y&&(Z==S?E=60*(Q-J)/(Z-y):Z==Q?E=60*(J-S)/(Z-y)+120:Z==J&&(E=60*(S-Q)/(Z-y)+240),P=0<v&&v<=.5?(Z-y)/(2*v):(Z-y)/(2-2*v));S=[Math.round(E+360)%360,P,v];D=J14(D,L);for(x=Kdf(x.hex);D<4.5;){x=S[2]>=.5?x.darker((4.5-D)/2):x.brighter((4.5-D)/2);D=x.toString();
Q=OTN(D);if(!Q.length)throw Error("Wd`"+D);D=Q;D=J14(D,L)}return x.hex()};
J14=function(x,L){x=_.fkw(x);L=_.fkw(L);return(Math.max(x,L)+.05)/(Math.min(x,L)+.05)};
_.Hp=function(x){return"#"+("000000"+(x&16777215).toString(16)).slice(-6)};
_.y1h=function(x){for(var L=0,D=0;D<x.length;D++)L=x.charCodeAt(D)+((L<<5)-L);x="#";for(D=0;D<3;D++)x+=("00"+(L>>D*8&255).toString(16)).slice(-2);return x};
Iyw=function(x){x=(x||"").split(":");x.length===1&&x.unshift("yt-icons");x[1]=x[1].toLowerCase();return x};
vDp=function(x,L){var D=(L=L===void 0?!1:L)?EDb:MUf,S=L?dG3:Ptc;x.getIconNames().forEach(function(Q){Q=L?Q:Q.substring(Q.indexOf(":")+1);x.name==="yt-icons"?jjs.add(Q):Q.includes("-filled")?D.add(Q):S.add(Q)})};
ui=function(x,L,D,S){D=D===void 0?!1:D;S=S===void 0?!1:S;var Q,J,Z;return _.I(function(y){if(y.nextAddress==1)return y.yield(VUc,2);if(S)return y.return(jjs.has(x));Q=D?EDb:MUf;J=D?dG3:Ptc;return L?(Z=x.includes("-filled")?x:x.concat("-filled"),y.return(Q.has(Z))):y.return(J.has(x))})};
_.uXN=function(x){if(hL4(x))return x;var L=x=x.toLowerCase();(x=HT4.get(x))&&(L=x);return L};
_.gB=function(x){if(hL4(x))return x.toString();var L=gDs.get(x);if(L)return L;L=x.toLowerCase();var D="yt-icons",S=L.replace(/_/g,"-");switch(x){case "MY_CHANNEL":L="account_circle";break;case "ADD_TO_LIBRARY":L="add";break;case "ALERT_WARN_RED":L="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":L="person_music";break;case "BLOCK_USER":L="block";break;case "CAPTIONS":L="closed_caption";break;case "CLOSED_CAPTION":D="av";L="closed-caption";break;case "COLLECTION":D="maps";L="layers";break;case "CONTACT":D=
"icons";L="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":D="ytcp-icons";L=S.split("creator-studio-")[1];break;case "DISMISSAL":L="close";break;case "DO_NOT_DISTURB":L="block";break;case "DOGFOOD":D="icons";L="pets";break;case "DRAFT":L="paper_corner_folded";break;
case "EMPTY_LIKE":L="like_outline";break;case "EXIT_APP":L="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":L=S;break;case "GAMES":D="ytg";L="my-games";break;case "GO_TO_PAGE":L="arrow-forward";break;case "GROUP":D="social";break;case "HIDE":L="not_interested";break;case "INPUT_COMPONENT":D="icons";L="settings-input-component";break;case "KIDS_BLOCK":L="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":D="ytg";L="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":D=
"ytg";L="membership-post-purchase";break;case "MULTIVIEW":L="screen_multi_view";break;case "MY_LOCATION":D="maps";L=S;break;case "NOTIFICATIONS_INBOX":L="NOTIFICATIONS";break;case "NEXT":L="chevron_right";break;case "OFFLINE":L="power-settings-new";break;case "PAUSE":D="miniplayer";break;case "PAYMENT":D="icons";break;case "PHONE_DOWNLOAD":L="phone_download";break;case "PREMIUM_STANDALONE":D="yt-logos";L="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":D="yt-logos";L="premium_standalone_cairo";
break;case "QUESTION_ANSWER":L="question_answer";break;case "REDEEM":D="icons";L="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":L="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":L="library_add";break;case "SCHOOL":D="yt-sys-icons";L="creator_academy";break;case "SETTINGS_LIGHT":L="settings_applications";break;case "SETTINGS_MATERIAL":L="settings";break;case "SEARCH_HISTORY":L="watch_history";break;case "SHOPPING_BAG":L="bag";break;case "SOCIAL":case "PEOPLE":D=
"yt-icons";L="people";break;case "STAFF_PICK":D="ytg";L="spotlight";break;case "START_DVR":L="add";break;case "STOP_DVR":D="av";L="stop";break;case "TAB_LIKED":L="like";break;case "TAB_INBOX":L="mail";break;case "TERMS_OF_SERVICE":D="icons";L="description";break;case "TRENDING":L="fire";break;case "UNBLOCK_USER":L="remove";break;case "UNPLUGGED_DARK_THEME":D="image";L="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":L="live";break;case "UNPLUGGED_SPORTS":D="ytu";L="visibility-off";break;
case "VIDEOS":D="av";L="play-circle-filled";break;case "YOUTUBE":D="yt-logos";L="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":D="yt-logos-ext";L="yt-logo-red-updated";break;case "YOUTUBE_LOGO":D="yt-logos-ext";L="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":D="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":D="shorts";L=S;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":D="yt-sys-icons";L="youtube_improve_tv";break;case "OUTLINE_BAG":D=
"yt-sys-icons";L="bag";break;case "QUEUE_PLAY_LAST":D="yt-sys-icons";L="list_queue_last";break;case "SLASH_CIRCLE_LEFT":L="slash_circle_left";break;case "SPEED_1_POINT_2X":L="1_point_2x";break;case "SPEED_1_POINT_5X":L="1_point_5x";break;case "SPEED_1_POINT_8X":L="1_point_8x";break;case "SPEED_POINT_2X":L="point_2x";break;case "SPEED_POINT_5X":L="point_5x";break;case "SPEED_POINT_8X":L="point_8x";break;case "SPEED_1X":L="1x";break;case "SPEED_2X":L="2x";break;case "TAB_BOOKMARK":L="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":D="yt-sys-icons";L="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":D="yt-sys-icons";L="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":D="yt-sys-icons",L="tic_tac_toe"}L=D+":"+L;gDs.set(x,L);return L};
hL4=function(x){var L;_.u("kevlar_use_wil_icons")?L=!!_.yY().resolve(_.ki).resolveIcon({iconName:x.toString()}):L=!1;return L};
_.mA=function(x,L,D,S){D=D===void 0?{}:D;S=S===void 0?!1:S;D===null&&(D={});var Q=_.jT("kevlar_command_handler_command_banlist");Q=_.O(Q);for(var J=Q.next();!J.done;J=Q.next())if(J=x?x.hasOwnProperty(J.value):void 0,J)return!1;Q=_.g(x.commandMetadata,_.gg);return S&&Q!=null&&Q.url?!1:!L.disableCommandHandlerOverride&&_.pI.instance?(S=_.pI.instance,D.form||(D.form={element:L}),D.form.element||(D.form.element=L),!D.clickedVisualElement&&L.visualElement&&(D.clickedVisualElement=L.visualElement),S.resolveCommand(x,
D),!0):!1};
kb3=function(x,L){x=bi(x);for(var D=_.O(x.visibilityMonitorKeys||[]),S=D.next();!S.done;S=D.next())L.unobserveByKey(S.value);x.visibilityMonitorKeys=void 0};
YN4=function(x,L){if(_.A3()){if(_.u("kevlar_vimio_use_shared_monitor"))p6O(x,L.data);else if(!p6O(x,L.data))return;var D=L.data,S=mG4(D);if(_.u("enable_client_ve_spec_logging"))kb3(x,L.observer);else{var Q=bi(x);Q.trackedParams&&Q.trackedParams!==S&&kb3(x,L.observer)}Q=bi(x);!D||Q.data&&Q.data===D||(Q.data=D);bTw(x,L);Q.trackedParams=S}};
bTw=function(x,L){var D=L.observer;if(!D&&_.u("web_skip_missing_vimio_observer")){var S,Q;_.qy(new _.RZ("VisibilityObserver is not defined.",x.tagName,x.trackedParams,(S=L.data)==null?void 0:S.trackingParams,(Q=L.data)==null?void 0:Q.loggingDirectives))}else{var J=L.layer,Z=L.visibilityCallback||function(){},y=L.prescanCallback,E=bi(x);
S=[];L.showOption&&S.push(D.observe(x,function(){L.skipLogging&&L.skipLogging()||_.Yi().reportShown(E,void 0,J);Z(!0)},L.showOption));
L.hideOption&&S.push(D.observe(x,function(){_.Yi().reportHidden(E,void 0,J);Z(!1)},L.hideOption));
L.prescanOption&&y&&S.push(D.observe(x,function(){y()},L.prescanOption));
E.visibilityMonitorKeys=S}};
p6O=function(x,L){x=bi(x);if(x.visualElement&&!L)return!0;if(!L)return!1;var D=!1;if(_.u("enable_client_ve_spec_logging")){var S,Q;D=!!((S=L.loggingDirectives)==null?0:(Q=S.clientVeSpec)==null?0:Q.uiType)}S=mG4(L);if(!S&&!D)return!1;_.u("mweb_component_visibility_logging")&&(x.veContainer||(x.veContainer={}),x.veContainer.trackingParams=S);if(x.trackedParams&&x.trackedParams===S)return!1;var J;if(_.u("enable_client_ve_spec_logging")&&((J=x.visualElement)==null?0:J.isClientVe())){var Z;J=(Z=x.visualElement)==
null?void 0:Z.getAsJspb();var y,E,P,v;if(_.y1(J,2)===((y=L.loggingDirectives)==null?void 0:(E=y.clientVeSpec)==null?void 0:E.uiType)&&_.y1(J,3,-1)===((P=L.loggingDirectives)==null?void 0:(v=P.clientVeSpec)==null?void 0:v.elementIndex))return!1}if(_.u("enable_client_ve_spec_logging")){var V,h;!x.visualElement&&((V=L.loggingDirectives)==null?0:(h=V.clientVeSpec)==null?0:h.uiType)&&(y=L.loggingDirectives.clientVeSpec,L=y.uiType,Z=y.elementIndex,y=y.clientYoutubeData,x.visualElement=_.Ff(_.sk(),{veType:L,
elementIndex:Z,clientYouTubeData:y}))}return!0};
mG4=function(x){if(x==null?0:x.rendererContext){var L=_.g(x.rendererContext,_.T$);if(L==null?0:L.loggingDirectives)return L.loggingDirectives.trackingParams}return(x==null?0:x.loggingDirectives)?x.loggingDirectives.trackingParams:x==null?void 0:x.trackingParams};
bi=function(x){var L;return(L=x.polymerController)!=null?L:x};
eLh=function(x){_.Yi();if(_.fm(eO().JSC$12572_elementShouldLogGesture).bind(eO())(x,4)){Fd4(x);var L=sjc(x);TC0.set(x,L)}};
Fd4=function(x){TC0.has(x)&&(TC0.get(x).cancel("untrack hover element"),TC0.delete(x))};
sjc=function(x){var L,D=[],S=!1,Q=new _.HI(function(J,Z){R6(x,"mouseenter",_.fm(function(){var y,E,P;return _.I(function(v){if(v.nextAddress==1)return L=(0,_.y5)(),y=RL3(x),D.push(y),E=GbG(x,function(){S=!0;Z(Error("ah"))}),v.yield(y,2);
if(v.nextAddress!=3)return E&&G$(E),P=Ctb(x),D.push(P),v.yield(P,3);J();_.Y2(v)})}))});
Q.then(function(){var J=(0,_.y5)()-L;J=Math.round(J);if(!(500>J||6E5<=J)){var Z=x.getScreenLayer?x.getScreenLayer():void 0;Z=_.A3(Z)||"";var y=lyf(_.Yi(),x);_.Do(Z,x.visualElement?x.visualElement:_.CI(y),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:J}})}eLh(x)},function(){li&&(li(),li=null);
S&&(Fd4(x),eLh(x))});
return Q};
RL3=function(x){var L;return(new _.HI(function(D,S){li=function(){S(Error("bh"))};
L=_.WW.debounce(_.fm(function(){G$(Q);D()}),1,100);
var Q=_.Uk(x,"mousemove",L)})).thenCatch(function(){var D=_.WW.cancelDebouncedJobMap.get(L);
D&&_.WW.cancelJob(D)})};
Ctb=function(x){var L;return(new _.HI(function(D,S){li=function(){S(Error("ch"))};
L=R6(x,"mouseleave",_.fm(function(){D()}))})).thenCatch(function(){G$(L)})};
GbG=function(x,L){return R6(x,"mouseleave",_.fm(L))};
w63=function(x){UGn&&_.wB.cancel(UGn);UGn=_.wB.run(function(){_.MF(x,"yt-visibility-refresh");UGn=0})};
BCp=function(x){x=Number(x);return"rgba("+[x>>16&255,x>>8&255,x&255,(x>>24&255)/255].join()+")"};
qN4=function(x){if(!x)return!1;if(_.g(x,_.WdG))return!0;var L;if(x=(L=_.g(x,_.h_))==null?void 0:L.commands)for(L=_.O(x),x=L.next();!x.done;x=L.next())if(_.g(x.value,_.WdG))return!0;return!1};
A1p=function(x){var L=!0;L=L===void 0?!0:L;if(!x.useSignals&&!x.experimentalPropertiesChanged||_.u("experimental_templating_behavior_nopatch_killswitch")){var D=x._propertiesChanged;x._propertiesChanged=function(S,Q,J){L?x.debounceRender():x.doRender();D&&D.call(x,S,Q,J)}}};
$Gp=function(x,L){if(x.useSignals||x.experimentalPropertiesChanged)if(_.u("experimental_templating_behavior_nopatch_killswitch"))x.experimentalPropertiesChanged=function(){};
else return;var D=new Set,S=[x].concat(_.lP(x.behaviors));S=_.O(S);for(var Q=S.next();!Q.done;Q=S.next()){Q=Q.value;for(var J in Q.properties)D.has(J)||(x._addPropertyEffect(J,"function",L),D.add(J))}};
r10=function(){var x=Polymer.Element,L=x._prepareTemplate;x._prepareTemplate=function(){L.call(this);var D=this.prototype;if(D.experimentalTemplatingInUse&&D.experimentalTemplatingInUse()&&D.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.BI(Error("dh"));else{D=this.template.content.childNodes;for(var S=D.length-1;S>=0;S--){var Q=D[S];Q.nodeName!=="STYLE"&&Q.nodeName!=="LINK"&&Q.nodeName!=="SCRIPT"&&Q.nodeName!=="#comment"&&Q.remove()}}}};
NC3=function(x){var L=!0;L=L===void 0?!0:L;r10();var D=x.ready;x.ready=function(){this._template=null;D.call(this)};
$Gp(x,L?x.debounceRender:x.doRender)};
fy0=function(x,L,D){if(D===null||D===void 0)return D;var S=pvf(x.tagName.toLowerCase(),L,function(){throw Error("Wb");});
if(S===null)return D;S=iTs[S];var Q;if((Q=S.isUnwrappable)==null?0:Q.call(S,D)){if(S.unwrap)return S.unwrap(D);throw Error("gh");}return S.filterString?S.filterString(x.tagName,L,String(D)):D};
oDN=function(x,L,D){var S=L[L.length-1]!=="$",Q=fy0(x,L,D);if(S)if(typeof Q==="function"&&L.startsWith("reactiveon")&&L===L.toLowerCase()){var J=JI;GL3(x,L.slice(8),function(Z){AI(J,function(){Q(Z)})})}else x[L]=Q;
else D=Q==null?null:String(Q),NN(x,L.slice(0,-1),D)};
Wp=function(x){ay4.length===0&&requestAnimationFrame(function(){setTimeout(function(){var L=ay4.slice();ay4.length=0;L=_.O(L);for(var D=L.next();!D.done;D=L.next()){D=D.value;try{D()}catch(S){_.Bp(S)}}})});
ay4.push(x)};
zL4=function(x){if(x){var L=x.component;if(L){var D;L==null||(D=L.events)==null||D.publish("DISCONNECTED");var S;L==null||(S=L.onDisconnected)==null||S.call(L)}var Q,J;(Q=x.__spec)==null||(J=Q.didUnmount)==null||J.call(Q);for(L=0;L<x.childNodes.length;L++)zL4(x.childNodes[L])}};
X6O=function(x,L,D){var S=L&&L.key,Q=Da;Q[0]=x;Q[1]=S;Q[2]=void 0;for(var J in L)L.hasOwnProperty(J)&&(x=L[J],S=SF,S.push(J),S.push(x));L=Da;a:{if(J=Da[2])for(x=0;x<J.length;x+=2)if(J[x]==="nonce"){J=J[x+1];break a}J=""}J=f5s(L[0],L[1],J);x=fq(J);S=L[2];if(!x.staticsApplied&&(x.staticsApplied=!0,S&&S.length))if((Q=x._attrsArr)&&Q.length){for(Q=0;Q<S.length;Q+=2)qL[S[Q]]=Q+1;Q=x._attrsArr||(x._attrsArr=Roc(0));for(var Z=0,y=0;y<Q.length;y+=2){var E=Q[y],P=Q[y+1],v=qL[E];v?S[v]===P&&delete qL[E]:(Q[Z]=
E,Q[Z+1]=P,Z+=2)}rH(Q,Z);for(var V in qL)BQw(J,V,S[qL[V]],Kh),delete qL[V]}else for(V=0;V<S.length;V+=2)BQw(J,S[V],S[V+1],Kh);xuf(J,x,Kh);rH(L,0);D&&D(au);o3N()};
_.AH=function(x,L,D){D===void 0?delete x[L.name]:x[L.name]=D};
_.$i=function(x){var L={androidIncludeFontPadding:!1},D=0,S=[],Q=[],J=[];if(x.simpleText)return L.content=x.simpleText,L;if(x.runs===void 0)return L.content="",L;x=_.O(x.runs);for(var Z=x.next();!Z.done;Z=x.next()){Z=Z.value;var y=Z.text,E=void 0,P=(E=y)==null?void 0:E.length;if(y&&P){S.push(y);if(Z.bold||Z.italics||Z.strikethrough||Z.underline||Z.textColor!=null&&Z.textColor!==0||Z.deemphasize){y=Q;E=y.push;var v={startIndex:D,length:P};Z.bold&&(v.weightLabel="FONT_WEIGHT_MEDIUM");Z.italics&&(v.italic=
!0);Z.strikethrough&&(v.strikethrough="LINE_STYLE_SINGLE");Z.underline&&(v.underline="LINE_STYLE_SINGLE");Z.textColor!=null&&Z.textColor!==0?document.documentElement.hasAttribute("dark")?v.fontColor=Z.darkModeTextColor||Z.textColor:v.fontColor=Z.textColor:Z.deemphasize&&(document.documentElement.hasAttribute("dark")?v.fontColor=parseInt("ff"+c1n("#aaa").substring(1),16):v.fontColor=parseInt("ff"+c1n("#606060").substring(1),16));E.call(y,v)}Z.navigationEndpoint&&(y=J,E=y.push,v={startIndex:D,length:P,
onTap:{innertubeCommand:Z.navigationEndpoint}},Z.loggingDirectives&&_.AH(v,nDb,Z.loggingDirectives),E.call(y,v));D+=P}}L.content=S.join("");L.styleRuns=Q.length?Q:void 0;L.commandRuns=J.length?J:void 0;return L};
xsh=function(x){if(x==null||!x.runs)return!0;x=_.O(x.runs);for(var L=x.next();!L.done;L=x.next())if(L=L.value,L.bracket||L.errorUnderline||L.deemphasize||_.g(L,rB)||_.g(L,tUh))return!1;return!0};
LLf=function(x,L){return function(D){var S=L.unit;if(S!==D)throw Error("jh`"+x+"`"+S+"`"+D);return L}};
NL=function(x){if(!((x==null?0:x.value)&&(x==null?0:x.unit)))return"";switch(x.unit){case "DIMENSION_UNIT_FRACTION":var L="%";break;default:L="px"}x=x.value;L==="%"&&(x*=100);return""+x+L};
Dsb=function(x){try{return x()}catch(L){_.qy(L)}};
_.fI=function(x){var L=_.g(x,_.ii);if(L)return L;if((L=_.g(x,SEw))&&L.commands)return QoO(L.commands);if((L=_.g(x,Jh0))&&L.commands)return QoO(L.commands);if((x=_.g(x,KL4))&&x.identifier&&x.command&&(OR0||(OR0=[]),!OR0.includes(x.identifier)))return OR0.push(x.identifier),_.g(x.command,_.ii)};
QoO=function(x){if(x.length!==0){var L=[];x=_.O(x);for(var D=x.next();!D.done;D=x.next())(D=_.fI(D.value))&&L.push(D);return{commandExecutorCommand:{commands:L}}}};
_.a6=function(x){var L=x.defaultTarget,D=x.elementConfig,S=x.elementsCommand,Q=x.skipOnClick,J=x.forceNewState,Z=x.additionalCommandArgs,y=x.innertubeCommand||_.fI(S);if(y){x={};var E=ZRs(y);S=E.navigatingCommand;E=E.href;S&&E?(x.href$=E,yhG(x,S,E,L),_.u("web_atagconfig_pointerdown")&&I_w(x,S),J&&(x["force-new-state$"]=!0)):(x.role$="button",x.href$="javascript:void(0);");_.g(y,Ems)&&(x["aria-haspopup$"]=!0);Q||(x.onclick=function(P){var v={};if(MJf(P)){var V=(Z==null?void 0:Z.clickedVisualElement)||
(Z==null?void 0:Z.getClickedVisualElement)&&Z.getClickedVisualElement();V&&(v={clickedVisualElement:V});v=Object.assign({},{form:{element:P.target,event:P,createScreenConfig:v}},Z);P.preventDefault();_.o6(y,v)}});
return Object.assign({},D,x)}};
dsb=function(x){if(x.length){if(x.length===1)return x[0];var L={};_.AH(L,_.h_,{commands:x});return L}};
z$=function(x){return x&&x.href$!=="javascript:void(0);"};
ZRs=function(x){var L,D=((L=_.g(x,_.h_))==null?void 0:L.commands)||[x];x=_.O(D);for(L=x.next();!L.done;L=x.next()){L=L.value;var S=void 0,Q=void 0;D=(Q=_.g((S=L)==null?void 0:S.commandMetadata,_.gg))==null?void 0:Q.url;_.u("web_remove_web_navigation_endpoint_data")||(S=void 0,D=D||((S=_.g(L,PKf))==null?void 0:S.url));if(D&&D!=="/service_ajax"){if(S=_.Wi(D,joG))return x=_.w8(S),{navigatingCommand:L,href:x};_.qy(new _.RZ("AttributedString URL could not be sanitized",D))}}return{}};
MJf=function(x){return x.button!==void 0?x.button===0&&!(x.shiftKey||x.altKey||x.metaKey||x.ctrlKey):!(x.shiftKey||x.altKey||x.metaKey||x.ctrlKey)};
yhG=function(x,L,D,S){D=!KH(D);var Q,J,Z;if((Q=_.g(L,_.mt))!=null&&Q.nofollow||(J=_.g(L,_.L6))!=null&&J.nofollow||(Z=_.g(L,_.oR))!=null&&Z.nofollow||D)x.rel$="nofollow";var y;L=((y=_.g(L,_.oR))==null?void 0:y.target)==="TARGET_NEW_WINDOW"?"_blank":S===void 0?"":S;x.target$=L};
I_w=function(x,L){L.clickTrackingParams&&(x.params={itct:L.clickTrackingParams});x.onpointerdown=function(D){vmG(D)};
x._data=L};
VJf=function(x){(x.loggingUrls||[]).forEach(function(L){Xg(L.baseUrl,L.attributionSrcMode)})};
vmG=function(x){var L=x.currentTarget;x=Dsb(function(){return L.href});
var D=L.params;x&&_.J_(x,D||{},8,!0)};
_.Xf=function(x,L){(x=_.fI(x))&&_.o6(x,L)};
_.o6=function(x,L){c_4(function(D){L?D.resolveCommand(x,L):D.resolveCommand(x)})};
gmf=function(x,L){var D=["yt-core-attributed-string__link"];L!=null&&L.noLinkColor||((L==null?0:L.isOverlay)?D.push("yt-core-attributed-string__link--overlay-call-to-action-color"):D.push("yt-core-attributed-string__link--call-to-action-color"),(L==null?0:L.linkInheritColor)&&D.push("yt-core-attributed-string--link-inherit-color"));D={className:D.join(" "),tabindex$:"0"};var S=x.onTap||x.onLongPress;if(!S)return D;var Q=h2c(x);Q&&(D["aria-label$"]=Q);L=_.a6({elementsCommand:S,elementConfig:D,skipOnClick:!(L==
null||!L.skipOnClick),forceNewState:!0});x.onLongPress&&(S=new HR0(function(){var J=_.fI(x.onLongPress);J&&_.yY().resolve(_.E2).resolveCommand(J)}),L&&uS3(S,L));
return L||D};
h2c=function(x){var L,D;return(L=x.onTapOptions)==null?void 0:(D=L.accessibilityInfo)==null?void 0:D.accessibilityLabel};
kI3=function(x){var L=x;x<=16777215&&(L+=parseInt("ff000000",16));return _.XA(L)};
pQb=function(x){var L=x.isDarkTheme;var D=x.extension;x=x.runColor;var S=void 0;if(D=D==null?void 0:D.colorMap){L=L?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";D=_.O(D);for(var Q=D.next();!Q.done;Q=D.next())if(Q=Q.value,L===Q.key){S=Q.value;break}}S==null&&x&&(S=x);if(S)return kI3(S)};
cp=function(x){var L=x.config;var D=x.image;var S=x.imageConfig;var Q=x.imageWrapperConfig;var J=x.run;var Z=x.tag;var y=x.textLength;var E=x.startIndex===void 0?0:x.startIndex;x=x.length;E===void 0&&(E=0);J={run:J,startIndex:E,endIndex:x!==void 0?E+x:y,tag:Z};D&&(J.image=D);S&&(J.imageConfig=S);Q&&(J.imageWrapperConfig=Q);L&&(J.config=L);return J};
bRw=function(x,L){var D=[];D.push("yt-core-attributed-string");(L==null?0:L.className)&&D.push(L==null?void 0:L.className);(L==null?0:L.ellipsisTruncate)?D.push("yt-core-attributed-string--ellipsis-truncate"):(L==null?0:L.noWrap)?D.push("yt-core-attributed-string--white-space-no-wrap"):(L==null?0:L.noPreWrap)||D.push("yt-core-attributed-string--white-space-pre-wrap");(L==null?0:L.linkInheritColor)&&D.push("yt-core-attributed-string--link-inherit-color");x.alignment&&D.push(ms4(x.alignment));x.lineBreakMode&&
D.push("yt-core-attributed-string--word-wrapping");return D.join(" ")};
YEb=function(x,L){if(x.weight)return x.weight;switch(x.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 L?900:700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
FL0=function(x){switch(x){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"}};
ms4=function(x){switch(x){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"}};
Lu=function(x,L,D){var S=L;x.content&&D&&(D=x.content.indexOf("\n"),D!==-1&&(S=Math.min(L,D)));if(!x.content||x.content.length<=S)L=x;else if(x.attachmentRuns||x.commandRuns||x.decorationRuns||x.styleRuns||x.paragraphStyleRuns){L=nI(x.content,S);D=S;var Q=x.attachmentRuns;if(Q){var J=[];Q=_.O(Q);for(var Z=Q.next();!Z.done;Z=Q.next())Z=Object.assign({},Z.value),Z.startIndex===void 0||Z.startIndex>=D||(Z.length||(Z.length=0),Z.length+Z.startIndex>D&&(Z.length=D-Z.startIndex),J.push(Z));D=J}else D=void 0;
J=soN(S,x.commandRuns);Q=S;var y=x.decorationRuns;if(y){Z=[];y=_.O(y);for(var E=y.next();!E.done;E=y.next()){E=E.value;var P=_.g(E.textDecorator,xO);if(P&&P.startIndex!==void 0&&!(P.startIndex>=Q)){E=Object.assign({},E,{textDecorator:{highlightTextDecorator:Object.assign({},P)}});P=_.g(E.textDecorator,xO);if(!P.length||P.length+P.startIndex>Q)P.length=Q-P.startIndex;Z.push(E)}}Q=Z}else Q=void 0;Z=soN(S,x.styleRuns);if(y=x.paragraphStyleRuns)for(x=[],y=_.O(y),E=y.next();!E.done;E=y.next()){var v=E.value;
E=Object.assign({},v);if(!(E.startIndex===void 0||E.startIndex>=S)){if(!E.length||E.length+E.startIndex>S)E.length=S-E.startIndex;P=[];var V=void 0,h=void 0;if((V=v)==null?0:(h=V.listGroup)==null?0:h.listItems)for(v=_.O(v.listGroup.listItems),V=v.next();!V.done;V=v.next())if(V=Object.assign({},V.value),!(V.startIndex===void 0||V.startIndex>=S)){if(!V.length||V.length+V.startIndex>S)V.length=S-V.startIndex;P.push(V)}P.length>0&&(E.listGroup||(E.listGroup={}),E.listGroup=Object.assign({},E.listGroup,
{listItems:P}));x.push(E)}}else x=void 0;L={content:L,attachmentRuns:D,commandRuns:J,decorationRuns:Q,styleRuns:Z,paragraphStyleRuns:x}}else L=Object.assign({},x,{content:nI(x.content,S)});return L};
soN=function(x,L){if(L){var D=[];L=_.O(L);for(var S=L.next();!S.done;S=L.next())if(S=Object.assign({},S.value),!(S.startIndex===void 0||S.startIndex>=x)){if(!S.length||S.length+S.startIndex>x)S.length=x-S.startIndex;D.push(S)}return D}};
nI=function(x,L){var D=L,S;if(S=D>0)S=x.charCodeAt(D-1),S=S>=55296&&S<=56319;S&&(D=x.charCodeAt(D),S=D>=56320&&D<=57343);S&&--L;return x.substring(0,L)};
GIn=function(x,L,D){D=D===void 0?Tx3:D;if(x){var S=_.yY().resolve(Z5);S||_.u("mweb_no_observer_killswitch")?YN4(x,{data:L,observer:S,visibilityCallback:D,hideOption:e2s,showOption:R2w,layer:x.layer}):_.qy(new _.RZ("Warning: monitorVisibility called with null observer",x.tagName,L==null?void 0:L.loggingDirectives,L==null?void 0:L.trackingParams))}else _.qy(new _.RZ("Warning: monitorVisibility called with null element",L==null?void 0:L.loggingDirectives,L==null?void 0:L.trackingParams,L==null?void 0:
L.rendererContext))};
qEs=function(x,L){var D=[],S=x.content.length,Q,J=(Q=_.yY().resolve(_.ZN(_.Dt)))==null?void 0:Q();if(x.paragraphStyleRuns){Q=_.O(x.paragraphStyleRuns);for(var Z=Q.next();!Z.done;Z=Q.next()){var y=D.push,E=y.apply;var P=void 0;Z=Z.value;if((P=Z.listGroup)!=null&&P.listItems){P=[];b:switch(Z.listGroup.listType){case "LIST_TYPE_BULLET":var v="ul";break b;default:v="span"}P.push(cp({run:Z,textLength:S,tag:v,config:{className:"yt-core-attributed-string__list-group"},startIndex:Z.startIndex,length:Z.length}));
v=_.O(Z.listGroup.listItems);for(var V=v.next();!V.done;V=v.next()){V=V.value;b:switch(Z.listGroup.listType){case "LIST_TYPE_BULLET":var h="li";break b;default:h="span"}P.push(cp({run:Z,textLength:S,tag:h,startIndex:V.startIndex,length:V.length}))}Z=P}else Z=[];E.call(y,D,_.lP(Z))}}if(x.styleRuns&&(L==null||!L.noStyleRuns))for(Q=_.O(x.styleRuns),y=Q.next();!y.done;y=Q.next()){Z=y=y.value;P=J;E=L;P=pQb({extension:_.g(Z.styleRunExtensions,CK0),isDarkTheme:P===void 0?!1:P,runColor:Z.fontColor});V=Z;
v=[];P&&v.push("yt-core-attributed-string--link-inherit-color");V.italic&&v.push("yt-core-attributed-string--italicized");V.underline&&V.strikethrough?v.push("yt-core-attributed-string--underline-strikethrough",FL0(V.underline)):V.underline?v.push("yt-core-attributed-string--underlined",FL0(V.underline)):V.strikethrough&&v.push("yt-core-attributed-string--strikethrough",FL0(V.strikethrough));if(V.baselineOffset){a:switch(V.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":V="yt-core-attributed-string--baseline-offset-subscript";
break a;case "BASELINE_OFFSET_SUPERSCRIPT":V="yt-core-attributed-string--baseline-offset-superscript";break a;default:V="yt-core-attributed-string--baseline-offset-unknown"}v.push(V)}v=v.join(" ");V={};if(Z.weight||Z.weightLabel)V.fontWeight=YEb(Z,E==null?void 0:E.isHeadline).toString();P&&(V.color=P);D.push(cp({run:y,textLength:S,tag:"span",config:{className:v,style:V},startIndex:y.startIndex,length:y.length}))}if(x.decorationRuns)for(Q=_.O(x.decorationRuns),y=Q.next();!y.done;y=Q.next())y=y.value,
E={},y.textDecorator&&(v=y.textDecorator,Z=J===void 0?!1:J,V=[],P=_.g(v,xO),v=_.g(v,l_4),P?(v=V,V=v.concat,h=[],(Z=pQb({extension:_.g(P.highlightTextDecoratorExtensions,Usc),isDarkTheme:Z,runColor:P.backgroundColor}))&&h.push("background-color: "+Z+";"),P.backgroundCornerRadius!==void 0&&h.push("border-radius: "+P.backgroundCornerRadius+"px;"),P.leftPadding!==void 0&&h.push("padding-left: "+P.leftPadding+"px;"),P.rightPadding!==void 0&&h.push("padding-right: "+P.rightPadding+"px;"),P.topPadding!==
void 0&&h.push("padding-top: "+P.topPadding+"px;"),P.bottomPadding!==void 0&&h.push("padding-bottom: "+P.bottomPadding+"px;"),V=V.call(v,h)):v&&(P=V,V=P.concat,Z=Z?"#2ba640":"#107516",Z=v.color?kI3(v.color):Z,Z=["padding: 2px;","border-top: solid "+Z+" 2px;","border-bottom: solid "+Z+" 2px;","background: linear-gradient(135deg, "+Z+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+Z+" 3px, rgba(0, 0, 0, 0) 3px);"],V=V.call(P,Z)),Z=V.join(" "),E.style$=Z,Z=y.textDecorator,P=[],v=_.g(Z,
l_4),_.g(Z,xO)?P.push("yt-core-attributed-string--highlight-text-decorator"):v&&P.push("yt-core-attributed-string--bracket-text-decorator"),Z=P.join(" "),E.className=Z,E.dir="auto"),Z=_.g(y.textDecorator,xO),P=_.g(y.textDecorator,l_4),v=_.g(y.textDecorator,xO),V=_.g(y.textDecorator,l_4),D.push(cp({run:y,textLength:S,tag:"span",config:E,startIndex:(Z==null?void 0:Z.startIndex)||(P==null?void 0:P.startIndex)||0,length:(v==null?void 0:v.length)||(V==null?void 0:V.length)||0}));if(x.commandRuns&&(L==
null||!L.noEndpoints))for(J=_.O(x.commandRuns),Q=J.next();!Q.done;Q=J.next())Q=Q.value,y=gmf(Q,L),D.push(cp({run:Q,textLength:S,tag:"a",config:y,startIndex:Q.startIndex,length:Q.length}));if(x.attachmentRuns)for(x=_.O(x.attachmentRuns),J=x.next();!J.done;J=x.next()){J=J.value;E=y=void 0;Q={className:"yt-core-attributed-string--inline-block-mod"};if((E=J.element)==null?0:E.properties){E=(y=J.element)==null?void 0:y.properties;y=[];E=_.g(E,wQ0);if(E==null?0:E.margin)E=E.margin,E.left&&y.push("margin-left: "+
NL(E.left)+";"),E.right&&y.push("margin-right: "+NL(E.right)+";"),E.top&&y.push("margin-top: "+NL(E.top)+";"),E.bottom&&y.push("margin-bottom: "+NL(E.bottom)+";");y=y.length!==0?y.join(" "):void 0;Q.style$=y}Z=void 0;y={alt:"",preserveHeight:!0,preserveWidth:!0};E=["yt-core-attributed-string__image-element"];if(J.alignment){a:switch(J.alignment){case "ALIGNMENT_BASELINE":P="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":P="yt-core-attributed-string__image-element--image-alignment-vertical-center";
break a;default:P="yt-core-attributed-string__image-element--image-alignment-bottom"}E.push(P)}if((Z=J.element)==null?0:Z.properties)Z=[],P=_.g(J.element.properties,wQ0),(P==null?0:P.height)&&Z.push("height: "+NL(P.height)+";"),(P==null?0:P.width)&&Z.push("width: "+NL(P.width)+";"),Z=Z.length!==0?Z.join(" "):void 0,y.style$=Z,P=void 0,Z=((P=_.g(J.element.properties,Bx0))==null?void 0:P.label)||"",y.alt=Z;y.className=E.join(" ");E=void 0;v=P=void 0;Z=((v=J.element)==null?0:v.type)?(P=_.g(J.element.type,
WL0))==null?void 0:P.image:void 0;D.push(cp({run:J,textLength:S,tag:"img",image:Z,imageConfig:y,imageWrapperConfig:Q,startIndex:J.startIndex,length:(E=J.length)!=null?E:0}))}if(L==null?0:L.headerRuns)for(L=_.O(L.headerRuns),x=L.next();!x.done;x=L.next())if(x=x.value,x.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(x.headerMapping)){a:{switch(x.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":J=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":J="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":J="yt-core-attributed-string--heading-3";break a}J=void 0}D.push(cp({run:x,textLength:S,tag:"span",config:J?{className:J}:void 0,startIndex:x.startIndex,length:x.length}))}return D};
_.Sn=function(x){return(x==null?void 0:x.content)!==void 0};
Ahb=function(x){return _.Sn(x)?x:_.$i(x)};
$sn=function(x){return x.image!==void 0&&x.imageConfig!==void 0};
rhO=function(x,L){if(L==null?0:L.userInput)for(x=_.O(x),L=x.next();!L.done;L=x.next())if(L=L.value,L.tag!=="a"&&L.tag!=="li"){var D=void 0;(D=L).config||(D.config={});L.config.dir=L.tag==="ul"?_.yY().resolve(_.QO):"auto"}};
Nxs=function(x){return function(L){var D=x.run;(D.onTap!==void 0||D.onLongPress!==void 0)&&_.g(D,nDb)&&GIn(L,{loggingDirectives:_.g(D,nDb)})}};
iR4=function(x){return function(L){for(var D in x)(Kh[D]||Kh[im["default"]])(L,D,x[D])}};
z2O=function(x,L){f_s(L);var D={data:null,start:0,end:x.length,parts:[]};L=_.O(L);for(var S=L.next();!S.done;S=L.next())S=S.value,omO(D,S.startIndex,S.endIndex,S);a_b(x,D);return D};
omO=function(x,L,D,S){for(var Q=_.O(x.parts),J=Q.next();!J.done;J=Q.next()){J=J.value;if(typeof J==="string")throw Error("lh");if(J.start<=L&&D<=J.end){omO(J,L,D,S);return}}x.parts.push({data:S,parts:[],start:L,end:D})};
a_b=function(x,L){for(var D=L.parts.length;D>=0;D--){var S=L.parts[D],Q=L.parts[D-1],J=D===L.parts.length?L.end:S.start;Q=D===0?L.start:Q.end;J!==Q&&L.parts.splice(D,0,x.slice(Q,J));S&&a_b(x,S)}};
f_s=function(x){x.sort(function(L,D){if(L.startIndex<D.startIndex)return-1;if(D.startIndex<L.startIndex)return 1;L=L.endIndex-L.startIndex;D=D.endIndex-D.startIndex;return L>D?-1:D>L?1:0})};
_.XQs=function(x){var L=x.thumbnails;if(L){x={sources:[]};L=_.O(L);for(var D=L.next();!D.done;D=L.next()){D=D.value;var S={};S.url=D.url;S.width=D.width;S.height=D.height;x.sources.push(S)}return x}};
chG=function(x,L,D,S){if(!L)return x.length>=1?x[x.length-1]:null;if(S)for(var Q=_.O(x),J=Q.next();!J.done;J=Q.next()){J=J.value;var Z=void 0,y=(Z=J.url)==null?void 0:Z.indexOf(S);if(y!==void 0&&y>=0)return J}S=_.O(x);for(Q=S.next();!Q.done;Q=S.next())if(Q=Q.value,Q.width&&Q.height&&(D&&Q.width>=L||!D&&Q.height>=L))return Q;for(L=x.length-1;L>=0;L--)if(D&&x[L].width||!D&&x[L].height)return x[L];return x[0]};
_.nmh=function(x){var L;return(x=(L=x.sources)==null?void 0:L[0])?x.width/x.height:0};
_.tJc=function(x){if(x.sources){x=_.O(x.sources);for(var L=x.next();!L.done;L=x.next()){L=L.value;var D=void 0;if((D=L.clientResource)==null?0:D.imageName)return L}}};
xHO=function(x){var L;if((L=x.clientResource)!=null&&L.imageColor)return _.XA(x.clientResource.imageColor)};
_.DH3=function(x,L,D,S,Q,J,Z){if(!L||L.length===0||L[0].clientResource)return null;if(D&&L[0].url)return L[0].url;S===void 0&&(S=!0);if(S){var y;x=LTN*(Q||(x==null?void 0:(y=x.getBoundingClientRect())==null?void 0:y.width)||0)}else{var E;x=LTN*(J||(x==null?void 0:(E=x.getBoundingClientRect())==null?void 0:E.height)||0)}L=chG(L,x,S,Z);return(L==null?0:L.url)?L.url:(L==null?0:L.imageData)?L.imageData:null};
SAp=function(x,L,D){D=D?[D]:[];x.opacity&&D.push("opacity: "+x.opacity+";");L&&x.placeholderColor?(x=_.XA(x.placeholderColor),D.push("background-color: "+x+";")):D.push("background-color: transparent;");return D.join(" ")};
QLG=function(x,L,D,S,Q){var J=["ytCoreImageHost"];L&&J.push(L);D||J.push("ytCoreImageFillParentHeight");S||J.push("ytCoreImageFillParentWidth");switch(x.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":J.push("ytCoreImageContentModeScaleAspectFit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":J.push("ytCoreImageContentModeScaleAspectFill");break;case "CONTENT_MODE_CENTER":J.push("ytCoreImageContentModeCenter");break;default:J.push("ytCoreImageContentModeScaleToFill")}x.flipForRtlLayout&&J.push("ytCoreImageFlipRtl");
switch(Q){case "TOP_START":var Z;J.push(((Z=document.body)==null?void 0:Z.getAttribute("dir"))==="rtl"?"ytCoreImageObjectPositionTopRight":"ytCoreImageObjectPositionTopLeft")}return J.join(" ")};
KTf=function(x){var L;if(x==null?0:(L=x.clientResource)==null?0:L.imageName){var D;x=(D=x.clientResource)==null?void 0:D.imageName;a:{switch(x){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":D="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":D="yt-logos-ext:yt-logo-updated";break a}D=void 0}return D||JF4.get(x)||x}};
yF4=function(x){return _.u("mweb_wiz_skip_render")?Ogf(x):ZgO(x)};
Ogf=function(x){return function(L){var D=f5s("wink-root");a50();o3N();HF4(D,_.M(x,L))}};
ZgO=function(x){var L=L===void 0?!1:L;return function(D){if(!L||!_.u("mweb_skip_keto_to_c3_if_no_data")||D.data!==void 0){var S=EX(!1);try{var Q=D.children;_.u("mweb_render_outside_patch_killswitch")||au?Q?J6(_.M(x,D,Q)):J6(_.M(x,D)):_.qy(new _.RZ("ketoToC3 called outside of a patch",{tagName:x.TAG_NAME}))}finally{EX(S)}}}};
I24=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
Mys=function(x,L){x.onViewportEntered=L;Eyf.observe(x)};
dHb=function(){var x={rootMargin:"10%",threshold:.01};_.u("mweb_enable_set_io_root_to_null_safari")?x.root=null:_.u("mweb_enable_set_io_root_to_body_safari")&&(x.root=document.body);return new IntersectionObserver(function(L,D){L.filter(function(S){return S.intersectionRect.height>0}).forEach(function(S){S=S.target;
if(!_.u("mweb_enable_only_update_image_when_connected")||S.isConnected!==!1){var Q;(Q=S.onViewportEntered)==null||Q.call(S);D.unobserve(S)}})},x)};
Pb0=function(x,L,D,S,Q){function J(){if(S){var y=S.loadedClass,E=S.notifyOnUnloaded;y&&_.JD(x,y);E&&x.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function Z(){var y=D(L,x);y&&x.getAttribute("src")!==y&&(_.u("mweb_enable_only_update_image_when_connected")&&x.isConnected===!1||y===x.src||(x.src=y),J())}
Q=Q===void 0?!0:Q;x.removeAttribute("src");J();L&&(Q?Mys(x,Z):Z())};
jLb=function(x,L,D){if(!L)return!1;L=D(L,x);D=x.getAttribute("src");return L&&L===D&&x.complete};
vyO=function(x,L){for(var D in L)D==="className"?x.className=L[D]:(Kh[D]||Kh[im.default])(x,D,L[D])};
Vy0=function(x,L,D,S){yF4(_.Ku)({contentMode:L.contentMode,loadedClass:L.loadedClass,isPreloaded:L.isPreloaded,notifyOnLoaded:L.notifyOnLoaded,notifyOnUnloaded:L.notifyOnUnloaded,preferredThumbnail:L.preferredThumbnail,preserveHeight:L.preserveHeight,preserveWidth:L.preserveWidth,objectPosition:L.objectPosition,targetWidth:L.targetWidth,targetHeight:L.targetHeight,shouldShowPlaceholder:L.shouldShowPlaceholder,useWidth:L.useWidth,isToggled:L.isToggled,alt:L.alt,className:L.className,onerror:L.onerror,
onload:L.onload,style$:L.style$,color:L.color,width:L.width,height:L.height,"aria-hidden$":L["aria-hidden$"],draggable:L.draggable,"data-disabled$":L["data-disabled$"],data:x,callback:D,renderLazy:S===void 0?!0:S,hideOn404:!1})};
Hg4=function(x,L,D){D=D===void 0?!1:D;var S=x.sources!==void 0?x:_.XQs(x);if(S){var Q=L.onload;L.onload=function(E){var P=E.target;D&&P.naturalWidth===120||_.OI(P,"ytCoreImageLoaded");L.notifyOnLoaded&&P.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));Q==null||Q(E)};
L.targetWidth&&L.preserveWidth&&(L.width=L.targetWidth);L.targetHeight&&L.preserveHeight&&(L.height=L.targetHeight);var J=_.tJc(S),Z=J&&KTf(J);if(Z)return(x=xHO(J))&&(L.color=x),{type:"icon",iconName:Z,config:Object.assign({},L,L.alt?{}:{"aria-hidden$":"true"},{"aria-label$":L.alt,role:"img"})};if(x.sources===void 0){L.alt=x.accessibility&&x.accessibility.accessibilityData&&x.accessibility.accessibilityData.label||L.alt;L.style$=SAp(x,L.shouldShowPlaceholder,L.style$);var y;L.isPreloaded=!((y=_.g(x,
hWN))==null||!y.isPreloaded)}L.contentMode&&!S.contentMode&&(S.contentMode=L.contentMode);L.className=QLG(S,L.className,L.preserveHeight,L.preserveWidth,L.objectPosition);L.loadedClass="ytCoreImageLoaded";return{type:"image",image:S,config:L}}};
_.Zt=function(){var x=_.Ne.apply(0,arguments);return _.Sc(u$0,function(L){var D=x.map(function(S){return S==null?void 0:S(L)});
return function(){return void D.forEach(function(S){return void(S==null?void 0:S())})}})};
yO=function(x,L){var D=L==null?void 0:L.initial;return _.m5(function(){_.WB(!0);return D=x(D)},{equals:L==null?void 0:L.isEqual},"rSlKsc")};
gyp=function(x,L){if(x===L)return!0;if(x===void 0||L===void 0)return!1;var D,S,Q,J,Z,y,E,P;return x.content===L.content&&((D=x.styleRuns)==null?void 0:D.length)===((S=L.styleRuns)==null?void 0:S.length)&&((Q=x.commandRuns)==null?void 0:Q.length)===((J=L.commandRuns)==null?void 0:J.length)&&((Z=x.attachmentRuns)==null?void 0:Z.length)===((y=L.attachmentRuns)==null?void 0:y.length)&&((E=x.decorationRuns)==null?void 0:E.length)===((P=L.decorationRuns)==null?void 0:P.length)};
mHp=function(x,L){if(x){var D=Ahb(x);if(D!=null&&D.content)if(_.u("attr_string_reactive"))yF4(kH0)({text:x,config:L});else{var S=!(L==null||!L.ariaLabel)||!(D.commandRuns&&D.commandRuns.length!==0||D.paragraphStyleRuns&&D.paragraphStyleRuns.length!==0);x=S?L==null?void 0:L.ariaLabel:null;S=S?"text":null;X6O("span",{className:bRw(D,L),dir$:(L==null?0:L.userInput)?"auto":void 0,"aria-label$":x,role$:S},function(){if(D.styleRuns||D.commandRuns||D.attachmentRuns||D.decorationRuns||D.paragraphStyleRuns){var Q=
qEs(D,L);rhO(Q,L);Q=z2O(D.content,Q);Q=_.O(Q.parts);for(var J=Q.next();!J.done;J=Q.next())p1f(J.value)}else Lzf(D.content)})}}};
p1f=function(x){typeof x==="string"?Lzf(x):$sn(x.data)?X6O("span",x.data.imageWrapperConfig,function(){Vy0(x.data.image,x.data.imageConfig)}):X6O(x.data.tag,x.data.config,function(L){Nxs(x.data)(L);
L=_.O(x.parts);for(var D=L.next();!D.done;D=L.next())p1f(D.value)})};
YAp=function(x){return x.parts.map(bgf)};
bgf=function(x){if(typeof x==="string")return x;x=$sn(x.data)?_.M("span",{el:_.Zt(iR4(x.data.imageWrapperConfig))},_.M(_.Ku,Object.assign({},{data:x.data.image},x.data.imageConfig))):_.M(x.data.tag,{el:_.Zt(Nxs(x.data),iR4(x.data.config))},x.parts.map(bgf));return pm(x)};
FT3=function(x,L){return x===L?!0:x===void 0||L===void 0?!1:x.noStyleRuns===L.noStyleRuns&&x.noLinkColor===L.noLinkColor&&x.noEndpoints===L.noEndpoints&&x.headerRuns===L.headerRuns&&x.isOverlay===L.isOverlay&&x.linkInheritColor===L.linkInheritColor&&x.userInput===L.userInput&&x.isHeadline===L.isHeadline};
sLN=function(x){return function(){var L,D,S,Q,J,Z,y,E,P,v,V,h,H,k;return{ariaLabel:(L=x.ariaLabel)==null?void 0:L.call(x),className:(D=x.className)==null?void 0:D.call(x),ellipsisTruncate:(S=x.ellipsisTruncate)==null?void 0:S.call(x),isOverlay:(Q=x.isOverlay)==null?void 0:Q.call(x),linkInheritColor:(J=x.linkInheritColor)==null?void 0:J.call(x),noEndpoints:(Z=x.noEndpoints)==null?void 0:Z.call(x),noStyleRuns:(y=x.noStyleRuns)==null?void 0:y.call(x),noLinkColor:(E=x.noLinkColor)==null?void 0:E.call(x),
noPreWrap:(P=x.noPreWrap)==null?void 0:P.call(x),noWrap:(v=x.noWrap)==null?void 0:v.call(x),skipOnClick:(V=x.skipOnClick)==null?void 0:V.call(x),userInput:(h=x.userInput)==null?void 0:h.call(x),headerRuns:(H=x.headerRuns)==null?void 0:H.call(x),isHeadline:(k=x.isHeadline)==null?void 0:k.call(x)}}};
eWw=function(x,L){x=new Tm0(x,L);_.BI(x);throw x;};
RW0=function(x,L,D){var S=rNs(x);x._numRenders=0;try{var Q=_.q34(function(){return _.M(L,Object.assign({},D))})}catch(Z){var J=function(y){y.args||(y.args=[]);
y.args.push("Error in web component wrapper");y.args.push(x.tagName.toLowerCase());return y};
_.WI(Z instanceof Error?J(Z):new Tm0("Wiz rendering error",x.tagName.toLowerCase()));throw Z;}finally{rNs(S)}return Q};
_.dF=function(x,L,D){function S(v){var V={};v=_.O(v);for(var h=v.next();!h.done;h=v.next()){h=h.value;var H=void 0,k=void 0,T=void 0,G=_.bz((T=(k=(H=h).getAttribute)==null?void 0:k.call(H,"slot"))!=null?T:"children");if(H=V[G])H.push(h);else if(G in J||G==="children")V[G]=[h]}v=_.O(Object.keys(V));G=v.next();for(h={};!G.done;h={content$jscomp$57:void 0},G=v.next())G=G.value,G!=="children"&&(h.content$jscomp$57=V[G],V[G]=function(U){return function(){return U.content$jscomp$57}}(h));
return V}
D=D===void 0?{}:D;x.componentType!==Ru||eWw("Components must be marked reactive to be used from web component wrapper.",L);var Q,J=(Q=D.props)!=null?Q:{};jO.add(L);var Z=GH3();Q=function(){var v=Z.apply(this,arguments)||this;v.rawProps={};v.queuingRender=!1;v.dispose=function(){};
v.isWebComponentWrapper=!0;v.isReparenting=!1;v.hasRendered=!1;return v};
_.p(Q,Z);Q.prototype.render=function(){this.hasRendered=!0;for(var v=_.O([].concat(_.lP(this.attributes))),V=v.next();!V.done;V=v.next())V=V.value,V.name!=="slot"&&V.name!=="hidden"&&this.removeAttribute(V.name);v=Object.assign({},this.componentProps,this.slotProps);V=_.O(RW0(this,x,v));v=V.next().value;V=V.next().value;!(v[0]instanceof Element)||v.length>1?eWw("Wrapped Wiz components must return a single root element.",L):(v=v[0].tagName.toLowerCase(),v!==L&&eWw("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(v+" !== '"+L),L),this.dispose=V)};
Q.prototype.setUpProps=function(){for(var v=this.rawProps,V=this.attributes,h=_.O(Object.keys(J)),H=h.next();!H.done;H=h.next()){H=H.value;var k=void 0;((k=this)==null?0:k[H])&&this[H]!==Cb3&&v[H]===void 0&&(v[H]=this[H],(k=Object.getOwnPropertyDescriptor(this.constructor.prototype,H))&&Object.defineProperty(this,H,k))}h=_.O(V);for(H=h.next();!H.done;H=h.next()){k=H.value;H=_.bz(k.name);var T=H==="class"&&!V.getNamedItem("class-name");if(H in J||T)k=k.value===""||k.value==="true"?!0:k.value==="false"?
!1:isNaN(Number(k.value))?k.value:Number(k.value),H!=="class"||v.className?v[H]=k:v.className=k}V={};for(var G in J)J[G]!==_.Il&&J[G]!==l2b&&(v[G]instanceof Function&&eWw("Function props must be configured as STATIC, not SIGNAL.",L),H=_.O(_.HB(v[G],void 0,"q4ZVff")),h=H.next().value,H=H.next().value,V[G]=H,v[G]=h);v=_.O([v,V]);this.componentProps=v.next().value;this.setters=v.next().value;this.slotProps=S(this.childNodes)};
Q.prototype.connectedCallback=function(){UHO===L&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in J&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
Q.prototype.disconnectedCallback=function(){if(!this._isInert){var v;a:{if(_.EI)for(v=this;v;){if(_.Mj.has(v)){v=!0;break a}v=v.parentElement}v=!1}if(v)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){v=_.O([].concat(_.lP(this.attributes)));for(var V=v.next();!V.done;V=v.next()){V=V.value;var h=void 0;V.name==="slot"||V.name==="hidden"&&((h=D.unsafeExternallySettableAttributes)==null?0:h.has("hidden"))||this.removeAttribute(V.name)}}this.innerText="";l1f(this)}}};
Q.prototype._setPendingPropertyOrPath=function(){};
Q.prototype.notifyPath=function(){};
_.J3.Object.defineProperties(Q.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var y=_.O(Object.keys(J)),E=y.next(),P={};!E.done;P={prop$jscomp$105:void 0},E=y.next())P.prop$jscomp$105=E.value,E=void 0,((E=D.legacyPolymer)==null?0:E.forwardHostProps)&&G9w.has(P.prop$jscomp$105)||Object.defineProperty(Q.prototype,P.prop$jscomp$105,{set:function(v){return function(V){var h=this;this._isInert||(this.setters?bm(function(){var H,k;return void((k=(H=h.setters)[v.prop$jscomp$105])==null?void 0:k.call(H,V))}):(this.rawProps[v.prop$jscomp$105]=V,this.queuingRender&&v.prop$jscomp$105===
"data"&&V!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(P),
get:w1c.has(P.prop$jscomp$105)?void 0:function(){return Cb3}});
customElements.define(L,Q)};
_.Bmb=function(x,L){return(x=_.PD(x,L))?_.w8(_.$z(x)):null};
_.jn=function(x){if(x=_.PD(x,Number.MAX_VALUE,void 0,"width"))return _.$z(x)};
_.PD=function(x,L,D,S){S=S===void 0?"width":S;if(!x||!x.length)return null;if(_.u("kevlar_tuner_should_always_use_device_pixel_ratio")){var Q=window.devicePixelRatio;_.u("kevlar_tuner_should_clamp_device_pixel_ratio")?Q=Math.min(Q,_.dE("kevlar_tuner_clamp_device_pixel_ratio")):_.u("kevlar_tuner_should_use_thumbnail_factor")&&(Q=_.dE("kevlar_tuner_thumbnail_factor"));WTh=Q}else WTh||(WTh=window.devicePixelRatio);Q=WTh;_.u("kevlar_tuner_should_always_use_device_pixel_ratio")?L*=Q:Q>1&&(L*=Q);if(_.u("kevlar_tuner_min_thumbnail_quality"))return x[0].url||
null;Q=x.length;if(_.u("kevlar_tuner_max_thumbnail_quality"))return x[Q-1].url||null;if(D)for(var J=0;J<Q;J++)if(x[J].url.indexOf(D)>=0)return x[J].url||null;for(D=0;D<Q;D++)if(x[D][S]>=L)return x[D].url||null;for(L=Q-1;L>0;L--)if(x[L][S])return x[L].url||null;return x[0].url||null};
$H3=function(){vD.size?setTimeout(function(){VO(qA3)},0):AF4=0};
qA3=function(){var x=(0,_.y5)(),L=null,D=!1;vD.forEach(function(Q){Q.loaded=!0;Q.loadTime=x;Q.pendingPaint=!1;var J=rF3.get(Q);J&&J.resolve(x);L=Q;D||!Q.ftlEligible&&Q.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(D=!0)});
var S;((S=L)==null?0:S.markDirty)&&L.markDirty();vD.clear();AF4=0;D&&Nm3(x)};
ig3=function(x){vD.add(x);x.pendingPaint=!0;AF4||(AF4=_.hD(_.WW,$H3))};
f2b=function(x){x.loaded=!1;x.loadTime=Infinity;var L=rF3.get(x);L&&(L.reject(Error("rh")),rF3.delete(x));x.pendingPaint&&(vD.delete(x),x.pendingPaint=!1)};
_.oyh=function(x){var L=x.indexOf(":");return L===-1?{originalName:x}:{originalName:x.substring(0,L),datasyncId:x.substring(L+1)}};
_.zWp=function(){return _.I(function(x){if(a2f!==void 0)return x.return(a2f);a2f=new Promise(function(L){var D;return _.I(function(S){switch(S.nextAddress){case 1:return _.HH(S,2),S.yield(_.HD.open("test-only"),4);case 4:return S.yield(_.HD.delete("test-only"),5);case 5:_.nH(S,3);break;case 2:if(D=_.mW(S),D instanceof Error&&D.name==="SecurityError")return L(!1),S.return();case 3:L("caches"in window),_.Y2(S)}})});
return x.return(a2f)})};
nyw=function(){return _.I(function(x){if(x.nextAddress==1)return x.yield(_.zWp(),2);if(!x.yieldResult)return x.return(void 0);X1f||(X1f=new cF4);return x.return(X1f)})};
tyf=function(x){var L,D,S,Q;return _.I(function(J){switch(J.nextAddress){case 1:return J.yield(nyw(),2);case 2:L=J.yieldResult;if(!L)throw Error("th");return J.yield(L.open("yt-player-local-img"),3);case 3:return D=J.yieldResult,J.yield(D.match(x),4);case 4:S=J.yieldResult;if(!S)throw Error("uh");return J.yield(S.blob(),5);case 5:return Q=J.yieldResult,J.return(Q)}})};
xWf=function(x,L){for(var D in x)if(x.hasOwnProperty(D)&&L[D])return D;return null};
Lbw=function(x){return"stamp"+x.replace("-","_")+"_"};
DWN=function(x){var L=x.match(/\[\[([\w\.]+)\]\]/);if(L&&L.length>1)return L[1];_.BI(Error("wh`"+x));return null};
Src=function(x){return x===void 0?_.rO("REUSE_COMPONENTS",!1):x||!1};
Kbw=function(x,L,D){D&&(L.is?(QXc.has(L)&&(x=QXc.get(L),D=x.listener,delete L[x.property],D.type==="element"&&L.removeEventListener(D.eventName,D.handler),QXc.delete(L)),Jln(L)):L.__proto__==HTMLElement.prototype&&(L=new _.RZ("Rendererstamper removed a non custom element","Stamper: "+x+" element: "+(L&&L.nodeName)),_.qy(L)))};
Oy4=function(x,L,D,S){var Q=L.node?L.node:L;_.jr(D).parentNode===Q&&(L.removeChild(D),Kbw(x,D,S));if(x=uc.get(D))uc.delete(D),_.WW.cancelJob(x);D.hidden=!1};
Zyc=function(x,L,D,S){if(L&&L.children&&(D=L.children[D]))if(_.rO("DEFERRED_DETACH"))for(;D&&!uc.has(D);){var Q=x,J=L,Z=D,y=S;Z.hidden=!0;Q=_.TG(_.WW,Oy4.bind(null,Q,J,Z,y),0);uc.set(Z,Q);D=D.nextElementSibling}else for(;(Z=L.lastElementChild)&&(L.removeChild(Z),Kbw(x,Z,S),Z!=D););};
_.gF=function(){for(var x=_.Ne.apply(0,arguments),L=!0,D=_.O(x),S=D.next();!S.done;S=D.next())if(typeof S.value!=="string"){L=!1;break}return L?x.join(" ").trim()||void 0:function(){for(var Q="",J=_.O(x),Z=J.next();!Z.done;Z=J.next())if(Z=Z.value,typeof Z==="function"&&(Z=Z()),Z)if(typeof Z==="string")Q+=" "+Z;else for(var y in Z)if(Z.hasOwnProperty(y)){var E=Z[y];typeof E==="function"&&(E=E());E&&(Q+=" "+y)}Q=Q.trim()||void 0;return _.WB(Q)}};
I00=function(x){var L;return(L=ylG[x])!=null?L:"EVENT_SPAN_TYPE_UNKNOWN"};
E1b=function(x){var L=x.nodeName;if(x.id)return L+="#"+x.id;if(x.classList)for(var D=_.O(x.classList),S=D.next();!S.done;S=D.next())L+="."+S.value;x.parentElement&&(L=E1b(x.parentElement)+" > "+L);return L};
MYO=function(x){return function(L){var D=I00(L.type);return D==="EVENT_SPAN_TYPE_UNKNOWN"?x(L):PZh("event",{type:D,nodepath:L.target instanceof Element?E1b(L.target):void 0},function(){return x(L)})}};
_.kO=function(x){x&&EKn("event")&&(x=MYO(x));return jS4(function(L){var D,S=(D=x)==null?void 0:D(L);return typeof S==="boolean"?S:!0})};
pu=function(x){return function(){return x()?x():void 0}};
v1c=function(x){var L=_.x3("animated-rolling-character"),D=eDN(),S=Sq(x.character)||Sq(x.previousCharacter),Q=_.O(RMN()),J=Q.next().value,Z=Q.next().value;_.wO(function(){if(window.ResizeObserver&&_.u("web_fix_rolling_numbers_zoom_safari")){var y=new ResizeObserver(function(){var E,P,v=Math.round(((P=(E=L.value.querySelector("div"))==null?void 0:E.getBoundingClientRect().height)!=null?P:0)*100)/100;v&&Z(v)});
y.observe(L.value);return function(){y.disconnect()}}});
gTn(function(){var y=_.u("web_fix_rolling_numbers_zoom_safari")?J:x.marginMultiplier;if(y){var E;(E=D.value)==null||E.cancel();S?(E=x.previousCharacter?Number(x.previousCharacter)+10:x.rollUp?0:30,x.shouldAnimate||(E-=dWO(x,E))):(E=x.rollUp?0:2,x.shouldAnimate||(E-=x.rollUp?-1:1));L.value.style.marginTop="-"+E*y+"px";x.shouldAnimate?D.value=P23(L.value,x,E,S,y):L.value.style.display=x.character?"":"none"}});
return _.M("animated-rolling-character",{el:L,class:"animatedRollingCharacterHost"},e30(S,function(){for(var y=[],E=1;E<30;E++)y.push(_.M("div",null,E%10));return _.M(_.I1,null,_.M("div",null,"\u00a0"),y,_.M("div",null,"\u00a0"))},function(){return jXn(x.character)}))};
jXn=function(x){return _.M(_.I1,null,_.M("div",null,"\u00a0"),_.M(_.I1,null,e30(!x||_.Ew(x),function(){return _.M("div",null,"\u00a0")},function(){return _.M("div",null,x)})),_.M("div",null,"\u00a0"))};
P23=function(x,L,D,S,Q){D=new Animation(new KeyframeEffect(x,[{transform:"translateY(0px)"},{transform:"translateY("+(S?dWO(L,D):L.rollUp?-1:1)*Q+"px)"}],VYs),document.timeline);L.character?(x.style.display="",D.onfinish=null):D.onfinish=function(){x.style.display="none"};
D.play();return D};
dWO=function(x,L){var D=Number(x.character)+10;if(x.previousCharacter)if(x.character){var S=Number(x.character),Q=Number(x.previousCharacter);x=x.rollUp?Q<S?D:D+10:Q<S?D-10:D}else x=x.rollUp?30:0;else x=x.character==="0"?D:x.rollUp?D-10:D+10;return L-x};
hAf=function(x){return function(L){var D={},S;for(S in L){var Q=void 0,J=void 0;((Q=void 0)==null?0:(J=Q.callbacks)==null?0:J[S])||(D[S]=L[S])}return _.M(WBb,null,function(){for(var Z in D)L[Z]=_.WB(D[Z]);L.disableReactiveLogging=!0;return _.M(x,Object.assign({},L))})}};
g1p=function(x,L,D,S,Q,J,Z){D=new Animation(new KeyframeEffect(x,[{transform:"translateY(0px)"},{transform:"translateY("+(J?Hy0(L,D,S,Q):S?-1:1)*Z+"px)"}],u3s),document.timeline);L?(x.style.display="",D.onfinish=null):D.onfinish=function(){x.style.display="none"};
D.play();return D};
Hy0=function(x,L,D,S){var Q=Number(x)+10;L?x?(x=Number(x),L=Number(L),D=D?L<x?Q:Q+10:L<x?Q-10:Q):D=D?30:0:D=x==="0"?Q:D?Q-10:Q+10;return S-D};
p_0=function(x){var L=eDN(),D=eDN();b64(function(){L.value=x.numberText;D.value=x.numberValue},[x.numberText]);
var S=x.fontSizeMultiplier?x.heightPx*x.fontSizeMultiplier:x.heightPx,Q=TgG(function(){if(x.numberText){var Z=x.numberText;var y=x.forceRollUp||!D.value||!x.numberValue||D.value<x.numberValue;var E=!!x.shouldAnimate,P=L.value,v=[],V=0,h=0,H=(P?P.replace(/\D/g,"").length:0)-(Z?Z.replace(/\D/g,"").length:0);P=P?P.split(/(\d)/).filter(Boolean):[];for(Z=Z.split(/(\d)/).filter(Boolean);H<0;){var k=Z[h];v.push({character:k,rollUp:y,marginMultiplier:S,shouldAnimate:E});h++;Sq(k)&&H++}for(;V<H;)k=P[V],v.push({previousCharacter:k,
rollUp:y,marginMultiplier:S,shouldAnimate:E}),V++,Sq(k)||H++;for(;h<Z.length;)H=Z[h],k=P[V],Sq(H)===Sq(k)?(h++,V++):Sq(H)?(V++,H=void 0):Sq(k)&&(h++,k=void 0),v.push({character:H,previousCharacter:k,rollUp:y,marginMultiplier:S,shouldAnimate:E});y=v}else y=[];return y},[x.numberText]),J=x.numberText?["height: "+S+"px;",
"line-height: "+x.heightPx+"px;"].join(" "):"";return _.M("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:J,dir:"ltr","aria-hidden":"true"},Q.map(function(Z){return _.M(kOf,Object.assign({},Z))}))};
mWb=function(x){switch(x){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}};
by4=function(x,L){if(!x&&!L)return"medium";x=Math.max(x||0,L||0);return x>=256?"large":x>=96?"medium":"small"};
Yr0=function(x){switch(x){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
FbN=function(x){return new KeyframeEffect(x,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
sXw=function(x){return new KeyframeEffect(x,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.mU=function(x){var L=yO(function(D){D=D?_.hI(D[0]):void 0;return _.HB(x(D),void 0,"AwTxXe")},{isEqual:function(D,S){return _.hI(D[0])===_.hI(S[0])}});
return[function(){return L()[0]()},
function(D){return void L()[1](D)}]};
_.bc=function(x){return function(){var L="",D;for(D in x){for(var S=x[D];typeof S==="function";)S=S();S!==void 0&&S!==null&&(L+="; "+D+": "+S)}return L.length>0?_.WB(L.slice(2)):_.WB()}};
TpN=function(x){switch(x){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"}};
eA4=function(x,L){if(L)return"yt-spec-touch-feedback-shape--thumbnail-size-small";if(x)switch(x){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"}};
UWh=function(x,L,D,S,Q,J,Z){var y=RAc(x),E=y.disabled,P=y.iconPosition,v=y.style,V=y.focused,h=function(){return!!T()&&P()==="icon-only"},H=function(){return!!T()&&P()==="icon-only-40"},k=function(){return!!T()&&P()==="icon-with-label"},T=function(){return!!L||!(S==null||!S())};
return{type:function(){return v()==="call-to-action-inverse"?"text":v()==="overlay-dark"&&x().type!=="filled"&&x().type!=="tonal"?"tonal":x().type},
shouldFocus:function(){return(V()||(J==null?void 0:J()))&&!E()},
hasIconLeading:function(){return!!T()&&P()==="leading"},
hasIconTrailing:function(){return!!T()&&P()==="trailing"},
hasIconLeadingTrailing:function(){return!!T()&&!!(D||Q!=null&&Q())&&P()==="leading-trailing"},
hasIconOnly:h,hasIconOnly40:H,hasIconWithLabel:k,iconButton:function(){return h()||H()||k()},
visiblyDisabled:function(){return(E()?"disabled":x().state)==="disabled"||E()},
overrideSmallSizeIcon:function(){return!x().ignoreIconSizeOverride&&GON(x(),T())},
iconToRender:L?L:function(){return _.M(_.YO,{icon:S,size:function(){return C2p(x(),!0,x().ignoreIconSizeOverride)},
active:function(){return x().toggled},
iconFilter:function(){return l0h(x())},
animateIcon:Z})},
secondaryIconToRender:D?D:function(){return _.M(_.YO,{icon:Q,size:function(){return C2p(x(),!0,x().ignoreIconSizeOverride)},
active:function(){return x().toggled},
iconFilter:function(){return l0h(x())}})}}};
RAc=function(x){return{size:function(){return x().size},
style:function(){return x().style},
focused:function(){return x().focused},
disabled:function(){return x().disabled},
onTap:function(L){var D,S;return(S=(D=x()).onTap)==null?void 0:S.call(D,L)},
alignByText:function(){return x().alignByText},
aTagConfig:function(){return x().aTagConfig},
customColors:function(){return x().customColors},
segmentedPosition:function(){return x().segmentedPosition},
toggled:function(){return x().toggled},
toggleable:function(){return x().toggleable},
accessibilityLabel:function(){return x().accessibilityLabel},
onToggle:function(L){var D,S;return(S=(D=x()).onToggle)==null?void 0:S.call(D,L)},
iconPosition:function(){return x().iconPosition},
oneOffCustomTextWrap:function(){return x().oneOffCustomTextWrap},
disableTextEllipsis:function(){return x().disableTextEllipsis},
disableBackdropFilter:function(){return x().disableBackdropFilter},
tooltipText:function(){return x().tooltipText},
ariaHidden:function(){return x().ariaHidden},
tabIndex:function(){return x().tabIndex},
buttonText:function(){return x().buttonText},
formattedButtonText:function(){return x().formattedButtonText},
animatedTextProps:function(){return x().animatedTextProps},
onClickRateLimitMs:function(){return x().onClickRateLimitMs}}};
GON=function(x,L){L=(x.iconPosition==="icon-only"||x.iconPosition==="icon-only-40"||x.iconPosition==="icon-with-label")&&L;return!x.segmentedPosition&&L&&x.size==="S"};
C2p=function(x,L,D){switch(x.size){case "XS":return 16;case "S":return!D&&GON(x,L)?24:16;default:return 24}};
w_O=function(x){switch(x){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"}};
Bp3=function(x){switch(x){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"}};
WbO=function(x){switch(x){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"}};
l0h=function(x){if(x.style==="overlay-dark"&&x.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
FT=function(x){return x&&x.endsWith("px")?Number(x.slice(0,-2)):0};
$Wp=function(x){var L=L===void 0?{}:L;x=_.O(_.mU(x));var D=x.next().value;return[function(S){var Q=_.m5(function(){var y,E,P,v;return{text:(y=D())!=null?y:"",location:(E=L.location)!=null?E:"bottom",offset:(P=L.offset)!=null?P:16,delay:(v=L.delay)!=null?v:1}},void 0,"MgTrkc");
_.Us(function(){var y=Q();_.hI(function(){_.WW.addJob(function(){sI.notify(S,y)},4)})},"WlsgZc");
var J=function(){qrw(S,Q())},Z=function(){Al4()};
S.addEventListener("mouseenter",J);S.addEventListener("focus",J);S.addEventListener("mouseleave",Z);S.addEventListener("blur",Z);S.addEventListener("tap",Z);_.wH(function(){S.removeEventListener("mouseenter",J);S.removeEventListener("mouseleave",Z);S.removeEventListener("focus",J);S.removeEventListener("blur",Z);S.removeEventListener("tap",Z);Al4()})},
x.next().value]};
Npb=function(x,L){if(!JI){var D;uEw(function(){return D=w2f(x,L)});
return D}x.parent=rlf();return w2f(x,L)};
rlf=function(){var x=_.Os(JI||void 0,CSb);return _.lA3(x)?void 0:x};
TQ=function(x,L){_.o6(x,Object.assign({},L,{forceClickLogging:!0}))};
f0O=function(x,L){var D=_.fI(x==null?void 0:x.onTap),S={};D&&(S.getClickedVisualElement=function(){var Q;return iyf(x,D,L==null?void 0:(Q=L.value)==null?void 0:Q.visualElement)});
S=_.a6({elementsCommand:x.onTap,forceNewState:!0,additionalCommandArgs:S});return z$(S)?S:void 0};
o1b=function(x,L,D,S){TQ(x,Object.assign({},{form:{element:L,event:D}},S))};
a0w=function(x,L,D,S,Q){var J=void 0;return function(Z){var y=_.fI(D?x==null?void 0:x.onDisabledTap:x==null?void 0:x.onTap);if(y){var E;J=(E=J)!=null?E:L==null?void 0:L.value;if(y)if(_.u("web_button_vm_click_client_ve_killswitch"))o1b(y,J,Z);else{var P;E=iyf(x,y,(P=J)==null?void 0:P.visualElement);if(Q){o1b(y,Q,Z,{clickedVisualElement:E,form:{element:Q}});return}o1b(y,J,Z,{clickedVisualElement:E})}}S&&S(Z)}};
iyf=function(x,L,D){L=L==null?void 0:L.clickTrackingParams;var S,Q;x=x==null?void 0:(S=x.loggingDirectives)==null?void 0:(Q=S.clientVeSpec)==null?void 0:Q.uiType;if(D&&x&&!L)return D};
zAf=function(x){switch(x){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"}};
X_c=function(x){switch(x){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"}};
clb=function(x){switch(x){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"}};
n14=function(x){switch(x){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"}};
tYG=function(x,L){return _.u6(x.entities,"engagementToolbarStateEntityPayload",L)};
LK0=function(x){(x=_.CI(x))&&_.xiO(x)};
_.xiO=function(x){var L=_.A3();L&&_.n6(L,x)};
Dis=function(x,L,D){_.dg(x,"yt-open-popup-action",[L,D||x])};
Soc=function(x,L){var D=_.Wd(x,"endpoint"),S=_.Wd(x,"action");return(D=S?S:D)&&L&&(D=L.navigationEndpointPopupMap[D])&&(x=_.o1(D,x),(D=_.Wd(x,"renderer"))&&L.supportedPopups.hasOwnProperty(D))?{openPopupAction:{popupType:L.popupTypeMap[D],popup:x}}:null};
QKs=function(x,L,D,S){if(S){var Q;D=D==null?void 0:(Q=D.data)==null?void 0:Q.contents;(Q=D instanceof Array&&D.length?D[0]:D)&&(D=_.Wd(Q,"renderer"))&&S.supportedPopups.hasOwnProperty(D)&&(L.stopPropagation(),Dis(x,{openPopupAction:{popupType:S.popupTypeMap[D],popup:Q}}))}};
O9b=function(x,L,D,S){S=S===void 0?!1:S;var Q=JOw(L);if(Q){Q.href&&td(Q.href);var J=L.button;J=J!==void 0?J===0&&!en(L):!en(L);Q.data&&J&&KK3(x,Q,L,D,S)}};
KK3=function(x,L,D,S,Q){Q=Q===void 0?!1:Q;var J=_.dE("pbj_navigate_limit",-1)===0;Z9c(L);_.yY().resolve(_.ZN(fV));var Z=L.data;if(Object.keys(Z).length!==0)if(!_.u("unplugged_web_disable_actions_for_cec_endpoint")&&_.g(Z,_.h_))_.u("endpoint_behavior_command_executor_fix_killswitch")||(D.preventDefault(),D.stopPropagation()),_.v$(x,[Z],x);else if(S=Soc(Z,S))Z.loggingUrls&&Z.loggingUrls.forEach(function(E){E.baseUrl&&_.z3(E.baseUrl)}),D.preventDefault(),D.stopPropagation(),Dis(x,S,L);
else{var y=yO4(0,L.data,D);if(x=L.getForm)x=x(),y.tempData=y.tempData||{},y.tempData=Object.assign({},y.tempData,x);x=_.Jq(D);if(S=x.find(function(E){return!!E.visualElement}))y.createScreenConfig=y.createScreenConfig||{},y.createScreenConfig.clickedVisualElement=S.visualElement;
if(!J)if(D.preventDefault(),D.stopPropagation(),_.g(Z,_.IZN)&&!Q&&_.pI.instance)_.pI.instance.resolveCommand(Z,y);else if(_.u("kevlar_command_handler_formatted_string")&&!Q&&_.pI.instance&&EYp(Z))Q=x.find(function(E){return!!E.is})||D.target,D={form:Object.assign({},y,{event:D,
element:Q,originatingNode:L})},_.pI.instance.resolveCommand(Z,D);else{Z=_.Jq(D);D=[];for(Q=0;Q<Z.length;Q++)(J=Z[Q].is)&&D.push(J);nec({parents:D.join(","),text:L.innerText},function(){_.MF(L,"yt-navigate",y)})}}};
M4c=function(x){if(x=JOw(x))Z9c(x),S0w(x.href)};
JOw=function(x){x=_.Jq(x);for(var L,D=0;D<x.length;D++)if(L=x[D],L.tagName==="A"&&L.classList.contains("yt-simple-endpoint")){if(!L.data)break;return L}return null};
en=function(x){return x.shiftKey||x.altKey||x.metaKey||x.ctrlKey};
di0=function(x,L){var D={itct:L.clickTrackingParams};_.u("kevlar_client_side_screens")&&(!_.g(L,_.TF)||_.u("kevlar_exclude_endpoint_killswitch"))&&(D.endpoint=JSON.stringify(L));_.u("enable_unknown_lact_fix_on_html5")&&_.yY().resolve(_.ZN(_.Rl))&&(D.lact=_.Z8());xr3(D);_.J_(x,D)};
Z9c=function(x){x.href&&Object.keys(x.data).length!==0&&di0(x.href,x.data)};
EYp=function(x){for(var L=_.O(PE3),D=L.next();!D.done;D=L.next())if(x[D.value])return!1;return!0};
_.jKp=function(x,L){return _.u6(x.entities,"markersEngagementPanelSyncEntity",L)};
vYb=function(x,L){return _.u6(x.entities,"playerStateEntity",L)};
V4f=function(x,L){return _.u6(x.entities,"fantasyWinProbabilityEntity",L)};
hww=function(x,L){return _.u6(x.entities,"fantasyTeamEntity",L)};
H9n=function(x,L){return _.u6(x.entities,"fantasyPlayerEntity",L)};
uQh=function(x,L){return _.u6(x.entities,"booleanEntity",L)};
gY4=function(x,L){return _.u6(x.entities,"qrCodeEntity",L)};
kKs=function(x){return _.u6(x.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
p8w=function(){if(GQ)return GQ;if(window.lottie)return GQ=Promise.resolve(window.lottie);var x=_.qg(_.$6("LOTTIE_URL"));return x?GQ=new Promise(function(L,D){var S=document.createElement("script");S.addEventListener("load",function(){L(lottie)});
S.addEventListener("error",function(Q){var J="Lottie library failed to load.";Q?Q.message&&(J+=" Original description: "+Q.message,_.A7(Q,J)):Q=Error(J);_.qy(Q);D(Q)});
S.setAttribute("async","");_.QD(S,x);document.head.appendChild(S)}):Promise.reject(Error("xh"))};
mip=function(){return GQ?GQ:p8w()};
b9f=function(x){if(x)switch(x){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.u("kevlar_use_wil_icons"))return x=(x=kKs(_.Jd().getState()))&&x.animationLightUrl&&x.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:x.animationLightUrl,pathDarkTheme:x.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,x?x:Cu.get("LIKE");break;case "LIKE_DELHI_PLAYER":return Cu.get("LIKE_DELHI_PLAYER")}};
Yon=function(x){var L=b9f(x);if(L)return L;switch(x){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return Cu.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return Cu.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return Cu.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return Cu.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return Cu.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return Cu.get("NOTIFICATION_BELL")}};
FKn=function(x,L){if(!x.closest)return!1;L=!!b9f(L);return _.$6("ID_TOKEN")&&L?!!x.closest("segmented-like-dislike-button-view-model")||!!x.closest("yt-player-quick-action-buttons"):!1};
TZb=function(x,L){if(!x||sKG)L=!1;else{var D;if(!(D=FKn(x,L)))if(x.closest)if(D=!_.$6("ID_TOKEN"),x=x.closest("ytd-subscription-notification-toggle-button-renderer-next"),D||!x)D=!1;else{var S;D=((S=x.data)==null?void 0:S.targetId)==="notification-bell"&&L!=="EXPAND_MORE"}else D=!1;L=D}return L};
ew3=function(x){var L,D;return _.I(function(S){switch(S.nextAddress){case 1:return _.HH(S,2),S.yield(fetch(x),4);case 4:return L=S.yieldResult,S.yield(L.json(),5);case 5:return S.return(S.yieldResult);case 2:D=_.mW(S),_.qy(D),_.Y2(S)}})};
Rwf=function(x,L){var D,S,Q;return _.I(function(J){if(J.nextAddress==1)return(D=L?x.pathDarkTheme:x.path)?J.yield(Promise.all([ew3(D),p8w()]),2):J.return();S=J.yieldResult;Q=S[0];lc.set(D,Q);_.Y2(J)})};
CEO=function(x,L,D,S){function Q(Z,y){if(L.value===y&&!L.cancelled&&x!=null&&x.value){for(;x.value.firstChild;)x.value.removeChild(x.value.firstChild);x.value.classList.add("ytSpecIconShapeHost");Z(x.value,S)}}
var J=_.GK3(_.yY().resolve(_.ki),D);typeof J==="function"?(L.value=null,Q(J,null)):(L.value=J,J.then(function(Z){Q(Z,J)}))};
Uiw=function(x,L){var D=document.createElement("div"),S=_.lf(D,function(){return _.M(_.d,{cond:x,then:function(Q){return _.M(lZG,{data:Q,options:L})}})},"$");
return[D,S]};
_.UI=function(x,L){if(L){var D={};w8n.forEach(function(S){S=BZh(L,S,"--yt-lightsource-");Object.assign(D,S)});
WKw.forEach(function(S){S=BZh(L,S,"--yt-basic-");Object.assign(D,S)});
_.uN(x,D)}};
BZh=function(x,L,D){var S={};S[D+_.mz(L)]=x&&x[L]?_.XA(x[L]):"";return S};
_.BD=function(x,L,D){wF[x]||(wF[x]={});wF[x][L]=D};
_.WD=function(x){wF[x]||(wF[x]={});return wF[x]};
qof=function(x){if(!x)return{};var L=x.foregroundTitleColor,D=x.backgroundColor;x=x.borderColor;var S="text";x?S="outline":D&&(S="filled");return{type:S,customColors:{color:L?_.XA(L):void 0,backgroundColor:D?_.XA(D):void 0,borderColor:x?_.XA(x):void 0}}};
i9s=function(x){var L=x.renderer;var D=x.element;var S=x.commandController;var Q=x.onTapCallback;var J=x.skipCommandHandling;var Z=x.overrides;var y=x.forceIcon;var E=x.forceModernIconButton;var P=x.forceDisabled;var v=x.isSubscribe===void 0?!1:x.isSubscribe;var V=x.isPressed===void 0?!1:x.isPressed;var h=x.useButtonSize===void 0?!1:x.useButtonSize;x=AOO(L);v&&(x.style="mono",x.type="filled");y=!L.icon||!y&&L.text?L.icon?L.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:E?"icon-only":"icon-only-40";y==="icon-only-40"&&(x.type="text");var H;E=Object;v=E.assign;h=$is(L,h);V=!!L.isSelected||!_.u("web_propagate_is_pressed_killswitch")&&!!V;var k=L.isSelected!==void 0;P=P===void 0?L.isDisabled:P;var T=L.text?_.$i(L.text):void 0;var G,U,l,X=((G=L.accessibilityData)==null?void 0:(U=G.accessibilityData)==null?void 0:U.label)||((l=L.accessibility)==null?void 0:l.label);G=X?X:_.SR(L.text);D=rOh(L,D,S,Q,J);S=NZG(L);S!=null&&S.length?(S=_.a6({innertubeCommand:dsb(S),
forceNewState:!0}),S=z$(S)?S:void 0):S=void 0;return v.call(E,{},x,h,{iconPosition:y},Z,{focused:!1,toggled:V,toggleable:k,disabled:P,formattedButtonText:T,accessibilityLabel:G,onTap:D,aTagConfig:S},qof((H=L.colorData)==null?void 0:H.basicColorPaletteData),{oneOffCustomTextWrap:L.oneOffCustomTextWrap})};
rOh=function(x,L,D,S,Q){return function(J){var Z=NZG(x);S(Z,J);if(!Q){Z=_.O(Z);for(var y=Z.next();!y.done;y=Z.next())TQ(y.value,{form:{element:L,event:J},commandController:D})}}};
NZG=function(x){var L=[];x.command&&L.push(x.command);x.serviceEndpoint&&L.push(x.serviceEndpoint);x.navigationEndpoint&&L.push(x.navigationEndpoint);return L};
$is=function(x,L){if(L)switch(x.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(x.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
AOO=function(x){switch(x.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"}}};
fZN=function(x,L){return typeof x!=="object"||x===null?!1:Object.keys(L).every(function(D){return D in x})};
_.qj=function(x){return Object.fromEntries(Object.keys(x).map(function(L){return[L,L]}))};
oYO=function(x,L,D){return id3(D,function(S,Q){return function(J){var Z=_.Ne.apply(1,arguments);return fZN(J,x)?Q.apply(null,[J[L]].concat(_.lP(Z))):Q.apply(null,[J].concat(_.lP(Z)))}})};
_.AD=function(x){return function(L,D){return oYO(x,L,D)}};
_.$O=function(x){return x!=null&&x.watch?x.watch.isTheaterMode:!1};
_.rF=function(x){return x!=null&&x.watch?x.watch.isWatchFullscreen:!1};
_.Nj=function(x){x=_.aZs(x);return _.u("web_watch_enable_single_column_grid_view")?x:!1};
_.aZs=function(x){return x.watch.isWatchNarrowWidth};
_.zwO=function(x){return x.watch.openEngagementPanels};
_.ic=function(x){return _.m5(function(){NXh()();return oMh(x)},{debugName:"d8B62c"},"DEXkhd")};
fu=function(x,L){return _.u6(x.entities,"likeStatusEntity",L)};
X8f=function(x,L){return _.u6(x.entities,"likeCountEntity",L)};
_.cOw=function(x,L){return _.u6(x.entities,"stringEntity",L)};
nYn=function(x,L){return _.u6(x.entities,"dataFreshnessEntity",L)};
t4O=function(x,L){if(!x)return!1;var D,S=(D=_.g(x,_.ul))==null?void 0:D.signal;if(S&&L.signalEndpointMap)return!!L.signalEndpointMap[S];var Q;if((D=(Q=_.g(x,_.ol))==null?void 0:Q.request)&&L.continuationEndpointMap)return!!L.continuationEndpointMap[D];for(var J in x)if(L.commandEndpointMap[J])return!0;return!1};
xOG=function(x,L){if(L.streamingEndpointMap)for(var D in x)if(L.streamingEndpointMap[D]&&(x=L.streamingEndpointMap[D]))return x()};
Lj0=function(x,L){var D,S=(D=_.g(x,_.ul))==null?void 0:D.signal;if(S&&L.signalEndpointMap&&(D=L.signalEndpointMap[S]))return D();var Q;if((D=(Q=_.g(x,_.ol))==null?void 0:Q.request)&&L.continuationEndpointMap&&(Q=L.continuationEndpointMap[D]))return Q();for(var J in x)if(L.commandEndpointMap[J]&&(x=L.commandEndpointMap[J]))return x()};
DOf=function(x){var L={"Content-Type":"application/json"};_.$6("EOM_VISITOR_DATA")?L["X-Goog-EOM-Visitor-Id"]=_.$6("EOM_VISITOR_DATA"):_.$6("VISITOR_DATA")&&(L["X-Goog-Visitor-Id"]=_.$6("VISITOR_DATA"));L["X-Youtube-Bootstrap-Logged-In"]=_.$6("LOGGED_IN",!1);_.$6("DEBUG_SETTINGS_METADATA")&&(L["X-Debug-Settings-Metadata"]=_.$6("DEBUG_SETTINGS_METADATA"));if(x!=="cors"){var D=_.$6("INNERTUBE_CONTEXT_CLIENT_NAME");D&&(L["X-Youtube-Client-Name"]=D);(D=_.$6("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(L["X-Youtube-Client-Version"]=
D);(D=_.$6("CHROME_CONNECTED_HEADER"))&&(L["X-Youtube-Chrome-Connected"]=D);(D=_.$6("DOMAIN_ADMIN_STATE"))&&(L["X-Youtube-Domain-Admin-State"]=D)}_.rO("SEND_LAVA_HEADER_UNCONDITIONALLY",!1)?(x=_.$6("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(L["X-YouTube-Lava-Device-Context"]=x):x!=="cors"&&_.rO("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(x=_.$6("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(L["X-YouTube-Lava-Device-Context"]=x);return L};
SmO=function(x,L){L.watchNextResponse||L.reelItemWatchResponse?L.watchNextResponse?x.content=L.watchNextResponse:x.content=L.reelItemWatchResponse:L.playerResponse?x.player=L.playerResponse:L.reelWatchSequenceResponse&&(x.reelSequence=L.reelWatchSequenceResponse)};
_.al=function(x){if(!x)return null;for(var L=[],D=0;D<x.textSegments.length;D++){var S=x.textSegments[D];S.text?L.push(S):S.emojiId&&L.push({emoji_id:S.emojiId})}return{text_segments:L}};
ZCw=function(x,L,D,S,Q,J,Z){J=J===void 0?[]:J;var y=new _.zQ;y.endpoint=D;if(!D)return _.WI(new _.RZ("handle undefined endpoint",L.tagName)),y;var E=OFn(D);E.length&&(_.v$(x,E,L,S),y.actions=E);D.loggingUrls&&D.loggingUrls.forEach(function(v){v.baseUrl&&Xg(v.baseUrl,v.attributionSrcMode)});
E=!_.u("web_skip_impression_click_killswitch")&&S&&S.impression;if(D.clickTrackingParams&&!QVh(D)&&!Jkn(L)&&!E&&(E=_.sk(),!_.XT(E,L))){var P=L.getScreenLayer&&L.getScreenLayer();P?E.clickCommand(D,null,P):E.clickCommand(D,null)}E=!1;for(P=0;P<J.length;P++)if((0,J[P])(L,D,S)){E=!0;break}!E&&Kjf(D)&&(y.ajaxPromise=OCO(x,L,D,S,Q,Z));return y};
Jkn=function(x){var L;return(x=(L=x.data)==null?void 0:L.navigationEndpoint)&&!!x.clickTrackingParams};
QVh=function(x){var L=_.g(x,_.ul);if(L&&(L=L.signal)&&yk0.indexOf(L)>=0)return!0;for(var D in x)if(IPf.indexOf(D)>=0)return!0;return!1};
Kjf=function(x){var L;if(((L=_.g(x,_.ul))==null?void 0:L.signal)==="CLIENT_SIGNAL")return!1;for(var D in x)if(EBn.indexOf(D)>=0)return!1;x=Object.keys(x);return x.length===1&&x[0]==="loggingUrls"?!1:!0};
HCf=function(x,L,D,S,Q,J,Z){var y=_.cD.instance;if(y&&_.nu(y,S))var E=_.tD(y,S,Q).then(function(v){return(v==null?0:v.data)?v:{data:v}});
else E=x.requestDataForServiceEndpoint(S,Q),_.g(S,Me0)||_.g(S,dOb)||_.g(S,_.PXw)||_.g(S,jVp)||_.qy(new _.RZ("No RequestBuilder for endpoint",S));var P=_.xe();P.promise.thenCatch(function(){var v=_.Wd(S,"action")||_.Wd(S,"command")||_.Wd(S,"endpoint");v&&(v=S[v],v.hasOwnProperty("onFailureAction")?_.v$(L,[v.onFailureAction],D):v.hasOwnProperty("onFailureCommand")&&_.v$(L,v.onFailureCommand,D));E.cancel("Resolver promise rejected")});
E.then(function(v){if(v){var V=v.error;if(V){if(J&&J.onServerError)J.onServerError(S,v);P.reject(new _.RZ("Response error",S,V))}else if(v=v.data)if(V=v.error){if(J&&J.onServerError)J.onServerError(S,v);P.reject(new _.RZ("Returned error",S,V))}else{vBf(L,D,v,S);Vew(v);if(V=KBO(v))for(var h=_.O(V),H=h.next();!H.done;H=h.next()){H=H.value;var k=_.yY().resolve(_.ZN(hIs))||LX;if(!_.cD.instance||!k.some(function(G){return!!_.g(S,G)})||_.u("kevlar_response_processor_allowlist_killswitch")){var T=k=void 0;
((T=_.g((k=H)==null?void 0:k.commandMetadata,_.gg))==null?0:T.sendPost)?_.jq(L,[H]):_.v$(L,[H],D)}}(h=_.g(v==null?void 0:v.frameworkUpdates,Ds))&&Z&&Z(h);if(J&&J.onSuccess)J.onSuccess(S,v);P.resolve(new _.S2(v,V))}}else P.reject(new _.RZ("Invalid service endpoint provided",S))},function(v){P.reject(v)});
return P.promise};
Vew=function(x){var L;(x=(L=_.g(x==null?void 0:x.onResponseReceivedCommand,_.ua0))==null?void 0:L.continuationItems)&&(x==null?void 0:x.length)===1&&_.g(x[0],gB0)&&_.$T("so_r",void 0,"search_overview_answer")};
OCO=function(x,L,D,S,Q,J){var Z;return(Z=L.getNetworkManager&&L.getNetworkManager()?L.getNetworkManager():_.yY().resolve(_.ZN(_.NB)))?HCf(Z,x,L,D,S,Q,J):_.Bp("No network manager.")};
vBf=function(x,L,D,S){if(D=D.trackingParams||D.loggingDirectives&&D.loggingDirectives.trackingParams){var Q;(_.g(S,kr4)||_.g(S,p3O)||_.g(S,mO3))&&S.clickTrackingParams?Q=_.CI(S.clickTrackingParams):_.u("web_graft_to_parent_command")&&S.clickTrackingParams&&(Q=_.CI(S.clickTrackingParams));var J;S=(J=L.getScreenLayer)==null?void 0:J.call(L);L=_.sk().graftServerVe(D,Q,S);_.P$(x,"yt-store-grafted-ve-action",[L])}};
_.bCf=function(x){var L=new Image;return new _.HI(function(D,S){L.addEventListener("load",function(){D()});
L.addEventListener("error",function(){S()});
L.src=x})};
Ymn=function(x){return!!x};
Fjb=function(x){return!!x};
sV4=function(x,L,D){var S=x.rowIndex;S!==void 0&&_.P$(x.hostElement,"yt-section-reactive-dismissal",[S,L,D])};
_.QC=function(x,L,D){x=_.O(x);for(var S=x.next();!S.done;S=x.next()){S=S.value;if(S===L)break;for(var Q=_.O(D),J=Q.next();!J.done;J=Q.next())if(J=J.value,S.tagName===J||!_.u("web_event_button_role_check_killswitch")&&S.role==="button"&&J==="BUTTON")return!0}return!1};
_.JL=function(x,L,D){x=_.O(x);for(var S=x.next();!S.done;S=x.next()){S=S.value;if(S===L)break;for(var Q=_.O(D),J=Q.next();!J.done;J=Q.next())if(S.id===J.value)return!0}return!1};
_.Zs=function(){var x=_.yY().resolve(_.ZN(_.KX));return x?(x=x.getCurrentPage())?_.Ov(x):null:null};
_.yC=function(){var x=_.Zs();if(!x){var L=_.yY().resolve(_.ZN(_.KX)),D=L?typeof L:"no page manager";L=L?L.getCurrentPage():null;D=new _.RZ("Player is missing when requested.",D,L?L.tagName:"no page");_.BI(D)}return x};
_.Ov=function(x){return x&&x.getPlayer?x.getPlayer():null};
Twf=function(x,L){x={args:{raw_player_response:x}};L&&(x.args=Object.assign({},x.args,L));return x};
eI3=function(x){if(x.args){if(x.args.raw_player_response)return x.args.raw_player_response;if(x.args.player_response)return JSON.parse(x.args.player_response)}};
_.RIO=function(x,L){var D={url:"/watch?v="+x.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};x.playlistId&&(D.url+="&list="+x.playlistId);x.playerParams&&(D.url+="&pp="+x.playerParams);x={watchEndpoint:x,commandMetadata:{webCommandMetadata:D}};L&&(x.clickTrackingParams=L);return x};
CXh=function(){return Grp||!!_.o1("yt.player.Application")};
UOG=function(){return lPn||!!document.querySelector("link#player-css")};
Bwn=function(){function x(){Grp=!0;w3f.resolve()}
var L,D;return _.I(function(S){w3f||(w3f=new _.Hq,CXh()?x():(L=document.createElement("script"),L.addEventListener("load",x),D=_.Cw(_.$6("PLAYER_JS_URL")),_.QD(L,D),document.head.appendChild(L)));return S.return(w3f.promise)})};
qmb=function(){function x(){lPn=!0;Wj4.resolve()}
if(!Wj4)if(Wj4=new _.Hq,UOG())x();else{var L=document.createElement("link");L.id="player-css";L.addEventListener("load",x);var D=_.Cw(_.$6("PLAYER_CSS_URL"));_.Ot(L,D,"stylesheet");document.head.appendChild(L)}return Wj4.promise};
AkO=function(){return CXh()&&UOG()?Promise.resolve([]):Promise.all([Bwn(),qmb()])};
$O4=function(x,L,D){var S={args:{}};x&&(S.args.raw_player_response=x);L&&(S.args.raw_watch_next_response=L);D&&(S.args=Object.assign({},S.args,D));return S};
fPO=function(x,L,D){var S=!1;S=S===void 0?!0:S;x=typeof x==="string"?_.IB(document,x):x;var Q=rkb+"_"+_.zN(x),J=Nwb[Q];if(J&&S)return iC0(L,D)?J.api.loadVideoByPlayerVars(L.args||null):J.loadNewVideoConfig(L),J.api;J=new Ev(x,Q,L,D,void 0);Nwb[Q]=J;J.addOnDisposeCallback(function(){delete Nwb[J.getId()]});
return J.api};
iC0=function(x,L){return L&&L.serializedExperimentFlags?L.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):x&&x.args&&x.args.fflags?x.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
oB0=function(){var x=new _.Hq;x.resolved=!1;var L=x.resolve;x.resolve=function(D){x.resolved=!0;L(D)};
return x};
zIf=function(x){var L={};aPG().install((L.document_disposed={callback:x},L))};
Mb=function(x,L){if(!x&&Math.random()<=_.dE("kevlar_unified_player_logging_threshold")){x=Error("zh`"+(L?L:"Unspecified error"));if(_.u("kevlar_unified_player_throw_errors"))throw x;_.qy(x)}};
_.X3c=function(){var x=_.o1("ytDebugData.callbacks");x||(x={},_.KK("ytDebugData.callbacks",x));return x};
nBn=function(x,L){var D=_.X3c();if(_.u("web_dd_iu")||ckb.includes(x))D[x]=L};
te4=function(){return _.I(function(x){return x.return({isLeader:_.eyb(_.Jd().getState()),c:_.$6("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.$6("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
xv0=function(){var x;_.I(function(L){if(L.nextAddress==1)return nBn("APP_STATE",te4),L.yield(_.yY().resolve(_.d4),2);x=L.yieldResult;nBn("PI",function(){return _.I(function(D){return D.return(x.getVideoStats())})});
_.Y2(L)})};
Las=function(x){var L=_.Q0(_.XY(_.Qb.location.href));x=_.Q0(_.XY(x));return _.u("kevlar_clear_non_displayable_url_params")?L==PX(x):PX(L)==PX(x)};
PX=function(x){var L=_.DvG(x);x=x.slice(0);var D=["frags"];_.u("kevlar_hide_pp_url_param")&&D.push("pp");_.u("kevlar_hide_time_continue_url_param")&&D.push("time_continue");D=_.O(D);for(var S=D.next();!S.done;S=D.next())S=S.value,x=_.K6(_.Q0(x),S);return _.Q0(x)+(L?"#"+L:"")};
j2=function(x,L){L=Number(L)*1E3;var D=Math.round((0,_.y5)()),S=D.toString();x={innertubeResponse:x,serverDateTimestampMs:S,lastModifiedTimestampMs:S,expireTimestampMs:(D+L).toString()};if(L=_.$6("INNERTUBE_CONTEXT_CLIENT_NAME"))x.clientName=L;return x};
Q50=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++Spb};
Jtb=function(x){return!isNaN(x)&&x>0};
ON0=function(){_.u("web_adaptive_repeat_ase")&&Kaf&&_.Uh("applicationStarted",Kaf)};
_.ZN0=function(){var x=_.qu(),L=_.A3();L&&x&&_.xN(L,[x],!0)};
Iun=function(x){return x&&yth.some(function(L){return x.includes(L)})};
vCc=function(x){var L=_.g(x,_.oR);if(!L)return!1;var D=L.url,S=L.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!D)return _.BI(Error("Eh")),!1;if(L.target==="TARGET_NEW_WINDOW"){L={};_.u("resolve_url_parent_tracking_params")&&(!_.QY(D)||J8(window.location.href,D))&&(L={endpoint:x,itct:x.clickTrackingParams});xr3(L);x=null;try{if(S){a:{var Q=D,J=L;S=S===void 0?!1:S;J&&_.J_(Q,J);var Z=_.$z(Q),y=_.w8(Z);Q!=y&&_.X0(Error("gg`"+Q));Q=y;try{if(S){y=Q;y=$Ln(y);td(y);x=_.nU(window,y,"_blank",
"attributionsrc");break a}}catch(h){_.N9(h)}td(Q);x=_.nU(window,Z,"_blank")}ECs(_.yY().resolve(Maw),x,D);return!0}}catch(h){_.BI(h)}_.J_(D,L);L={target:"_blank",noopener:!1};Z=window;y=U5(D)?D:_.$z(typeof D.href!="undefined"?D.href:String(D));S=self.crossOriginIsolated!==void 0;x="strict-origin-when-cross-origin";window.Request&&(x=(new Request("/")).referrerPolicy);Q=L.noreferrer;if(S&&Q&&x==="unsafe-url")throw Error("ue");x=Q&&!S;Q=L.target||D.target;J=[];var E=[],P=!1;for(V in L){var v=L[V];switch(V){case "width":case "height":case "top":case "left":J.push(V+
"="+v);break;case "target":break;case "noopener":case "noreferrer":v?E.push(V):(P=!0,E.push(V+"=false"));break;case "attributionsrc":J.push(V+(v?"="+v:""));break;default:J.push(V+"="+(v?1:0))}}var V=Q!==void 0&&!["_blank","_self","_top","_parent",""].includes(Q);V=Fh()&&V;dvf&&S&&J.length===0&&E.length>0&&!V&&!P?(E.length===2&&(E=["noreferrer"]),_.nU(Z,y,Q,E[0]),x=P3p()):(V=J.join(","),_.GN()&&Z.navigator&&Z.navigator.standalone&&Q&&Q!="_self"?(V=_.pw("A"),fU(V,y),V.target=Q,x&&(V.rel="noreferrer"),
((L=L.attributionsrc)||L==="")&&V.setAttribute("attributionsrc",L),L=document.createEvent("MouseEvent"),L.initMouseEvent("click",!0,!0,Z,1),V.dispatchEvent(L),V=P3p()):x?(V=_.nU(Z,"",Q,V),Z=_.w8(y),V&&(V.opener=null,Z===""&&(Z="javascript:''"),Z='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+vX(Z)+'">',Z=aN(Z),(L=V.document)&&L.write&&(L.write(Xs(Z)),L.close()))):((V=_.nU(Z,y,Q,V))&&L.noopener&&(V.opener=null),V&&L.noreferrer&&(V.opener=null)),x=V);ECs(_.yY().resolve(Maw),
x,D);return!0}V=_.gE(D);V=Iun(V)||D==="https://studio.youtube.com/";if(_.QY(D)&&!J8(window.location.href,D)||V)td(D),B$(),_.x9(D,void 0,void 0,window.top,j5f);else return _.qy(new _.RZ("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",x)),!1;return!0};
_.HN4=function(x,L){L=L===void 0?0:L;if(!(_.g(x,Vas)||_.g(x,htG)||_.g(x,_.oR)&&_.g(x,_.oR).url))return!1;var D,S=(D=_.g(x,_.oR))==null?void 0:D.url;D=S?{externalLinkData:{url:S}}:null;return _.sk().clickCommand(x,D,L)};
uln=function(x,L){return _.u6(x.entities,"subscriptionStateEntity",L)};
gCG=function(x,L){return _.u6(x.entities,"subscriptionNotificationStateEntity",L)};
k70=function(x,L){return _.u6(x.entities,"upcomingEventReminderStateEntity",L)};
pe0=function(x,L){return _.u6(x.entities,"engagementToolbarSurfaceEntityPayload",L)};
mvb=function(x,L){return _.u6(x.entities,"triStateButtonStateEntityPayload",L)};
bN0=function(x,L){return _.u6(x.entities,"commerceCartCheckoutButtonEntity",L)};
_.Ypw=function(x,L){return _.u6(x.entities,"playlistLoopStateEntity",L)};
FaO=function(x,L){return _.u6(x.entities,"commandEntity",L)};
ToG=function(x,L,D,S,Q){Q=Q===void 0?{}:Q;return function(J){var Z,y;var E=((Z=x.loggingDirectives)==null?0:(y=Z.clientVeSpec)==null?0:y.uiType)?_.VC(x.loggingDirectives.clientVeSpec.uiType):void 0;Q.clickedVisualElement||(Q.clickedVisualElement=E);E=s50(x,L);D(E,J);E=_.O(E);for(Z=E.next();!Z.done;Z=E.next()){Z=Z.value;y=S;var P=J,v=Q;v.form?v.form.event=P:v.form={element:y,event:P};TQ(Z,v)}}};
s50=function(x,L){var D=[];L?(x.toggledCommand&&D.push(x.toggledCommand),x.toggledServiceEndpoint&&D.push(x.toggledServiceEndpoint)):(x.defaultCommand&&D.push(x.defaultCommand),x.defaultServiceEndpoint&&D.push(x.defaultServiceEndpoint),x.defaultNavigationEndpoint&&D.push(x.defaultNavigationEndpoint));return D};
etf=function(x,L){var D=x.toggledStyle||x.style,S;switch((S=L?D:x.style)==null?void 0:S.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"}}};
_.hL=function(){return _.I(function(x){return x.nextAddress==1?x.yield(_.yY().resolve(_.d4),2):x.return(_.yY().resolve(Rth)())})};
_.HX=function(){return _.yY().resolve(Rth)()};
_.uk=function(){return Bd(function(){return{lottieEl:void 0}})};
G70=function(x,L){return x.startsWith(L.uniqueId)};
C30=function(x){var L,D;_.I(function(S){if(S.nextAddress==1)return S.yield(_.hL(),2);L=S.yieldResult;if((D=L)==null||!D.addEventListener)return g4(),S.return();L.addEventListener("onCueRangeEnter",x);_.Y2(S)})};
lup=function(x){var L,D;_.I(function(S){if(S.nextAddress==1)return S.yield(_.hL(),2);L=S.yieldResult;if((D=L)==null||!D.removeEventListener)return g4(),S.return();L.removeEventListener("onCueRangeEnter",x);_.Y2(S)})};
Uvf=function(x){var L,D,S,Q,J;_.I(function(Z){if(Z.nextAddress==1)return Z.yield(_.hL(),2);L=Z.yieldResult;if((D=L)==null||!D.addCueRange)return g4(),Z.return();S=_.O(x.timings);for(Q=S.next();!Q.done;Q=S.next())J=Q.value,L.addCueRange(x.uniqueId+"-"+J,J/1E3,(J+100)/1E3);_.Y2(Z)})};
we0=function(x){var L,D,S,Q,J;_.I(function(Z){if(Z.nextAddress==1)return Z.yield(_.hL(),2);L=Z.yieldResult;if((D=L)==null||!D.removeCueRange)return g4(),Z.return();S=_.O(x.timings);for(Q=S.next();!Q.done;Q=S.next())J=Q.value,L.removeCueRange(x.uniqueId+"-"+J);_.Y2(Z)})};
Bo3=function(){var x,L,D;return _.I(function(S){if(S.nextAddress==1)return S.yield(_.hL(),2);x=S.yieldResult;if((L=x)==null||!L.getPlayerState)return g4(),S.return();D=x.getPlayerState();return S.return(D===2)})};
g4=function(){_.qy(new _.RZ("Smartimation player does not exist or is corrupted"))};
Waw=function(){try{var x;return(x=window.CSS)!=null&&x.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(L){return _.qy(new _.RZ("Smartimation CSS.supports threw an error")),!1}};
fuf=function(x,L,D,S,Q){var J=x.playlistId?qpn:AtO;L=L();D=D();Q=!!x.videoId&&Q()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.TD(L))return $vp({data:x,actionType:J,disabled:Q},D);if(x.videoId&&S())return rt0({data:x,actionType:J,disabled:Q});switch(L){case "TRANSFER_STATE_UNKNOWN":return rt0({data:x,actionType:J,disabled:Q});case "TRANSFER_STATE_FAILED":return x.videoId?Non({data:x,actionType:J,disabled:Q}):iNs({data:x,actionType:J,disabled:Q});case "TRANSFER_STATE_COMPLETE":return iNs({data:x,
actionType:J,disabled:Q});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return $vp({data:x,actionType:J,disabled:Q},D);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return x.videoId?Non({data:x,actionType:J,disabled:Q}):rt0({data:x,actionType:J,disabled:Q});default:return rt0({data:x,actionType:J,disabled:Q})}};
oCf=function(x,L){var D=x.onTapCommand,S=_.fI(D);if(x.videoId&&_.g(S,_.ke))return _.g(S,_.ke).action=L,D;x.playlistId&&_.g(S,_.pX)&&(_.g(S,_.pX).action=L);return D};
rt0=function(x){var L=x.data;var D=x.actionType;x=x.disabled;return{text:au0,iconType:"OFFLINE_DOWNLOAD",onTap:oCf(L,D.ACTION_ADD),disabled:x}};
$vp=function(x,L){var D=x.data;var S=x.actionType;x=x.disabled;var Q="OFFLINE_DOWNLOAD";L>=0&&L<=.1?Q="OFFLINE_DOWNLOADING_ZERO":L>.1&&L<=.3?Q="OFFLINE_DOWNLOADING_TWENTY":L>.3&&L<=.5?Q="OFFLINE_DOWNLOADING_FORTY":L>.5&&L<=.7?Q="OFFLINE_DOWNLOADING_SIXTY":L>.7&&L<1?Q="OFFLINE_DOWNLOADING_EIGHTY":L===1&&(Q="OFFLINE_PIN");return{text:zts,iconType:Q,onTap:oCf(D,S.ACTION_REMOVE_WITH_PROMPT),disabled:x}};
iNs=function(x){var L=x.data;var D=x.actionType;x=x.disabled;return{text:Xeb,iconType:"OFFLINE_PIN",onTap:oCf(L,D.ACTION_REMOVE_WITH_PROMPT),disabled:x}};
Non=function(x){var L=x.data;var D=x.actionType;x=x.disabled;return{text:ct4,iconType:"OFFLINE_DOWNLOAD",onTap:oCf(L,D.ACTION_RETRY),disabled:x}};
_.mF=function(x,L){var D=NXh();return _.m5(function(){D();return oMh(x,[_.WB(L)||""])},{debugName:"LUZslf"},"Z105t")};
nCw=function(x){var L=_.mF(_.i6,function(){return x().videoId}),D=_.mF(_.f7,function(){return x().playlistId});
return function(){return x().videoId?L:x().playlistId?D:_.O(_.HB("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
tan=function(x){var L=_.mF(ot,function(){return x().videoId}),D=_.mF(_.T6p,function(){return x().playlistId});
return function(){return x().videoId?L:x().playlistId?D:_.O(_.HB(0,void 0,"K4tgOc")).next().value}};
x50=function(x){var L=_.mF(_.W$b,function(){return x().videoId});
return function(){return x().videoId?L:_.O(_.HB(!1,void 0,"Oaxwcf")).next().value}};
LMw=function(x){var L=_.mF(Gy3,function(){return x().videoId});
return function(){return x().videoId?L:_.O(_.HB("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
D50=function(){return{}};
_.OAb=function(x,L,D){return{submitForm:function(){var S,Q,J,Z;return _.I(function(y){if(y.nextAddress==1){S=SzO(x());if(!S)return y.return();if(S.onSubmit)return Q3p(L),S.onSubmit(),Q3p(D),y.return();if(!S.submitConfig||!S.formData)return y.jumpTo(0);S.disableDuringSubmission&&JXc(x(),!0);Q3p(L);return y.yield(KMw(S.submitConfig,S.formData()),3)}Q=y.yieldResult;Q3p(D);if(((J=Q)==null?0:J.submitResult)&&((Z=S)==null?0:Z.onSubmitResult))S.onSubmitResult(Q.submitResult);S.disableDuringSubmission&&JXc(x(),
!1);return y.return()})},
isValid:function(){var S=SzO(x());if(S){var Q;return!((Q=S.isValid)==null||!Q.call(S))}return!0},
isSubmitting:function(){var S,Q;return!!((S=SzO(x()))==null?0:(Q=S.isSubmitting)==null?0:Q.call(S))}}};
_.bk=function(){if(!ZAh){var x=_.O(_.HB(new Map,void 0,"Y1XnBc"));ZAh=x.next().value;yXO=x.next().value}return ZAh};
_.IWp=function(x){yXO(new Map(x))};
SzO=function(x){if(x)return _.bk()().get(x)};
KMw=function(x,L){var D;return _.I(function(S){return S.nextAddress==1?L?(D=_.yY().resolve(_.ZN(Ek3)))&&x.submitId?S.yield(D.submitForm(x.submitId,L,MAO,x.params,x.clickTrackingParams),2):S.return(Promise.reject(Error("Gh"))):S.return(Promise.reject(Error("Fh"))):S.return(S.yieldResult)})};
JXc=function(x,L){if(x){var D=_.bk();D().set(x,Object.assign({},D().get(x),{isSubmitting:function(){return L}}));
_.IWp(D())}};
Q3p=function(x){if(x){var L=_.yY().resolve(_.E2);L&&(x=_.fI(x()))&&L.resolveCommand(x)}};
PTs=function(x,L){L=L===void 0?{shouldPersist:!0}:L;return{useUpdatableData:function(D,S){var Q=[],J=_.O(_.mU(function(){var P=D();if(S!=null&&S.length&&Q){var v=Q.length>0;for(var V=!1,h=0;h<S.length;h++){var H=S[h]();v&&H!==Q[h]&&(V=!0);Q[h]=H}v=V}else v=!1;if(v)_.Ye.remove(E());else if(v=_.Ye.get(E()))return v;return P})),Z=J.next().value,y=J.next().value,E=_.m5(function(){return x(D())},void 0,"mX326");
_.Us(function(){if(E()!=null){d5w.set(E(),[Z,y]);var P=E();_.wH(function(){d5w.delete(P)})}},"MgKPjb");
return[Z,function(P){y(P);L.shouldPersist&&_.Ye.set(E(),P)}]},
getData:function(D){var S;return(S=d5w.get(x(D)))==null?void 0:S[0]()},
updateData:function(D,S){D=x(D);var Q=d5w.get(D);if(!Q)return!1;var J=_.O(Q);Q=J.next().value;J=J.next().value;S=S(Q());J(S);L.shouldPersist&&_.Ye.set(D,S);return!0}}};
j30=function(x){var L=_.O(_.HB(!0,void 0,"bKtO6d")),D=L.next().value;L.next();return function(){var S=pm(x.children());return _.M(_.d,{cond:D,then:function(){return S},
else:x.fallback})}()};
_.Fj=function(x){var L=vkw(x),D=L.data,S=L.mapping,Q=L.wrapper;L=L.pendingFallback;var J=function(){return VAc(_.WB(D))},Z=function(){var y=J(),E=[];
y=_.O(y);for(var P=y.next();!P.done;P=y.next()){var v=void 0;P=P.value;var V=void 0;for(v in P)if(!(!P).hasOwnProperty(v)){V=v;break}(v=V)&&E.push(v)}return E};
return x.data?_.M(j30,{fallback:L},function(){return _.M(_.R1,{each:Z},function(y,E){var P=Q?function(V){return Q(function(){return S[y](V,E)},v,E)}:function(V){return S[y](V,E)};
P.debugName||(P.debugName=String(y));if(!S[String(y)])return document.createComment("");P.componentType!==Ru&&hmc(String(y));var v=HA3(J,y,E);return _.M(P,{data:v})})}):_.M(_.I1,null)};
vkw=function(x){var L=x.targetId||uxn(x.children);if(!x.data||!L||_.u("mweb_new_replaceables_killswitch"))return Object.assign({},x,{mapping:x.children,wrapper:void 0});var D="stamper-"+gkO++,S=function(){var y;return(y=typeof x.targetId==="function"?x.targetId(D):x.targetId)!=null?y:D};
L=_.O(kt0(function(){var y=VAc(x.data());y.targetId=S;return y})).next().value;
var Q=Object.assign({},(_.yY().resolve(_.ZN(pbO))||{}).replaceableMapping,x.children);if(x.replacementWrapper){var J=Q.notificationTextRenderer,Z=Q.notificationMultiActionRenderer;J&&(Q.notificationTextRenderer=function(y,E){return x.replacementWrapper(J({data:y.data},E))});
Z&&(Q.notificationMultiActionRenderer=function(y,E){return x.replacementWrapper(Z({data:y.data},E))})}return Object.assign({},x,{data:L,
mapping:Q,wrapper:function(y,E,P){return Npb({targetId:S,stamperIndex:P},y)}})};
HA3=function(x,L,D){var S;return _.m5(function(){var Q=x()[D()];if(Q)S=Q[L];else return _.qy(new _.RZ("Stamper failed to find "+String(L)+" at index "+D()+" of data array of length "+(x().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),S;return Q[L]},void 0,"wgRPHd")};
uxn=function(x){x=_.O(Object.keys(x));for(var L=x.next();!L.done;L=x.next())if(L=L.value,m5b.includes(L)||bAn.includes(L)||Yzf.includes(L))return!0;return!1};
VAc=function(x){return x?Array.isArray(x)?x:[x]:[]};
hmc=function(x){if(_.u("web_enable_renderer_logger")){var L;(L=_.yY().resolve(_.ZN(FMw)))!=null&&L.loggingEnabled&&!L.ids.has(x)&&L.ids.add(x)}};
s33=function(){var x,L;return(L=(x=_.yY().resolve(_.ZN(_.Dt)))==null?void 0:x())!=null?L:!1};
emc=function(x,L){x=x===void 0?Tas:x;switch(L.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},x,{isOpen:L.payload});default:return x}};
Gtf=function(x,L){x=x===void 0?Rmb:x;switch(L.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},x,{isAllowed:L.payload});default:return x}};
lW3=function(x,L){x=x===void 0?CTw:x;switch(L.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},x,{errorMessage:L.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},x,{title:L.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},x,{privacy:L.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},x,{isDisabled:L.payload});default:return x}};
wbc=function(x,L){x=x===void 0?U54:x;switch(L.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},x,{isOpen:L.payload});default:return x}};
WM4=function(x,L){x=x===void 0?Baf:x;switch(L.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},x,{isFullscreen:L.payload});case "SET_NAVIGATION_BUTTON":var D=L.payload.targetId,S=Object.assign({},x.navigationButtons);S[D]=L.payload.button;return Object.assign({},x,{navigationButtons:S});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},x,{topPanelId:L.payload});case "SET_SECONDARY_HEADER":return D=L.payload.panelId,S=Object.assign({},x.secondaryHeader),S[D]=L.payload.secondaryHeader,
Object.assign({},x,{secondaryHeader:S});default:return x}};
rXn=function(){return k7(Object.assign({},{voiceSearch:Zfw,engagementPanel:WM4,bottomSheet:emc,cinematicSetting:Gtf,shorts:vsb,drawerLayout:wbc,createPlaylist:lW3,locationCollection:qzh,reportChannel:AXs,reportForm:$50},VQ4))};
iAw=function(x,L){_.WW.addLowPriorityJob(function(){var D,S,Q;return _.I(function(J){switch(J.nextAddress){case 1:return _.HH(J,2),J.yield(p8w(),4);case 4:return J.yield(fetch(x),5);case 5:return D=J.yieldResult,J.yield(D.json(),6);case 6:S=J.yieldResult;lc.set(x,S);requestAnimationFrame(function(){L(S)});
_.nH(J,0);break;case 2:Q=_.mW(J),_.qy(Q),_.Y2(J)}})})};
fWO=function(x){var L={animationConfig:{},listeners:{}},D=function(){x(!0)};
L.listeners.data_failed=D;L.listeners.error=D;L.listeners.data_ready=function(){x(!1)};
return L};
zm0=function(x){var L=x.model;var D=x.subscribed;var S=x.isOverlay;var Q=x.element;var J=x.commandController;var Z=x.notificationState;if(D){var y,E;var P=(L==null?void 0:(y=L.buttonStyle)==null?void 0:y.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:L==null?void 0:(E=L.unsubscribeButtonContent)==null?void 0:E.buttonText}else{var v;P=L==null?void 0:(v=L.subscribeButtonContent)==null?void 0:v.buttonText}a:{var V;switch(L==null?void 0:(V=L.buttonStyle)==
null?void 0:V.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":y="S";break a;default:y="M"}}a:if(S)S="overlay";else switch(L.backgroundStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_FULLSCREEN_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY_RED":S="overlay";break a;default:S="mono"}a:if(D)var h="tonal";else switch((h=L.buttonStyle)==
null?void 0:h.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":h="tonal";break a;default:h="filled"}return{style:S,type:h,state:L.disableSubscribeButton?"disabled":"active",size:y,focused:x.focused,toggled:D,accessibilityLabel:okf(L,D,Z),buttonText:P,iconPosition:L.disableNotificationBell?"none":"leading-trailing",onTap:aW0(L,D,Q,J),disableTextEllipsis:!!x.disableTextEllipsis}};
aW0=function(x,L,D,S){return function(Q){if(L){var J;var Z=x.disableNotificationBell?_.fI(x==null?void 0:(J=x.unsubscribeButtonContent)==null?void 0:J.onTapCommand):_.fI(x==null?void 0:x.onShowSubscriptionOptions)}else{var y;Z=_.fI(x==null?void 0:(y=x.subscribeButtonContent)==null?void 0:y.onTapCommand)}Z&&TQ(Z,{form:{element:D==null?void 0:D.value},commandController:S});Q.stopPropagation()}};
okf=function(x,L,D){if(L){if(x==null?0:x.disableNotificationBell){var S;return x==null?void 0:(S=x.unsubscribeButtonContent)==null?void 0:S.accessibilityText}switch(D){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var Q;return x==null?void 0:(Q=x.bellAccessibilityData)==null?void 0:Q.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var J;return x==null?void 0:(J=x.bellAccessibilityData)==null?void 0:J.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var Z;return x==null?void 0:(Z=
x.bellAccessibilityData)==null?void 0:Z.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var y;return x==null?void 0:(y=x.bellAccessibilityData)==null?void 0:y.disabledLabel;default:var E;return x==null?void 0:(E=x.unsubscribeButtonContent)==null?void 0:E.accessibilityText}}else{var P;return x==null?void 0:(P=x.subscribeButtonContent)==null?void 0:P.accessibilityText}};
Xbh=function(x){if(x){switch(x){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":x="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":x="NOTIFICATIONS_OFF";break;default:x="NOTIFICATIONS_NONE"}return x}};
cXn=function(x,L,D){D.subscribed!==L&&((D=D.key)&&_.Ok(_.TR("subscriptionStateEntity",D,{key:D,subscribed:L})),x.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:L})),L||_.dg(x,"yt-unsubscribe-action"))};
tAn=function(x){x=_.g(_.fI(x),_.e2);var L,D,S,Q;return(Q=_.g(x==null?void 0:(L=x.panelLoadingStrategy)==null?void 0:(D=L.inlineContent)==null?void 0:(S=D.sheetViewModel)==null?void 0:S.content,nk0))==null?void 0:Q.listItems};
xQw=function(x,L){if(x.onShowSubscriptionOptions&&L&&(x=tAn(x.onShowSubscriptionOptions),x!=null&&x.length)){var D=Xbh(L);x.forEach(function(S){S=_.g(S,_.RB);var Q,J,Z,y,E=S==null?void 0:(Q=S.leadingImage)==null?void 0:(J=Q.sources)==null?void 0:(Z=J[0])==null?void 0:(y=Z.clientResource)==null?void 0:y.imageName;S&&E&&(S.isSelected=E===D)})}};
Lpb=function(x,L,D,S){L&&D?x.style.width=D+"px":!L&&S&&(x.style.width=S+"px")};
DQO=function(x,L,D){var S;(S=x.lottieEl)==null||S.goToAndPlay(0);var Q;(Q=L.lottieEl)==null||Q.goToAndPlay(0);_.GR(_.WW,function(){var J;(J=D.lottieEl)==null||J.goToAndPlay(0)},300)};
SC0=function(x){return!(x==null||!x.iconName||(x==null?0:x.title))};
Q7f=function(x,L,D,S){D&&_.WW.cancelJob(D);D=_.WW.addLowPriorityJob(function(){S(void 0)},5E3);
S(D);L&&x!==(L.likeStatus==="LIKE")&&L.key&&_.Ok(_.TR("likeStatusEntity",L.key,{key:L.key,likeStatus:x?"LIKE":"INDIFFERENT",hadUserInteraction:x}))};
_.Jgw=function(x,L){return _.u6(x.entities,"accountLinkStatusEntity",L)};
KpG=function(x,L){return _.u6(x.entities,"hatsSurveyEntity",L)};
OjG=function(x,L){return _.u6(x.entities,"hatsSurveyStateEntity",L)};
Zjh=function(x,L){return _.u6(x.entities,"quantityIncrementerEntity",L)};
ygw=function(x){switch(x){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_PREMIUM":return 6;case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":return 2;case "BADGE_STYLE_TYPE_YPC":return 9;case "BADGE_STYLE_TYPE_FEATURED":return 5;case "BADGE_STYLE_TYPE_THUMBNAIL_OVERLAY_SPECIAL":return 19;case "BADGE_STYLE_TYPE_BLUE":return 12;default:return 0}};
IT3=function(x){switch(x){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}};
EUc=function(x){switch(x){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"}};
_.dQ4=function(x){var L=_.dE("web_generic_client_event_wait_period ",0);L||(L=3E5);var D=Mxc.get(x);!_.u("enable_web_client_experiment_event_timeout_killswitch")&&D&&(0,_.y5)()-D<L||(Mxc.set(x,(0,_.y5)()),_.Uh("genericClientExperimentEvent",{eventType:x}))};
_.Ppp=function(x,L){var D,S,Q,J;a:{var Z=x.style;if(Z===void 0)Z=17;else switch(Z){case "LIVE":Z=18;break a;default:Z=17}}return{type:Z,text:L?N6w({seconds:L}):_.SR(x.text),accessibilityText:(D=x.text)==null?void 0:(S=D.accessibility)==null?void 0:(Q=S.accessibilityData)==null?void 0:Q.label,icon:(J=x.icon)==null?void 0:J.iconType}};
j7b=function(x){switch(x){case "small":return"ytCollectionsStackCollectionStack1Small";case "medium":return"ytCollectionsStackCollectionStack1Medium";case "large":return"ytCollectionsStackCollectionStack1Large";default:return""}};
vUp=function(x){if(!x)return"";var L,D=(L=_.yY().resolve(_.ZN(_.Dt)))==null?void 0:L(),S;if(!D&&((S=x.vibrantColorPalette)==null?0:S.iconInactiveColor))return cq(x.vibrantColorPalette.iconInactiveColor,"1");var Q;return D&&((Q=x.darkColorPalette)==null?0:Q.iconInactiveColor)?cq(x.darkColorPalette.iconInactiveColor,"1"):x.color?cq(x.color,"1"):x.sampledThumbnailColor?(x=x.sampledThumbnailColor,"rgba("+x.red+","+x.green+","+x.blue+");"):""};
_.CX=function(x,L){if(!x.includes("DATE_PLACEHOLDER"))return x;var D=new Date(0);D.setUTCSeconds(L);return x.replace("DATE_PLACEHOLDER",VxN(D))};
hPb=function(x,L,D){return function(S){var Q=x.command;Q&&(TQ(Q,{form:{element:D}}),L([Q],S))}};
ukh=function(x,L,D,S,Q){return function(J){var Z=HjG(x,L);Z&&TQ(Z,{form:{element:D},commandController:S});Q&&J.stopPropagation()}};
HjG=function(x,L){if(x.signInEndpoint&&!_.u("web_subscribe_sign_in_endpoint_killswitch"))return x.signInEndpoint;if(L){if(x.serviceEndpoints)return x.serviceEndpoints[1];if(x.onUnsubscribeEndpoints)return x.onUnsubscribeEndpoints[0]}else{if(x.serviceEndpoints)return x.serviceEndpoints[0];if(x.onSubscribeEndpoints)return x.onSubscribeEndpoints[0]}};
gU0=function(x,L){var D,S,Q,J;L=L&&((D=x.unsubscribeAccessibility)==null?void 0:(S=D.accessibilityData)==null?void 0:S.label)||((Q=x.subscribeAccessibility)==null?void 0:(J=Q.accessibilityData)==null?void 0:J.label);return x.longSubscriberCountText?[L,_.SR(x.longSubscriberCountText)].filter(function(Z){return Z}).join(" "):L};
lk=function(x,L){return L||(x==null?0:x.isChannelDelegate)?"disabled":"active"};
kxh=function(x,L){var D;switch((D=x.style)==null?void 0:D.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:lk(x)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:lk(x)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:lk(x,!0)};case "OVERLAY":return L?{style:"overlay",type:"tonal",state:lk(x)}:{style:"overlay",type:"filled",state:lk(x)};default:return L?{style:"mono",type:"tonal",state:lk(x)}:{style:"mono",type:"filled",state:lk(x)}}};
_.Uv=function(){for(var x=[],L=_.O(_.Ne.apply(0,arguments)),D=L.next();!D.done;D=L.next())if(D=D.value)if(typeof D==="string")x.push(D);else{D=_.O(Object.entries(D));for(var S=D.next();!S.done;S=D.next()){var Q=_.O(S.value);S=Q.next().value;(Q=Q.next().value)&&x.push(S)}}return x.join(" ")};
pj4=function(x){switch(x){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
mQc=function(x){switch(x){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
bj0=function(x,L){var D=x.map(function(S){return S.toString()});
return _.kO(function(S){if(D.includes(S.key)){L&&S.preventDefault();var Q;(Q=S.currentTarget)==null||Q.click()}})};
_.YCw=function(){return bj0(["Enter"])};
_.Fph=function(){return bj0(["Enter"," "],!0)};
_.w4=function(x){if(x.composedPath)return x.composedPath();if(!x.__composedPath){for(var L=[],D=x.target;D;)L.push(D),D=D.parentNode;L.push(window);x.__composedPath=L}return x.__composedPath};
_.BX=function(x,L,D){x=_.O(x);for(var S=x.next();!S.done;S=x.next()){S=S.value;if(S===L)break;for(var Q=_.O(D),J=Q.next();!J.done;J=Q.next())if(J=J.value,S.tagName===J||S.role==="button"&&J==="BUTTON")return!0}return!1};
Tup=function(x,L){var D,S=(D=L.observer)!=null?D:_.yY().resolve(Z5);if(x){D=s70(x);var Q=[];L.showOption&&Q.push(S.observe(x,function(){L.visibilityCallback(!0,x)},L.showOption));
L.hideOption&&Q.push(S.observe(x,function(){L.visibilityCallback(!1,x)},L.hideOption));
L.prescanOption&&L.prescanCallback&&Q.push(S.observe(x,function(){L.prescanCallback()},L.prescanOption));
var J;D.visibilityMonitorKeys=((J=D.visibilityMonitorKeys)!=null?J:[]).concat(Q)}};
s70=function(x){var L;return(L=x.polymerController)!=null?L:x};
_.qb=function(x){return!!_.WX(x)};
_.AL=function(x,L,D,S,Q){return function(J){var Z=rlf();_.Us(function(){if(J){ePf(J,x(),Q);var y=RPG(J,x(),L,D,S,Z);_.wH(y)}},"nr377e")}};
ePf=function(x,L,D){var S=Gx3(L),Q=CpO(L);L=S&&lTb;var J=Q&&UQf;(S||Q)&&Tup(x,{visibilityCallback:function(Z){var y=_.yY().resolve(_.E2);Z&&S?y.resolveCommand(S,{form:{element:D?x:void 0},disableClickTracking:!0}):!Z&&Q&&y.resolveCommand(Q,{form:{element:D?x:void 0},disableClickTracking:!0})},
showOption:L,hideOption:J})};
RPG=function(x,L,D,S,Q,J){var Z=new Map;if(L=_.WX(L)){var y;x=(S==null?void 0:(y=S.onTap)==null?void 0:y.value)||x;D=wjO(L,x,D==null?void 0:D.onTap,Q,J);x.addEventListener("click",D);Z.set("click",D)}return function(){for(var E=_.O(Z),P=E.next();!P.done;P=E.next()){var v=_.O(P.value);P=v.next().value;v=v.next().value;x.removeEventListener(P,v)}}};
_.WX=function(x){var L;return(x=(L=_.g(x,Bub))==null?void 0:L.onTap)&&_.fI(x)};
Gx3=function(x){var L;return(x=(L=_.g(x,Bub))==null?void 0:L.onVisible)&&_.fI(x)};
CpO=function(x){var L;return(x=(L=_.g(x,Bub))==null?void 0:L.onHidden)&&_.fI(x)};
wjO=function(x,L,D,S,Q){var J=function(y){_.yY().resolve(_.E2).resolveCommand(x,y)},Z=function(y){S&&_.BX(_.w4(y),L,S)||J(y.target?{form:{element:y.target,
sourceData:x,mutationContext:Q}}:void 0)};
D&&(Z=function(y){D(y,J)});
return Z};
Wps=function(x){switch(x){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}};
qC0=function(x){var L=x.numAvatarsInCluster;switch(x.clusterSize){case "small":return L===2?22:18;case "40":return L===2?24:22;default:return L===2?24:20}};
Agn=function(x,L){return function(D){var S=Object.keys(L);_.Us(function(){if(x!=null&&x()){for(var Q=_.O(S),J=Q.next();!J.done;J=Q.next())J=J.value,D.addEventListener(J,L[J]);_.wH(function(){for(var Z=_.O(S),y=Z.next();!y.done;y=Z.next())y=y.value,D.removeEventListener(y,L[y])})}},"bXZGfe")}};
$Qs=function(x){switch(qC0(x)){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""}};
rg0=function(x){switch(x){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""}};
Nun=function(x){switch(qC0(x)){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""}};
ijn=function(x){switch(x){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""}};
fT3=function(x){switch(x){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}};
oUb=function(x){return x==="medium"||x==="48"||x==="large"||x==="extra-large"||x==="extra-extra-large"||x==="giant"};
aTf=function(x){return!!((x==null?0:x.includes(3))||(x==null?0:x.includes(5)))};
Xjs=function(x){var L=x.data;return{size:zP0(L.avatarImageSize),type:L.avatarBorderStyle==="AVATAR_BORDER_STYLE_SQUARE"?2:0,onTap:x.onTap,decorations:x.decorations||[],badgeText:x.badgeText,accessibilityText:x.accessibilityText,avatarButtonCustomClassName:x.avatarButtonCustomClassName,clusterLayoutConfig:x.clusterLayoutConfig}};
zP0=function(x){switch(x){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"}};
cgh=function(x){switch(x){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}};
nUw=function(x){switch(x){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""}};
txb=function(x){var L=x.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",D,S=x.avatars&&x.avatars.length>0?(D=_.g(x.avatars[0],_.$e))==null?void 0:D.avatarImageSize:"AVATAR_SIZE_UNKNOWN";D=cgh(S)||0;if(L){var Q,J=(Q=x.avatarClusterSize)!=null?Q:"AVATAR_SIZE_M";L=cgh(J);var Z,y,E=Math.min((y=(Z=x.avatars)==null?void 0:Z.length)!=null?y:0,4),P;return{avatars:((P=x.avatars)==null?void 0:P.slice(0,4))||[],avatarSizeInPx:D,avatarStackStyle:{width:L+"px",height:L+"px",position:"relative"},avatarStyle:function(V){var h=
qC0({clusterSize:zP0(J),numAvatarsInCluster:E,avatarIndex:V});var H=cgh(J);E===3&&V===2?(H=(H-h)/2,H=(_.$6("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*H):H=void 0;return{position:"absolute",top:E===2&&V===1||E===3&&V===2||E===4&&V>=2?"0":void 0,bottom:E===2&&V===0||E>2&&V<2?"0":void 0,left:E===2&&V===1||E>2&&(V===1||V===3)?"0":void 0,right:E<=3&&V===0||E===4&&(V===0||V===2)?"0":void 0,transform:H?"translateX("+H+"px)":void 0,width:h+"px",height:h+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(V){return{clusterSize:zP0(x.avatarClusterSize),numAvatarsInCluster:E,avatarIndex:V}},
avatarButtonCustomClassName:void 0}}var v;return{avatars:((v=x.avatars)==null?void 0:v.slice())||[],avatarSizeInPx:D,avatarStackClass:"yt-avatar-stack-view-model__avatars",avatarClass:nUw(S),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model__avatar-button"}};
xEw=function(x,L,D){return function(){TQ(x,{form:{element:L},commandController:D})}};
LVh=function(x){switch(x){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
DEs=function(x){switch(x){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"}};
Sep=function(x){if("accessibilityText"in x)return x.accessibilityText||"";if("title"in x){var L,D,S;return((L=x.title)==null?void 0:(D=L.accessibility)==null?void 0:(S=D.accessibilityData)==null?void 0:S.label)||""}if("accessibility"in x){var Q,J;return((Q=x.accessibility)==null?void 0:(J=Q.accessibilityData)==null?void 0:J.label)||""}return""};
QA0=function(x){return"inlinePlayerData"in x};
r4=function(x){return new JVw(x)};
KVb=function(x){return function(L){x&&(x.thumbnailElRef=L.thumbnailElRef,x.thumbnail=L.thumbnail,x.thumbnailOverlays=L.thumbnailOverlays,x.thumbnailSize=L.thumbnailSize)}};
Obp=function(x){switch(x){case 1:return"ytThumbnailViewModelAspectRatio2By3";case 4:return"ytThumbnailViewModelShortsAspectRatio9By16";case 3:return"ytThumbnailViewModelAspectRatio1By1";default:return"ytThumbnailViewModelAspectRatio16By9"}};
yV3=function(x){var L=_.O(_.HB(!1,void 0,"RIOonf")),D=L.next().value,S=L.next().value;_.wO(function(){var Q=x==null?void 0:x();if(Q){var J=_.yY().resolve(_.ZN(Zbh));if(J){var Z={triggeringElement:Q,onDwellTriggeredFn:function(){S(!0)},
onDwellEndFn:function(){S(!1)}};
J.registerElement(Z);_.wH(function(){_.Nb(J,Z)})}}});
return D};
Iew=function(x,L,D){D?D(L):_.Xf(L,x.target?{form:{element:x.target}}:void 0)};
_.ik=function(x,L,D,S){return function(Q){_.Us(function(){function J(v){v=v.composedPath();v=_.O(v);for(var V=v.next();!V.done;V=v.next()){V=V.value;if(V===Q)break;if(V.className.indexOf("HostIsClickableAdComponent")>=0||V.tagName==="A".toString()||V.tagName==="BUTTON".toString())return!0}return!1}
var Z=new Map,y,E=(y=x())==null?void 0:y.onTap;if(E){y=function(v){J(v)||Iew(v,E,L)};
var P=function(v){J(v)||v.key!=="Enter"||Iew(v,E,L)};
(D==null?0:D())||_.u("enable_web_home_top_landscape_image_layout_level_click")?(Q.addEventListener("tap",y),Z.set("tap",y)):(Q.addEventListener("click",y),Z.set("click",y));if(S==null?0:S())Q.addEventListener("keydown",P),Z.set("keydown",P)}_.wH(function(){for(var v=_.O(Z),V=v.next();!V.done;V=v.next()){var h=_.O(V.value);V=h.next().value;h=h.next().value;Q.removeEventListener(V,h)}})},"D7XqOc")}};
ESb=function(x,L){var D,S=(D=x.interaction)==null?void 0:D.onTap;if(x=_.a6({elementsCommand:S,forceNewState:!0,skipOnClick:!0}))return x.onclick=function(Q){MJf(Q)&&(Q.preventDefault(),S&&Iew(Q,S,L))},z$(x)?x:void 0};
MLN=function(x){switch(x){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
dEf=function(x){switch(x){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"}};
PFh=function(x){switch(x){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"}};
_.jAc=function(x){return _.u("rich_grid_enable_dynamic_offset")&&x?Math.max(Math.round((x-_.dE("rich_grid_dynamic_offset_anchor_width",1300))/100*_.dE("rich_grid_dynamic_offset_offset_per_100",10)),_.dE("rich_grid_dynamic_offset_lower_bound",-60)):0};
vS3=function(x,L){switch(L){case 4:return 16;case 1:return x<528?16:x<1024?32:48;case 2:return(x>=528?16:8)/2;case 3:return(x<528?16:x<1024?32:48)+(x>=528?16:8)/2;default:return 0}};
VLO=function(x){var L=x.originalContainerWidth;var D=x.sizing;var S=x.standardUnit;if(x.isCompactList&&L<528)return 1;switch(D){case "STANDARD":return S;case "COMPACT":return S+1;case "EXTRA_COMPACT":return _.u("web_responsive_extra_compact_2x")?S*2:_.u("web_responsive_current")?S===1?2:S%2===0?S/2*3:S+2:S<4?S*2:Math.ceil(S*3/2);case "MINI":return S>1?S*2:3;default:return S}};
Hbc=function(x){var L=x.containerWidth;var D=x.peek;var S=x.gutter;var Q=x.numItems;x=x.ignoreMaxWidthLimit;L=D?Math.max((L-D-S*Q)/Q,0):Math.max((L-S*(Q-1))/Q,0);return x?L:Math.min(L,hCs)};
_.fX=function(x){var L=x.containerWidth;var D=x.hasPeek;var S=x.sizing;var Q=x.marginSettings;var J=x.isCompactList;var Z=x.enableFullBleedForSingleCol;var y=x.standardUnitMinWidth;S=S||"STANDARD";D=!!D;x=L>=528?16:8;var E=D?L>=528?48:24:0;Q=vS3(L,Q);var P=Math.max(L-Q*2,0);y=_.u("kevlar_disable_min_width_override")?void 0:y;y=Math.min(Math.max(Math.floor((P-E+x)/((y!=null?y:uV0)+_.jAc(L)+x)),1),6);var v=(Z=!!Z&&y===1)||y===1&&S!=="STANDARD";D=D||v?P:Math.min(P,(hCs+x)*y-x);S=VLO({originalContainerWidth:L,
sizing:S,standardUnit:y,isCompactList:J});return{itemWidth:Hbc({containerWidth:D,peek:E,gutter:x,numItems:S,ignoreMaxWidthLimit:v}),gutter:x,maxContainerWidth:D,numItems:S,margin:Z?0:Q,contentMargin:vS3(L,1),typographyBump:Hbc({containerWidth:D,peek:E,gutter:x,numItems:y,ignoreMaxWidthLimit:v})>400&&!(J&&L<528),standardUnit:y}};
gSw=function(x){switch(x){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.kch=function(x){if(x){var L;if((L=x.responsiveContainerConfiguration)==null?0:L.responsiveSize)return gSw(x.responsiveContainerConfiguration.responsiveSize);if(x.layoutSizing)switch(x.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"}}};
pmh=function(x){if(x.fullbleed)return 1;switch(x.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
FV0=function(x,L,D,S,Q,J,Z,y){a:if(x===4&&S==="LOCKUP_CONTENT_TYPE_SOURCE")var E=1;else switch(x){case 3:E=1;break a;default:E=0}a:switch(x){case 4:J=!!(J&&J<100);break a;default:J=!1}a:switch(x){case 3:case 4:var P=S==="LOCKUP_CONTENT_TYPE_CHANNEL"||S==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:P=!1}a:switch(x){case 5:var v=!0;break a;case 4:v=!1;break a;default:v=!1}return{isOverlay:v,isCard:mEw(S,Z),sizing:L!=null?L:"STANDARD",typographyBump:D!=null?D:!1,isTiny:J,isCentered:P,isCollection:bb4(S),
arrangement:E,addMarginForFullbleed:x===1&&S!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:x===1&&S==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:YeG(S,Q,y),disableRounding:x===5||mEw(S,Z)||x===1&&S==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:bb4(S)?2:0,useLegacyTypography:!(y==null||!y.useLegacyTypography),useRichGridLegacyTypography:!(y==null||!y.useRichGridLegacyTypography)&&!_.u("web_enable_typography_bump"),compactMetadata:E===0&&S==="LOCKUP_CONTENT_TYPE_VIDEO",onFocusEffect:y==null?void 0:y.onFocusEffect}};
bb4=function(x){switch(x){case "LOCKUP_CONTENT_TYPE_PLAYLIST":case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":return!0;default:return!1}};
mEw=function(x,L){if(L&&x==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(x){case "LOCKUP_CONTENT_TYPE_SOURCE":case "LOCKUP_CONTENT_TYPE_AI_CARD":return!0;default:return!1}};
YeG=function(x,L,D){if(L&&(D==null||!D.alwaysRespectPodcastShowAspectRatio||x!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(x){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}};
sAp=function(x){switch(x){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"}};
Tnf=function(x){switch(x){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 9;case "BADGE_STATUS_NEW":return 12;case "BADGE_PREMIUM":return 6;case "BADGE_PROMOTED":return 3;case "BADGE_PROMOTED_INVERTED":return 4;default:return 0}};
eC0=function(x){switch(x){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}};
_.oB=function(x){if(x){var L;return((L=_.yY().resolve(_.ZN(_.Dt)))==null?0:L())?x.darkThemeImage:x.image}};
CF4=function(x,L,D,S,Q,J){if(Q&&J&&L==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:Q,height:J};if(!D)return{};Q=D.size;D=D.allowFullWidth;if(L==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&D)return{fullWidth:!0};if(Q===void 0)return{};switch(x){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:Q,height:Q};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:Q,height:1/RC0*Q};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:Q*
Gcn,height:Q};default:return(S==null?0:S.height)&&(S==null?0:S.width)?S.width/S.height>1?{maxWidth:Q*Gcn}:{maxWidth:Q}:{maxWidth:Q}}};
lec=function(x){var L;return x&&((L=_.oB(x.themedImage))!=null?L:x.image)};
UEw=function(x){var L;return x==null?void 0:(L=x.sources)==null?void 0:L[0]};
wm0=function(x){switch(x){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"}};
_.Bnf=function(x){if(x)return"content-id-"+x};
WV0=function(x){switch(x.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"}}};
qef=function(x){var L=_.aB.currentPageSubTypeSelector(_.KI().getState())||"";return x?x+L:""};
AVN=function(x){switch(x){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
rVw=function(x){var L=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],D=_.O(_.HB(void 0,void 0,"JrqNsb")),S=D.next().value,Q=D.next().value,J=_.O(_.HB(void 0,void 0,"rWytse"));D=J.next().value;var Z=J.next().value;J=_.O(_.HB(void 0,void 0,"DHRqxe"));var y=J.next().value,E=J.next().value;return{touchFeedbackEvents:{pointerUpEvent:S,pointerDownEvent:D,pointerLeaveEvent:y},touchFeedbackOnPointerUp:_.kO(function(P){$E3(_.w4(P),L)||(Q(P),Z(void 0),E(void 0))}),
touchFeedbackOnPointerDown:_.kO(function(P){x==null||x(P);$E3(_.w4(P),L)||(Z(P),Q(void 0),E(void 0))}),
touchFeedbackOnPointerLeave:_.kO(function(P){$E3(_.w4(P),L)||(E(P),Z(void 0),Q(void 0))})}};
$E3=function(x,L){L=L===void 0?[]:L;L=[].concat(_.lP(L),["BUTTON".toString()]);x=_.O(x);for(var D=x.next();!D.done;D=x.next()){D=D.value;for(var S=_.O(L),Q=S.next();!Q.done;Q=S.next())if(D.tagName===Q.value)return!0}return!1};
NnG=function(x){switch(x){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"}};
ib0=function(x){return x.scrollHeight-x.offsetHeight>1};
feN=function(x,L){var D;return Lu(x,((D=x.content)==null?void 0:D.length)||0,!L)};
zCw=function(x,L,D,S,Q,J){if(!L||oSh){var Z;return Lu(x,((Z=x.content)==null?void 0:Z.length)||0,!0)}L=S.value;if(!D.value||!L||!x.content)return x;D=0;S=x.content.length;Z=0;aeh||(aeh=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var y=aeh;for(Q=Q*J*y;D<=S;)J=Math.floor(D+(S-D)/2),y=Lu(x,J)||x,L.firstChild&&(L.firstChild.textContent=y.content),L.scrollHeight>Q?S=J-1:(Z=J,D=J+1);return Lu(x,Z)};
Xm3=function(x,L){var D,S;return(((D=x.content)==null?void 0:D.length)||0)>(((S=L.content)==null?void 0:S.length)||0)};
cV0=function(x,L,D,S,Q,J){var Z=_.x3("truncated-text-content"),y=_.x3("truncated-text-content"),E=_.x3("button"),P=_.x3("button"),v=_.x3("button"),V=_.yY().resolve(_.QO),h=_.O(_.mU(function(){return feN(x(),Q())})),H=h.next().value,k=h.next().value;
h=_.O(_.mU(function(){return Xm3(x(),H())}));
var T=h.next().value,G=h.next().value,U=null;_.Us(function(){function l(){if(Z.value&&E.value&&v.value){var N=J()?x():zCw(x(),Q(),Z,y,L(),D());k(N);requestAnimationFrame(function(){if(Z.value&&E.value&&v.value){var z=ib0(Z.value)||Xm3(x(),N);G(z);if(!S()){var xf=ib0(Z.value),K3=D(),P4=Z.value,kf=E.value,H4=v.value,p3=V==="rtl";if(P4&&kf){var w0=kf.offsetLeft;p3&&(w0=P4.offsetWidth-kf.offsetWidth-kf.offsetLeft);if(z){z=kf.offsetWidth;kf=P4.offsetWidth;var Rn=xf?kf-z-70:w0-70;K3="linear-gradient(\n      to top, transparent 0%,\n      transparent "+
K3+"rem,\n      #000 "+K3+"rem,\n      #000 100%), linear-gradient(\n      to "+((p3?"left":"right")+",\n      #000 0px,\n      #000 "+Rn+"px,\n      transparent "+(xf?kf-z:Rn+70)+"px)");P4.style.setProperty("-webkit-mask-image",K3);P4.style.setProperty("mask-image",K3)}else P4.style.setProperty("-webkit-mask-image",""),P4.style.setProperty("mask-image","");xf?p3?(H4.style.setProperty("left","0"),H4.style.setProperty("right","unset")):(H4.style.setProperty("left",""),H4.style.setProperty("right",
"0")):p3?(H4.style.setProperty("left","unset"),H4.style.setProperty("right",w0+"px")):(H4.style.setProperty("left",w0+"px"),H4.style.setProperty("right","unset"))}}}})}}
var X,f;(X=U)==null||(f=X.stop)==null||f.call(X);X=new _.zR(l,17);l();U=X},"KjwIxd");
_.wO(function(){k(feN(x(),Q()));G(Xm3(x(),H()));var l=function(){aeh=void 0;var f,N;(f=U)==null||(N=f.fire)==null||N.call(f)};
if(window.ResizeObserver){var X=new ResizeObserver(l);X.observe(Z.value);_.wH(function(){var f,N;(f=U)==null||(N=f.stop)==null||N.call(f);X.disconnect()})}else window.addEventListener("resize",l),_.wH(function(){var f,N;
(f=U)==null||(N=f.stop)==null||N.call(f);window.removeEventListener("resize",l)})});
return{isTruncated:T,displayText:H,contentRef:Z,hiddenRef:y,placeholderTruncationTextRef:E,hiddenTruncationTextRef:P,truncationTextRef:v}};
nS0=function(x){return{content:x!=null?x:""}};
tLs=function(x){return _.fI(x.onTap)||_.WX(x.rendererContext)};
x3N=function(x){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:x.overflowMenuA11yLabel,onTap:function(L){L.preventDefault();L.stopPropagation();if(x.overflowMenuOnTap){var D=_.a6({elementsCommand:x.overflowMenuOnTap,forceNewState:!0});if(D==null?0:D.onclick)D.onclick(L)}}}};
_.Xj=function(x,L,D,S,Q){S=S===void 0?{}:S;if(!Q||Math.random()<5E-4){L=L||null;D=D||null;x=x instanceof Error?x:new _.RZ(x);if(x.args)for(var J=_.O(x.args),Z=J.next();!Z.done;Z=J.next())Z=Z.value,Z instanceof Object&&(S=Object.assign({},Z,S));S.category="H5 Ads Control Flow";L&&(S.slot=L?"slot:  "+L.slotType:"");D&&(S.layout=D?"layout:  "+D.layoutType:"",S.layoutId=D.layoutId);Q&&(S.known_error_aggressively_sampled=!0);x.args=[S];_.qy(x)}};
_.LQf=function(x,L){L=_.Zv(L);_.dg(x,"yt-open-popup-action",[L,x])};
_.nX=function(x,L){_.LQf(x,_.Dv(L))};
S$h=function(x){if(!x)return"";if(D3p[x])return D3p[x];tL||(tL=_.pw("A"));tL.href!==x&&fU(tL,x);var L=tL.pathname;D3p[x]=L.startsWith("/")?L:"/"+L;return D3p[x]};
Q9N=function(){var x=S$h(window.location.href);if(x==="/")return"home";if(x.startsWith("/results"))return"search";if(x.startsWith("/watch"))return"watch";if(x.startsWith("/shorts"))return"shorts";if(x.startsWith("/hashtag"))return"hashtag";if(x.startsWith("/create_channel"))return"create_channel";if(x.startsWith("/@")||x.startsWith("/user/")||x.startsWith("/channel/"))return"channel";if(x.startsWith("/experiments"))return"experiments";if(x.startsWith("/sponsor_channel"))return"sponsorship";if(x.startsWith("/select_site"))return"settings";
if(x.startsWith("/locate"))return"locate";if(x.startsWith("/redeem"))return"redeem";if(x.startsWith("/musicpremium")||x.startsWith("/premium")||x.startsWith("/red"))return"premium";if(x.startsWith("/paid_memberships"))return"paid_memberships";if(x.startsWith("/oops"))return"oops";if(x.startsWith("/clip"))return"clip";var L;return(xc==null?void 0:(L=xc.response)==null?void 0:L.page)==="404"?"404":x.startsWith("/feed/history")?"history":x.startsWith("/feed/library")?"library":x.startsWith("/feed/subscriptions")?
"subscriptions":x.startsWith("/feed/trending")?"trending":x.startsWith("/feed/news_destination")?"news":x.startsWith("/playlist")?"playlist":x.startsWith("/minor_moment")?"minor_moment":x.startsWith("/playable/")||x.match("^/playables/(?!saved).")?"mini_app":x.startsWith("/playables")?"playables":x.startsWith("/create/live/join")?"open_in_app":x.startsWith("/feed/explore")?"explore":"browse"};
_.ZkN=function(){var x=xc==null?void 0:xc.response,L=x==null?void 0:x.endpoint;if(!L)return(x==null?void 0:x.page)==="watch"?"watch":Q9N();var D;x=(D=_.g(L==null?void 0:L.commandMetadata,_.gg))==null?void 0:D.webPageType;D=!1;if(x&&!JPO.includes(x))switch(x){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 S;return((S=_.g(L==null?void 0:L.commandMetadata,_.gg))==null?0:S.url)&&S$h(_.g(L.commandMetadata,_.gg).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var Q;return(L=(Q=_.g(L,_.mt))==null?void 0:Q.browseId)?KQf[L]||"browse":"browse";default:D=!0}if(_.g(L,_.LF)||_.g(L,Ok0))return"sponsorship";Q=S$h(window.location.href);if(Q.startsWith("/experiments"))return"experiments";if(Q.startsWith("/create_channel"))return"create_channel";
if(_.g(L,_.oR)&&Q.startsWith("/shorts"))return"shorts";if(_.g(L,_.oR)&&Q.startsWith("/watch"))return"watch";D&&(L=new _.RZ("Unsupported mWeb page type",{pathname:Q,webPageType:x}),_.BI(L));return"browse"};
Dn=function(x,L,D,S){return x&&L?x!==D||L!==S?(_.Xj(Error("Ph"),void 0,void 0,{"stored-slot":x,"stored-layout":L,"latest-slot":D,"latest-layout":S}),!1):!0:!1};
IUw=function(x,L,D){return x({targetId:L},function(S){return D.slot==="RELOAD_CONTINUATION_SLOT_REPLACE_SELF"?Object.assign({},S,{contents:[D.continuationItems?_.g(D.continuationItems[0],yPb):{}]}):D.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},S,{header:D.continuationItems?D.continuationItems[0]:void 0}):Object.assign({},S,{contents:D.continuationItems?D.continuationItems:[]})})};
EwN=function(x,L,D,S){if(L=L.trackingParams){var Q,J=(Q=D.getScreenLayer)==null?void 0:Q.call(D);D=_.A3(J);Q=_.qu(J);if(D&&Q){var Z=_.CI(L);_.u("combine_ve_grafts")?x.graftServerVe(L,Q,J):_.XI(D,Q,Z);S==null||S(Z)}}};
d3b=function(x){var L;return((L=MBw.get(x))==null?void 0:L.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
vwO=function(x,L){var D={type:L.slotType,controlFlowManagerLayer:Pas.get(L.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};L.slotEntryTrigger&&(D.entryTriggerType=L.slotEntryTrigger.triggerType);L.slotPhysicalPosition!==1&&(D.slotPhysicalPosition=L.slotPhysicalPosition);if(x){D.debugData={slotId:L.slotId};if(x=L.slotEntryTrigger)D.debugData.slotEntryTriggerData=j9n(x);x=L.slotFulfillmentTriggers;D.debugData.fulfillmentTriggerData=[];x=_.O(x);for(var S=x.next();!S.done;S=x.next())D.debugData.fulfillmentTriggerData.push(j9n(S.value));
L=L.slotExpirationTriggers;D.debugData.expirationTriggerData=[];L=_.O(L);for(x=L.next();!x.done;x=L.next())D.debugData.expirationTriggerData.push(j9n(x.value))}return D};
j9n=function(x,L){var D={type:x.triggerType};L!=null&&(D.category=L);x.triggeringSlotId!=null&&(D.triggerSourceData||(D.triggerSourceData={}),D.triggerSourceData.associatedSlotId=x.triggeringSlotId);x.triggeringLayoutId!=null&&(D.triggerSourceData||(D.triggerSourceData={}),D.triggerSourceData.associatedLayoutId=x.triggeringLayoutId);return D};
VBb=function(x,L,D,S){L={opportunityType:L};x&&(S||D)&&(S=_.Bn(S||[],function(Q){return vwO(x,Q)}),L.debugData=Object.assign({},D&&D.length>0?{associatedSlotId:D}:{},S.length>0?{slots:S}:{}));
return L};
hcN=function(x){return S8(x.opportunityAdapterMap).concat(S8(x.triggerAdapterMap)).concat(S8(x.fulfillmentAdapterFactoryMap)).concat(S8(x.slotAdapterFactoryMap)).concat(S8(x.layoutRenderingAdapterFactoryMap))};
S8=function(x){var L=[];x=_.O(x.values());for(var D=x.next();!D.done;D=x.next())D=D.value,D.isAdsControlFlowEventListener&&L.push(D);return L};
Ji=function(x){var L=x.slotId,D=x.slotType,S=x.slotPhysicalPosition;return L===void 0?new Qx("Cannot construct a slot due to the missing id.",{adSlotMetadata:x}):D===void 0?new Qx("Cannot construct a slot due to the missing type.",{adSlotMetadata:x}):S===void 0?new Qx("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:x}):{slotId:L,slotType:D,slotPhysicalPosition:S,managerLayer:"external",adSlotLoggingData:x.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new Hkn}};
uvO=function(x){var L=x.layoutId,D=x.layoutType;return L===void 0?new KF("Cannot construct a layout due to the missing id.",{adLayoutMetadata:x}):D===void 0?new KF("Cannot construct a layout due to the missing type.",{adLayoutMetadata:x}):{layoutId:L,layoutType:D,managerLayer:"external",adLayoutLoggingData:x.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new Hkn,interactionLoggingAdsClientData:{}}};
gw0=function(x){if(x.querySelector("img")){var L=x.querySelector("img");L.addEventListener("error",function(){tyf(L.src).then(function(D){(D=_.r8(D).toString())?L.src=D:L.removeAttribute("src")}).catch(function(){L.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
Zn=function(x,L){if(L&&(k1G(L.viewableCommand)||k1G(L.endOfSessionCommand))){var D=pR3(L==null?void 0:L.viewableCommand);L=pR3(L==null?void 0:L.endOfSessionCommand);if(!O3){var S=_.dE("custom_active_view_tos_timeout_ms");O3=S>0&&S!==36E5?new m3w(bkG(),S):new m3w(bkG())}Y$n(O3,x);FQN(O3,x,D,L)}};
yx=function(x){O3&&Y$n(O3,x)};
bkG=function(){var x=_.$6("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(x==null?void 0:x.length)===2?x[1]:null};
k1G=function(x){x=_.fI(x);return!(x==null||!x.loggingUrls)&&x.loggingUrls.length>0};
pR3=function(x){if(!x)return[];var L=[],D,S;((S=(D=_.fI(x))==null?void 0:D.loggingUrls)!=null?S:[]).forEach(function(Q){Q.baseUrl&&L.push(Q.baseUrl)});
return L};
s9n=function(x){if(_.u("stop_av_measurement_on_detach"))return function(){yx(x)}};
Tjn=function(x){return function(){_.u("stop_av_measurement_on_detach")&&yx(x)}};
ecb=function(x){if(_.u("stop_av_measurement_on_detach"))return function(){yx(x)}};
RcG=function(x){return x.shorts.isDesktopSmallWidth};
_.G1c=function(x){return x.shorts.isShortsActive};
_.Ca0=function(x){return x.shorts.isWatchWhileMode};
_.IS=function(x){return x.shorts.isFullscreen};
_.E3=function(x){return x.shorts.isShortsPipActive};
U33=function(x){var L,D;if(x=(L=_.g(x.reelsAdCardButtoned,lU0))==null?void 0:(D=L.animatedRenderingConfig)==null?void 0:D.easeOutSeconds)return x+"s"};
Bj0=function(x,L,D){return _.I(function(S){return S.return(new Promise(function(Q){var J=new Image;J.onload=function(){Q(new wRO(x,L,D,J.naturalWidth,J.naturalHeight))};
J.src=D.toString()}))})};
WQp=function(x,L){return Math.round(x/1E-5)===Math.round(L/1E-5)};
q$f=function(x,L){return Math.round(x/1E-5)===Math.round(L/1E-5)};
APf=function(x,L){return x.year===L.year&&x.month===L.month&&x.day===L.day};
$3s=function(x,L){return x.year!==L.year?x.year<L.year:x.month!==L.month?x.month<L.month:x.day<L.day};
Nj3=function(x){return x.day===rPh(x.year,x.month)?x.month===11?{year:x.year+1,month:0,day:1}:{year:x.year,month:x.month+1,day:1}:{year:x.year,month:x.month,day:x.day+1}};
ik4=function(){var x=new Date,L={year:x.getFullYear(),month:x.getMonth(),day:x.getDate()};return{start:L,end:{year:x.getFullYear()+2,month:x.getMonth(),day:x.getDate()},selectedDate:Nj3(L)}};
fUN=function(x){return(new LB(2)).format(new Date(x.year,x.month,x.day))};
owb=function(x){return{year:x.getFullYear(),month:x.getMonth(),day:x.getDate()}};
aUO=function(x,L){x=(x+(Number(L.utcOffsetSec)+(new Date(x*1E3)).getTimezoneOffset()*60))*1E3;L=owb(new Date(x));return{date:L,secondsSinceMidnight:Math.floor((x-(new Date(L.year,L.month,L.day)).getTime())/1E3)}};
zcO=function(x,L){L=L.months.findIndex(function(D){return D.year===x.year&&D.month===x.month});
return L>=0?L:void 0};
XRc=function(x){if(!x)return!1;try{if(x.host&&x.host.tagName==="YT-FORMATTED-STRING"&&x.host.id==="contenteditable-textarea"||x.nodeType===Node.ELEMENT_NODE&&x.tagName==="YTD-COMMENTBOX")return!0}catch(L){return!1}return XRc(x.parentNode)};
M1=function(x){return x?!(x.tagName!=="A"||!x.href||!x.classList.contains("yt-simple-endpoint")):!1};
cPN=function(x){return x?x.tagName==="IMG"&&x.classList.contains("emoji"):!1};
nw0=function(x,L,D){if(!x)return null;var S=M1(x);if(S&&D)return L=x.pathname.substring(x.pathname.indexOf("/channel/")+9),document.createTextNode("@"+L);if(S&&!D)return document.createTextNode("");if(cPN(x))return D=x.alt,x=x.dataset.emojiId,!x&&L&&(L=_.dq(L,D))&&L.isCustomEmoji&&(x=L.emojiId),x?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+x+">"):document.createTextNode(D);S=x.cloneNode(!1);for(var Q=0;Q<x.childNodes.length;++Q){var J=nw0(x.childNodes[Q],L,D);J&&S.appendChild(J)}return S};
P2=function(x){return x?M1(x)?x:P2(x.lastChild):null};
tB0=function(x){return x?M1(x)?x:tB0(x.firstChild):null};
x8b=function(x){if(!x)return null;for(var L=x.previousSibling;L;)if(L.nodeType===Node.ELEMENT_NODE&&L.nodeName==="BR")L=L.previousSibling;else if(L.nodeType===Node.TEXT_NODE&&/\s+/.test(L.textContent))L=L.previousSibling;else break;(L=P2(L))?x=L:x=(x=x.parentNode)?P2(x.previousElementSibling):null;return x};
Lh3=function(x){if(!x)return null;for(var L=x.nextSibling;L;)if(L.nodeType===Node.ELEMENT_NODE&&L.nodeName==="BR")L=L.nextSibling;else if(L.nodeType===Node.TEXT_NODE&&/\s+/.test(L.textContent))L=L.nextSibling;else break;return(L=tB0(L))?L:Lh3(x.parentNode)};
D8f=function(x){var L=_.j8(),D=L.JSC$11351_getStartNode();if(!XRc(D.parentNode))return null;L=L.JSC$11351_getStartOffset();if(D.nodeType===Node.TEXT_NODE){var S=_.rk(D,M1);if(S){if(x&&L===0||!x&&L===D.length)return S}else{if(x&&L===D.length)return!D||D.nodeName==="BR"||D.nextElementSibling&&_.v2(D.nextElementSibling,"display")==="block"?null:tB0(D.nextElementSibling);if(!x&&L===0)return D?P2(D.previousElementSibling):null}}if(D.nodeType===Node.ELEMENT_NODE)if(x){if(0<=L&&L<D.childNodes.length)return tB0(D.childNodes[L])}else if(0<
L&&L<=D.childNodes.length)return P2(D.childNodes[L-1]);return null};
SlO=function(x,L,D){if(!x)return null;if(x.nodeType===Node.TEXT_NODE)if(D){var S=x8b(x);if(S&&!/^\s+\S/.test(x.wholeText.substr(0,L)))return S}else if((S=Lh3(x))&&!/\S\s+/.test(x.wholeText.substr(L,x.wholeText.length)))return S;return x.nodeType===Node.ELEMENT_NODE?D?x8b(x.childNodes[L]):Lh3(x.childNodes[L]):SlO(x.parentNode,L,D)};
Qef=function(x){if(x.hasChildNodes())switch(x.tagName){case "DIV":case "A":case "SPAN":var L="";for(x=x.firstChild;x;x=x.nextSibling)L+=Qef(x);return L;default:return""}else switch(x.nodeType){case 3:return x.textContent;default:return""}};
Vx=function(x,L){return x.year===L.year&&x.month===L.month&&x.day===L.day};
hi=function(x,L){return x.year!==L.year?x.year<L.year:x.month!==L.month?x.month<L.month:x.day<L.day};
JZ0=function(x){return{year:x.getFullYear(),month:x.getMonth(),day:x.getDate()}};
Khf=function(x){var L=tP0;L=L===void 0?tP0:L;L(new Date(x.year,x.month,x.day))};
H2=function(x){return JZ0(new Date(Number(x.seconds)*1E3))};
Oon=function(x){return x.year!==void 0&&x.month!==void 0&&x.day!==void 0};
Zoh=function(x){return x.start!==void 0&&x.end!==void 0};
yZh=function(x){return Zoh(x)?x.start:x};
Ilb=function(x){return Zoh(x)?x.end:void 0};
Mwh=function(x,L){for(var D=[],S=new Date(x.start.year,x.start.month);S.getFullYear()<x.end.year||S.getFullYear()===x.end.year&&S.getMonth()<=x.end.month;){var Q=D,J=Q.push,Z=S.getFullYear(),y=S.getMonth(),E=x,P=L,v=void 0,V=[],h=Object.freeze({extraCssClass:"invisible"}),H=new Date(Z,y),k=JZ0(H);H=H.getDay();for(var T=JZ0(new Date);k.month===y;){H!==Eu3&&v||(v=Array.from({length:7}).fill(h),V.push(v));var G={date:{year:Z,month:y,day:k.day},extraCssClass:"",debugClass:""};G.extraCssClass=P(G.date,
k,T,E).trim();v[(H-Eu3+7)%7]=G;k=k.day===rPh(k.year,k.month)?k.month===11?{year:k.year+1,month:0,day:1}:{year:k.year,month:k.month+1,day:1}:{year:k.year,month:k.month,day:k.day+1};H=(H+1)%7}J.call(Q,{weeks:V,monthLabel:uS.SHORTMONTHS[y]+" "+Z,year:Z,month:y,monthLabelExtraCssClass:V[0][2]===h?"shift-down-label":""});S.setMonth(S.getMonth()+1)}return D};
d8G=function(x,L){L=L.months.findIndex(function(D){return D.year===x.year&&D.month===x.month});
return L>=0?L:void 0};
jes=function(x,L){a:{var D=D===void 0?[2,3]:D;D=_.O(D);for(var S=D.next();!S.done;S=D.next()){var Q=new Date;if((new PIn(S.value)).parse(L,Q,{validate:!0})){Q.setHours(0,0,0,0);L=Q;break a}}L=null}if(!L)return{isValid:!1,value:void 0};L=JZ0(L);D=x.end;return hi(L,x.start)||hi(D,L)?{isValid:!1,value:void 0}:{isValid:!0,value:L}};
uM4=function(x){var L=vuO;L=L===void 0?VwO:L;var D=x.columnsToShow||[],S=haw(x.columnDimensions,x.columnsToShow,x.leftFloatingColumns,L);return D.map(function(Q,J){var Z=x.columns[Q];if(Z===void 0)throw Error("Vh");var y=S?S[J]:"";var E=x.getCustomTooltip?x.getCustomTooltip(Q,Z.headerTooltipParagraphs):Z.headerTooltipParagraphs;var P=Hoc(x,Q);return{type:Q,index:J,style:y,classes:P,headerName:Z.headerName||"",headerIcon:Z.headerIcon,headerTooltipParagraphs:E||[],headerTooltipHelpContext:Z.headerTooltipHelpContext,
sortOrders:Z.sortOrders||[],selectionState:Z.isSelectionCheckbox?x.selectionState:void 0}})};
Hoc=function(x,L){var D=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],S=x.columns[L];if(S===void 0)return"";var Q=D.includes("DEFAULTS")&&S.cssClass?[S.cssClass]:[];if(D.includes("SORTING")){S.sortOrders&&S.sortOrders.length&&Q.push("sortable");if(x.sorting&&x.sorting.columnType===L)a:switch(x.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var J="column-sorted";break a;default:J=""}else J="";J&&Q.push(J)}D.includes("FLOATING")&&(L=x.columnsToShow.indexOf(L),x.leftFloatingColumns&&L<x.leftFloatingColumns&&
Q.push("floating-column"),x.leftFloatingColumns&&L===x.leftFloatingColumns-1&&Q.push("last-floating-column"));D.includes("RIGHT_ALIGN")&&S.rightAlignHeader&&Q.push("right-align");return Q.filter(function(Z){return Z}).join(" ")};
haw=function(x,L,D,S){D=D===void 0?0:D;S=S===void 0?VwO:S;if(x){var Q=[],J=0;gun(x,L,S).forEach(function(Z,y){var E="min-width:"+Z.minWidth+"px;padding-left:"+Z.paddingLeft+"px;padding-right:"+Z.paddingRight+"px;flex:"+Z.flexGrow+" 0 "+Z.minWidth+"px;";Z.maxWidth!==Infinity&&(E=[E,"max-width:"+Z.maxWidth+"px;"].join(""));J>0&&y<D&&(E=[E,"left:"+J+"px;"].join(""));Q.push(E);J+=Z.minWidth+Z.paddingLeft+Z.paddingRight});
return Q}};
gun=function(x,L,D){D=D===void 0?VwO:D;return L.map(function(S,Q){S=x&&x[S]||{};var J=Q===0?D.paddingLeftFirstColumn:D.padding;S.paddingLeft!==void 0&&(J=S.paddingLeft);Q=Q===L.length-1?D.paddingRightLastColumn:D.padding;S.paddingRight!==void 0&&(Q=S.paddingRight);return{paddingLeft:J,paddingRight:Q,minWidth:S.minWidth!==void 0?S.minWidth:D.minWidth,maxWidth:S.maxWidth!==void 0?S.maxWidth:D.maxWidth,flexGrow:S.flexGrow!==void 0?S.flexGrow:D.flexGrow}})};
klN=function(x){var L=x.reduce(function(S,Q){var J=Q.columnId,Z={};Q.headerText&&(Z.headerName=_.SR(Q.headerText));Q.rightAlignHeader&&(Z.rightAlignHeader=Q.rightAlignHeader);var y;if((y=Q.headerIcon)==null?0:y.iconType)Z.headerIcon=_.gB(Q.headerIcon.iconType);S[J]=Z;return S},{}),D=x.filter(function(S){return!S.hideColumn}).map(function(S){return S.columnId});
x=x.filter(function(S){return!!S.dimensions}).reduce(function(S,Q){S[Q.columnId]=Q.dimensions;
return S},{});
return{columns:L,columnsToShow:D,columnDimensions:x}};
_.pK0=function(x){return x?x.simpleText?x.simpleText:x.runs?x.runs.map(function(L){return L.text}).join(""):"":""};
sep=function(x){var L=x.data;var D=x.onTap;var S=x.isSelected;var Q=x.onFocusIn;if(!L)return{};x=m83(L);S===void 0&&(S=L==null?void 0:L.isSelected);var J;return{text:boh(L,x),startIcon:(J=L.icon)==null?void 0:J.iconType,state:S?0:2,type:0,onTap:Ylw(L,D),accessibilityLabel:Fhf(L,x),onFocusIn:function(){return Q==null?void 0:Q()}}};
boh=function(x,L){if(!L)return x.text?_.pK0(x.text):void 0};
Ylw=function(x,L){return function(D){L==null||L(D,x)}};
m83=function(x){x=x.style&&x.style.styleType;return!oSh&&x==="STYLE_EXPLORE_LAUNCHER_CHIP"};
Fhf=function(x,L){if(L){var D,S,Q;return(Q=(D=x.accessibilityData)==null?void 0:(S=D.accessibilityData)==null?void 0:S.label)!=null?Q:boh(x,!1)}};
gq=function(x){return{signalAction:{signal:x}}};
Rac=function(){return _.$6("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?Tvs:_.ea0};
Gl3=function(x,L){x=x===void 0?"SOFT_RELOAD_PAGE":x;L=L===void 0?49504:L;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.ya(_.p6("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:L}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:x}}]}}}};
CI4=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.ya(_.p6("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:Rac()}};
ll0=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.ya(_.p6("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:Rac()}};
U84=function(x,L){var D=_.ya(_.p6("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),S=_.ya(_.p6("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),Q={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.ya(_.p6("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};Q.serviceEndpoint=x?x:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[gq("SOFT_RELOAD_PAGE")]}};return{title:D,bodyText:S,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:Q},
style:{value:L!=null?L:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
Bv3=function(x){x=x===void 0?{}:x;return{title:_.ya(x.localizedZeroStateTitleText===void 0?"":x.localizedZeroStateTitleText),bodyText:_.ya(x.localizedZeroStateMessage===void 0?"":x.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.ya(x.localizedZeroStateButtonText===void 0?"":x.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[wKb]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
qlh=function(x){x=x===void 0?{}:x;return{title:_.ya(x.localizedOptInBannerTitleText===void 0?"":x.localizedOptInBannerTitleText),titleLength:19,subtitle:_.ya(x.localizedOptInMessage===void 0?"":x.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.ya(_.p6("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:_.ya(_.p6("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:[Wh4]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
rZh=function(x,L){var D=L=L===void 0?{}:L;L=D.offlineTitleText===void 0?"":D.offlineTitleText;var S=D.offlineDescriptionText===void 0?"":D.offlineDescriptionText,Q=D.formattedSupplementalText,J=D.actionButtonText===void 0?"":D.actionButtonText,Z=D.titleText===void 0?"":D.titleText;D=D.descriptionText===void 0?"":D.descriptionText;var y={title:J,accessibilityText:J,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"}}}}};x||(Z=L,D=S,y={title:J,accessibilityText:J,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:_.ya(Z),titleLength:Z.length,overrideTitleMaxFontSize:30,subtitle:_.ya(D),supplementalText:Q,primaryButton:{buttonViewModel:y},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},tileImage:{thumbnails:[AZ4]},darkTileImage:{thumbnails:[$8s]},loggingDirectives:{clientVeSpec:{uiType:266212}}}};
_.flb=function(x,L,D,S,Q,J,Z,y,E,P,v){Q=Q===void 0?!1:Q;J=J===void 0?!1:J;Z=Z===void 0?0:Z;y=y===void 0?-Infinity:y;E=E===void 0?!1:E;P=P===void 0?!1:P;v=v===void 0?!1:v;var V=[],h=_.ya(_.p6("SMART_DOWNLOADS",void 0,"Smart downloads")),H=_.ya(Nvp(Z,y,x.length));y=Z=void 0;P?Z={statementBannerRenderer:rZh(v,S)}:Q?x.length>0?y=ioO(x,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.u("kevlar_manual_downloads_above"),h,H):E?y={alertBannerViewModel:{heading:{content:D.localizedOptInBannerTitleText===
void 0?"":D.localizedOptInBannerTitleText},body:{content:D.localizedPromptMessage===void 0?"":D.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.p6("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.p6("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:_.Opf}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:J&&(y={backgroundPromoRenderer:{bodyText:_.ya(_.p6("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"}}}):
J&&(y={alertBannerViewModel:{heading:{content:D.localizedOptInBannerTitleText===void 0?"":D.localizedOptInBannerTitleText},body:{content:D.localizedOptInMessage===void 0?"":D.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.p6("TURN_ON",void 0,"Turn on"),accessibilityText:_.p6("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}}}}}});D=_.ya(_.p6("YOUR_DOWNLOADS",void 0,"Your downloads"));S=void 0;L.length>0?(S=void 0,_.u("kevlar_display_downloads_numbers")&&(S=_.ya(_.mm("VIDEO_COUNT",L.length))),S=ioO(L,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,D,S)):Q||x.length||
P||(S={backgroundPromoRenderer:{bodyText:_.ya(_.p6("VIDEOS_WILL_APPEAR_HERE",void 0,"Videos you download will appear here")),thumbnail:{thumbnails:[{url:"https://www.gstatic.com/youtube/img/useredu/downloads_empty_state.png"}]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_CONTENT_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:120848}}}});Z?V.push({richSectionRenderer:{content:Z}}):y&&!_.u("kevlar_manual_downloads_above")&&V.push({richSectionRenderer:{content:y,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
S&&V.push({richSectionRenderer:{content:S,loggingDirectives:{clientVeSpec:{uiType:51721}}}});y&&_.u("kevlar_manual_downloads_above")&&V.push({richSectionRenderer:{content:y,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(L.length>0||Q&&x.length>0&&!P)&&V.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.ya(_.p6("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:V}};
_.als=function(x){return ouf(x,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.zaG=function(x){return ouf(x,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
ouf=function(x,L){var D=[];x=ioO(x,L,!0);D.push({richSectionRenderer:{content:x}});return{contents:D}};
ioO=function(x,L,D,S,Q){D=D===void 0?!1:D;var J="RESPONSIVE_SIZE_STANDARD";_.u("kevlar_standard_rich_grid_on_offline_home")&&L==="RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE"?J="RESPONSIVE_SIZE_STANDARD":_.u("kevlar_modern_downloads_compact")?J="RESPONSIVE_SIZE_COMPACT":_.u("kevlar_modern_downloads_extra_compact")?J="RESPONSIVE_SIZE_EXTRA_COMPACT":_.u("kevlar_modern_downloads_tiny")&&(J="RESPONSIVE_SIZE_TINY");x={isExpanded:D,contents:kc(x),entitySelectorType:L,responsiveContainerConfiguration:{responsiveSize:J}};
S&&(x.title=S);Q&&(x.subtitle=Q);D||(_.u("kevlar_smart_downloads_show_more_button")?(x.showMoreButton={buttonRenderer:{accessibility:{label:_.p6("SHOW_MORE",void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.ya(_.p6("SHOW_MORE",void 0,"Show more"))}},x.showLessButton={buttonRenderer:{accessibility:{label:_.p6("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",
text:_.ya(_.p6("SHOW_LESS",void 0,"Show less"))}}):(x.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.p6("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}}}},x.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.p6("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}}}},x.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.p6("VIEW_ALL",void 0,"View all"),accessibilityText:_.p6("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:_.O4("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:x}};
kc=function(x){var L=[];x=_.O(x);for(var D=x.next();!D.done;D=x.next())if(D=D.value,Nef(D)){var S=L,Q=S.push;var J=void 0;if(D==null?0:(J=D.videoEntity)==null?0:J.videoId){J=at(_.Jd().getState(),D.videoEntity.videoId);var Z=_.Jd().getState();var y=_.Ha(D.videoEntity.videoId,"mainVideoEntity");Z=!!_.l6(Z.entities)[y];Z={videoId:D.videoEntity.videoId,title:It(D.videoEntity.title),shortBylineText:It(D.channelEntity.title),thumbnail:D.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:Z&&_.u("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:un0(D.videoEntity.videoId,J,D.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.p6("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};D.videoEntity.lengthSeconds&&(Z.thumbnailOverlays=VZG(D.videoEntity.lengthSeconds,J));Z.isWatched=J>0;_.u("kevlar_modern_downloads_page")&&(Z.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:D.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.p6("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},Z.badges=void 0);D=Z}else D={};Q.call(S,{richItemRenderer:{content:{videoRenderer:D},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(rMp(D)){S=L;Q=S.push;var E=y=J=void 0,P=void 0,v=void 0,V=void 0,h=void 0,H=void 0,k=void 0,T=void 0,G=void 0,U=void 0;Z=D.mainPlaylistEntity.playlistId;var l=D==null?void 0:(U=D.mainPlaylistEntity)==null?void 0:(G=U.thumbnailStyleData)==null?void 0:(T=G[0])==null?void 0:(k=T.value)==null?void 0:(H=k.collageThumbnail)==
null?void 0:H.coverThumbnail;if(Z&&l){H=gK3(Z);!_.u("enable_offline_playlist_page")&&(D==null?0:(h=D.mainPlaylistEntity)==null?0:h.videos)&&(h=D==null?void 0:(V=D.mainPlaylistEntity)==null?void 0:(v=V.videos)==null?void 0:v[0],v=_.va(h).entityId,v=JSON.parse(v).videoId,v!==void 0&&(V=at(_.Jd().getState(),v),H=_.Zo(v,Z,void 0,void 0,V)));v=[];if(D==null?0:(P=D.mainPlaylistEntity)==null?0:(E=P.videos)==null?0:E.length)v=[nrn(),Object.assign({},(y=cYf(D==null?void 0:D.mainPlaylistEntity.videos.length))!=
null?y:{})];D={playlistId:Z,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:l}},navigationEndpoint:H,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:v,title:It(D.mainPlaylistEntity.title),shortBylineText:It(D==null?void 0:(J=D.channelEntity)==null?void 0:J.title),badges:[{metadataBadgeRenderer:{label:_.p6("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.u("kevlar_modern_downloads_page")&&(D.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:XKf,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:Z,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.p6("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},D.badges=void 0)}else D=void 0;Q.call(S,{richItemRenderer:{content:{playlistRenderer:D},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return L};
Nvp=function(x,L,D){x=x?cZc(x):"";L!==void 0&&isFinite(L)?L===0?L=_.p6("UPDATING",void 0,"Updating..."):(L=vPb(new Date(L),new Date),L=_.p6("UPDATED_TIME",{relative_time:L},"Updated "+L)):L="";var S="";x&&L&&(S=" \u2022 ");if(D&&_.u("kevlar_display_downloads_numbers")){D=_.mm("VIDEO_COUNT",D);if(x||L)S=" \u2022 ";return D+S+x+S+L}return x+S+L};
nup=function(x){return lq3(x.entities).length};
_.twO=function(x,L){var D=gSw(x.responsiveSize),S;x=!((S=x.responsiveMap)==null||!S.some(function(Q){return Q.containerSize==="CONTAINER_SIZE_NARROW"&&Q.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:L,sizing:D,enableFullBleedForSingleCol:!1,isCompactList:D==="COMPACT"&&x}};
x73=function(x,L){return _.u6(x.entities,"votingEntity",L)};
pF=function(x){if(x){var L;return((L=_.yY().resolve(_.ZN(_.Dt)))==null?0:L())?x.darkTheme:x.lightTheme}};
LYf=function(x,L){if(x.simpleText)return Object.assign({},x,{simpleText:nI(x.simpleText,L)});if(!x.runs)return x;for(var D=Object.assign({},x,{runs:[]}),S=0,Q=_.O(x.runs),J=Q.next();!J.done;J=Q.next())if(J=J.value,J.text)if(S+J.text.length<=L)D.runs.push(J),S+=J.text.length;else return D.runs.push(Object.assign({},J,{text:nI(J.text,L-S)})),D;return x};
D7f=function(x,L){return _.u6(x.entities,"chipBarStateEntity",L)};
Sih=function(x,L){return _.u6(x.entities,"chipEntity",L)};
JJp=function(x,L,D,S){return function(){var Q=Qhw.has(x.displayType)&&x.selected,J=Q&&x.deselectCommand?x.deselectCommand:x.tapCommand;!J||Q&&S||_.Xf(J,{form:{element:L==null?void 0:L.value}});D==null||D()}};
KYs=function(x){switch(x){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""}};
OsG=function(x,L){return{triggeringElement:x,onDwellTriggeredFn:function(){var D={triggeringElement:x,loadVideoPreviewEventData:L},S=document.querySelector(".video-preview");S&&S.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:D}))},
onDwellEndFn:function(){var D=document.querySelector(".video-preview");D&&D.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
Zs0=function(x,L){var D=_.yY().resolve(_.ZN(Zbh)),S=function(){var Q=L();return D&&Q?OsG(x.value,Q):null};
_.Us(function(){var Q=S();D&&Q&&Promise.resolve().then(function(){D.registerElement(Q)});
_.wH(function(){D&&Q&&Promise.resolve().then(function(){_.Nb(D,Q)})})},"csPUge")};
Imf=function(x){var L=x.dataset.resizeObserverId;if(L)return L;L=""+yJc++;return x.dataset.resizeObserverId=L};
Ebf=function(x,L){var D=Imf(x);mB.has(D)||mB.set(D,new Set);mB.get(D).add(L);bS.has(D)&&L(Object.assign({},{target:x},bS.get(D)))};
Msn=function(x){x=_.O(x);for(var L=x.next();!L.done;L=x.next()){L=L.value;var D=Imf(L.target),S=Object.assign({},{target:L.target},bS.get(D));if(S!=null&&S.contentRect?S.contentRect.width!==L.contentRect.width||S.contentRect.height!==L.contentRect.height:1)for(bS.set(D,{borderBoxSize:L.borderBoxSize,contentBoxSize:L.contentBoxSize,contentRect:L.contentRect,devicePixelContentBoxSize:L.devicePixelContentBoxSize}),D=_.O(mB.get(D)||[]),S=D.next();!S.done;S=D.next())S=S.value,S(L)}};
PUG=function(){return Yc?Yc:Yc=new d7s(Msn)};
jhO=function(x,L){var D=Imf(x);mB.has(D)&&(mB.get(D).delete(L),mB.get(D).size===0&&(mB.delete(D),bS.delete(D),Yc.unobserve(x),delete x.dataset.resizeObserverId));mB.size===0&&Yc&&(Yc.disconnect(),Yc=void 0)};
Vsn=function(x,L){var D=_.yY().resolve(Z5);return vbG.map(function(S){return D.observe(x,L,S)})};
hxw=function(x){var L=_.yY().resolve(Z5);x.forEach(function(D){L.unobserveByKey(D)})};
_.gb0=function(x,L){var D=Object.assign({},Hsh,L);L=_.O(A7s());var S=L.next().value,Q=L.next().value,J=function(Z){var y=Z.contentRect.height;if((Z=Z.contentRect.width)||y||D.canHaveZeroSize)S.width()===Z&&S.height()===y||Q(S,{height:y,width:Z})};
_.wO(function(){var Z=x instanceof HTMLElement?x:x.value,y=ucn(J,D.throttleMs),E=[];D.useVisibilityObserver&&(E=Vsn(Z,function(P,v){requestAnimationFrame(function(){v==="visible"?(Ebf(Z,y),PUG().observe(Z)):jhO(Z,y)})}));
E.length||(Ebf(Z,y),PUG().observe(Z));_.wH(function(){E.length&&(hxw(E),E.length=0);jhO(Z,y)})});
return S};
plf=function(x,L,D,S,Q){x=L?x.switchOffCommand:x.switchOnCommand;if(S&&Q)ksf(x,D,Q);else{var J,Z;(J=_.a6({elementsCommand:x}))==null||(Z=J.onclick)==null||Z.call(J,D)}};
ksf=function(x,L,D){x=_.a6({elementsCommand:x,additionalCommandArgs:{commandController:{onSuccess:function(){D(!1)},
onServerError:function(){D(!1)}}}});
if(x==null?0:x.onclick)x.onclick(L),D(!0)};
bs3=function(x){if(x)return _.g(x,m7n)};
Yib=function(x){if(!((x==null?0:x.entitySelectorType)&&(x==null?0:x.entityKey)))return{};switch(x.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":if(_.u("enable_web_shorts_captions_language_command")){var L;var D=(L=_.HX())==null?void 0:L.getOption("captions","track");var S,Q=typeof(D==null?void 0:D.translationLanguage)==="object"&&((S=D.translationLanguage)==null?void 0:S.languageName)||(D==null?void 0:D.displayName)||"";D=Object.assign({},!!Q&&
{selectionText:{content:Q}},!!Q&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:typeof D==="undefined"})}else D={};return D;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_AUDIO_TRACK_SELECTION_TEXT":if(_.u("web_shorts_audio_track_picker")){var J;S=((J=_.HX())==null?void 0:J.getAudioTrack())||void 0;L=S==null?void 0:(Q=S.getLanguageInfo())==null?void 0:Q.getName();S=Object.assign({},{selectionText:{content:L}},L&&!(S==null?0:(D=S.getLanguageInfo())==
null?0:D.getIsDefault())&&{leadingImage:{sources:[{clientResource:{imageName:"PERSON_RADAR_FILLED"}}]}})}else S={};return S;default:return{}}};
FYn=function(x){var L=["A".toString(),"BUTTON".toString()];return function(D){var S=function(Q){_.BX(_.w4(Q),D,L)||x(Q)};
D.addEventListener("click",S);return function(){D.removeEventListener("click",S)}}};
_.sh4=function(x){return function(){return _.g(x(),_.Fm)}};
CUf=function(x,L,D){if(L)return[T7N];switch(x){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[s3];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return D?[s3]:[exs,s3];case "TRANSFER_STATE_PAUSED_BY_USER":return[Rxb,s3];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[Gs0,s3];default:return[T7N]}};
lm0=function(x,L,D,S){return CUf(x,L,S).map(function(Q){var J=Q.text,Z=Q.iconType,y=Q.videoAction;Q=Q.playlistAction;J=J?{content:J}:void 0;Z=Z&&{sources:[{clientResource:{imageName:Z}}]};var E=(0,_.wk.unsafeClone)(D);if(E){var P=_.g(E,_.ke),v=_.g(E,_.pX);P&&y?P.action=y:v&&Q&&(v.action=Q)}return{title:J,leadingImage:Z,rendererContext:E&&{commandContext:{onTap:{innertubeCommand:E}}}}})};
U7c=function(x){x=_.WX(x.rendererContext);var L;return(L=_.g(x,_.pX))==null?void 0:L.playlistId};
wlO=function(x){var L;return(L=x.listItems)==null?void 0:L.some(function(D){var S;return _.qb((S=_.g(D,_.RB))==null?void 0:S.rendererContext)})};
qis=function(x){var L;return(L=x.listItems)==null?void 0:L.some(function(D){var S,Q,J=(Q=(S=_.g(D,B7N))==null?void 0:S.defaultListItem)!=null?Q:D;D=_.g(J,_.RB);return!!_.g(D==null?void 0:D.leadingAccessory,WYh)})};
rJN=function(x){var L=x.element;var D=x.veType;var S=x.storedVisualElement===void 0?null:x.storedVisualElement;var Q=x.elementIndex===void 0?0:x.elementIndex;x=x.clientYouTubeData;var J=_.A3();J!==AJG&&($7f.clear(),AJG=J);if(L.visualElement&&$7f.has(L.visualElement))return null;if(S&&$7f.has(S))return L.visualElement=S,null;D=_.Ff(_.sk(),{veType:D,elementIndex:Q,clientYouTubeData:x});if(!D)return null;L.visualElement=D;$7f.add(D);return D};
_.Tk=function(x,L,D,S){D=D===void 0?null:D;S=S===void 0?Tx3:S;var Q=Q===void 0?null:Q;Wp(function(){if(L){D instanceof Function&&(D=D());var J=rJN({element:L,veType:x,storedVisualElement:D,clientYouTubeData:void 0});J&&(GIn(L,Q),S(J))}})};
e8=function(x){var L=_.yY().resolve(_.ZN(_.Dt));return L!=null&&L()?x.darkThemeColorPalette:x.lightThemeColorPalette};
Gk=function(x){return{primaryTextColor:RS(x,0),secondaryTextColor:RS(x,1),optionColor:RS(x,2),backgroundColor:RS(x,3),videoBackgroundColor:RS(x,4)}};
RS=function(x,L){if(x){switch(L){case 0:x=x.primaryTitleColor;break;case 1:x=x.secondaryTitleColor;break;case 2:x=x.surgeColor;break;case 3:x=x.section2Color;break;case 4:x=x.section3Color;break;default:return}if(x)return _.zF(x)}};
CF=function(x,L){if(x){switch(L){case 0:x=x.primaryTitleColor;break;case 1:x=x.secondaryTitleColor;break;case 2:x=x.surgeColor;break;case 3:x=x.section2Color;break;case 4:x=x.section3Color;break;default:return}if(x)return _.zF(x)}};
N7c=function(x){return x?_.XA(x):""};
is4=function(x){return(x==null?void 0:x.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
fms=function(x,L){return _.u6(x.entities,"videoOverviewAsyncDataEntity",L)};
obs=function(x,L){var D;return"linear-gradient(to bottom, "+((D=L==null?void 0:L.map(function(S){var Q=x?S.darkThemeColor:S.lightThemeColor;return Q?_.XA(Q)+" "+((S==null?void 0:S.startLocation)||0)*100+"%":"transparent"}))==null?void 0:D.join(", "))+")"};
am0=function(x,L,D,S,Q){if(!((S==null?0:S.height)&&(S==null?0:S.width)))return{size:0};var J=S.width;S=S.height;if(Q)return L==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||L==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&J>S?{size:312/Gcn}:L==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(D!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||x!==1&&x!==2||L!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&L!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&L!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(L==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||L==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||S===J)switch(x){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(L==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||S>J)switch(x){case 1:case 3:return{size:240*RC0};default:return{size:360*RC0}}switch(x){case 1:case 2:return{size:1/Gcn*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.zxc=function(x){if(!("matchMedia"in window))return _.X0(Error("Wh")),function(){return!1};
var L=window.matchMedia(x);x=_.O(_.HB(L.matches,void 0,"jLJc8e"));var D=x.next().value,S=x.next().value,Q=function(J){S(J.matches)};
L.addEventListener?(L.addEventListener("change",Q),_.wH(function(){L.removeEventListener("change",Q)})):L.addListener&&(L.addListener(Q),_.wH(function(){L.removeListener(Q)}));
return D};
Xlw=function(x){return x==="IMAGE_BANNER_STYLE_INSET"||x==="IMAGE_BANNER_STYLE_UNKNOWN"};
cJ4=function(){if(!("matchMedia"in window))return _.X0(Error("Wh")),function(){return 0};
var x=Bd(function(){return window.matchMedia("(max-width: 527.9px)")}),L=Bd(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),D=Bd(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),S=Bd(function(){return window.matchMedia("(min-width: 1024px)")}),Q=_.O(_.HB(x.matches,void 0,"og9kEc")),J=Q.next().value,Z=Q.next().value;
Q=_.O(_.HB(L.matches,void 0,"ybDWCb"));var y=Q.next().value,E=Q.next().value;Q=_.O(_.HB(D.matches,void 0,"o0Gfh"));var P=Q.next().value,v=Q.next().value;Q=_.O(_.HB(S.matches,void 0,"yqUUgd"));var V=Q.next().value,h=Q.next().value,H=Bd(function(){return function(U){Z(U.matches)}}),k=Bd(function(){return function(U){E(U.matches)}}),T=Bd(function(){return function(U){v(U.matches)}}),G=Bd(function(){return function(U){h(U.matches)}});
_.wO(function(){x.addEventListener?(x.addEventListener("change",H),L.addEventListener("change",k),D.addEventListener("change",T),S.addEventListener("change",G)):x.addListener&&(x.addListener(H),L.addListener(k),D.addListener(T),S.addListener(G));_.wH(function(){x.removeEventListener?(x.removeEventListener("change",H),L.removeEventListener("change",k),D.removeEventListener("change",T),S.removeEventListener("change",G)):x.removeListener&&(x.removeListener(H),L.removeListener(k),D.removeListener(T),
S.removeListener(G))})});
return function(){return J()?1:y()?2:P()?3:V()?4:0}};
nbs=function(x){var L=0;x=_.O([x.title,x.metadata,x.actions,x.description,x.attribution]);for(var D=x.next();!D.done;D=x.next())D.value&&L++;return L};
tsO=function(x){return x===1||x===2?1:0};
LZN=function(x){x=(new xtO).parse(x);return(new uz).render(x).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(L){var D=L.split(":").map(Number),S=0,Q=0;if(D.length===3)D=_.O(D),S=D.next().value,Q=D.next().value,D=D.next().value;else if(D.length===2)D=_.O(D),Q=D.next().value,D=D.next().value;else if(D.length===1)D=_.O(D).next().value;else throw Error("Xh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(S*3600+Q*60+D)+'" role="button">'+L+"</span>"})};
Dtn=function(x){x=_.O(x.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var L=x.next(),D={};!L.done;D={clickHandler$jscomp$5:void 0},L=x.next()){L=L.value;D.clickHandler$jscomp$5=function(Q){Q=Number(Q.target.getAttribute("data-time"));if(isNaN(Q))throw Error("Yh");var J;(J=_.HX())==null||J.seekTo(Q,!0)};
var S=function(Q){return function(J){J.key!=="Enter"&&J.key!=="Space"||(0,Q.clickHandler$jscomp$5)(J)}}(D);
L.setAttribute("tabindex","0");L.removeEventListener("click",D.clickHandler$jscomp$5);L.removeEventListener("keydown",S);L.addEventListener("click",D.clickHandler$jscomp$5);L.addEventListener("keydown",S)}};
SJ4=function(){return _.M("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.M(lS,{percentWidth:100}),_.M(lS,{animationDelay:200}),_.M(lS,{animationDelay:400}),_.M(lS,{animationDelay:600}),_.M(lS,{animationDelay:800,percentWidth:60}),_.M("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.M(lS,{percentWidth:100}),_.M(lS,{animationDelay:200}),_.M(lS,{animationDelay:400}),_.M(lS,{animationDelay:600,percentWidth:50}))};
lS=function(x){return _.M("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(x.percentWidth===void 0?100:x.percentWidth)+"%"},_.M("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(x.animationDelay===void 0?0:x.animationDelay)+"ms"}))};
Qy0=function(){var x=_.O(_.HB(function(){return""},void 0,"dXJHWc")),L=x.next().value;
return[function(){return L()()},
x.next().value]};
J0n=function(x,L){x=x?cZc(x):"";L!==void 0&&isFinite(L)?L===0?L=_.p6("UPDATING",void 0,"Updating..."):(L=vPb(new Date(L),new Date),L=_.p6("UPDATED_TIME",{relative_time:L},"Updated "+L)):L="";var D="";x&&L&&(D=" \u2022 ");return _.ya(x+D+L)};
ZYn=function(x,L,D,S,Q,J){L=L===void 0?0:L;var Z=KZw[L],y=Z.title,E=Z.iconType,P=Z.topButtonRenderer,v=Z.sectionClientVE;Z=Z.videoClientVE;var V;if(L!==1||x.length){D=[];x=_.O(x);for(S=x.next();!S.done;S=x.next()){var h=S.value;if(Nef(h))D.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:h.videoEntity.videoId,title:It(h.videoEntity.title),shortBylineText:It(h.channelEntity.title),thumbnail:h.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:h.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.p6("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:Z}}}}}});else if(rMp(h)){S=D;var H=S.push;var k=void 0,T=void 0,G=void 0,U=void 0,l=void 0,X=void 0,f=void 0,N=void 0,z=h.mainPlaylistEntity.playlistId,xf=h==null?void 0:(N=h.mainPlaylistEntity)==null?void 0:(f=N.thumbnailStyleData)==null?void 0:(X=f[0])==null?void 0:(l=X.value)==null?void 0:(U=l.collageThumbnail)==null?void 0:U.coverThumbnail;U=gK3(z);if(!_.u("enable_offline_playlist_page")&&
(h==null?0:(G=h.mainPlaylistEntity)==null?0:G.videos)){b:{G=h==null?void 0:(T=h.mainPlaylistEntity)==null?void 0:T.videos;T=_.Jd().getState().entities;if(G!=null&&G.length&&T)for(G=_.O(G),l=G.next();!l.done;l=G.next())if(l=_.va(l.value).entityId,(l=JSON.parse(l).videoId)&&Gu4(T,l)==="TRANSFER_STATE_COMPLETE"){T=l;break b}T=""}T!==void 0&&(U=at(_.Jd().getState(),T),U=_.Zo(T,z,void 0,void 0,U))}T=pgn(_.p6("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),gK3(z));h=z&&xf&&T?{playlistId:z,navigationEndpoint:U,
viewPlaylistText:T,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:xf}},title:It(h.mainPlaylistEntity.title),shortBylineText:It(h==null?void 0:(k=h.channelEntity)==null?void 0:k.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:OYb,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:z,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.p6("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:Z}}}:
void 0;H.call(S,{gridPlaylistRenderer:h})}}Z={gridRenderer:{items:D}};L===1&&(V=J0n(Q,J))}else if(S){var K3=_.ya((H=D==null?void 0:D.localizedPromptMessage)!=null?H:"");Z={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.ya(_.p6("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.Opf}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.ya(_.p6("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};V=J0n(Q,J)}else K3=_.ya(_.p6("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
Z={};return{contents:[{shelfRenderer:{title:y,titleAnnotation:V,icon:{iconType:E},subtitle:K3,content:Z,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:P}]}}}}],loggingDirectives:{clientVeSpec:{uiType:v}}}};
y0h=function(x,L,D,S,Q,J,Z,y,E,P,v){D=D===void 0?{}:D;S=S===void 0?{}:S;Q=Q===void 0?!1:Q;J=J===void 0?!1:J;Z=Z===void 0?!1:Z;y=y===void 0?!1:y;E=E===void 0?!1:E;P=P===void 0?0:P;v=v===void 0?-Infinity:v;if(!(L.length||x.length||Q||y))return J?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:Bv3(D)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.ya(_.p6("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 V=[];x.length&&V.push(ZYn(x,0));y?V.push({contents:[{statementBannerRenderer:rZh(E,S)}]}):Q?V.push(ZYn(L,1,D,Z,P,v)):J&&V.push({contents:[{statementBannerRenderer:qlh(D)}]});(Q&&L.length||x.length)&&V.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.ya(_.p6("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 V.map(function(h){return{itemSectionRenderer:h}})};
U3=function(x,L){if(typeof x!=="object")return null;x=_.O(Object.entries(x));for(var D=x.next();!D.done;D=x.next()){var S=_.O(D.value);D=S.next().value;S=S.next().value;if(D===L)return D;if(S=U3(S,L))return D+"."+S}return null};
wq=function(x){var L=x.content;return(x=x.styleRuns)&&L?{runs:x.map(function(D){var S={text:L.slice(D.startIndex,D.startIndex+D.length)};D.fontColor&&(S.textColor=D.fontColor);return S})}:{simpleText:L}};
Mtp=function(x,L,D,S){var Q=IGw;S&&(x.quantity=S);if(!x.quantity||!x.maxQuantity)return{};S=x.minusButton;var J=x.plusButton,Z,y,E,P;return{value:x.quantity,maxValue:x.maxQuantity,onChangeCallback:function(v){Q(x,v)},
minusLabel:(Z=_.g(S,EFN))==null?void 0:Z.label,minimumReachedLabel:(y=_.g(S,EFN))==null?void 0:y.limitReachedLabel,plusLabel:(E=_.g(J,EFN))==null?void 0:E.label,maximumReachedLabel:(P=_.g(J,EFN))==null?void 0:P.limitReachedLabel,disabled:L,onRemoveCommand:D}};
IGw=function(x,L){var D=x.quantityIncrementerEntityKey;if(D){var S={};S.quantity=L;_.Ok(_.B2("quantityIncrementerEntity",D,S));x.onChangeCommand&&_.Xf(x.onChangeCommand)}};
dtp=function(x){if(x)return x===document.body?document.documentElement:/(auto|scroll)/.test(getComputedStyle(x).overflowY)?x:dtp(x.parentElement)};
vFO=function(x,L){(x=P90(x))&&((_.u("enable_mini_app_command_handler_mweb_fix")?0:L)?jyN.push({command:x,sourceData:{},commandContext:void 0}):_.yY().resolve(_.E2).resolveCommand(x))};
P90=function(x){return _.g(x,_.ii)};
Vtf=function(){var x=window.performance.timeOrigin+window.performance.now(),L=(new _.W2).setSeconds(x/1E9);return _.xz(L,2,_.SG(x%1E9),0)};
HYs=function(x,L){var D;x=(D=_.g(_.g(x,_.ii),hJ3))==null?void 0:D.methodName;var S,Q;(D=window.youtubewebview||((S=window.webkit)==null?void 0:(Q=S.messageHandlers)==null?void 0:Q.youtubewebview))&&x&&(S=new q1,x=_.ei(S,1,x),x=_.Gg(x.JSC$12397_serializeBinary()),L=_.Gg(L),D.postMessage(x+","+L))};
Ai=function(x,L){var D=_.g(_.g(x,_.ii),hJ3);D&&(L&&(D.serializedAdditionalMetadata=_.Gg(L)),vFO(x,!0))};
uHO=function(x){switch(x){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"}};
gFp=function(){return!!_.$6("ID_TOKEN")};
mts=function(x){return x instanceof Error&&x.cause instanceof kww&&x.cause.rpcErrorCode!==void 0?!ph3.includes(x.cause.rpcErrorCode):!0};
YJN=function(){return _.DN(bY0,{authuser:""+(_.$6("SESSION_INDEX")||0)})};
$c=function(x,L,D,S){D=D===void 0?"MINI_APP_SDK_API_UNSPECIFIED":D;S=S===void 0?"":S;var Q=new _.RZ;D={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:S,sdkApi:D};x instanceof Error&&(Q.message=x.message,Q.name=x.name,x.cause instanceof kww&&x.cause.rpcErrorCode!==void 0&&(D.rpcErrorCode=x.cause.rpcErrorCode));var J;(J=L.onError)==null||J.call(L,{loggingError:Q,metadata:D})};
sy0=function(x,L,D,S){switch(x){case "MINI_APP_SOURCE_GAMESNACKS":return new rq(L,D,S);default:return new FZp(L,D,S)}};
TLw=function(x){switch(x){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"}};
eJh=function(x){switch(x){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"}};
RJn=function(x){switch(x){case 1:return"MINI_APP_SDK_API_FIRST_FRAME_READY";case 9:return"MINI_APP_SDK_API_GAME_READY";case 2:return"MINI_APP_SDK_API_LOAD_DATA";case 3:return"MINI_APP_SDK_API_SAVE_DATA";case 4:return"MINI_APP_SDK_API_SEND_SCORE";case 5:return"MINI_APP_SDK_API_ON_AUDIO_ENABLED_CHANGE";case 6:return"MINI_APP_SDK_API_ON_PAUSE";case 7:return"MINI_APP_SDK_API_ON_RESUME";case 8:return"MINI_APP_SDK_API_GET_LANGUAGE";case 10:return"MINI_APP_SDK_API_IS_AUDIO_ENABLED";case 12:return"MINI_APP_SDK_API_SHARE_INVITE_CODE";
case 13:return"MINI_APP_SDK_API_ON_GAME_DATA_AVAILABLE";default:return"MINI_APP_SDK_API_UNSPECIFIED"}};
Gw0=function(){return Math.floor(Math.random()*4)+1};
C9s=function(x,L,D,S){x=_.O(Object.entries(x));for(var Q=x.next(),J={};!Q.done;J={message$jscomp$993:void 0},Q=x.next()){var Z=_.O(Q.value);Q=Z.next().value;Z=Z.next().value;J.message$jscomp$993=Z;L.push(setTimeout(function(y){return function(){S(!1);D(y.message$jscomp$993.text)}}(J),J.message$jscomp$993.delayMs));
Number(Q)>0&&L.push(setTimeout(function(){S(!0)},J.message$jscomp$993.delayMs-400))}};
lGw=function(x,L){var D=D===void 0?Tx3:D;_.u("mweb_fix_monitor_visibility_after_render")?x&&Wp(function(){GIn(x,L,D)}):Wp(function(){GIn(x,L,D)})};
UtO=function(x,L){var D=document.createElement("ytd-engagement-panel-section-list-renderer");D.data=x;if(L==null?0:L.isPersistentPanel)D.isPersistentPanel=!0;return D};
qJf=function(x){wh0||(wh0=BL4(new _.ca(1,void 0,void 0,WZO),0));var L=wh0.format(Math.floor(x));L=zD==="be"||zD==="bg"||zD==="es"||zD==="et"||zD==="hu"||zD==="ka"||zD==="lv"||zD==="pl"||zD==="pt-PT"||zD==="sq"?L.replace(new RegExp("^(\\d)"+WZO.GROUP_SEP.replace(".","\\.")+"(\\d+("+WZO.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):L;return x>=1E3&&x<=9999&&L[1]==="."&&(zD==="sl"||zD==="it")?L.replace(".",""):L};
A0b=function(x,L){X6O("ytd-button-renderer",{data:x,className:L?L.className:"",overrides:L==null?void 0:L.buttonOverrides},a50)};
NL3=function(x,L,D,S){if(x)return S=S||x.likeStatus,L?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:S==="LIKE",isDisabled:!x.likesAllowed,defaultIcon:{iconType:D},defaultText:S==="LIKE"?x.likeCountWithUnlikeText:x.likeCountText,toggledText:S==="LIKE"?x.likeCountText:x.likeCountWithLikeText,defaultNavigationEndpoint:$tO(x,"LIKE"),defaultServiceEndpoint:r0f(x,"LIKE"),toggledServiceEndpoint:r0f(x,"INDIFFERENT"),defaultTooltip:_.SR(x.likeCountTooltipText),toggledTooltip:_.SR(x.likeCountTooltipText),
targetId:x.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:S==="DISLIKE",isDisabled:!x.likesAllowed,defaultIcon:{iconType:D},defaultText:S==="DISLIKE"?x.dislikeCountWithUndislikeText:x.dislikeCountText,toggledText:S==="DISLIKE"?x.dislikeCountText:x.dislikeCountWithDislikeText,defaultNavigationEndpoint:$tO(x,"DISLIKE"),defaultServiceEndpoint:r0f(x,"DISLIKE"),toggledServiceEndpoint:r0f(x,"INDIFFERENT"),defaultTooltip:_.SR(x.dislikeCountTooltipText),
toggledTooltip:_.SR(x.dislikeCountTooltipText)}};
$tO=function(x,L){if(L==="LIKE")return x.likeCommand;if(L==="DISLIKE")return x.dislikeNavigationEndpoint};
r0f=function(x,L){var D;return(D=x.serviceEndpoints)==null?void 0:D.find(function(S){var Q;return((Q=_.g(S,_.N1))==null?void 0:Q.status)===L})};
_.oF4=function(x,L,D){return window.spf&&!_.u("web_disable_spfjs_client")?iY4(x,L,D):fGc(x,L)};
iY4=function(x,L,D){var S=null,Q=(new _.HI(function(J,Z){var y={};if(L){y.method=L.method;var E=L.postParams||{};dU0(x,L)&&(E[_.$6("XSRF_FIELD_NAME")]=_.$6("XSRF_TOKEN"));y.postData=_.pH(E);L.type&&(y.type=L.type);E=L.headers}y.headers=O7p(x,E);_.u("debug_forward_web_query_parameters")&&(x=_.ENs(x,window.location.search));y.experimental_headers=y.headers;y.onError=function(P){P.err&&P.xhr&&(P.err.params={url:P.xhr.responseURL,response:P.xhr.responseText.substr(0,64)});Z(P.err)};
y.onPartDone=function(P){D&&D.call(null,P.part)};
y.onDone=function(P){var v=aGp(P.response,"xsrf_token");J8(window.location.href,x)&&v&&_.Au("XSRF_TOKEN",v);if(v=aGp(P.response,"service_worker_killswitch"))_.Au("SERVICE_WORKER_KILLSWITCH",v),Eqh();J(P.response)};
S=spf.request(x,y)})).then(zJN);
Q.thenCatch(function(J){var Z=J instanceof _.iS,y=J&&J.hasOwnProperty("params")&&J.params.response?J.params.response:"";J instanceof Error&&(y?Z?cLf(J):y===')]}\'\n{"reload":"now"}'?cLf(J):(Xhc(J,x,y),c0N(J,y)?_.qy(J):_.BI(J)):cLf(J));S&&S.abort()});
return Q};
zJN=function(x){if(x.type==="multipart"){var L=x.timing;x=x.parts.reduce(function(D,S){Object.assign(D,S);return D},{});
x.timing=x.timing||{};Object.assign(x.timing,L);x.type="reduced"}return x};
fGc=function(x,L){L=L===void 0?{}:L;var D=null,S=new _.HI(function(Q,J){L.onFinish=function(Z){if(Z.readyState===XMLHttpRequest.DONE)if(Z.status===200){if(Z.responseType!=="json"){var y=Z.response;y.substring(0,5)===")]}'\n"&&(y=y.substring(5));try{var E=JSON.parse(y)}catch(P){E=P}}else E=Z.response;E instanceof Error?J(E):(y=aGp(E,"xsrf_token"),J8(window.location.href,x)&&y&&_.Au("XSRF_TOKEN",y),Z=Z.responseURL,window.performance&&window.performance.getEntriesByName?(y=window.performance.getEntriesByName(Z).pop())?
Z={responseStart:(0,_.y5)()-(y.responseEnd-y.responseStart)}:(Math.random()<.01&&(y=Error("ji"),y.params=Z,_.qy(y)),Z={responseStart:-1}):Z={responseStart:0},E.timing=E.timing||{},Object.assign(E.timing,Z),Q(E))}else J(Error("ii`"+Z.status))};
(D=_.kQ(x,L))||J(Error("ii`"+D.status))});
S.thenCatch(function(Q){Q instanceof Error&&(Xhc(Q,x),c0N(Q)&&(Q.level="WARNING"))});
_.u("cancel_pending_navs")&&S.thenCatch(function(){D.abort()});
return S};
aGp=function(x,L){var D=x[L],S=x.parts;x.type==="multipart"&&S&&(D=(x=S.find(function(Q){return L in Q}))&&x[L]);
return D};
Xhc=function(x,L,D){var S=x.message||"";L={original:S,url:L};if(D)if(S=S.match(/position:?\s*(\d+)/)){S=S&&Number(S[1])?Number(S[1]):0;var Q=Math.max(S-25,0);L.position=S;L.response=D.substring(Q,S+25)}else L.response=D.substring(0,50);_.A7(x,L);try{x.message="JSON parse error"}catch(J){}};
c0N=function(x,L){x=x.message||"";x=!!(x.indexOf("<")>=0||x.indexOf("end of ")>=0||x.indexOf("Unterminated string")>=0||x.indexOf("Unexpected EOF"));if(!x&&L)for(var D=L.length,S=!1,Q=0;Q<D;Q++)if(S&&L[Q]==="\\")Q++;else if(L[Q]==='"')S=!S;else if(L[Q]==="<"&&!S){x=!0;break}return x};
nFc=function(){return document.documentElement.hasAttribute("dark")};
_.ttw=function(x,L){if(x!=="GFEEDBACK"&&x!=="GUIDED_HELP")_.N9(Error("ki`"+x));else{var D=_.yY().resolve(_.ZN(_.KX));if(D&&(D=D.getCurrentPage())&&D.getServiceTrackingParams&&(D=D.getServiceTrackingParams()))for(var S=0,Q;Q=D[S++];)if(Q.service===x){if(x=Q.params)for(D=0;S=x[D++];)L[S.key]=S.value;break}}};
_.xmf=function(x){var L=_.Zs();L&&(L=L.getPlayer())&&(L.pauseVideo(),x.playback_id=L.getVideoData().cpn,x.eid=L.getVideoData().eventId,Object.assign(x,L.getFeedbackProductData()))};
L2O=function(){var x={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.$6("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(x.enableAnonymousFeedback=!0);_.$6("SESSION_INDEX")&&(x.authuser=String(_.$6("SESSION_INDEX")));_.u("enable_pageid_for_feedback")&&_.$6("DELEGATED_SESSION_ID")&&(x.pageId=String(_.$6("DELEGATED_SESSION_ID")));return x};
_.fF=function(x){_.u("enable_ypc_spinners")&&_.dg(x,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},x])};
_.oS=function(x){_.u("enable_ypc_spinners")&&_.dg(x,"yt-close-popup-action",["yt-loading-renderer"])};
Dmn=function(x){return new Promise(function(L,D){_.o6({verifyCommand:{recaptchaToken:x.recaptchaResponse}},{commandController:{onSuccess:function(S,Q){Q||D("ChallengeService did not return a response.");var J;L({challengeCompleted:(J=Q.verified)!=null?J:!1})},
onServerError:function(S,Q){D(Q)}}})})};
SQO=function(x,L,D,S){L({recaptchaResponse:S}).then(function(Q){Q.challengeCompleted?_.s2()?(D(3),_.yY().resolve(_.E2).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:x}})):D(2):D(4)},function(){D(4)})};
Jp0=function(x,L,D){_.ac(_.Pn(Qrh,_.$6("HL")),function(){var S;(S=window.grecaptcha)==null||S.ready(function(){var Q=window.grecaptcha;Q?(D(Q.render(x,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:SQO.bind(null,x,Dmn,L)})),L(1)):L(4)})})};
K20=function(x,L){return function(){switch(L()){case 0:return x().captchaLoadingMessage;case 1:return x().challengeReason;case 3:return x().captchaSuccessfulMessage;case 2:return x().captchaCookieSetFailureMessage;case 4:return x().captchaFailedMessage;default:return x().challengeReason}}()};
_.aS=function(){if(!O_0){var x=document.querySelector("#player.skeleton");x&&(_.mg(x),O_0=!0)}};
_.ypN=function(){return Z_n=Ej4()};
MzG=function(){return _.I(function(x){return ILf!==void 0?x.return():x.yield(Enf(),0)})};
Enf=function(){return _.I(function(x){if(x.nextAddress==1)return x.yield(dXO(),2);Z_n=x.yieldResult;ILf=_.WW.addLowPriorityJob(Enf,5E3);_.Y2(x)})};
hRb=function(x){var L=L===void 0?dmh:L;var D,S,Q=(D=x.responseContext)==null?void 0:(S=D.mainAppWebResponseContext)==null?void 0:S.trackingParam;if(!Q){L.increment("MISSING");var J,Z,y,E,P,v;_.qy(new _.RZ("282054944_a",{m7o:!!((J=x.responseContext)==null?0:(Z=J.mainAppWebResponseContext)==null?0:Z.loggedOut),k3N:((y=x.responseContext)==null?void 0:y.mainAppWebResponseContext)===void 0,iQX:x.responseContext===void 0,cp:(E=x.playabilityStatus)==null?void 0:E.contextParams,heo:(((P=x.streamingData)==
null?void 0:P.formats)||[]).length>0,u3K:(((v=x.streamingData)==null?void 0:v.adaptiveFormats)||[]).length>0,os:!!x.offlineState,cotn:x.cotn}));return 2}D="";try{D=PDf(Q)}catch(H){return L.increment("C_ERROR"),_.BI(H),2}try{var V=_.jrf(D);var h=vnO(V)}catch(H){return L.increment("P_ERROR"),_.BI(H),2}h=_.O7(h,Vzc,1,_.Zb());Q=[];h=_.O(h);for(V=h.next();!V.done;V=h.next())S=V.value,V=S.getPath(),D=(0,_.wk.getValueByKeys)(x,V.split(".")),D=String(D===void 0||D===null?"":D),S=S.getValue()||"",J=/[+\-\/_]/g,
D.replace(J,"")!==S.replace(J,"")&&(L.increment("MISMATCH"),_.u("ab_mis_log_err")&&(D=new _.RZ("282054944_p",{vvV:V,g:String(D),e:String(S)}),_.BI(D)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(V)||(V.match(/enforcementMessageViewModel/i)?Q.push(3):Q.push(2)));if(Q.length>0)return Math.max.apply(Math,_.lP(Q));L.increment("SUCCESS");return 1};
gn4=function(x){var L=new zk;if(x.interpreterJavascript){var D=_.rq4(x.interpreterJavascript);D=dTs(D).toString();var S=new H_0;_.ei(S,6,D);_.mR(L,1,S,YH)}else x.interpreterUrl&&(D=_.qg(x.interpreterUrl),D=_.RN(D).toString(),S=new _.u_3,_.ei(S,4,D),_.mR(L,2,S,YH));x.interpreterHash&&_.Xm(L,3,x.interpreterHash,YH);x.program&&_.Xm(L,4,x.program,YH);x.globalName&&_.Xm(L,5,x.globalName,YH);x.clientExperimentsStateBlob&&_.Xm(L,7,x.clientExperimentsStateBlob,YH);return L};
c2=function(x){var L={};x=_.O(x.split("&"));for(var D=x.next();!D.done;D=x.next())D=D.value.split("="),D.length===2&&(L[D[0]]=D[1]);return L};
kA0=function(x){return Number(x.t)||7200};
Auc=function(){if(_.u("bg_st_hr"))return"havuokmhhs-0";var x,L=((x=globalThis.performance)==null?void 0:x.timeOrigin)||0;return"havuokmhhs-"+Math.floor(L)};
p7f=function(){return new Promise(function(x){var L=window;L.ntpevasrs!==void 0?x(new nF(L.ntpevasrs)):(L.ntpqfbel===void 0&&(L.ntpqfbel=[]),L.ntpqfbel.push(function(D){x(new nF(D))}))})};
mm0=function(x){var L=x.wMR.bind(x);_.KK("yt.aba.att",L);x=x.w0N.bind(x);_.KK("yt.aba.att2",x)};
YQb=function(x){switch(_.gE(x.input)){case _.KB(b_n):var L={};return L.encryptedVideoId=x.innerTubeRequest.externalVideoId,L}return{}};
Tif=function(x){switch(_.gE(x.input)){case _.KB(b_n):if(_.u("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.KB(F24):if(_.u("enable_att_for_share_on_web_client"))return"ENGAGEMENT_TYPE_SHARE";break;case _.KB(ti):if(_.u("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&x.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.KB(srf):var L,D;if(_.u("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&
((D=_.g((L=x.config)==null?void 0:L.command,kr4))==null?0:D.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.RR0=function(x){var L;if(x.playlistVideoRenderer&&((L=x.playlistVideoRenderer)==null?0:L.engagementBar))return eR4(x.playlistVideoRenderer.engagementBar);if(_.g(x,xv)){var D;if(x=(D=_.g(x,xv))==null?void 0:D.engagementBar)return eR4(x)}return""};
eR4=function(x){if(!x)return"";x=_.g(x,_.GAc);if(x==null||!x.actions)return"";x=_.O(x.actions);for(x=x.next();!x.done;x=x.next()){x=_.g(x.value,_.CD0);var L=void 0;if((L=x)==null||!L.itemId)break;return x.itemId}return""};
_.lLh=function(x){var L;if(x.playlistVideoRenderer&&((L=x.playlistVideoRenderer)==null?0:L.videoId))return x.playlistVideoRenderer.videoId;if(_.g(x,xv)){var D,S;if(x=(D=_.g(x,xv))==null?void 0:(S=D.playlistItemData)==null?void 0:S.videoId)return x}return""};
_.Ums=function(x){var L;if(x.playlistVideoRenderer&&((L=x.playlistVideoRenderer)==null?0:L.voteCount))return x.playlistVideoRenderer.voteCount;if(_.g(x,xv)){var D,S;if(x=(D=_.g(x,xv))==null?void 0:(S=D.playlistItemData)==null?void 0:S.voteCount)return x}return 0};
_.LG=function(x,L){return _.u6(x.entities,"flowStateEntity",L)};
Bi0=function(x,L,D,S){var Q=void 0;x=_.O(x[L.iconName]||[]);for(var J=x.next();!J.done;J=x.next()){J=J.value;var Z=L.iconSize;var y=L.iconStyle;Z=!Z||Z===J[2];var E=w70[J[0]];S&&S!==J[1]||!Z||y&&y!==E?y=!1:Q?(y=w70[J[0]],y=!!L.iconStyle||y==="youtube_outline",Z=Q.version<=J[1],y=(!!L.iconSize||J[2]===24)&&y&&Z):y=!0;y&&(Q={name:L.iconName,style:w70[J[0]],size:J[2],version:J[1],allowMirroring:!!J[3],url:D(L.iconName,J)})}return Q};
W2w=function(x,L,D,S){return x+(""+w70[D[0]]+((S===void 0?0:S)?"_experimental":"")+"/"+L+"/v"+D[1]+"/")+(D[2]+"px.svg")};
qQb=function(x){return _.$6("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&_.$6("INNERTUBE_CLIENT_NAME")!=="WEB_CREATOR"?"bookmark":x};
Apb=function(x,L){return W2w("https://fonts.gstatic.com/s/i/",x,L)};
$mp=function(x,L){return W2w("https://fonts.gstatic.com/s/i/",x,L,!0)};
rp3=function(x,L){return W2w("https://www.gstatic.com/youtube/img/icons/web/",x,L)};
i_N=function(x){var L=x.enabled;var D=x.itemPlaybackModel;var S=x.thumbnailElRef;var Q=x.containerElRef;var J=x.options;var Z;_.Us(function(){var y=Q==null?void 0:Q.value;var E,P=(E=S())==null?void 0:E.value;E=D();var v=J();if(L&&E&&y&&P&&(v==null?0:v.thumbnail)){var V={data:E,hostElement:y},h,H,k=_.u("web_explore_hub_on_hover")||_.u("web_client_explore_hub_on_hover")?[].concat(_.lP((h=v.thumbnailOverlays)!=null?h:[]),_.lP((H=E.overlays)!=null?H:[])):v.thumbnailOverlays||[];H=E.itemPlaybackOptions;
h=(H==null?void 0:H.enableRoundedPlayer)||v.enableRounding;H=H==null?void 0:H.disableTimeStatusOverlay;var T,G;y={mediaRenderer:V,lockupElement:y,thumbnailElement:P,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.fI((T=E.inlinePlayerData)==null?void 0:T.onVisible),navigationEndpoint:_.fI((G=E.inlinePlayerData)==null?void 0:G.onSelect),thumbnail:v.thumbnail,thumbnailOverlays:k,accessibilityText:v.accessibilityText||""},thumbnailSize:v.thumbnailSize,enableRounding:h,mouseleaveCallback:v.mouseleaveCallback,
hideTimeDisplay:H}}}else y=void 0;if(T=y){var U;(U=Z)==null||DS(U);Z=r4(T);var l,X;((l=D())==null?0:(X=l.inlinePlayerData)==null?0:X.forceImpAutoplay)&&Nic(Z)}},"mM6F9");
_.wH(function(){var y;(y=Z)==null||DS(y)})};
fLO=function(x){x=atob(x);for(var L=[],D=0;D<x.length;D++)L.push(x.charCodeAt(D));return new Blob([new Uint8Array(L)],{type:"image/png"})};
aLc=function(x,L,D,S){S=S===void 0?"INSERTION_POSITION_UNSPECIFIED":S;return x({targetId:L},function(Q){var J,Z=(J=Q.contents)!=null?J:[];J=D!=null?D:[];var y=on0(Z);switch(S){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},Q,{contents:[].concat(_.lP(Z.slice(0,y)),_.lP(J),_.lP(Z.slice(y+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},Q,{contents:[].concat(_.lP(J),_.lP(Z))});case "INSERTION_POSITION_LAST":return Object.assign({},Q,{contents:[].concat(_.lP(Z),_.lP(J))});
default:return Q}})};
X7c=function(x,L,D,S,Q){Q=Q===void 0?"RELATIVE_INSERTION_POSITION_AFTER":Q;return x({targetId:L},function(J){var Z,y=(Z=J.contents)!=null?Z:[];Z=zRf(y,D);if(Z<0)return J;Z=Q==="RELATIVE_INSERTION_POSITION_BEFORE"?Z:Z+1;return Object.assign({},J,{contents:[].concat(_.lP(y.slice(0,Z)),_.lP(S),_.lP(y.slice(Z)))})})};
on0=function(x){var L=x.findIndex(function(D){return _.g(D,_.SK)});
return L>=0?L:x.length};
zRf=function(x,L){return x.findIndex(function(D){a:{D=_.O(Object.values(D));for(var S=D.next();!S.done;S=D.next())if((S=S.value)&&S.targetId){D=S.targetId;break a}D=""}return D===L})};
nnp=function(x,L,D){return x({targetId:L},function(S){var Q,J=(Q=S.contents)!=null?Q:[];return Object.assign({},S,{contents:cp3(J,D)})})};
cp3=function(x,L){return x.filter(function(D){var S=L.includes;a:{D=_.O(Object.values(D));for(var Q=D.next();!Q.done;Q=D.next())if((Q=Q.value)&&Q.targetId){D=Q.targetId;break a}D=""}return!S.call(L,D||"")})};
_.tz3=function(x,L){return{engagementPanelSectionListRenderer:{panelIdentifier:x,identifier:L,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
xxb=function(x,L){x=x.getAvailableAudioTracks();if(x.length)return x==null?void 0:x.find(function(D){var S;return(D==null?void 0:(S=D.getLanguageInfo())==null?void 0:S.getId())===L})};
_.Dxc=function(x){var L,D=(L=x.getOption("captions","tracklist",{includeAsr:!0}))!=null?L:[];return D=LE0(D,x)};
Sfb=function(x){return x.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
LE0=function(x,L){L=Sfb(L);if(L==null||!L.length)return x;var D=L.filter(function(Z){return Z});
L=x.filter(function(Z){return Z.languageCode.startsWith("en")});
D=_.O(D);for(var S=D.next();!S.done;S=D.next())if(S=S.value,L.length){var Q=L[0],J=Object.assign({},Q);Q.languageCode!==S.languageCode&&(J.displayName=Q.languageName+" >> "+S.languageName,J.translationLanguage=S,x.push(J))}return x};
Q$f=function(x,L,D){x=_.Dxc(x);if(x.length)return D?x.find(function(S){if(typeof(S==null?void 0:S.translationLanguage)==="object"){var Q;return((Q=S.translationLanguage)==null?void 0:Q.languageCode)===L}return!1}):x==null?void 0:x.find(function(S){return S.languageCode===L})};
Jnc=function(x){return x.getOption("captions","tracklist",{includeAsr:!0})};
KEh=function(x){var L=x.getAvailableAudioTracks();if(L!=null&&L.length){var D=x.getAudioTrack();return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.lP(L.map(function(S){return{listItemViewModel:{title:{content:S.getLanguageInfo().getName()},isSelected:S.getLanguageInfo().getId()===(D==null?void 0:D.getLanguageInfo().getId()),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",
actions:[{audioTrackSelectActionCommand:{languageCode:S.getLanguageInfo().getId()}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}}};
OxN=function(x){return x.getOption("captions","tracklist",{includeAsr:!0})};
Zxb=function(x){var L=OxN(x);if(L==null?0:L.length)return L;x.loadModule("captions");return OxN(x)};
yn0=function(x){var L=x.getOption("captions","track");if(L)return L;x.loadModule("captions");return x.getOption("captions","track")};
EGn=function(x){var L=Zxb(x);if(L!=null&&L.length){var D=yn0(x),S;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.p6("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(D==null?0:D.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.lP(L.map(function(Q){return{listItemViewModel:{title:{content:Q.displayName},
isSelected:Q.displayName===(D==null?void 0:D.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:Q.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.p6("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!D.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!D.translationLanguage&&{selectionText:{content:(D==null?void 0:(S=D.translationLanguage)==null?void 0:S.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[IXp(x)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
IXp=function(x){var L=Sfb(x);if(L==null||!L.length)throw Error("Ji");var D=yn0(x);x=L.filter(function(S){return!S.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.lP(x.map(function(S){var Q;return{listItemViewModel:{title:{content:S.languageName},isSelected:S.languageName===(D==null?void 0:(Q=D.translationLanguage)==null?void 0:Q.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:S.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
j$s=function(x){return new Promise(function(L,D){if(x===void 0)_.BI(Error("Ni"),"ERROR"),D(Error("Ni"));else{D=new _.Mhn;var S=_.dxf();D=D.init();var Q=_.PL0(_.$6("YPC_MB_URL"),!0);Promise.all([D,Q]).then(function(){var J=_.QG.payments.business.integration.ClientTokenFactory.createClientToken(x,S);L(J)})}})};
hbb=function(x,L,D,S,Q,J,Z){var y=_.xe();D=D.replace(/-/g,"+").replace(/_/g,"/");var E=_.FI().get("hl"),P=_.JK(_.QA),v=L==null?void 0:L.element;v&&_.fF(v);vG0(L,!0);_.Vh0(P,D,y.resolve,function(){v&&_.oS(v)},function(V){v&&_.oS(v);
y.reject(V)},E,S?function(V){S&&_.tD(x,S,{backend_analytics:V})}:void 0,y.resolve,Q,J,Z);
return y.promise};
vG0=function(x,L){!(x=x==null?void 0:x.element)||x.tagName!=="YT-BUTTON-RENDERER"&&x.tagName!=="YTD-BUTTON-RENDERER"||(x.disabled=L)};
Hx0=function(){var x=_.p6("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.ya(x),actionButton:{buttonRenderer:ll0()}}},popupType:"TOAST"}};
u8N=function(){var x=_.p6("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.ya(x),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
gG0=function(x){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:x}]}}};
KG=function(x,L,D,S){var Q;return _.I(function(J){if(J.nextAddress==1)return _.HH(J,2),J.yield(x,4);if(J.nextAddress!=2)return(Q=_.Rt(L.getState().entities).length>0)?J.return({title:_.ya(_.p6("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.ya(_.p6("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:CI4()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
J.return(U84(D,S));_.mW(J);return J.return(U84(D,S))})};
kYb=function(x,L){return L?L==="PPSV"||UJf(x,L):!1};
p0N=function(x){x.responseContext||(x.responseContext={});x.responseContext.maxAgeSeconds=0;return x};
ZS=function(x){var L;return _.I(function(D){return D.nextAddress==1?D.yield(mxb(x,"service:topbar:fallback"),2):(L=D.yieldResult)&&_.Oy(L)?D.return(p0N(_.Oy(L))):D.return()})};
bxc=function(x){var L;return _.I(function(D){return D.nextAddress==1?D.yield(mxb(x,"service:downloads_settings:fallback"),2):(L=D.yieldResult)&&_.Oy(L)?D.return(L):D.return()})};
mxb=function(x,L){var D;return _.I(function(S){if(S.nextAddress==1)return x?S.yield(x.get(L),2):S.return();D=S.yieldResult;return!D||!_.Oy(D)||!isNaN(Number(D.data.expireTimestampMs))&&D.isExpired()?S.return():S.return(D)})};
YfG=function(x){var L=_.yY().resolve(yG).getState().entities;return x.playlistId?kYb(L,x.playlistId):!1};
FE4=function(x,L){var D;if(L==null?0:(D=L.requestTemplate)==null?0:D.panelId)x.panelId=L.requestTemplate.panelId;var S;if(L==null?0:(S=L.requestTemplate)==null?0:S.params)x.params=L.requestTemplate.params};
T20=function(){if(s$f)return s$f();var x=!_.u("idb_response_store_auth_killswitch"),L={};s$f=ZA("yt-it-response-store",{objectStores:(L.ResponseStore={addedAtVersion:1},L),shared:!x,upgrade:function(D,S){S(1)&&(D=fK(D,"ResponseStore",{keyPath:["key","clientName"]}),oE(D,"byExpiration","expireTimestampMs"),oE(D,"byInterface","clientName"))},
version:1});return s$f()};
eb0=function(x){return _.xg(T20(),x)};
GYp=function(x,L){var D;return _.I(function(S){return S.nextAddress==1?S.yield(_.OD(),2):(D=S.yieldResult)?S.return(new Rbs(x,L,D)):S.return()})};
CLf=function(x){var L=Object.keys(x)[0];if(L)return x.screenExit&&(L=L+";"+x.screenExit.screen),L};
lX0=function(x){var L=new Map;x=_.O(x);for(var D=x.next();!D.done;D=x.next())D=D.value,D!=null&&(L.has(D.taskType)||L.set(D.taskType,[]),L.get(D.taskType).push(D));return L};
Uxb=function(x){x=[].concat(_.lP(x)).sort(function(D,S){return D-S});
var L=Math.floor(x.length/2);return x.length%2?x[L]:(x[L-1]+x[L])/2};
WEf=function(x,L){x=x===void 0?Ubc:x;L=L===void 0?{}:L;_.KK("yt.logging.errors.log",_.BI);Cks();w0N(ALn(),L);window.onerror=x;B2b=ls3;window.addEventListener("unhandledrejection",function(D){if(D.reason instanceof Error){var S=D.reason;_.A7(S,{source:"unhandledrejection"});S.name==="AbortError"&&(S.level="WARNING")}ls3(D.reason);D.preventDefault()})};
_.qfc=function(x){var L,D,S,Q,J,Z,y,E,P,v,V,h,H,k,T,G,U,l,X,f,N,z,xf,K3,P4,kf,H4,p3,w0,Rn,lG,xX,UR,c4,hr,GB,C2,X9,vs,Zp;return _.I(function(K2){if(K2.nextAddress==1)return K2.yield(_.YN(x,{mode:"readonly",enableRetries:!0},function(F2){return Ft(F2,"playbackData").then(function(II){var jW=II.map(function(ER){return ER.transfer}).filter(function(ER){return!!ER}),J5=II.map(function(ER){return ER.offlineVideoPolicy}).filter(function(ER){return!!ER}),Eq=II.filter(function(ER){return!!ER.key}).map(function(ER){return _.Ha(_.va(ER.key).entityId,
"downloadStatusEntity")});
jW=Ft(F2,"transfer",jW);J5=Ft(F2,"offlineVideoPolicy",J5);Eq=Ft(F2,"downloadStatusEntity",Eq);var zB=jW.then(function(ER){ER=ER.reduce(function(qh,g$){(g$==null?0:g$.offlineVideoStreams)&&qh.push.apply(qh,_.lP(g$.offlineVideoStreams));return qh},[]).filter(function(qh){return!!qh});
return Ft(F2,"offlineVideoStreams",ER)});
return oZ.all([jW,J5,zB,Eq]).then(function(ER){var qh=_.O(ER);ER=qh.next().value;var g$=qh.next().value;var p2=qh.next().value;qh=qh.next().value;return[II,ER,g$,p2,qh]})})}),2);
if(K2.nextAddress!=3)return L=K2.yieldResult,K2.yield(_.YN(x,{mode:"readonly",enableRetries:!0},function(F2){return Ft(F2,"mainDownloadsListEntity").then(function(II){var jW,J5;return(J5=(jW=II[0])==null?void 0:jW.downloads)!=null?J5:[]})}),3);
D=K2.yieldResult;S=_.O(L);Q=S.next().value;J=S.next().value;Z=S.next().value;y=S.next().value;E=S.next().value;P=Q;v=J;V=Z;h=y;H=E;k={};T={};G={};U={};l={};X=[];f=_.O(v);for(N=f.next();!N.done;N=f.next())(z=N.value)&&(k[z.key]=z);xf=_.O(V);for(K3=xf.next();!K3.done;K3=xf.next())(P4=K3.value)&&(T[P4.key]=P4);kf=_.O(H);for(H4=kf.next();!H4.done;H4=kf.next())(p3=H4.value)&&(G[p3.key]=p3);w0=_.O(h);for(Rn=w0.next();!Rn.done;Rn=w0.next())(lG=Rn.value)&&(U[lG.key]=lG);xX=_.O(D);for(UR=xX.next();!UR.done;UR=
xX.next())c4=UR.value,hr=void 0,l[(hr=c4.videoItem)!=null?hr:""]=!0,c4.videoItem&&(C2=GB=void 0,X9=(C2=(GB=_.va(c4.videoItem))==null?void 0:GB.entityId)!=null?C2:"",X.push({externalVideoId:X9}));vs=P.filter(function(F2){if(!F2||!F2.key||!F2.offlineVideoPolicy)return!1;F2=_.va(F2.key).entityId;F2=_.Ha(F2,"downloadStatusEntity");var II;return!(F2&&((II=G[F2])==null?void 0:II.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
Zp=vs.map(function(F2){var II=k[F2.transfer],jW=[];if(II==null?0:II.offlineVideoStreams)for(var J5=_.O(II.offlineVideoStreams),Eq=J5.next();!Eq.done;Eq=J5.next())(Eq=U[Eq.value])&&jW.push(Eq);J5=T[F2.offlineVideoPolicy];Eq=l;var zB=F2==null?void 0:F2.playerResponseTimestamp,ER=_.va(J5.key).entityId;F2=_.Ha(ER,"mainVideoEntity");if(J5.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var qh="OFFLINE_VIDEO_STATE_DISABLED";J5.expirationTimestamp&&Number(J5.expirationTimestamp)<Date.now()/1E3&&(qh="OFFLINE_VIDEO_STATE_EXPIRED")}else if(J5.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")qh="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(II==null?void 0:II.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":qh="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":qh="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":qh="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":qh="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":qh="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":qh="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:qh="OFFLINE_VIDEO_STATE_UNKNOWN"}if(qh==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(II==null?void 0:II.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":qh="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":qh="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":qh=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}ER={id:ER,videoState:qh};if(II==null?0:II.cotn)ER.cotn=II.cotn;if(II==null?0:II.maximumDownloadQuality)ER.selectedVideoQuality=II==null?void 0:II.maximumDownloadQuality;if(II==null?0:II.lastProgressTimeMs)ER.lastProgressTimeMs=II.lastProgressTimeMs;zB&&(ER.playerResponseSavedTimeMs=String(Number(zB)*1E3));II=String;zB=0;jW=_.O(jW);for(qh=jW.next();!qh.done;qh=jW.next())if(qh=qh.value,qh.streamsProgress){qh=_.O(qh.streamsProgress);for(var g$=qh.next();!g$.done;g$=
qh.next()){var p2=void 0;zB+=Number((p2=g$.value.numBytesDownloaded)!=null?p2:0)}}ER.downloadedBytes=II(zB);ER.selectedOfflineMode=Eq[F2]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";J5.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(ER.offlinePlaybackDisabledReason=J5.offlinePlaybackDisabledReason);return ER});
return K2.return({offlineVideos:Zp,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:X}}})})};
Anb=function(){var x;return _.I(function(L){return L.nextAddress==1?L.yield(_.p7(),2):(x=L.yieldResult)?L.return(_.qfc(x)):L.return({state:"PES Unavailable"})})};
N2c=function(){var x,L,D,S;return _.I(function(Q){if(Q.nextAddress==1)return Q.yield(_.p7(),2);if(Q.nextAddress!=3)return(x=Q.yieldResult)?Q.yield($xh(x),3):Q.return({state:"PES Unavailable"});L=Q.yieldResult;D={};S=L.reduce(function(J,Z){J[Z.key]=Z;return J},D);
return Q.return(rnw(S))})};
rnw=function(x){for(var L={},D=[],S=_.O(Object.keys(x)),Q=S.next();!Q.done;Q=S.next()){var J=Q.value;Q=x[J];var Z=void 0;if(((Z=Q)==null?void 0:Z.entityType)==="mainVideoEntity"){delete x[J];var y=Q.data;Q={};if(y){var E=void 0;Z=(E=y.videoId)!=null?E:"vid-"+J;J=x;Q.video=y;delete Q.video.formattedDescription;delete Q.video.thumbnail;y.owner&&(E=J[y.owner],E==null?0:E.data)&&(delete J[E.key],Q.video.owner=E.data,delete Q.video.owner.avatar);if(y=y.downloadState)if(E=J[y],E==null?0:E.data)if(delete J[y],
y=E.data.playbackData)if(E=J[y],E!=null&&E.data){delete J[y];y=E.data;delete y.playerResponseJson;Q.playbackData=y;if(y.transfer&&(E=J[y.transfer],E==null?0:E.data)){delete J[E.key];var P=E.data;Q.transfer=P;E=[];P=_.O(P.offlineVideoStreams||[]);for(var v=P.next();!v.done;v=P.next())if(v=J[v.value])delete J[v.key],E.push(v.data);E&&(Q.streams=E)}(y=y.offlineVideoPolicy)&&(y=J[y])&&y.data&&(delete J[y.key],Q.offlineVideoPolicy=y.data)}L[Z]=Q}}else Q&&Q.entityType==="offlineOrchestrationActionWrapperEntity"&&
Q.data&&(delete x[Q.key],Z=Q.data,J=void 0,D.push({id:Z.rootActionId,type:((J=Z.actionProto)==null?void 0:J.actionType)||"",entity:Q}))}L.wrapperEntities=D;Object.keys(x).length>0&&(L.unknownKeys=x);return L};
ix0=function(){var x,L,D,S,Q,J,Z,y,E;return _.I(function(P){if(P.nextAddress==1)return x=!!(new _.Ng("")).expiringStorage_,S=!!((L=_.Qb.crypto)==null?0:(D=L.subtle)==null?0:D.importKey),Q=!!_.Qb.BroadcastChannel,J=!!_.Qb.navigator.locks,P.yield(MR3(),2);Z=P.yieldResult;y=x&&S&&Q&&J&&Z;E={isSupported:y};if(y)return P.return(E);E.missingBrowserFeatures=[];Z||E.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");x||E.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
S||E.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");Q||E.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");J||E.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return P.return(E)})};
fXf=function(){var x;return!((x=IP?IP:null)==null||!x.window)};
_.aXn=function(x){if(_.TN()&&_.kNb("Chromium")>=120){var L=_.oGw().mediaSession;try{L.setActionHandler("enterpictureinpicture",function(){x()})}catch(D){}}};
zb0=function(x){for(var L=[],D=_.O(document.styleSheets),S=D.next(),Q={};!S.done;Q={node$jscomp$731:void 0},S=D.next())Q.node$jscomp$731=S.value.ownerNode,Q.node$jscomp$731&&(Q.node$jscomp$731 instanceof HTMLStyleElement||Q.node$jscomp$731 instanceof HTMLLinkElement)&&L.push(new Promise(function(J){return function(Z){var y=J.node$jscomp$731.cloneNode(!0);y.onload=function(){Z()};
y.onerror=function(){_.qy(Error("pj"));Z()};
x.document.head.appendChild(y)}}(Q)));
return Promise.all(L)};
JUO=function(x){var L=[_.ID(X03),_.ID(cnf),_.ID(nGc)];thO(window.document.documentElement,x.document.documentElement,[_.ID(xnb),_.ID(L7G),_.ID(DnO),_.ID(SZw),_.ID(QG4)]);thO(window.document.body,x.document.body,L)};
thO=function(x,L,D){x=_.O(x.attributes);for(var S=x.next();!S.done;S=x.next())if(S=S.value)try{_.KZ(D,L,S.name,S.value)}catch(Q){}};
Oef=function(x,L){x=new _.Ey(x.document.documentElement);x.start(K7f,L);return x};
Zew=function(x){var L=x.document.documentElement;L.addEventListener("click",function(D){O9b(L,D)});
L.addEventListener("touchstart",function(D){M4c(D)});
L.addEventListener("mousedown",function(D){M4c(D)})};
IrN=function(x,L,D,S){S=S===void 0?!1:S;L=new yUN(L||x,D||x);return{x:x.x+((S===void 0?0:S)?L.lengthX*-1:L.lengthX)*.2,y:x.y+((S===void 0?0:S)?L.lengthY*-1:L.lengthY)*.2}};
EW4=function(x){if(!x)return!1;var L=x.status==="OK"||x.status==="LIVE_STREAM_OFFLINE",D,S,Q,J=(Q=(D=x.errorScreen)==null?void 0:D.playerLegacyDesktopYpcTrailerRenderer)!=null?Q:(S=x.errorScreen)==null?void 0:S.ypcTrailerRenderer;return!!L||!!J};
_.M60=function(x,L){if(!x)return!1;var D,S=(D=x.errorScreen)==null?void 0:D.playerLegacyDesktopYpcOfferRenderer,Q;L=!!(L==null?0:(Q=L.playerOverlayRenderer)==null?0:Q.gatedActionsOverlayRenderer);return!!EW4(x)||!!S||!!L};
jG4=function(x){return dnc(x,0,"gclid",x.search(Pws))>=0||dnc(x,0,"gad_source",x.search(Pws))>=0};
vWp=function(x){var L=[],D=0;return{clear:function(){D=L.length=0},
push:function(S){L[D]=S;D=(D+1)%x},
iterate:function(){return function Q(){var J,Z,y,E;return _.Mk(Q,function(P){switch(P.nextAddress){case 1:_.k2(P,2),J=L.length,Z=0;case 4:if(!(Z<J)){P.jumpTo(2);break}y=D+Z;E=_.dV;return P.yield(L[y%J],7);case 7:E(P.yieldResult);Z++;P.jumpTo(4);break;case 2:_.gP(P),_.pZ(P,0)}})}()}}};
V60=function(x){x.eventsToIgnore||(x.eventsToIgnore=[]);var L=x.eventsToIgnore.map(I00),D=new Set(L),S=vWp(x.bufferSize);return{flush:function(){var Q=Array.from(S.iterate());S.clear();Q=Q.map(function(J){return{name:J.name,timestamp:J.startTime,attributes:J.attributes}});
return JSON.stringify(Q)},
onSpanStart:function(Q){Q.name==="event"&&D.has(Q.attributes.type)||S.push(Q)}}};
hVn=function(x){x=V60(x);var L=x.flush;J2.processors.push({onSpanStart:x.onSpanStart});fsw.subscribe("handleError",function(D){try{D.params.breadcrumbs=L()}catch(S){_.BI(S,"WARNING")}})};
He0=function(){qF("web_tracing_action");_.A_("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
uLf=function(){qF("web_tracing_action");_.A_("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
kqO=function(x,L,D){if(L===void 0){gW3||(uLf(),setInterval(uLf,6E5),gW3=!0);var S="web_tracing_action"}else S=L;var Q,J=((Q=x.endTime)!=null?Q:x.startTime)-x.startTime,Z={};Q=x.name;var y=x.startTime;Z={webTracing:(Z[x.name]=x.attributes,Z)};D=_.fm(s_f)(Q,J,y,Z,D,S);if(x.children)for(x=_.O(x.children),S=x.next();!S.done;S=x.next())kqO(S.value,L,D)};
pLb=function(x){var L=jfw.bind(null,"yt.telemetry_extension");window.addEventListener("message",function(D){D.data&&typeof D.data==="object"&&(D=D.data,D.from==="extension"&&D.app==="yt.telemetry"&&(L("Received message from extension",D),x.onMessage(D)))});
return function(D,S){D={app:"yt.telemetry",from:"app",key:D,payload:S};L("Sending message to extension",D);window.postMessage(D,"*")}};
mnh=function(){var x=x===void 0?3E3:x;var L=pLb({onMessage:function(){}}),D=[];
return{onSpanEnd:function(S){S.parentId==null&&D.push(S)===1&&setTimeout(function(){var Q=[].concat(_.lP(D));D.length=0;L("spansReported",{spans:Q})},x)}}};
YZp=function(){window.performance&&window.performance.getEntriesByType&&window.addEventListener("load",function(){try{var x=window.performance.getEntriesByType("navigation");if(x.length>0){var L=x[0];PZh("pageLoad",{navigationType:be0(L.type),unloadEventStart:Math.round(L.unloadEventStart),unloadEventEnd:Math.round(L.unloadEventEnd),domInteractive:Math.round(L.domInteractive),domContentLoadedEventStart:Math.round(L.domContentLoadedEventStart),domContentLoadedEventEnd:Math.round(L.domContentLoadedEventEnd),
domComplete:Math.round(L.domComplete),loadEventStart:Math.round(L.loadEventStart),loadEventEnd:Math.round(L.loadEventEnd),redirectCount:L.redirectCount},function(){})}}catch(D){}})};
be0=function(x){switch(x){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"}};
T5b=function(){for(var x=XkN.value,L={},D=_.O(x.enabledSpansArray),S=D.next();!S.done;S=D.next())L[S.value]=!0;if(x.exportToCsi||x.exportBreadcrumbs)L={sessionId:z70(),enabledSpans:L},J2.initialized=!0,J2.sessionId=L.sessionId||"",J2.enabledSpans=L.enabledSpans,L.shouldSampleFn!=null&&(J2.shouldSampleFn=L.shouldSampleFn),EKn("pageLoad")&&YZp();x.exportBreadcrumbs&&hVn({eventsToIgnore:F7f,bufferSize:x.bufferSize});x.exportToCsi&&J2.processors.push(sGG);x.exportToDevTools&&(x=mnh(),J2.processors.push(x))};
eV0=function(x){return new Promise(function(L){window.setTimeout(L,x)})};
RVc=function(x){var L={bicf:function(J){x.xkw=J},
blc:function(){return x.getLatestChallengeResponse()},
bcr:function(J){x.f4p.push(J)}},D=window;
D.ntpevasrs=L;if(D.ntpqfbel!==void 0)for(var S=_.O(D.ntpqfbel),Q=S.next();!Q.done;Q=S.next())Q=Q.value,Q(L);D.ntpqfbel=void 0};
GqO=function(x){return _.I(function(L){if(L.nextAddress==1)return _.HH(L,2),L.yield(x.bwm(),4);if(L.nextAddress!=2)return _.nH(L,0);_.mW(L);_.Y2(L)})};
Cw0=function(x){var L,D;(L=x.ytcsi)==null||(D=L.tick)==null||D.call(L,"pot_ist")};
lrf=function(x){if(x instanceof Error){var L=_.o1("yt.logging.errors.log");L&&L(x,"WARNING")}};
Unh=function(x){try{var L=JSON.parse(x);if(L.bgChallenge)return L}catch(D){}};
B5c=function(){var x=window,L={networkStatusManagerPromise:_.yY().resolve(new X$f(_.cW)),initialChallengeSli:_.u("wpo_att_sli")?new _.P_G("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};x=x===void 0?window:x;var D=x.ytAtR,S;L==null||(S=L.initialChallengeSli)==null||_.PF(S);if(D){if(D=Unh(D)){var Q;L==null||(Q=L.initialChallengeSli)==null||_.jK(Q,"SUCCESS");wL0(D,L)}x.ytAtR=void 0}else x.ytAtRC=function(J){if(J=Unh(J)){var Z;L==null||(Z=L.initialChallengeSli)==null||
_.jK(Z,"SUCCESS");wL0(J,L);x.ytAtRC=void 0}}};
AUf=function(){if(W70)return W70;try{var x=_.pw("IFRAME");_.ci(x,_.Pn(qZ3));x.sandbox.add("allow-same-origin");x.style.display="none";document.body.appendChild(x);return W70=x}catch(L){x=new _.RZ("Failed to create sandbox iframe"),_.BI(x)}};
$nN=function(x){var L,D;return(D=x==null?void 0:(L=x.contentWindow)==null?void 0:L.fetch)!=null?D:window.fetch};
rUs=function(x){var L,D;return(D=x==null?void 0:(L=x.contentWindow)==null?void 0:L.Request)!=null?D:window.Request};
N5n=function(x){var L,D;return(D=x==null?void 0:(L=x.contentWindow)==null?void 0:L.TextDecoder)!=null?D:window.TextDecoder};
ief=function(){return function(x,L){_.$6("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS")[x]=L}};
frn=function(){return function(x,L){var D={};D[x]=L;x=_.fm(_.YF0)(D);Object.keys(x).length>0&&_.W$(x)}};
zVf=function(){if(Qlw()==="hidden")var x="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else Qlw()==="visible"&&(x="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",oWf=null);x&&ars(x)};
ars=function(x){if(x==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||x==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(XLc===x)return;XLc=x}var L=9E4+Math.random()*2E3;if(x!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.Z8()>L)&&Qlw()==="visible"){L=-1;oWf&&(L=Math.round((0,_.y5)()-oWf));var D=String;var S=_.o1("_fact",window);S=S==null||S==-1?-1:Math.max(Date.now()-S,0);_.Uh("foregroundHeartbeat",{firstActivityMs:D(S),clientDocumentNonce:Xx3,index:String(cUN),lastEventDeltaMs:String(L),trigger:x});
_.KK("_fact",-1,window);cUN++;oWf=(0,_.y5)()}};
_.nWf=function(){try{return!!self.sessionStorage}catch(x){return!1}};
t6n=function(){var x=navigator;return new Promise(function(L,D){var S;(S=x.webkitTemporaryStorage)!=null&&S.queryUsageAndQuota?x.webkitTemporaryStorage.queryUsageAndQuota(function(Q,J){L({usage:Q,quota:J})},function(Q){D(Q)}):D(Error("zj"))})};
xdh=function(x,L){var D={errorSeverity:L.errorSeverity.toString(),wizFeatureFlags:Object.entries(L.featureFlags).join("\n")};GRn(L,D);L=L.errorSeverity;L===3?_.BI(x,"ERROR",void 0,void 0,void 0,D):L===2&&_.BI(x,"WARNING",void 0,void 0,void 0,D);_.u("cow_if_errors_in_popup")&&L===3&&x.message.indexOf("<If>")!==-1&&window.alert(x.message)};
Lfs=function(x,L){var D=Qa.get(x)||{layerNode:L};D.layerNode=L;IFw(x,D);x.getScreenLayer=function(){return vF(D.layerNode)}};
Ddc=function(x){var L;x=x.parentNode;for(var D;x&&((L=Qa.get(x))==null||!L.isRenderer)&&!((D=x.polymerController)!=null?D:x).isRenderer_;)x=x.parentNode||x.host;if(L=x)return Qa.get(L)};
ST0=function(x){if(x){Qa.delete(x);var L=_.yY().resolve(Z5);kb3(x,L)}};
JWf=function(x,L,D){if(D===void 0?0:D){if(D=x.getAttribute("client-ve-type"),L.data&&!L.disableReactiveLogging||D)_.qN(function(){Qp0(x,_.WB(L.data))},"kg"),_.wH(function(){return void ST0(x)})}else typeof L.data!=="function"&&Qp0(x,L.data)};
Qp0=function(x,L){KfO++;OMb(x,L)&&_.WW.addJob(function(){_.VG(_.WW,function(){if(OMb(x,L)&&x.ownerDocument.documentElement===document.documentElement&&x){var D;if(x.getAttribute("layer")){var S=D=Number(x.getAttribute("layer")),Q=Qa.get(x);Q?Q.layerNode.layer=S:Lfs(x,new ZMb(S));(S=Ddc(x))&&(Q=Qa.get(x))!=null&&(Q.layerNode.parent=S.layerNode)}else if(D=Qa.get(x))D=vF(D.layerNode);else{D=vF;S=new ZMb;if(Q=Ddc(x))S.parent=Q.layerNode;Lfs(x,S);D=D(S)}D!=null||(D=0);S=x.getAttribute("client-ve-type");
Q=Number(S);var J=!1;S=!1;var Z=Qa.get(x),y;if((y=Z)&&!(y=Z[yWO]!==L)&&(y=Q)){var E;y=((E=Qa.get(x))==null?void 0:E.clientVeType)===void 0}y&&(Z[yWO]=L,J=S=Z.isRenderer=!0);Qa.has(x)&&(Qa.get(x).clientVeType=Q);x.visualElement&&(S=!0);if(_.u("wiz_next_ld_fix_client_ve_spec")){var P;E=((P=_.g(L==null?void 0:L.rendererContext,_.T$))==null?void 0:P.loggingDirectives)||(L==null?void 0:L.loggingDirectives)}else E=L==null?void 0:L.loggingDirectives;E&&E.clientVeSpec&&(P=IjG(_.Yi(),x),P=_.E_0(_.sk(),E,P||
void 0,D))&&(x.visualElement=P);!x.visualElement&&Q&&J&&(x.veType=Q,P=void 0,_.u("wiz_next_client_ve_parent_fix")&&(P=IjG(_.Yi(),x)),P=_.Ff(_.sk(),x,P,D),x.visualElement=P);S&&(P=_.yY().resolve(Z5),YN4(x,{data:L,observer:P,layer:D,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
OMb=function(x,L){return(L==null?0:L.trackingParams)||(L==null?0:L.loggingDirectives)||_.g(L==null?void 0:L.rendererContext,_.T$)||x.getAttribute("client-ve-type")?!0:!1};
MkO=function(x,L,D){x.componentType!==Ru&&D instanceof HTMLElement&&L&&!_.u("cow_logging_in_component_wrapper")&&JWf(D,L,!0)};
v_p=function(){if(!ddc){ddc=!0;var x=Object.assign({},{flushRenderEffectsDuringRender:!0,enableWizQueueEffectAndOnInitInitialRuns:_.u("enable_wiz_queue_effect_and_on_init_initial_runs")},{handleError:xdh,enableComponentStacksInErrorMessages:!1});Object.assign(Iu,x);XoN=Pnp;jpG();LmO=i40;n7c=fMp}};
jpG=function(){_.u("cow_logging_in_component_wrapper")?(Lnf=function(x,L){L instanceof HTMLElement&&JWf(L,x,!0)},WzN=function(){}):(Lnf=function(){},WzN=MkO)};
Vkw=function(x,L,D){L=L===void 0?{}:L;var S,Q=(S=_.g(x.commandMetadata,_.gg))==null?void 0:S.url;S=L.form||{};!D||S.element||S.skipDefaultElement||(L.form=L.form||{},L.form.element=D);if(Q&&Q!=="/service_ajax")return{type:0,command:x,form:L.form};if(_.u("kevlar_service_command_check")){if(_.nu(_.yY().resolve(_.i1),x))return Object.assign({},{type:1,command:x},L)}else{var J;if((J=_.g(x.commandMetadata,_.gg))==null?0:J.apiUrl)return Object.assign({},{type:1,command:x},L)}return{type:2,command:x,form:L.form}};
hn0=function(x){if(x.form){var L=x.form,D=Object.assign({},L);L=L.element;D=(delete D.element,D);if(L)return[_.jq(L,[x.command,D,x.commandController])]}return[]};
HM3=function(x){if(x.form){var L=x.form,D=Object.assign({},L);L=L.element;D=(delete D.element,D);L&&_.v$(L,[x.command],L,D)}};
g_h=function(x,L,D){var S=new uyf(x,L),Q=new hK(x,L,D);x={"/youtubei/v1/browse":new HF(x,L,D),"/youtubei/v1/player":S,"/youtubei/v1/navigation/resolve_url":new uy,"/youtubei/v1/next":Q,"/youtubei/v1/guide":new gV(D),"/youtubei/v1/search":new kv(x,L,D),"/youtubei/v1/reel/reel_item_watch":new mI(x,L,D),"/youtubei/v1/get_watch":new by(S,Q)};x["/youtubei/v1/account/account_menu"]=new Yv;x["/youtubei/v1/notification/get_notification_menu"]=new Fo;return x};
Tn=function(){var x=_.yY().resolve(sy);return Promise.resolve(kvO(x,_.Qb.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
pwn=function(x){return x&&(x=_.eK(_.DvG(x)))?(new URLSearchParams(x)).get("service"):null};
CG=function(x,L){_.hD(_.RP(),function(){_.$T("adl")});
_.yY().resolve(mdw)(L);x=x.root;x.loadData&&x.loadData(L);(L==null?0:L.response)?_.jK(VHs(),"SUCCESS"):_.qy(new _.RZ("Lifecycle: No response in data",_.rO("IS_SHELL_LOAD"),L?L.page:"NO_PAGE",L?L.endpoint:"NO_ENDPOINT"));x.polymerController.$["page-manager"].lazyPrepareCriticalPages((L==null?void 0:L.page)||"",L.endpoint);var D,S;((S=_.g(L==null?void 0:(D=L.endpoint)==null?void 0:D.commandMetadata,_.gg))==null?0:S.webPageType)&&_.Jd().dispatch(_.Gn(_.g(L.endpoint.commandMetadata,_.gg).webPageType))};
bM0=function(){var x,L;return _.I(function(D){switch(D.nextAddress){case 1:x=window;if(!x.getDataPromise){D.jumpTo(2);break}_.HH(D,3);return D.yield(x.getDataPromise(),5);case 5:return D.return(D.yieldResult);case 3:return _.mW(D),D.yield(Tn(),6);case 6:return D.return(D.yieldResult);case 2:if(x.getInitialData)return L=x.getInitialData(),x.getInitialData=void 0,D.return(L);throw Error("Bj`"+_.Qb.location.href);}})};
Ffn=function(){_.Au("CSI_SERVICE_NAME","youtube");_.W$({loadType:"cold"});_.u("kevlar_log_lcp")&&YT0(function(x){_.$T("lcp",x.value)})};
sp0=function(){var x=_.om(document.location.href,"enable");x&&x.indexOf("scraper")>-1&&_.Au("ADD_SCRAPER_ATTRIBUTES",!0)};
Udn=function(x){var L=x.root;x=[TlG,enG,_.ly];_.u("web_feedback_endpoint_autolog_allowlist_killswitch")&&x.push(_.Uy,RnG);var D=[];_.u("web_talk_to_recs_double_click_fix")&&D.push(_.Gv0,Cnf);ljh(function(S,Q){return Vkw(S,Q,L)},function(S){if(!S.command)return[];
var Q;((Q=S.form)==null?0:Q.element)?S.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},S.form,{endpoint:S.command})})):L.handleNavigate(S);return[]},x,D);
_.yY().addProvider({provide:_.E2,useValue:_.pI.instance})};
Blp=function(){var x={},L={},D;for(D in wwc){var S=_.O(_.HB(wwc[D],void 0,"IAtZ7"));x[D]=S.next().value;L[D]=S.next().value}return[x,function(Q){for(var J in Q){var Z=void 0;(Z=L[J])==null||Z(Q[J])}}]};
_.wV=function(x,L,D){L=L===void 0?!1:L;var S=_.wk.getValueByKeys(x,"contents","twoColumnWatchNextResults","results","results","contents"),Q=_.wk.getValueByKeys(x,"contents","twoColumnWatchNextResults","playlist","playlist")||null;L&&(Q=null);var J=L=null;if(Q)L=_.wk.getValueByKeys(Q,"titleText"),J=_.wk.unsafeClone(_.wk.getValueByKeys(Q,"longBylineText")),S="",J&&(S=_.SR(J)),J=_.Dv(S);else if(S){S=_.O(S);for(var Z=S.next();!Z.done;Z=S.next())Z=Z.value,Z.videoPrimaryInfoRenderer&&(L=_.wk.getValueByKeys.apply(_.wk,
[Z].concat(_.lP(Wfc)))),Z.videoSecondaryInfoRenderer&&(J=_.wk.getValueByKeys.apply(_.wk,[Z].concat(_.lP(qTc))))}else _.X0(Error("Gj"));var y;x.currentVideoEndpoint?y=x.currentVideoEndpoint:_.X0(Error("Hj"));var E;D&&(E=_.wk.getValueByKeys(D,"playabilityStatus","miniplayer","miniplayerRenderer"));x={miniplayerTitle:L,miniplayerSubtitle:J,watchEndpoint:y,playlistData:Q};E&&(x.miniplayerRenderer=E);return x};
AWh=function(x){if(x)return _.$i(x)};
_.$df=function(){return{isFullscreen:function(){throw Error("Ij");},
toggleFullscreen:function(){throw Error("Jj");},
exitFullscreen:function(){throw Error("Kj");},
isAutonavEnabled:function(){throw Error("Lj");},
setAutonavEnabled:function(){throw Error("Mj");},
isAutoplaySetExplicitly:function(){throw Error("Nj");}}};
rWc=function(x){return x.videoDuration?x.numTaps>1&&x.tapDirection!==0?_.BF(x.draggedTime/x.videoDuration,0,1):_.BF((x.playedTime||0)/x.videoDuration,0,1):0};
Nlh=function(x){return x.videoDuration?x.isDragging||x.numTaps>1&&x.tapDirection!==0?_.BF(x.draggedTime/x.videoDuration,0,1):_.BF((x.playedTime||0)/x.videoDuration,0,1):0};
fjh=function(x){var L,D,S;return _.g(x==null?void 0:(L=x.markersMap)==null?void 0:(D=L.find(function(Q){return Q.key==="HEATSEEKER"}))==null?void 0:(S=D.value)==null?void 0:S.heatmap,iMs)};
o_h=function(x){var L,D;return(D=(L=fjh(x))==null?void 0:L.heatMarkersDecorations)!=null?D:[]};
ajO=function(x){if(_.u("mweb_supported_chapters_killswitch"))return!0;var L;return!!(x==null?0:(L=x.markersMap)==null?0:L.find(function(D){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(D.key)}))};
_.zn3=function(x){var L=Object,D=L.assign,S;x={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(S=x==null?void 0:x.getPlayerState())!=null?S:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return D.call(L,{},{isLive:!1,isPlaylist:!1,playerType:1,isProbablyAScreenreaderUser:!1,videoId:void 0,captionsEnabled:!1,captionsAvailable:!1,volume:0,volumeMuted:!0,draggedYDistance:0,isLooping:!1,isLongPressSpeedup:!1},{enabledFullscreenControlsGesture:!1,expandedFullscreenControls:!1,
isFullscreen:!1,numTaps:0,tapDirection:0},{autonavCanceled:!1,autonavEnabled:!1,autonavPaused:!1,autonavCountdown:0,showAutonavMessage:!1},x,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
Xw0=function(x){return function(L){var D=x(),S,Q=(S=D.playerApi)==null?void 0:S.getPlayerState();L&&L!==D.playerState&&(L===1||L===2)&&D.setState({playerState:Q})}};
n_b=function(x){return function(L){var D=x(),S=D.playerApi;S&&(L==null?void 0:L.type)==="newdata"&&(cWb&&(clearTimeout(cWb),cWb=void 0),_.u("web_shorts_use_progress_state_for_gapless")?(L=S==null?void 0:S.getProgressState(L==null?void 0:L.playertype),L=L.seekableEnd-L.seekableStart):L=S==null?void 0:S.getDuration(L==null?void 0:L.playertype),D.setState({playedTime:0,videoDuration:L}))}};
tkp=function(x){return function(L){var D=x(),S=D.playerApi;if(S){var Q=S.getPresentingPlayerType();_.u("web_shorts_use_progress_state_for_gapless")?(S=S.getProgressState(Q),S=S.seekableEnd-S.seekableStart):S=S.getDuration(Q);D.setState({playedTime:L,videoDuration:S})}}};
LyG=function(x){_.Tk(112394,x,function(){return x2w},function(L){x2w=L})};
QxO=function(x,L){if(!x)return[];var D,S,Q;x=((D=x.markersMap)==null?void 0:(S=D.find(function(J){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(J.key)}))==null?void 0:(Q=S.value)==null?void 0:Q.chapters)||[];
!D24(x)||(L==null?0:L.ignoreStub)||(x=[Snb()].concat(_.lP(x)));return x};
Snb=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
D24=function(x){if(x.length===0)return!1;var L;return((L=_.g(x[0],WF))==null?void 0:L.timeRangeStartMillis)!==0};
qk=function(x){return x?x.timeRangeStartMillis||0:0};
Ky0=function(x,L){if(x.isDragging&&L)return x=Jv4(x,L),x===-1?Snb():QxO(L)[x]};
Jv4=function(x,L){return x.isDragging&&L?QxO(L,{ignoreStub:!0}).findIndex(function(D,S,Q){D=OQn(x);return ZQ3(D,Q,S).scrubberHovering}):-1};
OQn=function(x){return Object.assign({},x,{videoDuration:x.videoDuration*1E3,playedTime:x.playedTime*1E3,draggedTime:x.draggedTime*1E3})};
ZQ3=function(x,L,D){var S=qk(_.g(L[D],WF));L=qk(_.g(L[D+1],WF))||x.videoDuration;D=x.isDragging;var Q;if(Q=x.isDragging)Q=x.draggedTime,Q=Q!==null&&Q>=S&&Q<L;var J=x.playedTime;return J!==null&&J>=S&&J<L?{videoPosition:"active",isScrubbing:D,scrubberHovering:Q}:x.playedTime<S?{videoPosition:"pending",isScrubbing:D,scrubberHovering:Q}:{videoPosition:"seen",isScrubbing:D,scrubberHovering:Q}};
yvc=function(x,L){return x.videoPosition==="seen"||(L===void 0?0:L)>0};
IDh=function(x,L,D){L=x/L.storyboardInterval;var S=QxO(D);if(!S.length)return-L*72;D=0;S=_.O(S);for(var Q=S.next();!Q.done;Q=S.next())if(qk(_.g(Q.value,WF))/1E3<x)D++;else break;return-(L*72)-D*56};
EdG=function(x){return x?x.width/x.columns:0};
MXc=function(x){return x.isHovering?x.hoveredTime:x.draggedTime};
d2h=function(x,L){x=x.draggedTime*1E3;return x>=L.visibleTimeRangeStartMillis&&x<=L.visibleTimeRangeEndMillis};
_.PRN=function(x){if(x===void 0||Number.isNaN(x))return"--:--";var L=Math.abs(Math.floor(x)),D=Math.floor(L/86400),S=Math.floor(L%86400/3600),Q=Math.floor(L%3600/60);L=Math.floor(L%60);var J="";D>0&&(J+=D+":",S<10&&(J+="0"));if(D>0||S>0)J+=S+":",Q<10&&(J+="0");J+=Q+":";L<10&&(J+="0");J+=L;return x>=0?J:"-"+J};
jxc=function(x,L){return function(){var D=MXc(x());var S=L();var Q=x().playerApi;if(Q&&Q.getNumberOfStoryboardLevels()!==0){var J=Q.getStoryboardFrameIndex(D,1);J!==-1?S=Q.getStoryboardFrame(J,1):(D=Q.getStoryboardFrameIndex(D,0),Q=Q.getStoryboardFrame(D,0),S&&Q&&(Q.height*=3,Q.width*=3),S=Q)}else S=null;if(!S)return null;L()&&(S.width=90*S.columns,S.height=160*S.rows);return S}};
_.AK=function(x){if(!x||x.getVideoData)return x};
vdN=function(){var x;return{playerApi:(x=_.HX())!=null?x:void 0}};
VXf=function(x){var L;_.I(function(D){if(D.nextAddress==1)return D.yield(_.hL(),2);if(L=D.yieldResult)L.unMute(!0),L.setVolume(x,!0);_.Y2(D)})};
hHc=function(x,L){x&&(x.value=""+L,x.style.setProperty("--gradient-percent",L+"%"))};
HQw=function(x){var L;return(L=x==null?void 0:x.value)!=null?L:0};
uFf=function(){var x;_.I(function(L){if(L.nextAddress==1)return L.yield(_.hL(),2);x=L.yieldResult;if(!x)return L.return();x.isMuted()?x.unMute(!0):x.mute(!0);_.Y2(L)})};
gd3=function(x){var L=_.yY().resolve(_.iy).getPlayerElement();L&&x&&(x===1?L.pause():L.play())};
k54=function(x){_.P$(x,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
ptf=function(x){_.P$(x,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
bQf=function(x){return _.lf(x.document.body,function(){return _.M(m2f,null)},"Zg")};
YnO=function(){var x=window.performance.getEntriesByType("navigation");return x?x.map(function(L){return L.type}).includes("reload"):!1};
lDs=function(){fG(fG(fG(fG(fG(fG(fG(_.yY().resolve(_.oP),_.Fyh),_.sx0),_.TR3),_.eHh),_.RHG),_.G5h),_.CRG)};
U2f=function(x,L){L=L===void 0?!1:L;var D,S,Q,J;return _.I(function(Z){if(Z.nextAddress==1)return L||!_.u("kevlar_shorts_seedless_retry_initial_load")||(D=window,S=!(!D.getDataPromise&&!D.getInitialData),S)?Z.yield(bM0(),2):(setTimeout(U2f.bind(window,x,!0),1E3),Z.return());if(Z.nextAddress!=3)return Q=Z.yieldResult,Z.yield(wtN(Q),3);J=Z.yieldResult;CG(x,J);_.Y2(Z)})};
wtN=function(x){var L;if((L=x.response)==null||!L.replacementEndpoint)return _.V0(x);L=_.yY().resolve(sy);x=x.response;_.g(x.replacementEndpoint,_.TF)&&x.sequenceContinuation&&(_.g(x.replacementEndpoint,_.TF).sequenceParams=x.sequenceContinuation);return aP(L,x.replacementEndpoint,{},_.Qb.location.href,"shorts",function(){},function(){return!1})};
Wyb=function(x){var L=_.yY().resolve(BRf);x.playerResponse&&L.handleResponse(x.playerResponse);x.response&&L.handleResponse(x.response)};
qnG=function(x){var L=_.Jd(),D,S=_.g((D=x.response)==null?void 0:D.frameworkUpdates,Ds),Q;D=_.g((Q=x.playerResponse)==null?void 0:Q.frameworkUpdates,Ds);var J;x=_.g((J=x.reelWatchSequenceResponse)==null?void 0:J.frameworkUpdates,Ds);S&&_.b6(S,L);D&&_.b6(D,L);x&&_.b6(x,L)};
Avb=function(x){var L;_.u("enable_redirect_linking_for_desktop_web_client")&&((L=window.location.hash)==null?0:L.includes("redirect_state"))&&x.url&&(x.url=x.url.toString()+window.location.hash)};
NRp=function(x){var L=_.yY(),D=L.resolve(sy);L=L.resolve(_.$2G);x.endpoint&&(D=rvh(D,x.endpoint),D.content&&x.response&&_.zn(L,x.response,D.content),D.player&&x.playerResponse&&_.zn(L,x.playerResponse,D.player),D.reelSequence&&x.reelWatchSequenceResponse&&_.zn(L,x.reelWatchSequenceResponse,D.reelSequence))};
Xo=function(x,L){Wyb(L);qnG(L);var D;(L==null?0:L.url)&&((D=window.location.hash)==null?0:D.includes("redirect_state"))&&(Avb(L),(D=pwn(L.url))&&_.dg(x.root,"yt-initialize-third-party",[D,L]));NRp(L);D=_.yY();var S=D.resolve(iQf);L.playerResponse&&D.resolve(fDw).handleResponse(L.playerResponse);if(L.playerResponse){D=void 0;if(_.u("ab_v_vid_sig")&&L.endpoint){var Q,J=(Q=_.g(L.endpoint,_.L6))!=null?Q:_.g(L.endpoint,_.TF);J&&(D=J.videoId)}od4(S,L.playerResponse,D)}L.playerResponse&&qG0(L.playerResponse)&&
_.u("web_enable_ab_rsp_cl")?MzG().then(function(){aD0(S,L.playerResponse);CG(x,L)}):CG(x,L)};
Xt0=function(x){if(x=x.root.data){var L=_.yY().resolve(zHG);x.endpoint&&(x.response&&L.handleResponse(x.response,void 0,document.querySelector("ytd-app")),x.playerResponse&&L.handleResponse(x.playerResponse),x.reelWatchSequenceResponse&&L.handleResponse(x.reelWatchSequenceResponse))}};
cvh=function(x){var L,D,S,Q,J,Z;return _.I(function(y){switch(y.nextAddress){case 1:L=window;if(!L.getDataPromise){y.jumpTo(2);break}_.HH(y,3);return y.yield(L.getDataPromise(),5);case 5:D=y.yieldResult;Xo(x,D);_.nH(y,4);break;case 3:return _.mW(y),y.yield(Tn(),6);case 6:S=y.yieldResult,CG(x,S);case 4:return y.return();case 2:if(!_.u("sw_nav_preload_pbj")){y.jumpTo(7);break}L.fetchInitialData=function(){var E;return _.I(function(P){if(P.nextAddress==1)return P.yield(Tn(),2);E=P.yieldResult;CG(x,E);
_.Y2(P)})};
if(L.getInitialData){L.loadInitialData=function(E){Xo(x,E)};
Q=L.getInitialData();L.getInitialData=void 0;Xo(x,Q);y.jumpTo(8);break}L.fetchInitialData=void 0;return y.yield(Tn(),9);case 9:J=y.yieldResult,CG(x,J);case 8:return y.return();case 7:L.getInitialData?(Z=L.getInitialData(),L.getInitialData=void 0,Xo(x,Z)):L.loadInitialData=function(E){Xo(x,E)},_.Y2(y)}})};
ndO=function(x){var L=0;return function(){return L<x.length?{done:!1,value:x[L++]}:{done:!0}}};
tX0=typeof Object.defineProperties=="function"?Object.defineProperty:function(x,L,D){if(x==Array.prototype||x==Object.prototype)return x;x[L]=D.value;return x};
xD4=function(x){x=["object"==typeof globalThis&&globalThis,x,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var L=0;L<x.length;++L){var D=x[L];if(D&&D.Math==Math)return D}throw Error("a");};
_.J3=xD4(this);cF=function(x,L){if(L)a:{var D=_.J3;x=x.split(".");for(var S=0;S<x.length-1;S++){var Q=x[S];if(!(Q in D))break a;D=D[Q]}x=x[x.length-1];S=D[x];L=L(S);L!=S&&L!=null&&tX0(D,x,{configurable:!0,writable:!0,value:L})}};
cF("Symbol",function(x){if(x)return x;var L=function(J,Z){this.$jscomp$symbol$id_=J;tX0(this,"description",{configurable:!0,writable:!0,value:Z})};
L.prototype.toString=function(){return this.$jscomp$symbol$id_};
var D="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",S=0,Q=function(J){if(this instanceof Q)throw new TypeError("b");return new L(D+(J||"")+"_"+S++,J)};
return Q});
cF("Symbol.iterator",function(x){if(x)return x;x=Symbol("c");for(var L="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),D=0;D<L.length;D++){var S=_.J3[L[D]];typeof S==="function"&&typeof S.prototype[x]!="function"&&tX0(S.prototype,x,{configurable:!0,writable:!0,value:function(){return L6O(ndO(this))}})}return x});
cF("Symbol.asyncIterator",function(x){return x?x:Symbol("d")});
var L6O=function(x){x={next:x};x[Symbol.iterator]=function(){return this};
return x},DD4=typeof Object.create=="function"?Object.create:function(x){var L=function(){};
L.prototype=x;return new L},SPO=function(){function x(){function D(){}
new D;Reflect.construct(D,[],function(){});
return new D instanceof D}
if(typeof Reflect!="undefined"&&Reflect.construct){if(x())return Reflect.construct;var L=Reflect.construct;return function(D,S,Q){D=L(D,S);Q&&Reflect.setPrototypeOf(D,Q.prototype);return D}}return function(D,S,Q){Q===void 0&&(Q=D);
Q=DD4(Q.prototype||Object.prototype);return Function.prototype.apply.call(D,Q,S)||Q}}(),Qzp;
if(typeof Object.setPrototypeOf=="function")Qzp=Object.setPrototypeOf;else{var J$0;a:{var K6h={a:!0},OcN={};try{OcN.__proto__=K6h;J$0=OcN.a;break a}catch(x){}J$0=!1}Qzp=J$0?function(x,L){x.__proto__=L;if(x.__proto__!==L)throw new TypeError("e`"+x);return x}:null}nG=Qzp;
_.p=function(x,L){x.prototype=DD4(L.prototype);x.prototype.constructor=x;if(nG)nG(x,L);else for(var D in L)if(D!="prototype")if(Object.defineProperties){var S=Object.getOwnPropertyDescriptor(L,D);S&&Object.defineProperty(x,D,S)}else x[D]=L[D];x.superClass_=L.prototype};
_.O=function(x){var L=typeof Symbol!="undefined"&&Symbol.iterator&&x[Symbol.iterator];if(L)return L.call(x);if(typeof x.length=="number")return{next:ndO(x)};throw Error("f`"+String(x));};
S$=function(x){for(var L,D=[];!(L=x.next()).done;)D.push(L.value);return D};
_.lP=function(x){return x instanceof Array?x:S$(_.O(x))};
_.xI=function(x){return tK(x,x)};
tK=function(x,L){x.raw=L;Object.freeze&&(Object.freeze(x),Object.freeze(L));return x};
Li=function(x,L){return Object.prototype.hasOwnProperty.call(x,L)};
Zc0=function(x){if(x==null)throw new TypeError("g");return Object(x)};
y$b=typeof Object.assign=="function"?Object.assign:function(x,L){x=Zc0(x);for(var D=1;D<arguments.length;D++){var S=arguments[D];if(S)for(var Q in S)Li(S,Q)&&(x[Q]=S[Q])}return x};
cF("Object.assign",function(x){return x||y$b});
var Dc=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},ICh=function(x){if(x.isRunning_)throw new TypeError("i");
x.isRunning_=!0};
Dc.prototype.JSC$8724_next_=function(x){this.yieldResult=x};
var ELh=function(x,L){x.abruptCompletion_={exception:L,isException:!0};x.nextAddress=x.catchAddress_||x.finallyAddress_};
Dc.prototype.return=function(x){this.abruptCompletion_={return:x};this.nextAddress=this.finallyAddress_};
Dc.prototype.yield=function(x,L){this.nextAddress=L;return{value:x}};
Dc.prototype.jumpTo=function(x){this.nextAddress=x};
_.Y2=function(x){x.nextAddress=0};
_.HH=function(x,L,D){x.catchAddress_=L;D!=void 0&&(x.finallyAddress_=D)};
_.k2=function(x,L){x.catchAddress_=0;x.finallyAddress_=L||0};
_.nH=function(x,L,D){x.nextAddress=L;x.catchAddress_=D||0};
_.mW=function(x,L){x.catchAddress_=L||0;L=x.abruptCompletion_.exception;x.abruptCompletion_=null;return L};
_.gP=function(x,L,D,S){S?x.finallyContexts_[S]=x.abruptCompletion_:x.finallyContexts_=[x.abruptCompletion_];x.catchAddress_=L||0;x.finallyAddress_=D||0};
_.pZ=function(x,L,D){D=x.finallyContexts_.splice(D||0)[0];(D=x.abruptCompletion_=x.abruptCompletion_||D)?D.isException?x.nextAddress=x.catchAddress_||x.finallyAddress_:D.jumpTo!=void 0&&x.finallyAddress_<D.jumpTo?(x.nextAddress=D.jumpTo,x.abruptCompletion_=null):x.nextAddress=x.finallyAddress_:x.nextAddress=L};
Mj4=function(x){this.JSC$8729_context_=new Dc;this.program_=x};
Pd4=function(x,L){ICh(x.JSC$8729_context_);var D=x.JSC$8729_context_.yieldAllIterator_;if(D)return dDN(x,"return"in D?D["return"]:function(S){return{value:S,done:!0}},L,x.JSC$8729_context_.return);
x.JSC$8729_context_.return(L);return S_(x)};
dDN=function(x,L,D,S){try{var Q=L.call(x.JSC$8729_context_.yieldAllIterator_,D);if(!(Q instanceof Object))throw new TypeError("h`"+Q);if(!Q.done)return x.JSC$8729_context_.isRunning_=!1,Q;var J=Q.value}catch(Z){return x.JSC$8729_context_.yieldAllIterator_=null,ELh(x.JSC$8729_context_,Z),S_(x)}x.JSC$8729_context_.yieldAllIterator_=null;S.call(x.JSC$8729_context_,J);return S_(x)};
S_=function(x){for(;x.JSC$8729_context_.nextAddress;)try{var L=x.program_(x.JSC$8729_context_);if(L)return x.JSC$8729_context_.isRunning_=!1,{value:L.value,done:!1}}catch(D){x.JSC$8729_context_.yieldResult=void 0,ELh(x.JSC$8729_context_,D)}x.JSC$8729_context_.isRunning_=!1;if(x.JSC$8729_context_.abruptCompletion_){L=x.JSC$8729_context_.abruptCompletion_;x.JSC$8729_context_.abruptCompletion_=null;if(L.isException)throw L.exception;return{value:L.return,done:!0}}return{value:void 0,done:!0}};
jz4=function(x){this.next=function(L){ICh(x.JSC$8729_context_);x.JSC$8729_context_.yieldAllIterator_?L=dDN(x,x.JSC$8729_context_.yieldAllIterator_.next,L,x.JSC$8729_context_.JSC$8724_next_):(x.JSC$8729_context_.JSC$8724_next_(L),L=S_(x));return L};
this.throw=function(L){ICh(x.JSC$8729_context_);x.JSC$8729_context_.yieldAllIterator_?L=dDN(x,x.JSC$8729_context_.yieldAllIterator_["throw"],L,x.JSC$8729_context_.JSC$8724_next_):(ELh(x.JSC$8729_context_,L),L=S_(x));return L};
this.return=function(L){return Pd4(x,L)};
this[Symbol.iterator]=function(){return this}};
_.Mk=function(x,L){L=new jz4(new Mj4(L));nG&&x.prototype&&nG(L,x.prototype);return L};
vLc=function(x){function L(S){return x.next(S)}
function D(S){return x.throw(S)}
return new Promise(function(S,Q){function J(Z){Z.done?S(Z.value):Promise.resolve(Z.value).then(L,D).then(J,Q)}
J(x.next())})};
_.I=function(x){return vLc(new jz4(new Mj4(x)))};
_.uP=function(x){var L=x[Symbol.asyncIterator];return L!==void 0?L.call(x):new Vj3(_.O(x))};
Vj3=function(x){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return x};
this.next=function(L){return Promise.resolve(x.next(L))};
this["throw"]=function(L){return new Promise(function(D,S){var Q=x["throw"];Q!==void 0?D(Q.call(x,L)):(D=x["return"],D!==void 0&&D.call(x),S(new TypeError("j")))})};
x["return"]!==void 0&&(this["return"]=function(L){return Promise.resolve(x["return"](L))})};
_.Ne=function(){for(var x=Number(this),L=[],D=x;D<arguments.length;D++)L[D-x]=arguments[D];return L};
_.dV=function(x){return x};
cF("globalThis",function(x){return x||_.J3});
cF("Reflect",function(x){return x?x:{}});
cF("Reflect.construct",function(){return SPO});
cF("Reflect.setPrototypeOf",function(x){return x?x:nG?function(L,D){try{return nG(L,D),!0}catch(S){return!1}}:null});
cF("Promise",function(x){function L(){this.batch_=null}
function D(Z){return Z instanceof Q?Z:new Q(function(y){y(Z)})}
if(x&&(typeof _.J3.PromiseRejectionEvent!=="undefined"||!_.J3.Promise||_.J3.Promise.toString().indexOf("[native code]")===-1))return x;L.prototype.asyncExecute=function(Z){if(this.batch_==null){this.batch_=[];var y=this;this.asyncExecuteFunction(function(){y.executeBatch_()})}this.batch_.push(Z)};
var S=_.J3.setTimeout;L.prototype.asyncExecuteFunction=function(Z){S(Z,0)};
L.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var Z=this.batch_;this.batch_=[];for(var y=0;y<Z.length;++y){var E=Z[y];Z[y]=null;try{E()}catch(P){this.asyncThrow_(P)}}}this.batch_=null};
L.prototype.asyncThrow_=function(Z){this.asyncExecuteFunction(function(){throw Z;})};
var Q=function(Z){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var y=this.createResolveAndReject_();try{Z(y.resolve,y.reject)}catch(E){y.reject(E)}};
Q.prototype.createResolveAndReject_=function(){function Z(P){return function(v){E||(E=!0,P.call(y,v))}}
var y=this,E=!1;return{resolve:Z(this.resolveTo_),reject:Z(this.JSC$8757_reject_)}};
Q.prototype.resolveTo_=function(Z){if(Z===this)this.JSC$8757_reject_(new TypeError("n"));else if(Z instanceof Q)this.settleSameAsPromise_(Z);else{a:switch(typeof Z){case "object":var y=Z!=null;break a;case "function":y=!0;break a;default:y=!1}y?this.resolveToNonPromiseObj_(Z):this.fulfill_(Z)}};
Q.prototype.resolveToNonPromiseObj_=function(Z){var y=void 0;try{y=Z.then}catch(E){this.JSC$8757_reject_(E);return}typeof y=="function"?this.settleSameAsThenable_(y,Z):this.fulfill_(Z)};
Q.prototype.JSC$8757_reject_=function(Z){this.settle_(2,Z)};
Q.prototype.fulfill_=function(Z){this.settle_(1,Z)};
Q.prototype.settle_=function(Z,y){if(this.state_!=0)throw Error("o`"+Z+"`"+y+"`"+this.state_);this.state_=Z;this.result_=y;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
Q.prototype.scheduleUnhandledRejectionCheck_=function(){var Z=this;S(function(){if(Z.notifyUnhandledRejection_()){var y=_.J3.console;typeof y!=="undefined"&&y.error(Z.result_)}},1)};
Q.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var Z=_.J3.CustomEvent,y=_.J3.Event,E=_.J3.dispatchEvent;if(typeof E==="undefined")return!0;typeof Z==="function"?Z=new Z("unhandledrejection",{cancelable:!0}):typeof y==="function"?Z=new y("unhandledrejection",{cancelable:!0}):(Z=_.J3.document.createEvent("CustomEvent"),Z.initCustomEvent("unhandledrejection",!1,!0,Z));Z.promise=this;Z.reason=this.result_;return E(Z)};
Q.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var Z=0;Z<this.onSettledCallbacks_.length;++Z)J.asyncExecute(this.onSettledCallbacks_[Z]);this.onSettledCallbacks_=null}};
var J=new L;Q.prototype.settleSameAsPromise_=function(Z){var y=this.createResolveAndReject_();Z.callWhenSettled_(y.resolve,y.reject)};
Q.prototype.settleSameAsThenable_=function(Z,y){var E=this.createResolveAndReject_();try{Z.call(y,E.resolve,E.reject)}catch(P){E.reject(P)}};
Q.prototype.then=function(Z,y){function E(h,H){return typeof h=="function"?function(k){try{P(h(k))}catch(T){v(T)}}:H}
var P,v,V=new Q(function(h,H){P=h;v=H});
this.callWhenSettled_(E(Z,P),E(y,v));return V};
Q.prototype.catch=function(Z){return this.then(void 0,Z)};
Q.prototype.callWhenSettled_=function(Z,y){function E(){switch(P.state_){case 1:Z(P.result_);break;case 2:y(P.result_);break;default:throw Error("p`"+P.state_);}}
var P=this;this.onSettledCallbacks_==null?J.asyncExecute(E):this.onSettledCallbacks_.push(E);this.isRejectionHandled_=!0};
Q.resolve=D;Q.reject=function(Z){return new Q(function(y,E){E(Z)})};
Q.race=function(Z){return new Q(function(y,E){for(var P=_.O(Z),v=P.next();!v.done;v=P.next())D(v.value).callWhenSettled_(y,E)})};
Q.all=function(Z){var y=_.O(Z),E=y.next();return E.done?D([]):new Q(function(P,v){function V(k){return function(T){h[k]=T;H--;H==0&&P(h)}}
var h=[],H=0;do h.push(void 0),H++,D(E.value).callWhenSettled_(V(h.length-1),v),E=y.next();while(!E.done)})};
return Q});
var Q6=function(x,L,D){if(x==null)throw new TypeError("q`"+D);if(L instanceof RegExp)throw new TypeError("r`"+D);return x+""};
cF("String.prototype.startsWith",function(x){return x?x:function(L,D){var S=Q6(this,L,"startsWith"),Q=S.length,J=L.length;D=Math.max(0,Math.min(D|0,S.length));for(var Z=0;Z<J&&D<Q;)if(S[D++]!=L[Z++])return!1;return Z>=J}});
cF("Object.setPrototypeOf",function(x){return x||nG});
cF("Symbol.dispose",function(x){return x?x:Symbol("s")});
cF("SuppressedError",function(x){function L(D,S,Q){if(!(this instanceof L))return new L(D,S,Q);Q=Error(Q);"stack"in Q&&(this.stack=Q.stack);this.message=Q.message;this.error=D;this.suppressed=S}
if(x)return x;_.p(L,Error);L.prototype.name="SuppressedError";return L});
cF("Array.from",function(x){return x?x:function(L,D,S){D=D!=null?D:function(y){return y};
var Q=[],J=typeof Symbol!="undefined"&&Symbol.iterator&&L[Symbol.iterator];if(typeof J=="function"){L=J.call(L);for(var Z=0;!(J=L.next()).done;)Q.push(D.call(S,J.value,Z++))}else for(J=L.length,Z=0;Z<J;Z++)Q.push(D.call(S,L[Z],Z));return Q}});
var hGw=function(x,L,D){x instanceof String&&(x=String(x));for(var S=x.length,Q=0;Q<S;Q++){var J=x[Q];if(L.call(D,J,Q,x))return{i:Q,v:J}}return{i:-1,v:void 0}};
cF("Array.prototype.find",function(x){return x?x:function(L,D){return hGw(this,L,D).v}});
cF("WeakMap",function(x){function L(){}
function D(E){var P=typeof E;return P==="object"&&E!==null||P==="function"}
function S(E){if(!Li(E,J)){var P=new L;tX0(E,J,{value:P})}}
function Q(E){var P=Object[E];P&&(Object[E]=function(v){if(v instanceof L)return v;Object.isExtensible(v)&&S(v);return P(v)})}
if(function(){if(!x||!Object.seal)return!1;try{var E=Object.seal({}),P=Object.seal({}),v=new x([[E,2],[P,3]]);if(v.get(E)!=2||v.get(P)!=3)return!1;v.delete(E);v.set(P,4);return!v.has(E)&&v.get(P)==4}catch(V){return!1}}())return x;
var J="$jscomp_hidden_"+Math.random();Q("freeze");Q("preventExtensions");Q("seal");var Z=0,y=function(E){this.JSC$8765_id_=(Z+=Math.random()+1).toString();if(E){E=_.O(E);for(var P;!(P=E.next()).done;)P=P.value,this.set(P[0],P[1])}};
y.prototype.set=function(E,P){if(!D(E))throw Error("t");S(E);if(!Li(E,J))throw Error("u`"+E);E[J][this.JSC$8765_id_]=P;return this};
y.prototype.get=function(E){return D(E)&&Li(E,J)?E[J][this.JSC$8765_id_]:void 0};
y.prototype.has=function(E){return D(E)&&Li(E,J)&&Li(E[J],this.JSC$8765_id_)};
y.prototype.delete=function(E){return D(E)&&Li(E,J)&&Li(E[J],this.JSC$8765_id_)?delete E[J][this.JSC$8765_id_]:!1};
return y});
cF("Map",function(x){if(function(){if(!x||typeof x!="function"||!x.prototype.entries||typeof Object.seal!="function")return!1;try{var y=Object.seal({x:4}),E=new x(_.O([[y,"s"]]));if(E.get(y)!="s"||E.size!=1||E.get({x:4})||E.set({x:4},"t")!=E||E.size!=2)return!1;var P=E.entries(),v=P.next();if(v.done||v.value[0]!=y||v.value[1]!="s")return!1;v=P.next();return v.done||v.value[0].x!=4||v.value[1]!="t"||!P.next().done?!1:!0}catch(V){return!1}}())return x;
var L=new WeakMap,D=function(y){this[0]={};this[1]=J();this.size=0;if(y){y=_.O(y);for(var E;!(E=y.next()).done;)E=E.value,this.set(E[0],E[1])}};
D.prototype.set=function(y,E){y=y===0?0:y;var P=S(this,y);P.list||(P.list=this[0][P.id]=[]);P.entry?P.entry.value=E:(P.entry={next:this[1],previous:this[1].previous,head:this[1],key:y,value:E},P.list.push(P.entry),this[1].previous.next=P.entry,this[1].previous=P.entry,this.size++);return this};
D.prototype.delete=function(y){y=S(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};
D.prototype.clear=function(){this[0]={};this[1]=this[1].previous=J();this.size=0};
D.prototype.has=function(y){return!!S(this,y).entry};
D.prototype.get=function(y){return(y=S(this,y).entry)&&y.value};
D.prototype.entries=function(){return Q(this,function(y){return[y.key,y.value]})};
D.prototype.keys=function(){return Q(this,function(y){return y.key})};
D.prototype.values=function(){return Q(this,function(y){return y.value})};
D.prototype.forEach=function(y,E){for(var P=this.entries(),v;!(v=P.next()).done;)v=v.value,y.call(E,v[1],v[0],this)};
D.prototype[Symbol.iterator]=D.prototype.entries;var S=function(y,E){var P=E&&typeof E;P=="object"||P=="function"?L.has(E)?P=L.get(E):(P=""+ ++Z,L.set(E,P)):P="p_"+E;var v=y[0][P];if(v&&Li(y[0],P))for(y=0;y<v.length;y++){var V=v[y];if(E!==E&&V.key!==V.key||E===V.key)return{id:P,list:v,index:y,entry:V}}return{id:P,list:v,index:-1,entry:void 0}},Q=function(y,E){var P=y[1];
return L6O(function(){if(P){for(;P.head!=y[1];)P=P.previous;for(;P.next!=P.head;)return P=P.next,{done:!1,value:E(P)};P=null}return{done:!0,value:void 0}})},J=function(){var y={};
return y.previous=y.next=y.head=y},Z=0;
return D});
cF("Set",function(x){if(function(){if(!x||typeof x!="function"||!x.prototype.entries||typeof Object.seal!="function")return!1;try{var D=Object.seal({x:4}),S=new x(_.O([D]));if(!S.has(D)||S.size!=1||S.add(D)!=S||S.size!=1||S.add({x:4})!=S||S.size!=2)return!1;var Q=S.entries(),J=Q.next();if(J.done||J.value[0]!=D||J.value[1]!=D)return!1;J=Q.next();return J.done||J.value[0]==D||J.value[0].x!=4||J.value[1]!=J.value[0]?!1:Q.next().done}catch(Z){return!1}}())return x;
var L=function(D){this.JSC$8779_map_=new Map;if(D){D=_.O(D);for(var S;!(S=D.next()).done;)this.add(S.value)}this.size=this.JSC$8779_map_.size};
L.prototype.add=function(D){D=D===0?0:D;this.JSC$8779_map_.set(D,D);this.size=this.JSC$8779_map_.size;return this};
L.prototype.delete=function(D){D=this.JSC$8779_map_.delete(D);this.size=this.JSC$8779_map_.size;return D};
L.prototype.clear=function(){this.JSC$8779_map_.clear();this.size=0};
L.prototype.has=function(D){return this.JSC$8779_map_.has(D)};
L.prototype.entries=function(){return this.JSC$8779_map_.entries()};
L.prototype.values=function(){return this.JSC$8779_map_.values()};
L.prototype.keys=L.prototype.values;L.prototype[Symbol.iterator]=L.prototype.values;L.prototype.forEach=function(D,S){var Q=this;this.JSC$8779_map_.forEach(function(J){return D.call(S,J,J,Q)})};
return L});
cF("Math.log2",function(x){return x?x:function(L){return Math.log(L)/Math.LN2}});
cF("Object.values",function(x){return x?x:function(L){var D=[],S;for(S in L)Li(L,S)&&D.push(L[S]);return D}});
cF("Object.is",function(x){return x?x:function(L,D){return L===D?L!==0||1/L===1/D:L!==L&&D!==D}});
cF("Array.prototype.includes",function(x){return x?x:function(L,D){var S=this;S instanceof String&&(S=String(S));var Q=S.length;D=D||0;for(D<0&&(D=Math.max(D+Q,0));D<Q;D++){var J=S[D];if(J===L||Object.is(J,L))return!0}return!1}});
cF("String.prototype.includes",function(x){return x?x:function(L,D){return Q6(this,L,"includes").indexOf(L,D||0)!==-1}});
cF("Object.entries",function(x){return x?x:function(L){var D=[],S;for(S in L)Li(L,S)&&D.push([S,L[S]]);return D}});
cF("Number.isFinite",function(x){return x?x:function(L){return typeof L!=="number"?!1:!isNaN(L)&&L!==Infinity&&L!==-Infinity}});
cF("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
cF("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
cF("Number.isInteger",function(x){return x?x:function(L){return Number.isFinite(L)?L===Math.floor(L):!1}});
cF("Number.isSafeInteger",function(x){return x?x:function(L){return Number.isInteger(L)&&Math.abs(L)<=Number.MAX_SAFE_INTEGER}});
cF("String.prototype.endsWith",function(x){return x?x:function(L,D){var S=Q6(this,L,"endsWith");D===void 0&&(D=S.length);D=Math.max(0,Math.min(D|0,S.length));for(var Q=L.length;Q>0&&D>0;)if(S[--D]!=L[--Q])return!1;return Q<=0}});
var Hc3=function(x,L){x instanceof String&&(x+="");var D=0,S=!1,Q={next:function(){if(!S&&D<x.length){var J=D++;return{value:L(J,x[J]),done:!1}}S=!0;return{done:!0,value:void 0}}};
Q[Symbol.iterator]=function(){return Q};
return Q};
cF("Array.prototype.entries",function(x){return x?x:function(){return Hc3(this,function(L,D){return[L,D]})}});
cF("Math.trunc",function(x){return x?x:function(L){L=Number(L);if(isNaN(L)||L===Infinity||L===-Infinity||L===0)return L;var D=Math.floor(Math.abs(L));return L<0?-D:D}});
cF("Number.isNaN",function(x){return x?x:function(L){return typeof L==="number"&&isNaN(L)}});
cF("Array.prototype.keys",function(x){return x?x:function(){return Hc3(this,function(L){return L})}});
cF("Array.prototype.values",function(x){return x?x:function(){return Hc3(this,function(L,D){return D})}});
cF("Array.prototype.fill",function(x){return x?x:function(L,D,S){var Q=this.length||0;D<0&&(D=Math.max(0,Q+D));if(S==null||S>Q)S=Q;S=Number(S);S<0&&(S=Math.max(0,Q+S));for(D=Number(D||0);D<S;D++)this[D]=L;return this}});
var J9=function(x){return x?x:Array.prototype.fill};
cF("Int8Array.prototype.fill",J9);cF("Uint8Array.prototype.fill",J9);cF("Uint8ClampedArray.prototype.fill",J9);cF("Int16Array.prototype.fill",J9);cF("Uint16Array.prototype.fill",J9);cF("Int32Array.prototype.fill",J9);cF("Uint32Array.prototype.fill",J9);cF("Float32Array.prototype.fill",J9);cF("Float64Array.prototype.fill",J9);
cF("Object.fromEntries",function(x){return x?x:function(L){var D={};if(!(Symbol.iterator in L))throw new TypeError("v`"+L);L=L[Symbol.iterator].call(L);for(var S=L.next();!S.done;S=L.next()){S=S.value;if(Object(S)!==S)throw new TypeError("w");D[S[0]]=S[1]}return D}});
cF("String.prototype.replaceAll",function(x){return x?x:function(L,D){if(L instanceof RegExp&&!L.global)throw new TypeError("x");return L instanceof RegExp?this.replace(L,D):this.replace(new RegExp(String(L).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),D)}});
cF("Object.getOwnPropertySymbols",function(x){return x?x:function(){return[]}});
cF("String.prototype.repeat",function(x){return x?x:function(L){var D=Q6(this,null,"repeat");if(L<0||L>1342177279)throw new RangeError("y");L|=0;for(var S="";L;)if(L&1&&(S+=D),L>>>=1)D+=D;return S}});
cF("Array.prototype.findIndex",function(x){return x?x:function(L,D){return hGw(this,L,D).i}});
cF("Array.prototype.flatMap",function(x){return x?x:function(L,D){var S=[];Array.prototype.forEach.call(this,function(Q,J){Q=L.call(D,Q,J,this);Array.isArray(Q)?S.push.apply(S,Q):S.push(Q)});
return S}});
cF("String.prototype.codePointAt",function(x){return x?x:function(L){var D=Q6(this,null,"codePointAt"),S=D.length;L=Number(L)||0;if(L>=0&&L<S){L|=0;var Q=D.charCodeAt(L);if(Q<55296||Q>56319||L+1===S)return Q;L=D.charCodeAt(L+1);return L<56320||L>57343?Q:(Q-55296)*1024+L+9216}}});
cF("String.fromCodePoint",function(x){return x?x:function(L){for(var D="",S=0;S<arguments.length;S++){var Q=Number(arguments[S]);if(Q<0||Q>1114111||Q!==Math.floor(Q))throw new RangeError("z`"+Q);Q<=65535?D+=String.fromCharCode(Q):(Q-=65536,D+=String.fromCharCode(Q>>>10&1023|55296),D+=String.fromCharCode(Q&1023|56320))}return D}});
cF("String.prototype.trimLeft",function(x){function L(){return this.replace(/^[\s\xa0]+/,"")}
return x||L});
cF("String.prototype.trimStart",function(x){return x||String.prototype.trimLeft});
cF("String.prototype.padStart",function(x){return x?x:function(L,D){var S=Q6(this,null,"padStart");L-=S.length;D=D!==void 0?String(D):" ";return(L>0&&D?D.repeat(Math.ceil(L/D.length)).substring(0,L):"")+S}});
cF("Promise.prototype.finally",function(x){return x?x:function(L){return this.then(function(D){return Promise.resolve(L()).then(function(){return D})},function(D){return Promise.resolve(L()).then(function(){throw D;
})})}});
cF("Math.imul",function(x){return x?x:function(L,D){L=Number(L);D=Number(D);var S=L&65535,Q=D&65535;return S*Q+((L>>>16&65535)*Q+S*(D>>>16&65535)<<16>>>0)|0}});
cF("Object.hasOwn",function(x){return x?x:function(L,D){return Object.prototype.hasOwnProperty.call(L,D)}});
cF("Math.sign",function(x){return x?x:function(L){L=Number(L);return L===0||isNaN(L)?L:L>0?1:-1}});
cF("Array.prototype.flat",function(x){return x?x:function(L){L=L===void 0?1:L;var D=[];Array.prototype.forEach.call(this,function(S){Array.isArray(S)&&L>0?(S=Array.prototype.flat.call(S,L-1),D.push.apply(D,S)):D.push(S)});
return D}});
cF("String.raw",function(x){return x?x:function(L,D){L=Zc0(L);for(var S=L.raw,Q=S.length,J="",Z=0;Z<Q;++Z)J+=S[Z],Z+1<Q&&Z+1<arguments.length&&(J+=String(arguments[Z+1]));return J}});
cF("Reflect.ownKeys",function(x){return x?x:function(L){var D=[],S=Object.getOwnPropertyNames(L);L=Object.getOwnPropertySymbols(L);for(var Q=0;Q<S.length;Q++)(S[Q].substring(0,14)=="jscomp_symbol_"?L:D).push(S[Q]);return D.concat(L)}});
cF("Object.getOwnPropertyDescriptors",function(x){return x?x:function(L){for(var D={},S=Reflect.ownKeys(L),Q=0;Q<S.length;Q++)D[S[Q]]=Object.getOwnPropertyDescriptor(L,S[Q]);return D}});
cF("WeakSet",function(x){if(function(){if(!x||!Object.seal)return!1;try{var D=Object.seal({}),S=Object.seal({}),Q=new x([D]);if(!Q.has(D)||Q.has(S))return!1;Q.delete(D);Q.add(S);return!Q.has(D)&&Q.has(S)}catch(J){return!1}}())return x;
var L=function(D){this.JSC$8791_map_=new WeakMap;if(D){D=_.O(D);for(var S;!(S=D.next()).done;)this.add(S.value)}};
L.prototype.add=function(D){this.JSC$8791_map_.set(D,!0);return this};
L.prototype.has=function(D){return this.JSC$8791_map_.has(D)};
L.prototype.delete=function(D){return this.JSC$8791_map_.delete(D)};
return L});
cF("Promise.allSettled",function(x){function L(S){return{status:"fulfilled",value:S}}
function D(S){return{status:"rejected",reason:S}}
return x?x:function(S){var Q=this;S=Array.from(S,function(J){return Q.resolve(J).then(L,D)});
return Q.all(S)}});
cF("Number.parseInt",function(x){return x||parseInt});
_._DumpException=window._DumpException||function(x){throw x;};
window._DumpException=_._DumpException;var uib=window.ytcsi;uib&&typeof uib.tick==="function"&&uib.tick("rses_dpj");var gL4,Ki,O9,Zc,k4f,pr0,mDh,bcc,eG,YPO;gL4=gL4||{};_.Qb=this||self;_.KK=function(x,L,D){x=x.split(".");D=D||_.Qb;for(var S;x.length&&(S=x.shift());)x.length||L===void 0?D[S]&&D[S]!==Object.prototype[S]?D=D[S]:D=D[S]={}:D[S]=L};
Ki=function(x,L){var D=_.o1("WIZ_global_data.oxN3nb");x=D&&D[x];return x!=null?x:L};
O9=_.Qb._F_toggles_default_kevlar_base||[];Zc=function(){};
Zc.get=function(){return null};
_.ci0=null;_.o1=function(x,L){x=x.split(".");L=L||_.Qb;for(var D=0;D<x.length;D++)if(L=L[x[D]],L==null)return null;return L};
_.y6=function(x){x.instance_=void 0;x.getInstance=function(){return x.instance_?x.instance_:x.instance_=new x}};
_.X2=function(x){var L=typeof x;return L!="object"?L:x?Array.isArray(x)?"array":L:"null"};
_.Nf=function(x){var L=_.X2(x);return L=="array"||L=="object"&&typeof x.length=="number"};
_.on=function(x){var L=typeof x;return L=="object"&&x!=null||L=="function"};
_.zN=function(x){return Object.prototype.hasOwnProperty.call(x,k4f)&&x[k4f]||(x[k4f]=++pr0)};
k4f="closure_uid_"+(Math.random()*1E9>>>0);pr0=0;mDh=function(x,L,D){return x.call.apply(x.bind,arguments)};
bcc=function(x,L,D){if(!x)throw Error();if(arguments.length>2){var S=Array.prototype.slice.call(arguments,2);return function(){var Q=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(Q,S);return x.apply(L,Q)}}return function(){return x.apply(L,arguments)}};
_.e1=function(x,L,D){_.e1=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?mDh:bcc;return _.e1.apply(null,arguments)};
_.bl=function(x,L){var D=Array.prototype.slice.call(arguments,1);return function(){var S=D.slice();S.push.apply(S,arguments);return x.apply(this,S)}};
_.IM=function(){return Date.now()};
eG=function(x){return x};
_.E9=function(x,L){function D(){}
D.prototype=L.prototype;x.superClass_=L.prototype;x.prototype=new D;x.prototype.constructor=x;x.base=function(S,Q,J){for(var Z=Array(arguments.length-2),y=2;y<arguments.length;y++)Z[y-2]=arguments[y];return L.prototype[Q].apply(S,Z)}};
YPO=function(x){return x};var F6h,szc;_.A=function(x,L,D,S){var Q=arguments.length,J=Q<3?L:S===null?S=Object.getOwnPropertyDescriptor(L,D):S,Z;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")J=Reflect.decorate(x,L,D,S);else for(var y=x.length-1;y>=0;y--)if(Z=x[y])J=(Q<3?Z(J):Q>3?Z(L,D,J):Z(L,D))||J;Q>3&&J&&Object.defineProperty(L,D,J)};
_.r=function(x,L){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(x,L)};
F6h=function(x,L){if(L!==null&&L!==void 0){if(typeof L!=="object"&&typeof L!=="function")throw new TypeError("A");if(D===void 0){if(!Symbol.dispose)throw new TypeError("C");var D=L[Symbol.dispose]}if(typeof D!=="function")throw new TypeError("D");x.stack.push({value:L,dispose:D,async:!1})}return L};
szc=function(x){function L(J){x.error=x.hasError?new SuppressedError(J,x.error,"An error was suppressed during disposal."):J;x.hasError=!0}
function D(){for(;S=x.stack.pop();)try{if(!S.async&&Q===1)return Q=0,x.stack.push(S),Promise.resolve().then(D);if(S.dispose){var J=S.dispose.call(S.value);if(S.async)return Q|=2,Promise.resolve(J).then(D,function(Z){L(Z);return D()})}else Q|=1}catch(Z){L(Z)}if(Q===1)return x.hasError?Promise.reject(x.error):Promise.resolve();
if(x.hasError)throw x.error;}
var S,Q=0;D()};var T3h="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(" ");xfc()&&T3h.push("details:not(:has(summary))");var Dfc=T3h.join(",");_.E9(_.Dp,Error);_.Dp.prototype.name="CustomError";var eGs;var RG0=void 0,G4c,Cdb=typeof TextDecoder!=="undefined",Efw,Ipn=typeof String.prototype.isWellFormed==="function",yGn=typeof TextEncoder!=="undefined";var lC0;_.s7=function(x){for(var L=[],D=0,S=0;S<x.length;S++){var Q=x.charCodeAt(S);Q<128?L[D++]=Q:(Q<2048?L[D++]=Q>>6|192:((Q&64512)==55296&&S+1<x.length&&(x.charCodeAt(S+1)&64512)==56320?(Q=65536+((Q&1023)<<10)+(x.charCodeAt(++S)&1023),L[D++]=Q>>18|240,L[D++]=Q>>12&63|128):L[D++]=Q>>12|224,L[D++]=Q>>6&63|128),L[D++]=Q&63|128)}return L};
lC0=function(x){for(var L=[],D=0,S=0;D<x.length;){var Q=x[D++];if(Q<128)L[S++]=String.fromCharCode(Q);else if(Q>191&&Q<224){var J=x[D++];L[S++]=String.fromCharCode((Q&31)<<6|J&63)}else if(Q>239&&Q<365){J=x[D++];var Z=x[D++],y=x[D++];Q=((Q&7)<<18|(J&63)<<12|(Z&63)<<6|y&63)-65536;L[S++]=String.fromCharCode(55296+(Q>>10));L[S++]=String.fromCharCode(56320+(Q&1023))}else J=x[D++],Z=x[D++],L[S++]=String.fromCharCode((Q&15)<<12|(J&63)<<6|Z&63)}return L.join("")};var j0=String.prototype.trim?function(x){return x.trim()}:function(x){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(x)[1]},UDf=/&/g,wrc=/</g,B3s=/>/g,W63=/"/g,qPf=/'/g,A$f=/\x00/g,$Dp=/[\x00&<>"']/;var Ma=!!(O9[0]>>15&1),r$s=!!(O9[0]&1024),N3n=!!(O9[0]>>16&1),ic0=!!(O9[0]&8),fCw=!!(O9[0]&2),oLn=!!(O9[0]&4),aCb=!!(O9[0]&16),zG4=!!(O9[0]&128);var Xrn=Ki(1,!0),us=Ma?N3n:Ki(610401301,!1),c$3=Ma?ic0:Ki(772657768,!1),nLG=Ma?fCw:Ki(513659523,!1),tj0=Ma?r$s||!oLn:Ki(568333945,!0),dvf=Ma?aCb:Ki(1331761403,!1),u90=Ma?r$s||!zG4:Ki(748402147,Xrn);var g0,xRc=_.Qb.navigator;g0=xRc?xRc.userAgentData||null:null;var tE;_.qf=function(x,L){return Array.prototype.indexOf.call(x,L,void 0)};
_.nm=function(x,L,D){Array.prototype.forEach.call(x,L,D)};
_.dy=function(x,L,D){return Array.prototype.filter.call(x,L,D)};
_.Bn=function(x,L,D){return Array.prototype.map.call(x,L,D)};
tE=function(x,L,D){return Array.prototype.some.call(x,L,D)};
_.Ndc=function(x,L,D){return Array.prototype.every.call(x,L,D)};var PN=function(x){PN[" "](x);return x};
PN[" "]=function(){};
var lxb=function(x,L){try{return PN(x[L]),!0}catch(D){}return!1},sE4=function(x,L,D,S){S=S?S(L):L;
return Object.prototype.hasOwnProperty.call(x,S)?x[S]:x[S]=D(L)};var L0G,Q5,DR4,Sbp,Jjf,K00,lw4,OPf,ZPb,yjb,oSh,E4N,Mlh,v4s,Vl0,hkf;_.oGw=function(){return _.Qb.navigator||null};
L0G=jn0();_.j_=vf3();Q5=bs("Edge");DR4=Q5||_.j_;_.vN=bs("Gecko")&&!(_.d0(_.hG(),"WebKit")&&!bs("Edge"))&&!(bs("Trident")||bs("MSIE"))&&!bs("Edge");_.V6=_.d0(_.hG(),"WebKit")&&!bs("Edge");Sbp=_.V6&&bs("Mobile");_.QJw=_.b3O();Jjf=_.Ywf();K00=(e0()?g0.platform==="Linux":bs("Linux"))||_.FcN();lw4=_.p4G();OPf=mfc();ZPb=bs("iPad");yjb=bs("iPod");_.I30=_.GN();oSh=_.d0(_.hG(),"KaiOS");E4N=function(){var x=_.Qb.document;return x?x.documentMode:void 0};
a:{var dRb="",P5s=function(){var x=_.hG();if(_.vN)return/rv:([^\);]+)(\)|;)/.exec(x);if(Q5)return/Edge\/([\d\.]+)/.exec(x);if(_.j_)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(x);if(_.V6)return/WebKit\/(\S+)/.exec(x);if(L0G)return/(?:Version)[ \/]?(\S+)/.exec(x)}();
P5s&&(dRb=P5s?P5s[1]:"");if(_.j_){var jJ4=E4N();if(jJ4!=null&&jJ4>parseFloat(dRb)){Mlh=String(jJ4);break a}}Mlh=dRb}v4s=Mlh;Vl0={};_.h9=function(x){return sE4(Vl0,x,function(){return _.v4(v4s,x)>=0})};
if(_.Qb.document&&_.j_){var HPN=E4N();hkf=HPN?HPN:parseInt(v4s,10)||void 0}else hkf=void 0;_.uwO=hkf;var i7n,foG,g4b;_.HN=Fh();i7n=mfc()||bs("iPod");foG=bs("iPad");g4b=_.H3n();_.uV=_.TN();_.ij=_.hO3()&&!_.GN();var ko0,gy,tic,ifn,mR0,pJN;ko0={};gy=null;tic=_.vN||_.V6||typeof _.Qb.btoa=="function";_.Gg=function(x,L){L===void 0&&(L=0);pJN();L=ko0[L];for(var D=Array(Math.floor(x.length/3)),S=L[64]||"",Q=0,J=0;Q<x.length-2;Q+=3){var Z=x[Q],y=x[Q+1],E=x[Q+2],P=L[Z>>2];Z=L[(Z&3)<<4|y>>4];y=L[(y&15)<<2|E>>6];E=L[E&63];D[J++]=P+Z+y+E}P=0;E=S;switch(x.length-Q){case 2:P=x[Q+1],E=L[(P&15)<<2]||S;case 1:x=x[Q],D[J]=L[x>>2]+L[(x&3)<<4|P>>4]+E+S}return D.join("")};
ifn=function(x){var L="";mR0(x,function(D){L+=String.fromCharCode(D)});
return L};
_.jrf=function(x){var L=[];mR0(x,function(D){L.push(D)});
return L};
_.tG=function(x){var L=x.length,D=L*3/4;D%3?D=Math.floor(D):_.Mf("=.",x[L-1])&&(D=_.Mf("=.",x[L-2])?D-2:D-1);var S=new Uint8Array(D),Q=0;mR0(x,function(J){S[Q++]=J});
return Q!==D?S.subarray(0,Q):S};
mR0=function(x,L){function D(E){for(;S<x.length;){var P=x.charAt(S++),v=gy[P];if(v!=null)return v;if(!_.Ew(P))throw Error("H`"+P);}return E}
pJN();for(var S=0;;){var Q=D(-1),J=D(0),Z=D(64),y=D(64);if(y===64&&Q===-1)break;L(Q<<2|J>>4);Z!=64&&(L(J<<4&240|Z>>2),y!=64&&L(Z<<6&192|y))}};
pJN=function(){if(!gy){gy={};for(var x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),L=["+/=","+/","-_=","-_.","-_"],D=0;D<5;D++){var S=x.concat(L[D].split(""));ko0[D]=S;for(var Q=0;Q<S.length;Q++){var J=S[Q];gy[J]===void 0&&(gy[J]=Q)}}}};var t0c=typeof Uint8Array!=="undefined",$fG=!_.j_&&typeof btoa==="function",rGf=/[-_.]/g,qw3={"-":"+",_:"/",".":"="},kH={};var gA,Ybf;gA=function(x,L){if(L!==kH)throw Error("J");this.JSC$8825_value_=x;if(x!=null&&x.length===0)throw Error("I");};
_.m_=function(){return bPc||(bPc=new gA(null,kH))};
Ybf=function(x){return new Uint8Array(N$w(x)||0)};
gA.prototype.isEmpty=function(){return this.JSC$8825_value_==null};
gA.prototype.sizeBytes=function(){var x=N$w(this);return x?x.length:0};
var N$w=function(x){if(kH!==kH)throw Error("J");var L=x.JSC$8825_value_;L==null||t0c&&L!=null&&L instanceof Uint8Array||(typeof L==="string"?L=N0c(L):(_.X2(L),L=null));return L==null?L:x.JSC$8825_value_=L},bPc;var fpG=void 0;var QQ=typeof Symbol==="function"&&typeof Symbol()==="symbol",F0O=L2("jas",void 0,!0),ArN=L2(void 0,"0di"),Df=L2(void 0,"1oa"),RI=L2(void 0,Symbol()),Sus=L2(void 0,"0ub"),J5N=L2(void 0,"0ubs"),Y54=L2(void 0,"0ubsb"),kgN=L2(void 0,"0actk"),m3=L2("m_m","messagePrototypeMarker",!0),jIb=L2(void 0,"vps"),xqG=L2();var zOw,aps,oI,sJh;zOw={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};aps=Object.defineProperties;_.Jr=QQ?F0O:"internalArrayState";sJh=[];OR(sJh,7);oI=Object.freeze(sJh);var bq={},Ii={},TMn=function(x,L,D){this.iterable=x;this.mapper=L;this.thisArg=D};
TMn.prototype.next=function(){var x=this.iterable.next();x.done||(x.value=this.mapper.call(this.thisArg,x.value));return x};
TMn.prototype[Symbol.iterator]=function(){return this};
var ek3=Object.freeze({}),YH={};_.Rk4=TB(function(x){return x!==null&&x!==void 0});var Jrw=TB(function(x){return typeof x==="number"}),Qif=TB(function(x){return typeof x==="string"}),O23=TB(function(x){return typeof x==="boolean"}),GoO=TB(function(x){return x!=null&&typeof x==="object"&&typeof x.then==="function"}),Wv0=TB(function(x){return typeof x==="function"}),Es=TB(function(x){return!!x&&(typeof x==="object"||typeof x==="function")});var K_f=typeof _.Qb.BigInt==="function"&&typeof _.Qb.BigInt(0)==="bigint";var lh0=TB(function(x){return K_f?x>=C50&&x<=l3f:x[0]==="-"?Z2w(x,UR4):Z2w(x,wJs)}),UR4=Number.MIN_SAFE_INTEGER.toString(),C50=K_f?BigInt(Number.MIN_SAFE_INTEGER):void 0,wJs=Number.MAX_SAFE_INTEGER.toString(),l3f=K_f?BigInt(Number.MAX_SAFE_INTEGER):void 0;var BM4=typeof Uint8Array.prototype.slice==="function",Ri=0,wA=0,EHh;var ZY,d$,cC,Mq,u24;ZY=typeof BigInt==="function"?BigInt.asIntN:void 0;_.jG=typeof BigInt==="function"?BigInt.asUintN:void 0;d$=Number.isSafeInteger;cC=Number.isFinite;Mq=Math.trunc;u24=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var vXb={};var crh={},W0p=function(){try{var x=function(){return SPO(Map,[],this.constructor)};
_.p(x,Map);PN(new x);return!1}catch(L){return!0}}(),kI=function(){this.JSC$8844_map_=new Map};
_.K=kI.prototype;_.K.get=function(x){return this.JSC$8844_map_.get(x)};
_.K.set=function(x,L){this.JSC$8844_map_.set(x,L);this.size=this.JSC$8844_map_.size;return this};
_.K.delete=function(x){x=this.JSC$8844_map_.delete(x);this.size=this.JSC$8844_map_.size;return x};
_.K.clear=function(){this.JSC$8844_map_.clear();this.size=this.JSC$8844_map_.size};
_.K.has=function(x){return this.JSC$8844_map_.has(x)};
_.K.entries=function(){return this.JSC$8844_map_.entries()};
_.K.keys=function(){return this.JSC$8844_map_.keys()};
_.K.values=function(){return this.JSC$8844_map_.values()};
_.K.forEach=function(x,L){return this.JSC$8844_map_.forEach(x,L)};
kI.prototype[Symbol.iterator]=function(){return this.entries()};
var lq=function(){if(W0p)return Object.setPrototypeOf(kI.prototype,Map.prototype),Object.defineProperties(kI.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),kI;var x=function(){return SPO(Map,[],this.constructor)};
_.p(x,Map);return x}(),su=function(x,L,D,S){D=D===void 0?fh4:D;
S=S===void 0?fh4:S;var Q=lq.call(this)||this;Q.arrayState=x[_.Jr]|0;Q.valueCtor=L;Q.keyToApi=D;Q.valueToApi=Q.valueCtor?ahf:S;for(var J=0;J<x.length;J++){var Z=x[J],y=D(Z[0],!1,!0),E=Z[1];L?E===void 0&&(E=null):E=S(Z[1],!1,!0,void 0,void 0,Q.arrayState);lq.prototype.set.call(Q,y,E)}return Q};
_.p(su,lq);var qbn=function(x){if(x.arrayState&2)throw Error("N");},bl4=function(x){return Array.from(lq.prototype.entries.call(x))};
_.K=su.prototype;_.K.clear=function(){qbn(this);lq.prototype.clear.call(this)};
_.K.delete=function(x){qbn(this);return lq.prototype.delete.call(this,this.keyToApi(x,!0,!1))};
_.K.entries=function(){if(this.valueCtor){var x=lq.prototype.keys.call(this);x=new TMn(x,zd0,this)}else x=lq.prototype.entries.call(this);return x};
_.K.values=function(){if(this.valueCtor){var x=lq.prototype.keys.call(this);x=new TMn(x,su.prototype.get,this)}else x=lq.prototype.values.call(this);return x};
_.K.forEach=function(x,L){this.valueCtor?lq.prototype.forEach.call(this,function(D,S,Q){x.call(L,Q.get(S),S,Q)}):lq.prototype.forEach.call(this,x,L)};
_.K.set=function(x,L){qbn(this);x=this.keyToApi(x,!0,!1);return x==null?this:L==null?(lq.prototype.delete.call(this,x),this):lq.prototype.set.call(this,x,this.valueToApi(L,!0,!0,this.valueCtor,!1,this.arrayState))};
_.K.has=function(x){return lq.prototype.has.call(this,this.keyToApi(x,!1,!1))};
_.K.get=function(x){x=this.keyToApi(x,!1,!1);var L=lq.prototype.get.call(this,x);if(L!==void 0){var D=this.valueCtor;return D?(D=this.valueToApi(L,!1,!0,D,this.callToMutableOnAccess,this.arrayState),D!==L&&lq.prototype.set.call(this,x,D),D):L}};
su.prototype[Symbol.iterator]=function(){return this.entries()};
su.prototype.toJSON=void 0;var XCc;var y53=function(){},OlO=function(x,L){for(var D in x)!isNaN(D)&&L(x,+D,x[D])},IYG=function(x){var L=new y53;
OlO(x,function(D,S,Q){L[S]=rA(Q)});
L.reviveUnknownFields=x.reviveUnknownFields;return L},L3s={reviveIntoImmutable:!0};var ZlG;var VGh,hlG;var AjO,nl,uY,bY,$RG,e_,pV,rjb,NM0,lV,iPc,U9,WN,qa;AjO=_.eW(0);_.pi={};_.mi=function(x,L,D,S,Q){L=nl(x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,L,D,Q);if(L!==null||S&&x.noLegacyNull!==Ii)return L};
nl=function(x,L,D,S){if(L===-1)return null;var Q=L+(D?0:-1),J=x.length-1;if(!(J<1+(D?0:-1))){if(Q>=J){var Z=x[J];if(Z!=null&&typeof Z==="object"&&Z.constructor===Object){D=Z[L];var y=!0}else if(Q===J)D=Z;else return}else D=x[Q];if(S&&D!=null){S=S(D);if(S==null)return S;if(!Object.is(S,D))return y?Z[L]=S:x[Q]=S,S}return D}};
_.PW=function(x,L,D,S){r$(x);var Q=x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;fl(Q,Q[_.Jr]|0,L,D,S);return x};
_.bV=function(x,L,D){x=x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return W34(x,x[_.Jr]|0,L,D)!==void 0};
_.YI=function(x,L,D,S){var Q=x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return W34(Q,Q[_.Jr]|0,L,bY(x,S,D))!==void 0};
_.Zb=function(x){return x===ek3?2:4};
_.FK=function(x,L){x=_.mi(x,L,void 0,void 0,GgO);return x==null?_.m_():x};
uY=function(x,L,D,S){r$(x);var Q=x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,J=Q[_.Jr]|0;if(S==null){var Z=UqG(Q);if(wsG(Z,Q,J,D)===L)Z.set(D,0);else return x}else J=B$s(Q,J,D,L);fl(Q,J,L,S);return x};
_.s9=function(x,L,D,S){var Q=x[_.Jr]|0,J=sR(Q);Q=B$s(x,Q,D,L,J);fl(x,Q,L,S,J)};
bY=function(x,L,D){return _.TE(x,L)===D?D:-1};
_.TE=function(x,L){x=x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return wsG(UqG(x),x,void 0,L,void 0)};
$RG=function(x,L,D){var S=x[_.Jr]|0,Q=sR(S),J=nl(x,D,Q);if(J!=null&&J[m3]===bq){if(!PC(J))return $X(J),J.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var Z=J.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(J)&&(Z=J);if(Z){var y=Z[_.Jr]|0;y&2&&(Z=A5(Z,y))}Z=qq(Z,L,!0);Z!==J&&fl(x,S,D,Z,Q);return Z};
_.Mg=function(x,L,D,S){var Q=x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,J=Q[_.Jr]|0;L=W34(Q,J,L,D,S);if(L==null)return L;J=Q[_.Jr]|0;if(!PC(x,J)){var Z=oH4(L);Z!==L&&($X(x)&&(Q=x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,J=Q[_.Jr]|0),L=Z,J=fl(Q,J,D,L,S),Nq(Q,J))}return L};
_.O7=function(x,L,D,S){var Q=x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return qub(x,Q,Q[_.Jr]|0,L,D,S,!1,!0)};
_.mR=function(x,L,D,S){D=A5s(D);_.PW(x,L,D,S);D&&!PC(D)&&Nq(x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return x};
_.bQ=function(x,L,D,S){S=A5s(S);uY(x,L,D,S);S&&!PC(S)&&Nq(x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return x};
e_=function(x,L,D){r$(x);var S=x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Q=S[_.Jr]|0;if(D==null)return fl(S,Q,L),x;for(var J=D===oI?7:D[_.Jr]|0,Z=J,y=cs(J),E=y||Object.isFrozen(D),P=!0,v=!0,V=0;V<D.length;V++){var h=D[V];y||(h=PC(h),P&&(P=!h),v&&(v=h))}y||(J=P?13:5,J=v?J&-4097:J|4096);E&&J===Z||(D=rA(D),Z=0,J=aI(J,Q));J!==Z&&OR(D,J);Q=fl(S,Q,L,D);2&J||!(4096&J||16&J)||Nq(S,Q);return x};
pV=function(x,L,D,S){r5s(x,L,D,S);return x};
rjb=function(x,L,D){r5s(x,L,RM,void 0,D,1,!0);return x};
_.GE=function(x,L,D){x=_.mi(x,L,void 0,D);L=typeof x;x=x==null?x:L==="bigint"?_.eW((0,_.jG)(64,x)):_.tr(x)?L==="string"?_.CGN(x):_.RdN(x):void 0;return x};
_.Ci=function(x,L){var D=D===void 0?!1:D;var S;return(S=_.H20(_.mi(x,L)))!=null?S:D};
_.y1=function(x,L,D){D=D===void 0?0:D;var S;return(S=_.QW(_.mi(x,L)))!=null?S:D};
NM0=function(x,L){var D=D===void 0?0:D;x=_.kBh(_.mi(x,L));return x!=null?x:D};
lV=function(x,L,D){D=D===void 0?AjO:D;var S;return(S=_.BA0(_.mi(x,L)))!=null?S:D};
iPc=function(x){var L=L===void 0?AjO:L;var D;return(D=_.GE(x,23))!=null?D:L};
U9=function(x,L){var D=D===void 0?0:D;var S;return(S=_.mi(x,L,void 0,void 0,_.f2))!=null?S:D};
_.wy=function(x,L,D,S){D=D===void 0?"":D;var Q;return(Q=_.uq(_.mi(x,L,S)))!=null?Q:D};
_.BN=function(x,L){var D=D===void 0?0:D;var S;return(S=_.DY(_.mi(x,L)))!=null?S:D};
WN=function(x,L){var D=D===void 0?"0":D;x=wCG(_.mi(x,L),!0);return x!=null?x:D};
qa=function(x,L,D){return _.wy(x,bY(x,D,L))};
_.A9=function(x,L,D,S){return _.Mg(x,L,bY(x,S,D),void 0)};
_.ka=function(x,L){return _.uq(_.mi(x,L,void 0,_.pi))};
_.db=function(x,L,D){return _.PW(x,L,hdp(D))};
_.wr=function(x,L,D){return _.xz(x,L,hdp(D),!1)};
_.$I=function(x,L,D){return _.PW(x,L,_.SG(D))};
_.Fd=function(x,L,D){return _.PW(x,L,Eu(D))};
_.ei=function(x,L,D){return _.PW(x,L,Hs(D))};
_.Xm=function(x,L,D,S){return _.xz(x,L,Hs(D),"",S)};
_.dt=function(x,L,D){return _.PW(x,L,D==null?D:_.Ll(D))};
_.ry=function(x,L,D){return _.xz(x,L,D==null?D:_.Ll(D),0)};var SN=function(x,L,D){this.buffer=x;if(D&&!L)throw Error();this.JSC$8856_isImmutable=L};var f3w=function(x,L,D,S){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8859_start_=0;this.init(x,L,D,S)},Na,a3w,zk0,XJG,cjs,n43,jNb,o4c;
_.K=f3w.prototype;_.K.init=function(x,L,D,S){var Q=S===void 0?{}:S;S=Q.aliasBytesFields===void 0?!1:Q.aliasBytesFields;Q=Q.treatNewDataAsImmutable===void 0?!1:Q.treatNewDataAsImmutable;this.aliasBytesFields=S;this.treatNewDataAsImmutable=Q;x&&(x=ilG(x,this.treatNewDataAsImmutable),this.bytes_=x.buffer,this.bytesAreImmutable_=x.JSC$8856_isImmutable,this.JSC$8859_start_=L||0,this.end_=D!==void 0?this.JSC$8859_start_+D:this.bytes_.length,this.cursor_=this.JSC$8859_start_)};
_.K.free=function(){this.clear();o4c.length<100&&o4c.push(this)};
_.K.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8859_start_=0;this.aliasBytesFields=!1};
_.K.reset=function(){this.cursor_=this.JSC$8859_start_};
_.K.atEnd=function(){return this.cursor_==this.end_};
_.iV=function(x,L){var D=0,S=0,Q=0,J=x.bytes_,Z=x.cursor_;do{var y=J[Z++];D|=(y&127)<<Q;Q+=7}while(Q<32&&y&128);if(Q>32)for(S|=(y&127)>>4,Q=3;Q<32&&y&128;Q+=7)y=J[Z++],S|=(y&127)<<Q;Na(x,Z);if(!(y&128))return L(D>>>0,S>>>0);throw Error();};
Na=function(x,L){x.cursor_=L;if(L>x.end_)throw Error();};
_.fi=function(x){var L=x.bytes_,D=x.cursor_,S=L[D++],Q=S&127;if(S&128&&(S=L[D++],Q|=(S&127)<<7,S&128&&(S=L[D++],Q|=(S&127)<<14,S&128&&(S=L[D++],Q|=(S&127)<<21,S&128&&(S=L[D++],Q|=S<<28,S&128&&L[D++]&128&&L[D++]&128&&L[D++]&128&&L[D++]&128&&L[D++]&128)))))throw Error();Na(x,D);return Q};
_.oM=function(x){var L=x.bytes_,D=x.cursor_,S=L[D],Q=L[D+1],J=L[D+2];L=L[D+3];Na(x,x.cursor_+4);return(S<<0|Q<<8|J<<16|L<<24)>>>0};
a3w=function(x){var L=_.oM(x);x=_.oM(x);return dh4(L,x)};
zk0=function(x){var L=_.oM(x);x=(L>>31)*2+1;var D=L>>>23&255;L&=8388607;return D==255?L?NaN:x*Infinity:D==0?x*1.401298464324817E-45*L:x*Math.pow(2,D-150)*(L+8388608)};
XJG=function(x){var L=_.oM(x),D=_.oM(x);x=(D>>31)*2+1;var S=D>>>20&2047;L=4294967296*(D&1048575)+L;return S==2047?L?NaN:x*Infinity:S==0?x*4.9E-324*L:x*Math.pow(2,S-1075)*(L+4503599627370496)};
cjs=function(x){for(var L=0,D=x.cursor_,S=D+10,Q=x.bytes_;D<S;){var J=Q[D++];L|=J;if((J&128)===0)return Na(x,D),!!(L&127)}throw Error();};
n43=function(x,L){if(L<0)throw Error();var D=x.cursor_;L=D+L;if(L>x.end_)throw Error();x.cursor_=L;return D};
jNb=function(x,L){if(L==0)return _.m_();var D=n43(x,L);x.aliasBytesFields&&x.bytesAreImmutable_?D=x.bytes_.subarray(D,D+L):(x=x.bytes_,L=D+L,D=D===L?new Uint8Array(0):BM4?x.slice(D,L):new Uint8Array(x.subarray(D,L)));return D.length==0?_.m_():new gA(D,kH)};
o4c=[];var xz0=function(x,L,D,S){if(o4c.length){var Q=o4c.pop();Q.init(x,L,D,S);x=Q}else x=new f3w(x,L,D,S);this.decoder_=x;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;tlp(this,S)},tlp=function(x,L){L=L===void 0?{}:L;
x.discardUnknownFields=L.discardUnknownFields===void 0?!1:L.discardUnknownFields},hUf=function(x,L,D,S){if(LCw.length){var Q=LCw.pop();
tlp(Q,S);Q.decoder_.init(x,L,D,S);return Q}return new xz0(x,L,D,S)},MNf,PQ0,aM,Dzp,LCw;
xz0.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;LCw.length<100&&LCw.push(this)};
xz0.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
MNf=function(x){if(x.decoder_.atEnd())return!1;x.fieldCursor_=x.decoder_.cursor_;var L=_.fi(x.decoder_)>>>0,D=L>>>3;L&=7;if(!(L>=0&&L<=5))throw Error();if(D<1)throw Error();x.nextField_=D;x.nextWireType_=L;return!0};
PQ0=function(x){switch(x.nextWireType_){case 0:x.nextWireType_!=0?PQ0(x):cjs(x.decoder_);break;case 1:x=x.decoder_;Na(x,x.cursor_+8);break;case 2:if(x.nextWireType_!=2)PQ0(x);else{var L=_.fi(x.decoder_)>>>0;x=x.decoder_;Na(x,x.cursor_+L)}break;case 5:x=x.decoder_;Na(x,x.cursor_+4);break;case 3:L=x.nextField_;do{if(!MNf(x))throw Error();if(x.nextWireType_==4){if(x.nextField_!=L)throw Error();break}PQ0(x)}while(1);break;default:throw Error();}};
aM=function(x,L,D){var S=x.decoder_.end_,Q=_.fi(x.decoder_)>>>0;Q=x.decoder_.cursor_+Q;var J=Q-S;J<=0&&(x.decoder_.end_=Q,D(L,x,void 0,void 0,void 0),J=Q-x.decoder_.cursor_);if(J)throw Error();x.decoder_.cursor_=Q;x.decoder_.end_=S;return L};
Dzp=function(x){var L=_.fi(x.decoder_)>>>0;x=x.decoder_;var D=n43(x,L);x=x.bytes_;if(Cdb){var S=x,Q;(Q=G4c)||(Q=G4c=new TextDecoder("utf-8",{fatal:!0}));L=D+L;S=D===0&&L===S.length?S:S.subarray(D,L);try{var J=Q.decode(S)}catch(P){if(RG0===void 0){try{Q.decode(new Uint8Array([128]))}catch(v){}try{Q.decode(new Uint8Array([97])),RG0=!0}catch(v){RG0=!1}}!RG0&&(G4c=void 0);throw P;}}else{J=D;L=J+L;D=[];for(var Z=null,y,E;J<L;)y=x[J++],y<128?D.push(y):y<224?J>=L?S0():(E=x[J++],y<194||(E&192)!==128?(J--,
S0()):D.push((y&31)<<6|E&63)):y<240?J>=L-1?S0():(E=x[J++],(E&192)!==128||y===224&&E<160||y===237&&E>=160||((Q=x[J++])&192)!==128?(J--,S0()):D.push((y&15)<<12|(E&63)<<6|Q&63)):y<=244?J>=L-2?S0():(E=x[J++],(E&192)!==128||(y<<28)+(E-144)>>30!==0||((Q=x[J++])&192)!==128||((S=x[J++])&192)!==128?(J--,S0()):(y=(y&7)<<18|(E&63)<<12|(Q&63)<<6|S&63,y-=65536,D.push((y>>10&1023)+55296,(y&1023)+56320))):S0(),D.length>=8192&&(Z=Z3G(Z,D),D.length=0);J=Z3G(Z,D)}return J};
_.SSh=function(x){var L=_.fi(x.decoder_)>>>0;return jNb(x.decoder_,L)};
_.QCf=function(x,L,D){var S=_.fi(x.decoder_)>>>0;for(S=x.decoder_.cursor_+S;x.decoder_.cursor_<S;)D.push(L(x.decoder_))};
LCw=[];var JCh=function(x,L){this.JSC$8866_lo=x>>>0;this.JSC$8866_hi=L>>>0},KCp=function(x){x=BigInt.asUintN(64,x);
return new JCh(Number(x&BigInt(4294967295)),Number(x>>BigInt(32)))},aYs=function(x){if(!x)return On3||(On3=new JCh(0,0));
if(!/^\d+$/.test(x))return null;$H(x);return new JCh(Ri,wA)},On3,RUG=function(x,L){this.JSC$8868_lo=x>>>0;
this.JSC$8868_hi=L>>>0},fYh=function(x){if(!x)return Znf||(Znf=new RUG(0,0));
if(!/^-?\d+$/.test(x))return null;$H(x);return new RUG(Ri,wA)},Znf;var zE=function(){this.JSC$8870_buffer_=[]},Pi,vi,yCh;
zE.prototype.length=function(){return this.JSC$8870_buffer_.length};
zE.prototype.end=function(){var x=this.JSC$8870_buffer_;this.JSC$8870_buffer_=[];return x};
Pi=function(x,L,D){for(;D>0||L>127;)x.JSC$8870_buffer_.push(L&127|128),L=(L>>>7|D<<25)>>>0,D>>>=7;x.JSC$8870_buffer_.push(L)};
vi=function(x,L){for(;L>127;)x.JSC$8870_buffer_.push(L&127|128),L>>>=7;x.JSC$8870_buffer_.push(L)};
_.GiO=function(x,L){if(L>=0)vi(x,L);else{for(var D=0;D<9;D++)x.JSC$8870_buffer_.push(L&127|128),L>>=7;x.JSC$8870_buffer_.push(1)}};
yCh=function(x,L){$H(L);PGs(function(D,S){Pi(x,D>>>0,S>>>0)})};
zE.prototype.writeUint8=function(x){this.JSC$8870_buffer_.push(x>>>0&255)};
_.d8=function(x,L){x.JSC$8870_buffer_.push(L>>>0&255);x.JSC$8870_buffer_.push(L>>>8&255);x.JSC$8870_buffer_.push(L>>>16&255);x.JSC$8870_buffer_.push(L>>>24&255)};
zE.prototype.writeInt8=function(x){this.JSC$8870_buffer_.push(x>>>0&255)};var I$w,Zf,lff,B8f,nXn;I$w=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new zE};
Zf=function(x,L){L.length!==0&&(x.blocks_.push(L),x.totalLength_+=L.length)};
_.EJO=function(x,L){_.Me(x,L,2);L=x.encoder_.end();Zf(x,L);L.push(x.totalLength_);return L};
_.M5f=function(x,L){var D=L.pop();for(D=x.totalLength_+x.encoder_.length()-D;D>127;)L.push(D&127|128),D>>>=7,x.totalLength_++;L.push(D);x.totalLength_++};
_.Me=function(x,L,D){vi(x.encoder_,L*8+D)};
lff=function(x,L,D){if(D!=null)switch(zl0(D),_.Me(x,L,1),typeof D){case "number":x=x.encoder_;yrh(D);_.d8(x,Ri);_.d8(x,wA);break;case "bigint":D=KCp(D);x=x.encoder_;L=D.JSC$8866_hi;_.d8(x,D.JSC$8866_lo);_.d8(x,L);break;default:D=aYs(D),x=x.encoder_,L=D.JSC$8866_hi,_.d8(x,D.JSC$8866_lo),_.d8(x,L)}};
B8f=function(x,L,D){_.Me(x,L,2);vi(x.encoder_,D.length);Zf(x,x.encoder_.end());Zf(x,D)};
nXn=function(x,L,D,S){D!=null&&(L=_.EJO(x,L),S(D,x),_.M5f(x,L))};var Xsf,dzG,P4O,jCh,vJn,hXw,Hn0,gJp,khc;Xsf=Qv();dzG=Qv();P4O=Qv();jCh=Qv();vJn=Qv();_.V5h=Qv();_.XK=Qv();hXw=Qv();Hn0=Qv();_.uBG=Qv();gJp=Qv();khc=Qv();_.pA3=Qv();_.mzN=Qv();_.O5=function(x,L,D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x,L,D)};
_.O5.prototype.toJSON=function(){return Bs(this)};
_.O5.prototype.serialize=function(x){return JSON.stringify(Bs(this,x))};
var ozO=function(x,L){if(L==null||L=="")return new x;L=JSON.parse(L);if(!Array.isArray(L))throw Error("V");return new x(nfs(L))};
_.O5.prototype.getExtension=function(x){QIc(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,x.fieldIndex);Dqn(this,x.fieldIndex);return x.ctor?x.isRepeated?x.getExtensionFn(this,x.ctor,x.fieldIndex,_.Zb(),x.JSC$8881_hasMessageId):x.getExtensionFn(this,x.ctor,x.fieldIndex,x.JSC$8881_hasMessageId):x.isRepeated?x.getExtensionFn(this,x.fieldIndex,_.Zb(),x.JSC$8881_hasMessageId):x.getExtensionFn(this,x.fieldIndex,x.defaultValue,x.JSC$8881_hasMessageId)};
_.O5.prototype.clone=function(){var x=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,L=x[_.Jr]|0;return sIO(this,x,L)?F3N(this,x,!0):new this.constructor(A5(x,L,!1))};
_.O5.prototype[m3]=bq;_.O5.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var Jw=function(x,L,D){this.$$binaryReaderFn=x;this.$$binaryWriterFn=L;x=eG(Xsf);this.$$isMsg=!!x&&D===x||!1},QNn=c54(function(x,L,D,S,Q){if(x.nextWireType_!==2)return!1;
aM(x,$RG(L,S,D),Q);return!0},xe0),Jwf=c54(function(x,L,D,S,Q){if(x.nextWireType_!==2)return!1;
aM(x,$RG(L,S,D),Q);return!0},xe0),usc=Symbol(),ZU0=Symbol(),EzG=Symbol(),pi4=Symbol(),vzs=Symbol(),LRf,DeN;var N84,bnf,cN,YSN,FCf,sCh,T9w,t9,eX4,xl,RX0,Ghf,C4w,l$0,Uzs,wAf,B9N,qSw,AC0,$zf,rCc;N84=function(x,L){var D=new I$w;me0(x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,D,KU(usc,HUG,gzO,L));Zf(D,D.encoder_.end());x=new Uint8Array(D.totalLength_);L=D.blocks_;for(var S=L.length,Q=0,J=0;J<S;J++){var Z=L[J];x.set(Z,Q);Q+=Z.length}D.blocks_=[x];return x};
bnf=c54(function(x,L,D,S,Q){if(x.nextWireType_!==2)return!1;x=aM(x,qq([void 0,void 0],S,!0),Q);x=rA(x);S=L[_.Jr]|0;Q=sR(S);if(S&2)throw Error();var J=nl(L,D,Q);J instanceof su?(J.arrayState&2)!=0?(J=bl4(J),J.push(x),fl(L,S,D,J,Q)):(L=J,D=L.keyToApi(x[0],!1,!0),x=x[1],x=L.valueCtor?x===void 0?null:x:L.valueToApi(x,!1,!0,void 0,!1,L.arrayState),lq.prototype.set.call(L,D,x)):Array.isArray(J)?((J[_.Jr]|0)&2&&(J=Cqh(J),fl(L,S,D,J,Q)),J.push(x)):fl(L,S,D,[x],Q);return!0},function(x,L,D,S,Q){if(L instanceof
su)L.forEach(function(y,E){nXn(x,D,qq([E,
y],S,!1),Q)});
else if(Array.isArray(L))for(var J=0;J<L.length;J++){var Z=L[J];Array.isArray(Z)&&nXn(x,D,qq(Z,S,!1),Q)}});
cN=_.IN(function(x,L,D){if(x.nextWireType_!==1)return!1;_.E5(L,D,XJG(x.decoder_));return!0},T8h,khc);
YSN=_.IN(function(x,L,D,S){if(x.nextWireType_!==1)return!1;_.s9(L,D,S,XJG(x.decoder_));return!0},T8h,khc);
FCf=_.IN(function(x,L,D){if(x.nextWireType_!==5)return!1;_.E5(L,D,zk0(x.decoder_));return!0},eU0,gJp);
sCh=_.sN4(function(x,L,D){if(x.nextWireType_!==5&&x.nextWireType_!==2)return!1;L=_.LU(L,L[_.Jr]|0,D);x.nextWireType_==2?_.QCf(x,zk0,L):L.push(zk0(x.decoder_));return!0},function(x,L,D){L=_.FRf(_.f2,L,!0);
if(L!=null&&L.length)for(_.Me(x,D,2),vi(x.encoder_,L.length*4),D=0;D<L.length;D++){var S=x.encoder_;MWw(L[D]);_.d8(S,Ri)}},gJp);
T9w=_.IN(function(x,L,D,S){if(x.nextWireType_!==5)return!1;_.s9(L,D,S,zk0(x.decoder_));return!0},eU0,gJp);
_.ni=_.IN(function(x,L,D){if(x.nextWireType_!==0)return!1;_.E5(L,D,_.iV(x.decoder_,Ar));return!0},_.jN,_.XK);
t9=_.IN(function(x,L,D){if(x.nextWireType_!==0)return!1;x=_.iV(x.decoder_,Ar);_.E5(L,D,x===0?void 0:x);return!0},_.jN,_.XK);
eX4=_.IN(function(x,L,D,S){if(x.nextWireType_!==0)return!1;_.s9(L,D,S,_.iV(x.decoder_,Ar));return!0},_.jN,_.XK);
xl=_.IN(function(x,L,D){if(x.nextWireType_!==0)return!1;_.E5(L,D,_.iV(x.decoder_,dh4));return!0},function(x,L,D){L=qR0(L);
if(L!=null&&(zl0(L),L!=null))switch(_.Me(x,D,0),typeof L){case "number":x=x.encoder_;BC(L);Pi(x,Ri,wA);break;case "bigint":D=KCp(L);Pi(x.encoder_,D.JSC$8866_lo,D.JSC$8866_hi);break;default:D=aYs(L),Pi(x.encoder_,D.JSC$8866_lo,D.JSC$8866_hi)}},hXw);
_.Lt=_.IN(function(x,L,D){if(x.nextWireType_!==0)return!1;_.E5(L,D,_.fi(x.decoder_));return!0},CQn,jCh);
RX0=_.IN(function(x,L,D){if(x.nextWireType_!==0)return!1;x=_.fi(x.decoder_);_.E5(L,D,x===0?void 0:x);return!0},CQn,jCh);
Ghf=_.IN(function(x,L,D,S){if(x.nextWireType_!==0)return!1;_.s9(L,D,S,_.fi(x.decoder_));return!0},CQn,jCh);
C4w=_.IN(function(x,L,D){if(x.nextWireType_!==1)return!1;_.E5(L,D,a3w(x.decoder_));return!0},_.Ueb,_.uBG);
l$0=_.sN4(function(x,L,D){if(x.nextWireType_!==1&&x.nextWireType_!==2)return!1;L=_.LU(L,L[_.Jr]|0,D);x.nextWireType_==2?_.QCf(x,a3w,L):L.push(a3w(x.decoder_));return!0},function(x,L,D){L=_.FRf(qR0,L,!1);
if(L!=null)for(var S=0;S<L.length;S++)lff(x,D,L[S])},_.uBG);
_.DV=_.IN(function(x,L,D){if(x.nextWireType_!==0)return!1;_.E5(L,D,cjs(x.decoder_));return!0},wif,dzG);
_.S9=_.IN(function(x,L,D){if(x.nextWireType_!==0)return!1;x=cjs(x.decoder_);_.E5(L,D,x===!1?void 0:x);return!0},wif,dzG);
Uzs=_.IN(function(x,L,D,S){if(x.nextWireType_!==0)return!1;_.s9(L,D,S,cjs(x.decoder_));return!0},wif,dzG);
_.Q8=_.IN(function(x,L,D){if(x.nextWireType_!==2)return!1;_.E5(L,D,Dzp(x));return!0},WRs,P4O);
_.Jo=_.IN(function(x,L,D){if(x.nextWireType_!==2)return!1;x=Dzp(x);_.E5(L,D,x===""?void 0:x);return!0},WRs,P4O);
_.Kt=_.IN(function(x,L,D,S){if(x.nextWireType_!==2)return!1;_.s9(L,D,S,Dzp(x));return!0},WRs,P4O);
wAf=_.sN4(function(x,L,D){if(x.nextWireType_!==2)return!1;x=Dzp(x);_.LU(L,L[_.Jr]|0,D).push(x);return!0},function(x,L,D){L=_.FRf(_.uq,L,!0);
if(L!=null)for(var S=0;S<L.length;S++){var Q=x,J=D,Z=L[S];Z!=null&&B8f(Q,J,M0p(Z))}},P4O);
B9N=void 0;B9N=B9N===void 0?Xsf:B9N;_.Oc=new Jw(function(x,L,D,S,Q){if(x.nextWireType_!==2)return!1;S=qq(void 0,S,!0);_.LU(L,L[_.Jr]|0,D).push(S);aM(x,S,Q);return!0},function(x,L,D,S,Q){if(Array.isArray(L))for(var J=0;J<L.length;J++)q5p(x,L[J],D,S,Q)},B9N);
_.ZV=c54(function(x,L,D,S,Q,J){if(x.nextWireType_!==2)return!1;var Z=L[_.Jr]|0;B$s(L,Z,J,D,sR(Z));L=$RG(L,S,D);aM(x,L,Q);return!0},q5p);
_.WCp=_.IN(function(x,L,D){if(x.nextWireType_!==2)return!1;_.E5(L,D,_.SSh(x));return!0},_.Aw0,_.pA3);
qSw=_.IN(function(x,L,D,S){if(x.nextWireType_!==2)return!1;_.s9(L,D,S,_.SSh(x));return!0},_.Aw0,_.pA3);
AC0=_.IN(function(x,L,D){if(x.nextWireType_!==0)return!1;_.E5(L,D,_.fi(x.decoder_)>>>0);return!0},$e0,vJn);
$zf=_.IN(function(x,L,D,S){if(x.nextWireType_!==0)return!1;_.s9(L,D,S,_.fi(x.decoder_)>>>0);return!0},$e0,vJn);
_.y8=_.IN(function(x,L,D){if(x.nextWireType_!==0)return!1;_.E5(L,D,_.fi(x.decoder_));return!0},_.rwn,_.mzN);
_.Ia=_.IN(function(x,L,D){if(x.nextWireType_!==0)return!1;x=_.fi(x.decoder_);_.E5(L,D,x===0?void 0:x);return!0},_.rwn,_.mzN);
rCc=_.IN(function(x,L,D){if(x.nextWireType_!==0)return!1;_.E5(L,D,_.iV(x.decoder_,ji0));return!0},function(x,L,D){L=W_n(L);
if(L!=null&&(oXh(L),L!=null))switch(_.Me(x,D,0),typeof L){case "number":x=x.encoder_;D=L;L=D<0;D=Math.abs(D)*2;yrh(D);D=Ri;var S=wA;L&&(D==0?S==0?S=D=4294967295:(S--,D=4294967295):D--);Ri=D;wA=S;Pi(x,Ri,wA);break;case "bigint":x=x.encoder_;L=L<<BigInt(1)^L>>BigInt(63);Ri=Number(BigInt.asUintN(32,L));wA=Number(BigInt.asUintN(32,L>>BigInt(32)));Pi(x,Ri,wA);break;default:yCh(x.encoder_,L)}},Hn0);var f$0=function(){var x=N9n,L=inw;this.fieldIndex=175237375;this.ctor=L;this.isRepeated=0;this.getExtensionFn=_.Mg;this.defaultValue=void 0;this.JSC$8881_hasMessageId=x.messageId!=null?YH:void 0};
f$0.prototype.register=function(){PN(this)};var oJ0=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(oJ0,_.O5);var a$f=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(a$f,_.O5);var XiG=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(XiG,_.O5);var zXh=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(zXh,_.O5);var XAO=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(XAO,_.O5);var cCc=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(cCc,_.O5);var nJG=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(nJG,_.O5);nJG.prototype.getData=function(){return _.FK(this,2)};var t5f=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(t5f,_.O5);var xf_=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(xf_,_.O5);xf_.prototype.getStyle=function(){return _.Mg(this,oJ0,1)};var pU=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(pU,_.O5);pU.prototype.getPayloadCase=function(){return _.TE(this,Yz)};
pU.prototype.getStyle=function(){return _.A9(this,xf_,6,Yz)};
var Lc2=function(){var x=new pU,L=new XAO;return _.bQ(x,7,Yz,L)},Df_=function(){var x=new pU,L=new cCc;
return _.bQ(x,8,Yz,L)},Yz=[1,
2,3,4,5,6,7,8];var Sw2=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(Sw2,_.O5);var Qn2=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(Qn2,_.O5);var JGG=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(JGG,_.O5);var Kc2=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(Kc2,_.O5);var O3d=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(O3d,_.O5);var Z3r=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(Z3r,_.O5);var yGi=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(yGi,_.O5);var Ipi=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(Ipi,_.O5);Ipi.prototype.getData=function(){return _.FK(this,2)};var EfR=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(EfR,_.O5);var zUh=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(zUh,_.O5);zUh.prototype.getPayloadCase=function(){return _.TE(this,Ec)};
var Ec=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var MC=function(x,L){x=Error.call(this,x);this.message=x.message;"stack"in x&&(this.stack=x.stack);this.code=L===void 0?2:L};
_.p(MC,Error);var M0h=Promise;var dfH=function(x){this.channelPromise=x};
dfH.prototype.send=function(x,L,D){this.channelPromise.then(function(S){S.send(x,L,D)})};var Psd=function(x,L){this.data=x;this.channel=L};
Psd.prototype.reply=function(x,L,D){this.channel.send(x,L,D)};var jnA=function(x){this.JSC$8947_port_=x};
jnA.prototype.send=function(x,L,D){D=D===void 0?[]:D;var S=new MessageChannel;vf2(S.port1,L);this.JSC$8947_port_.postMessage(x,[S.port2].concat(D))};
var V0W=function(x,L){vf2(x,L);return new jnA(x)},vf2=function(x,L){L&&(x.onmessage=function(D){L(new Psd(D.data,V0W(D.ports[0])))})};var hO2=function(x){this.verifier_=x};
hO2.prototype.verify=function(x){return this.verifier_(x)};
var H3i=function(x){var L=Object.create(null);(typeof x==="string"?[x]:x).forEach(function(D){if(D==="null")throw Error("X");L[D]=!0});
return function(D){return L[D]===!0}};_.uh2=function(){if(!_.Qb.addEventListener||!Object.defineProperty)return!1;var x=!1,L=Object.defineProperty({},"passive",{get:function(){x=!0}});
try{var D=function(){};
_.Qb.addEventListener("test",D,L);_.Qb.removeEventListener("test",D,L)}catch(S){}return x}();var gfC;_.dT=function(x){var L=x.destination;var D=x.iframe;var S=x.origin;var Q=x.channelName===void 0?"ZNWN1d":x.channelName;var J=x.onMessage===void 0?void 0:x.onMessage;x=x.onEstablished===void 0?void 0:x.onEstablished;return gfC({destination:L,getSource:function(){return D.contentWindow},
originVerifier:S instanceof hO2?S:typeof S==="function"?new hO2(S):new hO2(H3i(S)),channelName:Q,onMessage:J,onEstablished:x})};
gfC=function(x){var L=x.destination;var D=x.getSource;var S=x.originVerifier;var Q=x.token===void 0?void 0:x.token;var J=x.channelName;var Z=x.onMessage===void 0?void 0:x.onMessage;var y=x.onEstablished===void 0?void 0:x.onEstablished;return new dfH(new M0h(function(E,P){var v=function(V){V.source&&V.source===D()&&S.verify(V.origin)&&(V.data.n||V.data)===J&&(L.removeEventListener("message",v,!1),Q&&V.data.t!==Q?P(Error("Y`"+J+"`"+Q+"`"+V.data.t)):(E(V0W(V.ports[0],Z)),y&&y(V)))};
L.addEventListener("message",v,!1)}))};var kNQ=function(x){try{x()}catch(L){JG(L)}};var mf_=function(x){var L=this;var D=x.getMessageType;var S=x.onUnregisteredMessage===void 0?function(){}:x.onUnregisteredMessage;
var Q=x.onBeforeRegisteredMessage===void 0?function(){}:x.onBeforeRegisteredMessage;
x=x.onAfterRegisteredMessage===void 0?function(){}:x.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=D;this.onUnregisteredMessage_=S;this.onBeforeRegisteredMessage_=Q;this.onAfterRegisteredMessage_=x;this.onMessage=function(J){return p4r(L,J)}};
mf_.prototype.register=function(x,L){this.registry_.set(x,L);return this};
var p4r=function(x,L){var D=x.getMessageType_(L.data),S=x.registry_.get(D);S?(kNQ(function(){return x.onBeforeRegisteredMessage_(L,D)}),kNQ(function(){return S(L)}),kNQ(function(){return x.onAfterRegisteredMessage_(L,D)})):kNQ(function(){return x.onUnregisteredMessage_(L,D)})};var b3d=function(x){this.JSC$8964_channel_=x},FcB,sni;
b3d.prototype.send=function(x,L,D){this.JSC$8964_channel_.send(Bs(x),L,D)};
_.Ywh=function(x,L){return function(D){var S=new x(D.data);return L(new Psd(S,D.channel))}};
FcB=function(x){return function(L){return x(new Psd(L.data,new b3d(L.channel)))}};
sni=function(x,L){return FcB(_.Ywh(x,L))};var T0W=function(x,L,D,S){this.registry=x;this.delegate=L;this.receiveMessageConstructor=D;this.createInitMessage=S;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},af3=function(x){var L=new mf_({getMessageType:x.getPayloadCase});
return new T0W(L,new b3d(_.dT({iframe:x.child,destination:window,origin:x.origin,channelName:x.channelName,onMessage:sni(x.receiveMessageConstructor,L.onMessage)})),x.receiveMessageConstructor,x.createInitMessage)},eOA=function(x,L){x.createInitMessage=L};
T0W.prototype.send=function(x){if(!this.initialised)throw new MC("Attempted to send a message before initialisation.");this.delegate.send(x)};
var ROh=function(x,L){return _.I(function(D){if(!x.initialised)throw new MC("Attempted to send a message before initialisation.");return D.return(new Promise(function(S){x.delegate.send(L,sni(x.receiveMessageConstructor,S))}))})};
T0W.prototype.init=function(){var x=this;return _.I(function(L){if(x.initialised)throw new MC("Attempted to initialise twice. The SDK can only be initialised once.");if(x.createInitMessage!==void 0){var D=x.delegate,S=D.send,Q=x.createInitMessage;var J=new a$f;var Z=[].concat(_.lP(x.features));J=_.t5(J,1,Z,_.Ll);S.call(D,Q.call(x,J))}x.initialised=!0;_.Y2(L)})};
var PM=function(x,L){if(x.initialised)throw new MC('Attempted to set up API "'+L+'" after initialisation. All APIs must be set up before initialising the SDK.');x.features.add(L);return x.registry};
_.J3.Object.defineProperties(T0W.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var GN2=function(x){this.channel=x;this.registered=!1};
GN2.prototype.update=function(x){if(this.channel.isInitialised){if(!this.registered)throw new MC("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var L=new pU;var D=new zXh;D=_.db(D,1,x);L=_.bQ(L,2,Yz,D);this.channel.send(L)}else this.register();this.JSC$8978_audioEnabled=x};
GN2.prototype.register=function(){PM(this.channel,1);this.registered=!0};
GN2.prototype.isAudioEnabled=function(){return this.JSC$8978_audioEnabled};var Csi=function(x){this.channel=x};
_.K=Csi.prototype;_.K.onFirstFrameReady=function(x){PM(this.channel,2).register(11,function(L){L=_.A9(L.data,Sw2,11,Ec);if(!L)throw new MC("Unexpectedly nonexistent GameFirstFrameReadyEvent");x(_.wy(L,1))})};
_.K.onReady=function(x){PM(this.channel,2).register(4,function(L){L=_.A9(L.data,JGG,4,Ec);if(!L)throw new MC("Unexpectedly nonexistent GameReadyEvent");x(_.wy(L,1))})};
_.K.onLevelComplete=function(x){PM(this.channel,2).register(5,function(L){L=_.A9(L.data,Kc2,5,Ec);if(!L)throw new MC("Unexpectedly nonexistent LevelCompleteEvent");x(_.wy(L,1),_.y1(L,2))})};
_.K.onGameOver=function(x){PM(this.channel,2).register(6,function(L){L=_.A9(L.data,Qn2,6,Ec);if(!L)throw new MC("Unexpectedly nonexistent GameOverEvent");x(_.wy(L,1))})};
_.K.pause=function(){var x=this;if(!this.channel.isInitialised)return PM(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new MC("Using unregistered Game Feature: pause.");var L=Lc2();return new Promise(function(D){return _.I(function(S){if(S.nextAddress==1)return S.yield(ROh(x.channel,L),2);D();_.Y2(S)})})};
_.K.resume=function(){var x=this;if(!this.channel.isInitialised)return PM(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new MC("Using unregistered Game Feature: resume.");var L=Df_();return new Promise(function(D){return _.I(function(S){if(S.nextAddress==1)return S.yield(ROh(x.channel,L),2);D();_.Y2(S)})})};var lpH=function(x){this.channel=x};
lpH.prototype.onReady=function(x){PM(this.channel,5).register(8,function(L){if(!_.A9(L.data,O3d,8,Ec))throw new MC("Unexpectedly nonexistent PageReadyEvent");x()})};var UfC=function(x){this.channel=x};
UfC.prototype.onChange=function(x){PM(this.channel,3).register(7,function(L){L=_.A9(L.data,Z3r,7,Ec);if(!L)throw new MC("Unexpectedly nonexistent ScoreEvent");x(_.wy(L,1),_.y1(L,2))})};var w4A={load:function(){throw new MC("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new MC("Storage used, but storage.onSave() listener not set!");}},B0Q=function(x){this.channel=x;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},WcA=function(x){PM(x.channel,4).register(2,w4A.load).register(3,w4A.save);
x.initialSetupDone=!0};
B0Q.prototype.onLoad=function(x){this.initialSetupDone||WcA(this);this.loadRegistered||(this.loadRegistered=!0,PM(this.channel,4).register(2,function(L){var D,S,Q;return _.I(function(J){if(J.nextAddress==1){D=_.A9(L.data,yGi,2,Ec);if(!D)throw new MC("Unexpectedly nonexistent StorageLoad");S=_.wy(D,1);return J.yield(x(S),2)}Q=J.yieldResult;var Z=L.reply,y=new pU;var E=new nJG;E=_.ei(E,1,S);E=_.PW(E,2,_.bG(Q,!1));y=_.bQ(y,3,Yz,E);Z.call(L,y);_.Y2(J)})}))};
B0Q.prototype.onSave=function(x){this.initialSetupDone||WcA(this);this.saveRegistered||(this.saveRegistered=!0,PM(this.channel,4).register(3,function(L){var D,S,Q;return _.I(function(J){if(J.nextAddress==1){D=_.A9(L.data,Ipi,3,Ec);if(!D)throw new MC("Unexpectedly nonexistent StorageSave");S=_.wy(D,1);Q=Ybf(D.getData());return J.yield(x(S,Q),2)}var Z=L.reply,y=new pU;var E=new t5f;E=_.ei(E,1,S);y=_.bQ(y,4,Yz,E);Z.call(L,y);_.Y2(J)})}))};var qw2=function(x){this.channel=x};
qw2.prototype.update=function(x){if(!this.channel.features.has(6))throw new MC("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var L=new pU,D=new xf_;x=_.mR(D,1,x);L=_.bQ(L,6,Yz,x);this.channel.send(L)};
qw2.prototype.register=function(){PM(this.channel,6)};var AG2=function(x){this.channel=x;this.userActivityLoggingIntervalMs=0};
AG2.prototype.onUserActivity=function(x,L){this.userActivityLoggingIntervalMs=L;PM(this.channel,7).register(9,function(D){if(!_.A9(D.data,EfR,9,Ec))throw new MC("Unexpectedly nonexistent ClickEvent");x()})};var $fr=function(x){var L=this;this.channel=x;this.init=this.channel.init.bind(this.channel);this.page=new lpH(this.channel);this.game=new Csi(this.channel);this.audio=new GN2(this.channel);this.score=new UfC(this.channel);this.storage=new B0Q(this.channel);this.style=new qw2(this.channel);this.userActivity=new AG2(this.channel);eOA(this.channel,function(D){var S=new XiG;D=_.mR(S,1,D);D=_.$I(D,3,L.userActivity.userActivityLoggingIntervalMs);S=L.audio.isAudioEnabled();S!==void 0&&_.db(D,2,S);S=new pU;
return _.bQ(S,5,Yz,D)})};var rGH=function(){this.timedFunctionContext=0};
rGH.prototype.timeExecution=function(x,L){var D=this;return function(){var S=_.Ne.apply(0,arguments);D.timedFunctionContext=x;return L.apply(null,_.lP(S))}};var N0_=function(){var x={};this.priorityTasks=(x[3]=[],x[2]=[],x[1]=[],x);this.isFlushing=!1},kR=function(x,L,D){var S=i3C(x,D);
x.priorityTasks[D].push(L);S&&x.priorityTasks[D].length===1&&x.flush()},i3C=function(x,L){return Object.keys(x.priorityTasks).map(function(D){return Number(D)}).filter(function(D){return!isNaN(D)&&D>L}).every(function(D){return x.priorityTasks[D].length===0})};
N0_.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(x){return x.length>0});)fpr(this,3),fpr(this,2),fpr(this,1)}catch(x){throw Object.values(this.priorityTasks).forEach(function(L){return void L.splice(0,L.length)}),x;
}finally{this.isFlushing=!1}}};
var fpr=function(x,L){for(;i3C(x,L)&&x.priorityTasks[L].length>0;)x.priorityTasks[L][0](),x.priorityTasks[L].shift()};
_.J3.Object.defineProperties(N0_.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(x){return x.length>0})}}});var StO={};var of_=globalThis.trustedTypes,nzN=of_,xT0;var s5=function(x){this.privateDoNotAccessOrElseWrappedResourceUrl=x};
s5.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var apG,zOR,X4C,cGd,nfG,t0_,xhB,L_h;apG=_.xI([""]);zOR=tK(["\x00"],["\\0"]);X4C=tK(["\n"],["\\n"]);cGd=tK(["\x00"],["\\u0000"]);nfG=_.xI([""]);t0_=tK(["\x00"],["\\0"]);xhB=tK(["\n"],["\\n"]);L_h=tK(["\x00"],["\\u0000"]);_.DhG=DTf(function(x){return x(apG)})||DTf(function(x){return x(zOR)})||DTf(function(x){return x(X4C)})||DTf(function(x){return x(cGd)});
_.SR2=_.Gi(nfG)&&_.Gi(t0_)&&_.Gi(xhB)&&_.Gi(L_h);var Aw;_.CU=function(x,L){this.privateDoNotAccessOrElseWrappedUrl=L};
_.CU.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.QiH=lQ("about:blank");Aw=lQ("about:invalid#zClosurez");var QTh=function(x){this.isValid=x},JrR=new QTh(function(x){return/^[^:]*([/?#]|$)/.test(x)}),K_H=Bi("data"),O22=Bi("http"),Z2R=Bi("https"),yr2=Bi("ftp"),Ih_=Bi("mailto"),EH2=Bi("intent"),MWR=Bi("vnd.youtube"),JB3=[K_H,
O22,Z2R,Ih_,yr2,JrR],OZb=Fs(function(){return typeof URL==="function"}),dhC=["data:",
"http:","https:","mailto:","ftp:"],yBb=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var oN=function(x){this.privateDoNotAccessOrElseWrappedHtml=x};
oN.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var bK4=Fs(function(){return new oN(of_?of_.emptyHTML:"")});var PGG={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"},E20=function(x,L){var D=Error.call(this,x+" cannot be used with intent "+PGG[L]);this.message=D.message;"stack"in D&&(this.stack=D.stack);this.type=x;this.intent=L;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.p(E20,Error);_.LZ=function(x){this.privateDoNotAccessOrElseWrappedScript=x};
_.LZ.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var jTc=function(x){this.privateDoNotAccessOrElseWrappedAttributePrefix=x};
jTc.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var v2n="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var ZE=function(x){this.privateDoNotAccessOrElseWrappedStyleSheet=x};
ZE.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};var qvn=function(x){var L=_.o1("window.location.href");x==null&&(x='Unknown Error of type "null/undefined"');if(typeof x==="string")return{message:x,name:"Unknown error",lineNumber:"Not available",fileName:L,stack:"Not available"};var D=!1;try{var S=x.lineNumber||x.line||"Not available"}catch(Z){S="Not available",D=!0}try{var Q=x.fileName||x.filename||x.sourceURL||_.Qb.$googDebugFname||L}catch(Z){Q="Not available",D=!0}L=jiW(x);if(!(!D&&x.lineNumber&&x.fileName&&x.stack&&x.message&&x.name)){D=x.message;
if(D==null){if(x.constructor&&x.constructor instanceof Function){if(x.constructor.name)D=x.constructor.name;else if(D=x.constructor,j9[D])D=j9[D];else{D=String(D);if(!j9[D]){var J=/function\s+([^\(]+)/m.exec(D);j9[D]=J?J[1]:"[Anonymous]"}D=j9[D]}D='Unknown Error of type "'+D+'"'}else D="Unknown Error of unknown type";typeof x.toString==="function"&&Object.prototype.toString!==x.toString&&(D+=": "+x.toString())}return{message:D,name:x.name||"UnknownError",lineNumber:S,fileName:Q,stack:L||"Not available"}}return{message:x.message,
name:x.name,lineNumber:x.lineNumber,fileName:x.fileName,stack:L}},jiW=function(x,L){L||(L={});
L[vHB(x)]=!0;var D=x.stack||"",S=x.cause;S&&!L[vHB(S)]&&(D+="\nCaused by: ",S.stack&&S.stack.indexOf(S.toString())==0||(D+=typeof S==="string"?S:S.message+"\n"),D+=jiW(S,L));x=x.errors;if(Array.isArray(x)){S=1;var Q;for(Q=0;Q<x.length&&!(S>4);Q++)L[vHB(x[Q])]||(D+="\nInner error "+S++ +": ",x[Q].stack&&x[Q].stack.indexOf(x[Q].toString())==0||(D+=typeof x[Q]==="string"?x[Q]:x[Q].message+"\n"),D+=jiW(x[Q],L));Q<x.length&&(D+="\n... "+(x.length-Q)+" more inner errors")}return D},vHB=function(x){var L=
"";
typeof x.toString==="function"&&(L=""+x);return L+x.stack},j9={};var VWG,O2,vX,H2A,u2C,hdh,am,z0,kB2;VWG=function(x,L){for(var D=x.split("%s"),S="",Q=Array.prototype.slice.call(arguments,1);Q.length&&D.length>1;)S+=D.shift()+Q.shift();return S+D.join("%s")};
_.cd=function(x){return encodeURIComponent(String(x))};
O2=function(x){return decodeURIComponent(x.replace(/\+/g," "))};
vX=function(x){$Dp.test(x)&&(x.indexOf("&")!=-1&&(x=x.replace(UDf,"&amp;")),x.indexOf("<")!=-1&&(x=x.replace(wrc,"&lt;")),x.indexOf(">")!=-1&&(x=x.replace(B3s,"&gt;")),x.indexOf('"')!=-1&&(x=x.replace(W63,"&quot;")),x.indexOf("'")!=-1&&(x=x.replace(qPf,"&#39;")),x.indexOf("\x00")!=-1&&(x=x.replace(A$f,"&#0;")));return x};
H2A=function(x){var L={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var D=_.Qb.document.createElement("div");return x.replace(hdh,function(S,Q){var J=L[S];if(J)return J;Q.charAt(0)=="#"&&(Q=Number("0"+Q.slice(1)),isNaN(Q)||(J=String.fromCharCode(Q)));J||(_.JB(D,aN(S+" ")),J=D.firstChild.nodeValue.slice(0,-1));return L[S]=J})};
u2C=function(x){return x.replace(/&([^;]+);/g,function(L,D){switch(D){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return D.charAt(0)!="#"||(D=Number("0"+D.slice(1)),isNaN(D))?L:String.fromCharCode(D)}})};
hdh=/&([^;\s<&]+);?/g;_.hQs=function(x){return String(x).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.gH2=String.prototype.repeat?function(x,L){return x.repeat(L)}:function(x,L){return Array(L+1).join(x)};
_.vM=function(x,L){if(!Number.isFinite(x))return String(x);x=String(x);var D=x.indexOf(".");D===-1&&(D=x.length);var S=x[0]==="-"?"-":"";S&&(x=x.substring(1));return S+(0,_.gH2)("0",Math.max(0,L-D))+x};
am=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.IM()).toString(36)};
z0=function(x){for(var L=0,D=0;D<x.length;++D)L=31*L+x.charCodeAt(D)>>>0;return L};
_.bz=function(x){return String(x).replace(/\-([a-z])/g,function(L,D){return D.toUpperCase()})};
_.mz=function(x){return String(x).replace(/([A-Z])/g,"-$1").toLowerCase()};
kB2=function(x){return x.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(L,D,S){return D+S.toUpperCase()})};var pCB=function(){this.names=new Map};
pCB.prototype.getName=function(x){var L=this.names.get(x);if(L)return L;var D;L=(D=x.description)!=null?D:am();this.names.set(x,L);return L};var mhR=function(x){var L=Error.call(this,x?x.length+" errors occurred during unsubscription:\n"+x.map(function(D,S){return S+1+") "+D.toString()}).join("\n  "):"");
this.message=L.message;"stack"in L&&(this.stack=L.stack);this.errors=x;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.p(mhR,Error);var IT=function(x){this.initialTeardown=x;this.closed=!1;this._teardowns=this._parentage=null};
_.K=IT.prototype;
_.K.unsubscribe=function(){if(!this.closed){this.closed=!0;var x=this._parentage;if(Array.isArray(x))for(var L=_.O(x),D=L.next();!D.done;D=L.next())D.value.remove(this);else x==null||x.remove(this);L=this.initialTeardown;if(yD(L))try{L()}catch(J){var S=J instanceof mhR?J.errors:[J]}var Q=this._teardowns;if(Q)for(this._teardowns=null,L=_.O(Q),D=L.next();!D.done;D=L.next()){D=D.value;try{yD(D)?D():D.unsubscribe()}catch(J){D=void 0,S=(D=S)!=null?D:[],J instanceof mhR?S=[].concat(_.lP(S),_.lP(J.errors)):
S.push(J)}}if(S)throw new mhR(S);}};
_.K.add=function(x){if(x&&x!==this)if(this.closed)yD(x)?x():x.unsubscribe();else{if(x instanceof IT){if(x.closed||x._hasParent(this))return;x._addParent(this)}var L;(this._teardowns=(L=this._teardowns)!=null?L:[]).push(x)}};
_.K._hasParent=function(x){var L=this._parentage;return L===x||Array.isArray(L)&&L.includes(x)};
_.K._addParent=function(x){var L=this._parentage;this._parentage=Array.isArray(L)?(L.push(x),L):L?[L,x]:x};
_.K._removeParent=function(x){var L=this._parentage;L===x?this._parentage=null:Array.isArray(L)&&u53(L,x)};
_.K.remove=function(x){var L=this._teardowns;L&&u53(L,x);x instanceof IT&&x._removeParent(this)};
var b2r=new IT;b2r.closed=!0;IT.JSC$9074_EMPTY=b2r;var k6w=function(){setTimeout.apply(null,_.lP(_.Ne.apply(0,arguments)))};var V8=function(x){IT.call(this);this.JSC$9079_isStopped=!1;this.destination=x instanceof V8?x:new ho(!x||yD(x)?{next:x!=null?x:void 0}:x);g2b(x)&&x.add(this)};
_.p(V8,IT);V8.JSC$9074_EMPTY=IT.JSC$9074_EMPTY;V8.create=function(x,L,D){return new HM(x,L,D)};
_.K=V8.prototype;_.K.next=function(x){this.JSC$9079_isStopped||this._next(x)};
_.K.error=function(x){this.JSC$9079_isStopped||(this.JSC$9079_isStopped=!0,this._error(x))};
_.K.complete=function(){this.JSC$9079_isStopped||(this.JSC$9079_isStopped=!0,this._complete())};
_.K.unsubscribe=function(){this.closed||(this.JSC$9079_isStopped=!0,IT.prototype.unsubscribe.call(this))};
_.K._next=function(x){this.destination.next(x)};
_.K._error=function(x){this.destination.error(x);this.unsubscribe()};
_.K._complete=function(){this.destination.complete();this.unsubscribe()};
var ho=function(x){this.partialObserver=x};
ho.prototype.next=function(x){var L=this.partialObserver;if(L.next)try{L.next(x)}catch(D){MT(D)}};
ho.prototype.error=function(x){var L=this.partialObserver;if(L.error)try{L.error(x)}catch(D){MT(D)}else MT(x)};
ho.prototype.complete=function(){var x=this.partialObserver;if(x.complete)try{x.complete()}catch(L){MT(L)}};
var HM=function(x,L,D){V8.call(this);var S;yD(x)||!x?S={next:x!=null?x:void 0,error:L!=null?L:void 0,complete:D!=null?D:void 0}:S=x;this.destination=new ho(S)};
_.p(HM,V8);HM.JSC$9074_EMPTY=V8.JSC$9074_EMPTY;HM.create=V8.create;var vH=typeof Symbol==="function"&&Symbol.observable||"@@observable";var jf=function(x){x&&(this._subscribe=x)};
_.K=jf.prototype;_.K.lift=function(x){var L=new jf;L.source=this;L.operator=x;return L};
_.K.subscribe=function(x,L,D){x=x&&x instanceof V8||x&&yD(x.next)&&yD(x.error)&&yD(x.complete)&&g2b(x)?x:new HM(x,L,D);L=this.operator;D=this.source;x.add(L?L.call(x,D):D?this._subscribe(x):this._trySubscribe(x));return x};
_.K._trySubscribe=function(x){try{return this._subscribe(x)}catch(L){x.error(L)}};
_.K.forEach=function(x,L){var D=this;L=mTn(L);return new L(function(S,Q){var J=D.subscribe(function(Z){try{x(Z)}catch(y){Q(y),J==null||J.unsubscribe()}},Q,S)})};
_.K._subscribe=function(x){var L;return(L=this.source)==null?void 0:L.subscribe(x)};
jf.prototype[vH]=function(){return this};
jf.prototype.pipe=function(){var x=_.Ne.apply(0,arguments);return x.length?pH0(x)(this):this};
jf.create=function(x){return new jf(x)};var YRR=function(){var x=Error.call(this,"object unsubscribed");this.message=x.message;"stack"in x&&(this.stack=x.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.p(YRR,Error);var hc=function(){this.observers=[];this.hasError=this.JSC$9095_isStopped=this.closed=!1;this.thrownError=null};
_.p(hc,jf);_.K=hc.prototype;_.K.lift=function(x){var L=new uW(this,this);L.operator=x;return L};
_.K._throwIfClosed=function(){if(this.closed)throw new YRR;};
_.K.next=function(x){this._throwIfClosed();if(!this.JSC$9095_isStopped){var L=this.observers.slice();L=_.O(L);for(var D=L.next();!D.done;D=L.next())D.value.next(x)}};
_.K.error=function(x){this._throwIfClosed();if(!this.JSC$9095_isStopped){this.hasError=this.JSC$9095_isStopped=!0;this.thrownError=x;for(var L=this.observers;L.length;)L.shift().error(x)}};
_.K.complete=function(){this._throwIfClosed();if(!this.JSC$9095_isStopped){this.JSC$9095_isStopped=!0;for(var x=this.observers;x.length;)x.shift().complete()}};
_.K.unsubscribe=function(){this.JSC$9095_isStopped=this.closed=!0;this.observers=null};
_.K._trySubscribe=function(x){this._throwIfClosed();return jf.prototype._trySubscribe.call(this,x)};
_.K._subscribe=function(x){this._throwIfClosed();this._checkFinalizedStatuses(x);return this._innerSubscribe(x)};
_.K._innerSubscribe=function(x){var L=this,D=this.JSC$9095_isStopped,S=this.observers;return this.hasError||D?IT.JSC$9074_EMPTY:(S.push(x),new IT(function(){return u53(L.observers,x)}))};
_.K._checkFinalizedStatuses=function(x){var L=this.thrownError,D=this.JSC$9095_isStopped;this.hasError?x.error(L):D&&x.complete()};
hc.create=function(x,L){return new uW(x,L)};
var uW=function(x,L){hc.call(this);this.destination=x;this.source=L};
_.p(uW,hc);uW.create=hc.create;uW.prototype.next=function(x){var L,D;(L=this.destination)==null||(D=L.next)==null||D.call(L,x)};
uW.prototype.error=function(x){var L,D;(L=this.destination)==null||(D=L.error)==null||D.call(L,x)};
uW.prototype.complete=function(){var x,L;(x=this.destination)==null||(L=x.complete)==null||L.call(x)};
uW.prototype._subscribe=function(x){var L,D;return(D=(L=this.source)==null?void 0:L.subscribe(x))!=null?D:IT.JSC$9074_EMPTY};var oD=function(x){hc.call(this);this._value=x};
_.p(oD,hc);oD.create=hc.create;oD.prototype._subscribe=function(x){var L=hc.prototype._subscribe.call(this,x);!L.closed&&x.next(this._value);return L};
oD.prototype.getValue=function(){var x=this.thrownError,L=this._value;if(this.hasError)throw x;this._throwIfClosed();return L};
oD.prototype.next=function(x){hc.prototype.next.call(this,this._value=x)};
_.J3.Object.defineProperties(oD.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var qT=new jf(function(x){return x.complete()});var sTN=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var CPw=function(x){return x&&typeof x.length==="number"&&typeof x!=="function"};var F_W={now:function(){return(F_W.delegate||Date).now()},
delegate:void 0};var Si=function(x,L,D){x=x===void 0?Infinity:x;L=L===void 0?Infinity:L;D=D===void 0?F_W:D;hc.call(this);this.bufferSize=x;this.windowTime=L;this.timestampProvider=D;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=L===Infinity;this.bufferSize=Math.max(1,x);this.windowTime=Math.max(1,L)};
_.p(Si,hc);Si.create=hc.create;Si.prototype.next=function(x){var L=this.buffer,D=this.infiniteTimeWindow,S=this.timestampProvider,Q=this.windowTime;this.JSC$9095_isStopped||(L.push(x),!D&&L.push(S.now()+Q));siA(this);hc.prototype.next.call(this,x)};
Si.prototype._subscribe=function(x){this._throwIfClosed();siA(this);for(var L=this._innerSubscribe(x),D=this.infiniteTimeWindow,S=this.buffer.slice(),Q=0;Q<S.length&&!x.closed;Q+=D?1:2)x.next(S[Q]);this._checkFinalizedStatuses(x);return L};
var siA=function(x){var L=x.bufferSize,D=x.timestampProvider,S=x.buffer;x=x.infiniteTimeWindow;var Q=(x?1:2)*L;L<Infinity&&Q<S.length&&S.splice(0,S.length-Q);if(!x){L=D.now();D=0;for(x=1;x<S.length&&S[x]<=L;x+=2)D=x;D&&S.splice(0,D+1)}};var ed_=function(x,L){L=L===void 0?TAh:L;this.schedulerActionCtor=x;this.now=L};
ed_.prototype.schedule=function(x,L,D){L=L===void 0?0:L;return(new this.schedulerActionCtor(this,x)).schedule(D,L)};
var TAh=F_W.now;var b8N=function(){var x=Error.call(this,"no elements in sequence");this.message=x.message;"stack"in x&&(this.stack=x.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.p(b8N,Error);var RT=function(x,L,D,S,Q){V8.call(this,x);this.onUnsubscribe=Q;L&&(this._next=function(J){try{L(J)}catch(Z){this.destination.error(Z)}});
D&&(this._error=function(J){try{D(J)}catch(Z){this.destination.error(Z)}this.unsubscribe()});
S&&(this._complete=function(){try{S()}catch(J){this.destination.error(J)}this.unsubscribe()})};
_.p(RT,V8);RT.JSC$9074_EMPTY=V8.JSC$9074_EMPTY;RT.create=V8.create;RT.prototype.unsubscribe=function(){var x;this.closed||(x=this.onUnsubscribe)!=null&&x.call(this);V8.prototype.unsubscribe.call(this)};var L8=function(x,L){this.source=x;this.subjectFactory=L;this._subject=null;this._refCount=0;this._connection=null};
_.p(L8,jf);L8.create=jf.create;L8.prototype._subscribe=function(x){return RdB(this).subscribe(x)};
var RdB=function(x){var L=x._subject;if(!L||L.JSC$9095_isStopped)x._subject=x.subjectFactory();return x._subject};
L8.prototype._teardown=function(){this._refCount=0;var x=this._connection;this._subject=this._connection=null;x==null||x.unsubscribe()};
L8.prototype.connect=function(){var x=this,L=this._connection;if(!L){L=this._connection=new IT;var D=RdB(this);L.add(this.source.subscribe(new RT(D,void 0,function(S){x._teardown();D.error(S)},function(){x._teardown();
D.complete()},function(){return x._teardown()})));
L.closed&&(this._connection=null,L=IT.JSC$9074_EMPTY)}return L};var fEc=Array.isArray;var aEw=Array.isArray,GBB=Object,z0f=GBB.getPrototypeOf,XHw=GBB.prototype,cBf=GBB.keys;var wP=function(x,L,D){V8.call(this,x);this._next=L;this.shouldComplete=D};
_.p(wP,V8);wP.JSC$9074_EMPTY=V8.JSC$9074_EMPTY;wP.create=V8.create;wP.prototype._complete=function(){this.shouldComplete()?V8.prototype._complete.call(this):this.unsubscribe()};var Ko0=["addListener","removeListener"],JcN=["addEventListener","removeEventListener"],Z8p=["on","off"];var gT=function(){IT.call(this)};
_.p(gT,IT);gT.JSC$9074_EMPTY=IT.JSC$9074_EMPTY;gT.prototype.schedule=function(){return this};var CGB=function(x,L){return setInterval.apply(null,[x,L].concat(_.lP(_.Ne.apply(2,arguments))))};var kl=function(x,L){IT.call(this);this.scheduler=x;this.work=L;this.pending=!1};
_.p(kl,gT);kl.JSC$9074_EMPTY=gT.JSC$9074_EMPTY;kl.prototype.schedule=function(x,L){L=L===void 0?0:L;if(this.closed)return this;this.state=x;x=this.id;var D=this.scheduler;x!=null&&(this.id=lhA(this,x,L));this.pending=!0;this.delay=L;this.id=this.id||this.requestAsyncId(D,this.id,L);return this};
kl.prototype.requestAsyncId=function(x,L,D){D=D===void 0?0:D;return CGB(x.flush.bind(x,this),D)};
var lhA=function(x,L,D){D=D===void 0?0:D;if(D!=null&&x.delay===D&&x.pending===!1)return L;clearInterval(L)};
kl.prototype.execute=function(x,L){if(this.closed)return Error("ha");this.pending=!1;if(x=this._execute(x,L))return x;this.pending===!1&&this.id!=null&&(this.id=lhA(this,this.id,null))};
kl.prototype._execute=function(x){var L=!1;try{this.work(x)}catch(S){L=!0;var D=!!S&&S||Error(S)}if(L)return this.unsubscribe(),D};
kl.prototype.unsubscribe=function(){if(!this.closed){var x=this.id,L=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;u53(L,this);x!=null&&(this.id=lhA(this,x,null));this.delay=null;gT.prototype.unsubscribe.call(this)}};var UhQ=function(x,L){L=L===void 0?TAh:L;ed_.call(this,x,L);this.actions=[];this.active=!1;this.scheduled=void 0};
_.p(UhQ,ed_);UhQ.prototype.flush=function(x){var L=this.actions;if(this.active)L.push(x);else{var D;this.active=!0;do if(D=x.execute(x.state,x.delay))break;while(x=L.shift());this.active=!1;if(D){for(;x=L.shift();)x.unsubscribe();throw D;}}};var C8=new jf(Et);var ycf=Array.isArray;var pt=function(x,L){kl.call(this,x,L);this.scheduler=x;this.work=L};
_.p(pt,kl);pt.JSC$9074_EMPTY=kl.JSC$9074_EMPTY;pt.prototype.schedule=function(x,L){L=L===void 0?0:L;if(L>0)return kl.prototype.schedule.call(this,x,L);this.delay=L;this.state=x;this.scheduler.flush(this);return this};
pt.prototype.execute=function(x,L){return L>0||this.closed?kl.prototype.execute.call(this,x,L):this._execute(x,L)};
pt.prototype.requestAsyncId=function(x,L,D){D=D===void 0?0:D;return D!=null&&D>0||D==null&&this.delay>0?kl.prototype.requestAsyncId.call(this,x,L,D):x.flush(this)};var wCr=function(){UhQ.apply(this,arguments)};
_.p(wCr,UhQ);var NPf=new wCr(pt);var BAW=function(){this.performanceMonitor=new rGH;this.queue=new N0_;this.internalSymbol=Symbol();this.debugNames=new pCB};
BAW.prototype.getOnBackgrounded=function(){return C8};
_.J3.Object.defineProperties(BAW.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var m8=function(x,L){L=Error.call(this,L?x+": "+L:String(x));this.message=L.message;"stack"in L&&(this.stack=L.stack);this.code=x;this.__proto__=m8.prototype;this.name=String(x)};
_.p(m8,Error);var l8=function(x){m8.call(this,1E3,'sfr:"'+x+'"');this.measurementStrategyFailureReason=x;this.__proto__=l8.prototype};
_.p(l8,m8);var Uq=function(){m8.call(this,1003);this.__proto__=Uq.prototype};
_.p(Uq,m8);var bW=function(){m8.call(this,1009);this.__proto__=bW.prototype};
_.p(bW,m8);var W_i=function(){m8.call(this,1011);this.__proto__=W_i.prototype};
_.p(W_i,m8);var qRA=function(){m8.call(this,1007);this.__proto__=Uq.prototype};
_.p(qRA,m8);var RD=function(x){m8.call(this,1004,String(x));this.inputObservableIndex=x;this.__proto__=RD.prototype};
_.p(RD,m8);var NbN=function(x){m8.call(this,1010,x);this.__proto__=iwc.prototype};
_.p(NbN,m8);var iwc=function(x){m8.call(this,1005,x);this.__proto__=iwc.prototype};
_.p(iwc,m8);var ArB=function(x){var L=_.Ne.apply(1,arguments),D=this;this.orderedFactories=[];this.orderedFactories.push(x);L.forEach(function(S){D.orderedFactories.push(S)})};
ArB.prototype.isSupported=function(x){return this.orderedFactories.some(function(L){return L.isSupported(x)})};
ArB.prototype.makeBeacon=function(x,L){for(var D=0;D<this.orderedFactories.length;D++)if(this.orderedFactories[D].isSupported(L))return this.orderedFactories[D].makeBeacon(x,L);throw new bW;};var Cmf=Symbol("ia"),$h2=Symbol("ja"),fZ=function(x,L){this.value=x;this.timeline=L},iP=function(x,L){if(L.timeline!==x.timeline)throw new qRA;
return x.value-L.value};
_.K=fZ.prototype;_.K.equals=function(x){return iP(this,x)===0};
_.K.maximum=function(x){if(x.timeline!==this.timeline)throw new qRA;return this.value>=x.value?this:x};
_.K.round=function(){return new fZ(Math.round(this.value),this.timeline)};
_.K.add=function(x){return new fZ(this.value+x,this.timeline)};
_.K.toString=function(){return String(this.value)};var Yl=function(x,L){this.context=x;this.JSC$9201_pinger=L};
Yl.prototype.isSupported=function(x){return this.JSC$9201_pinger.isSupported(x)};
Yl.prototype.makeBeacon=function(x,L){if(!this.isSupported(L))throw new bW;return new sc(this.context,this.JSC$9201_pinger,L!=null?L:void 0,x)};
var sc=function(x,L,D,S){var Q=this;this.JSC$9207_pinger=L;this.properties=D;this.url=S;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var J;this.method=(J=D==null?void 0:D.beaconMethod)!=null?J:"GET";this.backgroundedSubscription=x.getOnBackgrounded().subscribe(function(){Q.sendNow()})};
sc.prototype.deactivate=function(){this.internalIsPending=!1};
sc.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$9207_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var x,L;this.JSC$9207_pinger.pingWithHeadersAndBody((x=this.properties)!=null?x:{},this.customHeaders,(L=this.body)!=null?L:"",this.url)}else this.JSC$9207_pinger.ping(this.url);this.internalIsPending=!1}catch(D){}else this.internalIsPending=!1};
sc.prototype.setHeader=function(x,L){this.customHeaders.set(x,L)};
_.J3.Object.defineProperties(sc.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var NAH=function(){for(var x=_.O(_.Ne.apply(0,arguments)),L=x.next();!L.done;L=x.next())if(L=L.value,L.available()){this.timeProvider=L;return}this.timeProvider=new rrC};
_.K=NAH.prototype;_.K.available=function(){return this.timeProvider.available()};
_.K.now=function(){return this.timeProvider.now()};
_.K.setTimeout=function(x,L){return this.timeProvider.setTimeout(x,L)};
_.K.clearTimeout=function(x){this.timeProvider.clearTimeout(x)};
_.K.interval=function(x,L){var D=this.intervalObservable(x).subscribe(L);return function(){return void D.unsubscribe()}};
_.K.intervalObservable=function(x){return this.timeProvider.intervalObservable(x)};
_.J3.Object.defineProperties(NAH.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var rrC=function(){this.timeline=Symbol()};
_.K=rrC.prototype;_.K.available=function(){return!1};
_.K.now=function(){return new fZ(0,this.timeline)};
_.K.setTimeout=function(){return 0};
_.K.clearTimeout=function(){};
_.K.interval=function(){return function(){}};
_.K.intervalObservable=function(){return C8};var TC=function(x,L){this.intrinsicFunctionNamespace=x;this.performanceMonitor=L};
_.K=TC.prototype;_.K.setTimeout=function(x,L){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,x),L)};
_.K.clearTimeout=function(x){this.intrinsicFunctionNamespace.clearTimeout(x)};
_.K.interval=function(x,L){var D=this.intervalObservable(x).subscribe(L);return function(){return void D.unsubscribe()}};
_.K.intervalObservable=function(x){var L=this;return new jf(function(D){var S=0,Q=L.intrinsicFunctionNamespace.setInterval(function(){D.next(S++)},x);
return function(){L.intrinsicFunctionNamespace.clearInterval(Q)}})};
_.K.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var i22=function(x,L){TC.call(this,x,L);this.timeline=$h2};
_.p(i22,TC);i22.prototype.now=function(){return new fZ(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
i22.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&TC.prototype.available.call(this)};var fhC=function(x,L){TC.call(this,x,L);this.timeline=Cmf};
_.p(fhC,TC);fhC.prototype.now=function(){return new fZ(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
fhC.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&TC.prototype.available.call(this)};var ahH=function(x){this.context=x;if(oHC===void 0)a:{var L,D,S=(L=x.global)==null?void 0:(D=L.document)==null?void 0:D.createElement("meta");if(S)try{S.httpEquiv="origin-trial";S.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";x.global.document.head.append(S);oHC=S;break a}catch(Q){}oHC=void 0}},
oHC;
ahH.prototype.isSupported=function(x){return H80(this.context)!==void 0&&!(x==null||!x.endOfSession)&&!e9(this.context)&&!(x==null?0:x.attributionEnabled)&&!(x==null?0:x.customHeaders)&&!(x==null?0:x.customBody)};
ahH.prototype.makeBeacon=function(x,L){if(!this.isSupported(L))throw new bW;return new Ra(this.context,x,L)};
var Ra=function(x,L,D){this.context=x;this.properties=D;this.JSC$9234_urlWithoutToken=L;var S;this.beaconMethod=(S=D==null?void 0:D.beaconMethod)!=null?S:"GET";x=H80(this.context);if(x===void 0)throw Error();this.fetchLater=x;zdW(this,XC_(this))},zdW=function(x,L){x.beaconResult&&x.beaconResult.activated||(x.beaconAbort=new AbortController,x.beaconResult=x.fetchLater(L,{method:x.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:x.beaconAbort.signal,activateAfter:96E4}))},XC_=function(x){x=x.JSC$9234_urlWithoutToken;
return(x.slice(-1)[0]==="&"?x:x+"&")+"flapi=1"};
Ra.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
Ra.prototype.sendNow=function(){};
Ra.prototype.setHeader=function(){};
_.J3.Object.defineProperties(Ra.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9234_urlWithoutToken},
set:function(x){this.JSC$9234_urlWithoutToken=x;x=XC_(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);zdW(this,x)}},
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 cr2=function(x){this.context=x};
cr2.prototype.isSupported=function(){return!e9(this.context)&&!!this.context.global.fetch};
cr2.prototype.ping=function(){var x=this;return AB.apply(null,_.lP(_.Ne.apply(0,arguments).map(function(L){return hB(x.context.global.fetch(L,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(CZ(function(D){return D.status===200}))}))).pipe(Yqb(function(L){return L}),sDG())};
cr2.prototype.pingWithHeadersAndBody=function(x,L,D){for(var S=_.Ne.apply(3,arguments),Q=this,J=new Headers,Z=_.O(L.entries()),y=Z.next();!y.done;y=Z.next()){var E=_.O(y.value);y=E.next().value;E=E.next().value;J.set(y,E)}var P,v=(P=x.keepAlive)!=null?P:!1;AB.apply(null,_.lP(S.map(function(V){return hB(Q.context.global.fetch(V,Object.assign({},{method:String(x.beaconMethod),cache:"no-cache"},v?{keepalive:!0}:{},{mode:"no-cors",headers:J,body:D}))).pipe(CZ(function(h){return h.status===200}))}))).pipe(Yqb(function(V){return V}),
sDG())};var nHG,ucn,tWR;_.GC=function(){};
_.B4=function(x){return x};
nHG=function(x){var L=L||0;return function(){return x.apply(this,Array.prototype.slice.call(arguments,0,L))}};
_.Ct=function(x){var L=!1,D;return function(){L||(D=x(),L=!0);return D}};
_.lW=function(x,L){var D=0;return function(S){_.Qb.clearTimeout(D);var Q=arguments;D=_.Qb.setTimeout(function(){x.apply(void 0,Q)},L)}};
ucn=function(x,L){var D=0,S=!1,Q=[],J=function(){D=0;S&&(S=!1,Z())},Z=function(){D=_.Qb.setTimeout(J,L);
var y=Q;Q=[];x.apply(void 0,y)};
return function(y){Q=arguments;D?S=!0:Z()}};
tWR=function(x,L){var D=0,S=function(){D=0};
return function(Q){D||(D=_.Qb.setTimeout(S,L),x.apply(void 0,arguments))}};var L3G=function(){return us&&g0?g0.mobile:!xqr()&&(bs("iPod")||bs("iPhone")||bs("Android")||bs("IEMobile"))},xqr=function(){return us&&g0?!g0.mobile&&(bs("iPad")||bs("Android")||bs("Silk")):bs("iPad")||bs("Android")&&!bs("Mobile")||bs("Silk")};var Uc=function(x,L,D,S,Q){this.allowedElements=x;this.elementPolicies=L;this.allowedGlobalAttributes=D;this.globalAttributePolicies=S;this.globallyAllowedAttributePrefixes=Q},Dqi=function(x,L,D){D=x.elementPolicies.get(D);
return(D==null?0:D.has(L))?D.get(L):x.allowedGlobalAttributes.has(L)?{policyAction:1}:(D=x.globalAttributePolicies.get(L))?D:x.globallyAllowedAttributePrefixes&&[].concat(_.lP(x.globallyAllowedAttributePrefixes)).some(function(S){return L.indexOf(S)===0})?{policyAction:1}:{policyAction:0}};var SuG="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(" "),
QI_=[["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}]])]],J5B="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(" "),
K3W=[["dir",{policyAction:3,conditions:Fs(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:Fs(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:Fs(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:Fs(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],Old=new Uc(new Set(SuG),new Map(QI_),new Set(J5B),new Map(K3W)),Zlr=new Uc(new Set(SuG.concat(["BUTTON",
"INPUT"])),new Map(QI_),new Set(Fs(function(){return J5B.concat(["class","id","name"])})),new Map(Fs(function(){return K3W.concat([["style",
{policyAction:1}]])})));var y52,IYr,MG_;y52=function(x,L,D,S,Q){this.JSC$9291_sanitizerTable=x;this.styleElementSanitizer=L;this.styleAttributeSanitizer=D;this.JSC$9291_resourceUrlPolicy=S;this.JSC$9291_navigationUrlPolicy=Q;this.changes=[]};
_.EX2=function(x,L){var D=document.implementation.createHTMLDocument("");x=IYr(x,L,D);D=D.body;D.appendChild(x);D=(new XMLSerializer).serializeToString(D);D=D.slice(D.indexOf(">")+1,D.lastIndexOf("</"));return aN(D)};
IYr=function(x,L,D){L=Woh(L,D);L=document.createTreeWalker(L,5,function(y){if(y.nodeType===3)y=1;else if(Ac4(y))if(y=qq4(y),y===null)y=2;else{var E=x.JSC$9291_sanitizerTable;y=y!=="FORM"&&(E.allowedElements.has(y)||E.elementPolicies.has(y))?1:2}else y=2;return y});
for(var S=L.nextNode(),Q=D.createDocumentFragment(),J=Q;S!==null;){var Z=void 0;if(S.nodeType===3)x.styleElementSanitizer&&J.nodeName==="STYLE"?(S=x.styleElementSanitizer(S.data),Z=x.createTextNode(S)):Z=x.createTextNode(S.data);else if(Ac4(S))Z=MG_(x,S,D);else throw Error("Z");J.appendChild(Z);if(S=L.firstChild())J=Z;else for(;!(S=L.nextSibling())&&(S=L.parentNode());)J=J.parentNode}return Q};
y52.prototype.createTextNode=function(x){return document.createTextNode(x)};
MG_=function(x,L,D){var S,Q=qq4(L);D=D.createElement(Q);L=L.attributes;for(var J=_.O(L),Z=J.next();!Z.done;Z=J.next()){var y=Z.value;Z=y.name;y=y.value;var E=Dqi(x.JSC$9291_sanitizerTable,Z,Q);a:{if(S=E.conditions){S=_.O(S);for(var P=S.next();!P.done;P=S.next()){var v=_.O(P.value);P=v.next().value;v=v.next().value;var V=void 0;if((P=(V=L.getNamedItem(P))==null?void 0:V.value)&&!v.has(P)){S=!1;break a}}}S=!0}if(S)switch(E.policyAction){case 1:dk(D,Z,y);break;case 2:throw Error();case 3:dk(D,Z,y.toLowerCase());
break;case 4:x.styleAttributeSanitizer?(y=x.styleAttributeSanitizer(y),dk(D,Z,y)):dk(D,Z,y);break;case 5:x.JSC$9291_resourceUrlPolicy?(E={type:2,attributeName:Z,elementName:Q},y=Bkw(y),(y=x.JSC$9291_resourceUrlPolicy(y,E))&&dk(D,Z,y.toString())):dk(D,Z,y);break;case 6:if(x.JSC$9291_resourceUrlPolicy){E={type:2,attributeName:Z,elementName:Q};S=[];y=_.O(y.split(","));for(P=y.next();!P.done;P=y.next())v=_.O(P.value.trim().split(/\s+/,2)),P=v.next().value,v=v.next().value,S.push({url:P,descriptor:v});
y={parts:[]};S=_.O(S);for(P=S.next();!P.done;P=S.next())P=P.value,v=Bkw(P.url),(v=x.JSC$9291_resourceUrlPolicy(v,E))&&y.parts.push({url:v.toString(),descriptor:P.descriptor});dk(D,Z,$ps(y))}else dk(D,Z,y);break;case 7:E=y;if(x.JSC$9291_navigationUrlPolicy){E={type:2,attributeName:Z,elementName:Q};y=Bkw(y);y=x.JSC$9291_navigationUrlPolicy(y,E);if(y===null)break;E=y.toString()}y=E;E=_.ZZ0(y);E=E!==void 0&&dhC.indexOf(E.toLowerCase())!==-1?y:"about:invalid#zClosurez";dk(D,Z,E)}}return D};
_.dq2=Fs(function(){return new y52(Old)});
_.Pq2=Fs(function(){return new y52(Zlr)});var jIQ=function(){this.calledBuild=!1;this.JSC$9303_sanitizerTable=Old},vXQ=function(){jIQ.apply(this,arguments)};
_.p(vXQ,jIQ);vXQ.prototype.build=function(){if(this.calledBuild)throw Error("la");this.calledBuild=!0;return new y52(this.JSC$9303_sanitizerTable,void 0,void 0,this.JSC$9303_resourceUrlPolicy,this.JSC$9303_navigationUrlPolicy)};var VG2=/[^#]*/;var R93={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"},hlr=_.Ct(function(){return C8N()}),
u9W=function(){var x=Hli("IFRAME"),L={};
_.nm(hlr(),function(D){x.sandbox&&x.sandbox.supports&&x.sandbox.supports(D)&&(L[D]=!0)});
return L},Hli=function(x,L){L=L===void 0?document:L;
return L.createElement(String(x).toLowerCase())};var wT;_.BF=function(x,L,D){return Math.min(Math.max(x,L),D)};
wT=function(x,L,D){return x+D*(L-x)};_.Wn=function(x,L){this.x=x!==void 0?x:0;this.y=L!==void 0?L:0};
_.K=_.Wn.prototype;_.K.clone=function(){return new _.Wn(this.x,this.y)};
_.K.equals=function(x){return x instanceof _.Wn&&(this==x?!0:this&&x?this.x==x.x&&this.y==x.y:!1)};
_.K.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.K.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.K.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.K.translate=function(x,L){x instanceof _.Wn?(this.x+=x.x,this.y+=x.y):(this.x+=Number(x),typeof L==="number"&&(this.y+=L));return this};
_.K.scale=function(x,L){this.x*=x;this.y*=typeof L==="number"?L:x;return this};_.b8=function(x,L){this.width=x;this.height=L};
_.K=_.b8.prototype;_.K.clone=function(){return new _.b8(this.width,this.height)};
_.K.area=function(){return this.width*this.height};
_.K.aspectRatio=function(){return this.width/this.height};
_.K.isEmpty=function(){return!this.area()};
_.K.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.K.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.K.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.K.scale=function(x,L){this.width*=x;this.height*=typeof L==="number"?L:x;return this};var gXW;_.wk={};gXW="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.wk.add=function(x,L,D){if(x!==null&&L in x)throw Error("na`"+L);x[L]=D};
_.wk.clear=function(x){for(var L in x)delete x[L]};
_.wk.clone=function(x){var L={},D;for(D in x)L[D]=x[D];return L};
_.wk.contains=function(x,L){return i80(x,L)};
_.wk.containsKey=function(x,L){return x!==null&&L in x};
_.wk.containsValue=i80;_.wk.create=axb;_.wk.createImmutableView=function(x){var L=x;Object.isFrozen&&!Object.isFrozen(x)&&(L=Object.create(x),Object.freeze(L));return L};
_.wk.createSet=z9h;_.wk.equals=function(x,L){for(var D in x)if(!(D in L)||x[D]!==L[D])return!1;for(var S in L)if(!(S in x))return!1;return!0};
_.wk.every=function(x,L,D){for(var S in x)if(!L.call(D,x[S],S,x))return!1;return!0};
_.wk.extend=function(x,L){for(var D,S,Q=1;Q<arguments.length;Q++){S=arguments[Q];for(D in S)x[D]=S[D];for(var J=0;J<gXW.length;J++)D=gXW[J],Object.prototype.hasOwnProperty.call(S,D)&&(x[D]=S[D])}};
_.wk.filter=function(x,L,D){var S={},Q;for(Q in x)L.call(D,x[Q],Q,x)&&(S[Q]=x[Q]);return S};
_.wk.findKey=fxh;_.wk.findValue=function(x,L,D){return(L=fxh(x,L,D))&&x[L]};
_.wk.forEach=function(x,L,D){for(var S in x)L.call(D,x[S],S,x)};
_.wk.get=function(x,L,D){return x!==null&&L in x?x[L]:D};
_.wk.getAllPropertyNames=function(x,L,D){if(!x)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return Nkc(x);for(var S={};x&&(x!==Object.prototype||L)&&(x!==Function.prototype||D);){for(var Q=Object.getOwnPropertyNames(x),J=0;J<Q.length;J++)S[Q[J]]=!0;x=Object.getPrototypeOf(x)}return Nkc(S)};
_.wk.getAnyKey=function(x){for(var L in x)return L};
_.wk.getAnyValue=function(x){for(var L in x)return x[L]};
_.wk.getCount=function(x){var L=0,D;for(D in x)L++;return L};
_.wk.getKeys=Nkc;_.wk.getSuperClass=function(x){return(x=Object.getPrototypeOf(x.prototype))&&x.constructor};
_.wk.getValueByKeys=function(x,L){var D=_.Nf(L),S=D?L:arguments;for(D=D?0:1;D<S.length;D++){if(x==null)return;x=x[S[D]]}return x};
_.wk.getValues=function(x){var L=[],D=0,S;for(S in x)L[D++]=x[S];return L};
_.wk.isEmpty=function(x){for(var L in x)return!1;return!0};
_.wk.isImmutableView=function(x){return!!Object.isFrozen&&Object.isFrozen(x)};
_.wk.map=function(x,L,D){var S={},Q;for(Q in x)S[Q]=L.call(D,x[Q],Q,x);return S};
_.wk.remove=function(x,L){var D;(D=L in x)&&delete x[L];return D};
_.wk.set=function(x,L,D){x[L]=D};
_.wk.setIfUndefined=function(x,L,D){return L in x?x[L]:x[L]=D};
_.wk.setWithReturnValueIfNotSet=function(x,L,D){if(L in x)return x[L];D=D();return x[L]=D};
_.wk.some=function(x,L,D){for(var S in x)if(L.call(D,x[S],S,x))return!0;return!1};
_.wk.transpose=function(x){var L={},D;for(D in x)L[x[D]]=D;return L};
_.wk.unsafeClone=oR3;var $Z=function(x,L){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=x===rLw&&L||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=kgB};
$Z.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var psA=function(x){return x instanceof $Z&&x.constructor===$Z&&x.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===kgB?x.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},kgB={},rLw={};
new $Z(rLw,"");var Tj,bx,WM,mqH,F3B,Yu2,qp,T$B,Rlr,elQ,rT,Ggd,quQ,W3C,B$G,A5G,$qW,r5G,N$R,Ou0,ilr,oX2,aYG,fY2,BM;Tj=function(x){return x?new BM(_.Ac(x)):eGs||(eGs=new BM)};
_.IB=function(x,L){return typeof L==="string"?x.getElementById(L):L};
bx=function(x,L){return(L||document).getElementsByTagName(String(x))};
_.blC=function(x){return mqH("yt-formatted-string","paper-input-input",x)};
WM=function(x,L,D,S){x=S||x;return(L=L&&L!="*"?String(L).toUpperCase():"")||D?x.querySelectorAll(L+(D?"."+D:"")):x.getElementsByTagName("*")};
mqH=function(x,L,D){var S=document,Q=x&&x!="*"?String(x).toUpperCase():"";return Q||L?(D||S).querySelector(Q+(L?"."+L:"")):WM(S,x,L,D)[0]||null};
F3B=function(x,L){_.wk.forEach(L,function(D,S){S=="style"?x.style.cssText=D:S=="class"?x.className=D:S=="for"?x.htmlFor=D:Yu2.hasOwnProperty(S)?x.setAttribute(Yu2[S],D):_.Ow(S,"aria-")||_.Ow(S,"data-")?x.setAttribute(S,D):x[S]=D})};
Yu2={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"};_.YR=function(x){x=(x||window).document;x=x.compatMode=="CSS1Compat"?x.documentElement:x.body;return new _.b8(x.clientWidth,x.clientHeight)};
_.sId=function(x){var L=_.qC(x);x=x.defaultView;return new _.Wn((x==null?void 0:x.pageXOffset)||L.scrollLeft,(x==null?void 0:x.pageYOffset)||L.scrollTop)};
_.qC=function(x){return x.scrollingElement?x.scrollingElement:_.V6||x.compatMode!="CSS1Compat"?x.body||x.documentElement:x.documentElement};
qp=function(x){return x?x.defaultView:window};
_.Ao=function(x,L,D){return T$B(document,arguments)};
T$B=function(x,L){var D=L[1],S=elQ(x,String(L[0]));D&&(typeof D==="string"?S.className=D:Array.isArray(D)?S.className=D.join(" "):F3B(S,D));L.length>2&&Rlr(x,S,L,2);return S};
Rlr=function(x,L,D,S){function Q(y){y&&L.appendChild(typeof y==="string"?x.createTextNode(y):y)}
for(;S<D.length;S++){var J=D[S];if(!_.Nf(J)||_.on(J)&&J.nodeType>0)Q(J);else{a:{if(J&&typeof J.length=="number"){if(_.on(J)){var Z=typeof J.item=="function"||typeof J.item=="string";break a}if(typeof J==="function"){Z=typeof J.item=="function";break a}}Z=!1}_.nm(Z?_.r0(J):J,Q)}}};
_.pw=function(x){return elQ(document,x)};
elQ=function(x,L){L=String(L);x.contentType==="application/xhtml+xml"&&(L=L.toLowerCase());return x.createElement(L)};
_.$l=function(){return document.createTextNode("\n")};
rT=function(x){if(x.nodeType!=1)return!1;switch(x.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};
Ggd=function(x,L){Rlr(_.Ac(x),x,arguments,1)};
_.NC=function(x){for(var L;L=x.firstChild;)x.removeChild(L)};
_.iW=function(x,L){L.parentNode&&L.parentNode.insertBefore(x,L)};
_.ft=function(x,L){L.parentNode&&L.parentNode.insertBefore(x,L.nextSibling)};
_.mg=function(x){return x&&x.parentNode?x.parentNode.removeChild(x):null};
_.Cq2=function(x,L){var D=L.parentNode;D&&D.replaceChild(x,L)};
_.lY2=function(x){var L,D=x.parentNode;if(D&&D.nodeType!=11)if(x.removeNode)x.removeNode(!1);else{for(;L=x.firstChild;)D.insertBefore(L,x);_.mg(x)}};
_.oa=function(x){return x.children!=void 0?x.children:Array.prototype.filter.call(x.childNodes,function(L){return L.nodeType==1})};
_.wsr=function(x){return x.nextElementSibling!==void 0?x.nextElementSibling:_.Uqr(x.nextSibling,!0)};
_.Uqr=function(x,L){for(;x&&x.nodeType!=1;)x=L?x.nextSibling:x.previousSibling;return x};
_.D8=function(x){return _.on(x)&&x.nodeType==1};
_.fw=function(x,L){if(!x||!L)return!1;if(x.contains&&L.nodeType==1)return x==L||x.contains(L);if(typeof x.compareDocumentPosition!="undefined")return x==L||!!(x.compareDocumentPosition(L)&16);for(;L&&x!=L;)L=L.parentNode;return L==x};
quQ=function(x,L){if(x==L)return 0;if(x.compareDocumentPosition)return x.compareDocumentPosition(L)&2?1:-1;if("sourceIndex"in x||x.parentNode&&"sourceIndex"in x.parentNode){var D=x.nodeType==1,S=L.nodeType==1;if(D&&S)return x.sourceIndex-L.sourceIndex;var Q=x.parentNode,J=L.parentNode;return Q==J?B$G(x,L):!D&&_.fw(Q,L)?-1*W3C(x,L):!S&&_.fw(J,x)?W3C(L,x):(D?x.sourceIndex:Q.sourceIndex)-(S?L.sourceIndex:J.sourceIndex)}S=_.Ac(x);D=S.createRange();D.selectNode(x);D.collapse(!0);x=S.createRange();x.selectNode(L);
x.collapse(!0);return D.compareBoundaryPoints(_.Qb.Range.START_TO_END,x)};
W3C=function(x,L){var D=x.parentNode;if(D==L)return-1;for(;L.parentNode!=D;)L=L.parentNode;return B$G(L,x)};
B$G=function(x,L){for(;L=L.previousSibling;)if(L==x)return-1;return 1};
A5G=function(x){var L,D=arguments.length;if(!D)return null;if(D==1)return arguments[0];var S=[],Q=Infinity;for(L=0;L<D;L++){for(var J=[],Z=arguments[L];Z;)J.unshift(Z),Z=Z.parentNode;S.push(J);Q=Math.min(Q,J.length)}J=null;for(L=0;L<Q;L++){Z=S[0][L];for(var y=1;y<D;y++)if(Z!=S[y][L])return J;J=Z}return J};
_.Ac=function(x){return x.nodeType==9?x:x.ownerDocument||x.document};
$qW=function(x){return x.contentDocument||x.contentWindow.document};
_.aa=function(x,L){if("textContent"in x)x.textContent=L;else if(x.nodeType==3)x.data=String(L);else if(x.firstChild&&x.firstChild.nodeType==3){for(;x.lastChild!=x.firstChild;)x.removeChild(x.lastChild);x.firstChild.data=String(L)}else _.NC(x),x.appendChild(_.Ac(x).createTextNode(String(L)))};
r5G={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};N$R={IMG:" ",BR:"\n"};Ou0=function(x){var L;x.tagName=="A"&&x.hasAttribute("href")||x.tagName=="INPUT"||x.tagName=="TEXTAREA"||x.tagName=="SELECT"||x.tagName=="BUTTON"?L=!x.disabled&&(!x.hasAttribute("tabindex")||ilr(x)):L=x.hasAttribute("tabindex")&&ilr(x);return L};
ilr=function(x){x=x.tabIndex;return typeof x==="number"&&x>=0&&x<32768};
oX2=function(x){var L=[];fY2(x,L,!0);x=L.join("");x=x.replace(/ \xAD /g," ").replace(/\xAD/g,"");x=x.replace(/\u200B/g,"");x=x.replace(/ +/g," ");x!=" "&&(x=x.replace(/^\s*/,""));return x};
aYG=function(x){var L=[];fY2(x,L,!1);return L.join("")};
fY2=function(x,L,D){if(!(x.nodeName in r5G))if(x.nodeType==3)D?L.push(String(x.nodeValue).replace(/(\r\n|\r|\n)/g,"")):L.push(x.nodeValue);else if(x.nodeName in N$R)L.push(N$R[x.nodeName]);else for(x=x.firstChild;x;)fY2(x,L,D),x=x.nextSibling};
_.zlA=function(x,L,D){if(!L&&!D)return null;var S=L?String(L).toUpperCase():null;return _.rk(x,function(Q){return(!S||Q.nodeName==S)&&(!D||typeof Q.className==="string"&&_.AG(Q.className.split(/\s+/),D))},!0)};
_.rk=function(x,L,D){x&&!D&&(x=x.parentNode);for(D=0;x;){if(L(x))return x;x=x.parentNode;D++}return null};
BM=function(x){this.JSC$9330_document_=x||_.Qb.document||document};
_.K=BM.prototype;_.K.getElement=function(x){return _.IB(this.JSC$9330_document_,x)};
_.K.$=BM.prototype.getElement;_.K.getElementsByTagName=function(x,L){return(L||this.JSC$9330_document_).getElementsByTagName(String(x))};
_.K.getElementsByTagNameAndClass=function(x,L,D){return WM(this.JSC$9330_document_,x,L,D)};
_.K.$$=BM.prototype.getElementsByTagNameAndClass;_.K.setProperties=F3B;_.K.JSC$9332_createDom=function(x,L,D){return T$B(this.JSC$9330_document_,arguments)};
_.K.createElement=function(x){return elQ(this.JSC$9330_document_,x)};
_.K.createTextNode=function(x){return this.JSC$9330_document_.createTextNode(String(x))};
_.K.getWindow=function(){return this.JSC$9330_document_.defaultView};
var FZ=function(x){return _.sId(x.JSC$9330_document_)};
_.K=BM.prototype;_.K.appendChild=function(x,L){x.appendChild(L)};
_.K.append=Ggd;_.K.canHaveChildren=rT;_.K.removeNode=_.mg;_.K.getChildren=_.oa;_.K.contains=_.fw;_.K.isFocusable=Ou0;_.K=Vr.prototype;_.K.getWidth=function(){return this.right-this.left};
_.K.getHeight=function(){return this.bottom-this.top};
_.K.clone=function(){return new Vr(this.top,this.right,this.bottom,this.left)};
_.K.contains=function(x){return this&&x?x instanceof Vr?x.left>=this.left&&x.right<=this.right&&x.top>=this.top&&x.bottom<=this.bottom:x.x>=this.left&&x.x<=this.right&&x.y>=this.top&&x.y<=this.bottom:!1};
_.K.expand=function(x,L,D,S){_.on(x)?(this.top-=x.top,this.right+=x.right,this.bottom+=x.bottom,this.left-=x.left):(this.top-=x,this.right+=Number(L),this.bottom+=Number(D),this.left-=Number(S));return this};
_.K.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};
_.K.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};
_.K.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};
_.K.translate=function(x,L){x instanceof _.Wn?(this.left+=x.x,this.right+=x.x,this.top+=x.y,this.bottom+=x.y):(this.left+=x,this.right+=x,typeof L==="number"&&(this.top+=L,this.bottom+=L));return this};
_.K.scale=function(x,L){L=typeof L==="number"?L:x;this.left*=x;this.right*=x;this.top*=L;this.bottom*=L;return this};var zC=function(x,L,D,S){this.left=x;this.top=L;this.width=D;this.height=S};
_.K=zC.prototype;_.K.clone=function(){return new zC(this.left,this.top,this.width,this.height)};
_.K.boundingRect=function(x){var L=Math.max(this.left+this.width,x.left+x.width),D=Math.max(this.top+this.height,x.top+x.height);this.left=Math.min(this.left,x.left);this.top=Math.min(this.top,x.top);this.width=L-this.left;this.height=D-this.top};
_.K.contains=function(x){return x instanceof _.Wn?x.x>=this.left&&x.x<=this.left+this.width&&x.y>=this.top&&x.y<=this.top+this.height:this.left<=x.left&&this.left+this.width>=x.left+x.width&&this.top<=x.top&&this.top+this.height>=x.top+x.height};
_.K.distance=function(x){var L=x.x<this.left?this.left-x.x:Math.max(x.x-(this.left+this.width),0);x=x.y<this.top?this.top-x.y:Math.max(x.y-(this.top+this.height),0);return Math.sqrt(L*L+x*x)};
_.K.getSize=function(){return new _.b8(this.width,this.height)};
_.K.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};
_.K.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};
_.K.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};
_.K.translate=function(x,L){x instanceof _.Wn?(this.left+=x.x,this.top+=x.y):(this.left+=x,typeof L==="number"&&(this.top+=L));return this};
_.K.scale=function(x,L){L=typeof L==="number"?L:x;this.left*=x;this.width*=x;this.top*=L;this.height*=L;return this};var c5C,nt,uUf,cM,LRH,xeA,DeB,yRp,S5H,Jwh;_.Xq=function(x,L,D){if(typeof L==="string")(L=_.Xsh(x,L))&&(x.style[L]=D);else for(var S in L){D=x;var Q=L[S],J=_.Xsh(D,S);J&&(D.style[J]=Q)}};
c5C={};_.Xsh=function(x,L){var D=c5C[L];if(!D){var S=_.bz(L);D=S;x.style[S]===void 0&&(S=(_.V6?"Webkit":_.vN?"Moz":null)+kB2(S),x.style[S]!==void 0&&(D=S));c5C[L]=D}return D};
_.v2=function(x,L){var D=_.Ac(x);return D.defaultView&&D.defaultView.getComputedStyle&&(x=D.defaultView.getComputedStyle(x,null))?x[L]||x.getPropertyValue(L)||"":""};
_.ix=function(x,L){return _.v2(x,L)||(x.currentStyle?x.currentStyle[L]:null)||x.style&&x.style[L]};
_.nXi=function(x){return _.ix(x,"position")};
nt=function(x,L,D){if(L instanceof _.Wn){var S=L.x;L=L.y}else S=L,L=D;x.style.left=cM(S,!1);x.style.top=cM(L,!1)};
uUf=function(x){try{return x.getBoundingClientRect()}catch(L){return{left:0,top:0,right:0,bottom:0}}};
_.$R=function(x){var L=_.Ac(x),D=new _.Wn(0,0);if(x==(L?_.Ac(L):document).documentElement)return D;x=uUf(x);L=FZ(Tj(L));D.x=x.left+L.x;D.y=x.top+L.y;return D};
_.tG2=function(x,L,D){if(L instanceof _.b8)D=L.height,L=L.width;else if(D==void 0)throw Error("oa");x.style.width=cM(L,!0);x.style.height=cM(D,!0)};
cM=function(x,L){typeof x=="number"&&(x=(L?Math.round(x):x)+"px");return x};
LRH=function(x){return xeA(x)};
xeA=function(x){var L=DeB;if(_.ix(x,"display")!="none")return L(x);var D=x.style,S=D.display,Q=D.visibility,J=D.position;D.visibility="hidden";D.position="absolute";D.display="inline";x=L(x);D.display=S;D.position=J;D.visibility=Q;return x};
DeB=function(x){var L=x.offsetWidth,D=x.offsetHeight,S=_.V6&&!L&&!D;return(L===void 0||S)&&x.getBoundingClientRect?(x=uUf(x),new _.b8(x.right-x.left,x.bottom-x.top)):new _.b8(L,D)};
yRp=function(x){var L=_.$R(x);x=xeA(x);return new zC(L.x,L.y,x.width,x.height)};
S5H=function(x,L){x=x.style;"opacity"in x?x.opacity=L:"MozOpacity"in x?x.MozOpacity=L:"filter"in x&&(x.filter=L===""?"":"alpha(opacity="+Number(L)*100+")")};
_.Lq=function(x,L){x.style.display=L?"":"none"};
_.QNi=function(x){return"rtl"==_.ix(x,"direction")};
Jwh=function(x){var L=_.v2(x,"marginLeft"),D=_.v2(x,"marginRight"),S=_.v2(x,"marginTop");x=_.v2(x,"marginBottom");return new Vr(parseFloat(S),parseFloat(D),parseFloat(x),parseFloat(L))};
_.KRi=function(x){var L=_.v2(x,"borderLeftWidth"),D=_.v2(x,"borderRightWidth"),S=_.v2(x,"borderTopWidth");x=_.v2(x,"borderBottomWidth");return new Vr(parseFloat(S),parseFloat(D),parseFloat(x),parseFloat(L))};var to=function(x){this.context=x};
to.prototype.isSupported=function(x){return(x==null?0:x.attributionEnabled)||(x==null?void 0:x.beaconMethod)==="POST"||(x==null?0:x.customHeaders)||(x==null?0:x.customBody)||(x==null?0:x.keepAlive)?!1:!e9(this.context)};
to.prototype.ping=function(){var x=this;return st(_.Ne.apply(0,arguments).map(function(L){try{var D=x.context.global,S=!1;S=S===void 0?!1:S;D.google_image_requests||(D.google_image_requests=[]);var Q=Hli("IMG",D.document);S&&(Q.attributionSrc="");Q.src=L;D.google_image_requests.push(Q);return!0}catch(J){return!1}}).every(function(L){return L}))};
to.prototype.pingWithHeadersAndBody=function(x,L,D){this.ping.apply(this,_.lP(_.Ne.apply(3,arguments)))};var OU2=function(x){this.context=x};
OU2.prototype.isSupported=function(x){return ZUA&&!e9(this.context)&&Xnn(this.context)!==void 0&&!(x==null?0:x.attributionEnabled)&&(x==null?void 0:x.beaconMethod)!=="POST"&&!(x==null?0:x.customHeaders)&&!(x==null?0:x.customBody)};
OU2.prototype.makeBeacon=function(x,L){if(!this.isSupported(L))throw new bW;return new xx(this.context,x)};
var ZUA=!1,xx=function(x,L){this.context=x;this.JSC$9351_urlWithoutToken=L;x=Xnn(this.context);if(x===void 0)throw Error();this.wrappedBeacon=new x(yw_(this),{})},yw_=function(x){x=x.JSC$9351_urlWithoutToken;
return(x.slice(-1)[0]==="&"?x:x+"&")+"pbapi=1"};
xx.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
xx.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
xx.prototype.setHeader=function(){};
_.J3.Object.defineProperties(xx.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9351_urlWithoutToken},
set:function(x){this.JSC$9351_urlWithoutToken=x;this.wrappedBeacon.setURL(yw_(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(x){if(x!=="GET")throw new bW;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var IfW=function(x){this.context=x};
IfW.prototype.isSupported=function(x){if((x==null?0:x.attributionEnabled)||(x==null?void 0:x.beaconMethod)==="GET"||(x==null?0:x.customHeaders)||(x==null?0:x.customBody)||(x==null?0:x.keepAlive))return!1;var L;return!e9(this.context)&&((L=this.context.global.navigator)==null?void 0:L.sendBeacon)!==void 0};
IfW.prototype.ping=function(){var x=this;return st(_.Ne.apply(0,arguments).map(function(L){var D;return(D=x.context.global.navigator)==null?void 0:D.sendBeacon(L)}).every(function(L){return L}))};
IfW.prototype.pingWithHeadersAndBody=function(x,L,D){this.ping.apply(this,_.lP(_.Ne.apply(3,arguments)))};var p8=function(x){this.value=x},xa=function(x,L){return st(x.value).pipe(gk(L))},Db=new p8(!1),Cfp=new p8(!0);var Np=function(x){this.value=x;this.releasedSubject=new hc};
Np.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.J3.Object.defineProperties(Np.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$9364_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var yxh=["FRAME","IMG","IFRAME"],S7b=/^[01](px)?$/,ZwN=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},Ow0=function(){var x=new ZwN;
x.crossDomainLoadedDefault=!0;x.pendingImagesBlockLoad=!0;return x};var Ezr=function(x,L){var D=vaf(x);if(D)if(D.onCreativeLoad)D.onCreativeLoad(L);else{var S=L?[L]:[],Q=function(J){for(var Z=0;Z<S.length;++Z)try{S[Z](1,J)}catch(y){}S={push:function(y){y(1,J)}}};
D.onCreativeLoad=function(J){S.push(J)};
D.setAttribute("data-creative-load-listener","");D.addEventListener("creativeLoad",function(J){Q(J.detail)});
_.Qb.addEventListener("message",function(J){jmh(D,Q,J)})}};var LW=function(x,L){var D=this;this.global=x;this.parentContext=L;this.JSC$9375_onVisibilityChange=this.document?AB(st(!0),WH(this.document,"visibilitychange")).pipe(oT(this.parentContext.performanceMonitor,748),CZ(function(){return D.getVisibilityState()}),tB()):st("visible");
this.document?WH(this.document,"DOMContentLoaded").pipe(oT(this.parentContext.performanceMonitor,739),cH(1)):st(Lgw("DOMContentLoaded"))},GSw=function(x){return x.document!==null&&x.document.visibilityState!==void 0};
LW.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
LW.prototype.querySelector=function(x){return this.document?this.document.querySelector(x):null};
LW.prototype.querySelectorAll=function(x){return this.document?_.r0(this.document.querySelectorAll(x)):[]};
LW.prototype.elementFromPoint=function(x,L){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;x=this.document.elementFromPoint(x,L);return x===null?null:new Np(x)};
var g60=function(x,L,D){D=D===void 0?!1:D;if(L.ref===void 0||!x.document)return st(L).pipe(oT(x.parentContext.performanceMonitor,749));var S=new Si(1),Q=function(){S.next(L)};
D||Ezr(L.ref,Q);Ib3(L.ref,Q);return S.pipe(oT(x.parentContext.performanceMonitor,749),cH(1))};
_.J3.Object.defineProperties(LW.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return lxb(this.global,"document")?this.global.document||null:null}}});var V10=_.xI(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),hv0=_.xI(["./reach_worklet.js"]),HwN=_.xI(["./reach_worklet.js"]),MNh=_.xI(["./reach_worklet.html"]),deG=_.xI(["./reach_worklet.js"]),PQA=_.xI(["./reach_worklet.js"]);_.Pn(MNh);_.Pn(deG);_.Pn(PQA);var zj={left:0,top:0,width:0,height:0};var jNQ,vzG,VNC,hUh,J8,us_,gzd,kiR,dnc,Pws,bUW,Y5C;jNQ=function(x,L,D,S,Q,J,Z){var y="";x&&(y+=x+":");D&&(y+="//",L&&(y+=L+"@"),y+=D,S&&(y+=":"+S));Q&&(y+=Q);J&&(y+="?"+J);Z&&(y+="#"+Z);return y};
vzG=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.ST=function(x){return x.match(vzG)};
_.eK=function(x,L){return x?L?decodeURI(x):decodeURIComponent(x):x};
VNC=function(x){x=_.ST(x)[1]||null;!x&&_.Qb.self&&_.Qb.self.location&&(x=_.Qb.self.location.protocol.slice(0,-1));return x?x.toLowerCase():""};
_.QY=function(x){return _.eK(_.ST(x)[3]||null,!0)};
_.gE=function(x){return _.eK(_.ST(x)[5]||null,!0)};
_.DvG=function(x){var L=x.indexOf("#");return L<0?null:x.slice(L+1)};
hUh=function(x){x=_.ST(x);return jNQ(x[1],x[2],x[3],x[4])};
_.HUr=function(x){x=_.ST(x);return jNQ(x[1],null,x[3],x[4])};
_.XY=function(x){x=_.ST(x);return jNQ(null,null,null,null,x[5],x[6],x[7])};
_.Q0=function(x){var L=x.indexOf("#");return L<0?x:x.slice(0,L)};
J8=function(x,L){x=_.ST(x);L=_.ST(L);return x[3]==L[3]&&x[1]==L[1]&&x[4]==L[4]};
us_=function(x,L){if(x){x=x.split("&");for(var D=0;D<x.length;D++){var S=x[D].indexOf("="),Q=null;if(S>=0){var J=x[D].substring(0,S);Q=x[D].substring(S+1)}else J=x[D];L(J,Q?O2(Q):"")}}};
gzd=function(x){var L=x.indexOf("#");L<0&&(L=x.length);var D=x.indexOf("?");if(D<0||D>L){D=L;var S=""}else S=x.substring(D+1,L);return[x.slice(0,D),S,x.slice(L)]};
kiR=function(x,L){return L?x?x+"&"+L:L:x};
_.piC=function(x,L){if(!L)return x;x=gzd(x);x[1]=kiR(x[1],L);return x[0]+(x[1]?"?"+x[1]:"")+x[2]};
_.meW=function(x,L,D){if(Array.isArray(L))for(var S=0;S<L.length;S++)_.meW(x,String(L[S]),D);else L!=null&&D.push(x+(L===""?"":"="+_.cd(L)))};
_.pH=function(x){var L=[],D;for(D in x)_.meW(D,x[D],L);return L.join("&")};
_.DN=function(x,L){L=_.pH(L);return _.piC(x,L)};
_.D9=function(x,L,D){D=D!=null?"="+_.cd(D):"";return _.piC(x,L+D)};
dnc=function(x,L,D,S){for(var Q=D.length;(L=x.indexOf(D,L))>=0&&L<S;){var J=x.charCodeAt(L-1);if(J==38||J==63)if(J=x.charCodeAt(L+Q),!J||J==61||J==38||J==35)return L;L+=Q+1}return-1};
Pws=/#|$/;_.om=function(x,L){var D=x.search(Pws),S=dnc(x,0,L,D);if(S<0)return null;var Q=x.indexOf("&",S);if(Q<0||Q>D)Q=D;S+=L.length+1;return O2(x.slice(S,Q!==-1?Q:0))};
bUW=/[?&]($|#)/;_.K6=function(x,L){for(var D=x.search(Pws),S=0,Q,J=[];(Q=dnc(x,S,L,D))>=0;)J.push(x.substring(S,Q)),S=Math.min(x.indexOf("&",Q)+1||D,D);J.push(x.slice(S));return J.join("").replace(bUW,"$1")};
_.rz=function(x,L,D){return _.D9(_.K6(x,L),L,D)};
Y5C=function(x){var L=gzd(window.location.href),D=L[1],S=[];D&&D.split("&").forEach(function(Q){var J=Q.indexOf("=");J=J>=0?Q.slice(0,J):Q;x.hasOwnProperty(J)||S.push(Q)});
L[1]=kiR(S.join("&"),_.pH(x));return L[0]+(L[1]?"?"+L[1]:"")+L[2]};var q7N=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(q7N,_.O5);q7N.prototype.getVersion=function(){return _.wy(this,2)};var Wgf=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(Wgf,_.O5);var Gef=function(x,L){return _.ei(x,2,L)},Bbh=function(x,L){return _.ei(x,3,L)};
Wgf.prototype.getModel=function(){return _.wy(this,4)};
var lbc=function(x,L){return _.ei(x,4,L)},Rv4=function(x,L){return _.ei(x,5,L)},wff=function(x,L){return _.ei(x,9,L)},ev3=function(x,L){return e_(x,10,L)},Tbf=function(x,L){return _.db(x,11,L)},CxO=function(x,L){return _.ei(x,1,L)},U4s=function(x,L){return _.db(x,7,L)};var FgN="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var Lw=function(x,L,D,S){x=x===void 0?window:x;L=L===void 0?null:L;D=D===void 0?new rGH:D;S=S===void 0?uR0():S;BAW.call(this);var Q=this;this.global=x;this.debugChannel=L;this.performanceMonitor=D;this.onPageHide=QDc(function(){return WH(Q.global,"pagehide")}).pipe(oT(this.performanceMonitor,941));
this.onLoad=QDc(function(){return WH(Q.global,"load")}).pipe(oT(this.performanceMonitor,738),cH(1));
this.onResize=QDc(function(){return WH(Q.global,"resize")}).pipe(oT(this.performanceMonitor,741));
this.onMessage=QDc(function(){return WH(Q.global,"message")}).pipe(oT(this.performanceMonitor,740));
this.document=new LW(this.global,this);this.timeProvider=new NAH(new fhC(this.intrinsicFunctionNamespace,this.performanceMonitor),new i22(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new ArB(new ahH(this),new OU2(this),new Yl(this,new cr2(this)),new Yl(this,new IfW(this)),new Yl(this,new to(this)))};
_.p(Lw,BAW);var e9=function(x){var L=x.global;return!!x.global.HTMLFencedFrameElement&&!!L.fence&&typeof L.fence.reportEvent==="function"};
_.K=Lw.prototype;_.K.reportFencedFrameEvent=function(x){e9(this)&&this.global.fence.reportEvent(x)};
_.K.getOnBackgrounded=function(){return this.onPageHide.pipe(oT(this.performanceMonitor,942),gk(this.queue),CZ(function(){}))};
_.K.postMessage=function(x,L,D){D=D===void 0?[]:D;this.global.postMessage(x,L,D)};
_.K.getWidth=function(){return Up4(this.global)?this.global.width:0};
_.K.getHeight=function(){return Up4(this.global)?this.global.height:0};
_.K.isMobile=function(){return xqr()||L3G()};
var i8=function(x,L){try{var D=m44(L,x.global,x.isMobile());return{left:D.left,top:D.top,width:D.getWidth(),height:D.getHeight()}}catch(S){return zj}};
Lw.prototype.validate=function(){var x=this.beaconFactory.isSupported()||e9(this);return this.global&&this.timeProvider.available()&&x};
var nR3=function(x){return(x=$4f(x.global))?hB(x):null};
_.J3.Object.defineProperties(Lw.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(x){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!Up4(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}}});_.FRh=!_.j_&&!_.hO3();var lac=function(x){return x};var wdp=function(x){return x.pipe(rP(function(L){var D=L.endOfSessionReason;var S;return((S=L.viewable)==null?void 0:S.extrapolateToNow().value)||D!=void 0}),cH(1),z6())};var zvf=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},Xfc=function(x){var L=x.sequenceNumber.toString(10).padStart(2,"0");
L=""+x.startTime+L;x.sequenceNumber<99&&x.sequenceNumber++;return L};var R14=PH(yr(function(x){return x.endOfSessionReason===void 0}),CZ(function(x){return Object.assign({},x,{timestamps:Gj(x)})}),rP(function(x){var L=x.viewable;
x=x.timestamps;var D;return(D=L==null?void 0:L.extrapolateUsingTimestampMap(x).value)!=null?D:!1}),CZ(function(x){var L=x.beaconFactory;
var D=x.timestampedExposureHistory;var S=x.timeOnScreen;var Q=x.binaryContext;x=x.timestamps;if(L===void 0||D===void 0||S===void 0||Q===void 0)return!1;if(S.extrapolateUsingTimestampMap(x).value.every(function(J){return J>=0}))return!0;
D=D.map(function(J){return J.timestamp+":"+J.value}).join(",");
S=cxO({bin:Q,tos:S},x);L.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+S+("&eh="+D)).sendNow();return!0}),yr(function(x){return!x}),z6());var t10=function(x){return{id:x.pingId,mcvt:x.maxConsecutiveViewTime,p:x.creativePosition,asp:x.adSpeedPosition,tm:x.totalMeasurementTime,tu:x.totalUnviewedTime,mtos:x.maxTimeOnScreen,tos:x.timeOnScreen,v:x.binaryVersion,bin:x.binaryContext,avms:x.measurementStrategy,bs:x.browserSize,mc:x.maximumExposure,"if":x.crossDomainIframeState,vu:x.delayedImpressionJsState,app:x.inApp,mse:x.mraidError,mtop:x.mraidSituation,itpl:x.injectedTemplateId,adk:x.adKey,exk:x.awbidKey,rs:x.requestSource,la:x.isLargeAd,
cr:x.isContentRecommendationAd,uach:x.userAgentClientHints,vs:x.viewState,r:x.reasonCode,pay:x.hasCpmavUrl,co:x.clientPingOrderCounter,rst:x.adRenderStartTime,rpt:x.adRenderPeriodTime,isd:x.initialScrollDepth,lsd:x.loadedScrollDepth,context:x.errorContext,msg:x.errorMessage,stack:x.errorStack,name:x.errorName,ec:x.hasElementChanged,sfr:x.strategyFailureReasons,met:x.creativeSearchResult,wmsd:x.webMeasurementStartDiagnostic,pv:x.pageVisible,epv:x.eosPageVisible,pbe:x.inStatefulBeaconExperiment,fle:x.inFetchLaterBeaconExperiment,
vae:x.inViewableAttributionExperiment,spb:x.supportsPendingBeacon,sfl:x.supportsFetchLater,ffslot:x.isFencedFrameSlotTurtlex,reach:x.sharedStorageReachMode,io2:x.v2VisibilityBitVector,rxdbg:x.rxDebugger,omida:x.omidAppId,omidp:x.omidPartner,omidpv:x.omidPartnerVersion,omidor:x.omidOcclusionReasons,omidv:x.omidVersion,omids:x.omidSessionType,omidam:x.omidAccessMode,omidct:x.omidCreativeType,omidia:x.omidInApp,omiddc:x.omidDeviceCategory,omidlat:x.omidLastActivity,omiddit:x.omidDeviceIdleTime,qid:x.errorEscapedQueryId}};var U9c=function(x){var L=[];return x.pipe(CZ(function(D){var S=D.beaconFactory,Q=D.fetchBeaconFactory,J=D.timeOnScreen,Z=D.timeOnScreenUrlPrefixes,y=D.payloadMapper,E=D.timeOnScreenPingId,P=D.timeOnScreenReason,v=D.urlSerializer,V=D.viewable,h=D.hasImpressionFired,H=D.inStatefulBeaconExperiment,k=D.supportsPendingBeacon,T=D.supportsFetchLater,G=D.turtlexReportEventData;if(!D.geometryMeasurable||!h||D.maxTimeOnScreen===void 0||J===void 0||Z===void 0||y===void 0||E===void 0||v===void 0||S===void 0)return!1;
if(D.isTurtlex){if(P===void 0)return!1;Z=D.reportFencedFrameEvent;if(!Z)return!1;Z({eventType:"active-view-time-on-screen",eventData:G!=null?G:"",destination:["buyer"]});return!0}if(!(H||T||P))return!1;G=Gj(D);var U;V=(U=V==null?void 0:V.extrapolateUsingTimestampMap(G).value)!=null?U:!1;U=v(Object.assign({},D,{pingId:E,viewState:V?4:3,reasonCode:P!=null?P:"u",payloadMapper:y,urlPrefixes:Z}),G);if(H){for(;L.length>Z.length;)D=void 0,(D=L.shift())==null||D.deactivate();U.forEach(function(X,f){f>=L.length?
L.push(S.makeBeacon(X)):L[f].url=X});
return k&&Q&&P!==void 0?(U.forEach(function(X){Q.makeBeacon(X).sendNow()}),!0):P!==void 0}if(k&&Q&&P!==void 0)return U.forEach(function(X){Q.makeBeacon(X).sendNow()}),!0;
if(T&&Q){for(;L.length>Z.length;)k=void 0,(k=L.shift())==null||k.deactivate();var l=v(Object.assign({},D,{pingId:E,viewState:V?4:3,reasonCode:P!=null?P:"u",payloadMapper:y,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),G)[0];U.forEach(function(X,f){f>=L.length?L.push(S.makeBeacon(l,{endOfSession:!0})):L[f].url=l});
return P!==void 0?(U.forEach(function(X){Q.makeBeacon(X).sendNow()}),!0):P!==void 0}return P!==void 0?(U.forEach(function(X){S.makeBeacon(X).sendNow()}),!0):!1}),yr(function(D){return!D}),z6())};var BO0=PH(rP(function(x){return x.immediateUrlPrefixes!==void 0&&x.payloadMapper!==void 0&&x.urlSerializer!==void 0&&x.inferredPingId!==void 0&&x.beaconFactory!==void 0}),rP(function(x){return Oqs(x)!==null}),JIN(function(x){return x.activeViewUnmeasurableEvent},function(x){return x.emit}),CZ(function(x){if(x.isTurtlex){var L=x.reportFencedFrameEvent;
if(L){var D;L({eventType:"active-view-unmeasurable",eventData:(D=x.turtlexReportEventData)!=null?D:"",destination:["buyer"]})}}else{D=void 0;var S=Oqs(x);if(S==="x"){var Q,J=(Q=x.geometricMeasurementErrors)!=null?Q:x.contextValidationErrors;J&&(L=J.stack,D=J.message)}x.urlSerializer(Object.assign({},x,{urlPrefixes:x.immediateUrlPrefixes,payloadMapper:x.payloadMapper,pingId:x.inferredPingId,viewState:2,reasonCode:S,errorMessage:D,errorStack:L}),Gj(x)).forEach(function(Z){x.beaconFactory.makeBeacon(Z).sendNow()})}}),
cH(1),z6());var Zqc=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var e1n=PH(rP(function(x){return x.payloadMapper!==void 0&&x.immediateUrlPrefixes!==void 0&&x.urlSerializer!==void 0&&x.inferredPingId!==void 0&&x.beaconFactory!==void 0}),CZ(function(x){return Object.assign({},x,{timestamps:Gj(x)})}),rP(function(x){var L=x.viewable;
var D=x.hasImpressionFired;x=x.timestamps;var S;return!!D&&((S=L==null?void 0:L.extrapolateUsingTimestampMap(x).value)!=null?S:!1)}),JIN(function(x){return x.activeViewViewableEvent},function(x){return x.emit}),CZ(function(x){var L=x.beaconFactory,D=x.turtlexReportEventData;
if(x.isTurtlex){var S=x.reportFencedFrameEvent;if(!S)return!1;S({eventType:"active-view-viewable",eventData:D!=null?D:"",destination:["buyer"]});return!0}D=x.urlSerializer(Object.assign({},x,{urlPrefixes:x.immediateUrlPrefixes,payloadMapper:x.payloadMapper,pingId:x.inferredPingId,viewState:4,reasonCode:"v"}),x.timestamps);(S=x.cpmavUrls)&&S.length>0&&x.viewUrlSerializer&&x.viewUrlSerializer(S,x).forEach(function(Q){L.makeBeacon(Q).sendNow()});
(S=x.viewableRelayUrls)&&S.length>0&&x.viewUrlSerializer&&x.viewUrlSerializer(S,x).forEach(function(Q){L.makeBeacon(Q).sendNow()});
D.forEach(function(Q){L.makeBeacon(Q,{attributionEnabled:x.isViewableAttributionEnabled}).sendNow()});
return!0}),yr(function(x){return!x}),z6());var x9b=CZ(function(x){return[x.value.topWindowViewportExternalGeometry.width,x.value.topWindowViewportExternalGeometry.height]});var f8=function(x,L){this.callback=x;this.options=L;this.intersectionObserverV2=this.intersectionObserverV1=null},UNh=function(x,L){L?x.intersectionObserverV2||(L=Object.assign({},x.options,{delay:100,
trackVisibility:!0}),x.intersectionObserverV2=new IntersectionObserver(x.callback,L)):x.intersectionObserverV1||(x.intersectionObserverV1=new IntersectionObserver(x.callback,x.options))},sNC=function(x,L){x=L?x.intersectionObserverV2:x.intersectionObserverV1;
if(!x)throw new W_i;return x};
f8.prototype.observe=function(x,L){sNC(this,x).observe(L)};
f8.prototype.unobserve=function(x,L){sNC(this,x).unobserve(L)};
f8.prototype.disconnect=function(x){sNC(this,x).disconnect()};
f8.prototype.takeRecords=function(x){return sNC(this,x).takeRecords()};var kJf={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:zj,topWindowViewportExternalGeometry:zj,measurementRequests:new hc,elementGeometrySourceName:"ns",elementGeometry:zj,intersectionGeometry:zj,viewportLocalAppOffset:{x:0,y:0}};var rIp=XZ(PH(CZ(function(x){var L;return(L=x.exposureOverride)!=null?L:BHh(x)}),CZ(function(x){return isFinite(x)?x:0}))),XBw=XZ(PH(CZ(function(x){var L;
return(L=x.exposureOverride)!=null?L:BHh(x)}),CZ(function(x){return isFinite(x)?x:-1})));var SS=function(x,L){this.a=x;this.b=L;if(x.clock.timeline!==L.clock.timeline)throw Error();};
SS.prototype.equivalentTo=function(x){return x instanceof SS?this.a.equivalentTo(x.a)&&this.b.equivalentTo(x.b):!1};
SS.prototype.extrapolateToTime=function(x){var L=this.a.extrapolateToTime(x).value,D=this.b.extrapolateToTime(x).value;return{timestamp:x,value:[L,D]}};
_.J3.Object.defineProperties(SS.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 x=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),L=this.a.lastMeasurement.timestamp.equals(x)?this.a.lastMeasurement.value:this.a.extrapolateToTime(x).value,D=this.b.lastMeasurement.timestamp.equals(x)?this.b.lastMeasurement.value:this.b.extrapolateToTime(x).value;return{timestamp:x,value:[L,D]}}}});var Qt=function(x,L){this.input=x;this.mapFunction=L;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
Qt.prototype.equivalentTo=function(x){return x instanceof Qt?this.input.equivalentTo(x.input)&&this.mapFunction===x.mapFunction:!1};
Qt.prototype.extrapolateToTime=function(x){x=this.input.extrapolateToTime(x);return{timestamp:x.timestamp,value:this.mapFunction(x.value)}};
_.J3.Object.defineProperties(Qt.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var JR=function(){};
JR.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
JR.prototype.extrapolateUsingTimestampMap=function(x){var L=this.clock.timeline,D,S=(D=x.get(L))!=null?D:this.clock.now();x.set(L,S);return this.extrapolateToTime(S)};
JR.prototype.map=function(x){return new T82(this,x)};
JR.prototype.joinWith=function(x){return new eUW(this,x)};
var eUW=function(){SS.apply(this,arguments);this.map=JR.prototype.map;this.joinWith=JR.prototype.joinWith;this.extrapolateToNow=JR.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=JR.prototype.extrapolateUsingTimestampMap};
_.p(eUW,SS);var T82=function(){Qt.apply(this,arguments);this.map=JR.prototype.map;this.joinWith=JR.prototype.joinWith;this.extrapolateToNow=JR.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=JR.prototype.extrapolateUsingTimestampMap};
_.p(T82,Qt);var n8=function(x,L){this.lastMeasurement=L;this.extrapolateToNow=JR.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=JR.prototype.extrapolateUsingTimestampMap;this.map=JR.prototype.map;this.joinWith=JR.prototype.joinWith;this.clock=x};
n8.prototype.equivalentTo=function(x){return x.active};
n8.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.J3.Object.defineProperties(n8.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var t$N=CZ(function(x){if(x.value.viewportGeometrySourceName==="omid"){if(x.value.elementGeometrySourceName==="nio")return"omio";if(x.value.elementGeometrySourceName==="geo")return"omgeo"}return x.value.elementGeometrySourceName==="geo"||x.value.elementGeometrySourceName==="nio"?x.value.viewportGeometrySourceName:x.value.elementGeometrySourceName});var qs0=PH(rP(function(x){return!isNaN(x)}),Jc(function(x,L){return isNaN(x)?L:Math.min(x,L)},NaN),tB());var NHn=XZ(PH(CZ(function(x){return x.intersectionGeometry.width*x.intersectionGeometry.height/(x.exposedViewportLocalGeometry.width*x.exposedViewportLocalGeometry.height)}),CZ(function(x){return isFinite(x)?Math.min(1,x):0})));var nV0=PH(XZ(CZ(function(x){x=x.exposureOverride?x.elementGeometry.width*x.elementGeometry.height*x.exposureOverride/(x.topWindowViewportExternalGeometry.width*x.topWindowViewportExternalGeometry.height):x.intersectionGeometry.width*x.intersectionGeometry.height/(x.topWindowViewportExternalGeometry.width*x.topWindowViewportExternalGeometry.height);return isFinite(x)?x:0})));var SXw=function(x,L){var D=this;this.timeProvider=x;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=L.pipe(tB()).subscribe(function(S){Jus(D);D.measurementRequestObserver=S})},KrN=function(x,L){Jus(x);
x.lastMeasurementRequest=x.timeProvider.setTimeout(function(){var D;return void((D=x.measurementRequestObserver)==null?void 0:D.next())},L)},Jus=function(x){x.lastMeasurementRequest!==null&&x.timeProvider.clearTimeout(x.lastMeasurementRequest);
x.lastMeasurementRequest=null};
SXw.prototype.dispose=function(){Jus(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var RUr=function(){};var FrO=function(x,L){this.context=x;this.strategies=L};
_.p(FrO,RUr);FrO.prototype.buildGeometrySource=function(x,L){var D=this.strategies.map(function(J){return J.buildGeometrySource(x,L)}),S=E6G(D.map(function(J){return J.geometrySource})),Q=S.capturedErrors.pipe(Gid());
return{geometrySource:S.chain.pipe(gk(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:Q,strategyErrors:S.capturedErrors}].concat(_.lP(D.map(function(J){return J.additionalOutputs}))))}};
var Gid=function(){return Jc(function(x,L){L instanceof l8?x.push(L.measurementStrategyFailureReason):x.push(-1);return x},[])};var TOw=function(x,L){this.context=x;this.poller=L};
_.p(TOw,RUr);TOw.prototype.buildGeometrySource=function(x,L){var D=MFs(Pff(this.context,this.poller),pBs(this.context,L.requestSource));return{geometrySource:Iaf(x.measurableCreative.pipe(D),L.inApp),additionalOutputs:{}}};var s10=function(x,L,D){D=D===void 0?ezw(x,L):D;this.context=x;this.intersectionObserverStrategy=D};
_.p(s10,RUr);s10.prototype.buildGeometrySource=function(x,L){var D=this.intersectionObserverStrategy(L.useV2);return{geometrySource:Iaf(x.measurableCreative.pipe(D,Rzw(this.context)),L.inApp),additionalOutputs:{}}};var CQi=function(x,L,D){var S=S===void 0?Symbol():S;this.element=x;this.immediateUrls=L;this.timeOnScreenUrls=D;this.symbol=S};var D9w=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),Hmc=Object.freeze([1,.75,D9w.exposureThreshold,D9w.largeAdExposureThreshold,0]);var m3w=function(x,L){L=L===void 0?36E5:L;var D=D===void 0?!0:D;this.creatives=new hc;this.elementsToUnregister=new hc;this.elementMap=new Map;var S=new Lw(window,null);S.beaconFactory=new Yl(S,new to(S));YXO(S,this.creatives,this.elementsToUnregister,x,L,D).subscribe()},FQN=function(x,L,D,S){if(!x.elementMap.has(L)){var Q=new Np(L);
x.elementMap.set(L,Q);x.creatives.next(new CQi(Q,D,S))}},Y$n=function(x,L){x.elementsToUnregister.next(L);
var D=x.elementMap.get(L);D!==void 0&&(D.release(),x.elementMap.delete(L))};var wpp=function(x){var L=x.url;x=x.uaDataValues;this.JSC$9480_url_=L;this.uaDataValues_=x;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var D=/[?&]([^&=]+)=([^&]*)/g;x=D.exec(L);)this.urlParamValues_[x[1]]=x[2]},BB3=function(x){x=x.uaDataValues_;
if(!x)return"";var L=S1("uap",x.platform)+S1("uapv",x.platformVersion)+S1("uafv",x.uaFullVersion)+S1("uaa",x.architecture)+S1("uam",x.model)+S1("uab",x.bitness);x.fullVersionList&&(L+="&uafvl="+encodeURIComponent(x.fullVersionList.map(function(D){return encodeURIComponent(D.brand)+";"+encodeURIComponent(D.version)}).join("|")));
x.wow64!=null&&(L+="&uaw="+Number(x.wow64));return L.slice(1)};var lfH=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(lfH,_.O5);lfH.prototype.getId=function(){return _.wy(this,1)};var KW=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(KW,_.O5);KW.prototype.getSeconds=function(){return lV(this,1)};
KW.prototype.setSeconds=function(x){return _.xz(this,1,Eu(x),"0")};_.W2=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(_.W2,_.O5);_.W2.prototype.getSeconds=function(){return lV(this,1)};
_.W2.prototype.setSeconds=function(x){return _.xz(this,1,Eu(x),"0")};
_.UeQ=function(x){var L=Number(WN(x,1));x=_.y1(x,2);return new Date(L*1E3+x/1E6)};var O1=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(O1,_.O5);O1.prototype.getUrl=function(){return _.wy(this,1)};
O1.prototype.setUrl=function(x){return _.Xm(this,1,x)};
O1.prototype.getHeight=function(){return _.y1(this,2)};
O1.prototype.getWidth=function(){return _.y1(this,3)};var Z9=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(Z9,_.O5);Z9.prototype.getAspectRatio=function(){return U9(this,1)};
Z9.prototype.getDuration=function(){return _.Mg(this,KW,2)};var wiH=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(wiH,_.O5);var B8h=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(B8h,_.O5);var WRG=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(WRG,_.O5);var q5h=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(q5h,_.O5);var AwW=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(AwW,_.O5);var $eW=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p($eW,_.O5);var rwi=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(rwi,_.O5);var N8C=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(N8C,_.O5);var iU2=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(iU2,_.O5);var Iw=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(Iw,_.O5);var E1=[2,4,5,6,7];var ffW=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(ffW,_.O5);var RM=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(RM,_.O5);_.K=RM.prototype;_.K.getId=function(){return _.Mg(this,lfH,1)};
_.K.getName=function(){return _.wy(this,2)};
_.K.setDescription=function(x){return _.Xm(this,3,x)};
_.K.getUrl=function(){return _.wy(this,8)};
_.K.setUrl=function(x){return _.Xm(this,8,x)};
var M_=function(x){return _.O7(x,O1,10,_.Zb())};
RM.prototype.getOwner=function(x){var L=_.zg(this,40,_.uq,3,!0);xhN(L,x);return L[x]};
RM.prototype.getVersion=function(){return lV(this,45)};
var dG=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(dG,_.O5);_.Pc=[0,t9,RX0];_.jS=[0,t9,RX0];var ozd=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(ozd,_.O5);var vc=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(vc,_.O5);vc.prototype.getStatus=function(){return _.BN(this,1)};
vc.prototype.removeItem=function(x){return rjb(this,2,x)};var af2=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(af2,_.O5);af2.prototype.getName=function(){return _.wy(this,8)};var Vt=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(Vt,_.O5);Vt.prototype.getCommand=function(){return _.BN(this,1)};
Vt.prototype.getSource=function(){return _.Mg(this,af2,2)};
Vt.prototype.setVisible=function(x){return _.wr(this,5,x)};
Vt.prototype.removeItem=function(x){return rjb(this,7,x)};var zU2=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(zU2,_.O5);zU2.prototype.getCommand=function(){return _.BN(this,1)};
zU2.prototype.removeItem=function(x){return rjb(this,4,x)};
var Xir=_.uQ(zU2);var hR=function(x,L,D){D=D===void 0?Error():D;var S=Error.call(this);this.message=S.message;"stack"in S&&(this.stack=S.stack);this.code=x;L+=":";D instanceof Error?(this.message=L+D.message,this.stack=D.stack||""):(this.message=L+String(D),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.p(hR,Error);_.Te=function(){this.JSC$9538_disposed_=this.JSC$9538_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.Te.prototype.JSC$9538_disposed_=!1;_.Te.prototype.isDisposed=function(){return this.JSC$9538_disposed_};
_.Te.prototype.dispose=function(){this.JSC$9538_disposed_||(this.JSC$9538_disposed_=!0,this.disposeInternal())};
_.Te.prototype[Symbol.dispose]=function(){this.dispose()};
_.V1=function(x,L){x.addOnDisposeCallback(_.bl(_.Q1,L))};
_.Te.prototype.addOnDisposeCallback=function(x,L){this.JSC$9538_disposed_?L!==void 0?x.call(L):x():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),L&&(x=x.bind(L)),this.onDisposeCallbacks_.push(x))};
_.Te.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var Hc=function(x){_.Te.call(this);this.wpc=x};
_.p(Hc,_.Te);Hc.prototype.bwm=function(){return this.wpc.f()};
Hc.prototype.pcB=function(x){return this.wpc.c(x)};
Hc.prototype.gT=function(x){return this.wpc.m(ruf(x))};
Hc.prototype.moC=function(x){return this.wpc.mws(ruf(x))};
var Kw=function(x){_.Te.call(this);var L=this;this.vm=x;this.oGp="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.vmq=void 0;this.d17=this.vm.p;this.ilS=this.vV7.bind(this);this.addOnDisposeCallback(function(){return void cwC(L)})};
_.p(Kw,_.Te);var nzB=function(x){var L;return _.I(function(D){if(D.nextAddress==1){if(!x.vm.wpc)throw new hR(30,"NWA");return x.jr7?D.return(x.jr7):D.yield(x.vm.wpc(),2)}L=D.yieldResult;x.jr7=new Hc(L);return D.return(x.jr7)})};
Kw.prototype.snapshot=function(x){return this.vm.s(Object.assign({},x.o2&&{c:x.o2},x.cT7&&{s:x.cT7},x.tTq!==void 0&&{p:x.tTq}))};
Kw.prototype.vV7=function(x){this.vm.e(x)};
Kw.prototype.mR8=function(x,L){return this.vm.c(x,L,!1)};
var cwC=function(x){x.vmq!==void 0&&(x.oGp.forEach(function(L){var D;(D=x.vmq)==null||D.removeEventListener(L,x.ilS)}),x.vmq=void 0)};
Kw.prototype.kix=function(){return this.vm.l()};var uO=function(){_.Te.apply(this,arguments);this.uv9=1};
_.p(uO,_.Te);uO.prototype.share=function(){if(this.isDisposed())throw Error("pa");this.uv9++;return this};
uO.prototype.dispose=function(){--this.uv9||_.Te.prototype.dispose.call(this)};var tNQ=function(x){this.o4U=x;x.addNewEventMetric("/client_streamz/bg/frs",_.M4("mk"))};
tNQ.prototype.record=function(x,L){this.o4U.record("/client_streamz/bg/frs",x,L)};
var xTA=function(x){this.g4F=x;x.addNewEventMetric("/client_streamz/bg/wrl",_.M4("mn"),E7("ac"),E7("sc"),_.M4("rk"),_.M4("mk"))};
xTA.prototype.record=function(x,L,D,S,Q,J){this.g4F.record("/client_streamz/bg/wrl",x,L,D,S,Q,J)};
var LWH=function(x){this.dZa=x;x.addNewCounter("/client_streamz/bg/ec",_.M4("en"),_.M4("mk"))};
LWH.prototype.increment=function(x,L){this.dZa.JSC$9791_incrementCounter("/client_streamz/bg/ec",x,L)};
var DTH=function(x){this.sjU=x;x.addNewEventMetric("/client_streamz/bg/el",_.M4("en"),_.M4("mk"))};
DTH.prototype.record=function(x,L,D){this.sjU.record("/client_streamz/bg/el",x,L,D)};
var Std=function(x){this.pka=x;x.addNewCounter("/client_streamz/bg/cec",E7("ec"),_.M4("mk"))};
Std.prototype.increment=function(x,L){this.pka.JSC$9791_incrementCounter("/client_streamz/bg/cec",x,L)};
var QT2=function(x){this.v4C=x;x.addNewCounter("/client_streamz/bg/po/csc",E7("cs"),_.M4("mk"))};
QT2.prototype.increment=function(x,L){this.v4C.JSC$9791_incrementCounter("/client_streamz/bg/po/csc",x,L)};
var JB2=function(x){this.fKi=x;x.addNewCounter("/client_streamz/bg/po/ctav",_.M4("av"),_.M4("mk"))};
JB2.prototype.increment=function(x,L){this.fKi.JSC$9791_incrementCounter("/client_streamz/bg/po/ctav",x,L)};
var KWW=function(x){this.wkX=x;x.addNewCounter("/client_streamz/bg/po/cwsc",_.M4("su"),_.M4("mk"))};
KWW.prototype.increment=function(x,L){this.wkX.JSC$9791_incrementCounter("/client_streamz/bg/po/cwsc",x,L)};var VTn=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(VTn,_.O5);var vQn=function(x,L){return _.t5(x,3,L,gH3)};var OZQ=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(OZQ,_.O5);var ZZA=[1,2,3];var yBQ=[0,ZZA,_.Kt,Ghf,Uzs];var IEd=[0,_.Oc,[0,cN,_.ni]];var E2W=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(E2W,_.O5);var Mfh=[1,2,3];var dTG=[0,Mfh,eX4,YSN,_.ZV,IEd];var PPh=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(PPh,_.O5);var jT_=[0,_.Oc,yBQ,dTG];var v2i=[0,_.Q8];var Vfr=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(Vfr,_.O5);var h0C=[0,_.Q8,-1,_.DV];var HZ2=[0,_.Q8,-1,_.Lt,_.DV];var u52=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(u52,_.O5);var g2Q=[1,2,3];var k6R=[0,g2Q,_.ZV,h0C,_.ZV,HZ2,_.ZV,v2i];var pHA=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(pHA,_.O5);pHA.prototype.JSC$9611_serializeBinary=iU3([0,_.Q8,k6R,wAf,_.Oc,jT_,C4w,l$0]);var mTi=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(mTi,_.O5);var FWC=function(x){var L=new pHA;L=_.ei(L,1,x.JSC$9727_metricName);var D=bZR(x);L=_.t5(L,3,D,_.VW);D=[];for(var S=[],Q=_.O(x.cellMap.keys()),J=Q.next();!J.done;J=Q.next())S.push(J.value.split(","));for(Q=0;Q<S.length;Q++){J=S[Q];for(var Z=x.cellType,y=x.getCells(J)||[],E=[],P=0;P<y.length;P++){var v=y[P],V=v&&v.cellValue;v=new E2W;switch(Z){case 3:V=Number(V);Number.isFinite(V)&&uY(v,1,Mfh,Eu(V));break;case 2:uY(v,2,Mfh,_.iG(Number(V)))}E.push(v)}Z=E;for(y=0;y<Z.length;y++){E=Z[y];P=new PPh;E=_.mR(P,
2,E);P=[];v=YtA(x);for(V=0;V<v.length;V++){var h=v[V],H=J[V],k=new OZQ;switch(h){case 3:uY(k,1,ZZA,Hs(String(H)));break;case 2:h=Number(H);Number.isFinite(h)&&uY(k,2,ZZA,_.SG(h));break;case 1:uY(k,3,ZZA,hdp(H==="true"))}P.push(k)}e_(E,1,P);D.push(E)}}e_(L,4,D);return L};var sTB=function(x){if(!x)return"";if(/^about:(?:blank|srcdoc)$/.test(x))return window.origin||"";x.indexOf("blob:")===0&&(x=x.substring(5));x=x.split("#")[0].split("?")[0];x=x.toLowerCase();x.indexOf("//")==0&&(x=window.location.protocol+x);/^[\w\-]*:\/\//.test(x)||(x=window.location.href);var L=x.substring(x.indexOf("://")+3),D=L.indexOf("/");D!=-1&&(L=L.substring(0,D));D=x.substring(0,x.indexOf("://"));if(!D)throw Error("qa`"+x);if(D!=="http"&&D!=="https"&&D!=="chrome-extension"&&D!=="moz-extension"&&
D!=="file"&&D!=="android-app"&&D!=="chrome-search"&&D!=="chrome-untrusted"&&D!=="chrome"&&D!=="app"&&D!=="devtools")throw Error("ra`"+D);x="";var S=L.indexOf(":");if(S!=-1){var Q=L.substring(S+1);L=L.substring(0,S);if(D==="http"&&Q!=="80"||D==="https"&&Q!=="443")x=":"+Q}return D+"://"+L+x};var e0i=function(x,L,D){var S=String(_.Qb.location.href);return S&&x&&L?[L,TPW(sTB(S),x,D||null)].join(" "):null},TPW=function(x,L,D){var S=[],Q=[];
if((Array.isArray(D)?2:1)==1)return Q=[L,x],_.nm(S,function(y){Q.push(y)}),R0h(Q.join(" "));
var J=[],Z=[];_.nm(D,function(y){Z.push(y.key);J.push(y.value)});
D=Math.floor((new Date).getTime()/1E3);Q=J.length==0?[D,L,x]:[J.join(":"),D,L,x];_.nm(S,function(y){Q.push(y)});
x=R0h(Q.join(" "));x=[D,x];Z.length==0||x.push(Z.join(""));return x.join("_")},R0h=function(x){var L=cus();
L.update(x);return L.digestString().toLowerCase()};var gG=function(x){this.JSC$9622_document_=x||{cookie:""}},G6H;
_.K=gG.prototype;_.K.isEnabled=function(){if(!_.Qb.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};
_.K.set=function(x,L,D){var S=!1;if(typeof D==="object"){var Q=D.sameSite;S=D.secure||!1;var J=D.domain||void 0;var Z=D.path||void 0;var y=D.maxAge}if(/[;=\s]/.test(x))throw Error("sa`"+x);if(/[;\r\n]/.test(L))throw Error("ta`"+L);y===void 0&&(y=-1);D=J?";domain="+J:"";Z=Z?";path="+Z:"";S=S?";secure":"";y=y<0?"":y==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+y*1E3)).toUTCString();this.JSC$9622_document_.cookie=x+"="+L+D+Z+y+S+(Q!=null?";samesite="+Q:"")};
_.K.get=function(x,L){for(var D=x+"=",S=(this.JSC$9622_document_.cookie||"").split(";"),Q=0,J;Q<S.length;Q++){J=j0(S[Q]);if(J.lastIndexOf(D,0)==0)return J.slice(D.length);if(J==x)return""}return L};
_.K.remove=function(x,L,D){var S=this.containsKey(x);this.set(x,"",{maxAge:0,path:L,domain:D});return S};
_.K.getKeys=function(){return G6H(this).keys};
_.K.getValues=function(){return G6H(this).values};
_.K.isEmpty=function(){return!this.JSC$9622_document_.cookie};
_.K.getCount=function(){return this.JSC$9622_document_.cookie?(this.JSC$9622_document_.cookie||"").split(";").length:0};
_.K.containsKey=function(x){return this.get(x)!==void 0};
_.K.containsValue=function(x){for(var L=G6H(this).values,D=0;D<L.length;D++)if(L[D]==x)return!0;return!1};
_.K.clear=function(){for(var x=G6H(this).keys,L=x.length-1;L>=0;L--)this.remove(x[L])};
G6H=function(x){x=(x.JSC$9622_document_.cookie||"").split(";");for(var L=[],D=[],S,Q,J=0;J<x.length;J++)Q=j0(x[J]),S=Q.indexOf("="),S==-1?(L.push(""),D.push(Q)):(L.push(Q.substring(0,S)),D.push(Q.substring(S+1)));return{keys:L,values:D}};
_.YQ=new gG(typeof document=="undefined"?null:document);var C_p,CPR;C_p=function(){var x=_.Qb.__SAPISID||_.Qb.__APISID||_.Qb.__3PSAPISID||_.Qb.__1PSAPISID||_.Qb.__OVERRIDE_SID;if(x)return!0;typeof document!=="undefined"&&(x=new gG(document),x=x.get("SAPISID")||x.get("APISID")||x.get("__Secure-3PAPISID")||x.get("__Secure-1PAPISID"));return!!x};
CPR=function(x,L,D,S){(x=_.Qb[x])||typeof document==="undefined"||(x=(new gG(document)).get(L));return x?e0i(x,D,S):null};
_.MOf=function(x){var L=sTB(_.Qb==null?void 0:_.Qb.location.href),D=[];if(C_p()){L=L.indexOf("https:")==0||L.indexOf("chrome-extension:")==0||L.indexOf("chrome-untrusted://new-tab-page")==0||L.indexOf("moz-extension:")==0;var S=L?_.Qb.__SAPISID:_.Qb.__APISID;S||typeof document==="undefined"||(S=new gG(document),S=S.get(L?"SAPISID":"APISID")||S.get("__Secure-3PAPISID"));(S=S?e0i(S,L?"SAPISIDHASH":"APISIDHASH",x):null)&&D.push(S);L&&((L=CPR("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",x))&&D.push(L),
(x=CPR("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",x))&&D.push(x))}return D.length==0?null:D.join(" ")};var lEB=function(){this.minSize=1024};
lEB.prototype.compress=function(x){var L,D,S,Q;return _.I(function(J){switch(J.nextAddress){case 1:return L=new CompressionStream("gzip"),D=(new Response(L.readable)).arrayBuffer(),S=L.writable.getWriter(),J.yield(S.write((new TextEncoder).encode(x)),2);case 2:return J.yield(S.close(),3);case 3:return Q=Uint8Array,J.yield(D,4);case 4:return J.return(new Q(J.yieldResult))}})};
lEB.prototype.isSupported=function(x){return x<this.minSize?!1:typeof CompressionStream!=="undefined"};var UTR=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(UTR,_.O5);var kx=function(x,L){this.intervalMs=x;this.callback=L;this.enabled=!1;this.nowFn=function(){return _.IM()};
this.lastTimeMs=this.nowFn()};
kx.prototype.setInterval=function(x){this.intervalMs=x;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
kx.prototype.start=function(){var x=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){x.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
kx.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
kx.prototype.tick=function(){var x=this;if(this.enabled){var L=Math.max(this.nowFn()-this.lastTimeMs,0);L<this.intervalMs*.8?this.timer=setTimeout(function(){x.tick()},this.intervalMs-L):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var wHi=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(wHi,_.O5);var BP_=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(BP_,_.O5);var WWA=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(WWA,_.O5);WWA.prototype.getTransmissionType=function(){return _.BN(this,1)};var LvO=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(LvO,_.O5);LvO.prototype.getVersion=function(){return _.wy(this,2)};var pW=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(pW,_.O5);var xwf=function(x){e_(Dw0,1,x)};
pW.prototype.getModel=function(){return _.wy(this,6)};
var qtB=_.uQ(pW);var ABB=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(ABB,_.O5);var n6h=["platform","platformVersion","architecture","model","uaFullVersion"],Dw0=new pW,tFs=null;var me=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(me,_.O5);var $TB=function(x){return _.dt(x,1,1)};var rBA=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x,4)};
_.p(rBA,_.O5);_.bO=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x,36)};
_.p(_.bO,_.O5);_.bO.prototype.getExperimentIds=function(){return _.Mg(this,UTR,16)};var NPH=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x,19)};
_.p(NPH,_.O5);NPH.prototype.setLogSource=function(x){return _.dt(this,2,x)};
NPH.prototype.setScheduler=function(x){return _.dt(this,10,x)};var fE_=function(x,L){this.isServiceWorkerScope=L=L===void 0?!1:L;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new NPH;Number.isInteger(x)&&this.logRequest.setLogSource(x);L||(this.locale=document.documentElement.getAttribute("lang"));iZG(this,new me)};
fE_.prototype.setLogSource=function(x){this.logRequest.setLogSource(x);return this};
var iZG=function(x,L){_.mR(x.logRequest,1,L);_.BN(L,1)||$TB(L);x.isServiceWorkerScope||(L=Yx(x),_.wy(L,5)||_.ei(L,5,x.locale));x.uach&&(L=Yx(x),_.Mg(L,pW,9)||_.mR(L,9,x.uach))},o2Q=function(x,L){x.transmissionType=L},aER=function(x){var L=L===void 0?n6h:L;
var D=x.isServiceWorkerScope?void 0:qp();D?S2N(D,L).then(function(S){x.uach=qtB(S!=null?S:"[]");S=Yx(x);_.mR(S,9,x.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},Yx=function(x){var L=_.Mg(x.logRequest,me,1);
L||(L=new me,iZG(x,L));x=L;L=_.Mg(x,ABB,11);L||(L=new ABB,_.mR(x,11,L));return L};
fE_.prototype.build=function(x,L,D,S,Q,J){L=L===void 0?0:L;D=D===void 0?0:D;S=S===void 0?null:S;Q=Q===void 0?0:Q;J=J===void 0?0:J;if(!this.isServiceWorkerScope){var Z=Yx(this);var y=new WWA;y=_.dt(y,1,this.transmissionType);y=_.db(y,2,this.isFinal);D=_.$I(y,3,D>0?D:void 0);D=_.$I(D,4,Q>0?Q:void 0);D=_.$I(D,5,J>0?J:void 0);Q=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;J=Q[_.Jr]|0;D=PC(D,J)?D:sIO(D,Q,J)?F3N(D,Q):new D.constructor(A5(Q,J,!0));_.mR(Z,10,D)}Z=this.logRequest.clone();D=Date.now().toString();
Z=_.PW(Z,4,Eu(D));x=x.slice();x=e_(Z,3,x);S&&(Z=new wHi,S=_.$I(Z,13,S),Z=new BP_,S=_.mR(Z,2,S),Z=new rBA,S=_.mR(Z,1,S),S=_.dt(S,2,9),_.mR(x,18,S));L&&_.Fd(x,14,L);return x};Pf.prototype.currBackoffCount_=0;Pf.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
Pf.prototype.getValue=function(){return this.currValue_};
var z0h=function(x){x.currBaseValue_=Math.min(x.maxValue_,x.currBaseValue_*x.backoffFactor_);x.currValue_=Math.min(x.maxValue_,x.currBaseValue_+(x.randomFactor_?Math.round(x.randomFactor_*(Math.random()-.5)*2*x.currBaseValue_):0));x.currBackoffCount_++};var N9n=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x,8)};
_.p(N9n,_.O5);var XHR=_.uQ(N9n);var inw=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(inw,_.O5);var FC;FC=new f$0;var s1=function(x){_.Te.call(this);var L=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$9700_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$9700_sendBeaconApiEnabled=!1;this.logSource=x.logSource;this.getAuthHeaderValue=
x.getAuthHeaderValue||function(){};
this.logRequestBuilder=new fE_(x.logSource,x.isServiceWorkerScope);this.network=x.network||null;this.productID=x.productID||null;this.bufferSize=1E3;this.clearcutUrl=x.urlOverride||null;this.sessionIndex=x.sessionIndex||null;this.disableAutomaticFlush=x.disableAutomaticFlush||!1;this.withCredentials=!x.disableWithCredentials;this.isServiceWorkerScope=x.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!qp()&&!!qp().navigator&&qp().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(cBh())).searchParams&&!!(new URL(cBh())).searchParams.set;var D=$TB(new me);iZG(this.logRequestBuilder,D);this.flushBackoff=new Pf(1E4,3E5,.1);x=n2R(this,x.backgroundJobDeferrer);this.JSC$9700_flushTimer=new kx(this.flushBackoff.getValue(),x);this.backupTimer=new kx(6E5,x);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){tfh(L);
var S;(S=L.metalogService)==null||S.flush()}}),document.addEventListener("pagehide",function(){tfh(L);
var S;(S=L.metalogService)==null||S.flush()}))};
_.p(s1,_.Te);var n2R=function(x,L){return x.isBrowserSupported?L?function(){L().then(function(){x.flush()})}:function(){x.flush()}:function(){}};
s1.prototype.disposeInternal=function(){tfh(this);this.JSC$9700_flushTimer.stop();this.backupTimer.stop();_.Te.prototype.disposeInternal.call(this)};
var xpR=function(x){x.clearcutUrl||(x.clearcutUrl=cBh());try{return(new URL(x.clearcutUrl)).toString()}catch(L){return(new URL(x.clearcutUrl,qp().location.origin)).toString()}};
s1.prototype.dispatch=function(x){if(x instanceof _.bO)this.log(x);else try{var L=new _.bO,D=x.serialize();var S=_.ei(L,8,D);this.log(S)}catch(Q){Tm(this,4,1)}};
var Tm=function(x,L,D){x.metalogService&&x.metalogService.increment(L,D)};
s1.prototype.log=function(x){Tm(this,2,1);if(this.isBrowserSupported){x=x.clone();var L=this.sequencePosition++;x=_.Fd(x,21,L);this.componentId&&_.ei(x,26,this.componentId);L=x;if(wCG(_.mi(L,1))==null){var D=Date.now();D=Number.isFinite(D)?D.toString():"0";_.PW(L,1,Eu(D))}_.Uhb(_.mi(L,15))!=null||_.Fd(L,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(D=this.experimentIds.clone(),_.mR(L,16,D));Tm(this,1,1);L=this.pendingEvents.length-this.bufferSize+1;L>0&&(this.pendingEvents.splice(0,L),
this.numLogsDroppedSinceLastFlush+=L,Tm(this,3,L));this.pendingEvents.push(x);this.disableAutomaticFlush||this.JSC$9700_flushTimer.enabled||this.JSC$9700_flushTimer.start()}};
s1.prototype.flush=function(x,L){var D=this;if(this.pendingEvents.length===0)x&&x();else if(this.JSC$9700_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,Lo_(this);else{var S=Date.now();if(this.noFlushUntilMs>S&&this.startWaitingMs<S)L&&L("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?o2Q(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var Q=this.pendingEvents.length,
J=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),Z=this.getAuthHeaderValue();if(Z&&this.lastFailedAuth===Z)L&&L("stale-auth-token");else{this.pendingEvents=[];this.JSC$9700_flushTimer.enabled&&this.JSC$9700_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;S=J.serialize();var y;this.JSC$9700_compressor&&this.JSC$9700_compressor.isSupported(S.length)&&
(y=this.JSC$9700_compressor.compress(S));var E=DpB(this,S,Z),P=function(h){D.flushBackoff.reset();D.JSC$9700_flushTimer.setInterval(D.flushBackoff.getValue());if(h){var H=null;try{var k=JSON.stringify(JSON.parse(h.replace(")]}'\n","")));H=XHR(k)}catch(T){}H&&(h=Number(lV(H,1,_.eW("-1"))),h>0&&(D.startWaitingMs=Date.now(),D.noFlushUntilMs=D.startWaitingMs+h),QIc(H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,FC.fieldIndex),Dqn(H,FC.fieldIndex),H=FC.ctor?FC.getExtensionFn(H,FC.ctor,FC.fieldIndex,
FC.JSC$8881_hasMessageId):FC.getExtensionFn(H,FC.fieldIndex,null,FC.JSC$8881_hasMessageId),H=H===null?void 0:H)&&(H=_.y1(H,1,-1),H!==-1&&(D.flushBackoff=new Pf(H<1?1:H,3E5,.1),D.JSC$9700_flushTimer.setInterval(D.flushBackoff.getValue())))}x&&x();D.numRetriesSinceLastSuccessfulFlush=0},v=function(h,H){var k=_.O7(J,_.bO,3,_.Zb());
var T=Number(lV(J,14));z0h(D.flushBackoff);D.JSC$9700_flushTimer.setInterval(D.flushBackoff.getValue());h===401&&Z&&(D.lastFailedAuth=Z);T&&(D.numLogsDroppedSinceLastFlush+=T);H===void 0&&(H=D.isRetryable(h));H&&(D.pendingEvents=k.concat(D.pendingEvents),D.disableAutomaticFlush||D.JSC$9700_flushTimer.enabled||D.JSC$9700_flushTimer.start());Tm(D,7,1);L&&L("net-send-failed",h);++D.numRetriesSinceLastSuccessfulFlush},V=function(){D.network&&D.network.send(E,P,v)};
y?y.then(function(h){Tm(D,5,Q);E.requestHeaders["Content-Encoding"]="gzip";E.requestHeaders["Content-Type"]="application/binary";E.body=h;E.bodyType=2;V()},function(){Tm(D,6,Q);
V()}):V()}}}};
var DpB=function(x,L,D){D=D===void 0?null:D;var S=S===void 0?x.withCredentials:S;var Q={},J=new URL(xpR(x));D&&(Q.Authorization=D);x.sessionIndex&&(Q["X-Goog-AuthUser"]=x.sessionIndex,J.searchParams.set("authuser",x.sessionIndex));x.pageId&&(Object.defineProperty(Q,"X-Goog-PageId",{value:x.pageId}),J.searchParams.set("pageId",x.pageId));return{url:J.toString(),body:L,bodyType:1,requestHeaders:Q,requestType:"POST",withCredentials:S,timeoutMillis:x.timeoutMillis}},tfh=function(x){x.logRequestBuilder.isFinal=
!0;
x.flush();x.logRequestBuilder.isFinal=!1},Lo_=function(x){Sqd(x,function(L,D){L=new URL(L);
L.searchParams.set("format","json");var S=!1;try{S=qp().navigator.sendBeacon(L.toString(),D.serialize())}catch(Q){}S||(x.isSendBeaconSupported=!1);return S})},Sqd=function(x,L){if(x.pendingEvents.length!==0){var D=new URL(xpR(x));
D.searchParams.delete("format");var S=x.getAuthHeaderValue();S&&D.searchParams.set("auth",S);D.searchParams.set("authuser",x.sessionIndex||"0");for(S=0;S<10&&x.pendingEvents.length;++S){var Q=x.pendingEvents.slice(0,32),J=x.logRequestBuilder.build(Q,x.numLogsDroppedSinceLastFlush,x.numRetriesSinceLastSuccessfulFlush,x.productID,x.persistedLogRecoveredCount,x.persistedLogExpiredCount);if(!L(D.toString(),J)){++x.numRetriesSinceLastSuccessfulFlush;break}x.numLogsDroppedSinceLastFlush=0;x.numRetriesSinceLastSuccessfulFlush=
0;x.persistedLogRecoveredCount=0;x.persistedLogExpiredCount=0;x.pendingEvents=x.pendingEvents.slice(Q.length)}x.JSC$9700_flushTimer.enabled&&x.JSC$9700_flushTimer.stop()}};
s1.prototype.isRetryable=function(x){return 500<=x&&x<600||x===401||x===0};
var cBh=function(){return"https://play.google.com/log?format=json&hasfast=true"};var QD_=function(){this.abortSupported=typeof AbortController!=="undefined"};
QD_.prototype.send=function(x,L,D){var S=this,Q,J,Z,y,E,P,v,V,h,H;return _.I(function(k){switch(k.nextAddress){case 1:return J=(Q=S.abortSupported?new AbortController:void 0)?setTimeout(function(){Q.abort()},x.timeoutMillis):void 0,_.HH(k,2,3),Z=Object.assign({},{method:x.requestType,
headers:Object.assign({},x.requestHeaders)},x.body&&{body:x.body},x.withCredentials&&{credentials:"include"},{signal:x.timeoutMillis&&Q?Q.signal:null}),k.yield(fetch(x.url,Z),5);case 5:y=k.yieldResult;if(y.status!==200){(E=D)==null||E(y.status);k.jumpTo(3);break}if((P=L)==null){k.jumpTo(7);break}return k.yield(y.text(),8);case 8:P(k.yieldResult);case 7:case 3:_.gP(k);clearTimeout(J);_.pZ(k,0);break;case 2:v=_.mW(k);switch((V=v)==null?void 0:V.name){case "AbortError":(h=D)==null||h(408);break;default:(H=
D)==null||H(400)}k.jumpTo(3)}})};
QD_.prototype.getTransmissionType=function(){return 4};_.vf=function(x,L){L=L===void 0?"0":L;_.Te.call(this);this.logSource=x;this.sessionIndex=L;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$9718_clearExperimentIds=this.productID=null;this.JSC$9718_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.p(_.vf,_.Te);var dw3=function(x,L){x.buildLabel=L;return x},MTs=function(x,L){x.network=L;
return x},jZb=function(x,L){x.JSC$9718_clearExperimentIds=L},EQO=function(x){x.JSC$9718_sendBeaconApiEnabled=!0;
return x};
_.vf.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.vf.prototype.build=function(){this.network||(this.network=new QD_);var x=new s1({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.MOf,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.V1(this,x);if(this.buildLabel){var L=this.buildLabel,D=
Yx(x.logRequestBuilder);_.ei(D,7,L)}x.JSC$9700_compressor=new lEB;this.componentId&&(x.componentId=this.componentId);this.productID&&(x.productID=this.productID);this.pageId&&(x.pageId=this.pageId);this.JSC$9718_clearExperimentIds&&((D=this.JSC$9718_clearExperimentIds)?(x.experimentIds||(x.experimentIds=new UTR),L=x.experimentIds,D=D.serialize(),_.ei(L,4,D)):x.experimentIds&&_.PW(x.experimentIds,4));this.JSC$9718_sendBeaconApiEnabled&&(x.JSC$9700_sendBeaconApiEnabled=x.isSendBeaconSupported);aER(x.logRequestBuilder);
this.bufferSize&&(x.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(x);return x};var hhN=function(x,L,D,S,Q,J,Z){x=x===void 0?-1:x;L=L===void 0?"":L;D=D===void 0?"":D;S=S===void 0?!1:S;Q=Q===void 0?"":Q;_.Te.call(this);this.logSource=x;this.componentId=L;J?L=J:(x=new _.vf(x,"0"),x.componentId=L,_.V1(this,x),D!==""&&(x.destinationUrl=D),S&&(x.serviceWorkerScopeEnabled=!0),Q&&dw3(x,Q),Z&&MTs(x,Z),L=x.build());this.JSC$9722_transport=L};
_.p(hhN,_.Te);hhN.prototype.flush=function(x){x=x||[];if(x.length){for(var L=new mTi,D=[],S=0;S<x.length;S++){var Q=x[S],J=FWC(Q);D.push(J);Q.clear()}e_(L,1,D);this.JSC$9722_transport.dispatch(L);this.JSC$9722_transport.flush()}};var JcB=function(x){this.cellValue=x};var eS=function(x,L,D){this.JSC$9727_metricName=x;this.cellType=L;this.fields=D||[];this.cellMap=new Map},YtA=function(x){return x.fields.map(function(L){return L.fieldType})},bZR=function(x){return x.fields.map(function(L){return L.fieldName})};
_.K=eS.prototype;_.K.addCell=function(x){var L=_.Ne.apply(1,arguments),D=this.getCells(L);D?D.push(new JcB(x)):this.JSC$9727_setCell(x,L)};
_.K.JSC$9727_setCell=function(x){var L=this.JSC$9727_getKey(_.Ne.apply(1,arguments));this.cellMap.set(L,[new JcB(x)])};
_.K.getCells=function(){var x=this.JSC$9727_getKey(_.Ne.apply(0,arguments));return this.cellMap.has(x)?this.cellMap.get(x):void 0};
_.K.getCell=function(){var x=this.getCells(_.Ne.apply(0,arguments));return x&&x.length?x[0]:void 0};
_.K.clear=function(){this.cellMap.clear()};
_.K.JSC$9727_getKey=function(){var x=_.Ne.apply(0,arguments);return x?x.join(","):"key"};var KoW=function(x,L){eS.call(this,x,3,L)};
_.p(KoW,eS);KoW.prototype.JSC$9730_incrementCounterBy=function(x){var L=_.Ne.apply(1,arguments),D=0,S=this.getCell(L);S&&(D=S.cellValue);this.JSC$9727_setCell(D+x,L)};var O8d=function(x,L){eS.call(this,x,2,L)};
_.p(O8d,eS);O8d.prototype.record=function(x){this.addCell(x,_.Ne.apply(1,arguments))};_.Rw=function(x){this.id=x};
_.Rw.prototype.toString=function(){return this.id};_.Gm=function(x,L){this.type=x instanceof _.Rw?String(x):x;this.currentTarget=this.target=L;this.defaultPrevented=this.propagationStopped_=!1};
_.Gm.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.Gm.prototype.preventDefault=function(){this.defaultPrevented=!0};_.CW=function(x,L){_.Gm.call(this,x?x.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;x&&this.init(x,L)};
_.E9(_.CW,_.Gm);
_.CW.prototype.init=function(x,L){var D=this.type=x.type,S=x.changedTouches&&x.changedTouches.length?x.changedTouches[0]:null;this.target=x.target||x.srcElement;this.currentTarget=L;L=x.relatedTarget;L||(D=="mouseover"?L=x.fromElement:D=="mouseout"&&(L=x.toElement));this.relatedTarget=L;S?(this.clientX=S.clientX!==void 0?S.clientX:S.pageX,this.clientY=S.clientY!==void 0?S.clientY:S.pageY,this.screenX=S.screenX||0,this.screenY=S.screenY||0):(this.offsetX=_.V6||x.offsetX!==void 0?x.offsetX:x.layerX,
this.offsetY=_.V6||x.offsetY!==void 0?x.offsetY:x.layerY,this.clientX=x.clientX!==void 0?x.clientX:x.pageX,this.clientY=x.clientY!==void 0?x.clientY:x.pageY,this.screenX=x.screenX||0,this.screenY=x.screenY||0);this.button=x.button;this.keyCode=x.keyCode||0;this.key=x.key||"";this.charCode=x.charCode||(D=="keypress"?x.keyCode:0);this.ctrlKey=x.ctrlKey;this.altKey=x.altKey;this.shiftKey=x.shiftKey;this.metaKey=x.metaKey;this.pointerId=x.pointerId||0;this.pointerType=x.pointerType;this.state=x.state;
this.timeStamp=x.timeStamp;this.event_=x;x.defaultPrevented&&_.CW.superClass_.preventDefault.call(this)};
_.CW.prototype.isButton=function(x){return this.event_.button==x};
_.CW.prototype.stopPropagation=function(){_.CW.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.CW.prototype.preventDefault=function(){_.CW.superClass_.preventDefault.call(this);var x=this.event_;x.preventDefault?x.preventDefault():x.returnValue=!1};var Z8h="closure_listenable_"+(Math.random()*1E6|0),lO=function(x){return!(!x||!x[Z8h])};var ycH=0;var IxH=function(x,L,D,S,Q){this.listener=x;this.proxy=null;this.src=L;this.type=D;this.capture=!!S;this.handler=Q;this.key=++ycH;this.removed=this.callOnce=!1},ER_=function(x){x.removed=!0;
x.listener=null;x.proxy=null;x.src=null;x.handler=null};j1.prototype.add=function(x,L,D,S,Q){var J=x.toString();x=this.listeners[J];x||(x=this.listeners[J]=[],this.typeCount_++);var Z=Mih(x,L,S,Q);Z>-1?(L=x[Z],D||(L.callOnce=!1)):(L=new IxH(L,this.src,J,!!S,Q),L.callOnce=D,x.push(L));return L};
j1.prototype.remove=function(x,L,D,S){x=x.toString();if(!(x in this.listeners))return!1;var Q=this.listeners[x];L=Mih(Q,L,D,S);return L>-1?(ER_(Q[L]),_.ROp(Q,L),Q.length==0&&(delete this.listeners[x],this.typeCount_--),!0):!1};
var dpQ=function(x,L){var D=L.type;if(!(D in x.listeners))return!1;var S=_.$f(x.listeners[D],L);S&&(ER_(L),x.listeners[D].length==0&&(delete x.listeners[D],x.typeCount_--));return S};
j1.prototype.removeAll=function(x){x=x&&x.toString();var L=0,D;for(D in this.listeners)if(!x||D==x){for(var S=this.listeners[D],Q=0;Q<S.length;Q++)++L,ER_(S[Q]);delete this.listeners[D];this.typeCount_--}return L};
j1.prototype.getListener=function(x,L,D,S){x=this.listeners[x.toString()];var Q=-1;x&&(Q=Mih(x,L,D,S));return Q>-1?x[Q]:null};
j1.prototype.hasListener=function(x,L){var D=x!==void 0,S=D?x.toString():"",Q=L!==void 0;return _.wk.some(this.listeners,function(J){for(var Z=0;Z<J.length;++Z)if(!(D&&J[Z].type!=S||Q&&J[Z].capture!=L))return!0;return!1})};
var Mih=function(x,L,D,S){for(var Q=0;Q<x.length;++Q){var J=x[Q];if(!J.removed&&J.listener==L&&J.capture==!!D&&J.handler==S)return Q}return-1};var P8R,jDH,vRR,h9H,H8A,R6,G$,kjd,uZB,gRB,U1,pnG,ViB;P8R="closure_lm_"+(Math.random()*1E6|0);jDH={};vRR=0;_.Uk=function(x,L,D,S,Q){if(S&&S.once)return R6(x,L,D,S,Q);if(Array.isArray(L)){for(var J=0;J<L.length;J++)_.Uk(x,L[J],D,S,Q);return null}D=ViB(D);return lO(x)?x.listen(L,D,_.on(S)?!!S.capture:!!S,Q):h9H(x,L,D,!1,S,Q)};
h9H=function(x,L,D,S,Q,J){if(!L)throw Error("va");var Z=_.on(Q)?!!Q.capture:!!Q,y=U1(x);y||(x[P8R]=y=new j1(x));D=y.add(L,D,S,Z,J);if(D.proxy)return D;S=H8A();D.proxy=S;S.src=x;S.listener=D;if(x.addEventListener)_.uh2||(Q=Z),Q===void 0&&(Q=!1),x.addEventListener(L.toString(),S,Q);else if(x.attachEvent)x.attachEvent(uZB(L.toString()),S);else if(x.addListener&&x.removeListener)x.addListener(S);else throw Error("wa");vRR++;return D};
H8A=function(){var x=gRB,L=function(D){return x.call(L.src,L.listener,D)};
return L};
R6=function(x,L,D,S,Q){if(Array.isArray(L)){for(var J=0;J<L.length;J++)R6(x,L[J],D,S,Q);return null}D=ViB(D);return lO(x)?x.listenOnce(L,D,_.on(S)?!!S.capture:!!S,Q):h9H(x,L,D,!0,S,Q)};
_.wG=function(x,L,D,S,Q){if(Array.isArray(L))for(var J=0;J<L.length;J++)_.wG(x,L[J],D,S,Q);else S=_.on(S)?!!S.capture:!!S,D=ViB(D),lO(x)?x.unlisten(L,D,S,Q):x&&(x=U1(x))&&(L=x.getListener(L,D,S,Q))&&G$(L)};
G$=function(x){if(typeof x==="number"||!x||x.removed)return!1;var L=x.src;if(lO(L))return dpQ(L.eventTargetListeners_,x);var D=x.type,S=x.proxy;L.removeEventListener?L.removeEventListener(D,S,x.capture):L.detachEvent?L.detachEvent(uZB(D),S):L.addListener&&L.removeListener&&L.removeListener(S);vRR--;(D=U1(L))?(dpQ(D,x),D.typeCount_==0&&(D.src=null,L[P8R]=null)):ER_(x);return!0};
kjd=function(x,L,D,S,Q){D=ViB(D);S=!!S;return lO(x)?x.getListener(L,D,S,Q):x?(x=U1(x))?x.getListener(L,D,S,Q):null:null};
uZB=function(x){return x in jDH?jDH[x]:jDH[x]="on"+x};
gRB=function(x,L){if(x.removed)x=!0;else{L=new _.CW(L,this);var D=x.listener,S=x.handler||x.src;x.callOnce&&G$(x);x=D.call(S,L)}return x};
U1=function(x){x=x[P8R];return x instanceof j1?x:null};
pnG="__closure_events_fn_"+(Math.random()*1E9>>>0);ViB=function(x){if(typeof x==="function")return x;x[pnG]||(x[pnG]=function(L){return x.handleEvent(L)});
return x[pnG]};_.Bc=function(){_.Te.call(this);this.eventTargetListeners_=new j1(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.E9(_.Bc,_.Te);_.Bc.prototype[Z8h]=!0;_.K=_.Bc.prototype;_.K.setParentEventTarget=function(x){this.parentEventTarget_=x};
_.K.addEventListener=function(x,L,D,S){_.Uk(this,x,L,D,S)};
_.K.removeEventListener=function(x,L,D,S){_.wG(this,x,L,D,S)};
_.K.dispatchEvent=function(x){var L,D=this.parentEventTarget_;if(D)for(L=[];D;D=D.parentEventTarget_)L.push(D);D=this.actualEventTarget_;var S=x.type||x;if(typeof x==="string")x=new _.Gm(x,D);else if(x instanceof _.Gm)x.target=x.target||D;else{var Q=x;x=new _.Gm(S,D);_.wk.extend(x,Q)}Q=!0;var J;if(L)for(J=L.length-1;!x.propagationStopped_&&J>=0;J--){var Z=x.currentTarget=L[J];Q=mpQ(Z,S,!0,x)&&Q}x.propagationStopped_||(Z=x.currentTarget=D,Q=mpQ(Z,S,!0,x)&&Q,x.propagationStopped_||(Q=mpQ(Z,S,!1,x)&&
Q));if(L)for(J=0;!x.propagationStopped_&&J<L.length;J++)Z=x.currentTarget=L[J],Q=mpQ(Z,S,!1,x)&&Q;return Q};
_.K.disposeInternal=function(){_.Bc.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.K.listen=function(x,L,D,S){return this.eventTargetListeners_.add(String(x),L,!1,D,S)};
_.K.listenOnce=function(x,L,D,S){return this.eventTargetListeners_.add(String(x),L,!0,D,S)};
_.K.unlisten=function(x,L,D,S){return this.eventTargetListeners_.remove(String(x),L,D,S)};
_.K.removeAllListeners=function(x){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(x):0};
var mpQ=function(x,L,D,S){L=x.eventTargetListeners_.listeners[String(L)];if(!L)return!0;L=L.concat();for(var Q=!0,J=0;J<L.length;++J){var Z=L[J];if(Z&&!Z.removed&&Z.capture==D){var y=Z.listener,E=Z.handler||Z.src;Z.callOnce&&dpQ(x.eventTargetListeners_,Z);Q=y.call(E,S)!==!1&&Q}}return Q&&!S.defaultPrevented};
_.Bc.prototype.getListener=function(x,L,D,S){return this.eventTargetListeners_.getListener(String(x),L,D,S)};
_.Bc.prototype.hasListener=function(x,L){return this.eventTargetListeners_.hasListener(x!==void 0?String(x):void 0,L)};var Wc=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(x){return x&&AsyncContext.Snapshot.wrap(x)}:function(x){return x};var b8B=function(x,L){this.create_=x;this.reset_=L;this.occupants_=0;this.JSC$9762_head_=null};
b8B.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var x=this.JSC$9762_head_;this.JSC$9762_head_=x.next;x.next=null}else x=this.create_();return x};
b8B.prototype.put=function(x){this.reset_(x);this.occupants_<100&&(this.occupants_++,x.next=this.JSC$9762_head_,this.JSC$9762_head_=x)};var YqQ=function(){this.workTail_=this.workHead_=null};
YqQ.prototype.add=function(x,L){var D=J8b.get();D.set(x,L);this.workTail_?this.workTail_.next=D:this.workHead_=D;this.workTail_=D};
YqQ.prototype.remove=function(){var x=null;this.workHead_&&(x=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),x.next=null);return x};
var J8b=new b8B(function(){return new FoG},function(x){return x.reset()}),FoG=function(){this.next=this.scope=this.fn=null};
FoG.prototype.set=function(x,L){this.fn=x;this.scope=L;this.next=null};
FoG.prototype.reset=function(){this.next=this.scope=this.fn=null};var sDr,Kvs,QZh,TkR;Kvs=!1;QZh=new YqQ;_.q_=function(x,L){sDr||TkR();Kvs||(sDr(),Kvs=!0);QZh.add(x,L)};
TkR=function(){var x=Promise.resolve(void 0);sDr=function(){x.then(OHw)}};var e92=function(x){x.prototype.$goog_Thenable=!0},R92=function(x){if(!x)return!1;
try{return!!x.$goog_Thenable}catch(L){return!1}};var Gjh,C8B,lxQ,wnH,BkR,Wo2,rcH,fx2,Xni,axQ,B2b;_.HI=function(x,L){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(x!=_.GC)try{var D=this;x.call(L,function(S){D.resolve_(2,S)},function(S){D.resolve_(3,S)})}catch(S){this.resolve_(3,S)}};
Gjh=function(){this.next=this.context=this.JSC$9773_onRejected=this.JSC$9773_onFulfilled=this.child=null;this.always=!1};
Gjh.prototype.reset=function(){this.context=this.JSC$9773_onRejected=this.JSC$9773_onFulfilled=this.child=null;this.always=!1};
C8B=new b8B(function(){return new Gjh},function(x){x.reset()});
lxQ=function(x,L,D){var S=C8B.get();S.JSC$9773_onFulfilled=x;S.JSC$9773_onRejected=L;S.context=D;return S};
_.V0=function(x){if(x instanceof _.HI)return x;var L=new _.HI(_.GC);L.resolve_(2,x);return L};
_.Bp=function(x){return new _.HI(function(L,D){D(x)})};
wnH=function(x,L,D){UpC(x,L,D,null)||_.q_(_.bl(L,x))};
_.AR=function(x){return new _.HI(function(L,D){var S=x.length,Q=[];if(S)for(var J=function(P,v){S--;Q[P]=v;S==0&&L(Q)},Z=function(P){D(P)},y,E=0;E<x.length;E++)y=x[E],wnH(y,_.bl(J,E),Z);
else L(Q)})};
BkR=function(x){return new _.HI(function(L){var D=x.length,S=[];if(D)for(var Q=function(y,E,P){D--;S[y]=E?{fulfilled:!0,value:P}:{fulfilled:!1,reason:P};D==0&&L(S)},J,Z=0;Z<x.length;Z++)J=x[Z],wnH(J,_.bl(Q,Z,!0),_.bl(Q,Z,!1));
else L(S)})};
Wo2=function(x){return new _.HI(function(L,D){var S=x.length,Q=[];if(S)for(var J=function(P){L(P)},Z=function(P,v){S--;
Q[P]=v;S==0&&D(Q)},y,E=0;E<x.length;E++)y=x[E],wnH(y,J,_.bl(Z,E));
else L(void 0)})};
_.xe=function(){var x,L,D=new _.HI(function(S,Q){x=S;L=Q});
return new qqC(D,x,L)};
_.HI.prototype.then=function(x,L,D){return AcC(this,Wc(typeof x==="function"?x:null),Wc(typeof L==="function"?L:null),D)};
e92(_.HI);rcH=function(x,L,D,S){$pG(x,lxQ(L||_.GC,D||null,S))};
_.$x=function(x,L){L=Wc(L);L=lxQ(L,L);L.always=!0;$pG(x,L);return x};
_.HI.prototype.finally=function(x){var L=this;x=Wc(x);return new _.HI(function(D,S){rcH(L,function(Q){x();D(Q)},function(Q){x();
S(Q)})})};
_.HI.prototype.thenCatch=function(x,L){return AcC(this,null,Wc(x),L)};
_.HI.prototype.catch=_.HI.prototype.thenCatch;_.HI.prototype.cancel=function(x){if(this.state_==0){var L=new _.iS(x);_.q_(function(){Nk_(this,L)},this)}};
var Nk_=function(x,L){if(x.state_==0)if(x.parent_){var D=x.parent_;if(D.callbackEntries_){for(var S=0,Q=null,J=null,Z=D.callbackEntries_;Z&&(Z.always||(S++,Z.child==x&&(Q=Z),!(Q&&S>1)));Z=Z.next)Q||(J=Z);Q&&(D.state_==0&&S==1?Nk_(D,L):(J?(S=J,S.next==D.callbackEntriesTail_&&(D.callbackEntriesTail_=S),S.next=S.next.next):i8W(D),fx2(D,Q,3,L)))}x.parent_=null}else x.resolve_(3,L)},$pG=function(x,L){x.callbackEntries_||x.state_!=2&&x.state_!=3||oR2(x);
x.callbackEntriesTail_?x.callbackEntriesTail_.next=L:x.callbackEntries_=L;x.callbackEntriesTail_=L},AcC=function(x,L,D,S){var Q=lxQ(null,null,null);
Q.child=new _.HI(function(J,Z){Q.JSC$9773_onFulfilled=L?function(y){try{var E=L.call(S,y);J(E)}catch(P){Z(P)}}:J;
Q.JSC$9773_onRejected=D?function(y){try{var E=D.call(S,y);E===void 0&&y instanceof _.iS?Z(y):J(E)}catch(P){Z(P)}}:Z});
Q.child.parent_=x;$pG(x,Q);return Q.child};
_.HI.prototype.unblockAndFulfill_=function(x){this.state_=0;this.resolve_(2,x)};
_.HI.prototype.unblockAndReject_=function(x){this.state_=0;this.resolve_(3,x)};
_.HI.prototype.resolve_=function(x,L){this.state_==0&&(this===L&&(x=3,L=new TypeError("xa")),this.state_=1,UpC(L,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=L,this.state_=x,this.parent_=null,oR2(this),x!=3||L instanceof _.iS||axQ(this,L)))};
var UpC=function(x,L,D,S){if(x instanceof _.HI)return rcH(x,L,D,S),!0;if(R92(x))return x.then(L,D,S),!0;if(_.on(x))try{var Q=x.then;if(typeof Q==="function")return z92(x,Q,L,D,S),!0}catch(J){return D.call(S,J),!0}return!1},z92=function(x,L,D,S,Q){var J=!1,Z=function(E){J||(J=!0,D.call(Q,E))},y=function(E){J||(J=!0,S.call(Q,E))};
try{L.call(x,Z,y)}catch(E){y(E)}},oR2=function(x){x.executing_||(x.executing_=!0,_.q_(x.executeCallbacks_,x))},i8W=function(x){var L=null;
x.callbackEntries_&&(L=x.callbackEntries_,x.callbackEntries_=L.next,L.next=null);x.callbackEntries_||(x.callbackEntriesTail_=null);return L};
_.HI.prototype.executeCallbacks_=function(){for(var x;x=i8W(this);)fx2(this,x,this.state_,this.result_);this.executing_=!1};
fx2=function(x,L,D,S){if(D==3&&L.JSC$9773_onRejected&&!L.always)for(;x&&x.hadUnhandledRejection_;x=x.parent_)x.hadUnhandledRejection_=!1;if(L.child)L.child.parent_=null,Xni(L,D,S);else try{L.always?L.JSC$9773_onFulfilled.call(L.context):Xni(L,D,S)}catch(Q){B2b.call(null,Q)}C8B.put(L)};
Xni=function(x,L,D){L==2?x.JSC$9773_onFulfilled.call(x.context,D):x.JSC$9773_onRejected&&x.JSC$9773_onRejected.call(x.context,D)};
axQ=function(x,L){x.hadUnhandledRejection_=!0;_.q_(function(){x.hadUnhandledRejection_&&B2b.call(null,L)})};
B2b=JG;_.iS=function(x){_.Dp.call(this,x)};
_.E9(_.iS,_.Dp);_.iS.prototype.name="cancel";var qqC=function(x,L,D){this.promise=x;this.resolve=L;this.reject=D};var rG;_.EK=function(x,L){_.Bc.call(this);this.JSC$9785_interval_=x||1;this.timerObject_=L||_.Qb;this.boundTick_=(0,_.e1)(this.tick_,this);this.last_=_.IM()};
_.E9(_.EK,_.Bc);_.K=_.EK.prototype;_.K.enabled=!1;_.K.JSC$9787_timer_=null;_.K.setInterval=function(x){this.JSC$9785_interval_=x;this.JSC$9787_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$9787_timer_&&this.stop()};
_.K.tick_=function(){if(this.enabled){var x=_.IM()-this.last_;x>0&&x<this.JSC$9785_interval_*.8?this.JSC$9787_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9785_interval_-x):(this.JSC$9787_timer_&&(this.timerObject_.clearTimeout(this.JSC$9787_timer_),this.JSC$9787_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.K.start=function(){this.enabled=!0;this.JSC$9787_timer_||(this.JSC$9787_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9785_interval_),this.last_=_.IM())};
_.K.stop=function(){this.enabled=!1;this.JSC$9787_timer_&&(this.timerObject_.clearTimeout(this.JSC$9787_timer_),this.JSC$9787_timer_=null)};
_.K.disposeInternal=function(){_.EK.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
rG=function(x,L,D){if(typeof x==="function")D&&(x=(0,_.e1)(x,D));else if(x&&typeof x.handleEvent=="function")x=(0,_.e1)(x.handleEvent,x);else throw Error("ya");return Number(L)>2147483647?-1:_.Qb.setTimeout(x,L||0)};
_.ccC=function(x){var L=null;return(new _.HI(function(D,S){L=rG(function(){D(void 0)},x);
L==-1&&S(Error("za"))})).thenCatch(function(D){_.Qb.clearTimeout(L);
throw D;})};var ux=function(x){_.Te.call(this);this.streamzLogger=x;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$9791_flushTimer=new _.EK(this.flushInterval);this.JSC$9791_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.V1(this,this.JSC$9791_flushTimer)};
_.p(ux,_.Te);ux.prototype.sendIsolatedPayload=function(x){this.shouldSendIsolatedPayload=x;this.invocationLimit=1};
var nR2=function(x){x.JSC$9791_flushTimer.enabled||x.JSC$9791_flushTimer.start();x.invocationCount++;x.invocationCount>=x.invocationLimit&&x.snapshotAndFlush()};
ux.prototype.snapshotAndFlush=function(){var x=this.metricMap.values();x=[].concat(_.lP(x)).filter(function(L){return L.cellMap.size});
x.length&&this.streamzLogger.flush(x,this.shouldSendIsolatedPayload);ti_(x);this.invocationCount=0;this.JSC$9791_flushTimer.enabled&&this.JSC$9791_flushTimer.stop()};
ux.prototype.addNewCounter=function(x){var L=_.Ne.apply(1,arguments);this.metricMap.has(x)||this.metricMap.set(x,new KoW(x,L))};
ux.prototype.addNewEventMetric=function(x){var L=_.Ne.apply(1,arguments);this.metricMap.has(x)||this.metricMap.set(x,new O8d(x,L))};
var x4Q=function(x,L){return x.disabledMetrics.has(L)?void 0:x.metricMap.get(L)};
ux.prototype.JSC$9791_incrementCounter=function(x){this.JSC$9791_incrementCounterBy(x,1,_.Ne.apply(1,arguments))};
ux.prototype.JSC$9791_incrementCounterBy=function(x,L){var D=_.Ne.apply(2,arguments),S=x4Q(this,x);S&&S instanceof KoW&&(S.JSC$9730_incrementCounterBy(L,D),nR2(this))};
ux.prototype.record=function(x,L){var D=_.Ne.apply(2,arguments),S=x4Q(this,x);S&&S instanceof O8d&&(S.record(L,D),nR2(this))};
var ti_=function(x){for(var L=0;L<x.length;L++)x[L].clear()};_.N_=function(x,L,D){D=D===void 0?{}:D;L=Error.call(this,L);this.message=L.message;"stack"in L&&(this.stack=L.stack);this.code=x;this.metadata=D;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.p(_.N_,Error);_.N_.prototype.toString=function(){var x="RpcError("+(y8w(this.code)||String(this.code))+")";this.message&&(x+=": "+this.message);return x};_.LgR=_.Qb.JSON.parse;_.iO=_.Qb.JSON.stringify;_.UK=_.Qb.JSON.parse;_.D4r=function(x){switch(x){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 S7Q=function(x){switch(x){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var Qmd,JxB=function(){};
_.E9(JxB,_.INc);JxB.prototype.createInstance=function(){return new XMLHttpRequest};
Qmd=new JxB;_.fW=function(x){_.Bc.call(this);this.headers=new Map;this.JSC$9800_xmlHttpFactory_=x||null;this.JSC$9800_active_=!1;this.JSC$9800_xhr_=null;this.JSC$9800_lastUri_="";this.JSC$9800_lastErrorCode_=0;this.JSC$9800_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$9800_timeoutId_=null;this.responseType_="";this.JSC$9800_withCredentials_=!1};
_.E9(_.fW,_.Bc);var KgG=/^https?$/i,OwA=["POST","PUT"],ZwB=[],wx4=function(x,L,D,S,Q,J,Z){var y=new _.fW;ZwB.push(y);L&&y.listen("complete",L);y.listenOnce("ready",y.cleanupSend_);J&&(y.timeoutInterval_=Math.max(0,J));Z&&(y.JSC$9800_withCredentials_=Z);y.send(x,D,S,Q)};
_.fW.prototype.cleanupSend_=function(){this.dispose();_.$f(ZwB,this)};
_.fW.prototype.send=function(x,L,D,S){if(this.JSC$9800_xhr_)throw Error("Aa`"+this.JSC$9800_lastUri_+"`"+x);L=L?L.toUpperCase():"GET";this.JSC$9800_lastUri_=x;this.JSC$9800_lastError_="";this.JSC$9800_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$9800_active_=!0;this.JSC$9800_xhr_=this.createXhr();this.JSC$9800_xhr_.onreadystatechange=Wc((0,_.e1)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$9800_xhr_.open(L,String(x),!0),this.inOpen_=!1}catch(Z){yx2(this,Z);return}x=D||"";D=new Map(this.headers);
if(S)if(Object.getPrototypeOf(S)===Object.prototype)for(var Q in S)D.set(Q,S[Q]);else if(typeof S.keys==="function"&&typeof S.get==="function"){Q=_.O(S.keys());for(var J=Q.next();!J.done;J=Q.next())J=J.value,D.set(J,S.get(J))}else throw Error("Ba`"+String(S));S=Array.from(D.keys()).find(function(Z){return"content-type"==Z.toLowerCase()});
Q=_.Qb.FormData&&x instanceof _.Qb.FormData;!_.AG(OwA,L)||S||Q||D.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");L=_.O(D);for(S=L.next();!S.done;S=L.next())D=_.O(S.value),S=D.next().value,D=D.next().value,this.JSC$9800_xhr_.setRequestHeader(S,D);this.responseType_&&(this.JSC$9800_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$9800_xhr_&&this.JSC$9800_xhr_.withCredentials!==this.JSC$9800_withCredentials_&&(this.JSC$9800_xhr_.withCredentials=this.JSC$9800_withCredentials_);
try{this.JSC$9800_timeoutId_&&(clearTimeout(this.JSC$9800_timeoutId_),this.JSC$9800_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$9800_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$9800_xhr_.send(x),this.inSend_=!1}catch(Z){yx2(this,Z)}};
_.fW.prototype.createXhr=function(){return this.JSC$9800_xmlHttpFactory_?this.JSC$9800_xmlHttpFactory_.createInstance():Qmd.createInstance()};
_.fW.prototype.timeout_=function(){typeof gL4!="undefined"&&this.JSC$9800_xhr_&&(this.JSC$9800_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$9800_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var yx2=function(x,L){x.JSC$9800_active_=!1;x.JSC$9800_xhr_&&(x.inAbort_=!0,x.JSC$9800_xhr_.abort(),x.inAbort_=!1);x.JSC$9800_lastError_=L;x.JSC$9800_lastErrorCode_=5;Ib2(x);Ea2(x)},Ib2=function(x){x.errorDispatched_||(x.errorDispatched_=!0,x.dispatchEvent("complete"),x.dispatchEvent("error"))};
_.fW.prototype.abort=function(x){this.JSC$9800_xhr_&&this.JSC$9800_active_&&(this.JSC$9800_active_=!1,this.inAbort_=!0,this.JSC$9800_xhr_.abort(),this.inAbort_=!1,this.JSC$9800_lastErrorCode_=x||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Ea2(this))};
_.fW.prototype.disposeInternal=function(){this.JSC$9800_xhr_&&(this.JSC$9800_active_&&(this.JSC$9800_active_=!1,this.inAbort_=!0,this.JSC$9800_xhr_.abort(),this.inAbort_=!1),Ea2(this,!0));_.fW.superClass_.disposeInternal.call(this)};
_.fW.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)M1B(this);else this.onReadyStateChangeEntryPoint_()};
_.fW.prototype.onReadyStateChangeEntryPoint_=function(){M1B(this)};
var M1B=function(x){if(x.JSC$9800_active_&&typeof gL4!="undefined")if(x.inSend_&&_.ow(x)==4)setTimeout(x.onReadyStateChange_.bind(x),0);else if(x.dispatchEvent("readystatechange"),x.isComplete()){x.JSC$9800_active_=!1;try{if(x.isSuccess())x.dispatchEvent("complete"),x.dispatchEvent("success");else{x.JSC$9800_lastErrorCode_=6;try{var L=_.ow(x)>2?x.JSC$9800_xhr_.statusText:""}catch(D){L=""}x.JSC$9800_lastError_=L+" ["+x.getStatus()+"]";Ib2(x)}}finally{Ea2(x)}}},Ea2=function(x,L){if(x.JSC$9800_xhr_){x.JSC$9800_timeoutId_&&
(clearTimeout(x.JSC$9800_timeoutId_),x.JSC$9800_timeoutId_=null);
var D=x.JSC$9800_xhr_;x.JSC$9800_xhr_=null;L||x.dispatchEvent("ready");try{D.onreadystatechange=null}catch(S){}}};
_.fW.prototype.isActive=function(){return!!this.JSC$9800_xhr_};
_.fW.prototype.isComplete=function(){return _.ow(this)==4};
_.fW.prototype.isSuccess=function(){var x=this.getStatus(),L;if(!(L=S7Q(x))){if(x=x===0)x=VNC(String(this.JSC$9800_lastUri_)),x=!KgG.test(x);L=x}return L};
_.ow=function(x){return x.JSC$9800_xhr_?x.JSC$9800_xhr_.readyState:0};
_.K=_.fW.prototype;_.K.getStatus=function(){try{return _.ow(this)>2?this.JSC$9800_xhr_.status:-1}catch(x){return-1}};
_.K.getResponseText=function(){try{return this.JSC$9800_xhr_?this.JSC$9800_xhr_.responseText:""}catch(x){return""}};
_.K.getResponse=function(){try{if(!this.JSC$9800_xhr_)return null;if("response"in this.JSC$9800_xhr_)return this.JSC$9800_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$9800_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$9800_xhr_)return this.JSC$9800_xhr_.mozResponseArrayBuffer}return null}catch(x){return null}};
_.K.getAllResponseHeaders=function(){return this.JSC$9800_xhr_&&_.ow(this)>=2?this.JSC$9800_xhr_.getAllResponseHeaders()||"":""};
_.K.getLastError=function(){return typeof this.JSC$9800_lastError_==="string"?this.JSC$9800_lastError_:String(this.JSC$9800_lastError_)};var Pj0=function(){};
Pj0.prototype.send=function(x,L,D){L=L===void 0?function(){}:L;
D=D===void 0?function(){}:D;
wx4(x.url,function(S){S=S.target;S.isSuccess()?L(S.getResponseText()):D(S.getStatus())},x.requestType,x.body,x.requestHeaders,x.timeoutMillis,x.withCredentials)};
Pj0.prototype.getTransmissionType=function(){return 1};var d42=function(x,L){this.aK0=x;this.event=L;this.startTime=gb()},uDs;
d42.prototype.done=function(){this.aK0.d7(this.event,gb()-this.startTime)};
var aw=function(){uO.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.p(aw,uO);_.zm=function(x,L,D){var S=gb();L=L();x.d7(D,gb()-S);return L};
uDs=function(){aw.apply(this,arguments)};
_.p(uDs,aw);_.K=uDs.prototype;_.K.aRR=function(){};
_.K.kW=function(){};
_.K.d7=function(){};
_.K.logError=function(){};
_.K.gs=function(){};
_.K.zp8=function(){};
_.K.loW=function(){};
_.K.kBq=function(){};
var Px_=function(x){aw.call(this);var L=this;this.nN=x;this.TEST_ONLY={lUN:function(){return L.nN},
getExperimentIds:function(){return L.nN.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void L.nN.dispose()})};
_.p(Px_,aw);_.K=Px_.prototype;_.K.update=function(x){this.nN.dispose();this.nN=x};
_.K.kW=function(x){this.nN.kW(x)};
_.K.d7=function(x,L){this.nN.d7(x,L)};
_.K.logError=function(x){this.nN.logError(x)};
_.K.gs=function(){this.nN.gs()};
_.K.zp8=function(x){this.nN.zp8(x)};
_.K.loW=function(x){this.nN.loW(x)};
_.K.kBq=function(x){this.nN.kBq(x)};
_.K.aRR=function(x){this.nN.aRR(x)};
var jm2=function(x,L){_.Te.call(this);var D=this;this.callback=x;this.kWa=L;this.aTp=-L;this.addOnDisposeCallback(function(){return void clearTimeout(D.timer)})};
_.p(jm2,_.Te);var vaH=function(x){if(x.timer===void 0){var L=Math.max(0,x.aTp+x.kWa-gb());x.timer=setTimeout(function(){try{x.callback()}finally{x.aTp=gb(),x.timer=void 0}},L)}},V1W=function(x,L){aw.call(this);
this.metrics=x;this.iV=L};
_.p(V1W,aw);_.K=V1W.prototype;_.K.aRR=function(x){this.metrics.oSv.record(x,this.iV)};
_.K.kW=function(x){this.metrics.eventCount.increment(x,this.iV)};
_.K.d7=function(x,L){this.metrics.rPa.record(L,x,this.iV)};
_.K.logError=function(x){this.metrics.errorCount.increment(x,this.iV)};
_.K.zp8=function(x){this.metrics.zI1.increment(x,this.iV)};
_.K.loW=function(x){this.metrics.hQC.increment(x,this.iV)};
_.K.kBq=function(x){this.metrics.klO.increment(x,this.iV)};
var gQw=function(x,L){L=L===void 0?[]:L;var D={iV:x.iV||"_",rJg:x.rJg||[],uun:x.uun|0,destinationUrl:x.destinationUrl,rd8:x.rd8||function(){},
jo8:x.jo8||function(J,Z){return HHN(J,Z,D.rd8,D.destinationUrl)}},S=D.jo8("51",D.rJg.concat(L));
V1W.call(this,{oSv:new tNQ(S),errorCount:new Std(S),eventCount:new LWH(S),rPa:new DTH(S),gxG:new xTA(S),zI1:new QT2(S),hQC:new JB2(S),klO:new KWW(S)},D.iV);var Q=this;this.TEST_ONLY={getExperimentIds:function(){return Q.options.rJg.concat(Q.qa0).sort(function(J,Z){return J-Z})}};
this.options=D;this.service=S;this.qPi=!x.jo8;this.flushDebouncer=new jm2(function(){return void Q.service.snapshotAndFlush()},D.uun);
this.addOnDisposeCallback(function(){Q.flushDebouncer.dispose();Q.qPi&&Q.service.dispose()});
(this.qa0=L.slice()).sort(_.Uf4)};
_.p(gQw,V1W);gQw.prototype.gs=function(){vaH(this.flushDebouncer)};var H_0=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(H_0,_.O5);_.u_3=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(_.u_3,_.O5);var zk=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x,0,zk.messageId)};
_.p(zk,_.O5);var hvA=_.ff0(zk);zk.messageId="bfkj";var o6w=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(o6w,_.O5);var HwB=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(HwB,_.O5);var uRA=_.uQ(HwB);_.Hq=function(){var x=this;this.promise=new Promise(function(L,D){x.resolve=L;x.reject=D})};_.XC=function(x){_.Te.call(this);var L=this;this.opn=Math.floor(Math.random()*200);this.xuo=new HwB;if("challenge"in x&&hvA(x.challenge)){var D=_.wy(x.challenge,4,void 0,YH);var S=_.wy(x.challenge,5,void 0,YH);_.wy(x.challenge,7,void 0,YH)&&(this.xuo=uRA(_.wy(x.challenge,7,void 0,YH)))}else D=x.program,S=x.globalName;this.addOnDisposeCallback(function(){var k,T,G;return _.I(function(U){if(U.nextAddress==1)return U.yield(L.mjn,2);k=U.yieldResult;T=k.btu;(G=T)==null||G();_.Y2(U)})});
this.iN=kUG(x.e1C||{},this.xuo);_.V1(this,this.iN);var Q=new _.Hq;this.mjn=Q.promise;this.iN.kW("t");var J=this.iN.share(),Z=new d42(J,"t"),y=function(k,T,G,U){if(!L.iN.isDisposed()){var l="k";T?l="h":G&&(l="u");l!=="k"?U!==0&&(L.iN.kW(l),L.iN.d7(l,k)):L.opn<=0?(L.iN.kW(l),L.iN.d7(l,k),L.opn=Math.floor(Math.random()*200)):L.opn--}},E=function(k,T,G,U){Promise.resolve().then(function(){Z.done();
J.gs();J.dispose();Q.resolve({wg9:k,btu:T,dDO:G,dTC:U})})};
if(!_.Qb[S])throw this.iN.logError(25),Error("Ca");if(!_.Qb[S].a)throw this.iN.logError(26),Error("Da");try{var P=_.Qb[S].a;S=[];for(var v=[],V=aas(this.xuo),h=0;h<V.length;h++)S.push(V[h]),v.push(1);var H=z13(this.xuo);for(V=0;V<H.length;V++)S.push(H[V]),v.push(2);this.yF3=_.O(P(D,E,!0,x.qHa,y,[S,v],_.wy(this.xuo,5),!1)).next().value;this.d17=Q.promise.then(function(){})}catch(k){throw this.iN.logError(28),k;
}};
_.p(_.XC,_.Te);_.XC.prototype.snapshot=function(x){if(this.isDisposed())throw Error("Ea");this.iN.kW("n");var L=this.iN.share();return this.mjn.then(function(D){var S=D.wg9;return new Promise(function(Q){var J=new d42(L,"n");S(function(Z){J.done();L.aRR(Z.length);L.gs();L.dispose();Q(Z)},[x.o2,
x.cT7,x.afX,x.tTq])})})};
_.XC.prototype.vV7=function(x){this.mjn.then(function(L){var D;(D=L.dDO)==null||D(x)})};
_.XC.prototype.mR8=function(x,L){return this.mjn.then(function(D){var S;return(S=D.dTC)==null?void 0:S(x,L,!1)})};
_.XC.prototype.kix=function(){return this.iN.share()};var gaH=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(gaH,_.O5);var v70=_.ff0(gaH);var keG=function(){this.promises={};this.nm5=null},pfi=function(){keG.instance||(keG.instance=new keG);
return keG.instance},bwi=function(x,L){return m4C(x,_.Mg(L,H_0,1,YH),_.Mg(L,_.u_3,2,YH),_.wy(L,3,void 0,YH))},m4C=function(x,L,D,S){if(!L&&!D)return Promise.resolve();
if(!S)return Fvs(L,D);var Q;(Q=x.promises)[S]||(Q[S]=new Promise(function(J,Z){Fvs(L,D).then(function(){x.nm5=S;J()},function(y){delete x.promises[S];
Z(y)})}));
return x.promises[S]};var Y7h=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(Y7h,_.O5);var FgB=function(x,L){return _.Xm(x,1,L)},smG=function(x,L){return _.Xm(x,2,L)};var cc=function(x){_.Te.call(this);var L=this;this.options=x;this.xt1=new _.Hq;this.d17=this.xt1.promise;this.vzy=new _.Hq;this.zdn=1;this.vUI=new _.Hq;this.cAF=[];this.wi7=x.wi7||function(){};
this.mnq=new Px_(kUG(x.e1C||{}));Tbh(this,x.pD,x.zo0,x.f2a,x.c4D,Object.assign({},ev2,x.fqx||{}));this.addOnDisposeCallback(function(){return void RvC(L)})};
_.p(cc,_.Te);cc.prototype.snapshot=function(x){var L=this;return _.I(function(D){switch(D.nextAddress){case 1:if(L.isDisposed())throw Error("Ea");if(L.iw||L.a3q){D.jumpTo(2);break}return D.yield(L.vzy.promise,2);case 2:if(!L.iw){D.jumpTo(4);break}return D.yield(L.iw.snapshot(x),5);case 5:return D.return(D.yieldResult);case 4:throw L.a3q;}})};
var GeH=function(x){var L;return _.I(function(D){if(x.isDisposed())throw Error("Ea");(L=x.xt)!=null&&(L.endTimeMs=0,L.resolver(1));return D.yield(x.vUI.promise,0)})},RvC=function(x){x.a3q=Error("Ga");
x.vzy.resolve();Xdf(x.xt1.promise);x.xt1.reject(Error("Ga"));x.mnq.dispose();Promise.all(x.cAF).then(function(){var D;return _.I(function(S){(D=x.iw)==null||D.dispose();x.iw=void 0;_.Y2(S)})});
x.cAF=[];var L;(L=x.xt)!=null&&(L.endTimeMs=0,L.resolver(1));Xdf(x.vUI.promise);x.vUI.reject(Error("Ga"))};
cc.prototype.vV7=function(x){var L,D;(L=this.iw)==null||(D=L.vV7)==null||D.call(L,x)};
cc.prototype.mR8=function(x,L){var D,S,Q;return(Q=(D=this.iw)==null?void 0:(S=D.mR8)==null?void 0:S.call(D,x,L))!=null?Q:Promise.resolve()};
var Cxd=function(x,L){var D=x.wi7;x.wi7=function(){D();L()}},lb_=function(x,L){x.isDisposed()||(x.iw=L,x.mnq.update(L.kix()),x.vzy.resolve(),x.xt1.resolve(void 0),x.wi7())};
cc.prototype.handleError=function(x){if(!this.isDisposed()){this.a3q=x;this.vzy.resolve();var L,D;(D=(L=this.options).dxi)==null||D.call(L,x)}};
var U4G=function(x,L){L&&(Promise.all(x.cAF).then(function(){return void L.dispose()}),x.cAF=[])},nW=function(x,L){x.zdn=L;
var D,S;(S=(D=x.options).gq3)==null||S.call(D,L)},wfH=function(x){x.isDisposed()||(x.vUI.resolve(),x.vUI=new _.Hq)},Tbh=function(x,L,D,S,Q,J){S=S===void 0?pfi():S;
Q=Q===void 0?Promise.resolve(void 0):Q;var Z,y,E,P,v,V,h,H,k,T,G,U;_.I(function(l){switch(l.nextAddress){case 1:return l.yield(0,3);case 3:y=null;if(!Z){l.jumpTo(6);break}nW(x,7);_.HH(l,7);return l.yield(Ya(Z.snapshot({}),J.lEN,function(){return Promise.resolve("E:CTO")}),9);
case 9:y=l.yieldResult;_.nH(l,6);break;case 7:_.mW(l),y="E:UCE";case 6:E=void 0,P=Z?J.mIN:J.bfC,v=new Pf(P,J.qOi,J.lFF,J.eiX),V=1;case 10:if(!(V<=J.maxAttempts)){l.jumpTo(12);break}if(V===1){l.jumpTo(13);break}nW(x,0);x.xt=new Bb2(v.getValue(),J.t49,J.zsa);return l.yield(x.xt.promise,14);case 14:h=l.yieldResult,x.xt=void 0,h===1?(V=1,v.reset()):z0h(v);case 13:_.HH(l,15);H=void 0;if(D){H=D;l.jumpTo(17);break}nW(x,5);k=S.nm5;return l.yield(Ya(WgH(L,k,y),J.b8N,function(){return Promise.reject(Error("Ha"))}),
18);
case 18:H=l.yieldResult;case 17:return nW(x,3),l.yield(Ya(bwi(S,H),J.mPM,function(){return Promise.reject(Error("Ia"))}),19);
case 19:return nW(x,8),l.yield(Q,20);case 20:return T=new _.XC({challenge:H,e1C:x.options.e1C,qHa:x.options.qHa}),l.yield(Ya(T.d17,J.tqG,function(){return Promise.reject(Error("Ja"))}),21);
case 21:E=T;l.jumpTo(12);break;case 15:G=_.mW(l),x.handleError(G),wfH(x);case 11:V++;l.jumpTo(10);break;case 12:if(x.isDisposed()){l.jumpTo(5);break}E&&(D=void 0,U4G(x,Z),Z=E,lb_(x,E),wfH(x));nW(x,2);x.xt=new Bb2(J.hZY,J.t49,J.zsa);return l.yield(x.xt.promise,22);case 22:x.xt=void 0;if(x.isDisposed()){l.jumpTo(5);break}l.jumpTo(3);break;case 5:(U=Z)==null||U.dispose(),_.Y2(l)}})};
cc.prototype.kix=function(){return this.mnq.share()};
var ev2={hZY:432E5,t49:3E5,zsa:10,lEN:1E4,b8N:3E4,mPM:3E4,tqG:6E4,bfC:1E3,mIN:6E4,qOi:6E5,lFF:.25,eiX:2,maxAttempts:10},Bb2=function(x,L,D){var S=this;this.endTimeMs=Date.now()+x;this.promise=new Promise(function(J){S.resolver=J});
var Q=function(){var J=S.endTimeMs-Date.now();J<=D?S.resolver(0):setTimeout(Q,Math.min(J,L))};
Q()};var q7B,ehf=(q7B=Math.imul)!=null?q7B:function(x,L){return x*L|0},FR=[196,
200,224,18],tR=function(x,L,D){D=D===void 0?[]:D;this.maxItems=x;this.mW=L===void 0?0:L;this.kD=D},AxW=function(x){var L=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!L)return new tR(x);var D=L.split(",");if(D.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new tR(x);L=D.slice(1);L.length===1&&L[0]===""&&(L=[]);D=Number(D[0]);return isNaN(D)||D<0||D>L.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new tR(x)):new tR(x,D,L)};
tR.prototype.serialize=function(){return String(this.mW)+","+this.kD.join()};
tR.prototype.insert=function(x,L){var D=void 0;if(this.kD[this.mW]!==x){var S=this.kD.indexOf(x);S!==-1?(this.kD.splice(S,1),S<this.mW&&this.mW--,this.kD.splice(this.mW,0,x)):(D=this.kD[this.mW],this.kD[this.mW]=x)}this.mW=(this.mW+1)%this.maxItems;x=sZs("iU5q-!O9@$",this.serialize());D&&x&&L(D);return x};
var $4h=function(x,L){this.eDg=L;try{var D=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(S){D=!1}D&&(this.index=AxW(x))},rxH=function(x,L,D,S,Q){var J=x.index?_.zm(x.eDg,function(){return lNs(x.index,GUp(L),D,S,Q)},"W"):"u";
x.eDg.kBq(J)},NbB=function(x,L,D){var S=_.O(x.index?_.zm(x.eDg,function(){return UwN(GUp(L),D)},"R"):["u"]),Q=S.next().value;
S=S.next().value;x.eDg.loW(Q);return S};var iw_={toString:function(x){var L=[],D=0;x-=-2147483648;L[D++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(x%52);for(x=Math.floor(x/52);x>0;)L[D++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(x%62),x=Math.floor(x/62);return L.join("")}};var ab_=function(x){x=fbR(x);for(var L=2654435769,D=2654435769,S=314159265,Q=x.length,J=Q,Z=0,y=function(){L-=D;L-=S;L^=S>>>13;D-=S;D-=L;D^=L<<8;S-=L;S-=D;S^=D>>>13;L-=D;L-=S;L^=S>>>12;D-=S;D-=L;D^=L<<16;S-=L;S-=D;S^=D>>>5;L-=D;L-=S;L^=S>>>3;D-=S;D-=L;D^=L<<10;S-=L;S-=D;S^=D>>>15};J>=12;J-=12,Z+=12)L+=oa2(x,Z),D+=oa2(x,Z+4),S+=oa2(x,Z+8),y();
S+=Q;switch(J){case 11:S+=x[Z+10]<<24;case 10:S+=x[Z+9]<<16;case 9:S+=x[Z+8]<<8;case 8:D+=x[Z+7]<<24;case 7:D+=x[Z+6]<<16;case 6:D+=x[Z+5]<<8;case 5:D+=x[Z+4];case 4:L+=x[Z+3]<<24;case 3:L+=x[Z+2]<<16;case 2:L+=x[Z+1]<<8;case 1:L+=x[Z]}y();return iw_.toString(S)},fbR=function(x){for(var L=[],D=0;D<x.length;D++)L.push(x.charCodeAt(D));
return L},oa2=function(x,L){return x[L]+(x[L+1]<<8)+(x[L+2]<<16)+(x[L+3]<<24)};var x0=function(x){_.Te.call(this);this.l0=x;this.ccW=new _.Hq};
_.p(x0,_.Te);var zvH=function(x,L){var D=setTimeout(function(){x.ccW.resolve()},L);
x.addOnDisposeCallback(function(){return void clearTimeout(D)})};
x0.prototype.moC=function(x,L){var D=this.gT(x);L==null||L(D);return _.zm(this.l0,function(){return _.Gg(D,2)},this.ujy)};
var Xf_=function(x,L,D,S){return _.zm(x.l0,function(){return D?x.moC(L,S):x.gT(L,S)},x.bn7)},cxd=function(x,L,D,S){x0.call(this,x);
this.reU=L;this.oxa=D;this.bn7="m";this.ujy="x";this.ceN=0;zvH(this,S)};
_.p(cxd,x0);cxd.prototype.gT=function(x,L){var D=this;this.l0.kW(this.bn7);++this.ceN>=this.oxa&&this.ccW.resolve();var S=x();x=_.zm(this.l0,function(){return D.reU(S)},"C");
if(x===void 0)throw new hR(17,"YNJ:Undefined");if(!(x instanceof Uint8Array))throw new hR(18,"ODM:Invalid");L==null||L(x);return x};
var naQ=function(x,L,D){x0.call(this,x);this.xNX=L;this.bn7="f";this.ujy="z";zvH(this,D)};
_.p(naQ,x0);naQ.prototype.gT=function(){return this.xNX};
var t1W=function(x,L,D){x0.call(this,x);this.tLC=L;this.bn7="w";this.ujy="z";zvH(this,D)};
_.p(t1W,x0);t1W.prototype.gT=function(){var x=this;return _.zm(this.l0,function(){return _.tG(x.tLC)},"d")};
t1W.prototype.moC=function(){return this.tLC};
var xN2=function(x,L){x0.call(this,x);this.error=L;this.bn7="e";this.ujy="y"};
_.p(xN2,x0);var L5_=function(x,L){var D=(L(x.error.message)+":"+L(x.error.stack)).substring(0,2048);L=D.length+1;D=wY4(D);var S=new Uint8Array(4+D.length);S.set([42,L&127|128,L>>7,x.error.code]);S.set(D,4);return S};
xN2.prototype.gT=function(){if(this.bfE)return this.bfE;this.bfE=L5_(this,function(x){return"_"+ab_(x)});
return L5_(this,function(x){return x})};
var DNh=function(x,L,D){x0.call(this,x);this.gtF=L;this.clientState=D;this.bn7="S";this.ujy="q"};
_.p(DNh,x0);DNh.prototype.gT=function(){var x=Math.floor(Date.now()/1E3),L=[Math.random()*255,Math.random()*255],D=L.concat([this.gtF&255,this.clientState],[x>>24&255,x>>16&255,x>>8&255,x&255]);x=new Uint8Array(2+D.length);x[0]=34;x[1]=D.length;x.set(D,2);D=x.subarray(2);for(var S=L=L.length;S<D.length;++S)D[S]^=D[S%L];this.l0.zp8(this.clientState);return x};var SsC={l9i:3E4,gSM:2E4},Lr=function(x){_.Te.call(this);var L=this;this.ySq=new _.Hq;this.kYW=0;this.fD=void 0;this.state=2;this.vm=x.vm;this.pD=x.pD;this.fqx=Object.assign({},SsC,x.fqx||{});this.zp=x.vm.kix();var D;this.onError=(D=x.onError)!=null?D:function(){};
this.kXW=x.kXW||!1;if(QuQ(x)){var S=this.vm;this.xAq=function(){return GeH(S).catch(function(Z){Z=L.reportError(new hR(L.n2?20:32,"TRG:Disposed",Z));L.fD=Z;var y;(y=L.n2)==null||y.dispose();L.n2=void 0;L.ySq.reject(Z)})};
Cxd(S,function(){return void JIB(L)});
S.zdn===2&&JIB(this)}else this.xAq=x.izu,JIB(this);var Q=this.zp.share();Q.kW("o");var J=new d42(Q,"o");this.ySq.promise.then(function(){J.done();Q.gs();Q.dispose()},function(){return void Q.dispose()});
this.addOnDisposeCallback(function(){L.n2?(L.n2.dispose(),L.n2=void 0):L.fD?L.zp.gs():(L.fD=L.reportError(new hR(32,"TNP:Disposed")),L.zp.gs(),L.ySq.reject(L.fD))});
_.V1(this,this.zp)};
_.p(Lr,_.Te);Lr.prototype.bwm=function(){return this.ySq.promise};
var K5W=function(x,L){if(!(L instanceof hR))if(L instanceof _.N_){var D=Error(L.toString());D.stack=L.stack;L=new hR(11,"EBH:Error",D)}else L=new hR(12,"BSO:Unknown",L);return x.reportError(L)},JIB=function(x){var L,D,S,Q,J,Z,y,E,P,v,V,h,H,k,T;
return _.I(function(G){switch(G.nextAddress){case 1:L=void 0;x.kYW++;D=new _.Hq;x.vm instanceof cc&&x.vm.cAF.push(D.promise);if(!x.kXW){G.jumpTo(2);break}S=new _.Hq;setTimeout(function(){return void S.resolve()});
return G.yield(S.promise,2);case 2:return Q=x.zp.share(),_.HH(G,4,5),x.state=5,J={},Z=[],G.yield(Ya(x.vm.snapshot({o2:J,afX:Z}),x.fqx.gSM,function(){return Promise.reject(new hR(15,"MDA:Timeout"))}),7);
case 7:y=G.yieldResult;if(x.isDisposed())throw new hR(x.n2?20:32,"MDA:Disposed");E=Z[0];x.state=6;return G.yield(Ya(OqG(x.pD,y),x.fqx.l9i,function(){return Promise.reject(new hR(10,"BWB:Timeout"))}),8);
case 8:P=G.yieldResult;if(x.isDisposed())throw new hR(x.n2?20:32,"BWB:Disposed");x.state=7;L=_.zm(Q,function(){var l=Zq_(x,P,D,E);l.ccW.promise.then(function(){return void x.xAq()});
return l},"i");
case 5:_.gP(G);Q.dispose();_.pZ(G,6);break;case 4:v=_.mW(G);(V=L)==null||V.dispose();if(!x.fD){h=K5W(x,v);D.resolve();var U;if(U=x.vm instanceof cc&&x.kYW<2)a:if(v instanceof hR)U=v.code!==32&&v.code!==20&&v.code!==10;else{if(v instanceof _.N_)switch(v.code){case 2:case 13:case 14:case 4:break;default:U=!1;break a}U=!0}if(U)return H=(1+Math.random()*.25)*(x.n2?6E4:1E3),k=setTimeout(function(){return void x.xAq()},H),x.addOnDisposeCallback(function(){return void clearTimeout(k)}),G.return();
x.fD=h}Q.logError(x.n2?13:14);x.ySq.reject(x.fD);return G.return();case 6:x.state=8,x.kYW=0,(T=x.n2)==null||T.dispose(),x.n2=L,x.ySq.resolve(),_.Y2(G)}})},Zq_=function(x,L,D,S){var Q=NM0(L,2)*1E3;
if(Q<=0)throw new hR(31,"TTM:Invalid");if(_.wy(L,4))return new t1W(x.zp,_.wy(L,4),Q);if(!NM0(L,3))return new naQ(x.zp,Ybf(_.FK(L,1)),Q);if(!S)throw new hR(4,"PMD:Undefined");S=S(Ybf(_.FK(L,1)));if(!(S instanceof Function))throw new hR(16,"APF:Failed");x.ji0=Math.floor((Date.now()+Q)/1E3);x=new cxd(x.zp,S,NM0(L,3),Q);x.addOnDisposeCallback(function(){return void D.resolve()});
return x};
Lr.prototype.gT=function(x){return yIA(this,Object.assign({},x),!1)};
Lr.prototype.moC=function(x){return yIA(this,Object.assign({},x),!0)};
Lr.prototype.pcB=function(x){if(x>150)return!1;try{return this.cache=new $4h(x,this.zp),!0}catch(L){return this.reportError(new hR(22,"GBJ:init",L)),!1}};
Lr.prototype.reportError=function(x){this.zp.logError(x.code);this.onError(x);return x};
var IKH=function(x,L){L=L instanceof hR?L:new hR(5,"TVD:error",L);return x.reportError(L)},yIA=function(x,L,D){try{if(x.isDisposed())throw new hR(21,"BNT:disposed");
if(!x.n2&&x.fD)throw x.fD;var S,Q;return(Q=(S=EVB(x,L,D))!=null?S:M$C(x,L,D))!=null?Q:dN2(x,L,D)}catch(J){if(!L.byW)throw IKH(x,J);return PmW(x,D,J)}},EVB=function(x,L,D){var S;
return(S=x.n2)==null?void 0:Xf_(S,function(){return ju_(x,L)},D,function(Q){var J;
if(x.n2 instanceof cxd&&((J=L.we)==null?0:J.vy9))try{var Z;(Z=x.cache)==null||rxH(Z,ju_(x,L),Q,L.we.fQq,x.ji0-120)}catch(y){x.reportError(new hR(24,"ELX:write",y))}})},M$C=function(x,L,D){var S;
if((S=L.we)!=null&&S.jQn)try{var Q,J=(Q=x.cache)==null?void 0:NbB(Q,ju_(x,L),L.we.fQq);return J?D?_.zm(x.zp,function(){return _.Gg(J,2)},"a"):J:void 0}catch(Z){x.reportError(new hR(23,"RXO:read",Z))}},dN2=function(x,L,D){var S={stack:[],
error:void 0,hasError:!1};try{if(!L.mbF)throw new hR(29,"SDF:notready");return Xf_(F6h(S,new DNh(x.zp,0,x.state)),function(){return ju_(x,L)},D)}catch(Q){S.error=Q,S.hasError=!0}finally{szc(S)}},PmW=function(x,L,D){var S={stack:[],
error:void 0,hasError:!1};try{var Q=IKH(x,D);return Xf_(F6h(S,new xN2(x.zp,Q)),function(){return[]},L)}catch(J){S.error=J,S.hasError=!0}finally{szc(S)}},ju_=function(x,L){return L.xhg?L.xhg:L.o2?_.zm(x.zp,function(){return L.xhg=wY4(L.o2)},"c"):[]},QuQ=function(x){return TB(function(L){if(!Es(L))return!1;
for(var D=_.O(Object.entries(x)),S=D.next();!S.done;S=D.next()){var Q=_.O(S.value);S=Q.next().value;Q=Q.next().value;if(!(S in L)){if(Q.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!Q(L[S]))return!1}return!0})}({vm:function(x){return TB(function(L){return L instanceof x})}(cc)},"");var vVH=function(){var x=_.jR();this.JSC$9918_streamzService=x;x.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",Im("cookie_enabled"),Im("cookie_3p_enabled"),_.M4("browser"))};
vVH.prototype.increment=function(x,L,D){this.JSC$9918_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",x,L,D)};
var JAw=function(){var x=_.jR();this.JSC$9942_streamzService=x;x.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",E7("tick"),Im("from_st_cookie"))};
JAw.prototype.increment=function(x,L){this.JSC$9942_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",x,L)};
var V$Q=function(){var x=_.jR();this.JSC$9948_streamzService=x;x.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.M4("status"))};
V$Q.prototype.increment=function(x){this.JSC$9948_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",x)};
var hzQ=function(){var x=_.jR();this.JSC$9951_streamzService=x;x.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.M4("stage"),Im("is_using_ytd_player"),Im("has_expandable_tiles"))};
hzQ.prototype.increment=function(x,L,D){this.JSC$9951_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",x,L,D)};
var Hq2=function(){var x=_.jR();this.JSC$9954_streamzService=x;x.addNewCounter("/client_streamz/youtube/web/response_signature",_.M4("check_status"))};
Hq2.prototype.increment=function(x){this.JSC$9954_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/web/response_signature",x)};
var uUh=function(){var x=_.jR();this.JSC$9957_streamzService=x;x.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.M4("sig"),E7("de"))};
uUh.prototype.increment=function(x,L){this.JSC$9957_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/web/e_sig_log",x,L)};
var gV2=function(){var x=_.jR();this.JSC$9960_streamzService=x;x.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.M4("sig"),E7("de"))};
gV2.prototype.increment=function(x,L){this.JSC$9960_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/web/e_sig_en",x,L)};
_.kJh=function(){var x=_.jR();this.JSC$9963_streamzService=x;x.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.M4("action"))};
_.kJh.prototype.increment=function(x){this.JSC$9963_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/web/enforcement_intent",x)};var D7=window;var pBG=(new Date).getTime();_.wk.createSet("area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr");_.wk.createSet("action","cite","data","formaction","href","manifest","poster","src");var mNA=function(x){this.servicePromise_=x;x.then((0,_.e1)(function(){},this),function(){},this)},bqW=function(x,L,D){x.servicePromise_.then(function(S){var Q=S[L];
if(!Q)throw Error("Ka`"+L);return Q.apply(S,D)})},sui=function(x,L,D){for(var S=Array(arguments.length-2),Q=2;Q<arguments.length;Q++)S[Q-2]=arguments[Q];
Q=Ysd(x,L).then(function(J){return J.apply(null,S)},function(J){J=Error("La`"+L+"`"+x,{cause:J});
delete F5r[L];return _.Bp(J)});
return new mNA(Q)},F5r={},Ysd=function(x,L){var D=F5r[L];
if(D)return D;D=(D=_.o1(L))?_.V0(D):(new _.HI(function(S,Q){var J=(new BM(document)).createElement("SCRIPT");J.async=!0;_.QD(J,_.Ti(psA(x)));J.onload=J.onreadystatechange=function(){J.readyState&&J.readyState!="loaded"&&J.readyState!="complete"||S()};
J.onerror=function(Z){Q(Error("Ma`"+L+"`"+x,{cause:Z}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(J)})).then(function(){var S=_.o1(L);
if(!S)throw Error("Na`"+L+"`"+x);return S});
return F5r[L]=D};var THh={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},RzR=function(){var x=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=BEN(function(){return _.I(function(L){if(L.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?L.return(Promise.resolve()):L.yield(ezR(x),2);x.rsaForList.length>
0&&document.addEventListener("click",x.requestAccessForHelpPanel);_.Y2(L)})});
this.requestAccessForHelpPanel=function(){if(!(x.rsaForPromises.length>0)){for(var L=_.O(x.rsaForList),D=L.next();!D.done;D=L.next()){D=D.value;try{x.rsaForPromises.push(document.requestStorageAccessFor(D))}catch(S){}}Promise.all(x.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){x.reset()})}}};
RzR.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var ezR=function(x){var L,D,S,Q;return _.I(function(J){switch(J.nextAddress){case 1:L=_.O(Object.values(THh)),D=L.next();case 2:if(D.done){J.jumpTo(0);break}S=D.value;_.HH(J,5);return J.yield(navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:S}),7);case 7:Q=J.yieldResult;Q.state!=="granted"&&x.rsaForList.push(S);_.nH(J,3);break;case 5:_.mW(J);J.jumpTo(0);break;case 3:D=L.next(),J.jumpTo(2)}})};(new RzR).initialize();var GJh=function(x){this.JSC$9977_loader_=x};
GJh.prototype.startHelp=function(x){bqW(this.JSC$9977_loader_,"startHelp",arguments)};
GJh.prototype.JSC$9979_loadChatSupport=function(x){bqW(this.JSC$9977_loader_,"loadChatSupport",arguments)};
var lKA=function(x,L){L=L||{};x=sui(Cmh,"help.service.Lazy.create",x,{apiKey:L.apiKey||L.apiKey,asxUiUri:L.asxUiUri||L.asxUiUri,environment:L.environment||L.environment,flow:L.flow||L.flow,frdProductData:L.frdProductData||L.frdProductData,frdProductDataSerializedJspb:L.frdProductDataSerializedJspb||L.frdProductDataSerializedJspb,helpCenterPath:L.helpCenterPath||L.helpCenterPath,locale:L.locale||L.locale||"en-US".replace(/-/g,"_"),nonce:L.nonce||L.nonce,productData:L.productData||L.productData,receiverUri:L.receiverUri||
L.receiverUri,renderApiUri:L.renderApiUri||L.renderApiUri,theme:L.theme||L.theme,window:L.window||L.window});return new GJh(x)},Cmh=new $Z(rLw,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var UN2=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(UN2,_.O5);var wBG=_.uQ(UN2);var BH2=[0,_.Jo,t9,RX0];_.W5h=new function(x,L,D,S){this.configType=x;this.flagName=D;this.defaultValue=S;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 AId=function(){this.retriever=_.yY().resolve(qsW)};_.QG={get payments(){return window.payments}};q2n(Node);q2n(Element);var $NQ=q2n(HTMLElement);q2n(SVGElement);var rIh,NHi,Jm,iq2;rIh=function(x){return typeof x.className=="string"?x.className:x.getAttribute&&x.getAttribute("class")||""};
NHi=function(x){return x.classList?x.classList:rIh(x).match(/\S+/g)||[]};
_.Su=function(x,L){typeof x.className=="string"?x.className=L:x.setAttribute&&x.setAttribute("class",L)};
_.QH=function(x,L){return x.classList?x.classList.contains(L):_.AG(NHi(x),L)};
_.OI=function(x,L){if(x.classList)x.classList.add(L);else if(!_.QH(x,L)){var D=rIh(x);_.Su(x,D+(D.length>0?" "+L:L))}};
Jm=function(x,L){if(x.classList)Array.prototype.forEach.call(L,function(Q){_.OI(x,Q)});
else{var D={};Array.prototype.forEach.call(NHi(x),function(Q){D[Q]=!0});
Array.prototype.forEach.call(L,function(Q){D[Q]=!0});
L="";for(var S in D)L+=L.length>0?" "+S:S;_.Su(x,L)}};
_.JD=function(x,L){x.classList?x.classList.remove(L):_.QH(x,L)&&_.Su(x,Array.prototype.filter.call(NHi(x),function(D){return D!=L}).join(" "))};
iq2=function(x,L){x.classList?Array.prototype.forEach.call(L,function(D){_.JD(x,D)}):_.Su(x,Array.prototype.filter.call(NHi(x),function(D){return!_.AG(L,D)}).join(" "))};var fKh=function(x){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=x.document},zzr=function(x,L){oVH(x);
var D=document.createElement("div"),S;(S=L.parentNode)==null||S.insertBefore(D,L);D.tabIndex=0;D.id="fc-focus-trap-pre-div";D=document.createElement("div");var Q;(Q=L.parentNode)==null||Q.insertBefore(D,L.nextSibling);D.tabIndex=0;D.id="fc-focus-trap-post-div";var J=aKW(x,L),Z=aKW(x,L,!0);J&&Z&&(x.focusChangeHandler=function(){var y=x.document.activeElement;if(y)if(_.fw(L,y))x.previouslyFocusedElement=y;else if(y===x.document.activeElement)switch(x.previouslyFocusedElement){case J:Z.focus();x.previouslyFocusedElement=
Z;break;default:J.focus(),x.previouslyFocusedElement=J}},x.document.addEventListener("focus",x.focusChangeHandler,!0),x.document.addEventListener("focusin",x.focusChangeHandler))},oVH=function(x){x.focusChangeHandler&&(document.removeEventListener("focus",x.focusChangeHandler,!0),document.removeEventListener("focusin",x.focusChangeHandler),x.focusChangeHandler=null);
var L;(L=document.getElementById("fc-focus-trap-pre-div"))==null||L.remove();var D;(D=document.getElementById("fc-focus-trap-post-div"))==null||D.remove()},XBR=function(x,L,D,S,Q){D=D===void 0?!0:D;
var J;Q=(J=Q===void 0?null:Q)!=null?J:aKW(x,L,S===void 0?!1:S);Q!==null&&(Q.focus(),D&&zzr(x,L))};
fKh.prototype.disableButton=function(x,L){L=L===void 0?null:L;x.disabled=!0;L&&_.OI(x,L)};
var aKW=function(x,L,D){D=D===void 0?!1:D;if(Ou0(L)&&!D)return L;var S=D?[].slice.call(L.children,0).reverse():L.children;S=_.O(S);for(var Q=S.next();!Q.done;Q=S.next())if(Q=Q.value,$NQ(Q)&&(Q=aKW(x,Q,D)))return Q;return Ou0(L)&&D?L:null};var cIQ=function(x){this.originalBodyOverflow="";this.JSC$10004_domHelper=Tj(x)};
cIQ.prototype.enableScrolling=function(){this.JSC$10004_domHelper.JSC$9330_document_.body.style.overflow=this.originalBodyOverflow};_.E9(_.Rm,_.Te);_.K=_.Rm.prototype;_.K.JSC$10007_id_=0;_.K.disposeInternal=function(){_.Rm.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$10005_listener_;delete this.handler_};
_.K.start=function(x){this.stop();this.JSC$10007_id_=rG(this.callback_,x!==void 0?x:this.JSC$10005_interval_)};
_.K.stop=function(){this.isActive()&&_.Qb.clearTimeout(this.JSC$10007_id_);this.JSC$10007_id_=0};
_.K.fire=function(){this.stop();this.JSC$10007_doAction_()};
_.K.isActive=function(){return this.JSC$10007_id_!=0};
_.K.JSC$10007_doAction_=function(){this.JSC$10007_id_=0;this.JSC$10005_listener_&&this.JSC$10005_listener_.call(this.handler_)};_.Mu=function(x){_.Te.call(this);this.handler_=x;this.JSC$10008_keys_={}};
_.E9(_.Mu,_.Te);var nVA=[];_.Mu.prototype.listen=function(x,L,D,S){Array.isArray(L)||(L&&(nVA[0]=L.toString()),L=nVA);for(var Q=0;Q<L.length;Q++){var J=_.Uk(x,L[Q],D||this.handleEvent,S||!1,this.handler_||this);if(!J)break;this.JSC$10008_keys_[J.key]=J}return this};
_.Mu.prototype.listenOnce=function(x,L,D,S){return t$B(this,x,L,D,S)};
var t$B=function(x,L,D,S,Q,J){if(Array.isArray(D))for(var Z=0;Z<D.length;Z++)t$B(x,L,D[Z],S,Q,J);else{L=R6(L,D,S||x.handleEvent,Q,J||x.handler_||x);if(!L)return x;x.JSC$10008_keys_[L.key]=L}return x};
_.Mu.prototype.unlisten=function(x,L,D,S,Q){if(Array.isArray(L))for(var J=0;J<L.length;J++)this.unlisten(x,L[J],D,S,Q);else if(x=kjd(x,L,D||this.handleEvent,_.on(S)?!!S.capture:!!S,Q||this.handler_||this))G$(x),delete this.JSC$10008_keys_[x.key];return this};
_.Mu.prototype.removeAll=function(){_.wk.forEach(this.JSC$10008_keys_,function(x,L){this.JSC$10008_keys_.hasOwnProperty(L)&&G$(x)},this);
this.JSC$10008_keys_={}};
_.Mu.prototype.disposeInternal=function(){_.Mu.superClass_.disposeInternal.call(this);this.removeAll()};
_.Mu.prototype.handleEvent=function(){throw Error("Oa");};var Kr=function(){_.Te.call(this);this.services_={}};
_.E9(Kr,_.Te);Kr.prototype.connect=function(x){x&&x()};
Kr.prototype.isConnected=function(){return!0};
Kr.prototype.registerService=function(x,L,D){this.services_[x]={callback:L,objectPayload:!!D}};
Kr.prototype.getService=function(x,L){var D=this.services_[x];return D?D:this.defaultService_?{callback:_.bl(this.defaultService_,x),objectPayload:_.on(L)}:null};
var x9Q=function(x,L){if(L&&typeof x==="string")try{return JSON.parse(x)}catch(D){return null}else if(!L&&typeof x!=="string")return(0,_.iO)(x);return x};
Kr.prototype.disposeInternal=function(){Kr.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 Ox=function(x,L){this.sequence_=[];this.onCancelFunction_=x;this.defaultScope_=L||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};
Ox.prototype.cancel=function(x){if(this.fired_)this.result_ instanceof Ox&&this.result_.cancel();else{if(this.parent_){var L=this.parent_;delete this.parent_;x?L.cancel(x):(L.branches_--,L.branches_<=0&&L.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new Z7(this))}};
Ox.prototype.continue_=function(x,L){this.blocked_=!1;Lrh(this,x,L)};
var Lrh=function(x,L,D){x.fired_=!0;x.result_=D;x.hadError_=!L;D9R(x)},Q1R=function(x){if(x.fired_){if(!x.silentlyCanceled_)throw new SXR(x);
x.silentlyCanceled_=!1}};
Ox.prototype.callback=function(x){Q1R(this);Lrh(this,!0,x)};
Ox.prototype.errback=function(x){Q1R(this);Lrh(this,!1,x)};
var JuG=function(x,L,D){yH(x,L,null,D)};
Ox.prototype.finally=function(x){var L=this;return KrB(new Promise(function(D,S){yH(L,function(Q){x();D(Q)},function(Q){x();
S(Q)})}))};
var yH=function(x,L,D,S){var Q=x.fired_;Q||(L===D?L=D=Wc(L):(L=Wc(L),D=Wc(D)));x.sequence_.push([L,D,S]);Q&&D9R(x)};
Ox.prototype.then=function(x,L,D){var S,Q,J=new _.HI(function(Z,y){Q=Z;S=y});
yH(this,Q,function(Z){Z instanceof Z7?J.cancel():S(Z);return OmH},this);
return J.then(x,L,D)};
e92(Ox);var Zm2=function(x,L){L instanceof Ox?JuG(x,(0,_.e1)(L.branch,L)):JuG(x,function(){return L})};
Ox.prototype.branch=function(x){var L=new Ox;yH(this,L.callback,L.errback,L);x&&(L.parent_=this,this.branches_++);return L};
Ox.prototype.isError=function(x){return x instanceof Error};
var yur=function(x){return tE(x.sequence_,function(L){return typeof L[1]==="function"})},OmH={},D9R=function(x){if(x.unhandledErrorId_&&x.fired_&&yur(x)){var L=x.unhandledErrorId_,D=IaH[L];
D&&(_.Qb.clearTimeout(D.JSC$10025_id_),delete IaH[L]);x.unhandledErrorId_=0}x.parent_&&(x.parent_.branches_--,delete x.parent_);L=x.result_;for(var S=D=!1;x.sequence_.length&&!x.blocked_;){var Q=x.sequence_.shift(),J=Q[0],Z=Q[1];Q=Q[2];if(J=x.hadError_?Z:J)try{var y=J.call(Q||x.defaultScope_,L);y===OmH&&(y=void 0);y!==void 0&&(x.hadError_=x.hadError_&&(y==L||x.isError(y)),x.result_=L=y);if(R92(L)||typeof _.Qb.Promise==="function"&&L instanceof _.Qb.Promise)S=!0,x.blocked_=!0}catch(E){L=E,x.hadError_=
!0,yur(x)||(D=!0)}}x.result_=L;S&&(y=(0,_.e1)(x.continue_,x,!0),S=(0,_.e1)(x.continue_,x,!1),L instanceof Ox?(yH(L,y,S),L.blocking_=!0):L.then(y,S));D&&(L=new E6r(L),IaH[L.JSC$10025_id_]=L,x.unhandledErrorId_=L.JSC$10025_id_)},KrB=function(x){var L=new Ox;
x.then(function(D){L.callback(D)},function(D){L.errback(D)});
return L},SXR=function(){_.Dp.call(this)};
_.E9(SXR,_.Dp);SXR.prototype.message="Deferred has already fired";SXR.prototype.name="AlreadyCalledError";var Z7=function(){_.Dp.call(this)};
_.E9(Z7,_.Dp);Z7.prototype.message="Deferred was canceled";Z7.prototype.name="CanceledError";var E6r=function(x){this.JSC$10025_id_=_.Qb.setTimeout((0,_.e1)(this.throwError,this),0);this.JSC$10025_error_=x};
E6r.prototype.throwError=function(){delete IaH[this.JSC$10025_id_];throw this.JSC$10025_error_;};
var IaH={};var MFG={1:"NativeMessagingTransport"},d92=["pu","lru","pru","lpu","ppu"],j1r=function(){for(var x=10,L=PfH,D=L.length,S="";x-- >0;)S+=L.charAt(Math.floor(Math.random()*D));return S},PfH="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var I2=function(x){_.Te.call(this);this.JSC$10028_domHelper_=x||Tj()};
_.E9(I2,_.Te);I2.prototype.transportType=0;I2.prototype.getWindow=function(){return this.JSC$10028_domHelper_.getWindow()};
I2.prototype.getName=function(){return MFG[String(this.transportType)]||""};var Ex=function(x,L,D,S,Q){I2.call(this,D);this.JSC$10031_channel_=x;this.protocolVersion_=Q||2;this.peerHostname_=L||"*";this.JSC$10031_eventHandler_=new _.Mu(this);this.maybeAttemptToConnectTimer_=new _.EK(100,this.getWindow());this.oneSidedHandshake_=!!S;this.setupAckReceived_=new Ox;this.setupAckSent_=new Ox;this.JSC$10031_connected_=new Ox;this.endpointId_=j1r();this.peerEndpointId_=null;this.oneSidedHandshake_?v6_(this.JSC$10031_channel_)==1?Zm2(this.JSC$10031_connected_,this.setupAckReceived_):
Zm2(this.JSC$10031_connected_,this.setupAckSent_):(Zm2(this.JSC$10031_connected_,this.setupAckReceived_),this.protocolVersion_==2&&Zm2(this.JSC$10031_connected_,this.setupAckSent_));JuG(this.JSC$10031_connected_,this.notifyConnected_,this);this.JSC$10031_connected_.callback(!0);this.JSC$10031_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.E9(Ex,I2);Ex.prototype.peerProtocolVersion_=null;Ex.prototype.initialized_=!1;Ex.prototype.transportType=1;var VF_={};Ex.prototype.sendTimerId_=0;
var u02=function(x){var L=x.event_.data;if(typeof L!=="string")return!1;var D=L.indexOf("|"),S=L.indexOf(":");if(D==-1||S==-1)return!1;var Q=L.substring(0,D);D=L.substring(D+1,S);L=L.substring(S+1);if(S=Mo[Q])return S.xpcDeliver(D,L,x.event_.origin),!0;S=h1G(L)[0];for(var J in Mo){var Z=Mo[J];if(v6_(Z)==1&&!Z.isConnected()&&D=="tp"&&(S=="SETUP"||S=="SETUP_NTPV2")&&Hm_(Z,x.event_.origin))return delete Mo[Z.name],Z.name=Q,Mo[Q]=Z,Z.xpcDeliver(D,L),!0}return!1},g6W=function(x){x.protocolVersion_!=2||
x.peerProtocolVersion_!=null&&x.peerProtocolVersion_!=2||x.send("tp","SETUP_NTPV2,"+x.endpointId_);
x.peerProtocolVersion_!=null&&x.peerProtocolVersion_!=1||x.send("tp","SETUP")},kSQ=function(x,L){if(x.protocolVersion_!=2||x.peerProtocolVersion_!=null&&x.peerProtocolVersion_!=2||L!=2){if(x.peerProtocolVersion_!=null&&x.peerProtocolVersion_!=1||L!=1)return;
x.send("tp","SETUP_ACK")}else x.send("tp","SETUP_ACK_NTPV2");x.setupAckSent_.fired_||x.setupAckSent_.callback(!0)},pdR=function(x,L){L>x.peerProtocolVersion_&&(x.peerProtocolVersion_=L);
x.peerProtocolVersion_==1&&(x.setupAckSent_.fired_||x.oneSidedHandshake_||x.setupAckSent_.callback(!0),x.peerEndpointId_=null)};
_.K=Ex.prototype;_.K.connect=function(){var x=this.getWindow(),L=_.zN(x),D=VF_[L];typeof D!=="number"&&(D=0);D==0&&_.Uk(x.postMessage?x:x.document,"message",u02,!1,Ex);VF_[L]=D+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.K.maybeAttemptToConnect_=function(){var x=v6_(this.JSC$10031_channel_)==0;this.oneSidedHandshake_&&x||this.JSC$10031_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),g6W(this))};
_.K.send=function(x,L){var D=this.JSC$10031_channel_.peerWindowObject_;D&&(this.send=function(S,Q){var J=this,Z=this.JSC$10031_channel_.name;this.sendTimerId_=rG(function(){J.sendTimerId_=0;try{var y=D.postMessage?D:D.document;y.postMessage&&y.postMessage(Z+"|"+S+":"+Q,J.peerHostname_)}catch(E){}},0)},this.send(x,L))};
_.K.notifyConnected_=function(){var x=this.JSC$10031_channel_,L=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;x.isConnected()||x.connectionDelay_&&x.connectionDelay_.isActive()||(x.state_=2,_.Q1(x.connectionDelay_),L!==void 0?(x.connectionDelay_=new _.Rm(x.connectCb_,L),x.connectionDelay_.start()):(x.connectionDelay_=null,x.connectCb_()))};
_.K.disposeInternal=function(){if(this.initialized_){var x=this.getWindow(),L=_.zN(x),D=VF_[L];VF_[L]=D-1;D==1&&_.wG(x.postMessage?x:x.document,"message",u02,!1,Ex)}this.sendTimerId_&&(_.Qb.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.Q1(this.JSC$10031_eventHandler_);delete this.JSC$10031_eventHandler_;_.Q1(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$10031_connected_.cancel();delete this.JSC$10031_connected_;delete this.send;Ex.superClass_.disposeInternal.call(this)};
var h1G=function(x){x=x.split(",");x[1]=x[1]||null;return x};var bm2;_.df=function(x){if(x.getValues&&typeof x.getValues=="function")return x.getValues();if(typeof Map!=="undefined"&&x instanceof Map||typeof Set!=="undefined"&&x instanceof Set)return Array.from(x.values());if(typeof x==="string")return x.split("");if(_.Nf(x)){for(var L=[],D=x.length,S=0;S<D;S++)L.push(x[S]);return L}return _.wk.getValues(x)};
_.m9G=function(x){if(x.getKeys&&typeof x.getKeys=="function")return x.getKeys();if(!x.getValues||typeof x.getValues!="function"){if(typeof Map!=="undefined"&&x instanceof Map)return Array.from(x.keys());if(!(typeof Set!=="undefined"&&x instanceof Set)){if(_.Nf(x)||typeof x==="string"){var L=[];x=x.length;for(var D=0;D<x;D++)L.push(D);return L}return _.wk.getKeys(x)}}};
bm2=function(x,L,D){if(x.forEach&&typeof x.forEach=="function")x.forEach(L,D);else if(_.Nf(x)||typeof x==="string")Array.prototype.forEach.call(x,L,D);else for(var S=_.m9G(x),Q=_.df(x),J=Q.length,Z=0;Z<J;Z++)L.call(D,Q[Z],S&&S[Z],x)};var yys,uJ,k0,GSR,YXd,s1A,Frd,R1C,TOR;
_.Dg=function(x,L){this.JSC$10036_domain_=this.userInfo_=this.scheme_="";this.JSC$10036_port_=null;this.fragment_=this.JSC$10036_path_="";this.JSC$10036_ignoreCase_=!1;var D;x instanceof _.Dg?(this.JSC$10036_ignoreCase_=L!==void 0?L:x.JSC$10036_ignoreCase_,_.PZ(this,x.scheme_),this.userInfo_=x.userInfo_,_.ju(this,x.JSC$10036_domain_),_.vZ(this,x.JSC$10036_port_),_.VH(this,x.getPath()),_.hm(this,x.JSC$10036_queryData_.clone()),_.HZ(this,x.fragment_)):x&&(D=_.ST(String(x)))?(this.JSC$10036_ignoreCase_=
!!L,_.PZ(this,D[1]||"",!0),this.userInfo_=uJ(D[2]||""),_.ju(this,D[3]||"",!0),_.vZ(this,D[4]),_.VH(this,D[5]||"",!0),_.hm(this,D[6]||"",!0),_.HZ(this,D[7]||"",!0)):(this.JSC$10036_ignoreCase_=!!L,this.JSC$10036_queryData_=new _.gf(null,this.JSC$10036_ignoreCase_))};
_.Dg.prototype.toString=function(){var x=[],L=this.scheme_;L&&x.push(k0(L,YXd,!0),":");var D=this.JSC$10036_domain_;if(D||L=="file")x.push("//"),(L=this.userInfo_)&&x.push(k0(L,YXd,!0),"@"),x.push(_.cd(D).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),D=this.JSC$10036_port_,D!=null&&x.push(":",String(D));if(D=this.getPath())this.JSC$10036_domain_&&D.charAt(0)!="/"&&x.push("/"),x.push(k0(D,D.charAt(0)=="/"?Frd:s1A,!0));(D=this.JSC$10036_queryData_.toString())&&x.push("?",D);(D=this.fragment_)&&x.push("#",
k0(D,TOR));return x.join("")};
_.Dg.prototype.resolve=function(x){var L=this.clone(),D=!!x.scheme_;D?_.PZ(L,x.scheme_):D=!!x.userInfo_;D?L.userInfo_=x.userInfo_:D=!!x.JSC$10036_domain_;D?_.ju(L,x.JSC$10036_domain_):D=x.JSC$10036_port_!=null;var S=x.getPath();if(D)_.vZ(L,x.JSC$10036_port_);else if(D=!!x.JSC$10036_path_){if(S.charAt(0)!="/")if(this.JSC$10036_domain_&&!this.JSC$10036_path_)S="/"+S;else{var Q=L.getPath().lastIndexOf("/");Q!=-1&&(S=L.getPath().slice(0,Q+1)+S)}Q=S;if(Q==".."||Q==".")S="";else if(_.Mf(Q,"./")||_.Mf(Q,
"/.")){S=_.Ow(Q,"/");Q=Q.split("/");for(var J=[],Z=0;Z<Q.length;){var y=Q[Z++];y=="."?S&&Z==Q.length&&J.push(""):y==".."?((J.length>1||J.length==1&&J[0]!="")&&J.pop(),S&&Z==Q.length&&J.push("")):(J.push(y),S=!0)}S=J.join("/")}else S=Q}D?_.VH(L,S):D=x.JSC$10036_queryData_.toString()!=="";D?_.hm(L,x.JSC$10036_queryData_.clone()):D=!!x.fragment_;D&&_.HZ(L,x.fragment_);return L};
_.Dg.prototype.clone=function(){return new _.Dg(this)};
_.PZ=function(x,L,D){x.scheme_=D?uJ(L,!0):L;x.scheme_&&(x.scheme_=x.scheme_.replace(/:$/,""));return x};
_.ju=function(x,L,D){x.JSC$10036_domain_=D?uJ(L,!0):L;return x};
_.vZ=function(x,L){if(L){L=Number(L);if(isNaN(L)||L<0)throw Error("Pa`"+L);x.JSC$10036_port_=L}else x.JSC$10036_port_=null;return x};
_.Dg.prototype.getPath=function(){return this.JSC$10036_path_};
_.VH=function(x,L,D){x.JSC$10036_path_=D?uJ(L,!0):L;return x};
_.hm=function(x,L,D){L instanceof _.gf?(x.JSC$10036_queryData_=L,e1i(x.JSC$10036_queryData_,x.JSC$10036_ignoreCase_)):(D||(L=k0(L,R1C)),x.JSC$10036_queryData_=new _.gf(L,x.JSC$10036_ignoreCase_));return x};
_.xV=function(x,L,D){x.JSC$10036_queryData_.set(L,D);return x};
_.cf=function(x,L){return x.JSC$10036_queryData_.get(L)};
_.HZ=function(x,L,D){x.fragment_=D?uJ(L):L;return x};
_.pr=function(x){_.xV(x,"zx",am());return x};
_.ze=function(x,L){return x instanceof _.Dg?x.clone():new _.Dg(x,L)};
yys=function(x,L){x instanceof _.Dg||(x=_.ze(x));L instanceof _.Dg||(L=_.ze(L));return x.resolve(L)};
uJ=function(x,L){return x?L?decodeURI(x.replace(/%25/g,"%2525")):decodeURIComponent(x):""};
k0=function(x,L,D){return typeof x==="string"?(x=encodeURI(x).replace(L,GSR),D&&(x=x.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),x):null};
GSR=function(x){x=x.charCodeAt(0);return"%"+(x>>4&15).toString(16)+(x&15).toString(16)};
YXd=/[#\/\?@]/g;s1A=/[#\?:]/g;Frd=/[#\?]/g;R1C=/[#\?@]/g;TOR=/#/g;_.gf=function(x,L){this.count_=this.keyMap_=null;this.encodedQuery_=x||null;this.JSC$10037_ignoreCase_=!!L};
_.ms=function(x){x.keyMap_||(x.keyMap_=new Map,x.count_=0,x.encodedQuery_&&us_(x.encodedQuery_,function(L,D){x.add(O2(L),D)}))};
_.K=_.gf.prototype;_.K.getCount=function(){_.ms(this);return this.count_};
_.K.add=function(x,L){_.ms(this);this.encodedQuery_=null;x=bJ(this,x);var D=this.keyMap_.get(x);D||this.keyMap_.set(x,D=[]);D.push(L);this.count_+=1;return this};
_.K.remove=function(x){_.ms(this);x=bJ(this,x);return this.keyMap_.has(x)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(x).length,this.keyMap_.delete(x)):!1};
_.K.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.K.isEmpty=function(){_.ms(this);return this.count_==0};
_.K.containsKey=function(x){_.ms(this);x=bJ(this,x);return this.keyMap_.has(x)};
_.K.containsValue=function(x){var L=this.getValues();return _.AG(L,x)};
_.K.forEach=function(x,L){_.ms(this);this.keyMap_.forEach(function(D,S){D.forEach(function(Q){x.call(L,Q,S,this)},this)},this)};
_.K.getKeys=function(){_.ms(this);for(var x=Array.from(this.keyMap_.values()),L=Array.from(this.keyMap_.keys()),D=[],S=0;S<L.length;S++)for(var Q=x[S],J=0;J<Q.length;J++)D.push(L[S]);return D};
_.K.getValues=function(x){_.ms(this);var L=[];if(typeof x==="string")this.containsKey(x)&&(L=L.concat(this.keyMap_.get(bJ(this,x))));else{x=Array.from(this.keyMap_.values());for(var D=0;D<x.length;D++)L=L.concat(x[D])}return L};
_.K.set=function(x,L){_.ms(this);this.encodedQuery_=null;x=bJ(this,x);this.containsKey(x)&&(this.count_-=this.keyMap_.get(x).length);this.keyMap_.set(x,[L]);this.count_+=1;return this};
_.K.get=function(x,L){if(!x)return L;x=this.getValues(x);return x.length>0?String(x[0]):L};
_.Cfh=function(x,L,D){x.remove(L);D.length>0&&(x.encodedQuery_=null,x.keyMap_.set(bJ(x,L),_.r0(D)),x.count_+=D.length)};
_.gf.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var x=[],L=Array.from(this.keyMap_.keys()),D=0;D<L.length;D++){var S=L[D],Q=_.cd(S);S=this.getValues(S);for(var J=0;J<S.length;J++){var Z=Q;S[J]!==""&&(Z+="="+_.cd(S[J]));x.push(Z)}}return this.encodedQuery_=x.join("&")};
_.gf.prototype.clone=function(){var x=new _.gf;x.encodedQuery_=this.encodedQuery_;this.keyMap_&&(x.keyMap_=new Map(this.keyMap_),x.count_=this.count_);return x};
var bJ=function(x,L){L=String(L);x.JSC$10037_ignoreCase_&&(L=L.toLowerCase());return L},e1i=function(x,L){L&&!x.JSC$10037_ignoreCase_&&(_.ms(x),x.encodedQuery_=null,x.keyMap_.forEach(function(D,S){var Q=S.toLowerCase();
S!=Q&&(this.remove(S),_.Cfh(this,Q,D))},x));
x.JSC$10037_ignoreCase_=L};
_.gf.prototype.extend=function(x){for(var L=0;L<arguments.length;L++)bm2(arguments[L],function(D,S){this.add(S,D)},this)};var Y0=function(x,L){Kr.call(this);for(var D=0,S;S=d92[D];D++)if(S in x&&!/^https?:\/\//.test(x[S]))throw Error("Ra`"+x[S]+"`"+S);this.cfg_=x;this.name=this.cfg_.cn||j1r();this.JSC$10032_domHelper_=L||Tj();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.Mu(this);x.lpu=x.lpu||hUh(this.JSC$10032_domHelper_.getWindow().location.href)+"/robots.txt";x.ppu=x.ppu||hUh(x.pu||"")+"/robots.txt";Mo[this.name]=this;kjd(window,"unload",la_)||R6(window,"unload",la_)};
_.E9(Y0,Kr);var U9_=RegExp("^%*tp$"),wdh=RegExp("^%+tp$");_.K=Y0.prototype;_.K.connectionDelay_=null;_.K.peerWindowDeferred_=null;_.K.transport_=null;_.K.state_=1;_.K.isConnected=function(){return this.state_==2};
_.K.peerWindowObject_=null;_.K.iframeElement_=null;_.K.getConfig=function(){return this.cfg_};
_.K.connect=function(x){this.connectCb_=x||_.GC;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?JuG(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.K.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$10032_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var x=this.iframeElement_.contentWindow;x||(x=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=x}if(!this.peerWindowObject_){if(window==window.top)throw Error("Ta");this.peerWindowObject_=window.parent}if(!this.transport_){this.cfg_.tp||(this.cfg_.tp=typeof document.postMessage==="function"||typeof window.postMessage===
"function"?1:0);if(typeof this.cfg_.tp==="function")this.transport_=new this.cfg_.tp(this,this.JSC$10032_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new Ex(this,this.cfg_.ph,this.JSC$10032_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Sa");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.K.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.Q1(this.transport_);this.connectCb_=this.transport_=null;_.Q1(this.connectionDelay_);this.connectionDelay_=null};
_.K.send=function(x,L){if(this.isConnected()){try{var D=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(Q){D=!1}if(D){_.on(L)&&(L=(0,_.iO)(L));D=this.transport_;var S=D.send;U9_.test(x)&&(x="%"+x);x=x.replace(/[%:|]/g,encodeURIComponent);S.call(D,x,L)}else this.close()}};
_.K.xpcDeliver=function(x,L,D){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.e1)(this.xpcDeliver,this,x,L,D));else if(Hm_(this,D)&&!this.isDisposed()&&this.state_!=3)if(x&&x!="tp")this.isConnected()&&(x=x.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),x=wdh.test(x)?x.substring(1):x,x=this.getService(x,L))&&(L=x9Q(L,x.objectPayload),L!=null&&x.callback(L));else switch(x=this.transport_,D=h1G(L),L=D[1],D[0]){case "SETUP_ACK":pdR(x,1);x.setupAckReceived_.fired_||x.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":x.protocolVersion_==2&&(pdR(x,2),x.setupAckReceived_.fired_||x.setupAckReceived_.callback(!0));break;case "SETUP":pdR(x,1);kSQ(x,1);break;case "SETUP_NTPV2":x.protocolVersion_==2&&(D=x.peerProtocolVersion_,pdR(x,2),kSQ(x,2),D!=1&&x.peerEndpointId_==null||x.peerEndpointId_==L||g6W(x),x.peerEndpointId_=L)}};
var v6_=function(x){var L=x.cfg_.role;return typeof L==="number"?L:window.parent==x.peerWindowObject_?1:0},Hm_=function(x,L){var D=x.cfg_.ph;
return _.Ew(L==null?"":String(L))||_.Ew(D==null?"":String(D))||L==x.cfg_.ph};
Y0.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete Mo[this.name];_.Q1(this.peerLoadHandler_);delete this.peerLoadHandler_;Y0.superClass_.disposeInternal.call(this)};
var la_=function(){for(var x in Mo)_.Q1(Mo[x])},Mo={};var Wr2=function(x,L){this.JSC$10046_win=x;this.allowAdsHttpEndpoint=L;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$10046_domHelper=Tj(x);this.scrollManager=new cIQ(x);this.accessibilityManager=new fKh(x);BOA(this)},BOA=function(x){var L=function(){x.allowAdsPopup&&x.allowAdsPopup.style.setProperty("display","none","important");
x.wallElement.style.setProperty("display","","important");oVH(x.accessibilityManager);XBR(x.accessibilityManager,x.wallElement.querySelector(".fc-dialog-container"),!1,!1,x.wallElement.querySelector(".fc-button-whitelist"));x.scrollManager.enableScrolling()};
x.allowAdsPopup=x.JSC$10046_domHelper.JSC$9332_createDom("DIV",{"class":"fc-whitelist-root"});x.allowAdsPopup.style.setProperty("display","none","important");x.JSC$10046_domHelper.appendChild(x.JSC$10046_domHelper.JSC$9330_document_.body,x.allowAdsPopup);var D=x.JSC$10046_domHelper.JSC$9332_createDom("DIV",{"class":"fc-dialog-overlay"});x.JSC$10046_domHelper.appendChild(x.allowAdsPopup,D);var S=x.JSC$10046_domHelper.JSC$9332_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:L});x.JSC$10046_domHelper.appendChild(x.allowAdsPopup,
S);D=x.JSC$10046_domHelper.JSC$9332_createDom("IFRAME");D.className="fc-whitelist-dialog";D.frameBorder="0";D.id="fc-whitelist-iframe";D.tabIndex="0";_.ci(D,x.allowAdsHttpEndpoint);x.JSC$10046_domHelper.appendChild(S,D);S={};S.pu=_.RN(x.allowAdsHttpEndpoint).toString();S.tp=1;S.cn="fc-whitelist-channel";S.ifrid=D.id;S.osh=!0;x.allowAdsCrossPageChannel=new Y0(S);x.allowAdsCrossPageChannel.registerService("close",L);x.allowAdsCrossPageChannel.registerService("refresh",function(){x.JSC$10046_win.location.reload()});
x.allowAdsCrossPageChannel.registerService("resize",function(Q){if(Q){var J=x.allowAdsPopup.querySelector(".fc-whitelist-dialog");Q.width&&J.style.setProperty("width",Q.width,"important");Q.height&&J.style.setProperty("height",Q.height,"important")}},!0);
x.allowAdsCrossPageChannel.connect()};
Wr2.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$10046_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var FN=window,sx=document,qX_=FN.location,Au_=function(){},$9Q=/\[native code\]/,Tp=function(x,L,D){return x[L]=x[L]||D},ruh=function(x){x=x.sort();
for(var L=[],D=void 0,S=0;S<x.length;S++){var Q=x[S];Q!=D&&L.push(Q);D=Q}return L},eu=function(){var x;
if((x=Object.create)&&$9Q.test(x))x=x(null);else{x={};for(var L in x)x[L]=void 0}return x},Gp=Tp(FN,"gapi",{});var Cr={};Cr=Tp(FN,"___jsl",eu());Tp(Cr,"I",0);Tp(Cr,"hel",10);var NOH=function(){var x=qX_.href;if(Cr.dpo)var L=Cr.h;else{L=Cr.h;var D=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),S=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(x=x&&(D.exec(x)||S.exec(x)))try{L=decodeURIComponent(x[2])}catch(Q){}}return L},imA=function(x){var L=Tp(Cr,"PQ",[]);
Cr.PQ=[];var D=L.length;if(D===0)x();else for(var S=0,Q=function(){++S===D&&x()},J=0;J<D;J++)L[J](Q)},far=function(x){return Tp(Tp(Cr,"H",eu()),x,eu())};var lJ=function(x){this.JSC$10048_obj_=x};
lJ.prototype.value=function(){return this.JSC$10048_obj_};
lJ.prototype.getWidth=function(){return this.JSC$10048_obj_.width};
lJ.prototype.getHeight=function(){return this.JSC$10048_obj_.height};
lJ.prototype.getStyle=function(){return this.JSC$10048_obj_.style};var o6R=function(x){this.JSC$10051_obj_=x||{}};
_.K=o6R.prototype;_.K.value=function(){return this.JSC$10051_obj_};
_.K.setUrl=function(x){this.JSC$10051_obj_.url=x;return this};
_.K.getUrl=function(){return this.JSC$10051_obj_.url};
_.K.getStyle=function(){return this.JSC$10051_obj_.style};
_.K.getId=function(){return this.JSC$10051_obj_.id};
_.K.getContext=function(){return this.JSC$10051_obj_.context};
var aaG=function(x){x.JSC$10051_obj_.attributes=x.JSC$10051_obj_.attributes||{};return new lJ(x.JSC$10051_obj_.attributes)};var z12=function(){o6R.apply(this,arguments)};
_.p(z12,o6R);var XdH=Tp(Cr,"perf",eu());Tp(XdH,"g",eu());var cuG=Tp(XdH,"i",eu());Tp(XdH,"r",[]);eu();eu();var tFG=function(x,L,D){L&&L.length>0&&(L=n62(L),D&&D.length>0&&(L+="___"+n62(D)),L.length>28&&(L=L.substr(0,28)+(L.length-28)),D=L,L=Tp(cuG,"_p",eu()),Tp(L,D,eu())[x]=(new Date).getTime(),L=XdH.r,typeof L==="function"?L(x,"_p",D):L.push([x,"_p",D]))},n62=function(x){return x.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var xwH=eu(),Lvd=[],Ux=function(x){throw Error("Ua`"+x);};
Lvd.push(["jsl",function(x){for(var L in x)if(Object.prototype.hasOwnProperty.call(x,L)){var D=x[L];typeof D=="object"?Cr[L]=Tp(Cr,L,[]).concat(D):Tp(Cr,L,D)}if(L=x.u)x=Tp(Cr,"us",[]),x.push(L),(L=/^https:(.*)$/.exec(L))&&x.push("http:"+L[1])}]);
var DwW=/^(\/[a-zA-Z0-9_\-]+)+$/,S2B=[/\/amp\//,/\/amp$/,/^\/amp$/],QZ2=/^[a-zA-Z0-9\-_\.,!]+$/,J8Q=/^gapi\.loaded_[0-9]+$/,KvG=/^[a-zA-Z0-9,._-]+$/,IN_=function(x,L,D,S,Q){var J=x.split(";"),Z=J.shift(),y=xwH[Z],E=null;y?E=y(J,L,D,S):Ux("no hint processor for: "+Z);E||Ux("failed to generate load url");L=E;D=L.match(OHR);(S=L.match(ZHB))&&S.length===1&&y8R.test(L)&&D&&D.length===1||Ux("failed sanity: "+x);try{x="?";if(Q&&Q.length>0){lpf(Q);var P=Q.join(",");E=E+"?le="+P;x="&"}if(Cr.rol){var v=Cr.ol;
v&&v.length&&(E=""+E+x+"ol="+v.length)}}catch(V){}return E},dw2=function(x,L,D,S){x=EQd(x);
J8Q.test(D)||Ux("invalid_callback");L=MTG(L);S=S&&S.length?MTG(S):null;var Q=function(J){return encodeURIComponent(J).replace(/%2C/g,",")};
return[encodeURIComponent(x.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",Q(x.version),"/m=",Q(L),S?"/exm="+Q(S):"","/rt=j/sv=1/d=1/ed=1",x.activeMods?"/am="+Q(x.activeMods):"",x.resourceSig?"/rs="+Q(x.resourceSig):"",x.zcms?"/t="+Q(x.zcms):"","/cb=",Q(D)].join("")},EQd=function(x){x.charAt(0)!=="/"&&Ux("relative path");
for(var L=x.substring(1).split("/"),D=[];L.length;){x=L.shift();if(!x.length||x.indexOf(".")==0)Ux("empty/relative directory");else if(x.indexOf("=")>0){L.unshift(x);break}D.push(x)}x={};for(var S=0,Q=L.length;S<Q;++S){var J=L[S].split("="),Z=decodeURIComponent(J[0]),y=decodeURIComponent(J[1]);J.length==2&&Z&&y&&(x[Z]=x[Z]||y)}L="/"+D.join("/");DwW.test(L)||Ux("invalid_prefix");D=0;for(S=S2B.length;D<S;++D)S2B[D].test(L)&&Ux("invalid_prefix");D=PjW(x,"k",!0);S=PjW(x,"am");Q=PjW(x,"rs");x=PjW(x,"t");
return{pathPrefix:L,version:D,activeMods:S,resourceSig:Q,zcms:x}},MTG=function(x){for(var L=[],D=0,S=x.length;D<S;++D){var Q=x[D].replace(/\./g,"_").replace(/-/g,"_");
KvG.test(Q)&&L.push(Q)}return L.join(",")},PjW=function(x,L,D){x=x[L];
!x&&D&&Ux("missing: "+L);if(x){if(QZ2.test(x))return x;Ux("invalid: "+L)}return null},y8R=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,ZHB=/\/cb=/g,OHR=/\/\//g;
xwH.m=function(x,L,D,S){(x=x[0])||Ux("missing_hint");return"https://apis.google.com"+dw2(x,L,D,S)};
var jZQ=decodeURI("%73cript"),vQi=/^[-+_0-9\/A-Za-z]+={0,2}$/,VTi=function(x,L){for(var D=[],S=0;S<x.length;++S){var Q=x[S],J;if(J=Q){a:{for(J=0;J<L.length;J++)if(L[J]===Q)break a;J=-1}J=J<0}J&&D.push(Q)}return D},hhB=function(){var x=Cr.nonce;
return x!==void 0?x&&x===String(x)&&x.match(vQi)?x:Cr.nonce=null:sx.querySelector?(x=sx.querySelector("script[nonce]"))?(x=x.nonce||x.getAttribute("nonce")||"",x&&x===String(x)&&x.match(vQi)?Cr.nonce=x:Cr.nonce=null):null:null},gQR=function(x){if(sx.readyState!="loading")HHB(x);
else{var L=hhB(),D="";L!==null&&(D=' nonce="'+L+'"');x="<"+jZQ+' src="'+encodeURI(x)+'"'+D+"></"+jZQ+">";sx.write(uDG?uDG.createHTML(x):x)}},HHB=function(x){var L=sx.createElement(jZQ);
L.setAttribute("src",uDG?uDG.createScriptURL(x):x);x=hhB();x!==null&&L.setAttribute("nonce",x);L.async="true";(x=sx.getElementsByTagName(jZQ)[0])?x.parentNode.insertBefore(L,x):(sx.head||sx.body||sx.documentElement).appendChild(L)},pYC=function(x,L,D){kUr(function(){var S=L===NOH()?Tp(Gp,"_",eu()):eu();
S=Tp(far(L),"_",S);x(S)},D)},awc=function(x,L){var D=L||{};
typeof L=="function"&&(D={},D.callback=L);var S=(L=D)&&L._c;if(S)for(var Q=0;Q<Lvd.length;Q++){var J=Lvd[Q][0],Z=Lvd[Q][1];Z&&Object.prototype.hasOwnProperty.call(S,J)&&Z(S[J],x,L)}L=[];x?L=x.split(":"):D.features&&(L=D.features);if(!(x=D.h)&&(x=NOH(),!x))throw Error("Va");mwA(L||[],D,x)},mwA=function(x,L,D){x=ruh(x)||[];
var S=L.callback,Q=L.config,J=L.timeout,Z=L.ontimeout,y=L.onerror,E=void 0;typeof y=="function"&&(E=y);var P=null,v=!1;if(J&&!Z||!J&&Z)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";y=Tp(far(D),"r",[]).sort();var V=Tp(far(D),"L",[]).sort(),h=Cr.le||[],H=[].concat(y),k=function(X,f){if(v)return 0;FN.clearTimeout(P);V.push.apply(V,T);var N=((Gp||{}).config||{}).update;N?N(Q):Q&&Tp(Cr,"cu",[]).push(Q);if(f){tFG("me0",X,H);try{pYC(f,D,E)}finally{tFG("me1",X,H)}}return 1};
J>0&&(P=FN.setTimeout(function(){v=!0;Z()},J));
var T=VTi(x,V);if(T.length){T=VTi(x,y);var G=Tp(Cr,"CP",[]),U=G.length;G[U]=function(X){if(!X)return 0;tFG("ml1",T,H);var f=function(z){G[U]=null;k(T,X)&&imA(function(){S&&S();z()})},N=function(){var z=G[U+1];
z&&z()};
U>0&&G[U-1]?G[U]=function(){f(N)}:f(N)};
if(T.length){var l="loaded_"+Cr.I++;Gp[l]=function(X){G[U](X);Gp[l]=null};
x=IN_(D,T,"gapi."+l,y,h);y.push.apply(y,T);tFG("ml0",T,H);L.sync||FN.___gapisync?gQR(x):HHB(x)}else G[U](Au_)}else k(T)&&S&&S()},bHr;
var Y2_=null,FvG=_.Qb.trustedTypes;if(FvG&&FvG.createPolicy){try{Y2_=FvG.createPolicy("goog#gapi",{createHTML:YPO,createScript:YPO,createScriptURL:YPO})}catch(x){_.Qb.console&&_.Qb.console.error(x.message)}bHr=Y2_}else bHr=Y2_;var uDG=bHr,kUr=function(x,L){if(Cr.hee&&Cr.hel>0)try{return x()}catch(D){L&&L(D),Cr.hel--,awc("debug_error",function(){try{window.___jsl.hefn(D)}catch(S){throw D;}})}else try{return x()}catch(D){throw L&&L(D),D;
}},sZG=Gp.load;
sZG&&Tp(Cr,"ol",[]).push(sZG);Gp.load=function(x,L){return kUr(function(){return awc(x,L)})};var iHG;var ehh=function(x,L){var D=D||[];this.serviceId_=x;this.moduleId_=L||null;this.dependencies_=[];TEH(this,D)};
ehh.prototype.toString=function(){return this.serviceId_};
ehh.prototype.getModuleId=function(){return this.moduleId_};
var TEH=function(x,L){var D=!1;D=D===void 0?!1:D;x.dependencies_=x.dependencies_.concat(L);if(D){if(!x.moduleId_)throw Error("Wa`"+x.serviceId_);L.map(function(S){return S.getModuleId()}).forEach(function(S){fNf(function(Q){Q.addExtraEdge(x.moduleId_,S)})})}};var R5b=new ehh("MpJwZc","MpJwZc");var p$0=new _.Rw("a"),Cz4=new _.Rw("c"),G0b=function(x,L,D){_.Gm.call(this,x,L);this.node=L;this.kind=D};
_.p(G0b,_.Gm);var Rhd=function(){this.JSC$10064_keys_={};this.urlPrefix_="";this.JSC$10064_queryData_={}};
Rhd.prototype.toString=function(){var x=this.urlPrefix_+GUh(this),L=_.pH(this.JSC$10064_queryData_),D="";L!=""&&(D="?"+L);return x+D};
var CjH=function(x){x=wf(x,"md");return!!x&&x!=="0"},GUh=function(x){var L=[],D=(0,_.e1)(function(S){this.JSC$10064_keys_[S]!==void 0&&L.push(S+"="+this.JSC$10064_keys_[S])},x);
CjH(x)?(D("md"),D("k"),D("ck"),D("am"),D("rs"),D("gssmodulesetproto"),D("slk"),D("dti")):(D("sdch"),D("k"),D("ck"),D("am"),D("rt"),"d"in x.JSC$10064_keys_||BZ(x,"d","0"),D("d"),D("exm"),D("excm"),(x.JSC$10064_keys_.excm||x.JSC$10064_keys_.exm)&&L.push("ed=1"),D("im"),D("dg"),D("sm"),wf(x,"br")!="1"&&wf(x,"br")!="0"||D("br"),D("br-d"),wf(x,"rb")=="1"&&D("rb"),wf(x,"zs")!=="0"&&D("zs"),lNG(x)!==""&&D("wt"),D("gssmodulesetproto"),D("ujg"),D("sp"),D("rs"),D("cb"),D("ee"),D("slk"),D("dti"),D("m"));return L.join("/")},
wf=function(x,L){return x.JSC$10064_keys_[L]?x.JSC$10064_keys_[L]:null},BZ=function(x,L,D){D?x.JSC$10064_keys_[L]=D:delete x.JSC$10064_keys_[L]},UwB=function(x,L){x.urlPrefix_=L},wYC=function(x,L){L&&L.length>0?(L.sort(),BZ(x,"exm",L.join(","))):BZ(x,"exm",null)},BEB=function(x,L){L&&L.length>0?(L.sort(),BZ(x,"excm",L.join(","))):BZ(x,"excm",null)},WvA=function(x){return(x=wf(x,"m"))?x.split(","):[]},lNG=function(x){switch(wf(x,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},q2i=function(x,L){var D=Object.keys(L).filter(function(S){return!!Object.keys(L[S]).length}).map(function(S){var Q=Object.keys(L[S]);
Q.length>1&&Q.sort();return S+":"+Q.join(",")});
D.sort();BZ(x,"ee",D.join(";"))},LSp=function(x){var L=wf(x,"ee");
if(!L)return{};x={};L=_.O(L.split(";"));for(var D=L.next();!D.done;D=L.next()){var S=_.O(D.value.split(":"));D=S.next().value;S=S.next().value;x[D]={};S=_.O(S.split(","));for(var Q=S.next();!Q.done;Q=S.next())x[D][Q.value]=!0}return x},A8W=function(x){delete x.JSC$10064_keys_.m;
delete x.JSC$10064_keys_.exm;delete x.JSC$10064_keys_.ed};
Rhd.prototype.clone=function(){var x=new Rhd;x.JSC$10064_keys_=Object.assign({},this.JSC$10064_keys_);x.urlPrefix_=this.urlPrefix_;x.JSC$10064_queryData_=Object.assign({},this.JSC$10064_queryData_);return x};
var DyG=function(x,L){L=L===void 0?!0:L;var D=$wQ(x),S=new Rhd,Q=_.ST(D)[5];_.wk.forEach(r82,function(Z){var y=Q.match("/"+Z+"=([^/]+)");y&&BZ(S,Z,y[1])});
var J="";J=x.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";UwB(S,x.substr(0,x.indexOf(J)+J.length));if(!L)return S;(x=_.ST(D)[6]||null)&&us_(x,function(Z,y){S.JSC$10064_queryData_[Z]=y});
return S},ngh=function(x){x=_.gE($wQ(x));
return x===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(x)?/\/k=/.test(x):!1},$wQ=function(x){return x.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?x.substr(65):x},r82={ROW_KEY:"k",
CSS_ROW_KEY:"ck",MODULES:"m",EXCLUDED_MODULES:"exm",EXCLUDED_CSS_MODULES:"excm",ACTIVE_MODS:"am",MASKED_MODS:"mm",RESPONSE_TYPE:"rt",INCLUDE_DEPS:"d",EXCLUDED_DEPS:"ed",SPEC_VERSION:"sv",DEOBFUSCATION_VERSION:"deob",CALLBACK:"cb",SIGNATURE:"rs",SDCH:"sdch",INSERT_MARKERS:"im",DEPENDENCY_GRAPH:"dg",ENABLE_BROTLI_ENCODING:"br",ENABLE_BROTLI_DICTIONARY_ENCODING:"br-d",ENABLE_RBROTLI_ENCODING:"rb",ZSTD_LEVEL:"zs",WRAP_IN_TRY:"wt",EXTRA_EDGES:"ee",SOURCE_MAP:"sm",METADATA:"md",GSS_MODULE_SET_PROTO:"gssmodulesetproto",
USE_JS_GRAPH_FOR_COMBINED_REQUESTS:"ujg",USE_INSTALL_CSS_PROTO:"sp",SIDELOADING_ROWKEY:"slk",DISABLE_TOGGLES_INIT:"dti"},NEA=RegExp("^loaded_(g|h)?[_\\d]+$");_.WZ=function(x){this.JSC$10076_id_=x;this.opts={}};
_.WZ.prototype.JSC$10078_setLabel=function(x){this.label_=x||void 0;return this};
_.WZ.prototype.addUploadMetadata=function(x,L){var D=this.opts.data||{};D[x]=L;this.opts.data=D;return this};
var iHr=function(x){var L=_.wk.filter(x.opts,function(D){return D!==null});
L=_.wk.isEmpty(L)?null:L;x=[x.JSC$10076_id_,x.label_,L];L=T00(x);return x=x.slice(0,L+1)};
_.WZ.prototype.toString=function(){var x=iHr(this);return"("+_.Bn(x,function(L){return JSON.stringify(L)}).join(",")+")"};
_.WZ.prototype.getId=function(){return this.JSC$10076_id_};
_.WZ.prototype.getOptions=function(){return _.wk.clone(this.opts)};var qo=function(){_.WZ.call(this,"image-search")};
_.p(qo,_.WZ);qo.prototype.setSize=function(x){this.opts.imgsz=x;return this};
qo.prototype.JSC$10078_setLabel=function(x){_.WZ.prototype.JSC$10078_setLabel.call(this,x);return this};
qo.prototype.addUploadMetadata=function(x,L){_.WZ.prototype.addUploadMetadata.call(this,x,L);return this};var Am=function(){_.WZ.call(this,"maps")};
_.p(Am,_.WZ);Am.prototype.setZoom=function(x){this.opts.zoom=x;return this};
Am.prototype.JSC$10078_setLabel=function(x){_.WZ.prototype.JSC$10078_setLabel.call(this,x);return this};
Am.prototype.addUploadMetadata=function(x,L){_.WZ.prototype.addUploadMetadata.call(this,x,L);return this};_.$0=function(){_.WZ.call(this,"photos")};
_.p(_.$0,_.WZ);_.$0.prototype.JSC$10078_setLabel=function(x){_.WZ.prototype.JSC$10078_setLabel.call(this,x);return this};
_.$0.prototype.addUploadMetadata=function(x,L){_.WZ.prototype.addUploadMetadata.call(this,x,L);return this};var rf=function(){_.WZ.call(this,"url")};
_.p(rf,_.WZ);var fNH=function(){var x=new rf;x.opts.type="video";x.opts.site="youtube.com";return x};
rf.prototype.JSC$10078_setLabel=function(x){_.WZ.prototype.JSC$10078_setLabel.call(this,x);return this};
rf.prototype.addUploadMetadata=function(x,L){_.WZ.prototype.addUploadMetadata.call(this,x,L);return this};var No=function(){_.WZ.call(this,"video-search")};
_.p(No,_.WZ);var oQH=function(){var x=new No;x.opts.site="youtube.com";return x};
No.prototype.JSC$10078_setLabel=function(x){_.WZ.prototype.JSC$10078_setLabel.call(this,x);return this};
No.prototype.addUploadMetadata=function(x,L){_.WZ.prototype.addUploadMetadata.call(this,x,L);return this};var aNC=function(){_.WZ.call(this,"web")};
_.p(aNC,_.WZ);aNC.prototype.JSC$10078_setLabel=function(x){_.WZ.prototype.JSC$10078_setLabel.call(this,x);return this};
aNC.prototype.addUploadMetadata=function(x,L){_.WZ.prototype.addUploadMetadata.call(this,x,L);return this};var iJ=function(){this.items_=[];this.opts={}},zhr=function(x){switch(x){case "image-search":return new qo;
case "maps":return new Am;case "photos":return new _.$0;case "url":return new rf;case "video-search":return new No;case "web":return new aNC}return new _.WZ(x)};
iJ.prototype.addView=function(x){this.items_.push(typeof x==="string"?zhr(x):x);return this};
var XY2=function(x){return"("+_.Bn(x.items_,function(L){return L.toString()}).join(",")+")"};
iJ.prototype.toString=function(){return XY2(this)};
iJ.prototype.getViews=function(x,L){L=L===void 0?[]:L;for(var D=this.items_,S=0;S<D.length;S++){var Q=D[S];Q instanceof iJ?Q.getViews(x,L):Q.getId()==x&&L.push(Q)}return L};
iJ.prototype.getOptions=function(){return _.wk.clone(this.opts)};var rb=function(x){this.basePickerUrl_=x||"https://docs.google.com/picker";this.nav_=new iJ};
rb.prototype.nav_=null;rb.prototype.addView=function(x){this.nav_.addView(x);return this};
rb.prototype.getBaseUrl=function(){return this.basePickerUrl_};
rb.prototype.getViews=function(x){return this.nav_.getViews(x)};
_.c8_=function(x,L){x.callback_=L;return x};var nQR=new Map;nQR.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");nQR.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");nQR.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var tTR=new Set;tTR.add("application/vnd.google-apps.kix");tTR.add("application/vnd.google-apps.ritz");tTR.add("application/vnd.google-apps.punch");var EgB=function(x,L,D){var S=D&&_.wy(D,1);D=xgC(D);var Q=x[0].getId();switch(_.BN(Q,2)){case 13:return LNi(x,L,S,D);case 3:return Dgi(x,L,S,D);case 10:return SD_(x,L,S,D);case 27:return SD_(x,L,S,D);case 12:return QER(x,L);case 2:return JEB(x,L,S,D);case 5:return KN2(x,L,S,D);case 9:return OK2(x,L,S,D);case 6:return ZKC(x,L,S,D);case 25:return yEH(x,L,S,D);case 1:return _.bV(x[0],wiH,26)?IA2(x,L,S,D):SD_(x,L,S,D);default:return{}}},ZKC=function(x,L,D,S){x=x.map(function(Q){return{id:Q.getId().getId(),
serviceId:"youtube",name:Q.getName(),description:_.wy(Q,3),type:fr(Q),lastEditedUtc:_.UeQ(_.Mg(Q,_.W2,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:Q.getUrl(),embedUrl:_.wy(Q,13),thumbnails:o2(M_(Q))}});
return{action:L,docs:x,viewToken:S,view:D||"youtube",v2Translated:!0}},JEB=function(x,L,D,S){var Q=x.map(function(J){var Z=J.getId().getId(),y=_.wy(J,7),E=J.getName(),P=fr(J),v=_.UeQ(_.Mg(J,_.W2,12)).getTime(),V=J.getUrl(),h=Number(iPc(J)),H=_.wy(J,3),k=_.wy(J,11),T=o2(M_(J));
var G=_.Mg(J,dG,21);G=_.Ci(G,1);var U=_.Mg(J,dG,21);U=_.wy(U,10);var l=_.wy(J,13);var X=_.Mg(J,dG,21);X=_.Ci(X,9);var f=_.Mg(J,dG,21);f=_.wy(f,11);Z={id:Z,serviceId:"docs",mimeType:y,name:E,type:P,lastEditedUtc:v,url:V,sizeBytes:h,description:H,iconUrl:k,thumbnails:T,isShared:G,downloadUrl:U,embedUrl:l,copyable:X,resourceKey:f};y=_.Mg(J,dG,21);_.Ci(y,12)&&(Z.uploadState="success",Z.isNew=!0);y=_.Mg(J,dG,21);_.bV(y,Z9,3)&&(J=_.Mg(J,dG,21),J=_.Mg(J,Z9,3),_.bV(J,KW,2)&&(y=q4(J.getDuration().getSeconds()),
E=J.getDuration(),E=_.y1(E,2),Z.duration=y+E/1E9),Z.aspectRatio=J.getAspectRatio());return Z});
return{action:L,docs:Q,viewToken:S,view:D||"all",extraUserInputs:MV2(x),v2Translated:!0}},KN2=function(x,L,D,S){x=x.map(function(Q){var J=_.Mg(Q,ffW,15);
J=_.Mg(J,O1,1);pV(Q,10,O1,J);return{id:Q.getId().getId(),serviceId:"web",mimeType:_.wy(Q,7),name:Q.getName(),type:fr(Q),url:Q.getUrl(),description:_.wy(Q,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:o2(M_(Q))}});
return{action:L,docs:x,viewToken:S,view:D||"image-search",v2Translated:!0}},OK2=function(x,L,D,S){x=x.map(function(Q){return{serviceId:"url",
name:M_(Q)[0].getUrl().split("/").pop(),type:fr(Q),mimeType:_.wy(Q,7),url:Q.getUrl(),description:_.wy(Q,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:o2(M_(Q))}});
return{action:L,docs:x,viewToken:S,view:D||"url",v2Translated:!0}},IA2=function(x,L,D,S){x=x.map(function(Q){return{id:Q.getId().getId(),
serviceId:"picasa",name:Q.getName(),type:fr(Q),description:_.wy(Q,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:o2(M_(Q))}});
return{action:L,docs:x,viewToken:S,view:D||"webcam",v2Translated:!0}},SD_=function(x,L,D,S){return{action:L,
docs:x.map(dgR),viewToken:S,view:P7R(D||"upload",x),extraUserInputs:MV2(x),v2Translated:!0}},P7R=function(x,L){return L.some(function(D){var S;
return((S=_.Mg(D,Iw,30))==null?void 0:_.BN(S,3))===9})?x+"/gmailphotos":x},Dgi=function(x,L,D,S){var Q=x.map(function(J){var Z={id:J.getId().getId(),
serviceId:"picasa",mimeType:_.wy(J,7),name:J.getName(),type:fr(J),lastEditedUtc:_.UeQ(_.Mg(J,_.W2,12)).getTime(),url:J.getUrl(),sizeBytes:Number(iPc(J)),description:_.wy(J,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:o2(M_(J)),mediaKey:J.getId().getId(),parentId:_.wy(J,4)},y,E=(y=_.Mg(J,q5h,18))==null?void 0:_.Mg(y,WRG,3);E&&(Z.latitude=U9(E,1),Z.longitude=U9(E,2));var P;J=(P=_.Mg(J,q5h,18))==null?void 0:lV(P,6);P=J!=null?q4(J):void 0;P&&(Z.version=
P);return Z});
return{action:L,docs:Q,viewToken:S,view:D||"photos",extraUserInputs:MV2(x),v2Translated:!0}},LNi=function(x,L,D,S){x=x.map(function(Q){return{id:Q.getId().getId(),
serviceId:"et",name:M_(Q)[0].getUrl().split("/").pop(),description:_.wy(Q,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:o2(M_(Q),"etjpg")}});
return{action:L,docs:x,viewToken:S,view:D||"et",v2Translated:!0}},yEH=function(x,L,D,S){x=x.map(function(Q){var J=Q.getId().getId(),Z=S["2"];
return{id:J,serviceId:Z.type!=="gmail_themes"&&Z.parent==="6226252643674576769"?"picasa":"static_themes",name:Q.getName(),mimeType:_.wy(Q,7),type:fr(Q),description:_.wy(Q,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:Q.getUrl(),embedUrl:Q.getUrl(),thumbnails:o2(M_(Q))}});
return{action:L,docs:x,viewToken:S,view:D||"photos",v2Translated:!0}},QER=function(x,L){x=x.map(function(D){var S=_.Mg(D,B8h,27);
S=_.zg(S,1,_.uq,_.Zb())[0];return{id:D.getId().getId(),serviceId:"contacts",mimeType:_.wy(D,7),name:D.getName(),description:_.wy(D,3),url:"mailto:"+S,thumbnail:[{url:_.wy(D,11)}],email:S}});
return{action:L,docs:x,view:"contacts",v2Translated:!0}},xgC=function(x){if(!x)return{};
var L=_.wy(x,3);L=L&&JSON.parse(L)||{};return{0:_.wy(x,1),1:_.wy(x,2),2:L}},o2=function(x,L){L=L===void 0?"":L;
if(!x.length)return null;L=="etjpg"&&(x=x.filter(function(D){return D.getUrl().includes("w1200-h300")}));
return x.map(function(D){return{url:D.getUrl(),height:D.getHeight(),width:D.getWidth(),type:L}})},MV2=function(x){return{isAttachment:x.some(function(L){return _.Ci(L,31)})}},dgR=function(x){var L,D={id:(L=x.getId())==null?void 0:L.getId(),
serviceId:jE2(x),mimeType:_.wy(x,7),name:x.getName(),type:fr(x),sizeBytes:Number(iPc(x)),description:_.wy(x,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:o2(M_(x)),isNew:!0};if(L=_.Mg(x,Iw,30)){D.dataUrl=_.wy(L,1)||null;a:{var S=_.Mg(x,Iw,30);switch(_.BN(S,3)){case 9:S=_.A9(S,N8C,2,E1);S={remoteRefs:S&&_.wy(S,1)};break a;case 10:case 15:S=_.A9(S,rwi,4,E1);var Q=M_(x);S={photo_id:S&&_.wy(S,1),media_key:x.getId().getId(),media_type:_.BN(x,6)===1?1:2,image_url:Q&&
Q[0].getUrl(),width:Q&&String(Q[0].getWidth()),height:Q&&String(Q[0].getHeight())};break a}S=null}D.uploadMetadata=S;D.uploadId=_.wy(L,9)||null;D.uploadState=vgR(L)||null}(S=L&&_.A9(L,rwi,4,E1))&&(D.id=_.wy(S,1));(S=L&&_.A9(L,iU2,5,E1))&&(D.contentId=_.wy(S,1));(S=L&&_.A9(L,AwW,7,E1))&&(D.contentId=_.wy(S,1));(S=L&&_.A9(L,$eW,6,E1))&&(D.contentId=_.wy(S,1));(L==null?void 0:_.BN(L,3))===1&&(D.mediaKey=x.getId().getId());return D},jE2=function(x){var L;
switch(((L=_.Mg(x,Iw,30))==null?void 0:_.BN(L,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},fr=function(x){switch(_.BN(x,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 _.wy(x,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},vgR=function(x){switch(x==null?void 0:_.BN(x,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 ugd,VV2,h3Q,HKr;_.ggh=function(x,L){var D=L||{};L=D.document||document;var S=_.RN(x).toString(),Q=(new BM(L)).createElement("SCRIPT"),J={script_:Q,timeout_:void 0},Z=new Ox(VV2,J),y=null,E=D.timeout!=null?D.timeout:5E3;E>0&&(y=window.setTimeout(function(){h3Q(Q,!0);Z.errback(new HKr(1,"Timeout reached for loading script "+S))},E),J.timeout_=y);
Q.onload=Q.onreadystatechange=function(){Q.readyState&&Q.readyState!="loaded"&&Q.readyState!="complete"||(h3Q(Q,D.cleanupWhenDone||!1,y),Z.callback(null))};
Q.onerror=function(){h3Q(Q,!0,y);Z.errback(new HKr(0,"Error while loading script "+S))};
J=D.attributes||{};_.wk.extend(J,{type:"text/javascript",charset:"UTF-8"});F3B(Q,J);_.QD(Q,x);ugd(L).appendChild(Q);return Z};
ugd=function(x){var L=bx("HEAD",x);return L&&L.length!==0?L[0]:x.documentElement};
VV2=function(){if(this&&this.script_){var x=this.script_;x&&x.tagName=="SCRIPT"&&h3Q(x,!0,this.timeout_)}};
h3Q=function(x,L,D){D!=null&&_.Qb.clearTimeout(D);x.onload=function(){};
x.onerror=function(){};
x.onreadystatechange=function(){};
L&&window.setTimeout(function(){_.mg(x)},0)};
HKr=function(x,L){var D="Jsloader error (code #"+x+")";L&&(D+=": "+L);_.Dp.call(this,D);this.code=x};
_.E9(HKr,_.Dp);var k3A=_.xI(["https://apis.google.com/js/api.js"]),pWd=_.Pn(k3A),FNG=function(x,L,D){D=D===void 0?{}:D;var S=!1,Q=mg2(x,L,D).then(function(Z){S=!0;return Z}),J=_.ccC(5E3).then(function(){return S?mg2(x,L,D):bKC(L,D).then(function(Z){return YDC(Z,x)})});
return Wo2([Q,J])},mg2=function(x,L,D){D=D===void 0?{}:D;
return sEC(L,D).then(function(S){return YDC(S,x)})},YDC=function(x,L){var D=_.Ow(L,"gapi.")?L.slice(5):L;
return x[D]?_.V0(x[D]):new _.HI(function(S,Q){var J=rG(function(){Q(Error("Ya"))},3E4);
x.load(L,{callback:function(){_.Qb.clearTimeout(J);S(x[D])},
onerror:function(Z){_.Qb.clearTimeout(J);Q(Z)}})})},sEC=function(x,L){L=L===void 0?{}:L;
return x.gapi&&x.gapi.load?_.V0(x.gapi):bKC(x,L)},bKC=function(x,L){L=L===void 0?{}:L;
return _.ggh(pWd,{document:x.document,attributes:L}).then(function(){return x.gapi})},Ttr=function(){};
Ttr.prototype.load=function(x,L,D){L=L===void 0?window:L;D=D===void 0?{}:D;var S=Date.now();return FNG(x,L,D).then(function(Q){var J=Date.now();return{library:Q,loadStartMs:S,loadEndMs:J}},function(Q){throw Q instanceof Error?Q:Error(String(Q));
})};var ggp=function(){_.Te.call(this);this.gapiLoader_=new Ttr;this.origin_=null;this.gapiPickerIframeResolver_=_.xe();this.gapiIframesResolver_=_.xe();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.p(ggp,_.Te);var e3A=function(x,L){var D=D===void 0?{}:D;var S=_.o1("gapi.iframes",L);return S?(x=Date.now(),_.V0({library:S,loadStartMs:x,loadEndMs:x})):x.gapiLoader_.load("gapi.iframes",L,D)},R3B=function(x,L,D,S,Q,J){var Z=!1;
Z=Z===void 0?!1:Z;e3A(x,qp(L.ownerDocument)).then(function(y){var E=y.library;x.gapiIframesResolver_.resolve(E);y=x.gapiPickerIframeResolver_;var P=y.resolve,v=Z;v=v===void 0?!1:v;var V={};V["host-message-handler"]=D;x.hostMessageHandlerInternal_=V;var h=_.ze(S);h=_.ze(h);h=_.vZ(_.ju(_.PZ(new _.Dg,h.scheme_),h.JSC$10036_domain_),h.JSC$10036_port_).toString();x.origin_=h;h=(new z12).setUrl(S);h.JSC$10051_obj_.where=L;h.JSC$10051_obj_.allowPost=v;h.JSC$10051_obj_.messageHandlers=V;v=_.o1("makeWhiteListIframesFilter",
E)([x.origin_]);h.JSC$10051_obj_.messageHandlersFilter=v;Q!=null&&(h.JSC$10051_obj_.id=Q);J!=null&&(h.JSC$10051_obj_.rpctoken=J);v=aaG(h);v.JSC$10048_obj_.style={display:"block","min-width":"100%",width:"1px"};v.JSC$10048_obj_.height="100%";aaG(h).value().allow="camera 'src' "+x.origin_;E=E.getContext().openChild(h.value());P.call(y,E)},function(y){x.gapiIframesResolver_.reject(y);
x.gapiPickerIframeResolver_.reject(y)});
return x.gapiPickerIframeResolver_.promise},G3i=function(x,L){return _.AR([x.gapiIframesResolver_.promise,
x.gapiPickerIframeResolver_.promise]).then(function(D){var S=_.O(D);D=S.next().value;return(S=S.next().value)?S.send("picker-message-handler",L,void 0,_.o1("makeWhiteListIframesFilter",D)([x.origin_])):_.Bp(Error("Za"))})};
ggp.prototype.disposeInternal=function(){C7d(this);_.Te.prototype.disposeInternal.call(this)};
var C7d=function(x){x.gapiPickerIframeResolver_.promise.then(function(L){L&&(L.unregister("host-message-handler"),delete x.hostMessageHandlerInternal_["host-message-handler"])})};var lA2=function(){this.JSC$10138_nextId=0};var wWQ=function(x,L){switch(x.action){case "select-contacts":x=UgH(x.contacts);break;case "visibility":x=x.visible;var D=new Vt;x=_.ry(D,1,7).setVisible(x);D={};D["iframe-command"]=x.serialize();x=D;break;default:x=null}return x?G3i(L,x):_.V0()},UgH=function(x){if(!x||x.length==0)return null;
var L=new Vt;_.ry(L,1,11);var D=new lA2;x.forEach(function(S){if(S.email){var Q=new RM;Q=_.Xm(Q,2,S.name?S.name:S.email);var J=new B8h;S=_.$q0(J,1,_.VW,S.email,_.uq);S=_.mR(Q,27,S);Q=new lfH;J=":"+(D.JSC$10138_nextId++).toString(36);Q=_.Xm(Q,1,J);Q=_.ry(Q,2,12);S=_.mR(S,1,Q)}else S=null;S&&pV(L,7,RM,S)});
x={};x["iframe-command"]=L.serialize();return x};_.Bth=function(){if(Jjf){var x=/Windows NT ([0-9.]+)/;return(x=x.exec(_.hG()))?x[1]:"0"}return _.QJw?(x=/1[0|1][_.][0-9_.]+/,(x=x.exec(_.hG()))?x[0].replace(/_/g,"."):"10"):lw4?(x=/Android\s+([^\);]+)(\)|;)/,(x=x.exec(_.hG()))?x[1]:""):OPf||ZPb||yjb?(x=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(x=x.exec(_.hG()))?x[1].replace(/_/g,"."):""):""}();var a2;a2=function(x){return(x=x.exec(_.hG()))?x[1]:""};
_.WNW=function(){if(_.HN)return a2(/Firefox\/([0-9.]+)/);if(_.j_||Q5||L0G)return v4s;if(_.uV){if(_.GN()||_.b3O()){var x=a2(/CriOS\/([0-9.]+)/);if(x)return x}return a2(/Chrome\/([0-9.]+)/)}if(_.ij&&!_.GN())return a2(/Version\/([0-9.]+)/);if(i7n||foG){if(x=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.hG()))return x[1]+"."+x[2]}else if(g4b)return(x=a2(/Android\s+([0-9.]+)/))?x:a2(/Version\/([0-9.]+)/);return""}();var qD_=function(){};
_.y6(qD_);qD_.prototype.nextId_=0;_.zp=function(x){return":"+(x.nextId_++).toString(36)};var XN=function(x){_.Bc.call(this);this.JSC$10146_dom_=x||Tj();this.JSC$10146_id_=null;this.inDocument_=!1;this.JSC$10146_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.E9(XN,_.Bc);XN.prototype.idGenerator_=qD_.getInstance();XN.prototype.getId=function(){return this.JSC$10146_id_||(this.JSC$10146_id_=_.zp(this.idGenerator_))};
XN.prototype.getElement=function(){return this.JSC$10146_element_};
var cZ=function(x){x.googUiComponentHandler_||(x.googUiComponentHandler_=new _.Mu(x));return x.googUiComponentHandler_},AEh=function(x,L){if(x==L)throw Error("$a");
var D;if(D=L&&x.parent_&&x.JSC$10146_id_){D=x.parent_;var S=x.JSC$10146_id_;D=D.childIndex_&&S?_.wk.get(D.childIndex_,S)||null:null}if(D&&x.parent_!=L)throw Error("$a");x.parent_=L;XN.superClass_.setParentEventTarget.call(x,L)};
XN.prototype.setParentEventTarget=function(x){if(this.parent_&&this.parent_!=x)throw Error("ab");XN.superClass_.setParentEventTarget.call(this,x)};
XN.prototype.JSC$10148_createDom=function(){this.JSC$10146_element_=this.JSC$10146_dom_.createElement("DIV")};
XN.prototype.render=function(x){$gi(this,x)};
var $gi=function(x,L,D){if(x.inDocument_)throw Error("bb");x.JSC$10146_element_||x.JSC$10148_createDom();L?L.insertBefore(x.JSC$10146_element_,D||null):x.JSC$10146_dom_.JSC$9330_document_.body.appendChild(x.JSC$10146_element_);x.parent_&&!x.parent_.inDocument_||x.enterDocument()};
_.K=XN.prototype;_.K.decorate=function(x){if(this.inDocument_)throw Error("bb");if(x&&this.canDecorate(x)){this.wasDecorated_=!0;var L=_.Ac(x);this.JSC$10146_dom_&&this.JSC$10146_dom_.JSC$9330_document_==L||(this.JSC$10146_dom_=Tj(x));this.decorateInternal(x);this.enterDocument()}else throw Error("cb");};
_.K.canDecorate=function(){return!0};
_.K.decorateInternal=function(x){this.JSC$10146_element_=x};
_.K.enterDocument=function(){this.inDocument_=!0;rE_(this,function(x){!x.inDocument_&&x.getElement()&&x.enterDocument()})};
_.K.exitDocument=function(){rE_(this,function(x){x.inDocument_&&x.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.K.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);rE_(this,function(x){x.dispose()});
!this.wasDecorated_&&this.JSC$10146_element_&&_.mg(this.JSC$10146_element_);this.parent_=this.model_=this.JSC$10146_element_=this.childIndex_=this.children_=null;XN.superClass_.disposeInternal.call(this)};
_.K.getModel=function(){return this.model_};
_.K.addChild=function(x,L){var D=this.children_?this.children_.length:0;if(x.inDocument_&&(L||!this.inDocument_))throw Error("bb");if(D<0||D>(this.children_?this.children_.length:0))throw Error("db");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);x.parent_==this?(_.wk.set(this.childIndex_,x.getId(),x),_.$f(this.children_,x)):_.wk.add(this.childIndex_,x.getId(),x);AEh(x,this);_.Csn(this.children_,D,0,x);x.inDocument_&&this.inDocument_&&x.parent_==this?(L=this.getContentElement(),
(L.childNodes[D]||null)!=x.getElement()&&(x.getElement().parentElement==L&&L.removeChild(x.getElement()),D=L.childNodes[D]||null,L.insertBefore(x.getElement(),D))):L?(this.JSC$10146_element_||this.JSC$10148_createDom(),D=this.children_?this.children_[D+1]||null:null,$gi(x,this.getContentElement(),D?D.JSC$10146_element_:null)):this.inDocument_&&!x.inDocument_&&x.JSC$10146_element_&&x.JSC$10146_element_.parentNode&&x.JSC$10146_element_.parentNode.nodeType==1&&x.enterDocument()};
_.K.getContentElement=function(){return this.JSC$10146_element_};
var rE_=function(x,L){x.children_&&x.children_.forEach(L,void 0)};
XN.prototype.removeChild=function(x,L){if(x){var D=typeof x==="string"?x:x.getId();x=this.childIndex_&&D?_.wk.get(this.childIndex_,D)||null:null;D&&x&&(_.wk.remove(this.childIndex_,D),_.$f(this.children_,x),L&&(x.exitDocument(),x.JSC$10146_element_&&_.mg(x.JSC$10146_element_)),AEh(x,null))}if(!x)throw Error("eb");return x};_.E9(zhG,aN4);_.E9(XYh,aN4);var Ntd;_.wk.createSet("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var iKW=function(x,L){L?x.setAttribute("role",L):x.removeAttribute("role")},nr=function(x,L,D){Array.isArray(D)&&(D=D.join(" "));
var S="aria-"+L;D===""||D==void 0?(Ntd||(D={},Ntd=(D.atomic=!1,D.autocomplete="none",D.dropeffect="none",D.haspopup=!1,D.live="off",D.multiline=!1,D.multiselectable=!1,D.orientation="vertical",D.readonly=!1,D.relevant="additions text",D.required=!1,D.sort="none",D.busy=!1,D.disabled=!1,D.hidden=!1,D.invalid="false",D)),D=Ntd,L in D?x.setAttribute(S,D[L]):x.removeAttribute(S)):x.setAttribute(S,D)};var fA2;_.tm=function(x,L,D){_.Bc.call(this);this.target=x;this.handle=L||x;this.limits=D||new zC(NaN,NaN,NaN,NaN);this.JSC$10151_document_=_.Ac(x);this.JSC$10151_eventHandler_=new _.Mu(this);_.V1(this,this.JSC$10151_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;_.Uk(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=fA2};
_.E9(_.tm,_.Bc);fA2=_.Qb.document&&_.Qb.document.documentElement&&!!_.Qb.document.documentElement.setCapture&&!!_.Qb.document.releaseCapture;_.ogH=function(x,L){x.hysteresisDistanceSquared_=Math.pow(L,2)};
_.K=_.tm.prototype;_.K.setEnabled=function(x){this.enabled_=x};
_.K.disposeInternal=function(){_.tm.superClass_.disposeInternal.call(this);_.wG(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$10151_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10151_document_.releaseCapture();this.handle=this.target=null};
_.K.startDrag=function(x){var L=x.type=="mousedown";if(!this.enabled_||this.dragging_||L&&(!x.isButton(0)||_.QJw&&x.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new xo("start",this,x.clientX,x.clientY,x)))this.dragging_=!0,L&&x.preventDefault();else return;else L&&x.preventDefault();L=this.JSC$10151_document_;var D=L.documentElement,S=!this.useSetCapture_;this.JSC$10151_eventHandler_.listen(L,["touchmove","mousemove"],this.handleMove_,
{capture:S,passive:!1});this.JSC$10151_eventHandler_.listen(L,["touchend","mouseup"],this.endDrag,S);this.useSetCapture_?(D.setCapture(!1),this.JSC$10151_eventHandler_.listen(D,"losecapture",this.endDrag)):this.JSC$10151_eventHandler_.listen(qp(L),"blur",this.endDrag);this.scrollTarget_&&this.JSC$10151_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,S);this.clientX=this.startX=x.clientX;this.clientY=this.startY=x.clientY;this.screenX=x.screenX;this.screenY=x.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=FZ(Tj(this.JSC$10151_document_))}};
_.K.endDrag=function(x,L){this.JSC$10151_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10151_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new xo("end",this,x.clientX,x.clientY,x,aAR(this,this.deltaX),z32(this,this.deltaY),L||x.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.K.handleMove_=function(x){if(this.enabled_){var L=x.clientX-this.clientX,D=x.clientY-this.clientY;this.clientX=x.clientX;this.clientY=x.clientY;this.screenX=x.screenX;this.screenY=x.screenY;if(!this.dragging_){var S=this.startX-this.clientX,Q=this.startY-this.clientY;if(S*S+Q*Q>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new xo("start",this,x.clientX,x.clientY,x)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(x);return}}D=XWQ(this,L,D);L=D.x;D=D.y;this.dragging_&&this.dispatchEvent(new xo("beforedrag",
this,x.clientX,x.clientY,x,L,D))&&(cEA(this,x,L,D),x.preventDefault())}};
var XWQ=function(x,L,D){var S=FZ(Tj(x.JSC$10151_document_));L+=S.x-x.pageScroll.x;D+=S.y-x.pageScroll.y;x.pageScroll=S;x.deltaX+=L;x.deltaY+=D;return new _.Wn(aAR(x,x.deltaX),z32(x,x.deltaY))};
_.tm.prototype.onScroll_=function(x){var L=XWQ(this,0,0);x.clientX=this.clientX;x.clientY=this.clientY;cEA(this,x,L.x,L.y)};
var cEA=function(x,L,D,S){x.target.style.left=D+"px";x.target.style.top=S+"px";x.dispatchEvent(new xo("drag",x,L.clientX,L.clientY,L,D,S))},aAR=function(x,L){var D=x.limits;
x=isNaN(D.left)?null:D.left;D=isNaN(D.width)?0:D.width;return Math.min(x!=null?x+D:Infinity,Math.max(x!=null?x:-Infinity,L))},z32=function(x,L){var D=x.limits;
x=isNaN(D.top)?null:D.top;D=isNaN(D.height)?0:D.height;return Math.min(x!=null?x+D:Infinity,Math.max(x!=null?x:-Infinity,L))};
_.tm.prototype.isDragging=function(){return this.dragging_};
var xo=function(x,L,D,S,Q,J,Z){_.Gm.call(this,x);this.clientX=D;this.clientY=S;this.browserEvent=Q;this.left=J!==void 0?J:L.deltaX;this.top=Z!==void 0?Z:L.deltaY};
_.E9(xo,_.Gm);var Ld=function(x){this.JSC$10158_map_=new Map;var L=arguments.length;if(L>1){if(L%2)throw Error("ma");for(var D=0;D<L;D+=2)this.set(arguments[D],arguments[D+1])}else x&&this.addAll(x)};
_.K=Ld.prototype;_.K.getCount=function(){return this.JSC$10158_map_.size};
_.K.getValues=function(){return Array.from(this.JSC$10158_map_.values())};
_.K.getKeys=function(){return Array.from(this.JSC$10158_map_.keys())};
_.K.containsKey=function(x){return this.JSC$10158_map_.has(x)};
_.K.containsValue=function(x){return this.getValues().some(function(L){return L==x})};
_.K.equals=function(x,L){var D=this;L=L===void 0?function(S,Q){return S===Q}:L;
return this===x?!0:this.JSC$10158_map_.size!=x.getCount()?!1:this.getKeys().every(function(S){return L(D.JSC$10158_map_.get(S),x.get(S))})};
_.K.isEmpty=function(){return this.JSC$10158_map_.size==0};
_.K.clear=function(){this.JSC$10158_map_.clear()};
_.K.remove=function(x){return this.JSC$10158_map_.delete(x)};
_.K.get=function(x,L){return this.JSC$10158_map_.has(x)?this.JSC$10158_map_.get(x):L};
_.K.set=function(x,L){this.JSC$10158_map_.set(x,L);return this};
_.K.addAll=function(x){if(x instanceof Ld){x=_.O(x.JSC$10158_map_);for(var L=x.next();!L.done;L=x.next()){var D=_.O(L.value);L=D.next().value;D=D.next().value;this.JSC$10158_map_.set(L,D)}}else if(x)for(x=_.O(Object.entries(x)),L=x.next();!L.done;L=x.next())D=_.O(L.value),L=D.next().value,D=D.next().value,this.JSC$10158_map_.set(L,D)};
_.K.forEach=function(x,L){var D=this;L=L===void 0?this:L;this.JSC$10158_map_.forEach(function(S,Q){return x.call(L,S,Q,D)})};
_.K.clone=function(){return new Ld(this)};(function(){for(var x=["ms","moz","webkit","o"],L,D=0;L=x[D]&&!_.Qb.requestAnimationFrame;++D)_.Qb.requestAnimationFrame=_.Qb[L+"RequestAnimationFrame"],_.Qb.cancelAnimationFrame=_.Qb[L+"CancelAnimationFrame"]||_.Qb[L+"CancelRequestAnimationFrame"];if(!_.Qb.requestAnimationFrame){var S=0;_.Qb.requestAnimationFrame=function(Q){var J=(new Date).getTime(),Z=Math.max(0,16-(J-S));S=J+Z;return _.Qb.setTimeout(function(){Q(J+Z)},Z)};
_.Qb.cancelAnimationFrame||(_.Qb.cancelAnimationFrame=function(Q){clearTimeout(Q)})}})();
var ng2=[[],[]],tVd=0,xyi=!1,LSh=0,ShW=function(x,L){var D=LSh++,S={measureTask:{id:D,fn:x.measure,context:L},mutateTask:{id:D,fn:x.mutate,context:L},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(S.args||(S.args=[]),S.args.length=0,S.args.push.apply(S.args,arguments),S.args.push(S.state)):S.args&&S.args.length!=0?(S.args[0]=S.state,S.args.length=1):S.args=[S.state];S.isScheduled||(S.isScheduled=!0,ng2[tVd].push(S));xyi||(xyi=!0,window.requestAnimationFrame(Dyr))}},Dyr=
function(){xyi=!1;
var x=ng2[tVd],L=x.length;tVd=(tVd+1)%2;for(var D,S=0;S<L;++S){D=x[S];var Q=D.measureTask;D.isScheduled=!1;Q.fn&&Q.fn.apply(Q.context,D.args)}for(S=0;S<L;++S)D=x[S],Q=D.mutateTask,D.isScheduled=!1,Q.fn&&Q.fn.apply(Q.context,D.args),D.state={};x.length=0};var QRd=_.xI(["about:blank"]),J7h=_.xI(["javascript:undefined"]),KSh=_.Pn(QRd);_.RN(KSh);var OVG=_.Pn(J7h);_.RN(OVG);var DB=function(x){_.Bc.call(this);this.JSC$10164_element_=x;this.listenKeyIn_=_.Uk(this.JSC$10164_element_,"focus",this,!0);this.listenKeyOut_=_.Uk(this.JSC$10164_element_,"blur",this,!0)};
_.E9(DB,_.Bc);DB.prototype.handleEvent=function(x){var L=new _.CW(x.event_);L.type=x.type=="focusin"||x.type=="focus"?"focusin":"focusout";this.dispatchEvent(L)};
DB.prototype.disposeInternal=function(){DB.superClass_.disposeInternal.call(this);G$(this.listenKeyIn_);G$(this.listenKeyOut_);delete this.JSC$10164_element_};var ZVr=function(x,L){this.JSC$10167_element_=x;this.JSC$10167_dom_=L};var Sp=function(x,L){XN.call(this,L);this.useIframeMask_=!!x;this.lastFocus_=null;this.resizeBackgroundTask_=ShW({mutate:this.resizeBackground_},this);ShW({mutate:this.updateModalAndBackground_},this)};
_.E9(Sp,XN);_.K=Sp.prototype;_.K.focusHandler_=null;_.K.visible_=!1;_.K.bgEl_=null;_.K.bgIframeEl_=null;_.K.tabCatcherElement_=null;_.K.backwardTabWrapInProgress_=!1;_.K.getCssClass=function(){return"goog-modalpopup"};
_.K.getBackgroundElement=function(){return this.bgEl_};
_.K.JSC$10148_createDom=function(){Sp.superClass_.JSC$10148_createDom.call(this);var x=this.getElement(),L=j0(this.getCssClass()).split(" ");Jm(x,L);x.tabIndex=0;_.Lq(x,!1);y7r(this);I8Q(this)};
var y7r=function(x){if(x.useIframeMask_&&!x.bgIframeEl_){var L=x.JSC$10146_dom_.JSC$9332_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.ci(L,KSh);x.bgIframeEl_=L;x.bgIframeEl_.className=x.getCssClass()+"-bg";_.Lq(x.bgIframeEl_,!1);S5H(x.bgIframeEl_,0)}x.bgEl_||(x.bgEl_=x.JSC$10146_dom_.JSC$9332_createDom("DIV",x.getCssClass()+"-bg"),_.Lq(x.bgEl_,!1))},I8Q=function(x){x.tabCatcherElement_||(x.tabCatcherElement_=x.JSC$10146_dom_.createElement("SPAN"),_.Lq(x.tabCatcherElement_,
!1),x.tabCatcherElement_.tabIndex=0,x.tabCatcherElement_.style.position="absolute")};
_.K=Sp.prototype;_.K.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.K.canDecorate=function(x){return!!x&&x.tagName=="DIV"};
_.K.decorateInternal=function(x){Sp.superClass_.decorateInternal.call(this,x);x=j0(this.getCssClass()).split(" ");Jm(this.getElement(),x);y7r(this);I8Q(this);this.getElement().tabIndex=0;_.Lq(this.getElement(),!1)};
_.K.enterDocument=function(){this.bgIframeEl_&&_.iW(this.bgIframeEl_,this.getElement());_.iW(this.bgEl_,this.getElement());Sp.superClass_.enterDocument.call(this);_.ft(this.tabCatcherElement_,this.getElement());this.focusHandler_=new DB(this.JSC$10146_dom_.JSC$9330_document_);cZ(this).listen(this.focusHandler_,"focusin",this.onFocus);EZQ(this,!1)};
_.K.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.Q1(this.focusHandler_);Sp.superClass_.exitDocument.call(this);_.mg(this.bgIframeEl_);_.mg(this.bgEl_);_.mg(this.tabCatcherElement_)};
_.K.setVisible=function(x){if(x!=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_&&EZQ(this,x),x){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$10146_dom_.JSC$9330_document_.activeElement}catch(Q){}this.updateModalAndBackground_();cZ(this).listen(this.JSC$10146_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$10146_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);M72(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)R6(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){cZ(this).unlisten(this.JSC$10146_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$10146_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)R6(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var L=this.JSC$10146_dom_,D=L.JSC$9330_document_.body,S=L.JSC$9330_document_.activeElement||D;if(!this.lastFocus_||this.lastFocus_==D){this.lastFocus_=null;break a}(S==D||L.contains(this.getElement(),S))&&this.lastFocus_.focus()}catch(Q){}this.lastFocus_=
null}}};
var EZQ=function(x,L){x.modalAriaVisibilityHelper_||(x.modalAriaVisibilityHelper_=new ZVr(x.JSC$10146_element_,x.JSC$10146_dom_));x=x.modalAriaVisibilityHelper_;if(L){x.hiddenElements_||(x.hiddenElements_=[]);L=x.JSC$10167_dom_.getChildren(x.JSC$10167_dom_.JSC$9330_document_.body);for(var D=0;D<L.length;D++){var S=L[D],Q;if(Q=S!=x.JSC$10167_element_)Q=S.getAttribute("aria-hidden"),Q=!(Q==null||Q==void 0?0:String(Q));Q&&(nr(S,"hidden",!0),x.hiddenElements_.push(S))}}else if(x.hiddenElements_){for(L=
0;L<x.hiddenElements_.length;L++)x.hiddenElements_[L].removeAttribute("aria-hidden");x.hiddenElements_=null}};
Sp.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var M72=function(x,L){x.bgIframeEl_&&_.Lq(x.bgIframeEl_,L);x.bgEl_&&_.Lq(x.bgEl_,L);_.Lq(x.getElement(),L);_.Lq(x.tabCatcherElement_,L)};
_.K=Sp.prototype;_.K.onShow=function(){this.dispatchEvent("show")};
_.K.onHide=function(){M72(this,!1);this.dispatchEvent("hide")};
_.K.isVisible=function(){return this.visible_};
_.K.focus=function(){this.focusElement_()};
_.K.resizeBackground_=function(){this.bgIframeEl_&&_.Lq(this.bgIframeEl_,!1);this.bgEl_&&_.Lq(this.bgEl_,!1);var x=this.JSC$10146_dom_.JSC$9330_document_;var L=_.YR(qp(this.JSC$10146_dom_.JSC$9330_document_)||window);var D=Math.max(L.width,Math.max(x.body.scrollWidth,x.documentElement.scrollWidth));x=Math.max(L.height,Math.max(x.body.scrollHeight,x.documentElement.scrollHeight));this.bgIframeEl_&&(_.Lq(this.bgIframeEl_,!0),_.tG2(this.bgIframeEl_,D,x));this.bgEl_&&(_.Lq(this.bgEl_,!0),_.tG2(this.bgEl_,
D,x))};
_.K.reposition=function(){var x;if(_.nXi(this.getElement())=="fixed")var L=x=0;else L=FZ(this.JSC$10146_dom_),x=L.x,L=L.y;var D=LRH(this.getElement());var S=_.YR(qp(this.JSC$10146_dom_.JSC$9330_document_)||window);x=Math.max(x+S.width/2-D.width/2,0);L=Math.max(L+S.height/2-D.height/2,0);nt(this.getElement(),x,L);nt(this.tabCatcherElement_,x,L)};
_.K.onFocus=function(x){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():x.target==this.tabCatcherElement_&&rG(this.focusElement_,0,this)};
_.K.focusElement_=function(){try{this.getElement().focus()}catch(x){}};
_.K.disposeInternal=function(){_.Q1(this.popupShowTransition_);this.popupShowTransition_=null;_.Q1(this.popupHideTransition_);this.popupHideTransition_=null;_.Q1(this.bgShowTransition_);this.bgShowTransition_=null;_.Q1(this.bgHideTransition_);this.bgHideTransition_=null;Sp.superClass_.disposeInternal.call(this)};var Ax=function(x,L,D){Sp.call(this,L,D);this.JSC$10177_class_=x||"modal-dialog";this.buttons_=(new QV).addButton(dyh,!0).addButton(PYW,!1,!0)};
_.E9(Ax,Sp);_.K=Ax.prototype;_.K.escapeToCancel_=!0;_.K.hasTitleCloseButton_=!0;_.K.modal_=!0;_.K.draggable_=!0;_.K.backgroundElementOpacity_=.5;_.K.title_="";_.K.JSC$10179_dragger_=null;_.K.JSC$10179_disposeOnHide_=!1;_.K.titleEl_=null;_.K.titleTextEl_=null;_.K.titleTextId_=null;_.K.titleCloseEl_=null;_.K.contentEl_=null;_.K.buttonEl_=null;_.K.getCssClass=function(){return this.JSC$10177_class_};
_.K.setTitle=function(x){this.title_=x;this.titleTextEl_&&_.aa(this.titleTextEl_,x)};
_.K.getTitle=function(){return this.title_};
_.K.getContent=function(){return""};
_.K.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var jRC=function(x){x.getElement()||x.render();return x.getElement()};
Ax.prototype.getBackgroundElement=function(){this.getElement()||this.render();return Ax.superClass_.getBackgroundElement.call(this)};
var vZd=function(x,L){x.backgroundElementOpacity_=L;x.getElement()&&(L=x.getBackgroundElement())&&S5H(L,x.backgroundElementOpacity_)};
Ax.prototype.setDraggable=function(x){this.draggable_=x;V7_(this,x&&this.inDocument_)};
Ax.prototype.handleDrag=function(){};
var V7_=function(x,L){var D=j0(x.JSC$10177_class_+"-title-draggable").split(" ");x.getElement()&&(L?Jm(x.titleEl_,D):iq2(x.titleEl_,D));L&&!x.JSC$10179_dragger_?(L=new _.tm(x.getElement(),x.titleEl_),x.JSC$10179_dragger_=L,Jm(x.titleEl_,D),_.Uk(x.JSC$10179_dragger_,"start",x.setDraggerLimits_,!1,x),_.Uk(x.JSC$10179_dragger_,"drag",x.handleDrag,!1,x)):!L&&x.JSC$10179_dragger_&&(x.JSC$10179_dragger_.dispose(),x.JSC$10179_dragger_=null)};
_.K=Ax.prototype;
_.K.JSC$10148_createDom=function(){Ax.superClass_.JSC$10148_createDom.call(this);var x=this.getElement(),L=this.JSC$10146_dom_;this.titleTextId_=this.getId();var D=this.getId()+".contentEl";this.titleEl_=L.JSC$9332_createDom("DIV",this.JSC$10177_class_+"-title",this.titleTextEl_=L.JSC$9332_createDom("SPAN",{className:this.JSC$10177_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=L.JSC$9332_createDom("SPAN",this.JSC$10177_class_+"-title-close"));Ggd(x,this.titleEl_,this.contentEl_=
L.JSC$9332_createDom("DIV",{className:this.JSC$10177_class_+"-content",id:D}),this.buttonEl_=L.JSC$9332_createDom("DIV",this.JSC$10177_class_+"-buttons"));iKW(this.titleTextEl_,"heading");iKW(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;nr(this.titleCloseEl_,"label","Close");iKW(x,"dialog");nr(x,"labelledby",this.titleTextId_||"");_.Lq(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(x=this.buttons_,x.JSC$10180_element_=this.buttonEl_,x.render());_.Lq(this.buttonEl_,!!this.buttons_);
vZd(this,this.backgroundElementOpacity_)};
_.K.decorateInternal=function(x){Ax.superClass_.decorateInternal.call(this,x);x=this.getElement();var L=this.JSC$10177_class_+"-content";this.contentEl_=WM(document,null,L,x)[0];this.contentEl_||(this.contentEl_=this.JSC$10146_dom_.JSC$9332_createDom("DIV",L),x.appendChild(this.contentEl_));L=this.JSC$10177_class_+"-title";var D=this.JSC$10177_class_+"-title-text",S=this.JSC$10177_class_+"-title-close";(this.titleEl_=WM(document,null,L,x)[0])?(this.titleTextEl_=WM(document,null,D,this.titleEl_)[0],
this.titleCloseEl_=WM(document,null,S,this.titleEl_)[0]):(this.titleEl_=this.JSC$10146_dom_.JSC$9332_createDom("DIV",L),x.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=oX2(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.Ao("SPAN",{className:D,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;nr(x,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=
this.JSC$10146_dom_.JSC$9332_createDom("SPAN",S),this.titleEl_.appendChild(this.titleCloseEl_));_.Lq(this.titleCloseEl_,this.hasTitleCloseButton_);L=this.JSC$10177_class_+"-buttons";(this.buttonEl_=WM(document,null,L,x)[0])?(this.buttons_=new QV(this.JSC$10146_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$10146_dom_.JSC$9332_createDom("DIV",L),x.appendChild(this.buttonEl_),this.buttons_&&(x=this.buttons_,x.JSC$10180_element_=this.buttonEl_,x.render()),_.Lq(this.buttonEl_,
!!this.buttons_));vZd(this,this.backgroundElementOpacity_)};
_.K.enterDocument=function(){Ax.superClass_.enterDocument.call(this);cZ(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);cZ(this).listen(this.buttonEl_,"click",this.onButtonClick_);V7_(this,this.draggable_);cZ(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var x=this.getElement();iKW(x,"dialog");this.titleTextEl_.id!==""&&nr(x,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){x=this.JSC$10146_dom_;
var L=this.getBackgroundElement();x.removeNode(this.bgIframeEl_);x.removeNode(L)}this.isVisible()&&EZQ(this,!1)}};
_.K.exitDocument=function(){this.isVisible()&&this.setVisible(!1);V7_(this,!1);Ax.superClass_.exitDocument.call(this)};
_.K.setVisible=function(x){x!=this.isVisible()&&(this.inDocument_||this.render(),Ax.superClass_.setVisible.call(this,x))};
_.K.onShow=function(){Ax.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.K.onHide=function(){Ax.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$10179_disposeOnHide_&&this.dispose()};
_.K.setDraggerLimits_=function(){var x=this.JSC$10146_dom_.JSC$9330_document_,L=_.YR(qp(x)||window),D=Math.max(x.body.scrollWidth,L.width);x=Math.max(x.body.scrollHeight,L.height);var S=LRH(this.getElement());_.nXi(this.getElement())=="fixed"?this.JSC$10179_dragger_.limits=new zC(0,0,Math.max(0,L.width-S.width),Math.max(0,L.height-S.height)):this.JSC$10179_dragger_.limits=new zC(0,0,D-S.width,x-S.height)};
_.K.onTitleCloseClick_=function(){hFQ(this)};
var hFQ=function(x){if(x.hasTitleCloseButton_){var L=x.buttons_,D=L&&L.cancelButton_;D?(L=L.get(D),x.dispatchEvent(new JS(D,L))&&x.setVisible(!1)):x.setVisible(!1)}},HVG=function(x){x.hasTitleCloseButton_=!1;
x.titleCloseEl_&&_.Lq(x.titleCloseEl_,x.hasTitleCloseButton_)};
Ax.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;Ax.superClass_.disposeInternal.call(this)};
Ax.prototype.onButtonClick_=function(x){a:{for(x=x.target;x!=null&&x!=this.buttonEl_;){if(x.tagName=="BUTTON")break a;x=x.parentNode}x=null}if(x&&!x.disabled){x=x.name;var L=this.buttons_.get(x);this.dispatchEvent(new JS(x,L))&&this.setVisible(!1)}};
Ax.prototype.onKey_=function(x){var L=!1,D=!1,S=this.buttons_,Q=x.target;if(x.type=="keydown")if(this.escapeToCancel_&&x.keyCode==27){var J=S&&S.cancelButton_;Q=Q.tagName=="SELECT"&&!Q.disabled;J&&!Q?(D=!0,L=S.get(J),L=this.dispatchEvent(new JS(J,L))):Q||(L=!0)}else{if(x.keyCode==9&&x.shiftKey&&Q==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(v){}rG(this.resetBackwardTabWrap_,0,this)}}else if(x.keyCode==13){if(Q.tagName=="BUTTON"&&!Q.disabled)J=Q.name;
else if(Q==this.titleCloseEl_)hFQ(this);else if(S){var Z=S.defaultButton_,y;if(y=Z)a:{y=bx("BUTTON",S.JSC$10180_element_);for(var E,P=0;E=y[P];P++)if(E.name==Z||E.id==Z){y=E;break a}y=null}Q=(Q.tagName=="TEXTAREA"||Q.tagName=="SELECT"||Q.tagName=="A")&&!Q.disabled;!y||y.disabled||Q||(J=Z)}J&&S&&(D=!0,L=this.dispatchEvent(new JS(J,String(S.get(J)))))}else Q!=this.titleCloseEl_||x.keyCode!=32&&x.key!=" "||hFQ(this);if(L||D)x.stopPropagation(),x.preventDefault();L&&this.setVisible(!1)};
var JS=function(x,L){this.type="dialogselect";this.key=x;this.caption=L};
_.E9(JS,_.Gm);var QV=function(x){Ld.call(this);x||Tj();this.cancelButton_=this.JSC$10180_element_=this.defaultButton_=null};
_.E9(QV,Ld);_.K=QV.prototype;_.K.clear=function(){Ld.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.K.set=function(x,L,D,S){Ld.prototype.set.call(this,x,L);D&&(this.defaultButton_=x);S&&(this.cancelButton_=x);return this};
_.K.addButton=function(x,L,D){return this.set(x.key,x.caption,L,D)};
_.K.render=function(){if(this.JSC$10180_element_){_.JB(this.JSC$10180_element_,bK4);var x=Tj(this.JSC$10180_element_);this.forEach(function(L,D){L=x.JSC$9332_createDom("BUTTON",{name:D},L);D==this.defaultButton_&&(L.className="goog-buttonset-default");this.JSC$10180_element_.appendChild(L)},this)}};
_.K.decorate=function(x){if(x&&x.nodeType==1){this.JSC$10180_element_=x;x=bx("BUTTON",this.JSC$10180_element_);for(var L,D,S,Q=0;L=x[Q];Q++)if(D=L.name||L.id,S=oX2(L)||L.value,D){var J=Q==0;this.set(D,S,J,L.name=="cancel");J&&_.OI(L,"goog-buttonset-default")}}};
_.K.getElement=function(){return this.JSC$10180_element_};
var dyh={key:"ok",caption:"OK"},PYW={key:"cancel",caption:"Cancel"},udC={key:"yes",caption:"Yes"},gZA={key:"no",caption:"No"},kG2={key:"save",caption:"Save"},pIH={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new QV).addButton(dyh,!0,!0),(new QV).addButton(dyh,!0).addButton(PYW,!1,!0),(new QV).addButton(udC,!0).addButton(gZA,!1,!0),(new QV).addButton(udC).addButton(gZA,!0).addButton(PYW,!1,!0),(new QV).addButton(pIH).addButton(kG2).addButton(PYW,!0,!0));_.E9(c8c,Ax);_.E9(nQw,rb);var myd=_.xI(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),bVh=_.xI(["//apis.google.com/js/rpc.js"]),mgh=_.Pn(myd),pWO=_.Pn(bVh),xg4=null;var N4=function(x,L){_.Bc.call(this);this.JSC$10189_element_=x;x=_.D8(this.JSC$10189_element_)?this.JSC$10189_element_:this.JSC$10189_element_?this.JSC$10189_element_.body:null;this.isRtl_=!!x&&_.QNi(x);this.listenKey_=_.Uk(this.JSC$10189_element_,_.vN?"DOMMouseScroll":"mousewheel",this,L)};
_.E9(N4,_.Bc);N4.prototype.handleEvent=function(x){var L=0,D=0,S=x.event_;S.type=="mousewheel"?(x=Yhh(-S.wheelDelta),S.wheelDeltaX!==void 0?(L=Yhh(-S.wheelDeltaX),D=Yhh(-S.wheelDeltaY)):D=x):(x=S.detail,x>100?x=3:x<-100&&(x=-3),S.axis!==void 0&&S.axis===S.HORIZONTAL_AXIS?L=x:D=x);typeof this.maxDeltaX_==="number"&&(L=_.BF(L,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(D=_.BF(D,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(L=-L);L=new FSH(x,S,L,D);this.dispatchEvent(L)};
var Yhh=function(x){return _.V6&&(_.QJw||K00)&&x%40!=0?x:x/40};
N4.prototype.disposeInternal=function(){N4.superClass_.disposeInternal.call(this);G$(this.listenKey_);this.listenKey_=null};
var FSH=function(x,L,D,S){_.CW.call(this,L);this.type="mousewheel";this.detail=x;this.deltaX=D;this.deltaY=S};
_.E9(FSH,_.CW);_.JK=function(x){var L="instance_";if(x.instance_&&x.hasOwnProperty(L))return x.instance_;L=new x;return x.instance_=L};var k30;var sRW=_.xI(["https://about:blank"]),TzA=_.xI(['javascript:""']),eFW=_.xI(["about:blank"]);_.E9(DK,c8c);_.K=DK.prototype;_.K.JSC$10197_url_="";_.K.JSC$10197_iframe_=null;_.K.iframeLoaded_=!1;_.K.loadedFired_=!1;_.K.callback_=function(){};
_.K.enterDocument=function(){DK.superClass_.enterDocument.call(this);SDc(this.getBackgroundElement(),cZ(this))};
_.K.render=function(x){var L=this;DK.superClass_.render.call(this,x);this.useGapi_?e3A(this.iframeManager_,window).then(function(){return RFd(L)}).then(null,function(){L.callback_({action:"error"})}):GGG(this)};
var RFd=function(x){var L=x.JSC$10146_dom_.JSC$9332_createDom("div",["picker-dialog-content","picker-frame"]);_.Lq(L,!1);x.getContentElement().appendChild(L);return R3B(x.iframeManager_,L,function(D){var S=Xir(D["iframe-command"]);switch(S.getCommand()){case 1:D=x.callback_;S=_.Mg(S,vc,2);var Q="";switch(S.getStatus()){case 2:Q="cancel";break;case 1:Q="picked";break;case 3:Q="error"}var J=_.O7(S,RM,2,_.Zb(ek3));S=J.length===0?{action:Q}:EgB(J,Q,_.Mg(S,ozd,7));D.call(x,S);x.setVisible(!1);break;case 4:HVG(x);
x.callback_({action:"loaded"});break;case 7:case 8:D=x.callback_;a:{Q=S.getCommand();J=_.Mg(S,vc,2);switch(Q){case 7:Q="uploadScheduled";break;case 8:Q="uploadStateChange";break;default:S={};break a}S=_.O7(J,RM,2,_.Zb(ek3));if(S.length===0)S={action:Q};else{var Z=_.Mg(J,ozd,7);J=Z&&_.wy(Z,1);Z=xgC(Z);S=SD_(S,Q,J,Z)}}D.call(x,S)}},x.JSC$10197_url_,x.targetId_,x.rpcToken_).then(function(D){x.JSC$10197_iframe_=D.getIframeEl();
CYr(x);_.Lq(x.JSC$10197_iframe_.parentElement,!0);_.OI(x.getElement(),"picker-dialog");l82(x);return D})},GGG=function(x){x.JSC$10197_iframe_=x.JSC$10146_dom_.JSC$9332_createDom("IFRAME",{id:x.targetId_,
name:x.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.ci(x.JSC$10197_iframe_,UyB(x));_.OI(x.getElement(),"picker-dialog");x.getContentElement().appendChild(x.JSC$10197_iframe_);cZ(x).listen(x.JSC$10197_iframe_,"load",function(){return void CYr(x)});
x.JSC$10197_iframe_.src=x.JSC$10197_url_;l82(x)},Bzr=function(x){wIh(x,(0,_.e1)(function(L){L.setAuthToken(this.targetId_,this.rpcToken_)},x))},l82=function(x){var L=_.cf(_.ze(x.JSC$10197_url_),"title");
L&&x.setTitle(L)},UyB=function(x){return _.kNb("Internet Explorer")>=7&&_.Ow(x.JSC$10197_url_,"https")?_.Pn(sRW):_.j_?_.Pn(TzA):_.Pn(eFW)},CYr=function(x){Bzr(x);
x.iframeLoaded_=!0;x.JSC$10197_iframe_.tabIndex=0;x.isVisible()&&x.focus()};
DK.prototype.handleKeydown_=function(x){x.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),x.stopPropagation(),x.preventDefault())};
var wIh=function(x,L){var D=x.JSC$10195_gadgetsDomHelper_;LNn(function(){L(D.getWindow().gadgets.rpc)},D)};
DK.prototype.setUrl=function(x){x=_.xV(new _.Dg(x),"rpcService",this.targetId_);_.xV(x,"rpctoken",this.rpcToken_);_.HZ(x,"rpctoken="+this.rpcToken_);_.PZ(x,"https");this.JSC$10197_url_=x.toString();this.JSC$10197_iframe_&&(this.JSC$10197_iframe_.src=this.JSC$10197_url_)};
var WSi=function(x,L){x.callback_=L;wIh(x,(0,_.e1)(function(D){D.register(this.targetId_,(0,_.e1)(this.handlePickerAction_,this))},x))};
DK.prototype.handlePickerAction_=function(x){var L=x.action;L=="loaded"&&(this.loadedFired_=!0,qh_(this,new XYh(this.isVisible())),A7G(this),HVG(this),cZ(this).unlisten(this.JSC$10146_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$10197_iframe_.tabIndex=0);L!="picked"&&L!="cancel"||this.setVisible(!1);this.callback_(x)};
var A7G=function(x){x.JSC$10197_appId_&&qh_(x,new zhG(x.JSC$10197_appId_,window.location.protocol+"//"+window.location.host))};
DK.prototype.setRelayUrl=function(x){wIh(this,(0,_.e1)(function(L){L.setRelayUrl(this.targetId_,x)},this))};
var qh_=function(x,L){x.useGapi_&&wWQ(L,x.iframeManager_).then(null,function(){x.callback_({action:"error"})});
wIh(x,(0,_.e1)(function(D){D.call(this.targetId_,"picker",null,L)},x))};
DK.prototype.resizePicker_=function(){var x=qp(this.JSC$10146_dom_.JSC$9330_document_)||window;if(_.cf(_.ze(this.JSC$10197_url_),"ignoreLimits")=="true")x=new _.b8(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.cf(_.ze(this.JSC$10197_url_),"shadeDialog")=="true"){var L=jRC(this);L=Jwh(L);var D=_.YR(x);x=D.width-80;D=D.height-40;L&&(x-=L.left?L.left:0,x-=L.right?L.right:0,D-=L.top?L.top:0,D-=L.bottom?L.bottom:0);x=new _.b8(x>0?x:0,D>0?D:0)}else(L=this.preferredDialogWidth_)?(L=Math.max(320,
Math.min(1051,L)),(D=this.preferredDialogHeight_)||(D=_.YR(x).height*.85),D=Math.max(480,Math.min(650,D))):(L=_.YR(x),D=L.width*.618,D=D<L.height?Math.round(Math.max(480,Math.min(650,D*.85))):Math.round(Math.max(480,Math.min(650,L.height*.85))),L=Math.round(D/.618)),x=_.YR(x),L=Math.min(L,Math.max(x.width,320)),D=Math.min(D,Math.max(x.height,480)),x=new _.b8(L,D);_.tG2(this.getContentElement(),x);this.reposition()};
DK.prototype.reposition=function(){if(_.cf(_.ze(this.JSC$10197_url_),"shadeDialog")=="true"){var x=LRH(this.getElement()),L=_.YR(this.JSC$10146_dom_.getWindow());x=Math.floor(L.width/2-x.width/2);L=jRC(this);if(L=Jwh(L)){var D=L.left?L.left:0;D+=L.right?L.right:0;x=Math.floor(x-D/2)}x=x>0?x:0;L=FZ(this.JSC$10146_dom_).y;nt(this.getElement(),x,L)}else DK.superClass_.reposition.call(this)};
DK.prototype.setVisible=function(x){if(x!=this.isVisible()&&this.autoSizeDialog_){var L=this.JSC$10146_dom_.getWindow();x?(this.resizePicker_(),cZ(this).listen(L,"resize",this.resizePicker_),this.iframeLoaded_||cZ(this).listen(L,"keydown",this.handleKeydown_)):(cZ(this).unlisten(L,"resize",this.resizePicker_),this.iframeLoaded_||cZ(this).unlisten(L,"keydown",this.handleKeydown_))}DK.superClass_.setVisible.call(this,x);qh_(this,new XYh(x))};
DK.prototype.focus=function(){DK.superClass_.focus.call(this);if(this.JSC$10197_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$10197_iframe_.focus()}catch(x){}};var rY=function(x,L){L=L===void 0?DK:L;rb.call(this,x);this.pickerConstructor=L;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(x=window.location.origin)||(x=window.location.protocol+"//"+window.location.host);x&&this.urlParamMap_.set("origin",x);this.postProcessors_=[]};
_.p(rY,nQw);rY.prototype.JSC$10202_disposeOnHide_=!1;
rY.prototype.build=function(){this.JSC$10103_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$10103_appId_);this.getRelayUrl()||this.setRelayUrl(_.VH(_.HZ(_.hm(_.ze(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("fb");var x=new this.pickerConstructor($y_(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);x.JSC$10179_disposeOnHide_=this.JSC$10202_disposeOnHide_;
x.JSC$10197_appId_=this.JSC$10103_appId_;x.loadedFired_&&A7G(x);WSi(x,this.callback_);return x};
var r72=function(x){x.urlParamMap_.set("multiselectEnabled","true");return x};
_.K=rY.prototype;_.K.getHeight=function(){return this.dialogHeight_};
_.K.getProtocol=function(){return this.urlParamMap_.get("protocol")};
_.K.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
_.K.getTitle=function(){return this.urlParamMap_.get("title")};
_.K.getWidth=function(){return this.dialogWidth_};
var NzA=function(x){x.JSC$10202_disposeOnHide_=void 0;return x};
rY.prototype.setRelayUrl=function(x){this.urlParamMap_.set("parent",x);return this};
var iVH=function(x,L){x.urlParamMap_.set("selectButtonLabel",L);return x};
rY.prototype.setSize=function(x,L){this.dialogWidth_=x;this.dialogHeight_=L;return this};
rY.prototype.setTitle=function(x){this.urlParamMap_.set("title",x);return this};
var $y_=function(x){x.postProcessors_.length&&x.urlParamMap_.set("pp",JSON.stringify(x.postProcessors_));x.urlParamMap_.set("nav",XY2(x.nav_));var L=new _.Dg(x.getBaseUrl());x.urlParamMap_.forEach(function(D,S){_.xV(L,S,D)});
return L};var a8H=function(x,L){x.name!==void 0?(this.name=x.name,this.code=f8i[x.name]):(this.code=x=x.code,this.name=oZ2(x));_.Dp.call(this,VWG("%s %s",this.name,L))};
_.E9(a8H,_.Dp);var oZ2=function(x){var L=_.wk.findKey(f8i,function(D){return x==D});
if(L===void 0)throw Error("hb`"+x);return L},Kd={},f8i=(Kd.AbortError=3,Kd.EncodingError=5,Kd.InvalidModificationError=9,Kd.InvalidStateError=7,Kd.NotFoundError=1,Kd.NotReadableError=4,Kd.NoModificationAllowedError=6,Kd.PathExistsError=12,Kd.QuotaExceededError=10,Kd.SecurityError=2,Kd.SyntaxError=8,Kd.TypeMismatchError=11,Kd);var zFr=function(x,L){_.Gm.call(this,x.type,L);this.event_=x};
_.E9(zFr,_.Gm);var XIC=function(x,L,D){D===void 0&&(D=x.size);return x.slice?x.slice(L,D):null};var FNs=new WeakMap,YD4=function(x,L){x=[x];for(var D=L.length-1;D>=0;--D)x.push(typeof L[D],L[D]);return x.join("\v")};_.TtG(function(){if(!_.Qb.Blob)return!1;var x=new Uint8Array(100);try{var L=new Blob([x])}catch(D){return!1}return L.size!=100?!1:!0});
var c7A=_.TtG(function(){if(!_.Qb.Blob)return!1;var x=new Uint8Array(100);try{var L=new Blob([x])}catch(D){return!1}return XIC(L,0,1)===null?!1:!0});_.Qb.U3bHHf!=null||(_.Qb.U3bHHf=0);_.Qb.U3bHHf++;_.nZ2=new WeakMap;_.t7_=new WeakMap;var R3N={};var JI=void 0;var C7O=Symbol("pb");var ogf=ZK("WizInjectionContext_Dispatcher");var yN=Symbol("qb");var k6,sX;k6=function(){this.afterRenderCallbacks=null};
_.vT4=Symbol("rb");sX=function(x){this.props=x;this.__unmounted=!1};
sX.prototype.didPatch=function(){};
sX.prototype.didMount=function(){};
sX.prototype.didUnmount=function(){};
sX.prototype.didUpdate=function(){};_.$gn=ZK("WizInjectionContext_RootElement");var NtO=ZK("WizInjectionContext_AppContext"),rEc=ZK("WizInjectionContext_ModelRootElement"),iK0=ZK("WizInjectionContext_RendererData"),fA3=ZK("WizInjectionContext_InjectingConstructor"),AEf=ZK("WizInjectionContext_AsyncDeps"),aAw={};var xyn=!1;var QRO={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:nLG,enableLazyTsx:tj0,enablePerformanceTiming:!1,enablePerformanceTracing:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:c$3,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var Iu=Object.assign({},{attributes:{},handleError:function(x){throw x;}},QRO);var x6R=Symbol("vb"),YV=Symbol("wb"),x6w=Symbol("xb"),nZh=Symbol("yb"),Oh0=TB(function(x){return Es(x)&&x6R in x});var EZb=Symbol("zb"),OH={},y7G=(OH[EZb]=!0,OH.debugName="[component]",OH.getComponentStack=function(){for(var x=[],L=this;L;)M73(L)&&x.push(L.debugName),L=L.parent;return x},OH.registerSignal=function(){},OH.registerEffect=function(){},OH);var MN=null,PB=!1,vZO=1,bVf=Symbol("Db"),pq={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 ZB=Symbol("Eb"),yV=Symbol("Fb"),vB=Symbol("Gb"),myO=Object.assign({},pq,{value:ZB,dirty:!0,error:null,equal:dyf,kind:"computed",producerMustRecompute:function(x){return x.value===ZB||x.value===yV},
producerRecomputeValue:function(x){if(x.value===yV)throw Error("Z");var L=x.value;x.value=yV;var D=gZ0(x),S=!1;try{var Q=x.computation();dH(null);S=L!==ZB&&L!==vB&&Q!==vB&&x.equal(L,Q)}catch(J){Q=vB,x.error=J}finally{dH(D),x&&pIf(x)}S?x.value=L:(x.value=Q,x.version++)}});Object.assign({},pq,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,kind:"effect"});var Tz0=function(){throw Error();};var RFO=null,FSf=Object.assign({},pq,{equal:dyf,value:void 0,kind:"signal"});Object.assign({},pq,{value:ZB,dirty:!0,error:null,equal:dyf,kind:"linkedSignal",producerMustRecompute:function(x){return x.value===ZB||x.value===yV},
producerRecomputeValue:function(x){if(x.value===yV)throw Error("Z");var L=x.value;x.value=yV;var D=gZ0(x);try{var S=x.source();var Q=x.computation(S,L===ZB||L===vB?void 0:{source:x.sourceValue,value:L});x.sourceValue=S}catch(J){Q=vB,x.error=J}finally{dH(D),x&&pIf(x)}L!==ZB&&Q!==vB&&x.equal(L,Q)?x.value=L:(x.value=Q,x.version++)}});Object.assign({},pq,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(x){x.schedule!==null&&x.schedule(x.ref)},
hasRun:!1,cleanupFn:function(){}});var CYG=Symbol("Hb"),um=Symbol("Ib");var gH=Array.isArray;var r7h;var Luh={},iVf=$yc(Object.assign({},{consumerAllowSignalWrites:!0},Luh)),mr=$yc(Object.assign({},{consumerAllowSignalWrites:!0},Luh));var FU=0,ss=!1,Is=function(){this.queue=new Set};
Is.prototype.schedule=function(x){this.queue.add(x)};
Is.prototype.remove=function(x){this.queue.delete(x)};
Is.prototype.clear=function(){this.queue.clear()};
var a8f=Symbol("Nb"),f8n=Symbol("Ob"),EH=function(){Is.apply(this,arguments)};
_.p(EH,Is);EH.prototype.flush=function(){if(this.queue.size){ss=!0;for(var x=_.O(this.queue),L=x.next();!L.done;L=x.next()){L=L.value;this.queue.delete(L);try{L.run()}catch(D){D6G(D)}}ss=!1}};
var SUi=function(){EH.apply(this,arguments)};
_.p(SUi,EH);var oZh=new SUi,QH2=function(){EH.apply(this,arguments)};
_.p(QH2,EH);QH2.prototype.schedule=function(x){var L=this;return _.I(function(D){if(D.nextAddress==1)return Iu.enableQueueEffectAndOnInitInitialRuns?D.jumpTo(2):D.yield(Promise.resolve(),3);if(D.nextAddress!=2)return x.run(),D.return();L.queue.add(x);_.Y2(D)})};
var zFG=new QH2,Ml=function(){Is.apply(this,arguments)};
_.p(Ml,Is);Ml.prototype.flush=function(){this.queue.size&&Zh3(this.queue)};
var J6A=function(){Ml.apply(this,arguments)};
_.p(J6A,Ml);J6A.prototype.schedule=function(x){x.hasRun?this.queue.add(x):x.run()};
J6A.prototype.flush=function(){if(this.queue.size)if(Iu.flushRenderEffectsDuringRender){var x=this.queue;this.queue=new Set;Zh3(x)}else Zh3(this.queue)};
var c70=new J6A,KuQ=function(){Ml.apply(this,arguments)};
_.p(KuQ,Ml);KuQ.prototype.schedule=function(x){var L=this;return _.I(function(D){if(D.nextAddress==1)return Iu.enableQueueEffectAndOnInitInitialRuns||x.hasRun?D.jumpTo(2):D.yield(Promise.resolve(),3);if(D.nextAddress!=2)return x.run(),D.return();L.queue.add(x);_.Y2(D)})};
var Lup=new KuQ,OhA=function(){Ml.apply(this,arguments)};
_.p(OhA,Ml);var t7c=new OhA,SUn=[c70,oZh,t7c],Kub=[zFG,Lup],Zh2=[c70,t7c,Lup],y64=[].concat(_.lP(SUn),_.lP(Kub)),y6C=[];RFO=function(){J60();for(var x=_.O(y6C),L=x.next();!L.done;L=x.next())L=L.value,L()};
var D6G=JG;var Ru=Symbol("Pb");var e$=null,Mcn,d60=null,PvO;var dI={},I5H=Object.assign({},pq,(dI[x6R]=!0,dI.effectType=YV,dI.isResettableContext=!0,dI.hasRun=!1,dI.effectFn=null,dI.consumerIsAlwaysLive=!0,dI.consumerAllowSignalWrites=!0,dI.consumerMarkedDirty=D6s,dI.kind="effect",dI.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(PB)throw Error("Qb");this.dirty=!1;if(!this.hasRun||V7c(this)){this.hasRun=!0;qDc(this);var x=_.Kq(this),L=gZ0(this);KSp("effectRun",this.debugName);try{lm(this.effectFn,this.componentStack,this)}catch(D){throw Iu.enableContextBasedComponentStacks&&
Cq(D),D;}finally{OVs("effectRun",this.debugName),dH(L),this&&pIf(this),_.Kq(x)}}}},dI.componentStack=void 0,dI.debugName="[effect]",dI[Symbol.dispose]=function(){if(j$(this))for(var x=this.producers;x!==void 0;)x=kGh(x);
this.consumersTail=this.consumers=this.producersTail=this.producers=void 0;x=_.O(Zh2);for(var L=x.next();!L.done;L=x.next())L.value.remove(this);WN0(this)},dI));var Vcp=Object.assign({},I5H,{effectType:x6w});var hoN=Symbol("Rb");var Hhw=Object.assign({},I5H,{effectType:YV});var Duh=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 kLn={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},g30=
{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}]}},I7f={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},bhp=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],m6w={"*":{async:1,dir:0,loading:2,target:3}};var E32=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,Px={},FuO=(Px[1]=null,Px[2]=function(x,L){return L instanceof oN?Xs(L):Aw.toString()},Px[3]=function(x,L){return U5(L)?_.w8(L):E32.test(String(L))?String(L):Aw.toString()},Px[4]=function(x,L){return L instanceof s5?_.RN(L):Aw.toString()},Px[5]=function(x,L){return String(L)},Px[7]=null,Px[8]=null,Px[10]=null,Px);var kkw=Symbol("Xb");var cZc=function(x){var L=Mci,D=x,S="",Q="",J=1;x<0&&(x=-x);if(x===Infinity)x=(Infinity*Math.sign(D)).toString();else{for(var Z=0;Z<d6A.length;Z++){var y=d6A[Z];J=L[y];if(x>=J||J<=1&&x>.1*J){S=y;break}}S?(S+="B",Q=" "):J=1;x=Math.round(D/J*10)/10+Q+S}return x},d6A="Y Z E P T G M K  m u n".split(" "),Mci={"":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};_.Pvd=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 jF={};RegExp.prototype.hasOwnProperty("sticky");var QcN=function(x){x=String(x);for(var L=function(S,Q,J){for(var Z=Math.min(Q.length-J,S.length),y=0;y<Z;y++){var E=Q[J+y];if(S[y]!==("A"<=E&&E<="Z"?E.toLowerCase():E))return!1}return!0},D=0;(D=x.indexOf("<",D))!=-1;){if(L("\x3c/script",x,D)||L("\x3c!--",x,D))return"zSoyz";
D+=1}return x};var im={default:"__default"};var Cvs=Object.prototype.hasOwnProperty;eop.prototype=Object.create(null);var Kh=wvh();var QN=null;var zo0=function(x){this.created=[];this.deleted=[];this.node=x};var XvO=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var x=this,L=x;x;)L=x,x=x.parentNode;return L};var Wu4=function(x,L){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=x;this.key=L;this.text=void 0};var nq=null,tI=null,au=null,Lm=null,NQG=[],r6w=A6b,Da=[],SF=[],gc3=function(x){return c64(function(L,D,S){au=tI=L;tI=null;D(S);$6h(null);tI=au;au=au.parentNode;return L},x)}(),um3=function(x){return c64(function(L,D,S){var Q={nextSibling:L};
tI=Q;D(S);au&&$6h(L.nextSibling);return Q===tI?null:tI},x)}();var Ju=[],tcG=0;var Km=new eop;var qL=new eop;var jHr=wvh(),OL3=jHr[im.default],Kzn=jHr.style,SKn=["focusin","focusout"],IRp="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var XoN=function(){},WzN=function(){},LmO=function(){},n7c=function(){};var Za=Symbol("bc");var jcG,Pzc=dus;var hu=Symbol("cc");var xFs=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(" ")),
to4=new Set(["a","font","script","style","title"]);_.VN={setUp:scb,tearDown:scb,log:scb,logNodeRange:scb,graft:function(x,L){L()}};var bf={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var Y6=null,F0=function(x,L){sX.call(this,x);var D=this;this.functionComponent=L;this.hooks=[];this.hookCounter=0;this.disposeEffects=BB(function(S){D.effectContext=S;_.wH(function(){r34(D,D.el)})},Iu.alwaysTrackContexts||!!JI)};
_.p(F0,sX);F0.prototype.render=function(x){var L=Y6;Y6=this;this.hookCounter=0;var D=dH(mr),S=_.Kq(this.effectContext);try{return KSp("render",this.componentName),this.functionComponent(x)}finally{OVs("render",this.componentName),_.Kq(S),dH(D),Y6=L}};
_.J3.Object.defineProperties(F0.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return I5f(this.functionComponent)}}});var DFs=Symbol("qc"),aRc=function(x,L,D){this.afterRenderCallbacks=null;this.kind=x;this.props=L;this.children=D};
_.p(aRc,k6);aRc.prototype.render=function(){var x=o7h(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var L=_.O(this.afterRenderCallbacks),D=L.next();!D.done;D=L.next())D=D.value,x=D(x);return x};
aRc.prototype.getChildren=function(){return this.children};var Q8s=[];Tz0=function(x){throw Error("ob`"+x.debugName);};
(function(){var x=QN;QN=function(L){x==null||x(L);J_f(L)}})();Object.assign({},I5H,{effectType:YV,hasRun:!0,elementRef:null,attributes:null,effectFn:function(){var x=this.elementRef;var L;x.element!=null||(x.element=(L=x.document.getElementById(x.value))!=null?L:void 0);x=x.element;for(L=this.attributes;L;){var D=L.signal();D!==L.prevValue&&(L.prevValue=D,L.namespace===1?x[L.name]=D:Duh.has(L.name)?NN(x,L.name,D?"":null):NN(x,L.name,D));L=L.next}}});_.TS.debugName="tbhMcf";_.eF.debugName="zyMFzb";Object.assign({},I5H,{effectType:YV,hasRun:!0});_.d.debugName="RlDudd";var Kmp={nonNullableCondIsNull:function(){return Error("uc")}};var MqO=function(){this.map=new Map};
MqO.prototype.push=function(x,L){var D=this.map;D.has(x)&&(this.multi||(this.multi=new Map),this.multi.set(L,D.get(x)));D.set(x,L)};
MqO.prototype.pop=function(x){var L=this.map,D=L.get(x),S;D!==void 0&&((S=this.multi)==null?0:S.has(D))?(L.set(x,this.multi.get(D)),this.multi.delete(D)):L.delete(x);return D};_.R1.debugName="nsTGHd";_.GS.debugName="vI1rtf";_.hDp={OUT_OF_ORDER_HOOK_CALL:function(x){return Error("vc`"+x)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("wc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("xc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("yc")},
USE_ELEMENT_ACCESSED_DURING_RENDER:function(x,L){return Error("zc`"+((L===void 0?0:L)?"IDOM":"Reactive")+"`"+(Cm(x)?x.description:x))},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(x,L){return Error("Ac`"+(Cm(x)?x.description:x)+"`"+L)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(x){return Error("Bc`"+(Cm(x)?x.description:x))},
USE_ELEMENT_NOT_ASSIGNED:function(x){return Error("Cc`"+(Cm(x)?x.description:x))},
USE_ELEMENT_NOT_ASSIGNED_CONTROL_FLOW:function(x){return Error("Dc`"+(Cm(x)?x.description:x))}};jcG=z5f;var mF0=Symbol("Ec");A3b({beforeRender:function(x){var L=_.Kq(x.effectContext);try{var D;((D=x.__syncEffects)==null?0:D.length)&&Fmc(x.__syncEffects)}finally{_.Kq(L)}},
didPatch:function(x){var L=_.Kq(x.effectContext);try{var D;((D=x.__syncEffects)==null?0:D.length)&&Fmc(x.__syncEffects)}finally{_.Kq(L)}},
didUnmount:function(x){var L;((L=x.hooks)==null?0:L.length)&&x.hooks.forEach(Y8f)}});var v3r,Vch,hoB;v3r=_.Qb.window;_.q9=(v3r==null?void 0:(Vch=v3r.yt)==null?void 0:Vch.config_)||(v3r==null?void 0:(hoB=v3r.ytcfg)==null?void 0:hoB.data_)||{};_.KK("yt.config_",_.q9);var HhR={},G8h=[];_.RZ=function(x){var L=_.Ne.apply(1,arguments);var D=Error.call(this,x);this.message=D.message;"stack"in D&&(this.stack=D.stack);this.args=[].concat(_.lP(L));Object.setPrototypeOf(this,this.constructor.prototype)};
_.p(_.RZ,Error);var ot3=function(x,L,D){this.actionName=x;this.optionalAction=L===void 0?!1:L;this.args=D===void 0?null:D;this.returnValue=[]};_.jp=function(x){this.name=x};_.iY=new _.jp("signalAction");var Ngw=/^[\w.]*$/,Bg0={q:!0,search_query:!0},w$N=String(UFh);var IZ;IZ=Symbol("Fc");_.vx=function(x){this.name=x};
_.vx.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var i6h=function(x){this.key=x},X$f=function(x){this.deferredKey=x},oTb=function(){var x=this;
this.providers=new Map;this.JSC$10496_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(x.providers)}}};
oTb.prototype.addProvider=function(x){this.providers.set(x.provide,x);var L=this.JSC$10496_deferred.get(x.provide);if(L)try{L.resolver(this.resolve(x.provide))}catch(D){L.rejector(D)}};
oTb.prototype.resolve=function(x){return x instanceof X$f?uER(this,x):x instanceof i6h?g3W(this,x.key,[],!0):g3W(this,x,[])};
var uER=function(x,L){L=L.deferredKey;if(x.JSC$10496_deferred.has(L))return x.JSC$10496_deferred.get(L).promise;var D={};D.promise=new Promise(function(S,Q){D.resolver=S;D.rejector=Q});
x.JSC$10496_deferred.set(L,D);return D.promise},g3W=function(x,L,D,S){S=S===void 0?!1:S;
if(D.indexOf(L)>-1)throw Error("Gc`"+L);if(x.cachedValues.has(L))return x.cachedValues.get(L);if(!x.providers.has(L)){if(S)return;throw Error("Hc`"+L);}S=x.providers.get(L);D.push(L);if(S.useValue!==void 0)var Q=S.useValue;else if(S.useFactory)Q=S[IZ]?kLi(x,S[IZ],D):[],Q=S.useFactory.apply(S,_.lP(Q));else if(S.useClass){Q=S.useClass;var J=Q[IZ]?kLi(x,Q[IZ],D):[];Q=new (Function.prototype.bind.apply(Q,[null].concat(_.lP(J))))}else throw Error("Ic`"+L);D.pop();S.skipCache||x.cachedValues.set(L,Q);return Q},
kLi=function(x,L,D){return L?L.map(function(S){return S instanceof i6h?g3W(x,S.key,D,!0):g3W(x,S,D)}):[]};var fg4;var fV=new _.vx("ENDPOINT_HANDLER_TOKEN");_.oR=new _.jp("urlEndpoint");var pvh=function(){this.data=[];this.cachedPackedInt52=-1};
pvh.prototype.set=function(x,L){L=L===void 0?!0:L;0<=x&&x<52&&Number.isInteger(x)&&this.data[x]!==L&&(this.data[x]=L,this.cachedPackedInt52=-1)};
pvh.prototype.get=function(x){return!!this.data[x]};
var m6R=function(x){x.cachedPackedInt52===-1&&(x.cachedPackedInt52=x.data.reduce(function(L,D,S){return L+(D?Math.pow(2,S):0)},0));
return x.cachedPackedInt52};var IoN=function(x){var L=bhh;x=x===void 0?_.o1("yt.ads.biscotti.lastId_")||"":x;var D=Object,S=D.assign,Q={};Q.dt=pBG;Q.flash="0";a:{try{var J=L.JSC$10502_win_.top.location.href}catch(xf){J=2;break a}J=J?J===L.doc_.location.href?0:1:2}Q=(Q.frm=J,Q);try{Q.u_tz=-(new Date).getTimezoneOffset();try{var Z=D7.history.length}catch(xf){Z=0}Q.u_his=Z;var y;Q.u_h=(y=D7.screen)==null?void 0:y.height;var E;Q.u_w=(E=D7.screen)==null?void 0:E.width;var P;Q.u_ah=(P=D7.screen)==null?void 0:P.availHeight;var v;Q.u_aw=
(v=D7.screen)==null?void 0:v.availWidth;var V;Q.u_cd=(V=D7.screen)==null?void 0:V.colorDepth}catch(xf){}Z=L.JSC$10502_win_;try{var h=Z.screenX;var H=Z.screenY}catch(xf){}try{var k=Z.outerWidth;var T=Z.outerHeight}catch(xf){}try{var G=Z.innerWidth;var U=Z.innerHeight}catch(xf){}try{var l=Z.screenLeft;var X=Z.screenTop}catch(xf){}try{G=Z.innerWidth,U=Z.innerHeight}catch(xf){}try{var f=Z.screen.availWidth;var N=Z.screen.availTop}catch(xf){}h=[l,X,h,H,f,N,k,T,G,U];H=pfn(!1,L.JSC$10502_win_.top);k={};
var z=z===void 0?_.Qb:z;T=new pvh;"SVGElement"in z&&"createElementNS"in z.document&&T.set(0);G=u9W();G["allow-top-navigation-by-user-activation"]&&T.set(1);G["allow-popups-to-escape-sandbox"]&&T.set(2);z.crypto&&z.crypto.subtle&&T.set(3);"TextDecoder"in z&&"TextEncoder"in z&&T.set(4);z=m6R(T);L=(k.bc=z,k.bih=H.height,k.biw=H.width,k.brdim=h.join(),k.vis=j1G(L.doc_),k.wgl=!!D7.WebGLRenderingContext,k);D=S.call(D,Q,L);D.ca_type="image";x&&(D.bid=x);return D},bhh=new function(){var x=window.document;
this.JSC$10502_win_=window;this.doc_=x};
_.KK("yt.ads_.signals_.getAdSignalsString",function(x){return Wmc(IoN(x))});_.IM();navigator.userAgent.indexOf(" (CrKey ");var LH0="XMLHttpRequest"in _.Qb?function(){return new XMLHttpRequest}:null;var YUQ="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),Fud=[].concat(_.lP(YUQ),["client_dev_set_cookie"]);var y2N={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"},QtN="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(_.lP(YUQ)),H7b=!1,KHc=_.ENs,vN3=Z70;var $b4=[{messageFn:function(x){return"Cannot read property '"+x.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(x){return"Cannot call '"+x.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(x){return x.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var sH2={messageWeights:[],callbackWeights:[{callback:paO,weight:500},{callback:mUw,weight:500}]};var TQd=function(){this.callbackWeights=[];this.messageWeights=[]},eoh,ALn=function(){if(!eoh){var x=eoh=new TQd;
x.messageWeights.length=0;x.callbackWeights.length=0;w0N(x,sH2)}return eoh},w0N=function(x,L){L.messageWeights&&x.messageWeights.push.apply(x.messageWeights,L.messageWeights);
L.callbackWeights&&x.callbackWeights.push.apply(x.callbackWeights,L.callbackWeights)};_.E9(_.mv,_.Te);_.mv.prototype.subscribe=function(x,L,D){var S=this.topics_[x];S||(S=this.topics_[x]=[]);var Q=this.JSC$10526_key_;this.subscriptions_[Q]=x;this.subscriptions_[Q+1]=L;this.subscriptions_[Q+2]=D;this.JSC$10526_key_=Q+3;S.push(Q);return Q};
var Ro_=function(x){var L=fsw,D=!1,S=L.subscribe("handleError",function(Q){D||(D=!0,this.unsubscribeByKey(S),x.apply(void 0,arguments))},L)};
_.mv.prototype.unsubscribe=function(x,L,D){if(x=this.topics_[x]){var S=this.subscriptions_;if(x=x.find(function(Q){return S[Q+1]==L&&S[Q+2]==D}))return this.unsubscribeByKey(x)}return!1};
_.mv.prototype.unsubscribeByKey=function(x){var L=this.subscriptions_[x];if(L){var D=this.topics_[L];this.publishDepth_!=0?(this.pendingKeys_.push(x),this.subscriptions_[x+1]=function(){}):(D&&_.$f(D,x),delete this.subscriptions_[x],delete this.subscriptions_[x+1],delete this.subscriptions_[x+2])}return!!L};
_.mv.prototype.publish=function(x,L){var D=this.topics_[x];if(D){var S=Array(arguments.length-1),Q=arguments.length,J;for(J=1;J<Q;J++)S[J-1]=arguments[J];if(this.async_)for(J=0;J<D.length;J++)Q=D[J],GL2(this.subscriptions_[Q+1],this.subscriptions_[Q+2],S);else{this.publishDepth_++;try{for(J=0,Q=D.length;J<Q&&!this.isDisposed();J++){var Z=D[J];this.subscriptions_[Z+1].apply(this.subscriptions_[Z+2],S)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;D=this.pendingKeys_.pop();)this.unsubscribeByKey(D)}}return J!=
0}return!1};
var GL2=function(x,L,D){_.q_(function(){x.apply(L,D)})};
_.mv.prototype.clear=function(x){if(x){var L=this.topics_[x];L&&(L.forEach(this.unsubscribeByKey,this),delete this.topics_[x])}else this.subscriptions_.length=0,this.topics_={}};
_.mv.prototype.getCount=function(x){if(x){var L=this.topics_[x];return L?L.length:0}x=0;for(L in this.topics_)x+=this.getCount(L);return x};
_.mv.prototype.disposeInternal=function(){_.mv.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var fsw=new _.mv;var jV=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(jV,_.O5);jV.prototype.getColdHashData=function(){return _.wy(this,3)};
jV.prototype.getHotHashData=function(){return _.wy(this,5)};
jV.prototype.setHotHashData=function(x){return _.ei(this,5,x)};var BYf=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(BYf,_.O5);var M2c=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(M2c,_.O5);_.K=M2c.prototype;_.K.getDeviceId=function(){return _.wy(this,6)};
_.K.getExperimentIds=function(x){var L=_.zg(this,9,_.QW,3,!0);xhN(L,x);return L[x]};
_.K.getPlayerType=function(){return _.BN(this,36)};
_.K.setHomeGroupInfo=function(x){return _.mR(this,81,x)};
_.K.clearLocationPlayabilityToken=function(){return _.PW(this,89)};var kZ=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(kZ,_.O5);kZ.prototype.setKey=function(x){return _.ei(this,1,x)};
kZ.prototype.getValue=function(){return qa(this,2,Pkn)};
var Pkn=[2,3,4,5,6];var CvG=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(CvG,_.O5);CvG.prototype.setTrackingParams=function(x){return _.PW(this,1,_.bG(x,!1))};var dbc=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(dbc,_.O5);var Ad0=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(Ad0,_.O5);Ad0.prototype.getExperimentIds=function(x){var L=_.zg(this,5,_.kBh,3,!0);xhN(L,x);return L[x]};var YZ=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(YZ,_.O5);YZ.prototype.getToken=function(){return _.ka(this,2)};
YZ.prototype.setToken=function(x){return _.ei(this,2,x)};var mS=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(mS,_.O5);mS.prototype.setSafetyMode=function(x){return _.dt(this,5,x)};var gz=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(gz,_.O5);gz.prototype.setClient=function(x){return _.mR(this,1,x)};var qOf={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 Wt0;_.wY=function(){var x=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.Qb.addEventListener("beforeinstallprompt",function(L){L.preventDefault();x.deferredInstallPrompt=L});
_.Qb.addEventListener("appinstalled",function(){x.appInstalledEventFired=!0},{once:!0})};
Wt0=function(){if(!_.Qb.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.Qb.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.Qb.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.Qb.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.Qb.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(x){return"WEB_DISPLAY_MODE_UNKNOWN"}};var NYf=function(){this.syncHeaders=!0},iBc=function(x){var L={},D=[];
"USER_SESSION_ID"in _.q9&&D.push({key:"u",value:_.$6("USER_SESSION_ID")});if(D=_.MOf(D))L.Authorization=D,D=x=x==null?void 0:x.sessionIndex,D===void 0&&(D=Number(_.$6("SESSION_INDEX",0)),D=isNaN(D)?0:D),_.u("voice_search_auth_header_removal")||(L["X-Goog-AuthUser"]=D.toString()),"INNERTUBE_HOST_OVERRIDE"in _.q9||(L["X-Origin"]=window.location.origin),x===void 0&&"DELEGATED_SESSION_ID"in _.q9&&(L["X-Goog-PageId"]=_.$6("DELEGATED_SESSION_ID"));return L};var l5W={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var VV=_.o1("ytglobal.prefsUserPrefsPrefs_")||{},U6i;_.KK("ytglobal.prefsUserPrefsPrefs_",VV);_.hS=function(){this.cookieName=_.$6("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.$6("ALT_PREF_COOKIE_DOMAIN","youtube.com");var x=_.YQ.get(this.cookieName,void 0);x&&this.parse(x)};
_.FI=function(){U6i||(U6i=new _.hS);return U6i};
_.hS.prototype.get=function(x,L){wv2(x);BQR(x);x=VV[x]!==void 0?VV[x].toString():null;return x!=null?x:L?L:""};
_.hS.prototype.set=function(x,L){wv2(x);BQR(x);if(L==null)throw Error("Lc");VV[x]=L.toString()};
_.hS.prototype.getFlag=function(x){return!!((WuC("f"+(Math.floor(x/31)+1))||0)&1<<x%31)};
_.s8=function(x,L,D){x="f"+(Math.floor(L/31)+1);L=1<<L%31;var S=WuC(x)||0;S=D?S|L:S&~L;S===0?delete VV[x]:(D=S.toString(16),VV[x]=D.toString())};
_.hS.prototype.remove=function(x){wv2(x);BQR(x);delete VV[x]};
_.hS.prototype.save=function(){var x=!0;_.u("web_secure_pref_cookie_killswitch")&&(x=!1);_.FD(this.cookieName,this.dump(),63072E3,this.cookieDomain,x)};
_.hS.prototype.clear=function(){_.wk.clear(VV)};
_.hS.prototype.dump=function(){var x=[],L;for(L in VV)VV.hasOwnProperty(L)&&x.push(L+"="+encodeURIComponent(String(VV[L])));return x.join("&")};
var BQR=function(x){if(/^f([1-9][0-9]*)$/.test(x))throw Error("Mc`"+x);},wv2=function(x){if(!/^\w+$/.test(x))throw Error("Nc`"+x);
},WuC=function(x){x=VV[x]!==void 0?VV[x].toString():null;
return x!=null&&/^[A-Fa-f0-9]+$/.test(x)?parseInt(x,16):null};
_.hS.prototype.parse=function(x){x=decodeURIComponent(x).split("&");for(var L=0;L<x.length;L++){var D=x[L].split("="),S=D[0];(D=D[1])&&(VV[S]=D.toString())}};var C60={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"},$BG={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},rd0={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},UUN={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var VO;_.Hx=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.TG=function(x,L,D){return x.addJob(L,0,D)};
_.Hx.prototype.addLowPriorityJob=function(x,L){return this.addJob(x,1,L)};
_.GR=function(x,L,D){return x.addJob(L,2,D)};
_.VG=function(x,L,D){return x.addJob(L,3,D)};
_.hD=function(x,L,D){return x.addJob(L,4,D)};
VO=function(x){var L=_.o1("yt.scheduler.instance.addImmediateJob");L?L(x):x()};
_.Hx.prototype.debounce=function(x,L,D){var S=this,Q=0,J=function(){Q&&S.cancelJob(Q);Q=S.addJob(x,L,D);S.cancelDebouncedJobMap.set(J,Q)};
return J};
_.Hx.prototype.cancelThrottle=function(x){(x=this.cancelThrottledJobMap.get(x))&&x()};var uB=function(){_.Hx.apply(this,arguments)};
_.p(uB,_.Hx);_.RP=function(){uB.instance||(uB.instance=new uB);return uB.instance};
uB.prototype.addJob=function(x,L,D){D!==void 0&&Number.isNaN(Number(D))&&(D=void 0);var S=_.o1("yt.scheduler.instance.addJob");return S?S(x,L,D):D===void 0?(x(),NaN):_.VY(x,D||0)};
uB.prototype.cancelJob=function(x){if(x===void 0||!Number.isNaN(Number(x))){var L=_.o1("yt.scheduler.instance.cancelJob");L?L(x):_.uj(x)}};
uB.prototype.start=function(){var x=_.o1("yt.scheduler.instance.start");x&&x()};
uB.prototype.pause=function(){var x=_.o1("yt.scheduler.instance.pause");x&&x()};
_.WW=_.RP();_.GU.prototype.set=function(x,L){L===void 0?this.mechanism.remove(x):this.mechanism.set(x,(0,_.iO)(L))};
_.GU.prototype.get=function(x){try{var L=this.mechanism.get(x)}catch(D){return}if(L!==null)try{return JSON.parse(L)}catch(D){throw"Storage: Invalid value was encountered";}};
_.GU.prototype.remove=function(x){this.mechanism.remove(x)};var gI=function(x){this.mechanism=x};
_.E9(gI,_.GU);var qUG=function(x){this.data=x},A6Q=function(x){return x===void 0||x instanceof qUG?x:new qUG(x)};
gI.prototype.set=function(x,L){gI.superClass_.set.call(this,x,A6Q(L))};
gI.prototype.getWrapper=function(x){x=gI.superClass_.get.call(this,x);if(x===void 0||x instanceof Object)return x;throw"Storage: Invalid value was encountered";};
gI.prototype.get=function(x){if(x=this.getWrapper(x)){if(x=x.data,x===void 0)throw"Storage: Invalid value was encountered";}else x=void 0;return x};_.E9(CH,gI);_.$62=function(x){var L=x.creation;x=x.expiration;return!!x&&x<_.IM()||!!L&&L>_.IM()};
CH.prototype.set=function(x,L,D){if(L=A6Q(L)){if(D){if(D<_.IM()){CH.prototype.remove.call(this,x);return}L.expiration=D}L.creation=_.IM()}CH.superClass_.set.call(this,x,L)};
CH.prototype.getWrapper=function(x,L){var D=CH.superClass_.getWrapper.call(this,x);if(D)if(!L&&_.$62(D))CH.prototype.remove.call(this,x);else return D};var ko=function(){};
ko.prototype.next=function(){return pd};
var pd={done:!0,value:void 0},mk=function(x){return{value:x,done:!1}};
ko.prototype.__iterator__=function(){return this};
_.r6R=function(x){if(x instanceof ko)return x;if(typeof x.__iterator__=="function")return x.__iterator__(!1);if(_.Nf(x)){var L=0,D=new ko;D.next=function(){for(;;){if(L>=x.length)return pd;if(L in x)return mk(x[L++]);L++}};
return D}throw Error("Oc");};var NQr=function(x){if(x instanceof bB||x instanceof Yo||x instanceof Fu)return x;if(typeof x.next=="function")return new bB(function(){return x});
if(typeof x[Symbol.iterator]=="function")return new bB(function(){return x[Symbol.iterator]()});
if(typeof x.__iterator__=="function")return new bB(function(){return x.__iterator__()});
throw Error("Pc");},bB=function(x){this.func_=x};
bB.prototype.__iterator__=function(){return new Yo(this.func_())};
bB.prototype[Symbol.iterator]=function(){return new Fu(this.func_())};
bB.prototype.toEs6=function(){return new Fu(this.func_())};
var Yo=function(x){this.JSC$10610_iter_=x};
_.p(Yo,ko);Yo.prototype.next=function(){return this.JSC$10610_iter_.next()};
Yo.prototype[Symbol.iterator]=function(){return new Fu(this.JSC$10610_iter_)};
Yo.prototype.toEs6=function(){return new Fu(this.JSC$10610_iter_)};
var Fu=function(x){bB.call(this,function(){return x});
this.JSC$10613_iter_=x};
_.p(Fu,bB);Fu.prototype.next=function(){return this.JSC$10613_iter_.next()};var ihi=function(){};var sH=function(){};
_.E9(sH,ihi);sH.prototype.getCount=function(){for(var x=0,L=_.O(this),D=L.next();!D.done;D=L.next())x++;return x};
sH.prototype[Symbol.iterator]=function(){return NQr(this.__iterator__(!0)).toEs6()};
sH.prototype.clear=function(){var x=Array.from(this);x=_.O(x);for(var L=x.next();!L.done;L=x.next())this.remove(L.value)};_.E9(lj,sH);_.K=lj.prototype;_.K.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var x=this.storage_;if(x)try{x.setItem("__sak","1");x.removeItem("__sak");var L=!0}catch(D){L=D instanceof DOMException&&(D.name==="QuotaExceededError"||D.code===22||D.code===1014||D.name==="NS_ERROR_DOM_QUOTA_REACHED")&&x&&x.length!==0}else L=!1;this.cachedIsStorageAvailable_=L}return this.cachedIsStorageAvailable_};
_.K.set=function(x,L){TT(this);try{this.storage_.setItem(x,L)}catch(D){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.K.get=function(x){TT(this);x=this.storage_.getItem(x);if(typeof x!=="string"&&x!==null)throw"Storage mechanism: Invalid value was encountered";return x};
_.K.remove=function(x){TT(this);this.storage_.removeItem(x)};
_.K.getCount=function(){TT(this);return this.storage_.length};
_.K.__iterator__=function(x){TT(this);var L=0,D=this.storage_,S=new ko;S.next=function(){if(L>=D.length)return pd;var Q=D.key(L++);if(x)return mk(Q);Q=D.getItem(Q);if(typeof Q!=="string")throw"Storage mechanism: Invalid value was encountered";return mk(Q)};
return S};
_.K.clear=function(){TT(this);this.storage_.clear()};
_.K.key=function(x){TT(this);return this.storage_.key(x)};
var TT=function(x){if(x.storage_==null)throw Error("Qc");x.isAvailable()||JG(Error("Qc"))};_.E9(BDb,lj);_.E9(WHc,lj);_.E9(U2,sH);U2.prototype.set=function(x,L){this.mechanism_.set(this.JSC$10628_prefix_+x,L)};
U2.prototype.get=function(x){return this.mechanism_.get(this.JSC$10628_prefix_+x)};
U2.prototype.remove=function(x){this.mechanism_.remove(this.JSC$10628_prefix_+x)};
U2.prototype.__iterator__=function(x){var L=this.mechanism_[Symbol.iterator](),D=this,S=new ko;S.next=function(){var Q=L.next();if(Q.done)return Q;for(Q=Q.value;Q.slice(0,D.JSC$10628_prefix_.length)!=D.JSC$10628_prefix_;){Q=L.next();if(Q.done)return Q;Q=Q.value}return mk(x?Q.slice(D.JSC$10628_prefix_.length):D.mechanism_.get(Q))};
return S};_.Ng=function(x){this.expiringStorage_=(x=_.q40(x))?new CH(x):null;this.JSC$10632_domain_=document.domain||window.location.hostname};
_.Ng.prototype.set=function(x,L,D,S){D=D||31104E3;this.remove(x);if(this.expiringStorage_)try{this.expiringStorage_.set(x,L,Date.now()+D*1E3);return}catch(J){}var Q="";if(S)try{Q=escape((0,_.iO)(L))}catch(J){return}else Q=escape(L);_.FD(x,Q,D,this.JSC$10632_domain_)};
_.Ng.prototype.get=function(x,L){var D=void 0,S=!this.expiringStorage_;if(!S)try{D=this.expiringStorage_.get(x)}catch(Q){S=!0}if(S&&(D=_.YQ.get(x,void 0))&&(D=unescape(D),L))try{D=JSON.parse(D)}catch(Q){this.remove(x),D=void 0}return D};
_.Ng.prototype.remove=function(x){this.expiringStorage_&&this.expiringStorage_.remove(x);_.e$s(x,"/",this.JSC$10632_domain_)};
_.Ng.prototype.getCreationTime=function(x){return this.expiringStorage_&&(x=(this.expiringStorage_.getWrapper(x)||{}).creation,typeof x==="number")?x:null};var $UO=function(){var x;return function(){x||(x=new _.Ng("ytidb"));return x}}();var NDc;_.BY=[];NDc=!1;var ZBb=i7n||foG;var ep={},f5G=(ep.AUTH_INVALID="No user identifier specified.",ep.EXPLICIT_ABORT="Transaction was explicitly aborted.",ep.IDB_NOT_SUPPORTED="IndexedDB is not supported.",ep.MISSING_INDEX="Index not created.",ep.MISSING_OBJECT_STORES="Object stores not created.",ep.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",ep.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",ep.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",ep.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",ep.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",ep.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",ep.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",ep),Rs={},o3B=(Rs.AUTH_INVALID="ERROR",Rs.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",Rs.EXPLICIT_ABORT="IGNORED",
Rs.IDB_NOT_SUPPORTED="ERROR",Rs.MISSING_INDEX="WARNING",Rs.MISSING_OBJECT_STORES="ERROR",Rs.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",Rs.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",Rs.QUOTA_EXCEEDED="WARNING",Rs.QUOTA_MAYBE_EXCEEDED="WARNING",Rs.UNKNOWN_ABORT="WARNING",Rs.INCOMPATIBLE_DB_VERSION="WARNING",Rs),GT={},a5A=(GT.AUTH_INVALID=!1,GT.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,GT.EXPLICIT_ABORT=!1,GT.IDB_NOT_SUPPORTED=!1,GT.MISSING_INDEX=!1,GT.MISSING_OBJECT_STORES=!1,GT.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,GT.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,GT.QUOTA_EXCEEDED=!1,GT.QUOTA_MAYBE_EXCEEDED=!0,GT.UNKNOWN_ABORT=!0,GT.INCOMPATIBLE_DB_VERSION=!1,GT),Nw=function(x,L,D,S,Q){L=L===void 0?{}:L;D=D===void 0?f5G[x]:D;S=S===void 0?o3B[x]:S;Q=Q===void 0?a5A[x]:Q;_.RZ.call(this,D,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:x},L));this.type=x;this.message=D;this.level=S;this.retryable=Q;Object.setPrototypeOf(this,Nw.prototype)};
_.p(Nw,_.RZ);var zoW=function(x,L){Nw.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:L,foundObjectStores:x},f5G.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,zoW.prototype)};
_.p(zoW,Nw);var ao0=function(x,L){var D=Error.call(this);this.message=D.message;"stack"in D&&(this.stack=D.stack);this.index=x;this.objectStore=L;Object.setPrototypeOf(this,ao0.prototype)};
_.p(ao0,Error);var z$c=["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 aZ=function(x){this.executor=x},oZ=function(x){var L=this;
this.state={status:"PENDING"};this.JSC$10660_onFulfilled=[];this.JSC$10660_onRejected=[];x=x.executor;var D=function(Q){if(L.state.status==="PENDING"){L.state={status:"FULFILLED",value:Q};Q=_.O(L.JSC$10660_onFulfilled);for(var J=Q.next();!J.done;J=Q.next())J=J.value,J()}},S=function(Q){if(L.state.status==="PENDING"){L.state={status:"REJECTED",
reason:Q};Q=_.O(L.JSC$10660_onRejected);for(var J=Q.next();!J.done;J=Q.next())J=J.value,J()}};
try{x(D,S)}catch(Q){S(Q)}};
oZ.all=function(x){return new oZ(new aZ(function(L,D){var S=[],Q=x.length;Q===0&&L(S);for(var J={i$jscomp$468:0};J.i$jscomp$468<x.length;J={i$jscomp$468:J.i$jscomp$468},++J.i$jscomp$468)oZ.resolve(x[J.i$jscomp$468]).then(function(Z){return function(y){S[Z.i$jscomp$468]=y;Q--;Q===0&&L(S)}}(J)).catch(function(Z){D(Z)})}))};
oZ.resolve=function(x){return new oZ(new aZ(function(L,D){x instanceof oZ?x.then(L,D):L(x)}))};
oZ.reject=function(x){return new oZ(new aZ(function(L,D){D(x)}))};
oZ.prototype.then=function(x,L){var D=this,S=x!=null?x:nNf,Q=L!=null?L:c20;return new oZ(new aZ(function(J,Z){D.state.status==="PENDING"?(D.JSC$10660_onFulfilled.push(function(){Xvd(D,D,S,J,Z)}),D.JSC$10660_onRejected.push(function(){c6C(D,D,Q,J,Z)})):D.state.status==="FULFILLED"?Xvd(D,D,S,J,Z):D.state.status==="REJECTED"&&c6C(D,D,Q,J,Z)}))};
oZ.prototype.catch=function(x){return this.then(void 0,x)};
var Xvd=function(x,L,D,S,Q){try{if(x.state.status!=="FULFILLED")throw Error("Tc");var J=D(x.state.value);J instanceof oZ?n3H(x,L,J,S,Q):S(J)}catch(Z){Q(Z)}},c6C=function(x,L,D,S,Q){try{if(x.state.status!=="REJECTED")throw Error("Uc");
var J=D(x.state.reason);J instanceof oZ?n3H(x,L,J,S,Q):S(J)}catch(Z){Q(Z)}},n3H=function(x,L,D,S,Q){L===D?Q(new TypeError("Vc")):D.then(function(J){J instanceof oZ?n3H(x,L,J,S,Q):S(J)},function(J){Q(J)})};var Cd;Cd=window;_.y5=Cd.ytcsi&&Cd.ytcsi.now?Cd.ytcsi.now:Cd.performance&&Cd.performance.timing&&Cd.performance.now&&Cd.performance.timing.navigationStart?function(){return Cd.performance.timing.navigationStart+Cd.performance.now()}:function(){return(new Date).getTime()};var XD=function(x,L){this.JSC$10672_wrapped=x;this.options=L;this.transactionCount=0;this.startedMs=Math.round((0,_.y5)());this.hasUnknownAbortedTransaction=!1},lB=function(){return _.u("idb_immediate_commit")},Lzh,Du2,Bx,J3r;
XD.prototype.add=function(x,L,D){return _.LK(this,[x],{mode:"readwrite",enableRetries:!0,commit:lB()},function(S){return S.objectStore(x).add(L,D)})};
XD.prototype.clear=function(x){return _.LK(this,[x],{mode:"readwrite",enableRetries:!0},function(L){return L.objectStore(x).clear()})};
XD.prototype.close=function(){this.JSC$10672_wrapped.close();var x;((x=this.options)==null?0:x.closed)&&this.options.closed()};
XD.prototype.count=function(x,L){return _.LK(this,[x],{mode:"readonly",enableRetries:!0,commit:lB()},function(D){return D.objectStore(x).count(L)})};
var fK=function(x,L,D){x=x.JSC$10672_wrapped.createObjectStore(L,D);return new UH(x)};
XD.prototype.delete=function(x,L){return _.LK(this,[x],{mode:"readwrite",enableRetries:!0,commit:lB()&&!(L instanceof IDBKeyRange)},function(D){return D.objectStore(x).delete(L)})};
var tcr=function(x,L){return _.LK(x,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(D){return D.objectStore("ResponseStore").index("byInterface").delete(L)})};
XD.prototype.get=function(x,L){return _.LK(this,[x],{mode:"readonly",enableRetries:!0,commit:lB()},function(D){return D.objectStore(x).get(L)})};
XD.prototype.getAll=function(x,L,D){return _.LK(this,[x],{mode:"readonly",enableRetries:!0},function(S){return S.objectStore(x).getAll(L,D)})};
XD.prototype.put=function(x,L,D){return _.LK(this,[x],{mode:"readwrite",enableRetries:!0,commit:lB()},function(S){return S.objectStore(x).put(L,D)})};
XD.prototype.objectStoreNames=function(){return Array.from(this.JSC$10672_wrapped.objectStoreNames)};
_.LK=function(x,L,D,S){var Q,J,Z,y,E,P,v,V,h,H,k,T;return _.I(function(G){switch(G.nextAddress){case 1:var U={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof D==="string"?U.mode=D:Object.assign(U,D);Q=U;x.transactionCount++;J=Q.enableRetries?3:1;Z=0;case 2:if(y){G.jumpTo(4);break}Z++;E=Math.round((0,_.y5)());_.HH(G,5);P=x.JSC$10672_wrapped.transaction(L,Q.mode);U=G.yield;var l=!!Q.commit;var X=new cY(P);l=xuh(X,S,l);return U.call(G,l,7);case 7:return v=G.yieldResult,V=Math.round((0,_.y5)()),
Lzh(x,E,V,Z,void 0,L.join(),Q),G.return(v);case 5:h=_.mW(G);H=Math.round((0,_.y5)());k=Xac(h,x.JSC$10672_wrapped.name,L.join(),x.JSC$10672_wrapped.version);if((T=k instanceof Nw&&!k.retryable)||Z>=J)Lzh(x,E,H,Z,k,L.join(),Q),y=k;G.jumpTo(2);break;case 4:return G.return(Promise.reject(y))}})};
Lzh=function(x,L,D,S,Q,J,Z){L=D-L;Q?(Q instanceof Nw&&(Q.type==="QUOTA_EXCEEDED"||Q.type==="QUOTA_MAYBE_EXCEEDED")&&qw("QUOTA_EXCEEDED",{dbName:$Q(x.JSC$10672_wrapped.name),objectStoreNames:J,transactionCount:x.transactionCount,transactionMode:Z.mode}),Q instanceof Nw&&Q.type==="UNKNOWN_ABORT"&&(D-=x.startedMs,D<0&&D>=2147483648&&(D=0),qw("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:J,transactionDuration:L,transactionCount:x.transactionCount,dbDuration:D}),x.hasUnknownAbortedTransaction=!0),
Du2(x,!1,S,J,L,Z.tag),_.WY(Q)):Du2(x,!0,S,J,L,Z.tag)};
Du2=function(x,L,D,S,Q,J){qw("TRANSACTION_ENDED",{objectStoreNames:S,connectionHasUnknownAbortedTransaction:x.hasUnknownAbortedTransaction,duration:Q,isSuccessful:L,tryCount:D,tag:J===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":J})};
XD.prototype.getVersion=function(){return this.JSC$10672_wrapped.version};
XD.prototype.getName=function(){return this.JSC$10672_wrapped.name};
var UH=function(x){this.JSC$10687_wrapped=x};
UH.prototype.add=function(x,L){return zU(this.JSC$10687_wrapped.add(x,L))};
UH.prototype.autoIncrement=function(){return this.JSC$10687_wrapped.autoIncrement};
UH.prototype.clear=function(){return zU(this.JSC$10687_wrapped.clear()).then(function(){})};
var oE=function(x,L,D){x.JSC$10687_wrapped.createIndex(L,D,{unique:!1})};
UH.prototype.count=function(x){return zU(this.JSC$10687_wrapped.count(x))};
var SKi=function(x,L){return SV(x,{query:L},function(D){return D.delete().then(function(){return D.continue()})}).then(function(){})};
UH.prototype.delete=function(x){return x instanceof IDBKeyRange?SKi(this,x):zU(this.JSC$10687_wrapped.delete(x))};
UH.prototype.get=function(x){return zU(this.JSC$10687_wrapped.get(x))};
UH.prototype.getAll=function(x,L){return"getAll"in IDBObjectStore.prototype?zU(this.JSC$10687_wrapped.getAll(x,L)):QcB(this,x,L)};
var QcB=function(x,L,D){var S=[];return SV(x,{query:L},function(Q){if(!(D!==void 0&&S.length>=D))return S.push(Q.getValue()),Q.continue()}).then(function(){return S})};
UH.prototype.index=function(x){try{return new wI(this.JSC$10687_wrapped.index(x))}catch(L){if(L instanceof Error&&L.name==="NotFoundError")throw new ao0(x,this.JSC$10687_wrapped.name);throw L;}};
UH.prototype.getName=function(){return this.JSC$10687_wrapped.name};
UH.prototype.keyPath=function(){return this.JSC$10687_wrapped.keyPath};
UH.prototype.put=function(x,L){return zU(this.JSC$10687_wrapped.put(x,L))};
var SV=function(x,L,D){x=x.JSC$10687_wrapped.openCursor(L.query,L.direction);return J3r(x).then(function(S){return Ltw(S,D)})},cY=function(x){var L=this;
this.JSC$10695_wrapped=x;this.objectStoreCache=new Map;this.aborted=!1;this.done=new Promise(function(D,S){L.JSC$10695_wrapped.addEventListener("complete",function(){D()});
L.JSC$10695_wrapped.addEventListener("error",function(Q){Q.currentTarget===Q.target&&S(L.JSC$10695_wrapped.error)});
L.JSC$10695_wrapped.addEventListener("abort",function(){var Q=L.JSC$10695_wrapped.error;if(Q)S(Q);else if(!L.aborted){Q=Nw;for(var J=L.JSC$10695_wrapped.objectStoreNames,Z=[],y=0;y<J.length;y++){var E=J.item(y);if(E===null)throw Error("Wc");Z.push(E)}Q=new Q("UNKNOWN_ABORT",{objectStoreNames:Z.join(),dbName:L.JSC$10695_wrapped.db.name,mode:L.JSC$10695_wrapped.mode});S(Q)}})})},xuh=function(x,L,D){var S=new Promise(function(Q,J){try{var Z=L(x);
D&&x.commit();Z.then(function(y){Q(y)}).catch(J)}catch(y){J(y),x.abort()}});
return Promise.all([S,x.done]).then(function(Q){return _.O(Q).next().value})};
cY.prototype.abort=function(){this.JSC$10695_wrapped.abort();this.aborted=!0;throw new Nw("EXPLICIT_ABORT");};
cY.prototype.commit=function(){if(!this.aborted){var x,L;(L=(x=this.JSC$10695_wrapped).commit)==null||L.call(x)}};
cY.prototype.objectStore=function(x){x=this.JSC$10695_wrapped.objectStore(x);var L=this.objectStoreCache.get(x);L||(L=new UH(x),this.objectStoreCache.set(x,L));return L};
var wI=function(x){this.JSC$10697_wrapped=x};
wI.prototype.count=function(x){return zU(this.JSC$10697_wrapped.count(x))};
wI.prototype.delete=function(x){return _.IE(this,{query:x},function(L){return L.delete().then(function(){return L.continue()})})};
wI.prototype.get=function(x){return zU(this.JSC$10697_wrapped.get(x))};
wI.prototype.getAll=function(x,L){return"getAll"in IDBIndex.prototype?zU(this.JSC$10697_wrapped.getAll(x,L)):Kzi(this,x,L)};
var Kzi=function(x,L,D){var S=[];return _.IE(x,{query:L},function(Q){if(!(D!==void 0&&S.length>=D))return S.push(Q.getValue()),Q.continue()}).then(function(){return S})};
wI.prototype.keyPath=function(){return this.JSC$10697_wrapped.keyPath};
wI.prototype.unique=function(){return this.JSC$10697_wrapped.unique};
_.IE=function(x,L,D){x=x.JSC$10697_wrapped.openCursor(L.query===void 0?null:L.query,L.direction===void 0?"next":L.direction);return J3r(x).then(function(S){return Ltw(S,D)})};
Bx=function(x,L){this.request=x;this.cursor=L};
J3r=function(x){return zU(x).then(function(L){return L?new Bx(x,L):null})};
Bx.prototype.continue=function(x){this.cursor.continue(x);return J3r(this.request)};
Bx.prototype.delete=function(){return zU(this.cursor.delete()).then(function(){})};
Bx.prototype.getValue=function(){return this.cursor.value};
Bx.prototype.update=function(x){return zU(this.cursor.update(x))};var Wx=function(x,L){this.name=x;this.options=L;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},OL2;
Wx.prototype.openDb=function(x,L,D){D=D===void 0?{}:D;return SOf(x,L,D)};
Wx.prototype.delete=function(x){x=x===void 0?{}:x;return _.t8(this.name,x)};
OL2=function(x,L){return new Nw("INCOMPATIBLE_DB_VERSION",{dbName:x.name,oldVersion:x.options.version,newVersion:L})};
_.xg=function(x,L){if(!L)throw fH("openWithToken",$Q(x.name));return x.open()};
Wx.prototype.open=function(){var x=this;if(!this.isCompatible)throw OL2(this);if(this.connectionPromise)return this.connectionPromise;var L,D=function(){x.connectionPromise===L&&(x.connectionPromise=void 0)},S={blocking:function(J){J.close()},
closed:D,terminated:D,upgrade:this.options.upgrade},Q=function(){var J,Z,y,E,P,v,V,h,H,k;return _.I(function(T){switch(T.nextAddress){case 1:return Z=(J=Error().stack)!=null?J:"",_.HH(T,2),T.yield(x.openDb(x.name,x.options.version,S),4);case 4:for(var G=y=T.yieldResult,U=x.options,l=[],X=_.O(Object.keys(U.objectStores)),f=X.next();!f.done;f=X.next()){f=f.value;var N=U.objectStores[f],z=N.removedAtVersion===void 0?Number.MAX_VALUE:N.removedAtVersion;!(G.JSC$10672_wrapped.version>=N.addedAtVersion)||
G.JSC$10672_wrapped.version>=z||G.JSC$10672_wrapped.objectStoreNames.contains(f)||l.push(f)}E=l;if(E.length===0){T.jumpTo(5);break}P=Object.keys(x.options.objectStores);v=y.objectStoreNames();if(x.timesReopenedToFixMissingObjectStore<_.dE("ytidb_reopen_db_retries",0))return x.timesReopenedToFixMissingObjectStore++,y.close(),_.WY(new Nw("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:x.name,expectedObjectStores:P,foundObjectStores:v})),T.return(Q());if(!(x.timesDeletedToFixMissingObjectStore<_.dE("ytidb_remake_db_retries",
1))){T.jumpTo(6);break}x.timesDeletedToFixMissingObjectStore++;return T.yield(x.delete(),7);case 7:return _.WY(new Nw("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:x.name,expectedObjectStores:P,foundObjectStores:v})),T.return(Q());case 6:throw new zoW(v,P);case 5:return T.return(y);case 2:V=_.mW(T);if(V instanceof DOMException?V.name!=="VersionError":"DOMError"in self&&V instanceof DOMError?V.name!=="VersionError":!(V instanceof Object&&"message"in V)||V.message!=="An attempt was made to open a database using a lower version than the existing version."){T.jumpTo(8);
break}return T.yield(x.openDb(x.name,void 0,Object.assign({},S,{upgrade:void 0})),9);case 9:h=T.yieldResult;H=h.getVersion();if(x.options.version!==void 0&&H>x.options.version+1)throw h.close(),x.isCompatible=!1,OL2(x,H);return T.return(h);case 8:throw D(),V instanceof Error&&!_.u("ytidb_async_stack_killswitch")&&(V.stack=V.stack+"\n"+Z.substring(Z.indexOf("\n")+1)),Xac(V,x.name,"",(k=x.options.version)!=null?k:-1);}})};
return this.connectionPromise=L=Q()};var QqO=new Wx("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(x,L){L(1)&&fK(x,"databases",{keyPath:"actualName"})}});var E8N,ydN=new function(){}(new function(){});new _.Hq;var ZLA=function(x,L){Wx.call(this,x,L);this.options=L;A8(x)};
_.p(ZLA,Wx);var g80=function(x,L){var D;return function(){D||(D=new ZLA(x,L));return D}};
ZLA.prototype.openDb=function(x,L,D){D=D===void 0?{}:D;return(this.options.shared?v84:jq4)(x,L,Object.assign({},D))};
ZLA.prototype.delete=function(x){x=x===void 0?{}:x;return(this.options.shared?uA3:VRb)(this.name,x)};var y3A={},kFw=ZA("ytGcfConfig",{objectStores:(y3A.coldConfigStore={addedAtVersion:1},y3A.hotConfigStore={addedAtVersion:1},y3A),shared:!1,upgrade:function(x,L){L(1)&&(oE(fK(x,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),oE(fK(x,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var IRh=function(){_.Te.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var x=_.o1("yt.gcf.config.hotUpdateCallbacks");x?(this.localHotConfigJobQueue=[].concat(_.lP(x)),this.sharedHotConfigJobQueue=x):(this.sharedHotConfigJobQueue=[],_.KK("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.p(IRh,_.Te);IRh.prototype.disposeInternal=function(){for(var x=_.O(this.localHotConfigJobQueue),L=x.next();!L.done;L=x.next()){var D=this.sharedHotConfigJobQueue;L=D.indexOf(L.value);L>=0&&D.splice(L,1)}this.localHotConfigJobQueue.length=0;_.Te.prototype.disposeInternal.call(this)};var e7=function(){var x=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new IRh;this.TEST_ONLY={initializeConfigDb:function(){x.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return x.coldGlobalConfigGroup},
setHotConfigGroup:function(L){E7i(x,L)},
setHotHashData:function(L){x.setHotHashData(L)},
setColdConfigGroup:function(L){Mod(x,L)},
getColdHashData:function(){return x.coldHashData},
getHotHashData:function(){return x.hotHashData},
getHotConfigGroup:function(){return x.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return duG()},
getExportedHotConfigGroup:function(){return ql()},
getExportedColdHashData:function(){return _.o1("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.o1("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){Pz_(x)},
resetInstance:function(){x.setHotHashData(void 0);jcr(x);delete e7.instance},
setDebounceTimer:function(L){x.debounceTimer=L},
getDebounceTimer:function(){return x.debounceTimer}}},v7W=function(){if(!e7.instance){var x=new e7;
e7.instance=x}return e7.instance},HLR=function(x){var L;
_.I(function(D){if(D.nextAddress==1)return _.u("start_client_gcf")||_.u("delete_gcf_config_db")?_.u("start_client_gcf")?D.yield(_.OD(),3):D.jumpTo(2):D.return();D.nextAddress!=2&&((L=D.yieldResult)&&_.eT()&&!_.u("delete_gcf_config_db")?(x.isConfigDbInitialized=!0,Pz_(x)):(Vo_(x),h5Q(x)));return _.u("delete_gcf_config_db")?D.yield(sq0(),0):D.jumpTo(0)})},RR=function(){var x;
return(x=ql())!=null?x:_.$6("RAW_HOT_CONFIG_GROUP")},uYG=function(x){var L,D,S,Q,J,Z;
return _.I(function(y){switch(y.nextAddress){case 1:if(x.hotGlobalConfigGroup)return y.return(ql());if(!x.isConfigDbInitialized)return L=fH("getHotConfig IDB not initialized"),_.X0(L),y.return(Promise.reject(L));D=JE();S=_.$6("TIME_CREATED_MS");if(!D){Q=fH("getHotConfig token error");_.X0(Q);y.jumpTo(2);break}return y.yield(Fth(D),3);case 3:if((J=y.yieldResult)&&J.timestamp>S)return E7i(x,J.config),x.setHotHashData(J.hashData),y.return(ql());case 2:h5Q(x);if(!(D&&x.hotGlobalConfigGroup&&x.hotHashData)){y.jumpTo(4);
break}return y.yield(mBN(x.hotGlobalConfigGroup,x.hotHashData,D,S),4);case 4:return x.hotGlobalConfigGroup?y.return(ql()):(Z=new _.RZ("Config not available in ytConfig"),_.X0(Z),y.return(Promise.reject(Z)))}})},k0Q=function(x){var L,D,S,Q,J,Z;
return _.I(function(y){switch(y.nextAddress){case 1:if(x.coldGlobalConfigGroup)return y.return(duG());if(!x.isConfigDbInitialized)return L=fH("getColdConfig IDB not initialized"),_.X0(L),y.return(Promise.reject(L));D=JE();S=_.$6("TIME_CREATED_MS");if(!D){Q=fH("getColdConfig");_.X0(Q);y.jumpTo(2);break}return y.yield(YOs(D),3);case 3:if((J=y.yieldResult)&&J.timestamp>S)return Mod(x,J.config),g7G(x,J.configData),jcr(x,J.hashData),y.return(duG());case 2:Vo_(x);if(!(D&&x.coldGlobalConfigGroup&&x.coldHashData&&
x.configData)){y.jumpTo(4);break}return y.yield(bBs(x.coldGlobalConfigGroup,x.coldHashData,x.configData,D,S),4);case 4:return x.coldGlobalConfigGroup?y.return(duG()):(Z=new _.RZ("Config not available in ytConfig"),_.X0(Z),y.return(Promise.reject(Z)))}})},Pz_=function(x){if(!x.hotGlobalConfigGroup||!x.coldGlobalConfigGroup){if(!JE()){var L=fH("scheduleGetConfigs");
_.X0(L)}x.initJob||(x.initJob=_.WW.addLowPriorityJob(function(){return _.I(function(D){switch(D.nextAddress){case 1:return _.HH(D,2),D.yield(uYG(x),4);case 4:_.nH(D,3);break;case 2:_.mW(D);case 3:return _.HH(D,5),D.yield(k0Q(x),7);case 7:_.nH(D,6);break;case 5:_.mW(D);case 6:x.initJob&&(x.initJob=0),_.Y2(D)}})},100))}},bX3=function(x,L,D){var S,Q,J;
return _.I(function(Z){switch(Z.nextAddress){case 1:if(!_.u("start_client_gcf")){Z.jumpTo(0);break}D&&E7i(x,D);x.setHotHashData(L);S=JE();if(!S){Z.jumpTo(3);break}if(D){Z.jumpTo(4);break}return Z.yield(Fth(S),5);case 5:Q=Z.yieldResult,D=(J=Q)==null?void 0:J.config;case 4:return Z.yield(mBN(D,L,S),3);case 3:if(D)for(var y=D,E=_.O(x.configUpdateService.sharedHotConfigJobQueue),P=E.next();!P.done;P=E.next())P=P.value,P(y);_.Y2(Z)}})},Yv3=function(x,L,D){var S,Q,J,Z;
return _.I(function(y){if(y.nextAddress==1){if(!_.u("start_client_gcf"))return y.jumpTo(0);jcr(x,L);return(S=JE())?D?y.jumpTo(4):y.yield(YOs(S),5):y.jumpTo(0)}y.nextAddress!=4&&(Q=y.yieldResult,D=(J=Q)==null?void 0:J.config);if(!D)return y.jumpTo(0);Z=D.configData;return y.yield(bBs(D,L,Z,S),0)})},o8s=function(){var x=v7W(),L=(0,_.y5)()-x.debounceTimer;
if(!(x.debounceTimer!==0&&L<_.dE("send_config_hash_timer"))){L=_.o1("yt.gcf.config.coldConfigData");var D=_.o1("yt.gcf.config.hotHashData"),S=_.o1("yt.gcf.config.coldHashData");L&&D&&S&&(x.debounceTimer=(0,_.y5)());return{coldConfigData:L,hotHashData:D,coldHashData:S}}},Vo_=function(x){Mod(x,_.$6("RAW_COLD_CONFIG_GROUP"));
jcr(x,_.$6("SERIALIZED_COLD_HASH_DATA"));var L;g7G(x,(L=x.coldGlobalConfigGroup)==null?void 0:L.configData)},h5Q=function(x){E7i(x,_.$6("RAW_HOT_CONFIG_GROUP"));
x.setHotHashData(_.$6("SERIALIZED_HOT_HASH_DATA"))},E7i=function(x,L){x.hotGlobalConfigGroup=L;
_.KK("yt.gcf.config.hotConfigGroup",x.hotGlobalConfigGroup||null)},Mod=function(x,L){x.coldGlobalConfigGroup=L;
_.KK("yt.gcf.config.coldConfigGroup",x.coldGlobalConfigGroup||null)};
e7.prototype.setHotHashData=function(x){this.hotHashData=x;_.KK("yt.gcf.config.hotHashData",this.hotHashData||null)};
var jcr=function(x,L){x.coldHashData=L;_.KK("yt.gcf.config.coldHashData",x.coldHashData||null)},g7G=function(x,L){x.configData=L;
_.KK("yt.gcf.config.coldConfigData",x.configData||null)},ql=function(){return _.o1("yt.gcf.config.hotConfigGroup")},duG=function(){return _.o1("yt.gcf.config.coldConfigGroup")};var u7={},poh=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";u7.assign=function(x){for(var L=Array.prototype.slice.call(arguments,1);L.length;){var D=L.shift();if(D){if(typeof D!=="object")throw new TypeError("Zc`"+D);for(var S in D)Object.prototype.hasOwnProperty.call(D,S)&&(x[S]=D[S])}}return x};
u7.shrinkBuf=function(x,L){if(x.length===L)return x;if(x.subarray)return x.subarray(0,L);x.length=L;return x};
var mui={arraySet:function(x,L,D,S,Q){if(L.subarray&&x.subarray)x.set(L.subarray(D,D+S),Q);else for(var J=0;J<S;J++)x[Q+J]=L[D+J]},
flattenChunks:function(x){var L,D;var S=D=0;for(L=x.length;S<L;S++)D+=x[S].length;var Q=new Uint8Array(D);S=D=0;for(L=x.length;S<L;S++){var J=x[S];Q.set(J,D);D+=J.length}return Q}},bL_={arraySet:function(x,L,D,S,Q){for(var J=0;J<S;J++)x[Q+J]=L[D+J]},
flattenChunks:function(x){return[].concat.apply([],x)}};
u7.setTyped=function(){poh?(u7.Buf8=Uint8Array,u7.Buf16=Uint16Array,u7.Buf32=Int32Array,u7.assign(u7,mui)):(u7.Buf8=Array,u7.Buf16=Array,u7.Buf32=Array,u7.assign(u7,bL_))};
u7.setTyped();var YKQ=!0;try{new Uint8Array(1)}catch(x){YKQ=!1}
var FXf=function(x){var L,D,S=x.length,Q=0;for(L=0;L<S;L++){var J=x.charCodeAt(L);if((J&64512)===55296&&L+1<S){var Z=x.charCodeAt(L+1);(Z&64512)===56320&&(J=65536+(J-55296<<10)+(Z-56320),L++)}Q+=J<128?1:J<2048?2:J<65536?3:4}var y=new u7.Buf8(Q);for(L=D=0;D<Q;L++)J=x.charCodeAt(L),(J&64512)===55296&&L+1<S&&(Z=x.charCodeAt(L+1),(Z&64512)===56320&&(J=65536+(J-55296<<10)+(Z-56320),L++)),J<128?y[D++]=J:(J<2048?y[D++]=192|J>>>6:(J<65536?y[D++]=224|J>>>12:(y[D++]=240|J>>>18,y[D++]=128|J>>>12&63),y[D++]=
128|J>>>6&63),y[D++]=128|J&63);return y};var PN0={};PN0=function(x,L,D,S){var Q=x&65535|0;x=x>>>16&65535|0;for(var J;D!==0;){J=D>2E3?2E3:D;D-=J;do Q=Q+L[S++]|0,x=x+Q|0;while(--J);Q%=65521;x%=65521}return Q|x<<16|0};for(var CK={},AS,FzA=[],scQ=0;scQ<256;scQ++){AS=scQ;for(var TrR=0;TrR<8;TrR++)AS=AS&1?3988292384^AS>>>1:AS>>>1;FzA[scQ]=AS}CK=function(x,L,D,S){D=S+D;for(x^=-1;S<D;S++)x=x>>>8^FzA[(x^L[S])&255];return x^-1};var mN={};mN={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 SYw=[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],Jq4=[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],YY0=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Mrf=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],sD=Array(576);vW(sD);var T3=Array(60);vW(T3);var kg=Array(512);vW(kg);var gt=Array(256);vW(gt);var QWO=Array(29);vW(QWO);var KX4=Array(30);vW(KX4);var pPb,m$c,b$n,kVh=!1;var BW;
BW=[new wt(0,0,0,0,function(x,L){var D=65535;for(D>x.pending_buf_size-5&&(D=x.pending_buf_size-5);;){if(x.lookahead<=1){l7(x);if(x.lookahead===0&&L===0)return 1;if(x.lookahead===0)break}x.strstart+=x.lookahead;x.lookahead=0;var S=x.block_start+D;if(x.strstart===0||x.strstart>=S)if(x.lookahead=x.strstart-S,x.strstart=S,eV(x,!1),x.strm.avail_out===0)return 1;if(x.strstart-x.block_start>=x.w_size-262&&(eV(x,!1),x.strm.avail_out===0))return 1}x.insert=0;if(L===4)return eV(x,!0),x.strm.avail_out===0?3:
4;x.strstart>x.block_start&&eV(x,!1);return 1}),
new wt(4,4,8,4,jWc),new wt(4,5,16,8,jWc),new wt(4,6,32,32,jWc),new wt(4,4,16,16,UD),new wt(8,16,32,32,UD),new wt(8,16,128,128,UD),new wt(8,32,128,256,UD),new wt(32,128,258,1024,UD),new wt(32,258,258,4096,UD)];var g9G={};g9G=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 sWN=Object.prototype.toString;
u10.prototype.push=function(x,L){var D=this.strm,S=this.options.chunkSize;if(this.ended)return!1;var Q=L===~~L?L:L===!0?4:0;typeof x==="string"?D.input=FXf(x):sWN.call(x)==="[object ArrayBuffer]"?D.input=new Uint8Array(x):D.input=x;D.next_in=0;D.avail_in=D.input.length;do{D.avail_out===0&&(D.output=new u7.Buf8(S),D.next_out=0,D.avail_out=S);x=H$h(D,Q);if(x!==1&&x!==0)return e5i(this,x),this.ended=!0,!1;if(D.avail_out===0||D.avail_in===0&&(Q===4||Q===2))if(this.options.to==="string"){var J=u7.shrinkBuf(D.output,
D.next_out);L=J;J=J.length;if(J<65537&&(L.subarray&&YKQ||!L.subarray))L=String.fromCharCode.apply(null,u7.shrinkBuf(L,J));else{for(var Z="",y=0;y<J;y++)Z+=String.fromCharCode(L[y]);L=Z}this.chunks.push(L)}else L=u7.shrinkBuf(D.output,D.next_out),this.chunks.push(L)}while((D.avail_in>0||D.avail_out===0)&&x!==1);if(Q===4)return(D=this.strm)&&D.state?(S=D.state.status,S!==42&&S!==69&&S!==73&&S!==91&&S!==103&&S!==113&&S!==666?x=b7(D,-2):(D.state=null,x=S===113?b7(D,-3):0)):x=-2,e5i(this,x),this.ended=
!0,x===0;Q===2&&(e5i(this,0),D.avail_out=0);return!0};
var e5i=function(x,L){L===0&&(x.result=x.options.to==="string"?x.chunks.join(""):u7.flattenChunks(x.chunks));x.chunks=[];x.err=L;x.msg=x.strm.msg};var R5Q=typeof TextEncoder!=="undefined"?new TextEncoder:null,Q6c=R5Q?function(x){return R5Q.encode(x)}:function(x){x=_.s7(x);
for(var L=new Uint8Array(x.length),D=0;D<L.length;D++)L[D]=x[D];return L};var A4s={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},r4f={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var $o=function(x,L){this.version=x;this.args=L};
$o.prototype.serialize=function(){return{version:this.version,args:this.args}};var CNs=function(x,L){this.topic=x;this.dataClass=L};
CNs.prototype.toString=function(){return this.topic};var G0Q=_.o1("ytPubsub2Pubsub2Instance")||new _.mv;_.mv.prototype.subscribe=_.mv.prototype.subscribe;_.mv.prototype.unsubscribeByKey=_.mv.prototype.unsubscribeByKey;_.mv.prototype.publish=_.mv.prototype.publish;_.mv.prototype.clear=_.mv.prototype.clear;_.KK("ytPubsub2Pubsub2Instance",G0Q);var GVf=_.o1("ytPubsub2Pubsub2SubscribedKeys")||{};_.KK("ytPubsub2Pubsub2SubscribedKeys",GVf);var U$0=_.o1("ytPubsub2Pubsub2TopicToKeys")||{};_.KK("ytPubsub2Pubsub2TopicToKeys",U$0);
var l4b=_.o1("ytPubsub2Pubsub2IsAsync")||{};_.KK("ytPubsub2Pubsub2IsAsync",l4b);_.KK("ytPubsub2Pubsub2SkipSubKey",null);var f4f=void 0,NcO=void 0;var xL3=_.dE("max_body_size_to_compress",5E5),LA4=_.dE("min_body_size_to_compress",500),AE=!0,OIb=0,$g=0,KAf=_.dE("compression_performance_threshold_lr",250),ZI4=_.dE("slow_compressions_before_abandon_count",4),zKN=!1,XPG=new Map,Sk3=1,DLN=!0;_.E9(rt,Ei4);rt.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 CzC=function(x,L,D){D||(D=0);var S=x.W_;if(typeof L==="string")for(var Q=0;Q<16;Q++)S[Q]=L.charCodeAt(D)<<24|L.charCodeAt(D+1)<<16|L.charCodeAt(D+2)<<8|L.charCodeAt(D+3),D+=4;else for(Q=0;Q<16;Q++)S[Q]=L[D]<<24|L[D+1]<<16|L[D+2]<<8|L[D+3],D+=4;for(L=16;L<80;L++)D=S[L-3]^S[L-8]^S[L-14]^S[L-16],S[L]=(D<<1|D>>>31)&4294967295;L=x.chain_[0];D=x.chain_[1];Q=x.chain_[2];for(var J=x.chain_[3],Z=x.chain_[4],y,E,P=0;P<80;P++)P<40?P<20?(y=J^D&(Q^J),E=1518500249):(y=D^Q^J,E=1859775393):P<60?(y=D&Q|J&(D|Q),
E=2400959708):(y=D^Q^J,E=3395469782),y=(L<<5|L>>>27)+y+Z+E+S[P]&4294967295,Z=J,J=Q,Q=(D<<30|D>>>2)&4294967295,D=L,L=y;x.chain_[0]=x.chain_[0]+L&4294967295;x.chain_[1]=x.chain_[1]+D&4294967295;x.chain_[2]=x.chain_[2]+Q&4294967295;x.chain_[3]=x.chain_[3]+J&4294967295;x.chain_[4]=x.chain_[4]+Z&4294967295};
rt.prototype.update=function(x,L){if(x!=null){L===void 0&&(L=x.length);for(var D=L-this.blockSize,S=0,Q=this.buf_,J=this.inbuf_;S<L;){if(J==0)for(;S<=D;)CzC(this,x,S),S+=this.blockSize;if(typeof x==="string")for(;S<L;){if(Q[J]=x.charCodeAt(S),++J,++S,J==this.blockSize){CzC(this,Q);J=0;break}}else for(;S<L;)if(Q[J]=x[S],++J,++S,J==this.blockSize){CzC(this,Q);J=0;break}}this.inbuf_=J;this.total_+=L}};
rt.prototype.digest=function(){var x=[],L=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var D=this.blockSize-1;D>=56;D--)this.buf_[D]=L&255,L/=256;CzC(this,this.buf_);for(D=L=0;D<5;D++)for(var S=24;S>=0;S-=8)x[L]=this.chain_[D]>>S&255,++L;return x};var Pip;var Nl=function(x){var L=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(v){L.databaseToken=v},
triggerThrottle:function(){L.throttledSend()},
cancelThrottle:function(){L.cancelThrottledSend()},
immediateSend:function(v){return _.I(function(V){return V.yield(L.immediateSend(v),0)})},
requestWithinAgeLimit:function(v,V){return L.requestWithinAgeLimit(v,V)},
retryQueuedRequests:function(){L.retryQueuedRequests()}};
var D;this.throttleTimeout=(D=x.throttleTimeout)!=null?D:100;var S;this.retryMaxAttempts=(S=x.retryMaxAttempts)!=null?S:1;var Q;this.requestAgeLimitMs=(Q=x.requestAgeLimitMs)!=null?Q:2592E6;var J;this.queuedRequestAgeLimitMs=(J=x.queuedRequestAgeLimitMs)!=null?J:12E4;var Z;this.retryDelayMs=(Z=x.retryDelayMs)!=null?Z:5E3;var y;this.databaseToken=(y=x.databaseToken)!=null?y:void 0;this.enableCleaning=!!x.enableCleaning;var E;this.cleaningRate=(E=x.cleaningRate)!=null?E:.1;var P;this.potentialEsfErrorLimit=
(P=x.potentialEsfErrorLimit)!=null?P:10;x.handleError&&(this.handleError=x.handleError);x.handleWarning&&(this.handleWarning=x.handleWarning);x.disableYtIdbTransactions&&(this.disableYtIdbTransactions=x.disableYtIdbTransactions);x.bypassDbTokenDependency&&(this.bypassDbTokenDependency=x.bypassDbTokenDependency);this.getBooleanFlag=x.getBooleanFlag;this.jobManager=x.jobManager;this.logsStore=x.logsStore;this.networkManager=x.networkManager;this.sendFn=x.sendFn;this.onlineEvent=x.onlineEvent;this.offlineEvent=
x.offlineEvent;rI(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&lRi(this)},lRi=function(x){rI(x)&&!x.disableYtIdbTransactions&&(x.initialized=!0,x.enableCleaning&&Math.random()<=x.cleaningRate&&x.logsStore.cleanLogsStore(x.databaseToken),x.retryQueuedRequests(),x.networkManager.isNetworkAvailable()&&x.throttledSend(),x.networkManager.listen(x.onlineEvent,x.throttledSend.bind(x)),x.networkManager.listen(x.offlineEvent,x.cancelThrottledSend.bind(x)))};
_.K=Nl.prototype;_.K.writeThenSend=function(x,L){var D=this;L=L===void 0?{}:L;if(rI(this)&&this.initialized){var S={url:x,options:L,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(S,this.databaseToken).then(function(Q){S.id=Q;D.networkManager.isNetworkAvailable()&&D.immediateSend(S)}).catch(function(Q){D.immediateSend(S);
Uu2(D,Q)})}else this.sendFn(x,L)};
_.K.sendThenWrite=function(x,L,D){var S=this;L=L===void 0?{}:L;if(rI(this)&&this.initialized){var Q={url:x,options:L,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(Q.skipRetry=D);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!Q.skipRetry){if(!Q.skipRetry){var J=L.onError?L.onError:function(){};
L.onError=function(Z,y){return _.I(function(E){if(E.nextAddress==1)return E.yield(S.logsStore.set(Q,S.databaseToken).catch(function(P){Uu2(S,P)}),2);
J(Z,y);_.Y2(E)})}}this.sendFn(x,L,Q.skipRetry)}else this.logsStore.set(Q,this.databaseToken).catch(function(Z){S.sendFn(x,L,Q.skipRetry);
Uu2(S,Z)})}else this.sendFn(x,L,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&D)};
_.K.sendAndWrite=function(x,L){var D=this;L=L===void 0?{}:L;if(rI(this)&&this.initialized){var S={url:x,options:L,timestamp:this.now(),status:"NEW",sendCount:0},Q=!1,J=L.onSuccess?L.onSuccess:function(){};
S.options.onSuccess=function(Z,y){S.id!==void 0?D.logsStore.deleteRequest(S.id,D.databaseToken):Q=!0;D.networkManager.networkStatusHint&&D.getBooleanFlag&&D.getBooleanFlag("vss_network_hint")&&D.networkManager.networkStatusHint(!0);J(Z,y)};
this.sendFn(S.url,S.options,void 0,!0);this.logsStore.set(S,this.databaseToken).then(function(Z){S.id=Z;Q&&D.logsStore.deleteRequest(S.id,D.databaseToken)}).catch(function(Z){Uu2(D,Z)})}else this.sendFn(x,L,void 0,!0)};
_.K.throttledSend=function(){var x=this;if(!rI(this))throw Error("bd");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var L;return _.I(function(D){if(D.nextAddress==1)return D.yield(x.logsStore.getMostRecentByStatus("NEW",x.databaseToken),2);if(D.nextAddress!=3)return L=D.yieldResult,L?D.yield(x.immediateSend(L),3):(x.cancelThrottledSend(),D.return());x.intervalJob&&(x.intervalJob=0,x.throttledSend());_.Y2(D)})},this.throttleTimeout))};
_.K.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.K.immediateSend=function(x){var L=this,D;return _.I(function(S){switch(S.nextAddress){case 1:if(!rI(L))throw Error("cd");if(x.id===void 0){S.jumpTo(2);break}return S.yield(L.logsStore.markAsQueued(x.id,L.databaseToken),3);case 3:(D=S.yieldResult)||L.handleWarning(Error("dd"));case 2:if(L.requestWithinAgeLimit(x,L.requestAgeLimitMs)){S.jumpTo(4);break}L.handleWarning(Error("ed"));if(x.id===void 0){S.jumpTo(5);break}return S.yield(L.logsStore.deleteRequest(x.id,L.databaseToken),5);case 5:return S.return();
case 4:x.skipRetry||(x=woA(L,x));if(!x){S.jumpTo(0);break}if(!x.skipRetry||x.id===void 0){S.jumpTo(8);break}return S.yield(L.logsStore.deleteRequest(x.id,L.databaseToken),8);case 8:L.sendFn(x.url,x.options,!!x.skipRetry),_.Y2(S)}})};
var woA=function(x,L){if(!rI(x))throw Error("fd");var D=L.options.onError?L.options.onError:function(){};
L.options.onError=function(Q,J){var Z,y,E,P;return _.I(function(v){switch(v.nextAddress){case 1:Z=HIc(J);(y=ufO(J))&&x.getBooleanFlag&&x.getBooleanFlag("web_enable_error_204")&&x.handleError(Error("gd"),L.url,J);if(!(x.getBooleanFlag&&x.getBooleanFlag("nwl_consider_error_code")&&Z||x.getBooleanFlag&&!x.getBooleanFlag("nwl_consider_error_code")&&x.potentialEsfErrorCounter<=x.potentialEsfErrorLimit)){v.jumpTo(2);break}if(!x.networkManager.sendNetworkCheckRequest){v.jumpTo(3);break}return v.yield(x.networkManager.sendNetworkCheckRequest(),
3);case 3:if(x.networkManager.isNetworkAvailable()){v.jumpTo(2);break}D(Q,J);if(!x.getBooleanFlag||!x.getBooleanFlag("nwl_consider_error_code")||((E=L)==null?void 0:E.id)===void 0){v.jumpTo(6);break}return v.yield(x.logsStore.resetRequest(L.id,x.databaseToken,!1),6);case 6:return v.return();case 2:if(x.getBooleanFlag&&x.getBooleanFlag("nwl_consider_error_code")&&!Z&&x.potentialEsfErrorCounter>x.potentialEsfErrorLimit)return v.return();x.potentialEsfErrorCounter++;if(((P=L)==null?void 0:P.id)===void 0){v.jumpTo(8);
break}return L.sendCount<x.retryMaxAttempts?v.yield(x.logsStore.resetRequest(L.id,x.databaseToken,!0,y?!1:void 0),12):v.yield(x.logsStore.deleteRequest(L.id,x.databaseToken),8);case 12:x.jobManager.addLowPriorityJob(function(){x.networkManager.isNetworkAvailable()&&x.throttledSend()},x.retryDelayMs);
case 8:D(Q,J),_.Y2(v)}})};
var S=L.options.onSuccess?L.options.onSuccess:function(){};
L.options.onSuccess=function(Q,J){var Z;return _.I(function(y){if(y.nextAddress==1)return((Z=L)==null?void 0:Z.id)===void 0?y.jumpTo(2):y.yield(x.logsStore.deleteRequest(L.id,x.databaseToken),2);x.networkManager.networkStatusHint&&x.getBooleanFlag&&x.getBooleanFlag("vss_network_hint")&&x.networkManager.networkStatusHint(!0);S(Q,J);_.Y2(y)})};
return L};
Nl.prototype.requestWithinAgeLimit=function(x,L){x=x.timestamp;return this.now()-x>=L?!1:!0};
Nl.prototype.retryQueuedRequests=function(){var x=this;if(!rI(this))throw Error("hd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(L){L&&!x.requestWithinAgeLimit(L,x.queuedRequestAgeLimitMs)?x.jobManager.addLowPriorityJob(function(){return _.I(function(D){if(D.nextAddress==1)return L.id===void 0?D.jumpTo(2):D.yield(x.logsStore.resetRequest(L.id,x.databaseToken),2);x.retryQueuedRequests();_.Y2(D)})}):x.networkManager.isNetworkAvailable()&&x.throttledSend()})};
var Uu2=function(x,L){x.writeError&&!x.networkManager.isNetworkAvailable()?x.writeError(L):x.handleError(L)},rI=function(x){return!!x.databaseToken||x.bypassDbTokenDependency};var gi3;var T4f={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,liveCreationWebrtcError:526,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,
visualElementHidden:73,visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,
spacecastSummaryRequested:88,spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,
vrCopresencePartyStats:153,vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,
buyFlowStarted:136,mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,
buyFlowEvent:167,kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,
transactionFlowPaymentCallBackReceived:387,transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,
outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,
ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,
watchTimeSegment:219,appWidthLayoutError:221,accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,
deviceContextEvent:244,templateResolutionException:245,musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,
ytbFileOpened:268,tfliteModelError:269,apiTest:270,yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,
watchRestoreAttempt:294,liteAccountSignIn:296,notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,
tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,
tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,
activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,
browseThumbnailPreloadEvent:379,finalPayload:380,mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,
gelDebuggingEvent:399,webLinkTtsPlayEnd:400,clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,
sfvEffectGlThreadBlockedEvent:420,mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,
musicOfflineMixtapePreferencesChanged:16,mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,
embedsVideoDataDidChange:441,shortsFirst:443,cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,
getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,
unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,
connectedSessionMisattributionEvent:514,producerProjectElementModified:515,adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525,reelsSequenceMutationEvent:527,watchZoomStateChange:528,metadataEditorEvent:529};var Br2={},RZh=ZA("ServiceWorkerLogsDatabase",{objectStores:(Br2.SWHealthLog={addedAtVersion:1},Br2),shared:!0,upgrade:function(x,L){L(1)&&oE(fK(x,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var qk0={},WAN=0;var NBh;var iB=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},nK=function(){if(!iB.instance){var x=_.o1("yt.networkRequestMonitor.instance")||new iB;
_.KK("yt.networkRequestMonitor.instance",x);iB.instance=x}return iB.instance};
iB.prototype.requestComplete=function(x,L){L&&(this.anyRequestHasSucceeded=!0);x=this.removeParams(x);this.requestMap.get(x)||this.requestMap.set(x,L)};
iB.prototype.isEndpointCFR=function(x){x=this.removeParams(x);return(x=this.requestMap.get(x))?!1:x===!1&&this.anyRequestHasSucceeded?!0:null};
iB.prototype.removeParams=function(x){return x.split("?")[0]};
iB.prototype.removeParams=iB.prototype.removeParams;iB.prototype.isEndpointCFR=iB.prototype.isEndpointCFR;iB.prototype.requestComplete=iB.prototype.requestComplete;iB.getInstance=nK;var fd=function(x){_.Bc.call(this);var L=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=x!=null?x:{addLowPriorityJob:function(Q,J){return setTimeout(Q,J)},
cancelJob:function(Q){clearTimeout(Q)}};
var D,S;this.isOnline=(S=(D=window.navigator)==null?void 0:D.onLine)!=null?S:!0;this.onNavigatorChange=function(){return _.I(function(Q){return Q.yield(WzB(L),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||qKR(this)};
_.p(fd,_.Bc);fd.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete fd.instance};
fd.prototype.isNetworkAvailable=function(){return this.isOnline};
var qKR=function(x){x.pollingJob=x.jobManager.addLowPriorityJob(function(){var L;return _.I(function(D){if(D.nextAddress==1)return x.isOnline?((L=window.navigator)==null?0:L.onLine)?D.jumpTo(3):D.yield(WzB(x),3):D.yield(WzB(x),3);qKR(x);_.Y2(D)})},3E4)},WzB=function(x,L){return x.networkRequestPromise?x.networkRequestPromise:x.networkRequestPromise=new Promise(function(D){var S,Q,J,Z;
return _.I(function(y){switch(y.nextAddress){case 1:return S=window.AbortController?new window.AbortController:void 0,J=(Q=S)==null?void 0:Q.signal,Z=!1,_.HH(y,2,3),S&&(x.abortTimeoutKey=x.jobManager.addLowPriorityJob(function(){S.abort()},L||2E4)),y.yield(fetch("/generate_204",{method:"HEAD",
signal:J}),5);case 5:Z=!0;case 3:_.gP(y);x.networkRequestPromise=void 0;x.abortTimeoutKey&&(x.jobManager.cancelJob(x.abortTimeoutKey),x.abortTimeoutKey=0);Z!==x.isOnline&&(x.isOnline=Z,x.isOnline?x.dispatchEvent("networkstatus-online"):x.dispatchEvent("networkstatus-offline"));D(Z);_.pZ(y,0);break;case 2:_.mW(y),Z=!1,y.jumpTo(3)}})})};var as=function(){_.Bc.call(this);var x=this;this.shouldFlushErrors=!1;fd.instance||(fd.instance=new fd(_.WW));this.sharedNetworkStatusManager=fd.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(x.shouldFlushErrors&&_.u("offline_error_handling")){var L=iI3().get("errors",!0);if(L){for(var D in L)if(L[D]){var S=new _.RZ(D,"sent via offline_errors");S.name=L[D].name;S.stack=L[D].stack;S.level=L[D].level;_.N9(S)}iI3().set("errors",{},2592E3,!0)}}})};
_.p(as,_.Bc);var A3Q=function(){if(!as.instance){var x=_.o1("yt.networkStatusManager.instance")||new as;_.KK("yt.networkStatusManager.instance",x);as.instance=x}return as.instance};
_.K=as.prototype;_.K.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.K.networkStatusHint=function(x){this.sharedNetworkStatusManager.isOnline=x};
_.K.getWindowStatus=function(){var x=window.navigator.onLine;return x===void 0?!0:x};
_.K.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.K.listen=function(x,L){return this.sharedNetworkStatusManager.listen(x,L)};
_.K.sendNetworkCheckRequest=function(x){x=WzB(this.sharedNetworkStatusManager,x);x.then(function(L){_.u("use_cfr_monitor")&&nK().requestComplete("generate_204",L)});
return x};
as.prototype.sendNetworkCheckRequest=as.prototype.sendNetworkCheckRequest;as.prototype.listen=as.prototype.listen;as.prototype.enableErrorFlushing=as.prototype.enableErrorFlushing;as.prototype.getWindowStatus=as.prototype.getWindowStatus;as.prototype.networkStatusHint=as.prototype.networkStatusHint;as.prototype.isNetworkAvailable=as.prototype.isNetworkAvailable;as.getInstance=A3Q;_.cW=function(x){x=x===void 0?{}:x;_.Bc.call(this);var L=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=A3Q();var D=_.o1("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);D&&(x.rateLimit?(this.rateLimit=x.rateLimit,D("networkstatus-online",function(){$u2(L,"publicytnetworkstatus-online")}),D("networkstatus-offline",function(){$u2(L,"publicytnetworkstatus-offline")})):(D("networkstatus-online",function(){L.dispatchEvent("publicytnetworkstatus-online")}),D("networkstatus-offline",
function(){L.dispatchEvent("publicytnetworkstatus-offline")})))};
_.p(_.cW,_.Bc);_.cW.prototype.isNetworkAvailable=function(){var x=_.o1("yt.networkStatusManager.instance.isNetworkAvailable");return x?x.bind(this.nsmInstance)():!0};
_.cW.prototype.networkStatusHint=function(x){var L=_.o1("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);L&&L(x)};
_.cW.prototype.sendNetworkCheckRequest=function(x){var L=this,D;return _.I(function(S){D=_.o1("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(L.nsmInstance);return _.u("skip_network_check_if_cfr")&&nK().isEndpointCFR("generate_204")?S.return(new Promise(function(Q){var J;L.networkStatusHint(((J=window.navigator)==null?void 0:J.onLine)||!0);Q(L.isNetworkAvailable())})):D?S.return(D(x)):S.return(!0)})};
var $u2=function(x,L){x.rateLimit?x.lastJobTime?(_.WW.cancelJob(x.schedulerJob),x.schedulerJob=_.WW.addLowPriorityJob(function(){x.lastPublicSignalSent!==L&&(x.dispatchEvent(L),x.lastPublicSignalSent=L,x.lastJobTime=(0,_.y5)())},x.rateLimit-((0,_.y5)()-x.lastJobTime))):(x.dispatchEvent(L),x.lastPublicSignalSent=L,x.lastJobTime=(0,_.y5)()):x.dispatchEvent(L)};var Xph,zT=function(){Nl.call(this,{logsStore:{cleanLogsStore:TBs,deleteRequest:s6f,getMostRecentByStatus:bI0,markAsQueued:Ykc,resetRequest:FAw,set:mLf},networkManager:_.cHb(),handleError:function(x,L,D){var S,Q=D==null?void 0:(S=D.error)==null?void 0:S.code;if(Q===400||Q===415){var J;x=new _.RZ(x.message,L,D==null?void 0:(J=D.error)==null?void 0:J.code);_.X0(x,void 0,void 0,void 0,!0)}else _.N9(x)},
handleWarning:_.X0,sendFn:aH0,now:_.y5,writeError:fHN,jobManager:_.RP(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.dE("potential_esf_error_limit",10),getBooleanFlag:_.u,disableYtIdbTransactions:!(_.eT()&&_.ni3())});this.initializationPromise=new _.Hq;_.u("networkless_immediately_drop_all_requests")&&eZ3();uA3("LogsDatabaseV2")};
_.p(zT,Nl);_.Nr2=function(){var x=_.o1("yt.networklessRequestController.instance");x||(x=new zT,_.KK("yt.networklessRequestController.instance",x),_.u("networkless_logging")&&_.OD().then(function(L){x.databaseToken=L;lRi(x);x.initializationPromise.resolve();x.enableCleaning&&Math.random()<=x.cleaningRate&&x.databaseToken&&CiN(x.databaseToken);_.u("networkless_immediately_drop_sw_health_store")&&r3C(x)}));
return x};
zT.prototype.writeThenSend=function(x,L){L||(L={});L=zZb(x,L);_.eT()||(this.initialized=!1);Nl.prototype.writeThenSend.call(this,x,L)};
zT.prototype.sendThenWrite=function(x,L,D){L||(L={});L=zZb(x,L);_.eT()||(this.initialized=!1);Nl.prototype.sendThenWrite.call(this,x,L,D)};
zT.prototype.sendAndWrite=function(x,L){L||(L={});L=zZb(x,L);_.eT()||(this.initialized=!1);Nl.prototype.sendAndWrite.call(this,x,L)};
zT.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var r3C=function(x){var L;_.I(function(D){if(!x.databaseToken)throw L=fH("clearSWHealthLogsDb"),L;return D.return(lHh(x.databaseToken).catch(function(S){x.handleError(S)}))})};_.xjb=!1;_.tO4=_.Qb.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.xjb};_.KK("ytNetworklessLoggingInitializationOptions",_.tO4);var lY=function(x){var L=this;this.config_=null;x?this.config_=x:TYG()&&(this.config_=_.ED());_.TG(_.WW,function(){hZ0(L)},5E3)};
lY.prototype.isReady=function(){!this.config_&&TYG()&&(this.config_=_.ED());return!!this.config_};
var VO0=function(x,L,D,S){!_.$6("VISITOR_DATA")&&L!=="visitor_id"&&Math.random()<.01&&_.X0(new _.RZ("Missing VISITOR_DATA when sending innertube request.",L,D,S));if(!x.isReady()){var Q=new _.RZ("innertube xhrclient not ready",L,D,S);_.N9(Q);throw Q;}var J={headers:S.headers||{},method:"POST",postParams:D,postBody:S.postBody,postBodyFormat:S.postBodyFormat||"JSON",onTimeout:function(){S.onTimeout()},
onFetchTimeout:S.onTimeout,onSuccess:function(V,h){if(S.onSuccess)S.onSuccess(h)},
onFetchSuccess:function(V){if(S.onSuccess)S.onSuccess(V)},
onProgress:function(V){if(S.onProgress)S.onProgress(V)},
onError:function(V,h){if(S.onError)S.onError(h)},
onFetchError:function(V){if(S.onError)S.onError(V)},
timeout:S.timeout,withCredentials:!0,compress:S.compress};J.headers["Content-Type"]||(J.headers["Content-Type"]="application/json");var Z="";(Q=x.config_.innertubeHostOverride)&&(Z=Q);var y=x.config_.innertubeUseThirdPartyAuth||!1,E=_.fvG(y,Z,S);Object.assign(J.headers,E);J.headers.Authorization&&!Z&&y&&(J.headers["x-origin"]=window.location.origin);var P=_.LH(Z+("/youtubei/"+x.config_.innertubeApiVersion+"/"+L),{alt:"json"}),v=function(V){V=V===void 0?!1:V;var h;if(S.retry&&Z!="www.youtube-nocookie.com"&&
(V||_.u("skip_ls_gel_retry")||J.headers["Content-Type"]!=="application/json"||(h=j6s(L,D,E,y)),h)){var H=J.onSuccess,k=J.onFetchSuccess;J.onSuccess=function(U,l){vi0(h);H(U,l)};
D.onFetchSuccess=function(U,l){vi0(h);k(U,l)}}try{if(V&&S.retry&&!S.networklessOptions.bypassNetworkless)J.method="POST",S.networklessOptions.writeThenSend?_.Nr2().writeThenSend(P,J):_.Nr2().sendAndWrite(P,J);
else if(S.compress){var T=!S.networklessOptions.writeThenSend;if(J.postBody){var G=J.postBody;typeof G!=="string"&&(G=JSON.stringify(J.postBody));JH0(P,G,J,_.kQ,T)}else JH0(P,JSON.stringify(J.postParams),J,Mmn,T)}else _.u("web_all_payloads_via_jspb")?_.kQ(P,J):Mmn(P,J)}catch(U){if(U.name==="InvalidAccessError")h&&(vi0(h),h=0),_.X0(Error("id"));else throw U;}h&&_.TG(_.WW,function(){hZ0(x)},5E3)};
_.LU0()?MR3().then(function(V){v(V)}):v(!1)};var j_0=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(j_0,_.O5);var iLG=0,SI4=_.V6?"webkit":_.vN?"moz":_.j_?"ms":L0G?"o":"";_.KK("ytDomDomGetNextId",_.o1("ytDomDomGetNextId")||function(){return++iLG});var fRH={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},QF=function(x){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(x=
x||window.event){this.event=x;for(var L in x)L in fRH||(this[L]=x[L]);this.scale=x.scale;this.rotation=x.rotation;var D=x.target||x.srcElement;D&&D.nodeType==3&&(D=D.parentNode);this.target=D;var S=x.relatedTarget;if(S)try{S=S.nodeName?S:null}catch(Q){S=null}else this.type=="mouseover"?S=x.fromElement:this.type=="mouseout"&&(S=x.toElement);this.relatedTarget=S;this.clientX=x.clientX!=void 0?x.clientX:x.pageX;this.clientY=x.clientY!=void 0?x.clientY:x.pageY;this.keyCode=x.keyCode?x.keyCode:x.which;
this.charCode=x.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=x.altKey;this.ctrlKey=x.ctrlKey;this.shiftKey=x.shiftKey;this.metaKey=x.metaKey;this.pageX_=x.pageX;this.pageY_=x.pageY}}catch(Q){}},o72=function(x){if(document.body&&document.documentElement){var L=document.body.scrollTop+document.documentElement.scrollTop;
x.pageX_=x.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);x.pageY_=x.clientY+L}};
QF.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
QF.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
QF.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var S7=_.Qb.ytEventsEventsListeners||{};_.KK("ytEventsEventsListeners",S7);var yD3=_.Qb.ytEventsEventsCounter||{count:0};_.KK("ytEventsEventsCounter",yD3);var Itf=_.Ct(function(){var x=!1;try{var L=Object.defineProperty({},"capture",{get:function(){x=!0}});
window.addEventListener("test",null,L)}catch(D){}return x});_.E9(KV,_.Te);KV.prototype.onMouseMove_=function(x){x.pageX_===void 0&&o72(x);var L=x.pageX_;x.pageY_===void 0&&o72(x);this.position_=new _.Wn(L,x.pageY_)};
KV.prototype.checkPosition_=function(){if(this.position_){var x=(0,_.y5)();if(this.previousTime_!=0){var L=this.previousPosition_,D=this.position_,S=L.x-D.x;L=L.y-D.y;S=Math.sqrt(S*S+L*L)/(x-this.previousTime_);this.cycles_[this.index_]=Math.abs((S-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(D=L=0;D<4;D++)L+=this.cycles_[D]||0;L>=3&&this.callback_();this.previousVelocity_=S}this.previousTime_=x;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
KV.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.EOh(this.mouseListenerKey_)};var vOf={};var mbO=new _.jp("rawColdConfigGroup");var pX0=new _.jp("rawHotConfigGroup");var aR_=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(aR_,_.O5);var Phb=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(Phb,_.O5);var sh=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x,500)};
_.p(sh,_.O5);sh.prototype.getPayloadCase=function(){return _.TE(this,z5H)};
sh.prototype.getContext=function(){return _.Mg(this,Phb,33)};
var z5H=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,
354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525,526,527,528,529];var V2s=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(V2s,_.O5);var oOs=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(oOs,_.O5);oOs.prototype.setVideoId=function(x){return uY(this,1,at3,Hs(x))};
oOs.prototype.getPlaylistId=function(){return _.ka(this,bY(this,at3,2))};
var at3=[1,2];var EeG=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(EeG,_.O5);EeG.prototype.getContext=function(){return _.Mg(this,gz,1)};
EeG.prototype.getTier=function(){return _.BN(this,7)};var XoB,IR,Eh;XoB=_.Qb.ytPubsubPubsubInstance||new _.mv;IR=_.Qb.ytPubsubPubsubSubscribedKeys||{};Eh=_.Qb.ytPubsubPubsubTopicToKeys||{};_.Vnf=_.Qb.ytPubsubPubsubIsSynchronous||{};_.mv.prototype.subscribe=_.mv.prototype.subscribe;_.mv.prototype.unsubscribeByKey=_.mv.prototype.unsubscribeByKey;_.mv.prototype.publish=_.mv.prototype.publish;_.mv.prototype.clear=_.mv.prototype.clear;_.KK("ytPubsubPubsubInstance",XoB);_.KK("ytPubsubPubsubTopicToKeys",Eh);_.KK("ytPubsubPubsubIsSynchronous",_.Vnf);
_.KK("ytPubsubPubsubSubscribedKeys",IR);var dz=window;var Xu=_.u("web_enable_lifecycle_monitoring")&&kQw()!==0,c32=_.u("web_enable_lifecycle_monitoring");var n7_=function(x){var L=this;var D=D===void 0?0:D;var S=S===void 0?_.RP():S;this.JSC$10894_defaultPriority=D;this.scheduler=S;this.completedResolver=new _.Hq;this.scheduledPayloads=x;for(x={i$jscomp$492:0};x.i$jscomp$492<this.scheduledPayloads.length;x={payload$jscomp$20:void 0,i$jscomp$492:x.i$jscomp$492},x.i$jscomp$492++)x.payload$jscomp$20=this.scheduledPayloads[x.i$jscomp$492],D=function(Q){return function(){Q.payload$jscomp$20.job();L.scheduledPayloads[Q.i$jscomp$492].processed=!0;L.scheduledPayloads.every(function(J){return J.processed===
!0})&&L.completedResolver.resolve()}}(x),S=this.getPriority(x.payload$jscomp$20),S=this.scheduler.addJob(D,S),this.scheduledPayloads[x.i$jscomp$492]=Object.assign({},x.payload$jscomp$20,{job:D,
jobId:S})};
n7_.prototype.flushJobs=function(){var x=this,L=Array.from(this.scheduledPayloads.keys()).sort(function(S,Q){return x.getPriority(x.scheduledPayloads[Q])-x.getPriority(x.scheduledPayloads[S])});
L=_.O(L);for(var D=L.next();!D.done;D=L.next())D=this.scheduledPayloads[D.value],D.jobId===void 0||D.processed||(this.scheduler.cancelJob(D.jobId),this.scheduler.addJob(D.job,10))};
n7_.prototype.cancel=function(){for(var x=_.O(this.scheduledPayloads),L=x.next();!L.done;L=x.next())L=L.value,L.jobId===void 0||L.processed||this.scheduler.cancelJob(L.jobId),L.processed=!0;this.completedResolver.resolve()};
n7_.prototype.getPriority=function(x){var L;return(L=x.priority)!=null?L:this.JSC$10894_defaultPriority};var cx=function(x){this.state=x;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};Xu&&pDb(this.state)};
cx.prototype.install=function(x){this.plugins.push(x);return this};
cx.prototype.uninstall=function(){var x=this;_.Ne.apply(0,arguments).forEach(function(L){L=x.plugins.indexOf(L);L>-1&&x.plugins.splice(L,1)})};
cx.prototype.transition=function(x,L){var D=this;Xu&&mj3(this.state);var S=this.transitions.find(function(J){return Array.isArray(J.from)?J.from.find(function(Z){return Z===D.state&&J.to===x}):J.from===D.state&&J.to===x});
if(S){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);toC(this,x,L);this.state=x;Xu&&pDb(this.state);S=S.action.bind(this);var Q=this.plugins.filter(function(J){return J[x]}).map(function(J){return J[x]});
S(xFG(this,Q),L)}else throw Error("jd`"+this.state+"`"+x);};
var xFG=function(x,L){var D=L.filter(function(Q){return Lmd(x,Q)===10}),S=L.filter(function(Q){return Lmd(x,Q)!==10});
return x.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var Q=_.Ne.apply(0,arguments);return _.I(function(J){if(J.nextAddress==1)return J.yield(x.runImmediateJobsAsync.apply(x,[D].concat(_.lP(Q))),2);x.setJobSetWithScheduledJobs.apply(x,[S].concat(_.lP(Q)));_.Y2(J)})}:function(){var Q=_.Ne.apply(0,arguments);
x.runImmediateJobsSync.apply(x,[D].concat(_.lP(Q)));x.setJobSetWithScheduledJobs.apply(x,[S].concat(_.lP(Q)))}};
cx.prototype.runImmediateJobsSync=function(x){var L=_.Ne.apply(1,arguments);_.RP();for(var D=_.O(x),S=D.next(),Q={};!S.done;Q={lifecycle$jscomp$2:void 0},S=D.next())Q.lifecycle$jscomp$2=S.value,VO(function(J){return function(){DFG(J.lifecycle$jscomp$2.name);YIp(function(){return J.lifecycle$jscomp$2.callback.apply(J.lifecycle$jscomp$2,_.lP(L))});
nd(J.lifecycle$jscomp$2.name)}}(Q))};
cx.prototype.runImmediateJobsAsync=function(x){var L=_.Ne.apply(1,arguments),D,S,Q,J;return _.I(function(Z){Z.nextAddress==1&&(_.RP(),D=_.O(x),S=D.next(),Q={});if(Z.nextAddress!=3){if(S.done)return Z.jumpTo(0);Q.lifecycle$jscomp$3=S.value;Q.asyncJobCompletion=void 0;J=function(y){return function(){DFG(y.lifecycle$jscomp$3.name);var E=YIp(function(){return y.lifecycle$jscomp$3.callback.apply(y.lifecycle$jscomp$3,_.lP(L))});
GoO(E)?y.asyncJobCompletion=_.u("web_lifecycle_error_handling_killswitch")?E.then(function(){nd(y.lifecycle$jscomp$3.name)}):E.then(function(){nd(y.lifecycle$jscomp$3.name)},function(P){bub(P);
nd(y.lifecycle$jscomp$3.name)}):nd(y.lifecycle$jscomp$3.name)}}(Q);
VO(J);return Q.asyncJobCompletion?Z.yield(Q.asyncJobCompletion,3):Z.jumpTo(3)}Q={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};S=D.next();return Z.jumpTo(2)})};
cx.prototype.setJobSetWithScheduledJobs=function(x){var L=_.Ne.apply(1,arguments),D=this,S=x.map(function(Q){return{job:function(){DFG(Q.name);YIp(function(){return Q.callback.apply(Q,_.lP(L))});
nd(Q.name)},
priority:Lmd(D,Q)}});
S.length&&(this.jobSet=new n7_(S))};
var Lmd=function(x,L){var D,S;return(S=(D=x.overridePriority)!=null?D:L.priority)!=null?S:0},DFG=function(x){Xu&&x&&pDb(x)},nd=function(x){Xu&&x&&mj3(x)},toC=function(x,L,D){c32&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+x.constructor.name+"] '"+x.state+"' to '"+L+"'"),console.log("with message: ",D),console.groupEnd())};
_.J3.Object.defineProperties(cx.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var S8h=function(x){cx.call(this,x===void 0?"none":x);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(){}}]},Q8G;
_.p(S8h,cx);S8h.prototype.runApplicationNavigationBegin=function(x,L){var D=this;this.navigationTimer=_.TG(_.WW,function(){D.currentState==="application_navigating"&&D.transition("none")},5E3);
x(L==null?void 0:L.event)};
S8h.prototype.runApplicationNavigationEnd=function(x,L){this.navigationTimer&&(_.WW.cancelJob(this.navigationTimer),this.navigationTimer=null);x(L==null?void 0:L.event)};
_.kRc=function(){Q8G||(Q8G=new S8h);return Q8G};var geh=[];_.KK("yt.logging.transport.getScrapedGelPayloads",function(){return geh});var j7=function(){var x=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return x.totalEntries}}};
j7.prototype.storePayload=function(x,L){x=FUb(x);this.store[x]?this.store[x].push(L):(this.memoizedKeySequences={},this.store[x]=[L]);this.totalEntries++;_.u("more_accurate_gel_parser")&&(L=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(L));return x};
j7.prototype.smartExtractMatchingEntries=function(x){if(!x.keys.length)return[];for(var L=J_H(this,x.keys.splice(0,1)[0]),D=[],S=0;S<L.length;S++)this.store[L[S]]&&x.sizeLimit&&(this.store[L[S]].length<=x.sizeLimit?(D.push.apply(D,_.lP(this.store[L[S]])),delete this.store[L[S]]):D.push.apply(D,_.lP(this.store[L[S]].splice(0,x.sizeLimit))));this.totalEntries-=D.length;(x==null?0:x.sizeLimit)&&D.length<(x==null?void 0:x.sizeLimit)&&(x.sizeLimit-=D.length,D.push.apply(D,_.lP(this.smartExtractMatchingEntries(x))));
return D};
j7.prototype.extractMatchingEntries=function(x){x=J_H(this,x);for(var L=[],D=0;D<x.length;D++)this.store[x[D]]&&(L.push.apply(L,_.lP(this.store[x[D]])),delete this.store[x[D]]);this.totalEntries-=L.length;return L};
j7.prototype.getSequenceCount=function(x){x=J_H(this,x);for(var L=0,D=0;D<x.length;D++){var S=void 0;L+=((S=this.store[x[D]])==null?void 0:S.length)||0}return L};
var J_H=function(x,L){var D=FUb(L);if(x.memoizedKeySequences[D])return x.memoizedKeySequences[D];var S=Object.keys(x.store)||[];if(S.length<=1&&FUb(L)===S[0])return S;for(var Q=[],J=0;J<S.length;J++){var Z=S[J].split("/");if(Kmh(L.auth,Z[0])){var y=L.isJspb;Kmh(y===void 0?"undefined":y?"true":"false",Z[1])&&Kmh(L.cttAuthInfo,Z[2])&&(y=L.tier,y=y===void 0?"undefined":JSON.stringify(y),Kmh(y,Z[3])&&Q.push(S[J]))}}return x.memoizedKeySequences[D]=Q},Kmh=function(x,L){return x===void 0||x==="undefined"?
!0:x===L};
j7.prototype.getSequenceCount=j7.prototype.getSequenceCount;j7.prototype.extractMatchingEntries=j7.prototype.extractMatchingEntries;j7.prototype.smartExtractMatchingEntries=j7.prototype.smartExtractMatchingEntries;j7.prototype.storePayload=j7.prototype.storePayload;var Sv4,LFf,QB0,h7,O6G,sBs,FFf,xbb,tn0,$j4,Dbb,HXf,XDf;Sv4=_.dE("initial_gel_batch_timeout",2E3);LFf=_.dE("gel_queue_timeout_max_ms",6E4);QB0=_.dE("gel_min_batch_size",5);h7=void 0;O6G=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
sBs=new O6G;FFf=new O6G;xbb=new O6G;tn0=new O6G;Dbb=!0;HXf=1;_.h6s=new Map;XDf=_.Qb.ytLoggingTransportTokensToCttTargetIds_||{};_.KK("ytLoggingTransportTokensToCttTargetIds_",XDf);var zus=_.Qb.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.KK("ytLoggingTransportTokensToJspbCttTargetIds_",zus);var VF={};var GG=_.Qb.ytLoggingGelSequenceIdObj_||{};_.KK("ytLoggingGelSequenceIdObj_",GG);var R6s=[];var N4h=new Set,wXO=0,as4=0,oe3=0,WFc=[],B40=[],z6w=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var ZF3=function(){};
ZF3.prototype.getUrl=function(x,L){L=L===void 0?!1:L;return x.hasOwnProperty("shareEndpoint")?null:_.t2h(x,null,L)};
var yO4=function(x,L,D){x={endpoint:L,actions:[]};D=(D.path?D.path[0]:D.target).icon||"";L=D.indexOf(":");L>0&&(D=D.substr(L+1));D&&x.actions.push(D);return x};var Ji4=/Command$/,QSs=/Endpoint$/,LB0=new Map;var Z6Q,y_A;Z6Q=1;_.aR=function(){this.actionRoutingMap=new Map};
_.aR.prototype.triggerAction=function(x){var L=new ot3(x,!1,_.Ne.apply(1,arguments));this.handleAction(L);return L.returnValue};
_.aR.prototype.triggerOptionalAction=function(x){var L=new ot3(x,!0,_.Ne.apply(1,arguments));this.handleAction(L);return L.returnValue};
_.tS=function(x,L,D){L.forEach(function(S){var Q=S3p(S);Q&&x.triggerOptionalAction(Q,S,D,void 0)})};
_.aR.prototype.handleAction=function(x){var L=this.actionRoutingMap.get(x.actionName);L&&y_A(x,L);x.optionalAction||x.returnValue.length!==0||(x=new _.RZ("Unhandled action",x.actionName),_.X0(x))};
y_A=function(x,L){L.forEach(function(D){var S=null;D?S=D.apply(null,x.args):(D=Error("kd"),D.params=x.actionName,_.N9(D));x.returnValue.push(S)})};
_.cI=function(x,L,D){D||(D=Z6Q++);for(var S=_.O(Object.keys(L)),Q=S.next();!Q.done;Q=S.next()){Q=Q.value;var J=x.actionRoutingMap.get(Q);J||(J=new Map,x.actionRoutingMap.set(Q,J));x.registerActionHandler(D,Q,L[Q],J)}return D};
_.aR.prototype.registerActionHandler=function(x,L,D,S){S.set(x,_.fm(D))};
_.nV=function(x,L,D){L=_.O(Object.keys(L));for(var S=L.next();!S.done;S=L.next())(S=x.actionRoutingMap.get(S.value))&&S.delete(D)};
_.y6(_.aR);var EcO=function(x,L){var D=_.aR.getInstance();_.wO(function(){var S={},Q=_.cI(D,(S[x]=L,S));_.wH(function(){var J={};_.nV(D,(J[x]="",J),Q)})})};var u$0=Symbol("md");jcG=z5f;var FB0=new Set(["For","If","Match","Watch"]),Igh={},ETQ=(Igh[im.default]=function(){return ZL0},Igh.style=function(){return ZL0},Igh),Mqd;
for(Mqd in ETQ)Iu.attributes[Mqd]=ETQ[Mqd](Iu.attributes[Mqd]);var Z5=new _.vx("VISIBILITY_OBSERVER");var Bq0={retrieve:function(x){return this.id.\u0275prov.token===x.\u0275prov.token?this.contextValue:this?_.Os(this,this.id):C7O}};var Pnp=function(x,L,D){if(x!==QB)return!1;x=gc3(document.createElement("div"),function(){var S=EX(!1);try{D[0]()}finally{EX(S)}});
x=Array.from(x.childNodes);x.length===1&&(x=x[0]);return x};var dFQ=typeof AbortController==="function";if(typeof DOMException==="function")try{new DOMException}catch(x){}var PlB=typeof WeakRef==="function";var j8H=function(x){this.value=x};
j8H.prototype.deref=function(){return this.value};
var vTC=PlB?WeakRef:j8H,Vqd=function(x){this.newKeyHandler=x;this.map=new WeakMap};
Vqd.prototype.add=function(x,L){this.map.has(x)||(this.newKeyHandler(x),this.map.set(x,[]));this.map.get(x).push(new vTC(L))};
Vqd.prototype.get=function(x){var L=this;return function S(){var Q,J,Z,y,E,P,v,V,h,H,k;return _.Mk(S,function(T){switch(T.nextAddress){case 1:_.k2(T,2);Q=L.map.get(x);if(!Q)return T.return();J=0;Z=_.O(Q);y=Z.next();case 4:if(y.done){T.jumpTo(6);break}E=y.value;P=E.deref();if(!P){T.jumpTo(5);break}J++;v=_.dV;return T.yield(P,8);case 8:v(T.yieldResult);case 5:y=Z.next();T.jumpTo(4);break;case 6:if(2*J<Q.length){V=0;h=_.O(Q);for(H=h.next();!H.done;H=h.next())k=H.value,k.deref()&&(Q[V++]=k);Q.length=
V}case 2:_.gP(T),_.pZ(T,0)}})}()};var hDh=document.createDocumentFragment?function(){return document.createDocumentFragment()}:function(){return document.createElement("div")},iF0=new Vqd(function(x){x.addEventListener("abort",oc0,{once:!0})}),Nqn=new WeakMap,H62=function(x){x=x===void 0?xt:x;
this.signal=new x};
H62.prototype.abort=function(x){this.signal.aborted||(this.signal.aborted=!0,this.signal.reason=x,x=new Event("abort"),this.signal.dispatchEvent(x))};
var xt=function(){this.target=hDh();this.aborted=!1;this.onabort=null};
xt.prototype.throwIfAborted=function(){riN.call(this)};
xt.prototype.addEventListener=function(x,L,D){this.target.addEventListener(x,L,D)};
xt.prototype.removeEventListener=function(x,L,D){this.target.removeEventListener(x,L,D)};
xt.prototype.dispatchEvent=function(x){if(this.onabort&&x.type==="abort")this.onabort(x);return this.target.dispatchEvent(x)};
xt.abort=$1n;xt.timeout=anf;xt.any=fnb;var Ai0=dFQ?AbortController:H62,L0=dFQ?AbortSignal:xt;typeof L0.abort!=="function"&&(L0.abort=$1n);typeof L0.prototype.throwIfAborted!=="function"&&(L0.prototype.throwIfAborted=riN);typeof L0.any!=="function"&&(L0.any=fnb);typeof L0.timeout!=="function"&&(L0.timeout=anf);var uI2=function(x){x=x.clone();A8W(x);BZ(x,"dg",null);BZ(x,"d","0");wYC(x,null);BEB(x,null);return x},gTi=!0,k8h=function(x,L,D){var S=D===void 0?{}:D;
D=S.cssRowKey===void 0?void 0:S.cssRowKey;var Q=S.combinedSignature===void 0?void 0:S.combinedSignature;var J=S.extraEdges===void 0?void 0:S.extraEdges;S=S.callback===void 0?void 0:S.callback;BZ(x,"m",L.join(","));J&&q2i(x,J);D&&(BZ(x,"ck",D),Q?BZ(x,"rs",Q):gTi&&(gTi=!1));if(S){if(S!=null&&!NEA.test(S))throw Error("Xa`"+S);BZ(x,"cb",S)}x=x.toString();_.Ow(x,"/")&&(x=hUh(document.location.href)+x);return _.Ti(x)};var mFA=function(x){return p$W(x).then(function(L){return JSON.parse(L.responseText)})},p$W=function(x){var L={},D=L.xmlHttpFactory?L.xmlHttpFactory.createInstance():Qmd.createInstance();
return(new _.HI(function(S,Q){var J;try{D.open("GET",x,!0)}catch(E){Q(new Dw("Error opening XHR: "+E.message,x,D))}D.onreadystatechange=function(){if(D.readyState==4){_.Qb.clearTimeout(J);var E;!(E=S7Q(D.status))&&(E=D.status===0)&&(E=VNC(x),E=!(E=="http"||E=="https"||E==""));E?S(D):Q(new b6C(D.status,x,D))}};
D.onerror=function(){Q(new Dw("Network error",x,D))};
if(L.headers)for(var Z in L.headers){var y=L.headers[Z];y!=null&&D.setRequestHeader(Z,y)}L.withCredentials&&(D.withCredentials=L.withCredentials);L.responseType&&(D.responseType=L.responseType);L.mimeType&&D.overrideMimeType(L.mimeType);L.timeoutMs>0&&(J=_.Qb.setTimeout(function(){D.onreadystatechange=function(){};
D.abort();Q(new Y8H(x,D))},L.timeoutMs));
try{D.send(null)}catch(E){D.onreadystatechange=function(){},_.Qb.clearTimeout(J),Q(new Dw("Error sending XHR: "+E.message,x,D))}})).thenCatch(function(S){S instanceof _.iS&&D.abort();
throw S;})},Dw=function(x,L,D){_.Dp.call(this,x+", url="+L);
this.url=L;this.xhr=D};
_.E9(Dw,_.Dp);Dw.prototype.name="XhrError";var b6C=function(x,L,D){Dw.call(this,"Request Failed, status="+x,L,D);this.status=x};
_.E9(b6C,Dw);b6C.prototype.name="XhrHttpError";var Y8H=function(x,L){Dw.call(this,"Request timed out",x,L)};
_.E9(Y8H,Dw);Y8H.prototype.name="XhrTimeoutError";Zc=Zc||{};var SH=function(){_.Te.call(this)};
_.E9(SH,_.Te);SH.prototype.initialize=function(){};var Fm_=function(x,L){this.fn_=x;this.handler_=L};
Fm_.prototype.execute=function(x){this.fn_&&(this.fn_.call(this.handler_||null,x),this.fn_=this.handler_=null)};
Fm_.prototype.abort=function(){this.handler_=this.fn_=null};var Q3=function(x,L){_.Te.call(this);this.deps_=x;this.JSC$11048_id_=L;this.onloadCallbacks_=[];this.onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.E9(Q3,_.Te);Q3.prototype.moduleConstructor_=SH;Q3.prototype.module_=null;Q3.prototype.getId=function(){return this.JSC$11048_id_};
Q3.prototype.registerCallback=function(x,L){return s8A(this.onloadCallbacks_,x,L)};
var Tgr=function(x,L){s8A(x.onErrorCallbacks_,L)},s8A=function(x,L,D){L=new Fm_(L,D);
x.push(L);return L};
Q3.prototype.isLoaded=function(){return!!this.module_};
Q3.prototype.onLoad=function(x){var L=new this.moduleConstructor_;L.initialize(x());this.module_=L;L=(L=eDB(this.earlyOnloadCallbacks_,x()))||eDB(this.onloadCallbacks_,x());L||(this.onErrorCallbacks_.length=0);return L};
Q3.prototype.onError=function(x){(x=eDB(this.onErrorCallbacks_,x))&&JG(Error("qd`"+x));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var eDB=function(x,L){for(var D=[],S=0;S<x.length;S++)try{x[S].execute(L)}catch(Q){JG(Q),D.push(Q)}x.length=0;return D.length?D:null};
Q3.prototype.disposeInternal=function(){Q3.superClass_.disposeInternal.call(this);_.Q1(this.module_)};var RDQ,BgA,UF2,w$B,Clh,lgB,r_Q,A_A,$FH;
_.EU=function(x,L,D,S,Q){S=S===void 0?!1:S;Q=Q===void 0?!1:Q;var J=J===void 0?!0:J;this.scsReferenceUrl_=DyG(_.RN(x).toString(),J);this.cssRowKey_=L;this.combinedSignature_=D;this.useNegativeLoading_=S;this.requestedModuleMap_={};this.JSC$11051_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(x=wf(this.scsReferenceUrl_,"excm"))?x.split(","):[];this.shouldScanForCss_=Q;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;Sh0();_.Js(this,WvA(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
RDQ=function(x,L){if(L.href||L.getAttribute("data-href"))if(L=L.href||L.getAttribute("data-href"),ngh(L)&&!DyG(L).urlPrefix_.endsWith("_/js/")){L=WvA(DyG(L));L=_.O(L);for(var D=L.next();!D.done;D=L.next())D=D.value,x.loadedCssModuleList_.includes(D)||x.loadedCssModuleList_.push(D)}};
_.EU.prototype.JSC$11053_loadModules=function(x,L,D){var S=D===void 0?{}:D;D=S.extraEdges;var Q=S.onError;var J=S.onSuccess;S=S.forceReload;this.JSC$11051_moduleInfoMap_=L;if(!x)throw Error("rd");if(this.shouldScanForCss_){L=_.O(document.getElementsByTagName("style"));for(var Z=L.next();!Z.done;Z=L.next())RDQ(this,Z.value);L=_.O(document.getElementsByTagName("link"));for(Z=L.next();!Z.done;Z=L.next())RDQ(this,Z.value)}G82(this,Clh(this,x),D,Q,J,S)};
var G82=function(x,L,D,S,Q,J){S=S===void 0?function(){}:S;
Q=Q===void 0?function(){}:Q;
J=J===void 0?!1:J;lgB(x,L,function(Z,y,E){E=E===void 0?y:E;x.enableFallbackFetch&&J?x.loadWithFetch(Z,y,S,Q,E):x.load(Z,y,S,Q,E,D)},D)||S(-1)};
_.EU.prototype.loadWithFetch=function(){_.I(function(){throw Error("sd");})};
_.EU.prototype.maybeSetAdditionalFields=function(){};
BgA=function(x,L,D){if(x.useNegativeLoading_){var S=x.scsReferenceUrl_;x={cssRowKey:x.cssRowKey_,combinedSignature:x.combinedSignature_,extraEdges:D,requestedModuleIds:UF2(x),requestedCssModuleIds:w$B(x)};var Q=x===void 0?{}:x;x=Q.requestedModuleIds===void 0?[]:Q.requestedModuleIds;D=Q.requestedCssModuleIds===void 0?[]:Q.requestedCssModuleIds;var J=Q.cssRowKey===void 0?void 0:Q.cssRowKey;var Z=Q.combinedSignature===void 0?void 0:Q.combinedSignature;var y=Q.extraEdges===void 0?void 0:Q.extraEdges;
Q=Q.callback===void 0?void 0:Q.callback;S=uI2(S);BZ(S,"d","1");wYC(S,x);BEB(S,D);L=k8h(S,L,{cssRowKey:J,combinedSignature:Z,extraEdges:y,callback:Q})}else S=x.scsReferenceUrl_,x={cssRowKey:x.cssRowKey_,combinedSignature:x.combinedSignature_,requestedModuleIds:UF2(x),requestedCssModuleIds:w$B(x)},y=x===void 0?{}:x,x=y.requestedCssModuleIds===void 0?[]:y.requestedCssModuleIds,D=y.cssRowKey===void 0?void 0:y.cssRowKey,J=y.combinedSignature===void 0?void 0:y.combinedSignature,Z=y.extraEdges===void 0?
void 0:y.extraEdges,y=y.callback===void 0?void 0:y.callback,S=uI2(S),BEB(S,x),L=k8h(S,L,{cssRowKey:D,combinedSignature:J,extraEdges:Z,callback:y});return L};
_.Js=function(x,L){for(var D=!1,S=[],Q=0;Q<L.length;++Q){var J=L[Q];x.requestedModuleMap_[J]||(x.requestedModuleMap_[J]=!0,x.requestedModuleList_.push(J),D=!0,S.push(J))}D&&(x.requestedModuleListSorted_=!1)};
_.K0=function(x,L){for(var D=[],S=0;S<L.length;++S){var Q=L[S];x.requestedModuleMap_[Q]&&(delete x.requestedModuleMap_[Q],_.$f(x.requestedModuleList_,Q),D.push(Q))}};
_.EU.prototype.load=function(x,L,D,S,Q){Q=Q===void 0?L:Q;_.RN(x);var J=this.useCors_,Z=this.corsMode_,y=this.fetchPriority,E=_.pw("SCRIPT");_.QD(E,x);J&&(E.crossOrigin=Z);E.async=!1;y&&E.setAttribute("fetchpriority",y);_.Js(this,L);_.Wm_(this,x,E,L,D,S,Q)};
_.Wm_=function(x,L,D,S,Q,J,Z){Z=Z===void 0?S:Z;x.lastScript_=D;x.insertPos.insertBefore(D,x.insertPos.firstChild);_.q8i(D,S,function(){D.parentElement.removeChild(D);x.lastScript_==D&&(x.lastScript_=null);var y=new Set;S.map(function(P){return y.add(P)});
for(var E in x.JSC$11051_moduleInfoMap_)x.JSC$11051_moduleInfoMap_[E].isLoaded()&&y.add(E);Array.from(y);J()},function(y){D.parentElement.removeChild(D);
x.lastScript_==D&&(x.lastScript_=null);_.K0(x,y);x.pendingModuleGraphUpdate_?x.pendingModuleGraphUpdate_.then(function(){Q(-1,L)}):Q(-1,L)},Z)};
_.q8i=function(x,L,D,S,Q){Q=Q===void 0?L:Q;var J=L.length,Z=function(){J=0;x.onload=null;x.onerror=null;y=function(){}},y=function(){Z();
var P=Q.filter(function(v){return!wb().getModuleInfo(v).isLoaded()});
P.length!==0?S(P,"Response was successful but was missing module(s) "+P+"."):D()},E=function(){J--;
J==0&&y()};
L.forEach(function(P){P=wb().getModuleInfo(P);P.isLoaded()?E():(s8A(P.earlyOnloadCallbacks_,E),Tgr(P,E))});
x.onload=function(){return y()};
x.onerror=function(){Z();S(L)}};
UF2=function(x){x.requestedModuleListSorted_||(x.requestedModuleListSorted_=!0,x.requestedModuleList_.sort());return x.requestedModuleList_};
w$B=function(x){x=x.loadedCssModuleList_;x.sort();return x};
Clh=function(x,L){return L.filter(function(D){return!x.requestedModuleMap_[D]})};
lgB=function(x,L,D,S){if(x.pendingModuleGraphUpdate_)return x.pendingModuleGraphUpdate_.then(function(){lgB(x,L,D,S)}),!0;
if(!x.useNegativeLoading_){var Q=[],J=Object.assign({},x.requestedModuleMap_);A_A(x,L,function(v){Q.push(v.getId())},S,function(v){return!v.isLoaded()},J);
L=Q}for(J=0;J<L.length;){for(var Z=L.length-J,y=J==0?L:L.slice(J,L.length),E=BgA(x,y,S),P=_.RN(E).toString();P.length>x.urlMaxLength;)if(Z>1)Z-=Math.ceil((P.length-x.urlMaxLength)/6),Z=Math.max(Z,1),y=L.slice(J,J+Z),E=BgA(x,y,S),P=_.RN(E).toString();else return x.useNegativeLoading_?(x.useNegativeLoading_=!1,x.pendingModuleGraphUpdate_=$FH(x).then(function(v){r_Q(x,v,S)}),lgB(x,L.slice(J),D,S)):!1;
J+=Z;x.useNegativeLoading_?D(E,y):D(E,y,J===L.length?L:[])}return!0};
r_Q=function(x,L,D){wb().setAllModuleInfoString((L||{}).moduleGraph);A_A(x,UF2(x),function(S){_.Js(x,[S.getId()])},D);
x.pendingModuleGraphUpdate_=null};
A_A=function(x,L,D,S,Q,J){J=J===void 0?{}:J;var Z=wb();L=_.O(L);for(var y=L.next();!y.done;y=L.next()){y=y.value;var E=Z.getModuleInfo(y);if(!(J[y]||Q&&!Q(E))){J[y]=!0;var P=E.deps_||[];if(S){var v=[];S[y]&&(v=Object.keys(S[y]));P=P.concat(v)}A_A(x,P,D,S,Q,J);D(E)}}};
$FH=function(x){x=x.scsReferenceUrl_.clone();A8W(x);BZ(x,"dg",null);BZ(x,"md","1");return mFA(x.toString())};var zMf=new Uint8Array(123);var NgR=[];var i62=function(){this.JSC$10058_loader_=null};
_.K=i62.prototype;_.K.setBatchModeEnabled=function(){};
_.K.setAllModuleInfoString=function(){};
_.K.addExtraEdge=function(){throw Error("td");};
_.K.removeExtraEdge=function(){throw Error("ud");};
_.K.getModuleContext=function(){return null};
_.K.isActive=function(){return!1};
_.K.isUserActive=function(){return!1};
_.K.registerCallback=function(){};var OL=function(x,L,D,S,Q){var J=Error.call(this);this.message=J.message;"stack"in J&&(this.stack=J.stack);this.name="ModuleLoadFailure";this.type=x;this.status=L;this.requestedModuleIds=D;this.url=S;this.cause=Q;this.message=this.toString()};
_.p(OL,Error);OL.prototype.toString=function(){return fgC(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var fgC=function(x){switch(x.type){case OL.Type.UNAUTHORIZED:return"Unauthorized";case OL.Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case OL.Type.TIMEOUT:return"Timed out";case OL.Type.OLD_CODE_GONE:return"Out of date module id";case OL.Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+x.type}};
Zc.ModuleLoadFailure=OL;Zc.ModuleLoadFailure.Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var Zw=function(){this.moduleIds_=this.JSC$10058_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$11066_extraEdges_={};this.JSC$11066_callbackMap_={};this.JSC$11066_currentlyLoadingModule_=this.baseModuleInfo_=new Q3([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new Ox;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.E9(Zw,i62);var oTQ=function(x,L){_.Dp.call(this,"Error loading "+x+": "+L)};
_.E9(oTQ,_.Dp);Zw.prototype.setBatchModeEnabled=function(x){this.batchModeEnabled_=x};
Zw.prototype.setAllModuleInfoString=function(x,L){if(!(this instanceof Zw))this.setAllModuleInfoString(x,L);else if(typeof x==="string"){if(x.startsWith("d$")){x=x.substring(2);for(var D=[],S=0,Q=x.indexOf("/"),J=0,Z=!1,y=0;;){var E=Z?x.substring(J):x.substring(J,Q);if(E.length===0)S++,J="sy"+S.toString(36),E=[];else{var P=E.indexOf(":");if(P<0)J=E,E=[];else if(P===E.length-1)J=E.substring(0,P),E=Array(D[y-1]);else{J=E.substring(0,P);E=E.substring(P+1).split(",");P=y;for(var v=0;v<E.length;v++)P-=
E[v].length===0?1:Number(E[v]),E[v]=D[P]}P=0;if(J.length===0)P=1;else if(J.charAt(0)==="+"||J.charAt(0)==="-")P=Number(J);P!==0&&(S+=P,J="sy"+S.toString(36))}D.push(J);agH(this,J,E);if(Z)break;J=Q+1;Q=x.indexOf("/",J);Q===-1&&(Z=!0);y++}this.moduleIds_=D}else if(x.startsWith("p$"))zDC(this,x);else{x=x.split("/");D=[];for(S=0;S<x.length;S++){y=x[S].split(":");Q=y[0];Z=[];if(y[1])for(Z=y[1].split(","),y=0;y<Z.length;y++)Z[y]=D[parseInt(Z[y],36)];D.push(Q);agH(this,Q,Z)}this.moduleIds_=D}L&&L.length?
(_.is(this.loadingModuleIds_,L),this.lastInitialModuleId_=_.ls(L)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$11066_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$11066_currentlyLoadingModule_=null,(L=this.baseModuleInfo_.onLoad((0,_.e1)(this.getModuleContext,this)))&&L.length&&X$H(this,new Zc.ModuleLoadFailure(Zc.ModuleLoadFailure.Type.INIT_ERROR,void 0,void 0,void 0,L[0])),y3(this))}};
var zDC=function(x,L){var D=L.substring(2);for(L=0;L<64;L++)zMf["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(L)]=L;var S={buf:D,pos:0};IH(S);var Q=IH(S),J=IH(S)+1;L=Array(Q);var Z=Array(Q),y=Array(Q);J=Array(J);var E=0,P=0,v=S.pos,V=S.buf.indexOf("|",S.pos);S.pos=V+1;for(V=0;V<Q;V++){var h=IH(S),H=h&2,k=h&1;h>>>=2;k?(E+=h>>>1^-(h&1),h="sy"+E.toString(36)):(k=v,v+=h,h=D.substring(k,v));L[V]=h;H&&(J[P++]=h)}J[P]="";S.pos++;P=Q&-2;D=Q&1;for(E=0;E<P;E+=2)v=X20(S),y[E]=
v&7,y[E+1]=v>>>3&7;D&&(D=X20(S),y[P]=D&7);S.pos++;for(P=0;P<Q;P++)y[P]===7&&(y[P]=IH(S));S.pos++;for(D=P=0;D<Q;D++){E=y[D];v=E===0?NgR:Array(E);Z[D]=v;V=P;for(H=0;H<E;H++)V-=IH(S),v[H]=J[V];J[P]===L[D]&&P++}for(S=0;S<L.length;S++)agH(x,L[S],Z[S]);x.moduleIds_=L};
_.K=Zw.prototype;_.K.getModuleInfo=function(x){return this.moduleInfoMap[x]};
_.K.addExtraEdge=function(x,L){var D=this.getModuleInfo(x);D&&D.isLoaded()?this.load(L):(this.JSC$11066_extraEdges_[x]||(this.JSC$11066_extraEdges_[x]={}),this.JSC$11066_extraEdges_[x][L]=!0)};
_.K.removeExtraEdge=function(x,L){if(this.JSC$11066_extraEdges_[x]){delete this.JSC$11066_extraEdges_[x][L];for(var D in this.JSC$11066_extraEdges_[x])return;delete this.JSC$11066_extraEdges_[x]}};
_.K.isActive=function(){return this.loadingModuleIds_.length>0};
_.K.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var y3=function(x){var L=x.lastActive_,D=x.isActive();D!=L&&(x.executeCallbacks_(D?"active":"idle"),x.lastActive_=D);L=x.isUserActive();L!=x.userLastActive_&&(x.executeCallbacks_(L?"userActive":"userIdle"),x.userLastActive_=L)},agH=function(x,L,D){x.moduleInfoMap[L]?(x=x.moduleInfoMap[L].deps_,x!=D&&x.splice.apply(x,[0,
x.length].concat(_.lP(D)))):x.moduleInfoMap[L]=new Q3(D,L)},nTR=function(x,L,D){var S=[];
lpf(L,S);L=[];for(var Q={},J=0;J<S.length;J++){var Z=S[J],y=x.getModuleInfo(Z);if(!y)throw Error("vd`"+Z);var E=new Ox;Q[Z]=E;y.isLoaded()?E.callback(null):(c_C(x,Z,y,!!D,E),x.isModuleLoading(Z)||L.push(Z))}L.length>0&&(x.loadingModuleIds_.length===0?x.loadModules_(L):(x.requestedModuleIdsQueue_.push(L),y3(x)));return Q},c_C=function(x,L,D,S,Q){D.registerCallback(Q.callback,Q);
Tgr(D,function(J){Q.errback(new oTQ(L,J))});
x.isModuleLoading(L)?S&&(tq2(x,L),y3(x)):S&&tq2(x,L)};
Zw.prototype.loadModules_=function(x,L,D){var S=this;L||(this.consecutiveFailures_=0);var Q=xUQ(this,x);this.loadingModuleIds_=Q;this.requestedLoadingModuleIds_=this.batchModeEnabled_?x:_.r0(Q);y3(this);if(Q.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,Q);x=this.JSC$10058_loader_;if(!x)throw Error("wd");if(Object.keys(this.JSC$11066_extraEdges_).length>0&&!x.supportsExtraEdges)throw Error("xd");D=(0,_.e1)(x.JSC$11053_loadModules,x,_.r0(Q),this.moduleInfoMap,{extraEdges:this.JSC$11066_extraEdges_,
forceReload:!!D,onError:function(J,Z){var y=S.requestedLoadingModuleIds_;J=J!=null?J:void 0;S.consecutiveFailures_++;var E=_.r0(Q);S.requestedLoadingModuleIds_=y;Q.forEach(_.bl(_.$f,S.requestedModuleIds_),S);J==401?(X$H(S,new Zc.ModuleLoadFailure(Zc.ModuleLoadFailure.Type.UNAUTHORIZED,J)),S.requestedModuleIdsQueue_.length=0):J==410?(LHA(S,new Zc.ModuleLoadFailure(Zc.ModuleLoadFailure.Type.OLD_CODE_GONE,J)),DUr(S)):S.consecutiveFailures_>=3?(LHA(S,new Zc.ModuleLoadFailure(Zc.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,
J,E,Z)),DUr(S)):S.loadModules_(S.requestedLoadingModuleIds_,!0,J==8001||!1)},
onTimeout:(0,_.e1)(this.handleLoadTimeout_,this)});(x=Math.pow(this.consecutiveFailures_,2)*5E3)?_.Qb.setTimeout(D,x):D()}};
var xUQ=function(x,L){L=L.filter(function(Q){return x.moduleInfoMap[Q].isLoaded()?(_.Qb.setTimeout(function(){return Error("yd`"+Q)},0),!1):!0});
for(var D=[],S=0;S<L.length;S++)D=D.concat(S4i(x,L[S]));lpf(D);return!x.batchModeEnabled_&&D.length>1?(L=D.shift(),x.requestedModuleIdsQueue_=D.map(function(Q){return[Q]}).concat(x.requestedModuleIdsQueue_),[L]):D},S4i=function(x,L){var D=_.wk.createSet(x.requestedModuleIds_),S=[];
D[L]||S.push(L);L=[L];for(var Q=0;Q<L.length;Q++)for(var J=x.getModuleInfo(L[Q]).deps_,Z=J.length-1;Z>=0;Z--){var y=J[Z];x.getModuleInfo(y).isLoaded()||D[y]||(S.push(y),L.push(y))}S.reverse();lpf(S);return S};
Zw.prototype.JSC$11061_setLoaded=function(){if(this.JSC$11066_currentlyLoadingModule_){var x=this.JSC$11066_currentlyLoadingModule_.getId(),L=[];if(this.JSC$11066_extraEdges_[x]){for(var D=_.O(Object.keys(this.JSC$11066_extraEdges_[x])),S=D.next();!S.done;S=D.next()){S=S.value;var Q=this.getModuleInfo(S);Q&&!Q.isLoaded()&&(this.removeExtraEdge(x,S),L.push(S))}this.loadMultiple(L)}this.isDisposed()||((L=this.moduleInfoMap[x].onLoad((0,_.e1)(this.getModuleContext,this)))&&L.length&&X$H(this,new Zc.ModuleLoadFailure(Zc.ModuleLoadFailure.Type.INIT_ERROR,
void 0,void 0,void 0,L[0])),_.$f(this.userInitiatedLoadingModuleIds_,x),_.$f(this.loadingModuleIds_,x),this.loadingModuleIds_.length===0&&DUr(this),this.lastInitialModuleId_&&x==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),y3(this),this.JSC$11066_currentlyLoadingModule_=null)}};
Zw.prototype.isModuleLoading=function(x){if(_.AG(this.loadingModuleIds_,x))return!0;for(var L=0;L<this.requestedModuleIdsQueue_.length;L++)if(_.AG(this.requestedModuleIdsQueue_[L],x))return!0;return!1};
Zw.prototype.load=function(x,L){return nTR(this,[x],L)[x]};
Zw.prototype.loadMultiple=function(x){return nTR(this,x)};
var tq2=function(x,L){_.AG(x.userInitiatedLoadingModuleIds_,L)||x.userInitiatedLoadingModuleIds_.push(L)};
Zw.prototype.beforeLoadModuleCode=function(x){var L=this;this.JSC$11066_currentlyLoadingModule_&&this.JSC$11066_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$11061_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[x]&&QtB(this,this.moduleInfoMap[x].deps_||[],function(D){D.module_=new SH;_.$f(L.loadingModuleIds_,D.getId())},function(D){return!D.isLoaded()});
this.JSC$11066_currentlyLoadingModule_=this.getModuleInfo(x)};
Zw.prototype.handleLoadTimeout_=function(){LHA(this,new Zc.ModuleLoadFailure(Zc.ModuleLoadFailure.Type.TIMEOUT));DUr(this)};
var LHA=function(x,L){x.requestedLoadingModuleIds_.length>1?x.requestedModuleIdsQueue_=x.requestedLoadingModuleIds_.map(function(D){return[D]}).concat(x.requestedModuleIdsQueue_):X$H(x,L)},X$H=function(x,L){var D=x.requestedLoadingModuleIds_;
x.loadingModuleIds_.length=0;for(var S=[],Q=0;Q<x.requestedModuleIdsQueue_.length;Q++){var J=x.requestedModuleIdsQueue_[Q].filter(function(E){var P=S4i(this,E);return tE(D,function(v){return _.AG(P,v)})},x);
_.is(S,J)}for(Q=0;Q<D.length;Q++)_.eO0(S,D[Q]);for(Q=0;Q<S.length;Q++){for(J=0;J<x.requestedModuleIdsQueue_.length;J++)_.$f(x.requestedModuleIdsQueue_[J],S[Q]);_.$f(x.userInitiatedLoadingModuleIds_,S[Q])}if(Q=x.JSC$11066_callbackMap_.error)for(J=0;J<Q.length;J++)for(var Z=Q[J],y=0;y<S.length;y++)Z("error",S[y],L);for(S=0;S<D.length;S++)if(x.moduleInfoMap[D[S]])x.moduleInfoMap[D[S]].onError(L);x.requestedLoadingModuleIds_.length=0;y3(x)},DUr=function(x){for(;x.requestedModuleIdsQueue_.length;){var L=
x.requestedModuleIdsQueue_.shift().filter(function(D){return!this.getModuleInfo(D).isLoaded()},x);
if(L.length>0){x.loadModules_(L);return}}y3(x)};
Zw.prototype.registerCallback=function(x,L){Array.isArray(x)||(x=[x]);for(var D=0;D<x.length;D++){var S=x[D],Q=L,J=this.JSC$11066_callbackMap_;J[S]||(J[S]=[]);J[S].push(Q)}};
Zw.prototype.executeCallbacks_=function(x){for(var L=this.JSC$11066_callbackMap_[x],D=0;L&&D<L.length;D++)L[D](x)};
var QtB=function(x,L,D,S,Q){S=S===void 0?function(){return!0}:S;
Q=Q===void 0?{}:Q;L=_.O(L);for(var J=L.next();!J.done;J=L.next()){J=J.value;var Z=x.getModuleInfo(J);!Q[J]&&S(Z)&&(Q[J]=!0,QtB(x,Z.deps_||[],D,S,Q),D(Z))}};
Zw.prototype.dispose=function(){_.Jx(_.wk.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$11066_callbackMap_={};this.isDisposed_=!0};
Zw.prototype.isDisposed=function(){return this.isDisposed_};
_.U7=function(){return new Zw};var J2R=[5E3,2E4],KH_=function(){this.JSC$10058_loader_=null;this.JSC$11074_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$11074_queue_=[];this.JSC$11074_extraEdges_=Object.create(null);this.JSC$11074_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.p(KH_,i62);_.K=KH_.prototype;_.K.setAllModuleInfoString=function(){this.JSC$11074_currentlyLoadingModule_&&this.JSC$11074_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$11061_setLoaded()};
_.K.getModuleInfo=function(x){var L=this.JSC$11074_moduleInfoMap_[x];L||(L=new Q3([],x),this.JSC$11074_moduleInfoMap_[x]=L);return L};
_.K.addExtraEdge=function(x,L){this.getModuleInfo(x).isLoaded()?this.load(L):(this.JSC$11074_extraEdges_[x]||(this.JSC$11074_extraEdges_[x]={}),this.JSC$11074_extraEdges_[x][L]=!0)};
_.K.removeExtraEdge=function(x,L){if(this.JSC$11074_extraEdges_[x]){delete this.JSC$11074_extraEdges_[x][L];for(var D in this.JSC$11074_extraEdges_[x])return;delete this.JSC$11074_extraEdges_[x]}};
_.K.isModuleLoading=function(x){return!!this.loadingModules_[x]};
_.K.load=function(x){O7h(this,[x]);return Z7W(this,x)};
_.K.loadMultiple=function(x){var L=this,D=Object.create(null),S=[];x.forEach(function(Q){D[Q]||(D[Q]=Z7W(L,Q),S.push(Q))});
O7h(this,S);return D};
_.K.beforeLoadModuleCode=function(x){var L;((L=this.JSC$11074_currentlyLoadingModule_)==null?void 0:L.getId())==="synthetic_module_overhead"&&this.JSC$11061_setLoaded();var D,S;y2B(this,(S=(D=this.JSC$11074_moduleInfoMap_[x])==null?void 0:D.deps_)!=null?S:[],function(Q){Q.module_=new SH},function(Q){return!Q.isLoaded()});
this.JSC$11074_currentlyLoadingModule_=this.getModuleInfo(x)};
_.K.JSC$11061_setLoaded=function(){if(this.JSC$11074_currentlyLoadingModule_){var x=this.JSC$11074_currentlyLoadingModule_.getId(),L=[];if(this.JSC$11074_extraEdges_[x]){for(var D=_.O(Object.keys(this.JSC$11074_extraEdges_[x])),S=D.next();!S.done;S=D.next())S=S.value,this.getModuleInfo(S).isLoaded()||(this.removeExtraEdge(x,S),L.push(S));this.loadMultiple(L)}this.JSC$11074_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$11074_currentlyLoadingModule_=null;(!this.isModuleLoading(x)&&/^sy[0-9a-z]{0,4}$/.test(x)||x==="synthetic_module_overhead")&&delete this.JSC$11074_moduleInfoMap_[x];this.unsetModulesAsLoading(x)}};
_.K.setModulesAsLoading=function(){var x=this;_.Ne.apply(0,arguments).forEach(function(L){x.loadingModules_[L]=!0})};
_.K.unsetModulesAsLoading=function(){var x=this;_.Ne.apply(0,arguments).forEach(function(L){delete x.loadingModules_[L]})};
var Z7W=function(x,L){return new _.HI(function(D,S){var Q=x.getModuleInfo(L);Q.isLoaded()?D(null):(Q.registerCallback(function(){D(null)}),Tgr(Q,function(J){var Z="Error loading "+L+": "+J;
J instanceof Zc.ModuleLoadFailure&&J.url&&(Z=Z+", requested url: "+J.url.toString());S(Error(Z))}))})},O7h=function(x,L){L=L.filter(function(D){return!x.isModuleLoading(D)&&!x.getModuleInfo(D).isLoaded()});
L.length>0&&(x.setModulesAsLoading.apply(x,_.lP(L)),x.JSC$11074_queue_.push(L),IoB(x))},IoB=function(x){for(var L={};x.activeLoads_<Infinity&&x.JSC$11074_queue_.length>0;L={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})L.ids$jscomp$36=x.JSC$11074_queue_.shift().filter(function(D){return!x.getModuleInfo(D).isLoaded()}),L.ids$jscomp$36.length>0&&(x.activeLoads_++,L.finishLoad=function(D){return function(){x.activeLoads_--;
IoB(x);D.finishLoad=function(){}}}(L),_.AR(L.ids$jscomp$36.map(function(D){return Z7W(x,D)})).then(function(D){return function(){(0,D.finishLoad)()}}(L)),L.attempt$jscomp$6=0,L.load$jscomp$1=function(D){return function(){if(Object.keys(x.JSC$11074_extraEdges_).length>0&&!x.JSC$10058_loader_.supportsExtraEdges)throw Error("xd");
x.JSC$10058_loader_.JSC$11053_loadModules(D.ids$jscomp$36,x.JSC$11074_moduleInfoMap_,{extraEdges:x.JSC$11074_extraEdges_,onError:function(S,Q){var J=J2R[D.attempt$jscomp$6++];J!==void 0?setTimeout(function(){(0,D.load$jscomp$1)()},J):(x.unsetModulesAsLoading.apply(x,_.lP(D.ids$jscomp$36)),(0,D.finishLoad)(),D.ids$jscomp$36.forEach(function(Z){Z=x.getModuleInfo(Z);
if(!Z.isLoaded())Z.onError(new Zc.ModuleLoadFailure(Zc.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,S,D.ids$jscomp$36,Q))}))}})}}(L),(0,L.load$jscomp$1)())},y2B=function(x,L,D,S,Q){S=S===void 0?function(){return!0}:S;
Q=Q===void 0?{}:Q;L=_.O(L);for(var J=L.next();!J.done;J=L.next()){J=J.value;var Z=x.getModuleInfo(J);!Q[J]&&S(Z)&&(Q[J]=!0,y2B(x,Z.deps_||[],D,S,Q),D(Z))}};var ENG=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var xk3=Symbol("Ad");window.JSCompiler_renameProperty=function(x){return x};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var Mmi=!ENG||HTMLElement.es5Shimmed||_.Qb.Reflect===void 0||_.Qb.customElements===void 0||_.Qb.customElements.polyfillWrapFlushCallback||!1,dUA,GH3=function(){var x=HTMLElement;if(Mmi)return x;if(dUA!==void 0)return dUA;var L=_.Qb.Reflect,D=function(){return L.construct(x,[],this.constructor)};
D.prototype=x.prototype;D.prototype.constructor=D;D.es5Shimmed=!0;Object.setPrototypeOf(D,x);return dUA=D},P6_=!1;Mmi||P6_||(P6_=!0,_.Qb.HTMLElement=GH3());/*

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 JKb=/(url\()([^)]*)(\))/g,Sy0=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,QPc,M6;var fh=!window.ShadyDOM||!window.ShadyDOM.inUse,jth=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),vN2=!window.customElements.polyfillWrapFlushCallback,Vm2;if(Vm2=fh&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var h$_=new CSSStyleSheet;h$_.replaceSync("");var H7Q=document.createElement("div");H7Q.attachShadow({mode:"open"});H7Q.shadowRoot.adoptedStyleSheets=[h$_];Vm2=H7Q.shadowRoot.adoptedStyleSheets[0]===h$_}catch(x){Vm2=!1}
var utH=Vm2,gNA=window.Polymer&&window.Polymer.rootPath||OGs(document.baseURI||window.location.href),Y3=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,jMh=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,XE=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,kDh=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,iv=window.Polymer&&window.Polymer.legacyOptimizations||!1,zL=window.Polymer&&window.Polymer.legacyWarnings||!1,pad=window.Polymer&&window.Polymer.syncInitialRender||
!1,sU=window.Polymer&&window.Polymer.legacyUndefined||!1,mUR=window.Polymer&&window.Polymer.orderedComputed||!1,I4=window.Polymer&&window.Polymer.removeNestedTemplates||!1,EL=window.Polymer&&window.Polymer.fastDomIf||!1,Mc=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,b7h=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,Y4i=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var d_={},FHR={},ec=function(){return HTMLElement.apply(this,arguments)||this};
_.p(ec,HTMLElement);ec.import=function(x,L){return x?(x=d_[x]||FHR[x.toLowerCase()])&&L?x.querySelector(L):x:null};
ec.prototype.attributeChangedCallback=function(x,L,D){L!==D&&this.register()};
ec.prototype.register=function(x){if(x=x||this.id){if(XE&&(d_[x]||FHR[x.toLowerCase()])!==void 0)throw d_[x]=FHR[x.toLowerCase()]=null,Error("Bd`"+x);this.id=x;d_[x]=FHR[x.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.J3.Object.defineProperties(ec.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var x=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;x=_.dQ(this.getAttribute("assetpath")||"",x.baseURI);this.__assetpath=OGs(x)}return this.__assetpath}}});
_.J3.Object.defineProperties(ec,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
ec["import"]=ec.import;ec.prototype.modules=d_;customElements.define("dom-module",ec);var stG=0,yKn=0,Pv=[],TDh=0,ZG4=!1,e$G=document.createTextNode(""),R$i,rQ;(new window.MutationObserver(ISf)).observe(e$G,{characterData:!0});_.PO={after:function(x){return{run:function(L){return window.setTimeout(L,x)},
cancel:function(L){window.clearTimeout(L)}}},
run:function(x,L){return window.setTimeout(x,L)},
cancel:function(x){window.clearTimeout(x)}};
_.wB={run:function(x){return window.requestAnimationFrame(x)},
cancel:function(x){window.cancelAnimationFrame(x)}};
R$i={run:function(x){return window.requestIdleCallback?window.requestIdleCallback(x):window.setTimeout(x,16)},
cancel:function(x){window.cancelIdleCallback?window.cancelIdleCallback(x):window.clearTimeout(x)}};
rQ={run:function(x){ZG4||(ZG4=!0,e$G.textContent=TDh++);Pv.push(x);return stG++},
cancel:function(x){var L=x-yKn;if(L>=0){if(!Pv[L])throw Error("Cd`"+x);Pv[L]=null}}};var GDB=0,jH=function(x){var L=x.__mixinApplications;L||(L=new WeakMap,x.__mixinApplications=L);var D=GDB++;return function(S){var Q=S.__mixinSet;if(Q&&Q[D])return S;var J=L,Z=J.get(S);Z||(Z=x(S),J.set(S,Z),S=Object.create(Z.__mixinSet||Q||null),S[D]=!0,Z.__mixinSet=S);return Z}};_.bv=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(x){return ShadyDOM.patch(x)}:function(x){return x};var C6W=jH(function(x){var L=function(){var D=x.call(this)||this;D.__dataEnabled=!1;D.__dataReady=!1;D.__dataInvalid=!1;D.__data={};D.__dataPending=null;D.__dataOld=null;D.__dataInstanceProps=null;D.__dataCounter=0;D.__serializing=!1;D._initializeProperties();return D};
_.p(L,x);L.createProperties=function(D){var S=this.prototype,Q;for(Q in D)Q in S||S._createPropertyAccessor(Q)};
L.attributeNameForProperty=function(D){return D.toLowerCase()};
L.typeForProperty=function(){};
L.prototype._createPropertyAccessor=function(D,S){this._addPropertyToAttributeMap(D);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[D]||(this.__dataHasAccessor[D]=!0,this._definePropertyAccessor(D,S))};
L.prototype._addPropertyToAttributeMap=function(D){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var S=this.__dataAttributes[D];S||(S=this.constructor.attributeNameForProperty(D),this.__dataAttributes[S]=D);return S};
L.prototype._definePropertyAccessor=function(D,S){Object.defineProperty(this,D,{get:function(){return this.__data[D]},
set:S?function(){}:function(Q){this._setPendingProperty(D,Q,!0)&&this._invalidateProperties()}})};
L.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
L.prototype._initializeProperties=function(){for(var D in this.__dataHasAccessor)this.hasOwnProperty(D)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[D]=this[D],delete this[D])};
L.prototype._initializeInstanceProperties=function(D){Object.assign(this,D)};
L.prototype._setProperty=function(D,S){this._setPendingProperty(D,S)&&this._invalidateProperties()};
L.prototype._getProperty=function(D){return this.__data[D]};
L.prototype._setPendingProperty=function(D,S){var Q=this.__data[D],J=this._shouldPropertyChange(D,S,Q);J&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||D in this.__dataOld||(this.__dataOld[D]=Q),this.__data[D]=S,this.__dataPending[D]=S);return J};
L.prototype._isPropertyPending=function(D){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(D))};
L.prototype._invalidateProperties=function(){var D=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,rQ.run(function(){D.__dataInvalid&&(D.__dataInvalid=!1,D._flushProperties())}))};
L.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
L.prototype._flushProperties=function(){this.__dataCounter++;var D=this.__data,S=this.__dataPending,Q=this.__dataOld;this._shouldPropertiesChange(D,S,Q)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(D,S,Q));this.__dataCounter--};
L.prototype._shouldPropertiesChange=function(D,S){return!!S};
L.prototype._propertiesChanged=function(){};
L.prototype._shouldPropertyChange=function(D,S,Q){return Q!==S&&(Q===Q||S===S)};
L.prototype.attributeChangedCallback=function(D,S,Q,J){S!==Q&&this._attributeToProperty(D,Q);x.prototype.attributeChangedCallback&&x.prototype.attributeChangedCallback.call(this,D,S,Q,J)};
L.prototype._attributeToProperty=function(D,S,Q){if(!this.__serializing){var J=this.__dataAttributes;D=J&&J[D]||D;this[D]=this._deserializeValue(S,Q||this.constructor.typeForProperty(D))}};
L.prototype._propertyToAttribute=function(D,S,Q){this.__serializing=!0;Q=arguments.length<3?this[D]:Q;this._valueToNodeAttribute(this,Q,S||this.constructor.attributeNameForProperty(D));this.__serializing=!1};
L.prototype._valueToNodeAttribute=function(D,S,Q){S=this._serializeValue(S);if(Q==="class"||Q==="name"||Q==="slot")D=(0,_.bv)(D);S===void 0?D.removeAttribute(Q):D.setAttribute(Q,S===""&&window.trustedTypes?window.trustedTypes.emptyScript:S)};
L.prototype._serializeValue=function(D){switch(typeof D){case "boolean":return D?"":void 0;default:return D!=null?D.toString():void 0}};
L.prototype._deserializeValue=function(D,S){switch(S){case Boolean:return D!==null;case Number:return Number(D);default:return D}};
return L});var loQ=0,Evn=[];var UUB=jH(function(x){function L(J){J=Object.getPrototypeOf(J);return J.prototype instanceof Q?J:null}
function D(J){if(!J.hasOwnProperty("__ownProperties")){var Z=null;if(J.hasOwnProperty("properties")){var y=J.properties;if(y){Z={};for(var E in y){var P=y[E];Z[E]=typeof P==="function"?{type:P}:P}}}J.__ownProperties=Z}return J.__ownProperties}
var S=C6W(x),Q=function(){return S.apply(this,arguments)||this};
_.p(Q,S);Q.finalize=function(){if(!this.hasOwnProperty("__finalized")){var J=L(this);J&&J.finalize();this.__finalized=!0;this._finalizeClass()}};
Q._finalizeClass=function(){var J=D(this);J&&this.createProperties(J)};
Q.typeForProperty=function(J){return(J=this._properties[J])&&J.type};
Q.prototype._initializeProperties=function(){loQ++;this.constructor.finalize();S.prototype._initializeProperties.call(this)};
Q.prototype.connectedCallback=function(){S.prototype.connectedCallback&&S.prototype.connectedCallback.call(this);this._enableProperties()};
Q.prototype.disconnectedCallback=function(){S.prototype.disconnectedCallback&&S.prototype.disconnectedCallback.call(this)};
_.J3.Object.defineProperties(Q,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var J=this;if(!this.hasOwnProperty("__observedAttributes")){MKb(this.prototype);var Z=this._properties;this.__observedAttributes=Z?Object.keys(Z).map(function(y){return J.prototype._addPropertyToAttributeMap(y)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var J=L(this);this.__properties=Object.assign({},J&&J._properties,D(this))}return this.__properties}}});
return Q});var dk3={},Pyn=/-[a-z]/g,jPn=/([A-Z])/g;for(var wa_={},BDQ=HTMLElement.prototype;BDQ;){for(var WH_=Object.getOwnPropertyNames(BDQ),q4A=0;q4A<WH_.length;q4A++)wa_[WH_[q4A]]=!0;BDQ=Object.getPrototypeOf(BDQ)}var A2A=window.trustedTypes?function(x){return trustedTypes.isHTML(x)||trustedTypes.isScript(x)||trustedTypes.isScriptURL(x)}:function(){return!1},$Ud=jH(function(x){var L=C6W(x);
x=function(){return L.apply(this,arguments)||this};
_.p(x,L);x.createPropertiesForAttributes=function(){for(var D=this.observedAttributes,S=0;S<D.length;S++)this.prototype._createPropertyAccessor(jc(D[S]))};
x.attributeNameForProperty=function(D){return vv(D)};
x.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);L.prototype._initializeProperties.call(this)};
x.prototype._initializeProtoProperties=function(D){for(var S in D)this._setProperty(S,D[S])};
x.prototype._ensureAttribute=function(D,S){this.hasAttribute(D)||this._valueToNodeAttribute(this,S,D)};
x.prototype._serializeValue=function(D){switch(typeof D){case "object":if(D instanceof Date)return D.toString();if(D){if(A2A(D))return D;try{return JSON.stringify(D)}catch(S){return""}}default:return L.prototype._serializeValue.call(this,D)}};
x.prototype._deserializeValue=function(D,S){switch(S){case Object:try{var Q=JSON.parse(D)}catch(J){Q=D}break;case Array:try{Q=JSON.parse(D)}catch(J){Q=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+D)}break;case Date:Q=isNaN(D)?String(D):Number(D);Q=new Date(Q);break;default:Q=L.prototype._deserializeValue.call(this,D,S)}return Q};
x.prototype._definePropertyAccessor=function(D,S){if(!wa_[D]){var Q=this[D];Q!==void 0&&(this.__data?this._setPendingProperty(D,Q):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[D]=Q))}L.prototype._definePropertyAccessor.call(this,D,S)};
x.prototype._hasAccessor=function(D){return this.__dataHasAccessor&&this.__dataHasAccessor[D]};
x.prototype._isPropertyPending=function(D){return!!(this.__dataPending&&D in this.__dataPending)};
return x});var r2G={"dom-if":!0,"dom-repeat":!0},ND_=!1,i7i=!1,oNh=function(){var x=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(L){return L}});
return function(L,D,S){D=D.getAttribute(S);x&&S.startsWith("on-")?L.setAttribute(S,x.createScript(D,S)):L.setAttribute(S,D)}}(),aoW=jH(function(x){var L=function(){return x.apply(this,arguments)||this};
_.p(L,x);L._parseTemplate=function(D,S){if(!D._templateInfo){var Q=D._templateInfo={};Q.nodeInfoList=[];Q.nestedTemplate=!!S;Q.stripWhiteSpace=S&&S.stripWhiteSpace||D.hasAttribute&&D.hasAttribute("strip-whitespace");this._parseTemplateContent(D,Q,{parent:null})}return D._templateInfo};
L._parseTemplateContent=function(D,S,Q){return this._parseTemplateNode(D.content,S,Q)};
L._parseTemplateNode=function(D,S,Q){var J=!1;D.localName!="template"||D.hasAttribute("preserve-content")?D.localName==="slot"&&(S.hasInsertionPoint=!0):J=this._parseTemplateNestedTemplate(D,S,Q)||J;if(!ND_){ND_=!0;var Z=document.createElement("textarea");Z.placeholder="a";i7i=Z.placeholder===Z.textContent}i7i&&D.localName==="textarea"&&D.placeholder&&D.placeholder===D.textContent&&(D.textContent=null);D.firstChild&&this._parseTemplateChildNodes(D,S,Q);D.hasAttributes&&D.hasAttributes()&&(J=this._parseTemplateNodeAttributes(D,
S,Q)||J);return J||Q.noted};
L._parseTemplateChildNodes=function(D,S,Q){if(D.localName!=="script"&&D.localName!=="style")for(var J=D.firstChild,Z=0,y;J;J=y){if(J.localName=="template"){var E=J.getAttribute("is");if(E&&r2G[E])for(y=J,y.removeAttribute("is"),J=y.ownerDocument.createElement(E),y.parentNode.replaceChild(J,y),J.appendChild(y);y.attributes.length;)E=y.attributes[0].name,oNh(J,y,E),y.removeAttribute(E)}y=J.nextSibling;if(J.nodeType===Node.TEXT_NODE){for(E=y;E&&E.nodeType===Node.TEXT_NODE;)J.textContent+=E.textContent,
y=E.nextSibling,D.removeChild(E),E=y;if(S.stripWhiteSpace&&!J.textContent.trim()){D.removeChild(J);continue}}E={parentIndex:Z,parentInfo:Q};this._parseTemplateNode(J,S,E)&&(E.infoIndex=S.nodeInfoList.push(E)-1);J.parentNode&&Z++}};
L._parseTemplateNestedTemplate=function(D,S,Q){S=this._parseTemplate(D,S);(S.content=D.content.ownerDocument.createDocumentFragment()).appendChild(D.content);Q.templateInfo=S;return!0};
L._parseTemplateNodeAttributes=function(D,S,Q){for(var J=!1,Z=Array.from(D.attributes),y=Z.length-1,E;E=Z[y];y--)J=this._parseTemplateNodeAttribute(D,S,Q,E.name,E.value)||J;return J};
L._parseTemplateNodeAttribute=function(D,S,Q,J,Z){return J.slice(0,3)==="on-"?(D.removeAttribute(J),Q.events=Q.events||[],Q.events.push({name:J.slice(3),value:Z}),!0):J==="id"?(Q.id=Z,!0):!1};
L._contentForTemplate=function(D){var S=D._templateInfo;return S&&S.content||D.content};
L.prototype._stampTemplate=function(D,S){D&&!D.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(D);S=S||this.constructor._parseTemplate(D);var Q=S.nodeInfoList;D=document.importNode(S.content||D.content,!0);D.__noInsertionPoint=!S.hasInsertionPoint;var J=D.nodeList=Array(Q.length);D.$={};for(var Z=0,y=Q.length,E=void 0;Z<y&&(E=Q[Z]);Z++){var P=J[Z]=vvG(D,E);E.id&&(D.$[E.id]=P);var v=P,V=E,h=S;V.templateInfo&&(v._templateInfo=V.templateInfo,v._parentTemplateInfo=
h);if(E.events&&E.events.length)for(v=0,V=E.events,h=void 0;v<V.length&&(h=V[v]);v++)this._addMethodEventListenerToNode(P,h.name,h.value,this)}return D};
L.prototype._addMethodEventListenerToNode=function(D,S,Q,J){Q=VK0(J||D,Q);this._addEventListenerToNode(D,S,Q);return Q};
L.prototype._addEventListenerToNode=function(D,S,Q){D.addEventListener(S,Q)};
L.prototype._removeEventListenerFromNode=function(D,S,Q){D.removeEventListener(S,Q)};
return L});var ph=0,FE=[],z$_={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Xa_=/[A-Z]/,c2W=function(x,L,D,S,Q){var J=Q?h6(x):x;if(L=L[J])for(J=0;J<L.length;J++){var Z=L[J];if(Z.info.lastRun!==ph&&(!Q||pFG(x,Z.trigger))){Z.info.lastRun=ph;Z=Z.info;for(var y=D,E=S,P=0,v=y.length-1,V=-1;P<=v;){var h=P+v>>1,H=E.get(y[h].methodInfo)-E.get(Z.methodInfo);if(H<0)P=h+1;else if(H>0)v=h-1;else{V=h;break}}V<
0&&(V=v+1);y.splice(V,0,Z)}}},WIO=[],nNH=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"),V3=jH(function(x){var L=aoW($Ud(x));
x=function(){var D=L.call(this)||this;D.__isPropertyEffectsClient=!0;return D};
_.p(x,L);x.prototype._initializeProperties=function(){L.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};
x.prototype._registerHost=function(){if(vO.length){var D=vO[vO.length-1];D._enqueueClient(this);this.__dataHost=D}};
x.prototype._initializeProtoProperties=function(D){this.__data=Object.create(D);this.__dataPending=Object.create(D);this.__dataOld={}};
x.prototype._initializeInstanceProperties=function(D){var S=this.__readOnly,Q;for(Q in D)S&&S[Q]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[Q]=this.__dataPending[Q]=D[Q])};
x.prototype._addPropertyEffect=function(D,S,Q){this._createPropertyAccessor(D,S=="__readOnly");var J=kn0(this,S,!0)[D];J||(J=this[S][D]=[]);J.push(Q)};
x.prototype._removePropertyEffect=function(D,S,Q){D=kn0(this,S,!0)[D];Q=D.indexOf(Q);Q>=0&&D.splice(Q,1)};
x.prototype._hasPropertyEffect=function(D,S){S=this[S];return!(!S||!S[D])};
x.prototype._hasReadOnlyEffect=function(D){return this._hasPropertyEffect(D,"__readOnly")};
x.prototype._hasNotifyEffect=function(D){return this._hasPropertyEffect(D,"__notifyEffects")};
x.prototype._hasReflectEffect=function(D){return this._hasPropertyEffect(D,"__reflectEffects")};
x.prototype._hasComputedEffect=function(D){return this._hasPropertyEffect(D,"__computeEffects")};
x.prototype._setPendingPropertyOrPath=function(D,S,Q,J){if(J||h6(Array.isArray(D)?D[0]:D)!==D){if(!J&&(J=k3(this,D),D=gvw(this,D,S),!D||!L.prototype._shouldPropertyChange.call(this,D,S,J)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(D,S,Q)){if(Q=this.__dataLinkedPaths)for(var Z in Q)J=Q[Z],Hv(Z,D)?(J=uv(Z,J,D),this._setPendingPropertyOrPath(J,S,!0,!0)):Hv(J,D)&&(J=uv(J,Z,D),this._setPendingPropertyOrPath(J,S,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[D])return this._setPendingProperty(D,
S,Q);this[D]=S}return!1};
x.prototype._setUnmanagedPropertyToNode=function(D,S,Q){if(Q!==D[S]||typeof Q=="object")S==="className"&&(D=(0,_.bv)(D)),D[S]=Q};
x.prototype._setPendingProperty=function(D,S,Q){var J=this.__dataHasPaths&&VB(D);if(this._shouldPropertyChange(D,S,(J?this.__dataTemp:this.__data)[D])){this.__dataPending||(this.__dataPending={},this.__dataOld={});D in this.__dataOld||(this.__dataOld[D]=this.__data[D]);J?this.__dataTemp[D]=S:this.__data[D]=S;this.__dataPending[D]=S;if(J||this.__notifyEffects&&this.__notifyEffects[D])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[D]=Q;return!0}return!1};
x.prototype._setProperty=function(D,S){this._setPendingProperty(D,S,!0)&&this._invalidateProperties()};
x.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
x.prototype._enqueueClient=function(D){this.__dataPendingClients=this.__dataPendingClients||[];D!==this&&this.__dataPendingClients.push(D)};
x.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
x.prototype.__enableOrFlushClients=function(){var D=this.__dataPendingClients;if(D){this.__dataPendingClients=null;for(var S=0;S<D.length;S++){var Q=D[S];Q.__dataEnabled?Q.__dataPending&&Q._flushProperties():Q._enableProperties()}}};
x.prototype._readyClients=function(){this.__enableOrFlushClients()};
x.prototype.setProperties=function(D,S){for(var Q in D)!S&&this.__readOnly&&this.__readOnly[Q]||this._setPendingPropertyOrPath(Q,D[Q],!0);this._invalidateProperties()};
x.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
x.prototype._propertiesChanged=function(D,S,Q){D=this.__dataHasPaths;this.__dataHasPaths=!1;var J;if(J=this.__computeEffects)if(mUR){ph++;var Z=TVh(this),y=[],E;for(E in S)c2W(E,J,y,Z,D);for(;E=y.shift();)RrG(this,"",S,Q,E)&&c2W(E.methodInfo,J,y,Z,D);Object.assign(Q,this.__dataOld);Object.assign(S,this.__dataPending);this.__dataPending=null}else for(Z=S;mu(this,J,Z,Q,D);)Object.assign(Q,this.__dataOld),Object.assign(S,this.__dataPending),Z=this.__dataPending,this.__dataPending=null;J=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(S,Q,D);this._flushClients();mu(this,this.__reflectEffects,S,Q,D);mu(this,this.__observeEffects,S,Q,D);if(J){Z=this.__notifyEffects;y=ph++;for(var P in J)if(J[P]){if(E=Z){var v=Z;E=y;var V=P,h=S,H=Q,k=D,T=!1,G=k?h6(V):V;if(v=v[G]){G=0;for(var U=v.length,l=void 0;G<U&&(l=v[G]);G++)l.info&&l.info.lastRun===E||k&&!pFG(V,l.trigger)||(l.info&&(l.info.lastRun=E),l.fn(this,V,h,H,l.info,k,void 0),T=!0)}E=T}if(E)var X=!0;else{if(E=D)E=P,V=S,h=h6(E),h!==
E?(h=vv(h)+"-changed",bGn(this,h,V[E],E),E=!0):E=!1;E&&(X=!0)}}var f;X&&(f=this.__dataHost)&&f._invalidateProperties&&f._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
x.prototype._propagatePropertyChanges=function(D,S,Q){this.__propagateEffects&&mu(this,this.__propagateEffects,D,S,Q);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,D,S,Q)};
x.prototype._runEffectsForTemplate=function(D,S,Q,J){var Z=this,y=function(E,P){mu(Z,D.propertyEffects,E,Q,P,D.nodeList);for(var v=D.firstChild;v;v=v.nextSibling)Z._runEffectsForTemplate(v,E,Q,P)};
D.runEffects?D.runEffects(y,S,J):y(S,J)};
x.prototype.linkPaths=function(D,S){D=gQ(D);S=gQ(S);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[D]=S};
x.prototype.unlinkPaths=function(D){D=gQ(D);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[D]};
x.prototype.notifySplices=function(D,S){var Q={path:""};D=k3(this,D,Q);rK0(this,D,Q.path,S)};
x.prototype.get=function(D,S){return k3(S||this,D)};
x.prototype.set=function(D,S,Q){Q?gvw(Q,D,S):this.__readOnly&&this.__readOnly[D]||this._setPendingPropertyOrPath(D,S,!0)&&this._invalidateProperties()};
x.prototype.push=function(D){var S=_.Ne.apply(1,arguments),Q={path:""},J=k3(this,D,Q),Z=J.length,y=J.push.apply(J,_.lP(S));S.length&&TL(this,J,Q.path,Z,S.length,[]);return y};
x.prototype.pop=function(D){var S={path:""};D=k3(this,D,S);var Q=!!D.length,J=D.pop();Q&&TL(this,D,S.path,D.length,0,[J]);return J};
x.prototype.splice=function(D,S,Q){var J=_.Ne.apply(3,arguments),Z={path:""},y=k3(this,D,Z);S<0?S=y.length-Math.floor(-S):S&&(S=Math.floor(S));var E=arguments.length===2?y.splice(S):y.splice.apply(y,[S,Q].concat(_.lP(J)));(J.length||E.length)&&TL(this,y,Z.path,S,J.length,E);return E};
x.prototype.shift=function(D){var S={path:""};D=k3(this,D,S);var Q=!!D.length,J=D.shift();Q&&TL(this,D,S.path,0,0,[J]);return J};
x.prototype.unshift=function(D){var S=_.Ne.apply(1,arguments),Q={path:""},J=k3(this,D,Q),Z=J.unshift.apply(J,_.lP(S));S.length&&TL(this,J,Q.path,0,S.length,[]);return Z};
x.prototype.notifyPath=function(D,S){if(arguments.length==1){var Q={path:""};S=k3(this,D,Q);Q=Q.path}else Q=Array.isArray(D)?gQ(D):D;this._setPendingPropertyOrPath(Q,S,!0,!0)&&this._invalidateProperties()};
x.prototype._createReadOnlyProperty=function(D,S){this._addPropertyEffect(D,"__readOnly");S&&(this["_set"+(D[0].toUpperCase()+D.substring(1))]=function(Q){this._setProperty(D,Q)})};
x.prototype._createPropertyObserver=function(D,S,Q){var J={property:D,method:S,dynamicFn:!!Q};this._addPropertyEffect(D,"__observeEffects",{fn:mkh,info:J,trigger:{name:D}});Q&&this._addPropertyEffect(S,"__observeEffects",{fn:mkh,info:J,trigger:{name:S}})};
x.prototype._createMethodObserver=function(D,S){var Q=AK0(D);if(!Q)throw Error("Dd`"+D);wF4(this,Q,"__observeEffects",erp,null,S)};
x.prototype._createNotifyingProperty=function(D){this._addPropertyEffect(D,"__notifyEffects",{fn:Yyf,info:{eventName:vv(D)+"-changed",property:D}})};
x.prototype._createReflectedProperty=function(D){var S=this.constructor.attributeNameForProperty(D);S[0]==="-"?console.warn("Property "+D+" cannot be reflected to attribute "+S+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(D,"__reflectEffects",{fn:FIp,info:{attrName:S}})};
x.prototype._createComputedProperty=function(D,S,Q){var J=AK0(S);if(!J)throw Error("Ed`"+S);S=wF4(this,J,"__computeEffects",RrG,D,Q);kn0(this,"__computeInfo")[D]=S};
x.prototype._marshalArgs=function(D,S,Q){for(var J=this.__data,Z=[],y=0,E=D.length;y<E;y++){var P=D[y],v=P.name,V=P.structured,h=P.wildcard,H=P.value;P.literal||(h?(P=Hv(v,S),V=$kN(J,Q,P?S:v),H={path:P?S:v,value:V,base:P?k3(J,v):V}):H=V?$kN(J,Q,v):J[v]);if(sU&&!this._overrideLegacyUndefined&&H===void 0&&D.length>1)return FE;Z[y]=H}return Z};
x.addPropertyEffect=function(D,S,Q){this.prototype._addPropertyEffect(D,S,Q)};
x.createPropertyObserver=function(D,S,Q){this.prototype._createPropertyObserver(D,S,Q)};
x.createMethodObserver=function(D,S){this.prototype._createMethodObserver(D,S)};
x.createNotifyingProperty=function(D){this.prototype._createNotifyingProperty(D)};
x.createReadOnlyProperty=function(D,S){this.prototype._createReadOnlyProperty(D,S)};
x.createReflectedProperty=function(D){this.prototype._createReflectedProperty(D)};
x.createComputedProperty=function(D,S,Q){this.prototype._createComputedProperty(D,S,Q)};
x.bindTemplate=function(D){return this.prototype._bindTemplate(D)};
x.prototype._bindTemplate=function(D,S){var Q=this.constructor._parseTemplate(D),J=this.__preBoundTemplateInfo==Q;if(!J)for(var Z in Q.propertyEffects)this._createPropertyAccessor(Z);S?(Q=Object.create(Q),Q.wasPreBound=J,this.__templateInfo?(D=D._parentTemplateInfo||this.__templateInfo,S=D.lastChild,Q.parent=D,D.lastChild=Q,(Q.previousSibling=S)?S.nextSibling=Q:D.firstChild=Q):this.__templateInfo=Q):this.__preBoundTemplateInfo=Q;return Q};
x._addTemplatePropertyEffect=function(D,S,Q){(D.hostProps=D.hostProps||{})[S]=!0;D=D.propertyEffects=D.propertyEffects||{};(D[S]=D[S]||[]).push(Q)};
x.prototype._stampTemplate=function(D,S){S=S||this._bindTemplate(D,!0);vO.push(this);D=L.prototype._stampTemplate.call(this,D,S);vO.pop();S.nodeList=D.nodeList;if(!S.wasPreBound)for(var Q=S.childNodes=[],J=D.firstChild;J;J=J.nextSibling)Q.push(J);D.templateInfo=S;Q=S.nodeList;J=S.nodeInfoList;if(J.length)for(var Z=0;Z<J.length;Z++){var y=Q[Z],E=J[Z].bindings;if(E)for(var P=0;P<E.length;P++){var v=E[P],V=y,h=v;if(h.isCompound){for(var H=V.__dataCompoundStorage||(V.__dataCompoundStorage={}),k=h.parts,
T=Array(k.length),G=0;G<k.length;G++)T[G]=k[G].literal;k=h.target;H[k]=T;h.literal&&h.kind=="property"&&(k==="className"&&(V=(0,_.bv)(V)),V[k]=h.literal)}Uk0(y,this,v)}y.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(S,this.__data,null,!1),this._flushClients());return D};
x.prototype._removeBoundDom=function(D){D=D.templateInfo;var S=D.previousSibling,Q=D.nextSibling,J=D.parent;S?S.nextSibling=Q:J&&(J.firstChild=Q);Q?Q.previousSibling=S:J&&(J.lastChild=S);D.nextSibling=D.previousSibling=null;D=D.childNodes;for(S=0;S<D.length;S++)Q=D[S],(0,_.bv)((0,_.bv)(Q).parentNode).removeChild(Q)};
x._parseTemplateNode=function(D,S,Q){var J=L._parseTemplateNode.call(this,D,S,Q);if(D.nodeType===Node.TEXT_NODE){var Z=this._parseBindings(D.textContent,S);Z&&(D.textContent=BV0(Z)||" ",lSG(this,S,Q,"text","textContent",Z),J=!0)}return J};
x._parseTemplateNodeAttribute=function(D,S,Q,J,Z){var y=this._parseBindings(Z,S);if(y){Z=J;var E="property";Xa_.test(J)?E="attribute":J[J.length-1]=="$"&&(J=J.slice(0,-1),E="attribute");var P=BV0(y);P&&E=="attribute"&&(J=="class"&&D.hasAttribute("class")&&(P+=" "+D.getAttribute(J)),D.setAttribute(J,P));E=="attribute"&&Z=="disable-upgrade$"&&D.setAttribute(J,"");D.localName==="input"&&Z==="value"&&D.setAttribute(Z,"");D.removeAttribute(Z);E==="property"&&(J=jc(J));lSG(this,S,Q,E,J,y,P);return!0}return L._parseTemplateNodeAttribute.call(this,
D,S,Q,J,Z)};
x._parseTemplateNestedTemplate=function(D,S,Q){var J=L._parseTemplateNestedTemplate.call(this,D,S,Q),Z=D.parentNode,y=Q.templateInfo,E=Z.localName==="dom-if",P=Z.localName==="dom-repeat";I4&&(E||P)&&(Z.removeChild(D),Q=Q.parentInfo,Q.templateInfo=y,Q.noted=!0,J=!1);D=y.hostProps;if(EL&&E)D&&(S.hostProps=Object.assign(S.hostProps||{},D),I4||(Q.parentInfo.noted=!0));else for(var v in D)lSG(this,S,Q,"property","_host_"+v,[{mode:"{",source:v,dependencies:[v],hostProp:!0}]);return J};
x._parseBindings=function(D,S){for(var Q=[],J=0,Z;(Z=nNH.exec(D))!==null;){Z.index>J&&Q.push({literal:D.slice(J,Z.index)});J=Z[1][0];var y=!!Z[2];Z=Z[3].trim();var E=!1,P="",v=-1;J=="{"&&(v=Z.indexOf("::"))>0&&(P=Z.substring(v+2),Z=Z.substring(0,v),E=!0);v=AK0(Z);var V=[];if(v){var h=v,H=h.args;h=h.methodName;for(var k=0;k<H.length;k++){var T=H[k];T.literal||V.push(T)}if((H=S.dynamicFns)&&H[h]||v.static)V.push(h),v.dynamicFn=!0}else V.push(Z);Q.push({source:Z,mode:J,negate:y,customEvent:E,signature:v,
dependencies:V,event:P});J=nNH.lastIndex}J&&J<D.length&&(D=D.substring(J))&&Q.push({literal:D});return Q.length?Q:null};
x._evaluateBinding=function(D,S,Q,J,Z,y){D=S.signature?erp(D,Q,J,Z,S.signature):Q!=S.source?k3(D,S.source):y&&VB(Q)?k3(D,Q):D.__data[Q];S.negate&&(D=!D);return D};
_.J3.Object.defineProperties(x.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return z$_}}});
return x}),vO=[];var tmd=window.ShadyCSS&&window.ShadyCSS.cssBuild,hs=jH(function(x){function L(S,Q,J,Z){if(!tmd){for(var y=Q.content.querySelectorAll("style"),E=ov3(Q),P=aSO(J),v=Q.content.firstElementChild,V=0;V<P.length;V++){var h=P[V];h.textContent=S._processStyleText(h.textContent,Z);Q.content.insertBefore(h,v)}for(v=P=0;v<E.length;v++)V=E[v],h=y[P],h!==V?(V=V.cloneNode(!0),h.parentNode.insertBefore(V,h)):P++,V.textContent=S._processStyleText(V.textContent,Z)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(Q,
J);if(Y4i&&tmd&&utH&&(Q=Q.content.querySelectorAll("style"))){var H="";Array.from(Q).forEach(function(k){H+=k.textContent;k.parentNode.removeChild(k)});
S._styleSheet=new CSSStyleSheet;S._styleSheet.replaceSync(H)}}
var D=UUB(V3(x));x=function(){return D.call(this)||this};
_.p(x,D);x._finalizeClass=function(){D._finalizeClass.call(this);var S;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(S=this.__ownObservers)&&this.createObservers(S,this._properties);this._prepareTemplate()};
x._prepareTemplate=function(){var S=this.template;S&&(typeof S==="string"?(console.error("template getter must return HTMLTemplateElement"),S=null):iv||(S=S.cloneNode(!0)));this.prototype._template=S};
x.createProperties=function(S){for(var Q in S){var J=this.prototype,Z=Q,y=S[Q],E=S;y.computed&&(y.readOnly=!0);y.computed&&(J._hasReadOnlyEffect(Z)?console.warn("Cannot redefine computed property '"+Z+"'."):J._createComputedProperty(Z,y.computed,E));y.readOnly&&!J._hasReadOnlyEffect(Z)?J._createReadOnlyProperty(Z,!y.computed):y.readOnly===!1&&J._hasReadOnlyEffect(Z)&&console.warn("Cannot make readOnly property '"+Z+"' non-readOnly.");y.reflectToAttribute&&!J._hasReflectEffect(Z)?J._createReflectedProperty(Z):
y.reflectToAttribute===!1&&J._hasReflectEffect(Z)&&console.warn("Cannot make reflected property '"+Z+"' non-reflected.");y.notify&&!J._hasNotifyEffect(Z)?J._createNotifyingProperty(Z):y.notify===!1&&J._hasNotifyEffect(Z)&&console.warn("Cannot make notify property '"+Z+"' non-notify.");y.observer&&J._createPropertyObserver(Z,y.observer,E[y.observer]);J._addPropertyToAttributeMap(Z)}};
x.createObservers=function(S,Q){for(var J=this.prototype,Z=0;Z<S.length;Z++)J._createMethodObserver(S[Z],Q)};
x.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);D.prototype._initializeProperties.call(this);this.rootPath=gNA;this.importPath=this.constructor.importPath;var S=this.constructor;if(!S.hasOwnProperty("__propertyDefaults")){S.__propertyDefaults=null;var Q=S._properties,J;for(J in Q){var Z=Q[J];"value"in Z&&(S.__propertyDefaults=S.__propertyDefaults||{},S.__propertyDefaults[J]=Z)}}if(S=S.__propertyDefaults)for(var y in S)Q=S[y],
this._canApplyPropertyDefault(y)&&(Q=typeof Q.value=="function"?Q.value.call(this):Q.value,this._hasAccessor(y)?this._setPendingProperty(y,Q,!0):this[y]=Q)};
x.prototype._canApplyPropertyDefault=function(S){return!this.hasOwnProperty(S)};
x._processStyleText=function(S,Q){return KIp(S,Q)};
x._finalizeTemplate=function(S){var Q=this.prototype._template;if(Q&&!Q.__polymerFinalized){Q.__polymerFinalized=!0;var J=this.importPath;J=J?_.dQ(J):"";L(this,Q,S,J);this.prototype._bindTemplate(Q)}};
x.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);D.prototype.connectedCallback.call(this)};
x.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);D.prototype.ready.call(this)};
x.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));D.prototype._readyClients.call(this)};
x.prototype._attachDom=function(S){var Q=(0,_.bv)(this);if(Q.attachShadow)return S?(Q.shadowRoot||(Q.attachShadow({mode:"open",shadyUpgradeFragment:S}),Q.shadowRoot.appendChild(S),this.constructor._styleSheet&&(Q.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),pad&&window.ShadyDOM&&window.ShadyDOM.flushInitial(Q.shadowRoot),Q.shadowRoot):null;throw Error("Gd");};
x.prototype.updateStyles=function(S){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,S)};
x.prototype.resolveUrl=function(S,Q){!Q&&this.importPath&&(Q=_.dQ(this.importPath));return _.dQ(S,Q)};
x._parseTemplateContent=function(S,Q,J){Q.dynamicFns=Q.dynamicFns||this._properties;return D._parseTemplateContent.call(this,S,Q,J)};
x._addTemplatePropertyEffect=function(S,Q,J){!zL||Q in this._properties||J.info.part.signature&&J.info.part.signature.static||J.info.part.hostProp||S.nestedTemplate||console.warn("Property '"+Q+"' used in template but not declared in 'properties'; attribute will not be observed.");return D._addTemplatePropertyEffect.call(this,S,Q,J)};
_.J3.Object.defineProperties(x,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var S=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof S==="function"&&(S=S());if(S===void 0){if(S=this.hasOwnProperty("is")){S=this.is;var Q=null;if(S&&(!XE||kDh)&&(Q=ec.import(S,"template"),XE&&!Q))throw Error("Fd`"+S);S=Q}S=S||Object.getPrototypeOf(this.prototype).constructor.template}this._template=S}return this._template},
set:function(S){this._template=S}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var S=this.importMeta;S?this._importPath=OGs(S.url):this._importPath=(S=ec.import(this.is))&&S.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return x});var xB2=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(x){return x}}),Li0=function(x,L){LtR(x,L);
this.value=L.reduce(function(D,S,Q){return D+Da0(S)+x[Q+1]},x[0]).toString()},LtR;
Li0.prototype.toString=function(){return this.value};
_.DBh=function(x){var L=_.Ne.apply(1,arguments);LtR(x,L);var D=document.createElement("template");L=L.reduce(function(S,Q,J){if(Q instanceof HTMLTemplateElement)Q=Q.innerHTML;else if(Q instanceof Li0)Q=Da0(Q);else throw Error("Id`"+Q);return S+Q+x[J+1]},x[0]);
xB2&&(L=xB2.createHTML(L));D.innerHTML=L;return D};
LtR=function(x,L){if(!Array.isArray(x)||!Array.isArray(x.raw)||L.length!==x.length-1)throw new TypeError("Jd");};var HO=hs(HTMLElement);var SOH=jH(function(x){var L=hs(x);x=function(){var D=L.call(this)||this;D.__lastItems=null;D.__lastMulti=null;D.__selectedMap=null;return D};
_.p(x,L);x.prototype.__updateSelection=function(D,S){var Q=S.path;Q=="items"?(S=S.base||[],Q=this.__lastItems,D!==this.__lastMulti&&this.clearSelection(),Q&&(Q=xaG(S,Q),this.__applySplices(Q)),this.__lastItems=S,this.__lastMulti=D):S.path=="items.splices"?this.__applySplices(S.value.indexSplices):(D=Q.slice(6),S=parseInt(D,10),D.indexOf(".")<0&&D==S&&this.__deselectChangedIdx(S))};
x.prototype.__applySplices=function(D){for(var S=this,Q=this.__selectedMap,J={},Z=0;Z<D.length;J={s$jscomp$109:void 0},Z++){J.s$jscomp$109=D[Z];Q.forEach(function(v){return function(V,h){V<v.s$jscomp$109.index||(V>=v.s$jscomp$109.index+v.s$jscomp$109.removed.length?Q.set(h,V+v.s$jscomp$109.addedCount-v.s$jscomp$109.removed.length):Q.set(h,-1))}}(J));
for(var y=0;y<J.s$jscomp$109.addedCount;y++){var E=J.s$jscomp$109.index+y;Q.has(this.items[E])&&Q.set(this.items[E],E)}}this.__updateLinks();var P=0;Q.forEach(function(v,V){v<0?(S.multi?S.splice("selected",P,1):S.selected=S.selectedItem=null,Q.delete(V)):P++})};
x.prototype.__updateLinks=function(){var D=this;this.__dataLinkedPaths={};if(this.multi){var S=0;this.__selectedMap.forEach(function(Q){Q>=0&&D.linkPaths("items."+Q,"selected."+S++)})}else this.__selectedMap.forEach(function(Q){D.linkPaths("selected","items."+Q);
D.linkPaths("selectedItem","items."+Q)})};
x.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
x.prototype.isSelected=function(D){return this.__selectedMap.has(D)};
x.prototype.isIndexSelected=function(D){return this.isSelected(this.items[D])};
x.prototype.__deselectChangedIdx=function(D){var S=this,Q=this.__selectedIndexForItemIndex(D);if(Q>=0){var J=0;this.__selectedMap.forEach(function(Z,y){Q==J++&&S.deselect(y)})}};
x.prototype.__selectedIndexForItemIndex=function(D){if(D=this.__dataLinkedPaths["items."+D])return parseInt(D.slice(9),10)};
x.prototype.deselect=function(D){var S=this.__selectedMap.get(D);if(S>=0){this.__selectedMap.delete(D);var Q;this.multi&&(Q=this.__selectedIndexForItemIndex(S));this.__updateLinks();this.multi?this.splice("selected",Q,1):this.selected=this.selectedItem=null}};
x.prototype.deselectIndex=function(D){this.deselect(this.items[D])};
x.prototype.select=function(D){this.selectIndex(this.items.indexOf(D))};
x.prototype.selectIndex=function(D){var S=this.items[D];this.isSelected(S)?this.toggle&&this.deselectIndex(D):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(S,D),this.__updateLinks(),this.multi?this.push("selected",S):this.selected=this.selectedItem=S)};
_.J3.Object.defineProperties(x,{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 x}),Qqd=SOH(HO),u_=function(){return Qqd.apply(this,arguments)||this};
_.p(u_,Qqd);_.J3.Object.defineProperties(u_,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(u_.is,u_);var JdB=window.Polymer;window.Polymer=function(x){return window.Polymer._polymerFn(x)};
JdB&&Object.assign(Polymer,JdB);Polymer._polymerFn=function(){throw Error("Kd");};/*

Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
Polymer.ResolveUrl={resolveCss:KIp,resolveUrl:_.dQ,pathFromUrl:OGs};Polymer.DomModule=ec;Polymer.Async={timeOut:_.PO,animationFrame:_.wB,idlePeriod:R$i,microTask:rQ};Polymer.dedupingMixin=jH;Polymer.wrap=_.bv;Polymer.PropertiesChanged=C6W;Polymer.telemetry={instanceCount:loQ,incrementInstanceCount:function(){loQ++},
registrations:Evn,register:MKb,dumpRegistrations:function(){Evn.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=UUB;Polymer.CaseMap={dashToCamelCase:jc,camelToDashCase:vv};Polymer.PropertyAccessors=$Ud;Polymer.TemplateStamp=aoW;Polymer.Path={isPath:VB,root:h6,isAncestor:hrf,isDescendant:Hv,translate:uv,matches:HG3,normalize:gQ,split:uo4,get:k3,set:gvw,isDeep:VB};Polymer.Settings={useShadow:fh,useNativeCSSProperties:jth,useNativeCustomElements:vN2,get rootPath(){return gNA},setRootPath:function(x){gNA=x},
get sanitizeDOMValue(){return Y3},setSanitizeDOMValue:function(x){Y3=x},
get passiveTouchGestures(){return jMh},setPassiveTouchGestures:function(x){jMh=x},
get strictTemplatePolicy(){return XE},setStrictTemplatePolicy:function(x){XE=x},
get allowTemplateFromDomModule(){return kDh},setAllowTemplateFromDomModule:function(x){kDh=x},
get legacyOptimizations(){return iv},setLegacyOptimizations:function(x){iv=x},
get syncInitialRender(){return pad},setSyncInitialRender:function(x){pad=x},
get legacyUndefined(){return sU},setLegacyUndefined:function(x){sU=x},
get legacyWarnings(){return zL},setLegacyWarnings:function(x){zL=x},
get orderedComputed(){return mUR},setOrderedComputed:function(x){mUR=x},
get fastDomIf(){return EL},setFastDomIf:function(x){EL=x},
get removeNestedTemplates(){return I4},setRemoveNestedTemplates:function(x){I4=x},
get suppressTemplateNotifications(){return Mc},setSuppressTemplateNotifications:Mc};Polymer.rootPath!==void 0&&(gNA=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(Y3=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(jMh=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(XE=Polymer.strictTemplatePolicy);kDh=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(iv=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(pad=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(sU=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(zL=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(mUR=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(EL=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(I4=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(Mc=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return Y3},
set:function(x){Y3=x}});Polymer.PropertyEffects=V3;Polymer.StyleGather={stylesFromModules:fSp,stylesFromModule:iGb,stylesFromTemplate:ov3,stylesFromModuleImports:aSO,cssFromModules:XF3,cssFromModule:zrh,cssFromTemplate:cKO,cssFromModuleImports:function(x){return(x=ec.import(x))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(x):""}};Polymer.ElementMixin=hs;Polymer.updateStyles=function(x){window.ShadyCSS&&window.ShadyCSS.styleDocument(x)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:xaG};Polymer.html=_.DBh;Polymer.htmlLiteral=function(x){return new Li0(x,_.Ne.apply(1,arguments))};Polymer.Element=HO;Polymer.ArraySelectorMixin=SOH;Polymer.ArraySelector=u_;var KtG=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,OBd=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,UC3=/@media\s(.*)/;var Kib=null,J9N=window.HTMLImports&&window.HTMLImports.whenReady||null,Ois;var ZBQ=null,g_=null,kt=function(){this.customStyles=[];this.enqueued=!1;Zis(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},ydB=function(x){!x.enqueued&&g_&&(x.enqueued=!0,Zis(g_))};
kt.prototype.addCustomStyle=function(x){x.__seenByShadyCSS||(x.__seenByShadyCSS=!0,this.customStyles.push(x),ydB(this))};
kt.prototype.getStyleForCustomStyle=function(x){if(x.__shadyCSSCachedStyle)return x.__shadyCSSCachedStyle;var L;x.getStyle?L=x.getStyle():L=x;return L};
kt.prototype.processStyles=function(){for(var x=this.customStyles,L=0;L<x.length;L++){var D=x[L];if(!D.__shadyCSSCachedStyle){var S=this.getStyleForCustomStyle(D);S&&(S=S.__appliedElement||S,ZBQ&&ZBQ(S),D.__shadyCSSCachedStyle=S)}}return x};
kt.prototype.addCustomStyle=kt.prototype.addCustomStyle;kt.prototype.getStyleForCustomStyle=kt.prototype.getStyleForCustomStyle;kt.prototype.processStyles=kt.prototype.processStyles;Object.defineProperties(kt.prototype,{transformCallback:{get:function(){return ZBQ},
set:function(x){ZBQ=x}},
validateCallback:{get:function(){return g_},
set:function(x){var L=!1;g_||(L=!0);g_=x;L&&ydB(this)}}});var IcG=!(window.ShadyDOM&&window.ShadyDOM.inUse),y93,Qz;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(Qz=window.ShadyCSS.cssBuild);var Iv2=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?y93=window.ShadyCSS.nativeCss:window.ShadyCSS?(EIw(window.ShadyCSS),window.ShadyCSS=void 0):EIw(window.WebComponents&&window.WebComponents.flags);var GCf=y93;var E8B=new kt;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(x,L){E8B.processStyles();S9N(x,L)},
styleElement:function(){E8B.processStyles()},
styleDocument:function(x){E8B.processStyles();S9N(document.body,x)},
getComputedStyleValue:function(x,L){return QM0(x,L)},
flushCustomStyles:function(){},
nativeCss:GCf,nativeShadow:IcG,cssBuild:Qz,disableRuntime:Iv2});window.ShadyCSS.CustomStyleInterface=E8B;var MR2=window.ShadyCSS.CustomStyleInterface,p0=function(){var x=HTMLElement.call(this)||this;x._style=null;MR2.addCustomStyle(x);return x};
_.p(p0,HTMLElement);p0.prototype.getStyle=function(){if(this._style)return this._style;var x=this.querySelector("style");if(!x)return null;this._style=x;var L=x.getAttribute("include");L&&(x.removeAttribute("include"),x.textContent=XF3(L)+x.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
p0.prototype.getStyle=p0.prototype.getStyle;window.customElements.define("custom-style",p0);Polymer.CustomStyle=p0;var mD=function(){this._timer=this._callback=this._asyncModule=null},b_,P1G;
mD.prototype.setConfig=function(x,L){var D=this;this._asyncModule=x;this._callback=L;this._timer=this._asyncModule.run(function(){D._timer=null;b_.delete(D);D._callback()})};
mD.prototype.cancel=function(){this.isActive()&&(dB2(this),b_.delete(this))};
var dB2=function(x){x.isActive()&&(x._asyncModule.cancel(x._timer),x._timer=null)};
mD.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
mD.prototype.isActive=function(){return this._timer!=null};
_.Yt=function(x,L,D){x instanceof mD?dB2(x):x=new mD;x.setConfig(L,D);return x};
b_=new Set;_.F4=function(x){b_.add(x)};
P1G=function(){var x=!!b_.size;b_.forEach(function(L){try{L.flush()}catch(D){setTimeout(function(){throw D;})}});
return x};var da3=typeof document.head.style.touchAction==="string",M_w=["mousedown","mousemove","mouseup","click"],kEG=[0,1,4,2],jqC;try{jqC=(new MouseEvent("test",{buttons:1})).buttons===1}catch(x){jqC=!1}var gIf=jqC,PVw=!1;(function(){try{var x=Object.defineProperty({},"passive",{get:function(){PVw=!0}});
window.addEventListener("test",null,x);window.removeEventListener("test",null,x)}catch(L){}})();
var V_f=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),hEc=[],v8C={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},lc0={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},Hiw=function(x){var L=x.sourceCapabilities;if(!L||L.firesTouchEvents)if(x.__polymerGesturesHandled={skip:!0},x.type==="click"){L=!1;for(var D=Y9c(x),S=0;S<D.length;S++){if(D[S].nodeType===Node.ELEMENT_NODE)if(D[S].localName==="label")hEc.push(D[S]);
else if(v8C[D[S].localName]){var Q=D[S];var J=Array.prototype.slice.call(Q.labels||[]);if(!J.length){J=[];try{var Z=Q.getRootNode();if(Q.id){var y=Z.querySelectorAll("label[for = '"+Q.id+"']");for(Q=0;Q<y.length;Q++)J.push(y[Q])}}catch(E){}}for(Q=0;Q<J.length;Q++)L=L||hEc.indexOf(J[Q])>-1}if(D[S]===VRQ)return}L||(x.preventDefault(),x.stopPropagation())}},VRQ=null,sL=null,sMf=0,Tyw=0,Fib=-1,eEf=!1;
document.addEventListener("touchend",function(x){sL||uKG(!0);VRQ=Y9c(x)[0];sL=_.Yt(sL,_.PO.after(2500),function(){uKG();sL=VRQ=null})},PVw?{passive:!0}:!1);
var Y9c=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(x){return x.composedPath&&x.composedPath()||[]},wQ={},lv=[];
REG({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){Ch(this.info)},
mousedown:function(x){if(GL(x)){var L=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(x),D=this;ma0(this.info,function(S){GL(S)||(N6("up",L,S),Ch(D.info))},function(S){GL(S)&&N6("up",L,S);
Ch(D.info)});
N6("down",L,x)}},
touchstart:function(x){N6("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(x),x.changedTouches[0],x)},
touchend:function(x){N6("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(x),x.changedTouches[0],x)}});
REG({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(x){this.moves.length>2&&this.moves.shift();this.moves.push(x)},
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;Ch(this.info)},
mousedown:function(x){if(GL(x)){var L=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(x),D=this,S=function(Q){var J=Q.clientX,Z=Q.clientY;GEf(D.info,J,Z)&&(D.info.state=D.info.started?Q.type==="mouseup"?"end":"track":"start",D.info.state==="start"&&UU("tap"),D.info.addMove({x:J,y:Z}),GL(Q)||(D.info.state="end",Ch(D.info)),L&&CV4(D.info,L,Q),D.info.started=!0)};
ma0(this.info,S,function(Q){D.info.started&&S(Q);Ch(D.info)});
this.info.x=x.clientX;this.info.y=x.clientY}},
touchstart:function(x){x=x.changedTouches[0];this.info.x=x.clientX;this.info.y=x.clientY},
touchmove:function(x){var L=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(x);x=x.changedTouches[0];var D=x.clientX,S=x.clientY;GEf(this.info,D,S)&&(this.info.state==="start"&&UU("tap"),this.info.addMove({x:D,y:S}),CV4(this.info,L,x),this.info.state="track",this.info.started=!0)},
touchend:function(x){var L=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(x);x=x.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:x.clientX,y:x.clientY}),CV4(this.info,L,x))}});
REG({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(x){GL(x)&&(this.info.x=x.clientX,this.info.y=x.clientY)},
click:function(x){GL(x)&&Uah(this.info,x)},
touchstart:function(x){x=x.changedTouches[0];this.info.x=x.clientX;this.info.y=x.clientY},
touchend:function(x){Uah(this.info,x.changedTouches[0],x)}});var hN2=jH(function(x){var L=function(){return x.apply(this,arguments)||this};
_.p(L,x);L.prototype._addEventListenerToNode=function(D,S,Q){Bv(D,S,Q)||x.prototype._addEventListenerToNode.call(this,D,S,Q)};
L.prototype._removeEventListenerFromNode=function(D,S,Q){Wv(D,S,Q)||x.prototype._removeEventListenerFromNode.call(this,D,S,Q)};
return L});var TP=jH(function(x){var L=function(){return x.apply(this,arguments)||this};
_.p(L,x);L.prototype._shouldPropertyChange=function(D,S,Q){return wNf(this,D,S,Q,!0)};
return L}),HBR=jH(function(x){var L=function(){return x.apply(this,arguments)||this};
_.p(L,x);L.prototype._shouldPropertyChange=function(D,S,Q){return wNf(this,D,S,Q,this.mutableData)};
_.J3.Object.defineProperties(L,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return L});
TP._mutablePropertyChange=wNf;var ByG=!1;var uA2=hN2(HBR(V3(HTMLElement))),eH=function(){var x=uA2.call(this)||this;if(XE)throw Error("Ld");x.root=null;x.$=null;x.__children=null;return x};
_.p(eH,uA2);_.K=eH.prototype;_.K.attributeChangedCallback=function(){this.mutableData=!0};
_.K.connectedCallback=function(){Wi4()||(this.style.display="none");this.render()};
_.K.disconnectedCallback=function(){this.__removeChildren()};
_.K.__insertChildren=function(){(0,_.bv)((0,_.bv)(this).parentNode).insertBefore(this.root,this)};
_.K.__removeChildren=function(){if(this.__children)for(var x=0;x<this.__children.length;x++)this.root.appendChild(this.__children[x])};
_.K.render=function(){var x=this;if(!this.__children){var L=L||this.querySelector("template");if(!L){var D=new MutationObserver(function(){if(L=x.querySelector("template"))D.disconnect(),x.render();else throw Error("Md");});
D.observe(this,{childList:!0});return}this.root=this._stampTemplate(L);this.$=this.root.$;this.__children=[];for(var S=this.root.firstChild;S;S=S.nextSibling)this.__children[this.__children.length]=S;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.J3.Object.defineProperties(eH,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",eH);Polymer.Debouncer=mD;Polymer.Gestures={gestures:wQ,recognizers:lv,deepTargetFind:bi0,addListener:Bv,removeListener:Wv,register:REG,setTouchAction:_.q6,prevent:UU,resetMouseCanceller:function(){sL&&sL.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:Bv,remove:Wv};Polymer.GestureEventListeners=hN2;Polymer.MutableData=TP;Polymer.OptionalMutableData=HBR;Polymer.DomBind=eH;_.R4=function(){do{var x=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var L=P1G()}while(x||L)};var q9p=null;A9c.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:A9c,writable:!0}});var zEN=V3(A9c),acn=TP(zEN),g8W=V3(function(){}),oH=function(x){var L=g8W.call(this)||this;
L._configureProperties(x);L.root=L._stampTemplate(L.__dataHost);var D=[];L.children=D;for(var S=L.root.firstChild;S;S=S.nextSibling)D.push(S),S.__templatizeInstance=L;L.__templatizeOwner&&L.__templatizeOwner.__hideTemplateChildren__&&L._showHideChildren(!0);D=L.__templatizeOptions;(x&&D.instanceProps||!D.instanceProps)&&L._enableProperties();return L};
_.p(oH,g8W);_.K=oH.prototype;_.K._configureProperties=function(x){if(this.__templatizeOptions.forwardHostProp)for(var L in this.__hostProps)this._setPendingProperty(L,this.__dataHost["_host_"+L]);for(var D in x)this._setPendingProperty(D,x[D])};
_.K.forwardHostProp=function(x,L){this._setPendingPropertyOrPath(x,L,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.K._addEventListenerToNode=function(x,L,D){var S=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(x,L,function(J){J.model=S;D(J)});
else{var Q=this.__dataHost.__dataHost;Q&&Q._addEventListenerToNode(x,L,D)}};
_.K._showHideChildren=function(x){r9c(x,this.children)};
_.K._setUnmanagedPropertyToNode=function(x,L,D){x.__hideTemplateChildren__&&x.nodeType==Node.TEXT_NODE&&L=="textContent"?x.__polymerTextContent__=D:g8W.prototype._setUnmanagedPropertyToNode.call(this,x,L,D)};
_.K.dispatchEvent=function(){return!0};
_.J3.Object.defineProperties(oH.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var x=this.__parentModel;if(!x){var L;x=this;do x=x.__dataHost.__dataHost;while((L=x.__templatizeOptions)&&!L.parentModel);this.__parentModel=x}return x}}});
var iis=TP(oH);var GP=function(){var x=HO.call(this)||this;x.__renderDebouncer=null;x._lastIf=!1;x.__hideTemplateChildren__=!1;return x};
_.p(GP,HO);_.K=GP.prototype;_.K.__debounceRender=function(){var x=this;this.__renderDebouncer=_.Yt(this.__renderDebouncer,rQ,function(){return x.__render()});
_.F4(this.__renderDebouncer)};
_.K.disconnectedCallback=function(){HO.prototype.disconnectedCallback.call(this);var x=(0,_.bv)(this).parentNode;x&&(x.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.bv)(x).host)||this.__teardownInstance()};
_.K.connectedCallback=function(){HO.prototype.connectedCallback.call(this);Wi4()||(this.style.display="none");this.if&&this.__debounceRender()};
_.K.__ensureTemplate=function(){var x=this;if(!this.__template){var L=this._templateInfo?this:(0,_.bv)(this).querySelector("template");if(!L){var D=new MutationObserver(function(){if((0,_.bv)(x).querySelector("template"))D.disconnect(),x.__render();else throw Error("Pd");});
D.observe(this,{childList:!0});return!1}this.__template=L}return!0};
_.K.__ensureInstance=function(){var x=(0,_.bv)(this).parentNode;if(this.__hasInstance()){var L=this.__getInstanceNodes();if(L&&L.length&&(0,_.bv)(this).previousSibling!==L[L.length-1])for(var D=0,S=void 0;D<L.length&&(S=L[D]);D++)(0,_.bv)(x).insertBefore(S,this)}else{if(!x||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(x)}return!0};
_.K.render=function(){_.R4()};
_.K.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();Mc&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.K.__hasInstance=function(){};
_.K.__getInstanceNodes=function(){};
_.K.__createAndInsertInstance=function(){};
_.K.__teardownInstance=function(){};
_.K._showHideChildren=function(){};
_.J3.Object.defineProperties(GP,{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:GP.prototype.__debounceRender},restamp:{type:Boolean,observer:GP.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var kFR=function(){var x=GP.call(this)||this;x.__instance=null;x.__syncInfo=null;return x};
_.p(kFR,GP);_.K=kFR.prototype;_.K.__hasInstance=function(){return!!this.__instance};
_.K.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.K.__createAndInsertInstance=function(x){var L=this,D=this.__dataHost||this;if(XE&&!this.__dataHost)throw Error("Nd");var S=D._bindTemplate(this.__template,!0);S.runEffects=function(Q,J,Z){var y=L.__syncInfo;if(L.if)y&&(L.__syncInfo=null,L._showHideChildren(),J=Object.assign(y.changedProps,J)),Q(J,Z);else if(L.__instance)if(y||(y=L.__syncInfo={runEffects:Q,changedProps:{}}),Z)for(var E in J)Q=h6(E),y.changedProps[Q]=L.__dataHost[Q];else Object.assign(y.changedProps,J)};
this.__instance=D._stampTemplate(this.__template,S);(0,_.bv)(x).insertBefore(this.__instance,this)};
_.K.__syncHostProperties=function(){var x=this.__syncInfo;x&&(this.__syncInfo=null,x.runEffects(x.changedProps,!1))};
_.K.__teardownInstance=function(){var x=this.__dataHost||this;this.__instance&&(x._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.K._showHideChildren=function(){var x=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==x&&(this.__instance.__hidden=x,r9c(x,this.__instance.templateInfo.childNodes));x||this.__syncHostProperties()};
var pq2=function(){var x=GP.call(this)||this;x.__ctor=null;x.__instance=null;x.__invalidProps=null;return x};
_.p(pq2,GP);_.K=pq2.prototype;_.K.__hasInstance=function(){return!!this.__instance};
_.K.__getInstanceNodes=function(){return this.__instance.children};
_.K.__createAndInsertInstance=function(x){this.__ctor||(this.__ctor=aH(this.__template,this,{mutableData:!0,forwardHostProp:function(L,D){this.__instance&&(this.if?this.__instance.forwardHostProp(L,D):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[h6(L)]=!0))}}));
this.__instance=new this.__ctor;(0,_.bv)(x).insertBefore(this.__instance.root,this)};
_.K.__teardownInstance=function(){if(this.__instance){var x=this.__instance.children;if(x&&x.length){var L=(0,_.bv)(x[0]).parentNode;if(L){L=(0,_.bv)(L);for(var D=0,S=void 0;D<x.length&&(S=x[D]);D++)L.removeChild(S)}}this.__instance=this.__invalidProps=null}};
_.K.__syncHostProperties=function(){var x=this.__invalidProps;if(x){this.__invalidProps=null;for(var L in x)this.__instance._setPendingProperty(L,this.__dataHost[L]);this.__instance._flushProperties()}};
_.K._showHideChildren=function(){var x=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==x&&(this.__instance.__hidden=x,this.__instance._showHideChildren(x));x||this.__syncHostProperties()};
_.$9=EL?kFR:pq2;customElements.define(_.$9.is,_.$9);Polymer.enqueueDebouncer=_.F4;Polymer.flush=_.R4;Polymer.Templatize={templatize:aH,modelForElement:L8f};Polymer.TemplateInstanceBase=oH;Polymer.DomIf=_.$9;var mBB=HBR(HO),Aq=function(){var x=mBB.call(this)||this;x.__instances=[];x.__renderDebouncer=null;x.__itemsIdxToInstIdx={};x.__chunkCount=null;x.__renderStartTime=null;x.__itemsArrayChanged=!1;x.__shouldMeasureChunk=!1;x.__shouldContinueChunking=!1;x.__chunkingId=0;x.__sortFn=null;x.__filterFn=null;x.__observePaths=null;x.__ctor=null;x.__isDetached=!0;x.template=null;return x};
_.p(Aq,mBB);_.K=Aq.prototype;_.K.disconnectedCallback=function(){mBB.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var x=0;x<this.__instances.length;x++)this.__detachInstance(x);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.K.connectedCallback=function(){mBB.prototype.connectedCallback.call(this);Wi4()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var x=(0,_.bv)((0,_.bv)(this).parentNode),L=0;L<this.__instances.length;L++)this.__attachInstance(L,x);this.__chunkingId&&this.__render()}};
_.K.__ensureTemplatized=function(){var x=this;if(!this.__ctor){var L=this.template=this._templateInfo?this:this.querySelector("template");if(!L){var D=new MutationObserver(function(){if(x.querySelector("template"))D.disconnect(),x.__render();else throw Error("Qd");});
D.observe(this,{childList:!0});return!1}var S={};S[this.as]=!0;S[this.indexAs]=!0;S[this.itemsIndexAs]=!0;this.__ctor=aH(L,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:S,forwardHostProp:function(Q,J){for(var Z=this.__instances,y=0,E=void 0;y<Z.length&&(E=Z[y]);y++)E.forwardHostProp(Q,J)},
notifyInstanceProp:function(Q,J,Z){HG3(this.as,J)&&(Q=Q[this.itemsIndexAs],J==this.as&&(this.items[Q]=Z),J=uv(this.as,"items."+Q,J),this.notifyPath(J,Z))}})}return!0};
_.K.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.K.__functionFromPropertyValue=function(x){if(typeof x==="string"){var L=this.__getMethodHost();return function(){return L[x].apply(L,arguments)}}return x};
_.K.__sortChanged=function(x){this.__sortFn=this.__functionFromPropertyValue(x);this.items&&this.__debounceRender(this.__render)};
_.K.__filterChanged=function(x){this.__filterFn=this.__functionFromPropertyValue(x);this.items&&this.__debounceRender(this.__render)};
_.K.__computeFrameTime=function(x){return Math.ceil(1E3/x)};
_.K.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.K.__handleObservedPaths=function(x){if(this.__sortFn||this.__filterFn)if(!x)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var L=this.__observePaths,D=0;D<L.length;D++)x.indexOf(L[D])===0&&this.__debounceRender(this.__render,this.delay)};
_.K.__itemsChanged=function(x){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(x.path,x.value)||(x.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.K.__debounceRender=function(x,L){L=L===void 0?0:L;this.__renderDebouncer=_.Yt(this.__renderDebouncer,L>0?_.PO.after(L):rQ,x.bind(this));_.F4(this.__renderDebouncer)};
_.K.render=function(){this.__debounceRender(this.__render);_.R4()};
_.K.__render=function(){var x=this;if(this.__ensureTemplatized()){var L=this.items||[],D=this.__sortAndFilterItems(L),S=this.__calculateLimit(D.length);this.__updateInstances(L,S,D);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){x.__chunkingId=null;x.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);Mc&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.K.__sortAndFilterItems=function(x){for(var L=this,D=Array(x.length),S=0;S<x.length;S++)D[S]=S;this.__filterFn&&(D=D.filter(function(Q,J,Z){return L.__filterFn(x[Q],J,Z)}));
this.__sortFn&&D.sort(function(Q,J){return L.__sortFn(x[Q],x[J])});
return D};
_.K.__calculateLimit=function(x){var L=x,D=this.__instances.length;if(this.initialCount){var S;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(L=Math.min(x,this.initialCount),this.__chunkCount=(S=Math.max(L-D,0))||1):(S=Math.min(Math.max(x-D,0),this.__chunkCount),L=Math.min(D+S,x));this.__shouldMeasureChunk=S===this.__chunkCount;this.__shouldContinueChunking=L<x;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return L};
_.K.__continueChunking=function(){if(this.__shouldMeasureChunk){var x=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/x*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.K.__updateInstances=function(x,L,D){var S=this.__itemsIdxToInstIdx={},Q;for(Q=0;Q<L;Q++){var J=this.__instances[Q],Z=D[Q],y=x[Z];S[Z]=Q;J?(J._setPendingProperty(this.as,y),J._setPendingProperty(this.indexAs,Q),J._setPendingProperty(this.itemsIndexAs,Z),J._flushProperties()):this.__insertInstance(y,Q,Z)}for(x=this.__instances.length-1;x>=Q;x--)this.__detachAndRemoveInstance(x)};
_.K.__detachInstance=function(x){x=this.__instances[x];for(var L=(0,_.bv)(x.root),D=0;D<x.children.length;D++)L.appendChild(x.children[D]);return x};
_.K.__attachInstance=function(x,L){L.insertBefore(this.__instances[x].root,this)};
_.K.__detachAndRemoveInstance=function(x){this.__detachInstance(x);this.__instances.splice(x,1)};
_.K.__stampInstance=function(x,L,D){var S={};S[this.as]=x;S[this.indexAs]=L;S[this.itemsIndexAs]=D;return new this.__ctor(S)};
_.K.__insertInstance=function(x,L,D){x=this.__stampInstance(x,L,D);D=(D=this.__instances[L+1])?D.children[0]:this;(0,_.bv)((0,_.bv)(this).parentNode).insertBefore(x.root,D);return this.__instances[L]=x};
_.K._showHideChildren=function(x){for(var L=0;L<this.__instances.length;L++)this.__instances[L]._showHideChildren(x)};
_.K.__handleItemPath=function(x,L){var D=x.slice(6),S=D.indexOf(".");x=S<0?D:D.substring(0,S);if(x==parseInt(x,10)){D=S<0?"":D.substring(S+1);this.__handleObservedPaths(D);if(x=this.__instances[this.__itemsIdxToInstIdx[x]])x._setPendingPropertyOrPath(this.as+(D?"."+D:""),L,!1,!0),x._flushProperties();return!0}};
_.K.itemForElement=function(x){return(x=this.modelForElement(x))&&x[this.as]};
_.K.indexForElement=function(x){return(x=this.modelForElement(x))&&x[this.indexAs]};
_.K.modelForElement=function(x){return L8f(this.template,x)};
_.J3.Object.defineProperties(Aq,{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:Aq.prototype.__sortChanged},filter:{type:Function,observer:Aq.prototype.__filterChanged},observe:{type:String,observer:Aq.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!Mc,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.*)"]}}});
Aq.prototype._setRenderedItemCount=function(){};
customElements.define(Aq.is,Aq);Polymer.DomRepeat=Aq;var bBG=function(x,L){var D=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=x;this.callback=L;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){D._schedule()};
this.connect();this._schedule()},YOG=function(x){var L=(0,_.bv)(x);
if(cv(x))return L.assignedNodes({flatten:!0});x=[];for(var D=0;D<L.childNodes.length;D++){var S=L.childNodes[D];cv(S)?x.push.apply(x,_.lP((0,_.bv)(S).assignedNodes({flatten:!0}))):x.push(S)}return x};
_.K=bBG.prototype;_.K.connect=function(){var x=this;cv(this._target)?this._listenSlots([this._target]):(0,_.bv)(this._target).children&&(this._listenSlots((0,_.bv)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(L){x._processMutations(L)}):(this._nativeChildrenObserver=new MutationObserver(function(L){x._processMutations(L)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.K.disconnect=function(){cv(this._target)?this._unlistenSlots([this._target]):(0,_.bv)(this._target).children&&(this._unlistenSlots((0,_.bv)(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};
_.K._schedule=function(){var x=this;this._scheduled||(this._scheduled=!0,rQ.run(function(){return x.flush()}))};
_.K._processMutations=function(x){this._processSlotMutations(x);this.flush()};
_.K._processSlotMutations=function(x){if(x)for(var L=0;L<x.length;L++){var D=x[L];D.addedNodes&&this._listenSlots(D.addedNodes);D.removedNodes&&this._unlistenSlots(D.removedNodes)}};
_.K.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 x={target:this._target,addedNodes:[],removedNodes:[]},L=YOG(this._target),D=xaG(L,this._effectiveNodes),S=0,Q=void 0;S<D.length&&(Q=D[S]);S++)for(var J=0,Z=void 0;J<Q.removed.length&&(Z=Q.removed[J]);J++)x.removedNodes.push(Z);
S=0;for(Q=void 0;S<D.length&&(Q=D[S]);S++)for(J=Q.index;J<Q.index+Q.addedCount;J++)x.addedNodes.push(L[J]);this._effectiveNodes=L;L=!1;if(x.addedNodes.length||x.removedNodes.length)L=!0,this.callback.call(this._target,x);return L};
_.K._listenSlots=function(x){for(var L=0;L<x.length;L++){var D=x[L];cv(D)&&D.addEventListener("slotchange",this._boundSchedule)}};
_.K._unlistenSlots=function(x){for(var L=0;L<x.length;L++){var D=x[L];cv(D)&&D.removeEventListener("slotchange",this._boundSchedule)}};var C0=Element.prototype,Ft2=C0.matches||C0.matchesSelector||C0.mozMatchesSelector||C0.msMatchesSelector||C0.oMatchesSelector||C0.webkitMatchesSelector,sqW=function(x,L){return Ft2.call(x,L)},nh=function(x){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(x);
this.node=x},GFi;
_.K=nh.prototype;_.K.observeNodes=function(x){return new bBG(this.node,x)};
_.K.unobserveNodes=function(x){x.disconnect()};
_.K.notifyObserver=function(){};
_.K.deepContains=function(x){if((0,_.bv)(this.node).contains(x))return!0;var L=x;for(x=x.ownerDocument;L&&L!==x&&L!==this.node;)L=(0,_.bv)(L).parentNode||(0,_.bv)(L).host;return L===this.node};
_.K.getOwnerRoot=function(){return(0,_.bv)(this.node).getRootNode()};
_.K.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.bv)(this.node).assignedNodes({flatten:!0}):[]};
_.K.getDestinationInsertionPoints=function(){for(var x=[],L=(0,_.bv)(this.node).assignedSlot;L;)x.push(L),L=(0,_.bv)(L).assignedSlot;return x};
_.K.importNode=function(x,L){return(0,_.bv)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(x,L)};
_.K.getEffectiveChildNodes=function(){return YOG(this.node)};
_.K.queryDistributedElements=function(x){for(var L=this.getEffectiveChildNodes(),D=[],S=0,Q=L.length,J=void 0;S<Q&&(J=L[S]);S++)J.nodeType===Node.ELEMENT_NODE&&sqW(J,x)&&D.push(J);return D};
_.J3.Object.defineProperties(nh.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var x=this.node;return x._activeElement!==void 0?x._activeElement:x.activeElement}}});
var l_=function(x){this.event=x};
_.J3.Object.defineProperties(l_.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 TYr=nh;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var eN2=window.ShadyDOM.Wrapper,RNB=function(){return eN2.apply(this,arguments)||this};
_.p(RNB,eN2);Object.getOwnPropertyNames(nh.prototype).forEach(function(x){x!="activeElement"&&x!="constructor"&&(RNB.prototype[x]=nh.prototype[x])});
Sc3(RNB.prototype,["classList"]);TYr=RNB;Object.defineProperties(l_.prototype,{localTarget:{get:function(){var x=this.event.currentTarget;x=x&&_.G0(x).getOwnerRoot();for(var L=this.path,D=0;D<L.length;D++){var S=L[D];if(_.G0(S).getOwnerRoot()===x)return S}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else DCh(),Sc3(nh.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),Qas();GFi=TYr;_.G0=function(x){x=x||document;if(x instanceof TYr)return x;if(x instanceof l_)return x;var L=x.__domApi;L||(x instanceof Event?L=new l_(x):L=new TYr(x),x.__domApi=L);return L};var C1C=/:host\(:dir\((ltr|rtl)\)\)/g,lvR=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,UBB=/:dir\((?:ltr|rtl)\)/,wqG=!(!window.ShadyDOM||!window.ShadyDOM.inUse),x7=[],UL=null,t6="",BYh=jH(function(x){wqG||UL||(t6=document.documentElement.getAttribute("dir"),UL=new MutationObserver(Jop),UL.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var L=$Ud(x);x=function(){var D=L.call(this)||this;D.__autoDirOptOut=!1;return D};
_.p(x,L);x._processStyleText=function(D,S){D=L._processStyleText.call(this,D,S);!wqG&&UBB.test(D)&&(D=this._replaceDirInCssText(D),this.__activateDir=!0);return D};
x._replaceDirInCssText=function(D){D=D.replace(C1C,':host([dir="$1"])');return D=D.replace(lvR,':host([dir="$2"]) $1')};
x.prototype.ready=function(){L.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
x.prototype.connectedCallback=function(){L.prototype.connectedCallback&&L.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(UL&&UL.takeRecords().length&&Jop(),x7.push(this),this.__autoDirOptOut||this.setAttribute("dir",t6))};
x.prototype.disconnectedCallback=function(){L.prototype.disconnectedCallback&&L.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var D=x7.indexOf(this);D>-1&&x7.splice(D,1)}};
x.__activateDir=!1;return x});var WtA=function(x){for(;x;){var L=Object.getOwnPropertyDescriptor(x,"observedAttributes");if(L)return L.get;x=Object.getPrototypeOf(x.prototype).constructor}return function(){return[]}};
jH(function(x){var L=hs(x),D=WtA(L);x=function(){return L.call(this)||this};
_.p(x,L);x.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:L.prototype._initializeProperties.call(this)};
x.prototype._enableProperties=function(){this.__isUpgradeDisabled||L.prototype._enableProperties.call(this)};
x.prototype._canApplyPropertyDefault=function(S){return L.prototype._canApplyPropertyDefault.call(this,S)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(S))};
x.prototype.attributeChangedCallback=function(S,Q,J,Z){S=="disable-upgrade"?this.__isUpgradeDisabled&&J==null&&(L.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.bv)(this).isConnected&&L.prototype.connectedCallback.call(this)):L.prototype.attributeChangedCallback.call(this,S,Q,J,Z)};
x.prototype.connectedCallback=function(){this.__isUpgradeDisabled||L.prototype.connectedCallback.call(this)};
x.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||L.prototype.disconnectedCallback.call(this)};
_.J3.Object.defineProperties(x,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return D.call(this).concat("disable-upgrade")}}});
return x});var LL=!1,Otf=[],DR=[];var ElG=window.ShadyDOM,M9N=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",PWp):document.readyState==="interactive"||document.readyState==="complete"?PWp():window.addEventListener("DOMContentLoaded",PWp);var V9G=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=""},jap=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,vl0=/@import[^;]*;/gim,pMs=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mCf=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,btc=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,Ycp=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,glh=/^@[^\s]*keyframes/,
uq3=/\s+/g;var F80={};var esb=Promise.resolve();var qOh=new Set;var AdW=/;\s*/m,$Br=/^\s*(initial)|(inherit)\s*$/,rdA=/\s*!important/,NYH=function(){this._map={}};
NYH.prototype.set=function(x,L){x=x.trim();this._map[x]={properties:L,dependants:{}}};
NYH.prototype.get=function(x){x=x.trim();return this._map[x]||null};
var iB_=null,w_=function(){this._measureElement=this._currentElement=null;this._map=new NYH};
_.K=w_.prototype;_.K.detectMixin=function(x){x=OBd.test(x)||KtG.test(x);OBd.lastIndex=0;KtG.lastIndex=0;return x};
_.K.transformTemplate=function(x,L){if(x._gatheredStyle===void 0){var D=[];for(var S=x.content.querySelectorAll("style"),Q=0;Q<S.length;Q++){var J=S[Q];if(J.hasAttribute("shady-unscoped")){if(!IcG){var Z=J.textContent;if(!qOh.has(Z)){qOh.add(Z);var y=document.createElement("style");y.setAttribute("shady-unscoped","");y.textContent=Z;document.head.appendChild(y)}J.parentNode.removeChild(J)}}else D.push(J.textContent),J.parentNode.removeChild(J)}(D=D.join("").trim())?(S=document.createElement("style"),
S.textContent=D,x.content.insertBefore(S,x.content.firstChild),D=S):D=null;x._gatheredStyle=D}return(x=x._gatheredStyle)?this.JSC$11275_transformStyle(x,L):null};
_.K.JSC$11275_transformStyle=function(x,L){L=L===void 0?"":L;var D=lVw(x);this.transformRules(D,L);x.textContent=CWG(D);return D};
_.K.transformCustomStyle=function(x){var L=this,D=lVw(x);wMc(D,function(S){S.selector===":root"&&(S.selector="html");L.transformRule(S)});
x.textContent=CWG(D);return D};
_.K.transformRules=function(x,L){var D=this;this._currentElement=L;wMc(x,function(S){D.transformRule(S)});
this._currentElement=null};
_.K.transformRule=function(x){x.cssText=fvr(this,x.parsedCssText,x);x.selector===":root"&&(x.selector=":host > *")};
var fvr=function(x,L,D){L=L.replace(KtG,function(S,Q,J,Z){return x._produceCssProperties(S,Q,J,Z,D)});
return x._consumeCssProperties(L,D)};
_.K=w_.prototype;_.K._getInitialValueForProperty=function(x){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(x)};
_.K._fallbacksFromPreviousRules=function(x){for(var L=this,D=x;D.parent;)D=D.parent;var S={},Q=!1;wMc(D,function(J){(Q=Q||J===x)||J.selector===x.selector&&Object.assign(S,L._cssTextToMap(J.parsedCssText))});
return S};
_.K._consumeCssProperties=function(x,L){for(var D;D=OBd.exec(x);){var S=D[0],Q=D[1];D=D.index;var J=D+S.indexOf("@apply"),Z=D+S.length;S=x.slice(0,J);x=x.slice(Z);J=L?this._fallbacksFromPreviousRules(L):{};Object.assign(J,this._cssTextToMap(S));Q=this._atApplyToCssProperties(Q,J);x=S+Q+x;OBd.lastIndex=D+Q.length}return x};
_.K._atApplyToCssProperties=function(x,L){x=x.replace(AdW,"");var D=[],S=this._map.get(x);S||(this._map.set(x,{}),S=this._map.get(x));if(S){this._currentElement&&(S.dependants[this._currentElement]=!0);var Q,J=S.properties;for(Q in J){var Z=L&&L[Q];S=[Q,": var(",x,"_-_",Q];Z&&S.push(",",Z.replace(rdA,""));S.push(")");rdA.test(J[Q])&&S.push(" !important");D.push(S.join(""))}}return D.join("; ")};
_.K._replaceInitialOrInherit=function(x,L){var D=$Br.exec(L);D&&(L=D[1]?this._getInitialValueForProperty(x):"apply-shim-inherit");return L};
_.K._cssTextToMap=function(x,L){L=L===void 0?!1:L;x=x.split(";");for(var D,S,Q={},J=0;J<x.length;J++)if(D=x[J])S=D.split(":"),S.length>1&&(D=S[0].trim(),S=S.slice(1).join(":"),L&&(S=this._replaceInitialOrInherit(D,S)),Q[D]=S);return Q};
_.K._invalidateMixinEntry=function(x){if(iB_)for(var L in x.dependants)L!==this._currentElement&&iB_(L)};
_.K._produceCssProperties=function(x,L,D,S,Q){var J=this;D&&BT3(D,function(k,T){T&&J._map.get(T)&&(S="@apply "+T+";")});
if(!S)return x;var Z=this._consumeCssProperties(""+S,Q);Q=x.slice(0,x.indexOf("--"));var y=Z=this._cssTextToMap(Z,!0),E=this._map.get(L),P=E&&E.properties;P?y=Object.assign(Object.create(P),Z):this._map.set(L,y);var v=[],V,h=!1;for(V in y){var H=Z[V];H===void 0&&(H="initial");!P||V in P||(h=!0);v.push(L+"_-_"+V+": "+H)}h&&this._invalidateMixinEntry(E);E&&(E.properties=y);D&&(Q=x+";"+Q);return Q+v.join("; ")+";"};
w_.prototype.detectMixin=w_.prototype.detectMixin;w_.prototype.transformStyle=w_.prototype.JSC$11275_transformStyle;w_.prototype.transformCustomStyle=w_.prototype.transformCustomStyle;w_.prototype.transformRules=w_.prototype.transformRules;w_.prototype.transformRule=w_.prototype.transformRule;w_.prototype.transformTemplate=w_.prototype.transformTemplate;w_.prototype._separator="_-_";Object.defineProperty(w_.prototype,"invalidCallback",{get:function(){return iB_},
set:function(x){iB_=x}});var BO=new w_,o8G=function(){this.customStyleInterface=null;BO.invalidCallback=saG},WO=function(x){!x.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(x.customStyleInterface=window.ShadyCSS.CustomStyleInterface,x.customStyleInterface.transformCallback=function(L){BO.transformCustomStyle(L)},x.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){x.customStyleInterface.enqueued&&x.flushCustomStyles()})})};
_.K=o8G.prototype;_.K.prepareTemplate=function(x,L){WO(this);W80(x)===""&&(F80[L]=x,L=BO.transformTemplate(x,L),x._styleAst=L)};
_.K.flushCustomStyles=function(){WO(this);if(this.customStyleInterface){var x=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var L=0;L<x.length;L++){var D=this.customStyleInterface.getStyleForCustomStyle(x[L]);D&&BO.transformCustomStyle(D)}this.customStyleInterface.enqueued=!1}}};
_.K.styleSubtree=function(x,L){WO(this);L&&S9N(x,L);if(x.shadowRoot)for(this.styleElement(x),x=x.shadowRoot.children||x.shadowRoot.childNodes,L=0;L<x.length;L++)this.styleSubtree(x[L]);else for(x=x.children||x.childNodes,L=0;L<x.length;L++)this.styleSubtree(x[L])};
_.K.styleElement=function(x){WO(this);var L=x.localName,D;L?L.indexOf("-")>-1?D=L:D=x.getAttribute&&x.getAttribute("is")||"":D=x.is;L=F80[D];if(!(L&&W80(L)!==""||!L||TT0(L))){if(TT0(L)||L._applyShimValidatingVersion!==L._applyShimNextVersion)this.prepareTemplate(L,D),Rss(L);if(x=x.shadowRoot)if(x=x.querySelector("style"))x.__cssRules=L._styleAst,x.textContent=CWG(L._styleAst)}};
_.K.styleDocument=function(x){WO(this);this.styleSubtree(document.body,x)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var qc=new o8G,avC=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(x,L){qc.flushCustomStyles();qc.prepareTemplate(x,L)},
prepareTemplateStyles:function(x,L,D){window.ShadyCSS.prepareTemplate(x,L,D)},
prepareTemplateDom:function(){},
styleSubtree:function(x,L){qc.flushCustomStyles();qc.styleSubtree(x,L)},
styleElement:function(x){qc.flushCustomStyles();qc.styleElement(x)},
styleDocument:function(x){qc.flushCustomStyles();qc.styleDocument(x)},
getComputedStyleValue:function(x,L){return QM0(x,L)},
flushCustomStyles:function(){qc.flushCustomStyles()},
nativeCss:GCf,nativeShadow:IcG,cssBuild:Qz,disableRuntime:Iv2};avC&&(window.ShadyCSS.CustomStyleInterface=avC)}window.ShadyCSS.ApplyShim=BO;var zNB;zNB=window.ShadyCSS;_.As=jH(function(x){x=hN2(hs(x));var L=tmd?x:BYh(x),D=WtA(L),S={x:"pan-x",y:"pan-y",none:"none",all:"auto"};x=function(){return L.call(this)||this};
_.p(x,L);x.prototype.created=function(){};
x.prototype.__attributeReaction=function(Q,J,Z){(this.__dataAttributes&&this.__dataAttributes[Q]||Q==="disable-upgrade")&&this.attributeChangedCallback(Q,J,Z,null)};
x.prototype.setAttribute=function(Q,J){if(b7h&&!this._legacyForceObservedAttributes){var Z=this.getAttribute(Q);L.prototype.setAttribute.call(this,Q,J);this.__attributeReaction(Q,Z,String(J))}else L.prototype.setAttribute.call(this,Q,J)};
x.prototype.removeAttribute=function(Q){if(b7h&&!this._legacyForceObservedAttributes){var J=this.getAttribute(Q);L.prototype.removeAttribute.call(this,Q);this.__attributeReaction(Q,J,null)}else L.prototype.removeAttribute.call(this,Q)};
x.prototype._enableProperties=function(){this.__isUpgradeDisabled||L.prototype._enableProperties.call(this)};
x.prototype._canApplyPropertyDefault=function(Q){return L.prototype._canApplyPropertyDefault.call(this,Q)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(Q))};
x.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(L.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
x.prototype.attached=function(){};
x.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(L.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
x.prototype.detached=function(){};
x.prototype.attributeChangedCallback=function(Q,J,Z,y){J!==Z&&(Q=="disable-upgrade"?this.__isUpgradeDisabled&&Z==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.bv)(this).isConnected&&this.connectedCallback()):(L.prototype.attributeChangedCallback.call(this,Q,J,Z,y),this.attributeChanged(Q,J,Z)))};
x.prototype.attributeChanged=function(){};
x.prototype._initializeProperties=function(){if(iv&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var Q=Object.getPrototypeOf(this);Q.hasOwnProperty("__hasRegisterFinished")||(this._registered(),Q.__hasRegisterFinished=!0);L.prototype._initializeProperties.call(this);this.root=this;this.created();b7h&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
x.prototype._takeAttributes=function(){for(var Q=this.attributes,J=0,Z=Q.length;J<Z;J++){var y=Q[J];this.__attributeReaction(y.name,null,y.value)}};
x.prototype._registered=function(){};
x.prototype.ready=function(){this._ensureAttributes();L.prototype.ready.call(this)};
x.prototype._ensureAttributes=function(){};
x.prototype._applyListeners=function(){};
x.prototype.serialize=function(Q){return this._serializeValue(Q)};
x.prototype.deserialize=function(Q,J){return this._deserializeValue(Q,J)};
x.prototype.reflectPropertyToAttribute=function(Q,J,Z){this._propertyToAttribute(Q,J,Z)};
x.prototype.serializeValueToAttribute=function(Q,J,Z){this._valueToNodeAttribute(Z||this,Q,J)};
x.prototype.extend=function(Q,J){if(!Q||!J)return Q||J;for(var Z=Object.getOwnPropertyNames(J),y=0,E=void 0;y<Z.length&&(E=Z[y]);y++){var P=Object.getOwnPropertyDescriptor(J,E);P&&Object.defineProperty(Q,E,P)}return Q};
x.prototype.mixin=function(Q,J){for(var Z in J)Q[Z]=J[Z];return Q};
x.prototype.chainObject=function(Q,J){Q&&J&&Q!==J&&(Q.__proto__=J);return Q};
x.prototype.instanceTemplate=function(Q){Q=this.constructor._contentForTemplate(Q);return document.importNode(Q,!0)};
x.prototype.fire=function(Q,J,Z){Z=Z||{};J=J===null||J===void 0?{}:J;Q=new Event(Q,{bubbles:Z.bubbles===void 0?!0:Z.bubbles,cancelable:!!Z.cancelable,composed:Z.composed===void 0?!0:Z.composed});Q.detail=J;(0,_.bv)(Z.node||this).dispatchEvent(Q);return Q};
x.prototype.listen=function(Q,J,Z){Q=Q||this;var y=this.__boundListeners||(this.__boundListeners=new WeakMap),E=y.get(Q);E||(E={},y.set(Q,E));y=J+Z;E[y]||(E[y]=this._addMethodEventListenerToNode(Q,J,Z,this))};
x.prototype.unlisten=function(Q,J,Z){Q=Q||this;var y=this.__boundListeners&&this.__boundListeners.get(Q);Z=J+Z;var E=y&&y[Z];E&&(this._removeEventListenerFromNode(Q,J,E),y[Z]=null)};
x.prototype.setScrollDirection=function(Q,J){_.q6(J||this,S[Q]||"auto")};
x.prototype.$$=function(Q){return this.root.querySelector(Q)};
x.prototype.distributeContent=function(){var Q=_.G0(this);window.ShadyDOM&&Q.shadowRoot&&ShadyDOM.flush()};
x.prototype.getEffectiveChildNodes=function(){return _.G0(this).getEffectiveChildNodes()};
x.prototype.queryDistributedElements=function(Q){return _.G0(this).queryDistributedElements(Q)};
x.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(Q){return Q.nodeType===Node.ELEMENT_NODE})};
x.prototype.getEffectiveTextContent=function(){for(var Q=this.getEffectiveChildNodes(),J=[],Z=0,y;y=Q[Z];Z++)y.nodeType!==Node.COMMENT_NODE&&J.push(y.textContent);return J.join("")};
x.prototype.queryEffectiveChildren=function(Q){return(Q=this.queryDistributedElements(Q))&&Q[0]};
x.prototype.queryAllEffectiveChildren=function(Q){return this.queryDistributedElements(Q)};
x.prototype.getContentChildNodes=function(Q){return(Q=this.root.querySelector(Q||"slot"))?_.G0(Q).getDistributedNodes():[]};
x.prototype.getContentChildren=function(Q){return this.getContentChildNodes(Q).filter(function(J){return J.nodeType===Node.ELEMENT_NODE})};
x.prototype.isLightDescendant=function(Q){return this!==Q&&(0,_.bv)(this).contains(Q)&&(0,_.bv)(this).getRootNode()===(0,_.bv)(Q).getRootNode()};
x.prototype.isLocalDescendant=function(Q){return this.root===(0,_.bv)(Q).getRootNode()};
x.prototype.scopeSubtree=function(Q,J){return dCn(Q,J===void 0?!1:J)};
x.prototype.getComputedStyleValue=function(Q){return zNB.getComputedStyleValue(this,Q)};
x.prototype.debounce=function(Q,J,Z){this._debouncers=this._debouncers||{};return this._debouncers[Q]=_.Yt(this._debouncers[Q],Z>0?_.PO.after(Z):rQ,J.bind(this))};
x.prototype.isDebouncerActive=function(Q){this._debouncers=this._debouncers||{};Q=this._debouncers[Q];return!(!Q||!Q.isActive())};
x.prototype.flushDebouncer=function(Q){this._debouncers=this._debouncers||{};(Q=this._debouncers[Q])&&Q.flush()};
x.prototype.cancelDebouncer=function(Q){this._debouncers=this._debouncers||{};(Q=this._debouncers[Q])&&Q.cancel()};
x.prototype.async=function(Q,J){return J>0?_.PO.run(Q.bind(this),J):~rQ.run(Q.bind(this))};
x.prototype.cancelAsync=function(Q){Q<0?rQ.cancel(~Q):_.PO.cancel(Q)};
x.prototype.create=function(Q,J){Q=document.createElement(Q);if(J)if(Q.setProperties)Q.setProperties(J);else for(var Z in J)Q[Z]=J[Z];return Q};
x.prototype.elementMatches=function(Q,J){return sqW(J||this,Q)};
x.prototype.toggleAttribute=function(Q,J){var Z=this;arguments.length===3&&(Z=arguments[2]);arguments.length==1&&(J=!Z.hasAttribute(Q));if(J)return(0,_.bv)(Z).setAttribute(Q,""),!0;(0,_.bv)(Z).removeAttribute(Q);return!1};
x.prototype.toggleClass=function(Q,J,Z){Z=Z||this;arguments.length==1&&(J=!Z.classList.contains(Q));J?Z.classList.add(Q):Z.classList.remove(Q)};
x.prototype.transform=function(Q,J){J=J||this;J.style.webkitTransform=Q;J.style.transform=Q};
x.prototype.translate3d=function(Q,J,Z,y){this.transform("translate3d("+Q+","+J+","+Z+")",y||this)};
x.prototype.arrayDelete=function(Q,J){if(Array.isArray(Q)){if(J=Q.indexOf(J),J>=0)return Q.splice(J,1)}else if(J=k3(this,Q).indexOf(J),J>=0)return this.splice(Q,J,1);return null};
x.prototype._logger=function(Q,J){Array.isArray(J)&&J.length===1&&Array.isArray(J[0])&&(J=J[0]);switch(Q){case "log":case "warn":case "error":console[Q].apply(console,_.lP(J))}};
x.prototype._log=function(){this._logger("log",_.Ne.apply(0,arguments))};
x.prototype._warn=function(){this._logger("warn",_.Ne.apply(0,arguments))};
x.prototype._error=function(){this._logger("error",_.Ne.apply(0,arguments))};
x.prototype._logf=function(Q){return["[%s::%s]",this.is,Q].concat(_.lP(_.Ne.apply(1,arguments)))};
_.J3.Object.defineProperties(x.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var Q=(0,_.bv)(this).getRootNode();return Q instanceof DocumentFragment?Q.host:Q}}});
_.J3.Object.defineProperties(x,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return b7h&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],MKb(this.prototype)),this.__observedAttributes):D.call(this).concat("disable-upgrade")}}});
x.prototype.is="";return x});Polymer.FlattenedNodesObserver=bBG;Polymer.DomApi=GFi;Polymer.EventApi=l_;Polymer.dom=_.G0;Polymer.dom.matchesSelector=sqW;Polymer.dom.flush=_.R4;Polymer.dom.addDebouncer=_.F4;Polymer.DirMixin=BYh;Polymer.RenderStatus={beforeNextRender:_.IVw,afterNextRender:_.So,flush:function(){for(;Otf.length||DR.length;)K8w(Otf),K8w(DR);LL=!1}};Polymer.LegacyElementMixin=_.As;var XqH;XqH=TP._mutablePropertyChange;var cdG={properties:{mutableData:Boolean},_shouldPropertyChange:function(x,L,D){return XqH(this,x,L,D,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(x,L,D){return XqH(this,x,L,D,!0)}};
Polymer.OptionalMutableDataBehavior=cdG;var qc0={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},its={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},NT3=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},its),n8H=(0,_.As)(HTMLElement),q_f=function(x,L){x||console.warn("Polymer.Class requires `info` argument");L=L?L(n8H):n8H;L=fVO(x,L,x.behaviors);L.is=L.prototype.is=
x.is;return L};Polymer.Class=q_f;Polymer.mixinBehaviors=function(x,L){return fVO({},(0,_.As)(L),x)};
Polymer.GenerateClassFromInfo=fVO;_.q$=function(x){var L=typeof x==="function"?x:_.q$.Class(x);x._legacyForceObservedAttributes&&(L.prototype._legacyForceObservedAttributes=x._legacyForceObservedAttributes);customElements.define(L.is,L);return L};
_.q$.Class=q_f;Polymer._polymerFn=_.q$;var tRB=window.onLegacyPolymerFunctionDefinedCallback;tRB&&tRB();var $MN={templatize:function(x,L){this._templatizerTemplate=x;this.ctor=aH(x,this,{mutableData:!!L,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(x){return new this.ctor(x)},
modelForElement:function(x){return L8f(this._templatizerTemplate,x)}};Polymer.Templatizer=$MN;_.$t=(0,_.As)(HTMLElement).prototype;Polymer.Base=_.$t;var aVO=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.KL=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.p(_.KL,PolymerFakeBaseClass);var OK=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.p(OK,PolymerFakeBaseClass);var zsp=Symbol("Rd"),S1O=[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 x$C=x$C||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},LXA;(function(x){function L(f,N,z){var xf=X.get(f);if(!xf){if(!z)return;xf=new U;X.set(f,xf)}f=xf.get(N);if(!f){if(!z)return;f=new U;xf.set(N,f)}return f}
function D(f,N,z){if(S(f,N,z))return!0;N=h(N);return N!==null?D(f,N,z):!1}
function S(f,N,z){N=L(N,z,!1);return N===void 0?!1:!!N.has(f)}
function Q(f,N,z){if(S(f,N,z))return J(f,N,z);N=h(N);if(N!==null)return Q(f,N,z)}
function J(f,N,z){N=L(N,z,!1);if(N!==void 0)return N.get(f)}
function Z(f,N){var z=y(f,N);f=h(f);if(f===null)return z;var xf=Z(f,N);if(xf.length<=0)return z;if(z.length<=0)return xf;N=new l;f=[];z=_.O(z);for(var K3=z.next();!K3.done;K3=z.next())K3=K3.value,N.has(K3)||(N.add(K3),f.push(K3));z=_.O(xf);for(xf=z.next();!xf.done;xf=z.next())xf=xf.value,N.has(xf)||(N.add(xf),f.push(xf));return f}
function y(f,N){f=L(f,N,!1);var z=[];f&&f.forEach(function(xf,K3){return z.push(K3)});
return z}
function E(f){return f===void 0}
function P(f){return typeof f==="object"?f!==null:typeof f==="function"}
function v(f){return typeof f==="function"}
function V(f){return typeof f==="symbol"?f:String(f)}
function h(f){var N=Object.getPrototypeOf(f);if(typeof f!=="function"||f===G||N!==G)return N;var z=Object.getPrototypeOf(f.prototype);if(z==null||z===Object.prototype)return N;z=z.constructor;return typeof z!=="function"||z===f?N:z}
function H(){function f(){this._keys=[];this._values=[];this._cache=N}
var N={};f.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 xf=this._find(z);if(xf>=0)return this._cache=z,this._values[xf]},
set:function(z,xf){this.delete(z);this._keys.push(z);this._values.push(xf);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=N,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=N},
forEach:function(z){for(var xf=this.size,K3=0;K3<xf;++K3){var P4=this._keys[K3],kf=this._values[K3];this._cache=P4;z.call(this,kf,P4,this)}},
_find:function(z){for(var xf=this._keys,K3=xf.length,P4=0;P4<K3;++P4)if(xf[P4]===z)return P4;return-1}};
return f}
function k(){function f(){this._map=new U}
f.prototype={get size(){return this._map.length},has:function(N){return this._map.has(N)},
add:function(N){this._map.set(N,N);return this},
delete:function(N){return this._map.delete(N)},
clear:function(){this._map.clear()},
forEach:function(N,z){this._map.forEach(N,z)}};
return f}
function T(){function f(){this._key=z()}
function N(p3,w0){for(var Rn=0;Rn<w0;++Rn)p3[Rn]=Math.random()*255|0}
function z(){do{if(K3)var p3=K3.randomBytes(16);else typeof Uint8Array==="function"?(p3=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(p3):N(p3,16)):(p3=Array(16),N(p3,16));p3[6]=p3[6]&79|64;p3[8]=p3[8]&191|128;for(var w0="",Rn=0;Rn<16;++Rn){var lG=p3[Rn];if(Rn===4||Rn===6||Rn===8)w0+="-";lG<16&&(w0+="0");w0+=lG.toString(16).toLowerCase()}p3="@@WeakMap@@"+w0}while(P4.call(kf,p3));kf[p3]=!0;return p3}
function xf(p3,w0){if(!P4.call(p3,H4)){if(!w0)return;Object.defineProperty(p3,H4,{value:Object.create(null)})}return p3[H4]}
var K3=typeof global!=="undefined"&&typeof x$C==="object"&&typeof require==="function"&&require("crypto"),P4=Object.prototype.hasOwnProperty,kf={},H4=z();f.prototype={has:function(p3){return(p3=xf(p3,!1))?this._key in p3:!1},
get:function(p3){if(p3=xf(p3,!1))return p3[this._key]},
set:function(p3,w0){xf(p3,!0)[this._key]=w0;return this},
delete:function(p3){return(p3=xf(p3,!1))&&this._key in p3?delete p3[this._key]:!1},
clear:function(){this._key=z()}};
return f}
var G=Object.getPrototypeOf(Function),U=typeof Map==="function"?Map:H(),l=typeof Set==="function"?Set:k(),X=new (typeof WeakMap==="function"?WeakMap:T());x.decorate=function(f,N,z,xf){if(E(xf)){if(E(z)){if(!Array.isArray(f))throw new TypeError;if(!v(N))throw new TypeError;for(z=f.length-1;z>=0;--z)if(xf=(0,f[z])(N),!E(xf)){if(!v(xf))throw new TypeError;N=xf}return N}if(!Array.isArray(f))throw new TypeError;if(!P(N))throw new TypeError;z=V(z);for(xf=f.length-1;xf>=0;--xf)(0,f[xf])(N,z)}else{if(Array.isArray(f))if(P(N)){if(E(z))throw new TypeError;
if(!P(xf))throw new TypeError;}else throw new TypeError;else throw new TypeError;z=V(z);for(var K3=f.length-1;K3>=0;--K3){var P4=(0,f[K3])(N,z,xf);if(!E(P4)){if(!P(P4))throw new TypeError;xf=P4}}return xf}};
x.metadata=function(f,N){return function(z,xf){if(E(xf)){if(!v(z))throw new TypeError;L(z,void 0,!0).set(f,N)}else{if(!P(z))throw new TypeError;xf=V(xf);L(z,xf,!0).set(f,N)}}};
x.defineMetadata=function(f,N){var z;if(P(N))E(z)||(z=V(z));else throw new TypeError;L(N,z,!0).set("parameters",f)};
x.hasMetadata=function(f,N,z){if(P(N))E(z)||(z=V(z));else throw new TypeError;return D(f,N,z)};
x.hasOwnMetadata=function(f,N,z){if(P(N))E(z)||(z=V(z));else throw new TypeError;return S(f,N,z)};
x.getMetadata=function(f,N,z){if(P(N))E(z)||(z=V(z));else throw new TypeError;return Q(f,N,z)};
x.getOwnMetadata=function(f,N,z){if(P(N))E(z)||(z=V(z));else throw new TypeError;return J(f,N,z)};
x.getMetadataKeys=function(f,N){if(P(f))E(N)||(N=V(N));else throw new TypeError;return Z(f,N)};
x.getOwnMetadataKeys=function(f,N){if(P(f))E(N)||(N=V(N));else throw new TypeError;return y(f,N)};
x.deleteMetadata=function(f,N,z){if(P(N))E(z)||(z=V(z));else throw new TypeError;var xf=L(N,z,!1);if(!E(xf)){if(!xf.delete(f))return!1;if(xf.size>0)return!0;f=X.get(N);f.delete(z);if(f.size>0)return!0;X.delete(N);return!0}};
(function(f){if(typeof f.Reflect!=="undefined"){if(f.Reflect!==x)for(var N in x)f.Reflect[N]=x[N]}else f.Reflect=x})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(LXA||(LXA={}));var bEp=self;var D$A=[0,_.Lt,_.Q8,_.Lt];var SYR=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(SYR,_.O5);var QWd=_.Vv(SYR,[0,_.WCp,_.Oc,D$A,_.Q8,_.y8]);_.E9(_.ZR,_.Te);_.K=_.ZR.prototype;_.K.start=function(){this.stop();this.usingListeners_=!1;var x=JqC(this),L=KXC(this);x&&!L&&this.JSC$11318_win_.mozRequestAnimationFrame?(this.JSC$11318_id_=_.Uk(this.JSC$11318_win_,"MozBeforePaint",this.callback_),this.JSC$11318_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$11318_id_=x&&L?x.call(this.JSC$11318_win_,this.callback_):this.JSC$11318_win_.setTimeout(nHG(this.callback_),20)};
_.K.stop=function(){if(this.isActive()){var x=JqC(this),L=KXC(this);x&&!L&&this.JSC$11318_win_.mozRequestAnimationFrame?G$(this.JSC$11318_id_):x&&L?L.call(this.JSC$11318_win_,this.JSC$11318_id_):this.JSC$11318_win_.clearTimeout(this.JSC$11318_id_)}this.JSC$11318_id_=null};
_.K.fire=function(){this.stop();this.JSC$11320_doAction_()};
_.K.isActive=function(){return this.JSC$11318_id_!=null};
_.K.JSC$11320_doAction_=function(){this.usingListeners_&&this.JSC$11318_id_&&G$(this.JSC$11318_id_);this.JSC$11318_id_=null;this.JSC$11318_listener_.call(this.handler_,_.IM())};
_.K.disposeInternal=function(){this.stop();_.ZR.superClass_.disposeInternal.call(this)};
var JqC=function(x){x=x.JSC$11318_win_;return x.requestAnimationFrame||x.webkitRequestAnimationFrame||x.mozRequestAnimationFrame||x.oRequestAnimationFrame||x.msRequestAnimationFrame||null},KXC=function(x){x=x.JSC$11318_win_;
return x.cancelAnimationFrame||x.cancelRequestAnimationFrame||x.webkitCancelRequestAnimationFrame||x.mozCancelRequestAnimationFrame||x.oCancelRequestAnimationFrame||x.msCancelRequestAnimationFrame||null};_.zR=function(x,L,D){_.Te.call(this);this.JSC$11321_listener_=D!=null?x.bind(D):x;this.JSC$11321_interval_=L;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$11321_timer_=null};
_.p(_.zR,_.Te);_.K=_.zR.prototype;_.K.fire=function(x){this.args_=arguments;this.JSC$11321_timer_||this.pauseCount_?this.shouldFire_=!0:O$h(this)};
_.K.stop=function(){this.JSC$11321_timer_&&(_.Qb.clearTimeout(this.JSC$11321_timer_),this.JSC$11321_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.K.pause=function(){this.pauseCount_++};
_.K.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$11321_timer_||(this.shouldFire_=!1,O$h(this))};
_.K.disposeInternal=function(){_.Te.prototype.disposeInternal.call(this);this.stop()};
var O$h=function(x){x.JSC$11321_timer_=rG(function(){x.JSC$11321_timer_=null;x.shouldFire_&&!x.pauseCount_&&(x.shouldFire_=!1,O$h(x))},x.JSC$11321_interval_);
var L=x.args_;x.args_=null;x.JSC$11321_listener_.apply(null,L)};var Z$r=function(x,L){this.childIterator_=x[_.Qb.Symbol.iterator]();this.mapFn_=L};
Z$r.prototype[Symbol.iterator]=function(){return this};
Z$r.prototype.next=function(){var x=this.childIterator_.next();return{value:x.done?void 0:this.mapFn_.call(void 0,x.value),done:x.done}};
var yqh=function(x,L){return new Z$r(x,L)};var I4_={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 SNs=function(x){var L=E9B(x);if(!L)throw Error("Vd`"+x);return L},E9B=function(x){var L={};
x=String(x);var D=x.charAt(0)=="#"?x:"#"+x;if(Mrh.test(D))return L.hex=c1n(D),L.type="hex",L;D=OTN(x);return D.length?(L.hex=ryn(D[0],D[1],D[2]),L.type="rgb",L):I4_&&(x=I4_[x.toLowerCase()])?(L.hex=x,L.type="named",L):null},d$_=/#(.)(.)(.)/,c1n=function(x){if(!Mrh.test(x))throw Error("Xd`"+x);
x.length==4&&(x=x.replace(d$_,"#$1$1$2$2$3$3"));return x.toLowerCase()},Qj4=function(x){x=c1n(x);
x=parseInt(x.slice(1),16);return[x>>16,x>>8&255,x&255]},ryn=function(x,L,D){x=Number(x);
L=Number(L);D=Number(D);if(x!=(x&255)||L!=(L&255)||D!=(D&255))throw Error("Yd`"+x+"`"+L+"`"+D);L=x<<16|L<<8|D;return x<16?"#"+(16777216|L).toString(16).slice(1):"#"+L.toString(16)},Mrh=/^#(?:[0-9a-f]{3}){1,2}$/i,PNW=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,OTN=function(x){var L=x.match(PNW);
if(L){x=Number(L[1]);var D=Number(L[2]);L=Number(L[3]);if(x>=0&&x<=255&&D>=0&&D<=255&&L>=0&&L<=255)return[x,D,L]}return[]};var jW_={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},uS=jW_;uS=jW_;var rPh,v9H,Vr_;rPh=function(x,L){switch(L){case 1:return x%4!=0||x%100==0&&x%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
v9H=function(x,L,D,S,Q){x=new Date(x,L,D);Q=Q||0;return x.valueOf()+(((S!==void 0?S:3)-Q+7)%7-((x.getDay()+6)%7-Q+7)%7)*864E5};
_.r_=function(x,L,D){typeof x==="number"?(this.date=Vr_(x,L||0,D||1),hKA(this,D||1)):_.on(x)?(this.date=Vr_(x.getFullYear(),x.getMonth(),x.getDate()),hKA(this,x.getDate())):(this.date=new Date(_.IM()),x=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),hKA(this,x))};
Vr_=function(x,L,D){L=new Date(x,L,D);x>=0&&x<100&&L.setFullYear(L.getFullYear()-1900);return L};
_.K=_.r_.prototype;_.K.firstDayOfWeek_=uS.FIRSTDAYOFWEEK;_.K.firstWeekCutOffDay_=uS.FIRSTWEEKCUTOFFDAY;_.K.clone=function(){var x=new _.r_(this.date);x.firstDayOfWeek_=this.firstDayOfWeek_;x.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return x};
_.K.getFullYear=function(){return this.date.getFullYear()};
_.K.getYear=function(){return this.getFullYear()};
_.K.getMonth=function(){return this.date.getMonth()};
_.K.getDate=function(){return this.date.getDate()};
_.K.getTime=function(){return this.date.getTime()};
_.K.getDay=function(){return this.date.getDay()};
_.K.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.K.getUTCMonth=function(){return this.date.getUTCMonth()};
_.K.getUTCDate=function(){return this.date.getUTCDate()};
_.K.getUTCDay=function(){return this.date.getDay()};
_.K.getUTCHours=function(){return this.date.getUTCHours()};
_.K.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.K.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.K.set=function(x){this.date=new Date(x.getFullYear(),x.getMonth(),x.getDate())};
_.K.setFullYear=function(x){this.date.setFullYear(x)};
_.K.setYear=function(x){this.setFullYear(x)};
_.K.setMonth=function(x){this.date.setMonth(x)};
_.K.setDate=function(x){this.date.setDate(x)};
_.K.setTime=function(x){this.date.setTime(x)};
_.K.setUTCFullYear=function(x){this.date.setUTCFullYear(x)};
_.K.setUTCMonth=function(x){this.date.setUTCMonth(x)};
_.K.setUTCDate=function(x){this.date.setUTCDate(x)};
_.K.add=function(x){if(x.years||x.months){var L=this.getMonth()+x.months+x.years*12,D=this.getYear()+Math.floor(L/12);L%=12;L<0&&(L+=12);var S=Math.min(rPh(D,L),this.getDate());this.setDate(1);this.setFullYear(D);this.setMonth(L);this.setDate(S)}x.days&&(D=this.getYear(),L=D>=0&&D<=99?-1900:0,x=new Date((new Date(D,this.getMonth(),this.getDate(),12)).getTime()+x.days*864E5),this.setDate(1),this.setFullYear(x.getFullYear()+L),this.setMonth(x.getMonth()),this.setDate(x.getDate()),hKA(this,x.getDate()))};
_.K.JSC$11334_toIsoString=function(x){var L=this.getFullYear(),D=L<0?"-":L>=1E4?"+":"";return[D+_.vM(Math.abs(L),D?6:4),_.vM(this.getMonth()+1,2),_.vM(this.getDate(),2)].join(x?"-":"")};
_.K.equals=function(x){return!(!x||this.getYear()!=x.getYear()||this.getMonth()!=x.getMonth()||this.getDate()!=x.getDate())};
_.K.toString=function(){return this.JSC$11334_toIsoString()};
var hKA=function(x,L){x.getDate()!=L&&x.date.setUTCHours(x.date.getUTCHours()+(x.getDate()<L?1:-1))};
_.r_.prototype.valueOf=function(){return this.date.valueOf()};var i_=function(x,L,D,S,Q){this.reversed=!!L;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!D;x&&Nc(this,x,S);this.depth=Q!=void 0?Q:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.E9(i_,ko);var Nc=function(x,L,D,S){if(x.node=L)x.tagType=typeof D==="number"?D:x.node.nodeType!=1?0:x.reversed?-1:1;typeof S==="number"&&(x.depth=S)};
_.K=i_.prototype;_.K.JSC$11349_copyFrom=function(x){this.node=x.node;this.tagType=x.tagType;this.depth=x.depth;this.reversed=x.reversed;this.constrained=x.constrained};
_.K.clone=function(){return new i_(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.K.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return pd;var x=this.node;var L=this.reversed?-1:1;if(this.tagType==L){var D=this.reversed?x.lastChild:x.firstChild;D?Nc(this,D):Nc(this,x,L*-1)}else(D=this.reversed?x.previousSibling:x.nextSibling)?Nc(this,D):Nc(this,x.parentNode,L*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(x=this.node)?mk(x):pd};
_.K.equals=function(x){return x.node==this.node&&(!this.node||x.tagType==this.tagType)};
_.K.splice=function(x){var L=this.node,D=this.reversed?1:-1;this.tagType==D&&(this.tagType=D*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;i_.prototype.next.call(this);this.reversed=!this.reversed;D=_.Nf(arguments[0])?arguments[0]:arguments;for(var S=D.length-1;S>=0;S--)_.ft(D[S],L);_.mg(L)};var H$2=function(){},f0=function(x){for(var L=[],D=x.getTextRangeCount(),S=0;S<D;S++)L.push(x.getTextRange(S));
return L};
H$2.prototype.isReversed=function(){return!1};
H$2.prototype.getWindow=function(){return qp(_.Ac(this.JSC$11351_getStartNode()))};
var u1A=function(x,L){i_.call(this,x,L,!0)};
_.E9(u1A,i_);var o4=function(x,L,D,S,Q){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!Q;if(x){this.startNode_=x;this.startOffset_=L;this.endNode_=D;this.endOffset_=S;if(x.nodeType==1&&x.tagName!="BR")if(x=x.childNodes,L=x[L])this.startNode_=L,this.startOffset_=0;else{x.length&&(this.startNode_=_.ls(x));var J=!0}D.nodeType==1&&((this.endNode_=D.childNodes[S])?this.endOffset_=0:this.endNode_=D)}i_.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);J&&this.next()};
_.E9(o4,u1A);_.K=o4.prototype;_.K.JSC$11357_getStartNode=function(){return this.startNode_};
_.K.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)};
_.K.next=function(){return this.isLast()?pd:o4.superClass_.next.call(this)};
_.K.JSC$11349_copyFrom=function(x){this.startNode_=x.startNode_;this.endNode_=x.endNode_;this.startOffset_=x.startOffset_;this.endOffset_=x.endOffset_;this.isReversed_=x.isReversed_;o4.superClass_.JSC$11349_copyFrom.call(this,x)};
_.K.clone=function(){var x=new o4(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);x.JSC$11349_copyFrom(this);return x};var g9r=function(){};
g9r.prototype.__iterator__=function(){return new o4(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var a4=function(x){this.range_=x};
_.E9(a4,g9r);var kV2=function(x){var L=_.Ac(x).createRange();if(x.nodeType==3)L.setStart(x,0),L.setEnd(x,x.length);else if(rT(x)||x.nodeType==3){for(var D,S=x;(D=S.firstChild)&&(rT(D)||D.nodeType==3);)S=D;L.setStart(S,0);for(S=x;(D=S.lastChild)&&(rT(D)||D.nodeType==3);)S=D;L.setEnd(S,S.nodeType==1?S.childNodes.length:S.length)}else D=x.parentNode,x=Array.prototype.indexOf.call(D.childNodes,x),L.setStart(D,x),L.setEnd(D,x+1);return L},pPQ=function(x,L,D,S){var Q=_.Ac(x).createRange();
Q.setStart(x,L);Q.setEnd(D,S);return Q};
_.K=a4.prototype;_.K.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.K.getContainer=function(){return this.range_.commonAncestorContainer};
_.K.compareBrowserRangeEndpoints=function(x,L,D){return this.range_.compareBoundaryPoints(D==1?L==1?_.Qb.Range.START_TO_START:_.Qb.Range.START_TO_END:L==1?_.Qb.Range.END_TO_START:_.Qb.Range.END_TO_END,x)};
_.K.isCollapsed=function(){return this.range_.collapsed};
_.K.select=function(x){this.selectInternal(qp(_.Ac(this.range_.startContainer)).getSelection(),x)};
_.K.selectInternal=function(x){x.removeAllRanges();x.addRange(this.range_)};
_.K.insertNode=function(x,L){var D=this.range_.cloneRange();D.collapse(L);D.insertNode(x);D.detach();return x};
_.K.collapse=function(x){this.range_.collapse(x)};_.E9(yz,a4);yz.prototype.selectInternal=function(x,L){!L||this.isCollapsed()?yz.superClass_.selectInternal.call(this,x,L):(x.collapse(this.range_.endContainer,this.range_.endOffset),x.extend(this.range_.startContainer,this.range_.startOffset))};_.E9(Ic,a4);Ic.prototype.compareBrowserRangeEndpoints=function(x,L,D){return Ic.superClass_.compareBrowserRangeEndpoints.call(this,x,L,D)};
Ic.prototype.selectInternal=function(x,L){L?x.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):x.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var m$_=function(x){return _.V6?new Ic(x):_.vN?new yz(x):new a4(x)};var zP=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},b$i;
_.E9(zP,H$2);b$i=function(x,L){var D=new zP;D.browserRangeWrapper_=x;D.isReversed_=!!L;return D};
_.YYA=function(x){x=_.V6?new Ic(kV2(x)):_.vN?new yz(kV2(x)):new a4(kV2(x));return b$i(x)};
_.X4=function(x,L,D,S){var Q=new zP;Q.isReversed_=FXH(x,L,D,S);if(_.D8(x)&&!rT(x)){var J=x.parentNode;L=Array.prototype.indexOf.call(J.childNodes,x);x=J}_.D8(D)&&!rT(D)&&(J=D.parentNode,S=Array.prototype.indexOf.call(J.childNodes,D),D=J);Q.isReversed_?(Q.startNode_=D,Q.startOffset_=S,Q.endNode_=x,Q.endOffset_=L):(Q.startNode_=x,Q.startOffset_=L,Q.endNode_=D,Q.endOffset_=S);return Q};
_.K=zP.prototype;_.K.clone=function(){var x=new zP;x.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();x.startNode_=this.startNode_;x.startOffset_=this.startOffset_;x.endNode_=this.endNode_;x.endOffset_=this.endOffset_;x.isReversed_=this.isReversed_;return x};
_.K.JSC$11351_getType=function(){return"text"};
_.K.getBrowserRangeObject=function(){return cO(this).range_};
_.K.getTextRangeCount=function(){return 1};
_.K.getTextRange=function(){return this};
var cO=function(x){var L;if(!(L=x.browserRangeWrapper_)){L=x.JSC$11351_getStartNode();var D=x.JSC$11351_getStartOffset(),S=x.JSC$11351_getEndNode(),Q=x.JSC$11351_getEndOffset();L=_.V6?new Ic(pPQ(L,D,S,Q)):_.vN?new yz(pPQ(L,D,S,Q)):new a4(pPQ(L,D,S,Q));L=x.browserRangeWrapper_=L}return L};
_.K=zP.prototype;_.K.getContainer=function(){return cO(this).getContainer()};
_.K.JSC$11351_getStartNode=function(){return this.startNode_||(this.startNode_=cO(this).range_.startContainer)};
_.K.JSC$11351_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=cO(this).range_.startOffset};
_.K.JSC$11351_getEndNode=function(){return this.endNode_||(this.endNode_=cO(this).range_.endContainer)};
_.K.JSC$11351_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=cO(this).range_.endOffset};
_.K.isReversed=function(){return this.isReversed_};
_.K.JSC$11351_containsRange=function(x,L){if(x.JSC$11351_getType()=="text"){var D=cO(this);x=cO(x);L=L&&!x.isCollapsed();x=x.range_;D=L?D.compareBrowserRangeEndpoints(x,0,1)>=0&&D.compareBrowserRangeEndpoints(x,1,0)<=0:D.compareBrowserRangeEndpoints(x,0,0)>=0&&D.compareBrowserRangeEndpoints(x,1,1)<=0}else D=!1;return D};
_.K.isCollapsed=function(){return cO(this).isCollapsed()};
_.K.JSC$11351_getText=function(){return cO(this).range_.toString()};
_.K.__iterator__=function(){return new o4(this.JSC$11351_getStartNode(),this.JSC$11351_getStartOffset(),this.JSC$11351_getEndNode(),this.JSC$11351_getEndOffset())};
_.K.select=function(){cO(this).select(this.isReversed_)};
_.K.JSC$11351_removeContents=function(){var x=cO(this).range_;x.extractContents();if(x.startContainer.hasChildNodes()&&(x=x.startContainer.childNodes[x.startOffset])){var L=x.previousSibling;aYG(x)==""&&_.mg(x);L&&aYG(L)==""&&_.mg(L)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.K.insertNode=function(x,L){x=cO(this).insertNode(x,L);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return x};
_.K.collapse=function(x){x=this.isReversed()?!x:x;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(x);x?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var sWB=function(){};
_.E9(sWB,H$2);sWB.prototype.JSC$11351_containsRange=function(x,L){var D=f0(this);x=f0(x);return(L?tE:_.Ndc)(x,function(S){return tE(D,function(Q){return Q.JSC$11351_containsRange(S,L)})})};
sWB.prototype.insertNode=function(x,L){L?_.iW(x,this.JSC$11351_getStartNode()):_.ft(x,this.JSC$11351_getEndNode());return x};var Tcr,eKd=Tj().JSC$9330_document_.documentElement;Tcr=eKd.requestFullscreen?"fullscreenchange":eKd.webkitRequestFullscreen?"webkitfullscreenchange":eKd.mozRequestFullScreen?"mozfullscreenchange":eKd.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var RKR=function(){var x=Tj().JSC$9330_document_;return!!(x.webkitIsFullScreen||x.mozFullScreen||x.msFullscreenElement||x.fullscreenElement)};var n0=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.E9(n0,sWB);_.K=n0.prototype;_.K.clone=function(){var x=new n0;x.browserRanges_=_.r0(this.browserRanges_);return x};
_.K.JSC$11351_getType=function(){return"mutli"};
_.K.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.K.getTextRangeCount=function(){return this.browserRanges_.length};
_.K.getTextRange=function(x){this.ranges_[x]||(this.ranges_[x]=b$i(m$_(this.browserRanges_[x])));return this.ranges_[x]};
_.K.getContainer=function(){if(!this.container_){for(var x=[],L=this.getTextRangeCount(),D=0;D<L;D++)x.push(this.getTextRange(D).getContainer());this.container_=A5G.apply(null,x)}return this.container_};
var ts=function(x){x.sortedRanges_||(x.sortedRanges_=f0(x),x.sortedRanges_.sort(function(L,D){var S=L.JSC$11351_getStartNode();L=L.JSC$11351_getStartOffset();var Q=D.JSC$11351_getStartNode();D=D.JSC$11351_getStartOffset();return S==Q&&L==D?0:FXH(S,L,Q,D)?1:-1}));
return x.sortedRanges_};
_.K=n0.prototype;_.K.JSC$11351_getStartNode=function(){return ts(this)[0].JSC$11351_getStartNode()};
_.K.JSC$11351_getStartOffset=function(){return ts(this)[0].JSC$11351_getStartOffset()};
_.K.JSC$11351_getEndNode=function(){return _.ls(ts(this)).JSC$11351_getEndNode()};
_.K.JSC$11351_getEndOffset=function(){return _.ls(ts(this)).JSC$11351_getEndOffset()};
_.K.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.K.JSC$11351_getText=function(){return f0(this).map(function(x){return x.JSC$11351_getText()}).join("")};
_.K.__iterator__=function(){return new xE(this)};
_.K.select=function(){var x=this.getWindow().getSelection();x.removeAllRanges();for(var L=this.getTextRangeCount(),D=0;D<L;D++)x.addRange(this.getTextRange(D).getBrowserRangeObject())};
_.K.JSC$11351_removeContents=function(){f0(this).forEach(function(x){x.JSC$11351_removeContents()})};
_.K.collapse=function(x){if(!this.isCollapsed()){var L=x?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;L.collapse(x);this.ranges_=[L];this.sortedRanges_=[L];this.browserRanges_=[L.getBrowserRangeObject()]}};
var xE=function(x){this.iterators_=null;this.currentIdx_=0;x&&(this.iterators_=ts(x).map(function(L){return _.r6R(L)}));
i_.call(this,x?this.JSC$11357_getStartNode():null,!1,!0)};
_.E9(xE,u1A);_.K=xE.prototype;_.K.JSC$11357_getStartNode=function(){return this.iterators_[0].JSC$11357_getStartNode()};
_.K.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.K.next=function(){for(;this.currentIdx_<this.iterators_.length;){var x=this.iterators_[this.currentIdx_],L=x.next();if(L.done)this.currentIdx_++;else return Nc(this,x.node,x.tagType,x.depth),L}return pd};
_.K.JSC$11349_copyFrom=function(x){this.iterators_=_.r0(x.iterators_);xE.superClass_.JSC$11349_copyFrom.call(this,x)};
_.K.clone=function(){var x=new xE(null);x.JSC$11349_copyFrom(this);return x};var GVh,FXH;_.j8=function(){var x=window.getSelection();return x&&GVh(x)};
GVh=function(x){var L=!1;if(x.createRange)try{var D=x.createRange()}catch(Q){return null}else if(x.rangeCount){if(x.rangeCount>1){D=new n0;L=x.rangeCount;for(var S=0;S<L;S++)D.browserRanges_.push(x.getRangeAt(S));return D}D=x.getRangeAt(0);L=FXH(x.anchorNode,x.anchorOffset,x.focusNode,x.focusOffset)}else return null;return b$i(m$_(D),L)};
_.L1=function(x,L){return _.X4(x,L,x,L)};
_.Dz=function(x,L,D,S){return _.X4(x,L,D,S)};
FXH=function(x,L,D,S){if(x==D)return S<L;var Q;if(x.nodeType==1&&L)if(Q=x.childNodes[L])x=Q,L=0;else if(_.fw(x,D))return!0;if(D.nodeType==1&&S)if(Q=D.childNodes[S])D=Q,S=0;else if(_.fw(D,x))return!1;return(quQ(x,D)||L-S)>0};var Sd=function(){_.Bc.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.e1)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.e1)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.e1)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.e1)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.e1)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.e1)(this.dispatchProgressEvent_,this)};
_.E9(Sd,_.Bc);Sd.prototype.abort=function(){try{this.reader_.abort()}catch(x){throw new a8H(x,"aborting read");}};
Sd.prototype.getError=function(){return this.reader_.error&&new a8H(this.reader_.error,"reading file")};
Sd.prototype.dispatchProgressEvent_=function(x){this.dispatchEvent(new zFr(x,this))};
Sd.prototype.disposeInternal=function(){Sd.superClass_.disposeInternal.call(this);delete this.reader_};
var l4Q=function(x){var L=new Sd,D=CNG(L);L.reader_.readAsArrayBuffer(x);return D},U$W=function(x){var L=new Sd,D=CNG(L);
L.reader_.readAsDataURL(x);return D},CNG=function(x){var L=new Ox;
x.listen("loadend",_.bl(function(D,S){var Q=S.reader_.result,J=S.getError();Q==null||J?D.errback(J):D.callback(Q);S.dispose()},L,x));
return L};var Qc=function(){_.Bc.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$11391_eventHandler_=new _.Mu(this);this.JSC$11391_isInitialized_=!1};
_.E9(Qc,_.Bc);var wPh=new _.Rw("d"),Bch=new _.Rw("beforedragstart"),WX2=new _.Rw("dragstart"),qY_=new _.Rw("beforedragmove"),Aqh=new _.Rw("dragmove"),$$H=new _.Rw("beforedragend"),rqC=new _.Rw("dragend"),Ncd=new _.Rw("e");Qc.prototype.isDragging=function(){return!!this.JSC$11391_dragger_};
var i$_=function(x,L){L.dlgGrowthDirection_=0;L.dlgDragHoverClass_=void 0;L.dlgDragPermission=0;x.dragLists_.push(L)},f4H=function(x,L){x.getHandleForDragItem_=L};
Qc.prototype.init=function(){if(!this.JSC$11391_isInitialized_){for(var x=this.dragLists_.length,L=0;L<x;L++)for(var D=_.oa(this.dragLists_[L]),S=D.length,Q=0;Q<S;++Q){var J=D[Q],Z=this.getHandleForDragItem_(J),y=_.zN(Z);this.dragItemForHandle_[y]=J;this.dragItemHoverClasses_&&(this.JSC$11391_eventHandler_.listen(J,"mouseover",this.handleDragItemMouseover_),this.JSC$11391_eventHandler_.listen(J,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$11391_eventHandler_.listen(Z,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$11391_eventHandler_.listen(Z,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(J);this.JSC$11391_eventHandler_.listen(Z,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$11391_isInitialized_=!0}};
Qc.prototype.disposeInternal=function(){this.JSC$11391_eventHandler_.dispose();for(var x=this.dragLists_.length,L=0;L<x;L++){var D=this.dragLists_[L];D.dlgGrowthDirection_=void 0;D.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;o9Q(this);Qc.superClass_.disposeInternal.call(this)};
var a4Q=function(x,L){for(var D=x.dragLists_.length,S=0;S<D;S++){var Q=x.dragLists_[S];Q.dlgBounds_=yRp(Q)}D=x.dragItems_.length;for(S=0;S<D;S++)Q=x.dragItems_[S],Q!=L&&(Q.dlgBounds_=yRp(Q))};
_.K=Qc.prototype;
_.K.handlePotentialDragStart_=function(x){var L=_.zN(x.currentTarget);L=this.dragItemForHandle_[L];if(L.parentElement.dlgDragPermission!=2){this.currDragItem_=L;a:{L=this.currDragItem_;for(var D=L.cloneNode(!0),S=bx("TEXTAREA",L),Q=bx("TEXTAREA",D),J=0;J<S.length;J++)Q[J].value=S[J].value;switch(L.tagName){case "TR":L=_.Ao("TABLE",null,_.Ao("TBODY",null,D));break a;case "TD":case "TH":L=_.Ao("TABLE",null,_.Ao("TBODY",null,_.Ao("TR",null,D)));break a;case "TEXTAREA":D.value=L.value;default:L=D;break a}L=
void 0}this.draggerEl_=L;this.draggerElClasses_&&Jm(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.Ac(this.currDragItem_).body.appendChild(this.draggerEl_);D=_.$R(this.currDragItem_);L=this.draggerEl_;S=_.$R(L);if(D instanceof _.Wn){var Z=D.y;D=D.x}nt(L,L.offsetLeft+(D-S.x),L.offsetTop+(Number(Z)-S.y));this.JSC$11391_dragger_=new _.tm(this.draggerEl_);_.ogH(this.JSC$11391_dragger_,this.hysteresisDistance_);
_.Uk(this.JSC$11391_dragger_,"start",this.handleDragStart_,!1,this);_.Uk(this.JSC$11391_dragger_,"end",this.handleDragEnd_,!1,this);_.Uk(this.JSC$11391_dragger_,"earlycancel",this.JSC$11393_cleanup_,!1,this);this.dispatchEvent(new J4(wPh,this,x,this.currDragItem_,this.draggerEl_,this.JSC$11391_dragger_));this.JSC$11391_dragger_.startDrag(x)}};
_.K.handleDragStart_=function(x){if(this.dispatchEvent(new J4(Bch,this,x.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.wsr(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?Jm(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var L=xeA(this.draggerEl_);this.draggerEl_.halfWidth=L.width/2;this.draggerEl_.halfHeight=L.height/2;L=this.draggerEl_.getBoundingClientRect();
var D=x.clientY,S=aAR(this.JSC$11391_dragger_,x.clientX);if(S>L.right){var Q=this.currDragItem_.getBoundingClientRect();this.JSC$11391_dragger_.deltaX=S-(S-Q.left)/Q.width*L.width}D=z32(this.JSC$11391_dragger_,D);D>L.bottom&&(this.JSC$11391_dragger_.deltaY+=D-L.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";a4Q(this,this.currDragItem_);this.currDragItem_.style.display="";_.Uk(this.JSC$11391_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new J4(WX2,
this,x.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$11391_dragger_))}else x.preventDefault(),this.JSC$11393_cleanup_()};
_.K.handleDragMove_=function(x){var L=_.$R(this.draggerEl_);L=new _.Wn(L.x+this.draggerEl_.halfWidth,L.y+this.draggerEl_.halfHeight);a:{var D=null;if(this.currDragItem_.style.display!="none"){D=this.currDragItem_.parentNode;var S=yRp(D);if(zKB(L,S))break a}S=this.dragLists_.length;for(var Q=0;Q<S;Q++){var J=this.dragLists_[Q];if(J!=D&&zKB(L,J.dlgBounds_)){D=J;break a}}D=null}if(D){if(D==null)throw Error("Zd");S=0;Q=!1;J=void 0;switch(D.dlgGrowthDirection_){case 0:S=L.y;var Z=XPr;var y=cqG;break;case 4:Q=
!0;case 2:S=L.x;Z=n9R;y=cqG;break;case 5:Q=!0;case 3:S=L.x,Z=tri,y=xL2}for(var E=null,P,v=_.oa(D),V=v.length,h=0;h<V;h++){var H=v[h];if(H!=this.currDragItem_){var k=Z(H.dlgBounds_);if(Q){var T=LAC(H,L);J===void 0&&(J=T);y(S,k)&&(P==void 0||T<J||T==J&&(y(k,P)||k==P))&&(E=H,P=k);T<J&&(J=T)}else y(S,k)&&(P==void 0||y(k,P))&&(E=H,P=k)}}Z=E!==null&&LAC(E,L)>J?null:E}else Z=null;if(!this.dispatchEvent(new J4(qY_,this,x,this.currDragItem_,this.draggerEl_,this.JSC$11391_dragger_,L,D,Z)))return!1;if(D&&D.dlgDragPermission!=
1)this.currDragItem_.parentNode==D&&_.wsr(this.currDragItem_)==Z||D.insertBefore(this.currDragItem_,Z),this.currDragItem_.style.display="",D.dlgDragHoverClass_&&_.OI(D,D.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",y=this.dragLists_.length,P=0;P<y;P++)S=this.dragLists_[P],S.dlgDragHoverClass_&&_.JD(S,S.dlgDragHoverClass_);D!=this.currHoverList_&&(this.currHoverList_=D,a4Q(this,this.currDragItem_));this.dispatchEvent(new J4(Aqh,this,x,this.currDragItem_,this.draggerEl_,this.JSC$11391_dragger_,
L,D,Z));return!1};
_.K.JSC$11393_cleanup_=function(){o9Q(this);this.JSC$11391_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var x=this.dragLists_.length,L=0;L<x;L++)this.dragLists_[L].dlgBounds_=null;x=this.dragItems_.length;for(L=0;L<x;L++)this.dragItems_[L].dlgBounds_=null};
_.K.handleDragEnd_=function(x){if(!this.dispatchEvent(new J4($$H,this,x,this.currDragItem_,this.draggerEl_,this.JSC$11391_dragger_)))return!1;o9Q(this);this.dispatchEvent(new J4(rqC,this,x,this.currDragItem_,this.draggerEl_,this.JSC$11391_dragger_));this.JSC$11393_cleanup_();return!0};
var o9Q=function(x){_.Q1(x.JSC$11391_dragger_);var L=x.draggerEl_&&x.draggerEl_.parentElement;x.draggerEl_&&_.mg(x.draggerEl_);x.currDragItem_&&x.currDragItem_.style.display=="none"&&(x.origList_.insertBefore(x.currDragItem_,x.origNextItem_),x.currDragItem_.style.display="");x.currDragItemClasses_&&x.currDragItem_?iq2(x.currDragItem_,x.currDragItemClasses_||[]):x.currDragItem_&&(x.currDragItem_.style.visibility="");for(var D=x.dragLists_.length,S=0;S<D;S++){var Q=x.dragLists_[S];Q.dlgDragHoverClass_&&
_.JD(Q,Q.dlgDragHoverClass_)}L&&x.dispatchEvent(new J4(Ncd,x,null,x.currDragItem_,x.draggerEl_,x.JSC$11391_dragger_))};
_.K=Qc.prototype;_.K.getHandleForDragItem_=function(x){return x};
_.K.handleDragItemMouseover_=function(x){Jm(x.currentTarget,this.dragItemHoverClasses_||[])};
_.K.handleDragItemMouseout_=function(x){iq2(x.currentTarget,this.dragItemHoverClasses_||[])};
_.K.handleDragItemHandleMouseover_=function(x){Jm(x.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.K.handleDragItemHandleMouseout_=function(x){iq2(x.currentTarget,this.dragItemHandleHoverClasses_||[])};
var zKB=function(x,L){return x.x>L.left&&x.x<L.left+L.width&&x.y>L.top&&x.y<L.top+L.height},LAC=function(x,L){x=x.dlgBounds_;
return Math.abs(L.y-(x.top+(x.height-1)/2))},XPr=function(x){return x.top+x.height-1},n9R=function(x){return x.left+x.width-1},tri=function(x){return x.left||0},cqG=function(x,L){return x<L},xL2=function(x,L){return x>L},J4=function(x,L,D,S,Q,J){_.Gm.call(this,x);
this.event=D;this.currDragItem=S;this.draggerEl=Q;this.JSC$11395_dragger=J};
_.E9(J4,_.Gm);_.E9(dr,_.Te);var DLB=new _.Wn(0,0);dr.prototype.JSC$11399_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
dr.prototype.JSC$11399_onMouseMove=function(x){var L=this.containerIsActuallyContent_?DLB:FZ(Tj(this.containerNode_)),D=this.horizontalScrolling_?this.calculateScrollDelta(x.clientX+L.x,this.scrollBounds_.left,this.scrollBounds_.width):0,S=this.calculateScrollDelta(x.clientY+L.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=D;this.scrollDelta_.y=S;!(D=!D&&!S)&&(D=this.constrainScroll_)&&(D=x.clientX+L.x,x=x.clientY+L.y,L=this.containerBounds_,D=!(L.left<=D&&L.left+L.width>=
D&&L.top<=x&&L.top+L.height>=x));D?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
dr.prototype.calculateScrollDelta=function(x,L,D){var S=0;x<L?S=-8:x>L+D&&(S=8);return S};
dr.prototype.disposeInternal=function(){dr.superClass_.disposeInternal.call(this);this.JSC$11397_eventHandler_.dispose();this.scrollTimer_.dispose()};var Sk2={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"}}},K1=Sk2;K1=Sk2;var OF={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 Q6_=function(){},x8=function(x){if(typeof x=="number"){var L=new Q6_;
L.standardOffset_=x;var D=x;if(D==0)D="Etc/GMT";else{var S=["Etc/GMT",D<0?"-":"+"];D=Math.abs(D);S.push(Math.floor(D/60)%100);D%=60;D!=0&&S.push(":",_.vM(D,2));D=S.join("")}L.timeZoneId_=D;D=x;D==0?D="UTC":(S=["UTC",D<0?"+":"-"],D=Math.abs(D),S.push(Math.floor(D/60)%100),D%=60,D!=0&&S.push(":",D),D=S.join(""));x=JHA(x);L.tzNames_=[D,D];L.tzNamesExt_={STD_LONG_NAME_GMT:x,STD_GENERIC_LOCATION:x};L.transitions_=[];return L}L=new Q6_;L.timeZoneId_=x.id;L.standardOffset_=-x.std_offset;L.tzNames_=x.names;
L.tzNamesExt_=x.names_ext;L.transitions_=x.transitions;return L},JHA=function(x){var L=["GMT"];
L.push(x<=0?"+":"-");x=Math.abs(x);L.push(_.vM(Math.floor(x/60)%100,2),":",_.vM(x%60,2));return L.join("")},KAh=function(x,L){L=Date.UTC(L.getUTCFullYear(),L.getUTCMonth(),L.getUTCDate(),L.getUTCHours(),L.getUTCMinutes())/36E5;
for(var D=0;D<x.transitions_.length&&L>=x.transitions_[D];)D+=2;return D==0?0:x.transitions_[D-1]},OIQ=function(x,L){x=x.standardOffset_-KAh(x,L);
return x===-1440?0:x};var LB=function(x,L){this.patternParts_=[];this.JSC$11410_dateTimeSymbols_=L||uS;typeof x=="number"?ZIC(this,x):yHA(this,x)},IHr=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],Zz=function(x){return x.getHours?x.getHours():0},yHA=function(x,L){for(yzN&&(L=L.replace(/\u200f/g,""));L;){for(var D=L,S=0;S<IHr.length;++S){var Q=L.match(IHr[S]);
if(Q){var J=Q[0];L=L.substring(J.length);S==0&&(J=="''"?J="'":(J=J.substring(1,Q[1]=="'"?J.length-1:J.length),J=J.replace(/''/g,"'")));x.patternParts_.push({text:J,type:S});break}}if(D===L)throw Error("$d`"+L);}};
LB.prototype.format=function(x,L){if(!x)throw Error("ae");var D=L?(x.getTimezoneOffset()-OIQ(L,x))*6E4:0,S=D?new Date(x.getTime()+D):x,Q=S;L&&S.getTimezoneOffset()!=x.getTimezoneOffset()&&(S=new Date(S.getTime()+(S.getTimezoneOffset()-x.getTimezoneOffset())*6E4),Q=new Date(x.getTime()+(D+(D>0?-864E5:864E5))));D=[];for(var J=0;J<this.patternParts_.length;++J){var Z=this.patternParts_[J].text;1==this.patternParts_[J].type?D.push(EiC(this,Z,x,S,Q,L)):D.push(Z)}return D.join("")};
var ZIC=function(x,L){if(L<4)var D=x.JSC$11410_dateTimeSymbols_.DATEFORMATS[L];else if(L<8)D=x.JSC$11410_dateTimeSymbols_.TIMEFORMATS[L-4];else if(L<12)D=x.JSC$11410_dateTimeSymbols_.DATETIMEFORMATS[L-8],D=D.replace("{1}",x.JSC$11410_dateTimeSymbols_.DATEFORMATS[L-8]),D=D.replace("{0}",x.JSC$11410_dateTimeSymbols_.TIMEFORMATS[L-8]);else if(L===12)D=x.JSC$11410_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(L===13)D=x.JSC$11410_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{ZIC(x,10);return}yHA(x,D)},yc=function(x,L){L=String(L);
x=x.JSC$11410_dateTimeSymbols_||uS;if(x.ZERODIGIT!==void 0&&!ZJf){for(var D=[],S=0;S<L.length;S++){var Q=L.charCodeAt(S);D.push(48<=Q&&Q<=57?String.fromCharCode(x.ZERODIGIT+Q-48):L.charAt(S))}L=D.join("")}return L},ZJf=!1,yzN=!1,dLr=function(x,L,D,S){D=D.getFullYear();
D<=0&&S&&(D=1-D);return yc(x,MOh(D,L))},MOh=function(x,L){L==2&&(x%=100);
x<0&&L++;return _.vM(x,L)},I_=function(x){if(!(x.getHours&&x.getSeconds&&x.getMinutes))throw Error("be");
},Pih=function(x,L){I_(L);
L=Zz(L);return x.JSC$11410_dateTimeSymbols_.AMPMS[L>=12&&L<24?1:0]},EiC=function(x,L,D,S,Q,J){var Z=L.length;
switch(L.charAt(0)){case "G":return D=S.getFullYear()>0?1:0,Z>=4?x.JSC$11410_dateTimeSymbols_.ERANAMES[D]:x.JSC$11410_dateTimeSymbols_.ERAS[D];case "y":return dLr(x,Z,S,!0);case "Y":return D=(new Date(v9H(S.getFullYear(),S.getMonth(),S.getDate(),x.JSC$11410_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,x.JSC$11410_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),Z==2&&(D%=100),yc(x,MOh(D,Z));case "u":return dLr(x,Z,S,!1);case "M":a:switch(D=S.getMonth(),Z){case 5:Z=x.JSC$11410_dateTimeSymbols_.NARROWMONTHS[D];
break a;case 4:Z=x.JSC$11410_dateTimeSymbols_.MONTHS[D];break a;case 3:Z=x.JSC$11410_dateTimeSymbols_.SHORTMONTHS[D];break a;default:Z=yc(x,_.vM(D+1,Z))}return Z;case "k":return I_(Q),yc(x,_.vM(Zz(Q)||24,Z));case "S":return yc(x,(Q.getMilliseconds()/1E3).toFixed(Math.min(3,Z)).slice(2)+(Z>3?_.vM(0,Z-3):""));case "E":return D=S.getDay(),Z>=4?x.JSC$11410_dateTimeSymbols_.WEEKDAYS[D]:x.JSC$11410_dateTimeSymbols_.SHORTWEEKDAYS[D];case "a":return Pih(x,Q);case "b":return Pih(x,Q);case "B":return Pih(x,
Q);case "h":return I_(Q),yc(x,_.vM(Zz(Q)%12||12,Z));case "K":return I_(Q),yc(x,_.vM(Zz(Q)%12,Z));case "H":return I_(Q),yc(x,_.vM(Zz(Q),Z));case "c":a:switch(D=S.getDay(),Z){case 5:Z=x.JSC$11410_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[D];break a;case 4:Z=x.JSC$11410_dateTimeSymbols_.STANDALONEWEEKDAYS[D];break a;case 3:Z=x.JSC$11410_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[D];break a;default:Z=yc(x,_.vM(D,1))}return Z;case "L":a:switch(D=S.getMonth(),Z){case 5:Z=x.JSC$11410_dateTimeSymbols_.STANDALONENARROWMONTHS[D];
break a;case 4:Z=x.JSC$11410_dateTimeSymbols_.STANDALONEMONTHS[D];break a;case 3:Z=x.JSC$11410_dateTimeSymbols_.STANDALONESHORTMONTHS[D];break a;default:Z=yc(x,_.vM(D+1,Z))}return Z;case "Q":return D=Math.floor(S.getMonth()/3),Z<4?x.JSC$11410_dateTimeSymbols_.SHORTQUARTERS[D]:x.JSC$11410_dateTimeSymbols_.QUARTERS[D];case "d":return yc(x,_.vM(S.getDate(),Z));case "m":return I_(Q),yc(x,_.vM(Q.getMinutes?Q.getMinutes():0,Z));case "s":return I_(Q),yc(x,_.vM(Q.getSeconds(),Z));case "v":return(J||x8(D.getTimezoneOffset())).timeZoneId_;
case "V":return x=J||x8(D.getTimezoneOffset()),Z<=2?x.timeZoneId_:KAh(x,D)>0?x.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?x.tzNamesExt_.DST_GENERIC_LOCATION:x.tzNamesExt_.DST_GENERIC_LOCATION:x.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?x.tzNamesExt_.STD_GENERIC_LOCATION:x.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return D=v9H(Q.getFullYear(),Q.getMonth(),Q.getDate(),x.JSC$11410_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,x.JSC$11410_dateTimeSymbols_.FIRSTDAYOFWEEK),yc(x,_.vM(Math.floor(Math.round((D-(new Date((new Date(D)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,Z));case "z":return x=J||x8(D.getTimezoneOffset()),Z<4?x.tzNames_[KAh(x,D)>0?2:0]:x.tzNames_[KAh(x,D)>0?3:1];case "Z":return L=J||x8(D.getTimezoneOffset()),Z<4?(Z=-OIQ(L,D),x=[Z<0?"-":"+"],Z=Math.abs(Z),x.push(_.vM(Math.floor(Z/60)%100,2),_.vM(Z%60,2)),Z=x.join("")):Z=yc(x,JHA(OIQ(L,D))),Z;default:return""}};var j6G=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,viA=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,PIn=function(x){this.patternParts_=[];this.JSC$11419_dateTimeSymbols_=uS;if(typeof x=="number"){x>11&&(x=10);if(x<4)var L=this.JSC$11419_dateTimeSymbols_.DATEFORMATS[x];else x<8?L=this.JSC$11419_dateTimeSymbols_.TIMEFORMATS[x-4]:(L=this.JSC$11419_dateTimeSymbols_.DATETIMEFORMATS[x-8],L=L.replace("{1}",this.JSC$11419_dateTimeSymbols_.DATEFORMATS[x-8]),L=L.replace("{0}",this.JSC$11419_dateTimeSymbols_.TIMEFORMATS[x-
8]));VOA(this,L)}else VOA(this,x)},VOA=function(x,L){for(var D=!1,S="",Q=0;Q<L.length;Q++){var J=L.charAt(Q);
if(j6G.test(J))for(S.length>0&&(x.patternParts_.push({text:S,count:0,abutStart:!1,numeric:!1}),S=""),x.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});Q<L.length-1&&L.charAt(Q+1)==" ";)Q++;else if(D)J=="'"?Q+1<L.length&&L.charAt(Q+1)=="'"?(S+="'",Q++):D=!1:S+=J;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(J)>=0){S.length>0&&(x.patternParts_.push({text:S,count:0,abutStart:!1,numeric:!1}),S="");for(var Z=L.charAt(Q),y=Q+1;y<L.length&&L.charAt(y)==Z;)y++;Z=y-Q;Z<=0?y=!1:(y="MydhHmsSDkK".indexOf(J),
y=y>0||y==0&&Z<3);x.patternParts_.push({text:J,count:Z,abutStart:!1,numeric:y});Q+=Z-1}else J=="'"?Q+1<L.length&&L.charAt(Q+1)=="'"?(S+="'",Q++):D=!0:S+=J}S.length>0&&x.patternParts_.push({text:S,count:0,abutStart:!1,numeric:!1});L=!1;for(D=0;D<x.patternParts_.length;D++)x.patternParts_[D].numeric?!L&&D+1<x.patternParts_.length&&x.patternParts_[D+1].numeric&&(L=!0,x.patternParts_[D].abutStart=!0):L=!1};
PIn.prototype.parse=function(x,L,D){var S=!1,Q=!1;D&&(S=D.predictive||!1,Q=D.validate||!1);if(S)for(D=0;D<this.patternParts_.length;D++){var J=this.patternParts_[D];if(J.count>0&&("abBhHkKm".indexOf(J.text.charAt(0))<0||J.count>2||J.abutStart))throw Error("ce`"+J.text.charAt(0));}J=new hZA;D=[0];J.dayPeriodIndex=-1;for(var Z=0;Z<this.patternParts_.length&&!(S&&D[0]>=x.length);Z++){if(this.patternParts_[Z].count==0){a:{var y=x;var E=D,P=this.patternParts_[Z],v=S;if(P.text.match(j6G)!=null){if(P=E[0],
HI_(y,E),E[0]>P){y=!0;break a}}else{if(y.indexOf(P.text,E[0])==E[0]){E[0]+=P.text.length;y=!0;break a}if(v&&P.text.indexOf(y.substring(E[0]))==0){E[0]+=y.length-E[0];y=!0;break a}}y=!1}if(y)continue;return 0}if(this.patternParts_[Z].abutStart){a:{E=x;P=D;v=Z;var V=P[0],h=0;for(y=v;y<this.patternParts_.length;y++){var H=this.patternParts_[y],k=H.count;if(k===0)break;if(y==v&&(k-=h,h++,k==0)){y=0;break a}var T=y>v&&H.numeric,G=P[0];if(!ufd(this,E,P,H,k,J,!1)||T&&P[0]-G<k)y=v-1,P[0]=V}y-=v}if(y<=0)return 0;
Z+=y-1}else if(!ufd(this,x,D,this.patternParts_[Z],0,J,S))return 0}a:{x=Q;if(L==null)throw Error("de");J.era!=void 0&&J.year!=void 0&&J.era==0&&J.year>0&&(J.year=-(J.year-1));J.year!=void 0&&L.setFullYear(J.year);S=L.getDate();L.setDate(1);J.month!=void 0&&L.setMonth(J.month);J.day!=void 0?L.setDate(J.day):(Q=rPh(L.getFullYear(),L.getMonth()),L.setDate(S>Q?Q:S));typeof L.setHours==="function"&&(J.hours==void 0&&(J.hours=L.getHours()),J.hours<12&&(J.ampm!=void 0&&J.ampm>0?J.hours+=12:J.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(J.dayPeriodName)||["night1","night2"].includes(J.dayPeriodName)&&J.hours>=6)&&(J.hours+=12)),L.setHours(J.hours));typeof L.setMinutes==="function"&&J.minutes!=void 0&&L.setMinutes(J.minutes);typeof L.setSeconds==="function"&&J.seconds!=void 0&&L.setSeconds(J.seconds);typeof L.setMilliseconds==="function"&&J.milliseconds!=void 0&&L.setMilliseconds(J.milliseconds);if(x&&(J.year&&J.year!=L.getFullYear()||J.month&&J.month!=
L.getMonth()||J.day&&J.day!=L.getDate()||J.hours&&J.hours>=24||J.minutes&&J.minutes>=60||J.seconds&&J.seconds>=60||J.milliseconds&&J.milliseconds>=1E3))L=!1;else{J.tzOffset!=void 0&&L.setTime(L.getTime()+(J.tzOffset-L.getTimezoneOffset())*60*1E3);J.ambiguousYear&&(x=new Date,x.setFullYear(x.getFullYear()-80),L.getTime()<x.getTime()&&L.setFullYear(x.getFullYear()+100));if(J.dayOfWeek!=void 0)if(J.day==void 0)J=(7+J.dayOfWeek-L.getDay())%7,J>3&&(J-=7),x=L.getMonth(),L.setDate(L.getDate()+J),L.getMonth()!=
x&&L.setDate(L.getDate()+(J>0?-7:7));else if(J.dayOfWeek!=L.getDay()){L=!1;break a}L=!0}}return L?D[0]:0};
var ufd=function(x,L,D,S,Q,J,Z){HI_(L,D);if(S.numeric&&Q>0&&D[0]+Q>L.length)return!1;switch(S.text.charAt(0)){case "G":return EF(L,D,[x.JSC$11419_dateTimeSymbols_.ERAS],function(y){return J.era=y}),!0;
case "M":case "L":return gi2(x,L,D,Q,S,J);case "E":return EF(L,D,[x.JSC$11419_dateTimeSymbols_.WEEKDAYS,x.JSC$11419_dateTimeSymbols_.SHORTWEEKDAYS],function(y){return J.dayOfWeek=y});
case "B":case "b":return Q=[],x=[[].concat(x.JSC$11419_dateTimeSymbols_.AMPMS)],Q.push("isAm"),Q.push("isPm"),L=EF(L,D,x,function(y){return J.dayPeriodIndex=y},Z),J.dayPeriodName=Q[J.dayPeriodIndex],Z?L:!0;
case "a":return L=EF(L,D,[x.JSC$11419_dateTimeSymbols_.AMPMS],function(y){return J.ampm=y},Z),Z?L:!0;
case "y":return k$B(x,L,D,S,Q,J);case "Q":return EF(L,D,[x.JSC$11419_dateTimeSymbols_.QUARTERS,x.JSC$11419_dateTimeSymbols_.SHORTQUARTERS],function(y){J.month=y*3;J.day=1});
case "d":return MY(x,L,D,S,Q,function(y){J.day=y}),!0;
case "S":return pp_(x,L,D,Q,J);case "h":case "K":case "H":case "k":return L=MY(x,L,D,S,Q,function(y){J.hours=S.text.charAt(0)==="h"&&y===12?0:y},Z),Z?L:!0;
case "m":return L=MY(x,L,D,S,Q,function(y){J.minutes=y},Z),Z?L:!0;
case "s":return MY(x,L,D,S,Q,function(y){J.seconds=y}),!0;
case "z":case "Z":case "v":return mLH(x,L,D,J);default:return!1}},k$B=function(x,L,D,S,Q,J){var Z=D[0];
Q=dh(x,L,D,Q);Q===null&&(Q=dh(x,L,D,0,!0));if(Q===null)return!1;Q>=0&&D[0]-Z==2&&S.count==2?(x=Q,L=(new Date).getFullYear()-80,D=L%100,J.ambiguousYear=x==D,x+=Math.floor(L/100)*100+(x<D?100:0),J.year=x):J.year=Q;return!0},gi2=function(x,L,D,S,Q,J){return Q.numeric&&MY(x,L,D,Q,S,function(Z){J.month=Z-1})?!0:EF(L,D,[x.JSC$11419_dateTimeSymbols_.MONTHS,
x.JSC$11419_dateTimeSymbols_.STANDALONEMONTHS,x.JSC$11419_dateTimeSymbols_.SHORTMONTHS,x.JSC$11419_dateTimeSymbols_.STANDALONESHORTMONTHS],function(Z){J.month=Z})},pp_=function(x,L,D,S,Q){var J=D[0];
x=dh(x,L,D,S);if(x===null)return!1;D=D[0]-J;Q.milliseconds=D<3?x*Math.pow(10,3-D):Math.round(x/Math.pow(10,D-3));return!0},mLH=function(x,L,D,S){L.indexOf("GMT",D[0])==D[0]&&(D[0]+=3);
if(D[0]>=L.length)return S.tzOffset=0,!0;var Q=D[0],J=dh(x,L,D,0,!0);if(J===null)return!1;if(D[0]<L.length&&L.charAt(D[0])==":"){var Z=J*60;D[0]++;J=dh(x,L,D,0);if(J===null)return!1;Z+=J}else Z=J,Z=Z<24&&D[0]-Q<=3?Z*60:Z%100+Z/100*60;S.tzOffset=-Z;return!0},MY=function(x,L,D,S,Q,J,Z){Z=Z||!1;
var y=D[0];x=dh(x,L,D,Q);if(x===null)return!1;if(Z&&D[0]-y<S.count){if(D[0]<L.length)return!1;x*=Math.pow(10,S.count-(D[0]-y))}J(x);return!0},EF=function(x,L,D,S,Q){Q=Q||!1;
for(var J,Z=0;Z<D.length;Z++){J=L;for(var y=D[Z],E=Q,P=0,v=null,V=x.substring(J[0]).toLowerCase(),h=0;h<y.length;h++){var H=y[h].toLowerCase();if(E&&H.indexOf(V)==0){P=V.length;v=h;break}y[h].length>P&&V.indexOf(H)==0&&(P=y[h].length,v=h)}v!==null&&(J[0]+=P);J=v;if(J!==null)return S(J),!0}return!1},HI_=function(x,L){(x=x.substring(L[0]).match(viA))&&(L[0]+=x[0].length)},dh=function(x,L,D,S,Q){L=S>0?L.substring(0,D[0]+S):L;
Q=Q||!1;if(x.JSC$11419_dateTimeSymbols_.ZERODIGIT){S=[];for(var J=D[0];J<L.length;J++){var Z=L.charCodeAt(J)-x.JSC$11419_dateTimeSymbols_.ZERODIGIT;S.push(0<=Z&&Z<=9?String.fromCharCode(Z+48):L.charAt(J))}L=S.join("")}else L=L.substring(D[0]);x=L.match(new RegExp("^"+(Q?"[+-]?":"")+"\\d+"));if(!x)return null;D[0]+=x[0].length;return parseInt(x[0],10)},hZA=function(){};
hZA.prototype.ambiguousYear=!1;var bIW;
bIW={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 Yk_={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}"]};
Yk_={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 FAR=function(){var x={type:"unit",style:"narrow"};this.listType_=x&&x.type?x.type:"conjunction";this.listStyle_=x&&x.style?x.style:"long";this.listSymbols_=Yk_;x=0;switch(this.listStyle_){case "short":x=1;break;case "narrow":x=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[x];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[x];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[x];this.listEndPattern_=
this.listSymbols_.AND_END[x];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[x];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[x];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[x];this.listEndPattern_=this.listSymbols_.OR_END[x];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[x],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[x],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[x],this.listEndPattern_=this.listSymbols_.UNIT_END[x]}};
FAR.prototype.format=function(x){return s6H(this,x)};
var s6H=function(x,L){var D=L.length;switch(D){case 0:return"";case 1:return String(L[0]);case 2:return x.listTwoPattern_.replace("{0}",String(L[0])).replace("{1}",String(L[1]))}for(var S=x.listStartPattern_.replace("{0}",String(L[0])).replace("{1}",String(L[1])),Q=2;Q<D-1;++Q)S=x.listMiddlePattern_.replace("{0}",S).replace("{1}",String(L[Q]));return x.listEndPattern_.replace("{0}",S).replace("{1}",String(L[D-1]))};var TBG={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"},eZ2=TBG,RZ2=TBG;RZ2=eZ2=TBG;var CiB,Pu,vu,BL4,jd,G$Q;
_.ca=function(x,L,D,S){var Q;if(Q=L){a:if(L&&L.length===3){for(Q=0;Q<3;Q++){var J=L[Q];if(J<"A"||J>"Z"&&J<"a"||J>"z"){Q=!1;break a}}Q=!0}else Q=!1;Q=!Q}if(Q)throw new TypeError("ee");this.intlCurrencyCode_=L?L.toUpperCase():null;this.currencyStyle_=D||0;this.overrideNumberFormatSymbols_=S||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_=Pu(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof x==="number")switch(x){case 1:jd(this,Pu(this).DECIMAL_PATTERN);break;case 2:jd(this,Pu(this).SCIENTIFIC_PATTERN);break;case 3:jd(this,Pu(this).PERCENT_PATTERN);break;case 4:x=Pu(this).CURRENCY_PATTERN;L=["0"];if(D=
OF[vu(this)]){D=D[0]&7;if(D>0)for(L.push("."),S=0;S<D;S++)L.push("0");x=x.replace(/0.00/g,L.join(""))}jd(this,x);break;case 5:G$Q(this,1);break;case 6:G$Q(this,2);break;default:throw Error("he");}else jd(this,x)};
CiB=!1;Pu=function(x){return x.overrideNumberFormatSymbols_||(CiB?RZ2:eZ2)};
vu=function(x){return x.intlCurrencyCode_||Pu(x).DEF_CURRENCY_CODE};
BL4=function(x,L){if(L>308)throw Error("ge`"+L);x.maximumFractionDigits_=L;return x};
jd=function(x,L){var D=[0];x.positivePrefix_=lH2(x,L,D);for(var S=D[0],Q=-1,J=0,Z=0,y=0,E=-1,P=L.length,v=!0;D[0]<P&&v;D[0]++)switch(L.charAt(D[0])){case "#":Z>0?y++:J++;E>=0&&Q<0&&E++;break;case "0":if(y>0)throw Error("ne`"+L);Z++;E>=0&&Q<0&&E++;break;case ",":E>0&&x.groupingArray_.push(E);E=0;break;case ".":if(Q>=0)throw Error("oe`"+L);Q=J+Z+y;break;case "E":if(x.useExponentialNotation_)throw Error("pe`"+L);x.useExponentialNotation_=!0;x.minExponentDigits_=0;D[0]+1<P&&L.charAt(D[0]+1)=="+"&&(D[0]++,
x.useSignForPositiveExponent_=!0);for(;D[0]+1<P&&L.charAt(D[0]+1)=="0";)D[0]++,x.minExponentDigits_++;if(J+Z<1||x.minExponentDigits_<1)throw Error("qe`"+L);v=!1;break;default:D[0]--,v=!1}Z==0&&J>0&&Q>=0&&(Z=Q,Z==0&&Z++,y=J-Z,J=Z-1,Z=1);if(Q<0&&y>0||Q>=0&&(Q<J||Q>J+Z)||E==0)throw Error("re`"+L);y=J+Z+y;x.maximumFractionDigits_=Q>=0?y-Q:0;Q>=0&&(x.minimumFractionDigits_=J+Z-Q,x.minimumFractionDigits_<0&&(x.minimumFractionDigits_=0));x.minimumIntegerDigits_=(Q>=0?Q:y)-J;x.useExponentialNotation_&&(x.maximumIntegerDigits_=
J+x.minimumIntegerDigits_,x.maximumFractionDigits_==0&&x.minimumIntegerDigits_==0&&(x.minimumIntegerDigits_=1));x.groupingArray_.push(Math.max(0,E));x.decimalSeparatorAlwaysShown_=Q==0||Q==y;S=D[0]-S;x.positiveSuffix_=lH2(x,L,D);D[0]<L.length&&L.charAt(D[0])==";"?(D[0]++,x.multiplier_!=1&&(x.negativePercentSignExpected_=!0),x.negativePrefix_=lH2(x,L,D),D[0]+=S,x.negativeSuffix_=lH2(x,L,D)):(x.negativePrefix_+=x.positivePrefix_,x.negativeSuffix_+=x.positiveSuffix_)};
G$Q=function(x,L){x.compactStyle_=L;jd(x,Pu(x).DECIMAL_PATTERN);x.minimumFractionDigits_=0;BL4(x,2);if(x.minimumFractionDigits_>0)throw Error("fe");x.significantDigits_=2};
_.ca.prototype.parse=function(x,L){L=L||[0];if(this.compactStyle_!==0)throw Error("ie");x=x.replace(/ |\u202f/g,"\u00a0");var D=x.indexOf(this.positivePrefix_,L[0])==L[0],S=x.indexOf(this.negativePrefix_,L[0])==L[0];D&&S&&(this.positivePrefix_.length>this.negativePrefix_.length?S=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(D=!1));D?L[0]+=this.positivePrefix_.length:S&&(L[0]+=this.negativePrefix_.length);if(x.indexOf(Pu(this).INFINITY,L[0])==L[0]){L[0]+=Pu(this).INFINITY.length;var Q=
Infinity}else{Q=x;var J=!1,Z=!1,y=!1,E=-1,P=1,v=Pu(this).DECIMAL_SEP,V=Pu(this).GROUP_SEP,h=Pu(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("je");V=V.replace(/\u202f/g,"\u00a0");for(var H="";L[0]<Q.length;L[0]++){var k=Q.charAt(L[0]),T=ULH(this,k);if(T>=0&&T<=9)H+=T,y=!0;else if(k==v.charAt(0)){if(J||Z)break;H+=".";J=!0}else if(k==V.charAt(0)&&("\u00a0"!=V.charAt(0)||L[0]+1<Q.length&&ULH(this,Q.charAt(L[0]+1))>=0)){if(J||Z)break}else if(k==h.charAt(0)){if(Z)break;H+="E";Z=!0;E=L[0]}else if(k==
"+"||k=="-"){if(y&&E!=L[0]-1)break;H+=k}else if(this.multiplier_==1&&k==Pu(this).PERCENT.charAt(0)){if(P!=1)break;P=100;if(y){L[0]++;break}}else if(this.multiplier_==1&&k==Pu(this).PERMILL.charAt(0)){if(P!=1)break;P=1E3;if(y){L[0]++;break}}else break}this.multiplier_!=1&&(P=this.multiplier_);Q=parseFloat(H)/P}if(D){if(x.indexOf(this.positiveSuffix_,L[0])!=L[0])return NaN;L[0]+=this.positiveSuffix_.length}else if(S){if(x.indexOf(this.negativeSuffix_,L[0])!=L[0])return NaN;L[0]+=this.negativeSuffix_.length}return S?
-Q:Q};
_.ca.prototype.format=function(x){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("ke");if(isNaN(x))return Pu(this).NAN;var L=[];var D=x;if(this.compactStyle_==0)D=Vc;else{D=Math.abs(D);var S=wph(this,D<=1?0:BB2(D)).divisorBase;D=wph(this,S+BB2(WAB(this,h4(D,-S)).intValue))}x=h4(x,-D.divisorBase);(S=x<0||x==0&&1/x<0)?D.negative_prefix?L.push(D.negative_prefix):(L.push(D.prefix),L.push(this.negativePrefix_)):(L.push(D.prefix),L.push(this.positivePrefix_));if(isFinite(x))if(x*=
S?-1:1,x*=this.multiplier_,this.useExponentialNotation_){var Q=x;if(Q==0)qkA(this,Q,this.minimumIntegerDigits_,L),AH_(this,0,L);else{var J=Math.floor(Math.log(Q)/Math.log(10)+2E-15);Q=h4(Q,-J);var Z=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(Z=J%this.maximumIntegerDigits_,Z<0&&(Z=this.maximumIntegerDigits_+Z),Q=h4(Q,Z),J-=Z,Z=1):this.minimumIntegerDigits_<1?(J++,Q=h4(Q,-1)):(J-=this.minimumIntegerDigits_-1,Q=h4(Q,this.minimumIntegerDigits_-
1));qkA(this,Q,Z,L);AH_(this,J,L)}}else qkA(this,x,this.minimumIntegerDigits_,L);else L.push(Pu(this).INFINITY);S?D.negative_suffix?L.push(D.negative_suffix):(isFinite(x)&&L.push(D.suffix),L.push(this.negativeSuffix_)):(isFinite(x)&&L.push(D.suffix),L.push(this.positiveSuffix_));return L.join("")};
var WAB=function(x,L){var D=h4(L,x.maximumFractionDigits_);x.significantDigits_>0&&(D=$Li(D,x.significantDigits_,x.maximumFractionDigits_));D=Math.round(D);if(isFinite(D)){var S=Math.floor(h4(D,-x.maximumFractionDigits_));D=Math.floor(D-h4(S,x.maximumFractionDigits_));if(D<0||D>=h4(1,x.maximumFractionDigits_))S=Math.round(L),D=0}else S=L,D=0;return{intValue:S,fracValue:D}},qkA=function(x,L,D,S){if(x.minimumFractionDigits_>x.maximumFractionDigits_)throw Error("ke");
S||(S=[]);L=WAB(x,L);var Q=L.intValue,J=L.fracValue,Z=x.minimumFractionDigits_>0||J>0||!1;L=x.minimumFractionDigits_;Z&&(L=x.minimumFractionDigits_);for(var y="",E=Q;E>1E20;)y="0"+y,E=Math.round(h4(E,-1));y=E+y;var P=Pu(x).DECIMAL_SEP;E=Pu(x).ZERO_DIGIT.codePointAt(0);var v=y.length,V=0;if(Q>0||D>0){for(Q=v;Q<D;Q++)S.push(String.fromCodePoint(E));if(x.groupingArray_.length>=2)for(D=1;D<x.groupingArray_.length;D++)V+=x.groupingArray_[D];D=v-V;if(D>0){Q=x.groupingArray_;V=v=0;for(var h,H=Pu(x).GROUP_SEP,
k=y.length,T=0;T<k;T++)if(S.push(String.fromCodePoint(E+Number(y.charAt(T)))),k-T>1)if(h=Q[V],T<D){var G=D-T;(h===1||h>0&&G%h===1)&&S.push(H)}else V<Q.length&&(T===D?V+=1:h===T-D-v+1&&(S.push(H),v+=h,V+=1))}else{D=y;y=x.groupingArray_;Q=Pu(x).GROUP_SEP;h=D.length;H=[];for(v=y.length-1;v>=0&&h>0;v--){V=y[v];for(k=0;k<V&&h-k-1>=0;k++)H.push(String.fromCodePoint(E+Number(D.charAt(h-k-1))));h-=V;h>0&&H.push(Q)}S.push.apply(S,H.reverse())}}else Z||S.push(String.fromCodePoint(E));(x.decimalSeparatorAlwaysShown_||
Z)&&S.push(P);J=String(J);Z=J.split("e+");Z.length==2&&(J=String($Li(parseFloat(Z[0]),x.significantDigits_,1)),J=J.replace(".",""),J+=(0,_.gH2)("0",parseInt(Z[1],10)-J.length+1));x.maximumFractionDigits_+1>J.length&&(J="1"+(0,_.gH2)("0",x.maximumFractionDigits_-J.length)+J);for(x=J.length;J.charAt(x-1)=="0"&&x>L+1;)x--;for(L=1;L<x;L++)S.push(String.fromCodePoint(E+Number(J.charAt(L))))},AH_=function(x,L,D){D.push(Pu(x).EXP_SYMBOL);
L<0?(L=-L,D.push(Pu(x).MINUS_SIGN)):x.useSignForPositiveExponent_&&D.push(Pu(x).PLUS_SIGN);L=""+L;for(var S=Pu(x).ZERO_DIGIT,Q=L.length;Q<x.minExponentDigits_;Q++)D.push(S);x=S.codePointAt(0)-rHr;for(S=0;S<L.length;S++)D.push(String.fromCodePoint(x+L.codePointAt(S)))},ULH=function(x,L){L=L.codePointAt(0);
if(48<=L&&L<58)return L-48;x=Pu(x).ZERO_DIGIT.codePointAt(0);return x<=L&&L<x+10?L-x:-1},rHr="0".codePointAt(0),lH2=function(x,L,D){for(var S="",Q=!1,J=L.length;D[0]<J;D[0]++){var Z=L.charAt(D[0]);
if(Z=="'")D[0]+1<J&&L.charAt(D[0]+1)=="'"?(D[0]++,S+="'"):Q=!Q;else if(Q)S+=Z;else switch(Z){case "#":case "0":case ",":case ".":case ";":return S;case "\u00a4":if(D[0]+1<J&&L.charAt(D[0]+1)=="\u00a4")D[0]++,S+=vu(x);else switch(x.currencyStyle_){case 0:Z=vu(x);S+=Z in OF?OF[Z][1]:Z;break;case 2:Z=vu(x);var y=OF[Z];S+=y?Z==y[1]?Z:Z+" "+y[1]:Z;break;case 1:Z=vu(x),S+=Z in OF?OF[Z][2]:Z}break;case "%":if(!x.negativePercentSignExpected_&&x.multiplier_!=1)throw Error("le");if(x.negativePercentSignExpected_&&
x.multiplier_!=100)throw Error("me");x.multiplier_=100;x.negativePercentSignExpected_=!1;S+=Pu(x).PERCENT;break;case "\u2030":if(!x.negativePercentSignExpected_&&x.multiplier_!=1)throw Error("le");if(x.negativePercentSignExpected_&&x.multiplier_!=1E3)throw Error("me");x.multiplier_=1E3;x.negativePercentSignExpected_=!1;S+=Pu(x).PERMILL;break;default:S+=Z}}return S},Vc={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},wph=function(x,L){x=x.compactStyle_==1?K1.COMPACT_DECIMAL_SHORT_PATTERN:K1.COMPACT_DECIMAL_LONG_PATTERN;x==null&&(x=K1.COMPACT_DECIMAL_SHORT_PATTERN);if(L<3)return Vc;L=Math.min(14,L);var D=x[h4(1,L)];for(--L;!D&&L>=3;)D=x[h4(1,L)],L--;if(!D)return Vc;D=D.other;var S=x="",Q=D.indexOf(";");Q>=0&&(D=D.substring(0,Q),Q=D.substring(Q+1))&&(S=/([^0]*)(0+)(.*)/.exec(Q),x=S[1],S=S[3]);return D&&D!="0"?(D=/([^0]*)(0+)(.*)/.exec(D))?{divisorBase:L+
1-(D[2].length-1),negative_prefix:x,negative_suffix:S,prefix:D[1],suffix:D[3]}:Vc:Vc},BB2=function(x){if(!isFinite(x))return x>0?x:0;
for(var L=0;(x/=10)>=1;)L++;return L},h4=function(x,L){if(!x||!isFinite(x)||L==0)return x;
x=String(x).split("e");return parseFloat(x[0]+"e"+(parseInt(x[1]||0,10)+L))},NB2=function(x,L){return x&&isFinite(x)?h4(Math.round(h4(x,L)),-L):x},$Li=function(x,L,D){if(!x)return x;
L=L-BB2(x)-1;return L<-D?NB2(x,-D):NB2(x,L)};var iI2=function(x){return x%10==1&&x%100!=11?"one":x%10==2&&x%100!=12?"two":x%10==3&&x%100!=13?"few":"other"},fHB=iI2;
fHB=iI2;var oiG=function(x,L){var D=x|0;if(void 0===L){L=Math;var S=L.min,Q=x+"",J=Q.indexOf(".");L=S.call(L,J===-1?0:Q.length-J-1,3)}S=Math.pow(10,L);x={v:L,f:(x*S|0)%S};return D==1&&x.v==0?"one":"other"},Xt=oiG;
Xt=oiG;var cHQ=function(x){this.JSC$11462_pattern_=x;this.parsedPattern_=this.literals_=this.initialLiterals_=null;x=eZ2;var L=K1;if(aHW!==x||zZQ!==L)aHW=x,zZQ=L,Xp2=new _.ca(1);this.numberFormatter_=Xp2},aHW=null,zZQ=null,Xp2=null,ni2=RegExp("'([{}#].*?)'","g"),tOC=RegExp("''","g");
cHQ.prototype.format=function(x){if(this.JSC$11462_pattern_){this.initialLiterals_=[];var L=xjQ(this,this.JSC$11462_pattern_);this.parsedPattern_=LUA(this,L);this.JSC$11462_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.r0(this.initialLiterals_),L=[],DjH(this,this.parsedPattern_,x,!1,L),x=L.join("");this.literals_.length>0;)x=x.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else x="";return x};
var DjH=function(x,L,D,S,Q){for(var J=0;J<L.length;J++)switch(L[J].type){case 4:Q.push(L[J].value);break;case 3:var Z=L[J].value;var y=x,E=Q,P=D[Z];P===void 0?E.push("Undefined parameter - "+Z):(y.literals_.push(P),E.push(y.buildPlaceholder_(y.literals_)));break;case 2:Z=L[J].value;y=x;E=D;P=S;var v=Q,V=Z.argumentIndex;E[V]===void 0?v.push("Undefined parameter - "+V):(V=Z[E[V]],V===void 0&&(V=Z.other),DjH(y,V,E,P,v));break;case 0:Z=L[J].value;SIC(x,Z,D,Xt,S,Q);break;case 1:Z=L[J].value,SIC(x,Z,D,
fHB,S,Q)}},SIC=function(x,L,D,S,Q,J){var Z=L.argumentIndex,y=L.argumentOffset,E=+D[Z];
isNaN(E)?J.push("Undefined or invalid parameter - "+Z):(y=E-y,Z=L[D[Z]],Z===void 0&&(S=S(Math.abs(y)),Z=L[S],Z===void 0&&(Z=L.other)),L=[],DjH(x,Z,D,Q,L),D=L.join(""),Q?J.push(D):(x=x.numberFormatter_.format(y),J.push(D.replace(/#/g,x))))},xjQ=function(x,L){var D=x.initialLiterals_,S=x.buildPlaceholder_.bind(x);
L=L.replace(tOC,function(){D.push("'");return S(D)});
return L=L.replace(ni2,function(Q,J){D.push(J);return S(D)})},QlR=function(x){var L=0,D=[],S=[],Q=/[{}]/g;
Q.lastIndex=0;for(var J;J=Q.exec(x);){var Z=J.index;J[0]=="}"?(D.pop(),D.length==0&&(J={type:1},J.value=x.substring(L,Z),S.push(J),L=Z+1)):(D.length==0&&(L=x.substring(L,Z),L!=""&&S.push({type:0,value:L}),L=Z+1),D.push("{"))}x=x.substring(L);x!=""&&S.push({type:0,value:x});return S},JDW=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,KUi=/^\s*(\w+)\s*,\s*selectordinal\s*,/,OuA=/^\s*(\w+)\s*,\s*select\s*,/,LUA=function(x,L){var D=[];
L=QlR(L);for(var S=0;S<L.length;S++){var Q={};if(0==L[S].type)Q.type=4,Q.value=L[S].value;else if(1==L[S].type){var J=L[S].value;switch(JDW.test(J)?0:KUi.test(J)?1:OuA.test(J)?2:/^\s*\w+\s*/.test(J)?3:5){case 2:Q.type=2;Q.value=Zu2(x,L[S].value);break;case 0:Q.type=0;Q.value=yD2(x,L[S].value);break;case 1:Q.type=1;Q.value=Ith(x,L[S].value);break;case 3:Q.type=3,Q.value=L[S].value}}D.push(Q)}return D},Zu2=function(x,L){var D="";
L=L.replace(OuA,function(y,E){D=E;return""});
var S={};S.argumentIndex=D;L=QlR(L);for(var Q=0;Q<L.length;){var J=L[Q].value;Q++;var Z=void 0;1==L[Q].type&&(Z=LUA(x,L[Q].value));S[J.replace(/\s/g,"")]=Z;Q++}return S},yD2=function(x,L){var D="",S=0;
L=L.replace(JDW,function(E,P,v){D=P;v&&(S=parseInt(v,10));return""});
var Q={};Q.argumentIndex=D;Q.argumentOffset=S;L=QlR(L);for(var J=0;J<L.length;){var Z=L[J].value;J++;var y=void 0;1==L[J].type&&(y=LUA(x,L[J].value));Q[Z.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=y;J++}return Q},Ith=function(x,L){var D="";
L=L.replace(KUi,function(y,E){D=E;return""});
var S={};S.argumentIndex=D;S.argumentOffset=0;L=QlR(L);for(var Q=0;Q<L.length;){var J=L[Q].value;Q++;var Z=void 0;1==L[Q].type&&(Z=LUA(x,L[Q].value));S[J.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=Z;Q++}return S};
cHQ.prototype.buildPlaceholder_=function(x){return"\ufddf_"+(x.length-1).toString(10)+"_"};var zyp=function(){var x={style:1},L=EO2;this.style_=(x==null?void 0:x.style)||0;this.durationSymbols_=L||bIW},Mn2=function(x,L){switch(L){default:case "years":return x.durationSymbols_.YEAR;
case "months":return x.durationSymbols_.MONTH;case "weeks":return x.durationSymbols_.WEEK;case "days":return x.durationSymbols_.DAY;case "hours":return x.durationSymbols_.HOUR;case "minutes":return x.durationSymbols_.MINUTE;case "seconds":return x.durationSymbols_.SECOND}},Hu=function(x,L,D){a:{D=Mn2(x,D);
switch(x.style_){case 1:if(D.LONG!=void 0){x=D.LONG;break a}case 2:if(D.NARROW!=void 0){x=D.NARROW;break a}default:x=D.SHORT;break a}x=void 0}return x?(new cHQ("{DURATION_VALUE,plural,"+x+"}")).format({DURATION_VALUE:L}):""};
zyp.prototype.format=function(x){var L=[],D=x.years,S=x.months,Q=x.weeks,J=x.days,Z=x.hours,y=x.minutes;x=x.seconds;D!=null&&L.push(Hu(this,D,"years"));S!=null&&L.push(Hu(this,S,"months"));Q!=null&&L.push(Hu(this,Q,"weeks"));J!=null&&L.push(Hu(this,J,"days"));Z!=null&&L.push(Hu(this,Z,"hours"));y!=null&&L.push(Hu(this,y,"minutes"));x!=null&&L.push(Hu(this,x,"seconds"));return(new FAR).format(L)};var djA;
djA={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 EPn=function(){this.rdtfSymbols_=PcA||djA;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
EPn.prototype.format=function(x,L){a:{L=jl2(this,L);switch(this.style_){case 2:if(L.NARROW!=void 0){L=L.NARROW;break a}case 1:if(L.SHORT!=void 0){L=L.SHORT;break a}default:L=L.LONG;break a}L=void 0}if(!this.alwaysNumeric_&&L&&L.R&&L.R[""+x])x=L.R[""+x];else if(L){var D=Math.abs(x);x=(new cHQ("{N,plural,"+(x>0||x==0&&1/x==Infinity?L.F:L.P)+"}")).format({N:D})}else x="";return x};
var jl2=function(x,L){switch(L){default:case 0:return x.rdtfSymbols_.YEAR;case 1:return x.rdtfSymbols_.QUARTER;case 2:return x.rdtfSymbols_.MONTH;case 3:return x.rdtfSymbols_.WEEK;case 4:return x.rdtfSymbols_.DAY;case 5:return x.rdtfSymbols_.HOUR;case 6:return x.rdtfSymbols_.MINUTE;case 7:return x.rdtfSymbols_.SECOND}};var vOH=function(x,L,D,S,Q,J,Z,y){this.x0=x;this.y0=L;this.x1=D;this.y1=S;this.x2=Q;this.y2=J;this.x3=Z;this.y3=y};
vOH.prototype.clone=function(){return new vOH(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
vOH.prototype.equals=function(x){return this.x0==x.x0&&this.y0==x.y0&&this.x1==x.x1&&this.y1==x.y1&&this.x2==x.x2&&this.y2==x.y2&&this.x3==x.x3&&this.y3==x.y3};
var Vnh=function(x,L){if(L==0)return x.x0;if(L==1)return x.x3;var D=wT(x.x0,x.x1,L),S=wT(x.x1,x.x2,L);x=wT(x.x2,x.x3,L);D=wT(D,S,L);S=wT(S,x,L);return wT(D,S,L)},huR=function(x,L){var D=(L-x.x0)/(x.x3-x.x0);
if(D<=0)return 0;if(D>=1)return 1;for(var S=0,Q=1,J=0,Z=0;Z<8;Z++){J=Vnh(x,D);var y=(Vnh(x,D+1E-6)-J)/1E-6;if(Math.abs(J-L)<1E-6)return D;if(Math.abs(y)<1E-6)break;else J<L?S=D:Q=D,D-=(J-L)/y}for(Z=0;Math.abs(J-L)>1E-6&&Z<8;Z++)J<L?(S=D,D=(D+Q)/2):(Q=D,D=(D+S)/2),J=Vnh(x,D);return D};var uh=function(){_.Bc.call(this);this.JSC$11483_name_="closure_frame"+HuB++;this.iframesForDisposal_=[];uTr[this.JSC$11483_name_]=this},gh;
_.E9(uh,_.Bc);var uTr={},HuB=0,gOi=function(x,L){var D=Tj(x);bm2(L,function(S,Q){Array.isArray(S)||(S=[S]);_.nm(S,function(J){J=D.JSC$9332_createDom("INPUT",{type:"hidden",name:Q,value:J});x.appendChild(J)})})};
_.K=uh.prototype;_.K.JSC$11485_form_=null;_.K.JSC$11485_iframe_=null;_.K.iframeName_=null;_.K.nextIframeId_=0;_.K.JSC$11485_active_=!1;_.K.complete_=!1;_.K.success_=!1;_.K.lastContent_=null;_.K.JSC$11485_lastErrorCode_=0;_.K.iframeDisposalTimer_=null;
_.K.send=function(x,L,D,S){if(this.JSC$11485_active_)throw Error("se");x=new _.Dg(x);L=L?L.toUpperCase():"GET";D&&_.pr(x);gh||(gh=_.Ao("FORM"),gh.acceptCharset="utf-8",D=gh.style,D.position="absolute",D.visibility="hidden",D.top=D.left="-10px",D.width=D.height="10px",D.overflow="hidden",document.body.appendChild(gh));this.JSC$11485_form_=gh;L=="GET"&&gOi(this.JSC$11485_form_,x.JSC$10036_queryData_);S&&gOi(this.JSC$11485_form_,S);D=x.toString();D=A80(D);S=this.JSC$11485_form_;D=_.iQ(lQ(D));D!==void 0&&
(S.action=D);this.JSC$11485_form_.method=L;kQR(this);pDQ(this)};
_.K.abort=function(x){if(this.JSC$11485_active_){var L=kE(this);if(L)if(lO(L))L.removeAllListeners(void 0);else if(L=U1(L)){var D=0,S;for(S in L.listeners)for(var Q=L.listeners[S].concat(),J=0;J<Q.length;++J)G$(Q[J])&&++D}this.success_=this.JSC$11485_active_=this.complete_=!1;this.JSC$11485_lastErrorCode_=x||7;this.dispatchEvent("abort");mj2(this)}};
_.K.disposeInternal=function(){this.JSC$11485_active_&&this.abort();uh.superClass_.disposeInternal.call(this);this.JSC$11485_iframe_&&buQ(this);pDQ(this);this.JSC$11485_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$11485_form_=null;this.JSC$11485_lastErrorCode_=0;delete uTr[this.JSC$11483_name_]};
_.K.isComplete=function(){return this.complete_};
_.K.isSuccess=function(){return this.success_};
_.K.isActive=function(){return this.JSC$11485_active_};
_.K.getResponseText=function(){return this.lastContent_};
_.K.getLastError=function(){return _.D4r(this.JSC$11485_lastErrorCode_)};
var kQR=function(x){x.JSC$11485_active_=!0;x.complete_=!1;x.JSC$11485_lastErrorCode_=0;x.iframeName_=x.JSC$11483_name_+"_"+(x.nextIframeId_++).toString(36);x.JSC$11485_iframe_=Tj(x.JSC$11485_form_).JSC$9332_createDom("IFRAME",{name:x.iframeName_,id:x.iframeName_});var L=x.JSC$11485_iframe_.style;L.visibility="hidden";L.width=L.height="10px";L.display="none";_.V6?L.marginTop=L.marginLeft="-10px":(L.position="absolute",L.top=L.left="-10px");Tj(x.JSC$11485_form_).JSC$9330_document_.body.appendChild(x.JSC$11485_iframe_);
L=x.iframeName_+"_inner";var D=$qW(x.JSC$11485_iframe_);if(document.baseURI){var S=vX(L);S='<head><base href="'+vX(document.baseURI)+'"></head><body><iframe id="'+S+'" name="'+S+'"></iframe>';S=aN(S)}else S=vX(L),S=aN('<body><iframe id="'+S+'" name="'+S+'"></iframe>');D.write(Xs(S));_.Uk(D.getElementById(L),"load",x.onIframeLoaded_,!1,x);S=bx("TEXTAREA",x.JSC$11485_form_);for(var Q=0,J=S.length;Q<J;Q++){var Z=S[Q].value;aYG(S[Q])!=Z&&(_.aa(S[Q],Z),S[Q].value=Z)}S=D.importNode(x.JSC$11485_form_,!0);
S.target=L;S.action=x.JSC$11485_form_.action;D.body.appendChild(S);Q=bx("SELECT",x.JSC$11485_form_);J=bx("SELECT",S);Z=0;for(var y=Q.length;Z<y;Z++)for(var E=bx("OPTION",Q[Z]),P=bx("OPTION",J[Z]),v=0,V=E.length;v<V;v++)P[v].selected=E[v].selected;Q=bx("INPUT",x.JSC$11485_form_);J=bx("INPUT",S);Z=0;for(y=Q.length;Z<y;Z++)if(Q[Z].type=="file"&&Q[Z].value!=J[Z].value){x.JSC$11485_form_.target=L;S=x.JSC$11485_form_;break}try{x.errorHandled_=!1,S.submit(),D.close(),_.vN&&setTimeout(x.testForFirefoxSilentError_.bind(x),
250)}catch(h){_.wG(D.getElementById(L),"load",x.onIframeLoaded_,!1,x),D.close(),p1(x,2)}};
uh.prototype.onIframeLoaded_=function(){_.wG(kE(this),"load",this.onIframeLoaded_,!1,this);try{var x=this.JSC$11485_iframe_?$qW(kE(this)):null;this.complete_=!0;this.JSC$11485_active_=!1;try{var L=x.body;this.lastContent_=L.textContent||L.innerText}catch(Q){var D=1}var S;D||typeof this.errorChecker_!="function"||(S=this.errorChecker_(x))&&(D=4);D?p1(this,D):(this.success_=!0,this.JSC$11485_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),mj2(this))}catch(Q){p1(this,1)}};
var p1=function(x,L){x.errorHandled_||(x.success_=!1,x.JSC$11485_active_=!1,x.complete_=!0,x.JSC$11485_lastErrorCode_=L,x.dispatchEvent("complete"),x.dispatchEvent("error"),mj2(x),x.errorHandled_=!0)},mj2=function(x){buQ(x);
pDQ(x);x.JSC$11485_form_=null;x.dispatchEvent("ready")},buQ=function(x){var L=x.JSC$11485_iframe_;
L&&(L.onreadystatechange=null,L.onload=null,L.onerror=null,x.iframesForDisposal_.push(L));x.iframeDisposalTimer_&&(clearTimeout(x.iframeDisposalTimer_),x.iframeDisposalTimer_=null);_.vN?x.iframeDisposalTimer_=setTimeout(x.disposeIframes_.bind(x),2E3):x.disposeIframes_();x.JSC$11485_iframe_=null;x.iframeName_=null};
uh.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var x=this.iframesForDisposal_.pop();_.mg(x)}};
var pDQ=function(x){x.JSC$11485_form_&&x.JSC$11485_form_==gh&&_.NC(x.JSC$11485_form_)},kE=function(x){return x.JSC$11485_iframe_?$qW(x.JSC$11485_iframe_).getElementById(x.iframeName_+"_inner"):null};
uh.prototype.testForFirefoxSilentError_=function(){if(this.JSC$11485_active_){var x=this.JSC$11485_iframe_?$qW(kE(this)):null;x&&!lxb(x,"documentUri")?(_.wG(kE(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?p1(this,3):p1(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.m9=function(x){return x=="\r"||x=="\n"||x==" "||x=="\t"};var YIh;_.bh=function(x){this.errorMessage_=null;this.result_=[];this.JSC$11487_buffer_="";this.stack_=[];this.JSC$11487_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!x||!x.deliverMessageAsRawString)};
YIh={INIT:0,VALUE:1,OBJECT_OPEN:2,OBJECT_END:3,ARRAY_OPEN:4,ARRAY_END:5,STRING:6,KEY_START:7,KEY_END:8,TRUE1:9,TRUE2:10,TRUE3:11,FALSE1:12,FALSE2:13,FALSE3:14,FALSE4:15,NULL1:16,NULL2:17,NULL3:18,NUM_DECIMAL_POINT:19,NUM_DIGIT:20};_.bh.prototype.isInputValid=function(){return this.streamState_!=3};
_.bh.prototype.done=function(){return this.streamState_===2};
var YE=function(x,L,D){x.streamState_=3;x.errorMessage_="The stream is broken @"+x.JSC$11487_pos_+"/"+D+". With input:\n"+L;throw Error(x.errorMessage_);};
_.bh.prototype.acceptsBinaryInput=function(){return!1};
_.bh.prototype.parse=function(x){function L(){for(;h<x.length;)if(_.m9(x[h]))h++,J.JSC$11487_pos_++;else break;return h<P}
function D(){for(var k;;){k=x[h++];if(!k)break;J.JSC$11487_pos_++;switch(J.state_){case E.INIT:k==="{"?J.state_=E.OBJECT_OPEN:k==="["?J.state_=E.ARRAY_OPEN:_.m9(k)||YE(J,x,h);continue;case E.KEY_START:case E.OBJECT_OPEN:if(_.m9(k))continue;if(J.state_===E.KEY_START)Z.push(E.KEY_END);else if(k==="}"){Q("{}");J.state_=S();continue}else Z.push(E.OBJECT_END);k==='"'?J.state_=E.STRING:YE(J,x,h);continue;case E.KEY_END:case E.OBJECT_END:if(_.m9(k))continue;k===":"?(J.state_===E.OBJECT_END&&(Z.push(E.OBJECT_END),
J.depth_++),J.state_=E.VALUE):k==="}"?(J.depth_--,Q(),J.state_=S()):k===","?(J.state_===E.OBJECT_END&&Z.push(E.OBJECT_END),J.state_=E.KEY_START):YE(J,x,h);continue;case E.ARRAY_OPEN:case E.VALUE:if(_.m9(k))continue;if(J.state_===E.ARRAY_OPEN)if(J.depth_++,J.state_=E.VALUE,k==="]"){J.depth_--;if(J.depth_===0){J.state_=E.ARRAY_END;return}Q("[]");J.state_=S();continue}else Z.push(E.ARRAY_END);k==='"'?J.state_=E.STRING:k==="{"?J.state_=E.OBJECT_OPEN:k==="["?J.state_=E.ARRAY_OPEN:k==="t"?J.state_=E.TRUE1:
k==="f"?J.state_=E.FALSE1:k==="n"?J.state_=E.NULL1:k!=="-"&&("0123456789".indexOf(k)!==-1?J.state_=E.NUM_DIGIT:YE(J,x,h));continue;case E.ARRAY_END:if(k===",")Z.push(E.ARRAY_END),J.state_=E.VALUE,J.depth_===1&&(V=h);else if(k==="]"){J.depth_--;if(J.depth_===0)return;Q();J.state_=S()}else if(_.m9(k))continue;else YE(J,x,h);continue;case E.STRING:var T=h;a:for(;;){for(;J.unicodeCount_>0;)if(k=x[h++],J.unicodeCount_===4?J.unicodeCount_=0:J.unicodeCount_++,!k)break a;if(k==='"'&&!J.slashed_){J.state_=
S();break}if(k==="\\"&&!J.slashed_&&(J.slashed_=!0,k=x[h++],!k))break;if(J.slashed_)if(J.slashed_=!1,k==="u"&&(J.unicodeCount_=1),k=x[h++])continue;else break;y.lastIndex=h;k=y.exec(x);if(!k){h=x.length+1;break}h=k.index+1;k=x[k.index];if(!k)break}J.JSC$11487_pos_+=h-T;continue;case E.TRUE1:if(!k)continue;k==="r"?J.state_=E.TRUE2:YE(J,x,h);continue;case E.TRUE2:if(!k)continue;k==="u"?J.state_=E.TRUE3:YE(J,x,h);continue;case E.TRUE3:if(!k)continue;k==="e"?J.state_=S():YE(J,x,h);continue;case E.FALSE1:if(!k)continue;
k==="a"?J.state_=E.FALSE2:YE(J,x,h);continue;case E.FALSE2:if(!k)continue;k==="l"?J.state_=E.FALSE3:YE(J,x,h);continue;case E.FALSE3:if(!k)continue;k==="s"?J.state_=E.FALSE4:YE(J,x,h);continue;case E.FALSE4:if(!k)continue;k==="e"?J.state_=S():YE(J,x,h);continue;case E.NULL1:if(!k)continue;k==="u"?J.state_=E.NULL2:YE(J,x,h);continue;case E.NULL2:if(!k)continue;k==="l"?J.state_=E.NULL3:YE(J,x,h);continue;case E.NULL3:if(!k)continue;k==="l"?J.state_=S():YE(J,x,h);continue;case E.NUM_DECIMAL_POINT:k===
"."?J.state_=E.NUM_DIGIT:YE(J,x,h);continue;case E.NUM_DIGIT:if("0123456789.eE+-".indexOf(k)!==-1)continue;else h--,J.JSC$11487_pos_--,J.state_=S();continue;default:YE(J,x,h)}}}
function S(){var k=Z.pop();return k!=null?k:E.VALUE}
function Q(k){J.depth_>1||(k||(k=V===-1?J.JSC$11487_buffer_+x.substring(v,h):x.substring(V,h)),J.deliverMessageAsRawString_?J.result_.push(k):J.result_.push(JSON.parse(k)),V=h)}
for(var J=this,Z=J.stack_,y=J.stringInputPattern_,E=YIh,P=x.length,v=0,V=-1,h=0;h<P;)switch(J.streamState_){case 3:return YE(J,x,h),null;case 2:return L()&&YE(J,x,h),null;case 0:if(L()){var H=x[h++];J.JSC$11487_pos_++;if(H==="["){J.streamState_=1;v=h;J.state_=E.ARRAY_OPEN;continue}else YE(J,x,h)}return null;case 1:return D(),J.depth_===0&&J.state_==E.ARRAY_END?(J.streamState_=2,J.JSC$11487_buffer_=x.substring(h)):J.JSC$11487_buffer_=V===-1?J.JSC$11487_buffer_+x.substring(v):x.substring(V),J.result_.length>
0?(H=J.result_,J.result_=[],H):null}return null};_.E9(_.Po,CH);jo.prototype.getValue=function(){return this.JSC$11495_value_};
jo.prototype.clone=function(){return new jo(this.JSC$11495_key_,this.JSC$11495_value_)};var FO=function(x){this.nodes_=[];if(x)a:{if(x instanceof FO){var L=x.getKeys();x=x.getValues();if(this.getCount()<=0){for(var D=this.nodes_,S=0;S<L.length;S++)D.push(new jo(L[S],x[S]));break a}}else L=_.wk.getKeys(x),x=_.wk.getValues(x);for(D=0;D<L.length;D++)this.insert(L[D],x[D])}};
_.K=FO.prototype;_.K.insert=function(x,L){var D=this.nodes_;D.push(new jo(x,L));x=D.length-1;L=this.nodes_;for(D=L[x];x>0;){var S=x-1>>1;if(L[S].JSC$11495_key_>D.JSC$11495_key_)L[x]=L[S],x=S;else break}L[x]=D};
_.K.remove=function(){var x=this.nodes_,L=x.length,D=x[0];if(!(L<=0)){if(L==1)x.length=0;else{x[0]=x.pop();x=0;L=this.nodes_;for(var S=L.length,Q=L[x];x<S>>1;){var J=x*2+1,Z=x*2+2;J=Z<S&&L[Z].JSC$11495_key_<L[J].JSC$11495_key_?Z:J;if(L[J].JSC$11495_key_>Q.JSC$11495_key_)break;L[x]=L[J];x=J}L[x]=Q}return D.getValue()}};
_.K.peek=function(){var x=this.nodes_;if(x.length!=0)return x[0].getValue()};
_.K.getValues=function(){for(var x=this.nodes_,L=[],D=x.length,S=0;S<D;S++)L.push(x[S].getValue());return L};
_.K.getKeys=function(){for(var x=this.nodes_,L=[],D=x.length,S=0;S<D;S++)L.push(x[S].JSC$11495_key_);return L};
_.K.containsValue=function(x){return this.nodes_.some(function(L){return L.getValue()==x})};
_.K.containsKey=function(x){return this.nodes_.some(function(L){return L.JSC$11495_key_==x})};
_.K.clone=function(){return new FO(this)};
_.K.getCount=function(){return this.nodes_.length};
_.K.isEmpty=function(){return this.nodes_.length===0};
_.K.clear=function(){this.nodes_.length=0};_.sF=function(x,L){this.JSC$11501_map_={};this.JSC$11501_keys_=[];this.version_=this.size=0;var D=arguments.length;if(D>1){if(D%2)throw Error("ma");for(var S=0;S<D;S+=2)this.set(arguments[S],arguments[S+1])}else x&&this.addAll(x)};
_.K=_.sF.prototype;_.K.getCount=function(){return this.size};
_.K.getValues=function(){TX(this);for(var x=[],L=0;L<this.JSC$11501_keys_.length;L++)x.push(this.JSC$11501_map_[this.JSC$11501_keys_[L]]);return x};
_.K.getKeys=function(){TX(this);return this.JSC$11501_keys_.concat()};
_.K.containsKey=function(x){return this.has(x)};
_.K.has=function(x){return ed(this.JSC$11501_map_,x)};
_.K.containsValue=function(x){for(var L=0;L<this.JSC$11501_keys_.length;L++){var D=this.JSC$11501_keys_[L];if(ed(this.JSC$11501_map_,D)&&this.JSC$11501_map_[D]==x)return!0}return!1};
_.K.equals=function(x,L){if(this===x)return!0;if(this.size!=x.getCount())return!1;L=L||FUQ;TX(this);for(var D,S=0;D=this.JSC$11501_keys_[S];S++)if(!L(this.get(D),x.get(D)))return!1;return!0};
var FUQ=function(x,L){return x===L};
_.sF.prototype.isEmpty=function(){return this.size==0};
_.sF.prototype.clear=function(){this.JSC$11501_map_={};this.version_=this.size=this.JSC$11501_keys_.length=0};
_.sF.prototype.remove=function(x){return this.delete(x)};
_.sF.prototype.delete=function(x){return ed(this.JSC$11501_map_,x)?(delete this.JSC$11501_map_[x],--this.size,this.version_++,this.JSC$11501_keys_.length>2*this.size&&TX(this),!0):!1};
var TX=function(x){if(x.size!=x.JSC$11501_keys_.length){for(var L=0,D=0;L<x.JSC$11501_keys_.length;){var S=x.JSC$11501_keys_[L];ed(x.JSC$11501_map_,S)&&(x.JSC$11501_keys_[D++]=S);L++}x.JSC$11501_keys_.length=D}if(x.size!=x.JSC$11501_keys_.length){L={};for(S=D=0;D<x.JSC$11501_keys_.length;){var Q=x.JSC$11501_keys_[D];ed(L,Q)||(x.JSC$11501_keys_[S++]=Q,L[Q]=1);D++}x.JSC$11501_keys_.length=S}};
_.K=_.sF.prototype;_.K.get=function(x,L){return ed(this.JSC$11501_map_,x)?this.JSC$11501_map_[x]:L};
_.K.set=function(x,L){ed(this.JSC$11501_map_,x)||(this.size+=1,this.JSC$11501_keys_.push(x),this.version_++);this.JSC$11501_map_[x]=L};
_.K.addAll=function(x){if(x instanceof _.sF)for(var L=x.getKeys(),D=0;D<L.length;D++)this.set(L[D],x.get(L[D]));else for(L in x)this.set(L,x[L])};
_.K.forEach=function(x,L){for(var D=this.getKeys(),S=0;S<D.length;S++){var Q=D[S],J=this.get(Q);x.call(L,J,Q,this)}};
_.K.clone=function(){return new _.sF(this)};
_.K.transpose=function(){for(var x=new _.sF,L=0;L<this.JSC$11501_keys_.length;L++){var D=this.JSC$11501_keys_[L];x.set(this.JSC$11501_map_[D],D)}return x};
_.K.keys=function(){return NQr(this.__iterator__(!0)).toEs6()};
_.K.values=function(){return NQr(this.__iterator__(!1)).toEs6()};
_.K.entries=function(){var x=this;return yqh(this.keys(),function(L){return[L,x.get(L)]})};
_.K.__iterator__=function(x){TX(this);var L=0,D=this.version_,S=this,Q=new ko;Q.next=function(){if(D!=S.version_)throw Error("te");if(L>=S.JSC$11501_keys_.length)return pd;var J=S.JSC$11501_keys_[L++];return mk(x?J:S.JSC$11501_map_[J])};
return Q};
var ed=function(x,L){return Object.prototype.hasOwnProperty.call(x,L)};var TFA=function(){this.JSC$11504_map_=new _.sF;this.JSC$11504_head_=new slH("");this.JSC$11504_head_.next=this.JSC$11504_head_.prev=this.JSC$11504_head_},euH=function(x,L){if(L=x.JSC$11504_map_.get(L))L.remove(),x.insert_(L);
return L};
_.K=TFA.prototype;_.K.get=function(x,L){return(x=euH(this,x))?x.value:L};
_.K.set=function(x,L){var D=euH(this,x);D?D.value=L:(D=new slH(x,L),this.JSC$11504_map_.set(x,D),this.insert_(D))};
_.K.peek=function(){return this.JSC$11504_head_.next.value};
_.K.shift=function(){return Ru2(this,this.JSC$11504_head_.next)};
_.K.pop=function(){return Ru2(this,this.JSC$11504_head_.prev)};
_.K.remove=function(x){return(x=this.JSC$11504_map_.get(x))?(this.removeNode(x),!0):!1};
_.K.removeNode=function(x){x.remove();this.JSC$11504_map_.remove(x.key)};
_.K.getCount=function(){return this.JSC$11504_map_.getCount()};
_.K.isEmpty=function(){return this.JSC$11504_map_.isEmpty()};
_.K.getKeys=function(){return this.map(function(x,L){return L})};
_.K.getValues=function(){return this.map(function(x){return x})};
_.K.contains=function(x){return this.some(function(L){return L==x})};
_.K.containsKey=function(x){return this.JSC$11504_map_.containsKey(x)};
_.K.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$11504_head_.prev)};
_.K.forEach=function(x,L){for(var D=this.JSC$11504_head_.next;D!=this.JSC$11504_head_;D=D.next)x.call(L,D.value,D.key,this)};
_.K.map=function(x,L){for(var D=[],S=this.JSC$11504_head_.next;S!=this.JSC$11504_head_;S=S.next)D.push(x.call(L,S.value,S.key,this));return D};
_.K.some=function(x,L){for(var D=this.JSC$11504_head_.next;D!=this.JSC$11504_head_;D=D.next)if(x.call(L,D.value,D.key,this))return!0;return!1};
_.K.every=function(x,L){for(var D=this.JSC$11504_head_.next;D!=this.JSC$11504_head_;D=D.next)if(!x.call(L,D.value,D.key,this))return!1;return!0};
_.K.insert_=function(x){x.next=this.JSC$11504_head_.next;x.prev=this.JSC$11504_head_;this.JSC$11504_head_.next=x;for(x.next.prev=x;this.getCount()>100;)this.removeNode(this.JSC$11504_head_.prev)};
var Ru2=function(x,L){x.JSC$11504_head_!=L&&x.removeNode(L);return L.value},slH=function(x,L){this.key=x;
this.value=L};
slH.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var GQB=function(){FO.apply(this,arguments)};
_.p(GQB,FO);GQB.prototype.enqueue=function(x,L){this.insert(x,L)};var Cc2=function(){var x=Error();x.name="SecurityError";throw x;},P3p=function(){return{get opener(){return null},
get closed(){return!0},get location(){Cc2()},get document(){Cc2()},postMessage:function(){},
close:function(){},
focus:function(){}}};var I9f={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 d_O={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 ltB={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(d_O).join("|");var UjR=function(){function x(y){y.substr(-1)!==";"&&(y+=";");return Z(y)}
for(var L=Object.keys(ltB).sort(MSO),D=Object.keys(d_O).sort(MSO),S=0,Q=0;S<D.length;S++)L[Q]===D[S]?(D[S]+=";?",Q++):D[S]+=";";var J=new RegExp("&(?:"+D.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),Z=PO3();return function(y){return String(y).replace(J,x)}}();/*

 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 wDh={};var BF2=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"),WUC=/[\\&]/,qIR=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),ADi=RegExp('[&<>"]',"g"),$jC=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),rDC=function(x){return x.charCodeAt(0)===92?x.charAt(1):UjR(x)},NFW=function(x){return WUC.test(x)?x.replace(qIR,rDC):x},iuB=function(x){try{var L,D="";
if(typeof Q!=="string"){var S=Q;var Q=";/?:@&=+$,-_.!~*'()#"}typeof S==="undefined"&&(S=!0);var J,Z=wDh[Q];if(Z)var y=Z;else{Z=wDh[Q]=[];for(J=0;J<128;J++){var E=String.fromCharCode(J);/^[0-9a-z]$/i.test(E)?Z.push(E):Z.push("%"+("0"+J.toString(16).toUpperCase()).slice(-2))}for(J=0;J<Q.length;J++)Z[Q.charCodeAt(J)]=Q[J];y=Z}var P=0;for(L=x.length;P<L;P++){var v=x.charCodeAt(P);if(S&&v===37&&P+2<L&&/^[0-9a-f]{2}$/i.test(x.slice(P+1,P+3)))D+=x.slice(P,P+3),P+=2;else if(v<128)D+=y[v];else if(v>=55296&&
v<=57343){if(v>=55296&&v<=56319&&P+1<L){var V=x.charCodeAt(P+1);if(V>=56320&&V<=57343){D+=encodeURIComponent(x[P]+x[P+1]);P++;continue}}D+="%EF%BF%BD"}else D+=encodeURIComponent(x[P])}return D}catch(h){return x}},ftC=function(x){switch(x){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return x}},R_=function(x,L){return ADi.test(x)?L?x.replace($jC,ftC):x.replace(ADi,ftC):x};/*

 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 GX;if(String.fromCodePoint)GX=function(x){try{return String.fromCodePoint(x)}catch(L){if(L instanceof RangeError)return String.fromCharCode(65533);throw L;}};
else{var oOG=String.fromCharCode,at2=Math.floor;GX=function(){var x=[],L=-1,D=arguments.length;if(!D)return"";for(var S="";++L<D;){var Q=Number(arguments[L]);if(!isFinite(Q)||Q<0||Q>1114111||at2(Q)!==Q)return String.fromCharCode(65533);if(Q<=65535)x.push(Q);else{Q-=65536;var J=(Q>>10)+55296;Q=Q%1024+56320;x.push(J,Q)}if(L+1===D||x.length>16384)S+=oOG.apply(null,x),x.length=0}return S}};var zuG=function(x){this.root=this.current=x;this.entering=!0};
zuG.prototype.next=function(){var x=this.current,L=this.entering;if(x===null)return null;a:switch(x._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 D=!0;break a;default:D=!1}L&&D?x._firstChild?(this.current=x._firstChild,this.entering=!0):this.entering=!1:x===this.root?this.current=null:x._next===null?(this.current=
x._parent,this.entering=!1):(this.current=x._next,this.entering=!0);return{entering:L,node:x}};
var Ho=function(x,L){this._type=x;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=L;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};
Ho.prototype.appendChild=function(x){x.unlink();x._parent=this;this._lastChild?(this._lastChild._next=x,x._prev=this._lastChild):this._firstChild=x;this._lastChild=x};
Ho.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 XDh=function(x,L){L.unlink();L._next=x._next;L._next&&(L._next._prev=L);L._prev=x;x._next=L;L._parent=x._parent;L._next||(L._parent._lastChild=L)};
Ho.prototype.insertBefore=function(x){x.unlink();x._prev=this._prev;x._prev&&(x._prev._next=x);x._next=this;this._prev=x;x._parent=this._parent;x._prev||(x._parent._firstChild=x)};
_.J3.Object.defineProperties(Ho.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(x){this._literal=x}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(x){this._destination=x}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(x){this._title=x}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(x){this._info=x}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(x){this._level=x}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(x){this._listData.type=x}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(x){this._listData.tight=x}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(x){this._listData.start=x}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(x){this._onEnter=x}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(x){this._onExit=x}}});var jwb=/[ \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,
vxs={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 cDR=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]/),
nOd=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),tnA=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),xbQ=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),LFh=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),DbQ=/`+/,SvC=/^`+/,QBA=/\.\.\./g,JLR=/--+/g,KFA=/^<([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])?)*)>/,
OXH=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,ZX2=/^ *(?:\n *)?/,yLh=/^[ \t\n\x0b\x0c\x0d]/,IsA=/[ \t\n\x0b\x0c\x0d]+/g,Eer=/^\s/,M2_=/ *$/,db_=/^ */,Pki=/^ *(?:\n|$)/,jBr=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),veh=/^[^\n`\[\]\\!<&*_'"]+/m,C1=function(x){var L=new Ho("text");L._literal=x;return L},lh=function(x){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=x||{}};
lh.prototype.match=function(x){x=x.exec(this.subject.slice(this.pos));if(x===null)return null;this.pos+=x.index+x[0].length;return x[0]};
lh.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var UF=function(x){x.match(ZX2);return!0},V2G=function(x,L,D){var S=0;
var Q=x.pos;if(L===39||L===34)S++,x.pos++;else for(;x.peek()===L;)S++,x.pos++;if(S===0)S=null;else{var J=Q===0?"\n":x.subject.charAt(Q-1);var Z=x.peek();Z=Z===-1?"\n":GX(Z);var y=Eer.test(Z);Z=cDR.test(Z);var E=Eer.test(J);var P=cDR.test(J);J=!y&&!(Z&&!E&&!P);y=!E&&!(P&&!y&&!Z);L===95?(E=J&&(!y||P),Z=y&&(!J||Z)):(E=L===39||L===34?J&&!y:J,Z=y);x.pos=Q;S={numdelims:S,can_open:E,can_close:Z}}if(!S)return!1;Q=S.numdelims;Z=x.pos;x.pos+=Q;Z=L===39?"\u2019":L===34?"\u201c":x.subject.slice(Z,x.pos);Z=C1(Z);
D.appendChild(Z);x.delimiters={cc:L,numdelims:Q,origdelims:Q,node:Z,previous:x.delimiters,next:null,can_open:S.can_open,can_close:S.can_close};x.delimiters.previous!==null&&(x.delimiters.previous.next=x.delimiters);return!0},h6G=function(x,L){L.previous!==null&&(L.previous.next=L.next);
L.next===null?x.delimiters=L.previous:L.next.previous=L.previous},HXH=function(x,L){var D,S,Q=[],J=!1;
Q[95]=L;Q[42]=L;Q[39]=L;Q[34]=L;for(D=x.delimiters;D!==null&&D.previous!==L;)D=D.previous;for(;D!==null;){var Z=D.cc;if(D.can_close){var y=D.previous;for(S=!1;y!==null&&y!==L&&y!==Q[Z];){J=(D.can_open||y.can_close)&&(y.origdelims+D.origdelims)%3===0;if(y.cc===D.cc&&y.can_open&&!J){S=!0;break}y=y.previous}var E=D;if(Z===42||Z===95)if(S){var P=D.numdelims>=2&&y.numdelims>=2?2:1;var v=y.node;var V=D.node;y.numdelims-=P;D.numdelims-=P;v._literal=v._literal.slice(0,v._literal.length-P);V._literal=V._literal.slice(0,
V._literal.length-P);var h=new Ho(P===1?"emph":"strong");for(P=v._next;P&&P!==V;){var H=P._next;P.unlink();h.appendChild(P);P=H}XDh(v,h);P=y;H=D;P.next!==H&&(P.next=H,H.previous=P);y.numdelims===0&&(v.unlink(),h6G(x,y));D.numdelims===0&&(V.unlink(),y=D.next,h6G(x,D),D=y)}else D=D.next;else Z===39?(D.node._literal="\u2019",S&&(y.node._literal="\u2018"),D=D.next):Z===34&&(D.node._literal="\u201d",S&&(y.node.literal="\u201c"),D=D.next);S||J||(Q[Z]=E.previous,E.can_open||h6G(x,E))}else D=D.next}for(;x.delimiters!==
null&&x.delimiters!==L;)h6G(x,x.delimiters)},ujG=function(x){x=x.match(nOd);
return x===null?null:NFW(x.substr(1,x.length-2))},ge2=function(x){var L=x.match(tnA);
if(L===null){L=x.pos;for(var D=0,S;(S=x.peek())!==-1;)if(S===92)x.pos+=1,x.peek()!==-1&&(x.pos+=1);else if(S===40)x.pos+=1,D+=1;else if(S===41)if(D<1)break;else x.pos+=1,--D;else if(yLh.exec(GX(S))!==null)break;else x.pos+=1;L=x.subject.substr(L,x.pos-L);return iuB(NFW(L))}return iuB(NFW(L.substr(1,L.length-2)))},kR_=function(x){x=x.match(jBr);
return x===null||x.length>1001?0:x.length},pXA=function(x,L,D,S){x.brackets!==null&&(x.brackets.bracketAfter=!0);
x.brackets={node:L,previous:x.brackets,previousDelimiter:x.delimiters,index:D,image:S,active:!0}},mbd=function(x,L){var D;
return(D=x.match(veh))?(x.options.smart?L.appendChild(C1(D.replace(QBA,"\u2026").replace(JLR,function(S){var Q=0,J=0;S.length%3===0?J=S.length/3:S.length%2===0?Q=S.length/2:S.length%3===2?(Q=1,J=(S.length-2)/3):(Q=2,J=(S.length-4)/3);S="";var Z;for(Z=0;Z<J;Z++)S+="\u2014";for(Z=0;Z<Q;Z++)S+="\u2013";return S}))):L.appendChild(C1(D)),!0):!1},bX2=function(x,L,D){x.subject=L;
x.pos=0;L=x.pos;var S=kR_(x);if(S===0)return 0;var Q=x.subject.substr(0,S);if(x.peek()===58)x.pos++;else return x.pos=L,0;UF(x);S=ge2(x);if(S===null||S.length===0)return x.pos=L,0;var J=x.pos;UF(x);var Z=ujG(x);Z===null&&(Z="",x.pos=J);var y=!0;x.match(Pki)===null&&(Z===""?y=!1:(Z="",x.pos=J,y=x.match(Pki)!==null));if(!y)return x.pos=L,0;Q=VSh(Q);if(Q==="")return x.pos=L,0;D[Q]||(D[Q]={destination:S,title:Z});return x.pos-L},Yv2=function(x,L){var D,S=x.peek();
if(S===-1)return!1;switch(S){case 10:x.pos+=1;if((D=L._lastChild)&&D.type==="text"&&D._literal[D._literal.length-1]===" "){var Q=D._literal[D._literal.length-2]===" ";D._literal=D._literal.replace(M2_,"");L.appendChild(new Ho(Q?"linebreak":"softbreak"))}else L.appendChild(new Ho("softbreak"));x.match(db_);D=!0;break;case 92:D=x.subject;x.pos+=1;x.peek()===10?(x.pos+=1,D=new Ho("linebreak"),L.appendChild(D)):xbQ.test(D.charAt(x.pos))?(L.appendChild(C1(D.charAt(x.pos))),x.pos+=1):L.appendChild(C1("\\"));
D=!0;break;case 96:a:if(D=x.match(SvC),D===null)D=!1;else{Q=x.pos;for(var J;(J=x.match(DbQ))!==null;)if(J===D){J=new Ho("code");J._literal=x.subject.slice(Q,x.pos-D.length).trim().replace(IsA," ");L.appendChild(J);D=!0;break a}x.pos=Q;L.appendChild(C1(D));D=!0}break;case 42:case 95:D=V2G(x,S,L);break;case 39:case 34:D=x.options.smart&&V2G(x,S,L);break;case 91:D=x.pos;x.pos+=1;Q=C1("[");L.appendChild(Q);pXA(x,Q,D,!1);D=!0;break;case 33:D=x.pos;x.pos+=1;x.peek()===91?(x.pos+=1,Q=C1("!["),L.appendChild(Q),
pXA(x,Q,D+1,!0)):L.appendChild(C1("!"));D=!0;break;case 93:var Z,y=!1,E;x.pos+=1;var P=x.pos;Q=x.brackets;if(Q===null)L.appendChild(C1("]"));else if(Q.active){D=Q.image;var v=x.pos;x.peek()===40&&(x.pos++,UF(x)&&(J=ge2(x))!==null&&UF(x)&&(yLh.test(x.subject.charAt(x.pos-1))&&(Z=ujG(x)),1)&&UF(x)&&x.peek()===41?(x.pos+=1,y=!0):x.pos=v);if(!y){var V=x.pos,h=kR_(x);h>2?E=x.subject.slice(V,V+h):Q.bracketAfter||(E=x.subject.slice(Q.index,P));h===0&&(x.pos=v);E&&(E=x.refmap[VSh(E)])&&(J=E.destination,Z=
E.title,y=!0)}if(y){P=new Ho(D?"image":"link");P._destination=J;P._title=Z||"";for(J=Q.node._next;J;)Z=J._next,J.unlink(),P.appendChild(J),J=Z;L.appendChild(P);HXH(x,Q.previousDelimiter);x.brackets=x.brackets.previous;Q.node.unlink();if(!D)for(Q=x.brackets;Q!==null;)Q.image||(Q.active=!1),Q=Q.previous}else x.brackets=x.brackets.previous,x.pos=P,L.appendChild(C1("]"))}else L.appendChild(C1("]")),x.brackets=x.brackets.previous;D=!0;break;case 60:(D=x.match(KFA))?(D=D.slice(1,D.length-1),Q=new Ho("link"),
Q._destination=iuB("mailto:"+D),Q._title="",Q.appendChild(C1(D)),L.appendChild(Q),D=!0):(D=x.match(OXH))?(D=D.slice(1,D.length-1),Q=new Ho("link"),Q._destination=iuB(D),Q._title="",Q.appendChild(C1(D)),L.appendChild(Q),D=!0):D=!1;D||(D=x.match(BF2),D===null?D=!1:(Q=new Ho("html_inline"),Q._literal=D,L.appendChild(Q),D=!0));break;case 38:(D=x.match(LFh))?(L.appendChild(C1(UjR(D))),D=!0):D=!1;break;default:D=mbd(x,L)}D||(x.pos+=1,L.appendChild(C1(GX(S))));return!0};
lh.prototype.parseInlines=function(x){this.subject=x._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;Yv2(this,x););x._string_content=null;HXH(this,null)};
lh.prototype.parse=lh.prototype.parseInlines;var FFh=[/./,/^<(?: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")],sBG=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],T4H=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,e6h=/^[#`~*+_=<>0-9-\|]|\|/,R6G=/[^ \t\f\v\r\n]/,GRi=/^[*+-]/,CkG=/^(\d{1,9})([.)])/,ls2=/^#{1,6}(?:[ \t]+|$)/,Ub_=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,wXd=/^(?:`{3,}|~{3,})(?= *$)/,B4W=/^(?:=+|-+)[ \t]*$/,WF_=/\r\n|\n|\r/,uCc=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,gx3=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,qvi={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(x){return x!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(x,L){for(x=L._firstChild;x;){if(hSp(x)&&x._next){L._listData.tight=!1;break}for(var D=x._firstChild;D;){if(hSp(D)&&(x._next||D._next)){L._listData.tight=!1;break}D=D._next}x=x._next}},
canContain:function(x){return x==="item"},
acceptsLines:!1},block_quote:{continue:function(x){var L=x.currentLine;if(x.indented||Vz(L,x.nextNonspace)!==62)return 1;wh(x);Bu(x,1,!1);vo(Vz(L,x.offset))&&Bu(x,1,!0);return 0},
finalize:function(){},
canContain:function(x){return x!=="item"},
acceptsLines:!1},item:{continue:function(x,L){if(x.blank){if(L._firstChild==null)return 1;wh(x)}else if(x.indent>=L._listData.markerOffset+L._listData.padding)Bu(x,L._listData.markerOffset+L._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(x){return x!=="item"&&!kmb(x)},
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(x,L){var D=x.currentLine,S=x.indent;if(L._isFenced){if((S=S<=3&&D.charAt(x.nextNonspace)===L._fenceChar&&D.slice(x.nextNonspace).match(wXd))&&S[0].length>=L._fenceLength)return x.finalize(L,x.lineNumber),2;for(L=L._fenceOffset;L>0&&vo(Vz(D,x.offset));)Bu(x,1,!0),L--}else if(S>=4)Bu(x,4,!0);else if(x.blank)wh(x);else return 1;return 0},
finalize:function(x,L){if(L._isFenced){var D=L._string_content,S=D.indexOf("\n");x=D.slice(0,S);D=D.slice(S+1);L.info=NFW(x.trim());L._literal=D}else L._literal=L._string_content.replace(/(\n *)+$/,"\n");L._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(x,L){return!x.blank||L._htmlBlockType!==6&&L._htmlBlockType!==7?0:1},
finalize:function(x,L){L._literal=L._string_content.replace(/(\n *)+$/,"");L._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(x){return x.blank?1:0},
finalize:function(x,L){for(var D,S=!1;Vz(L._string_content,0)===91&&(D=bX2(x.inlineParser,L._string_content,x.refmap));)L._string_content=L._string_content.slice(D),S=!0;S&&!R6G.test(L._string_content)&&L.unlink()},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(x){return h3(x.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(x){return x=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(x,L){if(!L._rowIsDelimiter){x=L._isHeader?"th":"td";for(var D=L._parent._tableColumns,S=L._string_content,Q=0,J="",Z,y=L._sourcepos[0][0];Q<S.length;){switch(S[Q]){case "|":Z&&(Z._string_content=J.trim(),J="",Z=null,D--,D<=0&&(Q=S.length));break;default:if(!Z){Z=new Ho(x,[[y,Q],[y,Q]]);var E=L._parent._columnAlignment,P=L._parent._tableColumns-D;E&&P<=E.length&&P>=0&&(Z._alignment=E[P]);L.appendChild(Z)}J+=S[Q];Z._sourcepos[1][1]=Q}Q++}Z&&(Z._string_content=J.trim());L._string_content=
""}},
canContain:function(x){return x!=="row"},
acceptsLines:!1}},ALi=[function(x){if(x.indented||Vz(x.currentLine,x.nextNonspace)!==62)return 0;wh(x);Bu(x,1,!1);vo(Vz(x.currentLine,x.offset))&&Bu(x,1,!0);Wu(x);x.addChild("block_quote",x.nextNonspace);return 1},
function(x){var L;if(!x.indented&&(L=x.currentLine.slice(x.nextNonspace).match(ls2))){wh(x);Bu(x,L[0].length,!1);Wu(x);var D=x.addChild("heading",x.nextNonspace);D.level=L[0].trim().length;D._string_content=x.currentLine.slice(x.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");Bu(x,x.currentLine.length-x.offset);return 2}return 0},
function(x){var L;if(!x.indented&&(L=x.currentLine.slice(x.nextNonspace).match(Ub_))){var D=L[0].length;Wu(x);var S=x.addChild("code_block",x.nextNonspace);S._isFenced=!0;S._fenceLength=D;S._fenceChar=L[0][0];S._fenceOffset=x.indent;wh(x);Bu(x,D,!1);return 2}return 0},
function(x,L){if(!x.indented&&Vz(x.currentLine,x.nextNonspace)===60){var D=x.currentLine.slice(x.nextNonspace),S;for(S=1;S<=7;S++)if(FFh[S].test(D)&&(S<7||L.type!=="paragraph"))return Wu(x),x.addChild("html_block",x.offset)._htmlBlockType=S,2}return 0},
function(x,L){var D;if(!x.indented&&L.type==="paragraph"&&(D=x.currentLine.slice(x.nextNonspace).match(B4W))){Wu(x);var S=new Ho("heading",L.sourcepos);S.level=D[0][0]==="="?1:2;S._string_content=L._string_content;XDh(L,S);L.unlink();x.tip=S;Bu(x,x.currentLine.length-x.offset,!1);return 2}return 0},
function(x){return!x.indented&&T4H.test(x.currentLine.slice(x.nextNonspace))?(Wu(x),x.addChild("thematic_break",x.nextNonspace),Bu(x,x.currentLine.length-x.offset,!1),2):0},
function(x,L){var D,S;if(!(S=x.indented&&L.type!=="list")){a:{var Q=L,J=x.currentLine.slice(x.nextNonspace);S={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:x.indent};if(D=J.match(GRi))S.type="bullet",S.bulletChar=D[0][0];else{if(!(D=J.match(CkG))||Q.type==="paragraph"&&D[1]!=="1"){D=null;break a}S.type="ordered";S.start=parseInt(D[1],10);S.delimiter=D[2]}var Z=Vz(x.currentLine,x.nextNonspace+D[0].length);if(Z!==-1&&Z!==9&&Z!==32||Q.type==="paragraph"&&!x.currentLine.slice(x.nextNonspace+
D[0].length).match(R6G))D=null;else{wh(x);Bu(x,D[0].length,!0);Q=x.column;J=x.offset;do Bu(x,1,!0),Z=Vz(x.currentLine,x.offset);while(x.column-Q<5&&vo(Z));Z=Vz(x.currentLine,x.offset)===-1;var y=x.column-Q;y>=5||y<1||Z?(S.padding=D[0].length+1,x.column=Q,x.offset=J,vo(Vz(x.currentLine,x.offset))&&Bu(x,1,!0)):S.padding=D[0].length+y;D=S}}S=!D}if(S)return 0;Wu(x);(S=x.tip.type!=="list")||(L=L._listData,S=!(L.type===D.type&&L.delimiter===D.delimiter&&L.bulletChar===D.bulletChar));S&&(L=x.addChild("list",
x.nextNonspace),L._listData=D);L=x.addChild("item",x.nextNonspace);L._listData=D;return 1},
function(x){var L;return((L=x.options.shouldParseIndentAsCodeBlock)!=null?L:1)&&x.indented&&x.tip.type!=="paragraph"&&!x.blank?(Bu(x,4,!0),Wu(x),x.addChild("code_block",x.offset),2):0},
function(x,L){var D=h3(x.currentLine),S=h3(x.lookahead);if(D!==0&&S<0&&Math.abs(D)==Math.abs(S)&&!kmb(L.type)){Wu(x);L=x.addChild("table",x.nextNonspace);L._tableRows=1;L._tableColumns=Math.abs(D);D=x.lookahead;if(gx3.test(D)){S=[];for(var Q=0,J=!1,Z=0,y=void 0;Q<D.length;){var E=Z>=3;switch(D[Q]){case "-":Z++;break;case "|":J&&(S.push(y),y=void 0,Z=0);J=!0;break;case ":":y||E||(y="left"),!y&&E&&(y="right"),y==="left"&&E&&(y="center")}Q++}D=S}else D=void 0;L._columnAlignment=D;L=x.addChild("row",
x.nextNonspace);L._isHeader=!0;Bu(x,x.currentLine.length-x.offset,!1);L._string_content=x.currentLine;return 1}return 0},
function(x,L){if(L.type=="table"&&h3(x.currentLine)!==0){Wu(x);var D=L;L=x.addChild("row",x.nextNonspace);h3(x.currentLine)<0?L._rowIsDelimiter=!0:D._tableRows+=1;Bu(x,x.currentLine.length-x.offset,!1);L._string_content=x.currentLine;return 2}return 0}],xtO=function(){var x={shouldParseIndentAsCodeBlock:!1};
x=x===void 0?{}:x;this.lastMatchedContainer=this.doc=pc0();this.refmap={};this.lastLineLength=0;this.inlineParser=new lh(x);this.options=x;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=qvi;this.blockStarts=ALi},$bC=function(x){x.partiallyConsumedTab&&(x.offset+=1,x.tip._string_content+=" ".repeat(4-x.column%
4));
x.tip._string_content+=x.currentLine.slice(x.offset)+"\n"};
xtO.prototype.addChild=function(x,L){for(;!this.blocks[this.tip.type].canContain(x);)this.finalize(this.tip,this.lineNumber-1);x=new Ho(x,[[this.lineNumber,L+1],[0,0]]);x._string_content="";this.tip.appendChild(x);return this.tip=x};
var Wu=function(x){if(!x.allClosed){for(;x.oldtip!==x.lastMatchedContainer;){var L=x.oldtip._parent;x.finalize(x.oldtip,x.lineNumber-1);x.oldtip=L}x.allClosed=!0}},Bu=function(x,L,D){for(var S=x.currentLine,Q,J;L>0&&(J=S[x.offset]);)J==="\t"?(Q=4-x.column%4,D?(x.partiallyConsumedTab=Q>L,Q=Q>L?L:Q,x.column+=Q,x.offset+=x.partiallyConsumedTab?0:1,L-=Q):(x.partiallyConsumedTab=!1,x.column+=Q,x.offset+=1,--L)):(x.partiallyConsumedTab=!1,x.offset+=1,x.column+=1,--L)},wh=function(x){x.offset=x.nextNonspace;
x.column=x.nextNonspaceColumn;x.partiallyConsumedTab=!1},rLR=function(x){for(var L=x.currentLine,D=x.offset,S=x.column,Q;(Q=L.charAt(D))!=="";)if(Q===" ")D++,S++;
else if(Q==="\t")D++,S+=4-S%4;else break;x.blank=Q==="\n"||Q==="\r"||Q==="";x.nextNonspace=D;x.nextNonspaceColumn=S;x.indent=x.nextNonspaceColumn-x.column;x.indented=x.indent>=4};
xtO.prototype.finalize=function(x,L){var D=x._parent;x._open=!1;x.sourcepos[1]=[L,this.lastLineLength];this.blocks[x.type].finalize(this,x);this.tip=D};
xtO.prototype.parse=function(x){this.tip=this.doc=pc0();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!x)return this.doc;this.options.time&&console.time("preparing input");var L=x.split(WF_),D=L.length;x.charCodeAt(x.length-1)===10&&--D;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(x=0;x<D;x++)a:{var S=void 0,Q=L[x],J=L[x+1],Z=!0,y=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;Q.indexOf("\x00")!==-1&&(Q=Q.replace(/\0/g,"\ufffd"));this.currentLine=Q;for(this.lookahead=J;(S=y._lastChild)&&S._open;){y=S;rLR(this);switch(this.blocks[y.type].continue(this,y)){case 0:break;case 1:Z=!1;break;case 2:this.lastLineLength=Q.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!Z){y=y._parent;break}}this.allClosed=y===this.oldtip;this.lastMatchedContainer=
y;S=y.type!=="paragraph"&&qvi[y.type].acceptsLines;J=this.blockStarts;for(Z=J.length;!S;){rLR(this);if(!this.indented&&!e6h.test(Q.slice(this.nextNonspace))){wh(this);break}for(var E=0;E<Z;){var P=J[E](this,y);if(P===1){y=this.tip;break}else if(P===2){y=this.tip;S=!0;break}else E++}if(E===Z){wh(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){Wu(this);this.blank&&y.lastChild&&(y.lastChild._lastLineBlank=!0);S=y.type;J=this.blank&&!(S==="block_quote"||S==="code_block"&&y._isFenced||
S==="item"&&!y._firstChild&&y.sourcepos[0][0]===this.lineNumber);for(Z=y;Z;)Z._lastLineBlank=J,Z=Z._parent;this.blocks[S].acceptsLines?($bC(this),S==="html_block"&&y._htmlBlockType>=1&&y._htmlBlockType<=5&&sBG[y._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(y,this.lineNumber)):this.offset<Q.length&&!this.blank&&(this.addChild("paragraph",this.offset),wh(this),$bC(this))}else $bC(this);this.lastLineLength=Q.length}for(;this.tip;)this.finalize(this.tip,D);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");Q=new zuG(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;D=Q.next();)L=D.node,x=L.type,D.entering||x!=="paragraph"&&x!=="heading"&&x!=="th"&&x!="td"||this.inlineParser.parse(L);this.options.time&&console.timeEnd("inline parsing");return this.doc};m_G.prototype.render=function(x){x=new zuG(x);var L;this.buffer="";for(this.lastOut="\n";L=x.next();){var D=L.node.type;if(this[D])this[D](L.node,L.entering)}return this.buffer};
m_G.prototype.out=function(x){qY(this,x)};
var qY=function(x,L){x.buffer+=L;x.lastOut=L};
m_G.prototype.cr=function(){this.lastOut!=="\n"&&qY(this,"\n")};var N42=/^javascript:|vbscript:|file:|data:/i,iX_=/^data:image\/(?:png|gif|jpeg|webp)/i,fsR=function(x){return N42.test(x)&&!iX_.test(x)};
uz.prototype=Object.create(m_G.prototype);_.K=uz.prototype;_.K.text=function(x){this.out(x.literal)};
_.K.html_inline=function(x){this.options.safe?qY(this,"\x3c!-- raw HTML omitted --\x3e"):qY(this,x.literal)};
_.K.html_block=function(x){this.cr();this.options.safe?qY(this,"\x3c!-- raw HTML omitted --\x3e"):qY(this,x.literal);this.cr()};
_.K.softbreak=function(){qY(this,this.options.softbreak)};
_.K.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.K.link=function(x,L){var D=this.attrs(x);L?(this.options.safe&&fsR(x.destination)||D.push(["href",R_(x.destination,!0)]),x.title&&D.push(["title",R_(x.title,!0)]),this.tag("a",D)):this.tag("/a")};
_.K.image=function(x,L){L?(this.disableTags===0&&(this.options.safe&&fsR(x.destination)?qY(this,'<img src="" alt="'):qY(this,'<img src="'+R_(x.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(x.title&&qY(this,'" title="'+R_(x.title,!0)),qY(this,'" />')))};
_.K.emph=function(x,L){this.tag(L?"em":"/em")};
_.K.strong=function(x,L){this.tag(L?"strong":"/strong")};
_.K.paragraph=function(x,L){var D=x.parent.parent;x=this.attrs(x);D!==null&&D.type==="list"&&D.listTight||(L?(this.cr(),this.tag("p",x)):(this.tag("/p"),this.cr()))};
_.K.heading=function(x,L){var D="h"+x.level;x=this.attrs(x);L?(this.cr(),this.tag(D,x)):(this.tag("/"+D),this.cr())};
_.K.code=function(x){this.tag("code");this.out(x.literal);this.tag("/code")};
_.K.code_block=function(x){var L=x.info?x.info.split(/\s+/):[],D=this.attrs(x);L.length>0&&L[0].length>0&&D.push(["class","language-"+R_(L[0],!0)]);this.cr();this.tag("pre");this.tag("code",D);this.out(x.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.K.thematic_break=function(x){x=this.attrs(x);this.cr();this.tag("hr",x,!0);this.cr()};
_.K.block_quote=function(x,L){x=this.attrs(x);L?(this.cr(),this.tag("blockquote",x)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.K.list=function(x,L){var D=x.listType==="bullet"?"ul":"ol",S=this.attrs(x);L?(x=x.listStart,x!==null&&x!==1&&S.push(["start",x.toString()]),this.cr(),this.tag(D,S)):(this.cr(),this.tag("/"+D));this.cr()};
_.K.item=function(x,L){x=this.attrs(x);L?this.tag("li",x):(this.tag("/li"),this.cr())};
_.K.custom_inline=function(x,L){L&&x.onEnter?qY(this,x.onEnter):!L&&x.onExit&&qY(this,x.onExit)};
_.K.custom_block=function(x,L){this.cr();L&&x.onEnter?qY(this,x.onEnter):!L&&x.onExit&&qY(this,x.onExit);this.cr()};
_.K.table=function(x,L){x=this.attrs(x);L?(this.cr(),this.tag("table",x)):(this.tag("/table"),this.cr())};
_.K.row=function(x,L){x._rowIsDelimiter||(x=this.attrs(x),L?this.tag("tr",x):this.tag("/tr"))};
_.K.td=function(x,L){var D=this.attrs(x);x._alignment&&D.push(["align",x._alignment]);L?this.tag("td",D):this.tag("/td")};
_.K.th=function(x,L){var D=this.attrs(x);x._alignment&&D.push(["align",x._alignment]);L?this.tag("th",D):this.tag("/th")};
_.K.out=function(x){qY(this,R_(x,!1))};
_.K.tag=function(x,L,D){if(!(this.disableTags>0)){this.buffer+="<"+x;if(L&&L.length>0){x=0;for(var S;(S=L[x])!==void 0;)this.buffer+=" "+S[0]+'="'+S[1]+'"',x++}D&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.K.attrs=function(x){var L=[];this.options.sourcepos&&(x=x.sourcepos)&&L.push(["data-sourcepos",String(x[0][0])+":"+String(x[0][1])+"-"+String(x[1][0])+":"+String(x[1][1])]);return L};
uz.prototype.text=uz.prototype.text;uz.prototype.html_inline=uz.prototype.html_inline;uz.prototype.html_block=uz.prototype.html_block;uz.prototype.softbreak=uz.prototype.softbreak;uz.prototype.linebreak=uz.prototype.linebreak;uz.prototype.link=uz.prototype.link;uz.prototype.image=uz.prototype.image;uz.prototype.emph=uz.prototype.emph;uz.prototype.strong=uz.prototype.strong;uz.prototype.paragraph=uz.prototype.paragraph;uz.prototype.heading=uz.prototype.heading;uz.prototype.code=uz.prototype.code;
uz.prototype.code_block=uz.prototype.code_block;uz.prototype.thematic_break=uz.prototype.thematic_break;uz.prototype.block_quote=uz.prototype.block_quote;uz.prototype.list=uz.prototype.list;uz.prototype.item=uz.prototype.item;uz.prototype.custom_inline=uz.prototype.custom_inline;uz.prototype.custom_block=uz.prototype.custom_block;uz.prototype.table=uz.prototype.table;uz.prototype.row=uz.prototype.row;uz.prototype.td=uz.prototype.td;uz.prototype.th=uz.prototype.th;uz.prototype.out=uz.prototype.out;
uz.prototype.tag=uz.prototype.tag;uz.prototype.attrs=uz.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 oe2,asC,Kdf;(function(){function x(C,R){return C<R?-1:C>R?1:C>=R?0:NaN}
function L(C){return function(R,W){return x(C(R),W)}}
function D(){for(var C=0,R=arguments.length,W={},L3;C<R;++C){if(!(L3=arguments[C]+"")||L3 in W)throw Error("ve`"+L3);W[L3]=[]}return new S(W)}
function S(C){this._=C}
function Q(C,R){return C.trim().split(/^|\s+/).map(function(W){var L3="",In=W.indexOf(".");In>=0&&(L3=W.slice(In+1),W=W.slice(0,In));if(W&&!R.hasOwnProperty(W))throw Error("we`"+W);return{type:W,name:L3}})}
function J(C,R,W){for(var L3=0,In=C.length;L3<In;++L3)if(C[L3].name===R){C[L3]=vhg;C=C.slice(0,L3).concat(C.slice(L3+1));break}W!=null&&C.push({name:R,value:W});return C}
function Z(C){var R=C,W=R.indexOf(":");W>=0&&(R=C.slice(0,W))!=="xmlns"&&(C=C.slice(W+1));return $v.hasOwnProperty(R)?{space:$v[R],local:C}:C}
function y(C){return function(){var R=this.ownerDocument,W=this.namespaceURI;return W==="http://www.w3.org/1999/xhtml"&&R.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?R.createElement(C):R.createElementNS(W,C)}}
function E(C){return function(){return this.ownerDocument.createElementNS(C.space,C.local)}}
function P(C){C=Z(C);return(C.local?E:y)(C)}
function v(){}
function V(C){return C==null?v:function(){return this.querySelector(C)}}
function h(C){return Array(C.length)}
function H(C,R){this.ownerDocument=C.ownerDocument;this.namespaceURI=C.namespaceURI;this._next=null;this._parent=C;this.__data__=R}
function k(C){return function(){return C}}
function T(C,R,W,L3,In,Vb){for(var mc=0,C3,Dh=R.length,n3=Vb.length;mc<n3;++mc)(C3=R[mc])?(C3.__data__=Vb[mc],L3[mc]=C3):W[mc]=new H(C,Vb[mc]);for(;mc<Dh;++mc)if(C3=R[mc])In[mc]=C3}
function G(C,R,W,L3,In,Vb,mc){var C3,Dh,n3={},SW=R.length,Mh=Vb.length,ai=Array(SW),Tg;for(C3=0;C3<SW;++C3)if(Dh=R[C3])ai[C3]=Tg="$"+mc.call(Dh,Dh.__data__,C3,R),Tg in n3?In[C3]=Dh:n3[Tg]=Dh;for(C3=0;C3<Mh;++C3)Tg="$"+mc.call(C,Vb[C3],C3,Vb),(Dh=n3[Tg])?(L3[C3]=Dh,Dh.__data__=Vb[C3],n3[Tg]=null):W[C3]=new H(C,Vb[C3]);for(C3=0;C3<SW;++C3)(Dh=R[C3])&&n3[ai[C3]]===Dh&&(In[C3]=Dh)}
function U(C,R){return C<R?-1:C>R?1:C>=R?0:NaN}
function l(C){return function(){this.removeAttribute(C)}}
function X(C){return function(){this.removeAttributeNS(C.space,C.local)}}
function f(C,R){return function(){this.setAttribute(C,R)}}
function N(C,R){return function(){this.setAttributeNS(C.space,C.local,R)}}
function z(C,R){return function(){var W=R.apply(this,arguments);W==null?this.removeAttribute(C):this.setAttribute(C,W)}}
function xf(C,R){return function(){var W=R.apply(this,arguments);W==null?this.removeAttributeNS(C.space,C.local):this.setAttributeNS(C.space,C.local,W)}}
function K3(C){return function(){this.style.removeProperty(C)}}
function P4(C,R,W){return function(){this.style.setProperty(C,R,W)}}
function kf(C,R,W){return function(){var L3=R.apply(this,arguments);L3==null?this.style.removeProperty(C):this.style.setProperty(C,L3,W)}}
function H4(C,R){return C.style.getPropertyValue(R)||(C.ownerDocument&&C.ownerDocument.defaultView||C.document&&C||C.defaultView).getComputedStyle(C,null).getPropertyValue(R)}
function p3(C){return function(){delete this[C]}}
function w0(C,R){return function(){this[C]=R}}
function Rn(C,R){return function(){var W=R.apply(this,arguments);W==null?delete this[C]:this[C]=W}}
function lG(){this.textContent=""}
function xX(C){return function(){this.textContent=C}}
function UR(C){return function(){var R=C.apply(this,arguments);this.textContent=R==null?"":R}}
function c4(){this.innerHTML=""}
function hr(C){return function(){this.innerHTML=C}}
function GB(C){return function(){var R=C.apply(this,arguments);this.innerHTML=R==null?"":R}}
function C2(){return null}
function X9(){var C=this.parentNode;C&&C.removeChild(this)}
function vs(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function Zp(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function K2(C,R,W){C=F2(C,R,W);return function(L3){var In=L3.relatedTarget;In&&(In===this||In.compareDocumentPosition(this)&8)||C.call(this,L3)}}
function F2(C,R,W){return function(){C.call(this,this.__data__,R,W)}}
function II(C){return C.trim().split(/^|\s+/).map(function(R){var W="",L3=R.indexOf(".");L3>=0&&(W=R.slice(L3+1),R=R.slice(0,L3));return{type:R,name:W}})}
function jW(C){return function(){var R=this.__on;if(R){for(var W=0,L3=-1,In=R.length,Vb;W<In;++W)(Vb=R[W],C.type&&Vb.type!==C.type||Vb.name!==C.name)?R[++L3]=Vb:this.removeEventListener(Vb.type,Vb.listener,Vb.capture);++L3?R.length=L3:delete this.__on}}}
function J5(C,R,W){var L3=zyh.hasOwnProperty(C.type)?K2:F2;return function(In,Vb,mc){In=this.__on;var C3;Vb=L3(R,Vb,mc);if(In){mc=0;for(var Dh=In.length;mc<Dh;++mc)if((C3=In[mc]).type===C.type&&C3.name===C.name){this.removeEventListener(C3.type,C3.listener,C3.capture);this.addEventListener(C3.type,C3.listener=Vb,C3.capture=W);C3.value=R;return}}this.addEventListener(C.type,Vb,W);C3={type:C.type,name:C.name,value:R,listener:Vb,capture:W};In?In.push(C3):this.__on=[C3]}}
function Eq(C,R,W){var L3=C.ownerDocument&&C.ownerDocument.defaultView||C.document&&C||C.defaultView,In=L3.CustomEvent;typeof In==="function"?In=new In(R,W):(In=L3.document.createEvent("Event"),W?(In.initEvent(R,W.bubbles,W.cancelable),In.detail=W.detail):In.initEvent(R,!1,!1));C.dispatchEvent(In)}
function zB(C,R){return function(){return Eq(this,C,R)}}
function ER(C,R){return function(){return Eq(this,C,R.apply(this,arguments))}}
function qh(C,R){this._groups=C;this._parents=R}
function g$(){return new qh([[document.documentElement]],V3W)}
function p2(){this._="@"+(++heI).toString(36)}
function uG(C,R,W){C.prototype=R.prototype=W;W.constructor=C}
function h5(C,R){C=Object.create(C.prototype);for(var W in R)C[W]=R[W];return C}
function x2(){}
function YX(C){var R;C=(C+"").trim().toLowerCase();return(R=HvY.exec(C))?(R=parseInt(R[1],16),new kX(R>>8&15|R>>4&240,R>>4&15|R&240,(R&15)<<4|R&15,1)):(R=urW.exec(C))?$2(parseInt(R[1],16)):(R=ghs.exec(C))?new kX(R[1],R[2],R[3],1):(R=kuq.exec(C))?new kX(R[1]*255/100,R[2]*255/100,R[3]*255/100,1):(R=p5u.exec(C))?zG(R[1],R[2],R[3],R[4]):(R=mJg.exec(C))?zG(R[1]*255/100,R[2]*255/100,R[3]*255/100,R[4]):(R=bvW.exec(C))?Vo(R[1],R[2]/100,R[3]/100,1):(R=Y6X.exec(C))?Vo(R[1],R[2]/100,R[3]/100,R[4]):XyW.hasOwnProperty(C)?
$2(XyW[C]):C==="transparent"?new kX(NaN,NaN,NaN,0):null}
function $2(C){return new kX(C>>16&255,C>>8&255,C&255,1)}
function zG(C,R,W,L3){L3<=0&&(C=R=W=NaN);return new kX(C,R,W,L3)}
function K8(C){C instanceof x2||(C=YX(C));if(!C)return new kX;C=C.rgb();return new kX(C.r,C.g,C.b,C.opacity)}
function oi(C,R,W,L3){return arguments.length===1?K8(C):new kX(C,R,W,L3==null?1:L3)}
function kX(C,R,W,L3){this.r=+C;this.g=+R;this.b=+W;this.opacity=+L3}
function n2(C){C=Math.max(0,Math.min(255,Math.round(C)||0));return(C<16?"0":"")+C.toString(16)}
function Vo(C,R,W,L3){L3<=0?C=R=W=NaN:W<=0||W>=1?C=R=NaN:R<=0&&(C=NaN);return new nw(C,R,W,L3)}
function hx(C){if(C instanceof nw)return new nw(C.h,C.s,C.l,C.opacity);C instanceof x2||(C=YX(C));if(!C)return new nw;if(C instanceof nw)return C;C=C.rgb();var R=C.r/255,W=C.g/255,L3=C.b/255,In=Math.min(R,W,L3),Vb=Math.max(R,W,L3),mc=NaN,C3=Vb-In,Dh=(Vb+In)/2;C3?(mc=R===Vb?(W-L3)/C3+(W<L3)*6:W===Vb?(L3-R)/C3+2:(R-W)/C3+4,C3/=Dh<.5?Vb+In:2-Vb-In,mc*=60):C3=Dh>0&&Dh<1?0:mc;return new nw(mc,C3,Dh,C.opacity)}
function Ge(C,R,W,L3){return arguments.length===1?hx(C):new nw(C,R,W,L3==null?1:L3)}
function nw(C,R,W,L3){this.h=+C;this.s=+R;this.l=+W;this.opacity=+L3}
function nZ(C,R,W){return(C<60?R+(W-R)*C/60:C<180?W:C<240?R+(W-R)*(240-C)/60:R)*255}
function OO(C){if(C instanceof sw)return new sw(C.l,C.a,C.b,C.opacity);if(C instanceof HC){if(isNaN(C.h))return new sw(C.l,0,0,C.opacity);var R=C.h*cYh;return new sw(C.l,Math.cos(R)*C.c,Math.sin(R)*C.c,C.opacity)}C instanceof kX||(C=K8(C));var W=Ps(C.r),L3=Ps(C.g),In=Ps(C.b);R=W4(.2225045*W+.7168786*L3+.0606169*In);if(W===L3&&L3===In)var Vb=W=R;else Vb=W4((.4360747*W+.3850649*L3+.1430804*In)/.96422),W=W4((.0139322*W+.0971045*L3+.7141733*In)/.82521);return new sw(116*R-16,500*(Vb-R),200*(R-W),C.opacity)}
function sw(C,R,W,L3){this.l=+C;this.a=+R;this.b=+W;this.opacity=+L3}
function W4(C){return C>F1u?Math.pow(C,1/3):C/nri+tPW}
function f3(C){return C>kY?C*C*C:nri*(C-tPW)}
function vC(C){return 255*(C<=.0031308?12.92*C:1.055*Math.pow(C,1/2.4)-.055)}
function Ps(C){return(C/=255)<=.04045?C/12.92:Math.pow((C+.055)/1.055,2.4)}
function eN(C){if(C instanceof HC)return new HC(C.h,C.c,C.l,C.opacity);C instanceof sw||(C=OO(C));if(C.a===0&&C.b===0)return new HC(NaN,0,C.l,C.opacity);var R=Math.atan2(C.b,C.a)*xPH;return new HC(R<0?R+360:R,Math.sqrt(C.a*C.a+C.b*C.b),C.l,C.opacity)}
function F9(C,R,W,L3){return arguments.length===1?eN(C):new HC(C,R,W,L3==null?1:L3)}
function HC(C,R,W,L3){this.h=+C;this.c=+R;this.l=+W;this.opacity=+L3}
function VQ(C,R,W,L3){if(arguments.length===1){var In=C;if(In instanceof w$)In=new w$(In.h,In.s,In.l,In.opacity);else{In instanceof kX||(In=K8(In));var Vb=In.g/255,mc=In.b/255,C3=(LlH*mc+In.r/255*-1.7884503806-3.5172982438*Vb)/(LlH+-1.7884503806-3.5172982438);mc-=C3;var Dh=(1.97294*(Vb-C3)- -.29227*mc)/-.90649;mc=(Vb=Math.sqrt(Dh*Dh+mc*mc)/(1.97294*C3*(1-C3)))?Math.atan2(Dh,mc)*xPH-120:NaN;In=new w$(mc<0?mc+360:mc,Vb,C3,In.opacity)}}else In=new w$(C,R,W,L3==null?1:L3);return In}
function w$(C,R,W,L3){this.h=+C;this.s=+R;this.l=+W;this.opacity=+L3}
function Hi(C,R,W,L3,In){var Vb=C*C,mc=Vb*C;return((1-3*C+3*Vb-mc)*R+(4-6*Vb+3*mc)*W+(1+3*C+3*Vb-3*mc)*L3+mc*In)/6}
function dA(C){return function(){return C}}
function sq(C,R){return function(W){return C+W*R}}
function tx(C,R,W){return C=Math.pow(C,W),R=Math.pow(R,W)-C,W=1/W,function(L3){return Math.pow(C+L3*R,W)}}
function qe(C,R){var W=R-C;return W?sq(C,W>180||W<-180?W-360*Math.round(W/360):W):dA(isNaN(C)?R:C)}
function ou(C){return(C=+C)===1?Xd:function(R,W){return W-R?tx(R,W,C):dA(isNaN(R)?W:R)}}
function Xd(C,R){var W=R-C;return W?sq(C,W):dA(isNaN(C)?R:C)}
function pG(C){return function(R){var W=R.length,L3=Array(W),In=Array(W),Vb=Array(W),mc;for(mc=0;mc<W;++mc){var C3=oi(R[mc]);L3[mc]=C3.r||0;In[mc]=C3.g||0;Vb[mc]=C3.b||0}L3=C(L3);In=C(In);Vb=C(Vb);C3.opacity=1;return function(Dh){C3.r=L3(Dh);C3.g=In(Dh);C3.b=Vb(Dh);return C3+""}}}
function u8(C,R){return C=+C,R-=C,function(W){return C+R*W}}
function TV(C){return function(){return C}}
function Yy(C){return function(R){return C(R)+""}}
function an(C,R){var W=RYw.lastIndex=GZs.lastIndex=0,L3,In,Vb,mc=-1,C3=[],Dh=[];C+="";for(R+="";(L3=RYw.exec(C))&&(In=GZs.exec(R));)(Vb=In.index)>W&&(Vb=R.slice(W,Vb),C3[mc]?C3[mc]+=Vb:C3[++mc]=Vb),(L3=L3[0])===(In=In[0])?C3[mc]?C3[mc]+=In:C3[++mc]=In:(C3[++mc]=null,Dh.push({i:mc,x:u8(L3,In)})),W=GZs.lastIndex;W<R.length&&(Vb=R.slice(W),C3[mc]?C3[mc]+=Vb:C3[++mc]=Vb);return C3.length<2?Dh[0]?Yy(Dh[0].x):TV(R):(R=Dh.length,function(n3){for(var SW=0,Mh;SW<R;++SW)C3[(Mh=Dh[SW]).i]=Mh.x(n3);return C3.join("")})}
function pl(C,R,W,L3,In,Vb){var mc,C3,Dh;if(mc=Math.sqrt(C*C+R*R))C/=mc,R/=mc;if(Dh=C*W+R*L3)W-=C*Dh,L3-=R*Dh;if(C3=Math.sqrt(W*W+L3*L3))W/=C3,L3/=C3,Dh/=C3;C*L3<R*W&&(C=-C,R=-R,Dh=-Dh,mc=-mc);return{translateX:In,translateY:Vb,rotate:Math.atan2(R,C)*DPh,skewX:Math.atan(Dh)*DPh,scaleX:mc,scaleY:C3}}
function Uu(C,R,W,L3){function In(n3){return n3.length?n3.pop()+" ":""}
function Vb(n3,SW,Mh,ai,Tg,kz){n3!==Mh||SW!==ai?(Tg=Tg.push("translate(",null,R,null,W),kz.push({i:Tg-4,x:u8(n3,Mh)},{i:Tg-2,x:u8(SW,ai)})):(Mh||ai)&&Tg.push("translate("+Mh+R+ai+W)}
function mc(n3,SW,Mh,ai){n3!==SW?(n3-SW>180?SW+=360:SW-n3>180&&(n3+=360),ai.push({i:Mh.push(In(Mh)+"rotate(",null,L3)-2,x:u8(n3,SW)})):SW&&Mh.push(In(Mh)+"rotate("+SW+L3)}
function C3(n3,SW,Mh,ai){n3!==SW?ai.push({i:Mh.push(In(Mh)+"skewX(",null,L3)-2,x:u8(n3,SW)}):SW&&Mh.push(In(Mh)+"skewX("+SW+L3)}
function Dh(n3,SW,Mh,ai,Tg,kz){n3!==Mh||SW!==ai?(Tg=Tg.push(In(Tg)+"scale(",null,",",null,")"),kz.push({i:Tg-4,x:u8(n3,Mh)},{i:Tg-2,x:u8(SW,ai)})):Mh===1&&ai===1||Tg.push(In(Tg)+"scale("+Mh+","+ai+")")}
return function(n3,SW){var Mh=[],ai=[];n3=C(n3);SW=C(SW);Vb(n3.translateX,n3.translateY,SW.translateX,SW.translateY,Mh,ai);mc(n3.rotate,SW.rotate,Mh,ai);C3(n3.skewX,SW.skewX,Mh,ai);Dh(n3.scaleX,n3.scaleY,SW.scaleX,SW.scaleY,Mh,ai);n3=SW=null;return function(Tg){for(var kz=-1,NT=ai.length,bP;++kz<NT;)Mh[(bP=ai[kz]).i]=bP.x(Tg);return Mh.join("")}}}
function Ou(C){return function(R,W){var L3=C((R=Ge(R)).h,(W=Ge(W)).h),In=Xd(R.s,W.s),Vb=Xd(R.l,W.l),mc=Xd(R.opacity,W.opacity);return function(C3){R.h=L3(C3);R.s=In(C3);R.l=Vb(C3);R.opacity=mc(C3);return R+""}}}
function Mp(C){return function(R,W){var L3=C((R=F9(R)).h,(W=F9(W)).h),In=Xd(R.c,W.c),Vb=Xd(R.l,W.l),mc=Xd(R.opacity,W.opacity);return function(C3){R.h=L3(C3);R.c=In(C3);R.l=Vb(C3);R.opacity=mc(C3);return R+""}}}
function aD(C){return function L3(W){function In(Vb,mc){var C3=C((Vb=VQ(Vb)).h,(mc=VQ(mc)).h),Dh=Xd(Vb.s,mc.s),n3=Xd(Vb.l,mc.l),SW=Xd(Vb.opacity,mc.opacity);return function(Mh){Vb.h=C3(Mh);Vb.s=Dh(Mh);Vb.l=n3(Math.pow(Mh,W));Vb.opacity=SW(Mh);return Vb+""}}
W=+W;In.gamma=L3;return In}(1)}
function $a(){return Qd||(SBH(tH),Qd=a$.now()+QEw)}
function tH(){Qd=0}
function sv(){this._call=this._time=this._next=null}
function Wl(C,R,W){var L3=new sv;L3.restart(C,R,W);return L3}
function q7(){Qd=(JEN=a$.now())+QEw;p9=zY=0;try{$a();++p9;for(var C=KN3,R;C;)(R=Qd-C._time)>=0&&C._call.call(null,R),C=C._next;--p9}finally{p9=0;C=KN3;for(var W=Infinity;C;)if(C._call){W>C._time&&(W=C._time);var L3=C;C=C._next}else R=C._next,C._next=null,C=L3?L3._next=R:KN3=R;X8=L3;AJ(W);Qd=0}}
function HW3(){var C=a$.now(),R=C-JEN;R>1E3&&(QEw-=R,JEN=C)}
function AJ(C){p9||(zY&&(zY=clearTimeout(zY)),C-Qd>24?(C<Infinity&&(zY=setTimeout(q7,C-a$.now()-QEw)),c0&&(c0=clearInterval(c0))):(c0||(JEN=a$.now(),c0=setInterval(HW3,1E3)),p9=1,SBH(q7)))}
function QUC(C,R,W){var L3=new sv;R=R==null?0:+R;L3.restart(function(In){L3.stop();C(In+R)},R,W);
return L3}
function CrN(C,R,W,L3,In,Vb){var mc=C.__transition;if(!mc)C.__transition={};else if(W in mc)return;sQl(C,W,{name:R,index:L3,group:In,on:Teg,tween:eeI,time:Vb.time,delay:Vb.delay,duration:Vb.duration,ease:Vb.ease,timer:null,state:0})}
function li4(C,R){C=R2(C,R);if(C.state>0)throw Error("xe");return C}
function Jb(C,R){C=R2(C,R);if(C.state>2)throw Error("ye");return C}
function R2(C,R){C=C.__transition;if(!C||!(C=C[R]))throw Error("ze");return C}
function sQl(C,R,W){function L3(Dh){var n3,SW;if(W.state!==1)return Vb();for(ai in mc){var Mh=mc[ai];if(Mh.name===W.name){if(Mh.state===3)return QUC(L3);Mh.state===4?(Mh.state=6,Mh.timer.stop(),Mh.on.call("interrupt",C,C.__data__,Mh.index,Mh.group),delete mc[ai]):+ai<R&&(Mh.state=6,Mh.timer.stop(),delete mc[ai])}}QUC(function(){W.state===3&&(W.state=4,W.timer.restart(In,W.delay,W.time),In(Dh))});
W.state=2;W.on.call("start",C,C.__data__,W.index,W.group);if(W.state===2){W.state=3;C3=Array(SW=W.tween.length);var ai=0;for(n3=-1;ai<SW;++ai)if(Mh=W.tween[ai].value.call(C,C.__data__,W.index,W.group))C3[++n3]=Mh;C3.length=n3+1}}
function In(Dh){Dh=Dh<W.duration?W.ease.call(null,Dh/W.duration):(W.timer.restart(Vb),W.state=5,1);for(var n3=-1,SW=C3.length;++n3<SW;)C3[n3].call(null,Dh);W.state===5&&(W.on.call("end",C,C.__data__,W.index,W.group),Vb())}
function Vb(){W.state=6;W.timer.stop();delete mc[R];for(var Dh in mc)return;delete C.__transition}
var mc=C.__transition,C3;mc[R]=W;W.timer=Wl(function(Dh){W.state=1;W.timer.restart(L3,W.delay,W.time);W.delay<=Dh&&L3(Dh-W.delay)},0,W.time)}
function Re9(C,R){var W,L3;return function(){var In=Jb(this,C),Vb=In.tween;if(Vb!==W){L3=W=Vb;Vb=0;for(var mc=L3.length;Vb<mc;++Vb)if(L3[Vb].name===R){L3=L3.slice();L3.splice(Vb,1);break}}In.tween=L3}}
function Gus(C,R,W){var L3,In;if(typeof W!=="function")throw Error();return function(){var Vb=Jb(this,C),mc=Vb.tween;if(mc!==L3){In=(L3=mc).slice();mc={name:R,value:W};for(var C3=0,Dh=In.length;C3<Dh;++C3)if(In[C3].name===R){In[C3]=mc;break}C3===Dh&&In.push(mc)}Vb.tween=In}}
function UP4(C,R,W){var L3=C._id;C.each(function(){var In=Jb(this,L3);(In.value||(In.value={}))[R]=W.apply(this,arguments)});
return function(In){return R2(In,L3).value[R]}}
function Jzi(C,R){var W;return(typeof R==="number"?u8:R instanceof YX?Klr:(W=YX(R))?(R=W,Klr):an)(C,R)}
function CeG(C){return function(){this.removeAttribute(C)}}
function lql(C){return function(){this.removeAttributeNS(C.space,C.local)}}
function UJq(C,R,W){var L3,In;return function(){var Vb=this.getAttribute(C);return Vb===W?null:Vb===L3?In:In=R(L3=Vb,W)}}
function w53(C,R,W){var L3,In;return function(){var Vb=this.getAttributeNS(C.space,C.local);return Vb===W?null:Vb===L3?In:In=R(L3=Vb,W)}}
function Be3(C,R,W){var L3,In,Vb;return function(){var mc=W(this);if(mc==null)return void this.removeAttribute(C);var C3=this.getAttribute(C);return C3===mc?null:C3===L3&&mc===In?Vb:Vb=R(L3=C3,In=mc)}}
function W15(C,R,W){var L3,In,Vb;return function(){var mc=W(this);if(mc==null)return void this.removeAttributeNS(C.space,C.local);var C3=this.getAttributeNS(C.space,C.local);return C3===mc?null:C3===L3&&mc===In?Vb:Vb=R(L3=C3,In=mc)}}
function q6q(C,R){function W(){var L3=this,In=R.apply(L3,arguments);return In&&function(Vb){L3.setAttributeNS(C.space,C.local,In(Vb))}}
W._value=R;return W}
function AMq(C,R){function W(){var L3=this,In=R.apply(L3,arguments);return In&&function(Vb){L3.setAttribute(C,In(Vb))}}
W._value=R;return W}
function $J5(C,R){return function(){li4(this,C).delay=+R.apply(this,arguments)}}
function rMY(C,R){return R=+R,function(){li4(this,C).delay=R}}
function NeX(C,R){return function(){Jb(this,C).duration=+R.apply(this,arguments)}}
function ivY(C,R){return R=+R,function(){Jb(this,C).duration=R}}
function fqu(C,R){if(typeof R!=="function")throw Error();return function(){Jb(this,C).ease=R}}
function ohg(C){return(C+"").trim().split(/^|\s+/).every(function(R){var W=R.indexOf(".");W>=0&&(R=R.slice(0,W));return!R||R==="start"})}
function aqX(C,R,W){var L3,In,Vb=ohg(R)?li4:Jb;return function(){var mc=Vb(this,C),C3=mc.on;if(C3!==L3)(In=(L3=C3).copy()).on(R,W);mc.on=In}}
function zeq(C){return function(){var R=this.parentNode,W;for(W in this.__transition)if(+W!==C)return;R&&R.removeChild(this)}}
function X59(C,R){var W,L3,In;return function(){var Vb=H4(this,C),mc=(this.style.removeProperty(C),H4(this,C));return Vb===mc?null:Vb===W&&mc===L3?In:In=R(W=Vb,L3=mc)}}
function cMY(C){return function(){this.style.removeProperty(C)}}
function nhG(C,R,W){var L3,In;return function(){var Vb=H4(this,C);return Vb===W?null:Vb===L3?In:In=R(L3=Vb,W)}}
function t3I(C,R,W){var L3,In,Vb;return function(){var mc=H4(this,C),C3=W(this);C3==null&&(C3=(this.style.removeProperty(C),H4(this,C)));return mc===C3?null:mc===L3&&C3===In?Vb:Vb=R(L3=mc,In=C3)}}
function xIs(C,R,W){function L3(){var In=this,Vb=R.apply(In,arguments);return Vb&&function(mc){In.style.setProperty(C,Vb(mc),W)}}
L3._value=R;return L3}
function L$X(C){return function(){this.textContent=C}}
function DIY(C){return function(){var R=C(this);this.textContent=R==null?"":R}}
function nJ(C,R,W,L3){this._groups=C;this._parents=R;this._name=W;this._id=L3}
function w9b(C){return{type:C}}
function Bs3(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function OK3(){}
function OJH(C,R){var W=new OK3;if(C instanceof OK3)C.each(function(mc,C3){W.set(C3,mc)});
else if(Array.isArray(C)){var L3=-1,In=C.length,Vb;if(R==null)for(;++L3<In;)W.set(L3,C[L3]);else for(;++L3<In;)W.set(R(Vb=C[L3],L3,C),Vb)}else if(C)for(L3 in C)W.set(L3,C[L3]);return W}
function ZK4(){}
function ZJh(C){return function(R){for(var W={},L3=0;L3<C.length;L3++)W[C[L3]]=R[L3]||"";return W}}
function SjG(C,R){var W=ZJh(C);return function(L3,In){return R(W(L3),In,C)}}
function QOq(C){var R=Object.create(null),W=[];C.forEach(function(L3){for(var In in L3)In in R||W.push(R[In]=In)});
return W}
function yzB(C){function R(mc,C3){function Dh(){if(kz)return Wl3;if(NT)return NT=!1,IiB;var Lh,XU=Mh,Pa;if(mc.charCodeAt(XU)===34){for(;Mh++<SW&&mc.charCodeAt(Mh)!==34||mc.charCodeAt(++Mh)===34;);(Lh=Mh)>=SW?kz=!0:(Pa=mc.charCodeAt(Mh++))===10?NT=!0:Pa===13&&(NT=!0,mc.charCodeAt(Mh)===10&&++Mh);return mc.slice(XU+1,Lh-1).replace(/""/g,'"')}for(;Mh<SW;){if((Pa=mc.charCodeAt(Lh=Mh++))===10)NT=!0;else if(Pa===13)NT=!0,mc.charCodeAt(Mh)===10&&++Mh;else if(Pa!==Vb)continue;return mc.slice(XU,Lh)}return kz=
!0,mc.slice(XU,SW)}
var n3=[],SW=mc.length,Mh=0,ai=0,Tg,kz=SW<=0,NT=!1;mc.charCodeAt(SW-1)===10&&--SW;for(mc.charCodeAt(SW-1)===13&&--SW;(Tg=Dh())!==Wl3;){for(var bP=[];Tg!==IiB&&Tg!==Wl3;)bP.push(Tg),Tg=Dh();C3&&(bP=C3(bP,ai++))==null||n3.push(bP)}return n3}
function W(mc){return mc.map(L3).join(C)}
function L3(mc){return mc==null?"":In.test(mc)?'"'+mc.replace(/"/g,'""')+'"':mc}
var In=new RegExp('["'+C+"\n\r]"),Vb=C.charCodeAt(0);return{parse:function(mc,C3){var Dh,n3;mc=R(mc,function(SW,Mh){if(Dh)return Dh(SW,Mh-1);n3=SW;Dh=C3?SjG(SW,C3):ZJh(SW)});
mc.columns=n3||[];return mc},
parseRows:R,format:function(mc,C3){C3==null&&(C3=QOq(mc));return[C3.map(L3).join(C)].concat(mc.map(function(Dh){return C3.map(function(n3){return L3(Dh[n3])}).join(C)})).join("\n")},
formatRows:function(mc){return mc.map(W).join("\n")}}}
function JYg(C){if(!C.ok)throw Error("Ae`"+C.status+"`"+C.statusText);return C.text()}
function EPi(C){return function(R,W,L3){arguments.length===2&&typeof W==="function"&&(L3=W,W=void 0);return fetch(R,W).then(JYg).then(function(In){return C(In,L3)})}}
function MZh(C,R,W,L3){if(isNaN(R)||isNaN(W))return C;var In,Vb=C._root;L3={data:L3};var mc=C._x0,C3=C._y0,Dh=C._x1,n3=C._y1,SW,Mh,ai,Tg,kz;if(!Vb)return C._root=L3,C;for(;Vb.length;)if((ai=R>=(SW=(mc+Dh)/2))?mc=SW:Dh=SW,(Tg=W>=(Mh=(C3+n3)/2))?C3=Mh:n3=Mh,In=Vb,!(Vb=Vb[kz=Tg<<1|ai]))return In[kz]=L3,C;var NT=+C._x.call(null,Vb.data);var bP=+C._y.call(null,Vb.data);if(R===NT&&W===bP)return L3.next=Vb,In?In[kz]=L3:C._root=L3,C;do In=In?In[kz]=Array(4):C._root=Array(4),(ai=R>=(SW=(mc+Dh)/2))?mc=SW:Dh=
SW,(Tg=W>=(Mh=(C3+n3)/2))?C3=Mh:n3=Mh;while((kz=Tg<<1|ai)===(ai=(bP>=Mh)<<1|NT>=SW));return In[ai]=Vb,In[kz]=L3,C}
function iN(C,R,W,L3,In){this.node=C;this.x0=R;this.y0=W;this.x1=L3;this.y1=In}
function K$W(C){return C[0]}
function Opq(C){return C[1]}
function qBG(C,R,W,L3,In,Vb){this._x=C;this._y=R;this._x0=W;this._y0=L3;this._x1=In;this._y1=Vb;this._root=void 0}
function dPG(C){for(var R={data:C.data},W=R;C=C.next;)W=W.next={data:C.data};return R}
function yEf(C,R){if((R=(C=R?C.toExponential(R-1):C.toExponential()).indexOf("e"))<0)return null;var W=C.slice(0,R);return[W.length>1?W[0]+W.slice(2):W,+C.slice(R+1)]}
function Zpl(C){return C=yEf(Math.abs(C)),C?C[1]:NaN}
function yYY(C,R){return function(W,L3){for(var In=W.length,Vb=[],mc=0,C3=C[0],Dh=0;In>0&&C3>0;){Dh+C3+1>L3&&(C3=Math.max(1,L3-Dh));Vb.push(W.substring(In-=C3,In+C3));if((Dh+=C3+1)>L3)break;C3=C[mc=(mc+1)%C.length]}return Vb.reverse().join(R)}}
function IJG(C){return function(R){return R.replace(/[0-9]/g,function(W){return C[+W]})}}
function Azc(C){return new $P0(C)}
function $P0(C){if(!(R=Er5.exec(C)))throw Error("Be`"+C);var R;this.fill=R[1]||" ";this.align=R[2]||">";this.sign=R[3]||"-";this.symbol=R[4]||"";this.zero=!!R[5];this.width=R[6]&&+R[6];this.comma=!!R[7];this.precision=R[8]&&+R[8].slice(1);this.trim=!!R[9];this.type=R[10]||""}
function Prr(C,R){R=yEf(C,R);if(!R)return C+"";C=R[0];R=R[1];return R<0?"0."+Array(-R).join("0")+C:C.length>R+1?C.slice(0,R+1)+"."+C.slice(R+1):C+Array(R-C.length+2).join("0")}
function jUW(C){return C}
function MPu(C){function R(C3){function Dh(zi){var PI=Pa,iq=cX,g8,yv;if(XU==="c")iq=cB(zi)+iq,zi="";else{zi=+zi;var Cl=zi<0;zi=cB(Math.abs(zi),bP);if(Lh){var a1=zi.length,A6=1,D5=-1;a:for(;A6<a1;++A6)switch(zi[A6]){case ".":D5=g8=A6;break;case "0":D5===0&&(D5=A6);g8=A6;break;default:if(!+zi[A6])break a;D5>0&&(D5=0)}zi=D5>0?zi.slice(0,D5)+zi.slice(g8+1):zi}Cl&&+zi===0&&(Cl=!1);PI=(Cl?Mh==="("?Mh:"-":Mh==="-"||Mh==="("?"":Mh)+PI;iq=(XU==="s"?vPQ[8+VZr/3]:"")+iq+(Cl&&Mh==="("?")":"");if(Hf)for(Cl=-1,
g8=zi.length;++Cl<g8;)if(yv=zi.charCodeAt(Cl),48>yv||yv>57){iq=(yv===46?In+zi.slice(Cl+1):zi.slice(Cl))+iq;zi=zi.slice(0,Cl);break}}NT&&!Tg&&(zi=W(zi,Infinity));yv=PI.length+zi.length+iq.length;Cl=yv<kz?Array(kz-yv+1).join(n3):"";NT&&Tg&&(zi=W(Cl+zi,Cl.length?kz-iq.length:Infinity),Cl="");switch(SW){case "<":zi=PI+zi+iq+Cl;break;case "=":zi=PI+Cl+zi+iq;break;case "^":zi=Cl.slice(0,yv=Cl.length>>1)+PI+zi+iq+Cl.slice(yv);break;default:zi=Cl+PI+zi+iq}return Vb(zi)}
C3=Azc(C3);var n3=C3.fill,SW=C3.align,Mh=C3.sign,ai=C3.symbol,Tg=C3.zero,kz=C3.width,NT=C3.comma,bP=C3.precision,Lh=C3.trim,XU=C3.type;XU==="n"?(NT=!0,XU="g"):hYC[XU]||(bP==null&&(bP=12),Lh=!0,XU="g");if(Tg||n3==="0"&&SW==="=")Tg=!0,n3="0",SW="=";var Pa=ai==="$"?L3[0]:ai==="#"&&/[boxX]/.test(XU)?"0"+XU.toLowerCase():"",cX=ai==="$"?L3[1]:/[%p]/.test(XU)?mc:"",cB=hYC[XU],Hf=/[defgprs%]/.test(XU);bP=bP==null?6:/[gprs]/.test(XU)?Math.max(1,Math.min(21,bP)):Math.max(0,Math.min(20,bP));Dh.toString=function(){return C3+
""};
return Dh}
var W=C.grouping&&C.thousands?yYY(C.grouping,C.thousands):jUW,L3=C.currency,In=C.decimal,Vb=C.numerals?IJG(C.numerals):jUW,mc=C.percent||"%";return{format:R,formatPrefix:function(C3,Dh){var n3=R((C3=Azc(C3),C3.type="f",C3));C3=Math.max(-8,Math.min(8,Math.floor(Zpl(Dh)/3)))*3;var SW=Math.pow(10,-C3),Mh=vPQ[8+C3/3];return function(ai){return n3(SW*ai)+Mh}}}}
function Fq(){this.reset()}
function HJC(C,R,W){var L3=C.s=R+W,In=L3-R;C.t=R-(L3-In)+(W-In)}
function IAh(C){return C>1?rV:C<-1?-rV:Math.asin(C)}
function dIq(){}
function uWA(C){var R=C[0];C=C[1];var W=Nk(C);return[W*Nk(R),W*Y8(R),Y8(C)]}
function gPG(C,R){return[C[1]*R[2]-C[2]*R[1],C[2]*R[0]-C[0]*R[2],C[0]*R[1]-C[1]*R[0]]}
function kZQ(C){var R=EgN(C[0]*C[0]+C[1]*C[1]+C[2]*C[2]);C[0]/=R;C[1]/=R;C[2]/=R}
function Po9(){var C=[],R;return{point:function(W,L3){R.push([W,L3])},
lineStart:function(){C.push(R=[])},
lineEnd:dIq,rejoin:function(){C.length>1&&C.push(C.pop().concat(C.shift()))},
result:function(){var W=C;C=[];R=null;return W}}}
function MVh(C,R,W,L3){this.x=C;this.z=R;this.o=W;this.e=L3;this.v=!1;this.n=this.p=null}
function jO5(C,R,W,L3,In){var Vb=[],mc=[];C.forEach(function(Mh){if(!((ai=Mh.length-1)<=0)){var ai,Tg=Mh[0],kz=Mh[ai],NT=Tg;if(tz(NT[0]-kz[0])<1E-6&&tz(NT[1]-kz[1])<1E-6){In.lineStart();for(C3=0;C3<ai;++C3)In.point((Tg=Mh[C3])[0],Tg[1]);In.lineEnd()}else Vb.push(ai=new MVh(Tg,Mh,null,!0)),mc.push(ai.o=new MVh(Tg,null,ai,!1)),Vb.push(ai=new MVh(kz,Mh,null,!1)),mc.push(ai.o=new MVh(kz,null,ai,!0))}});
if(Vb.length){mc.sort(R);p9G(Vb);p9G(mc);var C3=0;for(C=mc.length;C3<C;++C3)mc[C3].e=W=!W;W=Vb[0];for(var Dh;;){for(var n3=W,SW=!0;n3.v;)if((n3=n3.n)===W)return;R=n3.z;In.lineStart();do{n3.v=n3.o.v=!0;if(n3.e){if(SW)for(C3=0,C=R.length;C3<C;++C3)In.point((Dh=R[C3])[0],Dh[1]);else L3(n3.x,n3.n.x,1,In);n3=n3.n}else{if(SW)for(R=n3.p.z,C3=R.length-1;C3>=0;--C3)In.point((Dh=R[C3])[0],Dh[1]);else L3(n3.x,n3.p.x,-1,In);n3=n3.p}n3=n3.o;R=n3.z;SW=!SW}while(!n3.v);In.lineEnd()}}}
function p9G(C){if(R=C.length){for(var R,W=0,L3=C[0],In;++W<R;)L3.n=In=C[W],In.p=L3,L3=In;L3.n=In=C[0];In.p=L3}}
function vr3(C){return C.length>1}
function VPG(C,R){return((C=C.x)[0]<0?C[1]-rV-1E-6:rV-C[1])-((R=R.x)[0]<0?R[1]-rV-1E-6:rV-R[1])}
function rzw(){}
function mPH(C){return function(R,W){var L3=Nk(R),In=Nk(W);L3=C(L3*In);return[L3*In*Y8(R),L3*Y8(W)]}}
function nx(C){return function(R,W){var L3=EgN(R*R+W*W),In=C(L3),Vb=Y8(In);In=Nk(In);return[bJQ(R*Vb,L3*In),IAh(L3&&W*Vb/L3)]}}
function hy5(C){var R=0,W=C.children,L3=W&&W.length;if(L3)for(;--L3>=0;)R+=W[L3].value;else R=1;C.value=R}
function YBh(C,R){var W=new tn(C);C=+C.value&&(W.value=C.value);var L3,In=[W],Vb,mc,C3,Dh;for(R==null&&(R=Hp5);L3=In.pop();)if(C&&(L3.value=+L3.data.value),(mc=R(L3.data))&&(Dh=mc.length))for(L3.children=Array(Dh),C3=Dh-1;C3>=0;--C3)In.push(Vb=L3.children[C3]=new tn(mc[C3])),Vb.parent=L3,Vb.depth=L3.depth+1;return W.eachBefore(ueI)}
function Hp5(C){return C.children}
function grI(C){C.data=C.data.data}
function ueI(C){var R=0;do C.height=R;while((C=C.parent)&&C.height<++R)}
function tn(C){this.data=C;this.depth=this.height=0;this.parent=null}
function E8(C,R,W,L3){function In(Vb){return C(Vb=new Date(+Vb)),Vb}
In.floor=In;In.ceil=function(Vb){return C(Vb=new Date(Vb-1)),R(Vb,1),C(Vb),Vb};
In.round=function(Vb){var mc=In(Vb),C3=In.ceil(Vb);return Vb-mc<C3-Vb?mc:C3};
In.offset=function(Vb,mc){return R(Vb=new Date(+Vb),mc==null?1:Math.floor(mc)),Vb};
In.range=function(Vb,mc,C3){var Dh=[],n3;Vb=In.ceil(Vb);C3=C3==null?1:Math.floor(C3);if(!(Vb<mc&&C3>0))return Dh;do Dh.push(n3=new Date(+Vb)),R(Vb,C3),C(Vb);while(n3<Vb&&Vb<mc);return Dh};
In.filter=function(Vb){return E8(function(mc){if(mc>=mc)for(;C(mc),!Vb(mc);)mc.setTime(mc-1)},function(mc,C3){if(mc>=mc)if(C3<0)for(;++C3<=0;)for(;R(mc,-1),!Vb(mc););
else for(;--C3>=0;)for(;R(mc,1),!Vb(mc););})};
W&&(In.count=function(Vb,mc){NsN.setTime(+Vb);iJn.setTime(+mc);C(NsN);C(iJn);return Math.floor(W(NsN,iJn))},In.every=function(Vb){Vb=Math.floor(Vb);
return isFinite(Vb)&&Vb>0?Vb>1?In.filter(L3?function(mc){return L3(mc)%Vb===0}:function(mc){return In.count(0,mc)%Vb===0}):In:null});
return In}
function Kz(C){return E8(function(R){R.setDate(R.getDate()-(R.getDay()+7-C)%7);R.setHours(0,0,0,0)},function(R,W){R.setDate(R.getDate()+W*7)},function(R,W){return(W-R-(W.getTimezoneOffset()-R.getTimezoneOffset())*6E4)/6048E5})}
function OM(C){return E8(function(R){R.setUTCDate(R.getUTCDate()-(R.getUTCDay()+7-C)%7);R.setUTCHours(0,0,0,0)},function(R,W){R.setUTCDate(R.getUTCDate()+W*7)},function(R,W){return(W-R)/6048E5})}
function kyG(C){if(0<=C.y&&C.y<100){var R=new Date(-1,C.m,C.d,C.H,C.M,C.S,C.L);R.setFullYear(C.y);return R}return new Date(C.y,C.m,C.d,C.H,C.M,C.S,C.L)}
function dgw(C){if(0<=C.y&&C.y<100){var R=new Date(Date.UTC(-1,C.m,C.d,C.H,C.M,C.S,C.L));R.setUTCFullYear(C.y);return R}return new Date(Date.UTC(C.y,C.m,C.d,C.H,C.M,C.S,C.L))}
function xW(C){return{y:C,m:0,d:1,H:0,M:0,S:0,L:0}}
function pyl(C){function R(iq,g8){return function(yv){var Cl=[],a1=-1,A6=0,D5=iq.length,HY,Ja;for(yv instanceof Date||(yv=new Date(+yv));++a1<D5;)if(iq.charCodeAt(a1)===37){Cl.push(iq.slice(A6,a1));(A6=FlG[HY=iq.charAt(++a1)])!=null?HY=iq.charAt(++a1):A6=HY==="e"?" ":"0";if(Ja=g8[HY])HY=Ja(yv,A6);Cl.push(HY);A6=a1+1}Cl.push(iq.slice(A6,a1));return Cl.join("")}}
function W(iq,g8){return function(yv){var Cl=xW(1900);if(L3(Cl,iq,yv,0)!=yv.length)return null;if("Q"in Cl)return new Date(Cl.Q);"p"in Cl&&(Cl.H=Cl.H%12+Cl.p*12);if("V"in Cl){if(Cl.V<1||Cl.V>53)return null;"w"in Cl||(Cl.w=1);if("Z"in Cl){yv=dgw(xW(Cl.y));var a1=yv.getUTCDay();yv=a1>4||a1===0?fis.ceil(yv):fis(yv);yv=sU_.offset(yv,(Cl.V-1)*7);Cl.y=yv.getUTCFullYear();Cl.m=yv.getUTCMonth();Cl.d=yv.getUTCDate()+(Cl.w+6)%7}else yv=g8(xW(Cl.y)),a1=yv.getDay(),yv=a1>4||a1===0?oPb.ceil(yv):oPb(yv),yv=Ts2.offset(yv,
(Cl.V-1)*7),Cl.y=yv.getFullYear(),Cl.m=yv.getMonth(),Cl.d=yv.getDate()+(Cl.w+6)%7}else if("W"in Cl||"U"in Cl)"w"in Cl||(Cl.w="u"in Cl?Cl.u%7:"W"in Cl?1:0),a1="Z"in Cl?dgw(xW(Cl.y)).getUTCDay():g8(xW(Cl.y)).getDay(),Cl.m=0,Cl.d="W"in Cl?(Cl.w+6)%7+Cl.W*7-(a1+5)%7:Cl.w+Cl.U*7-(a1+6)%7;return"Z"in Cl?(Cl.H+=Cl.Z/100|0,Cl.M+=Cl.Z%100,dgw(Cl)):g8(Cl)}}
function L3(iq,g8,yv,Cl){for(var a1=0,A6=g8.length,D5=yv.length,HY;a1<A6;){if(Cl>=D5)return-1;HY=g8.charCodeAt(a1++);if(HY===37){if(HY=g8.charAt(a1++),HY=PI[HY in FlG?g8.charAt(a1++):HY],!HY||(Cl=HY(iq,yv,Cl))<0)return-1}else if(HY!=yv.charCodeAt(Cl++))return-1}return Cl}
var In=C.dateTime,Vb=C.date,mc=C.time,C3=C.periods,Dh=C.days,n3=C.shortDays,SW=C.months,Mh=C.shortMonths,ai=Le(C3),Tg=Dr(C3),kz=Le(Dh),NT=Dr(Dh),bP=Le(n3),Lh=Dr(n3),XU=Le(SW),Pa=Dr(SW),cX=Le(Mh),cB=Dr(Mh),Hf={a:function(iq){return n3[iq.getDay()]},
A:function(iq){return Dh[iq.getDay()]},
b:function(iq){return Mh[iq.getMonth()]},
B:function(iq){return SW[iq.getMonth()]},
c:null,d:eYh,e:eYh,f:mIg,H:bpl,I:Yjs,j:F$q,L:RYR,m:sOl,M:T6Y,p:function(iq){return C3[+(iq.getHours()>=12)]},
Q:GZG,s:CrB,S:eyW,u:Ry5,U:Gyl,V:Co5,w:lJX,W:UIs,x:null,X:null,y:wy9,Y:B69,Z:W$W,"%":liC},zi={a:function(iq){return n3[iq.getUTCDay()]},
A:function(iq){return Dh[iq.getUTCDay()]},
b:function(iq){return Mh[iq.getUTCMonth()]},
B:function(iq){return SW[iq.getUTCMonth()]},
c:null,d:UPC,e:UPC,f:qj9,H:AYq,I:$Il,j:rY$,L:w9Q,m:N6u,M:ip$,p:function(iq){return C3[+(iq.getUTCHours()>=12)]},
Q:GZG,s:CrB,S:fJG,u:or$,U:aJu,V:zyY,w:XyG,W:cYq,x:null,X:null,y:nrI,Y:tPG,Z:xPX,"%":liC},PI={a:function(iq,g8,yv){return(g8=bP.exec(g8.slice(yv)))?(iq.w=Lh[g8[0].toLowerCase()],yv+g8[0].length):-1},
A:function(iq,g8,yv){return(g8=kz.exec(g8.slice(yv)))?(iq.w=NT[g8[0].toLowerCase()],yv+g8[0].length):-1},
b:function(iq,g8,yv){return(g8=cX.exec(g8.slice(yv)))?(iq.m=cB[g8[0].toLowerCase()],yv+g8[0].length):-1},
B:function(iq,g8,yv){return(g8=XU.exec(g8.slice(yv)))?(iq.m=Pa[g8[0].toLowerCase()],yv+g8[0].length):-1},
c:function(iq,g8,yv){return L3(iq,In,g8,yv)},
d:Bs2,e:Bs2,f:LlX,H:Wl2,I:Wl2,j:DPY,L:SBX,m:QUs,M:JzI,p:function(iq,g8,yv){return(g8=ai.exec(g8.slice(yv)))?(iq.p=Tg[g8[0].toLowerCase()],yv+g8[0].length):-1},
Q:Kl5,s:OJX,S:ZJq,u:yzg,U:Iig,V:EPI,w:MZY,W:dPq,x:function(iq,g8,yv){return L3(iq,Vb,g8,yv)},
X:function(iq,g8,yv){return L3(iq,mc,g8,yv)},
y:Pr5,Y:jUG,Z:vPW,"%":VZ5};Hf.x=R(Vb,Hf);Hf.X=R(mc,Hf);Hf.c=R(In,Hf);zi.x=R(Vb,zi);zi.X=R(mc,zi);zi.c=R(In,zi);return{format:function(iq){var g8=R(iq,Hf);g8.toString=function(){return iq};
return g8},
parse:function(iq){var g8=W(iq,kyG);g8.toString=function(){return iq};
return g8},
utcFormat:function(iq){var g8=R(iq,zi);g8.toString=function(){return iq};
return g8},
utcParse:function(iq){var g8=W(iq,dgw);g8.toString=function(){return iq};
return g8}}}
function gO(C,R,W){var L3=C<0?"-":"";C=(L3?-C:C)+"";var In=C.length;return L3+(In<W?Array(W-In+1).join(R)+C:C)}
function hYs(C){return C.replace(HJs,"\\$&")}
function Le(C){return new RegExp("^(?:"+C.map(hYs).join("|")+")","i")}
function Dr(C){for(var R={},W=-1,L3=C.length;++W<L3;)R[C[W].toLowerCase()]=W;return R}
function MZY(C,R,W){return(R=jm.exec(R.slice(W,W+1)))?(C.w=+R[0],W+R[0].length):-1}
function yzg(C,R,W){return(R=jm.exec(R.slice(W,W+1)))?(C.u=+R[0],W+R[0].length):-1}
function Iig(C,R,W){return(R=jm.exec(R.slice(W,W+2)))?(C.U=+R[0],W+R[0].length):-1}
function EPI(C,R,W){return(R=jm.exec(R.slice(W,W+2)))?(C.V=+R[0],W+R[0].length):-1}
function dPq(C,R,W){return(R=jm.exec(R.slice(W,W+2)))?(C.W=+R[0],W+R[0].length):-1}
function jUG(C,R,W){return(R=jm.exec(R.slice(W,W+4)))?(C.y=+R[0],W+R[0].length):-1}
function Pr5(C,R,W){return(R=jm.exec(R.slice(W,W+2)))?(C.y=+R[0]+(+R[0]>68?1900:2E3),W+R[0].length):-1}
function vPW(C,R,W){return(R=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(R.slice(W,W+6)))?(C.Z=R[1]?0:-(R[2]+(R[3]||"00")),W+R[0].length):-1}
function QUs(C,R,W){return(R=jm.exec(R.slice(W,W+2)))?(C.m=R[0]-1,W+R[0].length):-1}
function Bs2(C,R,W){return(R=jm.exec(R.slice(W,W+2)))?(C.d=+R[0],W+R[0].length):-1}
function DPY(C,R,W){return(R=jm.exec(R.slice(W,W+3)))?(C.m=0,C.d=+R[0],W+R[0].length):-1}
function Wl2(C,R,W){return(R=jm.exec(R.slice(W,W+2)))?(C.H=+R[0],W+R[0].length):-1}
function JzI(C,R,W){return(R=jm.exec(R.slice(W,W+2)))?(C.M=+R[0],W+R[0].length):-1}
function ZJq(C,R,W){return(R=jm.exec(R.slice(W,W+2)))?(C.S=+R[0],W+R[0].length):-1}
function SBX(C,R,W){return(R=jm.exec(R.slice(W,W+3)))?(C.L=+R[0],W+R[0].length):-1}
function LlX(C,R,W){return(R=jm.exec(R.slice(W,W+6)))?(C.L=Math.floor(R[0]/1E3),W+R[0].length):-1}
function VZ5(C,R,W){return(C=uW$.exec(R.slice(W,W+1)))?W+C[0].length:-1}
function Kl5(C,R,W){return(R=jm.exec(R.slice(W)))?(C.Q=+R[0],W+R[0].length):-1}
function OJX(C,R,W){return(R=jm.exec(R.slice(W)))?(C.Q=+R[0]*1E3,W+R[0].length):-1}
function eYh(C,R){return gO(C.getDate(),R,2)}
function bpl(C,R){return gO(C.getHours(),R,2)}
function Yjs(C,R){return gO(C.getHours()%12||12,R,2)}
function F$q(C,R){return gO(1+Ts2.count(mK(C),C),R,3)}
function RYR(C,R){return gO(C.getMilliseconds(),R,3)}
function mIg(C,R){return RYR(C,R)+"000"}
function sOl(C,R){return gO(C.getMonth()+1,R,2)}
function T6Y(C,R){return gO(C.getMinutes(),R,2)}
function eyW(C,R){return gO(C.getSeconds(),R,2)}
function Ry5(C){C=C.getDay();return C===0?7:C}
function Gyl(C,R){return gO(gPq.count(mK(C),C),R,2)}
function Co5(C,R){var W=C.getDay();C=W>=4||W===0?aiO(C):aiO.ceil(C);return gO(aiO.count(mK(C),C)+(mK(C).getDay()===4),R,2)}
function lJX(C){return C.getDay()}
function UIs(C,R){return gO(oPb.count(mK(C),C),R,2)}
function wy9(C,R){return gO(C.getFullYear()%100,R,2)}
function B69(C,R){return gO(C.getFullYear()%1E4,R,4)}
function W$W(C){C=C.getTimezoneOffset();return(C>0?"-":(C*=-1,"+"))+gO(C/60|0,"0",2)+gO(C%60,"0",2)}
function UPC(C,R){return gO(C.getUTCDate(),R,2)}
function AYq(C,R){return gO(C.getUTCHours(),R,2)}
function $Il(C,R){return gO(C.getUTCHours()%12||12,R,2)}
function rY$(C,R){return gO(1+sU_.count(bE(C),C),R,3)}
function w9Q(C,R){return gO(C.getUTCMilliseconds(),R,3)}
function qj9(C,R){return w9Q(C,R)+"000"}
function N6u(C,R){return gO(C.getUTCMonth()+1,R,2)}
function ip$(C,R){return gO(C.getUTCMinutes(),R,2)}
function fJG(C,R){return gO(C.getUTCSeconds(),R,2)}
function or$(C){C=C.getUTCDay();return C===0?7:C}
function aJu(C,R){return gO(kZW.count(bE(C),C),R,2)}
function zyY(C,R){var W=C.getUTCDay();C=W>=4||W===0?zYG(C):zYG.ceil(C);return gO(zYG.count(bE(C),C)+(bE(C).getUTCDay()===4),R,2)}
function XyG(C){return C.getUTCDay()}
function cYq(C,R){return gO(fis.count(bE(C),C),R,2)}
function nrI(C,R){return gO(C.getUTCFullYear()%100,R,2)}
function tPG(C,R){return gO(C.getUTCFullYear()%1E4,R,4)}
function xPX(){return"+0000"}
function liC(){return"%"}
function GZG(C){return+C}
function CrB(C){return Math.floor(+C/1E3)}
function ji(C){for(var R=C.length/6|0,W=Array(R),L3=0;L3<R;)W[L3]="#"+C.slice(L3*6,++L3*6);return W}
function zS(C){return p9q(C[C.length-1])}
function P7w(C){var R=C.length;return function(W){return C[Math.max(0,Math.min(R-1,Math.floor(W*R)))]}}
function qBr(C){this._context=C}
function Az_(C){this._curve=C}
function $PA(C,R,W){var L3=C._x1-C._x0;R-=C._x1;var In=(C._y1-C._y0)/(L3||R<0&&-0);C=(W-C._y1)/(R||L3<0&&-0);return((In<0?-1:1)+(C<0?-1:1))*Math.min(Math.abs(In),Math.abs(C),.5*Math.abs((In*R+C*L3)/(L3+R)))||0}
function rzR(C,R){var W=C._x1-C._x0;return W?(3*(C._y1-C._y0)/W-R)/2:R}
function X90(C,R,W){var L3=C._x0,In=C._x1,Vb=C._y1,mc=(In-L3)/3;C._context.bezierCurveTo(L3+mc,C._y0+mc*R,In-mc,Vb-mc*W,In,Vb)}
function czs(C){this._context=C}
function NsB(C){this._context=C}
function S6(C,R,W){this.k=C;this.x=R;this.y=W}
(function(C){C.length===1&&(C=L(C));return{left:function(R,W,L3,In){L3==null&&(L3=0);In==null&&(In=R.length);for(;L3<In;){var Vb=L3+In>>>1;C(R[Vb],W)<0?L3=Vb+1:In=Vb}return L3},
right:function(R,W,L3,In){L3==null&&(L3=0);In==null&&(In=R.length);for(;L3<In;){var Vb=L3+In>>>1;C(R[Vb],W)>0?In=Vb:L3=Vb+1}return L3}}})(x);
var vhg={value:function(){}};
S.prototype=D.prototype={constructor:S,on:function(C,R){var W=this._,L3=Q(C+"",W),In,Vb=-1,mc=L3.length;if(arguments.length<2)for(;++Vb<mc;){var C3;if(C3=In=(C=L3[Vb]).type){a:{C3=W[In];for(var Dh=0,n3=C3.length;Dh<n3;++Dh)if((In=C3[Dh]).name===C.name){In=In.value;break a}In=void 0}C3=In}if(C3)return In}else{if(R!=null&&typeof R!=="function")throw Error("Ce`"+R);for(;++Vb<mc;)if(In=(C=L3[Vb]).type)W[In]=J(W[In],C.name,R);else if(R==null)for(In in W)W[In]=J(W[In],C.name,null);return this}},
copy:function(){var C={},R=this._,W;for(W in R)C[W]=R[W].slice();return new S(C)},
call:function(C,R){if((In=arguments.length-2)>0)for(var W=Array(In),L3=0,In,Vb;L3<In;++L3)W[L3]=arguments[L3+2];if(!this._.hasOwnProperty(C))throw Error("we`"+C);Vb=this._[C];L3=0;for(In=Vb.length;L3<In;++L3)Vb[L3].value.apply(R,W)},
apply:function(C,R,W){if(!this._.hasOwnProperty(C))throw Error("we`"+C);C=this._[C];for(var L3=0,In=C.length;L3<In;++L3)C[L3].value.apply(R,W)}};
var $v={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/"},iJi=function(C){return function(){return this.matches(C)}};
if(typeof document!=="undefined"){var QR=document.documentElement;if(!QR.matches){var mPX=QR.webkitMatchesSelector||QR.msMatchesSelector||QR.mozMatchesSelector||QR.oMatchesSelector;iJi=function(C){return function(){return mPX.call(this,C)}}}}var fiG=iJi;
H.prototype={constructor:H,appendChild:function(C){return this._parent.insertBefore(C,this._next)},
insertBefore:function(C,R){return this._parent.insertBefore(C,R)},
querySelector:function(C){return this._parent.querySelector(C)},
querySelectorAll:function(C){return this._parent.querySelectorAll(C)}};
var zyh={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(zyh={mouseenter:"mouseover",mouseleave:"mouseout"}));var V3W=[null];qh.prototype=g$.prototype={constructor:qh,select:function(C){typeof C!=="function"&&(C=V(C));for(var R=this._groups,W=R.length,L3=Array(W),In=0;In<W;++In)for(var Vb=R[In],mc=Vb.length,C3=L3[In]=Array(mc),Dh,n3,SW=0;SW<mc;++SW)(Dh=Vb[SW])&&(n3=C.call(Dh,Dh.__data__,SW,Vb))&&("__data__"in Dh&&(n3.__data__=Dh.__data__),C3[SW]=n3);return new qh(L3,
this._parents)},
filter:function(C){typeof C!=="function"&&(C=fiG(C));for(var R=this._groups,W=R.length,L3=Array(W),In=0;In<W;++In)for(var Vb=R[In],mc=Vb.length,C3=L3[In]=[],Dh,n3=0;n3<mc;++n3)(Dh=Vb[n3])&&C.call(Dh,Dh.__data__,n3,Vb)&&C3.push(Dh);return new qh(L3,this._parents)},
data:function(C,R){if(!C)return Tg=Array(this.size()),n3=-1,this.each(function(XU){Tg[++n3]=XU}),Tg;
var W=R?G:T,L3=this._parents,In=this._groups;typeof C!=="function"&&(C=k(C));for(var Vb=In.length,mc=Array(Vb),C3=Array(Vb),Dh=Array(Vb),n3=0;n3<Vb;++n3){var SW=L3[n3],Mh=In[n3],ai=Mh.length,Tg=C.call(SW,SW&&SW.__data__,n3,L3),kz=Tg.length,NT=C3[n3]=Array(kz),bP=mc[n3]=Array(kz);ai=Dh[n3]=Array(ai);W(SW,Mh,NT,bP,ai,Tg,R);Mh=SW=0;for(var Lh;SW<kz;++SW)if(ai=NT[SW]){for(SW>=Mh&&(Mh=SW+1);!(Lh=bP[Mh])&&++Mh<kz;);ai._next=Lh||null}}mc=new qh(mc,L3);mc._enter=C3;mc._exit=Dh;return mc},
enter:function(){return new qh(this._enter||this._groups.map(h),this._parents)},
exit:function(){return new qh(this._exit||this._groups.map(h),this._parents)},
merge:function(C){var R=this._groups;C=C._groups;for(var W=R.length,L3=Math.min(W,C.length),In=Array(W),Vb=0;Vb<L3;++Vb)for(var mc=R[Vb],C3=C[Vb],Dh=mc.length,n3=In[Vb]=Array(Dh),SW,Mh=0;Mh<Dh;++Mh)if(SW=mc[Mh]||C3[Mh])n3[Mh]=SW;for(;Vb<W;++Vb)In[Vb]=R[Vb];return new qh(In,this._parents)},
order:function(){for(var C=this._groups,R=-1,W=C.length;++R<W;)for(var L3=C[R],In=L3.length-1,Vb=L3[In],mc;--In>=0;)if(mc=L3[In])Vb&&Vb!==mc.nextSibling&&Vb.parentNode.insertBefore(mc,Vb),Vb=mc;return this},
sort:function(C){function R(Mh,ai){return Mh&&ai?C(Mh.__data__,ai.__data__):!Mh-!ai}
C||(C=U);for(var W=this._groups,L3=W.length,In=Array(L3),Vb=0;Vb<L3;++Vb){for(var mc=W[Vb],C3=mc.length,Dh=In[Vb]=Array(C3),n3,SW=0;SW<C3;++SW)if(n3=mc[SW])Dh[SW]=n3;Dh.sort(R)}return(new qh(In,this._parents)).order()},
call:function(){var C=arguments[0];arguments[0]=this;C.apply(null,arguments);return this},
nodes:function(){var C=Array(this.size()),R=-1;this.each(function(){C[++R]=this});
return C},
node:function(){for(var C=this._groups,R=0,W=C.length;R<W;++R)for(var L3=C[R],In=0,Vb=L3.length;In<Vb;++In){var mc=L3[In];if(mc)return mc}return null},
size:function(){var C=0;this.each(function(){++C});
return C},
empty:function(){return!this.node()},
each:function(C){for(var R=this._groups,W=0,L3=R.length;W<L3;++W)for(var In=R[W],Vb=0,mc=In.length,C3;Vb<mc;++Vb)(C3=In[Vb])&&C.call(C3,C3.__data__,Vb,In);return this},
attr:function(C,R){var W=Z(C);if(arguments.length<2){var L3=this.node();return W.local?L3.getAttributeNS(W.space,W.local):L3.getAttribute(W)}return this.each((R==null?W.local?X:l:typeof R==="function"?W.local?xf:z:W.local?N:f)(W,R))},
style:function(C,R,W){return arguments.length>1?this.each((R==null?K3:typeof R==="function"?kf:P4)(C,R,W==null?"":W)):H4(this.node(),C)},
property:function(C,R){return arguments.length>1?this.each((R==null?p3:typeof R==="function"?Rn:w0)(C,R)):this.node()[C]},
text:function(C){return arguments.length?this.each(C==null?lG:(typeof C==="function"?UR:xX)(C)):this.node().textContent},
html:function(C){return arguments.length?this.each(C==null?c4:(typeof C==="function"?GB:hr)(C)):this.node().innerHTML},
append:function(C){var R=typeof C==="function"?C:P(C);return this.select(function(){return this.appendChild(R.apply(this,arguments))})},
insert:function(C,R){var W=typeof C==="function"?C:P(C),L3=R==null?C2:typeof R==="function"?R:V(R);return this.select(function(){return this.insertBefore(W.apply(this,arguments),L3.apply(this,arguments)||null)})},
remove:function(){return this.each(X9)},
clone:function(C){return this.select(C?Zp:vs)},
datum:function(C){return arguments.length?this.property("__data__",C):this.node().__data__},
on:function(C,R,W){var L3=II(C+""),In=L3.length,Vb;if(arguments.length<2){var mc=this.node().__on;if(mc)for(var C3=0,Dh=mc.length,n3;C3<Dh;++C3){var SW=0;for(n3=mc[C3];SW<In;++SW)if((Vb=L3[SW]).type===n3.type&&Vb.name===n3.name)return n3.value}}else{mc=R?J5:jW;W==null&&(W=!1);for(SW=0;SW<In;++SW)this.each(mc(L3[SW],R,W));return this}},
dispatch:function(C,R){return this.each((typeof R==="function"?ER:zB)(C,R))}};
var heI=0;p2.prototype=function(){return new p2}.prototype={constructor:p2,
get:function(C){for(var R=this._;!(R in C);)if(!(C=C.parentNode))return;return C[R]},
set:function(C,R){return C[this._]=R},
remove:function(C){return this._ in C&&delete C[this._]},
toString:function(){return this._}};
var YY=1/.7,HvY=/^#([0-9a-f]{3})$/,urW=/^#([0-9a-f]{6})$/,ghs=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),kuq=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),p5u=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),mJg=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*\\)$"),
bvW=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),Y6X=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*\\)$"),XyW={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};
uG(x2,YX,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
uG(kX,oi,h5(x2,{brighter:function(C){C=C==null?YY:Math.pow(YY,C);return new kX(this.r*C,this.g*C,this.b*C,this.opacity)},
darker:function(C){C=C==null?.7:Math.pow(.7,C);return new kX(this.r*C,this.g*C,this.b*C,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"#"+n2(this.r)+n2(this.g)+n2(this.b)},
toString:function(){var C=this.opacity;C=isNaN(C)?1:Math.max(0,Math.min(1,C));return(C===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))+(C===1?")":", "+C+")")}}));
uG(nw,Ge,h5(x2,{brighter:function(C){C=C==null?YY:Math.pow(YY,C);return new nw(this.h,this.s,this.l*C,this.opacity)},
darker:function(C){C=C==null?.7:Math.pow(.7,C);return new nw(this.h,this.s,this.l*C,this.opacity)},
rgb:function(){var C=this.h%360+(this.h<0)*360,R=this.l,W=R+(R<.5?R:1-R)*(isNaN(C)||isNaN(this.s)?0:this.s);R=2*R-W;return new kX(nZ(C>=240?C-240:C+120,R,W),nZ(C,R,W),nZ(C<120?C+240:C-120,R,W),this.opacity)},
displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));
var cYh=Math.PI/180,xPH=180/Math.PI,tPW=4/29,kY=6/29,nri=3*kY*kY,F1u=kY*kY*kY;uG(sw,function(C,R,W,L3){return arguments.length===1?OO(C):new sw(C,R,W,L3==null?1:L3)},h5(x2,{brighter:function(C){return new sw(this.l+18*(C==null?1:C),this.a,this.b,this.opacity)},
darker:function(C){return new sw(this.l-18*(C==null?1:C),this.a,this.b,this.opacity)},
rgb:function(){var C=(this.l+16)/116,R=isNaN(this.a)?C:C+this.a/500,W=isNaN(this.b)?C:C-this.b/200;R=.96422*f3(R);C=1*f3(C);W=.82521*f3(W);return new kX(vC(3.1338561*R-1.6168667*C-.4906146*W),vC(-.9787684*R+1.9161415*C+.033454*W),vC(.0719453*R-.2289914*C+1.4052427*W),this.opacity)}}));
uG(HC,F9,h5(x2,{brighter:function(C){return new HC(this.h,this.c,this.l+18*(C==null?1:C),this.opacity)},
darker:function(C){return new HC(this.h,this.c,this.l-18*(C==null?1:C),this.opacity)},
rgb:function(){return OO(this).rgb()}}));
var LlH=1.78277*-.29227-.1347134789;uG(w$,VQ,h5(x2,{brighter:function(C){C=C==null?YY:Math.pow(YY,C);return new w$(this.h,this.s,this.l*C,this.opacity)},
darker:function(C){C=C==null?.7:Math.pow(.7,C);return new w$(this.h,this.s,this.l*C,this.opacity)},
rgb:function(){var C=isNaN(this.h)?0:(this.h+120)*cYh,R=+this.l,W=isNaN(this.s)?0:this.s*R*(1-R),L3=Math.cos(C);C=Math.sin(C);return new kX(255*(R+W*(-.14861*L3+1.78277*C)),255*(R+W*(-.29227*L3+-.90649*C)),255*(R+1.97294*L3*W),this.opacity)}}));
var Klr=function W(R){function L3(Vb,mc){var C3=In((Vb=oi(Vb)).r,(mc=oi(mc)).r),Dh=In(Vb.g,mc.g),n3=In(Vb.b,mc.b),SW=Xd(Vb.opacity,mc.opacity);return function(Mh){Vb.r=C3(Mh);Vb.g=Dh(Mh);Vb.b=n3(Mh);Vb.opacity=SW(Mh);return Vb+""}}
var In=ou(R);L3.gamma=W;return L3}(1),p9q=pG(function(R){var W=R.length-1;
return function(L3){var In=L3<=0?L3=0:L3>=1?(L3=1,W-1):Math.floor(L3*W),Vb=R[In],mc=R[In+1];return Hi((L3-In/W)*W,In>0?R[In-1]:2*Vb-mc,Vb,mc,In<W-1?R[In+2]:2*mc-Vb)}});
pG(function(R){var W=R.length;return function(L3){var In=Math.floor(((L3%=1)<0?++L3:L3)*W);return Hi((L3-In/W)*W,R[(In+W-1)%W],R[In%W],R[(In+1)%W],R[(In+2)%W])}});
var RYw=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,GZs=new RegExp(RYw.source,"g"),DPh=180/Math.PI,nP0={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},JU,tZO,oPQ,jE3,bJW=Uu(function(R){if(R==="none")return nP0;JU||(JU=document.createElement("DIV"),tZO=document.documentElement,oPQ=document.defaultView);JU.style.transform=R;R=oPQ.getComputedStyle(tZO.appendChild(JU),null).getPropertyValue("transform");tZO.removeChild(JU);R=R.slice(7,-1).split(",");return pl(+R[0],+R[1],+R[2],+R[3],
+R[4],+R[5])},"px, ","px)","deg)"),YBq=Uu(function(R){if(R==null)return nP0;
jE3||(jE3=document.createElementNS("http://www.w3.org/2000/svg","g"));jE3.setAttribute("transform",R);if(!(R=jE3.transform.baseVal.consolidate()))return nP0;R=R.matrix;return pl(R.a,R.b,R.c,R.d,R.e,R.f)},", ",")",")");
Ou(qe);Ou(Xd);Mp(qe);Mp(Xd);aD(qe);var xKp=aD(Xd),p9=0,zY=0,c0=0,KN3,X8,JEN=0,Qd=0,QEw=0,a$=typeof performance==="object"&&performance.now?performance:Date,SBH=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(R){setTimeout(R,17)};
sv.prototype=Wl.prototype={constructor:sv,restart:function(R,W,L3){if(typeof R!=="function")throw new TypeError("De");L3=(L3==null?$a():+L3)+(W==null?0:+W);this._next||X8===this||(X8?X8._next=this:KN3=this,X8=this);this._call=R;this._time=L3;AJ()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,AJ())}};
var Teg=D("start","end","interrupt"),eeI=[],Flq=g$.prototype.constructor,aid=0,FQ=g$.prototype;nJ.prototype=function(R){return g$().transition(R)}.prototype={constructor:nJ,
select:function(R){var W=this._name,L3=this._id;typeof R!=="function"&&(R=V(R));for(var In=this._groups,Vb=In.length,mc=Array(Vb),C3=0;C3<Vb;++C3)for(var Dh=In[C3],n3=Dh.length,SW=mc[C3]=Array(n3),Mh,ai,Tg=0;Tg<n3;++Tg)(Mh=Dh[Tg])&&(ai=R.call(Mh,Mh.__data__,Tg,Dh))&&("__data__"in Mh&&(ai.__data__=Mh.__data__),SW[Tg]=ai,CrN(SW[Tg],W,L3,Tg,SW,R2(Mh,L3)));return new nJ(mc,this._parents,W,L3)},
filter:function(R){typeof R!=="function"&&(R=fiG(R));for(var W=this._groups,L3=W.length,In=Array(L3),Vb=0;Vb<L3;++Vb)for(var mc=W[Vb],C3=mc.length,Dh=In[Vb]=[],n3,SW=0;SW<C3;++SW)(n3=mc[SW])&&R.call(n3,n3.__data__,SW,mc)&&Dh.push(n3);return new nJ(In,this._parents,this._name,this._id)},
merge:function(R){if(R._id!==this._id)throw Error();var W=this._groups;R=R._groups;for(var L3=W.length,In=Math.min(L3,R.length),Vb=Array(L3),mc=0;mc<In;++mc)for(var C3=W[mc],Dh=R[mc],n3=C3.length,SW=Vb[mc]=Array(n3),Mh,ai=0;ai<n3;++ai)if(Mh=C3[ai]||Dh[ai])SW[ai]=Mh;for(;mc<L3;++mc)Vb[mc]=W[mc];return new nJ(Vb,this._parents,this._name,this._id)},
selection:function(){return new Flq(this._groups,this._parents)},
transition:function(){for(var R=this._name,W=this._id,L3=++aid,In=this._groups,Vb=In.length,mc=0;mc<Vb;++mc)for(var C3=In[mc],Dh=C3.length,n3,SW=0;SW<Dh;++SW)if(n3=C3[SW]){var Mh=R2(n3,W);CrN(n3,R,L3,SW,C3,{time:Mh.time+Mh.delay+Mh.duration,delay:0,duration:Mh.duration,ease:Mh.ease})}return new nJ(In,this._parents,R,L3)},
call:FQ.call,nodes:FQ.nodes,node:FQ.node,size:FQ.size,empty:FQ.empty,each:FQ.each,on:function(R,W){var L3=this._id;return arguments.length<2?R2(this.node(),L3).on.on(R):this.each(aqX(L3,R,W))},
attr:function(R,W){var L3=Z(R),In=L3==="transform"?YBq:Jzi;return this.attrTween(R,typeof W==="function"?(L3.local?W15:Be3)(L3,In,UP4(this,"attr."+R,W)):W==null?(L3.local?lql:CeG)(L3):(L3.local?w53:UJq)(L3,In,W+""))},
attrTween:function(R,W){var L3="attr."+R;if(arguments.length<2)return(L3=this.tween(L3))&&L3._value;if(W==null)return this.tween(L3,null);if(typeof W!=="function")throw Error();var In=Z(R);return this.tween(L3,(In.local?q6q:AMq)(In,W))},
style:function(R,W,L3){var In=R==="transform"?bJW:Jzi;return W==null?this.styleTween(R,X59(R,In)).on("end.style."+R,cMY(R)):this.styleTween(R,typeof W==="function"?t3I(R,In,UP4(this,"style."+R,W)):nhG(R,In,W+""),L3)},
styleTween:function(R,W,L3){var In="style."+R;if(arguments.length<2)return(In=this.tween(In))&&In._value;if(W==null)return this.tween(In,null);if(typeof W!=="function")throw Error();return this.tween(In,xIs(R,W,L3==null?"":L3))},
text:function(R){return this.tween("text",typeof R==="function"?DIY(UP4(this,"text",R)):L$X(R==null?"":R+""))},
remove:function(){return this.on("end.remove",zeq(this._id))},
tween:function(R,W){var L3=this._id;if(arguments.length<2){L3=R2(this.node(),L3).tween;for(var In=0,Vb=L3.length,mc;In<Vb;++In)if((mc=L3[In]).name===R)return mc.value;return null}return this.each((W==null?Re9:Gus)(L3,R,W))},
delay:function(R){var W=this._id;return arguments.length?this.each((typeof R==="function"?$J5:rMY)(W,R)):R2(this.node(),W).delay},
duration:function(R){var W=this._id;return arguments.length?this.each((typeof R==="function"?NeX:ivY)(W,R)):R2(this.node(),W).duration},
ease:function(R){var W=this._id;return arguments.length?this.each(fqu(W,R)):R2(this.node(),W).ease}};
var Lw4={time:null,delay:0,duration:250,ease:function(R){return((R*=2)<=1?R*R*R:(R-=2)*R*R+2)/2}};
g$.prototype.transition=function(R){var W;if(R instanceof nJ){var L3=R._id;R=R._name}else L3=++aid,(W=Lw4).time=$a(),R=R==null?null:R+"";for(var In=this._groups,Vb=In.length,mc=0;mc<Vb;++mc)for(var C3=In[mc],Dh=C3.length,n3,SW=0;SW<Dh;++SW)if(n3=C3[SW]){var Mh=n3,ai=R,Tg=L3,kz=SW,NT=C3,bP;if(!(bP=W))a:{bP=void 0;for(var Lh=L3;!(bP=n3.__transition)||!(bP=bP[Lh]);)if(!(n3=n3.parentNode)){bP=(Lw4.time=$a(),Lw4);break a}}CrN(Mh,ai,Tg,kz,NT,bP)}return new nJ(In,this._parents,R,L3)};
["e","w"].map(w9b);["n","s"].map(w9b);"n e s w nw ne se sw".split(" ").map(w9b);Bs3.prototype=function(){return new Bs3}.prototype={constructor:Bs3,
moveTo:function(R,W){this._+="M"+(this._x0=this._x1=+R)+","+(this._y0=this._y1=+W)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(R,W){this._+="L"+(this._x1=+R)+","+(this._y1=+W)},
bezierCurveTo:function(R,W,L3,In,Vb,mc){this._+="C"+ +R+","+ +W+","+ +L3+","+ +In+","+(this._x1=+Vb)+","+(this._y1=+mc)},
rect:function(R,W,L3,In){this._+="M"+(this._x0=this._x1=+R)+","+(this._y0=this._y1=+W)+"h"+ +L3+"v"+ +In+"h"+-L3+"Z"},
toString:function(){return this._}};
OK3.prototype=OJH.prototype={constructor:OK3,has:function(R){return" "+R in this},
get:function(R){return this[" "+R]},
set:function(R,W){this[" "+R]=W;return this},
remove:function(R){R=" "+R;return R in this&&delete this[R]},
clear:function(){for(var R in this)R[0]===" "&&delete this[R]},
keys:function(){var R=[],W;for(W in this)W[0]===" "&&R.push(W.slice(1));return R},
values:function(){var R=[],W;for(W in this)W[0]===" "&&R.push(this[W]);return R},
entries:function(){var R=[],W;for(W in this)W[0]===" "&&R.push({key:W.slice(1),value:this[W]});return R},
size:function(){var R=0,W;for(W in this)W[0]===" "&&++R;return R},
empty:function(){for(var R in this)if(R[0]===" ")return!1;return!0},
each:function(R){for(var W in this)W[0]===" "&&R(this[W],W.slice(1),this)}};
var Z1=OJH.prototype;ZK4.prototype=function(R,W){var L3=new ZK4;if(R instanceof ZK4)R.each(function(mc){L3.add(mc)});
else if(R){var In=-1,Vb=R.length;if(W==null)for(;++In<Vb;)L3.add(R[In]);else for(;++In<Vb;)L3.add(W(R[In],In,R))}return L3}.prototype={constructor:ZK4,
has:Z1.has,add:function(R){this[" "+R]=R;return this},
remove:Z1.remove,clear:Z1.clear,values:Z1.keys,size:Z1.size,empty:Z1.empty,each:Z1.each};var IiB={},Wl3={},sU3=yzB(",").parse,Tsl=yzB("\t").parse;EPi(sU3);EPi(Tsl);var f$=function(R,W,L3){W=new qBG(W==null?K$W:W,L3==null?Opq:L3,NaN,NaN,NaN,NaN);return R==null?W:W.addAll(R)}.prototype=qBG.prototype;
f$.copy=function(){var R=new qBG(this._x,this._y,this._x0,this._y0,this._x1,this._y1),W=this._root,L3,In;if(!W)return R;if(!W.length)return R._root=dPG(W),R;for(L3=[{source:W,target:R._root=Array(4)}];W=L3.pop();)for(var Vb=0;Vb<4;++Vb)if(In=W.source[Vb])In.length?L3.push({source:In,target:W.target[Vb]=Array(4)}):W.target[Vb]=dPG(In);return R};
f$.add=function(R){var W=+this._x.call(null,R),L3=+this._y.call(null,R);return MZh(this.cover(W,L3),W,L3,R)};
f$.addAll=function(R){var W,L3,In=R.length,Vb,mc,C3=Array(In),Dh=Array(In),n3=Infinity,SW=Infinity,Mh=-Infinity,ai=-Infinity;for(L3=0;L3<In;++L3)isNaN(Vb=+this._x.call(null,W=R[L3]))||isNaN(mc=+this._y.call(null,W))||(C3[L3]=Vb,Dh[L3]=mc,Vb<n3&&(n3=Vb),Vb>Mh&&(Mh=Vb),mc<SW&&(SW=mc),mc>ai&&(ai=mc));Mh<n3&&(n3=this._x0,Mh=this._x1);ai<SW&&(SW=this._y0,ai=this._y1);this.cover(n3,SW).cover(Mh,ai);for(L3=0;L3<In;++L3)MZh(this,C3[L3],Dh[L3],R[L3]);return this};
f$.cover=function(R,W){if(isNaN(R=+R)||isNaN(W=+W))return this;var L3=this._x0,In=this._y0,Vb=this._x1,mc=this._y1;if(isNaN(L3))Vb=(L3=Math.floor(R))+1,mc=(In=Math.floor(W))+1;else if(L3>R||R>Vb||In>W||W>mc){var C3=Vb-L3,Dh=this._root,n3;switch(n3=(W<(In+mc)/2)<<1|R<(L3+Vb)/2){case 0:do{var SW=Array(4);SW[n3]=Dh;Dh=SW}while(C3*=2,Vb=L3+C3,mc=In+C3,R>Vb||W>mc);break;case 1:do SW=Array(4),SW[n3]=Dh,Dh=SW;while(C3*=2,L3=Vb-C3,mc=In+C3,L3>R||W>mc);break;case 2:do SW=Array(4),SW[n3]=Dh,Dh=SW;while(C3*=
2,Vb=L3+C3,In=mc-C3,R>Vb||In>W);break;case 3:do SW=Array(4),SW[n3]=Dh,Dh=SW;while(C3*=2,L3=Vb-C3,In=mc-C3,L3>R||In>W)}this._root&&this._root.length&&(this._root=Dh)}else return this;this._x0=L3;this._y0=In;this._x1=Vb;this._y1=mc;return this};
f$.data=function(){var R=[];this.visit(function(W){if(!W.length){do R.push(W.data);while(W=W.next)}});
return R};
f$.extent=function(R){return arguments.length?this.cover(+R[0][0],+R[0][1]).cover(+R[1][0],+R[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
f$.find=function(R,W,L3){var In=this._x0,Vb=this._y0,mc,C3,Dh,n3,SW=this._x1,Mh=this._y1,ai=[],Tg=this._root,kz;Tg&&ai.push(new iN(Tg,In,Vb,SW,Mh));L3==null?L3=Infinity:(In=R-L3,Vb=W-L3,SW=R+L3,Mh=W+L3,L3*=L3);for(;kz=ai.pop();)if(!(!(Tg=kz.node)||(mc=kz.x0)>SW||(C3=kz.y0)>Mh||(Dh=kz.x1)<In||(n3=kz.y1)<Vb))if(Tg.length){kz=(mc+Dh)/2;var NT=(C3+n3)/2;ai.push(new iN(Tg[3],kz,NT,Dh,n3),new iN(Tg[2],mc,NT,kz,n3),new iN(Tg[1],kz,C3,Dh,NT),new iN(Tg[0],mc,C3,kz,NT));if(Tg=(W>=NT)<<1|R>=kz)kz=ai[ai.length-
1],ai[ai.length-1]=ai[ai.length-1-Tg],ai[ai.length-1-Tg]=kz}else if(kz=R-+this._x.call(null,Tg.data),NT=W-+this._y.call(null,Tg.data),kz=kz*kz+NT*NT,kz<L3){var bP=Math.sqrt(L3=kz);In=R-bP;Vb=W-bP;SW=R+bP;Mh=W+bP;bP=Tg.data}return bP};
f$.remove=function(R){if(isNaN(n3=+this._x.call(null,R))||isNaN(SW=+this._y.call(null,R)))return this;var W,L3=this._root,In,Vb=this._x0,mc=this._y0,C3=this._x1,Dh=this._y1,n3,SW,Mh,ai,Tg,kz,NT;if(!L3)return this;if(L3.length)for(;;){(Tg=n3>=(Mh=(Vb+C3)/2))?Vb=Mh:C3=Mh;(kz=SW>=(ai=(mc+Dh)/2))?mc=ai:Dh=ai;if(!(W=L3,L3=L3[NT=kz<<1|Tg]))return this;if(!L3.length)break;if(W[NT+1&3]||W[NT+2&3]||W[NT+3&3]){var bP=W;var Lh=NT}}for(;L3.data!==R;)if(!(In=L3,L3=L3.next))return this;(R=L3.next)&&delete L3.next;
if(In)return R?In.next=R:delete In.next,this;if(!W)return this._root=R,this;R?W[NT]=R:delete W[NT];(L3=W[0]||W[1]||W[2]||W[3])&&L3===(W[3]||W[2]||W[1]||W[0])&&!L3.length&&(bP?bP[Lh]=L3:this._root=L3);return this};
f$.removeAll=function(R){for(var W=0,L3=R.length;W<L3;++W)this.remove(R[W]);return this};
f$.root=function(){return this._root};
f$.size=function(){var R=0;this.visit(function(W){if(!W.length){do++R;while(W=W.next)}});
return R};
f$.visit=function(R){var W=[],L3,In=this._root,Vb,mc,C3,Dh,n3;for(In&&W.push(new iN(In,this._x0,this._y0,this._x1,this._y1));L3=W.pop();)if(!R(In=L3.node,mc=L3.x0,C3=L3.y0,Dh=L3.x1,n3=L3.y1)&&In.length){L3=(mc+Dh)/2;var SW=(C3+n3)/2;(Vb=In[3])&&W.push(new iN(Vb,L3,SW,Dh,n3));(Vb=In[2])&&W.push(new iN(Vb,mc,SW,L3,n3));(Vb=In[1])&&W.push(new iN(Vb,L3,C3,Dh,SW));(Vb=In[0])&&W.push(new iN(Vb,mc,C3,L3,SW))}};
f$.visitAfter=function(R){var W=[],L3=[],In;for(this._root&&W.push(new iN(this._root,this._x0,this._y0,this._x1,this._y1));In=W.pop();){var Vb=In.node;if(Vb.length){var mc,C3=In.x0,Dh=In.y0,n3=In.x1,SW=In.y1,Mh=(C3+n3)/2,ai=(Dh+SW)/2;(mc=Vb[0])&&W.push(new iN(mc,C3,Dh,Mh,ai));(mc=Vb[1])&&W.push(new iN(mc,Mh,Dh,n3,ai));(mc=Vb[2])&&W.push(new iN(mc,C3,ai,Mh,SW));(mc=Vb[3])&&W.push(new iN(mc,Mh,ai,n3,SW))}L3.push(In)}for(;In=L3.pop();)R(In.node,In.x0,In.y0,In.x1,In.y1);return this};
f$.x=function(R){return arguments.length?(this._x=R,this):this._x};
f$.y=function(R){return arguments.length?(this._y=R,this):this._y};
var Er5=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;Azc.prototype=$P0.prototype;$P0.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 VZr,hYC={"%":function(R,W){return(R*100).toFixed(W)},
b:function(R){return Math.round(R).toString(2)},
c:function(R){return R+""},
d:function(R){return Math.round(R).toString(10)},
e:function(R,W){return R.toExponential(W)},
f:function(R,W){return R.toFixed(W)},
g:function(R,W){return R.toPrecision(W)},
o:function(R){return Math.round(R).toString(8)},
p:function(R,W){return Prr(R*100,W)},
r:Prr,s:function(R,W){var L3=yEf(R,W);if(!L3)return R+"";var In=L3[0];L3=L3[1];L3=L3-(VZr=Math.max(-8,Math.min(8,Math.floor(L3/3)))*3)+1;var Vb=In.length;return L3===Vb?In:L3>Vb?In+Array(L3-Vb+1).join("0"):L3>0?In.slice(0,L3)+"."+In.slice(L3):"0."+Array(1-L3).join("0")+yEf(R,Math.max(0,W+L3-1))[0]},
X:function(R){return Math.round(R).toString(16).toUpperCase()},
x:function(R){return Math.round(R).toString(16)}},vPQ="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),eYq;
(function(R){return eYq=MPu(R)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});Fq.prototype={constructor:Fq,reset:function(){this.s=this.t=0},
add:function(R){HJC(vgw,R,this.t);HJC(this,vgw.s,this.s);this.s?this.t+=vgw.t:this.s=vgw.t},
valueOf:function(){return this.s}};
var vgw=new Fq,$3=Math.PI,rV=$3/2,zYr=$3/4,RYu=$3*2,DKb=$3/180,tz=Math.abs,SVp=Math.atan,bJQ=Math.atan2,Nk=Math.cos,Y8=Math.sin,EgN=Math.sqrt;new Fq;new Fq;new Fq;var QkN=new Fq;(function(R,W,L3,In){return function(Vb){function mc(cB,Hf){R(cB,Hf)&&Vb.point(cB,Hf)}
function C3(cB,Hf){Tg.point(cB,Hf)}
function Dh(){cX.point=C3;Tg.lineStart()}
function n3(){cX.point=mc;Tg.lineEnd()}
function SW(cB,Hf){Pa.push([cB,Hf]);NT.point(cB,Hf)}
function Mh(){NT.lineStart();Pa=[]}
function ai(){SW(Pa[0][0],Pa[0][1]);NT.lineEnd();var cB=NT.clean(),Hf=kz.result(),zi=Hf.length,PI;Pa.pop();Lh.push(Pa);Pa=null;if(zi)if(cB&1){if(zi=Hf[0],(Hf=zi.length-1)>0){bP||(Vb.polygonStart(),bP=!0);Vb.lineStart();for(cB=0;cB<Hf;++cB)Vb.point((PI=zi[cB])[0],PI[1]);Vb.lineEnd()}}else zi>1&&cB&2&&Hf.push(Hf.pop().concat(Hf.shift())),XU.push(Hf.filter(vr3))}
var Tg=W(Vb),kz=Po9(),NT=W(kz),bP=!1,Lh,XU,Pa,cX={point:mc,lineStart:Dh,lineEnd:n3,polygonStart:function(){cX.point=SW;cX.lineStart=Mh;cX.lineEnd=ai;XU=[];Lh=[]},
polygonEnd:function(){cX.point=mc;cX.lineStart=Dh;cX.lineEnd=n3;var cB=XU,Hf=cB.length;var zi=-1;for(var PI=0,iq,g8;++zi<Hf;)PI+=cB[zi].length;for(iq=Array(PI);--Hf>=0;)for(g8=cB[Hf],zi=g8.length;--zi>=0;)iq[--PI]=g8[zi];XU=iq;cB=Lh;Hf=In[0];PI=In[1];var yv=Y8(PI);zi=[Y8(Hf),-Nk(Hf),0];g8=iq=0;QkN.reset();yv===1?PI=rV+1E-6:yv===-1&&(PI=-rV-1E-6);yv=0;for(var Cl=cB.length;yv<Cl;++yv)if(A6=(a1=cB[yv]).length){var a1,A6,D5=a1[A6-1],HY=D5[0],Ja=D5[1]/2+zYr,VVh=Y8(Ja),X9W=Nk(Ja);for(Ja=0;Ja<A6;++Ja,HY=
JTs,VVh=czG,X9W=Ke,D5=h3b){var h3b=a1[Ja],JTs=h3b[0];Ke=h3b[1]/2+zYr;var czG=Y8(Ke),Ke=Nk(Ke),so=JTs-HY,Kww=so>=0?1:-1,Of3=Kww*so,HKG=Of3>$3;VVh*=czG;QkN.add(bJQ(VVh*Kww*Y8(Of3),X9W*Ke+VVh*Nk(Of3)));iq+=HKG?so+Kww*RYu:so;HKG^HY>=Hf^JTs>=Hf&&(D5=gPG(uWA(D5),uWA(h3b)),kZQ(D5),HY=gPG(zi,D5),kZQ(HY),HY=(HKG^so>=0?-1:1)*IAh(HY[2]),PI>HY||PI===HY&&(D5[0]||D5[1]))&&(g8+=HKG^so>=0?1:-1)}}cB=(iq<-1E-6||iq<1E-6&&QkN<-1E-6)^g8&1;XU.length?(bP||(Vb.polygonStart(),bP=!0),jO5(XU,VPG,cB,L3,Vb)):cB&&(bP||(Vb.polygonStart(),
bP=!0),Vb.lineStart(),L3(null,null,1,Vb),Vb.lineEnd());bP&&(Vb.polygonEnd(),bP=!1);XU=Lh=null},
sphere:function(){Vb.polygonStart();Vb.lineStart();L3(null,null,1,Vb);Vb.lineEnd();Vb.polygonEnd()}};
return cX}})(function(){return!0},function(R){var W=NaN,L3=NaN,In=NaN,Vb;
return{lineStart:function(){R.lineStart();Vb=1},
point:function(mc,C3){var Dh=mc>0?$3:-$3,n3=tz(mc-W);if(tz(n3-$3)<1E-6)R.point(W,L3=(L3+C3)/2>0?rV:-rV),R.point(In,L3),R.lineEnd(),R.lineStart(),R.point(Dh,L3),R.point(mc,L3),Vb=0;else if(In!==Dh&&n3>=$3){tz(W-In)<1E-6&&(W-=In*1E-6);tz(mc-Dh)<1E-6&&(mc-=Dh*1E-6);n3=W;var SW=L3,Mh=mc,ai,Tg,kz=Y8(n3-Mh);L3=tz(kz)>1E-6?SVp((Y8(SW)*(Tg=Nk(C3))*Y8(Mh)-Y8(C3)*(ai=Nk(SW))*Y8(n3))/(ai*Tg*kz)):(SW+C3)/2;R.point(In,L3);R.lineEnd();R.lineStart();R.point(Dh,L3);Vb=0}R.point(W=mc,L3=C3);In=Dh},
lineEnd:function(){R.lineEnd();W=L3=NaN},
clean:function(){return 2-Vb}}},function(R,W,L3,In){R==null?(L3*=rV,In.point(-$3,L3),In.point(0,L3),In.point($3,L3),In.point($3,0),In.point($3,-L3),In.point(0,-L3),In.point(-$3,-L3),In.point(-$3,0),In.point(-$3,L3)):tz(R[0]-W[0])>1E-6?(R=R[0]<W[0]?$3:-$3,L3=L3*R/2,In.point(-R,L3),In.point(0,L3),In.point(R,L3)):In.point(W[0],W[1])},[-$3,
-rV]);new Fq;new Fq;new Fq;new Fq;rzw.prototype={constructor:rzw,point:function(R,W){this.stream.point(R,W)},
sphere:function(){this.stream.sphere()},
lineStart:function(){this.stream.lineStart()},
lineEnd:function(){this.stream.lineEnd()},
polygonStart:function(){this.stream.polygonStart()},
polygonEnd:function(){this.stream.polygonEnd()}};
Nk(30*DKb);(function(R){return function(W){var L3=new rzw,In;for(In in R)L3[In]=R[In];L3.stream=W;return L3}})({point:function(R,W){this.stream.point(R*DKb,W*DKb)}});
mPH(function(R){return EgN(2/(1+R))}).invert=nx(function(R){return 2*IAh(R/2)});
mPH(function(R){return(R=R>1?0:R<-1?$3:Math.acos(R))&&R/Y8(R)}).invert=nx(function(R){return R});
EgN(3);nx(SVp);nx(IAh);nx(function(R){return 2*SVp(R)});
tn.prototype=YBh.prototype={constructor:tn,count:function(){return this.eachAfter(hy5)},
each:function(R){var W,L3=[this],In;do{var Vb=L3.reverse();for(L3=[];W=Vb.pop();)if(R(W),W=W.children){var mc=0;for(In=W.length;mc<In;++mc)L3.push(W[mc])}}while(L3.length);return this},
eachAfter:function(R){for(var W,L3=[this],In=[],Vb,mc;W=L3.pop();)if(In.push(W),W=W.children)for(Vb=0,mc=W.length;Vb<mc;++Vb)L3.push(W[Vb]);for(;W=In.pop();)R(W);return this},
eachBefore:function(R){for(var W,L3=[this],In;W=L3.pop();)if(R(W),W=W.children)for(In=W.length-1;In>=0;--In)L3.push(W[In]);return this},
sum:function(R){return this.eachAfter(function(W){for(var L3=+R(W.data)||0,In=W.children,Vb=In&&In.length;--Vb>=0;)L3+=In[Vb].value;W.value=L3})},
sort:function(R){return this.eachBefore(function(W){W.children&&W.children.sort(R)})},
path:function(R){var W=this;var L3=W;var In=R;if(L3!==In){var Vb=L3.ancestors(),mc=In.ancestors(),C3=null;L3=Vb.pop();for(In=mc.pop();L3===In;)C3=L3,L3=Vb.pop(),In=mc.pop();L3=C3}for(In=[W];W!==L3;)W=W.parent,In.push(W);for(W=In.length;R!==L3;)In.splice(W,0,R),R=R.parent;return In},
ancestors:function(){for(var R=this,W=[R];R=R.parent;)W.push(R);return W},
links:function(){var R=this,W=[];R.each(function(L3){L3!==R&&W.push({source:L3.parent,target:L3})});
return W},
copy:function(){return YBh(this).eachBefore(grI)}};
(function(R,W){this._=R;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=W}).prototype=Object.create(tn.prototype);
var NsN=new Date,iJn=new Date,nPW=E8(function(){},function(R,W){R.setTime(+R+W)},function(R,W){return W-R});
nPW.every=function(R){R=Math.floor(R);return isFinite(R)&&R>0?R>1?E8(function(W){W.setTime(Math.floor(W/R)*R)},function(W,L3){W.setTime(+W+L3*R)},function(W,L3){return(L3-W)/R}):nPW:null};
E8(function(R){R.setTime(Math.floor(R/1E3)*1E3)},function(R,W){R.setTime(+R+W*1E3)},function(R,W){return(W-R)/1E3},function(R){return R.getUTCSeconds()});
E8(function(R){R.setTime(Math.floor(R/6E4)*6E4)},function(R,W){R.setTime(+R+W*6E4)},function(R,W){return(W-R)/6E4},function(R){return R.getMinutes()});
E8(function(R){var W=R.getTimezoneOffset()*6E4%36E5;W<0&&(W+=36E5);R.setTime(Math.floor((+R-W)/36E5)*36E5+W)},function(R,W){R.setTime(+R+W*36E5)},function(R,W){return(W-R)/36E5},function(R){return R.getHours()});
var Ts2=E8(function(R){R.setHours(0,0,0,0)},function(R,W){R.setDate(R.getDate()+W)},function(R,W){return(W-R-(W.getTimezoneOffset()-R.getTimezoneOffset())*6E4)/864E5},function(R){return R.getDate()-1}),gPq=Kz(0),oPb=Kz(1);
Kz(2);Kz(3);var aiO=Kz(4);Kz(5);Kz(6);E8(function(R){R.setDate(1);R.setHours(0,0,0,0)},function(R,W){R.setMonth(R.getMonth()+W)},function(R,W){return W.getMonth()-R.getMonth()+(W.getFullYear()-R.getFullYear())*12},function(R){return R.getMonth()});
var mK=E8(function(R){R.setMonth(0,1);R.setHours(0,0,0,0)},function(R,W){R.setFullYear(R.getFullYear()+W)},function(R,W){return W.getFullYear()-R.getFullYear()},function(R){return R.getFullYear()});
mK.every=function(R){return isFinite(R=Math.floor(R))&&R>0?E8(function(W){W.setFullYear(Math.floor(W.getFullYear()/R)*R);W.setMonth(0,1);W.setHours(0,0,0,0)},function(W,L3){W.setFullYear(W.getFullYear()+L3*R)}):null};
E8(function(R){R.setUTCSeconds(0,0)},function(R,W){R.setTime(+R+W*6E4)},function(R,W){return(W-R)/6E4},function(R){return R.getUTCMinutes()});
E8(function(R){R.setUTCMinutes(0,0,0)},function(R,W){R.setTime(+R+W*36E5)},function(R,W){return(W-R)/36E5},function(R){return R.getUTCHours()});
var sU_=E8(function(R){R.setUTCHours(0,0,0,0)},function(R,W){R.setUTCDate(R.getUTCDate()+W)},function(R,W){return(W-R)/864E5},function(R){return R.getUTCDate()-1}),kZW=OM(0),fis=OM(1);
OM(2);OM(3);var zYG=OM(4);OM(5);OM(6);E8(function(R){R.setUTCDate(1);R.setUTCHours(0,0,0,0)},function(R,W){R.setUTCMonth(R.getUTCMonth()+W)},function(R,W){return W.getUTCMonth()-R.getUTCMonth()+(W.getUTCFullYear()-R.getUTCFullYear())*12},function(R){return R.getUTCMonth()});
var bE=E8(function(R){R.setUTCMonth(0,1);R.setUTCHours(0,0,0,0)},function(R,W){R.setUTCFullYear(R.getUTCFullYear()+W)},function(R,W){return W.getUTCFullYear()-R.getUTCFullYear()},function(R){return R.getUTCFullYear()});
bE.every=function(R){return isFinite(R=Math.floor(R))&&R>0?E8(function(W){W.setUTCFullYear(Math.floor(W.getUTCFullYear()/R)*R);W.setUTCMonth(0,1);W.setUTCHours(0,0,0,0)},function(W,L3){W.setUTCFullYear(W.getUTCFullYear()+L3*R)}):null};
var FlG={"-":"",_:" ",0:"0"},jm=/^\s*\d+/,uW$=/^%/,HJs=/[\\^$*+?|[\]().{}]/g,ugO;(function(R){ugO=pyl(R);oe2=ugO.utcFormat;asC=ugO.utcParse;return ugO})({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||oe2("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||asC("%Y-%m-%dT%H:%M:%S.%LZ");ji("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
ji("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");ji("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");ji("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");ji("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");ji("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");ji("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
ji("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");ji("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");ji("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");ji("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");ji("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var GZq=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(ji);zS(GZq);var Crg=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(ji);zS(Crg);var lis=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(ji);zS(lis);var UPs=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(ji);
zS(UPs);var w9W=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(ji);zS(w9W);var Bsl=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(ji);zS(Bsl);var Wll=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(ji);zS(Wll);var qB5=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(ji);zS(qB5);var Az3=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(ji);zS(Az3);var $P$=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(ji);zS($P$);var rzu=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(ji);zS(rzu);var Nsg=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(ji);zS(Nsg);var iJI=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(ji);zS(iJI);var fiq=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(ji);zS(fiq);var oPW=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(ji);zS(oPW);var ail=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(ji);zS(ail);var zY5=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(ji);zS(zY5);var X9G=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(ji);zS(X9G);var czq=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(ji);zS(czq);var nPG=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(ji);zS(nPG);var tZl=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(ji);zS(tZl);var xKY=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(ji);zS(xKY);var Lws=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(ji);zS(Lws);var DKW=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(ji);zS(DKW);var SVY=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(ji);zS(SVY);var Qkg=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(ji);zS(Qkg);var JTq=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(ji);zS(JTq);xKp(VQ(300,.5,0),VQ(-240,.5,1));xKp(VQ(-100,.75,.35),VQ(80,1.5,.8));xKp(VQ(260,.75,.35),VQ(80,1.5,.8));VQ();oi();P7w(ji("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
P7w(ji("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
P7w(ji("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
P7w(ji("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
qBr.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(R,W){R=+R;W=+W;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(R,W):this._context.moveTo(R,W);break;case 1:this._point=2;default:this._context.lineTo(R,W)}}};
(function(R){function W(L3){return new Az_(R(L3))}
W._curve=R;return W})(function(R){return new qBr(R)});
Az_.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(R,W){this._curve.point(W*Math.sin(R),W*-Math.cos(R))}};
czs.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:X90(this,this._t0,rzR(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(R,W){var L3=NaN;R=+R;W=+W;if(R!==this._x1||W!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(R,W):this._context.moveTo(R,W);break;case 1:this._point=2;break;case 2:this._point=3;X90(this,rzR(this,L3=$PA(this,R,W)),L3);break;default:X90(this,this._t0,L3=$PA(this,R,W))}this._x0=this._x1;this._x1=R;this._y0=this._y1;this._y1=W;this._t0=L3}}};
(function(R){this._context=new NsB(R)}.prototype=Object.create(czs.prototype)).point=function(R,W){czs.prototype.point.call(this,W,R)};
NsB.prototype={moveTo:function(R,W){this._context.moveTo(W,R)},
closePath:function(){this._context.closePath()},
lineTo:function(R,W){this._context.lineTo(W,R)},
bezierCurveTo:function(R,W,L3,In,Vb,mc){this._context.bezierCurveTo(W,R,In,L3,mc,Vb)}};
S6.prototype={constructor:S6,scale:function(R){return R===1?this:new S6(this.k*R,this.x,this.y)},
translate:function(R,W){return R===0&W===0?this:new S6(this.k,this.x+this.k*R,this.y+this.k*W)},
apply:function(R){return[R[0]*this.k+this.x,R[1]*this.k+this.y]},
invert:function(R){return[(R[0]-this.x)/this.k,(R[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new S6(1,0,0);Kdf=YX;$v.svg=$v.svg;$v.xhtml=$v.xhtml;$v.xlink=$v.xlink;$v.xml=$v.xml;$v.xmlns=$v.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 z6R="hammer_"+(Math.random()*1E6|0),XX2=function(){var x=document||document;if(!x[z6R]){var L=function(){(function(D,S,Q,J){function Z(sw,W4,f3){return setTimeout(h(sw,f3),W4)}
function y(sw,W4,f3){return Array.isArray(sw)?(E(sw,f3[W4],f3),!0):!1}
function E(sw,W4,f3){var vC;if(sw)if(sw.forEach)sw.forEach(W4,f3);else if(sw.length!==J){var Ps=0;for(vC=sw.length;Ps<vC;Ps++)W4.call(f3,sw[Ps],Ps,sw)}else for(Ps in sw)sw.hasOwnProperty(Ps)&&W4.call(f3,sw[Ps],Ps,sw)}
function P(sw,W4,f3){for(var vC=Object.keys(W4),Ps=0,eN=vC.length;Ps<eN;Ps++)if(!f3||f3&&sw[vC[Ps]]===J)sw[vC[Ps]]=W4[vC[Ps]];return sw}
function v(sw,W4){return P(sw,W4,!0)}
function V(sw,W4,f3){W4=W4.prototype;var vC=sw.prototype=Object.create(W4);vC.constructor=sw;vC._super=W4;f3&&P(vC,f3)}
function h(sw,W4){return function(){return sw.apply(W4,arguments)}}
function H(sw,W4){return typeof sw=="function"?sw.apply(W4?W4[0]||J:J,W4):sw}
function k(sw,W4,f3){E(G(W4),function(vC){sw.addEventListener(vC,f3,!1)})}
function T(sw,W4,f3){E(G(W4),function(vC){sw.removeEventListener(vC,f3,!1)})}
function G(sw){return sw.trim().split(/\s+/g)}
function U(sw,W4,f3){if(sw.indexOf&&!f3)return sw.indexOf(W4);for(var vC=0,Ps=sw.length;vC<Ps;vC++)if(f3&&sw[vC][f3]==W4||!f3&&sw[vC]===W4)return vC;return-1}
function l(sw,W4,f3){for(var vC=[],Ps=[],eN=0,F9=sw.length;eN<F9;eN++){var HC=W4?sw[eN][W4]:sw[eN];U(Ps,HC)<0&&vC.push(sw[eN]);Ps[eN]=HC}f3&&(vC=W4?vC.sort(function(VQ,w$){return VQ[W4]>w$[W4]}):vC.sort());
return vC}
function X(sw,W4){for(var f3,vC=W4[0].toUpperCase()+W4.slice(1),Ps=0,eN=ER.length;Ps<eN;Ps++)if(f3=(f3=ER[Ps])?f3+vC:W4,f3 in sw)return f3;return J}
function f(sw,W4){var f3=this;this.manager=sw;this.callback=W4;this.element=sw.element;this.target=sw.options.inputTarget;this.domHandler=function(vC){H(sw.options.enable,[sw])&&f3.handler(vC)};
this.evEl&&k(this.element,this.evEl,this.domHandler);this.evTarget&&k(this.target,this.evTarget,this.domHandler);this.evWin&&k(D,this.evWin,this.domHandler)}
function N(sw){var W4;$2?W4=w0:zG?W4=Rn:YX?W4=lG:W4=p3;return new W4(sw,z)}
function z(sw,W4,f3){var vC=f3.pointers.length,Ps=f3.changedPointers.length,eN=W4&1&&vC-Ps===0;f3.isFirst=!!eN;f3.isFinal=!!(W4&12&&vC-Ps===0);eN&&(sw.session={});f3.eventType=W4;W4=sw.session;vC=f3.pointers;Ps=vC.length;W4.firstInput||(W4.firstInput=xf(f3));Ps>1&&!W4.firstMultiple?W4.firstMultiple=xf(f3):Ps===1&&(W4.firstMultiple=!1);eN=W4.firstInput;var F9=(Ps=W4.firstMultiple)?Ps.center:eN.center,HC=f3.center=K3(vC);f3.timeStamp=uG();f3.deltaTime=f3.timeStamp-eN.timeStamp;f3.angle=H4(F9,HC);f3.distance=
kf(F9,HC);eN=f3.center;F9=W4.offsetDelta||{};HC=W4.prevDelta||{};var VQ=W4.prevInput||{};if(f3.eventType===1||VQ.eventType===4)HC=W4.prevDelta={x:VQ.deltaX||0,y:VQ.deltaY||0},F9=W4.offsetDelta={x:eN.x,y:eN.y};f3.deltaX=HC.x+(eN.x-F9.x);f3.deltaY=HC.y+(eN.y-F9.y);f3.offsetDirection=P4(f3.deltaX,f3.deltaY);Ps?(eN=Ps.pointers,eN=kf(vC[0],vC[1],oi)/kf(eN[0],eN[1],oi)):eN=1;f3.scale=eN;Ps?(Ps=Ps.pointers,vC=H4(vC[1],vC[0],oi)-H4(Ps[1],Ps[0],oi)):vC=0;f3.rotation=vC;F9=W4.lastInterval||f3;vC=f3.timeStamp-
F9.timeStamp;f3.eventType!=8&&(vC>25||F9.velocity===J)?(eN=F9.deltaX-f3.deltaX,F9=F9.deltaY-f3.deltaY,HC=eN/vC||0,VQ=F9/vC||0,vC=HC,Ps=VQ,HC=p2(HC)>p2(VQ)?HC:VQ,eN=P4(eN,F9),W4.lastInterval=f3):(HC=F9.velocity,vC=F9.velocityX,Ps=F9.velocityY,eN=F9.direction);f3.velocity=HC;f3.velocityX=vC;f3.velocityY=Ps;f3.direction=eN;W4=sw.element;a:{for(vC=f3.srcEvent.target;vC;){if(vC==W4){vC=!0;break a}vC=vC.parentNode}vC=!1}vC&&(W4=f3.srcEvent.target);f3.target=W4;sw.emit("hammer.input",f3);sw.recognize(f3);
sw.session.prevInput=f3}
function xf(sw){for(var W4=[],f3=0;f3<sw.pointers.length;f3++)W4[f3]={clientX:g$(sw.pointers[f3].clientX),clientY:g$(sw.pointers[f3].clientY)};return{timeStamp:uG(),pointers:W4,center:K3(W4),deltaX:sw.deltaX,deltaY:sw.deltaY}}
function K3(sw){var W4=sw.length;if(W4===1)return{x:g$(sw[0].clientX),y:g$(sw[0].clientY)};for(var f3=0,vC=0,Ps=0;Ps<W4;Ps++)f3+=sw[Ps].clientX,vC+=sw[Ps].clientY;return{x:g$(f3/W4),y:g$(vC/W4)}}
function P4(sw,W4){return sw===W4?1:p2(sw)>=p2(W4)?sw>0?2:4:W4>0?8:16}
function kf(sw,W4,f3){f3||(f3=K8);var vC=W4[f3[0]]-sw[f3[0]];sw=W4[f3[1]]-sw[f3[1]];return Math.sqrt(vC*vC+sw*sw)}
function H4(sw,W4,f3){f3||(f3=K8);return Math.atan2(W4[f3[1]]-sw[f3[1]],W4[f3[0]]-sw[f3[0]])*180/Math.PI}
function p3(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;f.apply(this,arguments)}
function w0(){this.evEl=hx;this.evWin=Ge;f.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function Rn(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};f.apply(this,arguments)}
function lG(){f.apply(this,arguments);var sw=h(this.handler,this);this.touch=new Rn(this.manager,sw);this.mouse=new p3(this.manager,sw)}
function xX(sw,W4){this.manager=sw;this.set(W4)}
function UR(sw){if(sw.indexOf("none")>-1)return"none";var W4=sw.indexOf("pan-x")>-1,f3=sw.indexOf("pan-y")>-1;return W4&&f3?"pan-x pan-y":W4||f3?W4?"pan-x":"pan-y":sw.indexOf("manipulation")>-1?"manipulation":"auto"}
function c4(sw){this.id=h5++;this.manager=null;this.options=v(sw||{},this.defaults);sw=this.options.enable;this.options.enable=sw===J?!0:sw;this.state=1;this.simultaneous={};this.requireFail=[]}
function hr(sw){return sw==16?"down":sw==8?"up":sw==2?"left":sw==4?"right":""}
function GB(sw,W4){return(W4=W4.manager)?W4.get(sw):sw}
function C2(){c4.apply(this,arguments)}
function X9(){C2.apply(this,arguments);this.pY=this.pX=null}
function vs(){C2.apply(this,arguments)}
function Zp(){c4.apply(this,arguments);this._input=this._timer=null}
function K2(){C2.apply(this,arguments)}
function F2(){C2.apply(this,arguments)}
function II(){c4.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function jW(sw,W4){W4=W4||{};var f3=W4.recognizers;W4.recognizers=f3===J?jW.defaults.preset:f3;return new J5(sw,W4)}
function J5(sw,W4){W4=W4||{};this.options=v(W4,jW.defaults);this.options.inputTarget=this.options.inputTarget||sw;this.handlers={};this.session={};this.recognizers=[];this.element=sw;this.input=N(this);this.touchAction=new xX(this,this.options.touchAction);Eq(this,!0);E(W4.recognizers,function(f3){var vC=this.add(new f3[0](f3[1]));f3[2]&&vC.recognizeWith(f3[2]);f3[3]&&vC.requireFailure(f3[2])},this)}
function Eq(sw,W4){var f3=sw.element;E(sw.options.cssProps,function(vC,Ps){f3.style[X(f3.style,Ps)]=W4?vC:""})}
function zB(sw,W4){var f3=S.createEvent("Event");f3.initEvent(sw,!0,!0);f3.gesture=W4;W4.target.dispatchEvent(f3)}
var ER=" webkit moz MS ms o".split(" "),qh=S.createElement("div"),g$=Math.round,p2=Math.abs,uG=Date.now,h5=1,x2=/mobile|tablet|ip(ad|hone|od)|android/i,YX="ontouchstart"in D,$2=X(D,"PointerEvent")!==J,zG=YX&&x2.test(navigator.userAgent),K8=["x","y"],oi=["clientX","clientY"];f.prototype={handler:function(){},
destroy:function(){this.evEl&&T(this.element,this.evEl,this.domHandler);this.evTarget&&T(this.target,this.evTarget,this.domHandler);this.evWin&&T(D,this.evWin,this.domHandler)}};
var kX={mousedown:1,mousemove:2,mouseup:4};V(p3,f,{handler:function(sw){var W4=kX[sw.type];W4&1&&sw.button===0&&(this.pressed=!0);W4&2&&sw.which!==1&&(W4=4);this.pressed&&this.allow&&(W4&4&&(this.pressed=!1),this.callback(this.manager,W4,{pointers:[sw],changedPointers:[sw],pointerType:"mouse",srcEvent:sw}))}});
var n2={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},Vo={2:"touch",3:"pen",4:"mouse",5:"kinect"},hx="pointerdown",Ge="pointermove pointerup pointercancel";D.MSPointerEvent&&(hx="MSPointerDown",Ge="MSPointerMove MSPointerUp MSPointerCancel");V(w0,f,{handler:function(sw){var W4=this.store,f3=!1,vC=sw.type.toLowerCase().replace("ms","");vC=n2[vC];var Ps=Vo[sw.pointerType]||sw.pointerType;vC&1&&(sw.button===0||Ps=="touch")?W4.push(sw):vC&12&&(f3=!0);var eN=U(W4,sw.pointerId,"pointerId");
eN<0||(W4[eN]=sw,this.callback(this.manager,vC,{pointers:W4,changedPointers:[sw],pointerType:Ps,srcEvent:sw}),f3&&W4.splice(eN,1))}});
var nw={touchstart:1,touchmove:2,touchend:4,touchcancel:8};V(Rn,f,{handler:function(sw){var W4=nw[sw.type];var f3=Array.prototype.slice.call(sw.touches,0);var vC=this.targetIds;if(W4&3&&f3.length===1)vC[f3[0].identifier]=!0,vC=[f3,f3];else{var Ps,eN=Array.prototype.slice.call(sw.targetTouches,0),F9=Array.prototype.slice.call(sw.changedTouches,0),HC=[];if(W4===1)for(f3=0,Ps=eN.length;f3<Ps;f3++)vC[eN[f3].identifier]=!0;f3=0;for(Ps=F9.length;f3<Ps;f3++)vC[F9[f3].identifier]&&HC.push(F9[f3]),W4&12&&
delete vC[F9[f3].identifier];vC=HC.length?[l(eN.concat(HC),"identifier",!0),HC]:void 0}vC&&this.callback(this.manager,W4,{pointers:vC[0],changedPointers:vC[1],pointerType:"touch",srcEvent:sw})}});
V(lG,f,{handler:function(sw,W4,f3){var vC=f3.pointerType=="mouse";if(f3.pointerType=="touch")this.mouse.allow=!1;else if(vC&&!this.mouse.allow)return;W4&12&&(this.mouse.allow=!0);this.callback(sw,W4,f3)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var nZ=X(qh.style,"touchAction"),OO=nZ!==J;xX.prototype={set:function(sw){sw=="compute"&&(sw=this.compute());OO&&(this.manager.element.style[nZ]=sw);this.actions=sw.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var sw=[];E(this.manager.recognizers,function(W4){H(W4.options.enable,[W4])&&(sw=sw.concat(W4.getTouchAction()))});
return UR(sw.join(" "))},
preventDefaults:function(sw){if(!OO){var W4=sw.srcEvent;sw=sw.offsetDirection;if(this.manager.session.prevented)W4.preventDefault();else{var f3=this.actions,vC=f3.indexOf("none")>-1,Ps=f3.indexOf("pan-y")>-1;f3=f3.indexOf("pan-x")>-1;if(vC||Ps&&f3||Ps&&sw&6||f3&&sw&24)return this.preventSrc(W4)}}},
preventSrc:function(sw){this.manager.session.prevented=!0;sw.preventDefault()}};
c4.prototype={defaults:{},set:function(sw){P(this.options,sw);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(sw){if(y(sw,"recognizeWith",this))return this;var W4=this.simultaneous;sw=GB(sw,this);W4[sw.id]||(W4[sw.id]=sw,sw.recognizeWith(this));return this},
dropRecognizeWith:function(sw){if(y(sw,"dropRecognizeWith",this))return this;sw=GB(sw,this);delete this.simultaneous[sw.id];return this},
requireFailure:function(sw){if(y(sw,"requireFailure",this))return this;var W4=this.requireFail;sw=GB(sw,this);U(W4,sw)===-1&&(W4.push(sw),sw.requireFailure(this));return this},
dropRequireFailure:function(sw){if(y(sw,"dropRequireFailure",this))return this;sw=GB(sw,this);sw=U(this.requireFail,sw);sw>-1&&this.requireFail.splice(sw,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(sw){return!!this.simultaneous[sw.id]},
emit:function(sw){function W4(Ps){f3.manager.emit(f3.options.event+(Ps?vC&16?"cancel":vC&8?"end":vC&4?"move":vC&2?"start":"":""),sw)}
var f3=this,vC=this.state;vC<8&&W4(!0);W4();vC>=8&&W4(!0)},
tryEmit:function(sw){if(this.canEmit())return this.emit(sw);this.state=32},
canEmit:function(){for(var sw=0;sw<this.requireFail.length;sw++)if(!(this.requireFail[sw].state&33))return!1;return!0},
recognize:function(sw){sw=P({},sw);H(this.options.enable,[this,sw])?(this.state&56&&(this.state=1),this.state=this.process(sw),this.state&30&&this.tryEmit(sw)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
V(C2,c4,{defaults:{pointers:1},attrTest:function(sw){var W4=this.options.pointers;return W4===0||sw.pointers.length===W4},
process:function(sw){var W4=this.state,f3=sw.eventType,vC=W4&6;sw=this.attrTest(sw);return vC&&(f3&8||!sw)?W4|16:vC||sw?f3&4?W4|8:W4&2?W4|4:2:32}});
V(X9,C2,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var sw=this.options.direction;if(sw===30)return["none"];var W4=[];sw&6&&W4.push("pan-y");sw&24&&W4.push("pan-x");return W4},
directionTest:function(sw){var W4=this.options,f3=!0,vC=sw.distance,Ps=sw.direction,eN=sw.deltaX,F9=sw.deltaY;Ps&W4.direction||(W4.direction&6?(Ps=eN===0?1:eN<0?2:4,f3=eN!=this.pX,vC=Math.abs(sw.deltaX)):(Ps=F9===0?1:F9<0?8:16,f3=F9!=this.pY,vC=Math.abs(sw.deltaY)));sw.direction=Ps;return f3&&vC>W4.threshold&&Ps&W4.direction},
attrTest:function(sw){return C2.prototype.attrTest.call(this,sw)&&(this.state&2||!(this.state&2)&&this.directionTest(sw))},
emit:function(sw){this.pX=sw.deltaX;this.pY=sw.deltaY;var W4=hr(sw.direction);W4&&this.manager.emit(this.options.event+W4,sw);this._super.emit.call(this,sw)}});
V(vs,C2,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(sw){return this._super.attrTest.call(this,sw)&&(Math.abs(sw.scale-1)>this.options.threshold||this.state&2)},
emit:function(sw){this._super.emit.call(this,sw);sw.scale!==1&&this.manager.emit(this.options.event+(sw.scale<1?"in":"out"),sw)}});
V(Zp,c4,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(sw){var W4=this.options,f3=sw.pointers.length===W4.pointers,vC=sw.distance<W4.threshold,Ps=sw.deltaTime>W4.time;this._input=sw;if(!vC||!f3||sw.eventType&12&&!Ps)this.reset();else if(sw.eventType&1)this.reset(),this._timer=Z(function(){this.state=8;this.tryEmit()},W4.time,this);
else if(sw.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(sw){this.state===8&&(sw&&sw.eventType&4?this.manager.emit(this.options.event+"up",sw):(this._input.timeStamp=uG(),this.manager.emit(this.options.event,this._input)))}});
V(K2,C2,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(sw){return this._super.attrTest.call(this,sw)&&(Math.abs(sw.rotation)>this.options.threshold||this.state&2)}});
V(F2,C2,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return X9.prototype.getTouchAction.call(this)},
attrTest:function(sw){var W4=this.options.direction;if(W4&30)var f3=sw.velocity;else W4&6?f3=sw.velocityX:W4&24&&(f3=sw.velocityY);return this._super.attrTest.call(this,sw)&&W4&sw.direction&&p2(f3)>this.options.velocity&&sw.eventType&4},
emit:function(sw){var W4=hr(sw.direction);W4&&this.manager.emit(this.options.event+W4,sw);this.manager.emit(this.options.event,sw)}});
V(II,c4,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(sw){var W4=this.options,f3=sw.pointers.length===W4.pointers,vC=sw.distance<W4.threshold,Ps=sw.deltaTime<W4.time;this.reset();if(sw.eventType&1&&this.count===0)return this.failTimeout();if(vC&&Ps&&f3){if(sw.eventType!=4)return this.failTimeout();f3=this.pTime?sw.timeStamp-this.pTime<W4.interval:!0;vC=!this.pCenter||kf(this.pCenter,sw.center)<W4.posThreshold;this.pTime=sw.timeStamp;this.pCenter=sw.center;vC&&f3?this.count+=1:this.count=1;this._input=sw;if(this.count%W4.taps===0)return this.hasRequireFailures()?
(this._timer=Z(function(){this.state=8;this.tryEmit()},W4.interval,this),2):8}return 32},
failTimeout:function(){this._timer=Z(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))}});
jW.VERSION="2.0.2";jW.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[K2,{enable:!1}],[vs,{enable:!1},["rotate"]],[F2,{direction:6}],[X9,{direction:6},["swipe"]],[II],[II,{event:"doubletap",taps:2},["tap"]],[Zp]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};J5.prototype={set:function(sw){P(this.options,sw);return this},
stop:function(sw){this.session.stopped=sw?2:1},
recognize:function(sw){var W4=this.session;if(!W4.stopped){this.touchAction.preventDefaults(sw);var f3=this.recognizers,vC=W4.curRecognizer;if(!vC||vC&&vC.state&8)vC=W4.curRecognizer=null;for(var Ps=0,eN=f3.length;Ps<eN;Ps++){var F9=f3[Ps];W4.stopped===2||vC&&F9!=vC&&!F9.canRecognizeWith(vC)?F9.reset():F9.recognize(sw);!vC&&F9.state&14&&(vC=W4.curRecognizer=F9)}}},
get:function(sw){if(sw instanceof c4)return sw;for(var W4=this.recognizers,f3=0;f3<W4.length;f3++)if(W4[f3].options.event==sw)return W4[f3];return null},
add:function(sw){if(y(sw,"add",this))return this;var W4=this.get(sw.options.event);W4&&this.remove(W4);this.recognizers.push(sw);sw.manager=this;this.touchAction.update();return sw},
remove:function(sw){if(y(sw,"remove",this))return this;var W4=this.recognizers;sw=this.get(sw);W4.splice(U(W4,sw),1);this.touchAction.update();return this},
on:function(sw,W4){var f3=this.handlers;E(G(sw),function(vC){f3[vC]=f3[vC]||[];f3[vC].push(W4)});
return this},
off:function(sw,W4){var f3=this.handlers;E(G(sw),function(vC){W4?f3[vC].splice(U(f3[vC],W4),1):delete f3[vC]});
return this},
emit:function(sw,W4){this.options.domEvents&&zB(sw,W4);var f3=this.handlers[sw]&&this.handlers[sw].slice();if(f3&&f3.length){W4.type=sw;W4.preventDefault=function(){W4.srcEvent.preventDefault()};
sw=0;for(var vC=f3.length;sw<vC;sw++)f3[sw](W4)}},
destroy:function(){this.element&&Eq(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
P(jW,{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:J5,Input:f,TouchAction:xX,Recognizer:c4,AttrRecognizer:C2,Tap:II,Pan:X9,Swipe:F2,Pinch:vs,Rotate:K2,Press:Zp,on:k,off:T,each:E,merge:v,extend:P,inherit:V,bindFn:h,prefixed:X});
D[Q]=jW})(window,document,"Hammer");
return window.Hammer}.call({});
L.DOCUMENT=x;x[z6R]=L}return x[z6R]};/*

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

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

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

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 OW,FIh,sPH;OW=Element.prototype;FIh=OW.matches||OW.matchesSelector||OW.mozMatchesSelector||OW.msMatchesSelector||OW.oMatchesSelector||OW.webkitMatchesSelector;sPH=function(){};
_.erh=function(x){var L=TV2,D=[];return L._collectTabbableNodes(x,D)?L._sortByTabIndex(D):D};
_.K=sPH.prototype;_.K.isFocusable=function(x){return FIh.call(x,"input, select, textarea, button, object")?FIh.call(x,":not([disabled])"):FIh.call(x,"a[href], area[href], iframe, [tabindex], [contentEditable]")};
_.K._normalizedTabIndex=function(x){return this.isFocusable(x)?(x=x.getAttribute("tabindex")||0,Number(x)):-1};
_.K._collectTabbableNodes=function(x,L){if(x.nodeType!==Node.ELEMENT_NODE||!this._isVisible(x))return!1;var D=this._normalizedTabIndex(x),S=D>0;D>=0&&L.push(x);if(x.localName==="content"||x.localName==="slot")D=_.G0(x).getDistributedNodes();else{var Q;D=((Q=_.G0(x).shadowRoot)!=null?Q:_.G0(x.root||x)).children}for(x=0;x<D.length;x++)S=this._collectTabbableNodes(D[x],L)||S;return S};
_.K._isVisible=function(x){var L=x.style;return L.visibility!=="hidden"&&L.display!=="none"?(L=window.getComputedStyle(x),L.visibility!=="hidden"&&L.display!=="none"):!1};
_.K._sortByTabIndex=function(x){var L=x.length;if(L<2)return x;var D=Math.ceil(L/2);L=this._sortByTabIndex(x.slice(0,D));x=this._sortByTabIndex(x.slice(D));return this._mergeSortByTabIndex(L,x)};
_.K._mergeSortByTabIndex=function(x,L){for(var D=[];x.length>0&&L.length>0;)this._hasLowerTabOrder(x[0],L[0])?D.push(L.shift()):D.push(x.shift());return D.concat(x,L)};
_.K._hasLowerTabOrder=function(x,L){x=Math.max(x.tabIndex,0);L=Math.max(L.tabIndex,0);return x===0||L===0?L>x:x>L};
var TV2=new sPH;var Rrr;var GnR;_.q$({_template:function(){if(GnR!==void 0)return GnR;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;Rrr===void 0&&(Rrr=document.createElement("template"));var S=Rrr;D.call(L,S.content.cloneNode(!0),x.content.firstChild);return GnR=x},
is:"tp-yt-iron-overlay-backdrop",properties:{opened:{reflectToAttribute:!0,type:Boolean,value:!1,observer:"_openedChanged"}},listeners:{transitionend:"_onTransitionend"},created:function(){this.__openedRaf=null},
attached:function(){this.opened&&this._openedChanged(this.opened)},
prepare:function(){this.opened&&!this.parentNode&&_.G0(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.G0(this.parentNode).removeChild(this)},
_onTransitionend:function(x){x&&x.target===this&&this.complete()},
_openedChanged:function(x){x?this.prepare():(x=window.getComputedStyle(this),x.transitionDuration!=="0s"&&x.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 ZF=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;Bv(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)};
ZF.prototype._bringOverlayAtIndexToFront=function(x){var L=this._overlays[x];if(L){var D=this._overlays.length-1,S=this._overlays[D];S&&this._shouldBeBehindOverlay(L,S)&&D--;if(!(x>=D)){S=Math.max(this._getZ(_.CyC(this)),this._minimumZ);for(this._getZ(L)<=S&&this._applyOverlayZ(L,S);x<D;)this._overlays[x]=this._overlays[x+1],x++;this._overlays[D]=L}}};
ZF.prototype.addOverlay=function(x){var L=this._overlays.indexOf(x);if(L>=0)this._bringOverlayAtIndexToFront(L);else{L=this._overlays.length;var D=this._overlays[L-1],S=Math.max(this._getZ(D),this._minimumZ),Q=this._getZ(x);D&&this._shouldBeBehindOverlay(x,D)&&(this._applyOverlayZ(D,S),L--,S=Math.max(this._getZ(this._overlays[L-1]),this._minimumZ));Q<=S&&this._applyOverlayZ(x,S);this._overlays.splice(L,0,x)}this.trackBackdrop()};
ZF.prototype.removeOverlay=function(x){x=this._overlays.indexOf(x);x!==-1&&(this._overlays.splice(x,1),this.trackBackdrop())};
_.CyC=function(x){return x._overlays[x._overlays.length-1]};
_.K=ZF.prototype;_.K.trackBackdrop=function(){var x=this._overlayWithBackdrop();if(x||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(x)-1,this.backdropElement.opened=!!x,this.backdropElement.prepare()};
_.K._overlayWithBackdrop=function(){for(var x=this._overlays.length-1;x>=0;x--)if(this._overlays[x].withBackdrop)return this._overlays[x]};
_.K._getZ=function(x){var L=this._minimumZ;if(x){var D,S,Q=Number(((D=x.hostElement)!=null?D:x).style.zIndex||window.getComputedStyle((S=x.hostElement)!=null?S:x).zIndex);Q===Q&&(L=Q)}return L};
_.K._setZ=function(x,L){var D;((D=x.hostElement)!=null?D:x).style.zIndex=L};
_.K._applyOverlayZ=function(x,L){this._setZ(x,L+2)};
_.K._overlayInPath=function(x){x=x||[];for(var L=0;L<x.length;L++){var D=void 0;if(((D=x[L].polymerController)!=null?D:x[L])._manager===this)return x[L]}};
_.K._onCaptureClick=function(x){var L=this._overlays.length-1;if(L!==-1)for(var D=_.G0(x).path,S,Q;(S=this._overlays[L])&&this._overlayInPath(D)!==((Q=S.hostElement)!=null?Q:S);)if(S._onCaptureClick(x),S.allowClickThrough)L--;else break};
_.K._onCaptureFocus=function(x){var L=_.CyC(this);L&&L._onCaptureFocus(x)};
_.K._onCaptureKeyDown=function(x){var L=_.CyC(this);L&&(_.A4.keyboardEventMatchesKeys(x,"esc")?L._onCaptureEsc(x):_.A4.keyboardEventMatchesKeys(x,"tab")&&L._onCaptureTab(x))};
_.K._shouldBeBehindOverlay=function(x,L){return!x.alwaysOnTop&&L.alwaysOnTop&&!L.contains(x)};
_.J3.Object.defineProperties(ZF.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 x=document.activeElement;x&&x instanceof Element!==!1||(x=document.body);for(;x.root&&_.G0(x.root).activeElement;)x=_.G0(x.root).activeElement;return x}}});
_.yj=new ZF;var Zd0=0,ySh=0,IBf=null,Eof=[],CL=["wheel","mousewheel","DOMMouseScroll"],Mpn;_.u("web_no_lock_on_touchstart_killswitch")&&(CL.push("touchstart"),CL.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;_.If={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:_.yj},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var x;return this._focusedChild||_.G0((x=this.hostElement)!=null?x:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var x;return _.erh((x=this.hostElement)!=null?x: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 x;this._observer=_.G0((x=this.hostElement)!=null?x:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var x;_.G0((x=this.hostElement)!=null?x:this).unobserveNodes(this._observer)}this._observer=null;for(var L in this.__rafs)this.__rafs[L]!==null&&cancelAnimationFrame(this.__rafs[L]);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(x){this.fire("iron-overlay-canceled",x,{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 x;((x=this.hostElement)!=null?x:this).style.outline="none";var L;((L=this.hostElement)!=null?L:this).style.display="none"}},
_openedChanged:function(x){if(x){var L;((L=this.hostElement)!=null?L:this).removeAttribute("aria-hidden")}else{var D;((D=this.hostElement)!=null?D: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 x;if(this.withBackdrop&&!((x=this.hostElement)!=null?x:this).hasAttribute("tabindex")){var L;((L=this.hostElement)!=null?L:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var D;((D=this.hostElement)!=null?D: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 x;((x=this.hostElement)!=null?x:this).style.display="none";var L;((L=this.hostElement)!=null?L:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var x,L;((x=this.hostElement)!=null?x:this).style.transition=((L=this.hostElement)!=null?L:this).style.webkitTransition="none";var D,S;((D=this.hostElement)!=null?D:this).style.transform=((S=this.hostElement)!=null?S:this).style.webkitTransform="none";var Q;((Q=this.hostElement)!=null?Q:this).style.display=""},
_finishPositioning:function(){var x;((x=this.hostElement)!=null?x:this).style.display="none";this.scrollTop=this.scrollTop;var L,D;((L=this.hostElement)!=null?L:this).style.transition=((D=this.hostElement)!=null?D:this).style.webkitTransition="";var S,Q;((S=this.hostElement)!=null?S:this).style.transform=((Q=this.hostElement)!=null?Q:this).style.webkitTransform="";var J;((J=this.hostElement)!=null?J:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var x=this._manager.deepActiveElement,L;if(!(L=x===document.body))a:{for(;x;x=x.assignedSlot||x.parentNode||x.host)if(x===this){L=!0;break a}L=!1}L&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(x){this.noCancelOnOutsideClick||this.cancel(x)},
_onCaptureFocus:function(x){if(this.withBackdrop){var L=_.G0(x).path;L.indexOf(this)===-1?(x.stopPropagation(),this._applyFocus()):this._focusedChild=L[0]}},
_onCaptureEsc:function(x){this.noCancelOnEscKey||this.cancel(x)},
_onCaptureTab:function(x){if(this.withBackdrop){this.__ensureFirstLastFocusables();var L=x.shiftKey,D=L?this.__firstFocusableNode:this.__lastFocusableNode;L=L?this.__lastFocusableNode:this.__firstFocusableNode;if(D===L)D=!0;else{var S=this._manager.deepActiveElement;D=S===D||S===this}D&&(x.preventDefault(),this._focusedChild=L,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 x=this._focusableNodes;this.__firstFocusableNode=x[0];this.__lastFocusableNode=x[x.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(x,L){var D=this.__rafs;D[x]!==null&&cancelAnimationFrame(D[x]);D[x]=requestAnimationFrame(function(){D[x]=null;L.call(this)}.bind(this))},
__updateScrollObservers:function(x,L,D){x&&L&&this.__isValidScrollAction(D)?(D==="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),Mpn=_._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()):(x=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),x!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(x,1),Mpn=_._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(fh)for(var x=this;x;)x.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&x.host&&this.__rootNodes.push(x),x=x.host||x.assignedSlot||x.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(L){L.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(x){x.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(x){return x==="lock"||x==="refit"||x==="cancel"},
__onCaptureScroll:function(x){if(!(this.__isAnimating||_.G0(x).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(x)}},
__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)}};
_.EW=[Yyh,_.XO,_.If];_.q$({_template:function(){if(mk2!==void 0)return mk2;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;pFr===void 0&&(pFr=document.createElement("template"));var S=pFr;D.call(L,S.content.cloneNode(!0),x.content.firstChild);return mk2=x},
is:"tp-yt-iron-dropdown",behaviors:[_.$E,_.A4,_.EW,PSH],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 x=_.G0(this.$.content).getDistributedNodes(),L=0,D=x.length;L<D;L++)if(x[L].nodeType===Node.ELEMENT_NODE)return x[L]},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(),_.If._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.If._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.If._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var x=this.containedElement,L=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),D=0;D<L.length;D++)L[D].node=x;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(x){this._readied&&(x?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var x=this.focusTarget||this.containedElement;x&&this.opened&&!this.noAutoFocus?x.focus():_.If._applyFocus.apply(this,arguments)}});var lSr;var UkA;/*

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 wFC=new _.f1({type:"iconset"});
_.q$({_template:function(){if(UkA!==void 0)return UkA;var x=document.createElement("template");_.m(x,"\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");x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;lSr===void 0&&(lSr=document.createElement("template"));
var S=lSr;D.call(L,S.content.cloneNode(!0),x.content.firstChild);return UkA=x},
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(x){x=(x||"").split(":");this._iconName=x.pop();this._iconsetName=x.pop()||this._DEFAULT_ICONSET;this._updateIcon()},
_srcChanged:function(){this._updateIcon()},
_usesIconset:function(){return this.icon||!this.src},
_updateIcon:function(){if(this._usesIconset())if(this._img&&this._img.parentNode&&_.G0(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=wFC.byKey(this._iconsetName)){var x=this._iconset.applyIcon(this,this._iconName,this.theme);x&&x.setAttribute("aria-hidden","true");this.unlisten(window,"iron-iconset-added","_updateIcon")}else this.listen(window,"iron-iconset-added","_updateIcon")}else this._iconset&&this._iconset.removeIcon(this),
this._img||(this._img=document.createElement("img"),this._img.style.width="100%",this._img.style.height="100%",this._img.draggable=!1),this._img.src=this.src,_.G0(this.root).appendChild(this._img)}});var BVW;var WId;_.q$({_template:function(){if(WId!==void 0)return WId;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);
var L=x.content,D=L.insertBefore;BVW===void 0&&(BVW=document.createElement("template"));var S=BVW;D.call(L,S.content.cloneNode(!0),x.content.firstChild);return WId=x},
is:"tp-yt-iron-input",behaviors:[_.a_],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(){_.KS.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.G0(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.G0(this).unobserveNodes(this._observer),this._observer=null)},
get inputElement(){return this._inputElement},_initSlottedInput:function(){this._inputElement=this.getEffectiveChildren()[0];this.inputElement&&this.inputElement.value&&(this.bindValue=this.inputElement.value);this.fire("iron-input-ready")},
get _patternRegExp(){if(this.allowedPattern)var x=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":x=/[0-9.,e-]/}return x},_bindValueChanged:function(x,L){L&&(x===void 0?L.value=null:x!==L.value&&(this.inputElement.value=x),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:x}))},
_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(x){var L=x.keyCode==19||x.keyCode==20||x.keyCode==45||x.keyCode==46||x.keyCode==144||x.keyCode==145||x.keyCode>32&&x.keyCode<41||x.keyCode>111&&x.keyCode<124;return!(x.keyCode==8||x.keyCode==9||x.keyCode==13||x.keyCode==27)&&!(x.charCode==0&&L)},
_onKeypress:function(x){if(this.allowedPattern||this.inputElement.type==="number"){var L=this._patternRegExp;if(L&&!(x.metaKey||x.ctrlKey||x.altKey)){this._patternAlreadyChecked=!0;var D=String.fromCharCode(x.charCode);this._isPrintable(x)&&!L.test(D)&&(x.preventDefault(),this._announceInvalidCharacter("Invalid character "+D+" not entered."))}}},
_checkPatternValidity:function(){var x=this._patternRegExp;if(!x)return!0;for(var L=0;L<this.inputElement.value.length;L++)if(!x.test(this.inputElement.value[L]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var x=this.inputElement.checkValidity();x&&(this.required&&this.bindValue===""?x=!1:this.hasValidator()&&(x=_.a_.validate.call(this,this.bindValue)));this.invalid=!x;this.fire("iron-input-validate");return x},
_announceInvalidCharacter:function(x){this.fire("iron-announce",{text:x})},
_computeValue:function(x){return x}});var qyQ;var AKA;var $kB=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),rKA=$kB&&$kB[1]>=8;
_.q$({_template:function(){if(AKA!==void 0)return AKA;var x=document.createElement("template");_.m(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-list--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_list.tp.yt.iron.list.css.js--\x3e<array-selector id="selector" items="{{items}}" selected="{{selectedItems}}" selected-item="{{selectedItem}}" class="style-scope tp-yt-iron-list"></array-selector>\n\n<div id="items" class="style-scope tp-yt-iron-list">\n  <slot class="style-scope tp-yt-iron-list"></slot>\n</div>\n');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;qyQ===void 0&&(qyQ=document.createElement("template"));var S=qyQ;D.call(L,S.content.cloneNode(!0),x.content.firstChild);return AKA=x},
is:"tp-yt-iron-list",properties:{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},selectedAs:{type:String,value:"selected"},grid:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_gridChanged"},selectionEnabled:{type:Boolean,value:!1},selectedItem:{type:Object,notify:!0},selectedItems:{type:Object,notify:!0},multiSelection:{type:Boolean,value:!1},scrollOffset:{type:Number,value:0}},observers:["_itemsChanged(items.*)","_selectionEnabledChanged(selectionEnabled)",
"_multiSelectionChanged(multiSelection)","_setOverflow(scrollTarget, scrollOffset)"],behaviors:[$MN,_.XO,_.d1H,cdG],_ratio:.5,_scrollerPaddingTop:0,_scrollPosition:0,_physicalSize:0,_physicalAverage:0,_physicalAverageCount:0,_physicalTop:0,_virtualCount:0,_estScrollHeight:0,_scrollHeight:0,_viewportHeight:0,_viewportWidth:0,_physicalItems:null,_physicalSizes:null,_firstVisibleIndexVal:null,_lastVisibleIndexVal:null,_maxPages:2,_focusedItem:null,_focusedVirtualIndex:-1,_focusedPhysicalIndex:-1,_offscreenFocusedItem:null,
_focusBackfillItem:null,_itemsPerRow:1,_itemWidth:0,_rowHeight:0,_templateCost:0,_parentModel:!0,get _physicalBottom(){return this._physicalTop+this._physicalSize},get _scrollBottom(){return this._scrollPosition+this._viewportHeight},get _virtualEnd(){return this._virtualStart+this._physicalCount-1},get _hiddenContentSize(){return(this.grid?this._physicalRows*this._rowHeight:this._physicalSize)-this._viewportHeight},get _itemsParent(){return _.G0(_.G0(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var x=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,x-this._physicalCount)},set _virtualStart(x){x=this._clamp(x,0,this._maxVirtualStart);this.grid&&(x-=x%this._itemsPerRow);this._virtualStartVal=x},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(x){x%=this._physicalCount;x<0&&(x=this._physicalCount+x);this.grid&&(x-=x%this._itemsPerRow);this._physicalStartVal=x},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(x){this._physicalCountVal=x},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 x=this._firstVisibleIndexVal;if(x==null){var L=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
x=this._iterateItems(function(D,S){L+=this._getPhysicalSizeIncrement(D);if(L>this._scrollPosition)return this.grid?S-S%this._itemsPerRow:S;if(this.grid&&this._virtualCount-1===S)return S-S%this._itemsPerRow})||0}return x},
get lastVisibleIndex(){var x=this._lastVisibleIndexVal;if(x==null){if(this.grid)x=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var L=this._physicalTop+this._scrollOffset;this._iterateItems(function(D,S){L<this._scrollBottom&&(x=S);L+=this._getPhysicalSizeIncrement(D)})}this._lastVisibleIndexVal=x}return x},
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,_.wB);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(x){this.style.webkitOverflowScrolling=x===this?"touch":"";this.style.overflowY=x===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.wB)},
updateViewportBoundaries:function(){var x=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(x["padding-top"],10);this._isRTL=x.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var x=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),L=x-this._scrollPosition,D=L>=0;this._scrollPosition=x;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(L)>this._physicalSize&&this._physicalSize>0?(L-=this._scrollOffset,D=Math.round(L/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=D,this._physicalStart+=D,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(x=this._getReusables(D),D?(this._physicalTop=x.physicalTop,this._virtualStart+=x.indexes.length,this._physicalStart+=x.indexes.length):(this._virtualStart=this._virtualStart-x.indexes.length,this._physicalStart=this._physicalStart-x.indexes.length),this._update(x.indexes,D?null:x.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),rQ))},
_getReusables:function(x){var L=[],D=this._hiddenContentSize*this._ratio,S=this._virtualStart,Q=this._virtualEnd,J=this._physicalCount,Z=this._physicalTop+this._scrollOffset;var y=this._physicalBottom+this._scrollOffset;var E=this._scrollPosition,P=this._scrollBottom;if(x){var v=this._physicalStart;y=E-Z}else v=this._physicalEnd,y-=P;for(;;){var V=this._getPhysicalSizeIncrement(v);y-=V;if(L.length>=J||y<=D)break;if(x){if(Q+L.length+1>=this._virtualCount)break;if(Z+V>=E-this._scrollOffset)break;L.push(v);
Z+=V;v=(v+1)%J}else{if(S-L.length<=0)break;if(Z+this._physicalSize-V<=P)break;L.push(v);Z-=V;v=v===0?J-1:v-1}}return{indexes:L,physicalTop:Z-this._scrollOffset}},
_update:function(x,L){if(!(x&&x.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(x);this._updateMetrics(x);if(L)for(;L.length;)x=L.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(x);this._positionItems();this._updateScrollerSize()}},
_createPool:function(x){this._ensureTemplatized();var L,D=Array(x);for(L=0;L<x;L++){var S=this.stamp(null);D[L]=S.root.querySelector("*");this._itemsParent.appendChild(S.root)}return D},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(x){x=this._clamp(this._physicalCount+x,3,this._virtualCount-this._virtualStart);x=this._convertIndexToCompleteRow(x);if(this.grid){var L=x%this._itemsPerRow;L&&x-L<=this._physicalCount&&(x+=this._itemsPerRow);x-=L}x-=this._physicalCount;L=Math.round(this._physicalCount*.5);if(!(x<0)){if(x>0){L=window.performance.now();[].push.apply(this._physicalItems,this._createPool(x));for(var D=0;D<x;D++)this._physicalSizes.push(0);this._physicalCount+=x;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=x);this._update();this._templateCost=(window.performance.now()-L)/x;L=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||L===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,L)),R$i):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,L),rQ))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var x=this._getReusables(!0);this._physicalTop=x.physicalTop;this._virtualStart+=x.indexes.length;this._physicalStart+=x.indexes.length;this._update(x.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 x={__key__:!0};x[this.as]=!0;x[this.indexAs]=!0;x[this.selectedAs]=!0;x.tabIndex=!0;this._instanceProps=x;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(x,L){typeof L!=="undefined"&&(this.notifyResize(),_.R4(),x&&this._updateGridMetrics())},
_itemsChanged:function(x){if(x.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,
_.wB);else if(x.path==="items.splices"){this._adjustVirtualIndex(x.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(x.value.indexSplices.some(function(D){return D.addedCount>0||D.removed.length>0})){var L=this._getActiveElement();
this.contains(L)&&L.blur()}x=x.value.indexSplices.some(function(D){return D.index+D.addedCount>=this._virtualStart&&D.index<=this._virtualEnd},this);
this._isClientFull()&&!x||this._debounce("_render",this._render,_.wB)}else x.path!=="items.length"&&this._forwardItemPath(x.path,x.value)},
_forwardItemPath:function(x,L){x=x.slice(6);var D=x.indexOf(".");D===-1&&(D=x.length);var S,Q=this.modelForElement(this._offscreenFocusedItem),J=parseInt(x.substring(0,D),10);if(S=this._isIndexRendered(J)){var Z=this._getPhysicalIndex(J);var y=this.modelForElement(this._physicalItems[Z])}else Q&&(y=Q);y&&y[this.indexAs]===J&&(x=x.substring(D+1),x=this.as+(x?"."+x:""),y._setPendingPropertyOrPath(x,L,!1,!0),y._flushProperties&&y._flushProperties(),S&&(this._updateMetrics([Z]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(x){x.forEach(function(L){L.removed.forEach(this._removeItem,this);L.index<this._virtualStart&&(L=Math.max(L.addedCount-L.removed.length,L.index-this._virtualStart),this._virtualStart+=L,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=L))},this)},
_removeItem:function(x){this.$.selector.deselect(x);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===x&&this._removeFocusedItem()},
_iterateItems:function(x,L){var D,S;if(arguments.length===2&&L)for(S=0;S<L.length;S++){var Q=L[S];var J=this._computeVidx(Q);if((D=x.call(this,Q,J))!=null)return D}else{Q=this._physicalStart;for(J=this._virtualStart;Q<this._physicalCount;Q++,J++)if((D=x.call(this,Q,J))!=null)return D;for(Q=0;Q<this._physicalStart;Q++,J++)if((D=x.call(this,Q,J))!=null)return D}},
_computeVidx:function(x){return x>=this._physicalStart?this._virtualStart+(x-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+x},
_assignModels:function(x){this._iterateItems(function(L,D){var S=this._physicalItems[L],Q=this.items&&this.items[D];if(Q!=null){var J=this.modelForElement(S);J.__key__=null;this._forwardProperty(J,this.as,Q);this._forwardProperty(J,this.selectedAs,this.$.selector.isSelected(Q));this._forwardProperty(J,this.indexAs,D);this._forwardProperty(J,"tabIndex",this._focusedVirtualIndex===D?0:-1);this._physicalIndexForKey[J.__key__]=L;J._flushProperties&&J._flushProperties(!0);S.removeAttribute("hidden")}else S.setAttribute("hidden",
"")},x)},
_updateMetrics:function(x){_.R4();var L=0,D=0,S=this._physicalAverageCount,Q=this._physicalAverage;this._iterateItems(function(J){D+=this._physicalSizes[J];this._physicalSizes[J]=this._physicalItems[J].offsetHeight;L+=this._physicalSizes[J];this._physicalAverageCount+=this._physicalSizes[J]?1:0},x);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(D=this._itemsPerRow===1?D:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+L-D,this._itemsPerRow=1);this._physicalAverageCount!==S&&(this._physicalAverage=Math.round((Q*S+L)/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 x=this._physicalTop;if(this.grid){var L=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(D,S){var Q=Math.floor(S%this._itemsPerRow*this._itemWidth+L);this._isRTL&&(Q*=-1);this.translate3d(Q+"px",x+"px",0,this._physicalItems[D]);this._shouldRenderNextRow(S)&&(x+=this._rowHeight)})}else this._iterateItems(function(D){this.translate3d(0,x+"px",0,this._physicalItems[D]);
x+=this._physicalSizes[D]})},
_getPhysicalSizeIncrement:function(x){return this.grid?this._computeVidx(x)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[x]},
_shouldRenderNextRow:function(x){return x%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var x=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(x!==0){this._physicalTop=this._physicalTop-x;var L=this._scrollPosition;!rKA&&L>0&&this._resetScrollPosition(L-x)}},
_resetScrollPosition:function(x){this.scrollTarget&&x>=0&&(this._scrollPosition=this._scrollTop=x)},
_updateScrollerSize:function(x){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((x=(x=(x=x||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(x){return this.scrollToIndex(this.items.indexOf(x))},
scrollToIndex:function(x){if(!(typeof x!=="number"||x<0||x>this.items.length-1)&&(_.R4(),this._physicalCount!==0)){x=this._clamp(x,0,this._virtualCount-1);if(!this._isIndexRendered(x)||x>=this._maxVirtualStart)this._virtualStart=this.grid?x-this._itemsPerRow*2:x-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var L=this._physicalStart,D=this._virtualStart,S=0,Q=this._hiddenContentSize;D<x&&
S<=Q;)S+=this._getPhysicalSizeIncrement(L),L=(L+1)%this._physicalCount,D++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+S);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)},_.wB)},
selectItem:function(x){return this.selectIndex(this.items.indexOf(x))},
selectIndex:function(x){if(!(x<0||x>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(x)){var L=this.modelForElement(this._physicalItems[this._getPhysicalIndex(x)]);L&&(L[this.selectedAs]=!0);this.updateSizeForIndex(x)}this.$.selector.selectIndex(x)}},
deselectItem:function(x){return this.deselectIndex(this.items.indexOf(x))},
deselectIndex:function(x){x<0||x>=this._virtualCount||(this._isIndexRendered(x)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(x)])[this.selectedAs]=!1,this.updateSizeForIndex(x)),this.$.selector.deselectIndex(x))},
toggleSelectionForItem:function(x){return this.toggleSelectionForIndex(this.items.indexOf(x))},
toggleSelectionForIndex:function(x){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(x):this.$.selector.isSelected(this.items[x]))?this.deselectIndex(x):this.selectIndex(x)},
clearSelection:function(){this._iterateItems(function(x){this.modelForElement(this._physicalItems[x])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(x){(x?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(x){var L=this.modelForElement(x.target);if(L){var D=_.G0(x).path[0];x=this._getActiveElement();var S=this._physicalItems[this._getPhysicalIndex(L[this.indexAs])];if(D.localName!=="input"&&D.localName!=="button"&&D.localName!=="select"){D=L.tabIndex;L.tabIndex=-100;var Q=x?x.tabIndex:-1;L.tabIndex=D;x&&S!==x&&S.contains(x)&&Q!==-100||this.toggleSelectionForItem(L[this.as])}}},
_multiSelectionChanged:function(x){this.clearSelection();this.$.selector.multi=x},
updateSizeForItem:function(x){return this.updateSizeForIndex(this.items.indexOf(x))},
updateSizeForIndex:function(x){if(!this._isIndexRendered(x))return null;this._updateMetrics([this._getPhysicalIndex(x)]);this._positionItems();return null},
_manageFocus:function(){var x=this._focusedVirtualIndex;x>=0&&x<this._virtualCount?this._isIndexRendered(x)?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(x){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(x/this._itemsPerRow)*this._itemsPerRow:x},
_isIndexRendered:function(x){return x>=this._virtualStart&&x<=this._virtualEnd},
_isIndexVisible:function(x){return x>=this.firstVisibleIndex&&x<=this.lastVisibleIndex},
_getPhysicalIndex:function(x){return(this._physicalStart+(x-this._virtualStart))%this._physicalCount},
focusItem:function(x){this._focusPhysicalItem(x)},
_focusPhysicalItem:function(x){if(!(x<0||x>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(x)||this.scrollToIndex(x);var L=this._physicalItems[this._getPhysicalIndex(x)],D=this.modelForElement(L),S;D.tabIndex=-100;L.tabIndex===-100&&(S=L);S||(S=_.G0(L).querySelector('[tabindex="-100"]'));D.tabIndex=0;this._focusedVirtualIndex=x;S&&S.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 x=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var L=this.stamp(null);this._focusBackfillItem=L.root.querySelector("*");this._itemsParent.appendChild(L.root)}this._offscreenFocusedItem=this._physicalItems[x];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[x]=this._focusBackfillItem;this._focusedPhysicalIndex=x;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var x=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),L=this._physicalItems[x];if(L){var D=this.modelForElement(L),S=this.modelForElement(this._offscreenFocusedItem);D[this.as]===S[this.as]?(this._focusBackfillItem=L,D.tabIndex=-1,this._physicalItems[x]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(x){x=this.modelForElement(x.target);var L=this.modelForElement(this._focusedItem),D=this._offscreenFocusedItem!==null,S=this._focusedVirtualIndex;x&&(L===x?this._isIndexVisible(S)||this.scrollToIndex(S):(this._restoreFocusedItem(),L&&(L.tabIndex=-1),x.tabIndex=0,this._focusedVirtualIndex=S=x[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(S),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],D&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(x){switch(x.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&x.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&&x.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(x)}},
_clamp:function(x,L,D){return Math.min(D,Math.max(L,x))},
_debounce:function(x,L,D){this._debouncers=this._debouncers||{};this._debouncers[x]=_.Yt(this._debouncers[x],D,L.bind(this));_.F4(this._debouncers[x])},
_forwardProperty:function(x,L,D){x._setPendingProperty(L,D)},
_forwardHostPropV2:function(x,L){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(D){D&&this.modelForElement(D).forwardHostProp(x,L)},this)},
_notifyInstancePropV2:function(x,L,D){HG3(this.as,L)&&(x=x[this.indexAs],L==this.as&&(this.items[x]=D),this.notifyPath(uv(this.as,"items."+x,L),D))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(x,L,D){L.indexOf(this.as+".")===0&&this.notifyPath("items."+x.__key__+"."+L.slice(this.as.length+1),D)},
_forwardParentPath:function(x,L){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(D){D&&this.modelForElement(D).notifyPath(x,L)},this)},
_forwardParentProp:function(x,L){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(D){D&&(this.modelForElement(D)[x]=L)},this)},
_getActiveElement:function(){var x=this._itemsParent.node.domHost;return _.G0(x?x.root:document).activeElement},
_scrollTargetChanged:function(x,L){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(L)if(x==="document")this.scrollTarget=this._doc;else if(typeof x==="string"){var D,S;this.scrollTarget=(L=(S=(D=this.domHost)==null?void 0:D.polymerController)!=null?S:this.domHost)&&L.$?L.$[x]:_.G0(this.ownerDocument).querySelector("#"+x)}else this._isValidScrollTarget()&&(this._oldScrollTarget=x,this._toggleScrollListener(this._shouldHaveListener,x))}});var NVh;var iGQ;var fSh=function(x,L,D,S){x-=D;L-=S;return Math.sqrt(x*x+L*L)},ov2=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
dl4.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var PBc=function(x){x.maxRadius=0;x.mouseDownStart=0;x.mouseUpStart=0;x.xStart=0;x.yStart=0;x.xEnd=0;x.yEnd=0;x.containerMetrics=new dl4(x.element)};
js4.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var x=ov2()-this.mouseDownStart;this.mouseUpStart&&(x-=this.mouseUpElapsed);return x},get mouseUpElapsed(){return this.mouseUpStart?ov2()-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 x=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(x*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-x/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 x=this.radius/(this.containerMetrics.size/2);var L=this.xNow-this.containerMetrics.width/2;var D=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+L+"px, "+D+"px)";this.waveContainer.style.transform="translate3d("+L+"px, "+D+"px, 0)";this.wave.style.webkitTransform="scale("+x+","+x+")";this.wave.style.transform="scale3d("+x+","+x+",1)"},
downAction:function(x){var L=this.containerMetrics.width/2,D=this.containerMetrics.height/2;PBc(this);this.mouseDownStart=ov2();this.center?(this.xStart=L,this.yStart=D):(this.xStart=x?x.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=x?x.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=L,this.yEnd=D);x=this.containerMetrics;L=this.xStart;D=this.yStart;this.maxRadius=Math.max(fSh(L,D,0,0),fSh(L,D,
x.width,0),fSh(L,D,0,x.height),fSh(L,D,x.width,x.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=ov2())},
remove:function(){_.G0(_.G0(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.q$({_template:function(){if(iGQ!==void 0)return iGQ;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;NVh===void 0&&(NVh=document.createElement("template"));var S=NVh;D.call(L,S.content.cloneNode(!0),x.content.firstChild);return iGQ=x},
is:"tp-yt-paper-ripple",behaviors:[_.A4],properties:{initialOpacity:{type:Number,value:.25},opacityDecayVelocity:{type:Number,value:.8},recenters:{type:Boolean,value:!1},center:{type:Boolean,value:!1},ripples:{type:Array,value:function(){return[]}},
animating:{type:Boolean,readOnly:!0,reflectToAttribute:!0,value:!1},holdDown:{type:Boolean,value:!1,observer:"_holdDownChanged"},noink:{type:Boolean,value:!1},_animating:{type:Boolean},_boundAnimate:{type:Function,value:function(){return this.animate.bind(this)}}},
get target(){return this.keyEventTarget},keyBindings:{"enter:keydown":"_onEnterKeydown","space:keydown":"_onSpaceKeydown","space:keyup":"_onSpaceKeyup"},attached:function(){_.G0(this).parentNode.nodeType==11?this.keyEventTarget=_.G0(this).getOwnerRoot().host:this.keyEventTarget=_.G0(this).parentNode;var x=this.keyEventTarget;this.listen(x,"up","uiUpAction");this.listen(x,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(x){x.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var x=0;x<this.ripples.length;++x)if(!this.ripples[x].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(x){this.noink||this.downAction(x)},
downAction:function(x){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(x),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(x){this.noink||this.upAction(x)},
upAction:function(x){this.holdDown||(this.ripples.forEach(function(L){L.upAction(x)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var x=0;x<this.ripples.length;++x){var L=this.ripples[x];L.isOpacityFullyDecayed&&!L.isRestingAtMaxRadius&&this.removeRipple(L)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var x=new js4(this);_.G0(this.$.waves).appendChild(x.waveContainer);this.$.background.style.backgroundColor=x.color;this.ripples.push(x);this._setAnimating(!0);return x},
removeRipple:function(x){var L=this.ripples.indexOf(x);L<0||(this.ripples.splice(L,1),x.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var x;for(x=0;x<this.ripples.length;++x){var L=this.ripples[x];L.draw();this.$.background.style.opacity=L.outerOpacity;L.isOpacityFullyDecayed&&!L.isRestingAtMaxRadius&&this.removeRipple(L)}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(x,L){L!==void 0&&(x?this.downAction():this.upAction())}});var MV={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(x){rh._downHandler.call(this,x);this.pressed&&this.ensureRipple(x)},
ensureRipple:function(x){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var L=this._rippleContainer||this.root;L&&_.G0(L).appendChild(this._ripple);if(x){L=_.G0(this._rippleContainer||this);var D=_.G0(x).rootTarget;L.deepContains(D)&&this._ripple.uiDownAction(x)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(x){this.hasRipple()&&(this._ripple.noink=x)}};var aSd={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 x=1;this.disabled?x=0:this.active||this.pressed?x=4:this.receivedFocusFromKeyboard&&(x=3);this._setElevation(x)},
_computeKeyboardClass:function(x){this.toggleClass("keyboard-focus",x)},
_spaceKeyDownHandler:function(x){rh._spaceKeyDownHandler.call(this,x);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(x){rh._spaceKeyUpHandler.call(this,x);this.hasRipple()&&this._ripple.uiUpAction()}},zr2=[D12,
_.$E,MV,aSd];_.XF2={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(x){x&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=x)},
_createRipple:function(){var x=MV._createRipple();x.id="ink";x.setAttribute("center","");x.classList.add("circle");return x}};
_.cKd=[D12,_.$E,MV,_.XF2];_.nvH=[_.cKd,JiC,{_checkedChanged:function(){QSG._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){MV._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var tKd;var xar;var LiW=function(){};
_.K=LiW.prototype;_.K.registered=function(){};
_.K.addOwnKeyBinding=function(){};
_.K.removeOwnKeyBindings=function(){};
_.K.keyboardEventMatchesKeys=function(){};
_.K._collectKeyBindings=function(){};
_.K._prepKeyBindings=function(){};
_.K._addKeyBinding=function(){};
_.K._resetKeyEventListeners=function(){};
_.K._listenKeyEventListeners=function(){};
_.K._unlistenKeyEventListeners=function(){};
_.K._onKeyBindingEvent=function(){};
_.K._triggerKeyHandler=function(){};
_.K._tapHandler=function(){};
_.K._focusChanged=function(){};
_.K._detectKeyboardFocus=function(){};
_.K._userActivate=function(){};
_.K._upHandler=function(){};
_.K._asyncClick=function(){};
_.K._pressedChanged=function(){};
_.K._ariaActiveAttributeChanged=function(){};
_.K._activeChanged=function(){};
_.K._controlStateChanged=function(){};
_.K._changedButtonState=function(){};
_.K._focusBlurHandler=function(){};
_.K._disabledChanged=function(){};
_.K._changedControlState=function(){};
_.K._buttonStateChanged=function(){};
_.K._downHandler=function(){};
_.K.ensureRipple=function(){};
_.K.getRipple=function(){};
_.K.hasRipple=function(){};
_.K._createRipple=function(){};
_.K._noinkChanged=function(){};
_.K._computeKeyboardClass=function(){};
_.K._spaceKeyDownHandler=function(){};
_.K._spaceKeyUpHandler=function(){};
_.K._setPressed=function(){};
_.K._setPointerDown=function(){};
_.K._setReceivedFocusFromKeyboard=function(){};
_.K._setFocused=function(){};
_.K._setElevation=function(){};
LiW=_.q$({_template:function(){if(xar!==void 0)return xar;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);
var L=x.content,D=L.insertBefore;tKd===void 0&&(tKd=document.createElement("template"));var S=tKd;D.call(L,S.content.cloneNode(!0),x.content.firstChild);return xar=x},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[zr2],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?aSd._calculateElevation.apply(this):this._setElevation(0)}});var DaA;var S9B;var QMW={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(x){_.u("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(x)},
_onDialogClickWrapped:function(x){_.u("dialog_behavior_no_tap_killswitch")||this._onDialogClick(x)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(x,L){L&&(x?(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(x){if(x){var L;((L=this.hostElement)!=null?L:this).setAttribute("aria-modal","true")}else{var D;((D=this.hostElement)!=null?D:this).removeAttribute("aria-modal")}},
_updateClosingReasonConfirmed:function(x){this.closingReason=this.closingReason||{};this.closingReason.confirmed=x},
_onDialogClick:function(x){for(var L=_.G0(x).path,D=0,S,Q=L.indexOf((S=this.hostElement)!=null?S:this);D<Q;D++)if(S=L[D],S.hasAttribute&&(S.hasAttribute("dialog-dismiss")||S.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(S.hasAttribute("dialog-confirm"));this.close();x.stopPropagation();break}}},J9B=[_.EW,
QMW];var KiQ=document.createElement("template");_.m(KiQ,'<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(KiQ.content);var OiG=document.createElement("template");_.m(OiG,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(OiG.content);_.q$({_template:function(){if(S9B!==void 0)return S9B;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);
var L=x.content,D=L.insertBefore;DaA===void 0&&(DaA=document.createElement("template"));var S=DaA;D.call(L,S.content.cloneNode(!0),x.content.firstChild);return S9B=x},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[J9B,PSH],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 ZiG;var y92;_.q$({_template:function(){if(y92!==void 0)return y92;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;ZiG===void 0&&(ZiG=document.createElement("template"));var S=ZiG;D.call(L,S.content.cloneNode(!0),x.content.firstChild);return y92=x},
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 x,L,D;if(((x=window.ShadyDOM)==null?void 0:x.noPatch)!==!0&&((L=window.ShadyDOM)==null?void 0:L.noPatch)!=="on-demand"||((D=this.__shady_parentNode)==null?void 0:D.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(QMW)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var Icr=_.xI(['<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>']),EIR=_.DBh(Icr);EIR.setAttribute("style","display: none;");document.head.appendChild(EIR.content);var M_R;var da2;var PVR;var jM2;_.q$({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[cu],configure:function(x){var L=x.node,D=L.getBoundingClientRect().height;return this._effect=new KeyframeEffect(L,[{height:D/2+"px"},{height:D+"px"}],this.timingFromConfig(x))}});
_.q$({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[cu],configure:function(x){var L=x.node,D=L.getBoundingClientRect().width;return this._effect=new KeyframeEffect(L,[{width:D/2+"px"},{width:D+"px"}],this.timingFromConfig(x))}});
_.q$({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[cu],configure:function(x){var L=x.node,D=L.getBoundingClientRect().width;return this._effect=new KeyframeEffect(L,[{width:D+"px"},{width:D-D/20+"px"}],this.timingFromConfig(x))}});
_.q$({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[cu],configure:function(x){var L=x.node,D=L.getBoundingClientRect().height;this.setPrefixedProperty(L,"transformOrigin","0 0");return this._effect=new KeyframeEffect(L,[{height:D+"px",transform:"translateY(0)"},{height:D/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(x))}});var d1={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},vIB=function(){};
_.K=vIB.prototype;_.K.registered=function(){};
_.K.addOwnKeyBinding=function(){};
_.K.removeOwnKeyBindings=function(){};
_.K.keyboardEventMatchesKeys=function(){};
_.K._collectKeyBindings=function(){};
_.K._prepKeyBindings=function(){};
_.K._addKeyBinding=function(){};
_.K._resetKeyEventListeners=function(){};
_.K._listenKeyEventListeners=function(){};
_.K._unlistenKeyEventListeners=function(){};
_.K._onKeyBindingEvent=function(){};
_.K._triggerKeyHandler=function(){};
_.K._focusBlurHandler=function(){};
_.K._changedControlState=function(){};
_.K._setFocused=function(){};
vIB=_.q$({_template:function(){if(jM2!==void 0)return jM2;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;PVR===void 0&&(PVR=document.createElement("template"));var S=PVR;D.call(L,S.content.cloneNode(!0),x.content.firstChild);return jM2=x},
is:"tp-yt-paper-menu-button",behaviors:[_.A4,_.$E],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:d1.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:d1.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:d1.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 x=_.G0(this.$.content).getDistributedNodes(),L=0,D=x.length;L<D;L++)if(x[L].nodeType===Node.ELEMENT_NODE)return x[L]},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(x,L){x?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):L!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(x){_.$E._disabledChanged.apply(this,arguments);x&&this.opened&&this.close()},
__onIronOverlayCanceled:function(x){var L=this.$.trigger;_.G0(x.detail).path.indexOf(L)>-1&&x.preventDefault()}});
Object.keys(d1).forEach(function(x){vIB[x]=d1[x]});var V_H=_.NY.IronButtonState,hE_=(0,_.As)(HTMLElement);
_.q$({_template:function(){if(da2!==void 0)return da2;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;M_R===void 0&&(M_R=document.createElement("template"));var S=M_R;D.call(L,S.content.cloneNode(!0),x.content.firstChild);return da2=x},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[V_H,_.$E,MV,_.ih,_.a_],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(x){var L=(0,_.bv)(this);L.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:x});L.shadowRoot.appendChild(x);return hE_.prototype._attachDom.call(this,x)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var x=this.contentElement;x&&x.selectedItem&&this._setSelectedItem(x.selectedItem)},
get contentElement(){for(var x=_.G0(this.$.content).getDistributedNodes(),L=0,D=x.length;L<D;L++)if(x[L].nodeType===Node.ELEMENT_NODE)return x[L]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(x){this._setSelectedItem(x.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(x){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(x)===this&&this.open()},
_selectedItemChanged:function(x){var L="";x?L=x.label||x.getAttribute("label")||x.textContent.trim():L="";this.value=L;this._setSelectedItemLabel(L)},
_computeMenuVerticalOffset:function(x,L){return L?L:x?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var x=this.opened?"true":"false",L=this.contentElement;L&&L.setAttribute("aria-expanded",x)},
_computeLabelClass:function(x,L,D){var S="label";if(x)D&&(S+=" label-is-hidden");else if(D||L)S+=" label-is-floating";return S},
_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 HiR;var uKr;_.q$({is:"tp-yt-paper-icon-button",_template:function(){if(uKr!==void 0)return uKr;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;HiR===void 0&&(HiR=document.createElement("template"));var S=HiR;D.call(L,S.content.cloneNode(!0),x.content.firstChild);return uKr=x},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.cKd],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(x,L){var D=this.getAttribute("aria-label");D&&L!=D||this.setAttribute("aria-label",x)}});var gIH;var kEr;_.Pg=[D12,_.$E,{hostAttributes:{role:"option",tabindex:"0"}}];_.q$({_template:function(){if(kEr!==void 0)return kEr;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;gIH===void 0&&(gIH=document.createElement("template"));var S=gIH;D.call(L,S.content.cloneNode(!0),x.content.firstChild);return kEr=x},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.Pg]});var pN2;var maW;var biW={attached:function(){this.fire("addon-attached")},
update:function(){}};var Y9_=1,FiQ=1,sMH=1,TyR=[_.$E,_.A4,{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();!HO&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(x,L){x?x=x+" "+L:x=L;return x},
_onAddonAttached:function(x){x=_.G0(x).rootTarget;if(x.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,x.id);else{var L="paper-input-add-on-"+FiQ++;x.id=L;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,L)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(x){_.$E._focusBlurHandler.call(this,x);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var x=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",x);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(x){try{var L=this.inputElement.selectionStart;this.value=x;this.inputElement.selectionStart=L;this.inputElement.selectionEnd=L}catch(D){this.value=x}},
_computeAlwaysFloatLabel:function(x,L){return L||x},
_updateAriaLabelledBy:function(){var x=_.G0(this.root).querySelector("label");if(x){if(x.id)var L=x.id;else L="paper-input-label-"+Y9_++,x.id=L;this._ariaLabelledBy=L}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+sMH++)},
_onChange:function(x){this.shadowRoot&&this.fire(x.type,{sourceEvent:x},{node:this,bubbles:x.bubbles,cancelable:x.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var x=document.activeElement;x instanceof HTMLElement&&x!==document.body&&x!==document.documentElement||this._focusableElement.focus()}}}];var eEh;var REr;_.q$({_template:function(){if(REr!==void 0)return REr;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;eEh===void 0&&(eEh=document.createElement("template"));var S=eEh;D.call(L,S.content.cloneNode(!0),x.content.firstChild);return REr=x},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[biW],properties:{_charCounterStr:{type:String,value:"0"}},update:function(x){if(x.inputElement){x.value=x.value||"";var L=x.value.toString().length.toString();x.inputElement.hasAttribute("maxlength")&&(L+="/"+x.inputElement.getAttribute("maxlength"));this._charCounterStr=L}}});var GEH;var CVC;_.q$({_template:function(){if(CVC!==void 0)return CVC;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;GEH===void 0&&(GEH=document.createElement("template"));var S=GEH;D.call(L,S.content.cloneNode(!0),x.content.firstChild);return CVC=x},
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 jc(this.attrForValue)},get _inputElement(){return _.G0(this).querySelector(this._inputSelector)},get _inputElementValue(){return this._inputElement[this._propertyForValue]||this._inputElement.value},ready:function(){this.__isFirstValueUpdate=!0;this._addons||(this._addons=[]);this.addEventListener("focus",this._boundOnFocus,
!0);this.addEventListener("blur",this._boundOnBlur,!0)},
attached:function(){this.attrForValue||this.addEventListener("input",this._onInput);this.initializeInput()},
onInputSlotChanged:function(){this._addons||(this._addons=[]);this.attrForValue&&this._inputElement.addEventListener(this._valueChangedEvent,this._boundValueChanged);this.initializeInput()},
initializeInput:function(){this._inputElement&&(this._inputElementValue&&this._inputElementValue!=""?this._handleValueAndAutoValidate(this._inputElement):this._handleValue(this._inputElement))},
_onAddonAttached:function(x){this._addons||(this._addons=[]);x=x.target;this._addons.indexOf(x)===-1&&(this._addons.push(x),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(x){this._handleValueAndAutoValidate(x.target)},
_onValueChanged:function(x){var L=x.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,L.value===void 0||L.value===""))return;this._handleValueAndAutoValidate(x.target)},
_handleValue:function(x){var L=this._inputElementValue;L||L===0||x.type==="number"&&!x.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:x,value:L,invalid:this.invalid})},
_handleValueAndAutoValidate:function(x){this.autoValidate&&x&&(this.invalid=!(x.validate?x.validate(this._inputElementValue):x.checkValidity()));this._handleValue(x)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(x){if(this._addons)for(var L,D=0;L=this._addons[D];D++)L.update(x)},
_computeInputContentClass:function(x,L,D,S,Q){var J="input-content";x?(Q&&(J+=" label-is-hidden"),S&&!this.noUnfloatedLabelError&&(J+=" is-invalid")):(x=this.querySelector("label"),L||Q?(J+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",S?J+=" is-invalid":D&&(J+=" label-is-highlighted")):(x&&(this.$.labelAndInputContainer.style.position="relative"),S&&!this.noUnfloatedLabelError&&(J+=" is-invalid")));D&&(J+=" focused");return J},
_computeUnderlineClass:function(x,L){var D="underline";L?D+=" is-invalid":x&&(D+=" is-highlighted");return D},
_computeAddOnContentClass:function(x,L){var D="add-on-content";L?D+=" is-invalid":x&&(D+=" is-highlighted");return D}});var lcA;var Ua2;_.q$({_template:function(){if(Ua2!==void 0)return Ua2;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;lcA===void 0&&(lcA=document.createElement("template"));var S=lcA;D.call(L,S.content.cloneNode(!0),x.content.firstChild);return Ua2=x},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[biW],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(x){this._setInvalid(x.invalid)}});_.q$({is:"tp-yt-paper-input",_template:function(){if(maW!==void 0)return maW;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;pN2===void 0&&(pN2=document.createElement("template"));var S=pN2;D.call(L,S.content.cloneNode(!0),x.content.firstChild);return maW=x},
behaviors:[TyR,_.ih],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 wNH;var Byr;_.q$({_template:function(){if(Byr!==void 0)return Byr;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=
x.content,D=L.insertBefore;wNH===void 0&&(wNH=document.createElement("template"));var S=wNH;D.call(L,S.content.cloneNode(!0),x.content.firstChild);return Byr=x},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.Pg]});var WiC;var q9h;_.q$({_template:function(){if(q9h!==void 0)return q9h;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);
var L=x.content,D=L.insertBefore;WiC===void 0&&(WiC=document.createElement("template"));var S=WiC;D.call(L,S.content.cloneNode(!0),x.content.firstChild);return q9h=x},
is:"tp-yt-paper-item-body"});var A9_;var $aA;var r9_=function(){};
_.K=r9_.prototype;_.K.indexOf=function(){};
_.K.selectPrevious=function(){};
_.K.selectNext=function(){};
_.K.selectIndex=function(){};
_.K.forceSynchronousItemUpdate=function(){};
_.K._checkFallback=function(){};
_.K._addListener=function(){};
_.K._removeListener=function(){};
_.K._activateEventChanged=function(){};
_.K._updateItems=function(){};
_.K._selectSelected=function(){};
_.K._filterItem=function(){};
_.K._valueToItem=function(){};
_.K._valueToIndex=function(){};
_.K._indexToValue=function(){};
_.K._valueForItem=function(){};
_.K._observeItems=function(){};
_.K._itemActivate=function(){};
_.K.multiChanged=function(){};
_.K._updateAttrForSelected=function(){};
_.K._updateSelected=function(){};
_.K._selectMulti=function(){};
_.K._selectionChange=function(){};
_.K._toggleSelected=function(){};
_.K._valuesToItems=function(){};
_.K.registered=function(){};
_.K.addOwnKeyBinding=function(){};
_.K.removeOwnKeyBindings=function(){};
_.K.keyboardEventMatchesKeys=function(){};
_.K._collectKeyBindings=function(){};
_.K._prepKeyBindings=function(){};
_.K._addKeyBinding=function(){};
_.K._resetKeyEventListeners=function(){};
_.K._listenKeyEventListeners=function(){};
_.K._unlistenKeyEventListeners=function(){};
_.K._onKeyBindingEvent=function(){};
_.K._triggerKeyHandler=function(){};
_.K.select=function(){};
_.K._resetTabindices=function(){};
_.K._updateMultiselectable=function(){};
_.K._focusWithKeyboardEvent=function(){};
_.K._clearSearchText=function(){};
_.K._focusPrevious=function(){};
_.K._focusNext=function(){};
_.K._applySelection=function(){};
_.K._focusedItemChanged=function(){};
_.K._onIronItemsChanged=function(){};
_.K._onShiftTabDown=function(){};
_.K._onFocus=function(){};
_.K._onUpKey=function(){};
_.K._onDownKey=function(){};
_.K._onEscKey=function(){};
_.K._onKeydown=function(){};
_.K._activateHandler=function(){};
_.K._disabledChanged=function(){};
_.K._setSelectedItem=function(){};
_.K._setItems=function(){};
_.K._setSelectedItems=function(){};
_.K._setFocusedItem=function(){};
r9_=_.q$({_template:function(){if($aA!==void 0)return $aA;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);
var L=x.content,D=L.insertBefore;A9_===void 0&&(A9_=document.createElement("template"));var S=A9_;D.call(L,S.content.cloneNode(!0),x.content.firstChild);return $aA=x},
is:"tp-yt-paper-listbox",behaviors:[yi2],hostAttributes:{role:"listbox"}});var Nyh;var iiG;var fc2={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(x,L){return[x||L?"active":"",L?"cooldown":""].join(" ")},
__activeChanged:function(x,L){this.__setAriaHidden(!x);this.__coolingDown=!x&&L},
__altChanged:function(x){this.setAttribute("aria-label",x||"loading")},
__setAriaHidden:function(x){x?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.q$({_template:function(){if(iiG!==void 0)return iiG;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;Nyh===void 0&&(Nyh=document.createElement("template"));var S=Nyh;D.call(L,S.content.cloneNode(!0),x.content.firstChild);return iiG=x},
is:"tp-yt-paper-spinner",behaviors:[fc2]});var oIG;var aci;_.q$({_template:function(){if(aci!==void 0)return aci;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;oIG===void 0&&(oIG=document.createElement("template"));var S=oIG;D.call(L,S.content.cloneNode(!0),x.content.firstChild);return aci=x},
is:"tp-yt-paper-spinner-lite",behaviors:[fc2]});var zEB;var XNr;_.q$({_template:function(){if(XNr!==void 0)return XNr;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;zEB===void 0&&(zEB=document.createElement("template"));var S=zEB;D.call(L,S.content.cloneNode(!0),x.content.firstChild);return XNr=x},
is:"tp-yt-paper-tab",behaviors:[_.$E,_.NY.IronButtonState,MV],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 x=_.G0(this).parentNode;return!!x&&!!x.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(x){if(this.link){var L=this.queryEffectiveChildren("a");L&&x.target!==L&&L.click()}}});var c9d;var nIW;var t_2=_.xI(['<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>']),xCG=_.DBh(t_2);document.head.appendChild(xCG.content);_.q$({_template:function(){if(nIW!==void 0)return nIW;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;c9d===void 0&&(c9d=document.createElement("template"));var S=c9d;D.call(L,S.content.cloneNode(!0),x.content.firstChild);return nIW=x},
is:"tp-yt-paper-tabs",behaviors:[_.XO,_.Ecd],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(x){_.G0(this).querySelectorAll("tp-yt-paper-tab").forEach(x?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(x){x.setAttribute("noink","")},
_removeNoinkAttribute:function(x){x.removeAttribute("noink")},
_computeScrollButtonClass:function(x,L,D,S){return!L||D?"hidden":x?S?"hidden":"not-visible":""},
_computeTabsContentClass:function(x,L){var D="tabs-content";x&&(D+=" scrollable");if(!x||L)D+=" fit-container";return D},
_computeSelectionBarClass:function(x,L){var D="selection-bar";x?D+=" hidden":L&&(D+=" align-bottom");return D},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(x){return""+x},
_onIronSelect:function(x){this._tabChanged(x.detail.item,this._previousTab);this._previousTab=x.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();_.zX._activateHandler.apply(this,arguments)},
_scheduleActivation:function(x,L){this._pendingActivationItem=x;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,L)},
_delayedActivationHandler:function(){var x=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;x.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(x){x.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(x,L){this.scrollable&&this._affectScroll(L&&-L.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(x){this.$.tabsContainer.scrollLeft+=x;x=this.$.tabsContainer.scrollLeft;this._leftHidden=x===0||this.hideScrollButtons;this._rightHidden=x===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(x,L){if(x){var D=this.$.tabsContent.getBoundingClientRect(),S=D.width,Q=x.getBoundingClientRect();D=Q.left-D.left;this._pos={width:this._calcPercent(Q.width,S),left:this._calcPercent(D,S)};if(this.noSlide||L==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var J=L.getBoundingClientRect();L=this.items.indexOf(L);x=this.items.indexOf(x);this.$.selectionBar.classList.add("expand");
x=L<x;this._isRTL&&(x=!x);x?this._positionBar(this._calcPercent(Q.left+Q.width-J.left,S)-5,this._left):this._positionBar(this._calcPercent(J.left+J.width-Q.left,S)-5,this._calcPercent(D,S)+5);this.scrollable&&this._scrollToSelectedIfNeeded(Q.width,D)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(x,L){L-=this.$.tabsContainer.scrollLeft;L<0?this.$.tabsContainer.scrollLeft+=L:(L+=x-this.$.tabsContainer.offsetWidth,L>0&&(this.$.tabsContainer.scrollLeft+=L))},
_calcPercent:function(x,L){return 100*x/L},
_positionBar:function(x,L){x=x||0;L=L||0;this._width=x;this._left=L;this.transform("translateX("+L+"%) scaleX("+x/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var x=this.$.selectionBar.classList;x.contains("expand")?(x.remove("expand"),x.add("contract"),this._positionBar(this._pos.width,this._pos.left)):x.contains("contract")&&x.remove("contract")}});var L8H;var DC2;_.q$({_template:function(){if(DC2!==void 0)return DC2;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;L8H===void 0&&(L8H=document.createElement("template"));var S=L8H;D.call(L,S.content.cloneNode(!0),x.content.firstChild);return DC2=x},
is:"tp-yt-paper-textarea",behaviors:[TyR,_.ih],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(x){this.$.input.textarea.selectionStart=x},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(x){this.$.input.textarea.selectionEnd=x},_ariaLabelledByChanged:function(x){this._focusableElement.setAttribute("aria-labelledby",x)},
_ariaDescribedByChanged:function(x){this._focusableElement.setAttribute("aria-describedby",x)},
get _focusableElement(){return this.inputElement.textarea}});var Sc2;var QaG;/*

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 Joh=function(){};
_.K=Joh.prototype;_.K.addOwnKeyBinding=function(){};
_.K.removeOwnKeyBindings=function(){};
_.K.keyboardEventMatchesKeys=function(){};
_.K._collectKeyBindings=function(){};
_.K._prepKeyBindings=function(){};
_.K._addKeyBinding=function(){};
_.K._resetKeyEventListeners=function(){};
_.K._listenKeyEventListeners=function(){};
_.K._unlistenKeyEventListeners=function(){};
_.K._onKeyBindingEvent=function(){};
_.K._triggerKeyHandler=function(){};
_.K._tapHandler=function(){};
_.K._focusChanged=function(){};
_.K._detectKeyboardFocus=function(){};
_.K._userActivate=function(){};
_.K._upHandler=function(){};
_.K._spaceKeyDownHandler=function(){};
_.K._spaceKeyUpHandler=function(){};
_.K._asyncClick=function(){};
_.K._pressedChanged=function(){};
_.K._ariaActiveAttributeChanged=function(){};
_.K._activeChanged=function(){};
_.K._controlStateChanged=function(){};
_.K._changedButtonState=function(){};
_.K._focusBlurHandler=function(){};
_.K._disabledChanged=function(){};
_.K._changedControlState=function(){};
_.K._downHandler=function(){};
_.K.ensureRipple=function(){};
_.K.getRipple=function(){};
_.K.hasRipple=function(){};
_.K._noinkChanged=function(){};
_.K._focusedChanged=function(){};
_.K.registered=function(){};
_.K._invalidChanged=function(){};
_.K.hasValidator=function(){};
_.K.validate=function(){};
_.K._getValidity=function(){};
_.K._requiredChanged=function(){};
_.K._valueChanged=function(){};
_.K._checkedChanged=function(){};
_.K._buttonStateChanged=function(){};
_.K._setPressed=function(){};
_.K._setPointerDown=function(){};
_.K._setReceivedFocusFromKeyboard=function(){};
_.K._setFocused=function(){};
Joh=_.q$({is:"tp-yt-paper-toggle-button",_template:function(){if(QaG!==void 0)return QaG;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;Sc2===void 0&&(Sc2=document.createElement("template"));var S=Sc2;D.call(L,S.content.cloneNode(!0),x.content.firstChild);return QaG=x},
behaviors:[_.nvH],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");_.So(this,function(){_.q6(this,"pan-y")})},
_ontrack:function(x){x=x.detail;x.state==="start"?this._trackStart(x):x.state==="track"?this._trackMove(x):x.state==="end"&&this._trackEnd(x)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(x){x=x.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+x:x)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+x:x));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 x=MV._createRipple();x.id="ink";x.setAttribute("recenters","");x.classList.add("circle","toggle-ink");return x}});var K8R;var Oth;_.q$({_template:function(){if(Oth!==void 0)return Oth;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;K8R===void 0&&(K8R=document.createElement("template"));var S=K8R;D.call(L,S.content.cloneNode(!0),x.content.firstChild);return Oth=x},
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 x=_.G0(this).parentNode,L=_.G0(this).getOwnerRoot(),D;this.for?D=_.G0(L).querySelector("#"+this.for):D=x.nodeType==Node.DOCUMENT_FRAGMENT_NODE?L.host:x;return D},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(x){x==="entry"?this.show():x==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.G0(this).textContent.trim()===""){for(var x=!0,L=_.G0(this).getEffectiveChildNodes(),D=0;D<L.length;D++)if(L[D].textContent.trim()!==""){x=!1;break}if(x)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 x=this.offset;this.marginTop!=14&&this.offset==14&&(x=this.marginTop);var L=this.offsetParent.getBoundingClientRect(),D=this._target.getBoundingClientRect(),S=this.getBoundingClientRect(),Q=(D.width-S.width)/2,J=(D.height-S.height)/2,Z=D.left-L.left,y=D.top-L.top;switch(this.position){case "top":var E=Z+Q;var P=y-S.height-x;break;case "bottom":E=Z+Q;P=y+D.height+x;break;case "left":E=Z-S.width-x;P=y+J;break;case "right":E=Z+D.width+
x,P=y+J}this.fitToVisibleBounds?(L.left+E+S.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,E)+"px",this.style.right="auto"),L.top+P+S.height>window.innerHeight?(this.style.bottom=L.height+"px",this.style.top="auto"):(this.style.top=Math.max(-L.top,P)+"px",this.style.bottom="auto")):(this.style.left=E+"px",this.style.top=P+"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(x){x!==500&&this.updateStyles({"--paper-tooltip-delay-in":x+"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(x){if(x==="entry"&&this.animationEntry!=="")return this.animationEntry;if(x==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[x]&&typeof this.animationConfig[x][0].name==="string"){if(this.animationConfig[x][0].timing&&this.animationConfig[x][0].timing.delay&&this.animationConfig[x][0].timing.delay!==0){var L=this.animationConfig[x][0].timing.delay;x==="entry"?this.updateStyles({"--paper-tooltip-delay-in":L+"ms"}):x==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":L+
"ms"})}return this.animationConfig[x][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 ZtC=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(ZtC,_.O5);var yo2=_.Vv(ZtC,[0,_.y8]);var jv=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(jv,_.O5);var IVR=[3,4],Elr=[5,6];var M9B=[0,IVR,Elr,_.Pc,-1,_.ZV,_.jS,-1,qSw,$zf];var dCi=_.Vv(jv,M9B),PWh=_.hw(M9B);var jah=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(jah,_.O5);var vlA=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(vlA,_.O5);var V9r=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(V9r,_.O5);var hsR=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(hsR,_.O5);var HtW=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(HtW,_.O5);var vg=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(vg,_.O5);vg.prototype.getSource=function(){return _.BN(this,1)};
vg.prototype.getMessage=function(){return _.wy(this,4)};
vg.prototype.getData=function(){return _.Mg(this,HtW,8)};var uq2=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(uq2,_.O5);var Vj=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(Vj,_.O5);var ha=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(ha,_.O5);var Hg=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(Hg,_.O5);Hg.prototype.getUrl=function(){return _.wy(this,1)};
Hg.prototype.setUrl=function(x){return _.ei(this,1,x)};
Hg.prototype.hasUrl=function(){return _.uq(_.mi(this,1))!=null};var gl2=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(gl2,_.O5);var kCG=[3];var pMG=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(pMG,_.O5);var uZ=function(x){var L=new pMG;return _.dt(L,2,x)};
pMG.prototype.getLanguage=function(){return qa(this,4,g1)};
var mCh=function(x){var L=uZ(1);return _.bQ(L,6,g1,x)},g1=[3,
4,5,6];var bt_=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(bt_,_.O5);var kK=function(x){var L=new bt_;return _.dt(L,1,x)},pS=function(x,L){return _.bQ(x,2,Ych,L)},Ych=[2,
3,4,5];var F8W=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(F8W,_.O5);var mG=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(mG,_.O5);var sar=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(sar,_.O5);var TTA=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(TTA,_.O5);var esQ=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(esQ,_.O5);var RsG=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(RsG,_.O5);var GCH=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(GCH,_.O5);var bZ=function(x){return _.Mg(x,ha,5)};var CWr=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(CWr,_.O5);CWr.prototype.getValue=function(){return lV(this,1)};var lVR=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(lVR,_.O5);var YK=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(YK,_.O5);YK.prototype.getMetadata=function(){return _.A9(this,esQ,7,Fn)};
YK.prototype.hasMetadata=function(){return _.YI(this,esQ,7,Fn)};
var UC2=_.ff0(YK),Fn=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var sW=function(x){this.JSC$12027_name_=x;this.files_=[];this.directories_=[];this.directoryMap_={}};
sW.prototype.getName=function(){return this.JSC$12027_name_};var ev=function(x,L){this.callback_=L;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new sW("");wM_(this,x,this.rootDirectory_);Td(this)},wM_=function(x,L,D){for(var S=0;S<L.length;S++){var Q=L[S];
Q.isFile?(x.fileOps_++,Q.file((0,_.e1)(x.handleFileSuccess_,x,D),(0,_.e1)(x.handleFileError_,x))):x.unscannedDirectories_.push(new BT2(Q,D))}},Td=function(x){if(x.unscannedDirectories_.length>0&&x.directoryOps_<5&&!x.hasError_){x.directoryOps_++;
var L=x.unscannedDirectories_.shift(),D=L.entry,S=new sW(D.name);L=L.parent;L.directoryMap_[S.getName()]=S;L.directories_.push(S);D=D.createReader();D.readEntries((0,_.e1)(x.handleDirectorySuccess_,x,D,S),(0,_.e1)(x.handleDirectoryError_,x))}x.directoryOps_!=0||x.fileOps_!=0||x.unscannedDirectories_.length!=0&&!x.hasError_||x.callback_(x.rootDirectory_.files_,x.rootDirectory_.directories_,x.hasError_)};
ev.prototype.handleDirectorySuccess_=function(x,L,D){wM_(this,D,L);D.length==0?(this.directoryOps_--,Td(this)):x.readEntries((0,_.e1)(this.handleDirectorySuccess_,this,x,L),(0,_.e1)(this.handleDirectoryError_,this))};
ev.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;Td(this)};
ev.prototype.handleFileSuccess_=function(x,L){x.files_.push(L);this.fileOps_--;Td(this)};
ev.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;Td(this)};
var BT2=function(x,L){this.entry=x;this.parent=L};var Rf=function(x){_.Bc.call(this);_.Uk(x,"drop",this.onObjectsDropped_,!1,this);_.Uk(x,"dragenter",this.onFilesDragged_,!1,this);_.Uk(x,"dragover",this.onFilesDragged_,!1,this);_.Uk(x,"dragleave",this.onDragLeave_,!1,this);_.Uk(x,"dragend",this.onDragLeave_,!1,this)};
_.E9(Rf,_.Bc);var W8A=function(x,L){_.Gm.call(this,"f");this.files=x;this.directories=L};
_.E9(W8A,_.Gm);var qcW=function(){_.Gm.call(this,"h")};
_.E9(qcW,_.Gm);var Ao2=function(){_.Gm.call(this,"i")};
_.E9(Ao2,_.Gm);var $Cr=function(){_.Gm.call(this,"g")};
_.E9($Cr,_.Gm);Rf.prototype.onObjectsDropped_=function(x){var L=this;x.preventDefault();var D=x.event_.dataTransfer;if((x=D&&D.items)&&x.length>0&&x[0].webkitGetAsEntry){D=[];for(var S=[],Q=0;Q<x.length;Q++){var J=x[Q].webkitGetAsEntry();J?D.push(J):S.push(x[Q])}new ev(D,function(Z,y,E){E?L.dispatchEvent(new $Cr("Error occurred while reading from the file system.")):L.dispatchEvent(new W8A(Z,y,S))})}else(x=D&&D.files)&&this.dispatchEvent(new W8A(Array.from(x),[]))};
Rf.prototype.onFilesDragged_=function(x){x.type==="dragenter"&&this.dispatchEvent(new qcW);x.preventDefault()};
Rf.prototype.onDragLeave_=function(){this.dispatchEvent(new Ao2)};var roA=function(x,L){this.JSC$12050_name_=x;this.inputElement_=L};
roA.prototype.getName=function(){return this.JSC$12050_name_};
roA.prototype.getInputElement=function(){return this.inputElement_};var Gd=function(x,L,D){L=L===void 0?"single_file":L;D=D===void 0?[]:D;_.Bc.call(this);this.overlayTarget_=x;this.parentOverlay_=x!=null?x.parentNode:_.pw("scotty-overlay-parent");this.selectorType_=L;this.acceptTypes_=D;this.overlay_=NT2(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.p(Gd,_.Bc);
var NT2=function(x,L,D,S){var Q=document.createElement("input");Q.setAttribute("type","file");Q.setAttribute("name","Filedata");_.Uk(Q,"change",x.onFilesSelected_,!1,x);D==="multiple_file"&&(Q.multiple="true");D==="single_directory"&&(Q.webkitdirectory="true");S.length>0&&Q.setAttribute("accept",S.join(","));Q.style.position="absolute";Q.style.overflow="hidden";Q.style.height="0px";Q.style.width="0px";Q.style.opacity="0";Q.setAttribute("aria-hidden","true");Q.setAttribute("tabIndex",-1);if(x.overlayTarget_!=
null)return Q.style.height=L.offsetHeight+"px",Q.style.width=L.offsetWidth+"px",x.parentOverlay_&&(x.parentOverlay_.style.position="relative"),_.ft(Q,L),nt(Q,new _.Wn(L.offsetLeft,L.offsetTop)),Q;x.parentOverlay_.appendChild(Q);return Q};
Gd.prototype.click=function(){this.overlay_.click()};
Gd.prototype.onFilesSelected_=function(x){a:{try{var L=(new XMLHttpRequest).upload!==void 0;break a}catch(P){}L=!1}if(L){var D;x=Array.from((D=x.target.files)!=null?D:[]);D=[];if(this.selectorType_==="single_directory"&&(_.V6||Q5||_.vN)){D=new sW("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(L=0;L<x.length;L++)for(var S=x[L],Q=S.webkitRelativePath.split("/"),J=D,Z=0;Z<Q.length;Z++){var y=Q[Z];if(Z==Q.length-1){y!="."&&J.files_.push(S);break}var E=J.directoryMap_[y];E==void 0&&(y=
E=new sW(y),J.directoryMap_[y.getName()]=y,J.directories_.push(y));J=E}D=D.directories_}this.dispatchEvent(new itG(x,D,null))}else x=x.target.value,x.match(/^c:\\fakepath\\/i)&&(x=x.substring(12)),this.dispatchEvent(new itG([],[],new roA(x,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=NT2(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var itG=function(x,L){_.Gm.call(this,"j");this.files=x;this.directories=L};
_.p(itG,_.Gm);var fVd=function(x){this.uploadUrl_=x};var olR=function(){_.Bc.call(this)};
_.E9(olR,_.Bc);var CS=function(x){_.Gm.call(this,x)};
_.E9(CS,_.Gm);var lZ=function(x){_.Gm.call(this,x)};
_.E9(lZ,_.Gm);var aVd=function(x,L,D,S,Q){_.Bc.call(this);D=document.createElement("form");D.setAttribute("method",L);D.setAttribute("enctype","multipart/form-data");D.setAttribute("encoding","multipart/form-data");L=document.createElement("input");L.setAttribute("type","hidden");L.setAttribute("name","metadata");L.setAttribute("value",Q);D.appendChild(L);D.appendChild(S);this.JSC$12067_form_=D;x=new _.Dg(x);_.xV(x,"upload_protocol","multipart");this.JSC$12067_url_=x.toString();this.JSC$12067_request_=new uh;this.state_=
"Ready";this.JSC$12067_errorDescription_=null;this.JSC$12067_eventHandler_=new _.Mu(this);_.V1(this,this.JSC$12067_eventHandler_);this.JSC$12067_eventHandler_.listen(this.JSC$12067_request_,"success",this.onTransferSuccess_);this.JSC$12067_eventHandler_.listen(this.JSC$12067_request_,"error",this.onTransferError_)};
_.p(aVd,olR);_.K=aVd.prototype;_.K.run=function(){this.state_="Transferring";var x=this.JSC$12067_request_,L=this.JSC$12067_form_;if(x.JSC$11485_active_)throw Error("se");var D=new _.Dg(this.JSC$12067_url_||L.action);x.JSC$11485_form_=L;L=x.JSC$11485_form_;D=_.iQ(D.toString());D!==void 0&&(L.action=D);kQR(x)};
_.K.getResponseCode=function(){return null};
_.K.getResponseText=function(){return this.JSC$12067_request_&&this.JSC$12067_request_.getResponseText()||null};
_.K.JSC$29513_getErrorDescription=function(){return this.JSC$12067_errorDescription_};
_.K.cancel=function(){this.JSC$12067_request_&&this.JSC$12067_request_.abort();this.state_="Cancelled";this.dispatchEvent(new CS("o"))};
_.K.pause=function(){};
_.K.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new CS("l"))};
_.K.onTransferError_=function(){this.JSC$12067_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new CS("n"))};var UW=function(){_.fW.call(this)};
_.p(UW,_.fW);UW.prototype.createXhr=function(){var x=_.fW.prototype.createXhr.call(this);x.upload&&(x.upload.onprogress=(0,_.e1)(this.onProgress_,this));return x};
UW.prototype.onProgress_=function(x){this.dispatchEvent(x)};var zsh=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},coC=function(x,L){var D=x.attempt_+1;
if(x.maxAttempts_>0&&D>x.maxAttempts_)return!1;D==0?L():x.delayCallId_=rG(function(){x.delayCallId_=null;L()},XMr(x),x);
x.attempt_=D;return!0};
zsh.prototype.reset=function(){this.delayCallId_&&_.Qb.clearTimeout(this.delayCallId_);this.attempt_=-1};
var XMr=function(x){var L=250*Math.pow(2,x.attempt_);x.maxDelayMs_>=0&&(L=Math.min(L,x.maxDelayMs_));return L};var Vpn=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var w1=function(){_.Bc.call(this);this.JSC$12077_request_=this.state_=null;this.JSC$12077_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$12077_bytesTransferred_=0;this.retryIterator_=new zsh;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$12077_errorDescription_=null;this.JSC$12077_eventHandler_=new _.Mu(this);_.V1(this,this.JSC$12077_eventHandler_);this.JSC$12077_url_=this.blob_=null;this.JSC$12077_method_=void 0;this.chunkSize_=this.JSC$12077_metadata_=
this.JSC$12077_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$12077_responseText_=this.JSC$12077_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.E9(w1,olR);_.K=w1.prototype;_.K.run=function(){Bg(this)};
_.K.getResponseCode=function(){return this.JSC$12077_responseCode_};
_.K.getResponseText=function(){return this.JSC$12077_responseText_};
_.K.JSC$29513_getErrorDescription=function(){return this.JSC$12077_errorDescription_};
_.K.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$12077_eventHandler_.removeAll();this.JSC$12077_request_&&this.JSC$12077_request_.abort();this.retryIterator_.reset();var x=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(x==="Upload"||x==="Query")x=new UW,x.JSC$9800_withCredentials_=this.JSC$12077_withCredentials_,x.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$12077_bytesTransferred_=
0;this.dispatchEvent(new CS("o"))}};
_.K.pause=function(){this.pauseRequested_=!0};
var Bg=function(x){var L=x.state_;x.pauseRequested_?(x.pauseRequested_=!1,x.stateAfterUnpausing_=L,x.state_="Paused"):coC(x.retryIterator_,function(){switch(x.state_){case "Start":x.JSC$12077_request_=new UW;var D=_.wk.clone(x.JSC$12077_headers_);x.blob_.size!=null&&(D["Content-Length"]=x.blob_.size);D=h7f(D);D["X-Goog-Upload-Protocol"]="resumable";D["X-Goog-Upload-Command"]="start";x.JSC$12077_eventHandler_.removeAll();x.JSC$12077_eventHandler_.listen(x.JSC$12077_request_,"complete",x.onStartComplete_);
x.JSC$12077_request_.JSC$9800_withCredentials_=x.JSC$12077_withCredentials_;x.JSC$12077_request_.send(x.JSC$12077_url_,x.JSC$12077_method_,x.JSC$12077_metadata_,D);x.lastCommandResponseCode_=null;x.dispatchEvent(new lZ("q"));break;case "Upload":D=x.transferHandle_.uploadUrl_;var S=x.blob_.size;if(c7A()){var Q=x.chunkSize_;var J=x.offset_+Q>=S;S=XIC(x.blob_,x.offset_,J?S:x.offset_+Q)}else x.offset_=0,S=x.blob_,J=!0;x.JSC$12077_request_=new UW;x.JSC$12077_request_.JSC$9800_withCredentials_=x.JSC$12077_withCredentials_;
x.JSC$12077_eventHandler_.removeAll();x.JSC$12077_eventHandler_.listen(x.JSC$12077_request_,"progress",x.onUploadProgress_);Q=(0,_.e1)(x.JSC$12079_onUploadComplete_,x,x.offset_+S.size,J);x.JSC$12077_eventHandler_.listen(x.JSC$12077_request_,"complete",Q);x.lastCommandResponseCode_=null;x.dispatchEvent(new lZ("q"));J=Object.assign({},x.JSC$12077_headers_||{},{"X-Goog-Upload-Command":"upload"+(J?", finalize":""),"X-Goog-Upload-Offset":x.offset_});x.JSC$12077_request_.send(D,"POST",S,J);break;case "Query":x.JSC$12077_request_=
new UW;x.JSC$12077_eventHandler_.removeAll();x.JSC$12077_eventHandler_.listen(x.JSC$12077_request_,"complete",x.onQueryComplete_);D=Object.assign({},x.JSC$12077_headers_||{},{"X-Goog-Upload-Command":"query"});x.JSC$12077_request_.send(x.transferHandle_.uploadUrl_,"POST","",D);x.lastCommandResponseCode_=null;x.dispatchEvent(new lZ("q"));break;default:throw Error("hf");}})||Wg(x,"Transfer encountered too many consecutive failures.")},Wg=function(x,L){x.state_="Error";
x.JSC$12077_errorDescription_=L;x.dispatchEvent(new CS("n"))};
w1.prototype.onStartComplete_=function(x){var L=x.target;this.lastCommandResponseCode_=L.getStatus();this.dispatchEvent(new lZ("r"));if(nlh(L))t92(this,L);else if(x_i(L)){x=Qo(x.target.getAllResponseHeaders());for(var D in x)_.Ow(D.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new CS("m"));D=lz(x,"X-Goog-Upload-URL");x=(x=lz(x,"X-Goog-Upload-Chunk-Granularity"))?parseInt(x,10):1;D===void 0||isNaN(x)||x<=0?Wg(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
x)*x,this.transferHandle_=new fVd(D),this.dispatchEvent(new CS("p")),this.state_="Upload",this.retryIterator_.reset(),Bg(this))}else Bg(this)};
w1.prototype.onUploadProgress_=function(x){this.JSC$12077_bytesTransferred_=this.offset_+x.loaded;this.dispatchEvent(new CS("k"))};
w1.prototype.JSC$12079_onUploadComplete_=function(x,L,D){var S=this,Q,J;return _.I(function(Z){switch(Z.nextAddress){case 1:Q=D.target;S.lastCommandResponseCode_=Q.getStatus();S.dispatchEvent(new lZ("r"));if(LeW(Q)||Q.getStatus()==404)return S.JSC$12077_bytesTransferred_=x,t92(S,Q),Z.return();if(x_i(Q)){Z.jumpTo(2);break}if(!(J=S.detectCorruptedBlobEnabled_)){Z.jumpTo(3);break}return Z.yield(D_R(S),4);case 4:J=Z.yieldResult;case 3:if(J)return Wg(S,"Blob has been modified or corrupted."),Z.return();
S.requireUploadRequestModification_=Q.getStatus()==400;S.state_="Query";Bg(S);return Z.return();case 2:if(L)return Wg(S,"Got a non-final success response after issuing a finalize command."),Z.return();S.JSC$12077_bytesTransferred_=x;S.offset_=x;S.retryIterator_.reset();Bg(S);return Z.return()}})};
w1.prototype.onQueryComplete_=function(x){var L=x.target;this.lastCommandResponseCode_=L.getStatus();this.dispatchEvent(new lZ("r"));nlh(L)?(L.getStatus()===200&&(this.JSC$12077_bytesTransferred_=this.blob_.size),t92(this,L)):x_i(L)?(x=Qo(x.target.getAllResponseHeaders()),x=parseInt(lz(x,"X-Goog-Upload-Size-Received"),10),isNaN(x)?Wg(this,"Server did not respond with current offset."):x<this.offset_?Wg(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
x+"."):this.requireUploadRequestModification_&&this.offset_===x?Wg(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<x&&this.retryIterator_.reset(),this.offset_=this.JSC$12077_bytesTransferred_=x,this.state_="Upload",Bg(this))):Bg(this)};
var t92=function(x,L){x.JSC$12077_responseCode_=L.getStatus();var D=Qo(L.getAllResponseHeaders());Hds(D);x.JSC$12077_responseText_=L.getResponseText();x.state_="Response received";x.dispatchEvent(new CS("l"))},x_i=function(x){var L=x.getStatus();
x=Qo(x.getAllResponseHeaders());x=lz(x,"X-Goog-Upload-Status");return L===200&&x==="active"},LeW=function(x){x=Qo(x.getAllResponseHeaders());
return lz(x,"X-Goog-Upload-Status")==="final"},nlh=function(x){if(LeW(x))return!0;
x=x.getStatus();return x>=400&&x<500},D_R=function(x){var L;
return _.I(function(D){if(D.nextAddress==1){if(!x.blob_||x.originalBlobSize_<=0)return D.return(!1);if(x.blob_.size!==x.originalBlobSize_)return D.return(!0);_.HH(D,2);if(L=XIC(x.blob_,0,1)){var S=D.yield,Q=new Sd,J=CNG(Q);Q.reader_.readAsBinaryString(L);D=S.call(D,J,4)}else D=D.return(!0);return D}if(D.nextAddress!=2)return D.return(x.blob_.size!==x.originalBlobSize_);_.mW(D);return D.return(!0)})};var S1d=function(x,L,D,S,Q,J){_.Bc.call(this);this.payload_=S;this.JSC$12080_url_=x;this.JSC$12080_method_=L;this.JSC$12080_headers_=D;this.JSC$12080_metadata_=Q;this.encoding_=J||"binary";x=new _.r_;this.boundary_="uploader-"+am()+"-"+x.JSC$11334_toIsoString();this.JSC$12080_responseText_=this.JSC$12080_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$12080_errorDescription_=null;this.JSC$12080_eventHandler_=new _.Mu(this);_.V1(this,this.JSC$12080_eventHandler_)};
_.p(S1d,olR);_.K=S1d.prototype;
_.K.run=function(){var x=_.wk.clone(this.JSC$12080_headers_);this.payload_.length!=null&&(x["Content-Length"]=this.payload_.length);x=h7f(x);x["X-Goog-Upload-Protocol"]="multipart";x["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new UW;this.JSC$12080_eventHandler_.removeAll();this.JSC$12080_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$12080_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$12080_url_,this.JSC$12080_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$12080_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",x)};
_.K.getResponseCode=function(){return this.JSC$12080_responseCode_};
_.K.getResponseText=function(){return this.JSC$12080_responseText_};
_.K.JSC$29513_getErrorDescription=function(){return this.JSC$12080_errorDescription_};
_.K.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$12080_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new CS("o")))};
_.K.pause=function(){};
_.K.onTransferProgress_=function(){this.dispatchEvent(new CS("k"))};
_.K.onTransferComplete_=function(x){var L=x.target.getStatus();L===void 0||L===-1?(this.JSC$12080_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new CS("n"))):(this.JSC$12080_responseCode_=L,x=x.target,L=Qo(x.getAllResponseHeaders()),Hds(L),this.JSC$12080_responseText_=x.getResponseText(),this.state_="Complete",this.dispatchEvent(new CS("l")))};_.Qwh=function(x,L,D,S){S=S===void 0?!1:S;if(D instanceof roA)return new aVd(x,"POST",L,D.getInputElement(),"");if(typeof D==="string"||D instanceof String)return new S1d(x,"POST",L,D,"");var Q=new w1(void 0);Q.JSC$12077_url_=x;Q.JSC$12077_method_="POST";Q.JSC$12077_headers_=L;Q.blob_=D;Q.originalBlobSize_=D.size;Q.JSC$12077_metadata_="";S&&(Q.JSC$12077_withCredentials_=S);Q.state_="Start";return Q};var qV=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(qV,_.O5);_.K=qV.prototype;_.K.getEnableSsEngine=function(){return _.Ci(this,2)};
_.K.getEnableAwr=function(){return _.Ci(this,3)};
_.K.getAlohaAutoGaRollout=function(){return _.Ci(this,5)};
_.K.getEnableConfigurator=function(){return _.Ci(this,6)};
_.K.getEnableMweb=function(){return _.Ci(this,7)};
var Kei=function(){var x=JRh();return _.wr(x,7,!0)};
qV.prototype.getEnableCtlConsentCheckbox=function(){return _.Ci(this,8)};
qV.prototype.getEnableIframe=function(){return _.Ci(this,9)};
var JRh=function(){var x=new qV;x=_.wr(x,5,!0);x=_.wr(x,2,!0);x=_.wr(x,4,!1);x=_.wr(x,8,!0);return _.wr(x,9,!0)};
qV.prototype.getEnableScreenshotNudge=function(){return _.Ci(this,10)};
var OW2=function(){var x=Kei();return _.wr(x,10,!0)};
qV.prototype.getEnableWebStartupConfigEndpoint=function(){return _.Ci(this,11)};
qV.prototype.getEnableJunkNudge=function(){return _.Ci(this,12)};
var Wk3=function(){var x=OW2();return _.wr(x,12,!0)};
_.K=qV.prototype;_.K.getEnableConfiguratorLocale=function(){return _.Ci(this,13)};
_.K.getEnableTinyNoPointer=function(){return _.Ci(this,14)};
_.K.getEnableSupportSessionLogging=function(){return _.Ci(this,15)};
_.K.getEnableFileUploadForScreenshot=function(){return _.Ci(this,16)};
_.K.getEnableDirectDeflectionForSingleCategory=function(){return _.Ci(this,17)};
_.K.getEnableImageSanitization=function(){return _.Ci(this,18)};
_.K.getEnableAlohaBinarySplit=function(){return _.Ci(this,19)};
_.K.getEnableDbFeedbackIntents=function(){return _.Ci(this,20)};
_.K.getEnableMarkMandatoryFieldsWithRequired=function(){return _.Ci(this,21)};
_.K.getEnableFeedbackCategoryCustomUi=function(){return _.Ci(this,22)};
_.K.getEnableRealtimeCtl=function(){return _.Ci(this,23)};var BIb=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(BIb,_.O5);var uuN=[/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 kTN="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 pxf=_.xI(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),mlf=_.xI(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var YHf,TIh,Fkb,e7N;var ZW_,yRh;
ZW_=function(x,L,D){x.timeOfStartCall=(new Date).getTime();var S=D||_.Qb,Q=S.document,J=x.nonce||_.tw(S.document);J&&!x.nonce&&(x.nonce=J);if(x.flow=="help"){var Z=_.o1("document.location.href",S);!x.helpCenterContext&&Z&&(x.helpCenterContext=Z.substring(0,1200));Z=!0;if(L&&JSON&&JSON.stringify){var y=JSON.stringify(L);(Z=y.length<=1200)&&(x.psdJson=y)}Z||(L={invalidPsd:!0})}L=[x,L,D];S.GOOGLE_FEEDBACK_START_ARGUMENTS=L;D=x.feedbackServerUri||"//www.google.com/tools/feedback";if(Z=S.GOOGLE_FEEDBACK_START)Z.apply(S,L);
else{S=D+"/load.js?";for(var E in x)L=x[E],L==null||_.on(L)||(S+=encodeURIComponent(E)+"="+encodeURIComponent(L)+"&");x=Tj(Q).createElement("SCRIPT");J&&x.setAttribute("nonce",J);_.QD(x,_.Ti(S));Q.body.appendChild(x)}};
yRh=function(x,L,D,S){var Q,J;_.I(function(Z){Q=D||_.Qb;var y=x.serverEnvironment==="DEV",E=D||_.Qb;E=x.nonce||_.tw(E.document);y={integrationKeys:{productId:x.productId,feedbackBucket:x.bucket,triggerId:x.triggerId},callbacks:{onClose:x.callback,onLoad:x.onLoadCallback},formContent:{locale:x.locale,disableScreenshot:x.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:x.abuseLink,additionalDataConsent:x.additionalDataConsent},initializationData:{isLocalServer:y,nonce:E,useNightlyRelease:y,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:x.feedbackServerUri,colorScheme:x.colorScheme},extraData:{productVersion:x.productVersion,authUser:x.authuser,configuratorId:x.configuratorId,customZIndex:x.customZIndex,tinyNoPointer:x.tinyNoPointer,
allowNonLoggedInFeedback:x.allowNonLoggedInFeedback,enableAnonymousFeedback:x.enableAnonymousFeedback}};L&&(E=new Map(Object.entries(L)),y.extraData.productSpecificData=E);J=y;return Z.yield(lB0(J,S,Q),0)})};
_.I9H=function(x,L,D){try{if(x.flow==="help"){var S=x.helpCenterPath.replace(/^\//,"");_.nU(D||window,"https://support.google.com/"+S)}else x.flow==="submit"?ZW_(x,L,D):qHp(x.productId,x.feedbackServerUri).then(function(Q){Q=_.Mg(Q,qV,1);var J=!Sbp||(Q==null?void 0:Q.getEnableMweb()),Z=!x.tinyNoPointer||(Q==null?void 0:Q.getEnableTinyNoPointer());!Q||Q.getAlohaAutoGaRollout()&&J&&Z?yRh(x,L,D,Q):ZW_(x,L,D)},function(Q){Q&&Q.name!=="DuplicateFormError"&&ZW_(x,L,D)})}catch(Q){yRh(x,L,D,null)}};
_.KK("userfeedback.api.startFeedback",_.I9H);var ASs=/https?:\/\/\S+\.\S+/,$lb=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],rSh=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var PDf=function(x){var L=x.split(""),D=[-263237435,15,L,function(S,Q,J){var Z=Q.length;J.forEach(function(y,E,P){this.push(P[E]=Q[(Q.indexOf(y)-Q.indexOf(this[E])+E+Z--)%Q.length])},S.split(""))},
function(S,Q){S=(S%Q.length+Q.length)%Q.length;Q.splice(-S).reverse().forEach(function(J){Q.unshift(J)})},
"response",function(){for(var S=64,Q=[];++S-Q.length-32;){switch(S){case 58:S-=14;case 91:case 92:case 93:continue;case 123:S=47;case 94:case 95:case 96:continue;case 46:S=95}Q.push(String.fromCharCode(S))}return Q},
null,12,1540023973,65941107,null,L,function(S,Q){for(S=(S%Q.length+Q.length)%Q.length;S--;)Q.unshift(Q.pop())},
695603893,function(S){for(var Q=S.length;Q;)S.push(S.splice(--Q,1)[0])},
"'[;'[(",function(S,Q){S.push(Q)},
null,function(S,Q,J,Z,y){return Q(J,Z,y)},
"continuation",L,function(S,Q){if(S.length!=0){Q=(Q%S.length+S.length)%S.length;var J=S[0];S[0]=S[Q];S[Q]=J}},
function(){for(var S=64,Q=[];++S-Q.length-32;){switch(S){case 91:S=44;continue;case 123:S=65;break;case 65:S-=18;continue;case 58:S=96;continue;case 46:S=95}Q.push(String.fromCharCode(S))}return Q},
'"),/]];'];D[7]=D;D[11]=D;D[18]=D;try{(((0,D[15])(D[21]),D[22])(D[11],D[9]),D[22])(D[new Date("1970-01-01T04:30:12.000+04:30")/1E3],D[1]),((0,D[22])(D[11],D[23]),D[4])(D[10],D[18]),(0,D[20])(D[21],D[14])<<(0,D[17])(D[18],D[1]),(0,D[4])(D[8],D[21]),(0,D[19])((0,D[19])((0,D[17])(D[7],D[9]),D[3],D[20],(0,D[6])(),D[2]),D[3],D[5],(0,D[15])(),D[2])}catch(S){return"aTlOUOubTO4AP____8P_"+x}return L.join("")};_.Exr=new _.jp("runAttestationCommand");var MSd=new _.jp("verifyCommand");_.Fm=new _.jp("accessibilityContext");var d_d=new _.jp("accessibilityData");var PO2=new _.jp("profileCardCommand");var htG=new _.jp("signInEndpoint");var Vas=new _.jp("signOutEndpoint");var vxG;_.jwQ=new _.jp("accountItemSectionRenderer");vxG=new _.jp("accountItemRenderer");_.VS2=new _.jp("saveCommandToSessionStorageAction");var hSh=new _.jp("crossAccountChannelTransferEndpoint");var dOb=new _.jp("getAccountMenuEndpoint");_.PXw=new _.jp("getAccountSwitcherEndpoint");var Me0=new _.jp("getAccountsListEndpoint");var HW2=new _.jp("getAccountsListInnertubeEndpoint");_.Aa=new _.jp("addToToastAction");var uC_=new _.jp("hideEnclosingAction");_.$K=new _.jp("replaceEnclosingAction");var gx2=new _.jp("buttonRefreshAction");var kmQ=new _.jp("adsControlFlowOpportunityReceivedCommand");var pcA=new _.jp("openAdAllowlistInstructionCommand");var m_r=new _.jp("videoMastheadAdPrimaryVideoRenderer");var bWC=new _.jp("displayAdRenderer");_.Y1W=new _.jp("inFeedAdLayoutRenderer");var FeG=new _.jp("sequenceItemInPlayerAdLayoutRenderer");_.swh=new _.jp("adSlotRenderer");var TG2=new _.jp("adAvatarViewModel");var eSQ=new _.jp("adBadgeViewModel");var RSi=new _.jp("adButtonViewModel");var GmQ=new _.jp("adImageViewModel");var lU0=new _.jp("reelsAdCardButtonedViewModel");var COQ=new _.jp("reelsPlayerOverlayLayoutViewModel");var l9h=new _.jp("showSchedulingPanelCommand");var U_G=new _.jp("backstageCommentsRenderer");var wci=new _.jp("backstageImageRenderer");var BGd=new _.jp("backstagePostRenderer");var Weh=new _.jp("backstageZeroStateRenderer");var q1W=new _.jp("postRenderer");var ARd=new _.jp("sharedPostRenderer");var $_d=new _.jp("createBackstagePostEndpoint");var rRr=new _.jp("getPostVideoPreviewEndpoint");var NGR=new _.jp("updateBackstagePostEndpoint");var iW_=new _.jp("filterChipTransformCommand");var f9r=new _.jp("insertRichSectionCommand");var enG=new _.jp("talkToRecsDeselectCommand");var Cnf=new _.jp("talkToRecsNextCommand");var TlG=new _.jp("talkToRecsSelectCommand");var ox2=new _.jp("talkToRecsUpdateTextCommand");_.mt=new _.jp("browseEndpoint");_.a9A=new _.jp("confirmDialogEndpoint");var zSH=new _.jp("expandOnHoverCardRenderer");var Xcd=new _.jp("lumiereShelfDetailsRenderer");var cRB=new _.jp("revealBusinessEmailCommand");var nxh=new _.jp("validateChannelHandleCommand");var tSH=new _.jp("channelCreationFormEndpoint");var xo_=new _.jp("aboutChannelViewModel");var Ls2=new _.jp("channelThumbnailWithLinkRenderer");var DoH=new _.jp("channelCreationServiceEndpoint");var Sxh=new _.jp("updateChannelPageSettingsEndpoint");var r1=function(x){this.delegate=x},NV=function(){r1.apply(this,arguments)};
_.p(NV,r1);_.J3.Object.defineProperties(NV.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(x){this.delegate.entityMetadata=x}}});var Q2r=function(){NV.apply(this,arguments)};
_.p(Q2r,NV);Q2r.prototype.getAssociations=function(){return[]};
Q2r.prototype.getTypeName=function(){return"channelHandle"};var hWN=new _.jp("webThumbnailDetailsExtensionData");var Bub=new _.jp("commandContext");var JmG=new _.jp("addVideoLinkAction");var KsB=new _.jp("banAuthorAction");var OrG=new _.jp("createCommentAction");var Zr_=new _.jp("createCommentReplyAction");var ymh=new _.jp("createPollAction");var I7H=new _.jp("hideIdentityChipAction");var E02=new _.jp("openUpdateCommentDialogAction");var Mui=new _.jp("pinCommentAction");var doB=new _.jp("removeCommentAction");var PJd=new _.jp("unpinCommentAction");var iZ=new _.jp("updateBackstagePollAction");var j2C=new _.jp("updateCommentVoteAction");var v0h=new _.jp("commentThreadRenderer");var VuB=function(){NV.apply(this,arguments)};
_.p(VuB,NV);VuB.prototype.getAssociations=function(){return[]};
VuB.prototype.getTypeName=function(){return"contextNoteFeedEntityPayload"};var hQG=function(){NV.apply(this,arguments)};
_.p(hQG,NV);hQG.prototype.getAssociations=function(){return[]};
hQG.prototype.getTypeName=function(){return"contextNoteUserRatingEntityPayload"};_.HrQ=new _.jp("commentDialogRenderer");var uNB=new _.jp("reloadCommentsCommand");var g02=new _.jp("updateCommentsSettingsEndpoint");var kph=new _.jp("commentViewModel");var pZR=new _.jp("triStateButtonViewModel");var moi=new _.jp("voiceReplyContainerViewModel");_.h_=new _.jp("commandExecutorCommand");var rB=new _.jp("emoji");var brd=new _.jp("updateCreatorChannelInnertubeCommand");_.YxA=new _.jp("appendContinuationItemsAction");_.Fs2=new _.jp("changeEngagementPanelVisibilityAction");_.ol=new _.jp("continuationCommand");var s2R=new _.jp("hideReportedCommentAction");var Tfi=new _.jp("listMutationCommand");_.fS=new _.jp("openPopupAction");var eQQ=new _.jp("persistSubscriptionsDisplayPreferencesCommand");var Ws_;_.RQW=new _.jp("playlistRemoveVideosAction");_.GpB=new _.jp("updatePlaylistAction");_.CJr=new _.jp("addToPlaylistCommand");_.l7A=new _.jp("endPlaylistCommand");_.Uoh=new _.jp("recoverPlaylistCommand");_.wZi=new _.jp("refreshPlaylistCommand");_.BfH=new _.jp("refreshFormCommand");Ws_=new _.jp("openOnePickAddVideoModalCommand");_.ua0=new _.jp("reloadContinuationItemsCommand");_.qx2=new _.jp("scrollToEngagementPanelCommand");var Am2=new _.jp("selectCountryCommand");var $o2=new _.jp("showReloadUiCommand");var rmd=new _.jp("undoFeedbackAction");var Nfr=new _.jp("updateButtonAction");var irW=new _.jp("updateSubscribeButtonAction");var f7G=new _.jp("updateToggleAction");var o0r=new _.jp("webNativeShareCommand");_.gg=new _.jp("webCommandMetadata");_.of=new _.jp("webHandleServiceEndpointExtension");var PKf=new _.jp("webNavigationEndpointData");var a72=new _.jp("backgroundAudioPlaybackCommand");var zQ_=new _.jp("copyLinkCommand");var XZG=new _.jp("playlistVotingRefreshPopupCommand");var cmB=new _.jp("selectChipCommand");var n0G=new _.jp("setCookieCommand");var tuh=new _.jp("setLocalStorageCommand");var xld=new _.jp("setPrefStorageEntryCommand");var Qs_;_.Lki=new _.jp("settingsUpdateCheckboxCommand");_.DlW=new _.jp("settingsUpdateTextCommand");_.SHh=new _.jp("settingsUpdateOptionsCommand");Qs_=new _.jp("settingsUpdateSwitchCommand");_.JSA=new _.jp("settingsUpdateConnectedAppRendererCommand");var Kkr=new _.jp("showCreatorChatbotEngagementPanelCommand");var Odh=new _.jp("updateTextInputFormFieldRendererCommand");var ZdA=new _.jp("updateToggleButtonStateCommand");var yS2=new _.jp("updateUrlParamCommand");var IBh=new _.jp("webSubmitFormCommand");var Eoh=new _.jp("channelSwitcherPageRenderer"),Mpi=new _.jp("updateChannelSwitcherPageAction");_.SK=new _.jp("continuationItemRenderer");_.af=new _.jp("richItemRenderer");var dlC=new _.jp("richSectionRenderer");_.PB_=new _.jp("richShelfRenderer");_.jsC=new _.jp("metadataBadgeRenderer");_.voQ=new _.jp("multiPageMenuNotificationSectionRenderer");_.Vpi=new _.jp("playlistLoopButtonStateRenderer");var h7H=new _.jp("claimLegacyYoutubeChannelEndpoint");var HdG=new _.jp("getNotificationMenuEndpoint");var uuB=new _.jp("getSearchInVideoCommand");_.go2=new _.jp("getTranscriptEndpoint");_.ul=new _.jp("signalServiceEndpoint");var kTB=new _.jp("verifyAgeEndpoint");var Vzc=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(Vzc,_.O5);Vzc.prototype.getPath=function(){return _.wy(this,1)};
Vzc.prototype.getValue=function(){return _.wy(this,2)};var pxh=[0,_.Q8,-1];var mlh=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(mlh,_.O5);var vnO=_.Vv(mlh,[0,_.Oc,pxh]);var bdQ=new _.jp("dismissalEndpoint");var YHh=new _.jp("elementsCommand");_.ii=new _.jp("innertubeCommand");var FkQ=new _.jp("multipleInlinePlaybackCommand");var nDb=new _.jp("loggingDirectives");var ssi=new _.jp("acknowledgeChannelTouStrikeCommand");var TI2=function(){NV.apply(this,arguments)};
_.p(TI2,NV);TI2.prototype.getAssociations=function(){return[]};
TI2.prototype.getTypeName=function(){return"booleanEntity"};var e7B=function(){NV.apply(this,arguments)};
_.p(e7B,NV);e7B.prototype.getAssociations=function(){return[]};
e7B.prototype.getTypeName=function(){return"stringEntity"};var Ds=new _.jp("entityBatchUpdate");_.Gv0=new _.jp("entityUpdateCommand");var R7W=function(){NV.apply(this,arguments)};
_.p(R7W,NV);R7W.prototype.getAssociations=function(){var x=[];this.delegate.alternateChannel&&x.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&x.push.apply(x,_.lP(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&x.push(this.delegate.oneofChannelEntity);return[].concat(_.lP(new Set(x)))};
R7W.prototype.getTypeName=function(){return"fakeChannel"};var GT_=function(){NV.apply(this,arguments)};
_.p(GT_,NV);GT_.prototype.getAssociations=function(){var x=[];this.delegate.entryCollection&&x.push(this.delegate.entryCollection);return[].concat(_.lP(new Set(x)))};
GT_.prototype.getTypeName=function(){return"fakePlaylist"};
var CB_=function(){NV.apply(this,arguments)};
_.p(CB_,NV);CB_.prototype.getAssociations=function(){var x=[];this.delegate.parentPlaylist&&x.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var L=_.O(this.delegate.entries),D=L.next();!D.done;D=L.next())x.push.apply(x,_.lP((new lBA(D.value)).getAssociations()));return[].concat(_.lP(new Set(x)))};
CB_.prototype.getTypeName=function(){return"fakePlaylistEntryCollection"};
var lBA=function(){r1.apply(this,arguments)};
_.p(lBA,r1);lBA.prototype.getAssociations=function(){var x=[];this.delegate.video&&x.push(this.delegate.video);return[].concat(_.lP(new Set(x)))};var Uli=function(){NV.apply(this,arguments)};
_.p(Uli,NV);Uli.prototype.getAssociations=function(){var x=[];this.delegate.descriptionEntity&&x.push(this.delegate.descriptionEntity);this.delegate.creators&&x.push.apply(x,_.lP(this.delegate.creators));this.delegate.theBiggestFan&&x.push(this.delegate.theBiggestFan);return[].concat(_.lP(new Set(x)))};
Uli.prototype.getTypeName=function(){return"fakeVideo"};
var wxC=function(){NV.apply(this,arguments)};
_.p(wxC,NV);wxC.prototype.getAssociations=function(){return[]};
wxC.prototype.getTypeName=function(){return"fakeVideoDescription"};var BIQ=new _.jp("fantasyRosterViewModel");var Wk2=new _.jp("addFollowUpSurveyCommand");var qHh=new _.jp("getSurveyCommand");var ASG=new _.jp("ratingSurveyOptionRenderer");_.Uy=new _.jp("feedbackEndpoint");var $lQ=new _.jp("reportHistoryTableCellRenderer"),rS2=new _.jp("reportHistoryTableTextCellRenderer"),NIQ=new _.jp("reportHistoryTableReasonCellRenderer");_.id2=new _.jp("flagEndpoint");_.fBW=new _.jp("flowNextStepCommand");_.ooG=new _.jp("flowPrevStepCommand");var aB_=new _.jp("getFlowCommand");var z7W=new _.jp("submitFormWithValidationFlowCommand");_.Xx2=new _.jp("updateFlowCommand");var cSH=function(){NV.apply(this,arguments)};
_.p(cSH,NV);cSH.prototype.getAssociations=function(){return[]};
cSH.prototype.getTypeName=function(){return"flowStateEntity"};var noA=new _.jp("flowFormState");_.zd=new _.jp("flowStepRenderer");var tpB=new _.jp("gameCardRenderer");var xcB=new _.jp("accountLinkingStateChangedCommand");var LDC=function(){NV.apply(this,arguments)};
_.p(LDC,NV);LDC.prototype.getAssociations=function(){return[]};
LDC.prototype.getTypeName=function(){return"accountLinkStatusEntity"};var Dch=new _.jp("changeMiniAppPlayStateCommand");var SLQ=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(SLQ,_.O5);var Xn=[1,2,3];var Q4A=[0,Xn,Uzs,_.Kt,T9w];var JsQ=_.Vv(SLQ,Q4A),KDh=_.hw(Q4A);var O0r=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(O0r,_.O5);var Z0R=[0,_.ni,_.Q8];var ysG=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(ysG,_.O5);var IwG=[0,_.Q8,_.ni,-1];var cg=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(cg,_.O5);var EtQ=_.hw([0,1,Z0R,_.y8,IwG]);var MHC=new _.jp("miniAppScoreChallengeViewModel");var dc2=new _.jp("miniGameCardViewModel");var P_r=new _.jp("teaserCardViewModel");var j4C=function(){NV.apply(this,arguments)};
_.p(j4C,NV);j4C.prototype.getAssociations=function(){return[]};
j4C.prototype.getTypeName=function(){return"logoEntity"};var vti=new _.jp("feedbackItemRenderer");var VHG=function(){NV.apply(this,arguments)};
_.p(VHG,NV);VHG.prototype.getAssociations=function(){return[]};
VHG.prototype.getTypeName=function(){return"interstitialInteractionStateEntity"};_.hj2=new _.jp("playerInterstitialRenderer");var H0r=new _.jp("getKidsBlocklistPickerCommand");_.u4B=new _.jp("updateKidsBlacklistEndpoint");_.N1=new _.jp("likeEndpoint");var gtQ,kPA,pOh;gtQ=new _.jp("addChatItemAction");kPA=new _.jp("removeChatItemAction");pOh=new _.jp("markChatItemAsDeletedAction");_.mcA=new _.jp("setLiveChatCollapsedStateAction");var b0G=function(){NV.apply(this,arguments)};
_.p(b0G,NV);b0G.prototype.getAssociations=function(){return[]};
b0G.prototype.getTypeName=function(){return"liveChatPollStateEntity"};var YLQ=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(YLQ,_.O5);var FDB=[0,_.Oc,[0,[1,2],_.Kt,_.ZV,[0,_.Jo,1,_.Jo]]];var s42=[0,_.Q8,-1];var T_i=[0,[1],_.Kt];var nS=[0,[1,2],_.Kt,_.ZV,[0,_.y8]];var ta=[0,_.Q8];var ejR=[0,[0,_.DV,_.Lt,[0,_.Jo,_.Ia,_.Jo]],1,[0,_.DV]];var RjW=[0,t9];var GPd=[0,t9];var C_h=[0,GPd,RjW];var lwC=[0,_.Oc,[0,[1,2],_.Kt,-1],_.DV];var Ucr=[0,[2],1,_.ZV,[0,_.Jo,-1,lwC]];var wOC=[0,[1],_.ZV,[0,_.Jo,_.Q8,_.Ia,1,lwC]];var B_i=[0,_.Lt,-1,sCh,_.y8];var WDi=[0,[0,cN,-3],-4];var xh=[0,_.DV,-3,_.Q8,_.DV,_.Pc,_.DV,FDB,_.DV,-2];var Lv=[0,_.Oc,[0,[1,2],_.Kt,-1],_.DV,_.Q8];var qLR=[0,[3],nS,[0,[2,3,4],rCc,_.Kt,-2],_.ZV,[0,_.Q8],_.ni];var AsW=[0,[3,5],_.Q8,xl,_.ZV,[0,1,_.ni,_.y8],_.y8,_.ZV,[0,_.y8,_.ni]];var $cG=[0,2,xl,_.Q8,-1];var rsR=[0,C4w];var N_2=[0,[3,4],2,eX4,_.Kt,_.Q8];var i0B=[0,_.y8,-2,1,_.Q8];var fwQ=[0,_.Q8,-1,_.y8];var ot2=[0,ta,function(){return Dq},
ta,_.Q8],aw_=[0,_.y8,ta,nS,function(){return Dq},
_.Q8],Dq=[-160,{},[101,103,104,105,106,107,108,109,114,115,116,117,118,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,141,142,144,146,147,148,149,150,151,152,153,154,155,156,157,158,159],ta,xl,[0,_.DV,1,_.DV,1,_.DV,1,_.y8,-1,ta],[0,1,_.DV,2,_.DV,_.y8,_.DV],1,xl,-1,_.Q8,xl,2,cN,[0,cN,xl],_.Q8,1,ejR,1,nS,_.Pc,1,[0,[0,_.Oc,[0,_.Q8,_.DV,_.y8]]],[0,_.DV,[0,_.ni,[0,_.Ia]],_.ni,1,[0,RX0,-1]],_.Q8,[0,1,_.Q8],76,_.ZV,[0,nS,Lv,ejR,1,[0,_.Oc,Lv]],1,_.ZV,[0,nS,_.Q8,_.DV],_.ZV,
[0,nS,T_i],_.ZV,[0,nS,T_i,xl],_.ZV,[0,nS,T_i],_.ZV,[0,nS,_.Oc,ta,nS,wAf],_.ZV,[0,nS,ta,_.Q8],_.ZV,[0,nS,_.DV,xh,-1,_.DV],4,_.ZV,[0,nS,_.DV,xl,xh,_.DV],_.ZV,[0,[4,9],nS,_.y8,xl,_.Kt,Lv,1,ejR,_.Q8,_.Kt,i0B],_.ZV,[0,nS,ta,nS,_.y8,_.Q8],_.ZV,[0,_.DV,nS,xh,_.DV,_.Q8],_.ZV,[0,nS,ta,nS,_.y8,_.Q8],1,_.ZV,[0,nS,_.y8,_.Q8,xh],_.ZV,[0,nS,_.y8,[0,_.Q8,xl],_.Q8,xl,_.Q8,AC0,-2,3,fwQ,_.Oc,fwQ,fwQ,i0B],_.ZV,[0,nS,_.y8,wOC,_.Oc,[0,GPd,Ucr],ta,_.Oc,C_h,_.Q8,1,_.y8,B_i,WDi,FCf,-1],_.ZV,[0,nS,[0,_.Ia,-1,wOC,_.Oc,[0,
GPd,Ucr,RjW],[0,_.jS],1,_.Jo],ta,_.Q8],_.ZV,[0,nS,Lv,_.Q8,[0,_.Lt]],_.ZV,function(){return aw_},
_.ZV,[0,nS,xl,_.Q8,-1,_.DV],_.ZV,[0,[6,7],nS,_.Oc,$cG,_.y8,Lv,1,_.ZV,N_2,_.ZV,rsR],_.ZV,[0,_.Oc,$cG,_.y8,_.DV],_.ZV,[0,_.Q8,BH2,-1],_.ZV,[0,ta,_.Oc,C_h,_.Q8],_.ZV,[0,nS,ta,_.Q8],_.ZV,[0,AC0,_.Q8],_.ZV,[0,s42],_.ZV,[0,s42],_.ZV,[0,Lv],_.ZV,[0,ta,Lv],_.ZV,function(){return ot2},
_.ZV,[0,ta,_.Q8],_.ZV,[0,ta,_.Q8],1,_.ZV,[0,_.DV,nS,xh,_.DV,xh],_.ZV,[0,_.jS],1,_.ZV,[0],1,_.ZV,[0,ta,_.y8,nS,_.y8],_.ZV,[0,[1,2],_.ZV,N_2,_.ZV,rsR,xl],_.ZV,[0,_.jS,Lv,AsW,_.Q8,xl],_.ZV,[0,AsW,_.Q8,xl],_.ZV,[0,B_i,Lv,_.DV,WDi],_.ZV,qLR,_.ZV,[0],_.ZV,[0,_.Q8,-1,_.ni],_.ZV,[0,ta,_.Q8],_.ZV,[0,qLR,_.ni,_.Q8],_.ZV,[0,nS,xh,_.DV],_.ZV,[0,nS,xh,_.DV],_.ZV,[0,B_i,WDi,Lv,_.Pc,_.DV,FCf,-1],_.ZV,[0,nS,xh,_.DV]];var zjh=[0,_.Oc,Dq];var XOB=_.Vv(YLQ,[0,1,_.ni,[0,[18,22,24],zjh,3,[0,zjh],1,_.ni,[0,_.Oc,[0,xl,cN],xl],1,Dq,-1,[0,_.S9,-2,_.Pc,_.S9,-1,_.Pc,_.S9,FDB,_.S9,-2],bnf,[!0,_.Q8,[0,T_i,2,_.Q8,xl,_.DV,2,_.Q8,AC0]],[0,[1,2,3],[5,6],_.ZV,[0,_.Jo],_.ZV,[0,_.Jo,-1],_.ZV,[0,_.Jo],1,_.ZV,s42,_.ZV,[0,_.Q8]],[0,Dq,-1],_.jS,Dq,_.ZV,Dq,[0,zjh],_.ni,Dq,_.ZV,Dq,_.Q8,_.ZV,Dq]]);var csA=new _.jp("liveChatEndpoint");var ntH=new _.jp("liveChatItemContextMenuEndpoint");var tH2=new _.jp("liveChatReplayEndpoint");_.xYB=new _.jp("emojiPickerRenderer");var L9G=new _.jp("liveChatAuthorBadgeViewModel");var DYA=new _.jp("deleteLiveChatMessageCommand");var SFh=new _.jp("liveChatActionEndpoint");var Q_h=new _.jp("createLiveChatPollEndpoint");var J4A=new _.jp("manageLiveChatUserEndpoint");var K9A=new _.jp("moderateLiveChatEndpoint");_.O1r=new _.jp("sendLiveChatMessageEndpoint");var Z1Q=new _.jp("sendLiveChatVoteEndpoint");var y4H=new _.jp("clearLocationCommand");var IzB=new _.jp("resolveLocationCommand");var EEC=new _.jp("interactionLoggingCommandMetadata");var MdQ=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(MdQ,_.O5);var dYd=function(x,L){return _.db(x,1,L)};var PhQ=[0,_.DV];var j_W=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(j_W,_.O5);var vE2=function(x,L){return pV(x,1,MdQ,L)};j_W.prototype.JSC$12174_serializeBinary=iU3([0,_.Oc,PhQ]);var Etb={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 Vd2={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"},
h_G={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 Dhs={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"};_.WdG=new _.jp("logFlowLoggingEventCommand");_.T$=new _.jp("loggingContext");var H1i=new _.jp("audioTrackSelectActionCommand");var uOH=new _.jp("captionLanguageSelectActionCommand");var gER=new _.jp("showAudioTrackPickerActionCommand");var kXC=new _.jp("showCaptionLanguageSelectActionCommand");var puQ=new _.jp("dismissDialogEndpoint");var mYR=new _.jp("dismissPlayerOverlayCommand");var b1B=new _.jp("hideItemSectionVideosByIdCommand");var YFW=new _.jp("showMiniplayerCommand");var F9W=function(){NV.apply(this,arguments)};
_.p(F9W,NV);F9W.prototype.getAssociations=function(){return[]};
F9W.prototype.getTypeName=function(){return"downloadQualityPickerEntity"};var s_H=function(){NV.apply(this,arguments)};
_.p(s_H,NV);s_H.prototype.getAssociations=function(){return[]};
s_H.prototype.getTypeName=function(){return"downloadStatusEntity"};var Thr=function(){NV.apply(this,arguments)};
_.p(Thr,NV);Thr.prototype.getAssociations=function(){return[]};
Thr.prototype.getTypeName=function(){return"downloadsPageRefreshTokenEntity"};var e_R=function(){NV.apply(this,arguments)};
_.p(e_R,NV);e_R.prototype.getAssociations=function(){var x=[];this.delegate.downloadsList&&x.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&x.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&x.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&x.push(this.delegate.refresh);return[].concat(_.lP(new Set(x)))};
e_R.prototype.getTypeName=function(){return"mainDownloadsLibraryEntity"};var R_d=function(){NV.apply(this,arguments)};
_.p(R_d,NV);R_d.prototype.getAssociations=function(){var x=[];this.delegate.refresh&&x.push(this.delegate.refresh);if(this.delegate.downloads)for(var L=_.O(this.delegate.downloads),D=L.next();!D.done;D=L.next())x.push.apply(x,_.lP((new GXW(D.value)).getAssociations()));return[].concat(_.lP(new Set(x)))};
R_d.prototype.getTypeName=function(){return"mainDownloadsListEntity"};
var GXW=function(){r1.apply(this,arguments)};
_.p(GXW,r1);GXW.prototype.getAssociations=function(){var x=[];this.delegate.video&&x.push(this.delegate.video);this.delegate.playlist&&x.push(this.delegate.playlist);this.delegate.videoItem&&x.push(this.delegate.videoItem);this.delegate.playlistItem&&x.push(this.delegate.playlistItem);return[].concat(_.lP(new Set(x)))};var Chh=function(){NV.apply(this,arguments)};
_.p(Chh,NV);Chh.prototype.getAssociations=function(){var x=[];this.delegate.localImageEntities&&x.push.apply(x,_.lP(this.delegate.localImageEntities));return[].concat(_.lP(new Set(x)))};
Chh.prototype.getTypeName=function(){return"mainPlaylistDownloadStateEntity"};var lzB=function(){NV.apply(this,arguments)};
_.p(lzB,NV);lzB.prototype.getAssociations=function(){var x=[];this.delegate.playbackData&&x.push(this.delegate.playbackData);this.delegate.localImageEntities&&x.push.apply(x,_.lP(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&x.push(this.delegate.videoDownloadContextEntity);return[].concat(_.lP(new Set(x)))};
lzB.prototype.getTypeName=function(){return"mainVideoDownloadStateEntity"};var UY2=function(){NV.apply(this,arguments)};
_.p(UY2,NV);UY2.prototype.getAssociations=function(){return[]};
UY2.prototype.getTypeName=function(){return"offlineabilityEntity"};var wuG=function(){NV.apply(this,arguments)};
_.p(wuG,NV);wuG.prototype.getAssociations=function(){var x=[];this.delegate.fakeChildren&&x.push.apply(x,_.lP(this.delegate.fakeChildren));return[].concat(_.lP(new Set(x)))};
wuG.prototype.getTypeName=function(){return"orchestrationWebSamplingEntity"};var Bh2=function(){NV.apply(this,arguments)};
_.p(Bh2,NV);Bh2.prototype.getAssociations=function(){var x=[];this.delegate.video&&x.push(this.delegate.video);this.delegate.playbackData&&x.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&x.push(this.delegate.offlineVideoPolicy);return[].concat(_.lP(new Set(x)))};
Bh2.prototype.getTypeName=function(){return"ytMainDownloadedVideoEntity"};var W9C=function(){NV.apply(this,arguments)};
_.p(W9C,NV);W9C.prototype.getAssociations=function(){return[]};
W9C.prototype.getTypeName=function(){return"continuationTokenEntity"};var qFh=function(){NV.apply(this,arguments)};
_.p(qFh,NV);qFh.prototype.getAssociations=function(){var x=[];this.delegate.channelOwner&&x.push(this.delegate.channelOwner);this.delegate.videos&&x.push.apply(x,_.lP(this.delegate.videos));this.delegate.collaboratorChannels&&x.push.apply(x,_.lP(this.delegate.collaboratorChannels));this.delegate.downloadState&&x.push(this.delegate.downloadState);this.delegate.refresh&&x.push(this.delegate.refresh);return[].concat(_.lP(new Set(x)))};
qFh.prototype.getTypeName=function(){return"mainPlaylistEntity"};var A4G=function(){NV.apply(this,arguments)};
_.p(A4G,NV);A4G.prototype.getAssociations=function(){var x=[];this.delegate.video&&x.push(this.delegate.video);this.delegate.channelContributor&&x.push(this.delegate.channelContributor);return[].concat(_.lP(new Set(x)))};
A4G.prototype.getTypeName=function(){return"mainPlaylistVideoEntity"};var $YQ=function(){r1.apply(this,arguments)};
_.p($YQ,r1);$YQ.prototype.getAssociations=function(){var x=[];this.delegate.recommendedVideoMetadata&&x.push.apply(x,_.lP((new r4H(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.lP(new Set(x)))};
var r4H=function(){r1.apply(this,arguments)};
_.p(r4H,r1);r4H.prototype.getAssociations=function(){var x=[];this.delegate.localImageEntities&&x.push.apply(x,_.lP(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&x.push(this.delegate.videoDownloadContextEntity);return[].concat(_.lP(new Set(x)))};var Nhh=function(){r1.apply(this,arguments)};
_.p(Nhh,r1);Nhh.prototype.getAssociations=function(){var x=[];this.delegate.playbackPosition&&x.push(this.delegate.playbackPosition);return[].concat(_.lP(new Set(x)))};var i1r=function(){NV.apply(this,arguments)};
_.p(i1r,NV);i1r.prototype.getAssociations=function(){var x=[];this.delegate.owner&&x.push(this.delegate.owner);this.delegate.downloadState&&x.push(this.delegate.downloadState);this.delegate.userState&&x.push.apply(x,_.lP((new Nhh(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&x.push.apply(x,_.lP((new $YQ(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.lP(new Set(x)))};
i1r.prototype.getTypeName=function(){return"mainVideoEntity"};var fzi=function(){NV.apply(this,arguments)};
_.p(fzi,NV);fzi.prototype.getAssociations=function(){var x=[];this.delegate.userChannelDetails&&x.push(this.delegate.userChannelDetails);return[].concat(_.lP(new Set(x)))};
fzi.prototype.getTypeName=function(){return"ytMainChannelEntity"};var oEr=function(){NV.apply(this,arguments)};
_.p(oEr,NV);oEr.prototype.getAssociations=function(){var x=[];this.delegate.channelOwner&&x.push(this.delegate.channelOwner);this.delegate.playbackPosition&&x.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&x.push.apply(x,_.lP(this.delegate.localImageEntities));this.delegate.downloadStatus&&x.push(this.delegate.downloadStatus);return[].concat(_.lP(new Set(x)))};
oEr.prototype.getTypeName=function(){return"ytMainVideoEntity"};var JYN=new _.jp("downloadsPageSmartDownloadsOptInBannerParams");var yYp=new _.jp("downloadsPageUpsellBannerParams");var azi=function(){NV.apply(this,arguments)};
_.p(azi,NV);azi.prototype.getAssociations=function(){return[]};
azi.prototype.getTypeName=function(){return"downloadsPageViewConfigurationEntity"};var z_2=function(){NV.apply(this,arguments)};
_.p(z_2,NV);z_2.prototype.getAssociations=function(){return[]};
z_2.prototype.getTypeName=function(){return"likeButtonAnimationEntity"};var XuQ=function(){NV.apply(this,arguments)};
_.p(XuQ,NV);XuQ.prototype.getAssociations=function(){return[]};
XuQ.prototype.getTypeName=function(){return"macroMarkerEntity"};var c4W=function(){NV.apply(this,arguments)};
_.p(c4W,NV);c4W.prototype.getAssociations=function(){return[]};
c4W.prototype.getTypeName=function(){return"markersEngagementPanelSyncEntity"};var nER=function(){NV.apply(this,arguments)};
_.p(nER,NV);nER.prototype.getAssociations=function(){return[]};
nER.prototype.getTypeName=function(){return"markersVisibilityOverrideEntity"};var tdQ=function(){NV.apply(this,arguments)};
_.p(tdQ,NV);tdQ.prototype.getAssociations=function(){return[]};
tdQ.prototype.getTypeName=function(){return"playerStateEntity"};var xVr=function(){NV.apply(this,arguments)};
_.p(xVr,NV);xVr.prototype.getAssociations=function(){return[]};
xVr.prototype.getTypeName=function(){return"selectedChipIndexEntityPayload"};var LGh=function(){NV.apply(this,arguments)};
_.p(LGh,NV);LGh.prototype.getAssociations=function(){return[]};
LGh.prototype.getTypeName=function(){return"suggestedFeedbackChipStateEntity"};var DVh=function(){NV.apply(this,arguments)};
_.p(DVh,NV);DVh.prototype.getAssociations=function(){return[]};
DVh.prototype.getTypeName=function(){return"youchatPendingResponseEntity"};_.S3=new _.jp("dislikeButtonViewModel");_.Q4=new _.jp("likeButtonViewModel");var SW2=new _.jp("videoSummaryContentViewModel");var Qfh=new _.jp("videoSummaryParagraphViewModel");var Jar=new _.jp("changeTimelyActionVisibilityCommand");var KG2=new _.jp("hideEngagementPanelEndpoint");var OSR=new _.jp("refreshPanelEndpoint");var ZSB=new _.jp("scrollToSectionEndpoint");var yaQ=new _.jp("seekToVideoTimestampCommand");_.ly=new _.jp("showEngagementPanelEndpoint");var IFR=new _.jp("showTransientPlayerScrimOverlayCommand");var EKi=new _.jp("toggleEngagementPanelCommand");_.Mv_=new _.jp("createBroadcastCommand");var dV_=new _.jp("metadataUpdateCommand");var PZ2=function(){NV.apply(this,arguments)};
_.p(PZ2,NV);PZ2.prototype.getAssociations=function(){return[]};
PZ2.prototype.getTypeName=function(){return"featuredProductsEntity"};var jfR=function(){NV.apply(this,arguments)};
_.p(jfR,NV);jfR.prototype.getAssociations=function(){return[]};
jfR.prototype.getTypeName=function(){return"pinnedProductEntity"};var vKB=function(){NV.apply(this,arguments)};
_.p(vKB,NV);vKB.prototype.getAssociations=function(){return[]};
vKB.prototype.getTypeName=function(){return"trendingOfferEntity"};_.Vv2=new _.jp("merchandiseShelfRenderer");var hB_=new _.jp("shoppingContentLineItemViewModel");var HSi=new _.jp("gridMovieRenderer");_.unW=new _.jp("movieRenderer");var gK2=function(){NV.apply(this,arguments)};
_.p(gK2,NV);gK2.prototype.getAssociations=function(){var x=[];this.delegate.trackDownloadMetadatas&&x.push.apply(x,_.lP(this.delegate.trackDownloadMetadatas));return[].concat(_.lP(new Set(x)))};
gK2.prototype.getTypeName=function(){return"musicAlbumReleaseDownloadMetadataEntity"};var kdW=function(){NV.apply(this,arguments)};
_.p(kdW,NV);
kdW.prototype.getAssociations=function(){var x=[];this.delegate.downloadedTracks&&x.push.apply(x,_.lP(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&x.push.apply(x,_.lP(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&x.push.apply(x,_.lP(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&x.push.apply(x,_.lP(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&x.push.apply(x,_.lP(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
x.push.apply(x,_.lP(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&x.push.apply(x,_.lP(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&x.push.apply(x,_.lP(this.delegate.metadataOnlyTracks));return[].concat(_.lP(new Set(x)))};
kdW.prototype.getTypeName=function(){return"musicDownloadsLibraryEntity"};var pgi=function(){NV.apply(this,arguments)};
_.p(pgi,NV);pgi.prototype.getAssociations=function(){var x=[];this.delegate.trackDownloadMetadatas&&x.push.apply(x,_.lP(this.delegate.trackDownloadMetadatas));return[].concat(_.lP(new Set(x)))};
pgi.prototype.getTypeName=function(){return"musicPlaylistDownloadMetadataEntity"};var mV_=function(){NV.apply(this,arguments)};
_.p(mV_,NV);mV_.prototype.getAssociations=function(){var x=[];this.delegate.playbackData&&x.push(this.delegate.playbackData);this.delegate.localImageEntities&&x.push.apply(x,_.lP(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&x.push(this.delegate.videoDownloadContextEntity);return[].concat(_.lP(new Set(x)))};
mV_.prototype.getTypeName=function(){return"musicTrackDownloadMetadataEntity"};var bS_=function(){NV.apply(this,arguments)};
_.p(bS_,NV);
bS_.prototype.getAssociations=function(){var x=[];this.delegate.musicLibraryStatusEntity&&x.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&x.push.apply(x,_.lP(this.delegate.primaryArtists));this.delegate.details&&x.push(this.delegate.details);this.delegate.userDetails&&x.push(this.delegate.userDetails);this.delegate.tracks&&x.push.apply(x,_.lP(this.delegate.tracks));this.delegate.share&&x.push(this.delegate.share);this.delegate.downloadMetadata&&x.push(this.delegate.downloadMetadata);this.delegate.refresh&&
x.push(this.delegate.refresh);return[].concat(_.lP(new Set(x)))};
bS_.prototype.getTypeName=function(){return"musicAlbumRelease"};
var YWi=function(){NV.apply(this,arguments)};
_.p(YWi,NV);YWi.prototype.getAssociations=function(){var x=[];this.delegate.albumRelease&&x.push(this.delegate.albumRelease);this.delegate.tracks&&x.push.apply(x,_.lP(this.delegate.tracks));return[].concat(_.lP(new Set(x)))};
YWi.prototype.getTypeName=function(){return"musicAlbumReleaseDetail"};
var FGG=function(){NV.apply(this,arguments)};
_.p(FGG,NV);FGG.prototype.getAssociations=function(){var x=[];this.delegate.albumRelease&&x.push(this.delegate.albumRelease);return[].concat(_.lP(new Set(x)))};
FGG.prototype.getTypeName=function(){return"musicAlbumReleaseUserDetail"};var sfH=function(){NV.apply(this,arguments)};
_.p(sfH,NV);sfH.prototype.getAssociations=function(){var x=[];this.delegate.details&&x.push(this.delegate.details);this.delegate.userDetails&&x.push(this.delegate.userDetails);return[].concat(_.lP(new Set(x)))};
sfH.prototype.getTypeName=function(){return"musicArtist"};
var T1C=function(){NV.apply(this,arguments)};
_.p(T1C,NV);T1C.prototype.getAssociations=function(){var x=[];this.delegate.parentArtist&&x.push(this.delegate.parentArtist);return[].concat(_.lP(new Set(x)))};
T1C.prototype.getTypeName=function(){return"musicArtistDetail"};
var eB2=function(){NV.apply(this,arguments)};
_.p(eB2,NV);eB2.prototype.getAssociations=function(){var x=[];this.delegate.parentArtist&&x.push(this.delegate.parentArtist);return[].concat(_.lP(new Set(x)))};
eB2.prototype.getTypeName=function(){return"musicArtistUserDetail"};var RBB=function(){NV.apply(this,arguments)};
_.p(RBB,NV);RBB.prototype.getAssociations=function(){return[]};
RBB.prototype.getTypeName=function(){return"musicLibraryEdit"};var GdC=function(){NV.apply(this,arguments)};
_.p(GdC,NV);GdC.prototype.getAssociations=function(){return[]};
GdC.prototype.getTypeName=function(){return"musicLibraryStatusEntity"};var CZ2=function(){NV.apply(this,arguments)};
_.p(CZ2,NV);
CZ2.prototype.getAssociations=function(){var x=[];this.delegate.tracks&&x.push.apply(x,_.lP(this.delegate.tracks));this.delegate.refresh&&x.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&x.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&x.push(this.delegate.details);this.delegate.downloadMetadata&&x.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&x.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&x.push(this.delegate.userDetails);this.delegate.entryCollection&&
x.push(this.delegate.entryCollection);this.delegate.share&&x.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&x.push.apply(x,_.lP((new lFQ(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.lP(new Set(x)))};
CZ2.prototype.getTypeName=function(){return"musicPlaylist"};
var lFQ=function(){r1.apply(this,arguments)};
_.p(lFQ,r1);lFQ.prototype.getAssociations=function(){var x=[];this.delegate.creatorEntity&&x.push(this.delegate.creatorEntity);return[].concat(_.lP(new Set(x)))};var UVi=function(){NV.apply(this,arguments)};
_.p(UVi,NV);UVi.prototype.getAssociations=function(){return[]};
UVi.prototype.getTypeName=function(){return"musicShare"};var wgd=function(){NV.apply(this,arguments)};
_.p(wgd,NV);
wgd.prototype.getAssociations=function(){var x=[];this.delegate.musicLibraryStatusEntity&&x.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&x.push.apply(x,_.lP(this.delegate.artists));this.delegate.audioModeVersion&&x.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&x.push(this.delegate.videoModeVersion);this.delegate.userDetails&&x.push(this.delegate.userDetails);this.delegate.details&&x.push(this.delegate.details);this.delegate.albumRelease&&x.push(this.delegate.albumRelease);this.delegate.share&&
x.push(this.delegate.share);this.delegate.libraryEdit&&x.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&x.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&x.push(this.delegate.playbackPosition);this.delegate.lyrics&&x.push(this.delegate.lyrics);return[].concat(_.lP(new Set(x)))};
wgd.prototype.getTypeName=function(){return"musicTrack"};
var B1H=function(){NV.apply(this,arguments)};
_.p(B1H,NV);B1H.prototype.getAssociations=function(){var x=[];this.delegate.parentTrack&&x.push(this.delegate.parentTrack);return[].concat(_.lP(new Set(x)))};
B1H.prototype.getTypeName=function(){return"musicTrackDetail"};
var WGr=function(){NV.apply(this,arguments)};
_.p(WGr,NV);WGr.prototype.getAssociations=function(){var x=[];this.delegate.parentTrack&&x.push(this.delegate.parentTrack);return[].concat(_.lP(new Set(x)))};
WGr.prototype.getTypeName=function(){return"musicTrackUserDetail"};var xv=new _.jp("musicResponsiveListItemRenderer");var mO3=new _.jp("addToPlaylistEndpoint");var qWW=new _.jp("captionPickerEndpoint");var AaH=new _.jp("suggestStats");var $Vd=new _.jp("backstageImageUploadEndpoint");var raW=new _.jp("createBackstagePostDialogEndpoint");_.N1B=new _.jp("createCommentReplyDialogEndpoint");_.iSr=new _.jp("updateCommentDialogEndpoint");_.fFh=new _.jp("updateCommentReplyDialogEndpoint");var oKh=new _.jp("menuEndpoint");var Ems=new _.jp("modalEndpoint");var aFB=new _.jp("playlistEditorEndpoint");var zB2=new _.jp("copyTextEndpoint");var Xg2,ca2;Xg2=new _.jp("shareEndpoint");ca2=new _.jp("shareEntityEndpoint");_.nKh=new _.jp("shareEntityServiceEndpoint");_.IZN=new _.jp("userFeedbackEndpoint");_.L6=new _.jp("watchEndpoint");var z8f=new _.jp("watchPlaylistEndpoint");var tvr=new _.jp("addUpcomingEventReminderEndpoint");_.JM=new _.jp("getCommentsFromInboxCommand");var xJB=new _.jp("notificationOptOutEndpoint");var L1B=new _.jp("recordNotificationInteractionsEndpoint");var DJR=new _.jp("removeUpcomingEventReminderEndpoint");var kr4=new _.jp("getDownloadActionCommand");_.S6W=new _.jp("offlineOrchestrationActionCommand");var QQr=function(){NV.apply(this,arguments)};
_.p(QQr,NV);QQr.prototype.getAssociations=function(){return[]};
QQr.prototype.getTypeName=function(){return"captionTrack"};var JMH=function(){NV.apply(this,arguments)};
_.p(JMH,NV);JMH.prototype.getAssociations=function(){return[]};
JMH.prototype.getTypeName=function(){return"offlineOrchestrationActionWrapperEntity"};var K1W=function(){NV.apply(this,arguments)};
_.p(K1W,NV);K1W.prototype.getAssociations=function(){return[]};
K1W.prototype.getTypeName=function(){return"offlineVideoPolicy"};var OvQ=function(){NV.apply(this,arguments)};
_.p(OvQ,NV);OvQ.prototype.getAssociations=function(){return[]};
OvQ.prototype.getTypeName=function(){return"offlineVideoStreams"};var Zv2=function(){NV.apply(this,arguments)};
_.p(Zv2,NV);Zv2.prototype.getAssociations=function(){var x=[];this.delegate.transfer&&x.push(this.delegate.transfer);this.delegate.adsPlaybackData&&x.push.apply(x,_.lP(this.delegate.adsPlaybackData));this.delegate.drmLicense&&x.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&x.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&x.push(this.delegate.videoDownloadContextEntity);return[].concat(_.lP(new Set(x)))};
Zv2.prototype.getTypeName=function(){return"playbackData"};var yM_=function(){NV.apply(this,arguments)};
_.p(yM_,NV);yM_.prototype.getAssociations=function(){return[]};
yM_.prototype.getTypeName=function(){return"refresh"};var IqQ=function(){NV.apply(this,arguments)};
_.p(IqQ,NV);IqQ.prototype.getAssociations=function(){var x=[];this.delegate.offlineVideoStreams&&x.push.apply(x,_.lP(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&x.push.apply(x,_.lP(this.delegate.captionTrack));return[].concat(_.lP(new Set(x)))};
IqQ.prototype.getTypeName=function(){return"transfer"};var Ehd=function(){NV.apply(this,arguments)};
_.p(Ehd,NV);Ehd.prototype.getAssociations=function(){return[]};
Ehd.prototype.getTypeName=function(){return"videoDownloadContextEntity"};var M3G=new _.jp("showMoreDrawerCommand");var dJW=new _.jp("updateEngagementPanelContentCommand");var Ped=new _.jp("getPdgBuyFlowCommand");var jQB=new _.jp("liveChatPurchaseMessageEndpoint");var vhB=new _.jp("openSuperStickerBuyFlowCommand");var V3Q=new _.jp("updatePdgFeatureEnablementCommand");var hei=function(){NV.apply(this,arguments)};
_.p(hei,NV);hei.prototype.getAssociations=function(){return[]};
hei.prototype.getTypeName=function(){return"liveViewerLeaderboardChatEntryPointStateEntity"};var Hvh=function(){NV.apply(this,arguments)};
_.p(Hvh,NV);Hvh.prototype.getAssociations=function(){return[]};
Hvh.prototype.getTypeName=function(){return"liveViewerLeaderboardPointsEntity"};_.urQ=new _.jp("pdgCommentChipRenderer");_.ghC=new _.jp("permissionRoleBottomBarRenderer");_.kuG=new _.jp("updatePermissionRoleCommand");var p5R=new _.jp("prefetchWatchCommand");var mJB=new _.jp("updatePlayerErrorMessageCommand");var jVp=new _.jp("toggleCaptionsVisibilityCommand");_.bvQ=new _.jp("quickActionsViewModel");var Y6H=new _.jp("playerResponse");var F1R=new _.jp("playlistRenderer");_.sQd=new _.jp("playlistVideoListRenderer");_.Kv=new _.jp("playlistEditEndpoint");var TeB=new _.jp("createImagePollCommand");var eei=new _.jp("createQuizCommand");var Re2=new _.jp("quizRenderer");var GuC=new _.jp("uploadedVideoRenderer");var CeW=new _.jp("decorateMessageEndpoint");var lq2=new _.jp("lpOfferCardOptionViewModel");var UJh=new _.jp("sfvAudioItemPlaybackCommand");var w5_=function(){NV.apply(this,arguments)};
_.p(w5_,NV);w5_.prototype.getAssociations=function(){return[]};
w5_.prototype.getTypeName=function(){return"sfvAudioItemCurrentlyPlayingEntity"};_.O6=new _.jp("reelNonVideoContentEndpoint");_.TF=new _.jp("reelWatchEndpoint");_.Zq=new _.jp("reelItemRenderer");_.Be_=new _.jp("reelMetapanelViewModel");_.W1r=new _.jp("reelNonVideoContentRenderer");_.q6G=new _.jp("reelPlayerOverlayRenderer");var AMG=new _.jp("shortsLockupViewModel");var $Jr=new _.jp("sponsorButtonViewModel");var rMh=new _.jp("reelItemWatchResponse");var NeH=new _.jp("textBadgeRenderer");_.y4=new _.jp("buttonRenderer");_.IQ=new _.jp("toggleButtonRenderer");var m7n=new _.jp("switchButtonViewModel");_.ivh=new _.jp("confirmDialogRenderer");var fqR;fqR=new _.jp("menuRenderer");_.ohB=new _.jp("menuFlexibleItemRenderer");var aqH=new _.jp("pollRenderer");_.zeG=new _.jp("backgroundPromoRenderer");var cMh;_.X52=new _.jp("chipCloudRenderer");cMh=new _.jp("chipCloudChipRenderer");var nhW=new _.jp("dropdownRenderer");var t3i=new _.jp("gridVideoRenderer");_.xIC=new _.jp("itemSectionRenderer");_.L$H=new _.jp("messageRenderer");var DIh=new _.jp("sortFilterHeaderRenderer");_.E6=new _.jp("videoRenderer");var SjW=new _.jp("resolveUrlCommandMetadata");var QOG=function(){NV.apply(this,arguments)};
_.p(QOG,NV);QOG.prototype.getAssociations=function(){return[]};
QOG.prototype.getTypeName=function(){return"saveToPlaylistListEntity"};_.JYB=new _.jp("getAnswerCommand");_.b1=new _.jp("searchEndpoint");var K$Q=new _.jp("genAiRichTextViewModel");var gB0=new _.jp("overviewAnswerViewModel");var Oph=new _.jp("videoOverviewViewModel");var Zp2=new _.jp("addToPlaylistServiceEndpoint");var yYh=new _.jp("clearSearchHistoryEndpoint");var IJW=new _.jp("clearWatchHistoryEndpoint");var Err=new _.jp("webSerializedServiceEndpointExtension");_.MPR=new _.jp("createCommentEndpoint");var dIG=new _.jp("createCommentReplyEndpoint");var Po2=new _.jp("performCommentActionEndpoint");var jOr=new _.jp("updateCommentEndpoint");var vr_=new _.jp("updateCommentReplyEndpoint");_.MJ=new _.jp("createPlaylistServiceEndpoint");var VPW=new _.jp("deletePlaylistEndpoint");var hyr=new _.jp("deleteVideoEndpoint");var p3O=new _.jp("getReportFormEndpoint");var Hpr=new _.jp("modifyChannelNotificationPreferenceEndpoint");var qpn;_.pX=new _.jp("offlinePlaylistEndpoint");qpn={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 AtO;_.ke=new _.jp("offlineVideoEndpoint");AtO={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 uei=new _.jp("pingingEndpoint");_.gri=new _.jp("selectActiveIdentityEndpoint");var kyW=new _.jp("setSettingEndpoint");var RnG=new _.jp("undoFeedbackEndpoint");var py2=new _.jp("unsubscribeEndpoint");_.mIB=new _.jp("updatedMetadataEndpoint");var bpd=function(){NV.apply(this,arguments)};
_.p(bpd,NV);bpd.prototype.getAssociations=function(){return[]};
bpd.prototype.getTypeName=function(){return"settingEntity"};_.YjC=new _.jp("updateLocalAppSettingCommand");var F$G=new _.jp("saveImageToDeviceEndpoint");var sOd=new _.jp("shareImageCommand");var T6h=new _.jp("sharingProviderDataCommand");var eyQ=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(eyQ,_.O5);var Ryr=[0,_.Q8,-1];eyQ.prototype.JSC$12375_serializeBinary=iU3(Ryr);var Gy2=_.hw(Ryr);var Cor=new _.jp("userMentionSuggestionRenderer");var lJH=new _.jp("liveChatTunnelCommand");var UIC=new _.jp("showSponsorshipsGiftOfferDialogCommand");var wy2=new _.jp("sponsorshipsScrollableShelfViewModel");var B62=new _.jp("updateUpcomingEventReminderButtonStateCommand");var W$Q=new _.jp("upcomingEventReminderButtonStateRenderer");var qj2=new _.jp("subscribeEndpoint");var AYG=new _.jp("registerTasksCommand");var $Id=new _.jp("hideSheetCommand");var rYA=new _.jp("hideSnackbarCommand");var N6R=new _.jp("showDialogCommand");_.e2=new _.jp("showSheetCommand");var ipA=new _.jp("showSnackbarCommand");var fJW=function(){NV.apply(this,arguments)};
_.p(fJW,NV);fJW.prototype.getAssociations=function(){return[]};
fJW.prototype.getTypeName=function(){return"chipEntity"};var orA=function(){NV.apply(this,arguments)};
_.p(orA,NV);orA.prototype.getAssociations=function(){return[]};
orA.prototype.getTypeName=function(){return"dismissState"};_.$e=new _.jp("avatarViewModel");var aJR=new _.jp("badgeViewModel");_.de=new _.jp("buttonViewModel");_.P5=new _.jp("chipViewModel");var WYh=new _.jp("collectionThumbnailViewModel");var tZd=new _.jp("contentPreviewImageViewModel");var xKh=new _.jp("decoratedAvatarViewModel");_.GAc=new _.jp("engagementBarViewModel");_.LwC=new _.jp("imageBannerViewModel");var DKQ=new _.jp("lockupContentMetadataRowExtension");_.SVh=new _.jp("lockupMetadataViewModel");_.QkB=new _.jp("lockupViewModel");var JTG=new _.jp("avatarStackViewModel");_.KwR=new _.jp("contentMetadataViewModel");var Of2=function(){NV.apply(this,arguments)};
_.p(Of2,NV);Of2.prototype.getAssociations=function(){return[]};
Of2.prototype.getTypeName=function(){return"pageHeaderEntity"};_.ZfR=new _.jp("pageHeaderViewModel");var yTH=new _.jp("snackbarViewModel");var IdH=new _.jp("thumbnailHoverOverlayToggleActionsViewModel");_.j3=new _.jp("toggleButtonViewModel");var EsC=function(){NV.apply(this,arguments)};
_.p(EsC,NV);EsC.prototype.getAssociations=function(){return[]};
EsC.prototype.getTypeName=function(){return"votingEntity"};_.CD0=new _.jp("votingViewModel");var MQR=new _.jp("sectionHeaderViewModel");var dKB=new _.jp("notifyDropdownOptionSelectedCommand");var nk0=new _.jp("listViewModel");_.RB=new _.jp("listItemViewModel");var B7N=new _.jp("toggleableListItemViewModel");var PHQ=new _.jp("dialogHeaderViewModel");var jk2=function(){NV.apply(this,arguments)};
_.p(jk2,NV);jk2.prototype.getAssociations=function(){return[]};
jk2.prototype.getTypeName=function(){return"dataFreshnessEntity"};var yPb=new _.jp("suspenseViewModel");var vsQ=function(){NV.apply(this,arguments)};
_.p(vsQ,NV);vsQ.prototype.getAssociations=function(){return[]};
vsQ.prototype.getTypeName=function(){return"emojiCustomizationSetEntity"};var VQC=function(){NV.apply(this,arguments)};
_.p(VQC,NV);VQC.prototype.getAssociations=function(){return[]};
VQC.prototype.getTypeName=function(){return"emojiFountainDataEntity"};var hT_=function(){NV.apply(this,arguments)};
_.p(hT_,NV);hT_.prototype.getAssociations=function(){return[]};
hT_.prototype.getTypeName=function(){return"liveReactionsDataEntity"};_.HfG=new _.jp("transcriptSubmitCaptionCorrectionCommand");var uzG=function(){NV.apply(this,arguments)};
_.p(uzG,NV);uzG.prototype.getAssociations=function(){return[]};
uzG.prototype.getTypeName=function(){return"buttonEntity"};var tUh=new _.jp("unpluggedStringRunImage");var gs_=new _.jp("tabViewModel");var kMd=new _.jp("tabbedViewModel");var pGh=function(){NV.apply(this,arguments)};
_.p(pGh,NV);pGh.prototype.getAssociations=function(){return[]};
pGh.prototype.getTypeName=function(){return"videoPlaybackPositionEntity"};_.mKd=new _.jp("updateDescriptionAction");var bfG=new _.jp("updateToggleButtonTextAction");var YV_=new _.jp("updateVideoMetadataCommand");_.FwW=new _.jp("autoplaySwitchButtonRenderer");var WF;_.skR=new _.jp("multiMarkersPlayerBarRenderer");WF=new _.jp("chapterRenderer");var TUW=new _.jp("heatMarkerRenderer");var iMs=new _.jp("heatmapRenderer");var eT2=new _.jp("smartSkipPlayerScrimOverlayRenderer");var RT2=new _.jp("timedMarkerDecorationRenderer");var hJ3=new _.jp("postWebToNativeMessageCommand");var q1=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(q1,_.O5);q1.prototype.getMethodName=function(){return _.wy(this,1)};var GM2=[0,_.Q8,-2];q1.prototype.JSC$12397_serializeBinary=iU3(GM2);var CH2=_.Vv(q1,GM2);var ldB=new _.jp("whitelistEditEndpoint");var UKG=new _.jp("clearUrlParamCommand");var wGh=new _.jp("commerceActionCommand");_.BUA=new _.jp("getPaymentInstrumentsParamsCommand");var Wwh=new _.jp("getPaymentsClientTokenCommand");var qVC=new _.jp("googlePaymentBillingCommand");var ATC=new _.jp("googlePaymentPurchaseManagerCommand");_.$KH=new _.jp("logGtmCommand");var rTQ=new _.jp("updateCardItemOnClickCommand");_.NUW=new _.jp("ypcPauseSubscriptionCommand");_.ifi=new _.jp("ypcResumeSubscriptionCommand");var fdB=function(){NV.apply(this,arguments)};
_.p(fdB,NV);fdB.prototype.getAssociations=function(){return[]};
fdB.prototype.getTypeName=function(){return"commerceAcquisitionClientPayloadEntity"};var osr=function(){NV.apply(this,arguments)};
_.p(osr,NV);osr.prototype.getAssociations=function(){return[]};
osr.prototype.getTypeName=function(){return"commerceCartListEntity"};var adh=function(){NV.apply(this,arguments)};
_.p(adh,NV);adh.prototype.getAssociations=function(){return[]};
adh.prototype.getTypeName=function(){return"iconBadgeEntity"};var zTQ=function(){NV.apply(this,arguments)};
_.p(zTQ,NV);zTQ.prototype.getAssociations=function(){return[]};
zTQ.prototype.getTypeName=function(){return"pdpStateEntity"};var XGW=function(){NV.apply(this,arguments)};
_.p(XGW,NV);XGW.prototype.getAssociations=function(){return[]};
XGW.prototype.getTypeName=function(){return"quantityIncrementerEntity"};var Ok0=new _.jp("ypcOffersEndpoint");var cTH=new _.jp("cardItemRenderer"),nsB=new _.jp("cardItemTextRenderer");var tQr=new _.jp("commerceCartItemQuantityPickerRenderer");var xXi=new _.jp("linkCardRenderer");var EFN=new _.jp("quantityIncrementerButtonViewModel");var LPC=new _.jp("quantityIncrementerViewModel");var DXH=new _.jp("themedImageViewModel");_.SGh=new _.jp("ypcCancelRecurrenceEndpoint");var QFR=new _.jp("ypcCompleteTransactionEndpoint");_.JQh=new _.jp("ypcGetCartEndpoint");_.LF=new _.jp("ypcGetOffersEndpoint");_.v5=new _.jp("ypcHandleTransactionEndpoint");var KPR=new _.jp("ypcLogWalletAnalyticDataEndpoint");_.OO2=new _.jp("ypcRedeemCodeEndpoint");var ZOh=new _.jp("ypcUpdateFopEndpoint");pS(kK(1),uZ(4));V0W((new MessageChannel).port2);var yQh=function(){this.register=new Map},dc3=function(x,L,D){x=x+"_"+L;
V4.register.has(x)?D=V4.register.get(x):(D=D(),V4.register.set(x,D));return D},IQh=function(x){x=_.O(x.register.values());
for(var L=x.next();!L.done;L=x.next())_.jK(L.value,"ABORTED")};
yQh.prototype.clear=function(){IQh(this);this.register.clear()};
var V4=new yQh;var oos=Date.now().toString();var Xx3=z70();var Q40={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 EjC,Wo;EjC=1;Wo=function(x){this.veData=x};
_.CI=function(x){return new Wo({trackingParams:x})};
_.VC=function(x,L,D,S,Q,J){var Z=EjC++;return new Wo({veType:x,veCounter:Z,elementIndex:D,dataElement:L,youtubeData:S,jspbYoutubeData:Q,loggingDirectives:J})};
_.K=Wo.prototype;
_.K.getAsJson=function(){var x={};this.veData.trackingParams!==void 0?x.trackingParams=this.veData.trackingParams:(x.veType=this.veData.veType,this.veData.veCounter!==void 0&&(x.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(x.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(x.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(x.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(x.isCounterfactual=!0);
return x};
_.K.getAsJspb=function(){var x=new CvG;this.veData.trackingParams!==void 0?x.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.$I(x,2,this.veData.veType),this.veData.veCounter!==void 0&&_.$I(x,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.$I(x,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.db(x,5,!0));if(this.veData.dataElement!==void 0){var L=this.veData.dataElement.getAsJspb();_.mR(x,7,L)}this.veData.youtubeData!==void 0&&_.mR(x,8,this.veData.jspbYoutubeData);
return x};
_.K.toString=function(){return JSON.stringify(this.getAsJson())};
_.K.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.K.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.KK("yt_logging_screen.getRootVeType",LD4);_.KK("yt_logging_screen.getCurrentCsn",_.A3);_.KK("yt_logging_screen.getCttAuthInfo",$7);_.KK("yt_logging_screen.setCurrentScreen",_.rr);var MCB=function(){this.events=new Map},dXd=function(x){var L=[];
x=_.O(x.events.values());for(var D=x.next();!D.done;D=x.next())L.push(D.value);return L};
MCB.prototype.clear=function(){this.events.clear()};var jFd=function(){this.logTransport=new PMQ;this.loggedEventRegister=new MCB;this.unloggedEventRegister=new MCB;this.eventsCount=0;this.flushInterval=3E4;this.JSC$12434_flushTimer=new _.EK(this.flushInterval);this.JSC$12434_flushTimer.listen("tick",this.flush,!1,this)};
jFd.prototype.flush=function(){if(this.eventsCount){var x={loggedEvents:dXd(this.loggedEventRegister),unloggedEvents:dXd(this.unloggedEventRegister)};if(_.u("export_player_version_to_ytconfig")){var L;(L=_.$6("PLAYER_CLIENT_VERSION"))?(L=L.split("-")[0].replace(/\./g,""),L=isNaN(Number(L))?"0":L):L="";var D=_.$6("PLAYER_CLIENT_VERSION");if(D){D=D.split("-");var S="";D.length>1&&(S=D[D.length-1]);D=fB0(S.startsWith("canary_experiment")?"canary":S.startsWith("canary_control")?"control":"none")}else D=
"CLIENT_CANARY_STATE_UNKNOWN";x.dimensions={playerClientVersion:L,playerCanaryState:D}}this.logTransport.flush(x);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$12434_flushTimer.enabled&&this.JSC$12434_flushTimer.stop()}};
var vjR=function(x){hM==null&&(hM=new jFd);var L=hM;var D=L.loggedEventRegister;x.dimensions=x.dimensions||{};x.dimensions.csn=_.A3()||"";var S=O0G(x.dimensions).join(";");if(x.records!=null)if(D.events.has(S)){var Q;(Q=D.events.get(S).records)==null||Q.push.apply(Q,_.lP(x.records))}else D.events.set(S,x);L.JSC$12434_flushTimer.enabled||L.JSC$12434_flushTimer.start();L.eventsCount++;L.eventsCount>=100&&L.flush()};var PMQ=function(){};
PMQ.prototype.flush=function(x,L){_.u("enable_client_sli_logging")&&_.Uh("sliEventBatch",x,{sendIsolatedPayload:!!L})};var hM;var h8d;h8d=function(x){var L=VCH;x=x===void 0?{}:x;L=L.name;var D=MH4("SUCCESS");vjR({dimensions:x,records:[{name:L,state:"SLI_STATE_END",status:D}]})};
_.P_G=function(x,L,D,S){this.name=x;this.sliId=L;this.timeoutMs=D;this.statusOnTimeout=S;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.P_G.prototype.getId=function(){return this.sliId};
_.PF=function(x,L){L=L===void 0?{}:L;x.ongoing||(x.ongoing=!0,x.dimensions=L,x.logSliId=um2(),vjR({dimensions:x.dimensions,records:[{name:x.name,state:"SLI_STATE_START",sliId:x.logSliId}]}),x.timeoutMs>0&&(x.timeoutHandle=setTimeout(function(){_.jK(x,x.statusOnTimeout)},x.timeoutMs)))};
_.jK=function(x,L){x.ongoing&&(x.timeoutMs>0&&clearTimeout(x.timeoutHandle),x.ongoing=!1,L={dimensions:x.dimensions,records:[{name:x.name,status:MH4(L),state:"SLI_STATE_END",sliId:x.logSliId}]},V4.register.delete(x.name+"_"+x.sliId),vjR(L))};var VCH=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var HOA=function(){NV.apply(this,arguments)};
_.p(HOA,NV);HOA.prototype.getAssociations=function(){return[]};
HOA.prototype.getTypeName=function(){return"videoOverviewAsyncDataEntity"};var Usc=new _.jp("highlightTextDecoratorColorMapExtension");var CK0=new _.jp("styleRunColorMapExtension");var gtb=_.xI(["data-"]),mc0={};var YLb={};var H5=function(x){this.wrappedPromise_=x===void 0?null:x;this.state_=0;this.JSC$12466_value_=null};
H5.prototype.then=function(x,L,D){return this.wrappedPromise_?this.wrappedPromise_.then(x,L,D):this.state_===1&&x?(x=x.call(D,this.JSC$12466_value_))&&typeof x.then==="function"?x:_.ue(x):this.state_===2&&L?(x=L.call(D,this.JSC$12466_value_))&&typeof x.then==="function"?x:_.u6_(x):this};
H5.prototype.getValue=function(){return this.JSC$12466_value_};
H5.prototype.isRejected=function(){return this.state_==2};
e92(H5);_.u6_=function(x){var L=new H5;x=x===void 0?null:x;L.state_=2;L.JSC$12466_value_=x===void 0?null:x;return L};
_.ue=function(x){var L=new H5;x=x===void 0?null:x;L.state_=1;L.JSC$12466_value_=x===void 0?null:x;return L};var $cs="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var gjh=["load","abort","error"],ge=function(x,L,D){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$12486_maxAspectRatio_=x;this.disableAnimation_=L===void 0?!1:L;this.disableExifRotation_=D===void 0?!1:D;this.JSC$12486_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$12486_reject_=this.resolve_=null};
ge.prototype.transform=function(x){var L=this;this.mime_=x.type;yH(U$W(x),this.dataUrlRead_,this.readError_,this);yH(l4Q(x.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(D,S){L.resolve_=D;L.JSC$12486_reject_=S})};
ge.prototype.dataUrlRead_=function(x){this.dataUrl_=x;this.angle_!=null&&kzr(this)};
ge.prototype.exifRead_=function(x){if(this.disableExifRotation_)this.angle_=0;else{a:if(x=new DataView(x),x.byteLength<2||x.getUint16(0)!==65496)x=-2;else{for(var L=2,D=x.byteLength;L<D;){var S=x.getUint16(L),Q=x.getUint16(L+2);if(S===65505){L+=4;S=x.getUint32(L);Q=x.getUint16(L+4);if(S!==1165519206||Q!==0)break;L+=6;S=x.getUint16(L)===18761;L+=x.getUint32(L+4,S);Q=x.getUint16(L,S);L+=2;for(var J=0;J<Q;J++){if(x.getUint16(L,S)===274){L+=8;x=x.getUint16(L,S);break a}L+=12}}else if(S>>8!==255)break;
else L+=Q+2}x=-1}switch(x){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&&kzr(this)};
ge.prototype.readError_=function(){this.JSC$12486_reject_()};
var kzr=function(x){R6(x.JSC$12486_image_,gjh,x.completeTransform_,!1,x);x.JSC$12486_image_.src=_.$z(x.dataUrl_).toString();x.JSC$12486_image_.src!=Aw.toString()&&x.JSC$12486_image_.src.substr(0,11)==="data:image/"||x.JSC$12486_reject_()};
ge.prototype.completeTransform_=function(){if(this.JSC$12486_image_.src!=Aw.toString()){var x=_.$z(this.dataUrl_),L=this.JSC$12486_image_.naturalHeight?this.JSC$12486_image_.naturalWidth/this.JSC$12486_image_.naturalHeight:null;this.invalidAspectRatio=L>this.JSC$12486_maxAspectRatio_||L<1/this.JSC$12486_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var D=this.JSC$12486_image_.naturalWidth,S=this.JSC$12486_image_.naturalHeight,Q=L=0,J=this.JSC$12486_image_.naturalHeight?this.JSC$12486_image_.naturalWidth/
this.JSC$12486_image_.naturalHeight:null;J>this.JSC$12486_maxAspectRatio_?(D=this.JSC$12486_maxAspectRatio_*S,L=(D-this.JSC$12486_image_.naturalWidth)/2,this.cropped=!0):J<1/this.JSC$12486_maxAspectRatio_?(S=this.JSC$12486_maxAspectRatio_*D,Q=(S-this.JSC$12486_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)J=D,D=S,S=J,J=L,L=Q,Q=J;switch(this.angle_){case 90:Q-=D;break;case 180:L-=D;Q-=S;break;case 270:L-=
S}this.cropped||this.angle_%360!==0?(x=document.createElement("canvas"),x.width=D||1,x.height=S||1,this.JSC$12486_image_.naturalWidth&&this.JSC$12486_image_.naturalHeight&&(D=x.getContext("2d"),D.rotate(Math.PI/180*this.angle_),D.drawImage(this.JSC$12486_image_,L,Q,this.JSC$12486_image_.naturalWidth,this.JSC$12486_image_.naturalHeight)),this.transformedData=_.$z(x.toDataURL(this.mime_))):this.transformedData=x}else this.transformedData=x;this.resolve_(this)}};var kh=function(x,L){_.Gm.call(this,x);this.value=L};
_.p(kh,_.Gm);
var pv=function(x,L,D,S,Q,J,Z){Z=Z===void 0?!1:Z;_.Bc.call(this);var y=this;this.JSC$12491_url_=x;this.channelId_=L;this.maxFileSizeMb_=D;this.JSC$12491_maxAspectRatio_=S;this.dropZoneEl_=Q;this.rejectInvalidAspectRatio_=Z;this.selectButtonEl_=J;this.JSC$12491_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new Rf(this.dropZoneEl_);this.selectOverlay_=new Gd(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$12491_image_=this.transfer_=null;this.handler_=new _.Mu(this);_.V1(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(J,"click",function(){y.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.p(pv,_.Bc);pv.prototype.disposeInternal=function(){for(var x=this.selectButtonEl_.nextSibling;x&&x.parentNode&&x.tagName=="INPUT";)x.parentNode.removeChild(x),x=this.selectButtonEl_.nextSibling;this.cancel();_.Bc.prototype.disposeInternal.call(this)};
pv.prototype.uploadPromise=function(){if(this.JSC$12491_image_==null)return null;this.uploadPromise_||pVd(this);return this.uploadPromise_};
pv.prototype.cancel=function(){mXB(this);this.JSC$12491_image_=null};
var mXB=function(x){x.transfer_&&x.transfer_.cancel();x.transfer_=null;x.uploadPromise_=null;x.resolve_=null;x.JSC$12491_reject_=null},pVd=function(x){mXB(x);
x.transfer_=_.Qwh(x.JSC$12491_url_,{"X-YouTube-ChannelId":x.channelId_},x.JSC$12491_image_);x.handler_.listenOnce(x.transfer_,"l",x.JSC$12493_onUploadComplete_);x.handler_.listenOnce(x.transfer_,"n",x.onUploadError_);x.transfer_.run();x.uploadPromise_=new Promise(function(L,D){x.resolve_=L;x.JSC$12491_reject_=D})};
_.K=pv.prototype;_.K.onChange_=function(x){x.files.length&&(this.JSC$12491_image_=x.files[0],this.JSC$12491_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$12491_image_=null,this.dispatchEvent(new kh("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(pVd(this),(new ge(this.JSC$12491_maxAspectRatio_)).transform(this.JSC$12491_image_).then((0,_.e1)(this.onPreview_,this),(0,_.e1)(this.onPreviewError_,this))))};
_.K.onPreview_=function(x){if(x.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$12491_image_=null),this.dispatchEvent(new kh("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;x.cropped&&this.dispatchEvent(new kh("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new kh("yt.comments.ImageUploadOverlay.CHANGE_EVENT",x.transformedData))};
_.K.onPreviewError_=function(){this.JSC$12491_image_=null;this.dispatchEvent(new kh("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.K.onHover_=function(x){x.stopPropagation();x.preventDefault();if(x.type==="dragover")x=!0;else if(x.type==="dragleave")x=!1;else return;this.dispatchEvent(new kh("yt.comments.ImageUploadOverlay.HOVER_EVENT",x))};
_.K.JSC$12493_onUploadComplete_=function(){var x=(0,_.LgR)(this.transfer_.getResponseText());this.resolve_(x.encryptedBlobId)};
_.K.onUploadError_=function(){this.JSC$12491_reject_();mXB(this)};var bOi=function(x){x=x||{};var L={},D={};this.url=x.url||"";this.args=x.args||_.wk.clone(L);this.assets=x.assets||{};this.attrs=x.attrs||_.wk.clone(D);this.fallback=x.fallback||null;this.fallbackMessage=x.fallbackMessage||null;this.html5=!!x.html5;this.disable=x.disable||{};this.loaded=!!x.loaded;this.messages=x.messages||{}};
bOi.prototype.clone=function(){var x=new bOi,L;for(L in this)if(this.hasOwnProperty(L)){var D=this[L];_.X2(D)=="object"?x[L]=_.wk.clone(D):x[L]=D}return x};var YGH,FPC,sFd,ti,e8R,R8i,Gz2,CMG,lQ2,UXC,wVC,BKi,WPi,qGW,AQr,$Xh,rQW,NKG,iOh,fQ2,ojR,aQ_,z8H,XVh,cQ2,njh,tC2,xSW,LJd,srf,DSh,Sad,QbR,Jyh,KJG,OEA,ZEh,yyG,IkH,E5W,F24,MER,dS2,PAd,jbH,v5h,VEH,hg_,HEQ,uPA,g52,kar,pz2,mSh,bEh,YaW,m1,FJR,sbA,TdQ,egh,RgW,GaW,CAB,lkH,US2,wzA,Bd2,WJ_,qaW,AyC,$Si,ryi,Nd_,iEi,fkR,b_n,o5R,akA,zgH,Xz2,cyC,n5Q,tEG,xr2,LOW,DrC,S0R,Qd_,JAR,KOC,ODG,ZDd,yAh,I6C,Eq2,Mgd,drd,Pui,jdG,vq2,Vgh;YGH=["account/accounts_list"];FPC=["acknowledge_channel_tou_strike"];sFd=["notification/add_upcoming_event_reminder"];
_.TKR=["att/get"];ti=["browse","music/browse","unplugged/browse"];e8R=["channel/claim_legacy_youtube_channel"];R8i=["history/clear_search_history"];Gz2=["history/clear_watch_history"];CMG=["comment/perform_comment_action"];lQ2=["comment/get_comment_replies"];UXC=["ypc/commerce_action"];wVC=["backstage/create_post"];BKi=["live/create_broadcast"];WPi=["channel/create_channel"];qGW=["comment/create_comment_reply"];AQr=["comment/create_comment"];$Xh=["live_chat/create_poll"];rQW=["playlist/create"];
NKG=["decorate_message"];iOh=["live_chat/delete_message"];fQ2=["playlist/delete"];ojR=["video/delete"];aQ_=["like/dislike"];z8H=["dismissal/dismiss"];XVh=["flag/flag"];cQ2=["flow"];njh=["account/account_menu"];tC2=["playlist/get_add_to_playlist"];xSW=["get_answer"];LJd=["channel/get_channel_creation_form"];srf=["offline/get_download_action"];DSh=["kids/get_kids_blocklist_picker"];Sad=["live_chat/get_item_context_menu"];QbR=["live_chat/get_live_chat_message_buy_flow"];Jyh=["live_chat/get_live_chat_replay"];
KJG=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];OEA=["live_chat/get_live_chat_super_sticker_buy_flow"];ZEh=["notification/get_notification_menu"];yyG=["playlist/get_settings_editor"];IkH=["backstage/get_post_video_preview"];E5W=["account/get_profile_card"];F24=["share/get_share_panel"];MER=["share/get_sharing_provider_data"];dS2=["get_survey"];PAd=["notification/get_unseen_count"];jbH=["get_user_mention_suggestions"];v5h=["get_watch"];VEH=["guide"];
hg_=["feedback"];HEQ=["kids/update_blacklist"];uPA=["like/like"];g52=["live_chat/live_chat_action"];kar=["live_chat/manage_user"];pz2=["video_manager/metadata_update"];mSh=["live_chat/moderate"];bEh=["notification/modify_channel_preference"];YaW=["notification/opt_out"];m1=["get_panel","get_posts_by_host_panel"];FJR=["player"];sbA=["browse/edit_playlist"];TdQ=["notification/record_interactions"];egh=["reel/reel_item_watch"];RgW=["reel/reel_watch_sequence"];GaW=["like/removelike"];CAB=["notification/remove_upcoming_event_reminder"];
lkH=["flag/get_form"];US2=["miniapp/report_value"];wzA=["navigation/resolve_url"];Bd2=["channel/reveal_business_email"];WJ_=["in_video/search"];qaW=["search","sfv/search","unplugged/search"];AyC=["live_chat/send_message"];$Si=["live_chat/send_live_chat_vote"];ryi=["account/set_setting"];Nd_=["submit_caption_correction"];iEi=["submit_form"];fkR=["subscription/subscribe"];b_n=["get_transcript"];o5R=["resolve_location","unplugged/resolve_location"];akA=["subscription/unsubscribe"];zgH=["backstage/update_post"];
Xz2=["channel_edit/update_channel_page_settings"];cyC=["comment/update_comment_reply"];n5Q=["comment/update_comment"];tEG=["comment/update_comments_settings"];xr2=["creator/update_creator_channel"];LOW=["pdg/update_enablement"];DrC=["updated_metadata"];S0R=["channel_edit/validate_channel_handle"];Qd_=["verify_age"];JAR=["next","unplugged/watch_next"];KOC=["whitelist/edit"];ODG=["ypc/cancel_recurrence"];ZDd=["ypc/complete_transaction"];yAh=["ypc/get_cart"];I6C=["ypc/get_fix_instrument_params"];
Eq2=["ypc/get_offers"];Mgd=["ypc/get_payment_instruments_params"];drd=["ypc/handle_transaction"];Pui=["ypc/log_payment_server_analytics"];jdG=["ypc/pause_subscription"];vq2=["ypc/redeem_code"];Vgh=["ypc/resume_subscription"];var hp_=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,272018,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,276243,93911,274188,276651,106531,257234,252598,252597,252600,252599,252596,225031,
177843,27259,27262,27263,21759,160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,273766,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,180635,
74610,45707,83962,83970,46713,166591,89711,74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,276200,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,
235234,162712,80357,243315,86113,72598,168413,72733,107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,273905,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,
156655,156654,121692,211414,211411,211412,211413,211403,184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,262686,211851,211852,211853,129889,197888,197889,149123,221959,221627,221958,
45474,100352,98443,117985,74613,155911,74614,64502,136032,74615,74616,122224,74617,77820,74618,262988,262989,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,271884,222932,271886,213915,225216,251244,258251,218674,251266,258250,251265,251245,271885,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,
18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,256690,264349,264351,264350,264352,211026,250896,96367,36850,72694,37414,36851,124863,121343,73491,54473,
166861,43375,46674,242528,143815,139095,144402,149968,149969,32473,72901,72906,50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,263843,196075,
194768,252201,194769,191885,233634,265810,194770,195350,195349,194771,166382,37671,49953,220669,249229,213774,204572,191389,253830,253831,253832,272252,253833,253834,204574,191390,179556,238596,212661,191392,197826,191393,204573,36216,28237,241212,272049,173718,39553,192547,29222,26107,241211,38050,26108,275810,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,173191,173192,173193,101951,171502,196043,198305,97346,118051,
95102,64882,119505,63595,257268,63349,240553,95101,75240,27039,68823,21537,83464,75707,252904,170215,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,270560,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,264490,211189,111059,211188,
5754,264491,20445,233471,151308,151152,228067,130975,130976,247244,271622,271813,261210,210815,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,273960,113746,268886,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,
43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,275869,271673,274637,139723,139722,121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,213904,269342,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,273646,273647,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,
147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,267645,275782,190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,268574,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,269990,53969,8213,93926,221055,210542,212552,102852,110099,
22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,267692,267851,267577,267693,267694,267578,262801,271218,266131,266132,267977,267579,262800,262799,262802,267580,262798,267695,267581,273232,82039];var kT=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.KK("yt.msgs_",kT);var be=new _.vx("ACTION_ROUTER_TOKEN");_.Yh=function(){this.autonavState_=_.u("kevlar_is_pupi_enabled")?2:xYN()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.Yh.prototype.getState=function(){return this.autonavState_};
_.Yh.prototype.pause=function(x){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=x):this.autonavState_==1&&(this.disabledAutonavPauseReason_=x)};
_.Yh.prototype.setState=function(x,L,D){L&&(this.autoplayChangedByUser=!0);L=this.autonavState_===3||x===3;this.autonavState_!=x&&(this.autonavState_=x,x!=3&&_.L9s(x==2),x=_.u("kevlar_is_pupi_enabled")?D||L:!0,_.aR.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,x,D))};
_.Yh.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.y6(_.Yh);var Fr=function(){this.hasRun=!1};var s6={},Mdb=(s6.auto_search="LATENCY_ACTION_AUTO_SEARCH",s6.ad_to_ad="LATENCY_ACTION_AD_TO_AD",s6.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",s6.app_startup="LATENCY_ACTION_APP_STARTUP",s6.browse="LATENCY_ACTION_BROWSE",s6.cast_splash="LATENCY_ACTION_CAST_SPLASH",s6.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",s6.channels="LATENCY_ACTION_CHANNELS",s6.chips="LATENCY_ACTION_CHIPS",s6.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",s6.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
s6.editor="LATENCY_ACTION_EDITOR",s6.embed="LATENCY_ACTION_EMBED",s6.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",s6.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",s6.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",s6.explore="LATENCY_ACTION_EXPLORE",s6.favorites="LATENCY_ACTION_FAVORITES",s6.home="LATENCY_ACTION_HOME",s6.inboarding="LATENCY_ACTION_INBOARDING",s6.landing="LATENCY_ACTION_LANDING",s6.learning="LATENCY_ACTION_LEARNING",
s6.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",s6.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",s6.library="LATENCY_ACTION_LIBRARY",s6.live="LATENCY_ACTION_LIVE",s6.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",s6.management="LATENCY_ACTION_MANAGEMENT",s6.mini_app="LATENCY_ACTION_MINI_APP_PLAY",s6.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",s6.onboarding="LATENCY_ACTION_ONBOARDING",s6.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
s6.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",s6.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",s6.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",s6.prebuffer="LATENCY_ACTION_PREBUFFER",s6.prefetch="LATENCY_ACTION_PREFETCH",s6.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",s6.profile_switcher="LATENCY_ACTION_LOGIN",s6.projects="LATENCY_ACTION_PROJECTS",s6.reel_watch="LATENCY_ACTION_REEL_WATCH",s6.results="LATENCY_ACTION_RESULTS",s6.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
s6.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",s6.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",s6.review="LATENCY_ACTION_REVIEW",s6.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",s6.search_ui="LATENCY_ACTION_SEARCH_UI",s6.search_suggest="LATENCY_ACTION_SUGGEST",s6.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",s6.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",s6.seek="LATENCY_ACTION_PLAYER_SEEK",s6.settings="LATENCY_ACTION_SETTINGS",s6.store="LATENCY_ACTION_STORE",
s6.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",s6.tenx="LATENCY_ACTION_TENX",s6.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",s6.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",s6.watch="LATENCY_ACTION_WATCH",s6.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",s6["watch,watch7"]="LATENCY_ACTION_WATCH",s6["watch,watch7_html5"]="LATENCY_ACTION_WATCH",s6["watch,watch7ad"]="LATENCY_ACTION_WATCH",s6["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",s6.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
s6.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",s6.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",s6.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",s6.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",s6.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",s6.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",s6.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",s6),F90=0;var Chp=function(x,L){$o.call(this,1,arguments);this.timer=L};
_.p(Chp,$o);var GX0=new CNs("aft-recorded",Chp);var vEh=_.Qb.ytLoggingGelSequenceIdObj_||{};_.KK("ytLoggingGelSequenceIdObj_",vEh);var Tu=_.Qb.ytLoggingLatencyUsageStats_||{};_.KK("ytLoggingLatencyUsageStats_",Tu);var e3=function(){this.cleanupJob=0},H1n=function(){e3.instance||(e3.instance=new e3);
return e3.instance};
_.K=e3.prototype;_.K.baseline=function(x,L,D){RQ(this,"baseline_"+x)||_.Uh("latencyActionBaselined",{clientActionNonce:x},{timestamp:L,cttAuthInfo:D})};
_.K.tick=function(x,L,D,S){RQ(this,"tick_"+x+"_"+L)||_.Uh("latencyActionTicked",{tickName:x,clientActionNonce:L},{timestamp:D,cttAuthInfo:S})};
_.K.info=function(x,L,D){var S=Object.keys(x).join("");RQ(this,"info_"+S+"_"+L)||(x=Object.assign({},x),x.clientActionNonce=L,_.Uh("latencyActionInfo",x,{cttAuthInfo:D}))};
_.K.jspbInfo=function(x,L,D){for(var S="",Q=0;Q<Bs(x).length;Q++)Bs(x)[Q]!==void 0&&(S=Q===0?S.concat(""+Q):S.concat("_"+Q));RQ(this,"info_"+S+"_"+L)||(_.ei(x,2,L),L={cttAuthInfo:D},D=_.u("jspb_sparse_encoded_pivot")?new sh([{}]):new sh,_.bQ(D,7,z5H,x),Vd3("latencyActionInfo",D,L))};
_.K.span=function(x,L,D){var S=Object.keys(x).join("");RQ(this,"span_"+S+"_"+L)||(x.clientActionNonce=L,_.Uh("latencyActionSpan",x,{cttAuthInfo:D}))};
var RQ=function(x,L){Tu[L]=Tu[L]||{count:0};var D=Tu[L];D.count++;D.time=(0,_.y5)();x.cleanupJob||(x.cleanupJob=_.TG(_.WW,function(){var S=(0,_.y5)(),Q;for(Q in Tu)Tu[Q]&&S-Tu[Q].time>6E4&&delete Tu[Q];x&&(x.cleanupJob=0)},5E3));
return D.count>5?(D.count===6&&Math.random()*1E5<1&&(D=new _.RZ("CSI data exceeded logging limit with key",L.split("_")),L.indexOf("plev")>=0||_.qy(D)),!0):!1};var HD2,ubr;HD2=window;ubr=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.G8=HD2.performance||HD2.mozPerformance||HD2.msPerformance||HD2.webkitPerformance||new ubr;var R_O=!1,gEw=!1,lzN=(0,_.e1)(_.G8.clearResourceTimings||_.G8.webkitClearResourceTimings||_.G8.mozClearResourceTimings||_.G8.msClearResourceTimings||_.G8.oClearResourceTimings||_.GC,_.G8);var gqC=window;gqC.ytcsi&&(gqC.ytcsi.infoGel=_.W$,gqC.ytcsi.tick=_.$T);var fzn=function(x){$o.call(this,1,arguments);this.csn=x};
_.p(fzn,$o);var WXh=new CNs("screen-created",fzn),ZSN=[],i1G=OSw,yab=0,o8=new Map,oEG=new Map,azn=new Map;var yWO=Symbol("Af"),Qa=new WeakMap;var Gu=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},eO=function(){Gu.instance||(Gu.instance=new Gu);
return Gu.instance};
_.K=Gu.prototype;_.K.setClient=function(x){this.client=x};
_.K.JSC$12572_newScreen=function(){this.clear();this.csn=_.A3()};
_.K.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.K.reportShown=function(x,L,D){var S=this.JSC$12572_getTrackingParams(x),Q=x.visualElement?x.visualElement:S;L=this.shownElements.has(Q);var J=this.visibleState.get(Q);this.shownElements.add(Q);this.visibleState.set(Q,!0);x.impressionLog&&!L&&x.impressionLog();if(S||x.visualElement)if(D=k2R(this,x,D))if(Q=pEi(this,x),Cv(this,x)||Q){S=x.visualElement?x.visualElement:_.CI(S);var Z=x.interactionLoggingClientData;Q||L?Cv(this,x)&4?J||DVf(this.client,D,S,Z):Cv(this,x)&1&&!L&&tdb(this.client,D,S,Z):tdb(this.client,
D,S,Z)}};
_.K.reportHidden=function(x,L,D){var S=this.JSC$12572_getTrackingParams(x),Q=x.visualElement?x.visualElement:S;L=this.hiddenElements.has(Q);var J=this.visibleState.get(Q);this.hiddenElements.add(Q);this.visibleState.set(Q,!1);if(J===!1)return!0;if(!S&&!x.visualElement)return!1;D=k2R(this,x,D);if(!D||!Cv(this,x)&&pEi(this,x))return!1;S=x.visualElement?x.visualElement:_.CI(S);Cv(this,x)&8?SWh(this.client,D,S):Cv(this,x)&2&&!L&&(x=this.client,L=f6({cttAuthInfo:$7(D)||void 0},D),S={csn:D,ve:S.getAsJson(),
eventType:2},D==="UNDEFINED_CSN"?z8("visualElementHidden",L,S):x?CV("visualElementHidden",S,x,L):_.Uh("visualElementHidden",S,L));return!0};
_.K.JSC$12572_getTrackingParams=function(x){var L=this.getData(x),D,S;if(_.u("il_use_view_model_logging_context")&&(L==null?0:(D=L.context)==null?0:(S=D.loggingContext)==null?0:S.loggingDirectives))return L.context.loggingContext.loggingDirectives.trackingParams||"";var Q,J;if(L==null?0:(Q=L.rendererContext)==null?0:(J=Q.loggingContext)==null?0:J.loggingDirectives)return L.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(L==null?0:L.loggingDirectives)return L.loggingDirectives.trackingParams||
"";var Z;return((Z=x.veContainer)==null?0:Z.trackingParams)?x.veContainer.trackingParams:(L==null?void 0:L.trackingParams)||""};
_.K.JSC$12572_elementShouldLogGesture=function(x,L){x=this.getData(x);return!!((Math.floor(Number(x&&x.loggingDirectives&&x.loggingDirectives.gestures&&x.loggingDirectives.gestures.types||""))||0)&L)};
_.K.JSC$12572_getNearestParentVe=function(x){var L=this.JSC$12572_getTrackingParams(x);return x.visualElement?x.visualElement:L?_.CI(L):x.parentElement?this.JSC$12572_getNearestParentVe(x.parentElement):null};
var k2R=function(x,L,D){var S=_.A3(D);return x.csn===null||S===x.csn||D?S:(x=new _.RZ("VisibilityLogger called before newScreen",{caller:L.tagName,previous_csn:x.csn,current_csn:S}),_.qy(x),null)};
Gu.prototype.getData=function(x){var L,D=x.data||((L=x.props)==null?void 0:L.data);if(!D||x.isWebComponentWrapper){var S;D=(S=Qa.get(x))==null?void 0:S[yWO]}return D};
var pEi=function(x,L){var D;return!((D=x.getData(L))==null||!D.loggingDirectives)},Cv=function(x,L){x=x.getData(L);
return Math.floor(Number(x&&x.loggingDirectives&&x.loggingDirectives.visibility&&x.loggingDirectives.visibility.types||""))||1};var le;le=function(){};
_.Yi=function(){le.instance||(le.instance=new le);return le.instance};
le.prototype.setClient=function(x){_.fm(eO().setClient).bind(eO())(x)};
_.mrQ=function(){_.Yi();_.fm(eO().JSC$12572_newScreen).bind(eO())()};
le.prototype.clear=function(){_.fm(eO().clear).bind(eO())()};
le.prototype.reportShown=function(x,L,D){_.fm(eO().reportShown).bind(eO())(x,L,D)};
le.prototype.reportHidden=function(x,L,D){return _.fm(eO().reportHidden).bind(eO())(x,L,D)};
var lyf=function(x,L){return _.fm(eO().JSC$12572_getTrackingParams).bind(eO())(L)},IjG=function(x,L){return _.fm(eO().JSC$12572_getNearestParentVe).bind(eO())(L)};var U6,bDi;U6=function(){this.graftQueue=[];this.stateChangedQueue=[];this.backHistoryStack=[];this.forwardHistoryStack=[];this.afterNewScreenOneOffJobs=[];this.afterNewScreenRecurringJobs=[];this.cachedVisualElements=new Map;this.cachedRootVisualElements=new Map;this.pendingScreenCreation=new Set;this.recurringGrafts=new Map};
_.sk=function(){U6.instance||(U6.instance=new U6);return U6.instance};
U6.prototype.setClient=function(x){this.client=x};
bDi=function(x,L,D){D=D===void 0?{}:D;_.fm(function(){var S,Q,J,Z=((S=_.g(L==null?void 0:L.commandMetadata,_.gg))==null?void 0:S.rootVe)||((Q=_.g(L==null?void 0:L.commandMetadata,EEC))==null?void 0:(J=Q.screenVisualElement)==null?void 0:J.uiType);if(Z){S=_.g(L==null?void 0:L.commandMetadata,SjW);if(S==null?0:S.parentTrackingParams){var y=_.CI(S.parentTrackingParams);if(S.parentCsn)var E=S.parentCsn}else D.clickedVisualElement?y=D.clickedVisualElement:L.clickTrackingParams&&(y=_.CI(L.clickTrackingParams));
a:{S=_.g(L,_.L6);Q=_.g(L,z8f);if(S){if(Q=DY0(S,"VIDEO")){S={token:Q,videoId:S.videoId};break a}}else if(Q&&(S=DY0(Q,"PLAYLIST"))){S={token:S,playlistId:Q.playlistId};break a}S=void 0}D=Object.assign({},{cttAuthInfo:S,parentCsn:E},D);if(_.u("expectation_logging")){var P;D.loggingExpectations=((P=_.g(L==null?void 0:L.commandMetadata,EEC))==null?void 0:P.loggingExpectations)||void 0}_.we(x,Z,y,D)}else _.qy(new _.RZ("Error: Trying to create a new screen without a rootVeType",L))})()};
_.we=function(x,L,D,S){S=S===void 0?{}:S;_.fm(function(){hp_.includes(L)||(_.qy(new _.RZ("createClientScreen() called with a non-page VE",L)),L=83769);S.isHistoryNavigation||(x.forwardHistoryStack=[],x.backHistoryStack.push({rootVe:L,key:S.key||""}));x.graftQueue=[];x.stateChangedQueue=[];S.dataPromises?Y0W(x,L,D,S):FO2(x,L,D,S)})()};
_.sdr=function(x,L,D){D=D===void 0?0:D;_.fm(function(){L.then(function(S){x.pendingScreenCreation.has(D)&&x.pendingScreenFn&&x.pendingScreenFn();var Q=_.A3(D),J=_.qu(D);if(Q&&J){var Z={automatedLogEventSource:3},y;(S==null?0:(y=S.response)==null?0:y.trackingParams)&&a8(x.client,Q,J,_.CI(S.response.trackingParams),!1,Z);var E;(S==null?0:(E=S.playerResponse)==null?0:E.trackingParams)&&a8(x.client,Q,J,_.CI(S.playerResponse.trackingParams),!1,Z)}})})()};
U6.prototype.graftServerVe=function(x,L,D){var S=this;return _.fm(function(){var Q=_.CI(x);_.B5(S,Q,L,D);return Q})()};
_.E_0=function(x,L,D,S){return _.u("enable_client_ve_spec")&&L.clientVeSpec?(L=_.VC(L.clientVeSpec.uiType,void 0,L.clientVeSpec.elementIndex,L.clientVeSpec.clientYoutubeData,void 0,L),_.B5(x,L,D,S)?L:null):L.trackingParams?x.graftServerVe(L.trackingParams,D,S):null};
_.Ff=function(x,L,D,S){return _.fm(function(){if(!L.veType)return _.WI(new _.RZ("Error: Trying to graft a client VE without a veType.")),null;if(L.visibilityTypes){var Q=L.visibilityTypes.reduce(function(J,Z){return J|Z});
Q={visibility:{types:String(Q)}}}Q=_.VC(L.veType,L.visualElement,L.elementIndex,L.clientYouTubeData,void 0,Q);return _.B5(x,Q,D,S)?Q:null})()};
_.B5=function(x,L,D,S){S=S===void 0?0:S;return _.fm(function(){if(x.pendingScreenCreation.has(S))return x.graftQueue.push([L,D]),!0;var Q=_.A3(S),J=D||_.qu(S);if(Q&&J){if(_.u("combine_ve_grafts")){var Z=x.cachedVisualElements.get(J.toString());Z?Z.push(L):(x.cachedRootVisualElements.set(J.toString(),J),x.cachedVisualElements.set(J.toString(),[L]));x.attachTimeout||(x.attachTimeout=_.TG(_.WW,function(){TNi(x,Q)},1200))}else a8(x.client,Q,J,L);
return!0}return!1})()};
_.W5=function(x,L,D){D=D===void 0?0:D;var S=x.recurringGrafts.get(D)||new Map;if(_.u("smarter_ve_dedupping"))for(var Q=Array.from(S.keys()),J=0;J<Q.length;J++){var Z=void 0,y=void 0;var E=L;var P=Q[J];P.isClientVe()&&E.isClientVe()?(Z=E.getAsJson(),y=P.getAsJson(),E=Z.veType!==y.veType||Z.elementIndex!==y.elementIndex||Z.dataElement!==y.dataElement||E.getLoggingDirectives()!==P.getLoggingDirectives()?!1:!0):E=P.veData.trackingParams!==void 0&&E.veData.trackingParams!==void 0?((y=E.veData)==null?void 0:
y.trackingParams)===((Z=P.veData)==null?void 0:Z.trackingParams):!1;if(E)return}else if(S.has(L))return;S.set(L,void 0);x.recurringGrafts.set(D,S);_.A3(D)==="UNDEFINED_CSN"||x.pendingScreenCreation.has(D)||_.B5(x,L,void 0,D)};
_.qJ=function(x,L,D,S){S=_.A3(S===void 0?0:S);if(!S)return!1;JaG(x.client,S,L,D);return!0};
_.AM=function(x,L,D,S){if(!L)return!1;S=_.A3(S===void 0?0:S);if(!S)return!1;JaG(x.client,S,_.CI(L),D);return!0};
_.XT=function(x,L){var D=L.getScreenLayer&&L.getScreenLayer();if(L.visualElement)return _.qJ(x,L.visualElement,void 0,D);L=lyf(_.Yi(),L);return _.AM(x,L,void 0,D)};
U6.prototype.clickCommand=function(x,L,D){return _.AM(this,x.clickTrackingParams,L,D===void 0?0:D)};
U6.prototype.stateChanged=function(x,L,D){this.visualElementStateChanged(_.CI(x),L,D===void 0?0:D)};
U6.prototype.visualElementStateChanged=function(x,L,D){D=D===void 0?0:D;D===0&&this.pendingScreenCreation.has(D)?this.stateChangedQueue.push([x,L]):this.logStateChanged(x,L,D)};
U6.prototype.logStateChanged=function(x,L,D){D=D===void 0?0:D;var S=_.A3(D);x=x||_.qu(D);return S&&x?(KG3(this.client,S,x,L),!0):!1};
var Y0W=function(x,L,D,S){S=S===void 0?{}:S;x.pendingScreenCreation.add(S.layer||0);x.pendingScreenFn=function(){FO2(x,L,D,S);var Z=_.qu(S.layer);if(Z){for(var y=_.O(x.graftQueue),E=y.next();!E.done;E=y.next())E=E.value,_.B5(x,E[0],E[1]||Z,S.layer);Z=_.O(x.stateChangedQueue);for(y=Z.next();!y.done;y=Z.next())y=y.value,x.logStateChanged(y[0],y[1])}};
D||_.A3(S.layer)||x.pendingScreenFn();if(S.dataPromises)for(var Q=_.O(S.dataPromises),J=Q.next();!J.done;J=Q.next())_.sdr(x,J.value,S.layer);else _.BI(Error("Bf"))},FO2=function(x,L,D,S){S=S===void 0?{}:S;
var Q=void 0;S.layer||(S.layer=0);Q=S.parentLayer!==void 0?S.parentLayer:S.layer;var J=_.A3(Q);Q=_.qu(Q);var Z=D||Q,y;Z&&(S.parentCsn!==void 0?y={clientScreenNonce:S.parentCsn,visualElement:Z}:J&&J!=="UNDEFINED_CSN"&&(y={clientScreenNonce:J,visualElement:Z}));var E,P=_.$6("EVENT_ID");J==="UNDEFINED_CSN"&&P&&(E={servletData:{serializedServletEventId:P}});_.u("combine_ve_grafts")&&J&&TNi(x,J);_.u("no_client_ve_attach_unless_shown")&&Z&&J&&nEw(Z,J);try{var v=_.z_3(x.client,L,y,S.csnToClone,S.cttAuthInfo,
E,S.implicitGestureType,void 0,S.loggingExpectations)}catch(H){_.A7(H,{rootVeType:L,rootVe:Q,parentVisualElement:D,currentCsn:J,parentEl:y,csnToClone:S.csnToClone});_.BI(H);return}_.rr(v,L,S.layer,S.cttAuthInfo);J&&J!=="UNDEFINED_CSN"&&Q&&!Jsb(J)&&SWh(x.client,J,Q,!0);x.backHistoryStack[x.backHistoryStack.length-1]&&!x.backHistoryStack[x.backHistoryStack.length-1].csn&&(x.backHistoryStack[x.backHistoryStack.length-1].csn=v||"");_.W$({clientScreenNonce:v});_.mrQ();var V=_.qu(S.layer);J&&J!=="UNDEFINED_CSN"&&
V&&(_.u("web_mark_root_visible")||_.u("music_web_mark_root_visible"))&&_.n6(v,V);x.pendingScreenCreation.delete(S.layer||0);x.pendingScreenFn=void 0;var h;(h=x.recurringGrafts.get(S.layer))==null||h.forEach(function(H,k){H?_.B5(x,k,H,S.layer):V&&_.B5(x,k,V,S.layer)});
epC(x)},epC=function(x){for(var L=0;L<x.afterNewScreenOneOffJobs.length;L++){var D=x.afterNewScreenOneOffJobs[L];
try{D()}catch(S){_.BI(S)}}for(L=x.afterNewScreenOneOffJobs.length=0;L<x.afterNewScreenRecurringJobs.length;L++){D=x.afterNewScreenRecurringJobs[L];try{D()}catch(S){_.BI(S)}}},TNi=function(x,L){if(L===void 0)for(var D=SLb(),S=0;S<D.length;S++)D[S]!==void 0&&TNi(x,D[S]);
else x.cachedVisualElements.forEach(function(Q,J){(J=x.cachedRootVisualElements.get(J))&&Xub(x.client,L,J,Q)}),x.cachedVisualElements.clear(),x.cachedRootVisualElements.clear(),x.attachTimeout=void 0};var $h=function(x){x=x===void 0?{layer:0}:x;this.hasRun=!1;this.createScreenConfig=x;x={};this.e7g=(x.response=!1,x.playerResponse=!1,x)};
_.p($h,Fr);$h.prototype.validate=function(x){return!(!x.data||!x.data.response&&!x.data.playerResponse)};
$h.prototype.handle=function(x){var L=_.sk(),D=this.createScreenConfig.layer;x.data.response&&x.data.response.trackingParams&&!this.e7g.response&&(L.graftServerVe(x.data.response.trackingParams,void 0,D),this.e7g.response=!0);x.data.playerResponse&&x.data.playerResponse.trackingParams&&!this.e7g.playerResponse&&(L.graftServerVe(x.data.playerResponse.trackingParams,void 0,D),this.e7g.playerResponse=!0)};var re=function(){this.o0=_.xe();this.eD=[];this.gN8=0};
re.prototype.processChunk=function(x){if(x){for(var L=_.O(this.eD),D=L.next();!D.done;D=L.next())D=D.value,D.validate(x)&&(D.handle(x),D.hasRun=!0);_.$T("np"+this.gN8);this.gN8++}};var J2={initialized:!1,nextSpanId:0,stack:[],sessionId:"",enabledSpans:void 0,processors:[],shouldSampleFn:function(){return!0}},dVc={rootSpan:function(){return J2.stack[0]}};var G2h=function(){var x=RpW;this.observers=[];this.value=x};
_.K=G2h.prototype;_.K.subscribe=function(x){var L=this;if(x.idx!=null)throw Error("Df");x.idx=this.observers.length;this.observers.push(x);return function(){var D=L.observers[L.observers.length-1];L.observers[x.idx]=D;D.idx=x.idx;L.observers.pop()}};
_.K.update=function(x){this.value=x(this.value);this.notify()};
_.K.mutate=function(x){x(this.value);this.notify()};
_.K.set=function(x){this.value=x;this.notify()};
_.K.notify=function(){for(var x=_.O(this.observers),L=x.next();!L.done;L=x.next()){L=L.value;try{L(this.value)}catch(D){}}};var ljh,CuR,wEd;_.pI=function(x,L,D,S,Q,J,Z,y){Z=Z===void 0?[]:Z;y=y===void 0?[]:y;this.buildCommandPayload=x;this.navigate=L;this.handleServiceRequest=D;this.sendAction=S;this.JSC$12619_screenManager=Q;this.commandResolverMap=J;this.autoLogResolverAllowlist=Z;this.metaCommandClickLoggingDenylist=y;this.pendingCommands=new Set;this.isTracingEnabled=!1;CuR(this)};
ljh=function(x,L,D,S){var Q=hn0,J=HM3,Z=_.sk(),y=l6i;D=D===void 0?[]:D;S=S===void 0?[]:S;_.pI.instance=new _.pI(x,L,Q,J,Z,y,D,S)};
CuR=function(x){if(!x.isTracingEnabled&&EKn("command")){var L=x.resolveCommand;x.resolveCommand=function(D,S){a:{for(Q in D)if(Object.prototype.hasOwnProperty.call(D,Q)){var Q={commandType:Q};break a}Q={}}return PZh("command",Q,L.bind(this,D,S))};
x.isTracingEnabled=!0}};
wEd=function(x,L,D){if(!x.commandResolverMap)return!1;var S=HSn(L,x.commandResolverMap);return S?((x.autoLogResolverAllowlist.some(function(Q){return!!_.g(L,Q)})||(D==null?0:D.forceClickLogging))&&UrR(x,L,D),S instanceof Promise?S.then(function(Q){Q.resolve(L,D)}):S.resolve(L,D),!0):!1};
_.pI.prototype.resolveCommand=function(x,L){var D=this,S=BNB(x);if(wEd(this,x,L))return!0;if(S)return WOd(this,x,L);if(!this.buildCommandPayload)return vKN(x,"Unhandled command by buildCommandPayload"),!1;var Q=this.buildCommandPayload(x,L);if(L==null?0:L.commandController)Q.commandController=L.commandController;if(Q.type===0){if(!this.navigate)return Vv3(x,"navigate"),!1;if(!q0B(Q.command))return vKN(x,"Page requests need to specify a url"),!1;_.u("logging_avoid_blocking_during_navigation")&&_.kRc().transition("application_navigating");
x=this.navigate(Q)||[];BkR(x).then(function(){D.pendingCommands.delete(Q.command)});
return!0}if(Q.type===1){if(!this.handleServiceRequest)return Vv3(x,"handleServiceRequest"),!1;(L==null?0:L.forceClickLogging)&&UrR(this,Q.command,L);x=this.handleServiceRequest(Q);BkR(x).then(function(){D.pendingCommands.delete(Q.command)});
return!0}if(Q.type===2){if(!this.sendAction)return Vv3(x,"sendAction"),!1;UrR(this,Q.command,L);this.sendAction(Q);return!0}return!1};
var UrR=function(x,L,D){if((D==null||!D.disableClickTracking)&&x.JSC$12619_screenManager)if(L.clickTrackingParams&&_.u("log_click_with_layer_from_element_in_command_handler")){var S;D=D==null?void 0:(S=D.form)==null?void 0:S.element;x.JSC$12619_screenManager.clickCommand(L,null,D&&D.getScreenLayer&&D.getScreenLayer())}else L.clickTrackingParams?x.JSC$12619_screenManager.clickCommand(L):!_.u("disable_clicked_visual_element_in_command_handler")&&(D==null?0:D.clickedVisualElement)&&_.qJ(x.JSC$12619_screenManager,
D.clickedVisualElement)},BNB=function(x){var L=!!_.g(x,_.h_),D;
x=((D=_.g(x,_.ul))==null?void 0:D.signal)==="CLIENT_SIGNAL";return L||x},WOd=function(x,L,D){var S=_.g(L,_.h_);
if(S)var Q=(S==null?void 0:S.commands)||[];else{var J;if(((J=_.g(L,_.ul))==null?void 0:J.signal)==="CLIENT_SIGNAL"){var Z;Q=((Z=_.g(L,_.ul))==null?void 0:Z.actions)||[]}}if(Q){(S=AA_(x,Q))&&UrR(x,L,D);L=_.O(Q);for(Q=L.next();!Q.done;Q=L.next()){Q=Q.value;try{var y=Object.assign({},D);S&&(y.disableClickTracking=!0);x.resolveCommand(Q,y)}catch(E){E instanceof Error&&_.BI(E)}}return!0}vKN(L,"Could not handle the meta command");return!1},AA_=function(x,L){return L.every(function(D){return x.metaCommandClickLoggingDenylist.some(function(S){return!!_.g(D,
S)})})},q0B=function(x){var L;
return!((L=_.g(x==null?void 0:x.commandMetadata,_.gg))==null||!L.url)};var NJ=function(){Fr.apply(this,arguments)};
_.p(NJ,Fr);NJ.prototype.validate=function(x){var L,D;return!this.hasRun&&!!((L=x.data.response)==null?0:(D=L.onResponseReceivedEndpoints)==null?0:D.length)};
NJ.prototype.handle=function(x){var L=_.pI.instance;x=_.O(x.data.response.onResponseReceivedEndpoints);for(var D=x.next();!D.done;D=x.next())L.resolveCommand(D.value)};var $rd,rAB,NNR;
$rd=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=_.V0();this.navigatingAwayFromWatchDeletedVideo=!1;
this.currentEndpoint=null;this.isVideoPlaying=!1};
_.ie=function(){rAB||(rAB=new $rd);return rAB};
NNR=function(){var x=_.ie();x.miniplayerButtonActivation=!1;x.userActivation=!1;x.playlistWatchPageActivation=!1;x.productDetailsPageActivation=!1;x.miniAppPageActivation=!1;x.playablesDestPageActivation=!1;x.lockupActivation=!1;x.showMiniplayerCommandActivation=!1;x.playlistSuggestionsShelfActivation=!1;x.mediaSessionPipActivation=!1;x.watchPipActivation=!1;x.watchWhileActivation=!1;x.shortsPipActivation=!1;x.companionCanvasActivation=!1};
_.iD_=function(){var x=_.ie(),L=x.mediaSessionPipActivation,D=x.watchPipActivation,S=x.watchWhileActivation,Q=x.playlistWatchPageActivation,J=x.lockupActivation,Z=x.showMiniplayerCommandActivation,y=x.navigatingAwayFromWatchDeletedVideo,E=x.shortsPipActivation,P=x.playlistSuggestionsShelfActivation,v=x.productDetailsPageActivation,V=x.miniAppPageActivation,h=x.playablesDestPageActivation,H=x.companionCanvasActivation;return!x.miniplayerButtonActivation&&!Q&&!P&&!v&&!V&&!h&&!J&&!Z&&!L&&!D&&!S&&!E&&
!H||y};var Tvs;_.fv=_.O4("FEwhat_to_watch","/",3854);_.ea0=_.O4("FEdownloads","/feed/downloads",42352);Tvs=_.O4("FEmusic_offline","browse/FEmusic_offline",42352);var Qy=function(x,L){L=L===void 0?[]:L;var D=D===void 0?[]:D;L=Wep.apply(null,[q10.apply(null,_.lP(L))].concat(_.lP(D)));this.store=NGw(x,void 0,L)};
Qy.prototype.getState=function(){return this.store.getState()};
Qy.prototype.dispatch=function(x){return this.store.dispatch(x)};
Qy.prototype.subscribe=function(x){return this.store.subscribe(x)};
Qy.prototype.replaceReducer=function(x){return this.store.replaceReducer(x)};
Qy.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.oQ=function(x,L,D){var S=L(x.getState());return x.subscribe(function(){var Q=L(x.getState());if(Q!==S){var J=S;S=Q;D(Q,J)}})};var Iqb;_.TR=function(x,L,D){return _.MU({type:"REPLACE_ENTITY",payload:{entityPayload:D,entityType:x,key:L}})};
Iqb=function(x){return _.MU({type:"REPLACE_ENTITIES",payload:x})};
_.B2=function(x,L,D,S){return _.MU({type:"UPDATE_ENTITY",payload:{entityPayload:D,entityType:x,key:L,mergeOption:S}})};var Gd4=function(x){var L=this;x=x===void 0?[]:x;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;x.forEach(function(D){L.append(D)})};
_.K=Gd4.prototype;_.K.getLength=function(){return this.totalLength};
_.K.append=function(x){var L=this.arrays.length===0?!1:(L=this.arrays[this.arrays.length-1])&&L.buffer===x.buffer&&L.byteOffset+L.length===x.byteOffset;L?(L=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(L.buffer,L.byteOffset,L.length+x.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(x);this.totalLength+=x.length};
_.K.split=function(x){for(var L=new Gd4,D=new Gd4,S=_.O(this.arrays),Q=S.next();!Q.done;Q=S.next())Q=Q.value,x>=Q.length?(L.append(Q),x-=Q.length):x?(L.append(new Uint8Array(Q.buffer,Q.byteOffset,x)),D.append(new Uint8Array(Q.buffer,Q.byteOffset+x,Q.length-x)),x=0):D.append(Q);return{headView:L,tailView:D}};
_.K.isFocused=function(x){return x>=this.arrayPos&&x<this.arrayPos+this.arrays[this.arrayIdx].length};
_.K.focus=function(x){if(!this.isFocused(x))for(x<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=x&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var f62=function(x,L){x.focus(L);return x.arrays[x.arrayIdx][L-x.arrayPos]};(function(){var x=function(S){return new Uint8Array(S)},L=function(S){for(var Q=new Uint8Array(S.length),J=0;J<S.length;J++)Q[J]=S[J];
return Q},D=new Uint8Array([1]);
return D.length===1&&D[0]===1?x:L})();
var YWn=Array(1024),bSc=window.TextDecoder?new TextDecoder:void 0,sff=window.TextEncoder?new TextEncoder:void 0;var RBN=function(x){this.arrayView=x;this.pos=0;this.pendingTagAndType=-1},dD=function(x){var L=f62(x.arrayView,x.pos);
++x.pos;if(L<128)return L;for(var D=L&127,S=1;L>=128;)L=f62(x.arrayView,x.pos),++x.pos,S*=128,D+=(L&127)*S;return D},CZh=function(x,L){var D=x.pendingTagAndType;
for(x.pendingTagAndType=-1;x.pos+1<=x.arrayView.totalLength;){D<0&&(D=dD(x));var S=D>>3,Q=D&7;if(S===L)return!0;if(S>L){x.pendingTagAndType=D;break}D=-1;switch(Q){case 0:dD(x);break;case 1:x.pos+=8;break;case 2:S=dD(x);x.pos+=S;break;case 5:x.pos+=4}}return!1};var UVn=function(){this.wasm=void 0;this.pos=0;this.submessagePosStack=[];this.buf=eB3(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},h2=function(x,L){L=x.pos+L;
if(!(x.buf.length>=L)){for(var D=x.buf.length*2;D<L;)D*=2;x.buf=eB3(D,x.wasm,x.buf.subarray(0,x.pos));x.view=new DataView(x.buf.buffer,x.buf.byteOffset,x.buf.byteLength)}},Va=function(x,L){if(L>268435455){h2(x,4);
for(var D=L&1073741823,S=0;S<4;S++)x.view.setUint8(x.pos,D&127|128),D>>=7,x.pos+=1;L=Math.floor(L/268435456)}for(h2(x,4);L>127;)x.view.setUint8(x.pos,L&127|128),L>>=7,x.pos+=1;x.view.setUint8(x.pos,L);x.pos+=1};for(var wgO={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},lFb={},oqh=_.O(Object.entries(wgO)),a6R=oqh.next();!a6R.done;a6R=oqh.next()){var zpr=_.O(a6R.value),XEB=zpr.next().value,cAW=zpr.next().value,nqd=XEB,tg2=cAW;tg2&&(lFb[tg2]=nqd)};var WGG=function(x,L){x=x===void 0?{}:x;switch(L.type){case "ENTITY_LOADED":return L.payload.reduce(function(S,Q){var J,Z=(J=Q.options)==null?void 0:J.persistenceOption;if(Z&&Z!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&Z!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return S;if(!Q.entityKey)return _.BI(Error("Ff")),S;if(Q.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!Q.payload)return Q=new _.RZ("REPLACE entity mutation is missing a payload",{entityKey:Q.entityKey}),_.BI(Q),S;var y=(0,_.wk.getAnyKey)(Q.payload);
return Aaf(S,y,Q.entityKey,Q.payload[y])}if(Q.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{Q=Q.entityKey;try{var E=_.va(Q).entityType;y=Aaf(S,E,Q);break a}catch(V){if(V instanceof Error){Q=new _.RZ("Failed to deserialize entity key",{entityKey:Q,originalMessage:V.message});_.BI(Q);y=S;break a}throw V;}y=void 0}return y}if(Q.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!Q.payload)return Q=new _.RZ("UPDATE entity mutation is missing a payload",{entityKey:Q.entityKey}),_.BI(Q),S;y=(0,_.wk.getAnyKey)(Q.payload);
var P,v;return $VO(S,y,Q.entityKey,Q.payload[y],(P=Q.fieldMask)==null?void 0:(v=P.mergeOptions)==null?void 0:v.repeatedFieldsMergeOption)}return S},x);
case "REPLACE_ENTITY":var D=L.payload;return Aaf(x,D.entityType,D.key,D.entityPayload);case "REPLACE_ENTITIES":return Object.keys(L.payload).reduce(function(S,Q){var J=L.payload[Q];return Object.keys(J).reduce(function(Z,y){return Aaf(Z,Q,y,J[y])},S)},x);
case "UPDATE_ENTITY":return D=L.payload,$VO(x,D.entityType,D.key,D.entityPayload,D.mergeOption);default:return x}};var ra0;var xMW=!1,aQ,zu,Xr,c5,nv,Lxh=function(x){_.Te.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!xMW){var L,D=new Uint8Array(256),S=new Uint8Array(256);var Q=1;for(L=0;L<256;L++)D[Q]=L,S[L]=Q,Q^=Q<<1^(Q>>7&&283);aQ=new Uint8Array(256);zu=gD(256);Xr=gD(256);c5=gD(256);nv=gD(256);for(var J=0;J<256;J++){Q=J?S[255^D[J]]:0;Q^=Q<<1^Q<<2^Q<<3^Q<<4;Q=Q&255^Q>>>8^99;aQ[J]=Q;L=Q<<1^(Q>>7&&283);var Z=L^Q;zu[J]=L<<24|Q<<16|Q<<8|Z;Xr[J]=Z<<24|zu[J]>>>8;c5[J]=Q<<24|Xr[J]>>>
8;nv[J]=Q<<24|c5[J]>>>8}xMW=!0}Q=gD(44);for(D=0;D<4;D++)Q[D]=x[4*D]<<24|x[4*D+1]<<16|x[4*D+2]<<8|x[4*D+3];for(S=1;D<44;D++)x=Q[D-1],D%4||(x=(aQ[x>>16&255]^S)<<24|aQ[x>>8&255]<<16|aQ[x&255]<<8|aQ[x>>>24],S=S<<1^(S>>7&&283)),Q[D]=Q[D-4]^x;this.key=Q};
_.p(Lxh,_.Te);
Lxh.prototype.encrypt=function(x){var L=x.length;x=new Uint8Array(x.buffer.slice(x.byteOffset,x.byteOffset+L));for(var D=this.cipherBlock,S=0;S<L&&this.blockOffset<16;)x[S++]^=D[this.blockOffset++];for(var Q=L-(L-S)%16;S<Q;)DMA(this),x[S++]^=D[0],x[S++]^=D[1],x[S++]^=D[2],x[S++]^=D[3],x[S++]^=D[4],x[S++]^=D[5],x[S++]^=D[6],x[S++]^=D[7],x[S++]^=D[8],x[S++]^=D[9],x[S++]^=D[10],x[S++]^=D[11],x[S++]^=D[12],x[S++]^=D[13],x[S++]^=D[14],x[S++]^=D[15];if(S<L)for(DMA(this),this.blockOffset=0;S<L;)x[S++]^=
D[this.blockOffset++];return x};
var DMA=function(x){for(var L=x.key,D=x.counter[0]^L[0],S=x.counter[1]^L[1],Q=x.counter[2]^L[2],J=x.counter[3]^L[3],Z=3;Z>=0&&!(x.counter[Z]=-~x.counter[Z]);Z--);for(var y,E,P=4;P<40;)Z=zu[D>>>24]^Xr[S>>16&255]^c5[Q>>8&255]^nv[J&255]^L[P++],y=zu[S>>>24]^Xr[Q>>16&255]^c5[J>>8&255]^nv[D&255]^L[P++],E=zu[Q>>>24]^Xr[J>>16&255]^c5[D>>8&255]^nv[S&255]^L[P++],J=zu[J>>>24]^Xr[D>>16&255]^c5[S>>8&255]^nv[Q&255]^L[P++],D=Z,S=y,Q=E;x=x.cipherBlock;Z=L[40];x[0]=aQ[D>>>24]^Z>>>24;x[1]=aQ[S>>16&255]^Z>>16&255;x[2]=
aQ[Q>>8&255]^Z>>8&255;x[3]=aQ[J&255]^Z&255;Z=L[41];x[4]=aQ[S>>>24]^Z>>>24;x[5]=aQ[Q>>16&255]^Z>>16&255;x[6]=aQ[J>>8&255]^Z>>8&255;x[7]=aQ[D&255]^Z&255;Z=L[42];x[8]=aQ[Q>>>24]^Z>>>24;x[9]=aQ[J>>16&255]^Z>>16&255;x[10]=aQ[D>>8&255]^Z>>8&255;x[11]=aQ[S&255]^Z&255;Z=L[43];x[12]=aQ[J>>>24]^Z>>>24;x[13]=aQ[D>>16&255]^Z>>16&255;x[14]=aQ[S>>8&255]^Z>>8&255;x[15]=aQ[Q&255]^Z&255};var S_C=!1;(function(){var x=function(S){return new Uint8Array(S)},L=function(S){for(var Q=new Uint8Array(S.length),J=0;J<S.length;J++)Q[J]=S[J];
return Q},D=new Uint8Array([1]);
return D.length===1&&D[0]===1?x:L})();
var tM;var KxW=function(x){a:{if(!S_C&&!Q5){if(tM){var L=tM;break a}tM=(L=window.crypto)==null?void 0:L.subtle;var D,S,Q;if(((D=tM)==null?0:D.importKey)&&((S=tM)==null?0:S.sign)&&((Q=tM)==null?0:Q.encrypt)){L=tM;break a}tM=void 0}L=void 0}L&&(this.nativeEncryptor=new QYd(x,L));this.encryptorPolyfill=new Jeh(x)};
KxW.prototype.encrypt=function(x,L){var D=this,S;return _.I(function(Q){switch(Q.nextAddress){case 1:if(!D.nativeEncryptor){Q.jumpTo(2);break}_.HH(Q,3);return Q.yield(D.nativeEncryptor.encrypt(x,L),5);case 5:return Q.return(Q.yieldResult);case 3:S=_.mW(Q),_.qy(S),S_C=!0,D.nativeEncryptor=void 0;case 2:return Q.return(D.encryptorPolyfill.encrypt(x,L))}})};
KxW.prototype.decrypt=function(x,L){return this.encrypt(x,L)};
var QYd=function(x,L){this.JSC$12693_aesKey=x;this.subtleCrypto=L};
QYd.prototype.encrypt=function(x,L){var D=this,S;return _.I(function(Q){if(Q.nextAddress==1)return _.HH(Q,2),Q.yield(Oa2(D,x,L),4);if(Q.nextAddress!=2)return Q.return(Q.yieldResult);S=_.mW(Q);_.qy(S);S_C=!0;throw S;})};
var Oa2=function(x,L,D){var S,Q;return _.I(function(J){switch(J.nextAddress){case 1:if(x.cryptoKey){J.jumpTo(2);break}return J.yield(x.subtleCrypto.importKey("raw",x.JSC$12693_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:x.cryptoKey=J.yieldResult;case 2:return S={name:"AES-CTR",counter:D,length:128},J.yield(x.subtleCrypto.encrypt(S,x.cryptoKey,L),4);case 4:return Q=J.yieldResult,J.return(new Uint8Array(Q))}})},Jeh=function(x){this.JSC$12696_aesKey=x};
Jeh.prototype.encrypt=function(x,L){this.encryptor||(this.encryptor=new Lxh(this.JSC$12696_aesKey));for(var D=this.encryptor,S=0;S<4;S++)D.counter[S]=L[S*4]<<24|L[S*4+1]<<16|L[S*4+2]<<8|L[S*4+3];D.blockOffset=16;return this.encryptor.encrypt(x)};
Jeh.prototype.decrypt=function(x,L){return this.encrypt(x,L)};var ZaA={},fFf=ZA("yt-idb-pref-storage",{objectStores:(ZaA.prefs={addedAtVersion:1},ZaA),shared:!1,upgrade:function(x,L){L(1)&&oE(fK(x,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.xr=function(x){this.token=x};
_.xr.getInstance=function(){return _.I(function(x){return x.return(new Promise(function(L){_.OD().then(function(D){D?(_.xr.instance||(_.xr.instance=new _.xr(D)),L(_.xr.instance)):L(void 0)})}))})};
_.xr.prototype.get=function(x){var L=this,D,S,Q;return _.I(function(J){if(J.nextAddress==1)return J.yield(oKf(L.token),2);if(J.nextAddress!=3)return D=J.yieldResult,J.yield(D.get("prefs",x),3);S=J.yieldResult;if(!S)return J.return();Q=(0,_.y5)();return S.expirationTimestampMs<=Q?J.return():J.return(S.value)})};
_.xr.prototype.set=function(x,L,D){D=D===void 0?31536E3:D;var S=this,Q,J,Z;return _.I(function(y){if(y.nextAddress==1)return Q=(0,_.y5)(),J={key:x,value:L,expirationTimestampMs:Q+D*1E3},y.yield(oKf(S.token),2);Z=y.yieldResult;return y.yield(Z.put("prefs",J),0)})};
_.xr.prototype.remove=function(x){var L=this,D;return _.I(function(S){if(S.nextAddress==1)return S.yield(oKf(L.token),2);D=S.yieldResult;return S.yield(D.delete("prefs",x),0)})};var Lp={},yer=(Lp.INVALID_ENCODER_VERSION="Invalid encoder version",Lp.KEY_CREATION_FAILED="Failed to create encoder key",Lp.UNKNOWN_DECODE_ERROR="Failed to decode PES data",Lp.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",Lp.WRONG_DATA_TYPE="Encoder cannot process the data type",Lp),kN=function(x,L){L=L===void 0?{}:L;_.RZ.call(this,yer[x],Object.assign({},{name:"PESEncoderError",type:x},L));this.type=x;this.level="WARNING";Object.setPrototypeOf(this,kN.prototype)};
_.p(kN,_.RZ);var DJ=function(){};
DJ.prototype.encode=function(x,L){try{return this.encodeImpl(x,L)}catch(D){ca3(D,zB3)}};
DJ.prototype.decode=function(x,L){try{return this.decodeImpl(x,L)}catch(D){ca3(D,Xgh)}};
var IOR=function(x,L,D){var S;return _.I(function(Q){if(Q.nextAddress==1)return _.HH(Q,2),Q.yield(x.decodeAsyncImpl(L,D),4);if(Q.nextAddress!=2)return Q.return(Q.yieldResult);S=_.mW(Q);ca3(S,Xgh);_.Y2(Q)})};
DJ.prototype.decodeAsyncImpl=function(x,L){return Promise.resolve(this.decodeImpl(x,L))};var SP=function(x,L){this.aesEncryptor=x;this.aesEncryptorAsync=L};
_.p(SP,DJ);SP.prototype.encodeImpl=function(x,L){L=nKf(L);x=(new TextEncoder).encode(JSON.stringify(x));return this.aesEncryptor.encrypt(x,L)};
SP.prototype.decodeImpl=function(x,L){if(!(x instanceof Uint8Array))throw aFN(1);var D=new TextDecoder;L=nKf(L);x=this.aesEncryptor.decrypt(x,L);return JSON.parse(D.decode(x))};
SP.prototype.decodeAsyncImpl=function(x,L){var D=this,S,Q,J;return _.I(function(Z){if(Z.nextAddress==1){if(!(x instanceof Uint8Array))throw aFN(1);S=new TextDecoder;Q=nKf(L);return Z.yield(D.aesEncryptorAsync.decrypt(x,Q),2)}J=Z.yieldResult;return Z.return(JSON.parse(S.decode(J)))})};var tvG={accountLinkStatusEntity:LDC,booleanEntity:TI2,buttonEntity:uzG,captionTrack:QQr,channelHandle:Q2r,chipEntity:fJW,commerceAcquisitionClientPayloadEntity:fdB,commerceCartListEntity:osr,contextNoteFeedEntityPayload:VuB,contextNoteUserRatingEntityPayload:hQG,continuationTokenEntity:W9C,downloadQualityPickerEntity:F9W,downloadsPageRefreshTokenEntity:Thr,downloadsPageViewConfigurationEntity:azi,downloadStatusEntity:s_H,dismissState:orA,sfvAudioItemCurrentlyPlayingEntity:w5_,emojiFountainDataEntity:VQC,
emojiCustomizationSetEntity:vsQ,fakeChannel:R7W,fakePlaylist:GT_,fakePlaylistEntryCollection:CB_,fakeVideo:Uli,fakeVideoDescription:wxC,featuredProductsEntity:PZ2,flowStateEntity:cSH,iconBadgeEntity:adh,interstitialInteractionStateEntity:VHG,likeButtonAnimationEntity:z_2,liveChatPollStateEntity:b0G,dataFreshnessEntity:jk2,liveViewerLeaderboardChatEntryPointStateEntity:hei,liveViewerLeaderboardPointsEntity:Hvh,liveReactionsDataEntity:hT_,logoEntity:j4C,macroMarkerEntity:XuQ,mainDownloadsLibraryEntity:e_R,
mainDownloadsListEntity:R_d,mainPlaylistDownloadStateEntity:Chh,mainPlaylistEntity:qFh,mainPlaylistVideoEntity:A4G,mainVideoDownloadStateEntity:lzB,mainVideoEntity:i1r,markersEngagementPanelSyncEntity:c4W,markersVisibilityOverrideEntity:nER,musicAlbumReleaseDetail:YWi,musicAlbumReleaseDownloadMetadataEntity:gK2,musicAlbumRelease:bS_,musicAlbumReleaseUserDetail:FGG,musicArtistDetail:T1C,musicArtist:sfH,musicArtistUserDetail:eB2,musicDownloadsLibraryEntity:kdW,musicLibraryEdit:RBB,musicLibraryStatusEntity:GdC,
musicPlaylist:CZ2,musicPlaylistDownloadMetadataEntity:pgi,musicShare:UVi,musicTrackDetail:B1H,musicTrackDownloadMetadataEntity:mV_,musicTrack:wgd,musicTrackUserDetail:WGr,offlineOrchestrationActionWrapperEntity:JMH,offlineVideoPolicy:K1W,offlineVideoStreams:OvQ,offlineabilityEntity:UY2,orchestrationWebSamplingEntity:wuG,pageHeaderEntity:Of2,pdpStateEntity:zTQ,pinnedProductEntity:jfR,playbackData:Zv2,playerStateEntity:tdQ,quantityIncrementerEntity:XGW,refresh:yM_,saveToPlaylistListEntity:QOG,selectedChipIndexEntityPayload:xVr,
settingEntity:bpd,stringEntity:e7B,suggestedFeedbackChipStateEntity:LGh,transfer:IqQ,trendingOfferEntity:vKB,videoDownloadContextEntity:Ehd,videoOverviewAsyncDataEntity:HOA,videoPlaybackPositionEntity:pGh,votingEntity:EsC,ytMainChannelEntity:fzi,youchatPendingResponseEntity:DVh,ytMainDownloadedVideoEntity:Bh2,ytMainVideoEntity:oEr};var EAi,dM2,Ft,Ovb,Zvh,vAQ,hfi,VIQ,jYh;EAi=function(x,L){this.JSC$12715_wrapped=x;this.JSC$12715_encoderRegistry=L;this.changedKeys={}};
dM2=function(x,L){return MIG(x.JSC$12715_encoderRegistry,L.version).decode(L.data,L.key)};
_.P02=function(x,L,D){return x.JSC$12715_wrapped.objectStore("EntityStore").get(L).then(function(S){if(S){if(D&&S.entityType!==D)throw Error("Gf");return dM2(x,S)}})};
Ft=function(x,L,D){return D?(D=D.map(function(S){return _.P02(x,S,L)}),oZ.all(D)):x.JSC$12715_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(L)).then(function(S){return S.map(function(Q){return dM2(x,Q)})})};
_.K10=function(x,L,D){var S=B1f(L),Q=MIG(x.JSC$12715_encoderRegistry,1),J=Object.assign({},L);return x.JSC$12715_wrapped.objectStore("EntityStore").get(S).then(function(Z){if(Z){if(Z.entityType!==D)throw Error("Gf");J.entityMetadata||(Z=dM2(x,Z),J.entityMetadata=Z.entityMetadata)}}).then(function(){var Z={key:S,
entityType:D,data:Q.encode(J,S),version:1};return oZ.all([x.JSC$12715_wrapped.objectStore("EntityStore").put(Z),jYh(x,J,D)])}).then(function(){vAQ(x,S,D);
return S})};
Ovb=function(x,L){var D=_.va(L).entityType;return oZ.all([x.JSC$12715_wrapped.objectStore("EntityStore").delete(L),VIQ(x,L)]).then(function(){vAQ(x,L,D)})};
Zvh=function(x,L,D,S){var Q=MIG(x.JSC$12715_encoderRegistry,1);return _.P02(x,L,S).then(function(J){if(J){J=mVc(J,D);var Z={key:L,entityType:S,data:Q.encode(J,L),version:1};return oZ.all([x.JSC$12715_wrapped.objectStore("EntityStore").put(Z),jYh(x,J,S)])}}).then(function(){vAQ(x,L,S);
return L})};
vAQ=function(x,L,D){var S=x.changedKeys[D];S||(S=new Set,x.changedKeys[D]=S);S.add(L)};
hfi=function(x,L,D){var S=B1f(L);D=xJN(D);if(!D)return oZ.resolve([]);D=new D(L);x=x.JSC$12715_wrapped.objectStore("EntityAssociationStore");L=[];D=_.O(D.getAssociations());for(var Q=D.next();!Q.done;Q=D.next())L.push(x.put({parentEntityKey:S,childEntityKey:Q.value}));return oZ.all(L).then(function(J){return J.map(function(Z){return Z[1]})})};
VIQ=function(x,L){return x.JSC$12715_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(L))};
jYh=function(x,L,D){var S=B1f(L);return VIQ(x,S).then(function(){return hfi(x,L,D)})};var HaG=function(){};
_.p(HaG,DJ);HaG.prototype.encodeImpl=function(x){return x};
HaG.prototype.decodeImpl=function(x){if(x instanceof Uint8Array)throw aFN(0);return x};var S60=function(){this.cacheMap={};this.cacheMap[0]=new HaG;if(!_.u("aes_pes_encoder_killswitch")){var x=this.cacheMap;try{var L=_.TU();var D=nKf(L);var S=new SP(new Jeh(D),new KxW(D))}catch(Q){throw x=Q instanceof Error?new kN("KEY_CREATION_FAILED",{originalMessage:Q.message}):new kN("KEY_CREATION_FAILED"),_.BI(x),x;}x[1]=S}},MIG=function(x,L){L=L===void 0?0:L;
x=x.cacheMap[L];if(!x)throw L=new kN("INVALID_ENCODER_VERSION",{encoderVersion:L}),_.BI(L),L;return x};var mH=function(x,L){_.Te.call(this);this.token=x;this.JSC$12729_encoderRegistry=L;this.observers=[];x=new _.Qb.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.TU());x.onmessage=this.handleMessage.bind(this);this.channel=x};
_.p(mH,_.Te);_.YN=function(x,L,D){var S,Q,J,Z;return _.I(function(y){if(y.nextAddress==1)return y.yield(iSG(x.token),2);if(y.nextAddress!=3)return S=y.yieldResult,y.yield(_.LK(S,["EntityStore","EntityAssociationStore"],L,function(E){Q=new EAi(E,x.JSC$12729_encoderRegistry);return D(Q)}),3);
J=y.yieldResult;Q&&(Z=Q.changedKeys,Object.keys(Z).length>0&&(x.channel.postMessage(Z),uJA(x,Z)));return y.return(J)})};
mH.prototype.observe=function(x){var L=this;this.observers.push(x);return function(){var D=L.observers.indexOf(x);D>=0&&L.observers.splice(D,1)}};
var $xh=function(x){var L;return _.I(function(D){if(D.nextAddress==1)return D.yield(_.YN(x,{mode:"readonly",enableRetries:!0},function(S){return S.JSC$12715_wrapped.objectStore("EntityStore").getAll()}),2);
L=D.yieldResult;return D.return(Promise.all(L.filter(function(S){return!!S}).map(function(S){var Q,J;
return _.I(function(Z){if(Z.nextAddress==1){Q=S.key;J=S.entityType;var y=Z.yield;var E=IOR(MIG(x.JSC$12729_encoderRegistry,S.version),S.data,S.key);return y.call(Z,E,2)}return Z.return({key:Q,entityType:J,data:Z.yieldResult})})})))})};
mH.prototype.handleMessage=function(x){uJA(this,x.data)};
var uJA=function(x,L){x=_.O(x.observers);for(var D=x.next();!D.done;D=x.next())D=D.value,D(L)};
mH.prototype.disposeInternal=function(){this.channel.close()};
var L1N;var QI,kWh,F1w;QI={};_.gAh=(QI.mainVideoEntity="mainVideoEntityActionMetadata",QI.mainPlaylistEntity="mainPlaylistEntityActionMetadata",QI.musicTrack="musicTrackEntityActionMetadata",QI.musicPlaylist="musicPlaylistEntityActionMetadata",QI);kWh=new _.vx("DOWNLOADS_ENTITY_TYPE_MAP");_.U4=_.Ha("","downloadsPageViewConfigurationEntity");F1w=_.Ha("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.Opf=_.Ha("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.Ha("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.Ha("SMART_DOWNLOADS_ENABLED","settingEntity");_.Ha("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var dJ0=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var urb=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];_.pS_={isLeaderTab:!0};var zes={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var JY=window,zD=JY.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US",aJw=JY.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||Xt,xPf=JY.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||uS,PcA=JY.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||djA,EO2=JY.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||bIW,WZO=JY.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||RZ2;var or0;x8({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 dPs=Llf(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(x){return x}}}),VxN=Llf(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(x){return x}}}),Jzn=new Map;var jU0=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],IiN;var mMr=function(x){return _.MU({type:"SET_EPHEMERAL_ACTION",payload:x})};_.ba_={ephemeralAction:null};var Y_A=function(x){return _.MU({type:"SET_SHARED_PERSISTENT_PANEL_VISIBLE",payload:x})};_.Fxh={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:"",persistentPanelVisible:!1};var VQ4={sharedUi:function(x,L){x=x===void 0?_.Fxh:x;switch(L.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},x,{animatedThumbnailEnabled:L.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},x,{inlinePreviewEnabled:L.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},x,{currentPageType:L.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},x,{currentPageSubType:L.payload});case "SET_SHARED_PERSISTENT_PANEL_VISIBLE":return Object.assign({},
x,{persistentPanelVisible:L.payload});default:return x}},
a11y:k7({ephemeralAction:function(x,L){x=x===void 0?_.ba_.ephemeralAction:x;switch(L.type){case "SET_EPHEMERAL_ACTION":return L.payload;default:return x}}}),
entities:qW0};_.gPs={playlistId:"",inviteLinkURL:""};_.sYW={continuationCommand:{}};var yTf=k7({continuationCommand:function(x,L){x=x===void 0?_.sYW.continuationCommand:x;switch(L.type){case "SET_CONTINUATION_COMMAND":return L.payload.continuationCommand;default:return x}}});_.p9s={currentFormId:"",commandsMap:{}};var Idf=k7({isLeaderTab:function(x,L){x=x===void 0?_.pS_.isLeaderTab:x;switch(L.type){case "SET_IS_LEADER_TAB":var D,S;return(S=L==null?void 0:(D=L.payload)==null?void 0:D.isLeaderTab)!=null?S:x;default:return x}}});var efr;_.TWH=function(x){return _.MU({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:x}})};
efr=function(x){return _.MU({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:x}})};_.Kp={isDesktopSmallWidth:!1,isShortsActive:!1,isWatchWhileMode:!1,playerState:-1,isFullscreen:!1,isSmallScreenSqueezeback:!1,isPlaybackStarted:!1,isShortsPipActive:!1};var vsb=k7({isDesktopSmallWidth:function(x,L){x=x===void 0?_.Kp.isDesktopSmallWidth:x;switch(L.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return L.payload.isDesktopSmallWidth;default:return x}},
isShortsActive:function(x,L){x=x===void 0?_.Kp.isShortsActive:x;switch(L.type){case "SET_IS_SHORTS_ACTIVE":return L.payload.isShortsActive;default:return x}},
isWatchWhileMode:function(x,L){x=x===void 0?_.Kp.isWatchWhileMode:x;switch(L.type){case "SET_IS_WATCH_WHILE_MODE":return L.payload.isWatchWhileMode;default:return x}},
playerState:function(x,L){x=x===void 0?_.Kp.playerState:x;switch(L.type){case "SET_PLAYER_STATE":return L.payload.playerState;default:return x}},
isFullscreen:function(x,L){x=x===void 0?_.Kp.isFullscreen:x;switch(L.type){case "SET_IS_FULLSCREEN":return L.payload.isFullscreen;default:return x}},
isSmallScreenSqueezeback:function(x,L){x=x===void 0?_.Kp.isSmallScreenSqueezeback:x;switch(L.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return L.payload.isSmallScreenSqueezeback;default:return x}},
isShortsPipActive:function(x,L){x=x===void 0?_.Kp.isShortsPipActive:x;switch(L.type){case "SET_IS_SHORTS_PIP_ACTIVE":return L.payload.isShortsPipActive;default:return x}},
isPlaybackStarted:function(x,L){x=x===void 0?_.Kp.isPlaybackStarted:x;switch(L.type){case "SET_IS_PLAYBACK_STARTED":return L.payload.isPlaybackStarted;default:return x}}});_.bJb={currentMode:"canvas-hidden"};var Hfs=function(){return function(x){return function(L){var D=x(L);_.dg(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[L],!0);return D}}};var Rfi,Rth;Rfi=new _.Hq;_.d4=new _.vx("WATCH_PLAYER_PROMISE_TOKEN");_.GWB=new _.Hq;_.C0G=new _.vx("SHORTS_PLAYER_PROMISE_TOKEN");Rth=new _.vx("GET_SHORTS_PLAYER_FUNCTION_TOKEN");var uzs=function(){return function(x){return function(L){L.type==="ENTITY_LOADED"&&_.yY().resolve(_.d4).then(function(D){var S;(S=D.dispatchReduxAction)==null||S.call(D,L)});
return x(L)}}};_.lOd={additionalContext:"",impersonatedChannelUrl:"",selectedVideoIds:{}};var Es4=k7({additionalContext:function(x,L){x=x===void 0?_.lOd.additionalContext:x;switch(L.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var D;return(D=L.payload)!=null?D:"";default:return x}},
impersonatedChannelUrl:function(x,L){x=x===void 0?_.lOd.impersonatedChannelUrl:x;switch(L.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var D;return(D=L.payload)!=null?D:"";default:return x}},
selectedVideoIds:function(x,L){x=x===void 0?_.lOd.selectedVideoIds:x;switch(L.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var D={};return Object.assign({},x,(D[L.payload]=!0,D));case "VIDEO_UNSELECTED":return L=L.payload,x=Object.assign({},x),delete x[L],x;default:return x}}});_.UMR={parentClickTrackingParams:""};var MQw=k7({parentClickTrackingParams:function(x,L){x=x===void 0?_.UMR.parentClickTrackingParams:x;switch(L.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return L.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return x}}});var wSW=function(x){return _.MU({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:x})};_.BWQ={stepStates:{}};var dKN=k7({stepStates:function(x,L){x=x===void 0?_.BWQ.stepStates:x;switch(L.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var D=x,S=L.payload,Q,J,Z;x={};L={selectionStates:Object.assign({},(Z=(Q=D[S.stepId])==null?void 0:Q.selectionStates)!=null?Z:{},(x[S.token]={isSelected:S.isSelected},x)),userQuery:(J=D[S.stepId])==null?void 0:J.userQuery};Q={};return Object.assign({},D,(Q[S.stepId]=L,Q));case "TALK_TO_RECS_UPDATE_USER_QUERY":return Q=x,J=L.payload,
Z={selectionStates:Object.assign({},(S=(D=Q[J.stepId])==null?void 0:D.selectionStates)!=null?S:{}),userQuery:{userQuery:J.userQuery,token:J.userQueryToken}},D={},Object.assign({},Q,(D[J.stepId]=Z,D));default:return x}}});var Wx2,q_H,$MB;Wx2=function(x){return _.MU({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:x})};
q_H=function(x){return _.MU({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:x})};
_.Gn=function(x){return _.MU({type:"SET_CURRENT_PAGE_TYPE",payload:x})};
_.Ae2=function(x){return _.MU({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:x})};
$MB=function(x){return _.MU({type:"SET_CHIP_BAR_IS_STICKY",payload:x})};_.Fls={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"};_.re_=function(x){return _.MU({type:"SET_PLAYER_STATE",payload:{playerState:x}})};_.Oj={isWatchActive:!1,isLearningJourneyActive:!1,isTheaterMode:Ts3(),isWatchFullscreen:!1,isWatchNarrowWidth:!1,isWatchRetroMode:!1,isLiveChatCollapsed:!1,openEngagementPanels:[],playerState:-1,watchScrollTop:0,watchWindowSize:{width:0,height:0}};var PHb=k7({isTheaterMode:function(x,L){x=x===void 0?Ts3():x;switch(L.type){case "SET_IS_THEATER_MODE":return L.payload.isTheaterMode;default:return x}},
isWatchActive:function(x,L){x=x===void 0?_.Oj.isWatchActive:x;switch(L.type){case "SET_IS_WATCH_ACTIVE":return L.payload.isWatchActive;default:return x}},
isLearningJourneyActive:function(x,L){x=x===void 0?_.Oj.isLearningJourneyActive:x;switch(L.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return L.payload.isLearningJourneyActive;default:return x}},
isWatchFullscreen:function(x,L){x=x===void 0?_.Oj.isWatchFullscreen:x;switch(L.type){case "SET_IS_WATCH_FULLSCREEN":return L.payload.isWatchFullscreen;default:return x}},
isWatchNarrowWidth:function(x,L){x=x===void 0?_.Oj.isWatchNarrowWidth:x;switch(L.type){case "SET_IS_WATCH_NARROW_WIDTH":return L.payload.isWatchNarrowWidth;default:return x}},
isWatchRetroMode:function(x,L){x=x===void 0?_.Oj.isWatchRetroMode:x;switch(L.type){case "SET_IS_WATCH_RETRO_MODE":return L.payload.isWatchRetroMode;default:return x}},
isLiveChatCollapsed:function(x,L){x=x===void 0?_.Oj.isLiveChatCollapsed:x;switch(L.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return L.payload.isLiveChatCollapsed;default:return x}},
openEngagementPanels:function(x,L){x=x===void 0?_.Oj.openEngagementPanels:x;var D=[].concat(_.lP(x));switch(L.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return D.push(L.payload.panelToAdd),D;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return D.splice(D.indexOf(L.payload.panelToRemove),1),D;default:return x}},
playerState:function(x,L){x=x===void 0?_.Oj.playerState:x;switch(L.type){case "SET_PLAYER_STATE":return L.payload.playerState;default:return x}},
watchScrollTop:function(x,L){x=x===void 0?_.Oj.watchScrollTop:x;switch(L.type){case "SET_WATCH_SCROLL_TOP":return L.payload.watchScrollTop;default:return x}},
watchWindowSize:function(x,L){x=x===void 0?_.Oj.watchWindowSize:x;switch(L.type){case "SET_WATCH_WINDOW_SIZE":return L.payload.watchWindowSize;default:return x}}});_.NW2={surveyFeedbackData:{feedbackTokens:[]}};var jkh=k7({surveyFeedbackData:function(x,L){x=x===void 0?_.NW2.surveyFeedbackData:x;switch(L.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return L.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},x,L.payload);default:return x}}});_.eYf={};var kMO=void 0;_.u("web_enable_redux_store_on_demand")||(kMO=gsc());var iaA=function(x,L,D){var S=this;this.listId=x;this.JSC$12872_updateCallback=L;this.isOfflineVideoCallback=D;_.Jd().subscribe(function(){S.handleUpdate()})};
iaA.prototype.getPlaylistData=function(){var x=_.Jd().getState().entities;if(this.listId&&this.listId!=="PPSV"){var L=Bec(x,this.listId,!0),D=_.Ha(this.listId,"mainPlaylistEntity"),S,Q;x=x==null?void 0:(S=x.mainPlaylistEntity)==null?void 0:(Q=S[D])==null?void 0:Q.title;return pGp(L,x,this.listId)}L=_.gh4(dIs(x));x=_.gh4(_.wD(x));x=L.concat(x);return pGp(x)};
iaA.prototype.getPlaylistId=function(){return this.listId};
iaA.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$12872_updateCallback(this.listId,this.getPlaylistData(),{})};var ZJ=function(x,L,D,S){S=S===void 0?[]:S;this.JSC$12875_playlistNetworkManager=x;this.listId=L;this.JSC$12875_updateCallback=D;this.videoIds=S;this.pendingUpdates=[];this.currentIndex=0};
ZJ.prototype.JSC$12875_setCurrentIndex=function(x){this.currentIndex=x};
ZJ.prototype.setListId=function(x){this.listId=x};
var fOH=function(x,L){x.currentCreateRequest&&x.currentCreateRequest.cancel(L);x.currentUpdateRequest&&x.currentUpdateRequest.cancel(L);x.currentRefreshRequest&&x.currentRefreshRequest.cancel(L)};
ZJ.prototype.delete=function(){fOH(this,"PROXY DELETED")};
ZJ.prototype.addVideos=function(x,L,D){var S=this;D!==void 0?this.videoIds.splice.apply(this.videoIds,[D,0].concat(_.lP(x))):this.videoIds.push.apply(this.videoIds,_.lP(x));this.listId||this.currentCreateRequest?(x.forEach(function(Q,J){Q={addedVideoId:Q,action:"ACTION_ADD_VIDEO"};D&&(Q.addedVideoPosition=D+J);S.pendingUpdates.push(Q)}),yI(this)):oA2(this,L.onCreateListCommand)};
var aOh=function(x,L,D,S,Q){Wc0(x.videoIds,L,D);L>x.currentIndex&&D<=x.currentIndex?x.JSC$12875_setCurrentIndex(x.currentIndex+1):L===x.currentIndex?x.JSC$12875_setCurrentIndex(D):L<x.currentIndex&&D>=x.currentIndex&&x.JSC$12875_setCurrentIndex(x.currentIndex-1);x.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:S,movedSetVideoIdPredecessor:Q});yI(x)},oA2=function(x,L){fOH(x,"OBSOLETE");
x.currentCreateRequest=zfr(x.JSC$12875_playlistNetworkManager,L,x.videoIds);_.$x(x.currentCreateRequest,function(){x.currentCreateRequest=void 0}).then(function(D){x.setListId(D.playlistId);
x.pendingUpdates.length>0?yI(x):XS2(x)})},yI=function(x){if(x.pendingUpdates.length!==0&&(x.currentRefreshRequest&&x.currentRefreshRequest.cancel("OBSOLETE"),!x.currentUpdateRequest&&!x.currentCreateRequest)){var L=x.pendingUpdates.splice(0,x.pendingUpdates.length);
x.currentUpdateRequest=x.JSC$12875_playlistNetworkManager.updatePlaylist(x.listId,L);_.$x(x.currentUpdateRequest,function(){x.currentUpdateRequest=void 0}).then(function(){x.pendingUpdates.length>0?yI(x):XS2(x)}).thenCatch(function(){x.pendingUpdates.unshift.apply(x.pendingUpdates,_.lP(L))})}},XS2=function(x){x.currentRefreshRequest=_.ceB(x.JSC$12875_playlistNetworkManager,x.listId,x.currentIndex,x.videoIds[x.currentIndex]);
_.$x(x.currentRefreshRequest,function(){x.currentRefreshRequest=void 0}).then(function(L){x.JSC$12875_updateCallback(L.playlistId,L.playlistPanelRenderer,L.autoplayRenderer)})};
ZJ.prototype.size=function(){return this.videoIds.length};var nAG=function(x,L,D,S){S=S===void 0?[]:S;ZJ.call(this,x,L,D,S);this.JSC$12875_playlistNetworkManager=x;this.listId=L;this.JSC$12875_updateCallback=D;this.videoIds=S};
_.p(nAG,ZJ);_.IO=function(x,L,D,S,Q,J,Z){Q=Q===void 0?[]:Q;Z=Z===void 0?gG:Z;ZJ.call(this,x,L,D,Q);this.JSC$12875_playlistNetworkManager=x;this.listId=L;this.JSC$12875_updateCallback=D;this.onAuthChange=S;this.videoIds=Q;this.storage=J;this.cookieReader=Z;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.hD(_.WW,this.checkLoggedInStatusChange.bind(this),1E3)};
_.p(_.IO,ZJ);_.K=_.IO.prototype;_.K.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.hD(_.WW,this.checkLoggedInStatusChange.bind(this),1E3)};
_.K.JSC$12875_setCurrentIndex=function(x){ZJ.prototype.JSC$12875_setCurrentIndex.call(this,x);this.store()};
_.K.delete=function(){_.WW.cancelJob(this.queueSapisIdJob);ZJ.prototype.delete.call(this)};
_.K.setListId=function(x){ZJ.prototype.setListId.call(this,x);this.store()};
_.K.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var tI2=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],x0i=["playerResponse","videoDetails"],Lqi=["response","currentVideoEndpoint","watchEndpoint","videoId"],D0A=["response","currentVideoEndpoint","watchEndpoint","playlistId"],SM_=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],Q0_=["response","contents","twoColumnWatchNextResults","playlist","playlist"],JbG=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
KqA=["response","contents","twoColumnWatchNextResults"];var Ej={},skw=(Ej.WEB_UNPLUGGED="^unplugged/",Ej.WEB_UNPLUGGED_ONBOARDING="^unplugged/",Ej.WEB_UNPLUGGED_OPS="^unplugged/",Ej.WEB_UNPLUGGED_PUBLIC="^unplugged/",Ej.WEB_CREATOR="^creator/",Ej.WEB_KIDS="^kids/",Ej.WEB_EXPERIMENTS="^experiments/",Ej.WEB_MUSIC="^music/",Ej.WEB_REMIX="^music/",Ej.WEB_MUSIC_EMBEDDED_PLAYER="^music/",Ej.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",Ej);var dS3,zfr;dS3=function(x,L){this.networkManager=x;this.innertubeTransportService=L};
zfr=function(x,L,D){if(!_.g(L,_.MJ))return _.Bp(Error("Kf"));_.g(L,_.MJ).videoIds=D;D={create_playlist_title:_.p6("QUEUE",void 0,"Queue")};return YVc(_.tD(x.innertubeTransportService,L,D),mKO)};
_.ceB=function(x,L,D,S){L={videoId:S,playlistId:L,playlistIndex:D};D=_.KB(JAR);return YVc(_.MI(x.innertubeTransportService,L,D),Fw0)};
dS3.prototype.updatePlaylist=function(x,L){return YVc(_.tD(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:x,actions:L}}),bfs)};var Ozr=function(x){this.storage=x},Zzh;
Ozr.prototype.store=function(x,L){L=L===void 0?0:L;if(this.storage&&x.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",x),this.storage.set("TLPQindex",String(L)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(D){}};
Ozr.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
Ozr.prototype.getPlaylistId=function(){if(!this.storage)return null;var x=null;try{x=this.storage.get("TLPQplaylist")}catch(L){}return x};var GM3=["navigationEndpoint","watchEndpoint","videoId"],RTh=["nextButtonVideo","watchEndpoint","videoId"];_.NB=new _.vx("NETWORK_TOKEN");_.KX=new _.vx("PAGE_TOKEN");_.d6=new _.vx("PLAYLIST_TOKEN");var ybR;ybR=new _.vx("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.i1=new _.vx("INNERTUBE_TRANSPORT_TOKEN");var I1r,Py,MDQ,d0B,j0G,vpQ;I1r=new Set(["ci","cr","carml"]);Py=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$12922_parkedJobs=new Map;this.parkedProcessors=new Map};
_.jP=function(){Py.instance||(Py.instance=new Py);return Py.instance};
Py.prototype.onAny=function(x){return _.Epd(this,x,2)};
Py.prototype.parkOrScheduleJob=function(x,L,D,S,Q){_.vy(this,D)?_.RP().addJob(x,L,S):(Q&&(x=MDQ(x),d0B(this,x,L,D,Q)),Q=this.JSC$12922_parkedJobs.get(D),Q||(this.JSC$12922_parkedJobs.set(D,[]),Q=this.JSC$12922_parkedJobs.get(D)),Q.push({job:x,priority:L,delay:S}))};
Py.prototype.addListener=function(x,L,D){D&&(L=MDQ(L),d0B(this,L,0,x,D));D=this.parkedProcessors.get(x);D||(this.parkedProcessors.set(x,[]),D=this.parkedProcessors.get(x));D.push(L)};
Py.prototype.processSignal=function(x){if(!_.vy(this,x)){this.inProgressSignals.add(x);var L=this.JSC$12922_parkedJobs.get(x);if(L){L=_.O(L);for(var D=L.next();!D.done;D=L.next())D=D.value,_.RP().addJob(D.job,D.priority,D.delay);this.JSC$12922_parkedJobs.delete(x)}if(L=this.parkedProcessors.get(x)){L=_.O(L);for(D=L.next();!D.done;D=L.next())D=D.value,D();this.parkedProcessors.delete(x)}this.signals.push(x);this.inProgressSignals.delete(x)}};
_.vy=function(x,L){return I1r.has(L)||_.rO("IS_HOMEPAGE_COLD")||_.rO("IS_RESULTS_PAGE_COLD")||_.rO("IS_WATCH_PAGE_COLD")?x.signals.indexOf(L)>=0:!0};
MDQ=function(x){var L=!1;return function(){L||(L=!0,x())}};
d0B=function(x,L,D,S,Q){if(PgG.has(S))_.RP().addJob(L,D,Q);else{var J=x.compoundSignals.get(S);J&&_.RP().addJob(function(){_.vy(x,S)||(J.isTimeoutConditionSatisfied?_.RP().addJob(L,D):J.timeoutConditionObservers.push(function(){_.RP().addJob(L,D)}))},D,Q)}};
_.Epd=function(x,L,D){if(L.length>1){var S=[],Q=Object.create(null);L=_.O(L);for(var J=L.next();!J.done;J=L.next())J=J.value,Q[J]||(S.push(J),Q[J]=!0);L=S}if(L.length===1)return L[0];J=L;S="";Q=D===2?"|":"&";J.sort();J=_.O(J);for(var Z=J.next();!Z.done;Z=J.next())S+=Z.value+Q;if(!x.compoundSignals.get(S)){Q=0;J=[];Z=_.O(L);for(var y=Z.next();!y.done;y=Z.next())y=y.value,Q++,_.vy(x,y)||J.push(y);(D=D===2)&&Q>J.length||!D&&!J.length?x.signals.push(S):j0G(x,S,D,L,J)}return S};
j0G=function(x,L,D,S,Q){var J=Q.length,Z=function(){D||--J===0?x.processSignal(L):vpQ(x,L)};
Q=_.O(Q);for(var y=Q.next();!y.done;y=Q.next())x.addListener(y.value,Z);x.compoundSignals.set(L,{signals:S,isOnAny:D,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});vpQ(x,L)};
vpQ=function(x,L){if(!_.vy(x,L)){var D=x.compoundSignals.get(L);if(D&&!D.isTimeoutConditionSatisfied){for(var S=!1,Q=0,J=0,Z=_.O(D.signals),y=Z.next();!y.done;y=Z.next()){var E=y.value;y=!_.vy(x,E);PgG.has(E)?S=!0:(E=x.compoundSignals.get(E))?y&&!E.isTimeoutConditionSatisfied&&(J++,D.isInitialized||E.timeoutConditionObservers.push(function(){vpQ(x,L)})):y&&Q++}D.isInitialized=!0;
D.isOnAny?S&&(D.isTimeoutConditionSatisfied=!0):Q===0&&J===0&&(D.isTimeoutConditionSatisfied=!0);if(D.isTimeoutConditionSatisfied)for(D=_.O(D.timeoutConditionObservers),S=D.next();!S.done;S=D.next())S=S.value,S()}}};
Py.prototype.processSignal=Py.prototype.processSignal;Py.prototype.parkOrScheduleJob=Py.prototype.parkOrScheduleJob;Py.prototype.onAny=Py.prototype.onAny;_.KK("ytsignals.getInstance",_.jP);Py.prototype.onAny=Py.prototype.onAny;Py.prototype.parkOrScheduleJob=Py.prototype.parkOrScheduleJob;Py.prototype.processSignal=Py.prototype.processSignal;var PgG=new Set(["eop","eocs","dl","pcl"]);_.iy=new _.vx("MINIPLAYER_SERVICE");var VI,VDd,hiA;VI=function(x,L,D){var S=_.aR.getInstance();if(!Zzh){var Q=new WHc;var J=void 0,Z=_.$6("ID_TOKEN");Z&&Q.isAvailable()&&(J=new U2(Q,"yt-queue"+Z));Zzh=new Ozr(J)}Q=Zzh;J=_.jP();this.JSC$12929_actionRouter=S;this.pageManager=x;this.playlistManager=L;this.JSC$12929_playlistNetworkManager=D;this.storage=Q;this.signals=J;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.hY=function(){if(!VDd){var x=_.yY(),L=x.resolve(_.ZN(_.KX)),D=x.resolve(_.ZN(_.NB)),S=x.resolve(_.ZN(_.d6));x=x.resolve(_.i1);VDd=new VI(L,S,new dS3(D,x))}return VDd};
hiA=function(x,L,D){if(D){var S;if(((S=x.responsePlaylistData)==null?void 0:S.playlistId)!==D)return}x.responsePlaylistData&&(D=Wwp(L,x.responsePlaylistData),x.responsePlaylistData=(0,_.wk.unsafeClone)(x.responsePlaylistData),AT4(x.responsePlaylistData,D));D=x.temporaryItems.findIndex(function(Q){return Q.videoId===L});
D>-1&&x.temporaryItems.splice(D,1);_.Hy(x,_.uo(x,x.response?x.response.autoplayRenderer:void 0))};
_.Hzr=function(x,L){if(x.responsePlaylistData){var D=qV4(L,x.responsePlaylistData);AT4(x.responsePlaylistData,D);if(x.queueProxy){var S=x.queueProxy;D<0||(S.videoIds.splice(D,1),D<S.currentIndex&&S.JSC$12875_setCurrentIndex(S.currentIndex-1),S.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:L}),yI(S))}}_.Hy(x,_.uo(x,x.response?x.response.autoplayRenderer:void 0))};
VI.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.Hy(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
VI.prototype.setPlaylistData=function(x,L,D){this.temporaryItems=[];this.listId=x;this.responsePlaylistData=L;_.Hy(this,_.uo(this,D))};
var uGB=function(x){return(x==null?0:x.playlistId)?x.playlistId:"PPSV"},gpR=function(x){return x&&x.playlistId?x.playlistId==="PPSV"?!0:UJf(_.Jd().getState().entities,x.playlistId):!1};
VI.prototype.isPlayingOfflineVideo=function(){return this.response?gpR(this.response):!1};
VI.prototype.closeMiniplayer=function(x){var L=this.queueProxy&&this.queueProxy.size()<=1,D=_.yY().resolve(_.iy);if(!this.queueProxy||L)this.queueProxy&&this.clearQueue(),D.close(!0);else{D.pipController.getWindow()&&window.focus();L=this.responsePlaylistData;var S=this.temporaryItems.length+(L&&L.contents?L.contents.length:0);L=_.p6("QUEUE_CLEARED_UNPLURALIZED")||_.mm("QUEUE_CLEARED",S);L=_.yy(L);D=_.p6("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");S=_.p6("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.mm("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",S);var Q=_.p6("MINIPLAYER_CLOSE",void 0,"Close"),J=_.p6("CANCEL",void 0,"Cancel");_.tS(this.JSC$12929_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.Dv(D),dialogMessages:[_.Dv(S)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Dv(Q),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
L]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Dv(J)}}}}}}],x)}};
_.uo=function(x,L){var D={},S=x.response;D.autoplayRenderer=L;if(!x.responsePlaylistData&&!x.temporaryItems.length)return!S||!S.hasRelatedVideoData&&_.u("kevlar_prefetch_data_augments_network_data")||(D.playerData={rvs:S.relatedVideoArgs,endScreenRenderer:S.endScreenRenderer}),D;D.playerData={};if(x.index===void 0)return _.BI(Error("Mf")),D;D.panel=x.responsePlaylistData?(0,_.wk.unsafeClone)(x.responsePlaylistData):{titleText:_.Dv(_.p6("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
L=D.panel;if(L.contents)for(var Q=_.O(x.temporaryItems),J=Q.next();!J.done;J=Q.next())L.contents.push({playlistPanelVideoRenderer:J.value});x.queueProxy&&S&&S.playingVideo&&S.playingVideoId&&!BU0(S.playingVideoId,D.panel)&&(L=S.playingVideo,Q=D.panel,J=x.index,Q.contents&&Q.contents.splice(J===void 0?0:J,0,{playlistPanelVideoRenderer:L}));S&&S.playingVideoId&&(L=x.index,Q=D.panel,L=!Q.contents||L>=Q.contents.length?void 0:Q.contents[L].playlistPanelVideoRenderer,L&&L.videoId===S.playingVideoId||(L=
Wwp(S.playingVideoId,D.panel),x.index=L!==-1?L:x.index?x.index-1:0));L=wGp(x.index+1,D.panel);Q=void 0;x.index>0&&(Q=wGp(x.index-1,D.panel));if(Q||L)D.autoplayRenderer=CHh(L,Q,D.autoplayRenderer);!L&&(S==null?0:S.relatedVideoArgs)&&(D.playerData.rvs=S.relatedVideoArgs);S=S?S.playlistIndexOffset:0;x.queueProxy?NU0(D.panel,x.index,S,UKs,!0,!0,!0):NU0(D.panel,x.index,S);D.playerData.playlistPanelRenderer=D.panel;return D};
VI.prototype.openToast=function(x){_.yY().resolve(_.iy).openToast(x,_.p6("ADDED_TO_QUEUE",void 0,"Added to queue"))};
VI.prototype.isMiniplayerActive=function(){return _.yY().resolve(_.iy).isMiniplayerActive()};
_.Hy=function(x,L){x.playlistManager.setAutoplayRenderer(L.autoplayRenderer||null);x.playlistManager.setPlaylistData(L.panel||null);L.playerData&&x.playlistManager.setPlayerPlaybackControlData(L.playerData)};var fdN="#";var kfR={},pT2={},m0d={},bz2={},YMG={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:(kfR.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",kfR),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:(pT2.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",pT2),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:(m0d.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",m0d),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:(bz2.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",bz2),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 sFO=[{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:YMG},{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:YMG}}];var h8O;_.hd=[[["OWtpbmQjd3FjdTlmdHQwdG0=","anZhbHVlIzQwb204NDhkMXg="],"U1RBUlQjOXM2a2VkMzluendnQURfUExBQ0VNRU5UX0tJTkRf"]];
h8O=[[["aW1hcnkjcWc4bWs2M3J0eTUwcHI=",null,null],[null,["ZGVyZXIjbWJlaTZ3M2ZnNGpueXRkLXR3by1jb2x1bW4tYnJvd3NlLXJlc3VsdHMtcmVu","c2NvcGUjNThrZDhnaWozcWM4c3R5bGUt"],null],["YWQtYWQjcXQzNXowOXIwbWcybWFzdGhl",["ZGVyZXIjamkzcDkyaTNvemM4eXRkLXJpY2gtZ3JpZC1yZW4="],null],[null,["ZGVyZXIjMzQ4Y3h4MmYzN3o5eXRkLXJpY2gtZ3JpZC1yZW4=","c2NvcGUjc3Y3Zmlpc3FjZHltc3R5bGUt"],null],[null,["ZGVyZXIjdXkxenJ4NzBsNnlxeXRkLWJhbm5lci1wcm9tby1yZW4=","c2NvcGUjbDVmdHV3dWZhMzgxc3R5bGUt"],null],[null,["ZGVyZXIjamdtbm8ycm92cDY4eXRkLWFkLXNsb3QtcmVu"],
null]],[["ci1hZHMjOXcyenN4cTZmaDZ6cGxheWU=",null,null]]];_.Vy=["YmFja3MjNTNnY25wb2xjZXdtZ2xvYmFsQ2FsbA==","ZWN0ZWQjcjRvZnlqbGFwN2hnb25BYm5vcm1hbGl0eURldA==","ZFNraXAjN3pwZXJpYXA1enFhb25B","cG9uc2UjZ216OTlhN3hrbmdzcmF3X3BsYXllcl9yZXM=","U2xvdHMjYXQ5NnJvc29lOWF4YWQ="];_.g6="YmFja3MjNTNnY25wb2xjZXdtZ2xvYmFsQ2FsbA== ZWN0ZWQjcjRvZnlqbGFwN2hnb25BYm5vcm1hbGl0eURldA== ZFNraXAjN3pwZXJpYXA1enFhb25B cG9uc2UjZ216OTlhN3hrbmdzcmF3X3BsYXllcl9yZXM= cHNfa3MjaGNraDRlYW13YTEzd2ViX3BsYXlsaXN0X3F1ZXVlX211bHRpcGxlX3NraQ== c2FfZWYjaHlwZTBkdGw4aTUzYWJf U2xvdHMjYXQ5NnJvc29lOWF4YWQ=".split(" ");var kr;kr=function(x,L,D){this.aYE=x;this.isAsync=L;this.fV1=D};
_.AQG=[new kr("b.f_",!1,0),new kr("j.s_",!1,2),new kr("r.s_",!1,4),new kr("e.h_",!1,6),new kr("i.s_",!0,8),new kr("s.t_",!1,10),new kr("p.h_",!1,12),new kr("s.i_",!1,14),new kr("f.i_",!1,16),new kr("a.b_",!1,18),new kr("a.o_",!1),new kr("g.o_",!1,22),new kr("p.i_",!1,24),new kr("p.m_",!1),new kr("n.k_",!0,20),new kr("i.f_",!1),new kr("a.s_",!0),new kr("m.c_",!1),new kr("n.h_",!1,26),new kr("o.p_",!1),new kr("m.p_",!0,28),new kr("o.a_",!1),new kr("d.p_",!1),new kr("e.i_",!1)].reduce(function(x,L){x[L.aYE]=
L;return x},{});var Fqd=function(){};
Fqd.prototype.flush=function(x,L){x=x===void 0?[]:x;L=L===void 0?!1:L;if(_.u("enable_client_streamz_web")){x=_.O(x);for(var D=x.next();!D.done;D=x.next())D=FWC(D.value),this.rootSpec&&_.mR(D,2,this.rootSpec),D={serializedIncrementBatch:_.Gg(D.JSC$9611_serializeBinary())},_.Uh("streamzIncremented",D,{sendIsolatedPayload:L})}};
var cTf=function(){};
_.p(cTf,Fqd);var s0A=function(x){var L=new u52;var D=new Vfr;D=_.ei(D,1,"botguard");x=_.ei(D,2,x);this.rootSpec=_.bQ(L,1,g2Q,x)};
_.p(s0A,Fqd);var Pq,TJB=new Map;var kzG,tQG,ZOp,DXf,JQp,vjw,mXN,PMb;kzG=2;tQG=2;ZOp=2;DXf=2;JQp=2;vjw=2;mXN=2;PMb=new gV2;var RiW,GfW;RiW=function(){this.ongoingFlowNonces=new Map};
_.gY=function(){GfW||(GfW=new RiW);return GfW};
_.u1=function(x,L,D){return{eventType:{flowEventNamespace:x,flowEventType:L},metadata:D,statusCode:void 0,csn:void 0,can:void 0}};
_.rQ0=function(x,L){var D=_.gY(),S=Cg2(D,L,!0);D.logFlowEvent(x,L,S,void 0)};
RiW.prototype.logFlowEvent=function(x,L,D,S){L={flowNonce:D||Cg2(this,L),flowType:L,flowEventType:x.eventType};x.metadata&&(L.flowMetadata=x.metadata);x.statusCode!==void 0&&(L.flowEventStatus=x.statusCode);x.csn&&(L.csn=x.csn);x.can&&(L.can=x.can);_.Uh("flowEvent",L,S)};
var Cg2=function(x,L,D){D=D===void 0?!1:D;var S=x.ongoingFlowNonces.get(L);if(!S||D)S=Bo(16),x.ongoingFlowNonces.set(L,S);return S};_.l1H=new uUh;var aQc={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 pp=function(x,L,D,S,Q,J,Z){D=D===void 0?!1:D;S=S===void 0?!1:S;J=J===void 0?_.hY():J;this.hasRun=!1;this.yfn=x;this.g3D=L;this.xgK=D;this.fromHistory=S;this.previousVideoId=Q;this.emU=J;this.tempData=Z;this.jpS=new _.kJh};
_.p(pp,Fr);pp.prototype.validate=function(x){return!(!x.data.playerResponse||x.data.page!=="watch"&&x.data.page!=="learning_journey_watch"&&x.data.page!=="shorts"||this.hasRun)};
pp.prototype.handle=function(x){var L=this,D=_.g(x.endpoint,_.L6),S=_.g(x.endpoint,_.TF);if(_.u("kevlar_continue_playback_without_player_response")&&(D==null?0:D.videoId)&&this.previousVideoId&&(D==null?void 0:D.videoId)===this.previousVideoId&&(D==null?0:D.continuePlayback)&&!this.fromHistory)this.yfn.resolve();else{var Q={};D?Q.watch_endpoint=D:S&&(Q.watch_endpoint=S,S.endTimeSeconds&&(Q.end=S.endTimeSeconds));x.data.page==="watch"?(x.data.filler||this.xgK||(_.rg("cfg"),_.aR.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(Q,U0C(this,x.endpoint)),_.u("enable_masthead_quartile_ping_fix")&&Object.assign(Q,wTG(this)),Object.assign(Q,void 0),x.data.forceExternalPlaylist&&(Q.external_list=!0)):x.data.page==="shorts"?_.aR.getInstance().triggerAction("yt-start-loading-shorts"):x.data.page==="learning_journey_watch"&&_.aR.getInstance().triggerAction("yt-start-loading-learning-journey");if(D=this.g3D()){try{D.loadVideoWithPlayerResponse(x.data.playerResponse,Q),D.getPlayerPromise().then(this.yfn.resolve)}catch(J){_.BI(J),
this.yfn.resolve()}this.hasRun=!0;D.getPlayerPromise().then(function(J){J.addEventListener("onAbnormalityDetected",function(){var Z=x.data.playerResponse,y=J.getVideoData().cpn;mXN=0;_.ei2=y;if(y=qG0(Z))L.jpS.increment("IN_PLAYER"),_.k8(5),_.u("ab_st_vid_ks")?J.pauseVideo(!0):J.stopVideo(),Z.playabilityStatus=Object.assign({},Z.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:y}}),Z.videoDetails=void 0,_.aR.getInstance().triggerOptionalAction("yt-updated-playability-status",
Z.playabilityStatus)})})}else _.qy(Error("Pf"))}};
var U0C=function(x,L){var D=_.g(L,_.L6);if(L&&D&&D.playlistId&&D.videoId&&(x=x.emU,x.queueProxy?(x=x.queueProxy,D=x.listId===D.playlistId?x.attributionData.get(D.videoId):void 0):D=void 0,D))return{queue_info:D}},wTG=function(x){var L;
if((L=x.tempData)==null?0:L.adpings)return{adpings:x.tempData.adpings}};var m$=function(x,L,D){this.hasRun=!1;this.mga=x;this.aOO=L;this.bPU=D};
_.p(m$,Fr);m$.prototype.validate=function(x){return!!_.wk.getValueByKeys.apply(null,[x.data].concat(_.lP(KqA)))};
m$.prototype.handle=function(x){var L=this;this.mga.promise.then(function(){var D=x.data;var S=_.wk.getValueByKeys.apply(null,[D].concat(_.lP(tI2))),Q=_.wk.getValueByKeys.apply(null,[D].concat(_.lP(Q0_))),J=_.wk.getValueByKeys.apply(null,[D].concat(_.lP(Lqi)));var Z=(Z=_.wk.getValueByKeys.apply(null,[D].concat(_.lP(x0i))))?{videoId:Z.videoId,thumbnail:Z.thumbnail,title:Z.title?_.Dv(Z.title):void 0,shortBylineText:Z.author?_.Dv(Z.author):void 0}:void 0;var y=void 0;_.u("web_get_playlist_id_from_current_endpoint_ks")||
(y=_.wk.getValueByKeys.apply(null,[D].concat(_.lP(D0A))));var E=_.wk.getValueByKeys.apply(null,[D].concat(_.lP(JbG))),P=_.wk.getValueByKeys.apply(null,[D].concat(_.lP(SM_))),v=!!E||!!P&&!!P.results&&P.results.length>0,V=0;Q&&Q.currentIndex&&Q.localCurrentIndex&&(V=Q.currentIndex-Q.localCurrentIndex);Q&&Q.playlistId&&(y=Q.playlistId);D={rawResponse:D,autoplayRenderer:S,hasRelatedVideoData:v,playingVideo:Z,playingVideoId:J,playlistPanelRenderer:Q,playlistId:y,playlistIndex:Q&&Q.currentIndex,relatedVideoArgs:E,
endScreenRenderer:P,playlistIndexOffset:V};a:{S=L.bPU;Q=L.aOO;S.response=D;if(gpR(D))S.downloadPlaylistProxy&&S.downloadPlaylistProxy.getPlaylistId()===uGB(D)||(S.downloadPlaylistProxy=new iaA(uGB(D),S.setPlaylistData.bind(S),S.isPlayingOfflineVideo.bind(S))),S.responsePlaylistData=S.downloadPlaylistProxy.getPlaylistData(),S.listId=uGB(D),S.index=0;else if(D.playlistPanelRenderer&&D.playlistId&&D.autoplayRenderer)D.playlistId.startsWith("TLPQ")?S.queueProxy?S.listId===D.playlistId?(S.index=D.playlistIndex,
S.responsePlaylistData=D.playlistPanelRenderer,S.queueProxy.JSC$12875_setCurrentIndex(S.index)):D.playingVideoId&&S.index!==void 0&&Q.clientParams.autoSaveToQueue&&(S.index+=1,S.queueProxy.JSC$12875_setCurrentIndex(S.index),S.queueProxy.addVideos([D.playingVideoId],{},S.index)):(S.queueProxy=new _.IO(S.JSC$12929_playlistNetworkManager,D.playlistId,S.setPlaylistData.bind(S),S.clearQueue.bind(S),_.$Kf(D.playlistPanelRenderer),S.storage),S.responsePlaylistData=D.playlistPanelRenderer,S.listId=D.playlistId,
S.index=D.playlistIndex):(S.index=D.playlistIndex,S.listId!==D.playlistId&&S.clearQueue(),S.responsePlaylistData=D.playlistPanelRenderer,S.listId=D.playlistId,S.playlistProxy=new nAG(S.JSC$12929_playlistNetworkManager,D.playlistId,S.setPlaylistData.bind(S),_.$Kf(D.playlistPanelRenderer)));else if(!S.queueProxy)S.responsePlaylistData=void 0;else if(D.playingVideoId&&Q.clientParams.autoSaveToQueue){if(S.index===void 0){_.BI(Error("Lf"));S.clearQueue();break a}S.queueProxy.videoIds.includes(D.playingVideoId)||
(S.index+=1,S.queueProxy.JSC$12875_setCurrentIndex(S.index),S.queueProxy.addVideos([D.playingVideoId],{},S.index))}_.Hy(S,_.uo(S,S.response.autoplayRenderer))}})};var BJ2=function(x,L){L=L===void 0?_.hY():L;re.call(this);this.eD.push(new m$(this.o0,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},L));this.eD.push(new pp(this.o0,x,!1,!1));_.u("web_response_commands_chunk_processor")&&this.eD.push(new NJ)};
_.p(BJ2,re);BJ2.prototype.processChunk=function(x){x&&x.data.player===void 0&&this.o0.resolve();re.prototype.processChunk.call(this,x)};var bo=function(x,L){x=x===void 0?{layer:0}:x;this.hasRun=!1;this.createScreenConfig=x;this.rqK=L};
_.p(bo,Fr);bo.prototype.validate=function(x){return!(this.hasRun||!x.endpoint)};
bo.prototype.handle=function(x){var L=_.sk(),D,S,Q=(S=_.g((D=x.endpoint)==null?void 0:D.commandMetadata,_.gg))==null?void 0:S.rootVe;this.rqK&&Q?_.we(L,Q,this.rqK,this.createScreenConfig):bDi(L,x.endpoint,this.createScreenConfig);this.hasRun=!0};var Yr=function(x,L){this.hasRun=!1;this.qSp=x;this.previousVideoId=L};
_.p(Yr,Fr);Yr.prototype.validate=function(x){return _.u("kevlar_continue_playback_without_player_response")&&(x=_.g(x.endpoint,_.L6),(x==null?0:x.videoId)&&this.previousVideoId&&(x==null?void 0:x.videoId)===this.previousVideoId&&(x==null?0:x.continuePlayback))?!1:this.qSp.gN8===0};
Yr.prototype.handle=function(x){_.aR.getInstance().triggerAction("yt-stop-old-player",x.data,!0)};var WqG=function(x){x=x===void 0?{layer:0}:x;re.call(this);this.eD.push(new Yr(this));this.eD.push(new bo(x));this.eD.push(new $h(x))};
_.p(WqG,re);var Fe=function(){Fr.apply(this,arguments)};
_.p(Fe,Fr);Fe.prototype.validate=function(x){return!!x.data.preconnect};
Fe.prototype.handle=function(x){_.$T("bc");x=_.O(x.data.preconnect);for(var L=x.next();!L.done;L=x.next())L=L.value,(new Image).src=L};var qMd=function(x,L,D,S,Q,J,Z){D=D===void 0?{layer:0}:D;J=J===void 0?_.hY():J;re.call(this);if(S)if(Q){Q=J;this.eD.push(new m$(this.o0,L,Q));this.eD.push(new Fe);var y,E;this.eD.push(new pp(this.o0,x,!1,!((y=L.clientParams)==null||!y.fromHistory),(E=L.clientParams)==null?void 0:E.previousVideoId,Q,L.tempData));var P;this.eD.push(new Yr(this,(P=L.clientParams)==null?void 0:P.previousVideoId));var v;(v=L.clientParams)!=null&&v.fromHistory||(D.layer||(D=Object.assign({},D,{layer:0})),this.eD.push(new bo(D,
Z)),this.eD.push(new $h(D)))}else this.eD.push(new m$(this.o0,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},J)),this.eD.push(new pp(this.o0,x,!1,!1));else this.eD.push(new Yr(this)),this.eD.push(new bo(D)),this.eD.push(new $h(D));_.u("web_response_commands_chunk_processor")&&S&&this.eD.push(new NJ)};
_.p(qMd,re);qMd.prototype.processChunk=function(x){x&&x.data.player===void 0&&this.o0.resolve();re.prototype.processChunk.call(this,x)};var Ab_=function(){this.hasRun=this.hasRun=!1};
_.p(Ab_,Fr);Ab_.prototype.validate=function(x){return!this.hasRun&&!(!x.data.csn||!x.data.rootVe)};
Ab_.prototype.handle=function(x){this.hasRun=!0;_.rr(x.data.csn,x.data.rootVe,3)};var $0B=function(x,L,D){D=D===void 0?{layer:0}:D;re.call(this);this.eD.push(new pp(this.o0,x));this.eD.push(new bo(D));this.eD.push(new $h(D))};
_.p($0B,re);var rbh=function(x,L,D,S,Q){D=D===void 0?{layer:0}:D;S=S===void 0?_.hY():S;re.call(this);var J=!!L&&!!L.clientParams&&!!L.clientParams.miniplayer;J&&this.eD.push(new Ab_);this.eD.push(new m$(this.o0,L,S));this.eD.push(new Fe);var Z,y;this.eD.push(new pp(this.o0,x,J,!((Z=L.clientParams)==null||!Z.fromHistory),(y=L.clientParams)==null?void 0:y.previousVideoId,S,L.tempData));var E;this.eD.push(new Yr(this,(E=L.clientParams)==null?void 0:E.previousVideoId));var P;(P=L.clientParams)!=null&&P.fromHistory||
(D.layer||(D=Object.assign({},D,{layer:J?3:0})),this.eD.push(new bo(D,Q)),this.eD.push(new $h(D)));_.u("web_response_commands_chunk_processor")&&this.eD.push(new NJ)};
_.p(rbh,re);var sj,f1_;sj={};
_.NJr=(sj["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},sj["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},sj["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},sj["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},sj["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},sj["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},sj["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},sj);_.Ty=new _.Ng("yt-edu");_.iz_=function(){this.JSC$13027_eduDisplayedThisLoad_={}};
f1_=function(x){var L=_.iz_.getInstance();var D=_.dE("kevlar_tooltip_impression_cap");L=D&&parseInt(_.Ty.get(x+"-impression")||0,10)>=D||_.Ty.get(x+"-dismissed")?!1:(D=_.NJr[x])&&!L.JSC$13027_eduDisplayedThisLoad_[D.setKey||x]&&(D.titleText&&_.p6(D.titleText)||D.bodyText&&_.p6(D.bodyText))?!0:!1;if(!L)return null;L=_.NJr[x];if(!L)return null;D=L.bodyText?_.p6(L.bodyText):void 0;var S=L.titleText?_.p6(L.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:L.position,popup:{bubbleHintRenderer:{text:S?
_.Dv(S):void 0,detailsText:D?_.Dv(D):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Dv(_.p6("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:x}}]}}}}}}}},{eduImpressionAction:{key:x}}]};
_.y6(_.iz_);var NKs=!1;for(var opW="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),a1W=[],eP=6;eP>=1;eP--)a1W.push({columnCount:eP,query:eP==1?0:eP*2*107-4+32,className:"grid-"+eP+"-columns",width:eP*2*107+"px"});_.RO=function(x){this.actionRouter_=x=x===void 0?_.aR.getInstance():x;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.zii(this);this.persistentPanelVisible_=this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.zii=function(x){var L=x.documentWidth_-(x.miniGuideVisible_?72:0)-(x.guidePersistentAndVisible_?240:0)-(x.persistentPanelVisible_?400:0);return a1W.find(function(D){return L>D.query})};
_.y6(_.RO);var XTH=function(){var x=this;this.JSC$13039_keyboardInUse=!1;document.addEventListener("keydown",function(){x.onKeydown()});
document.addEventListener("mousedown",function(){x.JSC$13039_keyboardInUse=!1})},cbC;
XTH.prototype.isKeyBoardInUse=function(){return this.JSC$13039_keyboardInUse};
XTH.prototype.onKeydown=function(){this.JSC$13039_keyboardInUse=!0};var npH,lo;_.Gy=new _.Ng("yt-mentions");_.Cp=function(){};
npH=function(x,L){return lo(L,"drag-to-reorder-edu-displayed")};
lo=function(x,L,D,S,Q,J){D=D===void 0?"OPEN_POPUP_POSITION_TOP":D;if(L){if(_.Gy.get(L))return;_.Gy.set(L,!0,S)}if(Q&&J!==void 0){L=Number(_.Gy.get(Q)||0);if(L>=J)return;_.Gy.set(Q,L+1)}return[{openPopupAction:{popupType:"HINT",position:D,popup:{bubbleHintRenderer:{detailsText:x,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.y6(_.Cp);var tDd,xAr,L4C;tDd=function(x,L,D,S){this.JSC$13049_taskManager_=x;this.onFulfilled_=typeof L==="function"?L:null;this.onRejected_=typeof D==="function"?D:null;this.JSC$13049_context_=S};
xAr=function(x,L){x.onFulfilled_&&_.GR(x.JSC$13049_taskManager_,function(){x.onFulfilled_.call(x.JSC$13049_context_,L)})};
L4C=function(x,L){x.onRejected_&&_.GR(x.JSC$13049_taskManager_,function(){x.onRejected_.call(x.JSC$13049_context_,L)})};
_.Uj=function(x){this.JSC$13052_taskManager_=x;this.callbacks_=[]};
_.Uj.prototype.then=function(x,L,D){this.callbacks_.push(new tDd(this.JSC$13052_taskManager_,x,L,D));return this};
_.Uj.prototype.onSuccess=function(x){this.callbacks_.forEach(function(L){xAr(L,x)})};
_.Uj.prototype.onFailure=function(x){this.callbacks_.forEach(function(L){L4C(L,x)})};
_.Uj.prototype.cancel=function(){this.callbacks_.length=0};
e92(_.Uj);_.XVp=null;_.Rl=new _.vx("ACTIVITY_TOKEN");var w6=function(x,L){this.serviceId=new ehh(x,L)};
w6.prototype.toString=function(){return this.serviceId.toString()};var DAh=function(){this.internalMap={}};
_.K=DAh.prototype;_.K.contains=function(x){return Object.prototype.hasOwnProperty.call(this.internalMap,x)};
_.K.get=function(x){if(this.contains(x))return this.internalMap[x]};
_.K.set=function(x,L){this.internalMap[x]=L};
_.K.getKeys=function(){return Object.keys(this.internalMap)};
_.K.remove=function(x){delete this.internalMap[x]};var By=function(){this.mappings=new DAh;this.errorCallbacks=new Set};
By.prototype.getModuleId=function(x){return x.serviceId.getModuleId()};
By.prototype.get=function(x){var L=this.mappings.get(x.toString());return SdA(this,L,x)};
By.prototype.getMultipleAsync=function(){var x=_.Ne.apply(0,arguments),L=this,D=x.map(function(E){return L.getModuleId(E)}),S=x.map(function(E){return L.mappings.get(E.toString())}).filter(function(E){return E});
if(S.length===x.length)return _.V0(S.map(function(E,P){return SdA(L,E,x[P])}));
var Q=wb().loadMultiple(D);S=_.AR(D.map(function(E){return Q[E]}));
var J=document.hidden,Z=-1,y=_.dE("get_async_timeout_ms",-1);y>-1&&(Z=setTimeout(function(){_.qy(new _.RZ("Module timeout.",D,J,document.hidden))},y));
return _.$x(S.then(function(){return x.map(function(E){return SdA(L,L.mappings.get(E.toString()),E)})}).thenCatch(function(E){for(var P=_.O(L.errorCallbacks),v=P.next();!v.done;v=P.next())v=v.value,v(E);
throw E;}),function(){clearTimeout(Z)})};
By.prototype.registerService=function(x,L){this.mappings.set(x.toString(),{type:"mapping",value:L});return x};
var SdA=function(x,L,D){switch(L.type){case "mapping":return L.value;case "factory":return L=L.value(),x.mappings.set(D.toString(),{type:"mapping",value:L}),L;default:return _.Nh(L)}};
By.prototype.onLoadError=function(x){var L=this;this.errorCallbacks.add(x);return function(){L.errorCallbacks.delete(x)}};
_.Wy=new By;var LJO=/^[a-zA-Z0-9_\-]{11}$/;var DSf=_.Ct(function(){var x,L;return(L=(x=window).matchMedia)==null?void 0:L.call(x,"(prefers-reduced-motion: reduce)").matches});var Qgh=_.Ct(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 x=_.o1("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");x||(x=_.pw("VIDEO"),_.KK("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
x));return!!(x&&x.canPlayType&&x.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var ZEp=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var qI;qI=function(){this.tokenJars={};if(this.cookiesEnabled=_.s2()){var x=_.YQ.get("CONSISTENCY",void 0);x&&JfB(this,{encryptedTokenJarContents:x})}};
_.Ikf=function(){qI.instance||(qI.instance=new qI);return qI.instance};
qI.prototype.handleResponse=function(x,L){if(!L)throw Error("Vf");var D,S;L=((D=L.innerTubeRequest.context)==null?void 0:(S=D.request)==null?void 0:S.consistencyTokenJars)||[];var Q;(x=(Q=x.responseContext)==null?void 0:Q.consistencyTokenJar)&&this.replace(L,x)};
qI.prototype.replace=function(x,L){x=_.O(x);for(var D=x.next();!D.done;D=x.next())delete this.tokenJars[D.value.encryptedTokenJarContents];JfB(this,L)};
var JfB=function(x,L){if(L.encryptedTokenJarContents&&(x.tokenJars[L.encryptedTokenJarContents]=L,typeof L.expirationSeconds==="string")){var D=Number(L.expirationSeconds);setTimeout(function(){delete x.tokenJars[L.encryptedTokenJarContents]},D*1E3);
x.cookiesEnabled&&_.FD("CONSISTENCY",L.encryptedTokenJarContents,D,void 0,!0)}};var K4r,AY;K4r=window.location.hostname.split(".").slice(-2).join(".");_.Bq=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var x=_.$6("LOCATION_PLAYABILITY_TOKEN");_.$6("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=O52(this))&&(x=this.localStorage.get("yt-location-playability-token"));x&&(this.locationPlayabilityToken=x,this.mostRecentPosition=void 0)};
_.Bq.getInstance=function(){AY=_.o1("yt.clientLocationService.instance");AY||(AY=new _.Bq,_.KK("yt.clientLocationService.instance",AY));return AY};
_.Bq.prototype.setLocationOnInnerTubeContext=function(x){x.client||(x.client={});if(this.mostRecentPosition)x.client.locationInfo||(x.client.locationInfo={}),x.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),x.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),x.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),x.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)x.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.Bq.prototype.handleResponse=function(x){var L;x=(L=x.responseContext)==null?void 0:L.locationPlayabilityToken;x!==void 0&&(this.locationPlayabilityToken=x,this.mostRecentPosition=void 0,_.$6("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=O52(this))&&this.localStorage.set("yt-location-playability-token",x,15552E3):_.FD("YT_CL",JSON.stringify({loctok:x}),15552E3,K4r,!0))};
var O52=function(x){return x.localStorage===void 0?new _.Ng("yt-client-location"):x.localStorage};
_.Bq.prototype.clearLocationPlayabilityToken=function(x){x==="TVHTML5"?(this.localStorage=O52(this))&&this.localStorage.remove("yt-location-playability-token"):_.e$s("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.Bq.prototype.getCurrentPositionFromGeolocation=function(){var x=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Wf"));var L=!1,D=1E4;_.$6("INNERTUBE_CLIENT_NAME")==="MWEB"&&(L=!0,D=15E3);return new Promise(function(S,Q){navigator.geolocation.getCurrentPosition(function(J){x.mostRecentPosition=J;S(J)},function(J){Q(J)},{enableHighAccuracy:L,
maximumAge:0,timeout:D})})};
_.Bq.prototype.createUnpluggedLocationInfo=function(x){var L={};x=x.coords;if(x==null?0:x.latitude)L.latitudeE7=Math.floor(x.latitude*1E7);if(x==null?0:x.longitude)L.longitudeE7=Math.floor(x.longitude*1E7);if(x==null?0:x.accuracy)L.locationRadiusMeters=Math.round(x.accuracy);return L};
_.Bq.prototype.createLocationInfo=function(x){var L={};x=x.coords;if(x==null?0:x.latitude)L.latitudeE7=Math.floor(x.latitude*1E7);if(x==null?0:x.longitude)L.longitudeE7=Math.floor(x.longitude*1E7);return L};var Z5i=function(){};
_.K=Z5i.prototype;
_.K.JSC$13119_getRequest=function(x,L,D){L=L===void 0?{}:L;D=D===void 0?l5W:D;var S=L;if(this.isNavigationCommand()){var Q,J=(Q=_.g(x==null?void 0:x.commandMetadata,_.gg))==null?void 0:Q.url;S=_.E50(x.clickTrackingParams,!0,!1,J,this.JSC$13119_getClientScreen(S))}else S=_.E50(x.clickTrackingParams,!1,this.includeCsn);S={context:S};if(Q=this.getExtension(x))return this.JSC$13119_buildRequest(S,Q,L),Q=this.getApiUrl(x),J=Object.assign({},{command:x},this.getRequestConfig(x,L)),S={input:Q,requestShell:t3(Q),
innerTubeRequest:S,config:J},S.config.authStrategy?S.config.authStrategy.identity=D:S.config.authStrategy={identity:D},(x=this.JSC$13119_getRequestKey(x,L))&&!S.config.requestKey&&(S.config.requestKey=x),S;x=new _.RZ("Error: Failed to create Request from Command.",x);_.BI(x)};
_.K.getApiUrl=function(x){var L=_.KB(this.getApiPaths(x)),D;(x=(D=_.g(x.commandMetadata,_.gg))==null?void 0:D.apiUrl)&&(L=x);return Rj0(ejw(L))};
_.K.isNavigationCommand=function(){return!1};
_.K.JSC$13119_getClientScreen=function(){};
_.K.JSC$13119_getRequestKey=function(){};
_.K.getRequestConfig=function(){};
_.J3.Object.defineProperties(Z5i.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var $r=function(){};
_.p($r,Z5i);$r.prototype.JSC$13126_getStoreKey=function(){};
$r.prototype.JSC$13119_getRequestKey=function(x,L){L=L===void 0?{}:L;return this.JSC$13126_getStoreKey(x,L)};_.Wq={getLocalStorage:_.Ct(function(){try{var x=new BDb;var L=x.isAvailable()?x:null}catch(D){return null}return L?new _.Po(L):null}),
getSessionStorage:_.Ct(function(){var x=new WHc;return x.isAvailable()?new _.Po(x):null})};var yG=new _.vx("ENTITY_STATE_TOKEN"),r6=new _.vx("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var yf2=XMLHttpRequest.prototype.fetch,IIB=yf2&&yf2.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!Q5?!0:!1;var NI=function(x){this.JSC$13132_storeWithEntities=x};
_.p(NI,$r);_.K=NI.prototype;_.K.getApiPaths=function(){return FJR};
_.K.getExtension=function(x){return _.g(x,_.L6)||_.g(x,_.TF)||_.g(x,p5R)};
_.K.isNavigationCommand=function(){return!0};
_.K.JSC$13126_getStoreKey=function(x){if((_.u("kevlar_cache_on_ttl_player")||_.u("mweb_enable_shorts_innertube_player_prefetch")||_.u("mweb_use_new_history_manager")||_.u("web_shorts_prefetch_service_enabled"))&&(x=this.getExtension(x))&&x.videoId){var L={videoId:x.videoId};x.playlistId&&(L.playlistId=x.playlistId);x.playerParams&&(L.params=x.playerParams);return _.xT("player",L)}};
_.K.JSC$13119_getClientScreen=function(x){var L;return((L=x.contentPlaybackContext)==null?void 0:L.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.K.JSC$13119_buildRequest=function(x,L,D){if(_.u("enable_interstitial_entity_check")){var S=this.JSC$13132_storeWithEntities;if(L.videoId)for(var Q=_.O(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),J=Q.next();!J.done;J=Q.next()){J=J.value;var Z;var y=void 0,E=void 0,P=L.videoId,v=J;(Z=S)?(P=_.Ha(P+v,"interstitialInteractionStateEntity"),Z=(y=(E=_.u6(Z.getState().entities,"interstitialInteractionStateEntity",P))==null?void 0:E.primaryButtonClicked)!=null?y:!1):Z=!1;if(Z)switch(J){case "CONTENT_CHECK_REQUIRED":L.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":L.racyCheckOk=!0}}}L.videoId&&(x.videoId=L.videoId);L.playlistId&&(x.playlistId=L.playlistId);L.index!==void 0&&(x.playlistIndex=L.index+1);L.playerParams&&(x.params=L.playerParams);"startTimeSeconds"in L&&L.startTimeSeconds&&(_.u("enable_player_request_builder_start_time_floor")?x.startTimeSecs=Math.floor(L.startTimeSeconds):x.startTimeSecs=L.startTimeSeconds);D.contentPlaybackContext&&(x.playbackContext={contentPlaybackContext:D.contentPlaybackContext});D.prefetchPlaybackContext&&
(x.playbackContext=Object.assign({},x.playbackContext,{prefetchPlaybackContext:D.prefetchPlaybackContext}),x.context.request||(x.context.request={}),x.context.request.isPrefetch=!0);x.playbackContext||(x.playbackContext={});S=Qgh();x.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!S,supportXhr:IIB};D.overrideMutedAtStart&&(x.overrideMutedAtStart=D.overrideMutedAtStart);x.racyCheckOk=!!L.racyCheckOk;x.contentCheckOk=!!L.contentCheckOk;!_.u("captions_prefs_killswitch")&&(D=(D=_.Ad("yt-player-caption-language-preferences"))?
D:[],D==null?0:D.length)&&(x.captionParams={viewerSelectedCaptionLangs:D})};
_.K.getRequestConfig=function(x){x=this.JSC$13126_getStoreKey(x);var L;x&&(L={storeStrategy:{storeKey:x}});_.u("web_log_player_watch_next_ticks")&&(L=L||{},L.requestTick="ps_s",L.responseTick="ps_r");return L};
NI[IZ]=[yG];var io=function(){};
_.p(io,$r);_.K=io.prototype;_.K.getApiPaths=function(){return JAR};
_.K.getExtension=function(x){return _.g(x,_.L6)};
_.K.isNavigationCommand=function(){return!0};
_.K.JSC$13126_getStoreKey=function(x){if((x=this.getExtension(x))&&x.videoId){var L={videoId:x.videoId};x.playlistId&&(L.playlistId=x.playlistId);x.index&&(L.index=x.index);x.params&&(L.params=x.params);return _.xT("next",L)}};
_.K.JSC$13119_getClientScreen=function(x){var L;return((L=x.contentPlaybackContext)==null?void 0:L.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.K.JSC$13119_buildRequest=function(x,L,D){L.videoId&&(x.videoId=L.videoId);L.playlistId&&(x.playlistId=L.playlistId);L.params&&(x.params=L.params);L.index!==void 0&&(x.playlistIndex=L.index);x.racyCheckOk=!(!D.racyCheckOk&&!L.racyCheckOk);x.contentCheckOk=!!L.contentCheckOk;D.contentPlaybackContext&&(x.autonavState=D.contentPlaybackContext.autonavState,x.playbackContext={vis:D.contentPlaybackContext.vis,lactMilliseconds:D.contentPlaybackContext.lactMilliseconds});D.prefetchPlaybackContext&&(x.context.request||
(x.context.request={}),x.context.request.isPrefetch=!0);_.u("captions_hats_killswitch")||(L=_.FI().getFlag(65),L=L!=null?!L:!1,D=!!_.Ad("yt-player-sticky-caption"),x.captionsRequested=L&&D)};
_.K.getRequestConfig=function(x){x=this.JSC$13126_getStoreKey(x);var L;x&&(L={storeStrategy:{storeKey:x}});_.u("web_log_player_watch_next_ticks")&&(L=L||{},L.requestTick="wn_s",L.responseTick="wn_r");return L};
var fp=function(){};
_.p(fp,$r);fp.prototype.getApiPaths=function(){return JAR};
fp.prototype.getExtension=function(x){return _.g(x,_.ol)};
fp.prototype.JSC$13119_buildRequest=function(x,L){L.token&&(x.continuation=L.token)};var oO=function(x,L){this.playerRequestBuilder=x;this.watchNextRequestBuilder=L};
_.p(oO,$r);oO.prototype.getApiPaths=function(){return v5h};
oO.prototype.getExtension=function(x){return _.g(x,_.L6)};
oO.prototype.isNavigationCommand=function(){return!0};
oO.prototype.JSC$13119_buildRequest=function(x,L,D){x.playerRequest={};this.playerRequestBuilder.JSC$13119_buildRequest(x.playerRequest,L,D);_.u("web_streaming_watch")&&(x.watchNextRequest={},this.watchNextRequestBuilder.JSC$13119_buildRequest(x.watchNextRequest,L,D))};
oO[IZ]=[NI,io];var EMd;_.aO=new _.vx("SHORTS_CONTROLLER_TOKEN");EMd=new _.vx("SHORTS_STATE_STORE_TOKEN");var zy=function(x,L){var D=_.Ne.apply(2,arguments);x=x===void 0?0:x;_.RZ.call(this,L,D);this.errorType=x;Object.setPrototypeOf(this,this.constructor.prototype)};
_.p(zy,_.RZ);var MMA,dA2,jg2,kvO,aP,rvh,H5G,h4Q,b52,k_r,gMG;MMA=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(x){return x+"="}).join("|"));
dA2=RegExp(".*\\?.*playnext=1.*");_.Xe=function(x,L,D,S){this.watchEndpointMap=x;this.reelWatchEndpointMap=L;this.innerTubeTransportService=D;this.fetchPbj=S};
jg2=function(x,L,D){var S=_.yY().resolve(_.ZN(P$i));_.Xe.instance=new _.Xe(x,L,D,S)};
_.vM_=function(x,L){var D=_.dE("web_pbj_log_warning_rate",0);D=D>0&&Math.random()<D;var S;if((S=_.g(L.commandMetadata,_.gg))==null||!S.rootVe)return D&&_.qy(Error("Yf")),!1;var Q;S=(Q=_.g(L.commandMetadata,_.gg))==null?void 0:Q.url;if(!S)return D&&_.qy(Error("Zf")),!1;if(dA2.test(S))return!0;if(MMA.test(S))return D&&_.qy(Error("$f`"+S)),!1;if(_.g(L,_.L6)){if(!(x.watchEndpointMap.watchNext&&x.watchEndpointMap.player||_.u("kevlar_fetch_initial_data_op_watch_client")))return D&&_.qy(Error("Rf")),!1;
x=_.dE("web_pbj_log_warning_rate",0);x=x>0&&Math.random()<x;_.g(L,_.L6)?tCh(L)?L=!0:(x&&_.qy(Error("Sf")),L=!1):(x&&_.qy(Error("Rf")),L=!1);return L}if(_.g(L,_.TF))return xS0(L);if(_.g(L,_.O6))return!0;x=_.nu(x.innerTubeTransportService,L);!x&&D&&_.BI(Error("ag"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(L)});return x};
kvO=function(x,L,D,S,Q,J){L={url:L};if(D==null?0:D.itct)L.parentTrackingParams=D.itct;var Z=_.KB(wzA);return _.MI(x.innerTubeTransportService,L,Z).then(function(y){(y=y.endpoint)||(y=_.fv);(D==null?0:D.itct)&&y&&!y.trackingParams&&(y.trackingParams=D.itct);var E=FA(y);return aP(x,y,D,S,E,Q,J)})};
aP=function(x,L,D,S,Q,J,Z,y){y=y===void 0?{}:y;if(x.fetchPbj&&!_.vM_(x,L)&&!_.u("force_one_platform")){y=x.fetchPbj(L);var E=_.V0(y.then(function(f){if(!f)throw Error("bg");Z(E)||J(L,f);return f}));
return E}var P,v,V={rootVe:(P=_.g(L.commandMetadata,_.gg))==null?void 0:P.rootVe,url:(v=_.g(L.commandMetadata,_.gg))==null?void 0:v.url,endpoint:L,page:Q};if(_.g(L,_.L6)){var h,H={contentPlaybackContext:_.GF(D,(h=_.g(L.commandMetadata,_.gg))==null?void 0:h.url,S)},k=_.xe();_.u("web_streaming_watch")&&window.TextDecoderStream?(y=VMG(x.innerTubeTransportService,L,H,function(f){!V.response&&f.content&&(V.response=f.content);!V.playerResponse&&f.player&&(V.playerResponse=f.player);J(L,V)}),P=GPO(L),P.length&&
(V.preconnect=P,J(L,V)),h4Q(y,k,V).catch(function(f){f instanceof zy&&f.errorType===2&&_.u("web_streaming_watch_fallback")&&H5G(x,L,H,V,J,Z,k)})):H5G(x,L,H,V,J,Z,k);
return k.promise}if(_.g(L,_.TF)){var T;if(((T=_.g(L,_.TF))==null?void 0:T.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var G=_.xe();_.upH(_.yY().resolve(_.aO),L).then(function(f){gMG(x,D,S,Q,J,G,f)});
return G.promise}y=_.V0();var U;P={contentPlaybackContext:_.GF(D,(U=_.g(L.commandMetadata,_.gg))==null?void 0:U.url,S)};(U=x.reelWatchEndpointMap.player)&&(U=U().JSC$13119_getRequest(L,P))&&(y=_.MI(x.innerTubeTransportService,U.innerTubeRequest,U.input,L.clickTrackingParams,U.config));U=_.V0();(v=x.reelWatchEndpointMap.reelItemWatch)&&(v=v().JSC$13119_getRequest(L))&&(U=_.MI(x.innerTubeTransportService,v.innerTubeRequest,v.input,L.clickTrackingParams,v.config));v=_.V0();_.u("web_enable_delay_shorts_sequence_call_extra")&&
(v=new _.HI(function(f){setTimeout(function(){f(void 0)},200)}));
(!_.u("web_enable_delay_shorts_sequence_call_new")||_.u("web_enable_delay_shorts_sequence_call_forget"))&&(h=x.reelWatchEndpointMap.reelWatchSequence)&&_.g(L,_.TF).sequenceParams&&(P=h().JSC$13119_getRequest(L,P))&&(_.u("web_enable_delay_shorts_sequence_call_forget")?_.MI(x.innerTubeTransportService,P.innerTubeRequest,P.input,L.clickTrackingParams,P.config):v=_.MI(x.innerTubeTransportService,P.innerTubeRequest,P.input,L.clickTrackingParams,P.config));P=_.V0(V);h=_.xe();k_r(L,P,y,U,v,J,Z,h);return h.promise}var l;
if(_.g(L,z8f)&&((l=_.g(L.commandMetadata,_.gg))==null?0:l.url))return y=yys(_.ze(qp().location.href),_.ze(_.g(L.commandMetadata,_.gg).url)).toString(),kvO(x,y,D,S,J,function(){return!1});
if(_.g(L,_.O6))return J(L,V),_.V0(V);if(_.nu(x.innerTubeTransportService,L)){y=Object.assign({},{tempData:D,disableCache:D.disableCache},y);var X=_.tD(x.innerTubeTransportService,L,y).then(function(f){V.response=f;Z(X)||J(L,V);return V});
return X}return _.V0(V)};
_.mA_=function(x,L,D,S){if(_.g(L,_.L6)||_.g(L,_.TF)&&(_.u("mweb_enable_shorts_innertube_player_prefetch")||_.u("kevlar_enable_shorts_prefetch_in_sequence"))||_.g(L,p5R)&&_.u("web_enable_prefetching_videos_on_home")){var Q,J={contentPlaybackContext:_.GF(D,(Q=_.g(L.commandMetadata,_.gg))==null?void 0:Q.url,S),prefetchPlaybackContext:Qbw(D)},Z,y,E;if(((Z=_.g(L,_.L6))==null?void 0:(y=Z.watchEndpointSupportedPrefetchConfig)==null?void 0:(E=y.prefetchHintConfig)==null?void 0:E.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(D=
x.watchEndpointMap.watchNext)if(J=D().JSC$13119_getRequest(L,J))return Promise.resolve(_.MI(x.innerTubeTransportService,J.innerTubeRequest,J.input,void 0,J.config).then(function(V){return V}))}else if(D=x.watchEndpointMap.player)if(J=D().JSC$13119_getRequest(L,J))return Promise.resolve(_.MI(x.innerTubeTransportService,J.innerTubeRequest,J.input,void 0,J.config).then(function(V){return V}))}else if(_.nu(x.innerTubeTransportService,L)){var P={tempData:D},v=pk2(x.innerTubeTransportService,L);
return v?new Promise(function(V,h){var H,k;return _.I(function(T){if(T.nextAddress==1)return T.yield(v,2);if(T.nextAddress!=4)return H=T.yieldResult,H.JSC$13126_getStoreKey(L,P)?T.yield(_.tD(x.innerTubeTransportService,L,P),4):(h(new _.RZ("Prefetching request builder with no store key.",L)),T.jumpTo(0));k=T.yieldResult;V(k);_.Y2(T)})}):Promise.reject(new _.RZ("Prefetching unregistered request builder.",L))}return Promise.reject(new _.RZ("No request builder available to prefetch endpoint.",L))};
rvh=function(x,L){var D,S,Q;if(_.g(L,_.L6)){var J=x.watchEndpointMap.watchNext;J&&(D=J());(x=x.watchEndpointMap.player)&&(S=x())}else if(_.g(L,_.TF))(J=x.reelWatchEndpointMap.reelItemWatch)&&(D=J()),(J=x.reelWatchEndpointMap.player)&&(S=J()),(x=x.reelWatchEndpointMap.reelWatchSequence)&&(Q=x());else{a:{x=Lj0(L,x.innerTubeTransportService.endpointMap);if(x!==void 0)if(typeof x.then==="function")_.BI(new _.RZ("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",L));else break a;
x=void 0}x&&(D=x)}var Z,y,E;return{content:(Z=D)==null?void 0:Z.JSC$13126_getStoreKey(L),player:(y=S)==null?void 0:y.JSC$13126_getStoreKey(L),reelSequence:(E=Q)==null?void 0:E.JSC$13126_getStoreKey(L)}};
H5G=function(x,L,D,S,Q,J,Z){var y=_.V0(),E=x.watchEndpointMap.player;_.u("web_streaming_player")&&(E=Rq(oO));E&&(E=E().JSC$13119_getRequest(L,D))&&(y=_.MI(x.innerTubeTransportService,E.innerTubeRequest,E.input,L.clickTrackingParams,E.config));E=_.V0();var P=x.watchEndpointMap.watchNext;P&&(D=P().JSC$13119_getRequest(L,D))&&(E=_.MI(x.innerTubeTransportService,D.innerTubeRequest,D.input,L.clickTrackingParams,D.config));x=_.V0(S);b52(L,x,y,E,Q,J,Z)};
h4Q=function(x,L,D){return _.I(function(S){if(S.nextAddress==1)return S.yield(x,2);L.resolve(D);_.Y2(S)})};
b52=function(x,L,D,S,Q,J,Z){var y,E,P,v,V;_.I(function(h){switch(h.nextAddress){case 1:return h.yield(L,2);case 2:y=h.yieldResult;if(J(Z.promise))return Z.resolve(y),h.return();Q(x,y);E=GPO(x);if(!E.length){h.jumpTo(3);break}return h.yield(L,4);case 4:y.preconnect=E,Q(x,y);case 3:return _.HH(h,5),h.yield(D,7);case 7:P=h.yieldResult;_.nH(h,6);break;case 5:return v=_.mW(h),Z.reject(v),h.return();case 6:if(P===void 0)return y.reload=!0,Q(x,y),Z.resolve(y),h.return();if(J(Z.promise))return Z.resolve(y),
h.return();y.playerResponse=P;Q(x,y);_.HH(h,8);return h.yield(S,10);case 10:V=h.yieldResult;_.nH(h,9);break;case 8:_.mW(h);case 9:if(V===void 0)return y.response={responseContext:{}},Z.resolve(y),h.return();if(J(Z.promise))return Z.resolve(y),h.return();y.response=V;Q(x,y);Z.resolve(y);_.Y2(h)}})};
k_r=function(x,L,D,S,Q,J,Z,y){var E,P,v,V,h,H;_.I(function(k){switch(k.nextAddress){case 1:return k.yield(L,2);case 2:E=k.yieldResult;if(Z(y.promise))return y.resolve(E),k.return();J(x,E);P=GPO(x);if(!P.length){k.jumpTo(3);break}return k.yield(L,4);case 4:E.preconnect=P,J(x,E);case 3:return _.HH(k,5),k.yield(D,7);case 7:v=k.yieldResult;_.nH(k,6);break;case 5:return V=_.mW(k),y.reject(V),k.return();case 6:if(v===void 0)return E.reload=!0,J(x,E),y.resolve(E),k.return();if(Z(y.promise))return y.resolve(E),
k.return();E.playerResponse=v;J(x,E);_.HH(k,8);return k.yield(S,10);case 10:h=k.yieldResult;_.nH(k,9);break;case 8:_.mW(k);case 9:if(h===void 0)return E.response={responseContext:{}},y.resolve(E),k.return();if(Z(y.promise))return y.resolve(E),k.return();E.response=h;J(x,E);_.HH(k,11);return k.yield(Q,13);case 13:H=k.yieldResult;_.nH(k,12);break;case 11:_.mW(k);case 12:if(Z(y.promise))return y.resolve(E),k.return();H&&(E.reelWatchSequenceResponse=H);J(x,E);y.resolve(E);_.Y2(k)}})};
gMG=function(x,L,D,S,Q,J,Z){var y,E,P,v,V,h;_.I(function(H){if((y=Z)==null||!y.replacementEndpoint)return J.reject(),H.return();E=Z.replacementEndpoint;(P=_.g(E,_.TF))?(Z.sequenceContinuation&&(P.sequenceParams=Z.sequenceContinuation),v=_.yY().resolve(_.aO),V=P.sequenceParams,YdR(v,E)&&delete P.sequenceParams,h=aP(x,E,L,D,S,Q,function(){return!1}),h.then(function(k){return _.I(function(T){if(T.nextAddress==1)return F4B(v,{reelWatchEndpoint:{sequenceParams:V}},k),T.yield(0,2);
J.resolve(k);_.Y2(T)})})):J.reject();
_.Y2(H)})};_.sgR=function(x){if(x.validatedFragments_.length==0)return null;if(!x.mergedPrefetchedData_){for(var L=[],D=_.O(x.validatedFragments_),S=D.next();!S.done;S=D.next()){S=_.O(x.fragmentConfiguration_[S.value].graftedKeys);for(var Q=S.next();!Q.done;Q=S.next())(Q=x.prefetchedData_[Q.value].trackingParams)&&L.push(Q)}x.mergedPrefetchedData_={};Object.assign(x.mergedPrefetchedData_,x.prefetchedData_,{clientSideGrafts:L})}return x.mergedPrefetchedData_};var TXd;_.cy=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
TXd=function(x,L,D){if(_.cQh(L))return x.prefetchCache_.get(_.njp(L,D))};_.np=new _.vx("NAVIGATION_TOKEN");var e4R=function(x){var L=this;var D=D===void 0?PAO():D;var S=S===void 0?_.yY().resolve(_.np):S;this.onePickCommand=x;this.JSC$13230_playlistNetworkManager=D;this.navigationManager=S;this.videoPickerBuilder=_.MEw("yt-addtoplaylist");_.c8_(NzA(iVH(r72(this.videoPickerBuilder.setTitle(x.modalTitle).setSize(1E3).addView(oQH()).addView(fNH())).addView("youtube"),x.selectButtonLabel)),function(Q){L.handleAction(Q)})};
e4R.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
e4R.prototype.handleAction=function(x){var L=this;if(x&&this.onePickCommand.listId&&x.action==="picked"&&x.docs){var D=[];x.docs.forEach(function(S){D.push({addedVideoId:S.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$13230_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,D).then(function(){_.u("playlist_add_video_hard_reload_killswitch")?L.navigationManager.reload():R4h(L.navigationManager)})}};var G_A=function(){if(this.constructor===G_A)throw new TypeError("cg");};
_.K=G_A.prototype;_.K.dispose=function(){};
_.K.disconnect=function(){};
_.K.reconnect=function(){};
_.K.observe=function(x,L,D){return{element:x,option:D}};
_.K.unobserveByKey=function(){};var jbf=function(x,L){L=L===void 0?0:L;G_A.call(this);this.viewroot=x;this.defaultPrescanHeight=L;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),x?{root:x,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.p(jbf,G_A);_.K=jbf.prototype;_.K.dispose=function(){this.disconnect();this.handlers.clear()};
_.K.disconnect=function(x){this.isConnected=!1;this.pauseObservingUntilReconnect=x===void 0?!1:x;this.observer.disconnect();x=_.O(this.prescanObservers.values());for(var L=x.next();!L.done;L=x.next())L.value.disconnect()};
_.K.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var x=_.O(this.handlers),L=x.next();!L.done;L=x.next()){var D=_.O(L.value);L=D.next().value;var S=D.next().value;D=!1;S=_.O(S.keys());for(var Q=S.next();!Q.done;Q=S.next())if((Q=Q.value)&&Q.state==="prescan"){D=!0;break}D&&C$R(this,L).observe(L);this.observer.observe(L)}}};
_.K.handleObserveEvent=function(x){x=_.O(x);for(var L=x.next();!L.done;L=x.next()){L=L.value;var D=this.handlers.get(L.target);if(D){var S=L.isIntersecting;D=_.O(D);for(var Q=D.next();!Q.done;Q=D.next()){var J=_.O(Q.value);Q=J.next().value;J=J.next().value;Q&&(Q.state==="visible"&&S||Q.state==="hidden"&&!S)&&(J(L.target,Q.state),Q.calledOnce&&this.unobserveByKey({element:L.target,option:Q}))}}}};
_.K.handlePrescanEvent=function(x){x=_.O(x);for(var L=x.next();!L.done;L=x.next()){L=L.value;var D=this.handlers.get(L.target);if(D&&L.isIntersecting){D=_.O(D);for(var S=D.next();!S.done;S=D.next()){var Q=_.O(S.value);S=Q.next().value;Q=Q.next().value;S&&S.state==="prescan"&&(Q(L.target,S.state),S.calledOnce&&this.unobserveByKey({element:L.target,option:S}))}}}};
_.K.observe=function(x,L,D){var S=(S=this.handlers.get(x))&&S.has(D)?{element:x,option:D}:void 0;if(S)return S;S={element:x,option:D};this.handlers.has(x)||this.handlers.set(x,new Map);var Q=this.handlers.get(x);Q&&!Q.has(D)&&Q.set(D,L);this.pauseObservingUntilReconnect||(D.state==="prescan"&&C$R(this,x).observe(x),this.observer.observe(x));return S};
_.K.unobserveByKey=function(x){var L=this.handlers.get(x.element);if(L&&L.has(x.option)){L.delete(x.option);if(x&&x.option.state==="prescan")for(var D=_.O(this.prescanObservers.values()),S=D.next();!S.done;S=D.next())S.value.unobserve(x.element);L.size===0&&(this.handlers.delete(x.element),this.observer.unobserve(x.element))}};
var C$R=function(x,L){var D=x.defaultPrescanHeight;L.hasAttribute("prescan-height")&&(L=Number(L.getAttribute("prescan-height")),isNaN(L)||(D=L));if(x.prescanObservers.has(D))return x.prescanObservers.get(D);L="-0.1px -0.1px "+D+"px -0.1px";L=new IntersectionObserver(x.handlePrescanEvent.bind(x),x.viewroot?{root:x.viewroot,rootMargin:L}:{rootMargin:L});x.prescanObservers.set(D,L);return L};var lIB=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],UA2=function(){var x,L=this;this.JSC$13247_actionRouter=x=x===void 0?_.aR.getInstance():x;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return L.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return L.visibilityObservedElementHandlerKeys}}},wk2,W4W,$A2;
UA2.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.u("kevlar_use_vimio_behavior")&&_.$6("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=v5f())};
UA2.prototype.dispose=function(){this.visibilityMonitor&&_.wG(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
UA2.prototype.handleVisibilityRefreshed=function(){for(var x=_.O(this.targetMap.entries()),L=x.next();!L.done;L=x.next()){var D=_.O(L.value);L=D.next().value;D=D.next().value;_.BX2(this,L,D)}};
_.Af_=function(x,L,D){W4W(x,D);var S=_.qdi(x,L);S.element=D;x.targetedElements.set(D,L);_.BX2(x,L,S)};
W4W=function(x,L){var D=x.targetedElements.get(L);if(D){var S=x.targetMap.get(D);S&&(delete S.element,x.targetMap.set(D,S));x.targetedElements.delete(L);x.visibilityObserver&&x.visibilityObservedElementHandlerKeys&&(D=x.visibilityObservedElementHandlerKeys.get(L))&&(x.visibilityObserver.unobserveByKey(D),x.visibilityObservedElementHandlerKeys.delete(L))}};
_.BX2=function(x,L,D){var S=D.action,Q=D.element;Q&&S&&(lIB.includes(L)||_.$6("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||x.visibilityMonitor&&x.visibilityMonitor.isNodeVisible(Q)?$A2(x,L,D):x.visibilityObserver&&(x.visibilityObservedElementHandlerKeys||(x.visibilityObservedElementHandlerKeys=new WeakMap),S=x.visibilityObserver.observe(Q,function(){$A2(x,L,D);x.visibilityObservedElementHandlerKeys.delete(Q)},{calledOnce:!0,
state:"visible"}),x.visibilityObservedElementHandlerKeys.set(Q,S)))};
$A2=function(x,L,D){var S=D.action;(D=D.element)&&S&&(_.tS(x.JSC$13247_actionRouter,[S],D),x.targetMap.delete(L),x.targetedElements.delete(D),x.triggeredTargets.add(L))};
_.qdi=function(x,L){var D=x.targetMap.get(L);D||(D={},x.targetMap.set(L,D));return D};
_.tY=function(){wk2||(wk2=new UA2);return wk2};var rfG=document.createElement("div");rfG.style.touchAction="pan-down";var VEf=rfG.style.touchAction==="pan-down";var NX2,i52;NX2=function(){this.hammerFn=XX2();this.JSC$13255_screenManager=_.sk();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.VC(83615);_.W5(this.JSC$13255_screenManager,this.ve);hgc()};
_.xP=function(){i52||(i52=new NX2);return i52};
NX2.prototype.registerTouchEvents=function(x,L,D){var S=_.Ne.apply(3,arguments),Q=this.hammerFn(x,{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}]]});D&&Q.set({touchAction:D});this.nodeManagerMapping.set(x,Q);var J=
HEb(L);S=_.O(S);for(var Z=S.next();!Z.done;Z=S.next()){Z=Z.value;if(Z.includes("swipe")||Z.includes("pinch")||Z.includes("pan"))Z.includes("swipe")?Q.get("swipe").set({enable:!0,direction:J,velocity:.2}):Z.includes("pinch")?Q.get("pinch").set({enable:!0}):Z.includes("pan")&&(Q.get("pan").set({enable:!0,direction:J}),Q.get("swipe").set({enable:!0,direction:J,velocity:.2}),Q.get("swipe").recognizeWith("pan"));fI2(this,x,Q,Z)}};
var fI2=function(x,L,D,S){D.on(S,function(Q){if(S.includes("pinch"))x.lastPinchTime=Date.now();else if(S.includes("swipe")&&Date.now()-x.lastPinchTime<400)return;Q.pointerType!=="mouse"&&(Q=S==="doubletap"?{coordinates:Q.center}:S.includes("pan")?Q:S.includes("swipe")?{target:Q.target}:{},L.dispatchEvent(new CustomEvent(S,{bubbles:!0,composed:!0,detail:Q})))})};
NX2.prototype.unregisterTouchEvents=function(x){var L=_.Ne.apply(1,arguments),D=this.nodeManagerMapping.get(x);if(D){L=_.O(L);for(var S=L.next();!S.done;S=L.next())D.off(S.value);this.nodeManagerMapping.delete(x);x.style.touchAction="unset"}};var oM2=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var uP0=null;var aIC=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},WJc=function(){aIC.instance||(aIC.instance=new aIC);
return aIC.instance},qa0=function(x){var L=x.networkEvents;
x.networkEvents=[];return _.u("enable_network_monitoring")?L:[]};var z4R;z4R={};_.XkB=ZA("yt-serviceworker-metadata",{objectStores:(z4R.auth={addedAtVersion:1},z4R["resource-manifest-assets"]={addedAtVersion:2},z4R),shared:!0,upgrade:function(x,L){L(1)&&fK(x,"resource-manifest-assets");L(2)&&fK(x,"auth")},
version:2});var Ya0=self.location.origin+"/";FJw([/\.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\//]);FJw([/purge_shell=1/]);var cfi=void 0;cfi=cfi===void 0?[]:cfi;for(var nMR=[],tM2=_.O(Fud),xZQ=tM2.next();!xZQ.done;xZQ=tM2.next())nMR.push({key:xZQ.value});for(var Lnh=_.O(cfi),DZi=Lnh.next();!DZi.done;DZi=Lnh.next())nMR.push(DZi.value);var SgH,fB=_.Qb==null?void 0:(SgH=_.Qb.performance)==null?void 0:SgH.memory,egp=!1,Ay4={},CAN={},oq={},aq=navigator;var LJ=function(x){this.JSC$13299_expiringStorage=new CH(x)};
LJ.prototype.set=function(x,L,D){D=D!==void 0?Date.now()+D:void 0;this.JSC$13299_expiringStorage.set(x,L,D)};
LJ.prototype.get=function(x){return this.JSC$13299_expiringStorage.get(x)};
LJ.prototype.remove=function(x){this.JSC$13299_expiringStorage.remove(x)};var zgf=_.xI(["https://www.youtube.com/",""]),Xzh=_.xI(["https://studio.youtube.com/",""]),LO0="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",n5b=null,KO4;var Qvr=_.xI(["https://www.youtube.com/iframe_api"]),Di=function(){this.playerResolver_=_.xe();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.GC;this.playbackDurationSeconds_=0},JNG=function(x){var L=function(){return window.YT&&typeof window.YT.ready==="function"};
if(L())return _.V0(window.YT);var D=_.xe(),S=_.pw("SCRIPT");S.onload=S.onreadystatechange=function(){S.readyState&&S.readyState!="loaded"&&S.readyState!="complete"||(S.onload=_.GC,S.onreadystatechange=_.GC,S.onerror=_.GC,L()?D.resolve(window.YT):D.reject(new _.RZ("Failed to load the iframe player library","script.onload",S.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
S.onerror=function(Q){S.onload=_.GC;S.onreadystatechange=_.GC;S.onerror=_.GC;D.reject(new _.RZ("Failed to load the iframe player library","script.onerror",Q&&Q.target&&Q.target.src))};
_.QD(S,_.Pn(Qvr));x.insertBefore(S,x.firstChild);return D.promise},Kn2=function(x,L,D){var S,Q;
_.I(function(J){switch(J.nextAddress){case 1:return x.playbackEndedCallback_=D,_.HH(J,2),J.yield(JNG(L.parentElement||null),4);case 4:S=J.yieldResult;_.nH(J,3);break;case 2:return Q=_.mW(J),Q instanceof _.RZ&&Q.args&&Q.args[0]=="script.onerror"?_.qy(Q):_.BI(Q),J.return();case 3:S.ready(function(){return new S.Player(L,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:x.onPlayerReady_.bind(x),onStateChange:x.onPlayerStateChange_.bind(x),
onCueRangeExit:x.onCueRangeExit_.bind(x)}})}),_.Y2(J)}})};
_.K=Di.prototype;_.K.getPlayerPromise=function(){return this.playerPromise_};
_.K.onPlayerReady_=function(x){this.playerResolver_.resolve(x.target)};
_.K.onPlayerStateChange_=function(x){if(x.data==YT.PlayerState.PLAYING){x=x.target;var L=x.getCurrentTime();x.addCueRange("playback",L,L+this.playbackDurationSeconds_)}};
_.K.onCueRangeExit_=function(x){x.data=="playback"&&(x.target.stopVideo(),this.playbackEndedCallback_())};
_.K.stopVideo=function(){this.playerPromise_.then(function(x){x.stopVideo()})};
var O4i=function(x){x.playerVars_&&x.playerPromise_.then(function(L){typeof L.cueVideoByPlayerVars!="function"?_.qy(new _.RZ("vmh: player API not ready","cueVideoByPlayerVars",typeof L.cueVideoByPlayerVars)):L.cueVideoByPlayerVars(x.playerVars_)})};
Di.prototype.playVideo=function(){var x=this;this.playerVars_&&this.playerPromise_.then(function(L){typeof L.loadVideoByPlayerVars!="function"?(L=new _.RZ("vmh: player API not ready","loadVideoByPlayerVars",typeof L.loadVideoByPlayerVars),_.BI(L)):L.loadVideoByPlayerVars(x.playerVars_)})};
var Z4G=function(x,L,D,S,Q){L&&(D===void 0&&(D=0),S===void 0&&(S=0),x.playbackDurationSeconds_=S/1E3,x.playerVars_={adformat:"17_8",videoId:L,suggestedQuality:"hd720",startSeconds:D/1E3,player_params:Q})};
Di.prototype.mute=function(){this.playerPromise_.then(function(x){x.mute()})};
Di.prototype.unMute=function(){this.playerPromise_.then(function(x){x.unMute()})};var yNW=function(x,L){var D=oc();x||(x="unknown");L||(L="unknown");x="MAIN_APP_WEB_PAGE_TYPE_"+x.toUpperCase();x in Vd2||(x="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");L="MAIN_APP_WEB_REQUEST_TYPE_"+L.toUpperCase();L in h_G||(L="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.PF(D,{mainAppWeb:{pageType:x,requestType:L,isShellLoad:_.rO("IS_SHELL_LOAD",!1)}})},IMH={start:function(){_.PF(vtn(),{mainAppWeb:_.L$()})},
success:function(){_.jK(vtn(),"SUCCESS")},
failure:function(){_.jK(vtn(),"FAILURE")},
cancelled:function(){_.jK(vtn(),"CANCELLED")}};var E$d,MbW,drO;E$d=_.xI(["/sw.js"]);MbW=_.xI(["/sw.js?0"]);_.dZh=_.Pn(E$d);drO=_.Pn(MbW);var PCH=function(){var x=Error.apply(this,arguments);this.message=x.message;"stack"in x&&(this.stack=x.stack)};
_.p(PCH,Error);_.QA.prototype.load=function(x){this.megabloxUrl_=_.$6("YPC_MB_URL");_.ac(this.megabloxUrl_,(0,_.e1)(function(){x&&x()},this))};
_.Vh0=function(x,L,D,S,Q,J,Z,y,E,P,v){_.jds(E);x.load((0,_.e1)(function(){try{var V=J?J:_.$6("HL"),h=_.$6("SESSION_INDEX");_.zjp("client",function(){lKA("59",{helpCenterPath:"/youtube",locale:V,window:window}).JSC$9979_loadChatSupport({authuser:String(h)})})}catch(H){throw D4(10,v,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),Q&&Q(H),_.BI(H),H;
}jvd(this,L,D,S,Q,J,Z,y,E,P,v)},x))};
_.QA.prototype.openFixFlowDialog=function(x,L,D,S){this.load((0,_.e1)(function(){try{v$2(this,_.o1("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(x).withIntegratorCallback(L).load(D,S)}catch(Q){throw _.BI(Q),Q;}},this))};
var v$2=function(x,L,D,S){var Q=L.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.u("enable_window_constrained_buy_flow_dialog")&&(Q=Q.usingPopupStyle(_.o1("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));S&&(Q=Q.usingCloseCallback(S));L.bootstrap.fromPaymentsUrl(x.megabloxUrl_);x=L.bootstrap.asMashupMode(Q);D=D?D:_.$6("HL");x.usingGaiaIndex(_.$6("SESSION_INDEX")).usingLocale(D).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.u("enable_google_payments_buyflow_material2_style_web")?
x.usingStyle(":m2;pc=#444;ac=#065fd4"):x.usingStyle(":md;pc=#444;ac=#065fd4");return x},jvd=function(x,L,D,S,Q,J,Z,y,E,P,v){try{var V=_.o1("payments.business.integration");
if(!V)throw new PCH("payments.business.integration is undefined");var h=V.standaloneContextAuthId.forUserId(),H=v$2(x,V,J,function(){Vgf(!1);y&&y()});
Z&&H.usingServerAnalyticsEventHandler(Z);var k=H.inStandaloneContext(h).buyFlow(function(T){if(T&&(!T.integratorData||T.integratorData===""||T.error))if(T.error!=null)if(String(T.error)==="-1")_.vq3(E);else{var G=String(T.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";D4(10,v,G,T.debugCode);_.Sr(G,E,T.debugCode);G=new _.RZ("PAYMENT_ERROR_MESSAGE::"+T.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+T.internalErrorDetails);
_.BI(G)}else D4(10,v,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.Sr("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",E,"EMPTY_INTEGRATOR_DATA"),_.BI(Error("hg"));D&&(Vgf(!1),D(T))}).withEncryptedParameters(L);
P&&k.withClientParameters(lC0(_.jrf(P)));k.load(function(){D4(24,v);_.NF("ttc",void 0,"commerce_transaction");qF("commerce_transaction");S&&(S(),Vgf(!0))},function(T){if(T==null?0:T.debugCode)var G=T==null?void 0:T.debugCode;
else if(!T||(T==null?0:T.debugCode))G="EMPTY_LOAD_FAILURE_ERROR",_.BI(Error(G));else{G="EMPTY_LOAD_FAILURE_DEBUG_CODE";var U=new _.RZ("LOAD_FAILURE:"+T.message," DEBUG_CODE:"+G);_.BI(U)}D4(10,v,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",G);_.Sr("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",E,G);_.BI(T);Q&&Q(T)})}catch(T){throw T instanceof PCH&&(D4(10,v,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),Q&&Q(T)),_.BI(T),T;
}};var Vb2;Vb2=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.PL0=function(x,L){L=L===void 0?!1:L;x=Vb2.test(x)?_.Ti(x):null;!L&&window.payments||!x?(x=_.xe(),L=x.promise,x.resolve()):L=_.ggh(x,{attributes:{"data-payments-main":"",id:"payment-lib"}});return L};var hq2;hq2=_.xI(["//www.googletagmanager.com/gtm.js?id=",""]);_.SZ=function(x,L){_.IB(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:L}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.$6("GL")}),L=_.pw("SCRIPT"),L.async=!0,_.QD(L,_.Pn(hq2,x)),L.id="gtm",x=document.getElementsByTagName("script"),x.length==0?document.head.appendChild(L):(x=x[0],x.parentNode.insertBefore(L,x)))};
_.Q$=function(x){if(x=JSON.parse(x))window.dataLayer=window.dataLayer||[],window.dataLayer.push(x)};var H42,u72;H42=_.xI(["https://clients2.google.com/gr/gr_sync.js"]);_.Mhn=function(){};
_.Mhn.prototype.init=function(){if(u72()){var x=_.xe();x.resolve();return x.promise}return _.ggh(_.Pn(H42)).then(function(){if(!u72())throw Error("ig");},function(){throw Error("jg");
})};
_.dxf=function(){if(!u72())return"";var x=window.google.gr;x.init({async:{schedule:"sync"},merchantId:"youtube"});x.start();x=x.finish();return x==null?"":x};
u72=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.e=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.p(_.e,PolymerFakeBaseClassWithoutHtml);_.er=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.p(_.er,PolymerFakeBaseClassWithoutHtml);var hpc=window.ShadyDOM;var tgh,cA0,Lxf,DM0,QYO,Jep,Jz,PP;tgh=_.u("enable_shadydom_free_scoped_query_methods");cA0=_.u("enable_shadydom_free_scoped_node_methods");Lxf=_.u("enable_shadydom_free_scoped_readonly_properties_batch_one");DM0=_.u("enable_shadydom_free_parent_node");QYO=_.u("enable_shadydom_free_children");Jep=_.u("enable_shadydom_free_last_child");Jz=window.ShadyDOM;_.HP=Jz&&Jz.noPatch&&Jz.wrap?Jz.wrap:Jz?function(x){return Jz.patch(x)}:function(x){return x};
PP=function(x){if(x instanceof ShadowRoot)this.host=(0,_.HP)(x.host),this.root=x;else if(x.$$){this.host=(0,_.HP)(x);var L;this.root=(L=x.root)!=null?L:this.host}else if(x.polymerController){this.host=(0,_.HP)(x);var D;this.root=(D=this.host.shadowRoot)!=null?D:this.host}else this.root=this.host=(0,_.HP)(x)};
nqO();xM0();Kx0();Oa3();S_4();var g$_={querySelector:function(x,L){L=ubG(L,Z4(x));x=_.yA(x);return IW(x).prototype.querySelector.call(x,L)},
querySelectorAll:function(x,L){L=ubG(L,Z4(x));x=_.yA(x);return IW(x).prototype.querySelectorAll.call(x,L)}},k9r={appendChild:function(x,L){var D=Z4(x),S=_.OY(L);
return _.zpG(_.yA(x),D?_.M$(L,D,S):L)},
cloneNode:function(x,L){var D=_.OY(x);x=_.yA(x);L=IW(x).prototype.cloneNode.call(x,L);return D?dc(L,D):L},
contains:function(x,L){var D=Z4(x),S=_.OY(L);return D!==S?!1:XEN(x,L)},
insertBefore:function(x,L,D){var S=Z4(x),Q=_.OY(L);x=_.yA(x);L=S?_.M$(L,S,Q):L;return IW(x).prototype.insertBefore.call(x,L,D)},
removeChild:function(x,L){var D=Z4(x);x=_.yA(x);L=D?dc(L,D):L;return IW(x).prototype.removeChild.call(x,L)},
replaceChild:function(x,L,D){var S=Z4(x),Q=_.OY(L);L=S?_.M$(L,S,Q):Q?dc(L,Q):L;D=S?dc(D,S):D;x=_.yA(x);return IW(x).prototype.replaceChild.call(x,L,D)},
getRootNode:function(x,L){L=L===void 0?{composed:!0}:L;var D;if(((D=L)!=null?D:{}).composed)x=Rp0(x);else{L=x;for(x=k2w(x);x;)L=x,x=mrb(x);x=L}return x}},yeG=Lxf?{firstChild:rAN,
nextSibling:q0N,previousSibling:$rO,firstElementChild:NNw,lastElementChild:f6h,nextElementSibling:WOO,previousElementSibling:AAc,childNodes:oqp}:{};DM0&&(yeG.parentNode=BNN);QYO&&(yeG.children=a6w);Jep&&(yeG.lastChild=iDc);tgh&&Za0(g$_);cA0&&Za0(k9r);IOw();var EAn=function(x){this.node=x instanceof ShadowRoot?x.host:x};
MIs();dM3();var vAb=new WeakMap;var hfn=Symbol("Ad");var pSc=new Set(["tap","track","down","up"]),mMG=_.u("pbcm_fi_query_decorators");var KJ=function(){return _.er.apply(this,arguments)||this};
_.p(KJ,_.er);_.K=KJ.prototype;_.K.getState=function(){return this.store.getState()};
_.K.dispatch=function(x){this.store.dispatch(x)};
_.K.beforeRegister=function(){if(this&&typeof this==="object"){var x;var L=!!this.useSignals||!((x=this.polymerController)==null||!x.useSignals)}else L=!1;if(!L&&this.properties)for(L=_.O(Object.keys(this.properties)),x=L.next();!x.done;x=L.next()){var D=x.value;x=this.properties[D];if(x.selector){if(x.computed)throw Error("pg");D=["reduxPropertiesRecomputeTrigger",'"'+D+'"'].concat(_.lP(x.selectorArgs||[])).join(",");x.computed="recomputeReduxSelector("+D+")"}}};
_.K.attached=function(){var x=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){x.reduxPropertiesRecomputeTrigger++}));
_.u("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.K.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.K.recomputeReduxSelector=function(x,L){var D=_.Ne.apply(2,arguments),S=this.properties[L].selector;if(!S)throw Error("ng`"+L);return S.apply(null,[this.store.getState()].concat(_.lP(D)))};
_.K.select=function(x){var L=_.Ne.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return x.apply(null,[this.store.getState()].concat(_.lP(L)))};
_.J3.Object.defineProperties(KJ.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("og");}}});
KJ.prototype.recomputeReduxSelector=KJ.prototype.recomputeReduxSelector;_.A([_.F(),_.r("design:type",Number)],KJ.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.A([_.RW()],KJ);var OB=[],sY0={},N$=function(){return OK.apply(this,arguments)||this};
_.p(N$,OK);N$.prototype._addPropertyEffect=function(x,L,D){if(L==="__observeEffects"&&D){var S,Q=(S=D.info.method)!=null?S:D.info.methodName;if(Q){var J=this[Q];this[Q]=function(){OB.push(Q);try{J==null||J.apply(this,arguments)}finally{OB.pop()}}}}_.$t._addPropertyEffect.apply(this,[x,
L,D])};
N$.prototype._setPendingProperty=function(x,L,D){if(OB.length){var S=OB[OB.length-1],Q;(Q=sY0[this.is])!=null&&Q.has(S)||(TWf(this.is,S),_.Uh("polymerPropertyChangedInObserver",{componentName:this.is,observerName:S}))}return _.$t._setPendingProperty.apply(this,[x,L,D])};
_.A([co4()],N$);var efG=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),GWN,lN={};_.u("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=lN);var BP=function(){return _.er.apply(this,arguments)||this};
_.p(BP,_.er);BP.prototype._setUnmanagedPropertyToNode=function(x,L,D){x.loggingStatus&&(x.loggingStatus.isDeclarativeExternal=!0);if(D!==x[L]||typeof D==="object")x[L]=D;x.is&&x.polymerController&&x.polymerController!==x&&UY(x.is,L,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");x.loggingStatus&&(x.loggingStatus.isDeclarativeExternal=!1)};
_.A([_.RW()],BP);Rfn()&&(oH.prototype._setUnmanagedPropertyToNode=(new BP)._setUnmanagedPropertyToNode);_.oA3={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(x){},set polymerController(x){}}]};var rc=function(){var x=OK.apply(this,arguments)||this;x.json=function(){};
return x};
_.p(rc,OK);rc.prototype.equals=function(x,L){return x===L};
rc.prototype.isEmpty=function(x){var L;(L=!x)||(L=_.Nf(x)&&x.length===0);return L};
_.A([co4()],rc);var pUQ=function(x){x=a73(x);Sv.call(this,x)};
_.p(pUQ,Sv);pUQ.prototype.addProvider=function(x){x=x.key?x:a73([x])[0];var L=this.keyIdToIndex.get(x.key.id);if(L){if(BWb(x,this.providers[L]))throw Error("qg`"+x.key.displayName);}else Sv.prototype.addProvider.call(this,x)};
var mZB=new pUQ([]);var b42=!1;var NWh={};b42||(rec(),b42=!0);
NWh.InjectBehavior={initializeInjection:function(){var x=this.provide;try{if((x=x!=null?x:[])&&x.length>0)for(var L=a73(x),D=_.O(L),S=D.next();!S.done;S=D.next())mZB.addProvider(S.value);var Q=new Set;Wxh(this.behaviors||[],Q);L={};for(var J=_.O(Q),Z=J.next();!Z.done;Z=J.next()){var y=Z.value;y.inject&&Object.assign(L,y.inject)}this.inject&&Object.assign(L,this.inject);for(var E=_.O(Object.keys(L)),P=E.next();!P.done;P=E.next()){var v=P.value,V=L[v];try{this[v]=mZB.resolve(V)}catch(h){throw h;}}}catch(h){throw Error(h.message);
}}};var fOf;var aOp=/\bclass\b/.test(function(){}.toString()),ceN=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var YgQ=function(x){this.wasDefined=!0;Array.isArray(x)||x instanceof Array?(this.JSC$13428_getImpl=x[0],this.JSC$13428_setImpl=x[1]):this.JSC$13428_getImpl=x};
_.K=YgQ.prototype;_.K.getWithPath=function(x){return x0n(this.JSC$13428_getImpl(),x)};
_.K.setWithPath=function(x,L){var D=this;if(x.length)throw Error("rg");if(!this.JSC$13428_setImpl)throw Error("sg");bm(function(){D.JSC$13428_setImpl(L)})};
_.K.notifyPath=function(){throw Error("tg");};
_.K.notifySplices=function(){throw Error("ug");};
_.K.getChangeRecordSignal=function(x,L){var D=this;if(x.length)throw Error("vg");return function(){var S=D.getWithPath(x);return{path:L!=null?L:"",base:S,value:S}}};
_.K.getSplicesSignal=function(){throw Error("wg");};
_.K.getPathMutationSignal=function(){throw Error("xg");};
_.K.pop=function(){throw Error("yg");};
_.K.push=function(){throw Error("zg");};
_.K.splice=function(){throw Error("Ag");};
_.K.unshift=function(){throw Error("Bg");};var Zi=function(x){var L=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(x)||x instanceof Array?(this.JSC$13433_getImpl=x[0],this.JSC$13433_setImpl=x[1]):this.JSC$13433_getImpl=x;this.wasDefined=!1;_.hI(function(){L.wasDefined=L.JSC$13433_getImpl()!==void 0})};
Zi.prototype.getWithPath=function(x){return x0n(this.JSC$13433_getImpl(),x)};
Zi.prototype.setWithPath=function(x,L){var D=this;if(x[x.length-1]!=="*"&&x[x.length-1]!=="splices"){var S=_.hI(function(){return D.getWithPath([])});
if(x.length===0){if(!this.JSC$13433_setImpl)throw Error("Cg");if(S===L)return;this.wasDefined||(this.wasDefined=L!==void 0);bm(function(){D.JSC$13433_setImpl(L)})}else{for(var Q=0;Q<x.length-1;Q++){if(!S)return;
S=S[x[Q]]}Q=x[x.length-1];S&&(S[Q]=L);this.wasDefined||(this.wasDefined=x.length>1||L!==void 0)}FnC(this,x,{pathComponents:x,value:L})}};
Zi.prototype.notifyPath=function(x,L){x.length===0?L&&this.setWithPath(x,L.value):FnC(this,x,{pathComponents:x,value:L==null?void 0:L.value,fallbackWhenUndefined:L==null?void 0:L.value})};
var FnC=function(x,L,D,S){if(x.setMutationSignal){var Q=++x.mutationIndex,J=[x.observedPath],Z=x.observedPath,y;L.length===0&&(y=Z);for(var E=0;E<L.length;E++){var P=Z.subPaths[L[E]];if(!P)break;J.push(P);Z=P;E===L.length-1&&(y=P)}for(L=!1;J.length;)Z=J.shift(),Z.data={index:Q,mutation:D,spliceMutationIndex:S},L||(L=Z===y),L&&J.push.apply(J,_.lP(Object.values(Z.subPaths)));bm(function(){x.setMutationSignal(Q)})}};
Zi.prototype.notifySplices=function(x,L){var D=this,S=_.hI(function(){return D.getWithPath(x)}),Q=[].concat(_.lP(x),["splices"]);
FnC(this,Q,{pathComponents:Q,value:{indexSplices:L}});if(S==null?0:S.length)L=this.mutationIndex,Q=[].concat(_.lP(x),["length"]),FnC(this,Q,{pathComponents:Q,value:S.length},L)};
var svH=function(x,L,D,S,Q,J){x.notifySplices(D,[{index:S,addedCount:Q,removed:J,object:L,type:"splice"}])},TSR=function(x,L){x=x.observedPath;
for(var D=0;D<L.length;D++){var S=L[D],Q=x.subPaths[S];Q||(Q={pathComponents:L.slice(0,D+1),subPaths:{}},x.subPaths[S]=Q);x=Q}},RqH=function(x,L,D){TSR(x,L);
if(!x.getMutationSignal){var S=_.O(_.HB(x.mutationIndex,void 0,"sNBMCd"));x.getMutationSignal=S.next().value;x.setMutationSignal=S.next().value}var Q=x.getMutationSignal;return _.m5(function(){Q();return D(eqh(x,L))},void 0,"zvsXEd")};
Zi.prototype.getChangeRecordSignal=function(x,L){var D=this,S=this.mutationIndex,Q;return RqH(this,x,function(J){if(J&&J.index>S){var Z=J.mutation;S=J.index;Q=void 0}J=_.hI(function(){return D.getWithPath(x)});
if(Z){var y=Z.pathComponents[Z.pathComponents.length-1],E=[].concat(_.lP(Z.pathComponents));if(y==="splices"||y==="length")return{base:J,path:(L?[L].concat(_.lP(E)):E).join("."),value:Z.value};var P=x.length>E.length?x:E,v;return{base:J!=null?J:Z.fallbackWhenUndefined,path:(L?[L].concat(_.lP(P)):P).join("."),value:(v=_.hI(function(){return D.getWithPath(P)}))!=null?v:Z.fallbackWhenUndefined}}Q||(Q={base:J,
path:(L?[L].concat(_.lP(x)):x).join("."),value:J});return Q})};
Zi.prototype.getSplicesSignal=function(x){var L=this.mutationIndex,D;return RqH(this,x,function(S){if(S&&S.index>L&&S.spliceMutationIndex!==L){var Q=S.mutation;L=S.index;D=void 0}return Q&&Q.pathComponents[Q.pathComponents.length-1]==="splices"?D=S=Q.value:D})};
Zi.prototype.getPathMutationSignal=function(x){var L=this;TSR(this,x);if(!this.getMutationSignal){var D=_.O(_.HB(this.mutationIndex,void 0,"ugyMh"));this.getMutationSignal=D.next().value;this.setMutationSignal=D.next().value}var S=this.getMutationSignal,Q=this.mutationIndex,J;return _.m5(function(){S();var Z=eqh(L,x);if(Z&&Z.index>Q&&Z.mutation&&Lqn(Z.mutation.pathComponents,x)){var y=Z.mutation;Q=Z.index}if(!J||Q!==J.index){var E,P;Z=(P=_.hI(function(){return L.getWithPath(x)}))!=null?P:(E=y)==null?
void 0:E.fallbackWhenUndefined;
J={index:Q,value:Z}}return J},void 0,"RXYC9b")};
var eqh=function(x,L){x=x.observedPath;L=_.O(L);for(var D=L.next();!D.done;D=L.next())x=x.subPaths[D.value];return x.data};
Zi.prototype.pop=function(x){var L=this,D=_.hI(function(){return L.getWithPath(x)});
if(!(D instanceof Array))throw Error("Dg");var S=D.length>0,Q=D.pop();S&&svH(this,D,x,D.length,0,[Q]);return Q};
Zi.prototype.push=function(x){var L=_.Ne.apply(1,arguments),D=this,S=_.hI(function(){return D.getWithPath(x)});
if(!(S instanceof Array))throw Error("Eg");var Q=S.length,J=S.push.apply(S,_.lP(L));L.length&&svH(this,S,x,Q,L.length,[]);return J};
Zi.prototype.splice=function(x,L,D){var S=_.Ne.apply(3,arguments),Q=this,J=_.hI(function(){return Q.getWithPath(x)});
if(!(J instanceof Array))throw Error("Fg");L<0?L=J.length-Math.floor(-L):L&&(L=Math.floor(L));var Z=J.splice.apply(J,[L,D].concat(_.lP(S)));(S.length||Z.length)&&svH(this,J,x,L,S.length,Z);return Z};
Zi.prototype.unshift=function(x){var L=_.Ne.apply(1,arguments),D=this,S=_.hI(function(){return D.getWithPath(x)});
if(!(S instanceof Array))throw Error("Gg");var Q=S.unshift.apply(S,_.lP(L));L.length&&svH(this,S,x,0,L.length,[]);return Q};var y$=function(x,L,D){this.model=x;this.unknownSignalResolver=L;this.options=D;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];L=_.O(I1G());x=L.next().value;L=L.next().value;this.owner=x;this.disposeImpl=L};
y$.prototype.dispose=function(){if(!this.isDisposed){for(var x=_.O(this.childSignalProxies),L=x.next();!L.done;L=x.next())L.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var G9R=function(x,L){x=_.Kq(x.owner);try{L()}finally{_.Kq(x)}};
y$.prototype.effect=function(x){G9R(this,function(){_.qN(x,"g")})};
var CCd=function(x,L){x.options!=null||(x.options={});var D;(D=x.options).immutableProps!=null||(D.immutableProps=new Set);x.options.immutableProps.add(L)},U04=function(x,L){L=""+L;
lMW(x,L);var D,S;if((D=x.options)==null?0:(S=D.immutableProps)==null?0:S.has(L))return!0;var Q;if((Q=x.model.__signalCache)==null?0:Q.has(L))D=x.model.__signalCache.get(L),Array.isArray(D)&&CCd(x,L);var J,Z,y;return(y=(J=x.options)==null?void 0:(Z=J.immutableProps)==null?void 0:Z.has(L))!=null?y:!1},UZi=function(x,L){var D;
x.unknownSignalResolver&&(D=x.unknownSignalResolver(L));var S,Q;((S=x.options)==null?0:(Q=S.immutableProps)==null?0:Q.has(L))?D!=null||(D=new YgQ(_.HB(x.model[L],void 0,"By5iP"))):D!=null||(D=new Zi(_.HB(x.model[L],void 0,"CXghNc")));var J=x.model.hostElement;Object.defineProperty(x.model,L,{get:function(){lOO(J,L);return D.getWithPath([])},
set:function(Z){wc(J,L);x.setWithPath([L],Z)},
configurable:!0});return D},lMW=function(x,L){var D,S,Q;
((D=x.model.__signalCache)==null||!D.has(L))&&((S=x.options)==null?0:(Q=S.externalSignalProps)==null?0:Q.has(L))&&x.model[L]},X1=function(x,L){L=""+L;
var D=x.signalCache[L];if(D!==void 0)return D;D=!1;lMW(x,L);var S;if((S=x.model.__signalCache)==null?0:S.has(L))if(D=x.model.__signalCache.get(L),Array.isArray(D))D=!0,CCd(x,L);else return x.signalCache[L]=x.model.__signalCache.get(L).signal,x.signalCache[L];var Q,J;S=(J=(Q=x.options)==null?void 0:Q.reactivityMode)!=null?J:0;var Z,y;if(!((Z=x.options)==null?0:(y=Z.reactiveProps)==null?0:y.has(L))&&!D&&S===1)throw Error("Hg`"+L);Q=D?wUd(x,L):UZi(x,L);return x.signalCache[L]=Q},wUd=function(x,L){var D=
Object.getOwnPropertyDescriptor(x.model.constructor.prototype,L),S=function(){return x.model[L]};
return new YgQ(D&&D.get&&!D.set?S:[S,function(Q){x.model[L]=Q}])};
y$.prototype.getWithPath=function(x){var L=_.O(x);x=L.next().value;L=S$(L);lOO(this.model.hostElement,""+x);return X1(this,x).getWithPath(L)};
y$.prototype.setWithPath=function(x,L){if(x.length){wc(this.model.hostElement,x.join("."));var D=_.O(x);x=D.next().value;D=S$(D);X1(this,x).setWithPath(D,L)}};
y$.prototype.getPathMutationSignal=function(x){var L=_.O(x);x=L.next().value;L=S$(L);return X1(this,x).getPathMutationSignal(L)};
y$.prototype.notifyPath=function(x,L){var D=_.O(x);x=D.next().value;D=S$(D);X1(this,x).notifyPath(D,L)};
var BSh=function(x,L){if(L.type==="literal")return function(){return{rootWasDefined:!0,value:L.value}};
var D=aW(L.path),S=_.O(D),Q=S.next().value;S=S$(S);var J,Z;if(L.type==="path"&&(D.length===1||((J=x.options)==null?0:(Z=J.immutableProps)==null?0:Z.has(Q))))return function(){var V=x.getWithPath(D.slice(0,1));V=x0n(V,D.slice(1));return{rootWasDefined:X1(x,D[0]).wasDefined,value:V}};
var y=X1(x,Q);if(L.type==="path"){var E=y.getPathMutationSignal(S);return function(){var V,h=(V=E())==null?void 0:V.value;return{rootWasDefined:y.wasDefined,value:h}}}if(L.type==="splices"){var P=y.getSplicesSignal(S);
return function(){var V=P();return{rootWasDefined:y.wasDefined,value:V}}}var v=y.getChangeRecordSignal(S,""+Q);
return function(){var V=v();return{rootWasDefined:y.wasDefined,value:V}}},OzG=function(x,L,D){var S=D.map(function(y){return BSh(x,y)}),Q=D.length===0,J=[],Z=D.length!==1||D[0].type!=="path"?!1:!0;
x.effect(function(){for(var y=S.length,E=[],P=!!J.length,v=0;v<y;v++){var V=S[v](),h=V.rootWasDefined;V=V.value;Q||(Q=h);E[v]=V;Z&&(E[v+y]=P?J[v]:E[v],J[v]=V)}Q&&AI(x.owner,function(){return void L.apply(null,_.lP(E))})})},D00=function(x,L,D,S,Q){var J=X1(x,L);
Q!==void 0&&J.setWithPath([],Q);OzG(x,function(){var Z=_.Ne.apply(0,arguments);wc(x.model.hostElement,L,!0);J.setWithPath([],D.apply(null,_.lP(Z)))},S)};
y$.prototype.arrayPush=function(x){var L=_.Ne.apply(1,arguments),D=_.O(x),S=D.next().value;D=S$(D);S=X1(this,S);return S.push.apply(S,[D].concat(_.lP(L)))};
y$.prototype.arraySplice=function(x,L,D){var S=_.Ne.apply(3,arguments),Q=_.O(x),J=Q.next().value;Q=S$(Q);J=X1(this,J);return J.splice.apply(J,[Q,L,D].concat(_.lP(S)))};
y$.prototype.arrayUnshift=function(x){var L=_.Ne.apply(1,arguments),D=_.O(x),S=D.next().value;D=S$(D);S=X1(this,S);return S.unshift.apply(S,[D].concat(_.lP(L)))};
y$.prototype.notifySplices=function(x,L){var D=_.O(x);x=D.next().value;D=S$(D);X1(this,x).notifySplices(D,L)};var WnR=!0,qgR=!1,wk3=!1,ANi=!1,$Zd=0;ANi=!1;$Zd=0;WnR=!0;qgR=wk3=!1;var vpb=/([^\s]+?)\(([\s\S]*)\)/,d0N=/\.([^.]+)$/,hi0=/\\,/g,EpO=/&comma;/g,MDb=/\\(.)/g,VDO=[],Pgs={"*":"wildcard",splices:"splices"};var s00=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"),m0O=/[A-Z]/,rNG=["class","hidden","id","on-dom-change"],ei3=new Set([].concat(_.lP(rNG),
["if","notify-dom-change","restamp"])),Ri0=new Set([].concat(_.lP(rNG),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),Gf0=new Set(["restamp"]);var G9w=new Set(["className","id"]);var BJ3=Symbol(),izc=window;var tDO=window;var K4G=0,DAp=0,cP=[],JfN=0,L44=!1,Qgf=document.createTextNode("");(new window.MutationObserver(Sd0)).observe(Qgf,{characterData:!0});var tq=new Map,n$=0,NSd=function(x){this.mappedHandleId=x},Z5n=function(x,L,D,S){this.mappedHandleId=x;
var Q=this;this.mappedHandleId=x;this.callback=L;this.waitTime=D;this.schedulerPriority=S;this.handleId=_.WW.addJob(function(){Q.callback();tq.delete(Q.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.p(Z5n,NSd);Z5n.prototype.cancel=function(){_.WW.cancelJob(this.handleId);tq.delete(this.mappedHandleId)};
var yf3=function(x,L){this.mappedHandleId=x;var D=this;this.mappedHandleId=x;this.callback=L;this.handleId=O53(function(){D.callback();tq.delete(D.mappedHandleId)})};
_.p(yf3,NSd);yf3.prototype.cancel=function(){var x=this.handleId-DAp;x<0||cP.length<=x||(cP[x]=null);tq.delete(this.mappedHandleId)};var dAh=function(){};
dAh.prototype.cancel=function(){this.jobHandle!==void 0&&(IIN(this.jobHandle),this.jobHandle=void 0)};
dAh.prototype.run=function(x,L,D){var S=this;this.cancel();this.callback=x;this.jobHandle=_.xi(function(){x();S.callback=void 0},L,D)};
dAh.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var EMO=new WeakMap;var i4W=jH(function(x){for(var L=x,D=0;D<3;D++)L=Object.getPrototypeOf(L);delete L.prototype.connectedCallback;var S=function(){return x.apply(this,arguments)||this};
_.p(S,x);S.prototype._attachDom=function(Q){if(!Q)return null;var J=(0,_.HP)(this.hostElement);J.attachShadow({mode:"open",shadyUpgradeFragment:Q});J.shadowRoot.appendChild(Q);return J.shadowRoot};
S.prototype._takeAttributes=function(){for(var Q=this.hostElement.attributes,J=0;J<Q.length;J++){var Z=Q[J],y=void 0,E=void 0;(E=(y=this).__attributeReaction)==null||E.call(y,Z.name,null,Z.value)}};
S.prototype._readyClients=function(){x.prototype._readyClients.call(this);this.root=this};
S.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);x.prototype.connectedCallback.call(this)};
_.J3.Object.defineProperties(S,{template:{configurable:!0,enumerable:!0,get:function(){return S.prototype._template}}});
return S}),fMh=jH(function(x){var L=function(){return x.apply(this,arguments)||this};
_.p(L,x);L.prototype.created=function(){if(this.__notifyEffects)for(var D=_.O(Object.values(this.__notifyEffects)),S=D.next();!S.done;S=D.next()){S=_.O(S.value);for(var Q=S.next();!Q.done;Q=S.next())Q.value.fn=VMs}if(this.__reflectEffects)for(D=_.O(Object.values(this.__reflectEffects)),S=D.next();!S.done;S=D.next())for(S=_.O(S.value),Q=S.next();!Q.done;Q=S.next())Q.value.fn=h4b};
L.prototype._addEventListenerToNode=function(D,S,Q){D=DH(D);Bv(D,S,Q)||x.prototype._addEventListenerToNode.call(this,D,S,Q)};
L.prototype._removeEventListenerFromNode=function(D,S,Q){D=DH(D);Wv(D,S,Q)||x.prototype._removeEventListenerFromNode.call(this,D,S,Q)};
L.prototype._propertiesChanged=function(D,S,Q){if(this.__dataToNotify&&this.__notifyEffects)for(var J=_.O(Object.keys(this.__dataToNotify)),Z=J.next();!Z.done;Z=J.next()){Z=Z.value;var y=vMc(Z);this.__notifyEffects[y]||delete this.__dataToNotify[Z]}else this.__dataToNotify=null;x.prototype._propertiesChanged.call(this,D,S,Q)};
L.prototype.fire=function(D,S,Q){S=S===void 0?{}:S;var J;return _.MF(DH((J=Q==null?void 0:Q.node)!=null?J:this),D,S,Q)};
L.prototype._ensureAttribute=function(D,S){var Q=DH(this);Q.hasAttribute(D)||zV(Q,S,D)};
L.prototype.isLightDescendant=function(D){var S=DH(this);return DH(S)!==D&&_.jr(S).contains(D)&&_.jr(S).getRootNode()===_.jr(D).getRootNode()};
return L});
_.$E.ready=function(){var x;((x=this.hostElement)!=null?x:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var L;((L=this.hostElement)!=null?L:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.XO._subscribeIronResize=function(x){var L;((L=x.hostElement)!=null?L:x).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.XO._unsubscribeIronResize=function(x){var L;((L=x.hostElement)!=null?L:x).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var gMs=[Array,Boolean,Date,Number,Object,String],Qm=function(x,L,D,S){this.polySiInfo=x;this.polySiParams=L;this.polySiContext=D;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;S||this instanceof HTMLElement&&(S=this);if(!S)throw Error("Og");this.allowedProps=L.allowedProps;this.hostElement=S;this.is=x.is;this.upgradeDisabled=!!L.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");x=new Set(L.reactiveSchemas.filter(function(Q){return Q.type!==
"observe"}).map(function(Q){return Q.propertyKey}));
this.signalProxy=new y$(this,void 0,{reactiveProps:x,reactivityMode:L.reactivityMode});this.__dataHasAccessor={};L=_.O(L.reactiveSchemas);for(x=L.next();!x.done;x=L.next())x=x.value,x.type==="signal"&&(this.__dataHasAccessor[x.propertyKey]=!0);this.upgradeDisabled||o$W(this)};
Qm.prototype.getExtraMethodsToForward=function(){return[]};
var o$W=function(x){x.polySiContext.didRegister||(x.registered(),x.polySiContext.didRegister=!0);x.polySiContext.finalizedTemplate||(x.polySiContext.finalizedTemplate={},x.polySiParams.templateGetter&&(x.polySiContext.finalizedTemplate.processedTemplate=xAG(x.polySiParams.templateGetter,x.polySiParams.is)));aMW(x);var L=x.hostElement;L.loggingStatus!=null||(L.loggingStatus={});L.loggingStatus.isInitializing=!0;_.hI(function(){return void x.created()});
L.loggingStatus.isInitializing=!1;x.isPolySiElementConnected&&zqR(x)},zqR=function(x){x.didCallReady||(_.hI(function(){return void x.ready()}),x.didCallReady=!0);
x.isAttached=!0;x.attached()};
_.K=Qm.prototype;_.K.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||zqR(this)};
_.K.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.K.attributeChangedCallback=function(x,L,D){if(this.upgradeDisabled)x==="disable-upgrade"&&D===null&&(this.upgradeDisabled=!1,o$W(this));else if(L!==D){var S=_.bz(x),Q=this.polySiContext.typesForSignals[S];if(Q&&(!this.reflecting||_.u("polysi_attribute_changed_serializing_killswitch"))){switch(Q){case Object:try{var J=JSON.parse(D)}catch(y){J=D}break;case Array:try{J=JSON.parse(D)}catch(y){J=null}break;case Date:J=isNaN(D)?String(D):Number(D);J=new Date(J);break;case Boolean:J=D!==null;break;case Number:J=
Number(D);break;default:J=D}this[S]=J}S=_.O(this.polySiParams.behaviors);for(Q=S.next();!Q.done;Q=S.next())J=void 0,(J=Q.value.attributeChanged)==null||J.call(this,x,L,D);var Z;(Z=this.attributeChanged)==null||Z.call(this,x,L,D)}};
_.K.attributeChangedCallbackWrapper=function(x,L,D){this.attributeChangedCallback(x,L,D)};
_.K.setPropertiesFromInitialAttributeValues=function(){for(var x=0;x<this.hostElement.attributes.length;x++){var L=this.hostElement.attributes[x];(L.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(L.name))&&this.attributeChangedCallback(L.name,null,L.value)}};
_.K.created=function(){this.provide=this.polySiParams.provide;var x;(x=this.initializeInjection)==null||x.call(this);x=_.O(this.polySiParams.reactiveSchemas);for(var L=x.next();!L.done;L=x.next())L=L.value,L.type==="signal"&&(this.mutablePropNames.add(L.propertyKey),X1(this.signalProxy,L.propertyKey));upf(this,this.polySiInfo,this.polySiParams.behaviors);x=_.O(this.polySiParams.reactiveSchemas);for(L=x.next();!L.done;L=x.next())L=L.value,L.type==="signal"&&L.value!==void 0&&(this.signalProxy.model[L.propertyKey]=
typeof L.value==="function"?L.value.call(this):L.value);if(this.polySiParams.signalProperties)for(x=_.O(this.polySiParams.signalProperties),L=x.next();!L.done;L=x.next()){L=L.value;var D=void 0;((D=this.__signalCache)==null?0:D.has(L))||(this.signalProxy.model[L]=void 0)}ANi||XU_(this);H5s(this);x=_.O(this.polySiParams.behaviors);for(L=x.next();!L.done;L=x.next())D=void 0,(D=L.value.created)==null||D.call(this);var S;(S=this.polySiInfo.created)==null||S.call(this)};
_.K.registered=function(){var x=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var L=Object.getPrototypeOf(this);L.addReactiveSchema=function(y){x.polySiParams.reactiveSchemas.push(y)};
for(var D=_.O(this.polySiParams.behaviors),S=D.next();!S.done;S=D.next()){var Q=void 0;(Q=S.value.beforeRegister)==null||Q.call(L)}var J;(J=this.polySiInfo.beforeRegister)==null||J.call(L);L.addReactiveSchema=pkh;D=_.O(this.polySiParams.behaviors);for(S=D.next();!S.done;S=D.next())Q=void 0,(Q=S.value.registered)==null||Q.call(L);var Z;(Z=this.polySiInfo.registered)==null||Z.call(L)};
_.K.ready=function(){var x;(x=this.beforeReady)==null||x.call(this);ANi&&XU_(this);var L;if(x=(L=this.polySiContext.finalizedTemplate)==null?void 0:L.processedTemplate){x=npf(x.template,x.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:x.hasInsertionPoint,thisCtx:this});L=x.nodesById;x=x.root;var D=this.hostElement;var S=S===void 0?!1:S;D=(0,_.HP)(D);if(!D.attachShadow)throw Error("Gd");if(!D.shadowRoot||S)D.attachShadow({mode:"open",shadyUpgradeFragment:x}),D.shadowRoot.appendChild(x);
this.root=D.shadowRoot;this.$=L}cNB(this);S=_.O(this.polySiParams.behaviors);for(L=S.next();!L.done;L=S.next())x=void 0,(x=L.value.ready)==null||x.call(this);var Q;(Q=this.polySiInfo.ready)==null||Q.call(this)};
_.K.attached=function(){for(var x=_.O(this.polySiParams.behaviors),L=x.next();!L.done;L=x.next()){var D=void 0;(D=L.value.attached)==null||D.call(this)}var S;(S=this.polySiInfo.attached)==null||S.call(this)};
_.K.detached=function(){for(var x=_.O(this.polySiParams.behaviors),L=x.next();!L.done;L=x.next()){var D=void 0;(D=L.value.detached)==null||D.call(this)}var S;(S=this.polySiInfo.detached)==null||S.call(this)};
var aMW=function(x){for(var L=_.O(x.polySiParams.behaviors),D=L.next();!D.done;D=L.next())if(D=D.value,D.listeners)for(var S in D.listeners)cb4(x,x.hostElement,S,D.listeners[S]);if(x.polySiInfo.listeners)for(var Q in x.polySiInfo.listeners)cb4(x,x.hostElement,Q,x.polySiInfo.listeners[Q])},cb4=function(x,L,D,S,Q){x=tI3(x,S,Q);
Bv(L,D,x)||L.addEventListener(D,x);return x},XU_=function(x){for(var L=_.O(x.polySiParams.reactiveSchemas),D=L.next();!D.done;D=L.next())D=D.value,D.type==="compute"||D.type==="computeWithMethod"?SMc(x.signalProxy,D,x):D.type==="redux"?Kq0(x.signalProxy,D,x.store):D.type==="signal"&&D.readOnly&&Jbs(x.signalProxy,D)},cNB=function(x){for(var L=_.O(x.polySiParams.reactiveSchemas),D=L.next(),S={};!D.done;S={schema$jscomp$12:void 0},D=L.next())S.schema$jscomp$12=D.value,S.schema$jscomp$12.type==="notify"?
Zzf(x.signalProxy,S.schema$jscomp$12,x.hostElement):S.schema$jscomp$12.type==="observe"?ybw(x.signalProxy,S.schema$jscomp$12,x):S.schema$jscomp$12.type==="reflect"&&x.signalProxy.effect(function(J){return function(){var Z=x.signalProxy.getWithPath([J.schema$jscomp$12.propertyKey]);
x.reflecting=!0;uGN(x.hostElement,J.schema$jscomp$12.propertyKey,Z,!0);x.reflecting=!1}}(S));
if(x.reflectedAttributes)for(L=_.O(Object.entries(x.reflectedAttributes)),S=L.next(),D={};!S.done;D={key$jscomp$932:void 0,value$jscomp$9833:void 0},S=L.next()){var Q=_.O(S.value);S=Q.next().value;Q=Q.next().value;D.key$jscomp$932=S;D.value$jscomp$9833=Q;x.signalProxy.effect(function(J){return function(){x.reflecting=!0;uGN(x.hostElement,J.key$jscomp$932,(0,J.value$jscomp$9833)(),!0);x.reflecting=!1}}(D))}};
_.K=Qm.prototype;_.K._setPendingProperty=function(x,L){this.set(x,L);return!1};
_.K._enableProperties=function(){};
_.K._setPendingPropertyOrPath=function(x,L){this.notifyPath(x,L);return!1};
_.K._addPropertyEffect=function(){};
_.K._stampTemplate=function(){throw Error("Pg");};
_.K.fire=function(x,L,D){L=L===void 0?{}:L;D=D===void 0?{}:D;var S,Q,J={bubbles:(S=D.bubbles)!=null?S:!0,cancelable:!!D.cancelable,composed:(Q=D.composed)!=null?Q:!0},Z;return _.MF(mAc((Z=D.node)!=null?Z:this.hostElement),x,L,J)};
_.K.get=function(x,L){var D=aW(x);return L?x0n(L,D):x==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(D)};
_.K.linkPaths=function(){};
_.K.listen=function(x,L,D){x=mAc(x);this.boundListeners!=null||(this.boundListeners=new WeakMap);var S=this.boundListeners.get(x);S||(S={},this.boundListeners.set(x,S));var Q=L+D;S[Q]||(S[Q]=cb4(this,x,L,D))};
_.K.notifyPath=function(x,L){this.signalProxy.notifyPath(aW(x),arguments.length===2?{value:L}:void 0)};
_.K.canNotifyPath=function(x){return this.mutablePropNames.has(x)&&!U04(this.signalProxy,x)};
_.K.notifySplices=function(x,L){this.signalProxy.notifySplices(aW(x),L)};
_.K.pop=function(x){var L=this.signalProxy;x=aW(x);var D=_.O(x);x=D.next().value;D=S$(D);return X1(L,x).pop(D)};
_.K.push=function(x){var L=_.Ne.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[aW(x)].concat(_.lP(L)))};
_.K.set=function(x,L,D){if(D)throw Error("Qg");x==="hidden"?this.hostElement.hidden=!!L:this.signalProxy.setWithPath(aW(x),L)};
_.K.setProperties=function(x){x=_.O(Object.entries(x));for(var L=x.next();!L.done;L=x.next()){var D=_.O(L.value);L=D.next().value;D=D.next().value;this[L]=D}};
_.K.splice=function(x,L,D){var S=_.Ne.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[aW(x),L,D].concat(_.lP(S)))};
_.K.unlinkPaths=function(){};
_.K.unlisten=function(x,L,D){x=mAc(x);if(this.boundListeners){var S=this.boundListeners.get(x);if(S){D=L+D;var Q=S[D];Q&&(Wv(x,L,Q)||x.removeEventListener(L,Q),delete S[D])}}};
_.K.unshift=function(x){var L=_.Ne.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[aW(x)].concat(_.lP(L)))};
_.J3.Object.defineProperties(Qm.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 UAh=[Array,Boolean,Date,Number,Object,String];var W40=!1;var IU=function(){var x=HTMLElement.apply(this,arguments)||this;x.restamp=!1;x.notifyDomChange=!1;x.JSC$13541_didCallConnected=!1;x.JSC$13541_renderDebouncer=null;x.disableTemplateUpdateSignalImpl=JH()?void 0:_.HB(!1,void 0,"Ofhkwb");var L;x.getDisableTemplateUpdate=(L=x.disableTemplateUpdateSignalImpl)==null?void 0:L[0];var D;x.setDisableTemplateUpdate=(D=x.disableTemplateUpdateSignalImpl)==null?void 0:D[1];return x};
_.p(IU,HTMLElement);var n$d=function(x){x.conditionSignalImpl!=null||(x.conditionSignalImpl=new Zi(_.HB(!1,void 0,"gE52Fb")));return x.conditionSignalImpl};
_.K=IU.prototype;_.K.showHideChildren=function(x){tbC(this,x,this.if)};
_.K.attributeChangedCallback=function(x,L,D){if(this.JSC$13541_didCallConnected)throw Error("Ug`"+x);x==="notify-dom-change"?this.notifyDomChange=D!==null:x==="restamp"&&(this.restamp=D!==null)};
_.K.debounceRender=function(){this.JSC$13541_renderDebouncer=_.Yt(this.JSC$13541_renderDebouncer,rQ,this.JSC$13541_renderImpl.bind(this));_.F4(this.JSC$13541_renderDebouncer)};
_.K.disconnectedCallback=function(){var x=(0,_.HP)(this).parentNode;(!x||x.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in x&&!x.host)&&xGQ(this)};
_.K.connectedCallback=function(){var x=this;this.JSC$13541_didCallConnected=!0;WnR?qdn():this.style.display="none";this.parentSignalProxy.isDisposed&&!_.u("ps_dom_if_check_disposed_in_connected_killswitch")||this.parentSignalProxy.effect(function(){n$d(x).getWithPath([]);x.debounceRender()})};
_.K.render=function(){_.R4()};
_.K.JSC$13541_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var x=this.if,L=!1;if(x){this.hasInstance()||(LdG(this),L=!0);a:{var D=(0,_.HP)(this).parentNode;if(this.hasInstance()){var S=this.instance.children;if((S==null?0:S.length)&&(0,_.HP)(this).previousSibling!==S[S.length-1])for(var Q=0;Q<S.length;Q++)(0,_.HP)(D).insertBefore(S[Q],this)}else{if(!D){D=!1;break a}DG_(this,D)}D=!0}if(!D)return}else this.restamp&&xGQ(this);tbC(this,!1,x);x&&!L&&LdG(this);qgR&&!this.notifyDomChange||
this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.K.hasInstance=function(){return!!this.instance};
var DG_=function(x,L){var D=x.parentSignalProxy;if(JH()){var S=_.O(_.HB(!0,void 0,"dkzufd"));var Q=S.next().value;S=S.next().value;D=x.parentSignalProxy}else{var J;var Z=new y$((J=SNG(x))!=null?J:{},function(E){var P=X1(x.parentSignalProxy,E).getChangeRecordSignal([]);E=_.HB(void 0,void 0,"iG8Uwe");var v=new Zi(E);Z.effect(function(){if(x.getDisableTemplateUpdate&&!x.getDisableTemplateUpdate()){var V=P();v.notifyPath(aW(V.path),{value:V.value})}});
return v});
x.parentSignalProxy.childSignalProxies.push(Z);var y=D=Z}D=npf(x.templateInfo,x.templateInfo.nodeInfoList,D,{eventListenerHost:x.eventListenerHost,hasInsertionPoint:x.templateInfo.hasInsertionPoint,thisCtx:x.eventListenerHost,enabledSignal:JH()?Q:void 0,getModel:function(){return SNG(x)}}).root;
x.instance={root:D,children:[],hidden:!1,signalProxy:y,getTemplateUpdatesEnabled:Q,setTemplateUpdatesEnabled:S};y=_.O(D.childNodes);for(Q=y.next();!Q.done;Q=y.next())x.instance.children.push(Q.value);(0,_.HP)(L).insertBefore(x.instance.root,x)},SNG=function(x){if((x=x.parentSignalProxy.model)&&!x.hostElement){var L={},D;
for(D in x)x.hasOwnProperty(D)&&(L[D]=x[D]);return L}},xGQ=function(x){if(x.instance){var L=x.instance.children;
if(L.length){var D=(0,_.HP)(L[0]).parentNode;if(D){D=(0,_.HP)(D);for(var S=0;S<L.length;S++)D.removeChild(L[S])}}JH()?x.instance.setTemplateUpdatesEnabled(!1):x.instance.signalProxy.dispose();x.instance=void 0}},tbC=function(x,L,D){L=L||!D;
x.instance&&x.instance.hidden!==L&&(x.instance.hidden=L,BX3(L,x.instance.children))},LdG=function(x){if(JH()){var L=x.instance;
L&&AI(x.parentSignalProxy.owner,function(){return!L.getTemplateUpdatesEnabled()})&&L.setTemplateUpdatesEnabled(!0)}else x.setDisableTemplateUpdate(!1)};
_.J3.Object.defineProperties(IU.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var x=this;return AI(this.parentSignalProxy.owner,function(){return n$d(x).getWithPath([])})},
set:function(x){x||(JH()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));n$d(this).setWithPath([],!!x)}}});
_.J3.Object.defineProperties(IU,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",IU);var QjC=[],EB=function(){var x=HTMLElement.apply(this,arguments)||this;x.as="item";x.indexAs="index";x.itemsIndexAs="itemsIndex";x.targetFramerate=20;x.notifyDomChange=!1;x.isDetached=!1;x.JSC$13548_renderDebouncer=null;x.instances=[];x.chunkingId=null;x.chunkCount=null;x.shouldMeasureChunk=!1;x.shouldContinueChunking=!1;x.renderStartTime=null;x.JSC$13548_didCallConnected=!1;return x};
_.p(EB,HTMLElement);var J1C=function(x){x.itemSignalImpl!=null||(x.itemSignalImpl=new Zi(_.HB(QjC,void 0,"YBrqgf")));return x.itemSignalImpl},KdH=function(x,L){Array.isArray(L)||(L=QjC);
J1C(x).setWithPath([],L)};
_.K=EB.prototype;_.K.showHideChildren=function(x){for(var L=_.O(this.instances),D=L.next();!D.done;D=L.next())BX3(x,D.value.children)};
_.K.notifyPath=function(x,L){x=aW(x);x[0]==="items"&&(x.length===1?KdH(this,L):J1C(this).setWithPath(x.slice(1),L))};
_.K.canNotifyPath=function(x){return x==="items"};
_.K.attributeChangedCallback=function(x,L,D){if(this.JSC$13548_didCallConnected)throw Error("Vg`"+x);x==="as"?this.as=D:x==="index-as"?this.indexAs=D:x==="items-index-as"?this.itemsIndexAs=D:x==="initial-count"?this.initialCount=Number(D):x==="notify-dom-change"?this.notifyDomChange=D!==null:x==="target-framerate"&&(this.targetFramerate=Number(D))};
_.K.disconnectedCallback=function(){this.isDetached=!0;for(var x=0;x<this.instances.length;x++)OTB(this,x);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.K.connectedCallback=function(){var x=this,L=J1C(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var Q=L(),J=aW(Q.path);if(J[0]===void 0||J[0]==="splices"||J[0]==="length")x.debounceRender();else{var Z=J[0];if(Z=x.instances[typeof Z==="string"?Math.floor(Number(Z)):Z])J=[x.as].concat(_.lP(J.slice(1))),Z.signalProxy.notifyPath(J,Q)}});
this.JSC$13548_didCallConnected=!0;WnR?qdn():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var D=(0,_.HP)((0,_.HP)(this).parentNode),S=0;S<this.instances.length;S++)D.insertBefore(this.instances[S].root,this);this.chunkingId&&this.render()}};
_.K.debounceRender=function(){this.JSC$13548_renderDebouncer=_.Yt(this.JSC$13548_renderDebouncer,rQ,this.JSC$13548_renderImpl.bind(this));_.F4(this.JSC$13548_renderDebouncer)};
_.K.render=function(){this.debounceRender();_.R4()};
_.K.JSC$13548_renderImpl=function(){var x=this;if(!this.parentSignalProxy.isDisposed){var L=this.items,D=ZTW(this,L.length);y12(this,L,D);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){x.chunkingId=null;if(x.shouldMeasureChunk){var S=performance.now()-x.renderStartTime;x.chunkCount=Math.round(Math.ceil(1E3/x.targetFramerate)/S*x.chunkCount)||1}x.shouldContinueChunking&&x.debounceRender()}));
qgR&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
var ZTW=function(x,L){var D=L,S=x.instances.length;if(x.initialCount){if(x.chunkCount){var Q=Math.min(Math.max(L-S,0),x.chunkCount);D=Math.min(S+Q,L)}else D=Math.min(L,x.initialCount),Q=Math.max(D-S,0),x.chunkCount=Q||1;x.shouldMeasureChunk=Q===x.chunkCount;x.shouldContinueChunking=D<L;x.renderStartTime=performance.now()}return D},y12=function(x,L,D){for(var S=0;S<D;S++){var Q=x.instances[S],J=L[S];
Q?(Q.signalProxy.setWithPath([x.as],J),Q.signalProxy.setWithPath([x.indexAs],S)):IyR(x,J,S)}for(L=x.instances.length-1;L>=S;L--)D=x,Q=L,OTB(D,Q),_.O(D.instances.splice(Q,1)).next().value.signalProxy.dispose()},OTB=function(x,L){x=x.instances[L];
L=(0,_.HP)(x.root);for(var D=0;D<x.children.length;D++)L.appendChild(x.children[D])},IyR=function(x,L,D){var S={};
L=Object.assign({},EDQ(x),(S[x.as]=L,S[x.indexAs]=D,S[x.itemsIndexAs]=D,S));var Q=new y$(L,function(Z){if(Z!==x.as&&Z!==x.indexAs){if(Z===x.itemsIndexAs)return X1(Q,x.indexAs);var y=X1(x.parentSignalProxy,Z).getChangeRecordSignal([]);Z=_.HB(void 0,void 0,"T21Pqc");var E=new Zi(Z);Q.effect(function(){var P=y();E.notifyPath(aW(P.path),{value:P.value})});
return E}});
x.parentSignalProxy.childSignalProxies.push(Q);S=npf(x.templateInfo,x.templateInfo.nodeInfoList,Q,{eventListenerHost:x.eventListenerHost,getModel:function(){var Z={};return Object.assign({},EDQ(x),(Z[x.as]=Q.model[x.as],Z[x.indexAs]=Q.model[x.indexAs],Z[x.itemsIndexAs]=Q.model[x.indexAs],Z))},
hasInsertionPoint:x.templateInfo.hasInsertionPoint,thisCtx:x.eventListenerHost,methodInvocationRequirement:$Zd,enabledSignal:x.stampingEnabled}).root;L={root:S,children:[],signalProxy:Q};S=_.O(S.childNodes);for(var J=S.next();!J.done;J=S.next())L.children.push(J.value);S=(S=x.instances[D+1])?S.children[0]:x;(0,_.HP)((0,_.HP)(x).parentNode).insertBefore(L.root,S);x.instances[D]=L},EDQ=function(x){if((x=x.parentSignalProxy.model)&&!x.hostElement){var L={},D;
for(D in x)x.hasOwnProperty(D)&&(L[D]=x[D]);return L}};
EB.prototype.itemForElement=function(x){var L=this,D=this.instances.find(function(S){return S.children.includes(x)});
if(D)return AI(this.parentSignalProxy.owner,function(){return D.signalProxy.getWithPath([L.as])})};
EB.prototype.indexForElement=function(x){var L=this.instances.findIndex(function(D){return D.children.includes(x)});
return L>=0?L:void 0};
_.J3.Object.defineProperties(EB.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var x=this;return AI(this.parentSignalProxy.owner,function(){return J1C(x).getWithPath([])})},
set:function(x){KdH(this,x)}},
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}}});
_.J3.Object.defineProperties(EB,{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",EB);var MUh,dG2;_.MP=new _.vx("STATE_STORE_TOKEN");MUh=new _.vx("SELECT_TOKEN");dG2=new _.vx("DISPATCH_TOKEN");var fI3={getSelectFn:function(){var x;return(x=_.yY().resolve(_.ZN(MUh)))!=null?x:Afc},
getDispatchFn:function(){var x;return(x=_.yY().resolve(_.ZN(dG2)))!=null?x:_.KI().dispatch.bind(_.KI())},
getAppStore:function(){return _.yY().resolve(_.MP)}},$A3,i5h=!1;var XkN,RpW={traceAllComponents:_.u("web_tracing_all_components"),exportToCsi:_.u("web_tracing_export_to_csi"),exportBreadcrumbs:_.u("web_enable_tracing"),bufferSize:_.dE("web_max_tracing_events"),enabledSpansArray:_.jT("web_tracing_enabled_spans"),exportToDevTools:_.u("web_tracing_export_to_devtools")};XkN=new G2h;var Lnf=function(){};var nMw=void 0;var Pt_=function(){};
Pt_.prototype.hasAttribute=function(x){if(x==="dir")return!1;if(x==="disable-upgrade"){var L,D;return(D=(L=this.hostElement)==null?void 0:L.hasAttribute("disable-upgrade"))!=null?D:!1}throw Error("Wg`"+x);};
Pt_.prototype.attributeChangedCallbackWrapper=function(x,L,D){if(x==="disable-upgrade"&&this.__isUpgradeDisabled&&D===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var S;((S=this.hostElement)!=null?S:this).isConnected&&this.connectedCallback()}else L===D||this.__isReflecting||this.attributeChangedCallback(x,L,D)};
Pt_.prototype.getExtraMethodsToForward=function(){for(var x=this,L=[],D=_.O(jjG),S=D.next(),Q={};!S.done;Q={tagName$jscomp$54:void 0,name$jscomp$598:void 0},S=D.next())Q.name$jscomp$598=S.value,S=void 0,Q.name$jscomp$598==="_setPendingProperty"?(Q.tagName$jscomp$54=this.hostElement.tagName.toLowerCase(),S=function(J){return function(Z,y,E){UY(J.tagName$jscomp$54,Z,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return x._setPendingProperty(Z,y,E)}}(Q)):S=function(J){return function(){return x[J.name$jscomp$598].apply(x,
_.lP(_.Ne.apply(0,arguments)))}}(Q),L.push([Q.name$jscomp$598,
S]);return L};
for(var QvG=fMh(i4W((0,_.As)(Pt_))),Z4s=["disabled","disable-upgrade"],vDh=(0,_.As)(function(){}),VU_=new Set(Object.getOwnPropertyNames(vDh.prototype)),dZp=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.lP(VU_))),IMf=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),jjG=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),hLC=new Set([].concat(_.lP(IMf),_.lP(jjG),_.lP(VU_))),HTC=_.O(hLC),uXB=HTC.next();!uXB.done;uXB=HTC.next())efG.add(uXB.value);var Mb0={created:function(){H5s(this);this.initializeInjection()}};var k9G=!1,dB=window.ShadyDOM,eqp=["appendChild","insertBefore","removeChild","replaceChild"],TSw=[Node];dB&&TSw.push(dB.Wrapper);var BSp,Wnw,$ZO={};var Pp,jO=new Set;var XUc=new Set("context didCallReady is info params signalProxy".split(" ")),n$O="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),tb4="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var gDG=k7({entities:qW0}),kb2=new Qy(gDG);var p6d=function(){return _.er.apply(this,arguments)||this};
_.p(p6d,_.er);_.J3.Object.defineProperties(p6d.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return kb2}}});
_.A([_.RW()],p6d);_.ds=[KJ.prototype,p6d.prototype];_.P9={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var x=this,L={};setTimeout(function(){var D;return _.MF((D=x.hostElement)!=null?D:x,"yt-live-chat-add-tooltip-target",L)},0);
this.handler_=L.handler},
detached:function(){if(this.handler_){var x;this.handler_.removeElementFromSupportingTooltips((x=this.hostElement)!=null?x:this)}this.handler_=null}}};_.ki=new _.vx("ICON_MANAGER_TOKEN");var mGC=[48,20,18,16,15,13,12],gDs=new Map,jjs=new Set,MUf=new Set,Ptc=new Set,EDb=new Set,dG3=new Set,VUc=new Promise(function(x){var L=!1,D=!1,S=!1,Q=[],J=function(Z){if("detail"in Z)if(Z=Z.detail,Z.name==="yt-icons")vDp(Z),L=!0;else if(Z.name==="yt-sys-icons")vDp(Z),D=!0;else{var y;((y=Z.name)==null?0:y.includes("yt-sys-icons"))&&Z.size!==24&&(vDp(Z,!0),Q.push(Z.size),Q.length===mGC.length&&(S=!0))}L&&D&&S&&(window.removeEventListener("iron-iconset-added",J),x())};
window.addEventListener("iron-iconset-added",J)}),HT4=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"]]);_.jZ={};_.jZ.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.SR,computeHref_:function(x,L){L=L===void 0?!1:L;if(!x||x.commandExecutorCommand)return null;var D=yi3(x,L);return L||D!==null?D?_.u("enable_polymer_resin")?_.$z(D).toString():D:null:(_.qy(new _.RZ("computeHref was null",this.is,x)),null)},
computeOptionalHref_:function(x){return this.computeHref_(x,!0)},
computeNofollow_:function(x){return x?x10(x)?"nofollow":null:null},
computeIcon_:function(x){return x&&x.iconType?_.gB(x.iconType):""},
resolveCommand:function(x,L,D){L=L===void 0?{}:L;return _.mA(x,this.hostElement,L,D===void 0?!1:D)}};var YNC,v9;_.bTR={};YNC=null;
v9={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_=v5f(this.viewroot));_.xi(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var x=this;this.unobserve_();if(_.u("kevlar_vimio_use_shared_monitor"))YN4(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 L=[];this.visibilityOptionVisible_&&L.push(this.visibilityObserver.observe(this.hostElement,function(){return x.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&L.push(this.visibilityObserver.observe(this.hostElement,function(){return x.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&L.push(this.visibilityObserver.observe(this.hostElement,function(){return x.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=L}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){kb3(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 x=_.rk(this.parentNode,function(D){var S,Q=(S=D.polymerController)!=null?S:D;return!!Q.getVisibilityObserverForChild&&Q.getVisibilityObserverForChild()},!0);
if(x){var L;this.localVisibilityObserver_=((L=x.polymerController)!=null?L:x).getVisibilityObserverForChild()}else YNC||(YNC=v5f()),this.localVisibilityObserver_=YNC;return this.localVisibilityObserver_},visibilityCallback:function(x){x?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.u("kevlar_use_vimio_behavior")||(v9={});v9&&!_.u("kevlar_use_vimio_behavior")&&(delete v9.attached,delete v9.detached);_.bTR.YtVisibilityObserverBehavior=[v9];var FdC={};FdC.YtVisualElementBehavior=[_.bTR.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.u("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.u("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var x=this.getScreenLayer&&this.getScreenLayer(),L=this.getVisibilityLogger();L&&L.reportShown(this,void 0,x)}},
onHidden:function(){if(_.u("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.u("kevlar_vimio_use_shared_monitor")){var x=this.getScreenLayer&&this.getScreenLayer(),L=this.getVisibilityLogger();L&&L.reportHidden(this,void 0,x)}},
getVisibilityLogger:function(){return _.u("kevlar_use_vimio_behavior")?_.Yi():null},
shouldSkipLogging:function(){if(_.$6("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var x=this.getParentRenderer&&this.getParentRenderer();if(!x)return!1;var L,D=(L=x.polymerController)!=null?L:x;if(!D.data)return!1;x=this.data.trackingParams;x=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:x;var S;L=(S=D.data)==null?void 0:S.trackingParams;var Q,J;L=((Q=D.data)==null?0:Q.loggingDirectives)?(J=D.data)==null?void 0:J.loggingDirectives.trackingParams:L;return x&&L&&x===
L}}];var TC0=new Map,li;var ZMb=function(x){this.layer=x},vF=function(x){return x.layer!==void 0?x.layer:x.parent?vF(x.parent):x.layer=0};var UGn;_.c={};UGn=0;_.c.YtRendererBehavior=[_.jZ.YtComponentBehavior,FdC.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_:_.u("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var x,L;(L=(x=this.monitorScrollElement)!=null?x:this.hostElement)==null||L.removeEventListener("scroll",_.p$(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();Fd4(this.hostElement);W4W(_.tY(),this.hostElement);Qa.delete(this.hostElement)},
registerRenderer:function(x){var L;((L=x.polymerController)!=null?L:x).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(x),this.markDirty())},
unregisterRenderer_:function(x){this.useVimio_||(this.childCache_.delete(x),this.markDirty())},
attached:function(){var x=this,L=this.getParentRenderer();if(L){var D,S,Q;(S=(D=(Q=L.polymerController)!=null?Q:L).registerRenderer)==null||S.call(D,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var J,Z;(Z=(J=this.monitorScrollElement)!=null?J:this.hostElement)==null||Z.addEventListener("scroll",_.p$(this,this.onScroll))}_.WW.addJob(function(){eLh(x.hostElement)},8);
D=new ZMb(this.screenLayer||void 0);(L=Qa.get(L))&&L.layerNode&&(D.parent=L.layerNode);L={};IFw(this.hostElement,(L.isRenderer=!0,L.layerNode=D,L[yWO]=this.data,L))},
getParentRenderer:function(){for(var x=this.hostElement.parentNode,L,D;x&&((L=Qa.get(x))==null||!L.isRenderer)&&!((D=x.polymerController)!=null?D:x).isRenderer_;)x=x.parentNode||x.host;return x},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.u("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.rO("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.u("debug_web_ve_data")&&this.data.trackingParams){var x="";try{x=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(D){_.BI(D)}if(x){var L=Y4n(x,1);L!==void 0&&(this.hostElement.dataset.veIndex=String(L));x=Y4n(x,2);
x!==void 0&&(this.hostElement.dataset.ve=String(x))}}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,_.u("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.CI(this.data.loggingDirectives.trackingParams)),this.visualElement=_.Ff(_.sk(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var x=this.data.targetId;_.Af_(_.tY(),x,this.hostElement)}else W4W(_.tY(),this.hostElement)},
onScroll:function(){var x=Date.now();x-this.lastHandledScroll_<50||(this.lastHandledScroll_=x,this.markDirty())},
markDirty:function(){_.u("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():w63(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var x=this.getParentRenderer();if(x&&(x=Qa.get(x))&&x.layerNode)return vF(x.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.lP(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var x=0;x<this.data.impressionEndpoints.length;x++)this.sendImpression(this.data.impressionEndpoints[x]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(x){x.clickTrackingParams&&delete x.clickTrackingParams;var L,D;(x==null?0:(L=x.commandMetadata)==null?0:(D=L.webCommandMetadata)==null?0:D.sendPost)?_.jq(this.hostElement,[x,{impression:!0}]):_.v$(this.hostElement,[x],this.hostElement)},
logExplicitClick:function(x){var L=_.A3(this.getScreenLayer());if(L){var D,S=(D=x.polymerController)!=null?D:x;x=S.visualElement;S=S.trackingParams||S.clickTrackingParams;!x&&S&&(x=_.CI(S));x&&_.L7(L,x)}}}];var sj_={},V$=function(){return _.er.apply(this,arguments)||this};
_.p(V$,_.er);V$.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
V$.prototype.onPdgItemBehaviorClick=V$.prototype.onPdgItemBehaviorClick;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],V$.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],V$.prototype,"data",void 0);_.A([_.mX("click"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],V$.prototype,"onPdgItemBehaviorClick",null);_.A([_.RW()],V$);sj_.YtPdgLiveChatItemBehavior=[V$.prototype,_.c.YtRendererBehavior];var TCA;var eL2;_.hz={};_.hz.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var H9=function(){var x=OK.apply(this,arguments)||this;x.switchTemplateAtRegistration=!1;return x};
_.p(H9,OK);H9.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||A1p(this),_.P$n(this,"doRender"),this.doRender())};
H9.prototype.debounceRender=function(){this.templatingFn&&_.LI(this,"doRender",this.doRender)};
H9.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.BI(Error("fh"))};
H9.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.A([co4()],H9);var RL2=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,ur={},iTs=(ur[1]={filterString:null,isUnwrappable:null,unwrap:null},ur[2]={filterString:function(x,L,D){return vX(D)},
isUnwrappable:function(x){return x instanceof oN},
unwrap:function(x){return Xs(x)}},ur[3]={filterString:function(x,L,D){return RL2.test(D)?D:Aw.toString()},
isUnwrappable:function(x){return U5(x)},
unwrap:function(x){return _.w8(x)}},ur[4]={filterString:function(){return Aw.toString()},
isUnwrappable:function(x){return x instanceof s5},
unwrap:function(x){return _.RN(x).toString()}},ur[5]={filterString:function(x,L,D){return D},
isUnwrappable:function(x){return typeof x==="string"},
unwrap:function(x){return x.toString()}},ur[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(x){return x instanceof _.LZ},
unwrap:function(x){return dTs(x)}},ur[8]={filterString:function(x,L,D){D=String(D).toLowerCase();
return YUb(x,L,D)?D:"zClosurez"},
isUnwrappable:null,unwrap:null},ur[10]={filterString:null,isUnwrappable:null,unwrap:null},ur);Kh[im["default"]]=oDN;var ay4=[];(function(){var x=QN;QN=function(L){x==null||x(L);Wp(function(){for(var D=0;D<L.length;D++)zL4(L[D])})}})();var Gbr=function(){var x=_.er.apply(this,arguments)||this;x.hasUnmounted=!1;return x};
_.p(Gbr,_.er);_.K=Gbr.prototype;_.K.beforeRegister=function(){var x=this.doIdomRender;this.templatingFn?_.BI(Error("eh")):(this.templatingFn=x,this.switchTemplateAtRegistration=!0,NC3(this))};
_.K.attached=function(){};
_.K.detached=function(){zL4(this.hostElement)};
_.K.renderIdom=function(){throw Error("hh");};
_.K.doIdomRender=function(){var x=this;gc3(this.hostElement,function(){x.renderIdom()})};
_.A([_.RW()],Gbr);var CtQ=[H9.prototype,Gbr.prototype];var lyH,UGi=function(){return lyH!==void 0?lyH:lyH=document.createElement("template")};
document.head.appendChild(UGi().content);var w62;var BCh,Wdr=function(){return BCh!==void 0?BCh:BCh=document.createElement("template")};
document.head.appendChild(Wdr().content);var qNC;var A1h=document.head,$Gh=A1h.appendChild,r1A;if(qNC===void 0){var NC2=document.createElement("template");_.m(NC2,"\x3c!--css-build:shady--\x3e");NC2.content.insertBefore(Wdr().content.cloneNode(!0),NC2.content.firstChild);qNC=NC2}r1A=qNC;$Gh.call(A1h,r1A.content);var iTG,fyW=function(){return iTG!==void 0?iTG:iTG=document.createElement("template")};
document.head.appendChild(fyW().content);var oDB;var ayC=document.head,zLC=ayC.appendChild,X6d;if(oDB===void 0){var c1i=document.createElement("template");_.m(c1i,"\x3c!--css-build:shady--\x3e");c1i.content.insertBefore(fyW().content.cloneNode(!0),c1i.content.firstChild);oDB=c1i}X6d=oDB;zLC.call(ayC,X6d.content);var nDQ=document.head,tU2=nDQ.appendChild,xs2;if(w62===void 0){var LLH=document.createElement("template");_.m(LLH,"\x3c!--css-build:shady--\x3e");LLH.content.insertBefore(UGi().content.cloneNode(!0),LLH.content.firstChild);w62=LLH}xs2=w62;tU2.call(nDQ,xs2.content);var DsQ,SER=function(){return DsQ!==void 0?DsQ:DsQ=document.createElement("template")};
document.head.appendChild(SER().content);var Qod;_.Dt=new _.vx("DARK_THEME_TOKEN");var Bx0=new _.jp("accessibilityProperties");var wQ0=new _.jp("layoutProperties");var WL0=new _.jp("imageType");var JhA={};if("ytAttributedStringLinkHoverColor"in JhA)throw Error("kh`ytAttributedStringLinkHoverColor");(function(x,L){JhA[x]="value"in L&&"unit"in L?LLf(x,L):function(D){try{return L(D)}catch(S){throw Error("ih`"+x+"`"+S.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var KLC=function(x){var L=this;this.holdTime=x===void 0?500:x;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(D){var S=new CustomEvent("LONG_PRESS"),Q;(Q=D.changedTouches[0].target)==null||Q.dispatchEvent(S)};
this.ontouchstart=function(D){L.longPressTimeout=_.VG(_.WW,function(){L.onlongpress(D);L.longPressOccurred=!0},L.holdTime)};
this.ontouchmove=function(){_.WW.cancelJob(L.longPressTimeout);L.longPressTimeout=NaN;L.longPressOccurred=!1;L.moveOccurred=!0};
this.ontouchend=function(D){if(L.longPressTimeout&&!L.longPressOccurred&&!L.moveOccurred){var S;(S=D.changedTouches[0].target)==null||S.dispatchEvent(new Event("click"))}_.WW.cancelJob(L.longPressTimeout);L.longPressTimeout=NaN;L.longPressOccurred=!1;L.moveOccurred=!1}};var HR0=function(x,L){KLC.call(this,L);var D=this;this.callback=x;this.onlongpress=function(S){var Q;(Q=D.callback)==null||Q.call(D,S)}};
_.p(HR0,KLC);var uS3=function(x,L){var D=Object.assign({},L);x=_.O(new Map([["ontouchstart",x.ontouchstart],["ontouchend",x.ontouchend],["ontouchmove",x.ontouchmove]]));for(var S=x.next(),Q={};!S.done;Q={eventName$jscomp$101:void 0,eventHandler$jscomp$1:void 0},S=x.next()){var J=_.O(S.value);S=J.next().value;J=J.next().value;Q.eventName$jscomp$101=S;Q.eventHandler$jscomp$1=J;L[Q.eventName$jscomp$101]=function(Z){return function(y){var E;(E=D[Z.eventName$jscomp$101])==null||E.call(D,y);(0,Z.eventHandler$jscomp$1)(y)}}(Q)}};_.E2=new _.vx("COMMAND_HANDLER_TOKEN");var SEw=new _.jp("parallelCommand");var KL4=new _.jp("performOnceCommand");var Jh0=new _.jp("serialCommand");var OR0=void 0;var ORW=function(){this.data=[];this.consumer=null};
ORW.prototype.push=function(x){this.consumer?this.consumer(x):this.data.push(x)};var xc={};_.HB(xc,void 0,"sgPmTd");_.HB(null,void 0,"jypsq");_.HB(null,void 0,"mWiOof");var jyN=new ORW;var joG=[K_H,O22,Z2R,Ih_,yr2,JrR,EH2,MWR];var l_4=new _.jp("bracketTextDecorator");var xO=new _.jp("highlightTextDecorator");_.QO=new _.vx("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var Tx3=function(){},ZRG;
(ZRG=window.requestIdleCallback)==null||ZRG.bind(window);var R2w={calledOnce:!1,state:"visible"},e2s={calledOnce:!1,state:"hidden"};var yhr=new _.vx("ICON_WIZ_COMPONENT_TOKEN");_.YO=_.B(function(x){var L=x.icon;var D=x.active;var S=x.className;var Q=x.style;var J=x.dataSelected;var Z=x.dataDisabled;var y=x.role;var E=x.animateIcon;var P=x.themeOverride;var v=x.ariaHidden;var V=x.ariaExpanded;var h=x.ariaLabel;var H=x.tabindex;var k=x.id;var T=x.size;var G=x.iconFilter;var U=x.onKeydown;return _.M(_.d,{cond:L,then:function(){var l=_.yY().resolve(yhr);return _.M(l,{icon:L,dataSelected:J,dataDisabled:Z,animateIcon:E,themeOverride:P,ariaExpanded:V,tabindex:H,id:k,active:D,size:T,
role:y,className:S,ariaHidden:v,ariaLabel:h,style:function(){return Q!=null&&Q()||T==null||!T()?Q==null?void 0:Q():"width: "+(T==null?void 0:T())+"px;height: "+((T==null?void 0:T())+"px;")},
iconFilter:G,onKeydown:U})}})},"k");
_.YO.idomCompat={callbacks:{onKeydown:!0}};var LTN=window.devicePixelRatio||1;var JF4=new Map([["yt_outline_bag_black_24","bag"]]);var gs=function(x){var L=this;this.margin=.1;this.whenInViewportWithMargin=x;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){L.requestScan()});
window.addEventListener("touchend",function(){L.requestScan()});
window.addEventListener("updateui",function(){L.requestScan()});
var D=new _.zR((0,_.e1)(this.requestScan,this),100);window.addEventListener("scroll",function(){D.fire()},!0);
window.addEventListener("resize",(0,_.e1)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){L.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.e1)(this.requestScan,this))};
gs.prototype.observe=function(x){this.observationTargets.includes(x)||this.observationTargets.push(x)};
gs.prototype.unobserve=function(x){this.observationTargets=this.observationTargets.filter(function(L){return L!==x})};
gs.prototype.requestScan=function(){var x=this;this.scanRequested||(Wp(function(){I_R(x)}),this.scanRequested=!0)};
var I_R=function(x){var L=(1+x.margin)*(document.documentElement.clientHeight||window.innerHeight);x.observationTargets=x.observationTargets.filter(function(D){var S=D.getBoundingClientRect();(S=L>S.top&&!!S.height)&&x.whenInViewportWithMargin(D);return!S&&D.parentNode});
x.scanRequested=!1};
gs.prototype.disconnect=function(){this.observationTargets=[]};var EmG,dsQ;EmG=_.O(_.HB(I24(),void 0,"O3X2wd"));_.MJh=EmG.next().value;dsQ=EmG.next().value;window.addEventListener("resize",function(){dsQ(I24())});var PKH={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},jor=void 0,vmr=window.innerWidth,VJh=window.innerHeight;window.addEventListener("resize",function(){jor=void 0});var h2_;if("IntersectionObserver"in window)h2_=dHb();else{if(jor===void 0){var HRA;HRA="matchMedia"in window?window.matchMedia(PKH.landscape+","+PKH.portrait).matches:void 0;jor=HRA!==void 0?HRA:vmr>=930&&VJh>=550||vmr>=550&&VJh>=930}h2_=jor?{observe:function(x){Wp(function(){var L;(L=x.onViewportEntered)==null||L.call(x)})},
unobserve:function(){}}:new gs(function(x){Wp(function(){var L;
(L=x.onViewportEntered)==null||L.call(x)})})}var Eyf=h2_;var uS2=_.B(function(x){var L=!1,D=_.x3("img",function(S){_.wH(function(){L=!0;S.onload=null})});
_.Us(function(){var S,Q=(S=x.data)==null?void 0:S.call(x),J,Z=(J=x.getSrc)==null?void 0:J.call(x).cb,y;S=(y=x.config)==null?void 0:y.call(x);if(y=D.value)if(J=function(P,v){if(!L)return Z?Z(P,v):P},vyO(y,S),_.u("web_image_dont_reload_same_src")&&jLb(y,Q,J))_.u("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 E;Pb0(y,Q||null,J,S,(E=x.lazy)==null?void 0:E.call(x))}},"zS0jKb");
return _.M("img",{el:D})},"m");
uS2.idomCompat=!0;_.Ku=_.B(function(x){var L=function(){var D,S=x.data(),Q,J,Z,y,E,P,v,V,h,H,k,T,G,U,l,X,f,N,z,xf,K3,P4,kf,H4,p3,w0,Rn,lG,xX;var UR={contentMode:(Q=x.contentMode)==null?void 0:Q.call(x),loadedClass:(J=x.loadedClass)==null?void 0:J.call(x),isPreloaded:(Z=x.isPreloaded)==null?void 0:Z.call(x),notifyOnLoaded:(y=x.notifyOnLoaded)==null?void 0:y.call(x),notifyOnUnloaded:(E=x.notifyOnUnloaded)==null?void 0:E.call(x),preferredThumbnail:(P=x.preferredThumbnail)==null?void 0:P.call(x),preserveHeight:(v=x.preserveHeight)==
null?void 0:v.call(x),preserveWidth:(V=x.preserveWidth)==null?void 0:V.call(x),objectPosition:(h=x.objectPosition)==null?void 0:h.call(x),targetWidth:(H=x.targetWidth)==null?void 0:H.call(x),targetHeight:(k=x.targetHeight)==null?void 0:k.call(x),shouldShowPlaceholder:(T=x.shouldShowPlaceholder)==null?void 0:T.call(x),useWidth:(G=x.useWidth)==null?void 0:G.call(x),isToggled:(U=x.isToggled)==null?void 0:U.call(x),alt:(l=x.alt)==null?void 0:l.call(x),className:(X=x.className)==null?void 0:X.call(x),
onerror:x.onerror,onload:x.onload,style$:((f=x.style$)==null?void 0:f.call(x))||((N=x.style)==null?void 0:N.call(x)),color:(z=x.color)==null?void 0:z.call(x),width:(xf=x.width)==null?void 0:xf.call(x),height:(K3=x.height)==null?void 0:K3.call(x),"aria-hidden$":(lG=(P4=x["aria-hidden$"])==null?void 0:P4.call(x))!=null?lG:(kf=x.ariaHidden)==null?void 0:kf.call(x),draggable:(H4=x.draggable)==null?void 0:H4.call(x),"data-disabled$":(xX=(p3=x["data-disabled$"])==null?void 0:p3.call(x))!=null?xX:(w0=x.dataDisabled)==
null?void 0:w0.call(x),size:(Rn=x.size)==null?void 0:Rn.call(x)};return Hg4(S,UR,(D=x.hideOn404)==null?void 0:D.call(x))};
return _.M(_.GS,null,_.M(_.TS,{when:function(){var D;return((D=L())==null?void 0:D.type)==="image"}},function(){return _.M(uS2,{data:function(){return L().image},
getSrc:{cb:function(D,S){var Q=L().image.sources,J=L().config.isPreloaded,Z=L().config.useWidth,y=L().config.targetWidth,E=L().config.targetHeight,P=L().config.preferredThumbnail;return _.DH3(S,Q,J,Z,y,E,P)||""}},
config:function(){var D=L().config,S;for(S in D)D[S]===void 0&&delete D[S];return D},
lazy:x.renderLazy})}),_.M(_.TS,{when:function(){var D;
return((D=L())==null?void 0:D.type)==="icon"}},function(){return _.M(_.YO,{icon:function(){return L().iconName},
role:function(){return L().config.role},
className:function(){return L().config.className},
style:function(){return L().config.style$+";width: "+(L().config.width+"px;height: ")+(L().config.height+"px;color: ")+(L().config.color+";")},
ariaLabel:function(){return L().config["aria-label$"]},
ariaHidden:function(){return L().config["aria-hidden$"]},
dataDisabled:function(){return L().config["data-disabled$"]},
active:function(){return L().config.isToggled},
size:function(){return L().config.size}})}))},"n");
_.Ku.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var gmH=function(x){return function(L){return _.M(WBb,null,function(){var D=L.data(),S=_.WB(L.config);return _.M(QB,null,function(){return void x(D,S)})})}}(mHp),kH0=_.B(function(x){var L=function(S){var Q,J=_.Zt(function(h){Q=BB(function(){for(var H=_.O(v()),k=H.next();!k.done;k=H.next()){k=bgf(k.value);
k=typeof k==="string"?document.createTextNode(k):k;if(!(k instanceof Node)){H=new _.RZ("Part is not a node",k,typeof k);_.BI(H);break}h.appendChild(k)}})}),Z=yO(function(){return Ahb(S())},{isEqual:gyp}),y=_.ZH(x.config),E=function(){var h,H=Z();
return!((h=y())==null||!h.ariaLabel)||!(H.commandRuns&&H.commandRuns.length!==0||H.paragraphStyleRuns&&H.paragraphStyleRuns.length!==0)},P=yO(y,{isEqual:FT3}),v=function(){var h=qEs(Z(),P());
rhO(h,P());return Z().content?z2O(Z().content,h).parts:[]},V=!0;
_.Us(function(){Z();P();if(V)V=!1;else{var h=v();Promise.resolve().then(function(){var H=J.value;if(H){H.innerText="";var k;(k=Q)==null||k();Q=_.lf(H,function(){return _.M(YAp,{parts:h})},"o")}})}},"YlhjWd");
return _.M("span",{el:J,class:function(){return Z()&&bRw(Z(),y())},
dir:function(){var h;return((h=y())==null?0:h.userInput)?"auto":void 0},
"aria-label":function(){var h;return E()?(h=y())==null?void 0:h.ariaLabel:void 0},
role:function(){return E()?"text":void 0}})},D;
return((D=x.config)==null?0:D.renderedFromFormattedString)?L(x.text):_.M(_.d,{cond:x.text,then:L})},"q");
kH0.idomCompat=!0;_.kP=_.B(function(x){var L=_.ZH(x.text),D=sLN(x);x.renderedFromFormattedString!==void 0&&(D.renderedFromFormattedString=!0);return _.u("attr_string_reactive")?_.M(kH0,{text:L,config:D}):_.M(_.d,{cond:function(){var S;return L()&&((S=Ahb(L()))==null?void 0:S.content)},
then:function(){return _.M(gmH,{data:x.text,config:D})},
debugInstance:"Apcuac"})},"r");
_.kP.idomCompat=!0;var UHO="";A3b({beforeVisit:function(x){x.type.TAG_NAME&&(UHO=x.type.TAG_NAME)},
afterRender:function(x,L){var D;UHO=(D=L==null?void 0:L.type)!=null?D:""},
didPatch:function(){UHO=""}});var Tm0=function(x,L,D){L=L===void 0?"unknown":L;D=D===void 0?{}:D;_.RZ.call(this,x+" ("+L+")",Object.assign({},{name:"YtWcwError",tagName:L},D));Object.setPrototypeOf(this,this.constructor.prototype)};
_.p(Tm0,_.RZ);_.Mj=new WeakMap;_.EI=!1;var l2b,w1c,Cb3;_.pJ=Symbol("mh");_.Il=Symbol("nh");l2b=Symbol("oh");w1c=new Set(Object.getOwnPropertyNames(Element.prototype));Cb3=Symbol("ph");var kI2=_.B(function(x){return _.M("yt-attributed-string",{"aria-label":x.ariaLabel,hidden:x.hidden,id:x.id,class:x.className,"force-default-style":x.forceDefaultStyle},_.M(_.kP,{text:x.data,ariaLabel:x.ariaLabel,ellipsisTruncate:x.ellipsisTruncate,isOverlay:x.isOverlay,linkInheritColor:x.linkInheritColor,noPreWrap:x.noPreWrap,noWrap:x.noWrap,userInput:x.userInput,noEndpoints:x.noEndpoints,headerRuns:x.headerRuns,isHeadline:x.isHeadline}))},"s");
_.u("web_wiz_attributed_string")&&_.dF(kI2,"yt-attributed-string",{props:{ariaHidden:_.pJ,ariaLabel:_.pJ,className:_.pJ,ellipsisTruncate:_.pJ,isOverlay:_.pJ,linkInheritColor:_.pJ,noEndpoints:_.pJ,noStyleRuns:_.pJ,noLinkColor:_.pJ,noPreWrap:_.pJ,noWrap:_.pJ,skipOnClick:_.pJ,userInput:_.pJ,headerRuns:_.pJ,isHeadline:_.pJ,id:_.pJ,data:_.pJ,hidden:_.pJ,forceDefaultStyle:_.pJ,text:_.Il,disableUpgrade:_.Il,disable:_.Il,slot:_.Il}});var ml=function(){return _.e.apply(this,arguments)||this};
_.p(ml,_.e);ml.prototype.renderIdom=function(){this.data&&!this.disable&&(this.config={ariaLabel:this.hostElement.ariaLabel,ellipsisTruncate:this.ellipsisTruncate,isOverlay:this.isOverlay,linkInheritColor:this.linkInheritColor,noPreWrap:this.noPreWrap,noWrap:this.noWrap,userInput:this.userInput,noEndpoints:this.noEndpoints,headerRuns:this.headerRuns},mHp(this.data,this.config))};
_.A([_.b(CtQ),_.r("design:type",Object)],ml.prototype,"ytIdomTemplatingBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],ml.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],ml.prototype,"ariaLabel",void 0);_.A([_.F(),_.r("design:type",Boolean)],ml.prototype,"disable",void 0);_.A([_.F(),_.r("design:type",Boolean)],ml.prototype,"ellipsisTruncate",void 0);_.A([_.F(),_.r("design:type",Boolean)],ml.prototype,"isOverlay",void 0);
_.A([_.F(),_.r("design:type",Boolean)],ml.prototype,"linkInheritColor",void 0);_.A([_.F(),_.r("design:type",Boolean)],ml.prototype,"noPreWrap",void 0);_.A([_.F(),_.r("design:type",Boolean)],ml.prototype,"noWrap",void 0);_.A([_.F(),_.r("design:type",Boolean)],ml.prototype,"userInput",void 0);_.A([_.F(),_.r("design:type",Boolean)],ml.prototype,"noEndpoints",void 0);_.A([_.F(),_.r("design:type",Array)],ml.prototype,"headerRuns",void 0);
_.A([_.oW({is:"yt-attributed-string",disableElementRegistration:!0})],ml);
_.u("web_wiz_attributed_string")||_.q(ml,"yt-attributed-string",function(){if(Qod===void 0){var x=document.createElement("template");_.m(x,"\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");x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);
x.content.insertBefore(SER().content.cloneNode(!0),x.content.firstChild);Qod=x}x=Qod;return x},{mode:2});var pQQ,msC,Nm3;pQQ=function(){this.firstThumbnailLoaded=!1};
_.bRR=function(){msC||(msC=new pQQ);return msC};
Nm3=function(x){var L=_.bRR();L.firstThumbnailLoaded||(L.firstThumbnailLoaded=!0,_.$T("ftl",x))};
pQQ.prototype.reset=function(){this.firstThumbnailLoaded=!1};var WTh=0,rF3=new WeakMap,AF4=0,vD=new Set;var YEQ,FLW=function(){return YEQ!==void 0?YEQ:YEQ=document.createElement("template")};
document.head.appendChild(FLW().content);var soB;var a2f,X1f,br;_.HD=_.Qb.caches;br=function(){};
br.prototype.open=function(x){return _.HD.open(Tx2(x))};
br.prototype.has=function(x){return _.HD.has(Tx2(x))};
br.prototype.delete=function(x){return _.HD.delete(Tx2(x))};
br.prototype.match=function(x,L){var D=this,S,Q,J,Z,y,E;return _.I(function(P){switch(P.nextAddress){case 1:return P.yield(D.keys(),2);case 2:S=P.yieldResult,Q=_.O(S),J=Q.next();case 3:if(J.done){P.jumpTo(5);break}Z=J.value;return P.yield(D.open(Z),6);case 6:return y=P.yieldResult,P.yield(y.match(x,L),7);case 7:if(E=P.yieldResult)return P.return(E);J=Q.next();P.jumpTo(3);break;case 5:return P.return()}})};
var cF4=function(){};
_.p(cF4,br);var Tx2=function(x){if(x.includes(":"))throw Error("sh`"+x);return x+":"+_.TU("CacheStorage get")};
cF4.prototype.keys=function(){var x,L,D,S,Q,J,Z,y,E;return _.I(function(P){if(P.nextAddress==1)return x=[],L=_.TU("CacheStorage keys"),P.yield(_.HD.keys(),2);D=P.yieldResult;S=_.O(D);for(Q=S.next();!Q.done;Q=S.next())J=Q.value,Z=_.oyh(J),y=Z.originalName,E=Z.datasyncId,E===L&&x.push(y);return P.return(x)})};var YP=function(){var x=_.e.apply(this,arguments)||this;x.objectURL=null;x.loadTime=Infinity;return x};
_.p(YP,_.e);_.K=YP.prototype;_.K.renderIdom=function(){f2b(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("vh");this.setConfig();this.config&&Vy0(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.K.objectFitToContentMode=function(x){switch(x){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.K.logThumbnailFailureVe=function(){var x=_.VC(197497);_.B5(_.sk(),x);var L=_.A3();L&&x&&L&&_.t_(L,[x])};
_.K.loadImageFromCacheIfExists=function(x){var L=this,D=x.target;(D==null?0:D.src)&&tyf(D.src).then(function(S){L.objectURL=_.r8(S).toString();L.setSrc(D,L.objectURL)}).catch(function(){})};
_.K.onError=function(x){var L=this;if(_.u("web_use_cache_for_image_fallback")){var D=x.target;D&&tyf(D.src).then(function(S){L.objectURL=_.r8(S).toString();L.setSrc(D,L.objectURL)}).catch(function(){_.u("kevlar_woffle_log_thumbnail_failure_ve")&&L.logThumbnailFailureVe();
_.u("kevlar_woffle_fallback_image")&&L.setSrc(D,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.K.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.K.setConfig=function(){var x=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(L){x.loadImageFromCacheIfExists(L);x.revokeObjectURL();ig3(x.hostElement)},
onerror:function(L){x.onError(L)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.u("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.K.setSrc=function(x,L){L&&(x.src=L)};
_.A([_.b(CtQ),_.r("design:type",Object)],YP.prototype,"ytIdomTemplatingBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],YP.prototype,"data",void 0);_.A([_.F(),_.r("design:type",String)],YP.prototype,"alt",void 0);_.A([_.F(),_.r("design:type",Boolean)],YP.prototype,"ftlEligible",void 0);_.A([_.F(),_.r("design:type",Number)],YP.prototype,"height",void 0);_.A([_.F(),_.r("design:type",Boolean)],YP.prototype,"notifyOnLoaded",void 0);
_.A([_.F(),_.r("design:type",Boolean)],YP.prototype,"notifyOnUnloaded",void 0);_.A([_.F(),_.r("design:type",String)],YP.prototype,"objectFit",void 0);_.A([_.F(),_.r("design:type",String)],YP.prototype,"objectPosition",void 0);_.A([_.F(),_.r("design:type",String)],YP.prototype,"preferredThumbnail",void 0);_.A([_.F(),_.r("design:type",Boolean)],YP.prototype,"preserveHeight",void 0);_.A([_.F(),_.r("design:type",Boolean)],YP.prototype,"preserveWidth",void 0);
_.A([_.F({value:!0}),_.r("design:type",Boolean)],YP.prototype,"useWidth",void 0);_.A([_.F({value:function(){return!_.rO("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.r("design:type",Boolean)],YP.prototype,"shouldRenderLazy",void 0);_.A([_.F(),_.r("design:type",Number)],YP.prototype,"width",void 0);_.A([_.oW({is:"yt-image",disableElementRegistration:!0})],YP);
_.q(YP,"yt-image",function(){if(soB===void 0){var x=document.createElement("template");_.m(x,"\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");x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);x.content.insertBefore(FLW().content.cloneNode(!0),x.content.firstChild);
soB=x}x=soB;return x},{mode:2});var FW=function(){return _.e.apply(this,arguments)||this};
_.p(FW,_.e);FW.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var x=_.fI(this.data.onVisibleCommand);x&&this.ytComponentBehavior.resolveCommand(x)}};
_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],FW.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],FW.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.hz.YtVisibilityBehavior),_.r("design:type",Object)],FW.prototype,"ytVisibilityBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],FW.prototype,"data",void 0);_.A([_.oW({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],FW);
_.q(FW,"yt-bumper-user-edu-content-view-model",function(){if(eL2===void 0){var x=document.createElement("template");_.m(x,'\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>');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;TCA===void 0&&(TCA=document.createElement("template"));var S=TCA;D.call(L,S.content.cloneNode(!0),x.content.firstChild);eL2=x}x=eL2;return x},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var e2G;var R2R,GIi=function(){if(R2R!==void 0)return R2R;var x=document.createElement("template");_.m(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-creator-goal-progress-flow-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_creator_goal_progress_flow_view_model.yt.creator.goal.progress.flow.view.model.css.js--\x3e<div id="header" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <div id="avatar-images" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-image id="creator-thumbnail" data="[[creatorGoalState.authorPhoto]]" height="60" preserve-height="" preserve-width="" width="60" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n    <yt-image id="goal-icon" data="[[targetIconThemedImage]]" height="60" preserve-height="" preserve-width="" width="60" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n  </div>\n  <div id="countdown-info" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-attributed-string id="goal-timer-description" data="[[creatorGoalState.goalHeadlineText]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n    <template is="dom-if" if="[[shouldShowCountdown]]" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <yt-countdown class-name="[[is]] countdown" target-timestamp="[[endTimestamp]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-countdown>\n    </template>\n  </div>\n  <yt-attributed-string id="goal-subheader-info" data="[[creatorGoalState.goalSubheaderText]]" hidden$="[[isGoalActive]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <yt-image id="background-image" data="[[creatorGoalState.goalHeaderBackgroundImage]]" height="100" width="100" class="style-scope yt-creator-goal-progress-flow-view-model">\n  </yt-image>\n</div>\n<div id="content" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <yt-attributed-string id="goal-target" data="[[creatorGoalState.goalTargetText]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <yt-attributed-string id="goal-description" data="[[creatorGoalState.goalDescription]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <div id="goal-progress-info" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-image id="sc-tier-image" data="[[creatorGoalState.superChatTierImage]]" height="32" preserve-height="" preserve-width="" width="32" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n    <div id="goal-numbers" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <div id="current-goal-number" class="style-scope yt-creator-goal-progress-flow-view-model">[[creatorGoalState.currentGoalCount]] </div>\n      <div id="goal-number-separator" class="style-scope yt-creator-goal-progress-flow-view-model">/ </div>\n      <div id="target-goal-number" class="style-scope yt-creator-goal-progress-flow-view-model"> [[creatorGoalState.totalGoalCount]]</div>\n    </div>\n    <div id="progress-bar-container" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <div id="progress-bar-progress" class="style-scope yt-creator-goal-progress-flow-view-model">\n      </div>\n    </div>\n  </div>\n</div>\n<div id="footer" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <div id="progress-button" class="style-scope yt-creator-goal-progress-flow-view-model"></div>\n</div>\n');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;e2G===void 0&&(e2G=document.createElement("template"));var S=e2G;D.call(L,S.content.cloneNode(!0),x.content.firstChild);return R2R=x};var CKW;_.sB={};CKW=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"]);_.sB.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var x=this.getContext_();return x?x.getTaskManager():_.WW},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var x=_.MF(this.hostElement,"yt-get-context-provider",{});x.detail&&x.detail.contextProvider?this.cachedProviderNode_=x.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return CKW.has(this.hostElement.localName)},
getNetworkManager:function(){var x=this.getContext_();if(x)return x.getNetworkManager()}};var Jln,l_C,wQA,Us_;_.TZ=function(x){var L=l_C.get(x);if(L&&(L=L.pop()))return Us_++,L;wQA++;try{var D=document.createElement(x)}catch(S){throw new _.RZ("ElementPool failed to create element",x,S.message);}return D};
Jln=function(x){var L=x.is;if(L){var D=l_C.get(L);D||(D=[],l_C.set(L,D));var S=_.$6("ELEMENT_POOL_CONFIG")||{};D.length>=(S[L]!==void 0?S[L]:_.$6("ELEMENT_POOL_DEFAULT_CAP",0))||D.push(x)}else _.qy(new _.RZ("Element pool should only handle custom elements:",x.nodeName))};
l_C=new Map;wQA=0;Us_=0;var uc=new WeakMap,QXc=new WeakMap;var WLA;_.eZ=function(x,L,D){D=D===void 0?_.RP():D;this.JSC$13814_defaultPriority=x;this.signal=L;this.scheduler=D;this.nextJobDescriptor=0;this.JSC$13814_parkedJobs=[];this.scheduledJobs=new Map};
_.RU=function(x,L){if(L){var D=_.jP();x.signal&&!_.vy(D,x.signal)?(D.addListener(x.signal,function(){x.processSignal()}),x.JSC$13814_parkedJobs.push({job:L,
priority:void 0})):BxW(x,L)}};
WLA=function(x,L){if(L!==x.JSC$13814_defaultPriority){x.JSC$13814_defaultPriority=L;for(var D=_.O(x.scheduledJobs.values()),S=D.next();!S.done;S=D.next())S=S.value,x.scheduler.cancelJob(S.jobId),S.jobId=x.scheduler.addJob(S.jobWrapper,L)}};
_.eZ.prototype.flushJobs=function(){WLA(this,10);this.processSignal()};
_.eZ.prototype.cancel=function(){for(var x=_.O(this.scheduledJobs),L=x.next();!L.done;L=x.next()){var D=_.O(L.value);L=D.next().value;D=D.next().value;this.scheduler.cancelJob(D.jobId);this.scheduledJobs.delete(L)}this.JSC$13814_parkedJobs=[]};
_.eZ.prototype.processSignal=function(){for(var x=_.O(this.JSC$13814_parkedJobs),L=x.next();!L.done;L=x.next())L=L.value,BxW(this,L.job,L.priority);this.JSC$13814_parkedJobs=[]};
var BxW=function(x,L,D){D=D||x.JSC$13814_defaultPriority;if(D===10)VO(L);else{var S=x.nextJobDescriptor++,Q=function(){L();x.scheduledJobs.delete(S)},J=x.scheduler.addJob(Q,D);
x.scheduledJobs.set(S,{jobWrapper:Q,jobId:J,priority:D})}};var qEG;_.GZ={};qEG={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.GZ.YtRendererstamperBehavior=[_.sB.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 x in this.stampDom){var L=this.stampDom[x];L&&L.id&&this.addReactiveSchema({type:"observe",method:{methodName:Lbw(L.id),args:[{type:"wildcard",path:x}]}})}else{(x=(this.constructor.generatedFrom||this).observers)||(x=[]);for(L in this.stampDom){var D=this.stampDom[L];D&&D.id&&x.push(Lbw(D.id)+"("+L+".*)")}this.constructor.generatedFrom.observers=x}},
addStampDomObserverFns_:function(){for(var x in this.stampDom){var L=this.stampDom[x];L.id?(this[Lbw(L.id)]=this.rendererStamperObserver_.bind(this,x,L.id),this.hasDataPath_[x]=!1):(L=new _.RZ("Bad rendererstamper config",this.is+":"+x),_.BI(L))}},
rendererStamperObserver_:function(x,L,D){if(D.path==x){if(D.value===void 0&&!this.hasDataPath_[x])return;this.hasDataPath_[x]=D.value!==void 0}this.rendererStamperApplyChangeRecord_(x,L,D)},
rendererStamperApplyChangeRecord_:function(x,L,D){var S=this.renderJobsMap_[L],Q=null;x==D.path?(D=D.value,_.Nf(D)||(D=D===void 0||D===null?[]:[D]),x=this.stampDom[x],x.mapping&&(Q=this.stampDomArray_.bind(this,D,L,x.mapping,x.reuseComponents,x.events,x.stamperStableList)),S&&S.cancel(),D=x.usePageScheduler?this.getTaskManager():void 0,S||x.initialRenderPriority==void 0)?x.renderPriority==void 0||S||(S=new _.eZ(x.renderPriority,x.waitForSignal,D),this.renderJobsMap_[L]=S):(S=new _.eZ(x.initialRenderPriority,
x.waitForSignal,D),this.renderJobsMap_[L]=S,Q=function(J,Z){J();WLA(Z,10)}.bind(this,Q,S)):Q=x+".splices"==D.path?this.stampDomArraySplices_.bind(this,x,L,D.value):this.forwardRendererStamperChanges_.bind(this,x,L,D);
S?_.RU(S,Q):Q()},
forwardRendererStamperChanges_:function(x,L,D){var S=D.path.slice(x.length+1),Q=this.getStampContainer_(L),J=S.indexOf("."),Z=S.substring(0,J),y=!1,E=0,P=parseInt(Z,0);if(Z[0]=="#"){y=parseInt(Z.substring(1),0);P=this.get(x);var v=this.get([x,Z]);P[y]==v?E=y:E=P.indexOf(v);y=!0}else isNaN(P)||(E=P,y=!0);y&&(S=S.substring(Z.length+1),J=S.indexOf("."));Z=_.G0(Q).children[E];var V;if(Q=(V=Z==null?void 0:Z.polymerController)!=null?V:Z)S="data"+S.slice(J),typeof Q.notifyPath!=="function"?_.qy(new _.RZ("notifyPath missing",
this.is+": "+x+", "+L)):D.value?Q.notifyPath(S,D.value):Q.notifyPath(S)},
stampDomArraySplices_:function(x,L,D){if(D&&D.indexSplices){var S=this.getStampContainer_(L);if(S){for(var Q=_.G0(S),J=Src(this.stampDom[x].reuseComponents),Z=D.indexSplices.length,y=0;y<Z;y++){for(var E=D.indexSplices[y],P=Q.children[E.index],v=E.removed.length;v>0;v--)P&&P.parentElement&&(_.G0(P.parentElement).removeChild(P),J&&Jln(P),P=Q.children[E.index]);v=this.stampDom[x].mapping;for(var V=E.index+E.addedCount,h=document.createDocumentFragment(),H=J,k=E.index;k<V;k++){var T=E.object[k],G=xWf(v,
T);if(G){var U=v[G];T=T[G];G=this.getComponentName_(U,T);var l=P?uc.has(P):!1;H&&P&&P.is==G&&l?(G=P,this.telemetry_.reuse++,P=P.nextElementSibling):H&&P&&l?(G=this.createComponent_(U,T,J),l=_.G0(P).nextElementSibling,Q.insertBefore(G,l),Oy4(this.is,Q,P,J),P=l):(H=!1,G=this.createComponent_(U,T,J),h.appendChild(G));this.deferRenderStamperBinding_(G,U,T)}else U=new _.RZ("Unimplemented type",x,L,S.tagName,Object.keys(T)[0]),_.BI(U)}Q.insertBefore(h,P)}this.flushRenderStamperComponentBindings_();this.stampDom[x].events&&
_.MF(this.hostElement,"yt-rendererstamper-finished",{container:S})}else x=new _.RZ("Container object not found",L,this.hostElement?this.hostElement.is:""),_.BI(x)}},
stampDomArray_:function(x,L,D,S,Q,J){var Z=this.getStampContainer_(L);if(Z)if(L=_.G0(Z),S=Src(S),x){var y=0,E=0,P;if(J=J===void 0?_.rO("STAMPER_STABLE_LIST",!1):J||!1)for(P=L.firstElementChild;P&&!uc.has(P)&&x.length>E;){J=x[E];var v=xWf(D,J);if(v){if(this.getComponentName_(D[v],J[v])!=P.is){var V=this.createComponent_(D[v],J[v],S),h=_.G0(P).nextElementSibling;h?L.insertBefore(V,h):L.appendChild(V);Oy4(this.is,L,P,S);P=V}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(P,D[v],J[v]);y++;
E++;P=_.G0(P).nextElementSibling}else E++}Zyc(this.is,L,y,S);y=P;if(x.length>E){J=document.createDocumentFragment();for(v=x.length;E<v;E++)if(V=x[E],h=xWf(D,V))P=this.createComponent_(D[h],V[h],S),this.deferRenderStamperBinding_(P,D[h],V[h]),J.appendChild(P);y&&_.G0(y).parentNode&&P&&!uc.has(P)?L.insertBefore(J,y):L.appendChild(J)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();Q&&_.MF(this.hostElement,"yt-rendererstamper-finished",{container:Z})}else Zyc(this.is,L,0,
S);else x=new _.RZ("Container object not found",L,this.hostElement?this.hostElement.is:""),_.BI(x)},
getStampContainer_:function(x){return this.$&&this.$[x]||_.jr(this.hostElement).querySelector("#"+x)},
getComponentName_:function(x,L){return typeof x==="string"?x:x.matcher?x.matcher.call(this,L):x.component},
createComponent_:function(x,L,D){x=this.getComponentName_(x,L);try{var S=jO.has(x);if(D&&!S){var Q=_.TZ(x);try{_.uN(Q)}catch(J){D="Failed to clear styles for "+x+".",J.message&&(D+=" Original error: "+J.message),_.qy(new _.RZ(D))}}else Q=document.createElement(x)}catch(J){return Q="YtRendererStamperBehavior failed to create "+x+".",J.message&&(Q+=" Original description: "+J.message),J.message="YtRendererStamperBehavior failed to create element",_.A7(J,Q),qEG.hasOwnProperty(x)?_.qy(J):_.BI(J),document.createElement("SPAN")}this.telemetry_.create++;
return Q},
deferRenderStamperBinding_:function(x,L,D){this.deferredBindingTasks_.push({component:x,typeOrConfig:L,data:D})},
flushRenderStamperComponentBindings_:function(){for(var x=0,L=this.deferredBindingTasks_.length;x<L;x++){var D=this.deferredBindingTasks_[x];if(!D)break;var S=void 0,Q=void 0,J=void 0,Z=void 0,y=D.component,E=D.typeOrConfig;D=D.data;var P=(Z=y.polymerController)!=null?Z:y;Z=y.loggingStatus;try{Z&&(Z.isRendererStamper=!0);if(typeof E!=="string"){for(J in E.attributes)E.attributes[J]===!0?y.setAttribute(J,""):E.attributes[J]===!1?y.removeAttribute(J):y.setAttribute(J,E.attributes[J]);for(Q in E.params)P[Q]=
E.params[Q],y!==P&&UY(y.localName,Q,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(S in E.properties){var v=E.properties[S];if(v){var V=DWN(v);P[S]=this.get(V);y!==P&&UY(y.localName,S,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(S==="on-tap"||S==="on-click"){var h=this.get(V);y.addEventListener("click",h);QXc.set(y,{property:S,listener:{type:"element",eventName:"click",handler:h}})}}else{var H=new _.RZ("Undefined property binding",S);_.BI(H)}}}if(E.classListBinding){var k=DWN(E.classListBinding),
T=k?this[k]:null;if(T)for(S=0;S<T.length;S++)_.VA(y,T[S],!0)}P.data=D}finally{Z&&(Z.isRendererStamper=!1)}if(S=uc.get(y))y.hidden=!1,uc.delete(y),_.WW.cancelJob(S)}this.deferredBindingTasks_.length=0}}];_.dF(_.B(function(x){function L(){D().seconds&&J(N6w({seconds:Number(D().seconds)-Date.now()/1E3}))}
var D=x.targetTimestamp;x=x.className;var S=_.O(_.HB("",void 0,"Lqijgf")),Q=S.next().value,J=S.next().value;_.UX(function(){L();var Z=setInterval(function(){L()},1E3);
_.wH(function(){clearInterval(Z)})});
return _.M("yt-countdown",{class:_.gF("ytCountDownHost",x)},_.M("div",null,Q))},"u"),"yt-countdown",{props:{targetTimestamp:_.pJ,
className:_.Il}});_.CJ=new _.vx("KEY_MANAGER_TOKEN");var ylG={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"};_.lr=_.B(function(x){var L=_.x3("a",x.ref),D=x.aTagConfig?x.aTagConfig:_.m5(function(){var S,Q,J,Z,y;var E=(y=_.fI((J=x.command)==null?void 0:J.call(x)))!=null?y:(Z=x.command)==null?void 0:Z.call(x);return _.a6({innertubeCommand:E,skipOnClick:(S=x.skipOnClick)==null?void 0:S.call(x),defaultTarget:(Q=x.target)==null?void 0:Q.call(x)})||{}},void 0,"TAvz0");
_.Us(function(){_.u("mweb_enable_keto_batch_pages")||(L.value._data=D()._data,L.value.params=D().params)},"dcjvAe");
return _.M("a",{el:L,href:function(){return D().href$},
rel:function(){return D().rel$},
class:function(){var S,Q;return(Q=D().className)!=null?Q:(S=x.className)==null?void 0:S.call(x)},
style:function(){var S;if((S=x.style)==null?0:S.call(x))return x.style();var Q;return((Q=x.disabled)==null?0:Q.call(x))?"pointer-events:none":""},
"aria-haspopup":function(){return!!D()["aria-haspopup$"]},
"force-new-state":pu(function(){return D()["force-new-state$"]}),
title:pu(function(){var S,Q;return(Q=D().title$)!=null?Q:(S=x.title)==null?void 0:S.call(x)}),
role:pu(function(){var S;return((S=x.role)==null?void 0:S.call(x))||D().role$}),
target:pu(function(){return D().target$}),
dir:pu(function(){var S;return((S=x.dir)==null?void 0:S.call(x))||D().dir}),
tabindex:function(){var S;return D().tabindex$?Number(D().tabindex$):(S=x.tabIndex)==null?void 0:S.call(x)},
"aria-hidden":function(){var S,Q;return(Q=D()["aria-hidden$"])!=null?Q:(S=x.ariaHidden)==null?void 0:S.call(x)},
"aria-label":function(){var S,Q;return(Q=D()["aria-label$"])!=null?Q:(S=x.ariaLabel)==null?void 0:S.call(x)},
"aria-current":x.ariaCurrent,"aria-disabled":x.disabled,"aria-labelledby":x.ariaLabelledby,"aria-describedby":x.ariaDescribedby,"aria-selected":x.ariaSelected,"tab-identifier":x.tabIdentifier,"on:pointerdown":_.kO(function(S){var Q,J;return void((J=(Q=D()).onpointerdown)==null?void 0:J.call(Q,S))}),
"on:click":_.kO(function(S){var Q,J;(J=(Q=D()).onclick)==null||J.call(Q,S);var Z;(Z=x.onClick)==null||Z.call(x,S)}),
"on:focusin":_.kO(function(S){var Q;(Q=x.onFocusin)==null||Q.call(x,S)}),
"on:focusout":_.kO(function(S){var Q;(Q=x.onFocusout)==null||Q.call(x,S)})},x.children)},"w");var VYs={duration:1E3,easing:"ease",fill:"forwards"};v1c.componentType=Ru;var u3s={duration:1E3,easing:"ease",fill:"forwards"},rhd=_.B(function(x){var L=_.x3("animated-rolling-character"),D=void 0,S=function(){var y,E;return Sq((y=x.character)==null?void 0:y.call(x))||Sq((E=x.previousCharacter)==null?void 0:E.call(x))},Q=_.O(_.HB(0,void 0,"Dgrnr")),J=Q.next().value,Z=Q.next().value;
_.UX(function(){if(window.ResizeObserver&&_.u("web_fix_rolling_numbers_zoom_safari")){var y=new ResizeObserver(function(){var E,P,v=Math.round(((P=(E=L.value.querySelector("div"))==null?void 0:E.getBoundingClientRect().height)!=null?P:0)*100)/100;v&&Z(v)});
y.observe(L.value);_.wH(function(){y.disconnect()})}});
_.Us(function(){var y=_.u("web_fix_rolling_numbers_zoom_safari")?J:x.marginMultiplier;if(y()){var E;(E=D)==null||E.cancel();if(S()){var P;E=((P=x.previousCharacter)==null?0:P.call(x))?Number(x.previousCharacter())+10:x.rollUp()?0:30;var v;if((v=x.shouldAnimate)==null||!v.call(x)){var V,h;E-=Hy0((V=x.character)==null?void 0:V.call(x),(h=x.previousCharacter)==null?void 0:h.call(x),x.rollUp(),E)}}else{E=x.rollUp()?0:2;var H;(H=x.shouldAnimate)!=null&&H.call(x)||(P=E,v=x.rollUp()?-1:1,E=P-v)}L.value.style.marginTop=
"-"+E*y()+"px";var k;if((k=x.shouldAnimate)==null?0:k.call(x)){var T,G;D=g1p(L.value,(T=x.character)==null?void 0:T.call(x),(G=x.previousCharacter)==null?void 0:G.call(x),x.rollUp(),E,S(),y())}else{var U;L.value.style.display=((U=x.character)==null?0:U.call(x))?"":"none"}}},"jKjMhe");
return _.M("animated-rolling-character",{el:L,class:"animatedRollingCharacterHost"},_.M(_.d,{cond:S,then:function(){return _.M(AhQ,null)},
else:function(){return _.M($si,{character:x.character})}}))},"z");
rhd.idomCompat=!0;var kOf=_.u("web_enable_sink_animated_rolling_character_and_number")?rhd:v1c,NxG=_.u("web_enable_sink_animated_rolling_character_and_number")?rhd:hAf(v1c),AhQ=_.B(function(){for(var x=[],L=1;L<30;L++)x.push(_.M("div",null,L%10));return _.M(_.I1,null,_.M("div",null,"\u00a0"),x,_.M("div",null,"\u00a0"))},"A"),$si=_.B(function(x){var L=x.character;
return _.M(_.I1,null,_.M("div",null,"\u00a0"),_.M(_.d,{cond:function(){return!(L==null?0:L())||_.Ew(L==null?void 0:L())},
then:function(){return _.M("div",null,"\u00a0")},
else:function(){return _.M("div",null,L)}}),_.M("div",null,"\u00a0"))},"B");p_0.componentType=Ru;var iRC=_.B(function(x){var L=void 0,D=void 0,S=function(){var J;return((J=x.fontSizeMultiplier)==null?0:J.call(x))?x.heightPx()*x.fontSizeMultiplier():x.heightPx()},Q=_.m5(function(){if(!x.numberText())return[];
var J,Z,y=((J=x.forceRollUp)==null?void 0:J.call(x))||!D||!((Z=x.numberValue)==null?0:Z.call(x))||D<x.numberValue(),E,P=x.numberText();J=S();Z=!((E=x.shouldAnimate)==null||!E.call(x));E=[];var v=0,V=0,h=(L?L.replace(/\D/g,"").length:0)-(P?P.replace(/\D/g,"").length:0),H=L?L.split(/(\d)/).filter(Boolean):[];for(P=P.split(/(\d)/).filter(Boolean);h<0;){var k=P[V];E.push({character:k,rollUp:y,marginMultiplier:J,shouldAnimate:Z});V++;Sq(k)&&h++}for(;v<h;)k=H[v],E.push({previousCharacter:k,rollUp:y,marginMultiplier:J,
shouldAnimate:Z}),v++,Sq(k)||h++;for(;V<P.length;)h=P[V],k=H[v],Sq(h)===Sq(k)?(V++,v++):Sq(h)?(v++,h=void 0):Sq(k)&&(V++,k=void 0),E.push({character:h,previousCharacter:k,rollUp:y,marginMultiplier:J,shouldAnimate:Z});L=x.numberText();var T;D=(T=x.numberValue)==null?void 0:T.call(x);return E},void 0,"kWiBv");
return _.M("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:function(){return x.numberText()?["height: "+S()+"px;","line-height: "+x.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.M(_.R1,{each:Q,keyBy:"INDEX"},function(J){return _.M(NxG,{character:function(){return J().character},
previousCharacter:function(){return J().previousCharacter},
marginMultiplier:function(){return J().marginMultiplier},
rollUp:function(){return J().rollUp},
shouldAnimate:function(){return J().shouldAnimate}})}))},"C");
iRC.idomCompat=!0;_.f_G=_.u("web_enable_sink_animated_rolling_character_and_number")?iRC:hAf(p_0);var omd=function(x,L){this.fillAnimation=new Animation(FbN(x),document.timeline);this.strokeAnimation=new Animation(sXw(L),document.timeline)};
omd.prototype.play=function(){var x,L;(L=(x=this.fillAnimation).play)==null||L.call(x);var D,S;(S=(D=this.strokeAnimation).play)==null||S.call(D)};
omd.prototype.cancel=function(){var x,L;(L=(x=this.fillAnimation).cancel)==null||L.call(x);var D,S;(S=(D=this.strokeAnimation).cancel)==null||S.call(D)};_.UB=_.B(function(x){var L=x.model;var D=x.pointerDownEvent;var S=x.pointerUpEvent;var Q=x.pointerLeaveEvent;var J=x.hovered;x=_.x3("yt-touch-feedback-shape");var Z=_.x3("div"),y=_.x3("div"),E=_.O(_.mU(function(){return(S==null?0:S())||(Q==null?0:Q())?!1:!(D==null||!D())||!1})),P=E.next().value,v=E.next().value,V=void 0,h=function(){!V&&y.value&&Z.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(V=new omd(y.value,Z.value));
var l;(l=V)==null||l.play()},H=function(){var l;
(l=V)==null||l.cancel()},k=function(){var l;
(l=V)==null||l.cancel()};
_.Us(function(){(S==null?0:S())&&h()},"bg756c");
_.Us(function(){(D==null?0:D())&&H()},"QAes8c");
_.Us(function(){(Q==null?0:Q())&&k()},"YaFbrc");
E=_.kO(function(){h();v(!1)});
var T=_.kO(function(){H();v(!0)}),G=_.kO(function(){k();
v(!1)});
_.wH(function(){if(V){var l;(l=V)==null||l.cancel();V=void 0}});
var U={};P=_.gF("yt-spec-touch-feedback-shape",function(){return TpN(L().color)},function(){return eA4(L().thumbnailSize,!!L().isExtended)},(U["yt-spec-touch-feedback-shape--focused"]=function(){return!!L().focused&&!L().disabled},U["yt-spec-touch-feedback-shape--circular"]=function(){return!!L().circular},U["yt-spec-touch-feedback-shape--down"]=P,U["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!L().triggerEvents},U["yt-spec-touch-feedback-shape--hovered"]=function(){return J==
null?void 0:J()},U));
return _.M("yt-touch-feedback-shape",{el:x,class:P,style:_.bc({"margin-top":function(){return L().customTopExtend?"-"+L().customTopExtend+"px":void 0}}),
"on:mousedown":T,"on:mouseup":E,"on:pointerleave":G,"on:touchstart":T,"on:touchend":E,"aria-hidden":!0},_.M(_.d,{cond:function(){return!!L().hoverEffect},
then:function(){return _.M("div",{class:"yt-spec-touch-feedback-shape__hover-effect",style:_.bc({"border-radius":function(){return L().borderRadius},
background:function(){var l;if(l=L().hoverEffect){for(var X=[],f=_.O((l==null?void 0:l.lightingTechniques)||[]),N=f.next();!N.done;N=f.next())switch(N.value){case 2:var z=N=void 0;X.push("linear-gradient(135deg, "+((N=l)==null?void 0:(z=N.palette)==null?void 0:z.keyLight)+",transparent)")}var xf,K3;X.push((xf=L().hoverEffect)==null?void 0:(K3=xf.palette)==null?void 0:K3.background);l=X.join(", ")}else l=void 0;return l}})})}}),_.M("div",{class:"yt-spec-touch-feedback-shape__stroke",
style:_.bc({"border-radius":function(){return L().borderRadius},
"border-color":function(){var l,X;return(l=L().touchEffect)==null?void 0:(X=l.palette)==null?void 0:X.background}}),
el:Z}),_.M("div",{class:"yt-spec-touch-feedback-shape__fill",style:_.bc({"border-radius":function(){return L().borderRadius},
"background-color":function(){var l,X;return(l=L().touchEffect)==null?void 0:(X=l.palette)==null?void 0:X.background}}),
el:y}))},"G");
_.UB.idomCompat=!0;var a_Q={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 ws=_.hG();ws=ws.toLowerCase();if(_.Mf(ws,"android")){var z2d=ws.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);z2d&&parseFloat(z2d[1])<100||ws.match("("+Object.keys(a_Q).join("|")+")")};var XQG=_.B(function(x){return _.M(_.d,{cond:x.aTagConfig,then:function(L){return _.M(_.lr,{aTagConfig:L,disabled:x.disabled,className:x.className,style:x.style,title:x.title,ariaLabel:x.ariaLabel,ariaCurrent:function(){var D,S;return((D=x.toggleable)==null?void 0:D.call(x))&&((S=x.toggled)==null?void 0:S.call(x))},
ref:x.ref},x.children)},
else:function(){return _.M("button",{el:_.Zt(x.ref),"on:click":_.kO(function(L){var D;return(D=x.onClick)==null?void 0:D.call(x,L)}),
class:x.className,title:x.title,style:x.style,disabled:x.disabled,"aria-pressed":function(){var L,D;return((L=x.toggleable)==null?0:L.call(x))?!((D=x.toggled)==null||!D.call(x)):void 0},
"aria-label":x.ariaLabel,"aria-disabled":x.visiblyDisabled,"aria-hidden":x.ariaHidden,tabindex:x.tabIndex},x.children)}})},"H"),nm2=_.B(function(x){var L=x.data;
var D=x.hasIconLeading;var S=x.hasIconLeadingTrailing;var Q=x.hasIconTrailing;var J=x.iconButton;var Z=x.iconClassName;var y=x.secondaryIconClassName;var E=x.icon;var P=x.secondaryIcon;var v=x.textContentClassName;return _.M(B9,{className:"",style:"display: inherit; justify-content: center"},_.M(_.d,{debugInstance:"V4z1Uc",cond:function(){return E&&(D()||S()||(J==null?void 0:J()))},
then:function(){return _.M(B9,null,_.M("div",{class:Z,"aria-hidden":"true"},E==null?void 0:E()))}}),_.M(_.d,{debugInstance:"ok3btb",
cond:function(){return(L().buttonText||L().animatedTextProps||L().formattedButtonText)&&!(J==null?0:J())},
then:function(){return _.M(B9,null,_.M(chr,{className:v,iconPosition:function(){return L().iconPosition},
text:function(){return L().buttonText},
oneOffCustomTextWrap:function(){return L().oneOffCustomTextWrap},
formattedButtonText:function(){return L().formattedButtonText},
animatedTextProps:function(){return L().animatedTextProps}}))}}),_.M(_.d,{debugInstance:"DO5Rz",
cond:Q,then:function(){return _.M(B9,null,_.M("div",{class:Z},E==null?void 0:E()))}}),_.M(_.d,{debugInstance:"bnojSc",
cond:S,then:function(){return _.M(B9,null,_.M("div",{class:y},P==null?void 0:P()))}}),_.M(_.d,{debugInstance:"HN3kad",
cond:function(){return!L().disabled&&!0},
then:function(){return _.M(_.UB,{model:function(){var V=L();return{color:V.style==="overlay-dark"?4:V.style==="overlay"?V.type==="filled"?4:3:V.type==="filled"||V.style==="call-to-action-inverse"||V.style==="mono-inverse"?2:1}}})}}))},"I"),chr=_.B(function(x){var L=function(){var D,S;
return((D=x.iconPosition)==null?void 0:D.call(x))==="icon-with-label"||((S=x.oneOffCustomTextWrap)==null?void 0:S.call(x))};
return _.M("div",{class:x.className,"aria-hidden":function(){var D,S,Q;return((D=x.ariaHidden)==null?void 0:D.call(x))&&(!((S=x.animatedTextProps)==null||!S.call(x))||!((Q=x.formattedButtonText)==null||!Q.call(x)))}},_.M(_.GS,null,_.M(_.TS,{when:function(){var D;
return(D=x.animatedTextProps)==null?void 0:D.call(x)}},function(){return _.M(_.f_G,{numberText:function(){return x.animatedTextProps().numberText},
numberValue:function(){return x.animatedTextProps().numberValue},
heightPx:function(){return x.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return x.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return x.animatedTextProps().shouldAnimate},
forceRollUp:function(){return x.animatedTextProps().forceRollUp}})}),_.M(_.TS,{when:function(){var D;
return(D=x.formattedButtonText)==null?void 0:D.call(x)}},function(){return _.M(_.kP,{text:function(){return Object.assign({},x.formattedButtonText(),{lineBreakMode:L()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":x.formattedButtonText().lineBreakMode,
alignment:L()?"TEXT_ALIGNMENT_CENTER":x.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!L()}})}),_.M(_.TS,{when:function(){var D,S;
return((D=x.iconPosition)==null?void 0:D.call(x))==="icon-with-label"&&((S=x.text)==null?void 0:S.call(x))}},function(){return _.M(_.kP,{text:function(){return{content:x.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.M(_.eF,null,function(){return x.text})))},"J"),tJ_=_.B(function(x){return _.M(_.d,{debugInstance:"kM7Sgc",
cond:x.hasLabel,then:function(){var L;return _.M("label",{class:x.className},x.children,(L=x.textContent)==null?void 0:L.call(x))},
else:function(){return x.children}})},"K"),B9=_.B(function(x){return x.children},"L");var xHd=_.B(function(x){var L=_.Zt(),D=_.O(_.HB(void 0,void 0,"Ug77pc")),S=D.next().value,Q=D.next().value;D=_.O(_.HB(void 0,void 0,"XGf7Zb"));var J=D.next().value,Z=D.next().value;D=_.O(_.HB(0,void 0,"Ygnx7b"));var y=D.next().value,E=D.next().value;D=_.kO(function(){switch(y()){case 1:E(2);break;case 3:var v,V;(V=(v=L.value).hidePopover)==null||V.call(v);E(0);Q(void 0);Z(void 0)}});
_.Us(function(){if(x.show()){var v;Q((v=x.children)==null?void 0:v.call(x));var V;Z((V=x.location)==null?void 0:V.call(x));switch(y()){case 0:var h,H;(H=(h=L.value).showPopover)==null||H.call(h);E(1);break;case 3:E(1);var k,T;(T=(k=L.value).hidePopover)==null||T.call(k);var G,U;(U=(G=L.value).showPopover)==null||U.call(G)}}else switch(y()){case 2:E(3);break;case 1:var l,X;(X=(l=L.value).hidePopover)==null||X.call(l);Q(void 0);Z(void 0);E(0)}},"lOyibf");
_.wO(function(){});
var P={};return _.M("yt-popover",{popover:"manual",el:L,style:_.bc({left:function(){var v;return(v=J())==null?void 0:v.left},
top:function(){var v;return(v=J())==null?void 0:v.top},
bottom:function(){var v;return(v=J())==null?void 0:v.bottom},
right:function(){var v;return(v=J())==null?void 0:v.right}}),
class:_.gF("ytPopoverComponentHost",x.classNames,(P.ytPopoverComponentHostClosing=function(){return y()===3},P.ytPopoverComponentHostSeeThrough=function(){var v;
return((v=x.seeThrough)==null?void 0:v.call(x))===!0},P)),
"on:animationend":D},S)},"N");var LTB={left:"0px",right:"auto",top:"0px",bottom:"auto"},DH2=function(){var x=this;this.registerTooltipElement=function(D){var S;x.tooltipElement=(S=D.querySelector("yt-popover"))!=null?S:void 0};
var L=_.O(_.HB(void 0,void 0,"z4iHWd"));this.state=L.next().value;this.setState=L.next().value;L=_.O(_.HB(void 0,void 0,"uKDcaf"));this.schedulerJobID=L.next().value;this.setSchedulerJobID=L.next().value},qrw=function(x,L){var D=sI,S=_.WW.addJob(function(){var Q=SAh(D,x,L);
D.setState({text:L.text,location:Q,anchor:x,offset:L.offset})},4,L.delay);
D.setSchedulerJobID(S)},Al4=function(){var x=sI,L=x.schedulerJobID();
L&&(_.WW.cancelJob(L),x.setSchedulerJobID(void 0));x.setState(void 0)};
DH2.prototype.notify=function(x,L){var D;((D=this.state())==null?void 0:D.anchor)===x&&(D=SAh(this,x,L),this.setState({text:L.text,location:D,anchor:x,offset:L.offset}))};
var SAh=function(x,L,D){var S=L.getBoundingClientRect();L=window.innerWidth;var Q=window.innerHeight,J=D.location,Z=D.offset;D=D.text;if(x=x.tooltipElement){var y=getComputedStyle(x);x=y.font;var E=FT(y.lineHeight),P=FT(y.paddingLeft),v=FT(y.paddingRight),V=FT(y.paddingTop);y=FT(y.paddingBottom);var h=document.createElement("canvas").getContext("2d");h.font=x;D={width:h.measureText(D).width+P+v,height:E+V+y}}else D=void 0;x=D;if(!x)return LTB;D=x.width;x=x.height;P=Z+x;V=Z+D;E=S.top>=P;P=Q-S.bottom>=
P;v=S.left>=V;V=L-S.right>=V;y=J;switch(J){case "top":!E&&P&&(y="bottom");break;case "bottom":!P&&E&&(y="top");break;case "left":!v&&V&&(y="right");break;case "right":!V&&v&&(y="left")}switch(y){case "top":J=S.left+S.width/2-D/2;S=S.top-x-Z;break;case "bottom":J=S.left+S.width/2-D/2;S=S.bottom+Z;break;case "left":J=S.left-D-Z;S=S.top+S.height/2-x/2;break;case "right":J=S.right+Z;S=S.top+S.height/2-x/2;break;default:J=S.left+S.width/2-D/2,S=S.bottom+Z}Z=Object.assign({},LTB);J+D>L?(Z.right="0px",Z.left=
"auto"):(Z.left=Math.round(Math.max(0,J)+window.scrollX)+"px",Z.right="auto");S+x>Q?(Z.bottom="0px",Z.top="auto"):(Z.top=Math.round(Math.max(0,S)+window.scrollY)+"px",Z.bottom="auto");return Z};var sI;sI=new DH2;_.QLr=_.B(function(){var x=_.m5(function(){var D;return(D=sI.state())==null?void 0:D.text},void 0,"jgLmfd"),L=_.m5(function(){var D;
return(D=sI.state())==null?void 0:D.location},void 0,"zV1Udb");
return _.M("yt-tooltip",{class:"ytTooltipContainerHost",el:_.Zt(sI.registerTooltipElement),"aria-hidden":"true"},_.M(xHd,{classNames:"ytTooltipContainerContent",location:L,show:function(){return!!x()},
seeThrough:!0},x))},"O");var CSb=ZK("stamper-context");_.W9=_.B(function(x){var L=x.data;var D=x.icon;var S=x.iconName;var Q=x.animateIcon;var J=x.secondaryIcon;var Z=x.secondaryIconName;var y=x.focusedOverride;var E=x.clientOnlyWizTooltipsEnabled;rlf();var P=RAc(L),v=P.size,V=P.style;x=P.disabled;var h=P.onTap,H=P.alignByText,k=P.aTagConfig,T=P.customColors,G=P.segmentedPosition,U=P.toggled,l=P.toggleable,X=P.accessibilityLabel,f=P.onToggle,N=P.iconPosition,z=P.oneOffCustomTextWrap,xf=P.disableTextEllipsis,K3=P.disableBackdropFilter,P4=P.tooltipText,
kf=P.ariaHidden,H4=P.tabIndex,p3=P.buttonText,w0=P.formattedButtonText,Rn=P.animatedTextProps,lG=P.onClickRateLimitMs,xX=UWh(L,D,J,S,Z,y,Q),UR=xX.type;D=xX.shouldFocus;S=xX.hasIconLeading;Q=xX.hasIconTrailing;var c4=xX.hasIconLeadingTrailing,hr=xX.hasIconOnly;J=xX.hasIconOnly40;var GB=xX.hasIconWithLabel;Z=xX.iconButton;var C2=xX.visiblyDisabled;y=xX.overrideSmallSizeIcon;P=xX.iconToRender;xX=xX.secondaryIconToRender;var X9=_.O($Wp(P4)).next().value,vs=function(jW){h==null||h(jW);l()&&(f==null||f(jW))},
Zp=_.m5(function(){return lG==null?void 0:lG()},void 0,"wrF7V"),K2=_.m5(function(){return Zp()?tWR(vs,Zp()):vs},void 0,"fG5dyf"),F2={},II={};
return _.M(tJ_,{className:_.gF("yt-spec-button-shape-with-label",(F2["yt-spec-button-shape-with-label--is-overlay"]=function(){return V()==="overlay"||V()==="overlay-dark"},F2)),
hasLabel:GB,textContent:function(){return _.M(chr,{text:p3,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:z,iconPosition:N,formattedButtonText:w0,animatedTextProps:Rn})}},_.M(XQG,{aTagConfig:k,
className:_.gF("yt-spec-button-shape-next",function(){return w_O(UR())},function(){return C2()?void 0:Bp3(V())},function(){return WbO(v())},(II["yt-spec-button-shape-next--disabled"]=C2,II["yt-spec-button-shape-next--focused"]=D,II["yt-spec-button-shape-next--icon-trailing"]=Q,II["yt-spec-button-shape-next--icon-leading"]=S,II["yt-spec-button-shape-next--icon-leading-trailing"]=c4,II["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return c4()&&!(p3()||w0())},II["yt-spec-button-shape-next--icon-button"]=
function(){return hr()||GB()},II["yt-spec-button-shape-next--icon-only-default"]=J,II["yt-spec-button-shape-next--align-by-text"]=H,II["yt-spec-button-shape-next--segmented-start"]=function(){return G()==="start"},II["yt-spec-button-shape-next--segmented-end"]=function(){return G()==="end"},II["yt-spec-button-shape-next--override-small-size-icon"]=y,II["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=z,II["yt-spec-button-shape-next--disable-text-ellipsis"]=xf,II["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!K3()&&!_.u("web_disable_backdrop_filter")},II)),
style:function(){var jW=T();if(jW){var J5=jW.color;var Eq=jW.backgroundColor;jW=jW.borderColor;var zB="";J5&&(zB+="color: "+J5+";");Eq&&(zB+="background-color: "+Eq+";");jW&&(zB+="border-color: "+jW+";");J5={style:zB}}else J5={};return J5.style},
onClick:function(jW){K2()(jW)},
disabled:x,ariaLabel:X,toggleable:l,toggled:U,title:function(){return(E==null?0:E())||!P4()?"":P4()},
visiblyDisabled:C2,ariaHidden:kf,tabIndex:H4,ref:function(jW){(E==null?0:E())&&X9(jW)}},_.M(nm2,{data:L,
hasIconLeading:S,hasIconLeadingTrailing:c4,hasIconTrailing:Q,iconButton:Z,icon:P,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:xX})))},"Q");
_.W9.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};_.qP=_.B(function(x){var L=x.data;var D=x.className;var S=x.style;var Q=x.useOutlinedIcon;var J=x.buttonOverrides;var Z=x.animatedTextProps;var y=x.onClick;var E=x.target;var P=_.x3("button-view-model",function(l){l.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var X=L().targetId;X&&_.Af_(_.tY(),X,l);return function(){W4W(_.tY(),l)}}),v=function(){return L().iconName},V,h=(V=_.yY().resolve(_.ZN(_.Dt)))==null?void 0:V(),H=function(){var l=L();
var X=J==null?void 0:J(),f=Z==null?void 0:Z(),N=E==null?void 0:E();if(l){var z=X_c(l.type);var xf=!!l.title||!!l.titleFormatted;var K3=!(!l.iconName&&!l.iconImage);xf=K3&&!xf?"icon-only":K3?l.iconTrailing||l.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;xf==="icon-only-40"&&(z="text");var P4;K3=(P4=X==null?void 0:X.state)!=null?P4:clb(l.state);var kf,H4=(kf=X==null?void 0:X.disabled)!=null?kf:l.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||l.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";
if(_.u("web_button_vm_refactor_disabled")){var p3;H4=(p3=X==null?void 0:X.disabled)!=null?p3:K3==="disabled"}f=f&&f.numberText&&!isNaN(Number(f.numberValue))?f:void 0;kf=Object;p3=kf.assign;P4=l.title;var w0=l.titleFormatted,Rn=l.accessibilityText,lG=zAf(l.style),xX=n14(l.buttonSize);N=a0w(l,P,H4,y,N);H4=H4&&!l.onDisabledTap;var UR=f0O(l,P),c4=l.customFontColor,hr=l.customBackgroundColor;var GB=l.customBorderColor;var C2=l.customDarkThemeFontColor,X9=l.customDarkThemeBackgroundColor,vs=l.customDarkThemeBorderColor;
c4=h&&C2?C2:c4;hr=h&&X9?X9:hr;GB=h&&vs?vs:GB;GB={color:c4?_.XA(c4):void 0,backgroundColor:hr?_.XA(hr):void 0,borderColor:GB?_.XA(GB):void 0};l=p3.call(kf,{},{buttonText:P4,formattedButtonText:w0,animatedTextProps:f,accessibilityLabel:Rn,style:lG,type:z,state:K3,size:xX,iconPosition:xf,onTap:N,disabled:H4,aTagConfig:UR,customColors:GB,tooltipText:l.tooltip},X)}else l={style:"mono",type:"text",state:"active",size:"M"};l.focused=G();return l},k=function(){return C2p(H(),!!L().iconName)};
x=_.O(_.HB(!1,void 0,"WVXhrd"));V=x.next().value;var T=x.next().value,G=V;x=_.kO(function(){var l=_.yY().resolve(_.ZN(_.CJ));l&&T(l.isKeyBoardInUse());return!1});
V=_.kO(function(){T(!1);return!1});
_.Us(function(){var l,X=_.g(L==null?void 0:(l=L())==null?void 0:l.onVisible,_.ii);X&&_.o6(X,{disableClickTracking:!0})},"w0lGYc");
var U=_.u("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");return _.M("button-view-model",{el:P,class:_.gF("ytSpecButtonViewModelHost",D),"on:focusin":x,"on:focusout":V},_.M(_.d,{cond:function(){var l;return(L==null?0:(l=L())==null?0:l.iconImage)?{sources:[L().iconImage]}:void 0},
then:function(l){return _.M(_.W9,{data:H,icon:function(){return _.M(_.Ku,{data:l,alt:"",targetWidth:k,targetHeight:k,preserveWidth:!0,preserveHeight:!0})},
clientOnlyWizTooltipsEnabled:U})},
else:function(){return _.M(_.W9,{data:H,icon:function(){return _.M(_.YO,{icon:v,active:function(){return(Q==null?0:Q())?!1:H().toggled},
animateIcon:function(){var l;return!!(S==null?0:(l=S())==null?0:l.animateIcon)},
size:k})},
clientOnlyWizTooltipsEnabled:U})}}))},"S");
_.qP.idomCompat={callbacks:{onClick:!0}};_.dF(_.B(function(x){return _.M("yt-button-view-model",{id:x.id,class:_.gF(x.scopingClassName,x.classes),icon:function(){var L;return(L=x.icon)==null?void 0:L.call(x)},
"dialog-dismiss":function(){var L;return((L=x.dialogDismiss)==null?0:L.call(x))?"":void 0}},_.M(_.qP,{data:function(){var L;
return(L=x.data)==null?void 0:L.call(x)},
className:function(){var L;return(L=x.className)==null?void 0:L.call(x)},
style:function(){var L;return(L=x.style)==null?void 0:L.call(x)},
useOutlinedIcon:function(){var L;return(L=x.useOutlinedIcon)==null?void 0:L.call(x)},
buttonOverrides:function(){var L;return(L=x.buttonOverrides)==null?void 0:L.call(x)},
animatedTextProps:function(){var L;return(L=x.animatedTextProps)==null?void 0:L.call(x)},
onClick:function(L){var D;return(D=x.onClick)==null?void 0:D.call(x,L)}}))},"T"),"yt-button-view-model",{props:{data:_.pJ,
className:_.pJ,style:_.pJ,useOutlinedIcon:_.pJ,buttonOverrides:_.pJ,animatedTextProps:_.pJ,onClick:_.Il,scopingClassName:_.pJ,id:_.pJ,icon:_.pJ,dialogDismiss:_.pJ,classes:_.pJ,target:_.Il}});_.dF(_.B(function(x){var L=x.data;var D=x.id;var S=x.className;var Q=x.iconName;var J=x.animateIcon;var Z=x.secondaryIconName;x=_.O(_.HB(!1,void 0,"TtJl8"));var y=x.next().value,E=x.next().value,P=function(){var V=_.yY().resolve(_.ZN(_.CJ));V&&E(V.isKeyBoardInUse())},v=function(){E(!1)};
x=_.x3("yt-button-shape",function(V){if(_.yY().resolve(_.ZN(_.CJ)))return V.addEventListener("focusin",P),V.addEventListener("focusout",v),function(){V.removeEventListener("focusin",P);V.removeEventListener("focusout",v)}});
return _.M("yt-button-shape",{el:x,id:D,class:S},_.M(_.d,{cond:L,then:function(){return _.M(_.W9,{data:L,iconName:Q,secondaryIconName:Z,focusedOverride:y,animateIcon:J})}}))},"U"),"yt-button-shape",{props:{data:_.pJ,
id:_.pJ,className:_.pJ,iconName:_.pJ,animateIcon:_.pJ,secondaryIconName:_.pJ,clientOnlyWizTooltipsEnabled:_.pJ,disableUpgrade:_.pJ},unsafeExternallySettableAttributes:new Set(["hidden","key","dialog-dismiss","disable-upgrade"])});var Az=function(){var x=_.e.apply(this,arguments)||this;x.isGoalActive=!0;return x};
_.p(Az,_.e);Az.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
Az.prototype.progressBarChanged=function(){var x=_.jr(this.hostElement).querySelector("#progress-bar-progress"),L,D,S,Q=(S=Number((L=this.creatorGoalState)==null?void 0:L.currentGoalCount)/Number((D=this.creatorGoalState)==null?void 0:D.totalGoalCount)*100)!=null?S:0,J;x.style.width=((J=Math.min(Q,100))!=null?J:0)+"%"};
Az.prototype.goalStateChanged=function(){var x;this.isGoalActive=((x=this.creatorGoalState)==null?void 0:x.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var L;x={"--yt-progress-bar-color":BCp((L=this.creatorGoalState)==null?void 0:L.progressBarColor)};_.uN(this.hostElement,x)};
Az.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.J3.Object.defineProperties(Az.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var x;return this.isGoalActive&&!((x=this.creatorGoalState)==null||!x.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var x;if((x=this.creatorGoalState)==null?0:x.endTimestampMs){var L;x=Number((L=this.creatorGoalState)==null?void 0:L.endTimestampMs)/1E3;return{seconds:String(x)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var x;if((x=this.creatorGoalState)==null?0:x.themedTargetImage){var L;x=_.g((L=this.creatorGoalState)==null?void 0:L.themedTargetImage,DXH);return this.isAppDarkTheme()?x==null?void 0:x.imageDark:x==null?void 0:x.imageLight}}}});
_.J3.Object.defineProperties(Az,{template:{configurable:!0,enumerable:!0,get:function(){return GIi()}}});
Az.prototype.goalStateChanged=Az.prototype.goalStateChanged;Az.prototype.progressBarChanged=Az.prototype.progressBarChanged;_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Az.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.ds),_.r("design:type",Object)],Az.prototype,"ytLiveChatReduxBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Az.prototype,"ytRendererBehavior",void 0);
_.A([_.F({selectorArgs:["data.creatorGoalEntityKey"],selector:function(x,L){return _.u6(x.entities,"creatorGoalEntity",L)}}),
_.r("design:type",Object)],Az.prototype,"creatorGoalState",void 0);_.A([_.F(),_.r("design:type",Object)],Az.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],Az.prototype,"isGoalActive",void 0);_.A([_.Y("creatorGoalState","isGoalActive"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Az.prototype,"shouldShowCountdown",null);_.A([_.Y("creatorGoalState"),_.r("design:type",Object),_.r("design:paramtypes",[])],Az.prototype,"endTimestamp",null);
_.A([_.Y("creatorGoalState"),_.r("design:type",Object),_.r("design:paramtypes",[])],Az.prototype,"targetIconThemedImage",null);_.A([_.bN("creatorGoalState.currentGoalCount"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Az.prototype,"progressBarChanged",null);_.A([_.bN("creatorGoalState.creatorGoalState"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Az.prototype,"goalStateChanged",null);
_.A([_.oW({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],Az);_.q(Az,"yt-creator-goal-progress-flow-view-model",function(){return GIi()},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var JFC;var KTh;var $P=function(){return _.e.apply(this,arguments)||this};
_.p($P,_.e);$P.prototype.attached=function(){var x,L,D;if(this==null?0:(x=this.data)==null?0:(L=x.pdgPurchasedBumperLoggingDirectives)==null?0:(D=L.loggingDirectives)==null?0:D.trackingParams){var S,Q,J;LK0(this==null?void 0:(S=this.data)==null?void 0:(Q=S.pdgPurchasedBumperLoggingDirectives)==null?void 0:(J=Q.loggingDirectives)==null?void 0:J.trackingParams)}};
$P.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],$P.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],$P.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],$P.prototype,"data",void 0);_.A([_.oW({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],$P);
_.q($P,"yt-live-chat-item-bumper-view-model",function(){if(KTh===void 0){var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;JFC===void 0&&(JFC=document.createElement("template"));var S=JFC;D.call(L,S.content.cloneNode(!0),x.content.firstChild);KTh=x}x=KTh;return x},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var OgH;var Zgd;_.S2=function(x,L){this.data=x;this.actions=L;this.data=x;this.actions=L};
_.zQ=function(){};_.rs={};_.rs.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(x,L){Dis(this.hostElement,x,L)},
getNavigationEndpointPopupAction:function(x){return Soc(x,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(x,L){QKs(this.hostElement,x,L,this.openPopupConfig)}};var PE3=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.NP={};
_.NP.YtEndpointBehavior=[_.rs.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.$6("openPopupConfig");(this.useClickHandler=_.rO("useClickHandler",!1))?this.hostElement.addEventListener("click",k9(this,this.onEndpointClick_)):(Bv(this.hostElement,"tap",k9(this,this.onEndpointTap_)),Bv(this.hostElement,"touchend",k9(this,this.onEndpointTouchEnd_)));Bv(this.hostElement,"touchstart",k9(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
k9(this,this.onEndpointTapStart_))},
onEndpointClick_:function(x){O9b(this.hostElement,x,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(x){var L=this.hostElement,D=this.openPopupConfig,S=this.disableCommandHandlerOverride;S=S===void 0?!1:S;var Q=JOw(x);if(Q){Q.href&&td(Q.href);var J=x.detail;var Z=J.sourceEvent;J=J.preventer;Z=Z.button!==void 0?Z.button===0&&!en(Z):J?!en(J):!0;Q.data&&Z&&KK3(L,Q,x,D,S)}},
onEndpointTouchEnd_:function(x){en(x)||JOw(x)&&x.preventDefault()},
onEndpointTapStart_:function(x){M4c(x)}}];_.ir={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(x){for(var L=_.aR.getInstance(),D=_.O(Object.keys(x)),S=D.next();!S.done;S=D.next()){var Q=S.value;S=x[Q];if(this&&this[S]){var J=L.actionRoutingMap.get(Q);J||(J=new Map,L.actionRoutingMap.set(Q,J));L.registerActionHandler(this,Q,this[S].bind(this),J)}else Q=Error("ld"),Q.params=S,_.N9(Q)}},
unregisterActionMap:function(x){_.nV(_.aR.getInstance(),x,this)}}]};var Cu=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_"+(_.u("enable_web_delhi_icons")?"v5":"v4")+".json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_"+(_.u("enable_web_delhi_icons")?"v5":"v4")+".json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:_.u("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:_.u("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:_.u("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:_.u("enable_web_delhi_icons")?120:79,lazyLoad:!1}]]);var GQ;var lc=new Map;var sKG=window.matchMedia("(forced-colors: active)").matches;var yFC;var I2C;var EyH=new _.vx("LOTTIE_LOADER_TOKEN");_.fJ=_.B(function(x){var L=x.data;var D=x.className;var S=x.animationName;var Q=x.animationRef;var J=x.elRefForInterop;var Z=_.Sc("lottie-component"),y;_.wH(function(){var P;return void((P=y)==null?void 0:P.destroy())});
var E;_.Us(function(){var P=_.WB(S);if(P!==E){E=P;var v=Object.assign({},{animationName:P,animationRef:_.WB(Q)},_.WB(L));try{_.yY().resolve(EyH)().then(function(H){var k;(k=y)==null||k.destroy();var T,G;k=(G=J==null?void 0:(T=J())==null?void 0:T.value)!=null?G:Z.value;T=v.animationRef;G=v.listeners;H=H.loadAnimation(Object.assign({},{container:k},v.animationConfig));T&&(T.lottieEl=H);if(G)for(k=_.O(Object.entries(G)),T=k.next();!T.done;T=k.next())G=_.O(T.value),T=G.next().value,(G=G.next().value)&&
H.addEventListener(T,G);y=H})}catch(H){P=H;
var V="LottieComponent error.";P.message&&(V+=" Original description: "+P.message);_.A7(P,V);_.qy(P);var h;((h=v.listeners)==null?0:h.error)&&v.listeners.error(P)}}},"nrJISd");
return _.M(O6s,{cond:function(){return!(J==null?0:J())},
then:function(){return _.M("lottie-component",{class:_.gF("ytLottieComponentHost",D),el:Z})}})},"W");_.dF(_.B(function(x){return _.M("ytd-lottie-player",{id:x.id,hidden:x.hidden,class:x.className,"aria-label":x.ariaLabel,style:"display: block;"},_.M(_.fJ,{data:x.data,animationName:function(){var L;return((L=x.data().animationConfig)==null?void 0:L.name)||""},
animationRef:function(){return x.data().animationRef}}))},"X"),"ytd-lottie-player",{props:{data:_.pJ,
id:_.pJ,hidden:_.pJ,className:_.pJ,ariaLabel:_.pJ}});var oU=function(){var x=_.e.apply(this,arguments)||this;x.animationRef={};x.delhiIconsEnabled=_.u("enable_web_delhi_icons");return x};
_.p(oU,_.e);_.K=oU.prototype;
_.K.handlePropertyChange=function(){var x=this.animatedIcon,L=this.active,D=this.isDarkTheme;if(x){var S=this.previousActive!==L;this.previousActive=L;this.animationRef.lottieEl?S&&this.toggleAnimation(L,x.totalFrames):L?this.initializeAnimationAsToggled(x.lottiePlayerProps,x.totalFrames):this.initializeAnimationAsUntoggled(x.lottiePlayerProps);x.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=x.type;this.lottiePlayerProps=this.computeLottiePlayerProps(x,D)}};
_.K.computeLottiePlayerProps=function(x,L){var D=this.deepCloneLottiePlayerProps(x);L?(L=x.nameDarkTheme,x=x.pathDarkTheme):(L=x.name,x=x.path);D.animationConfig.name=L;(L=lc.get(x))?D.animationConfig.animationData=L:D.animationConfig.path=x;return D};
_.K.initializeAnimationAsToggled=function(x,L){x.animationConfig.initialSegment=[L-1,L]};
_.K.initializeAnimationAsUntoggled=function(x){x.animationConfig.initialSegment=void 0};
_.K.toggleAnimation=function(x,L){if(x){var D;(D=this.animationRef.lottieEl)==null||D.playSegments([0,L],!0)}else{var S;(S=this.animationRef.lottieEl)==null||S.playSegments([0,1],!0)}};
_.K.deepCloneLottiePlayerProps=function(x){var L=Object.assign({},x.lottiePlayerProps.animationConfig);x=Object.assign({},x.lottiePlayerProps);x.animationConfig=L;return x};
oU.prototype.handlePropertyChange=oU.prototype.handlePropertyChange;_.A([_.F(),_.r("design:type",Object)],oU.prototype,"animatedIcon",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],oU.prototype,"active",void 0);_.A([_.F(),_.r("design:type",Boolean)],oU.prototype,"isDarkTheme",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",String)],oU.prototype,"animatedIconType",void 0);_.A([_.F(),_.r("design:type",Boolean)],oU.prototype,"previousActive",void 0);
_.A([_.F(),_.r("design:type",Object)],oU.prototype,"lottiePlayerProps",void 0);_.A([_.F(),_.r("design:type",Object)],oU.prototype,"animationRef",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],oU.prototype,"delhiIconsEnabled",void 0);_.A([_.bN("animatedIcon","active","isDarkTheme"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],oU.prototype,"handlePropertyChange",null);_.A([_.oW({is:"yt-animated-icon",disableElementRegistration:!0})],oU);
_.q(oU,"yt-animated-icon",function(){if(I2C===void 0){var x=document.createElement("template");_.m(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-animated-icon--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.core.yt_animated_icon.yt.animated.icon.css.js--\x3e<ytd-lottie-player class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" class="style-scope yt-animated-icon"></ytd-lottie-player>');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;yFC===void 0&&(yFC=document.createElement("template"));var S=yFC;D.call(L,S.content.cloneNode(!0),x.content.firstChild);I2C=x}x=I2C;return x},{mode:2});var MyG;var dHQ;var lZG=_.B(function(x){var L=_.Sc("span"),D=Bd(function(){return{value:null,cancelled:!1}});
_.wH(function(){D.cancelled=!0});
var S=_.m5(x.data,{equals:function(Q,J){return Q.iconName===J.iconName&&Q.iconStyle===J.iconStyle&&Q.iconSize===J.iconSize&&Q.iconSetName===J.iconSetName&&Q.iconSelected===J.iconSelected}},"AoOoyf");
_.Us(function(){var Q,J=(Q=x.options)==null?void 0:Q.call(x);CEO(L,D,S(),J)},"Tie9e");
return _.M("span",{class:"yt-icon-shape",el:L})},"Z");
lZG.idomCompat=!0;var w70=["youtube_fill","youtube_outline"];var PbW=new _.f1({type:"iconset",value:void 0}),aU=function(){var x=_.e.apply(this,arguments)||this;x.isDarkTheme=document.documentElement.hasAttribute("dark");x.iconName="";x.iconsetName="yt-icons";x.iconset=null;x.missingIconSet=!1;x.iconType=null;x.iconShapeDataSignal=_.HB(void 0,void 0,"b0v7Ac");x.renderingOptionsSignal=_.HB({iconWidth:"100%",iconHeight:"100%",iconFilter:x.iconFilter},void 0,"Ls6l3e");x.wizHasRendered=!1;x.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return x};
_.p(aU,_.e);aU.prototype.onDarkModeToggledAction=function(x){x!==this.isDarkTheme&&(this.isDarkTheme=x)};
aU.prototype.handlePropertyChange=function(){var x=this,L,D,S,Q,J,Z,y,E,P,v,V,h,H,k,T,G,U;return _.I(function(l){switch(l.nextAddress){case 1:if(L=!x.icon&&!x.iconName||!x.isAttached)return l.return();D=x;S=D.icon;Q=D.size;J=D.defaultToFilled;Z=D.active;y=D.targetContainer;x.toggleContainerClass(y);_.u("kevlar_use_wil_icons")&&S&&(E=Iyw(S),x.iconType=E.length?E[1]:null);if(S){l.jumpTo(2);break}x.iconsetName="";x.iconName="";return l.yield(x.renderIcon(y,S),3);case 3:return l.return();case 2:P=jLQ(S);
v=Iyw(P);v.length&&(x.iconsetName=v[0],x.iconName=v[1]);if(!_.u("kevlar_use_wil_icons")){l.jumpTo(4);break}V=aU;h=vyd;H=x.iconType;k=x.active;T=x.defaultToFilled;G=x.size;U=x.iconsetName;return l.yield(VyW(),6);case 6:return l.yield(h.call(V,H,k,T,G,U,l.yieldResult),5);case 5:x.iconShapeData=l.yieldResult;case 4:if(x.shouldRenderIconShape(y)){l.jumpTo(7);break}return l.yield(x.determineIconSet(P,Z,J,Q,y),7);case 7:return l.yield(x.renderIcon(y,S),0)}})};
aU.prototype.toggleContainerClass=function(x){x?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var jLQ=function(x){return!_.u("default_to_innertube_icon")||x.indexOf(":")>0?x:_.gB(x)};
_.K=aU.prototype;_.K.determineIconSet=function(x,L,D,S){var Q=this;return _.I(function(J){return J.nextAddress==1?_.u("kevlar_system_icons")||_.$6("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.$6("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?J.yield(Q.switchToYtSysIconset(x,L,D,S),3):J.jumpTo(2):J.nextAddress!=2?J.return():J.yield(Q.useYtSysIconsetForMissingIcons(x,L,D,S),0)})};
_.K.switchToYtSysIconset=function(x,L,D,S){var Q=this,J,Z,y,E,P,v,V;return _.I(function(h){switch(h.nextAddress){case 1:if(!x||Q.iconsetName!=="yt-icons"&&Q.iconsetName!=="yt-sys-icons"){h.jumpTo(0);break}J=Iyw(x);Z=J[1];Z=_.uXN(Z);_.u("enable_polymer_icons_replace_underscores_dash")&&Z.includes("_filled")&&(Z=Z.replace(/_filled/g,"-filled"));return h.yield(ui(Z,!0),3);case 3:return y=h.yieldResult,h.yield(ui(Z,!1),4);case 4:if((E=h.yieldResult)||L&&y)Q.iconsetName="yt-sys-icons";Q.iconName=Q.getIconName(Z,
L,D,E,y);if(S===24){h.jumpTo(0);break}P="yt-sys-icons"+S+":"+Q.iconName;return h.yield(ui(P,!1,!0),6);case 6:return v=h.yieldResult,h.yield(ui(P,!0,!0),7);case 7:V=h.yieldResult;Q.iconName=Q.getIconName(Z,L,D,v,V);if(!L&&v||L&&V)Q.iconsetName="yt-sys-icons"+S;_.Y2(h)}})};
_.K.getIconName=function(x,L,D,S,Q){x.includes("-filled")&&(x=x.replace("-filled",""));return Q&&(L||D)?x+"-filled":x};
_.K.useYtSysIconsetForMissingIcons=function(x,L,D,S){var Q=this,J,Z;return _.I(function(y){if(y.nextAddress==1)return Q.iconsetName!=="yt-icons"?y.jumpTo(0):y.yield(ui(Q.iconName,!1,!1,!0),3);if(y.nextAddress!=4)return J=y.yieldResult,y.yield(ui(Q.iconName,!1),4);Z=y.yieldResult;if(J||!Z)return y.jumpTo(0);Q.iconsetName="yt-sys-icons";return y.yield(Q.switchToYtSysIconset(x,L,D,S),0)})};
_.K.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var VyW=function(){return _.I(function(x){try{return x.return(_.yY().resolve(_.ki))}catch(L){return x.return(new Promise(function(D){_.jP().parkOrScheduleJob(function(){D(_.yY().resolve(_.ki))},2,"ci")}))}})},vyd=function(x,L,D,S,Q,J){S=S===void 0?24:S;
if(x){x=x.toLowerCase();var Z=x.endsWith("_filled")||x.endsWith("-filled");L={iconName:x,iconStyle:(L===void 0?0:L)||(D===void 0?0:D)||Z?"youtube_fill":"youtube_outline",iconSize:S,iconSetName:Q===void 0?"yt-icons":Q};D=!!J.resolveIcon(L);D||(L.iconSize=void 0,D=!!J.resolveIcon(L));!D&&Z&&(L.iconName=x.substring(0,x.length-7),L.iconSize=S,D=!!J.resolveIcon(L),D||(L.iconSize=void 0,D=!!J.resolveIcon(L)));D||(L.iconStyle=void 0,D=!!J.resolveIcon(L));D||_.qy(new _.RZ("Icon not supported",{iconName:L.iconName,
iconStyle:L.iconStyle,iconSize:L.iconSize,iconType:x}));return D?L:void 0}};
_.K=aU.prototype;_.K.shouldRenderIconShape=function(x){if(!_.u("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;x=this.getContainer(x);return!TZb(x,this.icon)};
_.K.renderIcon=function(x,L){var D=this,S,Q,J,Z,y,E,P,v;return _.I(function(V){switch(V.nextAddress){case 1:if(L&&D.icon!==L)return V.return();S=D.getContainer(x);Q=TZb(S,D.icon);if(D.shouldRenderIconShape(x)&&D.iconType)return D.applyIconShape(Q,S),V.return();D.removeIconShape();if(!S)return V.return();D.iconName===""&&D.iconset&&S&&(D.removeStaticIcon(D.iconset,S),Q&&D.removeAnimatedIcon(S));if(D.iconName===""&&D.iconset||!D.iconsetName||!PbW)return V.return();D.iconset=PbW.byKey(D.iconsetName);
if(!D.iconset)return D.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.p$(D,D.onIconsetAdded)),V.return();D.missingIconSet&&(D.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.p$(D,D.onIconsetAdded)));Z=(J=Q||D.isAnimatedIcon?Yon(D.icon):void 0)&&!J.lazyLoad;E=J&&((y=J)==null?void 0:y.lazyLoad)&&(J.lottiePlayerProps.animationConfig.animationData?!0:lc.get(D.isDarkTheme?J.pathDarkTheme:J.path)?!0:!1);if(Z||E)return D.applyAnimatedIcon(S,J,D.iconset),V.return();if(E||
(P=J)==null||!P.lazyLoad){V.jumpTo(2);break}v=Rwf(J,D.isDarkTheme);D.applyStaticIcon(D.iconset,S,D.iconName,x,Q);return V.yield(v,3);case 3:return V.yield(D.renderIcon(D.targetContainer,D.icon),4);case 4:return V.return();case 2:D.applyStaticIcon(D.iconset,S,D.iconName,x,Q),_.Y2(V)}})};
_.K.getContainer=function(x){var L,D=(L=Rp0(this.hostElement))==null?void 0:L.host;L=!!D&&!!D.polymerController;if(!x||L)return x?this.getTargetContainer(x,D):this.hostElement};
_.K.getTargetContainer=function(x,L){var D=_.jr(L).querySelector("#"+x);D||(x=new _.RZ("yt-icon container missing",L.is,x),_.BI(x));return D};
_.K.applyStaticIcon=function(x,L,D,S,Q){Q&&this.removeAnimatedIcon(L);this.removeIconShape();Q=Q&&!!this.iconType&&!!this.iconShapeData&&_.u("kevlar_use_wil_icons");try{Q?this.applyIconShape(!1,L):x.applyIcon(L,D)}catch(J){this.handleError(J,S,L)}};
_.K.applyIconShape=function(x,L){this.iconset&&L&&(this.removeStaticIcon(this.iconset,L),x&&this.removeAnimatedIcon(L));x={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var D=_.O(this.iconShapeDataSignal);L=D.next().value;D=D.next().value;var S=_.O(this.renderingOptionsSignal),Q=S.next().value;S=S.next().value;D(this.iconShapeData);S(x);if(!this.wizHasRendered)for(this.wizHasRendered=!0,x=_.O(Uiw(L,Q)).next().value;x.firstChild;)_.jr(this.hostElement).appendChild(x.firstChild)};
_.K.removeIconShape=function(){if(_.u("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.K.removeStaticIcon=function(x,L){x.removeIcon(L)};
_.K.applyAnimatedIcon=function(x,L,D){this.removeStaticIcon(D,x);this.removeIconShape();var S;D=this.animatedIconElement&&((S=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:S.type)===L.type;if(this.animatedIconElement&&D){this.animatedIconElement.polymerController.animatedIcon=L;var Q;((Q=this.animatedIconElement)==null?void 0:Q.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(x),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=L,this.animatedIconElement.polymerController.active=this.active,_.u("delhi_modern_web_player_icons")?(L=FKn(x,this.icon)&&x.closest("yt-player-quick-action-buttons")?{useDarkTheme:!0}:void 0,this.animatedIconElement.polymerController.isDarkTheme=L?L.useDarkTheme:this.isDarkTheme):this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.u("kevlar_use_wil_icons")?
x.insertBefore(this.animatedIconElement,x.childNodes[0]):(x=_.jr(x),x.insertBefore(this.animatedIconElement,x.childNodes[0]))};
_.K.removeAnimatedIcon=function(x){_.u("kevlar_use_wil_icons")?this.animatedIconElement&&x.contains(this.animatedIconElement)&&x.removeChild(this.animatedIconElement):(x=_.jr(x),this.animatedIconElement&&x.contains(this.animatedIconElement)&&x.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.K.handleError=function(x,L,D){_.A7(x,this.iconName,L,D);L=TZb(D,this.icon);var S=!1;window.location.href.includes("JpymaW6Lh2w")?S=!0:D._svgIcon&&(D=(D=D._svgIcon.parentNode)?D.tagName:"unknown",_.A7(x,D),D==="YT-ICON"&&x.name==="NotFoundError"?S=!0:x.name==="NotFoundError"&&L&&(S=!0));S?_.qy(x):_.BI(x)};
_.J3.Object.defineProperties(aU,{template:{configurable:!0,enumerable:!0,get:function(){if(dHQ===void 0){var x=document.createElement("template");_.m(x,"\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");x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;
MyG===void 0&&(MyG=document.createElement("template"));var S=MyG;D.call(L,S.content.cloneNode(!0),x.content.firstChild);dHQ=x}x=dHQ;return x}}});
aU.prototype.handlePropertyChange=aU.prototype.handlePropertyChange;_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],aU.prototype,"actionHandlerBehavior",void 0);_.A([_.F(),_.r("design:type",String)],aU.prototype,"icon",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],aU.prototype,"active",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],aU.prototype,"defaultToFilled",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],aU.prototype,"isAnimatedIcon",void 0);
_.A([_.F({value:24}),_.r("design:type",Number)],aU.prototype,"size",void 0);_.A([_.F({value:""}),_.r("design:type",String)],aU.prototype,"targetContainer",void 0);_.A([_.F(),_.r("design:type",Object)],aU.prototype,"animatedIconElement",void 0);_.A([_.F(),_.r("design:type",Object)],aU.prototype,"isDarkTheme",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],aU.prototype,"ariaHidden",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",String)],aU.prototype,"ariaLabel",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",String)],aU.prototype,"role",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",String)],aU.prototype,"tabindex",void 0);_.A([_.F(),_.r("design:type",String)],aU.prototype,"style",void 0);_.A([_.F(),_.r("design:type",String)],aU.prototype,"iconFilter",void 0);
_.A([_.bN("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype",Promise)],aU.prototype,"handlePropertyChange",null);_.A([_.oW({is:"yt-icon",noInjection:!0})],aU);var w8n="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),WKw=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var hWB={};hWB.YtPlaintextBehavior=[_.A4,{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(x){x.preventDefault();x=x.clipboardData.getData("text/plain");document.execCommand("insertText",!1,x)},
preventRichTextFormatting_:function(x){_.uV&&(x=x.detail.keyboardEvent,x.stopImmediatePropagation(),x.preventDefault())}}];var HgC;var u$A;var zZ=function(){var x=_.e.apply(this,arguments)||this;x.ignoreShadyDom=!1;x.hasChange_=!1;x.hasSetTitle_=!1;x.useIOObserverForVisibilityLogging_=_.u("kevlar_use_vimio_behavior")&&_.$6("INNERTUBE_CLIENT_NAME")==="WEB";x.ytFormattedStringObserverHandlerKeys_=void 0;return x};
_.p(zZ,_.e);_.K=zZ.prototype;_.K.created=function(){this.useIOObserverForVisibilityLogging_=_.u("kevlar_use_vimio_behavior")&&_.$6("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.K.ready=function(){_.$6("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_()};
_.K.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.K.detached=function(){this.unobserveIOObservers_()};
_.K.clearContents_=function(){for(var x=this.getRoot(),L=x.lastChild;L&&L.tagName!=="STYLE";){try{x.removeChild(L)}catch(D){break}L=x.lastChild}};
_.K.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var x=_.O(this.ytFormattedStringObserverHandlerKeys_),L=x.next();!L.done;L=x.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(L.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.K.resetForAttributedString=function(){var x=this.getRoot();!x.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),x.appendChild(this.ytAttributedStringElementRef))};
_.K.resetForFormattedString=function(){var x=this.getRoot(),L=x.querySelector("yt-attributed-string");L&&(this.ytAttributedStringElementRef=x.removeChild(L))};
_.K.textChanged=function(){this.textChanged_(this.text)};
_.K.textChanged_=function(x){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!x||!x.runs&&!x.simpleText;if(_.u("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var L=this.hostElement.firstChild;L&&L.nodeName==="FONT";){var D=L;L=L.nextSibling;this.hostElement.removeChild(D)}L=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
D=x.simpleText;var S;!D&&((S=x.runs)==null?void 0:S.length)===1&&this.isSimpleString_(x.runs[0])&&(D=x.runs[0].text);D!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.$6("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(D!==void 0){try{L.textContent=D}catch(Q){}L.textContent||(this.isEmpty=!0)}else x=x.runs,D!==void 0&&(x=[{text:D}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),x&&this.updateText_(x),
L.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.K.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)};
_.K.computeAriaLabel_=function(x){return x};
_.K.computeEllipsisTruncateStyling=function(x,L){return x&&!L};
_.K.computeUseAttributedString=function(x){return _.u("web_replace_formatted_with_attributed_string")&&xsh(x)&&!this.disableAttributedString&&!this.enableContentEditable};
_.K.setNodeStyle_=function(x,L){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.u("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?L.removeAttribute("dir"):L.setAttribute("dir","auto");L.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");L.style.color="";var D=null;this.noStyles||(x.bold&&(L.classList.add("bold"),D="bold"),x.deemphasize&&(L.classList.add("deemphasize"),D="deemphasize"),x.italics&&L.classList.add("italic"),
x.strikethrough&&L.classList.add("strikethrough"),x.errorUnderline&&(L.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),x.bracket&&L.classList.add("bracket"),x.textColor&&(L.style.color=_.zF(x.textColor)));D!==L.getAttribute("style-target")&&(D?L.setAttribute("style-target",D):L.removeAttribute("style-target"))};
_.K.setUpVisibilityLogging_=function(x,L){var D=this;this.setNodeTrackingParams_(x,L);var S;((S=L.data)==null?0:S.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(x=this.ytRendererBehavior.visibilityObserver.observe(L,function(Q){var J=D.ytRendererBehavior.getVisibilityLogger();J&&J.reportShown(Q)},this.ytRendererBehavior.visibilityOptionVisible_),L=this.ytRendererBehavior.visibilityObserver.observe(L,function(Q){var J=D.ytRendererBehavior.getVisibilityLogger();
J&&J.reportHidden(Q)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(x),this.ytFormattedStringObserverHandlerKeys_.push(L))};
_.K.setNodeTrackingParams_=function(x,L){L.data||(L.data={});if((x=x.loggingDirectives?x.loggingDirectives.trackingParams:null)||L.data.trackingParams)L.data.trackingParams=x};
_.K.computeHasLinkOnly_=function(x){return!(!x||x.length!==1||this.noEndpoints||!x[0].navigationEndpoint)};
_.K.getRoot=function(){var x=this.buildScopeDomOptions();return this.enableContentEditable?_.jr(_.jr(this.hostElement,x).querySelector("[contenteditable]")):_.jr(this.hostElement,x)};
_.K.fixContenteditableScope=function(){var x=function(L){L&&(L.nodeType===1&&L.classList&&(L.classList.add("style-scope"),L.classList.add("yt-formatted-string")),L.childNodes&&L.childNodes.forEach(function(D){x(D)}))};
x(this.getRoot())};
_.K.updateText_=function(x){for(var L=x.length,D=this.getRoot(),S=D.firstChild;S&&S.nodeName==="STYLE";)S=S.nextSibling;for(var Q=0;Q<L&&S;){var J=x[Q],Z=_.u("remove_cr_char")&&J.text?J.text.replace("\r",""):J.text;if(this.isSimpleString_(J)&&!this.useMixedDirectionFormattedStrings)if(S.nodeName==="#text"){S.textContent!=Z&&(S.textContent=Z);Q++;S=S.nextSibling;continue}else break;if(_.g(J,rB))break;else if(!this.noEndpoints&&J.navigationEndpoint){if(S.nodeName!=="A")break;this.setDataOnAnchor_(S,
J.navigationEndpoint)}else if(S.nodeName!=="SPAN")break;this.setNodeStyle_(J,S);this.setUpVisibilityLogging_(J,S);S.textContent!=Z&&(S.textContent=Z);Q++;S=S.nextSibling}if(S)for(J=D.lastChild,S=Q?S.previousSibling:null;J&&J!=S;){try{D.removeChild(J)}catch(y){break}J=D.lastChild}Q!==L&&this.addTextNodes_(x,Q)};
_.K.addTextNodes_=function(x,L){for(var D=document.createDocumentFragment(),S=x.length;L<S;L++){var Q=x[L],J=_.u("remove_cr_char")&&Q.text?Q.text.replace("\r",""):Q.text;if(this.isSimpleString_(Q)&&!this.useMixedDirectionFormattedStrings)D.appendChild(document.createTextNode(J));else{var Z=_.g(Q,rB);if(Z){if(Z.image){var y=document.createElement("img");Z.isCustomEmoji||y.classList.add("small-emoji");y.classList.add("emoji");Z.isCustomEmoji&&(y.dataset.emojiId=Z.emojiId);y.src=_.PD(Z.image.thumbnails,
this.emojiSize);(Q=this.get("image.accessibility.accessibilityData.label",Z))?y.alt=Q:Z.shortcuts&&Z.shortcuts.length>0?y.alt=Z.shortcuts[0]:Z.emojiId&&(y.alt=Z.emojiId);D.appendChild(y);this.hasEmoji=!0}}else!this.noEndpoints&&Q.navigationEndpoint?(y=document.createElement("a"),y.classList.add("yt-simple-endpoint"),y.setAttribute("spellcheck","false"),this.setDataOnAnchor_(y,Q.navigationEndpoint)):y=document.createElement("span"),this.setNodeStyle_(Q,y),this.setUpVisibilityLogging_(Q,y),y.appendChild(document.createTextNode(J)),
D.appendChild(y)}}this.getRoot().appendChild(D)};
_.K.isSimpleString_=function(x){return(this.noEndpoints||!x.navigationEndpoint)&&!_.g(x,rB)&&(this.noStyles||!(x.bold||x.deemphasize||x.italics||x.strikethrough||x.errorUnderline||x.bracket||x.textColor))&&!x.loggingDirectives};
_.K.getRawText=function(){return _.SR(this.text)};
_.K.getFirstRunText=function(){var x;if(((x=this.text)==null?0:x.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.K.setFirstRunText=function(x){var L;((L=this.text)==null?0:L.runs)&&this.text.runs[0]&&(this.text.runs[0].text=x,this.textChanged_(this.text))};
_.K.setDataOnAnchor_=function(x,L){var D=this;!_.u("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(L)||this.isSignalServiceEndpoint_(L)?(x.onclick=this.serviceEndpointHandler_(L),fU(x,"#")):nec({text:this.text,command:L},function(){Inn(x,L,D.target)})};
_.K.isServiceEndpoint_=function(x){var L;return!((L=_.g(x==null?void 0:x.commandMetadata,_.gg))==null||!L.sendPost)};
_.K.isSignalServiceEndpoint_=function(x){return!!_.g(x,_.ul)};
_.K.serviceEndpointHandler_=function(x){var L=this;return function(D){_.jq(L.hostElement,[x]);D.preventDefault()}};
_.K.overrideAriaLabelChanged_=function(){var x=this.getRoot();this.enableContentEditable&&x&&x.setAttribute("aria-label",this.overrideAriaLabel)};
_.K.enableContentEditableChanged_=function(){var x=this,L=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),L=_.jr(this.hostElement,L),!L.lastChild||L.lastChild instanceof HTMLElement&&L.lastChild.id!=="contenteditable-root"){var D=document.createElement("div");D.id="contenteditable-root";D.setAttribute("contenteditable","true");D.setAttribute("dir","auto");D.onfocus=function(){x.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
L.appendChild(D);this.overrideAriaLabel&&D.setAttribute("aria-label",this.overrideAriaLabel)}}else D=_.vP(this.hostElement).firstChild,D instanceof HTMLElement&&D.id==="contenteditable-root"&&_.jr(this.hostElement,L).removeChild(D)};
_.K.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.K.getNodesForVisibilityLogging_=function(){return _.dy(this.getRoot().childNodes,function(x){var L;return!((L=x.data)==null||!L.trackingParams)})};
_.K.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.K.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var x=this.ytRendererBehavior.getVisibilityLogger();x&&this.getNodesForVisibilityLogging_().forEach(function(L){x.reportShown(L)})}};
_.K.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var x=this.ytRendererBehavior.getVisibilityLogger();x&&this.getNodesForVisibilityLogging_().forEach(function(L){x.reportHidden(L)})}};
_.J3.Object.defineProperties(zZ.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.u("enable_mixed_direction_formatted_strings")}}});
zZ.prototype.enableContentEditableChanged_=zZ.prototype.enableContentEditableChanged_;zZ.prototype.overrideAriaLabelChanged_=zZ.prototype.overrideAriaLabelChanged_;zZ.prototype.ellipsisTruncateChanged_=zZ.prototype.ellipsisTruncateChanged_;zZ.prototype.textChanged=zZ.prototype.textChanged;_.A([_.b(hWB.YtPlaintextBehavior),_.r("design:type",Object)],zZ.prototype,"ytPlaintextBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],zZ.prototype,"ytComponentBehavior",void 0);
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],zZ.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],zZ.prototype,"text",void 0);_.A([_.F(),_.r("design:type",Boolean)],zZ.prototype,"noEndpoints",void 0);_.A([_.F(),_.r("design:type",Boolean)],zZ.prototype,"noStyles",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],zZ.prototype,"isDarkTheme",void 0);
_.A([_.F({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],zZ.prototype,"splitLines",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],zZ.prototype,"forceDefaultStyle",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],zZ.prototype,"ellipsisTruncate",void 0);_.A([_.F(),_.r("design:type",Object)],zZ.prototype,"ignoreShadyDom",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.r("design:type",Boolean)],zZ.prototype,"ellipsisTruncateStyling",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.r("design:type",String)],zZ.prototype,"ariaLabel",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],zZ.prototype,"isEmpty",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.r("design:type",Boolean)],zZ.prototype,"hasLinkOnly_",void 0);_.A([_.F(),_.r("design:type",Boolean)],zZ.prototype,"hasEmoji",void 0);_.A([_.F(),_.r("design:type",Boolean)],zZ.prototype,"disableAttributedString",void 0);_.A([_.F(),_.r("design:type",Boolean)],zZ.prototype,"isOverlay",void 0);_.A([_.F(),_.r("design:type",Boolean)],zZ.prototype,"linkInheritColor",void 0);
_.A([_.F(),_.r("design:type",Boolean)],zZ.prototype,"noPreWrap",void 0);_.A([_.F(),_.r("design:type",Boolean)],zZ.prototype,"userInput",void 0);_.A([_.F({value:16}),_.r("design:type",Number)],zZ.prototype,"emojiSize",void 0);_.A([_.F(),_.r("design:type",String)],zZ.prototype,"target",void 0);_.A([_.F(),_.r("design:type",Boolean)],zZ.prototype,"enableContentEditable",void 0);_.A([_.F(),_.r("design:type",String)],zZ.prototype,"overrideAriaLabel",void 0);
_.A([_.F(),_.r("design:type",Boolean)],zZ.prototype,"respectHtmlDir",void 0);_.A([_.F(),_.r("design:type",Boolean)],zZ.prototype,"respectLangDir",void 0);_.A([_.Y("plaintextOnly"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],zZ.prototype,"useMixedDirectionFormattedStrings",null);_.A([_.F({computed:"computeUseAttributedString(text)"}),_.r("design:type",Boolean)],zZ.prototype,"useYtAttributedString",void 0);
_.A([_.bN("text"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],zZ.prototype,"textChanged",null);_.A([_.bN("ellipsisTruncate"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],zZ.prototype,"ellipsisTruncateChanged_",null);_.A([_.bN("overrideAriaLabel"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],zZ.prototype,"overrideAriaLabelChanged_",null);
_.A([_.bN("enableContentEditable"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],zZ.prototype,"enableContentEditableChanged_",null);_.A([_.oW({is:"yt-formatted-string",disableElementRegistration:!0})],zZ);
_.q(zZ,"yt-formatted-string",function(){if(u$A===void 0){var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;HgC===void 0&&(HgC=document.createElement("template"));var S=HgC;D.call(L,S.content.cloneNode(!0),x.content.firstChild);u$A=x}x=u$A;return x});var gyh;var kHA;var p1h;var mHh;var XW=function(){var x=_.e.apply(this,arguments)||this;x.focused=!1;x.disabled=!1;x.isOverlay=!1;return x};
_.p(XW,_.e);XW.prototype.triggerDown=function(){if(!this.disabled){_.VA(this.hostElement,"down",!0);var x;(x=this.currentAnimation)==null||x.cancel()}};
XW.prototype.triggerUp=function(){if(!this.disabled){_.VA(this.hostElement,"down",!1);var x=this.fillElement;var L=this.strokeElement;typeof GroupEffect==="function"?(x=new GroupEffect([FbN(x),sXw(L)]),x=new Animation(x,document.timeline)):x=new omd(x,L);this.currentAnimation=x;var D;(D=this.currentAnimation)==null||D.play()}};
_.A([_.F1(".stroke"),_.r("design:type",HTMLElement)],XW.prototype,"strokeElement",void 0);_.A([_.F1(".fill"),_.r("design:type",HTMLElement)],XW.prototype,"fillElement",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],XW.prototype,"focused",void 0);_.A([_.F(),_.r("design:type",Object)],XW.prototype,"disabled",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],XW.prototype,"isOverlay",void 0);_.A([_.oW({is:"yt-interaction",disableElementRegistration:!0})],XW);
_.q(XW,"yt-interaction",function(){if(mHh===void 0){var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;p1h===void 0&&(p1h=document.createElement("template"));var S=p1h;D.call(L,S.content.cloneNode(!0),x.content.firstChild);mHh=x}x=mHh;return x},{mode:2});var c9=function(){return _.e.apply(this,arguments)||this};
_.p(c9,_.e);_.K=c9.prototype;_.K.ready=function(){var x=this,L=_.jr(this.hostElement).querySelector("#button");L.addEventListener("focus",function(){cbC||(cbC=new XTH);x.keyboardFocused=cbC.isKeyBoardInUse()});
L.addEventListener("blur",function(){x.keyboardFocused=!1;x.rippleUp_()})};
_.K.computeTabIndex_=function(x){return x?-1:0};
_.K.computeButtonAriaPressed_=function(x){if(this.toggleable)return x?"true":"false"};
_.K.rippleDown_=function(){_.jr(this.hostElement).querySelector("#interaction").triggerDown()};
_.K.rippleUp_=function(){_.jr(this.hostElement).querySelector("#interaction").triggerUp()};
_.K.onPressedChanged_=function(){var x=_.vP(_.jr(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.vP(_.jr(this.hostElement).querySelector("#button")).children[0];x&&(x.active=this.pressed)};
c9.prototype.onPressedChanged_=c9.prototype.onPressedChanged_;c9.prototype.rippleUp_=c9.prototype.rippleUp_;c9.prototype.rippleDown_=c9.prototype.rippleDown_;_.A([_.F(),_.r("design:type",String)],c9.prototype,"label",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],c9.prototype,"disabled",void 0);_.A([_.F(),_.r("design:type",Boolean)],c9.prototype,"pressed",void 0);_.A([_.F(),_.r("design:type",Object)],c9.prototype,"toggleable",void 0);
_.A([_.F(),_.r("design:type",Boolean)],c9.prototype,"untabbable",void 0);_.A([_.F(),_.r("design:type",Boolean)],c9.prototype,"keyboardFocused",void 0);_.A([_.mX("down"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],c9.prototype,"rippleDown_",null);_.A([_.mX("up"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],c9.prototype,"rippleUp_",null);
_.A([_.bN("pressed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],c9.prototype,"onPressedChanged_",null);_.A([_.oW({is:"yt-icon-button",disableElementRegistration:!0})],c9);
_.q(c9,"yt-icon-button",function(){if(kHA===void 0){var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;gyh===void 0&&(gyh=document.createElement("template"));var S=gyh;D.call(L,S.content.cloneNode(!0),x.content.firstChild);kHA=x}x=kHA;return x},{mode:2});var bgh;var YAh=function(){var x=document.body,L=x.appendChild;if(bgh===void 0){var D=document.createElement("template");_.m(D,'\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>');
bgh=D}D=bgh;L.call(x,D.content)};
document.body?YAh():window.addEventListener("DOMContentLoaded",YAh);var FT2=_.xI(["aria-"]),xs={};xs.YtRenderButtonBehavior=[_.c.YtRendererBehavior,_.NP.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!!_.yY().resolve(_.ZN(_.CJ))&&_.u("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 x=this.computeHref_(this.endpoint,!0);x?fU(this.elements_.endpoint,x):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){x=this.buttonClass.split(" ");x=_.O(x);for(var L=x.next();!L.done;L=x.next())L=L.value,_.VA(this.hostElement,L,!0),this.elements_.button&&_.VA(this.elements_.button,L,!0),this.elements_.text&&_.VA(this.elements_.text,L,!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&&(x=null,this.buttonAccessibility&&(x=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=x:x?_.KZ([_.ID(FT2)],this.elements_.button,"aria-label",x):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var x=_.yY().resolve(_.ZN(_.CJ));x&&(this.keyboardFocused=x.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.TZ("tp-yt-paper-tooltip"):document.createElement("tp-yt-paper-tooltip"),this.elements_.tooltip.position=this.buttonTooltipPosition,this.elements_.tooltip.offset=8,this.elements_.tooltip.fitToVisibleBounds=!0,_.G0(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.G0(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(x,L){if(L)for(x=L.split(" "),x=_.O(x),L=x.next();!L.done;L=x.next())L=L.value,_.VA(this.hostElement,L,!1),this.elements_.button&&_.VA(this.elements_.button,L,!1),this.elements_.text&&_.VA(this.elements_.text,L,!1)},
buttonIconChanged_:function(x){this.elements_.icon?x?(this.elements_.icon.icon=x,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.G0(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.hq(this.hostElement,"is-paper-button-with-icon",!1)):x&&this.stampType_&&this.stampType_=="paper_button"&&this.addIconElementToPaperButton_()},
addIconElementToPaperButton_:function(){this.elements_.icon=this.getIcon_();this.setIconActive_(this.elements_.icon);this.elements_.button&&(this.iconPositionType&&this.iconPositionType!="BUTTON_ICON_POSITION_TYPE_LEFT_OF_TEXT"?this.iconPositionType=="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"&&_.G0(this.elements_.button).appendChild(this.elements_.icon):_.G0(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.hq(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(x){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,x){var L=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(x){case "yt_icon_button_with_label":L=!0;_.VA(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();x=_.G0(this.elements_.button).firstElementChild;
this.elements_.icon=x;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.G0(this.elements_.endpoint).appendChild(this.elements_.button);_.G0(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.TZ("tp-yt-paper-button"):document.createElement("tp-yt-paper-button");this.elements_.text=this.getFormattedString_();
this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;this.elements_.button.raised=this.buttonRaised;_.G0(this.elements_.button).appendChild(this.elements_.text);_.G0(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":L=!0,this.elements_.button=this.getYtIconButton_(),x=_.G0(this.elements_.button).firstElementChild,this.elements_.icon=x,this.setIconActive_(this.elements_.icon),
_.G0(this.elements_.endpoint).appendChild(this.elements_.button)}_.hq(this.hostElement,"is-icon-button",L);_.hq(this.hostElement,"is-paper-button",!L);_.hq(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 D;_.jr((D=this.container.hostElement)!=null?D:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.G0(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(x){if(x!=void 0||this.disabled)this.disabled=x,this.elements_.button&&(this.elements_.button.disabled=x)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(x){_.u("kevlar_system_icons")&&x&&this.data&&(this.data.isSelected!==void 0?x.active=this.data.isSelected:this.data.isToggled!==void 0&&(x.active=this.data.isToggled))},
observeBasicPalette_:function(x){_.UI(this.hostElement,x)},
disabledChanged_:function(x){this.data&&this.set("data.isDisabled",x)},
onYtButtonTap_:function(x){if(this.disabled)x.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.jq(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(x=this.disableCommandHandlerOverride,!this.data||!this.data.command||x||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.u("handle_service_request_actions")||_.jq(this.hostElement,[this.serviceEndpoint]),
_.MF(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.u("handle_service_request_actions")?(x=[],this.serviceEndpoint&&x.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&x.push(this.data.command),x.length&&_.v$(this.hostElement,x,this.hostElement)):this.data&&this.data.command&&(x=this.data.command,x.accountUnlinkCommand||x.accountLinkCommand||x.insertAdCommand||x.insertHighlightMarkerCommand||
x.createLivestreamHighlightClipCommand||x.getVideoUploadFeedbackCommand||x.musicDeletePrivatelyOwnedEntityCommand||x.ypcCancelRecurrenceEndpoint||x.getMultiSelectCommandEndpoint?_.jq(this.hostElement,[x]):_.v$(this.hostElement,[x],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 x,L=_.jr((x=this.container.hostElement)!=null?x:this.container);L.lastChild&&L.lastChild.tagName!="STYLE";)try{L.removeChild(L.lastChild)}catch(D){break}},
getYtIconButton_:function(){var x=this.reuseEnabled_()?_.TZ("yt-icon-button"):document.createElement("yt-icon-button"),L=_.G0(x).firstElementChild;if(L&&L.is!="yt-icon"){for(L=_.G0(x);L.lastChild;)L.removeChild(L.lastChild);L=null}L||(L=this.getIcon_(),this.setIconActive_(L),_.G0(x).appendChild(L));return x},
reuseEnabled_:function(){return _.u("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.TZ("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.TZ("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.sLB={};
_.sLB.YtButtonBehavior=[xs.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var x=this.data;x&&(this._setEndpoint(this.computeEndpoint_(x)),this._setServiceEndpoint(this.computeServiceEndpoint_(x)),this._setCommand(this.computeCommand_(x)),this._setButtonIcon(this.computeButtonIcon_(x)),this._setButtonText(this.computeButtonText_(x,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(x)),this._setButtonTooltip(this.computeTooltip_(x)),this._setButtonClass(this.computeButtonClass_(x)),this._setIconPositionType(this.computeIconPositionType_(x)),this.updateRenderedElements())},
setPressedState:function(x){var L;if((L=this.elements_)==null?0:L.button)this.elements_.button.pressed=!!x},
computeIconPositionType_:function(x){return x&&x.iconPosition||null},
computeEndpoint_:function(x){var L=x&&x.navigationEndpoint,D=this.get("data.command.commandMetadata.webCommandMetadata.url"),S=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return L?L:x&&x.command&&x.command.modalEndpoint?x.command:D&&!S&&x.command?x.command:null},
computeServiceEndpoint_:function(x){var L=x&&x.serviceEndpoint,D=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return L?L:D&&x.command?x.command:null},
computeCommand_:function(x){return x&&x.command||null},
computeButtonIcon_:function(x){return x&&x.icon&&x.icon.iconType?_.gB(x.icon.iconType):null},
computeButtonText_:function(x,L){return!L&&x&&x.text||null},
computeAccessibility_:function(x){return this.get("accessibilityData.accessibilityData",x)||x&&x.accessibility||(x&&x.text?{label:this.getSimpleString(x.text)}:null)},
computeTooltip_:function(x){return x?x.isDisabled&&x.disabledTooltip||x.tooltip||null:null},
computeButtonClass_:function(x){var L=x&&x.style?x.style.toLowerCase().replace(/_/g,"-")+" ":"";L+=x&&x.size?x.size.toLowerCase().replace(/_/g,"-")+" ":"";x.colorData&&x.colorData.basicColorPaletteData&&x.colorData.basicColorPaletteData.borderColor&&(L+="palette-with-border");return L.trim()}}];var wF={};var TmA;var eWR;var RWA,GH2=function(){return RWA!==void 0?RWA:RWA=document.createElement("template")};
document.head.appendChild(GH2().content);var Cb2;var l2Q,UHd=function(){return l2Q!==void 0?l2Q:l2Q=document.createElement("template")};
document.head.appendChild(UHd().content);var w1_;var BmQ,WT2=function(){return BmQ!==void 0?BmQ:BmQ=document.createElement("template")};
document.head.appendChild(WT2().content);var qA2;var AFC=document.head,$H2=AFC.appendChild,rF2;if(qA2===void 0){var Nm2=document.createElement("template");_.m(Nm2,"\x3c!--css-build:shady--\x3e");Nm2.content.insertBefore(WT2().content.cloneNode(!0),Nm2.content.firstChild);qA2=Nm2}rF2=qA2;$H2.call(AFC,rF2.content);var ig2=document.head,f2Q=ig2.appendChild,oy2;if(w1_===void 0){var a2H=document.createElement("template");_.m(a2H,"\x3c!--css-build:shady--\x3e");a2H.content.insertBefore(UHd().content.cloneNode(!0),a2H.content.firstChild);w1_=a2H}oy2=w1_;f2Q.call(ig2,oy2.content);var zWh=document.head,X1h=zWh.appendChild,cFC;if(Cb2===void 0){var nyR=document.createElement("template");_.m(nyR,"\x3c!--css-build:shady--\x3e");nyR.content.insertBefore(GH2().content.cloneNode(!0),nyR.content.firstChild);Cb2=nyR}cFC=Cb2;X1h.call(zWh,cFC.content);var tyH;_.BD("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");tyH=_.u("web_button_rework")&&_.rO("BUTTON_REWORK")||_.u("web_button_rework_with_live");_.Lf=function(){return _.e.apply(this,arguments)||this};
_.p(_.Lf,_.e);_.Lf.prototype.created=function(){this.openPopupConfig=_.$6("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.Lf.prototype.onYtNavigate_=function(x){var L=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(x.detail.endpoint);L&&(this.ytOpenPopupBehavior.openPopup(L),x.stopPropagation(),x.preventDefault())};
_.J3.Object.defineProperties(_.Lf,{template:{configurable:!0,enumerable:!0,get:function(){if(eWR===void 0){var x=document.createElement("template");_.m(x,"\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");x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);
var L=x.content,D=L.insertBefore;TmA===void 0&&(TmA=document.createElement("template"));var S=TmA;D.call(L,S.content.cloneNode(!0),x.content.firstChild);eWR=x}x=eWR;return x}}});
_.Lf.prototype.onYtNavigate_=_.Lf.prototype.onYtNavigate_;_.A([_.b(_.rs.YtOpenPopupBehavior),_.r("design:type",Object)],_.Lf.prototype,"ytOpenPopupBehavior",void 0);_.A([_.b(_.sLB.YtButtonBehavior),_.r("design:type",Object)],_.Lf.prototype,"ytButtonBehavior",void 0);_.A([_.mX("yt-navigate"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],_.Lf.prototype,"onYtNavigate_",null);
_.A([_.oW({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:tyH})],_.Lf);var xWh;var LbR=_.u("web_button_rework")&&_.rO("BUTTON_REWORK")||_.u("web_button_rework_with_live"),Dd=function(){var x=_.e.apply(this,arguments)||this;x.isPressed=!1;x.forceIconButton=!1;x.forceIconOnly=!1;x.forceModernIconButton=!1;x.skipCommandHandling=!1;x.alignByText=!1;x.fitToVisibleBounds=!0;x.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};x.onTap=function(L){_.MF(x.hostElement,"yt-service-request-sent-button-renderer",L)};
return x};
_.p(Dd,_.e);_.K=Dd.prototype;_.K.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.K.onClick=function(x){var L,D=this.disabled||((L=this.data)==null?void 0:L.isDisabled);L=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");D&&L&&x.stopPropagation()};
_.K.computeIcon=function(){var x,L,D=(x=this.data)==null?void 0:(L=x.icon)==null?void 0:L.iconType;if(D)return _.gB(D)};
_.K.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.K.handleUpdateButtonAction=function(x){x=_.g(x,Nfr);var L=_.g(x==null?void 0:x.updatedButton,_.y4);if(this.data&&x&&L){var D=this.data;D.targetId&&x.targetId&&D.targetId===x.targetId&&(this.data=L)}};
_.J3.Object.defineProperties(Dd.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var x=this;if(this.data){var L=i9s({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.MF(x.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.MF(x.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});L.alignByText=this.alignByText;return L}}}});
_.J3.Object.defineProperties(Dd,{template:{configurable:!0,enumerable:!0,get:function(){if(xWh===void 0){var x=document.createElement("template");_.m(x,'\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>');xWh=x}x=xWh;return x}}});
Dd.prototype.onClick=Dd.prototype.onClick;_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],Dd.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Dd.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],Dd.prototype,"ytActionHandlerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Dd.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],Dd.prototype,"isPressed",void 0);
_.A([_.F(),_.r("design:type",Object)],Dd.prototype,"forceIconButton",void 0);_.A([_.F(),_.r("design:type",Object)],Dd.prototype,"forceIconOnly",void 0);_.A([_.F(),_.r("design:type",Object)],Dd.prototype,"forceModernIconButton",void 0);_.A([_.F(),_.r("design:type",Object)],Dd.prototype,"skipCommandHandling",void 0);_.A([_.F(),_.r("design:type",Object)],Dd.prototype,"alignByText",void 0);_.A([_.F(),_.r("design:type",Object)],Dd.prototype,"buttonTooltipPosition",void 0);
_.A([_.F(),_.r("design:type",Object)],Dd.prototype,"fitToVisibleBounds",void 0);_.A([_.F({computed:"computeTooltip(data)"}),_.r("design:type",Object)],Dd.prototype,"tooltip",void 0);_.A([_.F(),_.r("design:type",Object)],Dd.prototype,"overrides",void 0);_.A([_.F(),_.r("design:type",Boolean)],Dd.prototype,"disabled",void 0);_.A([_.mX("click"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],Dd.prototype,"onClick",null);
_.A([_.Y("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.r("design:type",Object),_.r("design:paramtypes",[])],Dd.prototype,"computedButtonShape",null);_.A([_.oW({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!LbR,cssBuildOptOut:!0}),_.oW({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!LbR,cssBuildOptOut:!0})],Dd);var DWB;var Sr_;var SQ=function(){var x=_.e.apply(this,arguments)||this;x.empty_=!0;x.loadTime=Infinity;x.pendingPaint=!1;x.hasChange_=!1;x.oldThumbnail_=null;x.oldDelayedSrc_="";x.objectURL_=null;return x};
_.p(SQ,_.e);_.K=SQ.prototype;_.K.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.K.ready=function(){var x=this.shouldShowPlaceholder_();_.VA(this.hostElement,"no-transition",!0);x&&this.hostElement.classList.add("with-placeholder")};
_.K.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.K.isThumbPreloaded_=function(x){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",x)};
_.K.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||QX_};
_.K.computeThumbnailSrc_=function(x){return x&&x.thumbnails?_.PD(x.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.K.computeAlt_=function(){var x=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&x||""};
_.K.thumbnailChanged_=function(){var x=_.O([this.thumbnail,this.oldThumbnail_]),L=x.next().value;x=x.next().value;this.oldThumbnail_=L;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(x=this.computeThumbnailSrc_(x),this.computeThumbnailSrc_(L)===x))return;_.u("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(L)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):L&&_.rO("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.So(this,this.onReload_):_.So(this,this.onShow_):this.resetImage_();L&&(this.hostElement.style.opacity=""+L.opacity)}};
_.K.delayedSrcChanged_=function(){var x=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===x||this.resetImage_()};
_.K.setSrc_=function(x){x?(_.jr(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.jr(this.hostElement).querySelector("#img").src=x):(_.jr(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.K.resetImage_=function(){f2b(this.hostElement);this.empty_=!0;this.setSrc_(QX_);this.ytRendererBehavior.invalidate(!1)};
_.K.observePlaceholderColor_=function(){var x=this.thumbnail&&this.thumbnail.placeholderColor;x?this.hostElement.style.backgroundColor=_.zF(x):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.K.onLoad_=function(){_.jr(this.hostElement).querySelector("#img").src&&_.jr(this.hostElement).querySelector("#img").src!==QX_&&(ig3(this.hostElement),this.notifyOnLoaded&&_.MF(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.K.onError_=function(){var x=this;if(_.u("web_use_cache_for_image_fallback"))tyf(_.jr(this.hostElement).querySelector("#img").src).then(function(L){x.objectURL_=_.r8(L).toString();x.setSrc_(x.objectURL_)}).catch(function(){_.u("kevlar_woffle_fallback_image")&&x.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.K.onPrescanVisible=function(){this.onShow_()};
_.K.onVisible=function(){if(_.u("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.K.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var x=this.computeSrc_();x!==_.jr(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(x))}};
_.K.onReload_=function(){this.empty_=!1;var x=this.computeSrc_();x!==_.jr(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(x))};
_.K.shouldShowPlaceholder_=function(){return _.u("kevlar_thumbnail_bg")};
SQ.prototype.observePlaceholderColor_=SQ.prototype.observePlaceholderColor_;SQ.prototype.delayedSrcChanged_=SQ.prototype.delayedSrcChanged_;SQ.prototype.thumbnailChanged_=SQ.prototype.thumbnailChanged_;_.A([_.F({reflectToAttribute:!0}),_.r("design:type",String)],SQ.prototype,"alt",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],SQ.prototype,"ariaHidden",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",String)],SQ.prototype,"ariaLabel",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],SQ.prototype,"hidden",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",String)],SQ.prototype,"id",void 0);_.A([_.b(_.hz.YtVisibilityBehavior),_.r("design:type",Object)],SQ.prototype,"ytVisibilityBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],SQ.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",String)],SQ.prototype,"delayedSrc",void 0);
_.A([_.F(),_.r("design:type",Object)],SQ.prototype,"thumbnail",void 0);_.A([_.F({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],SQ.prototype,"loaded",void 0);_.A([_.F(),_.r("design:type",Boolean)],SQ.prototype,"notifyOnLoaded",void 0);_.A([_.F(),_.r("design:type",Number)],SQ.prototype,"height",void 0);_.A([_.F(),_.r("design:type",Number)],SQ.prototype,"width",void 0);_.A([_.F({value:function(){return"width"}}),
_.r("design:type",String)],SQ.prototype,"dimension",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],SQ.prototype,"fit",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],SQ.prototype,"fitHeight",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],SQ.prototype,"fitWidth",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",String)],SQ.prototype,"objectFit",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",String)],SQ.prototype,"objectPosition",void 0);_.A([_.F(),_.r("design:type",String)],SQ.prototype,"preferredThumbnail",void 0);_.A([_.F({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.r("design:type",String)],SQ.prototype,"alt_",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",String)],SQ.prototype,"sharedTooltipText",void 0);
_.A([_.F(),_.r("design:type",Boolean)],SQ.prototype,"ftlEligible",void 0);_.A([_.F({value:void 0}),_.r("design:type",String)],SQ.prototype,"observeHiddenOption",void 0);_.A([_.F({value:"observe_once"}),_.r("design:type",String)],SQ.prototype,"observePrescanOption",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],SQ.prototype,"roundedContainer",void 0);
_.A([_.GV("thumbnail"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],SQ.prototype,"thumbnailChanged_",null);_.A([_.GV("delayedSrc"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],SQ.prototype,"delayedSrcChanged_",null);_.A([_.bN("thumbnail.placeholderColor"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],SQ.prototype,"observePlaceholderColor_",null);
_.A([_.oW({is:"yt-img-shadow",disableElementRegistration:!0})],SQ);var QX_=_.rO("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.vp()(SQ,"yt-img-shadow",function(){if(Sr_===void 0){var x=document.createElement("template");_.m(x,'\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">');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;DWB===void 0&&(DWB=document.createElement("template"));var S=DWB;D.call(L,S.content.cloneNode(!0),x.content.firstChild);Sr_=x}x=Sr_;return x},{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 mdw;_.QT=new _.vx("SCREEN_MANAGER_TOKEN");mdw=new _.vx("LOG_INITIAL_SCREEN_TOKEN");var Jli=_.qj({entities:{}});var KbR=_.AD(Jli)(Jli.entities,{selectSfvAudioItemPlaybackState:function(x,L){var D,S;x=(S=_.u6(x,"sfvAudioItemCurrentlyPlayingEntity",L))!=null?S:void 0;return(D=x==null?void 0:x.sfvAudioItemPlaybackState)!=null?D:void 0},
playlistLoopStateEntitySelector:function(x,L){var D;return(D=_.u6(x,"playlistLoopStateEntity",L))!=null?D:void 0}});_.JT=_.B(function(x){function L(xf){return _.g(xf,_.de)}
function D(){var xf=S().isTogglingDisabled||T()&&S().toggledIsTogglingDisabled,K3=xf||h()?T():!T();G(K3);l(!1);if(!xf){var P4;(P4=Z)==null||P4(!!K3)}var kf;((kf=J)==null?0:kf())||_.AM(_.yY().resolve(_.QT),S().trackingParams);var H4;if(!K3||!L(S().defaultButtonViewModel)||(H4=J)!=null&&H4()){var p3;!L(S().toggledButtonViewModel)||((p3=J)==null?0:p3())||_.AM(_.yY().resolve(_.QT),L(S().toggledButtonViewModel).trackingParams)}else _.AM(_.yY().resolve(_.QT),L(S().defaultButtonViewModel).trackingParams)}
var S=x.data,Q=x.buttonShapeOverrides,J=x.disableExplicitClickLogging,Z=x.onToggle,y=x.style,E=x.useOutlinedIcon,P=x.className,v=function(){var xf,K3;return T()?(xf=x.animatedTextPropsToggled)==null?void 0:xf.call(x):(K3=x.animatedTextPropsDefault)==null?void 0:K3.call(x)},V=_.m5(function(){return v()?Object.assign({},v(),{shouldAnimate:U()}):void 0},void 0,"Zp4uoe"),h=function(){var xf;
return((xf=N())==null?void 0:xf.isToggled)!==void 0},H=_.O(_.mU(function(){var xf,K3,P4;
return h()?(xf=N())==null?void 0:xf.isToggled:(P4=Q==null?void 0:(K3=Q())==null?void 0:K3.toggled)!=null?P4:S().isToggled})),k=H.next().value;
H=H.next().value;var T=k,G=H;H=_.O(_.mU(function(){var xf,K3;return(xf=x.animatedTextPropsToggled)==null?void 0:(K3=xf.call(x))==null?void 0:K3.shouldAnimate}));
k=H.next().value;H=H.next().value;var U=k,l=H;k=_.O(_.HB(!1,void 0,"mq3Zfe"));var X=k.next().value,f=k.next().value,N=_.ic(function(xf){a:{var K3=S().entityKey,P4=S().toggledStateEntitySelectorType;if(P4)switch(P4){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":if(!K3)break;xf=KbR.selectSfvAudioItemPlaybackState(xf,K3);if(xf==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){xf={isToggled:!0};break a}if(xf){xf={isToggled:!1};break a}break;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_COMMENTS_PANEL":xf=
{isToggled:_.zwO(xf).includes("engagement-panel-comments-section")};break a;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_LIVE_CHAT_PANEL":xf={isToggled:_.zwO(xf).includes("engagement-panel-live-chat-item-section")};break a;default:_.qy(new _.RZ("Error: entitySelectorType defined but not matched in selector.",xf,P4))}xf=void 0}return xf}),z=function(){return Object.assign({},Q==null?void 0:Q(),{onToggle:D,
toggleable:!0,toggled:T(),focused:X()})};
return _.M("toggle-button-view-model",{"on:focusin":_.kO(function(){var xf=_.yY().resolve(_.ZN(_.CJ));xf&&f(xf.isKeyBoardInUse());return!1}),
"on:focusout":_.kO(function(){f(!1);return!1})},_.M(_.d,{cond:function(){return T()?L(S().toggledButtonViewModel):L(S().defaultButtonViewModel)},
then:function(xf){return _.M(_.qP,{data:xf,className:P,style:y,useOutlinedIcon:E,buttonOverrides:z,animatedTextProps:V})}}))},"aa");
_.JT.idomCompat={callbacks:{onToggle:!0}};_.dF(_.B(function(x){return _.M("yt-toggle-button-view-model",{class:function(){var L;return(L=x.scopingClassName)==null?void 0:L.call(x)}},_.M(_.JT,{data:function(){var L;
return(L=x.data)==null?void 0:L.call(x)},
buttonShapeOverrides:function(){var L;return(L=x.overrides)==null?void 0:L.call(x)},
animatedTextPropsDefault:function(){var L;return(L=x.animatedTextPropsDefault)==null?void 0:L.call(x)},
animatedTextPropsToggled:function(){var L;return(L=x.animatedTextPropsToggled)==null?void 0:L.call(x)},
disableExplicitClickLogging:function(){var L;return(L=x.disableExplicitClickLogging)==null?void 0:L.call(x)},
onToggle:function(L){var D;return(D=x.onToggle)==null?void 0:D.call(x,L)},
style:function(){var L;return(L=x.style)==null?void 0:L.call(x)},
useOutlinedIcon:function(){var L;return(L=x.useOutlinedIcon)==null?void 0:L.call(x)},
className:function(){var L;return(L=x.className)==null?void 0:L.call(x)}}))},"ba"),"yt-toggle-button-view-model",{props:{data:_.pJ,
buttonShapeOverrides:_.pJ,overrides:_.pJ,animatedTextPropsDefault:_.pJ,animatedTextPropsToggled:_.pJ,disableExplicitClickLogging:_.pJ,onToggle:_.Il,style:_.pJ,useOutlinedIcon:_.pJ,className:_.pJ,scopingClassName:_.pJ}});var Kf=function(){return _.e.apply(this,arguments)||this};
_.p(Kf,_.e);Kf.prototype.onTap=function(x){x.stopPropagation();x=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.B2("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:x})):this.ytLiveChatReduxBehavior.dispatch(_.TR("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:x}))};
_.J3.Object.defineProperties(Kf.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.engagementState)==null?void 0:x.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var x=_.g(this.data.toggleButton,_.j3),L;if(Number(((L=this.likeCountState)==null?void 0:L.likeCountIfIndifferentNumber)||"0")===0){var D;L=((D=this.data.likeCountPlaceholder)==null?void 0:D.content)||""}else{var S,Q,J;L=((S=this.likeCountState)==null?void 0:(Q=S.likeCountIfIndifferent)==null?void 0:Q.content)||((J=this.data.likeCountPlaceholder)==null?void 0:J.content)||""}var Z,y;D=((Z=this.likeCountState)==null?void 0:(y=
Z.likeCountIfLiked)==null?void 0:y.content)||"1";Z=_.g(x.toggledButtonViewModel,_.de);return Object.assign({},x,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.g(x.defaultButtonViewModel,_.de),{title:L})},toggledButtonViewModel:{buttonViewModel:Object.assign({},Z,{title:D})}})}}}});
Kf.prototype.onTap=Kf.prototype.onTap;_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],Kf.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Kf.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.ds),_.r("design:type",Object)],Kf.prototype,"ytLiveChatReduxBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Kf.prototype,"data",void 0);
_.A([_.F({selectorArgs:["data.likeCountEntityKey"],selector:X8f}),_.r("design:type",Object)],Kf.prototype,"likeCountState",void 0);_.A([_.F({selectorArgs:["data.engagementStateKey"],selector:tYG}),_.r("design:type",Object)],Kf.prototype,"engagementState",void 0);_.A([_.Y("data","engagementState"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Kf.prototype,"isLiked",null);
_.A([_.Y("data","likeCountState","isLiked"),_.r("design:type",Object),_.r("design:paramtypes",[])],Kf.prototype,"toggleButton",null);_.A([_.mX("tap"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],Kf.prototype,"onTap",null);_.A([_.oW({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],Kf);
_.q(Kf,"yt-live-chat-like-button-view-model",function(){if(Zgd===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;OgH===void 0&&(OgH=document.createElement("template"));var S=OgH;D.call(L,S.content.cloneNode(!0),x.content.firstChild);Zgd=x}x=Zgd;return x},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var OyC;var Zy_;var OV=function(){return _.e.apply(this,arguments)||this};
_.p(OV,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],OV.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],OV.prototype,"data",void 0);_.A([_.oW({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],OV);
_.q(OV,"yt-live-chat-paid-message-footer-renderer",function(){if(Zy_===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;OyC===void 0&&(OyC=document.createElement("template"));var S=OyC;D.call(L,S.content.cloneNode(!0),x.content.firstChild);Zy_=x}x=Zy_;return x},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var ylr;var I0W;var E1Q;var MYd,dWd=function(){if(MYd!==void 0)return MYd;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;E1Q===void 0&&(E1Q=document.createElement("template"));var S=E1Q;D.call(L,S.content.cloneNode(!0),x.content.firstChild);return MYd=x};var Zd=function(){return _.e.apply(this,arguments)||this};
_.p(Zd,_.e);Zd.prototype.onTap=function(x){x.stopPropagation()};
_.J3.Object.defineProperties(Zd.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var x=_.g(this.data.replyButton,_.de),L,D,S,Q,J,Z,y,E=Number(((L=this.replyCountState)==null?void 0:L.replyCountNumber)||"0")===0?(D=this.data)==null?void 0:(S=D.replyCountPlaceholder)==null?void 0:S.content:((Q=this.replyCountState)==null?void 0:(J=Q.replyCount)==null?void 0:J.content)||((Z=this.data)==null?void 0:(y=Z.replyCountPlaceholder)==null?void 0:y.content)||"",P;return Object.assign({},
x,{title:E,accessibilityText:(P=this.replyCountState)==null?void 0:P.replyButtonAccessibilityText})}}}});
_.J3.Object.defineProperties(Zd,{template:{configurable:!0,enumerable:!0,get:function(){return dWd()}}});
Zd.prototype.onTap=Zd.prototype.onTap;_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],Zd.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Zd.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.ds),_.r("design:type",Object)],Zd.prototype,"ytLiveChatReduxBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Zd.prototype,"data",void 0);
_.A([_.F({selectorArgs:["data.replyCountEntityKey"],selector:function(x,L){return _.u6(x.entities,"replyCountEntity",L)}}),
_.r("design:type",Object)],Zd.prototype,"replyCountState",void 0);_.A([_.Y("data","replyCountState"),_.r("design:type",Object),_.r("design:paramtypes",[])],Zd.prototype,"buttonViewModel",null);_.A([_.mX("tap"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],Zd.prototype,"onTap",null);_.A([_.oW({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],Zd);
_.q(Zd,"yt-live-chat-reply-button-view-model",function(){return dWd()},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var P22;var jXi;var yT=function(){var x=_.e.apply(this,arguments)||this;x.ariaLabel="";return x};
_.p(yT,_.e);
yT.prototype.dataChanged=function(){for(var x=(0,_.HP)(_.jr(this.hostElement).querySelector("#image"));x.firstChild;)x.removeChild(x.firstChild);if(this.data)if(this.data.icon){var L=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(L.polymerController.icon="yt-sys-icons:shield-filled",L.polymerController.defaultToFilled=!0):L.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();x.appendChild(L)}else if(this.data.customThumbnail){L=document.createElement("img");
var D=_.Bmb(this.data.customThumbnail.thumbnails,16);D?(L.src=D,x.appendChild(L),L.setAttribute("alt",this.hostElement.ariaLabel||"")):_.qy(new _.RZ("Could not compute URL for thumbnail",this.data.customThumbnail))}};
yT.prototype.identity=function(x){return x};
yT.prototype.computeType=function(x){return hH(x||void 0)};
yT.prototype.dataChanged=yT.prototype.dataChanged;_.A([_.F(),_.r("design:type",Object)],yT.prototype,"data",void 0);_.A([_.F({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.r("design:type",Object)],yT.prototype,"ariaLabel",void 0);_.A([_.F({computed:"computeType(data)",reflectToAttribute:!0}),_.r("design:type",String)],yT.prototype,"type",void 0);
_.A([_.F({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.r("design:type",String)],yT.prototype,"sharedTooltipText",void 0);_.A([_.F({reflectToAttribute:!0,value:function(){return _.u("live_chat_enable_new_moderator_badge")}}),
_.r("design:type",Boolean)],yT.prototype,"enableNewModeratorBadge",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],yT.prototype,"dataChanged",null);_.A([_.oW({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],yT);
_.q(yT,"yt-live-chat-author-badge-renderer",function(){if(jXi===void 0){var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;P22===void 0&&(P22=document.createElement("template"));var S=P22;D.call(L,S.content.cloneNode(!0),x.content.firstChild);jXi=x}x=jXi;return x},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var v1_;var VYG;var Ik=function(){return _.e.apply(this,arguments)||this};
_.p(Ik,_.e);_.K=Ik.prototype;_.K.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"}}}}};
_.K.computeBadgesInsideChip=function(x){return x?x.filter(function(L){return hH(L.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.K.computeBadgesOutsideChip=function(x){return this.prependChatBadges||!x?[]:x.filter(function(L){L=hH(L.liveChatAuthorBadgeRenderer);return L!=="verified"&&L!=="owner"})};
_.K.computeBadgesBeforeChip=function(x){return this.prependChatBadges&&x?x.filter(function(L){L=hH(L.liveChatAuthorBadgeRenderer);return L!=="verified"&&L!=="owner"}):[]};
_.K.computeIsHighlighted=function(x,L){var D=!!DGc(x,"owner"),S=!!DGc(x,"verified");x=!!DGc(x,"moderator");return(D||S&&!x)&&!L};
_.K.computeAuthorType=function(x){return Lds(x)};
_.K.computeAuthorClass=function(x,L){return L?(x?x+" ":"")+"single-line":x};
_.K.onSeedColorChanged=function(){_.u("live_chat_author_name_color_usernames")||_.u("live_chat_seed_color_usernames")||_.u("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):_.u("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
Ik.prototype.onSeedColorChanged=Ik.prototype.onSeedColorChanged;_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],Ik.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Ik.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Ik.prototype,"authorName",void 0);_.A([_.F(),_.r("design:type",Array)],Ik.prototype,"authorBadges",void 0);
_.A([_.F({computed:"computeAuthorType(authorBadges)"}),_.r("design:type",String)],Ik.prototype,"authorType",void 0);_.A([_.F({computed:"computeAuthorClass(authorType, singleLine)"}),_.r("design:type",String)],Ik.prototype,"authorClass",void 0);_.A([_.F({computed:"computeBadgesInsideChip(authorBadges)"}),_.r("design:type",Array)],Ik.prototype,"badgesInsideChip",void 0);_.A([_.F({computed:"computeBadgesOutsideChip(authorBadges)"}),_.r("design:type",Array)],Ik.prototype,"badgesOutsideChip",void 0);
_.A([_.F({computed:"computeBadgesBeforeChip(authorBadges)"}),_.r("design:type",Array)],Ik.prototype,"badgesBeforeChip",void 0);_.A([_.F({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.r("design:type",Boolean)],Ik.prototype,"isHighlighted",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],Ik.prototype,"singleLine",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],Ik.prototype,"disableHighlighting",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],Ik.prototype,"dashboardMoneyFeed",void 0);_.A([_.F({value:_.u("live_chat_prepend_badges"),reflectToAttribute:!0}),_.r("design:type",Boolean)],Ik.prototype,"prependChatBadges",void 0);_.A([_.F(),_.r("design:type",String)],Ik.prototype,"authorNameColor",void 0);_.A([_.F1("#author-name"),_.r("design:type",HTMLDivElement)],Ik.prototype,"username",void 0);
_.A([_.bN("authorNameColor"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Ik.prototype,"onSeedColorChanged",null);_.A([_.oW({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],Ik);
_.q(Ik,"yt-live-chat-author-chip",function(){if(VYG===void 0){var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;v1_===void 0&&(v1_=document.createElement("template"));var S=v1_;D.call(L,S.content.cloneNode(!0),x.content.firstChild);VYG=x}x=VYG;return x},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var hAh;var HyW;var EV=function(){var x=_.e.apply(this,arguments)||this;x.debounceCommand=_.lW(function(L){x.ytComponentBehavior.resolveCommand(L)},1500);
return x};
_.p(EV,_.e);EV.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var x=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",L,D,S=this.isHearted?(L=this.data)==null?void 0:L.unheartCommand:(D=this.data)==null?void 0:D.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.B2("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:x}));(x=_.fI(S))&&this.debounceCommand(x)}};
_.J3.Object.defineProperties(EV.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var x,L;if(!((x=this.data)==null?0:(L=x.creatorThumbnail)==null?0:L.sources))return{};x={thumbnails:[]};L={};L.url=this.data.creatorThumbnail.sources[0].url;x.thumbnails.push(L);return x}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var x,L;return((x=this.engagementState)==null?void 0:x.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((L=this.engagementState)==null?void 0:L.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var x,L;return((x=this.engagementState)==null?void 0:x.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((L=this.engagementState)==null?void 0:L.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.engagementState)==null?void 0:x.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var x,L,D;return((x=this.engagementState)==null?void 0:x.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((L=this.engagementState)==null?void 0:L.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((D=this.engagementState)==null?void 0:D.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}}});
EV.prototype.onTap=EV.prototype.onTap;_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],EV.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],EV.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.ds),_.r("design:type",Object)],EV.prototype,"ytLiveChatReduxBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],EV.prototype,"data",void 0);
_.A([_.F({selectorArgs:["data.engagementStateKey"],selector:tYG}),_.r("design:type",Object)],EV.prototype,"engagementState",void 0);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],EV.prototype,"thumbnailDetails",null);_.A([_.Y("data","engagementState"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],EV.prototype,"isHearted",null);_.A([_.Y("data","engagementState"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],EV.prototype,"isEditable",null);
_.A([_.Y("data","engagementState"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],EV.prototype,"showCreatorView",null);_.A([_.Y("data","engagementState"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],EV.prototype,"showButton",null);_.A([_.Y("data","isHearted"),_.r("design:type",String),_.r("design:paramtypes",[])],EV.prototype,"label",null);_.A([_.Y("data","isHearted"),_.r("design:type",Object),_.r("design:paramtypes",[])],EV.prototype,"heartHoverText",null);
_.A([_.mX("tap"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],EV.prototype,"onTap",null);_.A([_.oW({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],EV);
_.q(EV,"yt-live-chat-creator-heart-view-model",function(){if(HyW===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;hAh===void 0&&(hAh=document.createElement("template"));var S=hAh;D.call(L,S.content.cloneNode(!0),x.content.firstChild);HyW=x}x=HyW;return x},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var MK=function(){};
_.p(MK,$r);MK.prototype.JSC$13119_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:t3("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
MK.prototype.getApiPaths=function(){return[]};
MK.prototype.getExtension=function(){};
MK.prototype.JSC$13119_buildRequest=function(){};var u3G={},g1h=(u3G.GET_DATASYNC_IDS=eR(MK),u3G);var kOh,p_A,mWQ,VMG,dU,FbB,pk2,YrA,byC;kOh="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");p_A=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.cD=function(x,L,D,S,Q,J,Z,y,E){this.endpointMap=x;this.networkManager=L;this.authService=D;this.responseProcessorMap=S;this.innertubeResponseStore=Q;this.contextProcessors=J;this.asyncContextProcessors=Z;this.localInnertubeRouter=y;this.requestSequencer=E;this.inflightRequests=new Map;x.signalEndpointMap||(x.signalEndpointMap={});x.signalEndpointMap=Object.assign({},g1h,x.signalEndpointMap)};
mWQ=function(x,L,D,S,Q,J,Z,y,E){if(_.cD.instance!==void 0){if(S=_.cD.instance,x=[x!==S.endpointMap,L!==S.networkManager,D!==S.authService,Q!==S.innertubeResponseStore,J!==S.contextProcessors,Z!==S.asyncContextProcessors,y!==S.localInnertubeRouter],x.some(function(P){return P}))throw new _.RZ("InnerTubeTransportService is already initialized",x);
}else _.cD.instance=new _.cD(x,L,D,S,Q,J,Z,y,E)};
_.tD=function(x,L,D){var S=S===void 0?l5W:S;var Q=pk2(x,L);return Q?new _.HI(function(J,Z){var y,E,P,v,V;return _.I(function(h){switch(h.nextAddress){case 1:return h.yield(Q,2);case 2:y=h.yieldResult;E=y.JSC$13119_getRequest(L,D,S);if(!E){Z(new _.RZ("Error: Failed to build request for command.",L));h.jumpTo(0);break}td(E.input);v=((P=E.requestShell)==null?void 0:P.mode)==="cors"?"cors":void 0;if(x.authService.syncHeaders){V=byC(E.config,v);h.jumpTo(4);break}return h.yield(YrA(E.config,v),5);case 5:V=
h.yieldResult;case 4:J(FbB(x,E,V)),_.Y2(h)}})}):_.Bp(new _.RZ("Error: No request builder found for command.",L))};
VMG=function(x,L,D,S){var Q=Q===void 0?l5W:Q;var J,Z,y,E,P,v,V,h,H,k,T,G,U,l,X,f,N,z;return _.I(function(xf){switch(xf.nextAddress){case 1:J=xOG(L,x.endpointMap);if(!J)throw new _.RZ("Error: No streaming request builder found for command",L);Z=J.JSC$13119_getRequest(L,D,Q);if(!Z)throw new _.RZ("Failed to build YtRequest for streaming Command",L);if((y=x.localInnertubeRouter)==null||!y.shouldPreferLocalResponse(Z.input,Z.innerTubeRequest)){xf.jumpTo(2);break}return xf.yield(x.localInnertubeRouter.localInnertubeResponse(Z.input,
Z.innerTubeRequest),3);case 3:return E=xf.yieldResult,P={},E.playerResponse&&(dU(x,E.playerResponse,Z),P.player=E.playerResponse,(v=S)==null||v(P,E)),E.watchNextResponse&&(dU(x,E.watchNextResponse,Z),P.content=E.watchNextResponse,(V=S)==null||V(P,E)),xf.return(P);case 2:H=((h=Z.requestShell)==null?void 0:h.mode)==="cors"?"cors":void 0;if(x.authService.syncHeaders){k=byC(Z.config,H);xf.jumpTo(4);break}return xf.yield(YrA(Z.config,H),5);case 5:k=xf.yieldResult;case 4:return U=(G=(T=Z.requestShell)==
null?void 0:T.headers)!=null?G:{},Z.requestShell=Object.assign({},Z.requestShell,{headers:Object.assign({},U,k)}),l=Object.assign({},Z.requestShell),X=JSON.stringify(Z.innerTubeRequest),Z.requestShell.method==="POST"&&(l=Object.assign({},l,{body:X})),f=function(K3,P4){dU(x,P4.playerResponse||P4.watchNextResponse||P4.reelItemWatchResponse||P4.reelWatchSequenceResponse,Z);S==null||S(K3,P4)},N={},xf.yield(sXR(x.networkManager,Z.input,l,f),6);
case 6:return N=xf.yieldResult,((z=Z.config)==null?0:z.responseTick)&&_.$T(Z.config.responseTick),xf.return(N)}})};
_.MI=function(x,L,D,S,Q){Q=Q===void 0?{authStrategy:{identity:l5W}}:Q;var J=J===void 0?!0:J;var Z=function(){};
Z=Nhp($Yb(D));L.context||(L.context=_.E50(S,J));return new _.HI(function(y){var E,P,v,V,h;return _.I(function(H){if(H.nextAddress==1)return E=ejw(D),P=_.nL(E),x.authService.syncHeaders?(v=byC(Q,P),H.jumpTo(2)):H.yield(YrA(Q,P),3);H.nextAddress!=2&&(v=H.yieldResult);V=Rj0(ejw(D));h={input:V,requestShell:t3(V),innerTubeRequest:L,config:Q};y(FbB(x,h,v,Z));_.Y2(H)})})};
dU=function(x,L,D){var S;if(L&&!(L==null?0:(S=L.sequenceMetaData)==null?0:S.skipProcessing)&&x.responseProcessorMap){S=_.O(kOh);for(var Q=S.next();!Q.done;Q=S.next())Q=Q.value,x.responseProcessorMap[Q]&&x.responseProcessorMap[Q].handleResponse(L,D)}};
FbB=function(x,L,D,S){S=S===void 0?function(){}:S;
var Q,J,Z,y,E,P,v,V,h,H,k,T,G,U,l,X,f,N,z,xf,K3,P4,kf,H4,p3,w0,Rn,lG,xX,UR,c4,hr,GB,C2,X9,vs,Zp,K2,F2,II;return _.I(function(jW){switch(jW.nextAddress){case 1:Z=(Q=L.config)==null?void 0:(J=Q.storeStrategy)==null?void 0:J.storeKey;if(!(Z&&x.innertubeResponseStore&&x.innertubeResponseStore.has(Z))||((y=L.config)==null?0:(E=y.storeStrategy)==null?0:E.disableCache)){jW.jumpTo(2);break}return jW.yield(x.innertubeResponseStore.get(Z),3);case 3:if((P=jW.yieldResult)&&!P.isExpired())return jW.return(Promise.resolve(_.Oy(P)));
case 2:if(!((v=L)==null?0:(V=v.innerTubeRequest)==null?0:V.context)){jW.jumpTo(4);break}h=L.innerTubeRequest.context;if(!(x.asyncContextProcessors&&x.asyncContextProcessors.length>0)){jW.jumpTo(5);break}H=[];k=_.O(x.asyncContextProcessors);for(T=k.next();!T.done;T=k.next())G=T.value,U=G.processContext(L),U.wrappedPromise_&&H.push(U.wrappedPromise_);if(!(H.length>0)){jW.jumpTo(5);break}return jW.yield(Promise.all(H),5);case 5:l=_.O(x.contextProcessors||[]),X=l.next();case 8:if(X.done){jW.jumpTo(4);
break}f=X.value;return jW.yield(f.processContext(h),9);case 9:X=l.next();jW.jumpTo(8);break;case 4:if((N=x.localInnertubeRouter)==null||!N.shouldPreferLocalResponse(L.input,L.innerTubeRequest)){jW.jumpTo(12);break}return jW.yield(x.localInnertubeRouter.localInnertubeResponse(L.input,L.innerTubeRequest),13);case 13:return z=jW.yieldResult,dU(x,z,L),jW.return(z);case 12:return(P4=(K3=L.config)==null?void 0:K3.requestKey)&&x.inflightRequests.has(P4)?xf=x.inflightRequests.get(P4):(kf=JSON.stringify(L.innerTubeRequest),
w0=(p3=(H4=L.requestShell)==null?void 0:H4.headers)!=null?p3:{},L.requestShell=Object.assign({},L.requestShell,{headers:Object.assign({},w0,D)}),Rn=Object.assign({},L.requestShell),L.requestShell.method==="POST"&&(Rn=Object.assign({},Rn,{body:kf})),((lG=L.config)==null?0:lG.requestTick)&&_.$T(L.config.requestTick),xX=function(){return x.networkManager.fetch(L.input,Rn,L.config)},xf=x.requestSequencer?TpB(x.requestSequencer,L,xX):xX(),P4&&x.inflightRequests.set(P4,xf)),jW.yield(xf,14);
case 14:(UR=jW.yieldResult)&&_.u("web_streaming_player")&&Array.isArray(UR)&&(UR=UR[0].playerResponse);if(UR&&"error"in UR&&((c4=UR)==null?0:(hr=c4.error)==null?0:hr.details))for(GB=UR.error.details,C2=_.O(GB),X9=C2.next();!X9.done;X9=C2.next())vs=X9.value,(Zp=vs["@type"])&&p_A.indexOf(Zp)>-1&&(delete vs["@type"],UR=vs);P4&&x.inflightRequests.has(P4)&&x.inflightRequests.delete(P4);((K2=L.config)==null?0:K2.responseTick)&&_.$T(L.config.responseTick);if(UR||(F2=x.localInnertubeRouter)==null||!F2.canProvideFallbackResponse(L.input,
L.innerTubeRequest)){jW.jumpTo(15);break}return jW.yield(x.localInnertubeRouter.localFallbackInnertubeResponse(L.input,L.innerTubeRequest),16);case 16:UR=jW.yieldResult;case 15:return dU(x,UR,L),((II=L.config)==null?0:II.processorTick)&&_.$T(L.config.processorTick),S(),jW.return(UR||void 0)}})};
_.nu=function(x,L){return t4O(L,x.endpointMap)};
pk2=function(x,L){x=Lj0(L,x.endpointMap);if(x!==void 0)return Promise.resolve(x)};
YrA=function(x,L){var D,S,Q,J;return _.I(function(Z){if(Z.nextAddress==1){Q=(D=x)==null?void 0:(S=D.authStrategy)==null?void 0:S.sessionIndex;var y=Z.yield;var E=_.V0(iBc({sessionIndex:Q}));return y.call(Z,E,2)}J=Z.yieldResult;return Z.return(Promise.resolve(Object.assign({},DOf(L),J)))})};
byC=function(x,L){var D;x=x==null?void 0:(D=x.authStrategy)==null?void 0:D.sessionIndex;D=iBc({sessionIndex:x});return Object.assign({},DOf(L),D)};var eAC,RA_,GOB,C2h,l02,UW2,Wbd,qrR,vG,AlC,$Wh,Bp2,rlH;eAC=0;RA_=/tone[1-5]/;GOB=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");C2h="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
l02=Number.MAX_SAFE_INTEGER;UW2=RegExp("\ufe0f","g");_.PG=function(x){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;x&&_.w_d(this,x)};
_.w_d=function(x,L){try{_.kQ(L,{context:x,onSuccess:function(S,Q){Array.isArray(Q)?x.load(Q):(S=new _.RZ("Emoji manager JSON response was not an array!",{response:Q}),_.BI(S))},
onError:function(S){S=new _.RZ("Failed to retrieve emoji manager initial JSON data!",{url:L,statusCode:_.vY(S).toString()});_.qy(S)}})}catch(S){var D=new _.RZ("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:L});
_.qy(D)}};
_.PG.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.PG.prototype.load=function(x,L){if(L)if(x.length)x=x.concat(L.emojis);else{this.emojis=L.emojis;this.emojiMap=L.emojiMap;this.emojiShortcutMap=L.emojiShortcutMap;this.emojiShortcutCharMap=Bp2(L);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=L.emojiRegex;return}this.emojis=[].concat(_.lP(new Set(this.emojis.concat(x))));this.hasInitializedShortcutCharMap=!1;x=Array(this.emojis.length);for(L=0;L<this.emojis.length;L++){var D=this.emojis[L];if(D.emojiId){this.emojiMap[D.emojiId]=D;this.emojiMap[D.emojiId].index=
L;for(var S=0;D.shortcuts&&S<D.shortcuts.length;S++)this.emojiShortcutMap[D.shortcuts[S].toLocaleLowerCase()]=D;x[L]=D.isCustomEmoji&&D.shortcuts?D.shortcuts[0]:D.emojiId}}x.sort(function(Q,J){return J.length-Q.length});
if(x.length)try{this.emojiRegex=new RegExp(x.join("|").replace("*","\\*"),"gi")}catch(Q){this.emojiRegex=/$./}else this.emojiRegex=/$./};
Wbd=function(x,L){L=_.O(L);for(var D=L.next();!D.done;D=L.next()){var S=D.value;if(S.emojiId&&x.emojiMap[S.emojiId]){D=Object.assign({},x.emojiMap[S.emojiId],S);x.emojiMap[S.emojiId]=D;var Q=void 0;D.index&&((Q=x.emojis[D.index])==null?void 0:Q.emojiId)===S.emojiId&&(x.emojis[D.index]=D);S=void 0;if((S=D.shortcuts)==null?0:S.length)for(x.hasInitializedShortcutCharMap=!1,S=_.O(D.shortcuts),Q=S.next();!Q.done;Q=S.next())x.emojiShortcutMap[Q.value.toLocaleLowerCase()]=D}}};
qrR=function(x){var L,D;_.I(function(S){if(S.nextAddress==1)return S.yield(_.xr.getInstance(),2);if(S.nextAddress!=3)return(L=S.yieldResult)?S.yield(L.get("ytlc-emoji-pref"),3):S.return();(D=S.yieldResult)&&Wbd(x,Object.keys(D).map(function(Q){return{emojiId:Q,stickyPrefId:D[Q]}}).filter(function(Q){return!!Q.emojiId&&!!Q.stickyPrefId}));
_.Y2(S)})};
_.jQ=function(x,L,D){return(x=x.emojiMap[L])&&(!x.isLocked||D!==void 0&&D)?x:void 0};
vG=function(x,L,D){D=_.jQ(x,L,D===void 0?!1:D);var S=L.match("\u200d");D&&x.skinTone!==0&&(x=(S==null?void 0:S.length)===1?_.jQ(x,L.replace("\u200d",GOB[x.skinTone]+"\u200d")):_.jQ(x,L+GOB[x.skinTone]))&&(D=x);return D};
AlC=function(x,L){var D=x.emojiMap[L];return(D==null?0:D.stickyPrefId)?x.emojiMap[D.stickyPrefId]:vG(x,L)};
_.dq=function(x,L){x=x.emojiShortcutMap[L.toLocaleLowerCase()];return!x||x.isLocked?null:x};
$Wh=function(x,L,D){return Bp2(x,D===void 0?!1:D)[L]||{}};
Bp2=function(x,L){L=L===void 0?!1:L;if(!x.hasInitializedShortcutCharMap){x.hasInitializedShortcutCharMap=!0;for(var D=0;D<x.emojis.length;D++){var S=x.emojis[D];if(!(S.isLocked||L&&S.isCustomEmoji&&S.emojiId&&!x.pickerCustomEmojiIds.includes(S.emojiId)))for(var Q=0;S.shortcuts&&Q<S.shortcuts.length;Q++){var J=S.shortcuts[Q];J.startsWith(":_")&&S.isCustomEmoji&&(x.emojiShortcutCharMap[":_"]==null&&(x.emojiShortcutCharMap[":_"]=Object.create(null)),x.emojiShortcutCharMap[":_"][J]=S);if(!(J.length<3||
!S.isCustomEmoji&&RA_.test(J))){var Z=J.substr(0,3).toLocaleLowerCase();x.emojiShortcutCharMap[Z]==null&&(x.emojiShortcutCharMap[Z]=Object.create(null));x.emojiShortcutCharMap[Z][J]=S}}}}return x.emojiShortcutCharMap};
_.PG.prototype.createEmoji=function(x,L){L=L===void 0?!0:L;var D=document.createElement("img");x.isCustomEmoji||D.classList.add("small-emoji");D.classList.add("emoji");D.classList.add("yt-formatted-string");D.src=x.image?_.PD(x.image.thumbnails,this.emojiSize)||"":"";var S=void 0;x.image&&x.image.accessibility&&x.image.accessibility.accessibilityData&&(S=x.image.accessibility.accessibilityData.label);D.alt=S?S:(x.isCustomEmoji&&x.shortcuts?x.shortcuts[0]:x.emojiId)||"";x.isCustomEmoji&&(D.dataset.emojiId=
x.emojiId);_.j_&&(D.setAttribute("contenteditable","false"),D.setAttribute("unselectable","on"));L&&(x.shortcuts&&x.shortcuts.length&&D.setAttribute("shared-tooltip-text",x.shortcuts[0]),D.id="emoji-"+eAC++);return D};
_.PG.prototype.createDocumentFragment=function(x,L,D,S){L=L===void 0?!1:L;D=D===void 0?!0:D;S=S===void 0?!1:S;x=x.replace(UW2,"");for(var Q=document.createDocumentFragment(),J=0,Z,y=0;(Z=this.emojiRegex.exec(x))!=null;){var E=_.jQ(this,Z[0])||_.dq(this,Z[0]);!E||E.isCustomEmoji&&!L||(E=this.createEmoji(E,D),J!==Z.index&&Q.appendChild(document.createTextNode(x.substring(J,Z.index))),Q.appendChild(E),J=Z.index+Z[0].length,y++)}if(!S||y)return Q.appendChild(document.createTextNode(x.substr(J))),Q};
rlH=function(x,L,D){var S,Q,J,Z,y,E,P,v,V;return _.I(function(h){if(h.nextAddress==1){if(!L.emojiId||!x.emojiMap[L.emojiId])return h.return();S=Object.assign({},x.emojiMap[L.emojiId],{stickyPrefId:D});x.emojiMap[L.emojiId]=S;L.index&&((Q=x.emojis[L.index])==null?void 0:Q.emojiId)===L.emojiId&&(x.emojis[L.index]=S);if((J=L.shortcuts)==null?0:J.length)for(x.hasInitializedShortcutCharMap=!1,Z=_.O(L.shortcuts),y=Z.next();!y.done;y=Z.next())E=y.value,x.emojiShortcutMap[E.toLocaleLowerCase()]=S;return h.yield(_.xr.getInstance(),
2)}if(h.nextAddress!=4)return(P=h.yieldResult)?h.yield(P.get("ytlc-emoji-pref"),4):h.jumpTo(0);V=(v=h.yieldResult)!=null?v:{};V[L.emojiId]=D;return h.yield(P.set("ytlc-emoji-pref",V,l02),0)})};
_.VT=new _.PG;var f0d;_.hT={};
f0d={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.u("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:_.u("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 LB(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 x=_.jr(this.hostElement||this).querySelector("#inline-action-button-container");x&&x.setAttribute("aria-hidden","true");this.menuButton=_.jr(this.hostElement).querySelector("#menu-button")},
attached:function(){var x=this.menuButton;x&&(x.addEventListener("focusin",_.p$(this,this.onMenuButtonFocus_)),x.addEventListener("focusout",_.p$(this,this.onMenuButtonBlur_)))},
detached:function(){var x=this.menuButton;x&&(x.removeEventListener("focusin",_.p$(this,this.onMenuButtonFocus_)),x.removeEventListener("focusout",_.p$(this,this.onMenuButtonBlur_)))},
identity:_.B4,truthy:function(x){return!!x},
computeTimestampString:function(x){return x?x.timestampText?this.getSimpleString(x.timestampText):this.TIME_FORMATTER.format(new Date(x.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(x){return x},
computeMenuVisible_:function(x,L){return x||L},
computeHasInlineActionButtons:function(x){if(!x)return!1;var L,D;return!((L=x.inlineActionButtons)==null||!L.length)||!((D=x.additionalInlineActionButtons)==null||!D.length)},
createDocumentFragmentFromString:function(x){var L=_.VT.createDocumentFragment.bind(_.VT),D;if((D=this.participantsManager)==null||!D.viewerRegex)return L(x);D=document.createDocumentFragment();for(var S=0,Q;(Q=this.participantsManager.viewerRegex.exec(x))!=null;){if(Q.index>0){var J=":"+Q[0]+":";if((_.jQ(_.VT,J)||_.dq(_.VT,J))&&x.indexOf(J)===Q.index-1)continue}D.appendChild(L(x.substring(S,Q.index)));S=document.createElement("span");S.appendChild(L(Q[0]));S.classList.add("mention");D.appendChild(S);
S=Q.index+Q[0].length}D.appendChild(L(x.substring(S)));return D},
createDocumentFragment:function(x){var L=document.createDocumentFragment();if(x.simpleText)return L.appendChild(this.createDocumentFragmentFromString(x.simpleText)),L;if(!x.runs)return L;for(var D=0;D<x.runs.length;D++){var S=x.runs[D];if(S.emoji)L.appendChild(_.VT.createEmoji(S.emoji));else if(S.text)if(S.navigationEndpoint){var Q=document.createElement("a");Q.classList.add("yt-simple-endpoint");Inn(Q,S.navigationEndpoint);_.jr(Q).appendChild(this.createDocumentFragmentFromString(S.text));L.appendChild(Q)}else L.appendChild(this.createDocumentFragmentFromString(S.text))}return L},
hasModerationOverlayVisible:function(){var x;return((x=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:x.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(x){x.composedPath().some(function(L){return(L=L instanceof Element?L:null)?L.tagName&&(L.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||L.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.u("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(x)},
colorFromDecimal:function(x){return BCp(x)},
markAsDeleted:function(x,L){this.set("data.deletedStateMessage",x);this.set("data.showOriginalContentMessage",L)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(x){if(this.data.contextMenuEndpoint){var L=_.yY().resolve(_.NB),D=this.data.contextMenuEndpoint,S;(S=_.cD.instance)&&_.nu(S,D)?(L=NpQ(L,D),S=_.MI(S,{},L)):S=_.iyh(L,D);S.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);x&&x.stopPropagation()}},
handleGetContextMenuResponse_:function(x){var L=_.cD.instance;L&&_.nu(L,{liveChatEndpoint:{}})||(x=x.response);x.liveChatItemContextMenuSupportedRenderers&&x.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(x.liveChatItemContextMenuSupportedRenderers.menuRenderer);x.actions&&_.dg(this.hostElement,"yt-live-chat-actions",[x.actions])},
handleGetContextMenuError:function(x){if(x instanceof Error||x instanceof Object||x instanceof String)var L=x;_.BI(new _.RZ("Error encountered calling GetLiveChatItemContextMenu",L))},
showContextMenu_:function(x){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:x}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.MF(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.MF(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.hT.YtLiveChatItemBehavior=[f0d,_.jZ.YtComponentBehavior,_.rs.YtOpenPopupBehavior];_.HG=function(){};var o1Q;var a0R;var zAH;var X__;var uH=function(){var x=_.e.apply(this,arguments)||this;x.active=!1;x.identity=_.B4;return x};
_.p(uH,_.e);uH.prototype.dataChanged=function(){this.active=!1};
uH.prototype.onClick=function(){_.MF(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
uH.prototype.dataChanged=uH.prototype.dataChanged;_.A([_.F(),_.r("design:type",Object)],uH.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],uH.prototype,"active",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],uH.prototype,"dataChanged",null);_.A([_.oW({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],uH);
_.q(uH,"yt-live-chat-text-input-field-suggestion",function(){if(X__===void 0){var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;zAH===void 0&&(zAH=document.createElement("template"));var S=zAH;D.call(L,S.content.cloneNode(!0),x.content.firstChild);X__=x}x=X__;return x},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});_.gU=function(x,L,D){return CustomEvent.call(this,x,{detail:{value:L,path:D}})||this};
_.p(_.gU,CustomEvent);_.ks=function(){var x=_.e.apply(this,arguments)||this;x.viewerName=null;x.actionMap={"yt-live-chat-actions":"onChatMessage_"};x.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];x.PARTICIPANT_TIME_USEC_=3E8;return x};
_.p(_.ks,_.e);_.K=_.ks.prototype;_.K.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.K.addParticipant=function(x){var L=_.w40(this.participants,x,function(S,Q){S=S[Object.keys(S)[0]];Q=Q[Object.keys(Q)[0]];S=String(_.SR(S.authorName)).toLowerCase();Q=String(_.SR(Q.authorName)).toLowerCase();return S<Q?-1:S==Q?0:1}.bind(this));
if(L>=0){var D=this.participants[L];D[Object.keys(D)[0]].timestampUsec&&this.splice("participants",L,1,x)}else this.splice("participants",-L-1,0,x);x=x[Object.keys(x)[0]];L=_.SR(x.authorName).toLocaleLowerCase();D=L.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(D)||(this.allParticipantsCharMap_[D]={});this.allParticipantsCharMap_[D][L]=x};
_.K.getAuthorsFromPrefix=function(x){return this.allParticipantsCharMap_.hasOwnProperty(x)?this.allParticipantsCharMap_[x]:null};
_.K.computeViewerRegex_=function(x){if(!x)return null;x=x.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var L=x.indexOf("@")===0&&_.u("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(L+x.replace(/ /g,"\\s*")+"|^"+x.replace(/ /g,"\\s*")+"$|^"+x.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+x.replace(/ /g,"\\s*")+"$|(?<=\\s)"+x.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.K.checkForStaleParticipants_=function(){var x=this;this.trimOldParticipants_();this.asyncHandle_&&IIN(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.xi(function(){x.checkForStaleParticipants_()},3E4))};
_.K.onChatMessage_=function(x){var L=this,D=Date.now()*1E3;x.forEach(function(S){if(S=_.g(S,gtQ)){S=S.item;var Q=Object.keys(S)[0];L.SUPPORTED_ITEM_TYPES_.indexOf(Q)!=-1&&S[Q].timestampUsec>=D-L.PARTICIPANT_TIME_USEC_&&L.addParticipant(S)}},this);
this.checkForStaleParticipants_()};
_.K.trimOldParticipants_=function(){for(var x=Date.now()*1E3,L=this.participants.length-1;L>=0;L--){var D=this.participants[L];D=D[Object.keys(D)[0]];D.timestampUsec&&D.timestampUsec<x-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",L,1)}};
_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],_.ks.prototype,"ytActionHandlerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],_.ks.prototype,"viewerName",void 0);_.A([_.F({computed:"computeViewerRegex_(viewerName)"}),_.r("design:type",Object)],_.ks.prototype,"viewerRegex",void 0);_.A([_.F({value:function(){return[]},
notify:!0}),_.r("design:type",Array)],_.ks.prototype,"participants",void 0);_.A([_.oW({is:"yt-live-chat-participants-manager",noInjection:!0})],_.ks);var clQ=/.*([:@#].*?)$/,pf=/\u00a0/g,n1C=String.fromCharCode(160),tYr={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"},mw=function(){var x=_.e.apply(this,arguments)||this;x.disabled=!1;x.liveChatRichMessageInput=null;x.messageInput=null;x.isValidWithNoInputText=!1;x.suggestions=[];x.emojiManager=_.VT;x.inputMethodEditorActive=
!1;x.suggestionIndex=-1;x.JSC$14118_lastSuggestionRange=null;return x};
_.p(mw,_.e);_.K=mw.prototype;_.K.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.K.attached=function(){_.vN&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.K.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.K.dataChanged=function(){if(!this.ignoreColorMapping){var x=!1,L={},D;for(D in tYr)this.data&&this.data.hasOwnProperty(D)&&(L[tYr[D]]=this.colorFromDecimal(this.data[D]),x=!0);x&&_.uN(this.hostElement,L)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.K.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.K.colorFromDecimal=function(x){x=Math.floor(Number(x));return"rgba("+[x>>16&255,x>>8&255,x&255,(x>>24&255)/255].join()+")"};
_.K.preventDrag=function(x){x.dataTransfer&&(x.dataTransfer.dropEffect="none");x.preventDefault()};
_.K.preventResize=function(x){x.returnValue=!1};
_.K.onInputChange=function(){var x=this.characterCount,L=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&L&&L.remove();if(!L&&this.characterCount>this.maxCharacterLimit){var D=window.getSelection();if(D){var S=D.getRangeAt(0);D.removeAllRanges();D.addRange(S)}}if(D=this.getCurrentRange())S=this.calculateTextBeforeRange(D),this.completeEmojisInRange(D,S,!0)||this.updateSuggestions(D,S);S=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(S);
_.MF(this.hostElement,"yt-live-chat-message-input-change",S);L&&this.characterCount===0&&L.remove();D&&D.commonAncestorContainer.parentElement.id==="input"&&D.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>x):D&&!D.collapsed&&D.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(x=this.input.childNodes.length-1;x>=0;x--)this.input.childNodes[x].nodeName==="BR"&&this.input.childNodes[x].remove()};
_.K.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.K.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var x=this.getCurrentRange();x&&x.commonAncestorContainer.parentElement.id==="input"&&x.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.K.mergeOverflowText=function(x){if(x){var L=document.createRange();L.selectNodeContents(x);L=L.extractContents();this.input.insertBefore(L,x)}};
_.K.checkRangeAtEndOfInput=function(){var x=this.getCurrentRange();if(x){var L=_.jr(this.hostElement).querySelector("#overflow-text"),D=document.createRange();L&&L.previousSibling?L.previousSibling instanceof HTMLImageElement?D.selectNode(L.previousSibling):D.selectNodeContents(L.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?D.selectNode(this.input.lastChild):D.selectNodeContents(this.input.lastChild));D.collapse(!1);return D.isPointInRange(x.startContainer,
x.startOffset)}return!1};
_.K.handleOverflowText=function(x){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var L=_.jr(this.hostElement).querySelector("#overflow-text"),D=this.getCurrentRange();this.input.normalize();x=this.checkRangeAtEndOfInput()&&x;this.mergeOverflowText(L);for(var S,Q=0,J=0,Z,y=this.input.childNodes,E=0;E<y.length;E++){var P=y[E];P instanceof Text?(J+=P.textContent.length,J>this.maxCharacterLimit&&(S=P,Q=this.maxCharacterLimit+P.textContent.length-J)):P instanceof HTMLImageElement&&
(S=void 0,J=P.dataset.emojiId&&((S=this.data)==null?0:S.emojiCharacterCount)?J+this.data.emojiCharacterCount:J+P.alt.length,S=this.input,Q=E);if(J>this.maxCharacterLimit&&S){Z=document.createRange();Z.collapse(!1);L?(J=this.input.lastChild.previousSibling,J instanceof Text?Z.setEnd(this.input.lastChild.previousSibling,J.textContent.length):J instanceof HTMLImageElement&&Z.setEnd(this.input,this.input.childNodes.length-1)):Z.selectNodeContents(this.input);Z.setStart(S,Q);break}}Z&&(S=!1,D&&(x=Z.isPointInRange(D.startContainer,
D.startOffset-1)),L||(L=document.createElement("span"),L.id="overflow-text",L.textContent="",L.setAttribute("contenteditable","true"),_.jr(_.jr(this.hostElement).querySelector("#input")).appendChild(L),S=!0),L&&(D=Z.extractContents(),L.insertBefore(D,L.firstChild),x&&L.firstChild&&(D=document.createRange(),S?D.setStartAfter(L.lastChild):D.setStartAfter(L.firstChild),D.collapse(!0),L=window.getSelection(),L.removeAllRanges(),L.addRange(D))))}};
_.K.checkForDuplicateSpans=function(){for(var x=0;x<this.input.childNodes.length;x++){var L=this.input.childNodes[x];if(L.nodeName==="SPAN"){var D=document.createRange();D.selectNodeContents(L);D=D.extractContents();this.input.insertBefore(D,L);L.remove()}}this.handleOverflowText(!0)};
_.K.getCurrentRange=function(){var x=window.getSelection();return x&&x.rangeCount?x.getRangeAt(0).cloneRange():null};
_.K.getInputRange=function(){var x=this.getCurrentRange();if(x){for(var L=x.commonAncestorContainer,D=!1,S=_.jr(this.hostElement).querySelector("#input");L;){if(L===S){D=!0;break}L=L.parentNode}D||(x=null)}x||(x=this.getRangeAtEnd());return x};
_.K.getRangeAtEnd=function(){var x=document.createRange(),L=_.jr(this.hostElement).querySelector("#input").lastChild;!L||L.nodeName!=="#text"&&L.nodeName!=="SPAN"?(x.selectNodeContents(_.jr(this.hostElement).querySelector("#input")),x.collapse(!1)):L.nodeName==="#text"?x.setStart(L,L.textContent.length):x.setStart(L,L.childNodes.length);return x};
_.K.getChatParticipantSuggestions=function(x,L,D,S){var Q=_.u("live_chat_enable_handles_web_text_input_update");if(L)for(var J in L)if(J.indexOf(x)===0||Q&&J.indexOf(D+x)===0){var Z=L[J],y=_.SR(Z.authorName);S.push({suggestion:{author:!0,authorType:D,image:Z.authorPhoto,alt:y,text:y}});if(S.length>=64)break}};
_.K.getSuggestions=function(x){var L=[],D=x.substring(0,3),S=$Wh(_.VT,D,!0);if(S)for(var Q in S)if(Q.toLocaleLowerCase().indexOf(x)===0){var J=S[Q];if(J&&J.emojiId){if(J=AlC(_.VT,J.emojiId)){var Z=void 0,y=void 0,E=void 0,P=void 0,v=((Z=J.image)==null?0:(y=Z.accessibility)==null?0:(E=y.accessibilityData)==null?0:E.label)||J.isCustomEmoji?(P=J.shortcuts)==null?void 0:P[0]:J.emojiId;L.push({suggestion:{emoji:!0,image:J.image,alt:v,text:Q,textToInsertWhenSelected:J.isCustomEmoji?Q:v}})}if(L.length>=
64)break}}if(!this.participantsManager)return null;if(D.indexOf("@")===0||D.indexOf("#")===0)S=D.charAt(0),x=x.substring(1),Q=_.u("live_chat_enable_handles_web_text_input_update"),D.indexOf("@")===0&&Q&&(Q=this.participantsManager.getAuthorsFromPrefix(D.substring(0,2)),this.getChatParticipantSuggestions(x,Q,S,L)),D=D.substring(1),D=this.participantsManager.getAuthorsFromPrefix(D),this.getChatParticipantSuggestions(x,D,S,L);return L?L.sort(function(V,h){return h.suggestion.text<V.suggestion.text?-1:
h.suggestion.text===V.suggestion.text?0:1}):null};
_.K.insertSuggestion=function(x){var L=_.u("live_chat_enable_handles_web_text_input_update"),D=x.authorType;L=x.text.indexOf(D)===0&&L?x.text+n1C:D+x.text+n1C;x.emoji?this.insertTextAtRange(this.JSC$14118_lastSuggestionRange,x.textToInsertWhenSelected||""):x.author&&this.insertTextAtRange(this.JSC$14118_lastSuggestionRange,L)};
_.K.updateSuggestionsAtCaret=function(){var x=this.getCurrentRange();x&&this.updateSuggestions(x,this.calculateTextBeforeRange(x))};
_.K.offsetStartOfRangeBy=function(x,L){for(;L>0;)if(x.startOffset-L>=0){x.setStart(x.startContainer,x.startOffset-L);break}else{L=x.startContainer instanceof HTMLImageElement?L-x.startContainer.alt.length:L-x.startOffset;var D=x.startContainer.previousSibling;if(!D){x.setStart(x.startContainer,0);break}if(_.u("live_chat_require_space_for_autocomplete_emoji")){var S=void 0,Q=void 0;x.setStart(D,((S=D)==null?void 0:(Q=S.textContent)==null?void 0:Q.length)||0)}else x.setStart(D,D.childNodes.length||
0)}};
_.K.updateSuggestions=function(x,L){var D=this;this.JSC$14118_lastSuggestionRange&&(this.JSC$14118_lastSuggestionRange.detach(),this.JSC$14118_lastSuggestionRange=null);if((L=clQ.exec(L))&&L.length&&(L=L[L.length-1].toLocaleLowerCase(),L.length>2&&(this.offsetStartOfRangeBy(x,L.length),this.JSC$14118_lastSuggestionRange=x,(x=this.getSuggestions(L))&&x.length))){this.suggestions=x;_.So(this,function(){_.jr(D.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(x.length-1);return}this.dropdown.opened=!1};
_.K.completeEmojisInRange=function(x,L,D){var S=L.replace(/[\s\xa0]+$/,"");L=L.length-S.length;S=S.split(" ");S=S[S.length-1].trim().toLocaleLowerCase();var Q=S.lastIndexOf(":");if(D&&!L&&Q!==S.length-1)return!1;Q!==-1&&(D=S.lastIndexOf(":",Q-1),D!==-1&&(S=S.substring(D)));if((D=_.dq(_.VT,S))&&D.emojiId){D=AlC(_.VT,D.emojiId)||null;this.offsetStartOfRangeBy(x,S.length+L);var J,Z,y,E;S=(((J=D)==null?0:J.isCustomEmoji)?(Z=D)==null?void 0:(y=Z.shortcuts)==null?void 0:y[0]:(E=D)==null?void 0:E.emojiId)||
"";L&&(S+=n1C);this.insertTextAtRange(x,S);this.dropdown.opened=!1;return!0}return!1};
_.K.onSuggestion=function(x){this.insertSuggestion(x.detail);this.dropdown.opened=!1};
_.K.onKeyPress=function(x){x.keyCode===13&&(x.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.MF(this.hostElement,"yt-live-chat-send-message"))};
_.K.completeEmojis=function(){var x=document.createRange(),L=_.jr(this.hostElement).querySelector("#input").lastChild;L?x.setStart(L,L.childNodes.length):(x.selectNodeContents(_.jr(this.hostElement).querySelector("#input")),x.collapse(!1));this.completeEmojisInRange(x,this.calculateTextBeforeRange(x),_.u("live_chat_require_space_for_autocomplete_emoji"))};
_.K.maybePreventTextFormatting=function(x){!_.uV||!x.ctrlKey&&!x.metaKey||x.keyCode!==66&&x.keyCode!==73||(x.stopImmediatePropagation(),x.preventDefault())};
_.K.onKeyDown=function(x){this.maybePreventTextFormatting(x);if(this.dropdown.opened)switch(x.keyCode){case 27:this.dropdown.opened=!1;x.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;x.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);x.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),x.preventDefault()}};
_.K.onKeyUp=function(x){switch(x.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.j_)this.onInputChange()};
_.K.changeSuggestionIndex=function(x){if(this.dropdown.opened){var L=_.jr(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<L.children.length&&(L.children[this.suggestionIndex].active=!1);var D=this.suggestions.length;this.suggestionIndex=(x+D)%D;x=L.children[this.suggestionIndex];x.active=!0;L.scrollTop=x.offsetTop}};
_.K.onInputPaste=function(x){x.preventDefault();(x=x.clipboardData)&&x.types&&(x=x.getData("text/plain")||"",x=x.replace(/\n/g,""),this.insertText(x));(x=this.getCurrentRange())&&x.commonAncestorContainer.parentElement.id==="input"&&x.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.K.onFocus=function(){this._setFocused(!0)};
_.K.onBlur=function(){this._setFocused(!1)};
_.K.insertText=function(x){this.insertTextAtRange(this.getInputRange(),x)};
_.K.insertTextAtRange=function(x,L){if(x&&(x.collapsed||x.deleteContents(),L=_.VT.createDocumentFragment(L,!0,!1))){for(var D=_.O((L==null?void 0:L.childNodes)||[]),S=D.next();!S.done;S=D.next()){S=S.value;var Q=void 0,J=void 0,Z=void 0,y=void 0,E=void 0;(Z=(Q=window)==null?void 0:(J=Q.ShadyCSS)==null?void 0:J.ScopingShim)==null||(E=(y=Z).scopeNode)==null||E.call(y,S,this.hostElement.localName)}D=L.lastChild;x.insertNode(L);this.focused||this.input.focus();if(this.focused){x=x.cloneRange();x.selectNodeContents(D);
x.collapse(!1);if(L=window.getSelection())L.removeAllRanges(),L.addRange(x);x.commonAncestorContainer.parentElement.id==="input"&&x.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}x=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(x);_.MF(this.hostElement,"yt-live-chat-message-input-change",x)}};
_.K.setLiveChatRichMessageInput=function(x){_.jr(_.jr(this.hostElement).querySelector("#input")).textContent="";if(x&&x.textSegments){for(var L=0;L<x.textSegments.length;L++){var D=x.textSegments[L];D.text?_.jr(_.jr(this.hostElement).querySelector("#input")).appendChild(_.VT.createDocumentFragment(D.text,!0,!1)):D.emojiId&&(D=_.jQ(_.VT,D.emojiId))&&_.jr(_.jr(this.hostElement).querySelector("#input")).appendChild(_.VT.createEmoji(D,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.K.setText=function(x){this.setLiveChatRichMessageInput(x?{textSegments:[{text:x}]}:null)};
_.K.calculateTextBeforeRange=function(x){var L="",D=x.startContainer;if(D&&D instanceof Text){var S;L=((S=D.textContent)==null?void 0:S.substring(0,x.startOffset))||"";D=D.previousSibling}for(;D&&D instanceof Text;)L=D.textContent+L,D=D.previousSibling;return L.replace(pf," ")};
_.K.calculateLiveChatRichMessageInput=function(){for(var x=[],L="",D=_.jr(_.jr(this.hostElement).querySelector("#input")).childNodes,S=0;S<D.length;S++){var Q=D[S];Q instanceof Text?L+=Q.textContent:Q instanceof HTMLImageElement&&(Q.dataset.emojiId?(L&&(x.push({text:L.replace(pf," ")}),L=""),x.push({emojiId:Q.dataset.emojiId})):L+=Q.alt)}L&&x.push({text:L.replace(pf," ")});if(D=_.jr(this.hostElement).querySelector("#overflow-text")){L="";D=D.childNodes;for(S=0;S<D.length;S++)Q=D[S],Q instanceof Text?
L+=Q.textContent:Q instanceof HTMLImageElement&&(Q.dataset.emojiId?(L&&(x.push({text:L.replace(pf," ")}),L=""),x.push({emojiId:Q.dataset.emojiId})):L+=Q.alt);L&&x.push({text:L.replace(pf," ")})}return{textSegments:x}};
_.K.computeCharacterCount=function(x){if(!x||!x.textSegments)return 0;for(var L=0,D=0;D<x.textSegments.length;D++){var S=x.textSegments[D];if(S.text)L+=S.text.length;else if(S.emojiId){var Q=void 0;if((Q=this.data)==null?0:Q.emojiCharacterCount)L+=this.data.emojiCharacterCount;else{var J=Q=void 0,Z=void 0;L+=((J=_.jQ(_.VT,(Q=S)==null?void 0:Q.emojiId))==null?void 0:(Z=J.shortcuts)==null?void 0:Z[0].length)||0}}}return L};
_.K.characterCountChanged=function(){_.MF(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.K.focusedChanged=function(){this.hostElement.dispatchEvent(new _.gU("focused-changed",this.focused))};
_.K.focus=function(){this.setFocus(!1)};
_.K.focusAtEnd=function(){this.setFocus(!0)};
_.K.setFocus=function(x){x=x?this.getRangeAtEnd():this.getInputRange();_.jr(this.hostElement).querySelector("#input").focus();var L=window.getSelection();L&&(L.removeAllRanges(),L.addRange(x))};
_.K.insertEmoji=function(x){var L,D=((x==null?0:x.isCustomEmoji)?(L=x.shortcuts)==null?void 0:L[0]:x==null?void 0:x.emojiId)||"";this.insertText(D)};
_.K.computeText=function(x){if(!x||!x.textSegments)return"";for(var L="",D=0;D<x.textSegments.length;D++){var S=x.textSegments[D];if(S.text)L+=S.text;else if(S.emojiId){var Q=void 0,J=void 0,Z=void 0;L+=((J=_.jQ(_.VT,(Q=S)==null?void 0:Q.emojiId))==null?void 0:(Z=J.shortcuts)==null?void 0:Z[0])||""}}return L};
_.K.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.J3.Object.defineProperties(mw.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.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}}});
mw.prototype.focusedChanged=mw.prototype.focusedChanged;mw.prototype.characterCountChanged=mw.prototype.characterCountChanged;mw.prototype.onSuggestion=mw.prototype.onSuggestion;mw.prototype.onMessageSet=mw.prototype.onMessageSet;mw.prototype.dataChanged=mw.prototype.dataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],mw.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],mw.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.F(),_.r("design:type",Object)],mw.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],mw.prototype,"disabled",void 0);_.A([_.Y("disabled"),_.r("design:type",Number),_.r("design:paramtypes",[])],mw.prototype,"inputTabIndex",null);_.A([_.Y("data.maxCharacterLimit"),_.F({readOnly:!0,notify:!0}),_.r("design:type",Number),_.r("design:paramtypes",[])],mw.prototype,"maxCharacterLimit",null);
_.A([_.Y("liveChatRichMessageInput"),_.F({readOnly:!0,notify:!0}),_.r("design:type",Number),_.r("design:paramtypes",[])],mw.prototype,"characterCount",null);_.A([_.Y("maxCharacterLimit, characterCount"),_.F({readOnly:!0,notify:!0}),_.r("design:type",Number),_.r("design:paramtypes",[])],mw.prototype,"remainingCharacterCount",null);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],mw.prototype,"isChatMessageInput",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],mw.prototype,"inputExpanded",void 0);_.A([_.F({readOnly:!0,notify:!0}),_.r("design:type",Object)],mw.prototype,"liveChatRichMessageInput",void 0);_.A([_.F(),_.r("design:type",Object)],mw.prototype,"messageInput",void 0);_.A([_.F(),_.r("design:type",Boolean)],mw.prototype,"ignoreColorMapping",void 0);_.A([_.Y("characterCount"),_.F({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],mw.prototype,"hasText",null);
_.A([_.F(),_.r("design:type",Object)],mw.prototype,"isValidWithNoInputText",void 0);_.A([_.Y("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.F(),_.r("design:type",Boolean),_.r("design:paramtypes",[])],mw.prototype,"isInputValid",null);_.A([_.F({readOnly:!0,value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],mw.prototype,"focused",void 0);_.A([_.F(),_.r("design:type",Array)],mw.prototype,"suggestions",void 0);
_.A([_.F(),_.r("design:type",_.PG)],mw.prototype,"emojiManager",void 0);_.A([_.F(),_.r("design:type",_.ks)],mw.prototype,"participantsManager",void 0);_.A([_.F(),_.r("design:type",Boolean)],mw.prototype,"noUnderline",void 0);_.A([_.F(),_.r("design:type",Object)],mw.prototype,"inputMethodEditorActive",void 0);_.A([_.F1("#dropdown"),_.r("design:type",Object)],mw.prototype,"dropdown",void 0);_.A([_.F1("#input"),_.r("design:type",HTMLElement)],mw.prototype,"input",void 0);
_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],mw.prototype,"dataChanged",null);_.A([_.bN("messageInput"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],mw.prototype,"onMessageSet",null);_.A([_.mX("yt-live-chat-select-suggestion"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],mw.prototype,"onSuggestion",null);
_.A([_.bN("characterCount"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],mw.prototype,"characterCountChanged",null);_.A([_.bN("focused"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],mw.prototype,"focusedChanged",null);_.A([_.oW({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],mw);
_.xid=_.q(mw,"yt-live-chat-text-input-field-renderer",function(){if(a0R===void 0){var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;o1Q===void 0&&(o1Q=document.createElement("template"));var S=o1Q;D.call(L,S.content.cloneNode(!0),x.content.firstChild);a0R=x}x=a0R;return x},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var bH=function(){var x=_.e.apply(this,arguments)||this;x.buttonOverrides={style:"overlay",type:"filled"};x.allowAnimations=!1;x.modern=_.u("web_button_rework_with_live");x.noPadding=!1;return x};
_.p(bH,_.e);_.K=bH.prototype;_.K.shouldSupportInlineActionButtons=function(){return!0};
_.K.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"}}}}};
_.K.ready=function(){var x=document.querySelector("yt-live-chat-app");x&&x.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.K.attached=function(){this.allowAnimations=!1};
_.K.dataChanged=function(){if(this.data){var x={"--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)};_.uN(this.hostElement,x);this.allowAnimations=!0}};
_.K.messageChanged=function(){var x,L=(x=this.data)==null?void 0:x.message;x=_.jr(_.jr(this.hostElement).querySelector("#message"));x.textContent="";L&&x.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(L))};
_.K.computeShowOnlyHeader=function(x,L){return!x||x.pdgLikeButton||x.replyButton||x.buyFlowButton?!1:this.isEmpty(x,L)&&!x.footer};
_.K.computeShowFooterDivider=function(x,L,D){return x?!!x.footer&&!this.isEmpty(x,L)&&!D:!1};
_.K.computeIsUserEditable=function(x){return!!x.inputField};
_.K.computeHasHeartButton=function(x){return(x==null?void 0:x.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(x==null?void 0:x.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(x==null?void 0:x.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.K.computeNoveltyImage=function(x){if(x.headerOverlayImage&&x.headerOverlayImage.thumbnails.length){var L=x.headerOverlayImage.thumbnails[0],D,S;if((D=x.pdgPurchasedNoveltyLoggingDirectives)==null?0:(S=D.loggingDirectives)==null?0:S.trackingParams){var Q,J;LK0((Q=x.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(J=Q.loggingDirectives)==null?void 0:J.trackingParams)}return L.width||0}return 0};
_.K.computeAuthorPhotoSize=function(x){return(x==null?0:x.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.K.inputFocus=function(){var x=_.jr(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");x&&x.focus()};
_.K.inputInsertEmoji=function(x){var L=_.jr(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");L&&L.insertEmoji(x)};
_.K.inputMessage=function(){var x=_.jr(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),L;return x&&((L=this.data)==null?0:L.inputField)?(x.completeEmojis(),_.al(x.liveChatRichMessageInput)):null};
_.K.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.K.isEmpty=function(x,L){return x?x.empty||!(x.message||x.inputField||L):!0};
_.K.onLowerBuyButtonClick=function(){var x,L=_.g((x=this.data)==null?void 0:x.buyButton,_.y4);L&&L.trackingParams&&!qN4(L.command)&&(x=_.CI(L.trackingParams))&&(L=_.A3())&&_.L7(L,x)};
_.K.shouldSupportWholeItemClick=function(){return!0};
_.J3.Object.defineProperties(bH.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?0:x.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
bH.prototype.isDeletedChanged=bH.prototype.isDeletedChanged;bH.prototype.messageChanged=bH.prototype.messageChanged;bH.prototype.dataChanged=bH.prototype.dataChanged;_.A([_.b(sj_.YtPdgLiveChatItemBehavior),_.r("design:type",Object)],bH.prototype,"ytPdgLiveChatItemBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],bH.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.ds),_.r("design:type",Object)],bH.prototype,"ytLiveChatReduxBehavior",void 0);
_.A([_.b(_.hT.YtLiveChatItemBehavior),_.r("design:type",_.HG)],bH.prototype,"ytLiveChatItemBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],bH.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],bH.prototype,"data",void 0);_.A([_.F({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:tYG}),_.r("design:type",Object)],bH.prototype,"engagementState",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.r("design:type",Boolean)],bH.prototype,"isUserEditable",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.r("design:type",Boolean)],bH.prototype,"hasHeartButton",void 0);_.A([_.F({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.r("design:type",Boolean)],bH.prototype,"showOnlyHeader",void 0);
_.A([_.F({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.r("design:type",Boolean)],bH.prototype,"showFooterDivider",void 0);_.A([_.F({reflectToAttribute:!0,value:!1}),_.r("design:type",Object)],bH.prototype,"allowAnimations",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],bH.prototype,"dashboardMoneyFeed",void 0);_.A([_.F({computed:"computeNoveltyImage(data)"}),_.r("design:type",Number)],bH.prototype,"noveltyWidth",void 0);
_.A([_.F({computed:"computeAuthorPhotoSize(data)"}),_.r("design:type",Number)],bH.prototype,"authorPhotoSize",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],bH.prototype,"modern",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],bH.prototype,"noPadding",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],bH.prototype,"dataChanged",null);
_.A([_.bN("data.message"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],bH.prototype,"messageChanged",null);_.A([_.Y("data","dashboardMoneyFeed"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],bH.prototype,"hideLowerBumper",null);_.A([_.bN("isDeleted"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],bH.prototype,"isDeletedChanged",null);
_.A([_.w({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],bH);
_.q(bH,"yt-live-chat-paid-message-renderer",function(){if(I0W===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;ylr===void 0&&(ylr=document.createElement("template"));var S=ylr;D.call(L,S.content.cloneNode(!0),x.content.firstChild);I0W=x}x=I0W;return x},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var LKW;var DiG;var Ys=function(){var x=_.er.apply(this,arguments)||this;x._noAccessors=!0;return x};
_.p(Ys,_.er);Ys.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.$6("openPopupConfig")};
_.A([_.b(_.rs.YtOpenPopupBehavior),_.r("design:type",Object)],Ys.prototype,"ytOpenPopupBehavior",void 0);_.A([_.RW()],Ys);_.Fz=[_.rs.YtOpenPopupBehavior,Ys.prototype];var So_;var LX=[_.mt,tSH,_.Kv,_.b1,_.L6,_.go2,_.TF,_.JYB,_.Uy,kr4];_.u("web_watch_get_updated_metadata_response_processing")&&LX.push(_.mIB);_.u("web_continuation_response_processing")&&LX.push(_.ol);var zHG=new _.vx("RESPONSE_RECEIVED_COMMANDS"),hIs=new _.vx("RESPONSE_RECEIVED_COMMANDS");var EBn="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),IPf=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],yk0=["GET_UNSEEN_NOTIFICATION_COUNT"];var sV=function(){var x=_.er.apply(this,arguments)||this;x._noAccessors=!0;x.serviceEndpointHandlers=[];return x};
_.p(sV,_.er);sV.prototype.created=function(){var x=this;this.endpointHandlerActionMap={"yt-service-request":function(L,D,S,Q){var J;return ZCw(x.hostElement,L,D,S,Q,x.serviceEndpointHandlers,(J=x.onEntitiesUpdated)==null?void 0:J.bind(x))}}};
sV.prototype.attached=function(){_.cI(_.aR.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
sV.prototype.detached=function(){_.nV(_.aR.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.A([_.RW()],sV);_.QKG=[sV.prototype];var JOR,KK2=function(){return JOR!==void 0?JOR:JOR=document.createElement("template")};
document.head.appendChild(KK2().content);var O9Q;var Z9_=document.head,yOC=Z9_.appendChild,IZB;if(O9Q===void 0){var EYh=document.createElement("template");_.m(EYh,"\x3c!--css-build:shady--\x3e");EYh.content.insertBefore(KK2().content.cloneNode(!0),EYh.content.firstChild);O9Q=EYh}IZB=O9Q;yOC.call(Z9_,IZB.content);var M4_,diW=function(){return M4_!==void 0?M4_:M4_=document.createElement("template")};
document.head.appendChild(diW().content);var PE2;var jKh=document.head,vYQ=jKh.appendChild,V4h;if(PE2===void 0){var hwR=document.createElement("template");_.m(hwR,"\x3c!--css-build:shady--\x3e");hwR.content.insertBefore(diW().content.cloneNode(!0),hwR.content.firstChild);PE2=hwR}V4h=PE2;vYQ.call(jKh,V4h.content);var H9i;_.BD("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.BD("sharingRendererButtons","buttonRenderer","ytd-button-renderer");H9i=_.u("web_button_rework")&&_.rO("BUTTON_REWORK")||_.u("web_button_rework_with_live");_.TM=function(){var x=_.e.apply(this,arguments)||this;x.isPressed=!1;x.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return x};
_.p(_.TM,_.e);_.K=_.TM.prototype;_.K.created=function(){this.showTooltips=!0};
_.K.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.K.onHintIdChanged=function(){var x=this,L,D,S=(L=this.ytButtonBehavior.data)==null?void 0:(D=L.hint)==null?void 0:D.hintRenderer;if(S&&S.hintId){L=_.P$(this.hostElement,"yt-get-opened-popups-action");L=(L&&L.length===1?L[0]:[]).length>0;var Q=null;S.hintId!=="sponsor-pre-purchase"||L?S.hintId.startsWith("sponsor-post-purchase")&&!L?Q=f1_("membership-manage"):S.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!L&&(Q=f1_("membership-freebie-join")):Q=f1_("membership-join");Q&&_.WW.addLowPriorityJob(function(){for(var J=
_.O(Q),Z=J.next();!Z.done;Z=J.next())x.ytComponentBehavior.resolveCommand(Z.value)})}};
_.K.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.K.onYtNavigate=function(x){var L=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(x.detail.endpoint);L&&(x.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(L))};
_.K.onYtServiceRequestSent=function(x,L){this.handleServiceRequestActions(L);_.MF(this.hostElement,"yt-service-request-sent-button-renderer")};
_.K.onServiceRequestCompleted=function(x,L){this.handleServiceRequestActions(L);_.MF(this.hostElement,"yt-service-request-completed-button-renderer")};
_.K.updateButton=function(x){var L;if(x=(L=_.g(x,Nfr))==null?void 0:L.updatedButton)this.ytButtonBehavior.data=_.g(x,_.y4)};
_.K.handleUpdateButtonAction=function(x){var L=this.ytButtonBehavior.data;L.targetId&&x.updateButtonAction.targetId&&L.targetId===x.updateButtonAction.targetId&&this.updateButton(x)};
_.K.handleServiceRequestActions=function(x){if(x=x.actions)for(var L=0;L<x.length;L++)this.updateButton(x[L])};
_.J3.Object.defineProperties(_.TM,{template:{configurable:!0,enumerable:!0,get:function(){if(So_===void 0){var x=document.createElement("template");_.m(x,"\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");x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);So_=x}x=So_;return x}}});
_.TM.prototype.onServiceRequestCompleted=_.TM.prototype.onServiceRequestCompleted;_.TM.prototype.onYtServiceRequestSent=_.TM.prototype.onYtServiceRequestSent;_.TM.prototype.onYtNavigate=_.TM.prototype.onYtNavigate;_.TM.prototype.onPressedStateChanged=_.TM.prototype.onPressedStateChanged;_.TM.prototype.onHintIdChanged=_.TM.prototype.onHintIdChanged;_.A([_.F(),_.r("design:type",Object)],_.TM.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],_.TM.prototype,"isPressed",void 0);
_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],_.TM.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.sLB.YtButtonBehavior),_.r("design:type",Object)],_.TM.prototype,"ytButtonBehavior",void 0);_.A([_.b(_.Fz),_.r("design:type",Object)],_.TM.prototype,"ytdOpenPopupBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],_.TM.prototype,"ytComponentBehavior",void 0);
_.A([_.b(xs.YtRenderButtonBehavior),_.r("design:type",Object)],_.TM.prototype,"ytRenderButtonBehavior",void 0);_.A([_.bN("data.hint.hintRenderer"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],_.TM.prototype,"onHintIdChanged",null);_.A([_.bN("isPressed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],_.TM.prototype,"onPressedStateChanged",null);
_.A([_.mX("yt-navigate"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],_.TM.prototype,"onYtNavigate",null);_.A([_.mX("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.zQ]),_.r("design:returntype")],_.TM.prototype,"onYtServiceRequestSent",null);
_.A([_.mX("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.S2]),_.r("design:returntype")],_.TM.prototype,"onServiceRequestCompleted",null);_.A([_.w({is:"ytd-button-renderer",disableElementRegistration:H9i})],_.TM);var eQ=function(){var x=_.e.apply(this,arguments)||this;x.modern=_.u("web_button_rework_with_live");x.buttonOverrides={style:"overlay",type:"filled"};return x};
_.p(eQ,_.e);_.K=eQ.prototype;_.K.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"}}}}};
_.K.ready=function(){var x=document.querySelector("yt-live-chat-app");x&&x.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.K.dataChanged=function(){if(this.data&&this.data.sticker){var x=_.PD(this.data.sticker.thumbnails,this.stickerWidth);x||_.bCf(x).thenCatch(function(){_.qy(new _.RZ("Failed to load Super Sticker with url",x))})}};
_.K.computeAuthorPhotoSize=function(x){return(x==null?0:x.isV2Style)?32:40};
_.K.computeIsV2Style=function(x){return(x==null?0:x.isV2Style)?!0:!1};
_.K.onStickerLoaded=function(x){var L,D,S;(L=_.K$(x))==null||(D=L.parentNode)==null||(S=D.classList)==null||S.add("sticker-loaded")};
_.K.computeNoveltyImageWidth=function(x){var L,D;if(x==null?0:(L=x.headerOverlayImage)==null?0:(D=L.thumbnails)==null?0:D.length){L=x.headerOverlayImage.thumbnails[0];var S,Q;if((S=x.pdgPurchasedNoveltyLoggingDirectives)==null?0:(Q=S.loggingDirectives)==null?0:Q.trackingParams){var J,Z;LK0((J=x.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(Z=J.loggingDirectives)==null?void 0:Z.trackingParams)}return L.width||0}return 0};
_.K.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.K.updateStickerStyles=function(){var x=this.data;x&&(x={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(x.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(x.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(x.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(x.authorNameTextColor)},
_.uN(this.hostElement,x))};
_.K.onBuyButtonClick=function(){var x,L=_.g((x=this.data)==null?void 0:x.buyButton,_.y4);L&&!qN4(L.command)&&this.ytRendererBehavior.logExplicitClick(L)};
_.K.shouldSupportWholeItemClick=function(){return!0};
_.J3.Object.defineProperties(eQ.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 x;return((x=this.data)==null?0:x.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
eQ.prototype.updateStickerStyles=eQ.prototype.updateStickerStyles;eQ.prototype.isDeletedChanged=eQ.prototype.isDeletedChanged;eQ.prototype.onStickerLoaded=eQ.prototype.onStickerLoaded;eQ.prototype.dataChanged=eQ.prototype.dataChanged;_.A([_.b(sj_.YtPdgLiveChatItemBehavior),_.r("design:type",Object)],eQ.prototype,"ytPdgLiveChatItemBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],eQ.prototype,"ytRendererBehavior",void 0);
_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],eQ.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.hT.YtLiveChatItemBehavior),_.r("design:type",_.HG)],eQ.prototype,"ytLiveChatItemBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],eQ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],eQ.prototype,"data",void 0);
_.A([_.F({computed:"computeAuthorPhotoSize(data)"}),_.r("design:type",Number)],eQ.prototype,"authorPhotoSize",void 0);_.A([_.F(),_.r("design:type",Boolean)],eQ.prototype,"isDeleted",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],eQ.prototype,"dashboardMoneyFeed",void 0);_.A([_.F({computed:"computeNoveltyImageWidth(data)"}),_.r("design:type",Number)],eQ.prototype,"noveltyWidth",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],eQ.prototype,"modern",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.r("design:type",Boolean)],eQ.prototype,"isV2Style",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],eQ.prototype,"dataChanged",null);_.A([_.mX("yt-img-shadow-loaded"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],eQ.prototype,"onStickerLoaded",null);
_.A([_.Y("data"),_.r("design:type",Number),_.r("design:paramtypes",[])],eQ.prototype,"stickerWidth",null);_.A([_.Y("data"),_.r("design:type",Number),_.r("design:paramtypes",[])],eQ.prototype,"stickerHeight",null);_.A([_.F({reflectToAttribute:!0}),_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],eQ.prototype,"hasHeartButton",null);_.A([_.Y("data","dashboardMoneyFeed"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],eQ.prototype,"hideLowerBumper",null);
_.A([_.bN("isDeleted"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],eQ.prototype,"isDeletedChanged",null);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],eQ.prototype,"updateStickerStyles",null);_.A([_.oW({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],eQ);
_.q(eQ,"yt-live-chat-paid-sticker-renderer",function(){if(DiG===void 0){var x=document.createElement("template");_.m(x,'\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>');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;LKW===void 0&&(LKW=document.createElement("template"));var S=LKW;D.call(L,S.content.cloneNode(!0),x.content.firstChild);DiG=x}x=DiG;return x},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var uQ2;var gYC;var kKG,p8R=function(){return kKG!==void 0?kKG:kKG=document.createElement("template")};
document.head.appendChild(p8R().content);var mih,b9H=function(){return mih!==void 0?mih:mih=document.createElement("template")};
document.head.appendChild(b9H().content);var Yoi;var FKi,sKr=function(){return FKi!==void 0?FKi:FKi=document.createElement("template")};
document.head.appendChild(sKr().content);var TZQ;var ew2=document.head,Rwh=ew2.appendChild,GK2;if(TZQ===void 0){var CEd=document.createElement("template");_.m(CEd,"\x3c!--css-build:shady--\x3e");CEd.content.insertBefore(sKr().content.cloneNode(!0),CEd.content.firstChild);TZQ=CEd}GK2=TZQ;Rwh.call(ew2,GK2.content);var lZr=document.head,UiR=lZr.appendChild,w8i;if(Yoi===void 0){var Rk=document.createElement("template");_.m(Rk,"\x3c!--css-build:shady--\x3e");Rk.content.insertBefore(b9H().content.cloneNode(!0),Rk.content.firstChild);Rk.content.insertBefore(p8R().content.cloneNode(!0),Rk.content.firstChild);Yoi=Rk}w8i=Yoi;UiR.call(lZr,w8i.content);var GM=function(){var x=_.er.apply(this,arguments)||this;x.focusedIndex=0;x.verticalOffset=0;x.verticalAlign="top";x.dynamicAlign=!0;return x};
_.p(GM,_.er);GM.prototype.emojiUrl=function(x){x=_.jQ(this.emojiManager,x);if(!x)return"";var L;x=(L=x.image)==null?void 0:L.thumbnails;return _.PD(x,24)||""};
var BZ2=function(x){var L;x.emojiVariants&&(L=x.data)!=null&&L.target&&_.So(x,function(){x.set("verticalOffset",-1*x.hostElement.clientHeight);var D=_.jr(x.hostElement).querySelector("img");D&&D.focus()})};
_.K=GM.prototype;_.K.onKeyboardEnter=function(){};
_.K.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.K.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.K.onKeyDown=function(x){switch(x.keyCode){case 13:this.onKeyboardEnter();x.preventDefault();break;case 40:this.changeFocus(1);x.preventDefault();break;case 38:this.changeFocus(-1);x.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.K.onYtEmojiSelect=function(x){var L=this,D,S,Q,J,Z,y,E,P;return _.I(function(v){if(v.nextAddress==1)return S=(D=L.data)==null?void 0:D.emoji,Z=((Q=S)==null?void 0:Q.stickyPrefId)||((J=S)==null?void 0:J.emojiId),E=(y=x.detail)==null?void 0:y.emojiId,Z&&E&&Z!==E?v.yield((P=L.emojiManager)==null?void 0:rlH(P,S,E),2):v.return();_.dg(L.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[S,E]);_.Y2(v)})};
_.K.changeFocus=function(x){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+x+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(x=_.jr(this.hostElement).querySelector("#variants"))&&x.children[this.focusedIndex].focus())};
_.J3.Object.defineProperties(GM.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
GM.prototype.onYtEmojiSelect=GM.prototype.onYtEmojiSelect;GM.prototype.onKeyDown=GM.prototype.onKeyDown;GM.prototype.onEmojiVariantsChanged=GM.prototype.onEmojiVariantsChanged;GM.prototype.onVerticalOffsetOrPositionTargetChanged=GM.prototype.onVerticalOffsetOrPositionTargetChanged;_.A([_.b(_.EW),_.r("design:type",Object)],GM.prototype,"ironOverlayBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],GM.prototype,"data",void 0);_.A([_.F(),_.r("design:type",_.PG)],GM.prototype,"emojiManager",void 0);
_.A([_.F(),_.r("design:type",Object)],GM.prototype,"emojiVariants",void 0);_.A([_.F(),_.r("design:type",Object)],GM.prototype,"focusedIndex",void 0);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],GM.prototype,"positionTarget",null);_.A([_.F({reflectToAttribute:!0}),_.Y("verticalOffset","data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],GM.prototype,"isPositioned",null);_.A([_.F(),_.r("design:type",Object)],GM.prototype,"verticalOffset",void 0);
_.A([_.F(),_.r("design:type",Object)],GM.prototype,"verticalAlign",void 0);_.A([_.F(),_.r("design:type",Object)],GM.prototype,"dynamicAlign",void 0);_.A([_.bN("verticalOffset","positionTarget"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],GM.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.A([_.bN("emojiVariants"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],GM.prototype,"onEmojiVariantsChanged",null);
_.A([_.mX("keydown"),_.r("design:type",Function),_.r("design:paramtypes",[KeyboardEvent]),_.r("design:returntype")],GM.prototype,"onKeyDown",null);_.A([_.mX("yt-emoji-select"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype",Promise)],GM.prototype,"onYtEmojiSelect",null);_.A([_.RW()],GM);var WKR=[GM.prototype];var qoH;var AOd;var $iG=/medium-light|medium-dark|light|medium|dark/,rO2=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,NZr=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),Cf=function(){var x=_.e.apply(this,arguments)||this;x.userSelection={left:null,right:null};x.scrollAction="lock";x.isEmojiDraftInProgress=!1;return x};
_.p(Cf,_.e);_.K=Cf.prototype;_.K.onClick=function(x){x=_.K$(x);x instanceof HTMLImageElement&&this.selectOrUpdateEmoji(x)};
_.K.selectOrUpdateEmoji=function(x){var L=x.getAttribute("selection");L&&(L==="default"?_.MF(this.hostElement,"yt-emoji-select",_.jQ(this.emojiManager,x.id)):L==="left"?this.userSelection=Object.assign({},this.userSelection,{left:x.src}):L==="right"?this.userSelection=Object.assign({},this.userSelection,{right:x.src}):L==="user"&&this.userSelection.left&&this.userSelection.right&&_.MF(this.hostElement,"yt-emoji-select",_.jQ(this.emojiManager,x.id)))};
_.K.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.K.onMultiSelectorThumbnailRowChanged=function(){var x,L,D;((x=this.data)==null?0:(L=x.emoji)==null?0:(D=L.multiSelectorThumbnailRow)==null?0:D.length)&&this.openSelector()};
_.K.getThumbnailFromEmojiRow=function(x){var L,D;return(x==null?void 0:(L=x.thumbnails)==null?void 0:(D=L[0])==null?void 0:D.url)||""};
_.K.getEmojiAltTextForPartialSelector=function(x){var L;return((L=this.getThumbnailFromEmojiRow(x).match(rO2))==null?void 0:L[0])||""};
_.K.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.K.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.K.getRowSelection=function(x){return["left","right"][x]};
_.K.getIdFromComposedEmoji=function(x){return(x==null?void 0:x.emojiId)||""};
_.K.getEmojiFromPartialSelections=function(x,L){if(!x&&!L)return null;var D,S,Q=(D=this.data)==null?void 0:(S=D.emoji)==null?void 0:S.variantIds;if(!Q||!Q.length)return null;var J;x=(J=x.match($iG))==null?void 0:J[0];var Z;L=(Z=L.match($iG))==null?void 0:Z[0];if(!x||!L)return null;var y=NZr.get(x);Z=NZr.get(L);if(y===Z){Z=Array.from(NZr.values()).filter(function(P){return P!==y}).join("|");
var E=new RegExp("^((?!("+Z+")).)*"+y+"$")}else E=new RegExp(y+".*"+Z);return(Q=Q.find(function(P){return E.test(P)}))&&_.jQ(this.emojiManager,Q)||null};
_.K.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var x,L=this.ytEmojiSelectorBehavior.emojiUrl(((x=this.data.emoji)==null?void 0:x.emojiId)||"");_.jr(this.hostElement).querySelector('[selection="user"]').src.includes(L)||(this.isEmojiDraftInProgress=!0)}};
_.K.onDomChange=function(){BZ2(this.ytEmojiSelectorBehavior)};
_.K.getFocusableElements=function(){return _.jr(this.hostElement).querySelectorAll("img").filter(function(x){return x.getAttribute("role")==="option"})};
_.K.changeFocus=function(x){var L=this.getFocusableElements();L!=null&&L.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+x+L.length)%L.length,this.ytEmojiSelectorBehavior.focusedIndex<L.length&&(x=L[this.ytEmojiSelectorBehavior.focusedIndex])&&x.focus())};
_.K.onKeyboardEnter=function(){var x=this.getFocusableElements();x!=null&&x.length&&(x=x[this.ytEmojiSelectorBehavior.focusedIndex])&&x instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(x),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.J3.Object.defineProperties(Cf.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var x=this,L,D,S;return this.emojiManager&&((L=this.data)==null?0:(D=L.emoji)==null?0:(S=D.variantIds)==null?0:S.length)?this.data.emoji.variantIds.map(function(Q){return!!Q&&_.jQ(x.emojiManager,Q)}).filter(function(Q){return!!Q}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var x,L=(x=this.userSelection)==null?void 0:x.left,D;x=(D=this.userSelection)==null?void 0:D.right;return L&&x?this.getEmojiFromPartialSelections(L,x):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var x;if((x=this.composedEmojiSelection)==null?0:x.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var L;x=(L=this.userSelection)==null?void 0:L.left;var D;L=(D=this.userSelection)==null?void 0:D.right;if(!x&&!L){var S;return this.ytEmojiSelectorBehavior.emojiUrl(((S=this.data.emoji)==null?void 0:S.emojiId)||"")}return x&&!L?x:!x&&L?L:""}}});
Cf.prototype.onMultiSelectorThumbnailRowChanged=Cf.prototype.onMultiSelectorThumbnailRowChanged;Cf.prototype.onClick=Cf.prototype.onClick;_.A([_.b(_.EW),_.r("design:type",Object)],Cf.prototype,"ironOverlayBehavior",void 0);_.A([_.b(WKR),_.r("design:type",Object)],Cf.prototype,"ytEmojiSelectorBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Cf.prototype,"data",void 0);_.A([_.F(),_.r("design:type",_.PG)],Cf.prototype,"emojiManager",void 0);
_.A([_.F(),_.r("design:type",Object)],Cf.prototype,"userSelection",void 0);_.A([_.F(),_.r("design:type",Object)],Cf.prototype,"scrollAction",void 0);_.A([_.F(),_.r("design:type",Object)],Cf.prototype,"isEmojiDraftInProgress",void 0);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Cf.prototype,"emojiVariants",null);_.A([_.Y("data","userSelection"),_.r("design:type",Object),_.r("design:paramtypes",[])],Cf.prototype,"composedEmojiSelection",null);
_.A([_.mX("click"),_.r("design:type",Function),_.r("design:paramtypes",[MouseEvent]),_.r("design:returntype")],Cf.prototype,"onClick",null);_.A([_.bN("data.emoji.multiSelectorThumbnailRow"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Cf.prototype,"onMultiSelectorThumbnailRowChanged",null);_.A([_.Y("data","userSelection","composedEmojiSelection"),_.r("design:type",String),_.r("design:paramtypes",[])],Cf.prototype,"draftEmojiUrl",null);
_.A([_.oW({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],Cf);
_.q(Cf,"yt-emoji-multi-person-selector",function(){if(AOd===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;qoH===void 0&&(qoH=document.createElement("template"));var S=qoH;D.call(L,S.content.cloneNode(!0),x.content.firstChild);AOd=x}x=AOd;return x},{mode:2});var i9G;var fZB;var lH=function(){var x=_.e.apply(this,arguments)||this;x.tooltip_=null;return x};
_.p(lH,_.e);_.K=lH.prototype;_.K.dataChanged_=function(){var x;if((x=this.data)==null?0:x.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.jr(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.HP)(this.tooltip_).textContent=this.data.tooltip};
_.K.computeTargetId=function(){var x;return((x=this.data)==null?void 0:x.targetId)||""};
_.K.computeId_=function(x){return x};
_.K.computeIcon_=function(x){return _.gB(x)};
_.K.onTap_=function(){this.active=!this.active;_.MF(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.K.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.gU("active-changed",this.active))};
_.J3.Object.defineProperties(lH.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var x,L;if((x=this.data)==null?0:(L=x.icon)==null?0:L.iconType)return this.data.icon.iconType==="SUPER_STICKER";var D,S;return((D=this.data)==null?void 0:(S=D.icon)==null?void 0:S.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
lH.prototype.activeChangedForBinding=lH.prototype.activeChangedForBinding;lH.prototype.dataChanged_=lH.prototype.dataChanged_;_.A([_.b(_.P9.YtLiveChatTooltipTargetingBehavior),_.r("design:type",Object)],lH.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],lH.prototype,"data",void 0);_.A([_.F({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.r("design:type",String)],lH.prototype,"id",void 0);
_.A([_.F({computed:"computeTargetId(data.targetId)"}),_.r("design:type",String)],lH.prototype,"targetId",void 0);_.A([_.F({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],lH.prototype,"active",void 0);_.A([_.F({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.r("design:type",String)],lH.prototype,"icon",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],lH.prototype,"dataChanged_",null);
_.A([_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],lH.prototype,"iconFilled",null);_.A([_.bN("active"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],lH.prototype,"activeChangedForBinding",null);_.A([_.oW({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],lH);
_.q(lH,"yt-emoji-picker-category-button-renderer",function(){if(fZB===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;i9G===void 0&&(i9G=document.createElement("template"));var S=i9G;D.call(L,S.content.cloneNode(!0),x.content.firstChild);fZB=x}x=fZB;return x},{mode:2});var oYd;var aZG;var UV=function(){var x=_.e.apply(this,arguments)||this;x.ariaLabel=null;x.ariaActivedescendant=null;x.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};x.JSC$14183_ignoreNextFocus_=!1;x.longPressTimeoutId=-1;return x};
_.p(UV,_.e);_.K=UV.prototype;_.K.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.K.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.K.emojiChanged_=function(){this.changeFocus_(0,!1);for(var x=_.sk(),L=0;L<this.emoji.length;L++){var D={veType:88013,elementIndex:L},S=this.emoji[L];S.isCustomEmoji&&(S=document.querySelector(("#"+S.emojiId).replace("/","\\/")))&&(D=_.Ff(x,D))&&(S.visualElement=D)}};
_.K.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.K.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.K.emojiSkinToneChanged_=function(x){this.skinTone=x};
_.K.dataChanged=function(){this.data&&this.data.emojiData&&Wbd(this.emojiManager,this.data.emojiData)};
_.K.emojiUrl=function(x){x=this.getEmoji(x);if(!x)return"";var L;x=(L=x.image)==null?void 0:L.thumbnails;return _.PD(x,24)||""};
_.K.emojiAlt=function(x){var L=this.get("image.accessibility.accessibilityData.label",x);return L?L:x.isCustomEmoji?x.shortcuts[0]:x.emojiId};
_.K.emojiAriaLabel=function(x){return x.shortcuts?x.shortcuts[0]:""};
_.K.emojiAriaSelected=function(x,L,D){return x&&D==L?"true":"false"};
_.K.getEmoji=function(x){if(this.emojiManager)return this.shouldUseStickyPreferences?AlC(this.emojiManager,x):vG(this.emojiManager,x)};
_.K.computeId_=function(x){return x.categoryId||""};
_.K.computeEmoji=function(x){var L=this;return this.emojiManager?x.emojiIds?x.emojiIds.map(function(D){return D?_.jQ(L.emojiManager,D):null}).filter(Ymn):x.emojiData?x.emojiData.map(function(D){var S=!!D.emojiId&&_.jQ(L.emojiManager,D.emojiId);
return S?Object.assign({},S,D):null}).filter(Ymn):[]:[]};
_.K.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.K.computeAriaLabel_=function(x){return _.SR(x)};
_.K.computeAriaActivedescendant_=function(x,L){return x&&x[L]?x[L].emojiId||"":""};
_.K.handleLongPressEmojiWithVariants=function(x,L){this.changeFocusToEmoji(x.emojiId,!1);this.openVariantSelector(x,L)};
_.K.onMouseDown=function(x){var L=this;this.hostElement!==document.activeElement&&(this.JSC$14183_ignoreNextFocus_=!0);if(x.button===0){var D=_.K$(x);if(D instanceof HTMLImageElement){var S=_.jr(this.hostElement).querySelector("#repeat").itemForElement(D);this.emojiContainsVariants(S)&&(this.longPressTimeoutId=setTimeout(function(){L.handleLongPressEmojiWithVariants(S,D)},500))}}};
_.K.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.K.onFocus=function(){this.JSC$14183_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14183_ignoreNextFocus_=!1};
_.K.onBlur_=function(){this.showFocus=!1};
_.K.emojiContainsVariants=function(x){return!!(x&&x.variantIds&&x.variantIds.length)};
_.K.onClick=function(x){clearTimeout(this.longPressTimeoutId);x=_.K$(x);if(x instanceof HTMLImageElement){var L=x.id;this.changeFocusToEmoji(L,!1);var D=this.getEmoji(L),S;if(S=this.shouldUseStickyPreferences&&this.emojiContainsVariants(D)){var Q;S=!((Q=this.emojiManager.emojiMap[L])!=null&&Q.stickyPrefId)}S?(Q=_.jr(this.hostElement).querySelector("#repeat").itemForElement(x),this.openVariantSelector(Q,x)):_.MF(this.hostElement,"yt-emoji-select",D)}};
_.K.isActiveEmojiWithVariants=function(x,L){return x&&L?L.stickyPrefId?x===L.stickyPrefId:x===L.emojiId:!1};
_.K.onCloseEmojiVariantSelector=function(x){this.activeEmojiWithVariantsId===x&&(this.activeEmojiWithVariantsId="")};
_.K.onMouseOver_=function(x){x=_.K$(x);x instanceof HTMLImageElement&&_.MF(this.hostElement,"yt-emoji-hover",_.jQ(this.emojiManager,x.id))};
_.K.changeFocus_=function(x,L){this.focusedIndex=(this.focusedIndex+x+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(x=this.emoji[this.focusedIndex],L&&(this.showFocus=!0,_.jr(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.MF(this.hostElement,"yt-emoji-hover",x)))};
_.K.changeFocusToEmoji=function(x,L){if(x){var D=this.emoji.findIndex(function(S){return S.emojiId===x});
D!==-1&&this.changeFocus_(D-this.focusedIndex,L)}};
_.K.onKeyDown_=function(x){switch(x.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var L=this.emoji[this.focusedIndex];if(L&&L.emojiId){if(this.emojiContainsVariants(L)){var D=_.jr(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(L,D)}else _.MF(this.hostElement,"yt-emoji-select",vG(this.emojiManager,L.emojiId)),this.hostElement.focus();x.preventDefault()}}break;case 40:this.changeFocus_(1,!0);x.preventDefault();break;case 38:this.changeFocus_(-1,!0),
x.preventDefault()}};
_.K.onEmojiStickyPreferenceChanged=function(x,L){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&x.emojiId&&x.variantIds&&x.variantIds.includes(L)&&this.activeEmojiWithVariantsId!==L&&this.setStickyEmojiPreference(x.emojiId,L)};
_.K.openVariantSelector=function(x,L){this.activeEmojiWithVariantsId=x.stickyPrefId||x.emojiId||"";_.MF(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:x,target:L})};
_.K.setStickyEmojiPreference=function(x,L){if(this.data){var D=this.emoji.findIndex(function(Q){return Q.emojiId===x});
if(D!==-1){var S=this.emoji[D];S.stickyPrefId=L;this.set("emoji."+D,Object.assign({},S));this.activeEmojiWithVariantsId=L}}};
UV.prototype.onKeyDown_=UV.prototype.onKeyDown_;UV.prototype.onMouseOver_=UV.prototype.onMouseOver_;UV.prototype.onClick=UV.prototype.onClick;UV.prototype.onBlur_=UV.prototype.onBlur_;UV.prototype.onFocus=UV.prototype.onFocus;UV.prototype.onMouseUp=UV.prototype.onMouseUp;UV.prototype.onMouseDown=UV.prototype.onMouseDown;UV.prototype.dataChanged=UV.prototype.dataChanged;UV.prototype.disableIncrementalLoadingChanged_=UV.prototype.disableIncrementalLoadingChanged_;UV.prototype.emojiManagerChanged_=UV.prototype.emojiManagerChanged_;
UV.prototype.emojiChanged_=UV.prototype.emojiChanged_;_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],UV.prototype,"ytActionHandlerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],UV.prototype,"data",void 0);_.A([_.F({computed:"computeId_(data)"}),_.r("design:type",String)],UV.prototype,"id",void 0);_.A([_.F({computed:"computeEmoji(data)"}),_.r("design:type",Array)],UV.prototype,"emoji",void 0);_.A([_.F(),_.r("design:type",Number)],UV.prototype,"skinTone",void 0);
_.A([_.F(),_.r("design:type",_.PG)],UV.prototype,"emojiManager",void 0);_.A([_.F(),_.r("design:type",Boolean)],UV.prototype,"disableIncrementalLoading",void 0);_.A([_.F({value:0}),_.r("design:type",Number)],UV.prototype,"focusedIndex",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],UV.prototype,"showFocus",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.r("design:type",Object)],UV.prototype,"ariaLabel",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.r("design:type",Object)],UV.prototype,"ariaActivedescendant",void 0);_.A([_.F({value:60}),_.r("design:type",Number)],UV.prototype,"domRepeatTargetFramerate",void 0);_.A([_.F({value:1}),_.r("design:type",Number)],UV.prototype,"domRepeatInitialCount",void 0);_.A([_.F({value:""}),_.r("design:type",String)],UV.prototype,"activeEmojiWithVariantsId",void 0);
_.A([_.F({value:!1}),_.r("design:type",Boolean)],UV.prototype,"shouldUseStickyPreferences",void 0);_.A([_.bN("emoji"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],UV.prototype,"emojiChanged_",null);_.A([_.bN("emojiManager"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],UV.prototype,"emojiManagerChanged_",null);
_.A([_.bN("disableIncrementalLoading"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],UV.prototype,"disableIncrementalLoadingChanged_",null);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],UV.prototype,"dataChanged",null);_.A([_.mX("mousedown"),_.r("design:type",Function),_.r("design:paramtypes",[Object]),_.r("design:returntype")],UV.prototype,"onMouseDown",null);
_.A([_.mX("mouseup"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],UV.prototype,"onMouseUp",null);_.A([_.mX("focus"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],UV.prototype,"onFocus",null);_.A([_.mX("blur"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],UV.prototype,"onBlur_",null);
_.A([_.mX("click"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],UV.prototype,"onClick",null);_.A([_.mX("mouseover"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],UV.prototype,"onMouseOver_",null);_.A([_.mX("keydown"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],UV.prototype,"onKeyDown_",null);
_.A([_.oW({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],UV);
_.q(UV,"yt-emoji-picker-category-renderer",function(){if(aZG===void 0){var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;oYd===void 0&&(oYd=document.createElement("template"));var S=oYd;D.call(L,S.content.cloneNode(!0),x.content.firstChild);aZG=x}x=aZG;return x},{mode:2});var zwd;var X8H;var cOR;var nYi;var wU=function(){var x=_.e.apply(this,arguments)||this;x.ariaLabel=null;x.ariaActivedescendant=null;x.getFormattedStringRawText=_.SR;x.JSC$14189_ignoreNextFocus_=!1;return x};
_.p(wU,_.e);_.K=wU.prototype;_.K.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")};
_.K.emojiUrl=function(x){var L,D;x=(L=vG(this.emojiManager,x,!0))==null?void 0:(D=L.image)==null?void 0:D.thumbnails;return _.PD(x,24)||""};
_.K.emojiAlt=function(x){var L=this.get("image.accessibility.accessibilityData.label",x);return L?L:x.isCustomEmoji?x.shortcuts[0]:x.emojiId};
_.K.emojiId=function(x){return"emoji"+x};
_.K.computeId_=function(x){return x.categoryId||""};
_.K.computeAriaActivedescendant_=function(x){return this.emoji&&x<this.emoji.length?this.emojiId(x):""};
_.K.emojiChanged_=function(){this.changeFocus_(0,!1);for(var x=_.sk(),L=0;L<this.emoji.length;L++){var D={veType:88013,elementIndex:L},S=this.emoji[L];S.isCustomEmoji&&(S=document.querySelector(("#"+S.emojiId).replace("/","\\/")))&&(D=_.Ff(x,D))&&(S.visualElement=D)}};
_.K.computeEmoji_=function(x){var L=this;return this.emojiManager?x.emojiIds.map(function(D){return _.jQ(L.emojiManager,D,!0)}).filter(Fjb):[]};
_.K.titleOffsetChanged_=function(){var x=this.hostElement.getBoundingClientRect(),L=_.jr(this.hostElement).querySelector("#title").getBoundingClientRect();x=Math.max(0,Math.min(this.titleOffset,x.height-L.height));_.jr(this.hostElement).querySelector("#title").style.top=x+"px"};
_.K.onEmojiMouseOver_=function(x){_.MF(this.hostElement,"yt-emoji-hover",x.model.item)};
_.K.onEmojiTap_=function(x){this.data.command&&(x=yO4(_.yY().resolve(_.ZN(fV)),this.data.command,x),_.MF(this.hostElement,"yt-navigate",x))};
_.K.emojiAriaLabel=function(x){return x.shortcuts[0]};
_.K.emojiAriaSelected=function(x,L,D){return x&&D==L?"true":"false"};
_.K.changeFocus_=function(x,L){var D=this.emoji.length;this.focusedIndex=(this.focusedIndex+x+D)%D;x=this.emoji[this.focusedIndex];if(L){var S;(S=_.jr(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||S.scrollIntoView(!1);_.MF(this.hostElement,"yt-emoji-hover",x)}};
_.K.onMouseDown_=function(){this.JSC$14189_ignoreNextFocus_=!0};
_.K.onFocus_=function(){this.JSC$14189_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14189_ignoreNextFocus_=!1};
_.K.onBlur_=function(){this.showFocus=!1};
_.K.onKeyDown_=function(x){switch(x.keyCode){case 13:this.onEmojiTap_(x);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);x.preventDefault();break;case 38:this.changeFocus_(-1,!0),x.preventDefault()}};
wU.prototype.onKeyDown_=wU.prototype.onKeyDown_;wU.prototype.onBlur_=wU.prototype.onBlur_;wU.prototype.onFocus_=wU.prototype.onFocus_;wU.prototype.onMouseDown_=wU.prototype.onMouseDown_;wU.prototype.onEmojiTap_=wU.prototype.onEmojiTap_;wU.prototype.titleOffsetChanged_=wU.prototype.titleOffsetChanged_;wU.prototype.emojiChanged_=wU.prototype.emojiChanged_;_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],wU.prototype,"ytComponentBehavior",void 0);
_.A([_.F(),_.r("design:type",Object)],wU.prototype,"data",void 0);_.A([_.F({computed:"computeId_(data)"}),_.r("design:type",String)],wU.prototype,"id",void 0);_.A([_.F({computed:"computeEmoji_(data)"}),_.r("design:type",Array)],wU.prototype,"emoji",void 0);_.A([_.F({value:0}),_.r("design:type",Number)],wU.prototype,"titleOffset",void 0);_.A([_.F({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.r("design:type",Object)],wU.prototype,"ariaLabel",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.r("design:type",Object)],wU.prototype,"ariaActivedescendant",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],wU.prototype,"showFocus",void 0);_.A([_.F({value:0}),_.r("design:type",Number)],wU.prototype,"focusedIndex",void 0);_.A([_.F(),_.r("design:type",_.PG)],wU.prototype,"emojiManager",void 0);
_.A([_.bN("emoji"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],wU.prototype,"emojiChanged_",null);_.A([_.bN("titleOffset"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],wU.prototype,"titleOffsetChanged_",null);_.A([_.mX("click"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],wU.prototype,"onEmojiTap_",null);
_.A([_.mX("mousedown"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],wU.prototype,"onMouseDown_",null);_.A([_.mX("focus"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],wU.prototype,"onFocus_",null);_.A([_.mX("blur"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],wU.prototype,"onBlur_",null);
_.A([_.mX("keydown"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],wU.prototype,"onKeyDown_",null);_.A([_.oW({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],wU);
_.q(wU,"yt-emoji-picker-upsell-category-renderer",function(){if(nYi===void 0){var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;cOR===void 0&&(cOR=document.createElement("template"));var S=cOR;D.call(L,S.content.cloneNode(!0),x.content.firstChild);nYi=x}x=nYi;return x},{mode:2});var t4d;var xOr;var BG=function(){var x=_.e.apply(this,arguments)||this;x.scrollAction="lock";x.verticalAlign="top";return x};
_.p(BG,_.e);_.K=BG.prototype;_.K.onClick=function(x){x=_.K$(x);x instanceof HTMLImageElement&&_.MF(this.hostElement,"yt-emoji-select",_.jQ(this.emojiManager,x.id))};
_.K.openSelector=function(){this.ironOverlayBehavior.open()};
_.K.onDomChange=function(){BZ2(this.ytEmojiSelectorBehavior)};
_.K.computeIsFamilySelector=function(x){var L;return(x==null?void 0:(L=x.emoji)==null?void 0:L.emojiId)==="\ud83d\udc6a"};
_.K.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var x=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];x&&x.emojiId&&(_.MF(this.hostElement,"yt-emoji-select",_.jQ(this.emojiManager,x.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.J3.Object.defineProperties(BG.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var x=this,L,D,S;return this.emojiManager&&((L=this.data)==null?0:(D=L.emoji)==null?0:(S=D.variantIds)==null?0:S.length)?this.data.emoji.variantIds.map(function(Q){return!!Q&&_.jQ(x.emojiManager,Q)}).filter(function(Q){return!!Q}):[]}}});
BG.prototype.onClick=BG.prototype.onClick;_.A([_.b(_.EW),_.r("design:type",Object)],BG.prototype,"ironOverlayBehavior",void 0);_.A([_.b(WKR),_.r("design:type",Object)],BG.prototype,"ytEmojiSelectorBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],BG.prototype,"data",void 0);_.A([_.F(),_.r("design:type",_.PG)],BG.prototype,"emojiManager",void 0);_.A([_.F(),_.r("design:type",Object)],BG.prototype,"scrollAction",void 0);_.A([_.F(),_.r("design:type",Object)],BG.prototype,"verticalAlign",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.r("design:type",Boolean)],BG.prototype,"isFamilySelector",void 0);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],BG.prototype,"emojiVariants",null);_.A([_.mX("click"),_.r("design:type",Function),_.r("design:paramtypes",[MouseEvent]),_.r("design:returntype")],BG.prototype,"onClick",null);_.A([_.oW({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],BG);
_.q(BG,"yt-emoji-variant-selector",function(){if(xOr===void 0){var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;t4d===void 0&&(t4d=document.createElement("template"));var S=t4d;D.call(L,S.content.cloneNode(!0),x.content.firstChild);xOr=x}x=xOr;return x},{mode:2});var LjW=/:/g,DOh=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],WG=function(){var x=_.e.apply(this,arguments)||this;x.emojiVariantSelector=null;x.emojiMultiPersonSelector=null;x.identity=_.B4;x.lastAnimationTime_=0;x.animationStart_=null;x.animationEnd_=null;return x};
_.p(WG,_.e);_.K=WG.prototype;
_.K.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}}};
_.K.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.VT)};
_.K.attached=function(){_.j_&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&qrR(this.emojiManager)};
_.K.dataChanged=function(){var x;if((x=this.data)==null?0:x.categories){x=this.emojiManager;var L=this.getCustomEmojiIds();x.pickerCustomEmojiIds=[].concat(_.lP(C2h),_.lP(L))}};
_.K.getCustomEmojiIds=function(){var x,L=(x=this.data.categories)==null?void 0:x.find(function(J){var Z;return((Z=J.emojiPickerCategoryRenderer)==null?void 0:Z.categoryId)&&DOh.includes(J.emojiPickerCategoryRenderer.categoryId)}),D;
x=(D=this.data.categories)==null?void 0:D.find(function(J){return J.emojiPickerUpsellCategoryRenderer});
var S,Q;return[L==null?void 0:(S=L.emojiPickerCategoryRenderer)==null?void 0:S.emojiIds,x==null?void 0:(Q=x.emojiPickerUpsellCategoryRenderer)==null?void 0:Q.emojiIds].flat().filter(function(J){return!!J})};
_.K.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.K.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.K.updateCategoriesAndPlaceholderInternal=function(x,L){var D=this;x&&L&&(this.categories=x.categories||[],this.categoryButtons=x.categoryButtons||[],this.resetPlaceholder(),this.search="",_.xi(function(){D.updateButtons_()}))};
_.K.computeId_=function(x){return x.id||""};
_.K.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(x){return x.emojiPickerCategoryRenderer&&x.emojiPickerCategoryRenderer.emojiData}):!1};
_.K.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.K.onShowEmojiVariantSelector=function(x){var L=x.detail.emojiData;L.variantIds&&L.variantIds.length&&(L.multiSelectorThumbnailRow&&L.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:L,target:x.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:L,target:x.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.K.onIronOverlayClosed=function(x){var L=AlC(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");L&&x.composedPath&&(x.composedPath().includes(_.jr(this.hostElement).querySelector("#emoji-variant-selector"))||x.composedPath().includes(_.jr(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.dg(this.hostElement,"yt-close-emoji-variant-selector",[L.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.K.onEmojiVariantSelectorMouseup=function(x){var L=x.target.firstChild;this.variantSelectorOpened&&L&&_.xi(function(){L.noCancelOnOutsideClick=!1},100)};
_.K.onEmojiVariantSelectorMousedown=function(x){x=x.target.firstChild;this.variantSelectorOpened&&x&&(x.noCancelOnOutsideClick=!1)};
_.K.onSelectCategory_=function(x){var L=this.search!="";this.search="";for(var D=_.jr(this.hostElement).querySelector("#categories").children,S=0;S<D.length;S++){var Q=D[S];if(Q.id==x.detail.categoryId){L?(_.jr(this.hostElement).querySelector("#categories").scrollTop=Q.offsetTop,this.updateButtons_()):(this.animationStart_=_.jr(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=Q.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.K.onEmojiHover_=function(x){this.placeholder=x.detail.shortcuts?x.detail.shortcuts[0]:""};
_.K.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.K.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.K.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.K.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.K.computeSearchCategory_=function(x){x=x.replace(LjW,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();x=x.split(" ");for(var L=[],D=this.emojiManager.emojis,S=0;S<D.length;S++){var Q=D[S];if(Q.searchTerms)for(var J=0;J<Q.searchTerms.length;J++){for(var Z=Q.searchTerms[J].toLocaleLowerCase(),y=!1,E=0;E<x.length;E++)if(Z.indexOf(x[E])!=-1){y=!0;break}if(y&&(!Q.isCustomEmoji||!Q.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(Q.emojiId))){L.push(Q.emojiId);
break}}}return{categoryId:-1,emojiIds:L}};
_.K.computeSearchEmptyMessage_=function(x,L){return x&&L&&L.emojiIds&&L.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.K.computeSearching_=function(x){return this.emojiManager&&x.replace(LjW,"").length>1};
_.K.computeSkinToneHidden=function(){var x;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((x=this.data)==null||!x.hideSkinTonePicker)};
_.K.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.K.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.K.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.K.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.K.selectSkinTone_=function(x){x=Number(x.target.getAttribute("tone"));this.set("emojiManager.skinTone",x);_.dg(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[x]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.K.skinToneChanged_=function(){_.jr(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var x=_.jr(this.hostElement).querySelector("#dropdown-content").children,L=0;L<x.length;L++)L===this.skinTone?x[L].setAttribute("selected",""):x[L].removeAttribute("selected")};
_.K.animateScroll_=function(x){this.lastAnimationTime_||(this.lastAnimationTime_=x);x-=this.lastAnimationTime_;x<200?(_.jr(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*x/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.jr(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.K.searchChanged_=function(){this.updateButtons_()};
_.K.updateButtons_=function(){var x=null;if(!this.search)for(var L=_.jr(this.hostElement).querySelector("#categories").scrollTop,D=_.jr(this.hostElement).querySelector("#categories").children,S=0;S<D.length;S++){var Q=D[S];Q.offsetTop<=L&&(x=Q.id)}L=_.jr(this.hostElement).querySelector("#category-buttons").children;for(D=0;D<L.length;D++)S=L[D],S.active=S.id===x};
WG.prototype.searchChanged_=WG.prototype.searchChanged_;WG.prototype.skinToneChanged_=WG.prototype.skinToneChanged_;WG.prototype.onEmojiHover_=WG.prototype.onEmojiHover_;WG.prototype.onSelectCategory_=WG.prototype.onSelectCategory_;WG.prototype.onShowEmojiVariantSelector=WG.prototype.onShowEmojiVariantSelector;WG.prototype.updateCategoriesAndPlaceholder_=WG.prototype.updateCategoriesAndPlaceholder_;WG.prototype.dataChanged=WG.prototype.dataChanged;
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],WG.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],WG.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],WG.prototype,"data",void 0);_.A([_.F({value:function(){return[]}}),
_.r("design:type",Array)],WG.prototype,"categories",void 0);_.A([_.F({value:function(){return[]}}),
_.r("design:type",Array)],WG.prototype,"categoryButtons",void 0);_.A([_.F({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.r("design:type",Boolean)],WG.prototype,"disableScroll",void 0);_.A([_.F({computed:"computeId_(data)",reflectToAttribute:!0}),_.r("design:type",String)],WG.prototype,"id",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],WG.prototype,"selected",void 0);
_.A([_.F({value:!1}),_.r("design:type",Boolean)],WG.prototype,"disableIncrementalLoading",void 0);_.A([_.F(),_.r("design:type",String)],WG.prototype,"placeholder",void 0);_.A([_.F({value:""}),_.r("design:type",String)],WG.prototype,"search",void 0);_.A([_.F({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.r("design:type",Boolean)],WG.prototype,"searching",void 0);_.A([_.F({computed:"computeSearchCategory_(search)"}),_.r("design:type",Object)],WG.prototype,"searchCategory",void 0);
_.A([_.F({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.r("design:type",Object)],WG.prototype,"searchEmptyMessage",void 0);_.A([_.F({computed:"identity(emojiManager.skinTone)"}),_.r("design:type",Number)],WG.prototype,"skinTone",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],WG.prototype,"skinToneOpened",void 0);_.A([_.F({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],WG.prototype,"variantSelectorOpened",void 0);
_.A([_.F({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.r("design:type",Boolean)],WG.prototype,"skinToneHidden",void 0);_.A([_.F(),_.r("design:type",_.PG)],WG.prototype,"emojiManager",void 0);_.A([_.F(),_.r("design:type",Object)],WG.prototype,"emojiVariantSelector",void 0);_.A([_.F(),_.r("design:type",Object)],WG.prototype,"emojiMultiPersonSelector",void 0);
_.A([_.F({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.r("design:type",Boolean)],WG.prototype,"shouldUseStickyPreferences",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],WG.prototype,"dataChanged",null);_.A([_.bN("data","selected"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],WG.prototype,"updateCategoriesAndPlaceholder_",null);
_.A([_.mX("yt-show-emoji-variant-selector"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],WG.prototype,"onShowEmojiVariantSelector",null);_.A([_.mX("yt-emoji-picker-select-category"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],WG.prototype,"onSelectCategory_",null);_.A([_.mX("yt-emoji-hover"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],WG.prototype,"onEmojiHover_",null);
_.A([_.bN("skinTone"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],WG.prototype,"skinToneChanged_",null);_.A([_.bN("search"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],WG.prototype,"searchChanged_",null);_.A([_.oW({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],WG);
_.q(WG,"yt-emoji-picker-renderer",function(){if(X8H===void 0){var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;zwd===void 0&&(zwd=document.createElement("template"));var S=zwd;D.call(L,S.content.cloneNode(!0),x.content.firstChild);X8H=x}x=X8H;return x},{mode:2});var qK=function(){var x=_.e.apply(this,arguments)||this;x.emojiManager=_.VT;x.isDarkTheme=document.documentElement.hasAttribute("dark");x.selectedIndex=1;x.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return x};
_.p(qK,_.e);_.K=qK.prototype;_.K.handleEmojiCustomizationVisible=function(x){this.emojiPickerRenderer.selected=x;this.selectedIndex=1;x?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.K.emojiCustomizationSetChanged=function(){var x;(x=this.data)!=null&&x.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.Xh(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.K.updateSaveButtonState=function(x){var L;(L=this.data)!=null&&L.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.TR("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:x}))};
_.K.emojiUrl=function(x){x=_.jQ(this.emojiManager,x);if(!x)return"";var L;x=(L=x.image)==null?void 0:L.thumbnails;return _.PD(x,24)||""};
_.K.emojiAlt=function(x){var L=_.jQ(this.emojiManager,x);if(!L)return x;var D,S,Q,J=(L==null?void 0:(D=L.image)==null?void 0:(S=D.accessibility)==null?void 0:(Q=S.accessibilityData)==null?void 0:Q.label)||"";return J?J:L.isCustomEmoji?L.shortcuts[0]:L.emojiId||x};
_.K.emojiAriaLabel=function(x){var L,D;return((L=_.jQ(this.emojiManager,x))==null?void 0:(D=L.shortcuts)==null?void 0:D[0])||x};
_.K.onEmojiClick=function(x){x.model.index!==0&&(this.selectedIndex=x.model.index)};
_.K.onEmojiSelect=function(x){x=x.detail;var L,D;((L=this.data)==null?0:L.emojiCustomizationSetEntityKey)&&((D=this.emojiCustomizationSet)==null?0:D.emojiId)&&x.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,x.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.TR("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,x.emojiId,this.selectedIndex)}))};
_.K.canEditEmoji=function(x,L,D){x=x.indexOf(L);return x===D||x===0||D===0?!1:!0};
_.K.getUpdatedEmojiIdList=function(x,L,D){var S=x.indexOf(L);x=[].concat(_.lP(x));S>=0&&(x[S]=x[D]);x[D]=L;return x};
_.J3.Object.defineProperties(qK,{template:{configurable:!0,enumerable:!0,get:function(){if(gYC===void 0){var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;uQ2===void 0&&(uQ2=document.createElement("template"));var S=uQ2;D.call(L,S.content.cloneNode(!0),x.content.firstChild);gYC=x}x=gYC;return x}}});
qK.prototype.onEmojiSelect=qK.prototype.onEmojiSelect;_.A([_.b(_.ds),_.r("design:type",Object)],qK.prototype,"ytLiveChatReduxBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],qK.prototype,"ytActionHandlerBehavior",void 0);_.A([_.F1("yt-emoji-picker-renderer"),_.r("design:type",Object)],qK.prototype,"emojiPickerRenderer",void 0);
_.A([_.F({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(x,L){return _.u6(x.entities,"emojiCustomizationSetEntity",L)},
observer:"emojiCustomizationSetChanged"}),_.r("design:type",Object)],qK.prototype,"emojiCustomizationSet",void 0);_.A([_.F(),_.r("design:type",Object)],qK.prototype,"originalEmojiSet",void 0);_.A([_.F(),_.r("design:type",_.PG)],qK.prototype,"emojiManager",void 0);_.A([_.F(),_.r("design:type",Object)],qK.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],qK.prototype,"isDarkTheme",void 0);_.A([_.F(),_.r("design:type",Object)],qK.prototype,"selectedIndex",void 0);
_.A([_.mX("yt-emoji-select"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],qK.prototype,"onEmojiSelect",null);_.A([_.oW({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],qK);var Smd;var QV2;var Jki;var Kjh;var AT=function(){var x=_.e.apply(this,arguments)||this;x.authorBadges=[];return x};
_.p(AT,_.e);_.K=AT.prototype;_.K.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.K.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]]"}}}}}};
_.K.dataChanged=function(){var x=Lds(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",x)};
_.K.updateMessage=function(){var x=this.data.message,L=_.jr(_.jr(this.hostElement).querySelector("#message"));L.textContent="";x&&L.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(x))};
_.K.shouldSupportWholeItemClick=function(){return!0};
_.K.onShowOriginalClick=function(x){x.preventDefault();this.showOriginal=!0};
_.K.computeShowBar=function(x,L,D){return x&&L||D};
_.K.computeAuthorBadges=function(x){return x.authorBadges||[]};
_.K.computeAuthorIsOwner=function(x){return!!DGc(x.authorBadges,"owner")};
_.K.computeAuthorNameColor=function(x){var L;if(_.u("live_chat_author_name_color_usernames")&&(x==null?0:(L=x.authorName)==null?0:L.simpleText))return _.ZT0(_.y1h(x.authorName.simpleText));if(_.u("live_chat_seed_color_usernames")&&(x==null?0:x.authorSeedColorArgb))return _.ZT0(_.Hp(x.authorSeedColorArgb));if(_.u("live_chat_colored_usernames"))return"#cc0000";var D;return _.u("live_chat_simple_color_usernames")&&(x==null?0:(D=x.authorName)==null?0:D.simpleText)&&(x==null?0:x.authorUsernameColorLight)&&
(x==null?0:x.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.Hp(x.authorUsernameColorDark):_.Hp(x.authorUsernameColorLight):""};
AT.prototype.updateMessage=AT.prototype.updateMessage;AT.prototype.dataChanged=AT.prototype.dataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],AT.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.hT.YtLiveChatItemBehavior),_.r("design:type",_.HG)],AT.prototype,"ytLiveChatItemBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],AT.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],AT.prototype,"data",void 0);
_.A([_.F({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],AT.prototype,"showOriginal",void 0);_.A([_.F({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.r("design:type",Boolean)],AT.prototype,"isDimmed",void 0);_.A([_.F({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.r("design:type",Boolean)],AT.prototype,"showBar",void 0);
_.A([_.F({computed:"computeAuthorBadges(data)"}),_.r("design:type",Array)],AT.prototype,"authorBadges",void 0);_.A([_.F({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],AT.prototype,"authorIsOwner",void 0);_.A([_.F({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],AT.prototype,"inCollapsedBanner",void 0);_.A([_.F({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],AT.prototype,"inBanner",void 0);
_.A([_.F({value:_.u("live_chat_hide_avatars"),reflectToAttribute:!0}),_.r("design:type",Boolean)],AT.prototype,"avatarHidden",void 0);_.A([_.F({computed:"computeAuthorNameColor(data)"}),_.r("design:type",String)],AT.prototype,"authorNameColor",void 0);_.A([_.F(),_.r("design:type",_.ks)],AT.prototype,"participantsManager",void 0);_.A([_.F({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.r("design:type",Object)],AT.prototype,"filledButtonOverrides",void 0);
_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],AT.prototype,"dataChanged",null);_.A([_.bN("data.message"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],AT.prototype,"updateMessage",null);_.A([_.oW({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],AT);
_.q(AT,"yt-live-chat-text-message-renderer",function(){if(Kjh===void 0){var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;Jki===void 0&&(Jki=document.createElement("template"));var S=Jki;D.call(L,S.content.cloneNode(!0),x.content.firstChild);Kjh=x}x=Kjh;return x},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var $s=function(){var x=_.e.apply(this,arguments)||this;x.tonalButtonOverrides={type:"tonal",style:"overlay"};return x};
_.p($s,_.e);
$s.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]]"}}}}}};
$s.prototype.shouldSupportInlineActionButtons=function(){return!0};
$s.prototype.shouldSupportWholeItemClick=function(){return!0};
_.J3.Object.defineProperties($s.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],$s.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.hT.YtLiveChatItemBehavior),_.r("design:type",_.HG)],$s.prototype,"ytLiveChatItemBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],$s.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],$s.prototype,"data",void 0);_.A([_.F(),_.r("design:type",_.ks)],$s.prototype,"participantsManager",void 0);
_.A([_.F(),_.r("design:type",Object)],$s.prototype,"tonalButtonOverrides",void 0);_.A([_.F({reflectToAttribute:!0}),_.Y("data.infoDialogButton"),_.r("design:type",Object),_.r("design:paramtypes",[])],$s.prototype,"hasInfoDialogButton",null);_.A([_.oW({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],$s);
_.q($s,"yt-live-chat-auto-mod-message-renderer",function(){if(QV2===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;Smd===void 0&&(Smd=document.createElement("template"));var S=Smd;D.call(L,S.content.cloneNode(!0),x.content.firstChild);QV2=x}x=QV2;return x},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var OCd;var ZCR;var ykA;var IPH=function(){return _.e.apply(this,arguments)||this};
_.p(IPH,_.e);_.A([_.F(),_.r("design:type",Object)],IPH.prototype,"data",void 0);_.A([_.w({is:"ytd-factoid-renderer",disableElementRegistration:!0})],IPH);
_.q(IPH,"ytd-factoid-renderer",function(){if(ykA!==void 0)return ykA;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return ykA=x},{mode:1});var rU=function(){return _.e.apply(this,arguments)||this};
_.p(rU,_.e);rU.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.A([_.F(),_.r("design:type",Object)],rU.prototype,"data",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],rU.prototype,"ytRendererstamperBehavior",void 0);_.A([_.oW({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],rU);
_.q(rU,"yt-live-chat-channel-activity-reputation-renderer",function(){if(ZCR===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;OCd===void 0&&(OCd=document.createElement("template"));var S=OCd;D.call(L,S.content.cloneNode(!0),x.content.firstChild);ZCR=x}x=ZCR;return x},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var EBi;var MeW;var NK=function(){return _.e.apply(this,arguments)||this};
_.p(NK,_.e);NK.prototype.ready=function(){var x=document.querySelector("yt-live-chat-app");x&&x.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],NK.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Boolean)],NK.prototype,"menuFocused",void 0);_.A([_.F(),_.r("design:type",Object)],NK.prototype,"data",void 0);_.A([_.b(_.hT.YtLiveChatItemBehavior),_.r("design:type",_.HG)],NK.prototype,"ytLiveChatItemBehavior",void 0);_.A([_.oW({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],NK);
_.q(NK,"yt-live-chat-donation-announcement-renderer",function(){if(MeW===void 0){var x=document.createElement("template");_.m(x,'\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>');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;EBi===void 0&&(EBi=document.createElement("template"));var S=EBi;D.call(L,S.content.cloneNode(!0),x.content.firstChild);MeW=x}x=MeW;return x},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var dOQ;var PXR,jVh=function(){if(PXR!==void 0)return PXR;var x=document.createElement("template");_.m(x,'\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>');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;dOQ===void 0&&(dOQ=document.createElement("template"));var S=dOQ;D.call(L,S.content.cloneNode(!0),x.content.firstChild);return PXR=x};var iH=function(){return _.e.apply(this,arguments)||this};
_.p(iH,_.e);_.J3.Object.defineProperties(iH,{template:{configurable:!0,enumerable:!0,get:function(){return jVh()}}});
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],iH.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],iH.prototype,"data",void 0);_.A([_.oW({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],iH);_.q(iH,"yt-live-chat-empty-feed-view-model",function(){return jVh()},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var vBH;var VeR;var ff=function(){return _.e.apply(this,arguments)||this};
_.p(ff,_.e);ff.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"}}}}}};
_.J3.Object.defineProperties(ff.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var x,L;return{runs:[{text:(x=this.data)==null?void 0:(L=x.channelName)==null?void 0:L.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var x=[],L;if((L=this.data)==null||!L.channelBadges)return x;var D;L=_.O((D=this.data)==null?void 0:D.channelBadges);for(D=L.next();!D.done;D=L.next()){D=_.g(D.value,L9G);var S=void 0,Q=void 0;if((S=D)==null?0:(Q=S.badgeImage)==null?0:Q.sources)S=void 0,Q={liveChatAuthorBadgeRenderer:{tooltip:D.tooltip,accessibility:{accessibilityData:{label:(S=_.g(D.rendererContext,_.Fm))==null?void 0:S.label}}}},D.badgeImage.sources[0].clientResource?Q.liveChatAuthorBadgeRenderer.icon=
{iconType:D.badgeImage.sources[0].clientResource.imageName}:Q.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:D.badgeImage.sources},x.push(Q)}return x}}});
_.A([_.F(),_.r("design:type",Object)],ff.prototype,"data",void 0);_.A([_.Y("data.channelName"),_.r("design:type",Object),_.r("design:paramtypes",[])],ff.prototype,"channelName",null);_.A([_.Y("data.channelBadges"),_.r("design:type",Array),_.r("design:paramtypes",[])],ff.prototype,"channelBadges",null);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],ff.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.oW({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],ff);
_.q(ff,"yt-live-chat-identity-view-model",function(){if(VeR===void 0){var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;vBH===void 0&&(vBH=document.createElement("template"));var S=vBH;D.call(L,S.content.cloneNode(!0),x.content.firstChild);VeR=x}x=VeR;return x},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var hIG;var HCH;var uaW;var gBA;var ok=function(){var x=_.e.apply(this,arguments)||this;x.hidden=!1;x.supportsInlineActionButtons=!0;return x};
_.p(ok,_.e);ok.prototype.ready=function(){var x;((x=document.querySelector("yt-live-chat-app"))==null?0:x.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
ok.prototype.dataChanged=function(x){var L=(0,_.HP)(_.jr(this.hostElement).querySelector("#detail-text"));L.textContent="";(x==null?0:x.detailText)&&L.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(x.detailText))};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],ok.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.hT.YtLiveChatItemBehavior),_.r("design:type",_.HG)],ok.prototype,"ytLiveChatItemBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],ok.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F({observer:"dataChanged"}),_.r("design:type",Object)],ok.prototype,"data",void 0);
_.A([_.F({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.r("design:type",Object)],ok.prototype,"hidden",void 0);_.A([_.w({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],ok);
_.q(ok,"yt-live-chat-legacy-paid-message-renderer",function(){if(gBA===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;uaW===void 0&&(uaW=document.createElement("template"));var S=uaW;D.call(L,S.content.cloneNode(!0),x.content.firstChild);gBA=x}x=gBA;return x},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var krC;var p3d;var mO2={},ak=function(){return _.er.apply(this,arguments)||this};
_.p(ak,_.er);ak.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
ak.prototype.onLiveChatMembershipItemBehaviorClick=ak.prototype.onLiveChatMembershipItemBehaviorClick;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],ak.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],ak.prototype,"data",void 0);_.A([_.mX("click"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],ak.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.A([_.RW()],ak);
mO2.YtLiveChatMembershipItemBehavior=[ak.prototype,_.c.YtRendererBehavior];var zM=function(){var x=_.e.apply(this,arguments)||this;x.supportsInlineActionButtons=!0;x.hasPrimaryHeaderText=!1;x.showOnlyHeader=!1;x.authorBadges=[];x.modern=_.u("web_button_rework_with_live");x.buttonOverrides={style:"overlay",type:"filled"};return x};
_.p(zM,_.e);_.K=zM.prototype;_.K.shouldSupportInlineActionButtons=function(){return!0};
_.K.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.K.ready=function(){var x=document.querySelector("yt-live-chat-app");x&&x.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.K.messageChanged=function(){var x=this.data.message,L=(0,_.HP)(_.jr(this.hostElement).querySelector("#message"));L.textContent="";x&&L.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(x))};
_.K.computeHasPrimaryHeaderText=function(x){return!(!x||!x.headerPrimaryText)};
_.K.computeShowOnlyHeader=function(x,L){return this.isMessageEmpty(x,L)};
_.K.computeAuthorBadges=function(x){return x.authorBadges||[]};
_.K.isMessageEmpty=function(x,L){return!x||x.empty?!0:!x.message&&!x.inputField&&!L};
_.K.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.K.getInputElement=function(){return _.jr(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.K.inputFocus=function(){var x=this.getInputElement();x&&x.focus()};
_.K.inputInsertEmoji=function(x){var L=this.getInputElement();L&&L.insertEmoji(x)};
_.K.inputMessage=function(){var x=this.getInputElement();return x&&this.data.inputField?(x.completeEmojis(),_.al(x.liveChatRichMessageInput)):null};
_.K.onFooterButtonClick=function(){this.data.footerButton&&_.MF(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.K.shouldSupportWholeItemClick=function(){return!0};
zM.prototype.isDeletedChanged=zM.prototype.isDeletedChanged;zM.prototype.messageChanged=zM.prototype.messageChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],zM.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.hT.YtLiveChatItemBehavior),_.r("design:type",_.HG)],zM.prototype,"ytLiveChatItemBehavior",void 0);_.A([_.b(mO2.YtLiveChatMembershipItemBehavior),_.r("design:type",Object)],zM.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],zM.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],zM.prototype,"data",void 0);_.A([_.F({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.r("design:type",Object)],zM.prototype,"hasPrimaryHeaderText",void 0);_.A([_.F({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.r("design:type",Object)],zM.prototype,"showOnlyHeader",void 0);
_.A([_.F({computed:"computeAuthorBadges(data)"}),_.r("design:type",Array)],zM.prototype,"authorBadges",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],zM.prototype,"modern",void 0);_.A([_.bN("data.message"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],zM.prototype,"messageChanged",null);_.A([_.bN("isDeleted"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],zM.prototype,"isDeletedChanged",null);
_.A([_.oW({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],zM);
_.q(zM,"yt-live-chat-membership-item-renderer",function(){if(p3d===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;krC===void 0&&(krC=document.createElement("template"));var S=krC;D.call(L,S.content.cloneNode(!0),x.content.firstChild);p3d=x}x=p3d;return x},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var bCh;var Ymi;var Xz=function(){return _.e.apply(this,arguments)||this};
_.p(Xz,_.e);Xz.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Xz.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Xz.prototype,"data",void 0);_.A([_.oW({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],Xz);
_.q(Xz,"yt-live-chat-mode-change-message-renderer",function(){if(Ymi===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;bCh===void 0&&(bCh=document.createElement("template"));var S=bCh;D.call(L,S.content.cloneNode(!0),x.content.firstChild);Ymi=x}x=Ymi;return x},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var FjQ;var sVC;var cG=function(){return _.e.apply(this,arguments)||this};
_.p(cG,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],cG.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.hT.YtLiveChatItemBehavior),_.r("design:type",_.HG)],cG.prototype,"ytLiveChatItemBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],cG.prototype,"data",void 0);_.A([_.oW({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],cG);
_.q(cG,"yt-live-chat-moderation-message-renderer",function(){if(sVC===void 0){var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;FjQ===void 0&&(FjQ=document.createElement("template"));var S=FjQ;D.call(L,S.content.cloneNode(!0),x.content.firstChild);sVC=x}x=sVC;return x},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var Twh;var eI2;var nf=function(){var x=_.e.apply(this,arguments)||this;x.modern=_.u("web_button_rework");return x};
_.p(nf,_.e);nf.prototype.onClick=function(){var x;if((x=this.data)!=null&&x.onClickCommand){var L;_.pI.instance.resolveCommand((L=this.data)==null?void 0:L.onClickCommand)}};
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],nf.prototype,"modern",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],nf.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.ds),_.r("design:type",Object)],nf.prototype,"ytLiveChatReduxBehavior",void 0);_.A([_.b(_.hT.YtLiveChatItemBehavior),_.r("design:type",_.HG)],nf.prototype,"ytLiveChatItemBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],nf.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.F(),_.r("design:type",Object)],nf.prototype,"data",void 0);_.A([_.oW({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],nf);
_.q(nf,"yt-live-chat-offer-click-count-message-renderer",function(){if(eI2===void 0){var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;Twh===void 0&&(Twh=document.createElement("template"));var S=Twh;D.call(L,S.content.cloneNode(!0),x.content.firstChild);eI2=x}x=eI2;return x},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var RId;var Grh=function(){return _.e.apply(this,arguments)||this};
_.p(Grh,_.e);_.A([_.F(),_.r("design:type",Object)],Grh.prototype,"data",void 0);_.A([_.oW({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],Grh);
_.q(Grh,"yt-live-chat-placeholder-item-renderer",function(){if(RId===void 0){var x=document.createElement("template");_.m(x,"\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");x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);RId=x}x=RId;return x},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var CX2;var lPi;var UOr=new LB(7),tT=function(){var x=_.e.apply(this,arguments)||this;x.data={};return x};
_.p(tT,_.e);tT.prototype.dataChanged=function(){var x;((x=this.data)==null?0:x.class)&&_.VA(this.hostElement,this.data.class,!0);var L;((L=this.oldData)==null?0:L.class)&&_.VA(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
tT.prototype.computeTimestampString=function(x){return UOr.format(new Date(x/1E3))};
tT.prototype.dataChanged=tT.prototype.dataChanged;_.A([_.F(),_.r("design:type",Object)],tT.prototype,"data",void 0);_.A([_.F({computed:"computeTimestampString(data.timestampUsec)"}),_.r("design:type",String)],tT.prototype,"timestampString",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],tT.prototype,"dataChanged",null);_.A([_.oW({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],tT);
_.q(tT,"yt-live-chat-server-error-message",function(){if(lPi===void 0){var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;CX2===void 0&&(CX2=document.createElement("template"));var S=CX2;D.call(L,S.content.cloneNode(!0),x.content.firstChild);lPi=x}x=lPi;return x},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var w3h;var Bwi;var xj=function(){var x=_.e.apply(this,arguments)||this;x.defaultToFilledIcon=!1;return x};
_.p(xj,_.e);xj.prototype.computeHasPrimaryColorIcon=function(x){return x==="SPARK"||x==="SPONSORSHIP_STAR"};
xj.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],xj.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.hT.YtLiveChatItemBehavior),_.r("design:type",_.HG)],xj.prototype,"ytLiveChatItemBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],xj.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],xj.prototype,"defaultToFilledIcon",void 0);_.A([_.F(),_.r("design:type",Object)],xj.prototype,"data",void 0);
_.A([_.F({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.r("design:type",Boolean)],xj.prototype,"hasPrimaryColorIcon",void 0);_.A([_.oW({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],xj);
_.q(xj,"yt-live-chat-viewer-engagement-message-renderer",function(){if(Bwi===void 0){var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;w3h===void 0&&(w3h=document.createElement("template"));var S=w3h;D.call(L,S.content.cloneNode(!0),x.content.firstChild);Bwi=x}x=Bwi;return x},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var WjC;var LO=function(){var x=_.e.apply(this,arguments)||this;x.modernUpdate=!1;x.buttonStyle="overlay";x.buttonType="filled";return x};
_.p(LO,_.e);LO.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
LO.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],LO.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],LO.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],LO.prototype,"modernUpdate",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",String)],LO.prototype,"buttonStyle",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",String)],LO.prototype,"buttonType",void 0);
_.A([_.w({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],LO);
_.q(LO,"ytd-ad-hover-text-button-renderer",function(){if(WjC!==void 0)return WjC;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return WjC=x},{mode:1});var qmQ;var DQ=function(){var x=_.e.apply(this,arguments)||this;x.buttonOverrides={size:"XS"};x.modern=_.u("web_button_rework");return x};
_.p(DQ,_.e);DQ.prototype.onHelpTap=function(x){this.data&&this.data.informationDialog&&(_.MF(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),x.preventDefault(),x.stopPropagation())};
_.A([_.F(),_.r("design:type",Object)],DQ.prototype,"buttonOverrides",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],DQ.prototype,"modern",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],DQ.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],DQ.prototype,"data",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],DQ);
_.q(DQ,"ytd-live-chat-purchased-product-message-renderer",function(){if(qmQ!==void 0)return qmQ;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return qmQ=x},{mode:1});var Akd;var $OC;var SC=function(){var x=_.e.apply(this,arguments)||this;x.isContainerDeleted=!1;return x};
_.p(SC,_.e);SC.prototype.onContextMenuClick=function(x){this.ytLiveChatItemBehavior.showContextMenu(x)};
SC.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))};
SC.prototype.isContainerDeletedChanged=SC.prototype.isContainerDeletedChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],SC.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.hT.YtLiveChatItemBehavior),_.r("design:type",_.HG)],SC.prototype,"ytLiveChatItemBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],SC.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],SC.prototype,"isContainerDeleted",void 0);
_.A([_.F(),_.r("design:type",String)],SC.prototype,"deletedStateMessage",void 0);_.A([_.bN("isContainerDeleted"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],SC.prototype,"isContainerDeletedChanged",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],SC);
_.q(SC,"ytd-sponsorships-live-chat-header-renderer",function(){if($OC!==void 0)return $OC;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return $OC=x},{mode:1});var Qi=function(){var x=_.e.apply(this,arguments)||this;x.modern=_.u("web_button_rework_with_live");x.buttonOverrides={style:"overlay",type:"filled"};return x};
_.p(Qi,_.e);Qi.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]]"}}}}}};
Qi.prototype.onCtaButtonClick=function(){var x,L=_.g((x=this.data)==null?void 0:x.optInPrompt,_.y4);if(x=this.maybeGetButtonCommand(L)){var D;(D=_.sk())==null||D.clickCommand(x)}};
Qi.prototype.maybeGetButtonCommand=function(x){return!x||!x.command||_.g(x.command,UIC)===void 0&&_.g(x.command,lJH)===void 0?null:x.command};
Qi.prototype.shouldHideOptinPrompt=function(x,L){return!x||L};
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Qi.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.hT.YtLiveChatItemBehavior),_.r("design:type",_.HG)],Qi.prototype,"ytLiveChatItemBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Qi.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Qi.prototype,"modern",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],Qi);
_.q(Qi,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(Akd!==void 0)return Akd;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return Akd=x},{mode:1});var rkQ;var JQ=function(){return _.e.apply(this,arguments)||this};
_.p(JQ,_.e);JQ.prototype.onContextMenuClick=function(x){this.ytLiveChatItemBehavior.showContextMenu(x)};
JQ.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))};
JQ.prototype.isDeletedChanged=JQ.prototype.isDeletedChanged;_.A([_.b(_.hT.YtLiveChatItemBehavior),_.r("design:type",_.HG)],JQ.prototype,"ytLiveChatItemBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],JQ.prototype,"data",void 0);_.A([_.bN("isDeleted"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],JQ.prototype,"isDeletedChanged",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],JQ);
_.q(JQ,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(rkQ!==void 0)return rkQ;var x=document.createElement("template");_.m(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-gift-redemption-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-img-shadow id="author-photo" height="24" thumbnail="[[data.authorPhoto]]" width="24" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-img-shadow>\n</template>\n<template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon id="author-photo" class="no-photo style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer" icon="yt-sys-icons:account_circle"></yt-icon>\n</template>\n<div id="content" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <span id="timestamp" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[timestampString]]\n  \n  </span><template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    </yt-live-chat-author-chip>\n  </template>\n  <yt-formatted-string id="message" hidden$="[[isDeleted]]" text="[[data.message]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-formatted-string>\n  <yt-icon id="gift-icon" default-to-filled="true" hidden$="[[isDeleted]]" icon="gift" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  <div id="deleted-message" hidden$="[[!isDeleted]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[getSimpleString(data.deletedStateMessage)]]\n  </div>\n</div>\n<div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="onContextMenuClick" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    <yt-icon icon="more_vert" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return rkQ=x},{mode:1});var KO=function(){var x=_.e.apply(this,arguments)||this;x.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return x};
_.p(KO,_.e);_.K=KO.prototype;
_.K.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"}}}};
_.K.handleLiveChatAction=function(x){_.g(x,pOh)?this.handleMarkChatItemAsDeletedAction(_.g(x,pOh)):_.g(x,kPA)&&this.handleRemoveChatItemAction(_.g(x,kPA))};
_.K.handleLiveChatActions=function(x){x.forEach(this.handleLiveChatAction,this)};
_.K.handleMarkChatItemAsDeletedAction=function(x){var L=this,D;((D=this.data)==null?0:D.items)&&this.data.items.forEach(function(S,Q){var J=Object.keys(S)[0];Object.values(S)[0].id===x.targetItemId&&L.markAsDeleted("data.items",Q,J,x.deletedStateMessage,x.showOriginalContentMessage)})};
_.K.handleRemoveChatItemAction=function(x){var L=this,D;((D=this.data)==null?0:D.items)&&this.data.items.forEach(function(S,Q){Object.values(S)[0].id===x.targetItemId&&L.splice("data.items",Q,1)})};
_.K.markAsDeleted=function(x,L,D,S,Q){x=[x,L,D].join(".");this.set(x+".deletedStateMessage",S);this.set(x+".showOriginalContentMessage",Q)};
_.A([_.F(),_.r("design:type",Object)],KO.prototype,"data",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],KO.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],KO.prototype,"ytActionHandlerBehavior",void 0);_.A([_.oW({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],KO);
_.q(KO,"yt-live-chat-item-display-list-renderer",function(){if(HCH===void 0){var x=document.createElement("template");_.m(x,'\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>');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;hIG===void 0&&(hIG=document.createElement("template"));var S=hIG;D.call(L,S.content.cloneNode(!0),x.content.firstChild);HCH=x}x=HCH;return x},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var NwQ;var iCA,fPd=function(){if(iCA!==void 0)return iCA;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;NwQ===void 0&&(NwQ=document.createElement("template"));var S=NwQ;D.call(L,S.content.cloneNode(!0),x.content.firstChild);return iCA=x};var OG=function(){var x=_.e.apply(this,arguments)||this;x.isHeader=!1;return x};
_.p(OG,_.e);OG.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.J3.Object.defineProperties(OG,{template:{configurable:!0,enumerable:!0,get:function(){return fPd()}}});
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],OG.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],OG.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],OG.prototype,"isHeader",void 0);_.A([_.oW({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],OG);_.q(OG,"yt-live-chat-item-display-renderer",function(){return fPd()},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var oBA,aPr,teC,nBi;
oBA={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}};aPr={home:"eohps",search:"eosps",watch:"eowps"};_.zIh=["watch","search","home"];
_.ZQ=function(){this.JSC$14300_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$14300_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.$6("PRECONSTRUCTION_DELAY",0);this.signals_=_.jP();this.targetPage_=""};
_.ZQ.prototype.init=function(x,L){x=x===void 0?"":x;L=L===void 0?null:L;if(this.JSC$14300_isInitialized_)this.abort();else if(this.JSC$14300_isInitialized_=!0,x&&_.X3_(this,x),L){var D=_.vy(this.signals_,"pcl")?0:10,S=function(){for(var Q=0,J;J=_.zIh[Q++];)J!=x&&J!=L&&this.pendingPages_.push(J);_.ckQ(this)}.bind(this);
this.signals_.parkOrScheduleJob(S,D,"pcl")}};
_.ZQ.prototype.abort=function(){this.fragmentJobId_&&(_.WW.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);nBi(this)};
_.X3_=function(x,L){x.JSC$14300_isInitialized_&&!x.targetPage_&&(x.targetPage_=L,teC(x,L),x.isInitialPass_=!1,teC(x,L),x.signals_.processSignal(aPr[x.targetPage_]),nBi(x),_.ckQ(x))};
_.ckQ=function(x){x.pendingPages_.length&&!x.pagePreparerJobId_&&(x.pagePreparerJobId_=_.TG(_.WW,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.X3_(this,this.pendingPages_.shift())}.bind(x),x.DEFAULT_DELAY_))};
teC=function(x,L){if(L=oBA[L])for(var D in L){var S=!1,Q=D;D.charAt(0)=="~"&&(S=!0,Q=D.substring(1));var J=L[D];J=typeof J=="object"?J:{count:J};L[D]=J;J.componentName=Q;J.count>0&&(x.isInitialPass_?S||x.isSeenDuringInitialPass_[Q]||(x.JSC$14300_queue_.push({componentName:Q,count:1,signals:J.signals}),x.isSeenDuringInitialPass_[Q]=!0,J.count--):x.JSC$14300_queue_.push(J))}};
nBi=function(x){x.JSC$14300_queue_.length=0;x.targetPage_="";x.isInitialPass_=!0;x.signals_.processSignal("eop")};
_.ZQ.getInstance=function(){return _.JK(_.ZQ)};var xvW=function(){this.signals=_.jP();this.init()};
xvW.prototype.startPreconstruction=function(){_.ZQ.getInstance().init(_.rO("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
xvW.prototype.init=function(){LaG(this);window.Polymer&&HhR&&iOp();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var x=_.Qb.ytcsi;if(x&&x.gt&&(x=x.gt())&&x.tick&&(x.tick.aft>0||x.tick.pbs>0)&&(_.rO("IS_HOMEPAGE_COLD")||_.rO("IS_RESULTS_PAGE_COLD")||_.rO("IS_WATCH_PAGE_COLD"))){Dvr(this);break a}wPp(GX0,this.onNotifications,this)}};
var LaG=function(x){var L=function(){x.signals.processSignal("dl")};
document.readyState==="complete"?(_.X0(Error("yh"),"WARNING"),L()):_.Mnh(window,"load",L)};
xvW.prototype.onNotifications=function(x){x.timer||(_.rO("IS_HOMEPAGE_COLD")||_.rO("IS_RESULTS_PAGE_COLD")||_.rO("IS_WATCH_PAGE_COLD"))&&Dvr(this)};
var Dvr=function(x){x.signals.parkOrScheduleJob(function(){x.signals.processSignal("eocs")},10,"eor")};
new xvW;var yi,SpQ=function(){return _.er.apply(this,arguments)||this};
_.p(SpQ,_.er);_.K=SpQ.prototype;_.K.enableActiveViewMeasurement=function(x){if(this.isActiveViewEnabled(x)){var L=this.getUrlPrefixesFromCommand(x.viewableCommands);x=this.getUrlPrefixesFromCommand(x.endOfSessionCommands);if(!yi){var D=_.dE("custom_active_view_tos_timeout_ms");yi=D>0&&D!==36E5?new m3w(this.getVersion(),D):new m3w(this.getVersion())}Y$n(yi,this.hostElement);FQN(yi,this.hostElement,L,x)}};
_.K.stopActiveViewMeasurement=function(){yi&&Y$n(yi,this.hostElement)};
_.K.isActiveViewEnabled=function(x){return!!x&&(this.hasAtLeastOneUrl(x.viewableCommands)||this.hasAtLeastOneUrl(x.endOfSessionCommands))};
_.K.hasAtLeastOneUrl=function(x){return!!x&&x.length>0&&x[0].loggingUrls!=null&&x[0].loggingUrls.length>0};
_.K.getVersion=function(){var x=_.$6("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(x==null?void 0:x.length)===2?x[1]:null};
_.K.getUrlPrefixesFromCommand=function(x){if(!x)return[];var L=[];x=_.O(x);for(var D=x.next();!D.done;D=x.next())if(D=D.value,D.loggingUrls){D=_.O(D.loggingUrls);for(var S=D.next();!S.done;S=D.next())S=S.value,S.baseUrl&&L.push(S.baseUrl)}return L};
_.A([_.RW()],SpQ);var IF=[SpQ.prototype];var Q5A=function(){return _.er.apply(this,arguments)||this};
_.p(Q5A,_.er);_.J3.Object.defineProperties(Q5A.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.u("enable_entity_store_from_dependency_injection")?_.KI():_.Jd()}}});
_.A([_.RW()],Q5A);_.EG=[KJ.prototype,Q5A.prototype];var JtQ=["ytd-rich-shelf-renderer"],MX=function(){var x=_.er.apply(this,arguments)||this;x._noAccessors=!0;x.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";x.followUpDialogPromise=null;x.followUpDialogPromiseResolve=null;x.followUpDialogPromiseReject=null;return x};
_.p(MX,_.er);_.K=MX.prototype;_.K.dismissibleItemIsDismissedChanged_=function(x){_.u("kevlar_fluid_dismiss")&&(x?_.MF(this.hostElement,"yt-dismissible-item-dismissed"):_.MF(this.hostElement,"yt-dismissible-item-undismissed"))};
_.K.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.K.dismissibleItemReset_=function(){var x=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 _.HI(function(L,D){x.followUpDialogPromiseResolve=L;x.followUpDialogPromiseReject=D});
_.MF(this.hostElement,"yt-enable-lockup-interaction")};
_.K.dismissibleItemOnYtServiceRequestSent_=function(x,L){L.actions&&this.dismissibleItemProcessActions(L.actions,x)};
_.K.dismissibleItemOnRequestSent=function(x){if(_.u("web_button_rework"))for(var L=_.O(x.detail),D=L.next();!D.done;D=L.next()){var S=void 0;(D=(S=_.g(D.value,_.ul))==null?void 0:S.actions)&&this.dismissibleItemProcessActions(D,x)}};
_.K.dismissibleItemOnCommandSent=function(x,L){L&&this.dismissibleItemProcessActions(L,x)};
_.K.setAndGetDismissedContentId=function(x){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+x};
_.K.replayDismissAction=function(x){this.dismissibleItemProcessActions([x])};
_.K.dismissibleItemProcessActions=function(x,L){for(var D=0;D<x.length;D++){var S=x[D],Q=void 0;((Q=_.g(S,_.h_))==null?0:Q.commands)&&this.dismissibleItemProcessActions(_.g(S,_.h_).commands,L);if(_.g(S,_.$K)){if(Q=_.g(S,_.$K),!Q.replaceParentSection||JtQ.includes(this.hostElement.nodeName.toLowerCase()))Q.groupDismissal&&sV4(this,Q.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(Q),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.TR("commandEntity",this.dismissedContentId,
{key:this.dismissedContentId,command:S})),S=void 0,(S=L)==null||S.stopPropagation()}else if(_.g(S,uC_))this.dismissibleItemHandleHideEnclosingAction_(),S=void 0,(S=L)==null||S.stopPropagation();else if(_.g(S,rmd))S=_.g(S,rmd),Q=void 0,((Q=S)==null?0:Q.targetGroupId)&&sV4(this,{targetGroupId:S.targetGroupId},!1),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.TR("commandEntity",this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),
S=void 0,(S=L)==null||S.stopPropagation();else if(_.g(S,_.ul))(S=_.g(S,_.ul).actions)&&_.v$(this.hostElement,S,this.hostElement),S=void 0,(S=L)==null||S.stopPropagation();else{var J=Q=void 0;((Q=_.g(S,_.iY))==null?void 0:Q.signal)!=="TELL_US_WHY"||((J=_.g(S,_.iY))==null?0:J.targetId)&&_.u("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),S=void 0,(S=L)==null||S.stopPropagation())}}};
_.K.dismissibleItemOnYtServiceRequestCompleted_=function(x,L){var D=this.get("feedbackResponses.0.followUpDialog",L.data);D?this.followUpDialogPromiseResolve(D):L.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(L.actions,x)};
_.K.dismissibleItemHandleReplaceEnclosingAction_=function(x){this.dismissedRenderer=x.item;this.isDismissed=!0;var L=null;(L=_.jr(this.hostElement).querySelector("#dismissed"))&&_.So(this,function(){_.LV(L)});
_.MF(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.K.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.K.dismissibleItemHandleUndoFeedbackAction_=function(){_.MF(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.K.dismissibleItemHandleTellUsWhySignalAction_=function(){var x=this;this.followUpDialogPromise.then(function(L){x.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:L}})})};
MX.prototype.dismissibleItemOnYtServiceRequestCompleted_=MX.prototype.dismissibleItemOnYtServiceRequestCompleted_;MX.prototype.dismissibleItemOnCommandSent=MX.prototype.dismissibleItemOnCommandSent;MX.prototype.dismissibleItemOnRequestSent=MX.prototype.dismissibleItemOnRequestSent;MX.prototype.dismissibleItemOnYtServiceRequestSent_=MX.prototype.dismissibleItemOnYtServiceRequestSent_;MX.prototype.dismissibleItemDataChanged_=MX.prototype.dismissibleItemDataChanged_;
MX.prototype.dismissibleItemIsDismissedChanged_=MX.prototype.dismissibleItemIsDismissedChanged_;_.A([_.b(_.Fz),_.r("design:type",Object)],MX.prototype,"ytdOpenPopupBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],MX.prototype,"ytdReduxBehavior",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],MX.prototype,"isDismissed",void 0);_.A([_.F(),_.r("design:type",Object)],MX.prototype,"dismissedRenderer",void 0);
_.A([_.bN("isDismissed"),_.r("design:type",Function),_.r("design:paramtypes",[Boolean]),_.r("design:returntype")],MX.prototype,"dismissibleItemIsDismissedChanged_",null);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],MX.prototype,"dismissibleItemDataChanged_",null);
_.A([_.mX("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.zQ]),_.r("design:returntype")],MX.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.A([_.mX("yt-service-request-sent-button-renderer"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],MX.prototype,"dismissibleItemOnRequestSent",null);
_.A([_.mX("yt-dismissible-item-action"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Array]),_.r("design:returntype")],MX.prototype,"dismissibleItemOnCommandSent",null);_.A([_.mX("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.S2]),_.r("design:returntype")],MX.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.A([_.RW()],MX);_.dK=[_.Fz,_.EG,MX.prototype];var PV=function(){var x=_.er.apply(this,arguments)||this;x.disableGridStateAware=!1;x.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};x.currentGridClass="";return x};
_.p(PV,_.er);PV.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.So(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var x=this.gridStateAwareGetElement();_.VA(x,"grid",!0)}};
PV.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
PV.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.jr(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
PV.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var x="grid-disabled";else{x=_.RO.getInstance();var L=this.get("pageSubtype");x=L&&opW.includes(L)?"grid-disabled":x.currentSnapState_?x.currentSnapState_.className:null}(L=this.gridStateAwareGetElement())&&x!==this.currentGridClass&&(x&&_.VA(L,x,!0),this.currentGridClass&&_.VA(L,this.currentGridClass,!1),this.currentGridClass=x)};
_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],PV.prototype,"ytActionHandlerBehavior",void 0);_.A([_.F(),_.r("design:type",String)],PV.prototype,"gridStateAwareSizingElementSelector",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],PV.prototype,"disableGridStateAware",void 0);_.A([_.RW()],PV);_.jC=[PV.prototype,_.ir.YtActionHandlerBehavior];_.vV=new _.vx("GUIDE_TOKEN");var hQ;_.Vi={};hQ=function(){var x=_.er.apply(this,arguments)||this;x.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 x};
_.p(hQ,_.er);_.K=hQ.prototype;_.K.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.K.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var x=_.yY().resolve(_.ZN(_.vV));x&&(this.guidePersistentAndVisible=x.getGuidePersistentAndVisible(),this.activeEndpoint=x.getActiveEndpoint(),this.guideOpened=x.getGuideOpened(),this.miniGuideVisible=x.getMiniGuideVisible())};
_.K.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.K.handleGuideStateAction=function(x){this.guidePersistentAndVisible=x};
_.K.handleMiniGuideStateAction=function(x){this.miniGuideVisible=x};
_.K.handleGuideOpenedAction=function(x){this.guideOpened=x};
_.K.handleActiveEndpointAction=function(x){this.activeEndpoint=x};
hQ.prototype.onActiveEndpointChange=hQ.prototype.onActiveEndpointChange;_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],hQ.prototype,"ytActionHandlerBehavior",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],hQ.prototype,"guidePersistentAndVisible",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],hQ.prototype,"miniGuideVisible",void 0);_.A([_.F(),_.r("design:type",Object)],hQ.prototype,"activeEndpoint",void 0);
_.A([_.bN("activeEndpoint"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],hQ.prototype,"onActiveEndpointChange",null);_.A([_.F(),_.r("design:type",Boolean)],hQ.prototype,"guideOpened",void 0);_.A([_.RW()],hQ);_.Vi.YtdGuideStateAwareBehavior=[];_.Vi.YtdGuideStateAwareBehavior.push(hQ.prototype,_.ir.YtActionHandlerBehavior);var KaH=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],HV=function(){var x=_.er.apply(this,arguments)||this;x.hoverJobId=0;x.JSC$14331_touched=!1;return x};
_.p(HV,_.er);_.K=HV.prototype;_.K.created=function(){this.useExpandableTooltip=!KaH.includes(this.is)};
_.K.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.K.detached=function(){this.useExpandableTooltip=!1};
_.K.lockupOnDown=function(x){this.interactionElement&&!_.QC(_.Jq(x),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.K.lockupOnUp=function(x){this.interactionElement&&!_.QC(_.Jq(x),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.K.onTouchStart=function(){this.JSC$14331_touched=!0};
_.K.lockupOnMouseEnter=function(){var x=this,L=_.dE("kevlar_lockup_hover_delay",-1);this.JSC$14331_touched&&L>=0?(_.WW.cancelJob(this.hoverJobId),this.hoverJobId=_.WW.addJob(function(){x.lockupIsHovered=!0},8,L),this.JSC$14331_touched=!1):this.lockupIsHovered=!0};
_.K.lockupOnMouseLeave=function(){this.hoverJobId&&(_.WW.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.K.lockupOnPopupClosed=function(x,L){var D;((D=L.popupRenderer)==null?void 0:D.is)==="ytd-menu-popup-renderer"&&(x=L.popupRenderer.veData,L=_.A3(),x&&L&&_.xN(L,[x]))};
_.K.lockupOnLockupRequested=function(x){var L=x.detail.videoIds[0],D;x.detail&&L===((D=this.data)==null?void 0:D.videoId)&&(x.detail.returnValue=[this.data])};
_.K.lockupOnYtServiceRequestSent=function(x,L){if(x=L.actions)for(var D=0;D<x.length;D++){var S=x[D];if(S.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&L.ajaxPromise){var Q=void 0,J=(Q=_.g(L.endpoint,_.Kv))==null?void 0:Q.playlistId;Q=void 0;S=(Q=S.removedVideoId)!=null?Q:"";hiA(_.hY(),S,J)}else S.action==="ACTION_REMOVE_VIDEO"&&L.ajaxPromise&&(J=void 0,S=(J=S.setVideoId)!=null?J:"",_.Hzr(_.hY(),S))}};
_.K.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.K.lockupOnLockupEnabled=function(){if(!this.$){var x=_.yY().resolve(_.KX).getCurrentPage(),L=this.getParentRenderer?this.getParentRenderer():void 0;_.qy(new _.RZ("component not ready",this.is,this.isAttached,x==null?void 0:x.is,L==null?void 0:L.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
HV.prototype.lockupOnLockupEnabled=HV.prototype.lockupOnLockupEnabled;HV.prototype.lockupOnLockupDisabled=HV.prototype.lockupOnLockupDisabled;HV.prototype.lockupOnYtServiceRequestSent=HV.prototype.lockupOnYtServiceRequestSent;HV.prototype.lockupOnLockupRequested=HV.prototype.lockupOnLockupRequested;HV.prototype.lockupOnPopupClosed=HV.prototype.lockupOnPopupClosed;HV.prototype.lockupOnMouseLeave=HV.prototype.lockupOnMouseLeave;HV.prototype.lockupOnMouseEnter=HV.prototype.lockupOnMouseEnter;
HV.prototype.onTouchStart=HV.prototype.onTouchStart;HV.prototype.lockupOnUp=HV.prototype.lockupOnUp;HV.prototype.lockupOnDown=HV.prototype.lockupOnDown;_.A([_.F(),_.r("design:type",Object)],HV.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Boolean)],HV.prototype,"lockupIsHovered",void 0);_.A([_.F(),_.r("design:type",Boolean)],HV.prototype,"lockupTouchTriggered",void 0);_.A([_.F(),_.r("design:type",Boolean)],HV.prototype,"useExpandableTooltip",void 0);
_.A([_.F1("#interaction"),_.r("design:type",Object)],HV.prototype,"interactionElement",void 0);_.A([_.mX("down"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],HV.prototype,"lockupOnDown",null);_.A([_.mX("up"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],HV.prototype,"lockupOnUp",null);
_.A([_.mX("touchstart"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],HV.prototype,"onTouchStart",null);_.A([_.mX("mouseenter"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],HV.prototype,"lockupOnMouseEnter",null);_.A([_.mX("mouseleave"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],HV.prototype,"lockupOnMouseLeave",null);
_.A([_.mX("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],HV.prototype,"lockupOnPopupClosed",null);_.A([_.mX("yt-lockup-requested"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],HV.prototype,"lockupOnLockupRequested",null);
_.A([_.mX("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.zQ]),_.r("design:returntype")],HV.prototype,"lockupOnYtServiceRequestSent",null);_.A([_.mX("yt-disable-lockup-interaction"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],HV.prototype,"lockupOnLockupDisabled",null);
_.A([_.mX("yt-enable-lockup-interaction"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],HV.prototype,"lockupOnLockupEnabled",null);_.A([_.RW()],HV);_.uM=[HV.prototype];_.ONW={YtdReduxBehavior:[]};_.ONW.YtdReduxBehavior.push.apply(_.ONW.YtdReduxBehavior,_.EG);var gK=function(){var x=_.er.apply(this,arguments)||this;x._noAccessors=!0;x.disableNowPlaying=!1;x.disableTooltips=!1;x.useHoveredProperty=!1;x.hovered=!1;x.isThumbnailHovered_=!1;x.addBackground=_.u("kevlar_thumbnail_bg");x.nowPlaying=!1;x.disableRounding=!1;x.size="small";return x};
_.p(gK,_.er);_.K=gK.prototype;_.K.computeThumbnailOverlaySidePanelWidth_=function(x,L){return x-L};
_.K.computeSize=function(x,L){if(!this.disableRounding){if(!x&&!L)return"small";x=Math.max(x||0,L||0);return x>=256?"large":x>=96?"medium":"small"}};
_.K.computeFinalHoveredState_=function(x,L,D){return this.nowPlaying?!1:_.u("kevlar_thumbnail_fluid")&&x?L:D};
_.K.computeHoverOverlays_=function(x,L){return x&&L?L:void 0};
_.K.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.K.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.K.checkMiniplayer_=function(){var x;if(((x=this.data)==null?0:x.playlistSetVideoId)&&_.u("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{x=_.ie();var L=x.currentEndpoint;!this.disableNowPlaying&&L&&_.g(L,_.L6)&&this.data?(L=_.g(L,_.L6),this.nowPlaying=this.data.playlistId?L.playlistId===this.data.playlistId:L.videoId===this.data.videoId,this.isVideoPlaying=x==null?void 0:x.isVideoPlaying):this.nowPlaying=!1}};
gK.prototype.checkMiniplayer_=gK.prototype.checkMiniplayer_;gK.prototype.onMouseLeave_=gK.prototype.onMouseLeave_;gK.prototype.onMouseEnter_=gK.prototype.onMouseEnter_;gK.prototype.computeHoverOverlays_=gK.prototype.computeHoverOverlays_;gK.prototype.computeFinalHoveredState_=gK.prototype.computeFinalHoveredState_;gK.prototype.computeSize=gK.prototype.computeSize;gK.prototype.computeThumbnailOverlaySidePanelWidth_=gK.prototype.computeThumbnailOverlaySidePanelWidth_;
_.A([_.b(_.EG),_.r("design:type",Object)],gK.prototype,"ytdReduxBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],gK.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Number)],gK.prototype,"height",void 0);_.A([_.F(),_.r("design:type",Boolean)],gK.prototype,"bottomSidePanel",void 0);_.A([_.F(),_.r("design:type",Number)],gK.prototype,"width",void 0);_.A([_.F(),_.r("design:type",Object)],gK.prototype,"disableNowPlaying",void 0);
_.A([_.F({selector:_.$N}),_.r("design:type",Boolean)],gK.prototype,"miniplayerIsActive",void 0);_.A([_.F(),_.r("design:type",Object)],gK.prototype,"disableTooltips",void 0);_.A([_.F(),_.r("design:type",Object)],gK.prototype,"useHoveredProperty",void 0);_.A([_.F(),_.r("design:type",Object)],gK.prototype,"hovered",void 0);_.A([_.F(),_.r("design:type",Object)],gK.prototype,"isThumbnailHovered_",void 0);
_.A([_.F({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.r("design:type",Boolean)],gK.prototype,"finalHoveredState_",void 0);_.A([_.F({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.r("design:type",Number)],gK.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],gK.prototype,"addBackground",void 0);
_.A([_.F({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.r("design:type",Object)],gK.prototype,"hoverOverlays_",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],gK.prototype,"nowPlaying",void 0);_.A([_.F(),_.r("design:type",Boolean)],gK.prototype,"isVideoPlaying",void 0);_.A([_.F(),_.r("design:type",Object)],gK.prototype,"disableRounding",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.r("design:type",Object)],gK.prototype,"size",void 0);_.A([_.mX("mouseenter"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],gK.prototype,"onMouseEnter_",null);_.A([_.mX("mouseleave"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],gK.prototype,"onMouseLeave_",null);
_.A([_.bN("data","disableNowPlaying","miniplayerIsActive"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],gK.prototype,"checkMiniplayer_",null);_.A([_.RW()],gK);var ZNW=[gK.prototype];_.kj={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(x,L){return x+":"+_.zN(L)},
getPlayerListener_:function(x,L,D){x=this.getPlayerListenerKey_(x,L);L=this.playerListeners_.get(x);D&&this.playerListeners_.delete(x);return L},
savePlayerListener_:function(x,L){var D=L.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(x,L),D);return D},
listenToPlayerEvent:function(x,L,D){D=this.savePlayerListener_(L,D);x.addEventListener(L,D)},
listenToPlayerEvents:function(x,L){L.forEach(function(D,S){this.listenToPlayerEvent(x,S,D)}.bind(this))},
unlistenFromPlayerEvent:function(x,L,D){D=this.getPlayerListener_(L,D,!0);x.removeEventListener(L,D)},
unlistenFromPlayerEvents:function(x,L){L.forEach(function(D,S){this.unlistenFromPlayerEvent(x,S,D)}.bind(this))}}};
_.pO=function(){};_.yt2=new _.vx("PLAYER_API_TOKEN");var Grp=!1,w3f,lPn=!1,Wj4;var Ev=function(x,L,D,S,Q){_.Te.call(this);var J=this;this.playerId=L;this.webPlayerContextConfig=S;this.j1S=Q;this.ckj=!1;this.api={};this.ifC=this.lHq=null;this.lB8=new _.mv;this.ie={};this.ghO=this.rOq=this.elementId=this.kKE=this.config=null;this.q9I=!1;this.hT=this.pAn=null;this.oDg={};this.lpM=["onReady"];this.lastError=null;this.gX0=NaN;this.eYo={};this.tY8=0;this.cg=this.targetElement=x;_.V1(this,this.lB8);Iui(this);D?this.tY8=setTimeout(function(){J.loadNewVideoConfig(D)},0):S&&(ECG(this),
MaR(this))};
_.p(Ev,_.Te);Ev.prototype.getId=function(){return this.playerId};
Ev.prototype.loadNewVideoConfig=function(x){if(!this.isDisposed()){this.tY8&&(clearTimeout(this.tY8),this.tY8=0);var L=x||{};L instanceof bOi||(L=new bOi(L));this.config=L;this.setConfig(x);MaR(this);this.isReady()&&dvh(this)}};
var ECG=function(x){var L;x.webPlayerContextConfig?L=x.webPlayerContextConfig.rootElementId:L=x.config.attrs.id;x.elementId=L||x.elementId;x.elementId==="video-player"&&(x.elementId=x.playerId,x.webPlayerContextConfig?x.webPlayerContextConfig.rootElementId=x.playerId:x.config.attrs.id=x.playerId);var D;((D=x.cg)==null?void 0:D.id)===x.elementId&&(x.elementId+="-player",x.webPlayerContextConfig?x.webPlayerContextConfig.rootElementId=x.elementId:x.config.attrs.id=x.elementId)};
Ev.prototype.setConfig=function(x){this.kKE=x;this.config=P3h(x);ECG(this);if(!this.rOq){var L;this.rOq=j5h(this,((L=this.config.args)==null?void 0:L.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var D;if((D=this.config)==null?0:D.attrs)x=this.config.attrs,(L=x.width)&&this.cg&&(this.cg.style.width=cM(Number(L)||L,!0)),(x=x.height)&&this.cg&&(this.cg.style.height=cM(Number(x)||x,!0))};
Ev.prototype.getConfig=function(){return this.kKE};
var dvh=function(x){if(x.config&&x.config.loaded!==!0)if(x.config.loaded=!0,!x.config.args||x.config.args.autoplay!=="0"&&x.config.args.autoplay!==0&&x.config.args.autoplay!==!1){var L;x.api.loadVideoByPlayerVars((L=x.config.args)!=null?L:null)}else x.api.cueVideoByPlayerVars(x.config.args)},VaG=function(x){var L=!0,D=x.getPlayerElement();
D&&x.config&&(L=D.dataset.version===vC_(x));return L&&!!_.o1("yt.player.Application.create")},MaR=function(x){if(!x.isDisposed()&&!x.q9I){var L=VaG(x);
if(L&&(x.getPlayerElement()?"html5":null)==="html5")x.ghO="html5",x.isReady()||htr(x);else if(HNC(x),x.ghO="html5",L&&x.hT&&x.targetElement)x.targetElement.appendChild(x.hT),htr(x);else{x.config&&(x.config.loaded=!0);var D=!1;x.pAn=function(){D=!0;var S=uli(x,"player_bootstrap_method")?_.o1("yt.player.Application.createAlternate")||_.o1("yt.player.Application.create"):_.o1("yt.player.Application.create");var Q=x.config?P3h(x.config):void 0;S&&S(x.targetElement,Q,x.webPlayerContextConfig,x.j1S);htr(x)};
x.q9I=!0;L?x.pAn():(_.ac(vC_(x),x.pAn),(L=gCr(x))&&tHh(L||""),k7A(x)&&!D&&_.KK("yt.player.Application.create",null))}}};
Ev.prototype.getPlayerElement=function(){var x=_.IB(document,this.elementId);!x&&this.cg&&this.cg.querySelector&&(x=this.cg.querySelector("#"+this.elementId));return x};
var htr=function(x){if(!x.isDisposed()){var L=x.getPlayerElement(),D=!1;L&&L.getApiInterface&&L.getApiInterface()&&(D=!0);if(D){x.q9I=!1;if(!uli(x,"html5_remove_not_servable_check_killswitch")){var S;if((L==null?0:L.isNotServable)&&x.config&&(L==null?0:L.isNotServable((S=x.config.args)==null?void 0:S.video_id)))return}peW(x)}else x.gX0=setTimeout(function(){htr(x)},50)}},peW=function(x){Iui(x);
x.ckj=!0;var L=x.getPlayerElement();if(L){x.lHq=mvQ(x,L,"addEventListener");x.ifC=mvQ(x,L,"removeEventListener");var D=L.getApiInterface();D=D.concat(L.getInternalApiInterface());for(var S=x.api,Q=0;Q<D.length;Q++){var J=D[Q];S[J]||(S[J]=mvQ(x,L,J))}}for(var Z in x.ie)x.ie.hasOwnProperty(Z)&&x.lHq&&x.lHq(Z,x.ie[Z]);dvh(x);x.rOq&&x.rOq(x.api);x.lB8.publish("onReady",x.api)},mvQ=function(x,L,D){var S=L[D];
return function(){var Q=_.Ne.apply(0,arguments);try{return x.lastError=null,S.apply(L,Q)}catch(J){if(D!=="sendAbandonmentPing")throw J.params=D,x.lastError=J,Q=new _.RZ("PlayerProxy error in method call",{error:J,method:D,playerId:x.playerId}),Q.level="WARNING",Q;}}},Iui=function(x){x.ckj=!1;
if(x.ifC)for(var L in x.ie)x.ie.hasOwnProperty(L)&&x.ifC(L,x.ie[L]);for(var D in x.eYo)x.eYo.hasOwnProperty(D)&&clearTimeout(Number(D));x.eYo={};x.lHq=null;x.ifC=null;L=x.api;for(var S in L)L.hasOwnProperty(S)&&(L[S]=null);L.addEventListener=function(Q,J){x.addEventListener(Q,J)};
L.removeEventListener=function(Q,J){x.removeEventListener(Q,J)};
L.destroy=function(){x.dispose()};
L.getLastError=function(){return x.getLastError()};
L.getPlayerType=function(){return x.getPlayerType()};
L.getCurrentVideoConfig=function(){return x.getConfig()};
L.loadNewVideoConfig=function(Q){x.loadNewVideoConfig(Q)};
L.isReady=function(){return x.isReady()}};
Ev.prototype.isReady=function(){return this.ckj};
Ev.prototype.addEventListener=function(x,L){var D=this;this.isDisposed();var S=j5h(this,L);S&&(_.AG(this.lpM,x)||this.ie[x]||(L=bNW(this,x),this.lHq&&this.lHq(x,L)),this.lB8.subscribe(x,S),x==="onReady"&&this.isReady()&&setTimeout(function(){S(D.api)},0))};
Ev.prototype.removeEventListener=function(x,L){this.isDisposed()||(L=j5h(this,L))&&this.lB8.unsubscribe(x,L)};
var j5h=function(x,L){var D=L;if(typeof L==="string"){if(x.oDg[L])return x.oDg[L];D=function(){var S=_.Ne.apply(0,arguments),Q=_.o1(L);if(Q)try{Q.apply(_.Qb,S)}catch(J){throw S=new _.RZ("PlayerProxy error when executing callback",{error:J}),S.level="ERROR",S;}};
x.oDg[L]=D}return D?D:null},bNW=function(x,L){var D=function(S){var Q=function(){x.isDisposed();
if(!x.isDisposed())try{x.lB8.publish(L,S!=null?S:void 0)}catch(y){var Z=new _.RZ("PlayerProxy error when creating global callback",{error:y.message,event:L,playerId:x.playerId,data:S,originalStack:y.stack,componentStack:y.componentStack});Z.level="WARNING";throw Z;}};
if(uli(x,"web_player_publish_events_immediately"))Q();else{var J=setTimeout(function(){Q();_.wk.remove(x.eYo,String(J))},0);
_.wk.add(x.eYo,String(J),!0)}};
return x.ie[L]=D};
Ev.prototype.getPlayerType=function(){return this.ghO||(this.getPlayerElement()?"html5":null)};
Ev.prototype.getLastError=function(){return this.lastError};
var HNC=function(x){x.cancel();Iui(x);x.ghO=null;x.config&&(x.config.loaded=!1);var L=x.getPlayerElement();L&&(VaG(x)||!k7A(x)?x.hT=L:(L&&L.destroy&&L.destroy(),x.hT=null));x.targetElement&&_.NC(x.targetElement)};
Ev.prototype.cancel=function(){this.pAn&&_.FDN(vC_(this),this.pAn);clearTimeout(this.gX0);this.q9I=!1};
Ev.prototype.disposeInternal=function(){HNC(this);if(this.hT&&this.config&&this.hT.destroy)try{this.hT.destroy()}catch(L){var x=new _.RZ("PlayerProxy error during disposal",{error:L});x.level="ERROR";throw x;}this.oDg=null;for(x in this.ie)this.ie.hasOwnProperty(x)&&delete this.ie[x];this.kKE=this.config=this.api=null;delete this.targetElement;delete this.cg;_.Te.prototype.disposeInternal.call(this)};
var k7A=function(x){var L,D;x=(L=x.config)==null?void 0:(D=L.args)==null?void 0:D.fflags;return!!x&&x.indexOf("player_destroy_old_version=true")!==-1},vC_=function(x){return x.webPlayerContextConfig?x.webPlayerContextConfig.jsUrl:(x=x.config.assets)?x.js:""},gCr=function(x){return x.webPlayerContextConfig?x.webPlayerContextConfig.cssUrl:(x=x.config.assets)?x.css:""},uli=function(x,L){if(x.webPlayerContextConfig)var D=x.webPlayerContextConfig.serializedExperimentFlags;
else{var S;if((S=x.config)==null?0:S.args)D=x.config.args.fflags}return(D||"").split("&").includes(L+"=true")},P3h=function(x){for(var L={},D=_.O(Object.keys(x)),S=D.next();!S.done;S=D.next()){S=S.value;
var Q=x[S];L[S]=typeof Q==="object"?_.wk.clone(Q):Q}return L};var Nwb={},rkb="player_uid_"+(Math.random()*1E9>>>0);var mP=function(x,L,D,S,Q,J){L=L===void 0?document.createElement("div"):L;this.webPlayerContextConfig=x;this.container=L;this.commandResolver=D;this.apiResolver=oB0();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.Hq;S||J?YpR(this):Fad(this);this.pendingPlayerResponse=S;this.pendingWatchNextResponse=Q;this.pendingPlayerVars=J;s5W(this)};
mP.prototype.loadVideoWithPlayerResponse=function(x,L,D){this.loadVideo(x,L,D)};
mP.prototype.loadVideoWithPlayerVars=function(x){return this.loadVideo(void 0,void 0,x)};
mP.prototype.destroy=function(x){if(x=_.IB(document,x))x=rkb+"_"+_.zN(x),(x=Nwb[x])&&x.dispose()};
var etH=function(x,L){var D;_.I(function(S){if(S.nextAddress==1)return x.pendingWatchNextResponse=L,x.synchronousApi?(D=x.synchronousApi,S.jumpTo(2)):S.yield(x.api,3);S.nextAddress!=2&&(D=S.yieldResult);if(!Tor(x,D))return S.return();x.pendingWatchNextResponse&&(D.updateVideoData({raw_watch_next_response:x.pendingWatchNextResponse}),x.pendingWatchNextResponse=void 0);_.Y2(S)})},Tor=function(x,L){var D;
if(!(L==null?0:(D=L.isReady)==null?0:D.call(L))){var S;_.qy(new _.RZ("playerApi is falsey",{synchronousApi:x.synchronousApi,apiResolved:x.apiResolver.resolved,playerApiUndefined:L===void 0,playerApiNull:L===null,playerApiReady:(L==null?void 0:(S=L.isReady)==null?void 0:S.call(L))===!0,playerApiMethods:L?Object.keys(L):[]}));return!1}return!0},Rt2=function(x,L){if(typeof x[L]==="function")return x[L]()},G7W=function(x){var L=window,D,S=(D=L.ytplayer)==null?void 0:D.bootstrapPlayerContainer;
if((D=S==null?void 0:S.firstElementChild)&&_.QH(D,"html5-video-player")){var Q,J,Z=(Q=L.ytplayer)==null?void 0:(J=Q.bootstrapWebPlayerContextConfig)==null?void 0:J.contextId;Q=x.webPlayerContextConfig.contextId;if(Z&&Z===Q){S!==x.container&&(S=!1,Rt2(D,"getPlayerState")===2&&(S=!0),x.container.appendChild(D),S||Rt2(D,"playVideo"));var y;if((y=L.ytplayer)==null?0:y.bootstrapPlayerResponse)x.bootstrapPlayerResponse=L.ytplayer.bootstrapPlayerResponse}}},s5W=function(x){var L,D,S,Q,J;
_.I(function(Z){if(Z.nextAddress==1)return x.pageReadyOrDataAvailable?Z.jumpTo(2):Z.yield(x.pageReadyOrDataAvailableResolver.promise,2);if(Z.nextAddress!=4)return!_.u("kevlar_player_unified_player_loading")||CXh()&&UOG()?Z.jumpTo(4):Z.yield(AkO(),4);G7W(x);if(x.pendingPlayerResponse||x.pendingPlayerVars)L=$O4(x.pendingPlayerResponse,x.pendingWatchNextResponse,x.pendingPlayerVars),x.pendingPlayerResponse&&x.pendingPlayerResponse===x.bootstrapPlayerResponse&&(L.loaded=!0),x.bootstrapPlayerResponse=
void 0;D=fPO(x.container,L,x.webPlayerContextConfig);((S=L)==null?0:S.loaded)&&x.pendingWatchNextResponse?(etH(x,x.pendingWatchNextResponse),x.pendingPlayerResponse=void 0,x.pendingPlayerVars=void 0):C3A(x);Q=function(y){D.removeEventListener("onReady",Q);x.synchronousApi=y;x.apiResolver.resolve(y)};
D.addEventListener("onReady",Q);x.commandResolver!==void 0&&(J=x.commandResolver,D.addEventListener("innertubeCommand",function(y){J(y)}));
_.Y2(Z)})};
mP.prototype.loadVideo=function(x,L,D){var S=this,Q,J,Z,y,E,P,v,V,h;return _.I(function(H){if(H.nextAddress==1)return S.pendingPlayerResponse=x,S.pendingWatchNextResponse=L,S.pendingPlayerVars=D,YpR(S),S.synchronousApi?(Q=S.synchronousApi,H.jumpTo(2)):H.yield(S.api,3);H.nextAddress!=2&&(Q=H.yieldResult);if(!Tor(S,Q))return H.return(new Promise(function(){}));
Z=new Promise(function(k){J=k});
y=function(){var k=Q.getPlayerResponse();k&&(Q.removeEventListener("onVideoDataChange",y),J(k))};
Q.addEventListener("onVideoDataChange",y);if(S.pendingPlayerResponse||S.pendingPlayerVars)S.pendingPlayerResponse&&S.pendingPlayerResponse===S.bootstrapPlayerResponse?(J(S.pendingPlayerResponse),S.pendingWatchNextResponse&&etH(S,S.pendingWatchNextResponse)):(E=$O4(S.pendingPlayerResponse,S.pendingWatchNextResponse,S.pendingPlayerVars),(h=(P=S.pendingPlayerResponse)==null?void 0:(v=P.playerConfig)==null?void 0:(V=v.playbackStartConfig)==null?void 0:V.startPaused)?Q.cueVideoByPlayerVars(E.args):Q.loadVideoByPlayerVars(E.args)),
C3A(S),S.bootstrapPlayerResponse=void 0;return H.return(Z)})};
var Fad=function(x){if(document.readyState==="complete"||document.readyState==="interactive")YpR(x);else{var L=function(){document.removeEventListener("DOMContentLoaded",L);YpR(x)};
document.addEventListener("DOMContentLoaded",L)}},YpR=function(x){x.pageReadyOrDataAvailable=!0;
x.pageReadyOrDataAvailableResolver.resolve()},C3A=function(x){x.pendingPlayerResponse=void 0;
x.pendingWatchNextResponse=void 0;x.pendingPlayerVars=void 0};
_.J3.Object.defineProperties(mP.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var bM=function(x){cx.call(this,x===void 0?"document_active":x);var L=this;this.overridePriority=10;this.hasRun=new Map;this.transitions=[{from:"document_active",to:"document_disposed_preventable",action:this.runPreventableDispose},{from:"document_active",to:"document_disposed",action:this.runDispose},{from:"document_disposed_preventable",to:"document_disposed",action:this.runDispose},{from:"document_disposed_preventable",to:"flush_logs",action:this.runFlush},{from:"document_disposed_preventable",
to:"document_active",action:this.runActive},{from:"document_disposed",to:"flush_logs",action:this.runFlush},{from:"document_disposed",to:"document_active",action:this.runActive},{from:"document_disposed",to:"document_disposed",action:function(){}},
{from:"flush_logs",to:"document_active",action:this.runActive}];window.addEventListener("pagehide",function(D){L.transition("document_disposed",{event:D})});
window.addEventListener("beforeunload",function(D){L.transition("document_disposed_preventable",{event:D})});
window.addEventListener("unload",function(D){L.transition("document_disposed",{event:D});L.hasRun=new Map})};
_.p(bM,cx);
bM.prototype.runPreventableDispose=function(x,L){if(!this.hasRun.get("document_disposed_preventable")){x(L==null?void 0:L.event);var D,S;if((L==null?0:(D=L.event)==null?0:D.defaultPrevented)||(L==null?0:(S=L.event)==null?0:S.returnValue)){L.event.returnValue||(L.event.returnValue=!0);L.event.defaultPrevented||L.event.preventDefault();this.hasRun=new Map;this.transition("document_active");return}}this.hasRun.set("document_disposed_preventable",!0);this.hasRun.get("document_disposed")?this.transition("flush_logs"):this.transition("document_disposed")};
bM.prototype.runDispose=function(x,L){this.hasRun.get("document_disposed")?this.transition("document_active"):(x(L==null?void 0:L.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
bM.prototype.runFlush=function(x,L){x(L==null?void 0:L.event);this.transition("document_active")};
bM.prototype.runActive=function(){};var Yj=function(x){cx.call(this,x===void 0?"document_visibility_unknown":x);var L=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(D){document.visibilityState==="visible"?L.transition("document_visible",{event:D}):L.transition("document_hidden",
{event:D})});
_.u("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(D){L.transition("document_backgrounded",{event:D})}),window.addEventListener("focus",function(D){L.transition("document_foregrounded",{event:D})}))};
_.p(Yj,cx);Yj.prototype.runVisible=function(x,L){x(L==null?void 0:L.event);_.u("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
Yj.prototype.runHidden=function(x,L){x(L==null?void 0:L.event);_.u("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
Yj.prototype.runBackgrounded=function(x,L){x(L==null?void 0:L.event)};
Yj.prototype.runForegrounded=function(x,L){x(L==null?void 0:L.event)};var F6=function(){this.teardownLifecycle=new bM;this.visibilityLifecycle=new Yj};
F6.prototype.install=function(){var x=_.Ne.apply(0,arguments),L=this;x.forEach(function(D){L.teardownLifecycle.install(D)});
x.forEach(function(D){L.visibilityLifecycle.install(D)})};var sG=function(){F6.call(this);var x={};this.install((x.document_disposed={callback:this.abortSlisAndFlush},x));_.u("combine_ve_grafts")&&(x={},this.install((x.document_disposed={callback:this.flushInteractionLoggingAttachVes},x)));x={};this.install((x.flush_logs={callback:this.logFinalPayload},x));_.u("web_log_cfg_cee_ks")||_.TG(_.WW,luh)};
_.p(sG,F6);var aPG=function(){sG.loggingInstance||(sG.loggingInstance=new sG);return sG.loggingInstance};
sG.prototype.logFinalPayload=function(){if(_.u("web_fp_via_jspb")){var x=new aR_,L=_.A3();L&&_.ei(x,1,L);L=_.u("jspb_sparse_encoded_pivot")?new sh([{}]):new sh;_.bQ(L,380,z5H,x);Vd3("finalPayload",L);_.u("web_fp_via_jspb_and_json")&&_.Uh("finalPayload",{csn:_.A3()})}else _.Uh("finalPayload",{csn:_.A3()})};
sG.prototype.abortSlisAndFlush=function(){IQh(V4);hM!=null&&hM.flush()};
sG.prototype.flushInteractionLoggingAttachVes=function(){TNi(_.sk())};
var luh=function(){var x=_.$6("CLIENT_EXPERIMENT_EVENTS");if(x){var L=SR3();x=_.O(x);for(var D=x.next();!D.done;D=x.next())D=D.value,L(D)&&_.Uh("genericClientExperimentEvent",{eventType:D});delete _.q9.CLIENT_EXPERIMENT_EVENTS}};var UvH={};
UvH.YtPlayerBehavior=[_.kj.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 x=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.Hq;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;zIf(function(){x.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.q6(this,"pan-down"),_.u("kevlar_pinch_fullscreen")&&_.xP().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.u("kevlar_pinch_fullscreen")&&_.xP().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(x,L,D){var S=this;Mb(this.useUnifiedPlayer_());if(this.mainAppPlayer_)Mb(!1,"MainAppPlayer already created.");else{var Q=_.u("kevlar_player_container_query_killswitch")?this.$.container:_.jr(this.hostElement).querySelector("#container");this.mainAppPlayer_=new mP(this.getWebPlayerContextConfig_(),Q,function(J){return _.mA(J,S.hostElement)},x,L,D);
this.mainAppPlayer_.api.then(function(J){S.player_=J;S.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&Rfi.resolve(J)})}},
loadVideoWithPlayerResponse:function(x,L){var D=this;if(this.useUnifiedPlayer_()){var S=this.watchNextData,Q,J=(Q=x.videoDetails)==null?void 0:Q.videoId,Z,y,E;(Q=(Z=this.watchNextData)==null?void 0:(y=Z.currentVideoEndpoint)==null?void 0:(E=y.watchEndpoint)==null?void 0:E.videoId)&&J!=Q&&(S=void 0,_.u("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(x,S,L):this.createMainAppPlayer_(x,S,L);this.mainAppPlayer_.api.then(function(){_.MF(D.hostElement,
"yt-player-updated")})}else this.update(Twf(x,L))},
loadVideoWithPlayerVars:function(x){var L=this;this.useUnifiedPlayer_()?(_.u("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(x):this.createMainAppPlayer_(void 0,void 0,x),this.mainAppPlayer_.api.then(function(){_.MF(L.hostElement,"yt-player-updated")})):this.update({args:x})},
update:function(x){var L=this;if(this.useUnifiedPlayer_())Mb(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(x);var D=wO4(x.args);D&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==D&&Object.assign(x.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(x).then(function(S){_.MF(L.hostElement,"yt-player-updated",_.u("kevlar_player_updated_obsolete_player_killswitch")?
S:void 0)})}_.WI(new _.RZ("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(x){var L=this,D;return _.I(function(S){if(S.nextAddress==1)return S.yield(L.getPlayerPromise(),2);D=S.yieldResult;if(!D)throw Error("Ah");x&&L.updatePlayerPlaylist_(x);_.Y2(S)})},
acquireApi_:function(x){var L=this;if(this.useUnifiedPlayer_())Mb(!1,"Invalid method call in kevlar_unified_player.");else return _.WW.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(Mb(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(D){L.shouldAutoplay_(x)?D.loadVideoByPlayerVars(x.args):D.cueVideoByPlayerVars(x.args)})):this.initPlayerPromise_=this.initPlayerContainer_(x),this.initPlayerPromise_},
initPlayerContainer_:function(x){var L=this;if(this.useUnifiedPlayer_())Mb(!1,"Invalid method call in kevlar_unified_player.");else return Mb(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.qy(Error("Bh")),Mb(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.u("kevlar_player_container_query_killswitch")?this.$.container:_.jr(this.hostElement).querySelector("#container"),AkO().then(function(){var D=L.initPlayer_(x);L.playerResolver_.resolve(D);
return D})},
onPlayerReady_:function(x,L){this.useUnifiedPlayer_()?Mb(!1,"Invalid method call in kevlar_unified_player."):(x.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&Rfi.resolve(x),L(x))},
maybeCallApiMethodOnElement_:function(x,L){if(typeof x[L]==="function")return x[L]()},
maybeAdoptBootstrapPlayer_:function(){var x=window,L,D=(L=x.ytplayer)==null?void 0:L.bootstrapPlayerContainer;if((L=D==null?void 0:D.firstElementChild)&&L.classList.contains("html5-video-player")){var S,Q,J=(S=x.ytplayer)==null?void 0:(Q=S.bootstrapWebPlayerContextConfig)==null?void 0:Q.contextId;S=this.getWebPlayerContextConfig_().contextId;if(J&&J===S){D!==this.playerContainer_&&(D=!1,this.maybeCallApiMethodOnElement_(L,"getPlayerState")===2&&(D=!0),this.playerContainer_.appendChild(L),D||this.maybeCallApiMethodOnElement_(L,
"playVideo"));var Z;if((Z=x.ytplayer)==null?0:Z.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=x.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(x){var L=this;if(this.useUnifiedPlayer_())Mb(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(D){L.maybeAdoptBootstrapPlayer_();var S=x?eI3(x):void 0;S&&S==L.bootstrapPlayerResponse_&&(x.loaded=!0);S=L.playerContainer_;var Q=L.getWebPlayerContextConfig_();S=fPO(S,x,Q);L.player_=S;L.onPlayerReadyEvent_=L.onPlayerReady_.bind(L,L.player_,D);L.player_.addEventListener("onReady",L.onPlayerReadyEvent_);L.player_.addEventListener("innertubeCommand",
L.onPlayerInnerTubeCommand_.bind(L))})},
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(x){x.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(x){x.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var x=_.yY().resolve(_.KX).getCurrentPage();x&&x.getScrollTop()<=0?_.q6(this,"pan-down"):_.q6(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(x){x.isFullscreen()||x.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(x){x.isFullscreen()&&x.toggleFullscreen()})},
updatePlayerPlaylist_:function(x){var L=this,D,S,Q;return _.I(function(J){if(J.nextAddress==1)return D=_.yY().resolve(_.ZN(_.d6)),S=!!(D&&D.playlistComponent&&D.playlistComponent.loopOn),J.yield(L.getPlayerPromise(),2);var Z=Q=J.yieldResult,y=Z.updatePlaylist,E=[];if(_.u("kevlar_player_playlist_use_local_index")){var P,v;var V=(v=(P=x.localCurrentIndex)!=null?P:x.currentIndex)!=null?v:0}else{var h;V=(h=x.currentIndex)!=null?h:0}if(x.contents)for(P=0;P<x.contents.length;P++)if((v=x.contents[P])&&v.playlistPanelVideoRenderer)if(ldN(v)){v=
v.playlistPanelVideoRenderer;h="";v.shortBylineText&&(h=_.SR(v.shortBylineText));var H="";v.title?H=_.SR(v.title):v.unplayableText&&(H=_.SR(v.unplayableText));E.push({author:h,title:H,encrypted_id:v.videoId})}else P<V&&--V;y.call(Z,{index:V,list:x.playlistId?x.playlistId:"",loop:S,playlist_title:x.title,playlist_length:E.length,video:E,fetch:0,external_list:"1",title:x.title?x.title:"",playlist_author:x.ownerName?_.SR(x.ownerName):void 0});_.Y2(J)})},
focusOnPlayer:function(){_.So(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var x=this.playerContainer_.querySelector(".html5-video-player");x&&(_.Tz(_.yY().resolve(_.Rl)),x.focus())}})},
preparePlayer:function(){var x=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(L){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")L();else{var D=function(){document.removeEventListener("DOMContentLoaded",D);L()};
document.addEventListener("DOMContentLoaded",D)}})).then(function(){return AkO()}).then(function(){x.initPlayerPromise_||x.preparePlayerJobId_||(x.preparePlayerJobId_=_.TG(_.WW,function(){x.initPlayerPromise_||(x.initPlayerPromise_=x.initPlayerContainer_())}))}):_.WI(new _.RZ("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(x){this.useUnifiedPlayer_()?Mb(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(x)||(x.args.autoplay="0")},
shouldAutoplay_:function(x){if(this.useUnifiedPlayer_())Mb(!1,"Invalid method call in kevlar_unified_player.");else{var L=this.get("args.el",x);return L&&L!="detailpage"&&this.isMiniplayerActive_()||L&&(L=="sponsorshipsoffer"||L=="handlesclaiming")&&this.get("args.autoplay",x)=="0"?!1:(x=eI3(x))&&this.get("playerConfig.playbackStartConfig.startPaused",x)?!1:!0}},
isMiniplayerActive_:function(){return _.yY().resolve(_.iy).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var x=this.getPlayer();if(x){var L=x.getPlayerState();_.u("kevlar_player_check_ad_state_on_stop")&&(L=x.getPlayerState(x.getPresentingPlayerType()));L!=5&&x.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(x,L,D){D=D===void 0?!1:D;var S=this,Q,J,Z,y;return _.I(function(E){if(E.nextAddress==1)return L||(L=S.hostElement),Q=S.useUnifiedPlayer_()?!!S.mainAppPlayer_:!!S.initPlayerPromise_,Q?E.yield(S.getPlayerPromise(),2):(D?x.insertBefore(L,x.firstChild):x.appendChild(L),E.return());J=E.yieldResult;Z=J.getPlayerState(J.getPresentingPlayerType());y=!1;if(Z==-1||Z==1||Z==3)y=!0;D?x.insertBefore(L,x.firstChild):x.appendChild(L);y&&J.playVideo();J.setSize(NaN,NaN);_.Y2(E)})},
watchNextDataChanged_:function(x){var L=this;x&&(this.useUnifiedPlayer_()&&_.u("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&etH(this.mainAppPlayer_,x):this.getPlayerPromise().then(function(D){D.updateVideoData(L.computeWatchNextPlayerVars_(x))}))},
computeWatchNextPlayerVars_:function(x){if(this.useUnifiedPlayer_()&&_.u("kevlar_unified_player_update_watch_next_killswitch"))Mb(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:x}},
maybeSendAbandonmentPing_:function(){var x=this.getPlayer();x&&x.getPlayerState()!=5&&x.getPlayerState()!=0&&x.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var x=_.$6("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(x=Object.assign({},x),x.rootElementId=this.playerId);x.serializedExperimentIds&&x.serializedExperimentFlags||_.qy(Error("Ch"));return x},
hasWebPlayerContextConfig_:function(){return!!_.$6("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(x){this.useUnifiedPlayer_()?Mb(!1,"Invalid method call in kevlar_unified_player."):_.mA(x,this.hostElement)},
useUnifiedPlayer_:function(){var x=_.u("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.u("kevlar_unified_player")||x}}];var weW={};weW.YtPlaylistPanelBehavior=[_.c.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(x){x=x.detail;if(x.actions.loop!=void 0||x.actions["yt-icons:loop"]!=void 0)this.loopOn=x.actions.loop||x.actions["yt-icons:loop"];if(x.actions.shuffle!=void 0||x.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=x.actions.shuffle||x.actions["yt-icons:shuffle"]},
setMenuData_:function(x){if(!x||!x.playlistButtons||x.isInfinite)return null;for(var L=x.playlistButtons.menuRenderer.topLevelButtons,D=L.length,S=0;S<D;S++)if(L[S].toggleButtonRenderer){var Q=L[S].toggleButtonRenderer;Q.defaultIcon.iconType=="LOOP"&&this.loopOn?Q.isToggled=this.loopOn:Q.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(Q.isToggled=this.shuffleOn)}return x.playlistButtons}}];var Bo2=function(x){dr.call(this,x,132);this.isDocument=x===document.documentElement};
_.p(Bo2,dr);Bo2.prototype.calculateScrollDelta=function(x,L,D){var S=0;x<L?S=x<L-100?-48:-8:x>L+D&&(S=x>L+D+100?48:8);return S};
Bo2.prototype.JSC$11399_onMouseMove=function(x){this.isDocument||(x.clientX=x.event_.pageX,x.clientY=x.event_.pageY);dr.prototype.JSC$11399_onMouseMove.call(this,x)};var eC=function(){var x=_.er.apply(this,arguments)||this;x._noAccessors=!0;x.scrollElement=document.documentElement;x.JSC$14390_dragListGroup=null;x.dragScrollSupport=null;x.onDraggerCreated=function(L){var D=L.JSC$11395_dragger;D.scrollTarget_=x.scrollElement;L=L.draggerEl;D&&L.menuOpened&&D.setEnabled(!1)};
x.onDragStart=function(L){var D=L.draggerEl;L=L.currDragItem;var S=Object.assign({},L==null?void 0:L.data);S.trackingParams=void 0;D.data=S;D.style.position="absolute";D.style.width=(L==null?void 0:L.clientWidth)+"px";D.style.zIndex="2030";D.onDrag&&D.onDrag();_.u("web_owner_document_fallback_killswitch")?(L=document.querySelector("ytd-app"))&&_.jr(L).appendChild(D):(L=_.Ac(D),(S=L.querySelector("ytd-app"))?_.jr(S).appendChild(D):L.body.appendChild(D));x.dragScrollSupport=new Bo2(x.scrollElement);
x.dragScrollSupport.horizontalScrolling_=!1;D=x.dragScrollSupport;D.constrainScroll_=!!D.margin_&&!1};
x.onDrop=function(L){x.handleDrop(L);x.dragScrollSupport&&(_.Q1(x.dragScrollSupport),x.dragScrollSupport=null)};
x.onReorderableScroll=function(){if(x.JSC$14390_dragListGroup){var L=x.JSC$14390_dragListGroup;a4Q(L,L.currDragItem_)}};
return x};
_.p(eC,_.er);eC.prototype.detached=function(){_.WaR(this)};
_.WaR=function(x){x.JSC$14390_dragListGroup&&(_.wG(x.JSC$14390_dragListGroup,WX2,x.onDragStart),_.wG(x.JSC$14390_dragListGroup,rqC,x.onDragStart),x.JSC$14390_dragListGroup.dispose(),x.JSC$14390_dragListGroup=null);x.dragScrollSupport&&(_.Q1(x.dragScrollSupport),x.dragScrollSupport=null);x.scrollElement.removeEventListener("scroll",x.onReorderableScroll)};
_.qpi=function(x,L,D,S){S=S===void 0?"":S;_.WaR(x);D&&(x.scrollElement=D);x.JSC$14390_dragListGroup=new Qc;x.JSC$14390_dragListGroup.hysteresisDistance_=2;i$_(x.JSC$14390_dragListGroup,L);x.JSC$14390_dragListGroup.draggerElClasses_=j0("dragging").split(" ");S&&f4H(x.JSC$14390_dragListGroup,function(Q){var J=Q||document,Z=null;J.getElementsByClassName?Z=J.getElementsByClassName(S)[0]:Z=mqH("*",S,Q);return Z||Q});
_.Uk(x.JSC$14390_dragListGroup,wPh,x.onDraggerCreated);_.Uk(x.JSC$14390_dragListGroup,WX2,x.onDragStart);_.Uk(x.JSC$14390_dragListGroup,rqC,x.onDrop);x.JSC$14390_dragListGroup.init();x.scrollElement.addEventListener("scroll",x.onReorderableScroll,{passive:!0})};
eC.prototype.handleDrop=function(){};
_.J3.Object.defineProperties(eC.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
_.A([_.F({value:100}),_.r("design:type",Number)],eC.prototype,"scrollMargin",void 0);_.A([_.RW()],eC);_.Atd=[eC.prototype];_.RF={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(x,L,D){var S=this.getClickTarget_(L);if(S&&this.isClickAllowed_(S)){L.preventDefault();x=(0,_.wk.unsafeClone)(x);var Q=this.getContainerBoundingRect();L=this.getRelativeClickXy_(L,Q);this.expandEndpointUrlMacros_(x,{NX:L[0],NY:L[1],NB:S.code});D&&this.truncateWebCommendMetadataUrl_(x);_.MF(this.hostElement,"yt-navigate",{endpoint:x})}},
getClickTarget_:function(x){if(!this.clickTargetMap)return null;x=_.Jq(x)||[];x=_.O(x);for(var L=x.next();!L.done;L=x.next()){L=L.value;if(L===_.jr(this.hostElement).querySelector("#menu"))break;if(L=this.clickTargetMap.get(L.id))return L}return null},
getRelativeClickXy_:function(x,L){var D=x.detail.x,S=x.detail.y;_.u("use_on_click_for_desktop_display_ad")&&x.clientX!=null&&x.clientY!=null&&(D=x.clientX,S=x.clientY);x=Math.round(D-L.left);L=Math.round(S-L.top);return x<0||L<0?[null,null]:[x,L]},
getContainerBoundingRect:function(){return _.jr(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(x,L){for(var D=_.O(x.loggingUrls||[]),S=D.next();!S.done;S=D.next())S=S.value,S.baseUrl&&(S.baseUrl=yI0(S.baseUrl,L));x.urlEndpoint&&x.urlEndpoint.url&&(x.urlEndpoint.url=yI0(x.urlEndpoint.url,L));x.commandMetadata&&x.commandMetadata.webCommandMetadata&&x.commandMetadata.webCommandMetadata.url&&(x.commandMetadata.webCommandMetadata.url=yI0(x.commandMetadata.webCommandMetadata.url,L))},
truncateWebCommendMetadataUrl_:function(x){if(x.commandMetadata&&x.commandMetadata.webCommandMetadata&&x.commandMetadata.webCommandMetadata.url){var L=x.commandMetadata.webCommandMetadata.url,D=L.indexOf("&pp=");if(D>0){var S=L.indexOf("&",D+1);x.commandMetadata.webCommandMetadata.url=S>D&&S<L.length?L.slice(0,D)+L.slice(S):L.slice(0,D)}}},
configureClickTargets:function(x,L,D){this.containerId=x;this.clickTargetMap=new Map;x=_.O(L);for(L=x.next();!L.done;L=x.next())if(L=L.value,L.location){var S=D.get(L.location);S&&(_.VA(_.jr(this.hostElement).querySelector("#"+S),"yt-simple-endpoint",this.isClickAllowed_(L)),this.clickTargetMap.set(S,L))}},
isClickAllowed_:function(x){return x.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||x.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||x.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||x.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.Gz={};
_.Gz.YtLazyListBehavior=[_.sB.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 x=(this.constructor.generatedFrom||this).observers;x||(x=[]);x.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
x}},
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 x=this.renderElementsOutsideVisibleArea_;x&&(WLA(x,4),x.processSignal())},
deepLazyListObserver_:function(x){var L=this;if(x){var D=x.value||[];if(this.itemsPath==x.path){var S=this.nonDeferredItemCount;x=0;S>-1&&D.length>S&&(x=_.$6("REMAINING_DOVA_DEFERRED_CHUNKS",-1));x>0?(S>0&&(S=D.slice(0,S),this.setInitialItemsOnDataChanged(S)),(S=this.renderElementsOutsideVisibleArea_)?S.cancel():(S=this.renderElementsOutsideVisibleArea_=new _.eZ(2,"eocs"),_.Mnh(window,"scroll",function(){return L.renderDeferredElements()})),_.RU(S,function(){L.setInitialItemsOnDataChanged(D)}),_.Au("REMAINING_DOVA_DEFERRED_CHUNKS",
x-1)):this.setInitialItemsOnDataChanged(D)}else if(this.itemsPath+".splices"==x.path)this.onItemsUpdated_(D);
else S="shownItems"+x.path.substr(this.itemsPath.length),this.useSignals&&S==="shownItems.length"||this.notifyPath(S,x.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(x){x&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(x),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(x){x=x.indexSplices;for(var L=0,D=x.length;L<D;L++){var S=x[L];if(S.index<this.shownCount&&(S.removed&&this.splice("shownItems",S.index,S.removed.length),S.addedCount)){var Q=S.object.slice(S.index,S.index+S.addedCount);S=["shownItems",S.index,0];S.push.apply(S,Q);this.splice.apply(this,S)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(x){this.cancelPendingTasks_();x||(x=[]);this.items_=x;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&&(_.rO("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.So(this,this.tryRenderChunk_)))},
fillRange_:function(x,L){this.canShowMore&&this.items_&&(x=this.items_.slice(x,L),x.unshift("shownItems"),this.push.apply(this,x),this.shownCount=L,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var x=this;this.canShowMore&&_.LI(this,"renderChunk",function(){x.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.rO("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.GR(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var x=this.renderElementsOutsideVisibleArea_;x&&(x.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var x=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(x-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=x;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(x){return Math.ceil(1E3/x)},
onCanShowMoreUpdated_:function(x){this.data&&this.items_!==null&&(x?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(x){!this.shouldUseTaskManager()&&this.data&&(!x&&this.canShowMore?(_.P$n(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):x&&this.partiallyRenderedItems_.has(this.items_)&&(_.u("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var UG;_.CO={};
UG=function(){var x=_.er.apply(this,arguments)||this;x.atStart=!0;x.atEnd=!0;x.startIndex=0;x.endIndex=0;x.scrollCount=0;x.initialStartIndex=0;x.disableScrollEventListener=!1;x.useFloorScrolling=!1;x.isSearch=!1;x.dragging=!1;x.dragMouseStart=0;x.dragOffsetStart=0;x.disableWheelScroll=!1;x.centerListItems=!1;x.offset=0;x.minComponentWidth=0;x.marginWidthRight=0;x.marginWidthLeft=0;x.setButtonsStateRequested=!1;x.itemsVisibilityObserver=null;x.fullyVisibleItemsIndices=[];x.JSC$14401_onWheelScroll=function(L){if(x.isSearch&&
!x.disableWheelScroll&&_.u("desktop_enable_dmpanel_wheel_scroll")){var D=L.shiftKey?Math.abs(L.deltaY)>Math.abs(L.deltaX)?L.deltaY:L.deltaX:L.deltaX;D!==0&&(L.preventDefault(),x.ytLazyListBehavior.fillRemainingListItems(),x.offset+=D,lM(x),x.reposition_())}};
x.onPointerDown=function(L){$vh(x)&&(x.dragMouseStart=L.clientX,x.dragOffsetStart=x.offset,x.dragging=!0)};
x.onPointerMove=function(L){$vh(x)&&x.dragging&&(x.ytLazyListBehavior.fillRemainingListItems(),x.offset=x.dragOffsetStart-(L.clientX-x.dragMouseStart),lM(x),x.reposition_())};
x.onPointerUp=function(){$vh(x)&&(x.dragging=!1)};
return x};
_.p(UG,_.er);var rtW=function(x){var L=_.jr(x.hostElement).querySelector("#items").children;if(!L)return 0;var D=0;x=_.O(x.fullyVisibleItemsIndices);for(var S=x.next();!S.done;S=x.next())D+=L[S.value].clientWidth;return D},$vh=function(x){return x.isSearch&&_.u("desktop_enable_dmpanel_click_drag_scroll")};
UG.prototype.created=function(){this.cachedViewportWidth=_.$6("initialInnerWidth")||window.innerWidth;this.JSC$14401_cachedViewportHeight=_.$6("initialInnerHeight")||window.innerHeight;_.$6("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.Au("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
UG.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.u("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();Noi(this)};
UG.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.u("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var x;(x=this.itemsVisibilityObserver)==null||x.disconnect();this.itemsVisibilityObserver=null;var L;(L=this.itemsObserver)==null||L.disconnect()};
var Noi=function(x){var L=_.jr(x.hostElement).querySelector("#scroll-container");if(L){if(!x.itemsVisibilityObserver){var D=window.getComputedStyle(L).marginRight;x.itemsVisibilityObserver=new IntersectionObserver(function(S){iNG(x,S)},{root:L,
rootMargin:D,threshold:.98})}if(L=_.jr(x.hostElement).querySelector("#items"))x.itemsObserver=new bBG(L,function(S){fuH(x,S)})}},fuH=function(x,L){oCH(x)&&(Array.from(L.addedNodes).filter(function(D){return D.nodeType===Node.ELEMENT_NODE}).forEach(function(D){x.itemsVisibilityObserver&&x.itemsVisibilityObserver.observe(D)}),Array.from(L.removedNodes).filter(function(D){return D.nodeType===Node.ELEMENT_NODE}).forEach(function(D){x.itemsVisibilityObserver&&x.itemsVisibilityObserver.unobserve(D)}))},
iNG=function(x,L){var D=new Set(x.fullyVisibleItemsIndices);
L=_.O(L);for(var S=L.next();!S.done;S=L.next()){S=S.value;var Q=S.target.parentElement;Q?(Q=Array.from(Q.children).indexOf(S.target),S.isIntersecting?D.add(Q):D.has(Q)&&D.delete(Q)):_.qy(new _.RZ("Parent element not found",S.target.nodeName))}x.fullyVisibleItemsIndices=Array.from(D).sort(function(J,Z){return J-Z});
D.size===0?_.qy(new _.RZ("No visible entries in horizontal list")):(x.startIndex=x.fullyVisibleItemsIndices[0],x.endIndex=x.fullyVisibleItemsIndices[x.fullyVisibleItemsIndices.length-1])},oCH=function(x){x.data?x=(x=x.data)&&x.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===x.itemSizeConstraint:!1:x=!1;
return x};
_.K=UG.prototype;_.K.addScrollEventListeners=function(){var x=_.jr(this.hostElement).querySelector("#scroll-container");x.style.touchAction="pan-y";x.addEventListener("wheel",this.JSC$14401_onWheelScroll);x.addEventListener("pointerdown",this.onPointerDown);x.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.K.removeScrollEventListeners=function(){var x=_.jr(this.hostElement).querySelector("#scroll-container");x.removeEventListener("wheel",this.JSC$14401_onWheelScroll);x.removeEventListener("pointerdown",this.onPointerDown);x.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.K.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.So(this,this.setStartIndex,[this.initialStartIndex])};
_.K.reposition_=function(){var x=_.$6("HTML_DIR")=="rtl"?"":"-",L=_.jr(this.hostElement).querySelector("#items");L&&(L.style.transform="translateX("+x+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.K.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.So(this,this.setButtonsState_))};
_.K.setButtonsState_=function(){this.setButtonsStateRequested=!1;var x=_.jr(this.hostElement).querySelector("#items").firstElementChild;if(x){this.minComponentWidth||(this.minComponentWidth=auW(this,x));x=_.jr(this.hostElement).querySelector("#scroll-container").clientWidth;var L=_.jr(this.hostElement).querySelector("#items");L=_.u("kevlar_horizontal_list_scroll_width_killswitch")?L.clientWidth:L.scrollWidth;var D=this.get(this.ytLazyListBehavior.itemsPath,this);if(D){var S=Math.round(x/this.minComponentWidth)||
1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+S,D.length)-1)}this.ytLazyListBehavior.canShowMore?L+this.minComponentWidth>=this.offset+x&&(this.atEnd=!1):this.atEnd=this.offset+x>=L-20?!0:!1;this.atStart=this.offset<=20}};
_.K.setStartIndex=function(x){if(!this.minComponentWidth){var L=_.jr(this.hostElement).querySelector("#items").firstElementChild;if(!L)return;this.minComponentWidth=auW(this,L)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*x;lM(this);this.reposition_()};
_.K.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.R4();var x=_.jr(this.hostElement).querySelector("#scroll-container").clientWidth;_.u("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=auW(this,_.jr(this.hostElement).querySelector("#items").firstElementChild));x=this.useFloorScrolling?Math.floor(x/this.minComponentWidth)||1:Math.round(x/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&ztG(this);this.offset+=oCH(this)?
rtW(this):x*this.minComponentWidth;lM(this);this.reposition_();this.scrollCount++};
_.K.prevClick_=function(){var x=_.jr(this.hostElement).querySelector("#scroll-container").clientWidth;x=this.useFloorScrolling?Math.floor(x/this.minComponentWidth)||1:Math.round(x/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=oCH(this)?rtW(this):this.minComponentWidth*this.scrollCount-1):this.offset-=oCH(this)?rtW(this):x*this.minComponentWidth;this.centerListItems&&ztG(this);lM(this);this.reposition_()};
_.K.onIronResize_=function(){this.resizeSupportEnabled&&_.So(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.K.onItemsTransitionEnd_=function(x){_.K$(x)===_.jr(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.K.onChildElementFocus_=function(x){x=x.target.closest("#items > *");var L=_.jr(this.hostElement).querySelector("#scroll-container");if(L.contains(x)){if(_.u("web_horizontal_list_behavior_focus_killswitch"))if(x.offsetLeft<this.offset)this.offset=Math.abs(x.offsetLeft)<x.clientWidth?0:x.offsetLeft;else if(x.offsetLeft+x.clientWidth>this.offset+L.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.R4(),this.offset=x.offsetLeft+x.clientWidth-L.clientWidth;else return;else{var D=_.jr(this.hostElement).querySelector("#items"),
S=_.$6("HTML_DIR")==="rtl",Q=S?D.clientWidth-x.offsetLeft:x.offsetLeft;D=S?D.clientWidth-(x.offsetLeft+x.clientWidth):x.offsetLeft+x.clientWidth;var J=S?Q>this.offset+L.clientWidth:Q<this.offset,Z=S?D<this.offset:D>this.offset+L.clientWidth,y=S?J:Z;if(S?Z:J)L=S?D:Q,this.offset=Math.abs(L)<x.clientWidth?0:L;else if(y)this.ytLazyListBehavior.fillRemainingListItems(),_.R4(),this.offset=(S?Q:D)-L.clientWidth;else return}lM(this);this.reposition_()}};
_.K.observeShownItems_=function(){this.reset()};
_.K.checkComponentWidthResize=function(){var x=_.jr(this.hostElement).querySelector("#items").firstElementChild;x&&(x=auW(this,x),this.centerListItems||x!==this.minComponentWidth)&&(this.minComponentWidth=x,this.offset=x*this.scrollCount,this.centerListItems&&ztG(this),lM(this),this.reposition_())};
var auW=function(x,L){var D=window.getComputedStyle(L).marginRight;D=Math.floor(Number(D.replace("px","")));var S=window.getComputedStyle(L).marginLeft;S=Math.floor(Number(S.replace("px","")));x.centerListItems&&!x.marginWidthRight&&(x.marginWidthRight=D,x.marginWidthLeft=S);return x.resizeSupportEnabled?L.getBoundingClientRect().width+D:L.offsetWidth+D},lM=function(x){var L=_.jr(x.hostElement).querySelector("#scroll-container").clientWidth,D=_.jr(x.hostElement).querySelector("#items").clientWidth;
x.offset<0?x.offset=0:x.offset+L>=D&&(x.offset=D-L)},ztG=function(x){x.offset-=(_.jr(x.hostElement).querySelector("#scroll-container").clientWidth+x.marginWidthRight-x.minComponentWidth)/2-x.marginWidthLeft};
_.J3.Object.defineProperties(UG.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var x=_.$6("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(x==-1)x=this.JSC$14401_cachedViewportHeight,x=x>1320?5:x>1020?4:x>730?3:x>430?2:1;else if(x==0)return 0;_.Au("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",x-1);x=_.$6("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(x>-1)return x;x=this.cachedViewportWidth;x=x>1600?6:x>1400?5:x>1300?4:x>1090?5:x>870?4:x>660?3:2;_.Au("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
x);return x},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.u("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
UG.prototype.observeShownItems_=UG.prototype.observeShownItems_;UG.prototype.onChildElementFocus_=UG.prototype.onChildElementFocus_;UG.prototype.onItemsTransitionEnd_=UG.prototype.onItemsTransitionEnd_;UG.prototype.onIronResize_=UG.prototype.onIronResize_;UG.prototype.prevClick_=UG.prototype.prevClick_;UG.prototype.nextClick_=UG.prototype.nextClick_;UG.prototype.setButtonsState_=UG.prototype.setButtonsState_;UG.prototype.requestButtonsStateUpdate_=UG.prototype.requestButtonsStateUpdate_;
UG.prototype.reposition_=UG.prototype.reposition_;UG.prototype.reset=UG.prototype.reset;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],UG.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.Gz.YtLazyListBehavior),_.r("design:type",Object)],UG.prototype,"ytLazyListBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],UG.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],UG.prototype,"atStart",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],UG.prototype,"atEnd",void 0);_.A([_.F(),_.r("design:type",Object)],UG.prototype,"startIndex",void 0);_.A([_.F(),_.r("design:type",Object)],UG.prototype,"endIndex",void 0);_.A([_.F({value:6}),_.r("design:type",Number)],UG.prototype,"initialCount",void 0);_.A([_.F(),_.r("design:type",Object)],UG.prototype,"scrollCount",void 0);_.A([_.F(),_.r("design:type",Object)],UG.prototype,"initialStartIndex",void 0);
_.A([_.F(),_.r("design:type",Object)],UG.prototype,"disableScrollEventListener",void 0);_.A([_.F(),_.r("design:type",Object)],UG.prototype,"supportComponentResize",void 0);_.A([_.F({value:function(){var x=this;return function(){return x.prevClick_()}}}),
_.r("design:type",Function)],UG.prototype,"boundPrevClick",void 0);_.A([_.F({value:function(){var x=this;return function(){return x.nextClick_()}}}),
_.r("design:type",Function)],UG.prototype,"boundNextClick",void 0);_.A([_.F(),_.r("design:type",Object)],UG.prototype,"useFloorScrolling",void 0);_.A([_.F(),_.r("design:type",Object)],UG.prototype,"isSearch",void 0);_.A([_.F(),_.r("design:type",Object)],UG.prototype,"dragging",void 0);_.A([_.F(),_.r("design:type",Object)],UG.prototype,"dragMouseStart",void 0);_.A([_.F(),_.r("design:type",Object)],UG.prototype,"dragOffsetStart",void 0);
_.A([_.F(),_.r("design:type",Object)],UG.prototype,"disableWheelScroll",void 0);_.A([_.F(),_.r("design:type",Object)],UG.prototype,"centerListItems",void 0);_.A([_.mX("iron-resize"),_.bN("guideOpened"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],UG.prototype,"onIronResize_",null);_.A([_.mX("transitionend"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],UG.prototype,"onItemsTransitionEnd_",null);
_.A([_.mX("focusin"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],UG.prototype,"onChildElementFocus_",null);_.A([_.bN("shownItems"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],UG.prototype,"observeShownItems_",null);_.A([_.RW()],UG);_.CO.YtdHorizontalListBehavior=[];_.CO.YtdHorizontalListBehavior.push(_.XO,_.c.YtRendererBehavior,_.Gz.YtLazyListBehavior,_.Vi.YtdGuideStateAwareBehavior,UG.prototype);var ckb=["APP_STATE","PI"];var XeQ=_.xI(["about:blank"]),ctC={pushState:window.history.pushState,replaceState:window.history.replaceState};var wK=function(x){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=x;this.internalPushState=x.pushState.bind(x);this.internalReplaceState=x.replaceState.bind(x)};
wK.prototype.init=function(){this.initialized=!0};
wK.prototype.pushState=function(x,L){this.initialized||this.init();this.internalPushState&&this.internalPushState(x,"",L)};
wK.prototype.replaceState=function(x,L){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(x,"",L)};
wK.prototype.getState=function(){return this.history&&this.history.state};var nCR=function(x){var L=function(){var D=x.apply(this,arguments)||this;D.boundHistoryPushState=!1;D.boundHistoryReplaceState=!1;D.debugInfo={};return D};
_.p(L,x);L.prototype.init=function(){var D=_.pw("IFRAME");_.ci(D,_.Pn(XeQ));D.sandbox="allow-same-origin";D.style.display="none";this.iframe=D;document.body.appendChild(D);this.bindHistoryStateFunctions();x.prototype.init.call(this)};
L.prototype.bindHistoryStateFunctions=function(){var D=this,S=[],Q;this.iframe&&((Q=this.iframe.contentWindow)==null?0:Q.history)&&(Q=this.iframe.contentWindow.history)&&(S.push(Q),Object.getPrototypeOf(Q)&&S.push(Object.getPrototypeOf(Q)));window.history&&S.push(window.history);Q=window.history;Object.getPrototypeOf(Q)&&S.push(Object.getPrototypeOf(Q));S.push(ctC);Q=function(Z){for(var y=null,E=0;E<S.length;E++){var P=S[E][Z];if(typeof P==="function"){y=P.bind(window.history);D.debugInfo[Z]=E;break}}return y};
if(!this.boundHistoryReplaceState){var J=Q("replaceState");J&&(this.internalReplaceState=J,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(Q=Q("pushState"))&&(this.internalPushState=Q,this.boundHistoryPushState=!0)};
return L}(wK),tai=function(){return nCR.call(this,window.history)||this};
_.p(tai,nCR);tai.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var BV=function(x){this.browserHistory=x;this.initialized=!1};
BV.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
BV.prototype.pushState=function(x,L){this.initialized||this.init();this.browserHistory.pushState(x,L)};
BV.prototype.replaceState=function(x,L){this.initialized||this.init();this.browserHistory.replaceState(x,L)};
BV.prototype.handlePopstate=function(x){return x.state};_.x5A=function(x,L,D,S,Q){this.endpoint=x;this.forward=L;this.historyEntry=D;this.JSC$30220_savedComponentState=S;this.legacyBorder=Q===void 0?!1:Q};var LMR=function(x,L){this.rootData=x;this.scrollTop=L};var sy=new _.vx("PAGE_REQUEST_TOKEN"),P$i=new _.vx("FETCH_PBJ_TOKEN");_.WV=new _.vx("EPHEMERAL_STORE_TOKEN");_.qX=function(x){this.data=Object.assign({},x);var L;(L=this.data.innertubeResponse)==null||delete L.frameworkUpdates};
_.qX.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.y5)()};
_.Oy=function(x){return Object.assign({},x.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var D5W=function(){this.maxSize=100;this.timeToDataCache=new Map};
D5W.prototype.get=function(x){var L=this.timeToDataCache.get(x);L&&(this.timeToDataCache.delete(x),this.timeToDataCache.set(x,L));if(L&&L.rootData&&(_.u("web_use_response_store_for_history_cache")||_.u("mweb_use_new_history_manager"))){var D=_.yY().resolve(_.WV),S=Szd(L),Q=!!S;if(S){if(S.content){var J=AQ(D,S.content);Q&&J?L.rootData.response=_.Oy(J):Q=!1}S.player&&(J=AQ(D,S.player),Q&&J?L.rootData.playerResponse=_.Oy(J):Q=!1);S.reelSequence&&(D=AQ(D,S.reelSequence),Q&&D?L.rootData.reelWatchSequenceResponse=
_.Oy(D):Q=!1)}Q||(this.timeToDataCache.delete(x),L=void 0)}return L};
D5W.prototype.set=function(x,L){if(L.rootData&&(_.u("web_use_response_store_for_history_cache")||_.u("mweb_use_new_history_manager"))){var D=Szd(L),S=Object.assign({},L.rootData);D&&(D.content&&L.rootData.response&&(Q3h(this,D.content,L.rootData.response),S.response=null),D.player&&L.rootData.playerResponse&&(Q3h(this,D.player,L.rootData.playerResponse),S.playerResponse=null),D.reelSequence&&L.rootData.reelWatchSequenceResponse&&(Q3h(this,D.reelSequence,L.rootData.reelWatchSequenceResponse),S.reelWatchSequenceResponse=
null));L=new LMR(S,L.scrollTop)}this.timeToDataCache.has(x)?this.timeToDataCache.delete(x):this.timeToDataCache.size>=this.maxSize&&(D=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(D.value));this.maxSize!==0&&this.timeToDataCache.set(x,L)};
D5W.prototype.clear=function(){this.timeToDataCache.clear()};
var Szd=function(x){var L=_.yY().resolve(_.ZN(sy)),D;if((D=x.rootData)==null?0:D.endpoint)return L==null?void 0:rvh(L,x.rootData.endpoint);var S;_.qy(new _.RZ("History snapshot response data does not contain endpoint",(S=x.rootData)==null?void 0:S.url));return null},Q3h=function(x,L,D){if(x.maxSize>0){var S;
(x=(S=D.responseContext)==null?void 0:S.maxAgeSeconds)&&Number(x)>0&&(S=_.yY().resolve(_.WV),D=j2(D,x),S.put(L,new _.qX(D)))}};var JX_=function(x,L,D){this.endpoint=L;this.JSC$30225_savedComponentState=D===void 0?null:D;this.entryTime=x};var Spb=1;var rK=function(x){var L=function(){var D=x.apply(this,[].concat(_.lP(_.Ne.apply(0,arguments))))||this;D.historyEntryTime=0;D.historySnapshotCache=D.createHistoryCache();return D};
_.p(L,x);L.prototype.createHistoryCache=function(){return new D5W};
L.prototype.saveAndReplace=function(D,S,Q){var J=window.location.href;var Z=Z===void 0?{}:Z;var y=(y=this.browserHistory.getState())&&y.entryTime?y.entryTime:Q50();D=this.createNewHistoryEntry(D,Z,y);this.saveSnapshot(y,S,Q);this.replaceState(D,J||window.location.href)};
L.prototype.saveAndPush=function(D,S,Q,J,Z){Z=Z===void 0?{}:Z;this.saveSnapshot(this.historyEntryTime,Q,J);Q=this.historySnapshotCache;J=this.historyEntryTime;var y=Q.timeToDataCache.keys();y=_.O(y);for(var E=y.next();!E.done;E=y.next())E=E.value,E>J&&Q.timeToDataCache.delete(E);S=this.createNewHistoryEntry(S,Z);this.pushState(S,D)};
L.prototype.saveSnapshot=function(D,S,Q){this.historySnapshotCache.set(D,new LMR(S,Q))};
L.prototype.createNewHistoryEntry=function(D,S,Q){Q=Q===void 0?Q50():Q;return new JX_(Q,D,S)};
L.prototype.handlePopstate=function(D){var S=x.prototype.handlePopstate.call(this,D),Q=null,J=null,Z=!1,y=null;S&&S.entryTime&&(y=this.historySnapshotCache.get(S.entryTime)||null,Z=S.entryTime>this.historyEntryTime,this.historyEntryTime=S.entryTime,Q=S.endpoint,J=S.JSC$30225_savedComponentState);this.handleHistoryCacheLoad(new _.x5A(Q,Z,y,J),D);return S};
L.prototype.pushState=function(D,S){Number(D==null?void 0:D.entryTime)>=0&&(this.historyEntryTime=D.entryTime);x.prototype.pushState.call(this,D,S)};
L.prototype.replaceState=function(D,S){Number(D==null?void 0:D.entryTime)>=0&&(this.historyEntryTime=D.entryTime);x.prototype.replaceState.call(this,D,S)};
L.prototype.handleHistoryCacheLoad=function(){};
return L}(BV),KMR=function(){var x=rK.call(this,new tai)||this;
x.dispatchElement=null;x.entryIndex=0;return x};
_.p(KMR,rK);_.K=KMR.prototype;_.K.init=function(x){x=x===void 0?!0:x;rK.prototype.init.call(this);this.initialized||(x||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.K.handlePopstate=function(x){var L=null;x.state||(L="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return rK.prototype.handlePopstate.call(this,x);var D=new CustomEvent("yt-history-pop",{cancelable:!0});_.dg(this.dispatchElement,"yt-history-pop",[D,{errorMsg:L}]);_.P$(this.dispatchElement,"yt-close-all-popups-action");if(!D.defaultPrevented){D=_.yY().resolve(_.KX);L=D.getCurrentData();var S=D.getCurrentPage();D=0;S?(S=_.dg(this.dispatchElement,"yt-get-page-offset",
[S]),S.length>0&&(D=S[0])):_.qy(new _.RZ("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:L?L.page:"undefined"}));L&&(L.csn=_.A3());this.saveSnapshot(this.historyEntryTime,L,D)}return rK.prototype.handlePopstate.call(this,x)};
_.K.handleHistoryCacheLoad=function(x,L){x.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.O(_.P$(this.dispatchElement,"yt-history-will-navigate",[L])).next().value||_.dg(this.dispatchElement,"yt-history-load",[L,x]))};
_.K.pushState=function(x,L){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var D=new _.RZ("history.pushState is not a function",this.getDebugString());_.BI(D)}rK.prototype.pushState.call(this,x,L)};
_.K.replaceState=function(x,L){if(!this.browserHistory.boundHistoryReplaceState){var D=new _.RZ("history.replaceState is not a function",this.getDebugString());_.BI(D)}rK.prototype.replaceState.call(this,x,L)};
_.K.saveAndPush=function(x,L,D,S,Q){Q=Q===void 0?{}:Q;D&&(D.csn=_.A3());rK.prototype.saveAndPush.call(this,x,L,D,S,Q)};
_.K.getDebugString=function(){var x=[];this.initialized&&x.push("i");this.browserHistory.boundHistoryReplaceState&&x.push("bhr");this.browserHistory.boundHistoryPushState&&x.push("bhs");"replaceState"in this.browserHistory.debugInfo&&x.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&x.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&x.push("ei:"+String(this.entryIndex));return x.join(",")};
_.NX=function(x,L){x.init(!0);var D=x.browserHistory.getState();x.replaceState(D,PX(L))};
KMR.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.iM=new _.vx("DESKTOP_HISTORY_MANAGER_TOKEN");var OAQ=[10,20,30,40,50,60],fO=function(){this.currentPartitionIndex=0},ZA2=function(x){h8d({mainAppWeb:_.L$(),
survivalSli:{partitionMinute:x,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},yXd=function(x){h8d({mainAppWeb:_.L$(),
survivalSli:{partitionMinute:x,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},IWh=function(x){return x.currentPartitionIndex>=0&&x.currentPartitionIndex<OAQ.length?OAQ[x.currentPartitionIndex]:-1},Ek2=function(x){return x.currentPartitionIndex>0&&x.currentPartitionIndex-1<OAQ.length?OAQ[x.currentPartitionIndex-1]:-1};
fO.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var x=Ek2(this);x>0&&yXd(x);x=IWh(this);x>0&&ZA2(x);MAd(this)}};
var MAd=function(x){var L=IWh(x);if(L>0){var D=Ek2(x);D<0&&(D=0);x.intervalId=_.WW.addJob(function(){var S=Ek2(x);S>0&&yXd(S);S=IWh(x);S>0&&ZA2(S);MAd(x)},3,(L-D)*6E4);
x.currentPartitionIndex+=1}else x.currentPartitionIndex=-1};var d5R=function(){this.skipNextNavigation=!1},PTG=function(x,L,D){if(!L)return!1;
if(x.skipNextNavigation)return x.skipNextNavigation=!1;if(_.g(D,_.oR))return!1;var S,Q,J;if((S=_.g(D,_.mt))==null?0:(Q=S.browseEndpointContextSupportedConfigs)==null?0:(J=Q.browseEndpointContextMainConfig)==null?0:J.skipConfirmation)return!1;var Z;return((Z=_.g(L.commandMetadata,_.gg))==null?void 0:Z.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
d5R.prototype.showConfirmationDialog=function(x,L){this.navigateParams=L;this.customConfirmationCommand?_.yY().resolve(_.E2).resolveCommand(this.customConfirmationCommand):(L={openPopupAction:{popup:{confirmDialogRenderer:{title:_.Dv(_.p6("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.Dv(_.p6("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.Dv(_.p6("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.Dv(_.p6("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.aR.getInstance().triggerAction("yt-open-popup-action",L,x))};
d5R.prototype.cancelPendingNavigation=function(){var x;((x=this.navigateParams)==null?void 0:x.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var j3A=function(){},VA_=function(x,L,D,S,Q,J,Z){D=D===void 0?{}:D;
Z=Z===void 0?{}:Z;var y=_.Xe.instance,E,P=(E=_.g(L,_.oR))==null?void 0:E.url;return P?kvO(y,P,D,window.location.href,function(v,V){vkR(x,v,V,!1,!0,D,J,S)},function(){return!1}):aP(y,L,D,window.location.href,FA(L),function(v,V){vkR(x,v,V,!1,!0,D,J,S)},Q,Z)},vkR=function(x,L,D,S,Q,J,Z,y){if(!x.JSC$14459_chunkHandler)if(D.page==="learning_journey_watch"&&_.u("web_enable_canvas_on_learning_journey")){var E=!_.g(y,_.mt);
Q=Q||S;if(E)if(Q){if(_.u("kevlar_continue_playback_without_player_response")){var P;var v=(P=_.g(y,_.L6))==null?void 0:P.videoId}S={clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:S,previousVideoId:v},tempData:J}}else S={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};else S={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};x.JSC$14459_chunkHandler=new qMd(_.Zs,S,Z,E,Q)}else if(D.page==="watch"||D.page==="learning_journey_watch")if(Q||S){if(_.u("kevlar_continue_playback_without_player_response")){var V;
E=(V=_.g(y,_.L6))==null?void 0:V.videoId}x.JSC$14459_chunkHandler=new rbh(_.Zs,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:S,previousVideoId:E},tempData:J},Z)}else x.JSC$14459_chunkHandler=new BJ2(_.Zs);else D.page==="shorts"&&Q&&!S?x.JSC$14459_chunkHandler=new $0B(_.Zs,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:J},Z):x.JSC$14459_chunkHandler=new WqG(Z);x.JSC$14459_chunkHandler.processChunk({endpoint:L,data:D});return x.JSC$14459_chunkHandler.o0.promise},
hm_=function(x,L,D,S,Q){(D=_.sgR(D))&&vkR(x,L,D,!1,!0,S,void 0,Q)};_.HA2=new _.vx("NAVIGATION_SERVICE_TOKEN");var uxi=function(){this.pendingNavigationPromise=null};
_.K=uxi.prototype;_.K.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.K.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.K.addEventListener=function(){throw Error("Dh");};
_.K.dispatchEvent=function(){throw Error("Dh");};
_.K.removeEventListener=function(){throw Error("Dh");};var gkd=new _.vx("APP_ROOT");var Kaf=null;var ktW=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],oF=function(){_.Bc.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];pbd(this)};
_.p(oF,_.Bc);oF.prototype.verifyUser=function(){var x=pbd(this),L=x.logout;if(!x.sessionChange)return!0;this.dispatchEvent("ytsessionchange");L&&this.dispatchEvent("ytuserinvalid");return!1};
var pbd=function(x){var L=ktW.map(function(Q){var J;return(J=_.YQ.get(Q))!=null?J:""}),D=L.some(function(Q,J){return x.sessionCookies&&x.sessionCookies[J]!==""&&Q===""}),S=L.some(function(Q,J){return x.sessionCookies&&x.sessionCookies[J]!==Q});
x.sessionCookies=L;return{logout:D,sessionChange:S}};
oF.prototype.clearTimeout=function(){this.scheduledJobId&&(_.WW.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var Maw=new _.vx("POSTMESSAGE_TUNNEL_TOKEN");var yth=["/parent_tools","/file_download","/artist_roster"],j5f=[K_H,O22,Z2R,Ih_,yr2,JrR,EH2,MWR];var aF=new _.vx("NAVIGATION_CONFIRMATION_SERVICE");var m5Q="/account /account_advanced /account_billing /account_notifications /account_playback /account_privacy /account_sharing /cart /channel/ /clip /contribute-notes /effect/ /feed/ /gaming /gaming/ /hashtag /learning /manage_red /minor_moment /musicpremium /new /originals /paid_memberships /place /playables /playlist /podcasts /post/ /premium /product/ /reporthistory /results /search /shopcollection/ /shorts/ /show/ /source/ /user/ /watch /youtuberedoriginals".split(" "),bAi=[{url:"/podcasts",
expFlag:"enable_polymer_navigation_for_podcasts_destination_page"},{url:"/companion_canvas",expFlag:"enable_ai_companion"}],zz=function(x,L){this.pendingNavigationPromise=null;this.JSC$14482_clientRoot=x;this.historyManager=L;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 j3A;this.debugString=x.is;x={"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};_.cI(_.aR.getInstance(),x,this.JSC$14482_clientRoot)},em_,RmQ,Gth,CTR,TaG;
_.p(zz,uxi);zz.prototype.reload=function(){_.x9(window.location.href)};
var R4h=function(x){x.currentEndpoint&&_.g(x.currentEndpoint,_.TF)?x.reload():x.currentEndpoint&&x.navigate(x.currentEndpoint,!0,void 0,{disableCache:!0})};
zz.prototype.navigate=function(x,L,D,S,Q,J,Z,y){L=L===void 0?!1:L;D=D===void 0?{}:D;S=S===void 0?{}:S;var E=_.yY().resolve(aF),P;if(!Z&&PTG(E,(P=this.currentEndpoint)!=null?P:void 0,x))return E.showConfirmationDialog(this.JSC$14482_clientRoot.parentElement,{endpoint:x,reload:L,params:D,tempData:S,requestType:Q,createScreenConfig:J}),!1;var v=_.jP();_.vy(v,"eocs")||v.parkOrScheduleJob(function(){v.processSignal("eocs")},10,"eor");
ON0();Z=FA(x);E=S.autonav==="1";P=_.A3();oF.instance||(oF.instance=new oF);var V=oF.instance.verifyUser(),h;if(_.u("enable_dark_theme_only_on_shorts")){var H=document.documentElement.hasAttribute("dark"),k=_.l1(!0)==="USER_INTERFACE_THEME_DARK";if(Z==="shorts"){if(!H)if(_.u("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var T;_.x9((T=_.g(x==null?void 0:x.commandMetadata,_.gg))==null?void 0:T.url,void 0,void 0,window.top)}}else{var G;_.x9(_.LH((G=_.g(x==
null?void 0:x.commandMetadata,_.gg))==null?void 0:G.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.u("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!H){var U;_.x9(_.LH((U=_.g(x==null?void 0:x.commandMetadata,_.gg))==null?void 0:U.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(k!==H){var l;_.x9(_.LH((l=_.g(x==null?void 0:x.commandMetadata,_.gg))==null?void 0:l.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(Z==="watch"){if(Yzh(_.yY().resolve(_.iy),
x)&&(V||_.u("fix_miniplayer_navigation_killswitch")))return!1;_.u("block_all_player_prefetch_requests")||(h=TXd(_.JK(_.cy),x,E))}else{var X,f=(X=_.g(this.currentEndpoint,_.L6))==null?void 0:X.videoId;f&&_.xr.getInstance().then(function(w0){w0&&w0.set("yt-miniplayer-shown-video-id",f)})}h&&(D.frags=h.missingFragments_.join(","));
T=null;var N;G=(N=_.g(x==null?void 0:x.commandMetadata,_.gg))==null?void 0:N.ignoreNavigation;if(!G)if(_.u("kevlar_command_url")){var z;T=(z=_.g(x==null?void 0:x.commandMetadata,_.gg))==null?void 0:z.url}else T=_.t2h(x,D);if(T&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&T==this.lastNavigationUrl)return _.W$({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.jK(oc(),"CANCELLED")}T&&(this.lastNavigationUrl=T);$Xp();_.Au("IS_HOMEPAGE_COLD",
!1);_.Au("IS_RESULTS_PAGE_COLD",!1);_.Au("IS_WATCH_PAGE_COLD",!1);x.loggingUrls&&x.loggingUrls.forEach(function(w0){w0.baseUrl&&_.z3(w0.baseUrl)});
_.HN4(x,J?J.layer:0)&&_.u("kevlar_flush_logs_on_away_navigation")&&_.wz();if(vCc(x))return!1;yNW(Z,Q);if(!T)return G||_.qy(new _.RZ("Can't construct url for endpoint",x)),_.jK(oc(),"FAILURE"),!1;_.ZN0();N=x&&_.g(x,_.mt)&&_.g(x,_.mt).browseId.startsWith("UC");D=(z=_.u("enable_dark_theme_only_on_shorts")&&Z==="shorts"?!1:_.UO()&&document.documentElement.hasAttribute("dark")!==_.CB())?{themeRefresh:1}:{};z&&!_.s2()&&_.l1()==="USER_INTERFACE_THEME_DARK"&&(D.theme="dark");N=z||FMR(T)&&!N&&!_.u("kevlar_disable_url_allowlist");
V||(N=!0);if(N||_.$6("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var xf;var K3=(xf=window.top)==null?void 0:xf.location.href}catch(w0){var P4;K3=(P4=w0)==null?void 0:P4.message}_.qy(new _.RZ("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:K3}))}x=_.u("kevlar_redirect_on_window_killswitch")?window.top:window;td(T);_.x9(_.LH(T,D),void 0,void 0,x);_.jK(oc(),"ABORTED");return!1}_.u("kevlar_early_popup_close")&&_.dg(this.JSC$14482_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$14459_chunkHandler=void 0;var kf;K3=FA((kf=this.currentEndpoint)!=null?kf:void 0);(kf=Z==="shorts"&&K3==="shorts")||_.wus();_.fm(kX4)("nr",void 0);E&&_.W$({webInfo:{navigationReason:"an"}});x.clickTrackingParams&&(S.itct=x.clickTrackingParams,S.csn=P);xr3(S);S.endpoint=JSON.stringify(x);_.u("enable_unknown_lact_fix_on_html5")&&(_.yY().resolve(_.Rl),S.lact=_.Z8());_.wk.isEmpty(S)||_.J_(T,S);!_.u("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(J=Object.assign({},{layer:0},J,{parentLayer:3}));this.pendingNavigationPromise=J=VA_(this.pageFetcher,x,S,this.currentEndpoint,this.JSC$14482_isNetworkPromiseStale.bind(this),J,y);J=J.then(this.handleNavigateSuccess.bind(this,J,x,h,S),this.handleNavigateFail.bind(this,J,x));_.ie().navigationFinishPromise=J;L={endpoint:x,pageType:Z,url:PX(T),reload:!!L,noProgressBar:kf};Q&&(L.type=Q);var H4;Q=_.pB((H4=this.currentEndpoint)!=null?H4:null);H4=_.pB(x!=null?x:null);this.fireEvent("yt-navigate-start",
L);var p3;(p3=_.yY().resolve(_.ZN(_.HA2)))==null||p3.publish("navigation-start",{sourcePageSubtype:Q,destinationPageSubtype:H4});h&&hm_(this.pageFetcher,x,h,S,this.currentEndpoint);return!0};
zz.prototype.JSC$14482_isNetworkPromiseStale=function(x){return x!=this.pendingNavigationPromise};
var s32=function(x,L,D,S,Q){var J=FA(L);L={endpoint:L,pageType:J};Q&&(L.errorMessage=Q);_.qy(D);L.navigationDoneMs=_.$T("nd");L.navigationErrorReason=S;x.fireEvent("yt-navigate-error",L)};
zz.prototype.handleNavigateFail=function(x,L,D){var S=void 0;D instanceof _.iS&&(S=D,cLf(D));if(this.JSC$14482_isNetworkPromiseStale(x))return _.Bp(S);_.jK(oc(),"FAILURE");s32(this,L,D,"101");return _.Bp(D)};
zz.prototype.handleNavigateSuccess=function(x,L,D,S,Q){if(this.JSC$14482_isNetworkPromiseStale(x))return _.V0();this.pendingNavigationPromise=null;if(!Q)return L=new _.RZ("Missing data in response for navigation endpoint",L),_.Bp(L);if(Q.reload)return window.location.reload(!0),_.V0();D&&(x={},_.wk.extend(x,_.sgR(D),Q),Q=x);var J,Z;D=(J=Q)==null?void 0:(Z=J.timing)==null?void 0:Z.responseStart;D!=null&&_.$T("srt",D);_.$T("pdc");var y,E;J=(y=Q)==null?void 0:(E=y.timing)==null?void 0:E.info;J!=null&&
(y=_.fm(_.YF0)(J),_.W$(y));_.jK(oc(),"SUCCESS");TaG(this,L,Q,1,S);return _.V0()};
var FMR=function(x){var L=x;_.u("kevlar_no_redirect_to_classic_2_ks")||(L=(new _.Dg(x)).getPath());if(L==="/"||L==="/red")return!1;var D=!0;m5Q.forEach(function(S){x.indexOf(S)===0&&(D=!1)});
bAi.forEach(function(S){var Q=S.url;_.u(S.expFlag)&&x.indexOf(Q)===0&&(D=!1)});
return D};
zz.prototype.publishPageData=function(x){this.fireEvent("yt-page-data-fetched",{pageData:x})};
em_=function(x,L,D,S,Q,J){var Z=null;L.page!=="watch"&&L.page!=="learning_journey_watch"||S?L.filler||_.dg(x.JSC$14482_clientRoot,"yt-stop-old-player",[L]):Z=vkR(x.pageFetcher,Q,L,D,!1,J,void 0,x.currentEndpoint);if(Z)return Z.then(x.publishPageData.bind(x,L));x.publishPageData(L);return _.V0()};
RmQ=function(x,L,D){var S=null;if(!D)return S=new _.RZ("Empty data",x.debugString,L);var Q=D.response;if(!Q)return S;var J={endpointType:FA(L)||"unknown"};Q.responseContext?(Q=Q.responseContext.errors)&&(S=new _.RZ("Errors in response context",x.debugString,L,Q,J)):S=Q.error||Q.errorMetadata?new _.RZ("Errors in response",x.debugString,L,Q.error,Q.errorMetadata,J):new _.RZ("responseContext missing",x.debugString,L,Object.keys(Q).sort().join(","),J);var Z,y,E,P;if(x=D==null?void 0:(Z=D.response)==null?
void 0:(y=Z.responseContext)==null?void 0:(E=y.webResponseContextExtensionData)==null?void 0:(P=E.webResponseContextDebugData)==null?void 0:P.debugErrorMessages)for(Z=0;Z<x.length;Z++);return S};
Gth=function(x){var L,D,S,Q;return x==null?void 0:(L=x.response)==null?void 0:(D=L.responseContext)==null?void 0:(S=D.errors)==null?void 0:(Q=S.error)==null?void 0:Q["0"]};
CTR=function(x,L){var D;if(D=L.url&&!L.url.startsWith("/clip"))D=L.url,D=!_.u("webfe_parse_debug_param_in_resolveurl_service")&&x.searchDebugUrlMatcher.test(D)||J2w(D)?!0:!1;if(D)J2w(L.url)&&_.xQ(window.location.href).themeRefresh?(L=_.K6(L.url,"themeRefresh"),_.NX(x.historyManager,L)):L.url&&!Las(L.url)&&_.NX(x.historyManager,L.url);else if(L.endpoint){var S,Q,J;(D=(S=L.endpoint)==null?void 0:(Q=S.commandMetadata)==null?void 0:(J=Q.webCommandMetadata)==null?void 0:J.url)&&!Las(D)&&_.NX(x.historyManager,
D);D&&L.url&&D!=L.url&&!L.url.match("playnext=1")&&new _.RZ("Response url mismatch in response data",x.debugString,D,L.url)}};
_.lW2=function(x,L,D,S,Q,J,Z,y){J=J===void 0?!1:J;var E=_.yY().resolve(aF),P;if(!y&&PTG(E,(P=x.currentEndpoint)!=null?P:void 0,L))return E.showConfirmationDialog(x.JSC$14482_clientRoot.parentElement,{endpoint:L,data:D,navigationType:S,tempData:Q,isMiniplayer:J,isForwardHistoryNavigation:Z==null?void 0:Z.forward}),_.V0();x.pageFetcher.JSC$14459_chunkHandler=void 0;return TaG(x,L,D,S,Q,J)};
TaG=function(x,L,D,S,Q,J){J=J===void 0?!1:J;x.isMiniplayerExpansion=J;var Z=S===2;x.currentEndpoint=L;x.numNavigations++;x.numNavigations&&(Ay4.navigationCount=x.numNavigations);_.Au("NUM_NAV",x.numNavigations);var y=RmQ(x,L,D);if(y)return s32(x,L,y,"102",Gth(D)),_.Bp(y);var E,P,v,V;y=D.rootVe||(D==null?void 0:(E=D.response)==null?void 0:(P=E.responseContext)==null?void 0:(v=P.webResponseContextExtensionData)==null?void 0:(V=v.ytConfigData)==null?void 0:V.rootVisualElementType);!Z&&D&&CTR(x,D);var h,
H;E=D==null?void 0:(h=D.response)==null?void 0:(H=h.responseContext)==null?void 0:H.maxAgeSeconds;if(!Z&&!isNaN(E)){var k;_.u("kevlar_use_response_ttl_to_invalidate_cache")?k=(0,_.y5)()+1E3*E:_.u("kevlar_always_invalidate_cache")&&(k=0);isNaN(k)||(D.expirationTime=k)}_.JK(_.cy).prefetchCache_.clear();Z||D.page!=="watch"||D.type!=="reduced"&&S!==1?S=em_(x,D,Z,!!J,L,Q):(x.publishPageData(D),S=_.V0());Q=S.then(function(){var T=FA(L);T={endpoint:L,pageType:T,fromHistory:Z,response:D};T.navigationDoneMs=
_.$T("nd");x.fireEvent("yt-navigate-finish",T);var G;(G=_.yY().resolve(_.ZN(_.HA2)))==null||G.publish("navigation-end")});
D.csn&&y&&D.clientSideGrafts&&S.then(x.attachClientSideGrafts.bind(x,D,_.qu()));return Q};
_.K=zz.prototype;_.K.attachClientSideGrafts=function(x,L){x.clientSideGrafts&&L&&x.clientSideGrafts.forEach(function(D){if(L&&D){var S=_.CI(D);_.u("combine_ve_grafts")?_.sk().graftServerVe(D,L):_.XI(x.csn,L,S)}})};
_.K.handleSignalActionHistoryBack=function(){window.history.back()};
_.K.handleSignalActionCloseWindow=function(){window.close()};
_.K.handleSignalActionReloadPage=function(){this.reload()};
_.K.handleSignalActionSoftReloadPage=function(){R4h(this)};
_.K.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.K.fireEvent=function(x,L){x=new CustomEvent(x,{bubbles:!0,cancelable:!1,composed:!0,detail:L});this.dispatchEvent(x)};
_.K.addEventListener=function(x,L){this.JSC$14482_clientRoot.addEventListener(x,L)};
_.K.dispatchEvent=function(x){return this.JSC$14482_clientRoot.dispatchEvent(x)};
_.K.removeEventListener=function(x,L){this.JSC$14482_clientRoot.removeEventListener(x,L)};
zz[IZ]=[gkd,_.iM];_.Fyh=new w6("browse","h8y2qb");_.sx0=new w6("search","JzFVk");_.TR3=new w6("shorts","xwEKAe");_.eHh=new w6("watchFixie","nmfa2d");_.RHG=new w6("watchFlexy","CF909");_.G5h=new w6("watchGrid","Tm0L3c");_.CRG=new w6("watchLearningJourney","L3n37");var U5C;var wb_=function(){return _.e.apply(this,arguments)||this};
_.p(wb_,_.e);_.J3.Object.defineProperties(wb_,{template:{configurable:!0,enumerable:!0,get:function(){if(U5C===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);U5C=x}x=U5C;return x}}});
_.A([_.b(UvH.YtPlayerBehavior),_.r("design:type",Object)],wb_.prototype,"ytPlayerBehavior",void 0);_.A([_.w({is:"ytd-player"})],wb_);var Bah;var WMC;var qz2;var X6=function(){var x=_.e.apply(this,arguments)||this;x.forceModernIconButton=!1;x.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return x};
_.p(X6,_.e);X6.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]]"}}}}}};
X6.prototype.handleAccountLinkingStateChangedCommand=function(x){if(x=_.g(x,xcB)){var L,D=(L=this.data)==null?void 0:L.providerKey;L=x.providerKey;D&&L&&D.id===L.id&&D.subject===L.subject&&(x=x.linked,x!==void 0&&(this.set("data.linked",x),this.notifyPath("data.linked"),_.u("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(x)))}};
X6.prototype.setPlayerAccountLinkState=function(x){var L=new j_W;vE2(L,dYd(new MdQ,x));var D=_.Zs();D&&D.getPlayerPromise().then(function(S){S.setAccountLinkState(_.Gg(L.JSC$12174_serializeBinary(),4));S.updateAccountLinkingConfig(x)})};
X6.prototype.handleShowAccountLinkDialog=function(){var x=this.get("button.buttonRenderer.command");x&&_.H$([x],this.hostElement)};
_.J3.Object.defineProperties(X6.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}}}});
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],X6.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],X6.prototype,"ytRendererBehavior",void 0);_.A([_.b([_.ir.YtActionHandlerBehavior]),_.r("design:type",Object)],X6.prototype,"actionHandlerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],X6.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],X6.prototype,"overrides",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],X6.prototype,"forceModernIconButton",void 0);_.A([_.F({value:"bottom"}),_.r("design:type",String)],X6.prototype,"buttonTooltipPosition",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],X6.prototype,"forceIconButton",void 0);_.A([_.F(),_.r("design:type",Boolean)],X6.prototype,"disableTextTransform",void 0);
_.A([_.Y("data","data.linked","data.isWarning"),_.r("design:type",Object),_.r("design:paramtypes",[])],X6.prototype,"button",null);_.A([_.w({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],X6);
_.q(X6,"ytd-account-link-button-renderer",function(){if(qz2!==void 0)return qz2;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return qz2=x},{mode:1});var AXG;var $5A=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],cV=function(){return _.e.apply(this,arguments)||this};
_.p(cV,_.e);cV.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
cV.prototype.updateButtonActiveState=function(){var x=this,L=!!$5A.find(function(D){return x.currentState===D});
this.currentState==="PLAYLIST_LOOP_STATE_ONE"&&_.u("enable_web_delhi_icons")&&(L=!1);this.button&&(this.button.isPressed=L)};
_.J3.Object.defineProperties(cV.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var x,L;return((x=this.playlistLoopStateEntity)==null?void 0:x.state)||((L=this.data)==null?void 0:L.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var x=void 0,L;if(this.currentState&&((L=this.data)==null?0:L.states)){L=_.O(this.data.states);for(var D=L.next();!D.done;D=L.next()){D=_.g(D.value,_.Vpi);var S=void 0;if(((S=D)==null?void 0:S.state)===this.currentState){x=D;break}}}return x}}});
cV.prototype.updateButtonActiveState=cV.prototype.updateButtonActiveState;_.A([_.b(_.EG),_.r("design:type",Object)],cV.prototype,"ytdReduxBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],cV.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],cV.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.F({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.Ypw}),_.r("design:type",Object)],cV.prototype,"playlistLoopStateEntity",void 0);_.A([_.F(),_.r("design:type",Object)],cV.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Boolean)],cV.prototype,"forceIconOnly",void 0);_.A([_.F1("ytd-button-renderer"),_.r("design:type",_.TM)],cV.prototype,"button",void 0);
_.A([_.Y("data","playlistLoopStateEntity"),_.r("design:type",Object),_.r("design:paramtypes",[])],cV.prototype,"currentState",null);_.A([_.bN("currentButtonStateRenderer"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],cV.prototype,"updateButtonActiveState",null);_.A([_.Y("currentState"),_.r("design:type",Object),_.r("design:paramtypes",[])],cV.prototype,"currentButtonStateRenderer",null);
_.A([_.w({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],cV);
_.q(cV,"ytd-playlist-loop-button-renderer",function(){if(AXG!==void 0)return AXG;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return AXG=x},
{mode:1});var rXi;var NaB=_.p6("DOWNLOAD",{},"Download"),iAR=_.p6("DOWNLOADING",{},"Downloading"),fWd=_.p6("DOWNLOADED",{},"Downloaded"),okH=_.p6("RETRY",{},"Retry"),nO=function(){var x=_.e.apply(this,arguments)||this;x.forceIconButton=!1;x.forceIconOnly=!1;x.overrides=!1;x.buttonTooltipPosition=!1;x.styleActionButton=!1;x.disableTextTransform=!1;x.downloadProgress=0;x.isDownloadComplete=!1;x.isHidden=!0;x.transferState="TRANSFER_STATE_UNKNOWN";x.isVideoDeletedByUser=!1;x.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return x};
_.p(nO,_.e);_.K=nO.prototype;_.K.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.K.dataChanged=function(){var x;(x=this.data)!=null&&x.text||(x=_.i6(_.Jd().getState(),this.videoId),this.updateButtonState(x))};
_.K.computeVideoId=function(x){return x};
_.K.computePlayerStateEntityKey=function(x){return x};
_.K.showHideButton=function(){this.updateButtonVisibility()};
_.K.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;var x;((x=this.playerStateEntity)==null?void 0:x.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};
_.K.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.K.updateButtonState=function(x){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==iAR||!_.TD(x))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(x){case "TRANSFER_STATE_UNKNOWN":x=NaB;var L="OFFLINE_DOWNLOAD";var D="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":x=okH;L="OFFLINE_DOWNLOAD";D="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":x=fWd;L="OFFLINE_PIN";D="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":x=
iAR;L="OFFLINE_DOWNLOADING_ZERO";D="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":x=okH;L="OFFLINE_DOWNLOAD";D="ACTION_RETRY";break;default:x=NaB,L="OFFLINE_DOWNLOAD",D="ACTION_ADD"}this.isVideoDeletedByUser&&(x=NaB,L="OFFLINE_DOWNLOAD",D="ACTION_ADD");var S=Object.assign({},this.data);S.text=_.Dv(x);S.tooltip=x;S.icon={iconType:L};S.size="SIZE_DEFAULT";S.style="STYLE_DEFAULT";_.g(S.command,_.ke)&&(_.g(S.command,_.ke).action=D);this.set("data",S)}};
_.K.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var x="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?x="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?x="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?x="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?x="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?x="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(x="OFFLINE_PIN",this.isDownloadComplete=!0);var L;x!==((L=this.data.icon)==null?void 0:L.iconType)&&(L=Object.assign({},this.data),L.text=_.Dv(iAR),L.tooltip=iAR,L.icon={iconType:x},_.g(L.command,_.ke)&&(_.g(L.command,_.ke).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",L))}};
nO.prototype.updateProgress=nO.prototype.updateProgress;nO.prototype.onTransferStateChanged=nO.prototype.onTransferStateChanged;nO.prototype.showHideButton=nO.prototype.showHideButton;nO.prototype.dataChanged=nO.prototype.dataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],nO.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],nO.prototype,"ytdReduxBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],nO.prototype,"forceIconButton",void 0);
_.A([_.F(),_.r("design:type",Object)],nO.prototype,"forceIconOnly",void 0);_.A([_.F(),_.r("design:type",Object)],nO.prototype,"overrides",void 0);_.A([_.F(),_.r("design:type",Object)],nO.prototype,"buttonTooltipPosition",void 0);_.A([_.F(),_.r("design:type",Object)],nO.prototype,"styleActionButton",void 0);_.A([_.F(),_.r("design:type",Object)],nO.prototype,"disableTextTransform",void 0);
_.A([_.F({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.r("design:type",String)],nO.prototype,"videoId",void 0);_.A([_.F({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.r("design:type",String)],nO.prototype,"playerStateEntityKey",void 0);_.A([_.F(),_.r("design:type",Object)],nO.prototype,"data",void 0);_.A([_.F({selector:ot,selectorArgs:["videoId"]}),_.r("design:type",Object)],nO.prototype,"downloadProgress",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],nO.prototype,"isDownloadComplete",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],nO.prototype,"isHidden",void 0);_.A([_.F({selector:_.i6,selectorArgs:["videoId"]}),_.r("design:type",String)],nO.prototype,"transferState",void 0);_.A([_.F({selector:_.W$b,selectorArgs:["videoId"]}),_.r("design:type",Object)],nO.prototype,"isVideoDeletedByUser",void 0);
_.A([_.F({selector:Gy3,selectorArgs:["videoId"]}),_.r("design:type",Object)],nO.prototype,"offlineabilityState",void 0);_.A([_.F({selector:vYb,selectorArgs:["playerStateEntityKey"]}),_.r("design:type",Object)],nO.prototype,"playerStateEntity",void 0);_.A([_.F({value:!0}),_.r("design:type",Boolean)],nO.prototype,"showTooltips",void 0);_.A([_.F({value:!0}),_.r("design:type",Boolean)],nO.prototype,"sendCommandWhenDisabled",void 0);
_.A([_.F({value:!1}),_.r("design:type",Boolean)],nO.prototype,"disabled",void 0);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],nO.prototype,"dataChanged",null);_.A([_.GV("offlineabilityState","playerStateEntity"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],nO.prototype,"showHideButton",null);
_.A([_.GV("transferState","isVideoDeletedByUser"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],nO.prototype,"onTransferStateChanged",null);_.A([_.GV("downloadProgress"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],nO.prototype,"updateProgress",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],nO);
_.q(nO,"ytd-download-button-renderer",function(){if(rXi!==void 0)return rXi;var x=document.createElement("template");_.m(x,'\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>');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return rXi=x},{mode:2});var aWA;var zmA,Xb2=function(){if(zmA!==void 0)return zmA;var x=document.createElement("template");_.m(x,'\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 zmA=x};var cXi=_.u("web_button_rework")&&_.rO("BUTTON_REWORK")||_.u("web_button_rework_with_live"),nkA=_.dE("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,tQ=function(){var x=_.e.apply(this,arguments)||this;x.isPressed=!1;x.forceIconButton=!1;x.forceIconOnly=!1;x.forceModernIconButton=!1;x.alignByText=!1;x.isShorts=!1;x.animatedText=!1;x.shouldAnimate=!1;x.JSC$14521_browserSupportsAnimation=_.u("web_supports_animations_api");x.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};x.onTap=function(){var L;if((L=x.data)==null||!L.defaultNavigationEndpoint){var D;L=!((D=x.data)==null?0:D.isToggled);var S;if((S=x.data)==null||!S.preventAutoToggle){x.shouldAnimate=!1;x.disableTextUpdateJobId&&_.WW.cancelJob(x.disableTextUpdateJobId);x.disableTextUpdateJobId=_.WW.addLowPriorityJob(function(){x.disableTextUpdateJobId=void 0},nkA);
var Q;x.set("data.isToggled",!((Q=x.data)==null?0:Q.isToggled));D=x.getInnertubeIcon();S={toggled:L,actions:{}};D&&(S.actions[D.toLowerCase()]=L);_.MF(x.hostElement,"yt-toggle-button",S)}}};
return x};
_.p(tQ,_.e);_.K=tQ.prototype;_.K.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.WW.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.K.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.K.toggle=function(x){var L;this.set("data.isToggled",x!==void 0?x:!((L=this.data)==null?0:L.isToggled))};
_.K.handleUpdateToggleButtonStateCommand=function(x){if(this.data){x=_.g(x,ZdA);var L,D,S,Q=(L=this.data)==null?void 0:(D=L.toggleButtonSupportedData)==null?void 0:(S=D.toggleButtonIdData)==null?void 0:S.id;Q&&x&&Q===(x==null?void 0:x.buttonId)&&this.set("data.isToggled",x.toggled)}};
_.K.handleUpdateToggleButtonTextAction=function(x){if(this.data){x=_.g(x,bfG);var L,D,S,Q=(L=this.data)==null?void 0:(D=L.toggleButtonSupportedData)==null?void 0:(S=D.toggleButtonIdData)==null?void 0:S.id;Q&&x&&Q===(x==null?void 0:x.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=x.defaultNumericalValue,this.set("data.defaultText",x.defaultText),this.set("data.toggledText",x.toggledText),this.shouldAnimate=!1)}};
_.K.getInnertubeIcon=function(){var x=this.data;if(x){var L,D,S=((L=x.defaultIcon)==null?0:L.iconType)?(D=x.defaultIcon)==null?void 0:D.iconType:null,Q,J;L=((Q=x.toggledIcon)==null?0:Q.iconType)?(J=x.toggledIcon)==null?void 0:J.iconType:S;return x.isToggled?L:S}};
_.K.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.J3.Object.defineProperties(tQ.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var x={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$14521_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var L=x.renderer;var D=x.element;var S=x.toggled;var Q=x.onTapCallback;var J=x.commandClientArgs;var Z=x.overrides;var y=x.forceIcon;var E=x.forceModernIconButton;var P=x.forceDisabled;var v=x.useAnimatedText;var V=x.animatedTextProps;x=etf(L,S);y=!L.defaultIcon||!y&&L.defaultText?L.defaultIcon?"leading":void 0:E?"icon-only":"icon-only-40";y==="icon-only-40"&&(x.type="text");var h;E=Object;var H=E.assign,k;a:switch((k=
L.style)==null?void 0:k.styleType){case "STYLE_COMPACT_GRAY":k={size:"S"};break a;default:k={size:"M"}}var T=!!S;var G=(G=S&&L.toggledText||L.defaultText)?_.$i(G):void 0;v?(v=_.SR(S&&L.toggledText||L.defaultText))&&V&&!isNaN(Number(V.numberValue))?(V.numberText=v,S&&(V.numberValue+=1),v=V):v=void 0:v=void 0;var U,l,X,f;var N=(V=((l=S?L.toggledAccessibilityData||((N=L.toggledText)==null?void 0:N.accessibility):L.accessibilityData||((U=L.defaultText)==null?void 0:U.accessibility))==null?void 0:(X=l.accessibilityData)==
null?void 0:X.label)||((f=L.accessibility)==null?void 0:f.label))?V:_.SR(S&&L.toggledText||L.defaultText);P=P===void 0?L.isDisabled:P;D=ToG(L,S,Q,D,J);S=s50(L,S);S!=null&&S.length?(S=_.a6({innertubeCommand:dsb(S),forceNewState:!0}),S=z$(S)?S:void 0):S=void 0;L=H.call(E,{},x,k,{iconPosition:y},Z,{focused:!1,toggled:T,toggleable:!0,formattedButtonText:G,animatedTextProps:v,accessibilityLabel:N,disabled:P,onTap:D,aTagConfig:S},qof((h=L.colorData)==null?void 0:h.basicColorPaletteData));L.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(L.type="filled");return L}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var x=this.getInnertubeIcon();if(x)return _.gB(x)}}});
tQ.prototype.resetAnimation=tQ.prototype.resetAnimation;_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],tQ.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],tQ.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],tQ.prototype,"ytActionHandlerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],tQ.prototype,"data",void 0);
_.A([_.F(),_.r("design:type",Object)],tQ.prototype,"isPressed",void 0);_.A([_.F(),_.r("design:type",Object)],tQ.prototype,"forceIconButton",void 0);_.A([_.F(),_.r("design:type",Object)],tQ.prototype,"forceIconOnly",void 0);_.A([_.F(),_.r("design:type",Object)],tQ.prototype,"forceModernIconButton",void 0);_.A([_.F(),_.r("design:type",Object)],tQ.prototype,"alignByText",void 0);_.A([_.F(),_.r("design:type",Object)],tQ.prototype,"overrides",void 0);
_.A([_.F(),_.r("design:type",Boolean)],tQ.prototype,"disabled",void 0);_.A([_.F(),_.r("design:type",Object)],tQ.prototype,"isShorts",void 0);_.A([_.F(),_.r("design:type",Object)],tQ.prototype,"buttonTooltipPosition",void 0);_.A([_.F(),_.r("design:type",Object)],tQ.prototype,"animatedText",void 0);_.A([_.F(),_.r("design:type",String)],tQ.prototype,"textNumberValue",void 0);_.A([_.F({computed:"computeTooltip(data, data.isToggled)"}),_.r("design:type",Object)],tQ.prototype,"tooltip",void 0);
_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],tQ.prototype,"resetAnimation",null);_.A([_.Y("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.r("design:type",Object),_.r("design:paramtypes",[])],tQ.prototype,"computedButtonShape",null);_.A([_.Y("data.*"),_.r("design:type",Object),_.r("design:paramtypes",[])],tQ.prototype,"computedIcon",null);
_.A([_.w({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],tQ);cXi&&_.q(tQ,"ytd-toggle-button-renderer",Xb2,{mode:_.Vm("kevlar_poly_si_batch_j081")?1:2});var tAi=_.B(function(x){function L(P){var v;return _.I(function(V){if(V.nextAddress==1)return(v=!G70(P,y())||!y().enabled)?V.jumpTo(2):V.yield(Bo3(),3);V.nextAddress!=2&&(v=V.yieldResult);if(v)return V.return();D();setTimeout(function(){Z(!1)},1500);
_.Y2(V)})}
function D(){setTimeout(function(){Z(!0);var P;(P=S.lottieEl)==null||P.goToAndPlay(0)},150)}
var S=_.uk(),Q=_.O(_.HB(!1,void 0,"UfUosc")),J=Q.next().value,Z=Q.next().value,y=_.ZH(x.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.wO(function(){var P,v;((P=x.settings)==null?void 0:(v=P.call(x))==null?void 0:v.uniqueId)==="this is not intended behavior"&&_.qy(new _.RZ("Smartimation Settings is undefined"))});
_.Us(function(){y().experimentEnabled&&(y().enabled?C30(L):(Z(!1),lup(L)),_.wH(function(){lup(L)}))},"IHhVmc");
_.Us(function(){y().timings.join("");y().experimentEnabled&&(Uvf(y()),_.wH(function(){we0(y())}))},"fsfhOe");
var E=_.m5(function(){var P=S,v=y().uniqueId+"-border",V,h;var H="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((h=(V=_.yY().resolve(_.ZN(_.Dt)))==null?void 0:V())!=null&&h?"dark":"light")+"_v2.json";return{animationRef:P,animationConfig:{name:v,autoplay:!1,loop:!1,path:H}}},void 0,"UWvUGe");
Q={};return _.M("yt-smartimation",{class:_.gF(x.className,"smartimation",(Q["smartimation--experiment-enabled"]=function(){return y().experimentEnabled},Q["smartimation--active-border"]=J,Q["smartimation--enable-masking"]=Waw(),Q))},_.M(_.d,{cond:function(){return y().experimentEnabled},
then:function(){return _.M("div",{class:"smartimation__border"},_.M(_.fJ,{className:"smartimation__border-gradient",data:E,animationName:function(){return E().animationConfig.name}}))}}),_.M("div",{class:"smartimation__content"},x.children))},"ea");
tAi.idomCompat=!0;_.dF(tAi,"yt-smartimation",{props:{className:_.pJ,settings:_.pJ}});var x5=function(){var x=_.e.apply(this,arguments)||this;x.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};x.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};x.shouldEnableSmartimation=!1;return x};
_.p(x5,_.e);x5.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
x5.prototype.onDataChanged=function(){var x,L;this.shouldEnableSmartimation=(((x=this.data)==null?void 0:(L=x.timedAnimationData)==null?void 0:L.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
x5.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var x=_.g(this.data.likeButton,_.IQ),L=_.g(this.data.dislikeButton,_.IQ);return!!((x==null?0:x.isToggled)||(L==null?0:L.isToggled))};
x5.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]]"}}}}}};
_.J3.Object.defineProperties(x5.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var x,L,D=((x=this.data)==null?void 0:(L=x.timedAnimationData)==null?void 0:L.animationTiming)||[];return{uniqueId:"like-dislike",timings:D,enabled:this.shouldEnableSmartimation,experimentEnabled:D.length>0}}}});
x5.prototype.onDataChanged=x5.prototype.onDataChanged;_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],x5.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],x5.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],x5.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],x5.prototype,"likeButtonOverride",void 0);_.A([_.F(),_.r("design:type",Object)],x5.prototype,"dislikeButtonOverride",void 0);
_.A([_.Y("shouldEnableSmartimation"),_.r("design:type",Object),_.r("design:paramtypes",[])],x5.prototype,"smartimationSettings",null);_.A([_.bN("data"),_.mX("yt-toggle-button"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],x5.prototype,"onDataChanged",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],x5);
_.q(x5,"ytd-segmented-like-dislike-button-renderer",function(){if(aWA!==void 0)return aWA;var x=document.createElement("template");_.m(x,'\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>');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return aWA=x},{mode:1});var xQR;var LpQ;(LpQ=document.body)==null||LpQ.setAttribute("rounded-container","");var DQd={};DQd.YtToggleButtonBehavior=[_.ir.YtActionHandlerBehavior,xs.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 x=this.data.isToggled;if(!this.isModal_(x)){if(!this.data.preventAutoToggle){this.toggle();var L={toggled:this.data.isToggled,actions:{}};L.actions[this.buttonIcon]=this.data.isToggled;_.MF(this.hostElement,"yt-toggle-button",L)}L=this.data.defaultServiceEndpoint||null;var D=this.data.toggledServiceEndpoint||null;if(L&&D||L&&this.data.preventAutoToggle)x=x?D:L,L=this.disableCommandHandlerOverride,_.u("killswitch_toggle_button_behavior_resolve_command")||L?_.jq(this.hostElement,
[x]):_.mA(x,this.hostElement),_.MF(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:x})}},
stateChanged_:function(){var x=this.data;if(x){var L=x.isToggled;this._setEndpoint(this.computeEndpoint_(x));this._setServiceEndpoint(this.computeServiceEndpoint_(x));this._setButtonIcon(this.computeButtonIcon_(x,L));this._setButtonText(this.computeButtonText_(x,L));this._setButtonAccessibility(this.computeAccessibility_(x,L));this._setButtonTooltip(this.computeTooltip_(x,L));this._setButtonClass(this.computeButtonClass_(x,L));this._setIconPositionType(this.computeIconPositionType_(x));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=L):this.elements_.button.setAttribute("aria-pressed",L));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=L)}},
shouldSetIconActiveState_:function(){return _.u("kevlar_system_icons")},
toggle:function(x){this.set("data.isToggled",x!==void 0?x:!this.data.isToggled);_.u("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(x){if(x){var L,D;return!!((L=this.data)==null?0:(D=L.toggledServiceEndpoint)==null?0:D.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(x){return x&&x.defaultNavigationEndpoint||null},
computeButtonIcon_:function(x,L){var D=x&&x.defaultIcon?_.gB(x.defaultIcon.iconType):null;x=x&&x.toggledIcon?_.gB(x.toggledIcon.iconType):D;return L?x:D},
handleUpdateToggleButtonStateCommand_:function(x){x=x.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==x.buttonId&&this.toggle(x.toggled)},
computeButtonText_:function(x,L){return x?L&&x.toggledText||x.defaultText||null:null},
computeAccessibility_:function(x,L){return x?(L?this.get("toggledAccessibilityData.accessibilityData",x):this.get("accessibilityData.accessibilityData",x))||x.accessibility||null:null},
computeTooltip_:function(x,L){return x?L&&x.toggledTooltip||x.defaultTooltip||null:null},
computeButtonClass_:function(x,L){if(!x)return"";var D="",S=x.toggledStyle||x.style;if(L=L?S:x.style){L.styleType&&(L=L.styleType);try{D+=L.toLowerCase().replace(/_/g,"-")+" "}catch(Q){_.A7(Q,L,typeof L),_.qy(Q)}}if(x=x.size){x.sizeType&&(x=x.sizeType);try{D+=x.toLowerCase().replace(/_/g,"-")+" "}catch(Q){_.A7(Q,x,typeof x),_.qy(Q)}}return D.trim()},
computeIconPositionType_:function(x){return x&&x.iconPosition||null},
computeServiceEndpoint_:function(x){var L=x&&x.serviceEndpoint,D=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return L?L:D&&x.command?x.command:null},
handleUpdateToggleButtonTextAction_:function(x){x=x.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==x.buttonId&&(this.set("data.defaultText",x.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",x.toggledText),this.notifyPath("data.toggledText"))}}];_.BD("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var SCW=_.u("web_button_rework")&&_.rO("BUTTON_REWORK")||_.u("web_button_rework_with_live"),LE=function(){var x=_.e.apply(this,arguments)||this;x.systemIcons=_.u("kevlar_system_icons");x.roundedContainer=!0;return x};
_.p(LE,_.e);LE.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
LE.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var x=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var L={toggled:!!this.data.isToggled,actions:{}};L.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var D,S;L.actions.playlistId=(D=this.data.defaultServiceEndpoint)==null?void 0:(S=D.playlistEditEndpoint)==null?void 0:S.playlistId;_.MF(this.hostElement,"yt-toggle-button",L)}(x=x?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(x)}};
LE.prototype.onYtNavigate=function(x){var L=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(x.detail.endpoint);L&&(x.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(L))};
_.J3.Object.defineProperties(LE,{template:{configurable:!0,enumerable:!0,get:function(){if(xQR===void 0){var x=document.createElement("template");_.m(x,"\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");x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);xQR=x}x=xQR;return x}}});
LE.prototype.onYtNavigate=LE.prototype.onYtNavigate;_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],LE.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],LE.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.Fz),_.r("design:type",Object)],LE.prototype,"ytdOpenPopupBehavior",void 0);_.A([_.b(DQd.YtToggleButtonBehavior),_.r("design:type",Object)],LE.prototype,"ytToggleButtonBehavior",void 0);
_.A([_.F(),_.r("design:type",Object)],LE.prototype,"data",void 0);_.A([_.F({value:!0}),_.r("design:type",Boolean)],LE.prototype,"showTooltips",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],LE.prototype,"systemIcons",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],LE.prototype,"roundedContainer",void 0);_.A([_.mX("yt-navigate"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],LE.prototype,"onYtNavigate",null);
_.A([_.w({is:"ytd-toggle-button-renderer",disableElementRegistration:SCW})],LE);var Q7H,JgR;_.Dk=new _.vx("PANEL_CONTROLLER_TOKEN");_.SE=new _.vx("SHEET_CONTROLLER_TOKEN");_.Qw=new _.vx("DIALOG_CONTROLLER_TOKEN");Q7H=new _.vx("DIALOG_CONTAINER_TOKEN");JgR=new _.vx("ENGAGEMENT_PANEL_ELEMENT_TOKEN");_.Jy=new _.vx("PERSISTENT_PANEL_CONTROLLER_TOKEN");var au0=_.p6("DOWNLOAD",{},"Download"),zts=_.p6("DOWNLOADING",{},"Downloading"),Xeb=_.p6("DOWNLOADED",{},"Downloaded"),ct4=_.p6("RETRY",{},"Retry");var Kpr=_.B(function(x){var L=D50,D=function(){return""},S=nCw(x.data),Q=tan(x.data),J=x50(x.data),Z=LMw(x.data);
L=function(){var y=x.data(),E=fuf(y,S(),Q(),J(),Z()),P=!!y.videoId,v=E.text;return{title:P?v:void 0,tooltip:P?void 0:v,accessibilityText:v,onTap:E.onTap,iconName:E.iconType,style:y.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:E.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:y.buttonSize}};
D={};D=_.gF("ytDownloadButtonViewModelHost",(D.ytDownloadButtonViewModelIsHidden=function(){var y=x.data(),E=Z();return y.playlistId||E()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||E()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},D));
return _.M("download-button-view-model",{class:D},_.M(_.qP,{data:L}))},"fa");
Kpr.idomCompat=!0;var Ek3=new _.vx("SUBMIT_API_SERVICE_TOKEN");var ZAh,yXO,MAO={submitAction:"SUBMIT_ACTION_SUBMISSION",allFields:!0};var FMw=new _.vx("RENDERER_LOGGER_TOKEN");var pbO=new _.vx("RENDERER_STAMPER_OPTIONS_TOKEN");var d5w;_.Ye=new TFA;d5w=new Map;var m5b="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel gridShelfViewModel".split(" "),Yzf=["notificationTextRenderer","notificationMultiActionRenderer"],
bAn="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),kt0=PTs(function(x){return _.WB(x==null?void 0:x.targetId)}).useUpdatableData;var gkO=0;_.Fj.debugName="EjJbCe";var Ojr=_.B(function(x){var L=x.data;x=x.className;_.UX(function(){L().formId||_.BI(Error("Hh"))});
var D=_.OAb(function(){return L().formId},function(){return L().beforeSubmitCommand},function(){return L().afterSubmitCommand}),S=D.submitForm,Q=D.isValid,J=D.isSubmitting,Z=function(){return{state:L().isDisabled||!Q()||J()?"disabled":"active"}};
return _.M("yt-submit-button-view-model",{class:_.gF("ytSubmitButtonViewModelHost",x)},_.M(_.Fj,{data:function(){return L().button}},{buttonViewModel:function(y){return _.M(_.qP,{data:y.data,
buttonOverrides:Z,onClick:S})}}))},"ia");var ygR=_.B(function(x){var L=x.backgroundLottieRef;var D=x.foregroundLottieRef;var S=x.children;var Q=x.wrapperClass;var J=x.disableAnimation;x=function(){return(_.u("web_animated_actions")||_.u("web_animated_actions_v2"))&&!(J==null?0:J())};
return _.M("yt-animated-action",{class:_.gF("ytAnimatedActionHost",Q)},_.M("div",{class:"ytAnimatedActionContentWithBackground"},_.M(_.d,{cond:x,then:function(){return _.M(Zj2,{wrapperClass:"ytAnimatedActionBackgroundContainer",lottieClass:"ytAnimatedActionBackground",lottiePlayerProps:function(){return{animationRef:L==null?void 0:L(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(s33()?"dark":"light")+"_v5.json"}}}})}}),S),_.M(_.d,{cond:x,
then:function(){return _.M(Zj2,{lottiePlayerProps:function(){return{animationRef:D==null?void 0:D(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(s33()?"dark":"light")+"_v4.json"}}}})}}))},"ja");
ygR.idomCompat=!0;var Zj2=_.B(function(x){var L=x.wrapperClass;var D=x.lottieClass;var S=x.lottiePlayerProps;return _.M("div",{class:_.gF("ytAnimatedActionLottie",L),"aria-hidden":"true"},_.M(_.fJ,{className:D,data:S,animationName:function(){return S().animationConfig.name}}))},"ka");var Tas={isOpen:!1};var Rmb={isAllowed:!1};var CTw={errorMessage:"",title:"",privacy:"",isDisabled:!0};var U54={isOpen:!1};var Baf={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var IT2={response:void 0};var qzh=function(x,L){x=x===void 0?IT2:x;switch(L.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},x,{response:L.payload});default:return x}};var EU_={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var AXs=function(x,L){x=x===void 0?EU_:x;switch(L.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},x,{nextDisabled:L.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},x,{nextCommand:L.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},x,{footerSubmissionData:L.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},x,{isImpersonationValid:L.payload});default:return x}};var Mx_={reportFormData:void 0,reportDetailsFormData:void 0};var $50=function(x,L){x=x===void 0?Mx_:x;switch(L.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},x,{reportFormData:L.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},x,{reportDetailsFormData:L.payload});default:return x}};var dQC=void 0;_.u("mweb_enable_redux_store_on_demand")||(dQC=new Qy(rXn()));var KE=_.u("enable_web_delhi_icons");var Pph=_.B(function(x){x=_.ym(x,{themeOverride:void 0,animationRef:{}});var L=x.animatedIconType,D=x.active,S=x.themeOverride,Q=x.animationRef;x=x.staticIconFn;var J=_.O(_.HB(void 0,void 0,"l48agc")),Z=J.next().value,y=J.next().value,E=function(){a:{var G=L();var U=S==null?void 0:S();var l;U=(U==null?void 0:U.useDarkTheme)||((l=_.yY().resolve(_.ZN(_.Dt)))==null?void 0:l());switch(G){case "LIKE":dQC||(dQC=new Qy(rXn()));G=(G=kKs(dQC.getState()))&&G.animationLightUrl&&G.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:U?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:U?G.animationDarkUrl:G.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(G){U=G;break a}U="animated_like_icon_"+(U?"dark":"light")+"_"+(KE?"v5":"v4");U={lottiePlayerProps:{animationConfig:{name:U,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+U+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"+
(KE?" animated-like-icon-delhi":"")}}},totalFrames:KE?120:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":U={lottiePlayerProps:{animationConfig:{name:U?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(U?"dark":"light")+(KE?"_v4":"")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"+(KE?" animated-subscribe-icon-delhi":"")}}},totalFrames:KE?120:79,lazyLoad:!1};break a}U=
void 0}return U},P=function(){var G,U;
return(U=(G=E())==null?void 0:G.lottiePlayerProps.animationConfig.name)!=null?U:""},v=function(){if(E()){var G=E().lottiePlayerProps.animationConfig.path;
return lc.get(G)||Z()}};
J=_.O(_.HB(!1,void 0,"sDrGId"));var V=J.next().value;J=J.next().value;var h=fWO(J),H=function(){var G=E(),U,l,X;return(X=G==null?void 0:(U=G.lottiePlayerProps.animationConfig)==null?void 0:(l=U.rendererSettings)==null?void 0:l.className)!=null?X:""},k=void 0,T=void 0;
_.Us(function(){var G=E(),U=P(),l=v(),X=V(),f=D();if(G&&(T!==U&&(T=U,k=f,U=Q(),h.animationConfig=G.lottiePlayerProps.animationConfig,h.animationRef=U,l&&(h.animationConfig.animationData=l,h.animationConfig.path=void 0),U=G.lottiePlayerProps.animationConfig.path,!lc.get(U)&&G.lazyLoad&&U&&iAw(U,y)),!(X||G.lazyLoad&&!l))){if(l=!Q().lottieEl)f?(X=G.totalFrames,h.animationConfig.initialSegment=[X-1,X]):h.animationConfig.initialSegment=void 0;if(k!==f&&!l)if(l=Q(),f){var N;(N=l.lottieEl)==null||N.playSegments([0,
G.totalFrames],!0)}else{var z;(z=l.lottieEl)==null||z.playSegments([0,1],!0)}k=f}},"RQVZ1d");
return _.M("animated-icon",{class:"ytAnimatedIconHost"},_.M(_.d,{cond:function(){var G,U;return!((G=E())==null||!G.lottiePlayerProps.animationConfig.path||((U=E())==null?0:U.lazyLoad)&&!v()||V())},
then:function(){return _.M(_.fJ,{data:h,animationName:P,className:H,animationRef:Q})},
else:x}))},"ma");_.Oa=_.B(function(x){var L=_.x3("yt-subscribe-button-view-model"),D=_.x3("div"),S=_.x3("div"),Q=_.uk(),J=_.uk(),Z=_.uk(),y=_.mF(uln,function(){return x.data().stateEntityStoreKey}),E=_.mF(gCG,function(){var c4,hr;
return(hr=(c4=x.data().notificationStateEntityStoreKeys)==null?void 0:c4.subsNotificationStateKey)!=null?hr:""}),P=function(){return!x.data().enableSubscribeButtonPostClickAnimation},v=_.O(_.HB(0,void 0,"YtsSKb")),V=v.next().value,h=v.next().value;
v=_.O(_.HB(0,void 0,"V6JxRe"));var H=v.next().value,k=v.next().value;v=_.O(_.HB(!1,void 0,"JUCSZ"));var T=v.next().value,G=v.next().value;v=_.O(_.HB(!1,void 0,"oV6jwf"));var U=v.next().value,l=v.next().value;v=_.O(_.HB(!1,void 0,"hK1Whe"));var X=v.next().value,f=v.next().value,N;v=_.O(_.HB(!1,void 0,"Asaolf"));var z=v.next().value,xf=v.next().value,K3=function(){l(!0);_.GR(_.WW,function(){l(!1)},1500)};
_.Us(function(){var c4=U();_.hI(function(){c4&&!P()&&y()&&DQO(Q,J,Z)})},"Qq6Hsf");
_.Us(function(){var c4=y();_.hI(function(){if(!P()&&c4){var hr;((hr=x.animateWidth)==null?0:hr.call(x))&&Lpb(L.value,!!c4.subscribed,V(),H());var GB,C2;((GB=N)==null?0:GB.subscribed)||!c4.subscribed||c4.key!==((C2=N)==null?void 0:C2.key)||K3();N=c4}})},"hog8te");
v=_.m5(function(){var c4,hr,GB,C2=x.data(),X9=!((c4=y())==null||!c4.subscribed);c4=!((hr=x.isOverlay)==null||!hr.call(x));hr=T()?L:void 0;var vs=(GB=E())==null?void 0:GB.state;GB=z();xQw(C2,vs);return zm0({model:C2,subscribed:X9,isOverlay:c4,element:hr,notificationState:vs,disableTextEllipsis:!0,focused:GB})},void 0,"hc1PRd");
var P4=function(){var c4;if(!P()&&((c4=x.animateWidth)==null?0:c4.call(x))&&(D==null?0:D.value)&&(S==null?0:S.value)&&!X()){c4=y();var hr=_.O((c4==null?0:c4.subscribed)?[D,S]:[S,D]),GB=hr.next().value;hr=hr.next().value;GB=Math.ceil(GB.value.getBoundingClientRect().width);hr=Math.ceil(hr.value.getBoundingClientRect().width);h(GB);k(hr);Lpb(L.value,!(c4==null||!c4.subscribed),GB,hr);f(!0)}},kf=_.kO(function(c4){P4();
var hr=y();hr&&(c4.detail.endpoint.subscribeEndpoint||c4.detail.endpoint.unsubscribeEndpoint)&&cXn(L.value,!hr.subscribed,hr)}),H4=function(){var c4=_.yY().resolve(_.ZN(_.CJ));
c4&&xf(c4.isKeyBoardInUse())},p3=function(){xf(!1)};
_.t7("yt-player-subscribe",function(c4){var hr=y();hr&&c4===x.data().channelId&&cXn(L.value,!0,hr)});
_.t7("yt-player-unsubscribe",function(c4){var hr=y();hr&&c4===x.data().channelId&&cXn(L.value,!1,hr)});
_.t7("yt-update-subscribe-button-action",function(c4){c4=_.g(c4,irW);var hr=y();hr&&c4&&c4.channelId===x.data().channelId&&cXn(L.value,!!c4.subscribed,hr)});
_.wO(function(){L.value&&(L.value.addEventListener("focusin",H4),L.value.addEventListener("focusout",p3));var c4=_.TG(_.WW,function(){P4()});
G(!0);_.wH(function(){_.WW.cancelJob(c4);L.value&&(L.value.removeEventListener("focusin",H4),L.value.removeEventListener("focusout",p3))})});
var w0=function(){var c4,hr,GB;if(GB=!((c4=y())==null||!c4.subscribed))c4=!!x.data().disableNotificationBell,GB=(hr=E())==null?void 0:hr.state,GB=!c4&&!!GB;return GB},Rn=function(){var c4;
return!((c4=y())==null?0:c4.subscribed)},lG=function(){var c4,hr;
if(hr=Rn()){hr=!!x.data().disableNotificationBell;var GB=(c4=E())==null?void 0:c4.state;hr=!hr&&!!GB}return hr},xX={},UR={};
return _.M("yt-subscribe-button-view-model",{class:_.gF(x.className,"ytSubscribeButtonViewModelHost",(xX.ytSubscribeButtonViewModelHostCanAnimateWidth=function(){var c4,hr;return!((c4=y())==null||!c4.subscribed)&&((hr=x.animateWidth)==null?void 0:hr.call(x))&&U()},xX.ytSubscribeButtonViewModelHostHidden=function(){var c4;
return!((c4=y())==null?0:c4.subscribed)&&x.data().hideWhenUnsubscribed},xX)),
el:L,"on:yt-service-request-sent":kf},_.M(ygR,{backgroundLottieRef:Q,foregroundLottieRef:J,wrapperClass:_.gF("ytSubscribeButtonViewModelAnimatedActionWrapper",(UR.ytSubscribeButtonViewModelAnimatedActionWrapperIsAnimating=function(){var c4;return((c4=x.animateWidth)==null?void 0:c4.call(x))&&U()},UR.ytSubscribeButtonViewModelStaticWidth=function(){var c4;
return!((c4=x.animateWidth)==null?0:c4.call(x))},UR)),
disableAnimation:P},_.M("div",{el:D,class:"ytSubscribeButtonViewModelContainer"},_.M(_.W9,{data:v,icon:function(){return _.M(_.d,{cond:w0,then:function(){var c4=function(){var hr;return Xbh((hr=E())==null?void 0:hr.state)};
return _.M(_.d,{cond:function(){return P()||c4()!=="NOTIFICATIONS_NONE"},
then:function(){return _.M(_.YO,{icon:c4})},
else:function(){return _.M(Pph,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:Z})}})}})},
secondaryIconName:function(){return w0()?"EXPAND":void 0}}))),_.M("div",{el:S,
class:"ytSubscribeButtonViewModelInvisible"},_.M(_.d,{cond:function(){var c4;return((c4=x.animateWidth)==null?void 0:c4.call(x))&&!P()&&!X()},
then:function(){return _.M(_.W9,{data:_.m5(function(){var c4;return zm0({model:x.data(),subscribed:Rn(),isOverlay:!((c4=x.isOverlay)==null||!c4.call(x)),element:L,disableTextEllipsis:!0})},void 0,"L4sKmd"),
iconName:function(){var c4;return lG()?Xbh((c4=E())==null?void 0:c4.state):void 0},
secondaryIconName:function(){return lG()?"EXPAND":void 0}})}})))},"pa");
_.Oa.idomCompat=!0;var j7Q=_.B(function(x){var L=x.data;var D=_.mF(uln,function(){return L().subscriptionStateEntityKey});
return _.M(_.d,{cond:function(){var S=L(),Q=D();return!S.hideWhenUnsubscribed||(Q==null?0:Q.subscribed)?_.g(L().button,_.de):void 0},
then:function(S){return _.M("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.M(_.qP,{data:S,buttonOverrides:function(){return{toggled:!0}}}))}})},"qa");
j7Q.idomCompat=!0;var vUh,Zk;vUh=_.B(function(x){return _.M(_.Fj,{data:function(){return x.actionRow().actions}},{buttonViewModel:function(L){var D=L.data;
return _.M(Zk,{isRow:x.isRow,isIconOnlyButton:function(){return SC0(D())},
useIntrinsicWidth:x.useIntrinsicWidth},_.M(_.qP,{data:D}))},
subscribeButtonViewModel:function(L){return _.M(Zk,{isRow:x.isRow},_.M(_.Oa,{data:L.data,isOverlay:!1,animateWidth:function(){return!x.isRow()}}))},
downloadButtonViewModel:function(L){var D=L.data;return _.M(Zk,{isRow:x.isRow,isIconOnlyButton:function(){return!!D().playlistId}},_.M(Kpr,{data:D}))},
submitButtonViewModel:function(L){var D=L.data;return _.M(Zk,{isRow:x.isRow,isIconOnlyButton:function(){var S=D();return SC0(_.g(S==null?void 0:S.button,_.de))}},_.M(Ojr,{data:D}))},
toggleButtonViewModel:function(L){var D=L.data;return _.M(Zk,{isRow:x.isRow,isIconOnlyButton:function(){var S=D();return SC0(_.g(S.isToggled?S.toggledButtonViewModel:S.defaultButtonViewModel,_.de))}},_.M(_.JT,{data:D}))},
subscribePlusButtonViewModel:function(L){return _.M(Zk,{isRow:x.isRow},_.M(j7Q,{data:L.data}))}})},"ra");
Zk=_.B(function(x){var L={};return _.M("div",{class:_.gF("ytFlexibleActionsViewModelAction",(L.ytFlexibleActionsViewModelActionRowAction=x.isRow,L.ytFlexibleActionsViewModelActionIntrinsicWidth=x.useIntrinsicWidth,L.ytFlexibleActionsViewModelActionRowActionFeaturePhone=!1,L.ytFlexibleActionsViewModelActionIconOnlyButton=x.isIconOnlyButton,L))},x.children)},"sa");
_.yw=_.B(function(x){var L=function(){var S;return((S=x.layout)==null?void 0:S.call(x))===1},D={};
return _.M("yt-flexible-actions-view-model",{class:_.gF("ytFlexibleActionsViewModelHost",x.className,(D.ytFlexibleActionsViewModelInline=function(){return!L()},D.ytFlexibleActionsViewModelScrollable=function(){return x.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},D))},_.M(_.R1,{each:function(){return x.data().actionsRows||[]}},function(S){return _.M(_.d,{cond:L,
then:function(){return _.M("div",{class:"ytFlexibleActionsViewModelActionRow"},_.M(vUh,{actionRow:S,isRow:L,useIntrinsicWidth:function(){return!!x.data().respectActionIntrinsicWidth}}))},
else:function(){return _.M(vUh,{actionRow:S,isRow:L})}})}))},"ta");_.dF(_.yw,"yt-flexible-actions-view-model",{props:{data:_.pJ,layout:_.pJ,justifyContentOverride:_.pJ,className:_.pJ}});_.Ib=_.B(function(x){var L=_.mF(fu,function(){var Q;return(Q=x.data().dislikeEntityKey)!=null?Q:""}),D=_.m5(function(){var Q=L();
return Q?Q.likeStatus==="DISLIKE":_.g(x.data().toggleButtonViewModel,_.j3).isToggled},void 0,"fNr9he"),S=_.m5(function(){return Object.assign({},_.g(x.data().toggleButtonViewModel,_.j3),{isToggled:D()})},void 0,"AezoCc");
return _.M("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.M(_.JT,{data:S,buttonShapeOverrides:x.buttonShapeOverrideables,onToggle:function(Q){var J=L();J&&Q!==(J.likeStatus==="DISLIKE")&&J.key&&_.Ok(_.B2("likeStatusEntity",J.key,{likeStatus:Q?"DISLIKE":"INDIFFERENT",hadUserInteraction:Q}))}}))},"ua");
_.Ib.idomCompat=!0;_.Ea=_.B(function(x){var L=_.u("web_supports_animations_api"),D=yO(function(h){var H=P();if(!h){var k,T;return{numberText:(T=H==null?void 0:(k=H.likeCountIfIndifferent)==null?void 0:k.content)!=null?T:"",numberValue:Number(H==null?void 0:H.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var G;k=(H==null?void 0:(G=H.likeCountIfIndifferent)==null?void 0:G.content)!==h.numberText;if(y()||!k)return h;var U;return{numberText:(H==null?void 0:(U=H.likeCountIfIndifferent)==null?void 0:U.content)||
"",numberValue:Number(H==null?void 0:H.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!H}}),S=yO(function(h){var H=P();
if(!h){var k,T;return{numberText:(T=H==null?void 0:(k=H.likeCountIfLiked)==null?void 0:k.content)!=null?T:"",numberValue:Number(H==null?void 0:H.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var G;k=(H==null?void 0:(G=H.likeCountIfIndifferent)==null?void 0:G.content)!==h.numberText;if(y()||!k)return h;var U;return{numberText:(H==null?void 0:(U=H.likeCountIfLiked)==null?void 0:U.content)||"",numberValue:Number(H==null?void 0:H.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!H}}),Q=_.O(_.HB(void 0,
void 0,"xldjge")),J=Q.next().value,Z=Q.next().value,y=J,E=_.mF(fu,function(){var h,H;
return(H=(h=x.data())==null?void 0:h.likeStatusEntityKey)!=null?H:""}),P=_.mF(X8f,function(){var h,H;
return((h=x.likeCountEntity)==null?void 0:(H=h.call(x))==null?void 0:H.key)||""}),v=_.m5(function(){var h;
return((h=E())==null?void 0:h.likeStatus)==="LIKE"},void 0,"B3od5e"),V=function(){var h;
return L&&!((h=x.likeCountEntity)==null||!h.call(x))};
return _.M("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.M(_.JT,{data:function(){var h=Object,H=h.assign,k;var T=_.g((k=x.data())==null?void 0:k.toggleButtonViewModel,_.j3);return H.call(h,{},T||{},{isToggled:v()})},
buttonShapeOverrides:x.buttonShapeOverrideables,animatedTextPropsDefault:function(){return V()?D():void 0},
animatedTextPropsToggled:function(){return V()?S():void 0},
onToggle:function(h){Q7f(h,E(),y(),Z)},
style:function(){var h;return((h=x.disableIconAnimation)==null?0:h.call(x))?void 0:{animateIcon:"true"}}}))},"va");
_.Ea.idomCompat=!0;var VxB=_.B(function(x){var L=function(){return _.g(x.data().likeButtonViewModel,_.Q4)},D=function(){var Q;
return((Q=L())==null?void 0:Q.likeStatusEntityKey)||""},S=_.m5(function(){var Q,J;
var Z=(J=_.mF(fu,D)())!=null?J:(Q=L())==null?void 0:Q.likeStatusEntity;Q=x.data();var y;Q=(Q==null?void 0:(y=Q.timedAnimationData)==null?void 0:y.animationTiming)||[];return{uniqueId:"like-dislike",timings:Q,enabled:(Z==null?void 0:Z.likeStatus)==="INDIFFERENT"&&Q.length>0,experimentEnabled:Q.length>0}},void 0,"zZ3GQb");
return _.M("segmented-like-dislike-button-view-model",{class:_.gF("ytSegmentedLikeDislikeButtonViewModelHost",x.className),"button-renderer":!0},_.M(tAi,{settings:S},_.M("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.M(_.d,{cond:L,then:function(Q){return _.M(_.Ea,{data:Q,likeCountEntity:function(){return x.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start",onClickRateLimitMs:_.u("web_enable_like_button_click_debouncing")?500:void 0}})}}),_.M(_.d,{cond:function(){return _.g(x.data().dislikeButtonViewModel,_.S3)},
then:function(Q){return _.M(_.Ib,{data:Q,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"wa");
VxB.idomCompat=!0;_.dF(VxB,"segmented-like-dislike-button-view-model",{props:{data:_.pJ,className:_.pJ}});var hPQ=_.B(function(x){var L=x.data;var D=x.className;var S=x.setMinWidth;var Q=x.forceIconOnly;var J=_.x3("account-link-button-view-model"),Z=_.mF(_.Jgw,function(){var h;return(h=L().accountLinkStatusEntityKey)!=null?h:""}),y=_.mF(_.Jgw,function(){var h;
return(h=L().accountLinkStatusSecondaryEntityKey)!=null?h:""}),E=function(){if(!_.u("web_account_link_secondary_killswitch")){var h,H;
return((h=Z())==null?void 0:h.linked)||((H=y())==null?void 0:H.linked)}var k;return(k=Z())==null?void 0:k.linked};
_.Us(function(){var h=Z();if(h){var H=vE2(new j_W,dYd(new MdQ,!!h.linked));_.hL().then(function(k){k&&(k.setAccountLinkState(_.Gg(H.JSC$12174_serializeBinary(),4)),k.updateAccountLinkingConfig(!!h.linked))})}},"IvZF7");
var P=function(){return _.g(L().toggleButtonViewModel,_.j3)};
_.t7("yt-signal-action-show-account-link-dialog",function(){if(P()){var h=E()?P().toggledButtonViewModel:P().defaultButtonViewModel;h=_.g(h,_.de);var H;if((H=Z())==null?0:H.isWarning){H=_.g(L().warningButtonViewModel,_.de);if(!H){_.X0(Error("Ih"));return}h=H}var k;(H=_.fI((k=h)==null?void 0:k.onTap))&&_.H$([H],J.value)}else _.X0(Error("Jh"))});
var v=function(){var h=P();return Object.assign({},h,{isToggled:E()})},V=function(){return(Q==null?0:Q())?{iconPosition:"icon-only"}:{}};
return _.M("account-link-button-view-model",{class:_.gF("ytwAccountLinkButtonViewModelHost",D,function(){return(S==null?0:S())?"ytwAccountLinkButtonViewModelHostMinWidth":""}),
el:J,"button-renderer":!0},_.M("div",null,_.M(_.d,{cond:function(){var h;if((h=Z())==null?0:h.isWarning)return(h=_.g(L().warningButtonViewModel,_.de))||_.X0(Error("Ih")),h},
then:function(h){return _.M(_.qP,{data:h,buttonOverrides:V})},
else:function(){return _.M(_.JT,{data:v,buttonShapeOverrides:V})}})))},"ya");_.dF(hPQ,"account-link-button-view-model",{props:{data:_.pJ,className:_.Il,setMinWidth:_.Il,forceIconOnly:_.Il}});_.BD("menuRenderer","menuRenderer","ytd-menu-renderer");
var Hjr={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"}},
uk2=_.u("web_fix_missing_action_buttons")?100:200,MS=function(){var x=_.e.apply(this,arguments)||this;x.safeArea=!_.u("kevlar_flex_menu_safe_area_killswitch");x.tonalOverride=!1;x.threeDotSize="M";x.isOverlay=!1;x.useOverlayDark=!1;x.topLevelIconsOnly=!1;x.JSC$14653_lastWidth=0;x.maybeUpdateFlexibleMenu=function(){_.u("web_fix_missing_action_buttons")?requestAnimationFrame(x.maybeUpdateFlexibleMenuImpl):x.maybeUpdateFlexibleMenuImpl()};
x.maybeUpdateFlexibleMenuImpl=function(){var L;if((L=x.data)!=null&&L.flexibleItems){x.maybeFlushDebouncer();L=x.hostElement.clientWidth;var D=L>x.JSC$14653_lastWidth,S,Q=((S=x.topLevelButtonsContainer)==null?void 0:S.scrollHeight)||0,J;S=((J=x.flexibleItemButtonsContainer)==null?void 0:J.scrollHeight)||0;J=x.hostElement.scrollHeight>Math.max(Q,S)+8;D?(x.resetFlexibleItems(),x.JSC$14653_lastWidth=x.hostElement.clientWidth,x.maybeUpdateFlexibleMenu()):J&&(x.shrinkFlexibleMenu(),x.JSC$14653_lastWidth=
L)}};
x.computeThreeDotButtonShape=function(){if(x.tonalOverride)return Object.assign({},{onTap:function(){x.onOverflowTap()},
iconPosition:"icon-only",style:x.isOverlay?x.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:x.threeDotSize,state:"active",accessibilityLabel:x.computeAccessibilityLabel(x.data)},x.threeDotButtonOverride)};
x.onOverflowTap=function(){if(x.data.fetchMenuCommand)_.yY().resolve(_.E2).resolveCommand(x.data.fetchMenuCommand,{form:{element:x.hostElement}});else if(x.data.isDisabled&&x.data.disabledCommand)_.mA(x.data.disabledCommand,x.hostElement);else{var L=x.createMenuRendererVe(),D={items:x.items};x.data.menuPopupAccessibility&&(D.menuPopupAccessibility=x.data.menuPopupAccessibility);x.data.footer&&(D.footer=x.data.footer);L={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:D},veData:L}};
_.yY().resolve(_.SE).openSheet({openPopupActionCommand:L},x.hostElement)}};
return x};
_.p(MS,_.e);_.K=MS.prototype;_.K.updateButtonOverrides=function(){if(!_.u("menu_renderer_label_update_upkillswitch")){var x=_.jr(this.hostElement).querySelector("yt-button-view-model");x&&(x.buttonOverrides=this.buttonOverrides)}};
_.K.computeHasItems=function(){var x;return((x=this.topLevelButtonData)==null?void 0:x.length)||this.hasFlexibleItems};
_.K.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.K.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.uN(this.hostElement,{"--ytd-menu-renderer-button-color":_.zF(this.data.iconColor)}))};
_.K.onStamperFinished=function(){this.JSC$14653_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.K.setupFlexibleMenu=function(){var x=this,L;(L=this.data)!=null&&L.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.zR(this.maybeUpdateFlexibleMenu,uk2,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){x.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))};
_.K.maybeFlushDebouncer=function(){if(_.u("web_replace_formatted_with_attributed_string")){var x;(x=this.topLevelButtons)==null||x.forEach(function(D){var S;(D=(S=D.getElementsByTagName("yt-attributed-string"))==null?void 0:S[0])&&jgh(D)});
var L;(L=this.flexibleItemButtons)==null||L.forEach(function(D){var S;(D=(S=D.getElementsByTagName("yt-attributed-string"))==null?void 0:S[0])&&jgh(D)})}};
_.K.resetFlexibleItems=function(){var x;if((x=this.data)!=null&&x.flexibleItems){_.u("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var L;this.flexAsTopLevelButtons=(L=this.data.flexibleItems)==null?void 0:L.map(function(D){return _.g(D,_.ohB).topLevelButton});
_.u("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.K.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.K.shrinkFlexibleMenu=function(){var x;(x=this.flexAsTopLevelButtons)!=null&&x.length&&(this.flexAsTopLevelButtons=[].concat(_.lP(this.flexAsTopLevelButtons.slice(0,-1))))};
_.K.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:Hjr,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:Hjr,events:!0}}};
_.K.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.K.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.K.detached=function(){this.icon="MORE_VERT"};
_.K.computeTopLevelButtonData=function(x){if(!x)return[];var L;x=(L=x==null?void 0:x.topLevelButtons)!=null?L:[];return _.wk.unsafeClone([].concat(_.lP(x)))};
_.K.computeItems=function(x,L){if(!x)return[];var D=[];if(L){var S=(x.flexibleItems||[]).map(function(Z){return _.g(Z,_.ohB)});
S=_.O(S);for(var Q=S.next();!Q.done;Q=S.next())Q=Q.value,L.includes(Q.topLevelButton)||(Q=Q.menuItem)&&D.push(Q)}var J;x=(J=x==null?void 0:x.items)!=null?J:[];return[].concat(_.lP(D),_.lP(x))};
_.K.computeMenuActive=function(x,L){return x||L};
_.K.onPopupOpened=function(){this.overlayOpen=!0;_.MF(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.K.onPopupClosed=function(){this.overlayOpen=!1;_.MF(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.K.onPopupCanceled=function(){this.overlayOpen=!1;_.MF(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.K.computeAccessibilityLabel=function(x){return this.get("accessibility.accessibilityData.label",x)};
_.K.isHidden=function(x,L){return this.tonalOverride||!x?!0:x.fetchMenuCommand||x.isDisabled&&x.disabledCommand?!1:!(L==null?0:L.length)};
_.K.isModernOverflowHidden=function(x,L){return this.tonalOverride&&x?x.fetchMenuCommand?!1:!(L==null?0:L.length):!0};
_.K.createMenuRendererVe=function(){var x=this.data.trackingParams,L=_.A3(),D=_.qu();return x&&L&&D?(x=_.CI(x),D=_.VC(7591),_.u("combine_ve_grafts")?_.B5(_.sk(),D,x):_.XI(L,x,D),D):null};
_.J3.Object.defineProperties(MS.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.flexAsTopLevelButtons)==null||!x.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
MS.prototype.onPopupCanceled=MS.prototype.onPopupCanceled;MS.prototype.onPopupClosed=MS.prototype.onPopupClosed;MS.prototype.onPopupOpened=MS.prototype.onPopupOpened;MS.prototype.tonalOverrideChanged=MS.prototype.tonalOverrideChanged;MS.prototype.resetFlexibleItems=MS.prototype.resetFlexibleItems;MS.prototype.setupFlexibleMenu=MS.prototype.setupFlexibleMenu;MS.prototype.iconButtonColorChanged=MS.prototype.iconButtonColorChanged;MS.prototype.updateButtonOverrides=MS.prototype.updateButtonOverrides;
_.A([_.b(_.Fz),_.r("design:type",Object)],MS.prototype,"ytdOpenPopupBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],MS.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],MS.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F1("#button-shape"),_.r("design:type",HTMLElement)],MS.prototype,"buttonShape",void 0);_.A([_.F1("#button"),_.r("design:type",Object)],MS.prototype,"button",void 0);
_.A([_.F(),_.r("design:type",Object)],MS.prototype,"data",void 0);_.A([_.F({computed:"computeTopLevelButtonData(data)"}),_.r("design:type",Array)],MS.prototype,"topLevelButtonData",void 0);_.A([_.F(),_.r("design:type",Array)],MS.prototype,"flexAsTopLevelButtons",void 0);_.A([_.F({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.r("design:type",Array)],MS.prototype,"items",void 0);_.A([_.F({value:"MORE_VERT"}),_.r("design:type",String)],MS.prototype,"icon",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],MS.prototype,"safeArea",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.r("design:type",Boolean)],MS.prototype,"menuActive",void 0);_.A([_.F(),_.r("design:type",Boolean)],MS.prototype,"menuFocused",void 0);_.A([_.F({value:"bottom"}),_.r("design:type",String)],MS.prototype,"buttonTooltipPosition",void 0);_.A([_.F(),_.r("design:type",Boolean)],MS.prototype,"overlayOpen",void 0);
_.A([_.F({value:!0}),_.r("design:type",Boolean)],MS.prototype,"forceIconButton",void 0);_.A([_.F(),_.r("design:type",Boolean)],MS.prototype,"styleActionButton",void 0);_.A([_.F(),_.r("design:type",Boolean)],MS.prototype,"disableTextTransformOnButtons",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],MS.prototype,"tonalOverride",void 0);_.A([_.F(),_.r("design:type",Object)],MS.prototype,"threeDotSize",void 0);
_.A([_.F(),_.r("design:type",Object)],MS.prototype,"threeDotButtonOverride",void 0);_.A([_.F(),_.r("design:type",Object)],MS.prototype,"isOverlay",void 0);_.A([_.F(),_.r("design:type",Object)],MS.prototype,"useOverlayDark",void 0);_.A([_.F({computed:"computeButtonOverride(tonalOverride)"}),_.r("design:type",Object)],MS.prototype,"buttonOverride",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],MS.prototype,"hasCustomIconColor",void 0);
_.A([_.F({reflectToAttribute:!0}),_.Y("flexAsTopLevelButtons"),_.r("design:type",Object),_.r("design:paramtypes",[])],MS.prototype,"hasFlexibleItems",null);_.A([_.F({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.r("design:type",Boolean)],MS.prototype,"hasItems",void 0);_.A([_.F(),_.r("design:type",Object)],MS.prototype,"topLevelIconsOnly",void 0);
_.A([_.bN("topLevelIconsOnly"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],MS.prototype,"updateButtonOverrides",null);_.A([_.Y("topLevelIconsOnly"),_.r("design:type",Object),_.r("design:paramtypes",[])],MS.prototype,"buttonOverrides",null);_.A([_.F1("#top-level-buttons-computed"),_.r("design:type",HTMLElement)],MS.prototype,"topLevelButtonsContainer",void 0);_.A([_.sY(".top-level-buttons > *"),_.r("design:type",Array)],MS.prototype,"topLevelButtons",void 0);
_.A([_.F1("#flexible-item-buttons"),_.r("design:type",HTMLElement)],MS.prototype,"flexibleItemButtonsContainer",void 0);_.A([_.sY("#flexible-item-buttons > *"),_.r("design:type",Array)],MS.prototype,"flexibleItemButtons",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],MS.prototype,"iconButtonColorChanged",null);
_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],MS.prototype,"setupFlexibleMenu",null);_.A([_.GV("topLevelIconsOnly"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],MS.prototype,"resetFlexibleItems",null);_.A([_.bN("tonalOverride"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],MS.prototype,"tonalOverrideChanged",null);
_.A([_.mX("yt-popup-opened"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],MS.prototype,"onPopupOpened",null);_.A([_.mX("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],MS.prototype,"onPopupClosed",null);_.A([_.mX("yt-popup-canceled"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],MS.prototype,"onPopupCanceled",null);
_.q(MS,"ytd-menu-renderer",function(){if(WMC===void 0){var x=document.createElement("template");_.m(x,'\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>');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);WMC=x}x=WMC;return x},{mode:2});var gUA;var kx2;_.dd=_.B(function(x){var L=x.data;var D=function(){if(L().icon)a:{var Q={iconName:L().icon};for(var J=_.yY().resolve(_.ki),Z=_.O([12,24]),y=Z.next();!y.done;y=Z.next()){var E=y.value;y=Object.assign({},Q,{iconStyle:"youtube_fill",iconSize:E});E=Object.assign({},Q,{iconStyle:"youtube_outline",iconSize:E});if(J.resolveIcon(y)){Q=y;break a}if(J.resolveIcon(E)){Q=E;break a}}Q=void 0}else Q=void 0;return Q};
x={};var S={};return _.M("badge-shape",{class:_.gF("yt-badge-shape",function(){return EUc(L().type)},(x["yt-badge-shape--overlay"]=function(){return L().isOverlay},x["yt-badge-shape--ads-include-dot"]=function(){return L().adsIncludeDot},x["yt-badge-shape--thumbnail-badge"]=function(){a:switch(L().type){case 17:case 18:case 19:var Q=!0;
break a;default:Q=!1}return Q},x["yt-badge-shape--status-badge"]=function(){a:switch(L().type){case 12:case 13:case 14:case 15:case 16:var Q=!0;
break a;default:Q=!1}return Q},x["yt-badge-shape--no-text"]=function(){return!L().text},x["yt-badge-shape--modern"]=function(){return L().modern||_.u("web_modern_badge_shape")},x)),
style:_.bc({"background-color":function(){var Q;return(Q=L().customColors)==null?void 0:Q.backgroundColor}}),
role:function(){return L().accessibilityText?"img":void 0},
"aria-label":function(){return L().accessibilityText}},_.M(_.d,{cond:function(){return L().animation},
then:function(Q){return _.M(_.fJ,{className:"yt-badge-shape__icon",data:Q,animationName:function(){return Q().animationConfig.name||""}})}}),_.M(_.d,{cond:function(){var Q;
return D()&&!((Q=L())==null?0:Q.animation)},
then:function(){return _.M("div",{class:"yt-badge-shape__icon"},_.M(lZG,{data:function(){return D()}}))}}),_.M("div",{class:_.gF("yt-badge-shape__text",(S["yt-badge-shape__text--has-multiple-badges-in-row"]=function(){return(L().numBadgesInRow||0)>1},S))},function(){var Q;
return(Q=L())==null?void 0:Q.text}))},"za");
_.dd.idomCompat=!0;_.dF(_.dd,"badge-shape",{props:{data:_.pJ}});var Pz=function(){var x=_.e.apply(this,arguments)||this;x.systemIcons=_.u("kevlar_system_icons");x.animated=_.u("animated_live_badge_icon");x.useBadgeShape=_.u("web_badge_shape_defrag");return x};
_.p(Pz,_.e);_.K=Pz.prototype;_.K.addTooltips=function(){for(var x=_.jr(this.hostElement).querySelectorAll(".badge"),L=0,D;D=x[L++];){var S=this.repeatElement.itemForElement(D);D=_.jr(D);D.lastChild&&D.lastChild.is==="tp-yt-paper-tooltip"&&D.removeChild(D.lastChild);if(S=S.metadataBadgeRenderer&&S.metadataBadgeRenderer.tooltip){var Q=_.TZ("tp-yt-paper-tooltip");(0,_.HP)(Q).textContent=S;Q.setAttribute("position","top");Q.setAttribute("aria-hidden","true");D.appendChild(Q)}}};
_.K.badgesChanged=function(){var x=this;_.jP().parkOrScheduleJob(function(){x.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.K.standaloneRoundedBadgeChanged=function(){var x=this.useRoundedBadge?this.useRoundedBadge:void 0;x&&(this.useRoundedBadge=x)};
_.K.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.K.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.K.computeStyle=function(x){_.u("enable_html5_teal_ad_badge")&&x==="BADGE_STYLE_TYPE_AD"&&(x="badge-style-type-ad-alternate");_.u("kevlar_ytb_live_badges")&&x==="BADGE_STYLE_TYPE_LIVE_NOW"&&(x="badge-style-type-live-now-alternate");return x?x.toLowerCase().replace(/_/g,"-"):""};
_.K.computeRole=function(x){return this.computeAriaLabel(x)?"img":"status"};
_.K.computeAriaLabel=function(x){var L;return(x==null?void 0:(L=x.accessibilityData)==null?void 0:L.label)||(x==null?void 0:x.label)};
_.K.computeBadgeShape=function(x){if(x){var L,D;var S=ygw(x.style);var Q=IT3(x.style),J=x.label,Z=((L=x.accessibilityData)==null?void 0:L.label)||x.label;a:switch(x.style){case "BADGE_STYLE_TYPE_SHORTS_PLAYER":case "BADGE_STYLE_TYPE_BLACK":case "BADGE_STYLE_TYPE_OVERLAY":L=!0;break a;default:L=!1}var y=(D=x.icon)==null?void 0:D.iconType;a:switch(x.style){case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":x=!0;break a;default:x=!1}S={type:S,brNzRatingBadgeType:Q,text:J,accessibilityText:Z,
isOverlay:L,icon:y!=="PREMIUM"?y:void 0,modern:_.u("web_modern_badge_view_model"),numBadgesInRow:this.numBadgesInRow,adsIncludeDot:x}}else S={};return S};
_.K.updateComputedBadges=function(x,L,D){var S=this;(L=L?[L]:D?[D]:void 0)?this.computedBadges=L:this.computedBadges=x==null?void 0:x.filter(function(Q){var J;if((J=Q.metadataBadgeRenderer)==null?0:J.groups){J=!1;Q=_.O(Q.metadataBadgeRenderer.groups);for(var Z=Q.next();!Z.done;Z=Q.next()){Z=Z.value;var y=void 0;J=J||((y=S.hiddenBadgeGroups)==null?void 0:y.includes(Z))}return!J}return!0})};
_.K.useFilledIcons=function(x){return _.u("kevlar_system_icons")&&(x==="AUDIO_BADGE"||x==="CHECK_CIRCLE_THICK"||x==="OFFICIAL_ARTIST_BADGE"||x==="SPONSORSHIP_STAR"||x==="PERSON_RADAR_FILLED"||x==="PERSON_RADAR")};
_.K.computeBadgeShapeStyle=function(x){return this.useBadgeShape?x==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||x==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":"":""};
_.K.computeIcon=function(x){var L,D;x=x==null?void 0:(L=x.metadataBadgeRenderer)==null?void 0:(D=L.icon)==null?void 0:D.iconType;if(x!=="PREMIUM"&&x)return _.gB(x)};
_.K.computeStandaloneBadge=function(x){var L;x=x==null?void 0:(L=x.icon)==null?void 0:L.iconType;return x==="PREMIUM_STANDALONE"||x==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
Pz.prototype.hiddenBadgeGroupsChanged=Pz.prototype.hiddenBadgeGroupsChanged;Pz.prototype.standaloneBadgeChanged=Pz.prototype.standaloneBadgeChanged;Pz.prototype.standaloneRoundedBadgeChanged=Pz.prototype.standaloneRoundedBadgeChanged;Pz.prototype.badgesChanged=Pz.prototype.badgesChanged;_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],Pz.prototype,"hidden",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],Pz.prototype,"componentBehavior",void 0);
_.A([_.F(),_.r("design:type",Array)],Pz.prototype,"badges",void 0);_.A([_.F(),_.r("design:type",Object)],Pz.prototype,"topStandaloneBadge",void 0);_.A([_.F(),_.r("design:type",Object)],Pz.prototype,"bottomStandaloneBadge",void 0);_.A([_.F(),_.r("design:type",Object)],Pz.prototype,"computedBadges",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],Pz.prototype,"mediumFontAdBadge",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],Pz.prototype,"useRoundedBadge",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],Pz.prototype,"largeFontAdBadge",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],Pz.prototype,"overlayAd",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],Pz.prototype,"overlayPremium",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],Pz.prototype,"noDotAdBadge",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],Pz.prototype,"collectionTruncate",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],Pz.prototype,"isThumbnailBadge",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],Pz.prototype,"wrapBadges",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Number)],Pz.prototype,"numBadgesInRow",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Pz.prototype,"systemIcons",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Pz.prototype,"animated",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Pz.prototype,"useBadgeShape",void 0);_.A([_.F({value:[]}),_.r("design:type",Array)],Pz.prototype,"hiddenBadgeGroups",void 0);_.A([_.F1("#repeat"),_.r("design:type",Aq)],Pz.prototype,"repeatElement",void 0);_.A([_.GV("badges"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Pz.prototype,"badgesChanged",null);
_.A([_.GV("useRoundedBadge"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Pz.prototype,"standaloneRoundedBadgeChanged",null);_.A([_.GV("topStandaloneBadge","bottomStandaloneBadge"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Pz.prototype,"standaloneBadgeChanged",null);_.A([_.GV("hiddenBadgeGroups"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Pz.prototype,"hiddenBadgeGroupsChanged",null);
_.A([_.w({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],Pz);
var pjC=_.vp()(Pz,"ytd-badge-supported-renderer",function(){if(kx2===void 0){var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);kx2=x}x=kx2;return x},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups numBadgesInRow isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.Vm("kevlar_poly_si_batch_j053")?1:2});var jE=function(){var x=_.e.apply(this,arguments)||this;x.iconType="STAR";x.standardizeIconSize=_.u("kevlar_system_icons");x.mediaHoverOverlayInitialVisibility=_.u("enable_top_landscape_image_button_command_web");x.noBottomMargin=!1;x.thumbnailObjectFit="CONTAIN";x.thumbnailFitHeight=!0;x.actionMap={"yt-mute-ad-action":"handleMuteAd"};return x};
_.p(jE,_.e);_.K=jE.prototype;
_.K.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"}}}};
_.K.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",jE.JSC$14665_DEFAULT_CLICK_LOCATION_BEHAVIOR,jE.JSC$14665_CLICK_LOCATION_ID_MAP))};
_.K.onTap=function(x){if(!_.u("use_on_click_for_desktop_display_ad"))this.onTapOrClick(x)};
_.K.onClick=function(x){if(_.u("use_on_click_for_desktop_display_ad"))this.onTapOrClick(x)};
_.K.onTapOrClick=function(x){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,x,!1)};
_.K.updateMediaBackgroundImage=function(){var x=this.get("data.image.thumbnail.thumbnails");x&&(x=_.PD(x,0))&&_.uN(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+x+")"})};
_.K.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var x=0;x<this.data.impressionEndpoints.length;x++){var L=this.data.impressionEndpoints[x];L.clickTrackingParams&&delete L.clickTrackingParams;_.yY().resolve(_.E2).resolveCommand(L,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var D;((D=this.data)==null?0:D.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.K.handleMuteAd=function(){};
_.K.attached=function(){var x=this;_.u("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&x.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.K.detached=function(){_.u("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.J3.Object.defineProperties(jE.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var x;if((x=this.data)==null||!x.titleText)return"";var L;return _.p6("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((L=this.data)==null?void 0:L.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?0:x.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?0:x.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?0:x.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?0:x.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?0:x.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 x;return!((x=this.data)==null||!x.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"}}});
jE.prototype.onClick=jE.prototype.onClick;jE.prototype.onTap=jE.prototype.onTap;jE.prototype.dataChanged=jE.prototype.dataChanged;
jE.JSC$14665_CLICK_LOCATION_ID_MAP=_.u("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"]]);
jE.JSC$14665_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.u("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"}];_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],jE.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],jE.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.b(_.dK),_.r("design:type",Object)],jE.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],jE.prototype,"ytdReduxBehavior",void 0);_.A([_.b(_.RF.YtSparklesClickLocationBehavior),_.r("design:type",Object)],jE.prototype,"ytSparklesClickLocationBehavior",void 0);_.A([_.b(IF),_.r("design:type",Object)],jE.prototype,"ytdActiveViewBehavior",void 0);_.A([_.b([_.ir.YtActionHandlerBehavior]),_.r("design:type",Object)],jE.prototype,"actionHandlerBehavior",void 0);
_.A([_.F(),_.r("design:type",Object)],jE.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],jE.prototype,"clickCommand",void 0);_.A([_.F({reflectToAttribute:!0,selector:_.qU}),_.r("design:type",Boolean)],jE.prototype,"miniMode",void 0);_.A([_.F(),_.r("design:type",String)],jE.prototype,"iconType",void 0);_.A([_.Y("data.titleText"),_.r("design:type",String),_.r("design:paramtypes",[])],jE.prototype,"titleAriaLabel",null);
_.A([_.Y("data.rating"),_.r("design:type",Object),_.r("design:paramtypes",[])],jE.prototype,"getRating",null);_.A([_.Y("data.price"),_.r("design:type",Object),_.r("design:paramtypes",[])],jE.prototype,"getPrice",null);_.A([_.Y("data.thirdLine"),_.r("design:type",Object),_.r("design:paramtypes",[])],jE.prototype,"getThirdLine",null);_.A([_.Y("data.fourthLine"),_.r("design:type",Object),_.r("design:paramtypes",[])],jE.prototype,"getFourthLine",null);
_.A([_.Y("data.fifthLine"),_.r("design:type",Object),_.r("design:paramtypes",[])],jE.prototype,"getFifthLine",null);_.A([_.Y("getRating"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],jE.prototype,"computeRatingHidden",null);_.A([_.Y("getPrice"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],jE.prototype,"computePriceHidden",null);_.A([_.Y("getThirdLine"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],jE.prototype,"computeThirdLineHidden",null);
_.A([_.Y("getFourthLine"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],jE.prototype,"computeFourthLineHidden",null);_.A([_.Y("getFifthLine"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],jE.prototype,"computeFifthLineHidden",null);_.A([_.F({reflectToAttribute:!0}),_.Y("data.energyIcon"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],jE.prototype,"hasEnergyIcon",null);
_.A([_.Y("computePriceHidden","computeRatingHidden"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],jE.prototype,"computeSecondaryTextHidden",null);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],jE.prototype,"standardizeIconSize",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],jE.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],jE.prototype,"noBottomMargin",void 0);
_.A([_.F({reflectToAttribute:!0}),_.Y("data.layout"),_.r("design:type",String),_.r("design:paramtypes",[])],jE.prototype,"layout",null);_.A([_.Y("data.layout"),_.r("design:type",Object),_.r("design:paramtypes",[])],jE.prototype,"mediaThumbnailWidth",null);_.A([_.Y("layout"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],jE.prototype,"useRoundedBadge",null);_.A([_.F(),_.r("design:type",String)],jE.prototype,"thumbnailObjectFit",void 0);
_.A([_.F(),_.r("design:type",Object)],jE.prototype,"thumbnailFitHeight",void 0);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],jE.prototype,"dataChanged",null);_.A([_.mX("tap"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],jE.prototype,"onTap",null);_.A([_.mX("click"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],jE.prototype,"onClick",null);
_.A([_.w({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],jE);
_.q(jE,"ytd-display-ad-renderer",function(){if(gUA!==void 0)return gUA;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return gUA=x},{mode:1});var mQ_;var bjA;var YCR;var Mxc=new Map;var Fp2=!1;var vz=function(){var x=_.e.apply(this,arguments)||this;x.DEFAULT_TOOLTIP_OFFSET="10";x.TOOLTIP_OFFSET_NO_BANNER="-8";x.badges=null;x.noEndpoints=!1;x.wrapText=!1;x.forceVerified=!1;x.tooltipPosition="top";x.compactStyle=!1;x.height=0;x.lineHeight=0;return x};
_.p(vz,_.e);_.K=vz.prototype;_.K.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.K.attached=function(){var x=this;this.observer=new MutationObserver(function(L,D){x.handleResized();D.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.K.detached=function(){this.observer&&this.observer.disconnect()};
_.K.logTooltipEvent=function(){_.u("kevlar_wiz_tooltip_event_killswitch")||Fp2||(_.dQ4("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),Fp2=!0)};
_.K.handleWindowResized=function(){this.handleResized()};
_.K.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")))};
_.K.onHeightChanged=function(){if(this.verified){var x=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.$6("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=x:this.textContainerEl.style.marginRight=x}};
_.K.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.$6("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.K.handleResized=function(){var x=this;this.verified&&_.WW.addLowPriorityJob(function(){x.fitBackgroundToText();var L=getComputedStyle(x.hostElement).lineHeight;L&&(L=L.match(/\d+/))&&L.length&&(x.lineHeight=Number(L[0]));x.height=x.lineHeight&&!x.wrapText?x.lineHeight:x.textEl.offsetHeight})};
_.K.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var x=document.createRange(),L=_.jr(this.textEl).children;L.length>0?x.selectNodeContents(L[0]):x.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(x.getBoundingClientRect().width)+"px"}};
_.K.computeChannelBadgeStyle=function(x){var L;if((x==null?0:(L=x.runs)==null?0:L.length)&&x.runs[0].textColor)return"--ytd-badge-icon-color:"+_.zF(x.runs[0].textColor)+";"};
_.J3.Object.defineProperties(vz.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"?_.Dv(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var x=this.get("badges.0.metadataBadgeRenderer.tooltip");if(x)return x}return _.SR(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
vz.prototype.onLineHeightChanged=vz.prototype.onLineHeightChanged;vz.prototype.onHeightChanged=vz.prototype.onHeightChanged;vz.prototype.onChannelNameChanged=vz.prototype.onChannelNameChanged;_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],vz.prototype,"ytActionHandlerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],vz.prototype,"badges",void 0);_.A([_.F(),_.r("design:type",Object)],vz.prototype,"channelName",void 0);
_.A([_.F(),_.r("design:type",Object)],vz.prototype,"noEndpoints",void 0);_.A([_.F(),_.r("design:type",Object)],vz.prototype,"wrapText",void 0);_.A([_.F(),_.r("design:type",Object)],vz.prototype,"forceVerified",void 0);_.A([_.F(),_.r("design:type",Object)],vz.prototype,"tooltipPosition",void 0);_.A([_.F(),_.r("design:type",String)],vz.prototype,"tooltip",void 0);_.A([_.F(),_.r("design:type",Boolean)],vz.prototype,"hasChannelArt",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],vz.prototype,"compactStyle",void 0);_.A([_.F1("#text-container"),_.r("design:type",HTMLElement)],vz.prototype,"textContainerEl",void 0);_.A([_.F1("#text"),_.r("design:type",Object)],vz.prototype,"textEl",void 0);_.A([_.F1("#verified-tooltip"),_.r("design:type",HTMLElement)],vz.prototype,"verifiedTooltip",void 0);_.A([_.F(),_.r("design:type",Object)],vz.prototype,"height",void 0);
_.A([_.F(),_.r("design:type",Object)],vz.prototype,"lineHeight",void 0);_.A([_.F({reflectToAttribute:!0}),_.Y("badges","forceVerified"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],vz.prototype,"verified",null);_.A([_.Y("badges","verified"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],vz.prototype,"hideBadges",null);_.A([_.Y("channelName"),_.r("design:type",Object),_.r("design:paramtypes",[])],vz.prototype,"formattedName",null);
_.A([_.Y("badges","verified","formattedName"),_.r("design:type",String),_.r("design:paramtypes",[])],vz.prototype,"tooltipText",null);_.A([_.Y("hasChannelArt"),_.r("design:type",String),_.r("design:paramtypes",[])],vz.prototype,"tooltipOffset",null);_.A([_.bN("channelName"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],vz.prototype,"onChannelNameChanged",null);
_.A([_.bN("height"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],vz.prototype,"onHeightChanged",null);_.A([_.bN("lineHeight","height"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],vz.prototype,"onLineHeightChanged",null);_.A([_.w({is:"ytd-channel-name",disableElementRegistration:!0})],vz);
_.q(vz,"ytd-channel-name",function(){if(YCR!==void 0)return YCR;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return YCR=x},{mode:_.Vm("kevlar_poly_si_batch_j036")?1:2});var Vw=function(){var x=_.e.apply(this,arguments)||this;x.standardizeIconSize=_.u("kevlar_system_icons");return x};
_.p(Vw,_.e);Vw.prototype.basicPaletteChanged=function(){var x;(x=this.data.color)!=null&&x.basicColorPaletteData&&_.UI(this.hostElement,this.data.color.basicColorPaletteData)};
Vw.prototype.useFilledIcons=function(x){return _.u("kevlar_system_icons")&&(x==="CHECK_CIRCLE_THICK"||x==="OFFICIAL_ARTIST_BADGE")};
_.J3.Object.defineProperties(Vw.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){var x,L,D;return this.data.authorCreator||((x=this.data)==null?void 0:(L=x.color)==null?void 0:(D=L.basicColorPaletteData)==null?void 0:D.backgroundColor)}}});
Vw.prototype.basicPaletteChanged=Vw.prototype.basicPaletteChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Vw.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Vw.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],Vw.prototype,"standardizeIconSize",void 0);_.A([_.F({reflectToAttribute:!0}),_.Y("data.authorUnifiedVerified"),_.r("design:type",Object),_.r("design:paramtypes",[])],Vw.prototype,"verified",null);
_.A([_.F({reflectToAttribute:!0}),_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Vw.prototype,"creator",null);_.A([_.bN("data.color.basicColorPaletteData"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Vw.prototype,"basicPaletteChanged",null);_.A([_.w({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],Vw);
_.q(Vw,"ytd-author-comment-badge-renderer",function(){if(bjA!==void 0)return bjA;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return bjA=x},{mode:1});var s7A;var hy=function(){return _.e.apply(this,arguments)||this};
_.p(hy,_.e);hy.prototype.computeThumbnailWidth=function(x){if(x==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],hy.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],hy.prototype,"data",void 0);_.A([_.F({computed:"computeIcon_(data.icon)"}),_.r("design:type",String)],hy.prototype,"icon",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",String)],hy.prototype,"surface",void 0);
_.A([_.F({reflectToAttribute:!0,value:_.u("enable_shrink_image_size_on_web_posts_singleton")}),_.r("design:type",Boolean)],hy.prototype,"searchSxsUx",void 0);_.A([_.F({reflectToAttribute:!0,value:_.u("enable_community_page_on_desktop")}),_.r("design:type",Boolean)],hy.prototype,"useSmallerPostImageAttachments",void 0);_.A([_.w({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],hy);
_.q(hy,"ytd-backstage-image-renderer",function(){if(s7A!==void 0)return s7A;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return s7A=x},{mode:1});var Tuh;var Hz=function(){var x=_.e.apply(this,arguments)||this;x.isLoading=!1;x.selectedItemIndex=-1;return x};
_.p(Hz,_.e);_.K=Hz.prototype;_.K.computeIsChannelOwner=function(x){if(!x)return!0;x=x[0];return!(x&&(x.signinEndpoint||x.selectServiceEndpoint))};
_.K.computeIsImagePoll=function(x){return(x==null?void 0:x.type)==="POLL_TYPE_IMAGE"};
_.K.computeIsTotalVotesDisabled=function(x){return!(x==null?0:x.totalVotes)};
_.K.thumbnailSrc=function(x){var L,D,S,Q;return(x==null?0:(L=x.thumbnails)==null?0:(D=L[0])==null?0:D.url)?_.$z((S=x.thumbnails)==null?void 0:(Q=S[0])==null?void 0:Q.url):void 0};
_.K.progressWidth=function(x){return"width:"+(x?x*100:0)+"%;"};
_.K.textAreaWidth=function(x){return this.isImagePoll?null:"width:"+(x?x*100:0)+"%;"};
_.K.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.K.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var x=this.data.choices,L=0;L<x.length;L++)if(x[L].selected){this.selectedItemIndex=L;break}};
_.K.onPopupClosed=function(x,L){x=Number(this.pollVotes.selected);L.confirmed&&(this.selectChoice(x,!1),_.dg(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.K.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.K.onYtCommentPollRevert=function(x,L){L&&(this.selectChoice(L.selectedChoiceIndex,!0),this.set("data.totalVotes",L.totalVotes))};
_.K.onYtServiceRequestSent=function(x,L){if(L.actions)for(x=0;x<L.actions.length;x++){var D=L.actions[x];_.g(D,iZ)&&this.set("data.totalVotes",_.g(D,iZ).totalVotes)}};
_.K.onYtServiceRequestCompleted=function(x){var L=this.get("detail.data.actionResults.0.feedback",x);x=this.get("detail.data.actionResults.0.status",x);if(L==="FEEDBACK_DESELECT"||L==="FEEDBACK_SELECT")this.isLoading=!1,x==="STATUS_FAILED"?_.MF(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.K.getEndpoint=function(x,L){return L===x?this.data.choices[L].deselectServiceEndpoint||null:this.data.choices[x].selectServiceEndpoint||null};
_.K.selectChoice=function(x,L){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var D=0;D<this.data.choices.length;D++){var S;if(x===this.selectedItemIndex){var Q=!1;var J=S=null}else S=(Q=D===x)?this.data.choices[D].voteRatioIfSelected:this.data.choices[D].voteRatioIfNotSelected,J=Q?this.data.choices[D].votePercentageIfSelected:this.data.choices[D].votePercentageIfNotSelected;this.set("data.choices."+D+".voteRatio",S);
this.set("data.choices."+D+".votePercentage",J);this.set("data.choices."+D+".selected",Q)}L||(this.isLoading=!0,(L=this.getEndpoint(x,this.selectedItemIndex))&&_.yY().resolve(_.E2).resolveCommand(L,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===x?-1:x};
_.J3.Object.defineProperties(Hz.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
Hz.prototype.onYtServiceRequestCompleted=Hz.prototype.onYtServiceRequestCompleted;Hz.prototype.onYtServiceRequestSent=Hz.prototype.onYtServiceRequestSent;Hz.prototype.onYtCommentPollRevert=Hz.prototype.onYtCommentPollRevert;Hz.prototype.onPopupClosed=Hz.prototype.onPopupClosed;Hz.prototype.dataChanged=Hz.prototype.dataChanged;_.A([_.b(_.Pg),_.r("design:type",Object)],Hz.prototype,"paperItemBehavior",void 0);
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Hz.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.Fz),_.r("design:type",Object)],Hz.prototype,"ytdOpenPopupBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Hz.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],Hz.prototype,"isLoading",void 0);_.A([_.F({computed:"computeIsChannelOwner(data.choices)"}),_.r("design:type",Boolean)],Hz.prototype,"isChannelOwner",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.r("design:type",Boolean)],Hz.prototype,"isImagePoll",void 0);_.A([_.F({computed:"computeIsTotalVotesDisabled(data)"}),_.r("design:type",Boolean)],Hz.prototype,"isTotalVotesDisabled",void 0);_.A([_.F(),_.r("design:type",Object)],Hz.prototype,"previousPollInfo",void 0);_.A([_.F(),_.r("design:type",Object)],Hz.prototype,"selectedItemIndex",void 0);_.A([_.F1("#poll-votes"),_.r("design:type",Object)],Hz.prototype,"pollVotes",void 0);
_.A([_.Y("isChannelOwner"),_.r("design:type",Object),_.r("design:paramtypes",[])],Hz.prototype,"endpointStyle",null);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Hz.prototype,"dataChanged",null);_.A([_.mX("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],Hz.prototype,"onPopupClosed",null);
_.A([_.mX("yt-comment-poll-revert"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],Hz.prototype,"onYtCommentPollRevert",null);_.A([_.mX("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.zQ]),_.r("design:returntype")],Hz.prototype,"onYtServiceRequestSent",null);
_.A([_.mX("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Hz.prototype,"onYtServiceRequestCompleted",null);_.A([_.w({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],Hz);
_.q(Hz,"ytd-backstage-poll-renderer",function(){if(Tuh!==void 0)return Tuh;var x=document.createElement("template");_.m(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-poll-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="vote-info" hidden="[[isTotalVotesDisabled]]" text="[[data.totalVotes]]" class="style-scope ytd-backstage-poll-renderer">\n</yt-formatted-string>\n<tp-yt-paper-listbox id="poll-votes" on-iron-select="onPollChoiceSelected" class="style-scope ytd-backstage-poll-renderer">\n  <template is="dom-repeat" items="[[data.choices]]" class="style-scope ytd-backstage-poll-renderer">\n    <a id="sign-in" class$="[[endpointStyle]] style-scope ytd-backstage-poll-renderer" href$="[[computeHref_(item.signinEndpoint)]]" data="[[item.signinEndpoint]]" role="option">\n      <tp-yt-paper-item class="vote-choice style-scope ytd-backstage-poll-renderer" name="[[index]]" selected$="[[item.selected]]" show-percentage$="[[item.votePercentage]]">\n        <template is="dom-if" if="[[!isImagePoll]]" class="style-scope ytd-backstage-poll-renderer">\n          <tp-yt-paper-button class="check-icons style-scope ytd-backstage-poll-renderer" hidden="[[isChannelOwner]]">\n            <yt-icon hidden="[[item.selected]]" icon="radio-button-unchecked" class="style-scope ytd-backstage-poll-renderer"></yt-icon>\n            <yt-icon class="checked style-scope ytd-backstage-poll-renderer" hidden="[[!item.selected]]" icon="check-circle" default-to-filled="true"></yt-icon>\n          </tp-yt-paper-button>\n        </template>\n        <template is="dom-if" if="[[isImagePoll]]" class="style-scope ytd-backstage-poll-renderer">\n          <img class="choice-image style-scope ytd-backstage-poll-renderer" alt="" src$="[[thumbnailSrc(item.image)]]">\n        </template>\n        <div class="choice-info style-scope ytd-backstage-poll-renderer">\n          <div class="text-area style-scope ytd-backstage-poll-renderer">\n            <yt-formatted-string class="choice-text style-scope ytd-backstage-poll-renderer" text="[[item.text]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="vote-percentage style-scope ytd-backstage-poll-renderer" hidden="[[!item.votePercentage]]" text="[[item.votePercentage]]">\n            </yt-formatted-string>\n          </div>\n          <div class="vote-percentage-area style-scope ytd-backstage-poll-renderer" style$="[[textAreaWidth(item.voteRatio)]]">\n          </div>\n          <div class="progress-bar style-scope ytd-backstage-poll-renderer" hidden="[[!item.votePercentage]]" style$="[[progressWidth(item.voteRatio)]]">\n          </div>\n        </div>\n      </tp-yt-paper-item>\n    </a>\n  </template>\n</tp-yt-paper-listbox>\n');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Tuh=x},{mode:2});var ePh;var RPr={autoplay:!1,loop:!1},Gx2={simpleText:""},uA=function(){var x=_.e.apply(this,arguments)||this;x.isLoading=!1;x.usesPanelLockup=!1;x.selectedItemIndex=-1;x.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},RPr,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});x.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},RPr,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});x.correctnessAnimationProps=[];x.correctnessAnimationRefs=[];return x};
_.p(uA,_.e);_.K=uA.prototype;_.K.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.K.computeIsChannelOwner=function(x){if(!x)return!0;x=x[0];return!(x&&(x.signinEndpoint||x.selectServiceEndpoint))};
_.K.computeIsTotalVotesDisabled=function(x){return!(x==null?0:x.totalVotes)};
_.K.computeIsImageQuiz=function(x){return(x==null?void 0:x.type)==="POLL_TYPE_IMAGE"};
_.K.onExplanationChanged=function(){this.expander.reset()};
_.K.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var x=this.data.choices;if(x){this.maybeInitializeQuizLotties(x);for(var L=0;L<x.length;L++)if(x[L].isSelected||this.isChannelOwner&&x[L].isCorrect){this.selectedItemIndex=L;return}this.selectedItemIndex=-1}}};
_.K.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var x=this.selectedItemIndex,L=Number(this.quizVotes.selected);this.selectChoice(L);this.sendVoteAction(L,x);this.quizVotes.selected=-1;var D;x=!((D=this.data)==null?0:D.enableAnimation);this.maybePlayAnswerAnimations(x)}};
_.K.onYtCommentPollRevert=function(x,L){L&&(this.selectChoice(L.selectedChoiceIndex),this.set("data.totalVotes",L.totalVotes))};
_.K.onYtServiceRequestSent=function(x,L){if(L.actions)for(x=_.O(L.actions),L=x.next();!L.done;L=x.next())(L=_.g(L.value,iZ))&&this.set("data.totalVotes",L.totalVotes)};
_.K.onYtServiceRequestCompleted=function(x){var L=this.get("detail.data.actionResults.0.feedback",x);x=this.get("detail.data.actionResults.0.status",x);if(L==="FEEDBACK_DESELECT"||L==="FEEDBACK_SELECT")this.isLoading=!1,x==="STATUS_FAILED"?_.MF(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.K.getAnimationPropsForChoiceIndex=function(x,L){return L[x]};
_.K.maybePlayAnswerAnimations=function(x){x=x===void 0?!1:x;var L;if((L=this.data)!=null&&L.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){L=_.O(this.correctnessAnimationRefs);for(var D=L.next();!D.done;D=L.next()){var S=void 0,Q=void 0;(S=D.value)==null||(Q=S.lottieEl)==null||Q.stop()}if(!(this.selectedItemIndex<0)){L=0;x&&(L=this.isCorrect?37:25);var J,Z;(J=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(Z=J.lottieEl)==null||Z.goToAndPlay(x?L:0,!0);if(!(this.isCorrect||
(J=this.data.choices.findIndex(function(v){return v.isCorrect}),J<0))){var y,E;
(E=(y=this.correctnessAnimationRefs[J])==null?void 0:y.lottieEl)==null||E.goToAndPlay(37,!0);var P;y=(P=this.fadeContainers)==null?void 0:P.item(J);!x&&y&&this.fadeIn(y)}}}};
_.K.thumbnailSrc=function(x){var L,D,S,Q;return(x==null?0:(L=x.thumbnails)==null?0:(D=L[0])==null?0:D.url)?_.$z((S=x.thumbnails)==null?void 0:(Q=S[0])==null?void 0:Q.url):void 0};
_.K.a11yVotedText=function(x,L){var D,S,Q=((D=this.data)==null?void 0:(S=D.correctVotedText)==null?void 0:S.simpleText)||"",J,Z;D=((J=this.data)==null?void 0:(Z=J.votedText)==null?void 0:Z.simpleText)||"";if(!L)return"";var y,E;if((y=this.data)==null?0:(E=y.choices)==null?0:E[x].isCorrect)return Q;var P,v;return((P=this.data)==null?0:(v=P.choices)==null?0:v[x].isSelected)?D:""};
_.K.getEndpoint=function(x,L){return L===x?this.data.choices[x].deselectServiceEndpoint||null:this.data.choices[x].selectServiceEndpoint||null};
_.K.sendVoteAction=function(x,L){if(x=this.getEndpoint(x,L))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(x)};
_.K.selectChoice=function(x){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var L=0;L<this.data.choices.length;L++)this.set("data.choices."+L+".isSelected",x===this.selectedItemIndex?!1:L===x);this.selectedItemIndex=this.selectedItemIndex===x?-1:x};
_.K.maybeInitializeQuizLotties=function(x){var L=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=x.map(function(D){return{animationConfig:D.isCorrect?L.baseCorrectLottiePlayerAnimationConfig:L.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){L.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(D){return D.animationRef||{}})};
_.K.fadeIn=function(x){x.classList.add("fade-in");_.hD(_.WW,function(){x.classList.remove("fade-in")},900)};
_.J3.Object.defineProperties(uA.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.u("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.SR(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 x,L;return((x=this.data)==null?void 0:(L=x.choices)==null?void 0:L.some(function(D){return D.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null||!x.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?Gx2:this.data.choices[this.selectedItemIndex].explanation||Gx2}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null||!x.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
uA.prototype.onYtServiceRequestCompleted=uA.prototype.onYtServiceRequestCompleted;uA.prototype.onYtServiceRequestSent=uA.prototype.onYtServiceRequestSent;uA.prototype.onYtCommentPollRevert=uA.prototype.onYtCommentPollRevert;uA.prototype.dataChanged=uA.prototype.dataChanged;uA.prototype.onExplanationChanged=uA.prototype.onExplanationChanged;_.A([_.b(_.Pg),_.r("design:type",Object)],uA.prototype,"paperItemBehavior",void 0);
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],uA.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],uA.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.sB.YtTaskEmitterBehavior),_.r("design:type",Object)],uA.prototype,"ytTaskEmitterBehavior",void 0);_.A([_.b(_.Fz),_.r("design:type",Object)],uA.prototype,"ytdOpenPopupBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],uA.prototype,"data",void 0);
_.A([_.F(),_.r("design:type",Object)],uA.prototype,"isLoading",void 0);_.A([_.F(),_.r("design:type",Object)],uA.prototype,"usesPanelLockup",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.r("design:type",Boolean)],uA.prototype,"isChannelOwner",void 0);_.A([_.F({computed:"computeIsTotalVotesDisabled(data)"}),_.r("design:type",Boolean)],uA.prototype,"isTotalVotesDisabled",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.r("design:type",Boolean)],uA.prototype,"isImageQuiz",void 0);_.A([_.F(),_.r("design:type",Object)],uA.prototype,"previousQuizInfo",void 0);_.A([_.F(),_.r("design:type",Object)],uA.prototype,"selectedItemIndex",void 0);_.A([_.F({reflectToAttribute:!0}),_.Y("data","usesPanelLockup"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],uA.prototype,"shouldUseModernUi",null);
_.A([_.sY(".fade-container"),_.r("design:type",Object)],uA.prototype,"fadeContainers",void 0);_.A([_.F(),_.r("design:type",Array)],uA.prototype,"correctnessAnimationProps",void 0);_.A([_.Y("explanation","showCorrectAnswer"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],uA.prototype,"showExplanation",null);_.A([_.Y("isChannelOwner","isAttempted"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],uA.prototype,"showCorrectAnswer",null);
_.A([_.Y("isChannelOwner","isAttempted","data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],uA.prototype,"isQuizAnsweringDisabled",null);_.A([_.Y("isQuizAnsweringDisabled"),_.r("design:type",Object),_.r("design:paramtypes",[])],uA.prototype,"endpointStyle",null);_.A([_.Y("data","selectedItemIndex"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],uA.prototype,"isAttempted",null);
_.A([_.Y("data","selectedItemIndex"),_.r("design:type",Object),_.r("design:paramtypes",[])],uA.prototype,"explanation",null);_.A([_.Y("data","selectedItemIndex"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],uA.prototype,"isCorrect",null);_.A([_.F1("ytd-expander"),_.r("design:type",Object)],uA.prototype,"expander",void 0);_.A([_.F1("#quiz-votes"),_.r("design:type",Object)],uA.prototype,"quizVotes",void 0);
_.A([_.bN("explanation"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],uA.prototype,"onExplanationChanged",null);_.A([_.bN("data","isChannelOwner"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],uA.prototype,"dataChanged",null);_.A([_.mX("yt-comment-quiz-revert"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],uA.prototype,"onYtCommentPollRevert",null);
_.A([_.mX("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.zQ]),_.r("design:returntype")],uA.prototype,"onYtServiceRequestSent",null);_.A([_.mX("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],uA.prototype,"onYtServiceRequestCompleted",null);_.A([_.w({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],uA);
_.q(uA,"ytd-backstage-quiz-renderer",function(){if(ePh!==void 0)return ePh;var x=document.createElement("template");_.m(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="vote-info" hidden="[[isTotalVotesDisabled]]" text="[[data.totalVotes]]" class="style-scope ytd-backstage-quiz-renderer">\n</yt-formatted-string>\n<tp-yt-paper-listbox id="quiz-votes" on-iron-select="onQuizChoiceSelected" class="style-scope ytd-backstage-quiz-renderer">\n  <template is="dom-repeat" items="[[data.choices]]" class="style-scope ytd-backstage-quiz-renderer">\n    <a id="sign-in" class$="[[endpointStyle]] style-scope ytd-backstage-quiz-renderer" aria-disabled="[[isQuizAnsweringDisabled]]" href$="[[computeHref_(item.signinEndpoint)]]" data="[[item.signinEndpoint]]" role="button">\n      <tp-yt-paper-item class="vote-choice style-scope ytd-backstage-quiz-renderer" aria-disabled="[[isQuizAnsweringDisabled]]" attempted$="[[isAttempted]]" correct$="[[item.isCorrect]]" is-channel-owner$="[[isChannelOwner]]" name="[[index]]" role="button" selected$="[[item.isSelected]]" show-correct-answer$="[[showCorrectAnswer]]">\n        <div class="choice-info style-scope ytd-backstage-quiz-renderer">\n          <template is="dom-if" if="[[isImageQuiz]]" class="style-scope ytd-backstage-quiz-renderer">\n            <img class="choice-image style-scope ytd-backstage-quiz-renderer" alt="" src$="[[thumbnailSrc(item.image)]]">\n          </template>\n          <div class="text-area style-scope ytd-backstage-quiz-renderer">\n            <yt-formatted-string class="choice-text style-scope ytd-backstage-quiz-renderer" text="[[item.text]]"> </yt-formatted-string>\n            \n            <div class="a11y-voted-text style-scope ytd-backstage-quiz-renderer" aria-label$="[[a11yVotedText(index, isAttempted)]]"> </div>\n            \n            <span style="user-select: none" class="style-scope ytd-backstage-quiz-renderer"> \u00a0 </span>\n            <div class="voted-box style-scope ytd-backstage-quiz-renderer">\n              <yt-formatted-string class="vote-percentage style-scope ytd-backstage-quiz-renderer" hidden="[[!item.votePercentage]]" text="[[item.votePercentage]]">\n              </yt-formatted-string>\n              <div class="fade-container animation-container style-scope ytd-backstage-quiz-renderer">\n                <ytd-lottie-player class-name="[[is]] correctness-lottie" data="[[getAnimationPropsForChoiceIndex(index, correctnessAnimationProps)]]" class="style-scope ytd-backstage-quiz-renderer">\n                </ytd-lottie-player>\n              </div>\n            </div>\n          </div>\n        </div>\n      </tp-yt-paper-item>\n    </a>\n  </template>\n</tp-yt-paper-listbox>\n<div class="explanation-box style-scope ytd-backstage-quiz-renderer" correct$="[[isCorrect]]" hidden="[[!showExplanation]]">\n  <yt-formatted-string class="explanation-header style-scope ytd-backstage-quiz-renderer" correct$="[[isCorrect]]" text="[[data.explanationHeaderText]]">\n  </yt-formatted-string>\n  <ytd-expander id="expander" max-number-of-lines="3" class="style-scope ytd-backstage-quiz-renderer">\n    <yt-formatted-string class="choice-explanation style-scope ytd-backstage-quiz-renderer" slot="content" force-default-style="" text="[[explanation]]">\n    </yt-formatted-string>\n    <span class="exp-button style-scope ytd-backstage-quiz-renderer" slot="more-button">[[getSimpleString(data.explanationExpandText)]]</span>\n    <span class="exp-button style-scope ytd-backstage-quiz-renderer" slot="less-button">[[getSimpleString(data.explanationCollapseText)]]</span>\n  </ytd-expander>\n</div>\n');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return ePh=x},{mode:1});var Cpd;var gd=function(){return _.e.apply(this,arguments)||this};
_.p(gd,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],gd.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],gd.prototype,"data",void 0);_.A([_.w({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],gd);
_.q(gd,"ytd-post-uploaded-video-renderer",function(){if(Cpd!==void 0)return Cpd;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Cpd=x},{mode:1});var lTQ;var k5=function(){return _.e.apply(this,arguments)||this};
_.p(k5,_.e);k5.prototype.useFilledIcons=function(x){return x==="SPONSORSHIP_STAR"};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],k5.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],k5.prototype,"data",void 0);_.A([_.w({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],k5);
var UQh=_.vp()(k5,"ytd-sponsors-only-badge-renderer",function(){if(lTQ===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);lTQ=x}x=lTQ;return x},{allowedProps:["data"],
mode:1});var wjd;var pE=function(){return _.e.apply(this,arguments)||this};
_.p(pE,_.e);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],pE.prototype,"componentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],pE.prototype,"data",void 0);_.A([_.w({is:"ytd-child-video-renderer",disableElementRegistration:!0})],pE);
_.q(pE,"ytd-child-video-renderer",function(){if(wjd!==void 0)return wjd;var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return wjd=x},{mode:1});var BuQ;var WpG;var mJ=function(){var x=_.e.apply(this,arguments)||this;x.size=0;x.enableWebModernCollectionsV2=_.u("web_modern_collections_v2");x.fallbackImageSize={height:void 0,width:9999};x.webModernCollections=!1;return x};
_.p(mJ,_.e);_.K=mJ.prototype;_.K.computeBlurredImageSize=function(x){return x?{height:x*2,width:x*2}:this.fallbackImageSize};
_.K.computeImageSize=function(x){return x?{height:x,width:x}:this.fallbackImageSize};
_.K.computeObjectFit=function(x){return x?"FILL":"CONTAIN"};
_.K.computePreserve=function(x){return x?!0:!1};
_.K.setBackground=function(){var x,L;_.u("web_modern_collections_v2")&&((x=this.data)==null?0:(L=x.thumbnail)==null?0:L.sampledThumbnailColor)&&(x=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+x.red+","+x.green+","+x.blue+",1)")};
mJ.prototype.setBackground=mJ.prototype.setBackground;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],mJ.prototype,"ytRendererBehavior",void 0);_.A([_.F({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],mJ.prototype,"watchFeedThumbnail",void 0);_.A([_.F(),_.r("design:type",Object)],mJ.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],mJ.prototype,"size",void 0);
_.A([_.F({computed:"computeBlurredImageSize(size)"}),_.r("design:type",Object)],mJ.prototype,"blurredImageSize",void 0);_.A([_.F({computed:"computeImageSize(size)"}),_.r("design:type",Object)],mJ.prototype,"imageSize",void 0);_.A([_.F({computed:"computePreserve(size)"}),_.r("design:type",String)],mJ.prototype,"preserve",void 0);_.A([_.F({computed:"computeObjectFit(size)"}),_.r("design:type",String)],mJ.prototype,"objectFit",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],mJ.prototype,"enableWebModernCollectionsV2",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],mJ.prototype,"webModernCollections",void 0);_.A([_.bN("data.thumbnail.sampledThumbnailColor"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],mJ.prototype,"setBackground",null);_.A([_.w({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],mJ);
_.q(mJ,"ytd-playlist-custom-thumbnail-renderer",function(){if(WpG!==void 0)return WpG;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return WpG=x},{mode:1});var qCA;var bA=function(){return _.e.apply(this,arguments)||this};
_.p(bA,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],bA.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],bA.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Number)],bA.prototype,"width",void 0);_.A([_.w({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],bA);
_.q(bA,"ytd-playlist-video-thumbnail-renderer",function(){if(qCA!==void 0)return qCA;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return qCA=x},{mode:1});var Agi;var Y5=function(){return _.e.apply(this,arguments)||this};
_.p(Y5,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Y5.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Y5.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Number)],Y5.prototype,"width",void 0);_.A([_.w({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],Y5);
_.q(Y5,"ytd-show-custom-thumbnail-renderer",function(){if(Agi!==void 0)return Agi;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Agi=x},{mode:1});var $QG;var FP=function(){return _.e.apply(this,arguments)||this};
_.p(FP,_.e);FP.prototype.useFilledIcons=function(x){return x==="MUSIC"||x==="COURSE"};
FP.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=cq(this.overlayColor,"0.8");else if(this.overlayColor){var x=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+x.red+","+x.green+","+x.blue+",0.8)"}};
_.J3.Object.defineProperties(FP.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)}}});
FP.prototype.overlayColorChanged=FP.prototype.overlayColorChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],FP.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],FP.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],FP.prototype,"overlayColor",void 0);_.A([_.F({reflectToAttribute:!0}),_.Y("data.icon","data.text"),_.r("design:type",Object),_.r("design:paramtypes",[])],FP.prototype,"overlayStyle",null);
_.A([_.F({reflectToAttribute:!0}),_.Y("data.icon","data.text"),_.r("design:type",Object),_.r("design:paramtypes",[])],FP.prototype,"overlayTextStyle",null);_.A([_.bN("overlayColor"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],FP.prototype,"overlayColorChanged",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],FP);
_.q(FP,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if($QG!==void 0)return $QG;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return $QG=x},{mode:1});var rgW;var sa=function(){var x=_.e.apply(this,arguments)||this;x.active=!1;return x};
_.p(sa,_.e);sa.prototype.computeIsSpinnerHidden=function(x){return(x==null?void 0:x.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
sa.prototype.computeOverlayIcon=function(x){return(x==null?void 0:x.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(x==null?void 0:x.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],sa.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],sa.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],sa.prototype,"active",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],sa);
_.q(sa,"ytd-thumbnail-overlay-downloading-renderer",function(){if(rgW!==void 0)return rgW;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return rgW=x},{mode:1});var Nui;var Ta=function(){return _.e.apply(this,arguments)||this};
_.p(Ta,_.e);_.J3.Object.defineProperties(Ta.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Ta.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Ta.prototype,"data",void 0);_.A([_.Y("data.text"),_.r("design:type",Object),_.r("design:paramtypes",[])],Ta.prototype,"text",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],Ta);
_.q(Ta,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(Nui!==void 0)return Nui;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return Nui=x},{mode:1});var iji,fT2=function(){if(iji!==void 0)return iji;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return iji=x};var eE=function(){return _.e.apply(this,arguments)||this};
_.p(eE,_.e);_.J3.Object.defineProperties(eE,{template:{configurable:!0,enumerable:!0,get:function(){return fT2()}}});
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],eE.prototype,"animateEqualizer",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],eE);_.vp()(eE,"ytd-thumbnail-overlay-equalizer",function(){return fT2()},{allowedProps:["animateEqualizer"],
mode:1});var oUQ;var Rb=function(){var x=_.e.apply(this,arguments)||this;x.nowPlayingBadge=_.u("web_now_playing_badge");x.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return x};
_.p(Rb,_.e);Rb.prototype.activeChanged=function(){var x=this;_.u("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.So(this,function(){_.MF(x.hostElement,"yt-playlist-lockup-now-playing-active",x)})};
Rb.prototype.onMiniplayerPlayStateChanged=function(x){var L,D=(L=_.g(_.ie().currentEndpoint,_.L6))==null?void 0:L.videoId;this.isVideoPlaying=x&&(_.u("web_limit_now_playing_animation_killswitch")||this.videoId===D)};
Rb.prototype.activeChanged=Rb.prototype.activeChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Rb.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],Rb.prototype,"ytActionHandlerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Rb.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Boolean)],Rb.prototype,"isVideoPlaying",void 0);_.A([_.F(),_.r("design:type",String)],Rb.prototype,"videoId",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],Rb.prototype,"equalizerOnly",void 0);_.A([_.F(),_.r("design:type",Boolean)],Rb.prototype,"isActive",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Rb.prototype,"nowPlayingBadge",void 0);_.A([_.bN("isActive"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Rb.prototype,"activeChanged",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],Rb);
_.q(Rb,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(oUQ!==void 0)return oUQ;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return oUQ=x},{mode:1});var aTH;var Ga=function(){return _.e.apply(this,arguments)||this};
_.p(Ga,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Ga.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Ga.prototype,"data",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],Ga);
_.q(Ga,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(aTH!==void 0)return aTH;var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return aTH=x},{mode:_.Vm("kevlar_poly_si_batch_j025")?1:2});var zPW;var CE=function(){return _.e.apply(this,arguments)||this};
_.p(CE,_.e);CE.prototype.onDurationChanged=function(){var x,L;_.jr(this.hostElement).querySelector("#progress").style.width=((L=(x=this.data)==null?void 0:x.percentDurationWatched)!=null?L:0)+"%"};
CE.prototype.onDurationChanged=CE.prototype.onDurationChanged;_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],CE.prototype,"componentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],CE.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],CE.prototype,"isLive",void 0);_.A([_.bN("data.percentDurationWatched"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],CE.prototype,"onDurationChanged",null);
_.A([_.w({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],CE);
_.q(CE,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(zPW!==void 0)return zPW;var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return zPW=x},{mode:1});var XjG;var lA=function(){var x=_.e.apply(this,arguments)||this;x.bottomPanel=!1;x.richGridOverlay=!1;x.watchFeedOverlay=!1;x.isCompact=!1;return x};
_.p(lA,_.e);lA.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.J3.Object.defineProperties(lA.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var x,L;return((x=this.data)==null?void 0:(L=x.icon)==null?void 0:L.iconType)==="PLAY_ALL"&&_.u("kevlar_system_icons")}}});
lA.prototype.widthChanged=lA.prototype.widthChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],lA.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],lA.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Number)],lA.prototype,"width",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],lA.prototype,"bottomPanel",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],lA.prototype,"richGridOverlay",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],lA.prototype,"watchFeedOverlay",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],lA.prototype,"isCompact",void 0);_.A([_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],lA.prototype,"isIconFilled",null);_.A([_.bN("width","watchFeedOverlay"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],lA.prototype,"widthChanged",null);
_.A([_.w({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],lA);
_.q(lA,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(XjG!==void 0)return XjG;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return XjG=x},{mode:1});var cg2;var nUR=["CLIP","SHORTS"],Ua=function(){var x=_.e.apply(this,arguments)||this;x.animated=_.u("animated_live_badge_icon");x.hasIcon=!1;x.updateTimerIntervalId=0;x.timeSinceLive=0;return x};
_.p(Ua,_.e);_.K=Ua.prototype;_.K.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.K.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.K.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.K.hasIconOrText=function(){var x,L;return!!(((x=this.data)==null?0:x.icon)||((L=this.data)==null?0:L.text))};
_.K.initializeLiveBadgeTimer=function(){var x=this,L,D=(L=this.liveBadgeData)==null?void 0:L.startTimestampSec;if(D&&this.canShowLiveBadgeTimer()){var S;L=Number((S=this.liveBadgeData)==null?void 0:S.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(D);this.updateTimerIntervalId=_.h8(function(){x.canShowLiveBadgeTimer()?x.timeSinceLive++:(x.timeSinceLive=0,window.clearInterval(x.updateTimerIntervalId))},L)}else this.timeSinceLive=0};
_.K.canShowLiveBadgeTimer=function(){var x=Date.now(),L,D;return x<(Number((L=this.liveBadgeData)==null?void 0:L.endTimestampSec)-1)*1E3&&x>Number((D=this.liveBadgeData)==null?void 0:D.startTimestampSec)*1E3};
_.J3.Object.defineProperties(Ua.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){return this.data?_.Ppp(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 x;return(x=this.data)==null?void 0:x.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 nUR.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
Ua.prototype.initializeLiveBadgeTimer=Ua.prototype.initializeLiveBadgeTimer;Ua.prototype.dataChanged=Ua.prototype.dataChanged;_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],Ua.prototype,"componentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Ua.prototype,"data",void 0);_.A([_.F({computed:"computeIcon_(data.icon)"}),_.r("design:type",String)],Ua.prototype,"icon",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],Ua.prototype,"animated",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.r("design:type",Boolean)],Ua.prototype,"hideTimeStatus",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Ua.prototype,"hasIcon",void 0);_.A([_.F(),_.r("design:type",Object)],Ua.prototype,"timeSinceLive",void 0);_.A([_.Y("data","timeSinceLive"),_.r("design:type",Object),_.r("design:paramtypes",[])],Ua.prototype,"badgeShapeData",null);
_.A([_.Y("data","overlayType"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Ua.prototype,"hideBadgeShape",null);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Ua.prototype,"dataChanged",null);_.A([_.F({reflectToAttribute:!0}),_.Y("data.style"),_.r("design:type",Object),_.r("design:paramtypes",[])],Ua.prototype,"overlayStyle",null);
_.A([_.Y("data.liveBadgeData"),_.r("design:type",Object),_.r("design:paramtypes",[])],Ua.prototype,"liveBadgeData",null);_.A([_.F({reflectToAttribute:!0}),_.Y("data.type"),_.r("design:type",Object),_.r("design:paramtypes",[])],Ua.prototype,"overlayType",null);_.A([_.Y("overlayType","overlayStyle"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Ua.prototype,"useFilledIcon",null);
_.A([_.GV("liveBadgeData"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Ua.prototype,"initializeLiveBadgeTimer",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],Ua);
_.q(Ua,"ytd-thumbnail-overlay-time-status-renderer",function(){if(cg2!==void 0)return cg2;var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return cg2=x},{mode:_.Vm("kevlar_poly_si_batch_j035")?1:2});var txQ;var wd=function(){return _.e.apply(this,arguments)||this};
_.p(wd,_.e);wd.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"}}}}};
wd.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(x){if(this.hasPlaybackProgressBar)return{percentDurationWatched:x.percentDurationWatched}};
wd.prototype.computeHasPlaybackProgressBar=function(x){return!!x.percentDurationWatched&&x.percentDurationWatched>0};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],wd.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],wd.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],wd.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.r("design:type",Boolean)],wd.prototype,"hasPlaybackProgressBar",void 0);
_.A([_.w({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],wd);
_.q(wd,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(txQ!==void 0)return txQ;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return txQ=x},{mode:1});var xER;var LV2=_.B(function(x){var L=x.data;var D=x.children;var S=function(){return!!L().doubleStack},Q=function(){return!!L().includeStackHeight};
return _.M("yt-collections-stack",{class:"ytCollectionsStackHost",hidden:function(){return!L().experimentEnabled}},_.M(_.d,{cond:L,
then:function(){var J={};return _.M(_.I1,null,_.M(_.d,{cond:Q,then:function(){var Z={};return _.M("div",{class:_.gF("ytCollectionsStackSpacer",(Z.ytCollectionsStackSpacerDoubleStack=S,Z))})}}),_.M("div",{class:_.gF((J.ytCollectionsStackRelativeStack=Q,J))},_.M(_.d,{cond:S,
then:function(){var Z={};return _.M("div",{class:_.gF("ytCollectionsStackCollectionStack2",function(){return L().customClassName2ndStack},(Z.ytCollectionsStackCollectionStack2ResponsiveMode=function(){return L().enableResponsiveMode},Z)),
style:_.bc({"background-color":function(){return vUp(L())}})})}}),_.M("div",{class:_.gF("ytCollectionsStackCollectionStack1",function(){return L().customClassName1stStack},function(){return j7b(L().thumbnailSize?L().thumbnailSize:"medium")}),
style:_.bc({"background-color":function(){return vUp(L())}})}),D))}}))},"Aa");_.dF(LV2,"yt-collections-stack",{props:{data:_.pJ}});var Bz=function(){var x=_.e.apply(this,arguments)||this;x.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};x.webModernCollections=!1;x.isSearch=!1;x.isDoubleStack=!1;x.thumbnailSize="medium";x.enableWebModernCollectionsV2=_.u("web_modern_collections_v2");return x};
_.p(Bz,_.e);_.K=Bz.prototype;
_.K.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]]"}}}}}};
_.K.getThumbnailDetails=function(x){if(x!=null&&x.thumbnailRenderer){var L=x.thumbnailRenderer,D;if((D=L.playlistVideoThumbnailRenderer)==null?0:D.thumbnail)return L.playlistVideoThumbnailRenderer.thumbnail;var S;if((S=L.playlistCustomThumbnailRenderer)==null?0:S.thumbnail)return L.playlistCustomThumbnailRenderer.thumbnail;x=x.thumbnailRenderer;var Q;if((Q=x.showCustomThumbnailRenderer)==null?0:Q.thumbnail)return x.showCustomThumbnailRenderer.thumbnail}};
_.K.computeOverlayColor=function(x){var L,D;if((L=this.getThumbnailDetails(x))==null?0:(D=L.darkColorPalette)==null?0:D.section2Color)return this.getThumbnailDetails(x).darkColorPalette.section2Color;var S;return(S=this.getThumbnailDetails(x))==null?void 0:S.sampledThumbnailColor};
_.K.computeWebModernCollections=function(x){if(x==null||!x.thumbnailOverlays)return!1;x=_.O(x.thumbnailOverlays);for(var L=x.next();!L.done;L=x.next()){var D=void 0;if((D=L.value)==null?0:D.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.K.computeNavigationEndpoint=function(x){return kd0(x==null?void 0:x.navigationEndpoint)};
_.J3.Object.defineProperties(Bz.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var x=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:x==null?void 0:x.sampledThumbnailColor,vibrantColorPalette:x==null?void 0:x.vibrantColorPalette,darkColorPalette:x==null?void 0:x.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],Bz.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Bz.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(ZNW),_.r("design:type",Object)],Bz.prototype,"ytdThumbnailBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],Bz.prototype,"componentBehavior",void 0);
_.A([_.F({value:!1}),_.r("design:type",Boolean)],Bz.prototype,"watchFeedThumbnail",void 0);_.A([_.F(),_.r("design:type",Number)],Bz.prototype,"customThumbnailSize",void 0);_.A([_.F({value:!0}),_.r("design:type",Boolean)],Bz.prototype,"hideAria",void 0);_.A([_.F(),_.r("design:type",Object)],Bz.prototype,"data",void 0);_.A([_.F({computed:"computeOverlayColor(data)"}),_.r("design:type",Object)],Bz.prototype,"overlayColor",void 0);
_.A([_.F({computed:"computeWebModernCollections(data)"}),_.r("design:type",Object)],Bz.prototype,"webModernCollections",void 0);_.A([_.F({computed:"computeNavigationEndpoint(data)"}),_.r("design:type",Object)],Bz.prototype,"computedNavigationEndpoint",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Bz.prototype,"isSearch",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Bz.prototype,"isDoubleStack",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",String)],Bz.prototype,"thumbnailSize",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],Bz.prototype,"enableWebModernCollectionsV2",void 0);_.A([_.Y("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.r("design:type",Object),_.r("design:paramtypes",[])],Bz.prototype,"collectionStack",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],Bz);
_.q(Bz,"ytd-playlist-thumbnail",function(){if(xER!==void 0)return xER;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return xER=x},{mode:_.Vm("kevlar_poly_si_batch_j025")?1:2});var DEG;var Wz=function(){var x=_.e.apply(this,arguments)||this;x.noEndpoints=!1;x.amsterdamPostMvp=_.u("web_amsterdam_post_mvp_playlists");x.badges=[];x.transferState="TRANSFER_STATE_UNKNOWN";return x};
_.p(Wz,_.e);_.K=Wz.prototype;_.K.getMetadata=function(x){if(!x)return[];var L=[],D=x.shortViewCountText||x.viewCountText;D&&L.push(_.SR(D));x.publishedTimeText&&L.push(_.SR(x.publishedTimeText));x.upcomingEventData&&x.upcomingEventData.upcomingEventText&&L.push(_.CX(_.SR(x.upcomingEventData.upcomingEventText),Number(x.upcomingEventData.startTime)));return L};
_.K.observeDataForBylineSeparator=function(){this.data&&_.VA(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.K.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.zF(this.metadataColor)};
_.K.getSimpleString=function(x){return _.SR(x)};
_.K.isBylineHidden=function(x){return this.noByline||!((x==null?0:x.longBylineText)||(x==null?0:x.shortBylineText))};
_.K.isMetadataHidden=function(x){var L;return((L=this.getMetadata(x))==null?void 0:L.length)===0};
_.K.isBylineMetadataSeparatorHidden=function(x){return this.isMetadataHidden(x)||!this.shouldShowVideoInfo};
_.K.isLongByline=function(x,L){return L&&!(x==null||!x.longBylineText)};
_.J3.Object.defineProperties(Wz.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var x;return this.amsterdamPostMvp&&!((x=this.data)==null||!x.videoInfo)}},
inlineBadgeClass:{configurable:!0,enumerable:!0,get:function(){return this.badges&&this.badges.length>0?"metadata-line-with-badge":""}},
longBylineClass:{configurable:!0,enumerable:!0,get:function(){return this.longByline?"long-byline":""}},
bylineText:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.longByline?this.data.longBylineText:this.data.shortBylineText}},
watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.u("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
Wz.prototype.metadataColorChanged=Wz.prototype.metadataColorChanged;Wz.prototype.observeDataForBylineSeparator=Wz.prototype.observeDataForBylineSeparator;_.A([_.b(_.EG),_.r("design:type",Object)],Wz.prototype,"ytdReduxBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Wz.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],Wz.prototype,"noEndpoints",void 0);_.A([_.F({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],Wz.prototype,"isSlimShort",void 0);
_.A([_.F({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],Wz.prototype,"radioMeta",void 0);_.A([_.F({selector:_.Nj}),_.r("design:type",Object)],Wz.prototype,"isGridViewEnabled",void 0);_.A([_.F({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],Wz.prototype,"richMeta",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Wz.prototype,"amsterdamPostMvp",void 0);_.A([_.F(),_.r("design:type",Boolean)],Wz.prototype,"noByline",void 0);
_.A([_.F({computed:"isLongByline(data, radioMeta)"}),_.r("design:type",Boolean)],Wz.prototype,"longByline",void 0);_.A([_.F({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],Wz.prototype,"truncateMetadataLine",void 0);_.A([_.F({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],Wz.prototype,"miniMode",void 0);_.A([_.F(),_.r("design:type",Number)],Wz.prototype,"metadataColor",void 0);_.A([_.F(),_.r("design:type",Array)],Wz.prototype,"badges",void 0);
_.A([_.F({selector:_.i6,selectorArgs:["data.videoId"]}),_.r("design:type",String)],Wz.prototype,"transferState",void 0);_.A([_.F({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],Wz.prototype,"isDownloading",void 0);_.A([_.F({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],Wz.prototype,"typographyBump",void 0);_.A([_.F1("#metadata-line"),_.r("design:type",HTMLElement)],Wz.prototype,"metadataLine",void 0);
_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Wz.prototype,"observeDataForBylineSeparator",null);_.A([_.bN("metadataColor"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Wz.prototype,"metadataColorChanged",null);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Wz.prototype,"shouldShowVideoInfo",null);
_.A([_.Y("badges"),_.r("design:type",String),_.r("design:paramtypes",[])],Wz.prototype,"inlineBadgeClass",null);_.A([_.Y("longByline"),_.r("design:type",String),_.r("design:paramtypes",[])],Wz.prototype,"longBylineClass",null);_.A([_.Y("data","longByline"),_.r("design:type",Object),_.r("design:paramtypes",[])],Wz.prototype,"bylineText",null);_.A([_.Y("isGridViewEnabled","data"),_.F({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Wz.prototype,"watchFeedBigThumbs",null);
_.A([_.w({is:"ytd-video-meta-block",disableElementRegistration:!0})],Wz);
_.q(Wz,"ytd-video-meta-block",function(){if(DEG!==void 0)return DEG;var x=document.createElement("template");_.m(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-meta-block--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="metadata" class="style-scope ytd-video-meta-block">\n  <div id="byline-container" hidden="[[isBylineHidden(data, radioMeta)]]" class="style-scope ytd-video-meta-block">\n    <ytd-channel-name id="channel-name" class$="[[longBylineClass]] style-scope ytd-video-meta-block" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" no-endpoints="[[noEndpoints]]" wrap-text="[[longByline]]">\n    </ytd-channel-name>\n    <div id="separator" class="style-scope ytd-video-meta-block">\u2022</div>\n    <yt-formatted-string id="video-info" hidden="[[!shouldShowVideoInfo]]" text="[[data.videoInfo]]" class="style-scope ytd-video-meta-block">\n  </yt-formatted-string>\n  </div>\n  <div id="metadata-line" class="style-scope ytd-video-meta-block">\n    \n    <ytd-badge-supported-renderer class="inline-metadata-badge style-scope ytd-video-meta-block" badges="[[badges]]" hidden="[[!badges.length]]">\n    </ytd-badge-supported-renderer>\n    <div id="separator" hidden="[[isBylineMetadataSeparatorHidden(data)]]" class="style-scope ytd-video-meta-block">\u2022</div>\n    <template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-video-meta-block">\n      <span class="inline-metadata-item style-scope ytd-video-meta-block">[[item]]</span>\n    </template>\n  </div>\n</div>\n<div id="additional-metadata-line" class="style-scope ytd-video-meta-block">\n  <template is="dom-repeat" items="[[data.additionalMetadatas]]" class="style-scope ytd-video-meta-block"><span class="style-scope ytd-video-meta-block">[[getSimpleString(item)]]</span></template>\n</div>\n\n');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return DEG=x},{mode:_.Vm("kevlar_poly_si_batch_j080")?1:2});_.BD("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var qS=function(){var x=_.e.apply(this,arguments)||this;x.displayItemCount=2;x.isBackstagePlaylist=!1;x.isPostCompactPlaylist=!1;x.shouldShowChannelThumbnail=!1;x.useModernCollectionsV2=_.u("web_modern_collections_v2");return x};
_.p(qS,_.e);_.K=qS.prototype;_.K.computeFirstVideos=function(x,L){return x===void 0||L===void 0?[]:x.slice(0,L)};
_.K.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var x=this.data.thumbnailRenderer;x.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",x.playlistVideoThumbnailRenderer.thumbnail);x.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",x.playlistCustomThumbnailRenderer.thumbnail)}};
_.K.computeThumbnailHeight=function(x,L,D,S,Q){return S?Q==="BIG"?280:Q==="MASSIVE"?337:234:D?240:L?72:x?118:138};
_.K.computeThumbnailWidth=function(x,L,D,S,Q){return S?Q==="MEDIUM"?450:Q==="BIG"?500:Q==="MASSIVE"?600:420:D?360:L?128:x?210:246};
_.K.computeUseBiggerThumbs=function(x){return x&&_.u("enable_desktop_search_bigger_thumbs")};
_.K.computeShouldShowChannelThumbnail=function(x,L){return x&&!(L==null||!L.channelThumbnail)};
_.J3.Object.defineProperties(qS.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
qS.prototype.dataChanged=qS.prototype.dataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],qS.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.uM),_.r("design:type",Object)],qS.prototype,"ytdLockupBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],qS.prototype,"ytdReduxBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],qS.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],qS.prototype,"displayItemCount",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],qS.prototype,"isBackstagePlaylist",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],qS.prototype,"isPostCompactPlaylist",void 0);_.A([_.F({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],qS.prototype,"isSearch",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.r("design:type",Boolean)],qS.prototype,"useBiggerThumbs",void 0);_.A([_.F({reflectToAttribute:!0,value:function(){return _.PY("desktop_search_bigger_thumbs_style")}}),
_.r("design:type",String)],qS.prototype,"biggerThumbsStyle",void 0);_.A([_.F({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],qS.prototype,"isDownloads",void 0);_.A([_.F({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.r("design:type",Object)],qS.prototype,"shouldShowChannelThumbnail",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],qS.prototype,"useModernCollectionsV2",void 0);
_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],qS.prototype,"dataChanged",null);_.A([_.Y("isSearch"),_.r("design:type",String),_.r("design:paramtypes",[])],qS.prototype,"stackThumbnailSize",null);_.A([_.w({is:"ytd-playlist-renderer",disableElementRegistration:!0})],qS);
_.q(qS,"ytd-playlist-renderer",function(){if(BuQ===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);BuQ=x}x=BuQ;return x},{mode:1});var Seh;var QAW;var Ay=function(){var x=_.e.apply(this,arguments)||this;x.collections=!!_.u("web_modern_collections_v2");x.startX=0;return x};
_.p(Ay,_.e);Ay.prototype.onEndpointMouseDown=function(x){this.startX=x.clientX};
Ay.prototype.onEndpointClick=function(x){this.startX!==x.clientX&&(x.preventDefault(),x.stopPropagation())};
Ay.prototype.computeObjectFit=function(x){return x==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||x==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||x==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
Ay.prototype.computeCardStyle=function(x){return x?x.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.J3.Object.defineProperties(Ay.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var x,L;return this.collections&&((x=this.data)==null?void 0:(L=x.searchRefinementCardRendererStyle)==null?void 0:L.value)==="CARD_RENDERER_STYLE_TYPE_ALBUM_CARD"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){return this.isAlbumCard?{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,customClassName1stStack:"collection-stack-1 style-scope "+this.is}:{experimentEnabled:!1}}}});
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Ay.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Ay.prototype,"data",void 0);_.A([_.F({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.r("design:type",Number)],Ay.prototype,"objectFit",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.r("design:type",String)],Ay.prototype,"cardStyle",void 0);
_.A([_.F({reflectToAttribute:!0,value:!0}),_.r("design:type",Boolean)],Ay.prototype,"roundContainer",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],Ay.prototype,"collections",void 0);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Ay.prototype,"isAlbumCard",null);_.A([_.Y("data","collections","isAlbumCard"),_.r("design:type",Object),_.r("design:paramtypes",[])],Ay.prototype,"collectionStack",null);
_.A([_.w({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],Ay);
_.q(Ay,"ytd-search-refinement-card-renderer",function(){if(QAW!==void 0)return QAW;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return QAW=x},{mode:1});var JVR;var $5=function(){var x=_.e.apply(this,arguments)||this;x.isRichGrid=!1;return x};
_.p($5,_.e);_.A([_.F(),_.r("design:type",Object)],$5.prototype,"data",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],$5.prototype,"componentBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],$5.prototype,"ytdReduxBehavior",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],$5.prototype,"isRichGrid",void 0);_.A([_.F({reflectToAttribute:!0,selector:_.qU}),_.r("design:type",Boolean)],$5.prototype,"miniMode",void 0);
_.A([_.w({is:"ytd-game-details-renderer",disableElementRegistration:!0})],$5);
_.q($5,"ytd-game-details-renderer",function(){if(JVR!==void 0)return JVR;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return JVR=x},{mode:1});var KVQ;var Obh;var rd=function(){var x=_.e.apply(this,arguments)||this;x.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return x};
_.p(rd,_.e);_.K=rd.prototype;_.K.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.K.currentStateData=function(x){var L=x||this.data;return L&&L.states&&L.currentStateId!=null?L.states.find(function(D){return D.stateId===L.currentStateId})||null:null};
_.K.currentStateRendererData=function(x){return(x=this.currentStateData(x))&&x.state&&x.state.buttonRenderer?x.state.buttonRenderer:null};
_.K.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())};
_.K.computeButtonIcon=function(x){x=this.currentStateRendererData(x);var L;return(x==null?0:(L=x.icon)==null?0:L.iconType)?x.icon.iconType.toLowerCase():null};
_.K.computeAccessibility=function(x){return(x=this.currentStateRendererData(x))&&x.accessibilityData?x.accessibilityData.accessibilityData||null:null};
_.K.computeButtonClass=function(x){var L=this.currentStateRendererData(x);if(!L)return"";x="";var D=L.style;D&&(x+=D.toLowerCase().replace(/_/g,"-")+" ");(L=L.size)&&(x+=L.toLowerCase().replace(/_/g,"-")+" ");return x.trim()};
_.K.computeServiceEndpoint=function(x){if(!x)return null;var L=x&&x.serviceEndpoint,D=this.get("command.commandMetadata.webCommandMetadata.sendPost",x);return L?L:D&&x.command?x.command:null};
_.K.computeBellMenuItemParams=function(x){var L;x=(L=_.g(x==null?void 0:x.command,_.h_))==null?void 0:L.commands;if(!x||x.length===0)return null;L=_.g(x[0],_.fS);var D,S;return(L==null?0:(D=L.popup)==null?0:(S=D.menuPopupRenderer)==null?0:S.items)?L.popup.menuPopupRenderer.items.map(function(Q){return Q.menuServiceItemRenderer.trackingParams}):null};
_.K.handleBellMenuOpenSelectedAction=function(x){var L=x.trackingParams,D=this.computeBellMenuItemParams(this.data);this.data&&L&&D&&D.includes(L)&&this.ytRenderButtonBehavior._setButtonIcon(x.icon.iconType.toLowerCase())};
_.K.onYtServiceRequestCompleted=function(x,L){(x=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",L))&&this.set("data",x)};
_.K.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.K.resetState=function(){this.set("data.currentStateId",3)};
_.K.onYtButtonTapHandler=function(){if(this.data){var x=this.currentStateRendererData(this.data);x&&this.ytRendererBehavior.logExplicitClick(x)}};
rd.prototype.onYtServiceRequestError=rd.prototype.onYtServiceRequestError;rd.prototype.onYtServiceRequestCompleted=rd.prototype.onYtServiceRequestCompleted;rd.prototype.stateChanged=rd.prototype.stateChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],rd.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],rd.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.b(xs.YtRenderButtonBehavior),_.r("design:type",Object)],rd.prototype,"ytRenderButtonBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],rd.prototype,"data",void 0);_.A([_.GV("data","data.currentStateId"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],rd.prototype,"stateChanged",null);
_.A([_.mX("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.S2]),_.r("design:returntype")],rd.prototype,"onYtServiceRequestCompleted",null);_.A([_.mX("yt-service-request-error"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],rd.prototype,"onYtServiceRequestError",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],rd);
_.q(rd,"ytd-subscription-notification-toggle-button-renderer",function(){if(Obh!==void 0)return Obh;var x=document.createElement("template");_.m(x,"\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");x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return Obh=x},{mode:1});var Zb2;var NS=function(){var x=_.e.apply(this,arguments)||this;x.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};x.tapHandler=function(){if(x.data){var L=x.currentStateRendererData();L&&x.ytRendererBehavior.logExplicitClick(L)}};
return x};
_.p(NS,_.e);_.K=NS.prototype;_.K.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.K.currentStateData=function(){var x=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(L){return L.stateId===x.data.currentStateId})||null:null};
_.K.currentStateRendererData=function(){var x=this.currentStateData();return x&&x.state&&x.state.buttonRenderer?x.state.buttonRenderer:null};
_.K.computeAccessibilityLabel=function(){var x,L,D;return(x=this.currentStateRendererData())==null?void 0:(L=x.accessibilityData)==null?void 0:(D=L.accessibilityData)==null?void 0:D.label};
_.K.computeBellMenuItemParams=function(){var x,L,D=(L=_.g((x=this.data)==null?void 0:x.command,_.h_))==null?void 0:L.commands;if(!D||D.length===0)return null;x=_.g(D[0],_.fS);var S,Q;return(x==null?0:(S=x.popup)==null?0:(Q=S.menuPopupRenderer)==null?0:Q.items)?x.popup.menuPopupRenderer.items.map(function(J){return J.menuServiceItemRenderer.trackingParams}):null};
_.K.handleBellMenuOpenSelectedAction=function(x){var L=x.trackingParams,D=this.computeBellMenuItemParams();if(this.data&&L&&D&&D.includes(L)&&(x==null||!x.isDisabled)){var S;((S=_.g(x.serviceEndpoint,_.ul))==null?void 0:S.signal)!=="CLIENT_SIGNAL"&&(this.icon=x.icon.iconType)}};
_.K.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.K.onYtServiceRequestCompleted=function(x,L){if(x=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",L))this.icon=void 0,this.set("data",x)};
_.K.onYtServiceRequestError=function(){this.icon=void 0};
_.J3.Object.defineProperties(NS.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var x=this.data,L=this.textLabel,D=this.hostElement,S=this.computeAccessibilityLabel(),Q=this.tapHandler,J=this.isOverlay?"overlay":"mono",Z=(x==null?0:x.disableButton)?"disabled":"active";L=L?_.$i(L):void 0;return{style:J,type:"tonal",state:Z,size:"M",focused:!1,formattedButtonText:L,iconPosition:"leading-trailing",onTap:hPb(x,Q,D),accessibilityLabel:S}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var x=this.currentStateRendererData(),L,D,S=(D=this.icon)!=null?D:x==null?void 0:(L=x.icon)==null?void 0:L.iconType;if(S)return _.gB(S)}},
computedAnimateIcon:{configurable:!0,enumerable:!0,get:function(){return this.computedIcon==="NOTIFICATIONS_NONE"?!0:void 0}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var x,L,D=(x=this.data)==null?void 0:(L=x.secondaryIcon)==null?void 0:L.iconType;if(D)return _.gB(D)}}});
NS.prototype.onYtServiceRequestError=NS.prototype.onYtServiceRequestError;NS.prototype.onYtServiceRequestCompleted=NS.prototype.onYtServiceRequestCompleted;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],NS.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],NS.prototype,"ytActionHandlerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],NS.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],NS.prototype,"textLabel",void 0);
_.A([_.F(),_.r("design:type",String)],NS.prototype,"icon",void 0);_.A([_.F(),_.r("design:type",Boolean)],NS.prototype,"isOverlay",void 0);_.A([_.Y("data.*","textLabel"),_.r("design:type",Object),_.r("design:paramtypes",[])],NS.prototype,"computedButtonShape",null);_.A([_.Y("data.*","icon"),_.r("design:type",Object),_.r("design:paramtypes",[])],NS.prototype,"computedIcon",null);_.A([_.Y("computedIcon"),_.r("design:type",Object),_.r("design:paramtypes",[])],NS.prototype,"computedAnimateIcon",null);
_.A([_.Y("data.*"),_.r("design:type",Object),_.r("design:paramtypes",[])],NS.prototype,"computedSecondaryIcon",null);_.A([_.mX("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.S2]),_.r("design:returntype")],NS.prototype,"onYtServiceRequestCompleted",null);_.A([_.mX("yt-service-request-error"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],NS.prototype,"onYtServiceRequestError",null);
_.A([_.w({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],NS);
_.q(NS,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(Zb2!==void 0)return Zb2;var x=document.createElement("template");_.m(x,'\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 Zb2=x},{mode:_.Vm("kevlar_poly_si_batch_j081")?1:2});var yV2;_.dF(ygR,"yt-animated-action",{props:{backgroundLottieRef:_.pJ,foregroundLottieRef:_.pJ,wrapperClass:_.pJ,disableAnimation:_.pJ},unsafeExternallySettableAttributes:new Set(["key"])});var iA=function(){var x=_.e.apply(this,arguments)||this;x.animatedActionEnabled=_.u("web_animated_actions");x.foregroundLottieRef={};x.backgroundLottieRef={};x.forceIconOnly=!1;x.showTextWhileAnimating=!1;x.keyboardFocused=!1;x.isAnimating=!1;x.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return x};
_.p(iA,_.e);_.K=iA.prototype;_.K.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.K.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]]"}}}}}};
_.K.attached=function(){this.keyboardFocused=!1};
_.K.onYtServiceRequestSent=function(x,L){(this.get("endpoint.subscribeEndpoint",L)||this.get("endpoint.unsubscribeEndpoint",L))&&this.updateSubscriptionState(!this.subscribed)};
_.K.onYtServiceRequestCompleted=function(x,L){(x=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",L.data))&&this.bellButton&&(this.bellButton.data=x)};
_.K.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.uN(this.hostElement)};
_.K.onPlayerSubscribe=function(x){this.isCompactRed()||x!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.K.onPlayerUnsubscribe=function(x){this.isCompactRed()||x!==this.data.channelId||this.updateSubscriptionState(!1)};
_.K.handleUpdateSubscribeButtonAction=function(x){x=_.g(x,irW);var L;x&&x.channelId===((L=this.data)==null?void 0:L.channelId)&&this.updateSubscriptionState(!!x.subscribed)};
_.K.computeButtonStyle=function(x){return this.get("style.styleType",x)||null};
_.K.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.K.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.K.updateSubscriptionState=function(x){if(x!==this.subscribed){this.set("data.subscribed",x);var L,D=(L=this.data)==null?void 0:L.subscribedEntityKey;D&&this.ytdReduxBehavior.dispatch(_.TR("subscriptionStateEntity",D,{key:D,subscribed:x}));this.isCompactRed()||_.MF(this.hostElement,"yt-subscription-changed",x);x||(_.dg(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!x),x&&this.hasBellButton&&this.startAnimation())}};
_.K.startAnimation=function(){var x=this;if(!this.isAnimating){var L=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var D;(D=this.backgroundLottieRef.lottieEl)==null||D.goToAndPlay(0);var S;(S=this.foregroundLottieRef.lottieEl)==null||S.goToAndPlay(0);_.WW.addJob(function(){x.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.WW.addJob(function(){x.updateContainerToFitContent(!!x.subscribed,!0)},2,1500);
_.WW.addJob(function(){x.isAnimating=!1},2,L)}};
_.K.maybeAnimateBellIcon=function(){var x=_.vP(this.hostElement).querySelector("yt-animated-icon");if(x){var L;(L=x.animationRef.lottieEl)==null||L.goToAndPlay(0)}};
_.K.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.K.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.K.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var x;this.unsubscribedWidth=(x=this.subscribeButtonShape)==null?void 0:x.getBoundingClientRect().width}var L;this.subscribedWidth=(L=this.bellButton)==null?void 0:L.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.K.updateContainerToFitContent=function(x,L){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(x?(x=this.subscribedWidth,L=this.isAnimating&&!L,this.subscribedIconOnlyWidth===void 0||L||(x=this.subscribedIconOnlyWidth),this.hostElement.style.width=x+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.K.clearContainerSize=function(){this.hostElement.style.width=""};
_.K.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.K.maybeSetSubscribedButtonIconOnlyWidth=function(){var x=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 L;x.subscribedIconOnlyWidth=(L=x.bellButton)==null?void 0:L.getBoundingClientRect().width;requestAnimationFrame(function(){if(x.bellButton){var D;x.bellButton.textLabel=
(D=x.data)==null?void 0:D.subscribedButtonText}})})))};
_.J3.Object.defineProperties(iA.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 x;return(x=this.data)==null?void 0:x.subscribedButtonText}var L;return this.forceIconOnly?void 0:(L=this.data)==null?void 0:L.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var x,L,D=((x=this.data)==null?void 0:(L=x.timedAnimationData)==null?void 0:L.animationTiming)||[];return{uniqueId:"subscribe",timings:D,enabled:D.length>0&&!this.subscribed,experimentEnabled:D.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var x;return!this.subscribed&&((x=this.data)==null?void 0:x.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 x={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var L=x.renderer;var D=x.element;var S=x.subscribed;var Q=x.commandController;var J=x.isOverlay;x=x.stopPropagation;var Z=kxh(L,S);J&&(Z.style="overlay");J=Object;var y=J.assign,E;a:switch((E=L.style)==null?void 0:E.styleType){case "COMPACT_GRAY":case "COMPACT_RED":E={size:"S"};break a;default:E={size:"M"}}var P=gU0(L,
S);var v=(v=S?L.subscribedButtonText:L.unsubscribedButtonText)?_.$i(v):void 0;return y.call(J,{},Z,E,{focused:!1,toggled:S,accessibilityLabel:P,formattedButtonText:v,onTap:ukh(L,S,D,Q,x)})}}}});
iA.prototype.onMouseDown=iA.prototype.onMouseDown;iA.prototype.onDataChanged=iA.prototype.onDataChanged;iA.prototype.observedSubscribed=iA.prototype.observedSubscribed;iA.prototype.onYtServiceRequestCompleted=iA.prototype.onYtServiceRequestCompleted;iA.prototype.onYtServiceRequestSent=iA.prototype.onYtServiceRequestSent;iA.prototype.maybeUpdateBellButtonText=iA.prototype.maybeUpdateBellButtonText;_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],iA.prototype,"ytComponentBehavior",void 0);
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],iA.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],iA.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],iA.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],iA.prototype,"ytdReduxBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],iA.prototype,"data",void 0);
_.A([_.F({selectorArgs:["data.subscribedEntityKey"],selector:uln}),_.r("design:type",Object)],iA.prototype,"subscriptionStateEntity",void 0);_.A([_.F({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.r("design:type",Boolean)],iA.prototype,"subscribed",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],iA.prototype,"branded",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],iA.prototype,"animatedActionEnabled",void 0);
_.A([_.F(),_.r("design:type",Object)],iA.prototype,"foregroundLottieRef",void 0);_.A([_.F(),_.r("design:type",Object)],iA.prototype,"backgroundLottieRef",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],iA.prototype,"overlayButton",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.r("design:type",Object)],iA.prototype,"buttonStyle",void 0);_.A([_.F(),_.r("design:type",Object)],iA.prototype,"forceIconOnly",void 0);
_.A([_.F(),_.r("design:type",Object)],iA.prototype,"showTextWhileAnimating",void 0);_.A([_.F({value:function(){return!!_.yY().resolve(_.ZN(_.CJ))&&_.u("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.r("design:type",Boolean)],iA.prototype,"useKeyboardFocused",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],iA.prototype,"keyboardFocused",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],iA.prototype,"isAnimating",void 0);_.A([_.Y("data.notificationPreferenceButton.*"),_.r("design:type",Object),_.r("design:paramtypes",[])],iA.prototype,"hasBellButton",null);
_.A([_.bN("subscribedButtonText"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],iA.prototype,"maybeUpdateBellButtonText",null);_.A([_.Y("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.r("design:type",Object),_.r("design:paramtypes",[])],iA.prototype,"subscribedButtonText",null);_.A([_.Y("data.timedAnimationData.animationTiming","subscribed"),_.r("design:type",Object),_.r("design:paramtypes",[])],iA.prototype,"smartimationSettings",null);
_.A([_.F({reflectToAttribute:!0}),_.Y("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.r("design:type",Object),_.r("design:paramtypes",[])],iA.prototype,"subscribeButtonHidden",null);_.A([_.F({reflectToAttribute:!0}),_.Y("subscribed","hasBellButton"),_.r("design:type",Object),_.r("design:paramtypes",[])],iA.prototype,"subscribeButtonInvisible",null);
_.A([_.F({reflectToAttribute:!0}),_.Y("subscribed"),_.r("design:type",Object),_.r("design:paramtypes",[])],iA.prototype,"unsubscribeButtonHidden",null);_.A([_.F1("ytd-subscription-notification-toggle-button-renderer-next"),_.r("design:type",Object)],iA.prototype,"bellButton",void 0);_.A([_.F1("#subscribe-button-shape"),_.r("design:type",HTMLElement)],iA.prototype,"subscribeButtonShape",void 0);
_.A([_.Y("overlayButton","subscribed","data"),_.r("design:type",Object),_.r("design:paramtypes",[])],iA.prototype,"buttonShape",null);_.A([_.mX("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.zQ]),_.r("design:returntype")],iA.prototype,"onYtServiceRequestSent",null);_.A([_.mX("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.S2]),_.r("design:returntype")],iA.prototype,"onYtServiceRequestCompleted",null);
_.A([_.bN("subscribed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],iA.prototype,"observedSubscribed",null);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],iA.prototype,"onDataChanged",null);_.A([_.mX("mousedown"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],iA.prototype,"onMouseDown",null);
_.A([_.w({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],iA);
_.q(iA,"ytd-subscribe-button-renderer",function(){if(yV2!==void 0)return yV2;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return yV2=x},{mode:1});var fE=function(){var x=_.e.apply(this,arguments)||this;x.isRichGrid=!1;return x};
_.p(fE,_.e);fE.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"}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],fE.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],fE.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],fE.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],fE.prototype,"isRichGrid",void 0);_.A([_.w({is:"ytd-game-card-renderer",disableElementRegistration:!0})],fE);
_.q(fE,"ytd-game-card-renderer",function(){if(KVQ!==void 0)return KVQ;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return KVQ=x},{mode:1});var ob={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.u("defer_menus")&&!oM2?0:void 0,waitForSignal:"eocs"};var IeR;var ESQ;var ab=function(){var x=_.e.apply(this,arguments)||this;x.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return x};
_.p(ab,_.e);_.K=ab.prototype;_.K.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.K.onSeriesReminderStateEntityChange=function(){var x,L,D;((x=this.eventReminderStateEntity)==null?0:x.key)&&((L=this.seriesReminderStateEntity)==null?void 0:L.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((D=this.eventReminderStateEntity)==null?void 0:D.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.TR("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.K.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.K.onYtServiceRequestError=function(){var x;this.updateReminderStateEntitiesFromButtonState((x=this.data)==null?void 0:x.currentState)};
_.K.handleUpdateUpcomingEventReminderButtonStateCommand=function(x){if(x=_.g(x,B62)){var L,D=(L=this.data)==null?void 0:L.targetId;D&&x.targetId===D&&_.xi(this.updateReminderStateEntitiesFromButtonState.bind(this,x.state))}};
_.K.getButtonStateFromReminderState=function(){var x;if(((x=this.seriesReminderStateEntity)==null?void 0:x.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var L;if(((L=this.eventReminderStateEntity)==null?void 0:L.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var D,S;if(((D=this.seriesReminderStateEntity)==null?void 0:D.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((S=this.eventReminderStateEntity)==
null?void 0:S.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var Q;return(Q=this.data)==null?void 0:Q.currentState};
_.K.updateReminderStateEntitiesFromButtonState=function(x){if(x){switch(x){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":x="UPCOMING_EVENT_REMINDER_STATE_NONE";var L="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":x="UPCOMING_EVENT_REMINDER_STATE_SINGLE";L="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":x="UPCOMING_EVENT_REMINDER_STATE_NONE";L="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var D;
((D=this.eventReminderStateEntity)==null?0:D.key)&&this.ytdReduxBehavior.dispatch(_.TR("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:x})));var S;((S=this.seriesReminderStateEntity)==null?0:S.key)&&this.ytdReduxBehavior.dispatch(_.TR("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:L})))}};
_.J3.Object.defineProperties(ab.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var x=this.getButtonStateFromReminderState(),L,D;if(x&&((L=this.data)==null?0:(D=L.states)==null?0:D.length))for(L=_.O(this.data.states),D=L.next();!D.done;D=L.next()){D=D.value;var S=void 0;if(((S=_.g(D,W$Q))==null?void 0:S.state)===x)return _.g(D,W$Q)}}}});
ab.prototype.onYtServiceRequestError=ab.prototype.onYtServiceRequestError;ab.prototype.onYtServiceRequestCompleted=ab.prototype.onYtServiceRequestCompleted;ab.prototype.onSeriesReminderStateEntityChange=ab.prototype.onSeriesReminderStateEntityChange;_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],ab.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],ab.prototype,"ytRendererBehavior",void 0);
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],ab.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],ab.prototype,"ytdReduxBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],ab.prototype,"data",void 0);_.A([_.F({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:k70}),_.r("design:type",Object)],ab.prototype,"eventReminderStateEntity",void 0);
_.A([_.F({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(x,L){return _.u6(x.entities,"sportsSeriesReminderStateEntity",L)}}),
_.r("design:type",Object)],ab.prototype,"seriesReminderStateEntity",void 0);_.A([_.Y("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.r("design:type",Object),_.r("design:paramtypes",[])],ab.prototype,"currentButtonStateRenderer",null);_.A([_.bN("seriesReminderStateEntity"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ab.prototype,"onSeriesReminderStateEntityChange",null);
_.A([_.mX("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ab.prototype,"onYtServiceRequestCompleted",null);_.A([_.mX("yt-service-request-error"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ab.prototype,"onYtServiceRequestError",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],ab);
_.q(ab,"ytd-upcoming-event-reminder-button-renderer",function(){if(ESQ!==void 0)return ESQ;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);
return ESQ=x},{mode:1});var MLB;var za=function(){return _.e.apply(this,arguments)||this};
_.p(za,_.e);za.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.J3.Object.defineProperties(za.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(_.u("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],za.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],za.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],za.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],za.prototype,"shelfDismissal",void 0);_.A([_.Y("data.responseText"),_.r("design:type",Object),_.r("design:paramtypes",[])],za.prototype,"text",null);
_.A([_.Y("data.responseText"),_.r("design:type",Object),_.r("design:paramtypes",[])],za.prototype,"textAriaLabel",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],za);
_.q(za,"ytd-notification-multi-action-renderer",function(){if(MLB!==void 0)return MLB;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return MLB=x},{mode:1});var dEH;var XP=function(){return _.e.apply(this,arguments)||this};
_.p(XP,_.e);XP.prototype.ready=function(){var x=this;_.jr(this.hostElement).querySelector("#undo").addEventListener("tap",function(){x.onUndoTap()})};
XP.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.yY().resolve(_.E2).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],XP.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],XP.prototype,"data",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],XP);
_.q(XP,"ytd-notification-text-renderer",function(){if(dEH!==void 0)return dEH;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return dEH=x},{mode:1});var PF2;var cz=function(){var x=_.e.apply(this,arguments)||this;x.mouseOverDelayJobId=0;x.fadeInImageDelayJobId=0;x.startTimeMs=-1;x.loadingStartTimeMs=-1;x.loadingEndTimeMs=-1;x.hasVideoPreview=!1;return x};
_.p(cz,_.e);_.K=cz.prototype;_.K.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.K.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.K.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.K.showThumbnail=function(){var x=this;this.csn=_.A3();_.rg("fmth");_.WW.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.hD(_.WW,function(){x.loadingStartTimeMs=(0,_.y5)();var L=_.jr(x.hostElement).querySelector("#thumbnail");L.complete?x.displayMouseOverImage():L.addEventListener("load",_.p$(x,x.displayMouseOverImage))},150):_.VA(_.jr(this.hostElement).querySelector("#play"),"show",!0)};
_.K.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.K.onTap=function(){this.removeVideoPreview()};
_.K.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var x=this.videoId,L=this.csn,D=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,S=this.startTimeMs,Q=this.hasVideoPreview,J=_.CI(this.trackingParams),Z={isMovingThumbnail:Q};Q&&S>0&&(D>0&&(Z.movingThumbnailLoadingDurationMs=Math.round(D)),Z.durationHoveredMs=Math.round((0,_.y5)()-S));x&&(Z.videoId=x);_.Do(L,J,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:Z});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.K.removeVideoPreview=function(){_.WW.cancelJob(this.mouseOverDelayJobId);_.WW.cancelJob(this.fadeInImageDelayJobId);var x=_.jr(this.hostElement).querySelector("#thumbnail");_.VA(x,"fade-in",!1);x.removeEventListener("load",_.p$(this,this.displayMouseOverImage));x=_.jr(this.hostElement).querySelector("#play");_.VA(x,"fade-in",!1);_.VA(x,"show",!1)};
_.K.displayMouseOverImage=function(){var x=_.jr(this.hostElement).querySelector("#thumbnail"),L=_.jr(this.hostElement).querySelector("#play");this.isImageAvailable(x)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.y5)(),this.startTimeMs=(0,_.y5)(),this.fadeInImageDelayJobId=_.hD(_.WW,function(){_.VA(x,"fade-in",!0)},50)):_.VA(L,"fade-in",!0)};
_.K.computeThumbnail=function(x,L){var D;x&&x.movingThumbnailDetails&&x.movingThumbnailDetails.thumbnails&&L?D=_.PD(x.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):D=L?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(D)return _.$z(D)};
_.K.isImageAvailable=function(x){return!(!x.src||x.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||x.naturalWidth===120)};
cz.prototype.onTap=cz.prototype.onTap;cz.prototype.dataChanged=cz.prototype.dataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],cz.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],cz.prototype,"ytComponentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],cz.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],cz.prototype,"csn",void 0);_.A([_.F(),_.r("design:type",Object)],cz.prototype,"trackingParams",void 0);
_.A([_.F(),_.r("design:type",String)],cz.prototype,"videoId",void 0);_.A([_.F(),_.r("design:type",Boolean)],cz.prototype,"isAttachedAndDataSet",void 0);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],cz.prototype,"dataChanged",null);_.A([_.mX("click"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],cz.prototype,"onTap",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],cz);
_.q(cz,"ytd-moving-thumbnail-renderer",function(){if(PF2!==void 0)return PF2;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return PF2=x},{mode:1});var jA_;_.Ey=function(x){this.hostElement=x;this.eventSink=null;this.eventList=[]};
_.Ey.prototype.shouldForward=function(){var x,L;return(L=(x=this.eventSink)==null?void 0:x.isConnected)!=null?L:document.body.contains(this.eventSink)};
_.Ey.prototype.start=function(x,L){this.eventSink&&this.stop();for(var D=0;D<x.length;D++)this.hostElement.addEventListener(x[D],_.p$(this,this.forwardEvent));var S;this.eventSink=(S=L.hostElement)!=null?S:L;this.eventList=x};
_.Ey.prototype.stop=function(){for(var x=0;x<this.eventList.length;x++)this.hostElement.removeEventListener(this.eventList[x],_.p$(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.Ey.prototype.forwardEvent=function(x,L){this.shouldForward()&&(x.stopPropagation(),this.eventSink instanceof Element?_.MF(this.eventSink,x.type,L):_.qy(new _.RZ("eventSink is not an element")))};_.nE={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.Ey(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(x,L){this.forwarder_.start(x,L)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var ty=function(){return _.e.apply(this,arguments)||this};
_.p(ty,_.e);_.K=ty.prototype;_.K.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=_.$6("HTML_DIR")==="rtl"?"right":"left"};
_.K.dataChanged=function(){this.popupOpen=!1};
_.K.computeAriaLabel=function(x){return _.g(x,d_d).label};
_.K.onTap=function(x){x.stopPropagation();x.preventDefault();this.data.command&&_.yY().resolve(_.E2).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.K.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.K.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
ty.prototype.onPopupClosed=ty.prototype.onPopupClosed;ty.prototype.onPopupOpened=ty.prototype.onPopupOpened;ty.prototype.onTap=ty.prototype.onTap;ty.prototype.dataChanged=ty.prototype.dataChanged;_.A([_.b(_.nE.YtEventForwardingBehavior),_.r("design:type",Object)],ty.prototype,"eventForwardingBehavior",void 0);_.A([_.b(_.n1),_.r("design:type",Object)],ty.prototype,"ironButtonState",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],ty.prototype,"componentBehavior",void 0);
_.A([_.F(),_.r("design:type",Object)],ty.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0,value:-1}),_.r("design:type",Number)],ty.prototype,"tabindex",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.r("design:type",Object)],ty.prototype,"ariaLabel",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],ty.prototype,"disableTooltips",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],ty.prototype,"popupOpen",void 0);
_.A([_.F(),_.r("design:type",Element)],ty.prototype,"eventSink",void 0);_.A([_.F1("#tooltip"),_.r("design:type",Object)],ty.prototype,"tooltip",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ty.prototype,"dataChanged",null);_.A([_.mX("tap"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],ty.prototype,"onTap",null);
_.A([_.mX("yt-popup-opened"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ty.prototype,"onPopupOpened",null);_.A([_.mX("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ty.prototype,"onPopupClosed",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],ty);
_.q(ty,"ytd-thumbnail-overlay-button-renderer",function(){if(jA_!==void 0)return jA_;var x=document.createElement("template");_.m(x,'\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>');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return jA_=x},{mode:1});var vS2;var xq=function(){return _.e.apply(this,arguments)||this};
_.p(xq,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],xq.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],xq.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],xq.prototype,"disableAnimation",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],xq.prototype,"rounded",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],xq.prototype,"transparentBackground",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],xq.prototype,"noPadding",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],xq);
_.q(xq,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(vS2!==void 0)return vS2;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return vS2=x},{mode:1});var VLd;var LD=function(){return _.e.apply(this,arguments)||this};
_.p(LD,_.e);LD.prototype.computeIconPosition=function(x){return this.get("iconPosition",x)||null};
LD.prototype.computeIconStyle=function(x){return this.get("iconStyle",x)||null};
LD.prototype.computeIsIconStyleFilled=function(x){if(!x)return!1;var L;return x.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((L=x.icon)==null?void 0:L.iconType)==="ERROR_BLACK"};
_.A([_.F(),_.r("design:type",Object)],LD.prototype,"data",void 0);_.A([_.F({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.r("design:type",Object)],LD.prototype,"iconPosition",void 0);_.A([_.F({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.r("design:type",Object)],LD.prototype,"iconStyle",void 0);_.A([_.F({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],LD.prototype,"iconStyleFilled",void 0);
_.A([_.w({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],LD);
_.q(LD,"ytd-thumbnail-overlay-icon-renderer",function(){if(VLd!==void 0)return VLd;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return VLd=x},{mode:1});var hCG;var D6=function(){return _.e.apply(this,arguments)||this};
_.p(D6,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],D6.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],D6.prototype,"data",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],D6);
_.q(D6,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(hCG!==void 0)return hCG;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return hCG=x},{mode:1});var Hb_;var Sg=function(){var x=_.e.apply(this,arguments)||this;x.isPreviewLoading=!1;return x};
_.p(Sg,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Sg.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Sg.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Sg.prototype,"isPreviewLoading",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],Sg);
_.q(Sg,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(Hb_!==void 0)return Hb_;var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Hb_=x},{mode:1});var uVA;var Qn=function(){return _.e.apply(this,arguments)||this};
_.p(Qn,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Qn.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Qn.prototype,"data",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],Qn);
_.q(Qn,"ytd-thumbnail-overlay-pinking-renderer",function(){if(uVA!==void 0)return uVA;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return uVA=x},{mode:1});var gSR;var JA=function(){var x=_.e.apply(this,arguments)||this;x.disableTooltips=!1;x.isLoading=!1;x.useExpandableTooltip=!1;x.toggled=!1;x.hovered=!1;x.mouseoverDelayJobId=0;x.toggleDelayJobId=0;x.expandAnimationDelayJobId=0;return x};
_.p(JA,_.e);_.K=JA.prototype;_.K.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");_.jr(this.hostElement).querySelector("#tooltip").position=_.$6("HTML_DIR")==="rtl"?"right":"left"};
_.K.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.WW.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.WW.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.WW.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.K.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.WW.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.WW.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.WW.cancelJob(this.expandAnimationDelayJobId)};
_.K.computeIcon=function(x,L,D){return(x=D?L:x)&&x.iconType?_.gB(x.iconType):void 0};
_.K.computeAriaLabel=function(x,L,D){return _.g(D?L:x,d_d).label};
_.K.computeTooltip=function(x,L,D){return D?L:x};
_.K.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.K.computeIconOnHover=function(x,L){if((x==null?0:x.iconType)&&!L)return _.gB(x.iconType)};
_.K.onTap=function(x){var L=this;x.stopPropagation();x.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(x=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(x),this.useExpandableTooltip&&(this.toggleDelayJobId=_.hD(_.WW,function(){L.hovered=!1;L.data&&!L.data.toggledServiceEndpoint&&(L.expandAnimationDelayJobId=_.hD(_.WW,function(){L.set("data.isToggled",
!1)},200))},2E3))};
_.K.onMouseenter=function(){var x=this;this.mouseoverDelayJobId=_.hD(_.WW,function(){x.hovered=!0},300)};
_.K.onMouseleave=function(){_.WW.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.K.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.K.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.K.onServiceRequestCompleted=function(x,L){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(L)||this.set("data.isToggled",!this.data.isToggled)};
_.K.serviceRequestWasSuccessful=function(x){return _.g(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.Kv)?x.data.status==="STATUS_SUCCEEDED":!0};
JA.prototype.onServiceRequestCompleted=JA.prototype.onServiceRequestCompleted;JA.prototype.onPopupClosed=JA.prototype.onPopupClosed;JA.prototype.onPopupOpened=JA.prototype.onPopupOpened;JA.prototype.onMouseleave=JA.prototype.onMouseleave;JA.prototype.dataChanged=JA.prototype.dataChanged;_.A([_.b(_.n1),_.r("design:type",Object)],JA.prototype,"ironButtonState",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],JA.prototype,"ytComponentBehavior",void 0);
_.A([_.b(_.nE.YtEventForwardingBehavior),_.r("design:type",Object)],JA.prototype,"ytEventForwardingBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],JA.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.r("design:type",Object)],JA.prototype,"ariaLabel",void 0);_.A([_.F(),_.r("design:type",Object)],JA.prototype,"disableTooltips",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],JA.prototype,"popupOpen",void 0);_.A([_.F(),_.r("design:type",Object)],JA.prototype,"isLoading",void 0);_.A([_.F(),_.r("design:type",Element)],JA.prototype,"eventSink",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],JA.prototype,"useExpandableTooltip",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.r("design:type",Object)],JA.prototype,"toggled",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],JA.prototype,"hovered",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.r("design:type",Object)],JA.prototype,"iconOnHover",void 0);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],JA.prototype,"dataChanged",null);
_.A([_.mX("mouseleave"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],JA.prototype,"onMouseleave",null);_.A([_.mX("yt-popup-opened"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],JA.prototype,"onPopupOpened",null);_.A([_.mX("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],JA.prototype,"onPopupClosed",null);
_.A([_.mX("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.S2]),_.r("design:returntype")],JA.prototype,"onServiceRequestCompleted",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],JA);
_.q(JA,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(gSR!==void 0)return gSR;var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return gSR=x},{mode:_.Vm("kevlar_poly_si_batch_j053")?1:2});var kc2;var pm2=_.B(function(x){var L=x.data;var D=x.thumbnailSize;var S=function(){return L().enableSegmentView};
return _.M("yt-thumbnail-overlay-progress-bar-view-model",{class:_.gF("ytThumbnailOverlayProgressBarHost",function(){return pj4(D==null?void 0:D())})},_.M(_.d,{cond:S,
then:function(){return _.M("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.M("div",{class:_.Uv("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+L().startPercent+"%"}}),_.M("div",{class:_.Uv("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+L().segmentDurationPercent+"%"}},_.M("div",{class:_.Uv("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.M("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.M("div",null," ",function(){return L().segmentLabel})),_.M("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.M("div",{class:_.Uv("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.M(_.d,{cond:function(){return!S()&&L().startPercent},
then:function(){var Q={};return _.M("div",{class:_.Uv("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(Q.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.u("web_enable_modern_progress_bar_overlay"),Q))},_.M("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+L().startPercent+"%"}}))}}))},"Ba");
pm2.idomCompat=!0;var mER=_.B(function(x){var L=_.uk(),D=_.ic(function(Q){var J,Z,y;a:{var E=(J=x.data())==null?void 0:J.animationActivationTargetId;J=((Z=x.data())==null?void 0:Z.animationActivationEntityKey)||"";Z=(y=x.data())==null?void 0:y.animationActivationEntitySelectorType;if(J&&E)switch(Z){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":Q=vYb(Q,J);y=_.yY().resolve(_.ZN(_.iy));E=!!(Q&&Q.videoId===E&&(y==null?0:y.isMiniplayerActive()));E={activated:E,playAnimation:E&&Q.playerState==="PLAYER_STATE_PLAYING"};
break a}E=void 0}return E});
_.Us(function(){var Q;if((Q=D())==null?0:Q.activated){var J;if((J=D())==null?0:J.playAnimation){var Z;(Z=L.lottieEl)==null||Z.goToAndPlay(0)}else{var y;(y=L.lottieEl)==null||y.goToAndStop(0)}}},"DbQiXd");
var S=function(){var Q,J=!((Q=D())==null||!Q.activated);if(x.data()){Q=x.data();var Z=void 0;Q.icon&&(Z=_.tJc(Q.icon),Z=KTf(Z));var y=void 0,E;if((E=Q.backgroundColor)==null?0:E.lightTheme){var P;y={backgroundColor:cq((P=Q.backgroundColor)==null?void 0:P.lightTheme,"0.8")}}if(Q.text||Z||J){if(J&&Q.lottieData&&L){P=Q.lottieData;var v,V,h;E={animationConfig:{name:P.url,path:P.url,autoplay:(v=P.settings)==null?void 0:v.autoplay,loop:(h=(V=P.settings)==null?void 0:V.loop)!=null?h:!0},animationRef:L}}else E=
void 0;if(J)v=17;else b:switch(Q.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":v=18;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":v=19;break b;default:v=17}J={type:v,text:J&&Q.animatedText?Q.animatedText:Q.text,icon:Z,customColors:y,animation:E}}else J=void 0}else J=void 0;return J};
return _.M("yt-thumbnail-badge-view-model",{class:_.gF("ytThumbnailBadgeViewModelHost",x.class)},_.M(_.d,{cond:S,then:function(){return _.M(_.dd,{data:function(){return S()}})}}))},"Da");var bbC=_.B(function(x){var L={},D={};return _.M("yt-thumbnail-bottom-overlay-view-model",{class:_.gF("ytThumbnailBottomOverlayViewModelHost",(L.ytThumbnailBottomOverlayViewModelHostBackground=function(){return x.data().enableGradientBackground},L))},_.M(_.Fj,{data:function(){return x.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(S){return _.M(pm2,{data:S.data,
thumbnailSize:x.thumbnailSize})}}),_.M("div",{class:_.gF("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var S;
return mQc((S=x.thumbnailSize)==null?void 0:S.call(x))},(D.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var S;
return(S=x.isClip)==null?void 0:S.call(x)},D.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var S;
return!_.u("web_enable_modern_progress_bar_overlay")&&((S=x.thumbnailSize)==null?void 0:S.call(x))==="small"},D))},_.M(_.Fj,{data:function(){return x.data().badge}},{thumbnailBadgeViewModel:function(S){return _.M(mER,{data:S.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.M(_.Fj,{data:function(){return x.data().badges}},{thumbnailBadgeViewModel:function(S){return _.M(mER,{data:S.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"Ea");
bbC.idomCompat=!0;_.dF(bbC,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.Il,thumbnailSize:_.Il,isClip:_.Il}});var lTb={calledOnce:!1,state:"visible"},UQf={calledOnce:!1,state:"hidden"};var KD=_.B(function(x){var L=x.data;var D=x.className;x=x.alwaysShow;var S=_.Fph(),Q={};return _.M("thumbnail-hover-overlay-view-model",{el:_.Zt(_.AL(function(){return L().rendererContext})),
class:_.gF("ytThumbnailHoverOverlayViewModelHost",D,(Q.ytThumbnailHoverOverlayViewModelHostForceHover=x,Q)),"aria-label":function(){var J;return(J=_.g(L().rendererContext,_.Fm))==null?void 0:J.label},
role:function(){return _.WX(L().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.WX(L().rendererContext)!==void 0?0:void 0},
"on:keypress":S},_.M("div",{class:_.gF("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(L().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var J="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:J="ytThumbnailHoverOverlayViewModelStyleCover"}return J})},_.M(_.d,{cond:function(){return L().icon},
then:function(J){return _.M(_.Ku,{data:J,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.M(_.d,{cond:function(){return L().text},
then:function(J){return _.M(_.kP,{text:J,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"Ga");
KD.idomCompat=!0;var Yer=_.B(function(x){var L=x.data;return _.M(_.Fj,{data:function(){return L==null?void 0:L().overlays}},{thumbnailHoverOverlayViewModel:KD})},"Ha");
Yer.idomCompat=!0;var FVW={};var sAh=_.B(function(x){var L=x.data;var D=x.image;var S=x.state;var Q=x.iconType;var J=x.overlays;var Z=x.isOverlay;var y=_.Sc("div");x=_.O(_.HB(!0,void 0,"AA4e7b"));var E=x.next().value,P=x.next().value,v=function(){return!!L().onTap},V=_.ZH(Q,"LIVE");
_.Us(function(){var H=L();requestAnimationFrame(function(){if(y.value===null)var k=!0;else{var T=y.value;k=H.badgeText;var G=Wps(H.size);k in FVW?T=FVW[k]:(T=T.clientWidth,FVW[k]=T);(k=T>G)?y.value.style.display="none":y.value.style.visibility="visible"}P(k)})},"vNdN8b");
var h=function(){var H={};return H["yt-spec-avatar-shape__image"]=!0,H["yt-spec-avatar-shape__image--ads-app"]=L().type===1,H["yt-spec-avatar-shape__image--inscribed-square"]=L().type===2,H};
return _.M("yt-avatar-shape",null,_.M("div",{el:_.Zt(Agn(v,{keydown:function(H){if(H.key==="Enter"){var k;(k=H.currentTarget)==null||k.click()}},
click:function(H){var k,T;return void((T=(k=L()).onTap)==null?void 0:T.call(k,H))}})),
class:function(){var H={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},k=L();H=(H[k.clusterLayoutConfig?Nun(k.clusterLayoutConfig):ijn(k.size)]=!0,H["yt-spec-avatar-shape__button--tappable"]=v(),H);(k=L().avatarButtonCustomClassName)&&(H[k]=!0);return _.Uv(H)},
"aria-label":function(){return v()?L().accessibilityText:""},
role:function(){return v()?"button":void 0},
tabindex:function(){return v()?0:void 0}},_.M("div",{class:function(){var H,k=L(),T=S==null?void 0:S(),G=Z==null?void 0:Z(),U=!((H=k.decorations)==null||!H.includes(2)||k.size!=="medium"&&k.size!=="large"),l=k.size==="tiny"||k.size==="extra-small",X,f,N,z,xf={};
H=(xf["yt-spec-avatar-shape--live-ring"]=!!(((X=k.decorations)==null?0:X.includes(0))&&oUb(k.size)),xf["yt-spec-avatar-shape--stories-watched"]=U&&!(T==null||!T.storiesWatched),xf["yt-spec-avatar-shape--stories-unwatched"]=U&&!(T==null?0:T.storiesWatched),xf["yt-spec-avatar-shape--background-border"]=aTf(k.decorations)&&!l,xf["yt-spec-avatar-shape--background-border-thin"]=aTf(k.decorations)&&l,xf["yt-spec-avatar-shape__on-select-border"]=!((f=k.decorations)==null||!f.includes(4)),xf["yt-spec-avatar-shape__white-border"]=
!((N=k.decorations)==null||!N.includes(5)),xf["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((z=k.decorations)==null?0:z.includes(5))&&l),xf["yt-spec-avatar-shape--is-overlay"]=!!G,xf);return _.Uv(H)},
style:function(){a:{var H=L().clusterLayoutConfig;if(H){b:{var k=H.numAvatarsInCluster;var T=H.avatarIndex;if(T!==k-1){switch(H.clusterSize){case "small":H="32";break;case "medium":H="36";break;case "40":H="40";break;default:k=void 0;break b}k="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+H+"x"+H+"_avatars_"+k+"_index_"+T+".svg"}else k=void 0}if(k){k=_.bc({"-webkit-mask-image":"url("+k+")","mask-image":"url("+k+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}k=void 0}return k}},_.M("div",{class:function(){var H={};
var k=L();H=(H[k.clusterLayoutConfig?$Qs(k.clusterLayoutConfig):rg0(k.size)]=!0,H["yt-spec-avatar-shape--no-margin"]=aTf(L().decorations),H["yt-spec-avatar-shape--square"]=L().type===2,H);return _.Uv(H)}},_.M(_.Ku,{data:D,
alt:function(){return!v()&&L().accessibilityText?L().accessibilityText:""},
targetWidth:function(){return fT3(L().size)},
targetHeight:function(){return fT3(L().size)},
className:function(){return _.Uv(h())}}),_.M(_.d,{cond:function(){var H;
return((H=L().decorations)==null?void 0:H.includes(0))&&oUb(L().size)},
then:function(){return _.M("div",{class:function(){var H={};H=(H["yt-spec-avatar-shape__live-badge"]=!0,H["yt-spec-avatar-shape__live-badge--badge-small"]=L().size==="small",H["yt-spec-avatar-shape__live-badge--badge-medium"]=L().size==="medium"||L().size==="48",H["yt-spec-avatar-shape__live-badge--badge-large"]=L().size==="large",H["yt-spec-avatar-shape__live-badge--badge-extra-large"]=L().size==="extra-large"||L().size==="extra-extra-large"||L().size==="giant",H);return _.Uv(H)}},_.M(_.d,{cond:function(){return L().badgeText},
then:function(H){return _.M("div",{class:"yt-spec-avatar-shape__badge-text",el:y},H)}}),_.M(_.d,{cond:E,
then:function(){return _.M("div",{class:"yt-spec-avatar-shape__badge-icon"},_.M(_.YO,{icon:V,size:function(){a:switch(L().size){case "extra-large":var H=16;break a;default:H=13}return H}}))}}))}}),_.M(_.d,{cond:function(){var H,k;
return((H=L().decorations)==null?void 0:H.includes(1))||((k=L().decorations)==null?void 0:k.includes(0))&&!oUb(L().size)},
then:function(){return _.M("div",{class:function(){var H=L(),k,T,G={};var U=(G["yt-spec-avatar-shape__live-dot"]=!((k=H.decorations)==null||!k.includes(0)||oUb(H.size)),G["yt-spec-avatar-shape__new-content"]=!((T=H.decorations)==null||!T.includes(1)),G);return _.Uv(U)}})}}),_.M(_.d,{cond:function(){return!!J},
then:function(){return _.M("div",{class:function(){var H={};H=Object.assign((H["yt-spec-avatar-shape__image-overlays"]=!0,H),h());return _.Uv(H)}},J==null?void 0:J())}})))))},"Ka");
sAh.idomCompat={callbacks:{overlays:!0}};_.O0=_.B(function(x){function L(){D().endpoint&&_.Xf(D().endpoint)}
var D=x.data;var S=x.decorations;var Q=x.avatarButtonCustomClassName;var J=x.isOverlay;var Z=x.clusterLayoutConfig;return _.M("avatar-view-model",null,_.M(_.d,{cond:function(){return D().image},
then:function(y){return _.M(sAh,{data:function(){return Xjs({data:D(),onTap:D().endpoint?L:void 0,decorations:S==null?void 0:S(),badgeText:void 0,accessibilityText:D().accessibilityText,avatarButtonCustomClassName:Q==null?void 0:Q(),clusterLayoutConfig:Z==null?void 0:Z()})},
image:y,iconType:"RADAR_LIVE",overlays:function(){return _.M(Yer,{data:D})},
isOverlay:J})}}))},"La");
_.O0.idomCompat=!0;_.Z6=_.B(function(x){var L=x.data;x=x.className;var D=_.Sc("yt-decorated-avatar-view-model"),S=function(){return _.g(L().avatar,_.$e)},Q=_.m5(function(){var J,Z=L(),y=S(),E=_.WX(L().rendererContext),P=(J=D.value)!=null?J:void 0,v;
if(y){P={data:Z,avatar:y,onTap:E,element:P};J=P.data;Z=P.avatar;y=P.onTap;E=P.element;P=P.commandController;y=y?xEw(y,E,P):void 0;E=[];J.liveData&&E.push(0);var V;P=(V=J.liveData)==null?void 0:V.liveBadgeText;V=(v=_.g(J.rendererContext,_.Fm))==null?void 0:v.label;v=Xjs({data:Z,onTap:y,decorations:E,badgeText:P,accessibilityText:V?V:J.a11yLabel})}else v={size:"medium"};return v},void 0,"c00kWd");
return _.M("yt-decorated-avatar-view-model",{class:_.gF("ytDecoratedAvatarViewModelHost",x),el:D},_.M(_.d,{cond:function(){var J;return(J=S())==null?void 0:J.image},
then:function(J){return _.M(sAh,{data:Q,image:J,iconType:"RADAR_LIVE",overlays:function(){return _.M(Yer,{data:S})}})}}))},"Ma");
_.Z6.idomCompat=!0;_.yn=_.B(function(x){var L=function(){var y;return Object.assign({},x.data(),(y=x.overrides)==null?void 0:y.call(x))},D=function(){return _.qb(L().rendererContext)},S=function(){var y=L().avatars,E,P;
return(P=(E=(y==null?0:y[0])?_.g(y[0],_.$e):void 0)==null?void 0:E.avatarImageSize)!=null?P:"AVATAR_SIZE_UNKNOWN"},Q=function(){return txb(L())},J=function(){if(L().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var y=void 0;
else if((y=x.decorations)==null?0:y.call(x))y=x.decorations();else{y=L();var E=0;y.avatars&&(E+=y.avatars.length);y.decoratedText&&(E+=1);y=E>1?[3]:[]}return y},Z={};
return _.M("yt-avatar-stack-view-model",{el:_.Zt(_.AL(function(){return L().rendererContext})),
class:_.gF("yt-avatar-stack-view-model",x.className,(Z["yt-avatar-stack-view-model--tappable"]=D,Z["yt-avatar-stack-view-model--is-overlay"]=x.isOverlay,Z["yt-avatar-stack-view-model--medium-text"]=x.useMediumText,Z)),tabindex:function(){return D()?0:void 0},
role:function(){return D()?"link":void 0},
"aria-label":function(){var y,E;return(E=(y=_.g(L().rendererContext,_.Fm))==null?void 0:y.label)!=null?E:""}},_.M(_.d,{cond:function(){var y;
return L().avatars&&!((y=x.hideAvatar)==null?0:y.call(x))},
then:function(){return _.M("div",{class:"yt-avatar-stack-view-model__avatars"},_.M(_.d,{cond:function(){return L().decoratedText},
then:function(y){var E={};return _.M("div",{class:_.gF("yt-avatar-stack-view-model__text-container",(E["yt-avatar-stack-view-model__text-container--thin-border"]=function(){return S()==="AVATAR_SIZE_XXS"||S()==="AVATAR_SIZE_XS"},E["yt-avatar-stack-view-model__text-container--thin-border-overlay"]=function(){var P;
return((P=x.isOverlay)==null?void 0:P.call(x))&&(S()==="AVATAR_SIZE_XXS"||S()==="AVATAR_SIZE_XS")},E)),
style:_.bc({width:function(){return Q().avatarSizeInPx+"px"},
height:function(){return Q().avatarSizeInPx+"px"}})},_.M(_.kP,{text:y,
className:"yt-avatar-stack-view-model__avatar-decorated-text"}))}}),_.M("div",{style:function(){return _.bc(Q().avatarStackStyle)()},
class:function(){return Q().avatarStackClass}},_.M(_.Fj,{data:function(){return Q().avatars.reverse()}},{avatarViewModel:function(y,E){return _.M("div",{style:function(){var P,v;
return _.bc((v=(P=Q()).avatarStyle)==null?void 0:v.call(P,E()))()},
class:function(){return Q().avatarClass}},_.M(_.O0,{data:y.data,
decorations:J,avatarButtonCustomClassName:function(){return Q().avatarButtonCustomClassName},
isOverlay:x.isOverlay,clusterLayoutConfig:function(){var P,v;return(v=(P=Q()).clusterLayoutConfig)==null?void 0:v.call(P,E())}}))},
decoratedAvatarViewModel:function(y,E){return _.M("div",{style:function(){var P,v;return _.bc((v=(P=Q()).avatarStyle)==null?void 0:v.call(P,E()))()},
class:function(){return Q().avatarClass}},_.M(_.Z6,{data:y.data}))}})))}}),_.M(_.d,{cond:function(){return L().text},
then:function(y){return _.M(_.kP,{text:y,className:"yt-avatar-stack-view-model__avatar-stack-text",linkInheritColor:!0})}}))},"Na");
_.yn.idomCompat=!0;_.dF(_.B(function(x){var L=x.data;var D=x.thumbnailSize;return _.M("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.M("div",{class:_.gF("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return LVh(D==null?void 0:D())})},_.M(_.Fj,{data:function(){return L().avatarStack}},{avatarStackViewModel:function(S){return _.M(_.yn,{data:S.data,
decorations:[5]})}})))},"Oa"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.pJ,
thumbnailSize:_.pJ}});var Tnh=_.B(function(x){x=_.ym(x,{hidden:!1});var L=x.data;return _.M("yt-thumbnail-overlay-title-view-model",{class:"ytThumbnailOverlayTitleViewModelHost",hidden:x.hidden},_.M(_.kP,{text:function(){return L().title},
className:"ytThumbnailOverlayTitleViewModelTitle"}),_.M(_.d,{cond:function(){return L().subtitle},
then:function(){return _.M(_.kP,{text:function(){return L().subtitle},
className:"ytThumbnailOverlayTitleViewModelSubtitle"})}}))},"Pa");
Tnh.idomCompat=!0;_.dF(Tnh,"yt-thumbnail-overlay-title-view-model",{props:{data:_.pJ,hidden:_.pJ}});_.eCW=_.B(function(x){x=_.ym(x,{isClip:!1});var L=x.data,D=x.thumbnailSize,S={};return _.M("yt-thumbnail-overlay-badge-view-model",{class:_.gF("yt-thumbnail-overlay-badge-view-model",function(){a:switch(L().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var Q="yt-thumbnail-overlay-badge-view-model--top-start";break a;default:Q="yt-thumbnail-overlay-badge-view-model--bottom-end"}return Q},function(){return DEs(D==null?void 0:D())},(S["yt-thumbnail-overlay-badge-view-model--clip"]=x.isClip,
S))},_.M(_.Fj,{data:function(){return L().thumbnailBadges}},{thumbnailBadgeViewModel:function(Q){return _.M(mER,{data:Q.data,
class:"yt-thumbnail-overlay-badge-view-model__badge"})}}))},"Qa");
_.eCW.idomCompat=!0;_.dF(_.eCW,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.pJ,thumbnailSize:_.pJ,isClip:_.pJ}});var RCW=_.B(function(x){var L=x.data;x=x.hidden;var D=_.m5(function(){return L().indicatorCount||0},void 0,"AbKnMc"),S={};
return _.M("yt-page-indicator-view-model",{class:_.gF("ytPageIndicatorViewModelHost",(S.ytPageIndicatorViewModelIndicatorHidden=function(){return!L().indicatorCount},S)),
hidden:x},_.M(_.R1,{each:function(){return Array(D())}},function(Q,J){var Z={};
return _.M("div",{class:_.gF("ytPageIndicatorViewModelIndicator",(Z.ytPageIndicatorViewModelIndicatorSelected=function(){return L().selectedIndex===J()},Z))})}))},"Ra");
RCW.idomCompat=!0;_.dF(RCW,"yt-page-indicator-view-model",{props:{data:_.pJ,hidden:_.pJ}});var Id=function(){var x=_.e.apply(this,arguments)||this;x.eventSink=function(){return x};
x.disableInteraction=!1;x.noRoundedCorners=!1;x.isPreviewLoading=!1;x.isOriginalAspectRatio=!1;x.computedObjectFit=!1;x.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return x};
_.p(Id,_.e);_.K=Id.prototype;
_.K.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:_.u("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"}}};
_.K.onImageLoaded=function(){this.loaded=!0};
_.K.onImageUnloaded=function(){this.loaded=!1};
_.K.computeRichThumbnail=function(x,L,D,S){if(x&&L&&!S&&!_.u("disable_moving_thumbs_handling")&&!D)return L};
_.K.computeImageWidth=function(x,L){return L||9999};
_.K.computeIsOriginalAspectRatio=function(x){return x};
_.K.computeIsLive=function(x){if(x==null?0:x.badges)for(var L=0;L<x.badges.length;L++){var D=x.badges[L];if(D.metadataBadgeRenderer&&D.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(x==null?0:x.thumbnailOverlays)for(L=0;L<x.thumbnailOverlays.length;L++)if(D=x.thumbnailOverlays[L],D.thumbnailOverlayTimeStatusRenderer&&D.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.K.computeObjectFit=function(x,L){return L||(x?"CONTAIN":"")};
_.K.computeNavigationEndpoint=function(x,L,D){return x?L:D};
_.K.computeHasClip=function(x){x=_.O(x||[]);for(var L=x.next();!L.done;L=x.next())if(L.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.K.computeOverlayColor=function(x){var L;return(x==null?0:(L=x.darkColorPalette)==null?0:L.section2Color)?x.darkColorPalette.section2Color:x==null?void 0:x.sampledThumbnailColor};
_.J3.Object.defineProperties(Id.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return by4(this.width)}}});
Id.prototype.onImageUnloaded=Id.prototype.onImageUnloaded;Id.prototype.onImageLoaded=Id.prototype.onImageLoaded;_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],Id.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Id.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(ZNW),_.r("design:type",Object)],Id.prototype,"ytdThumbnailBehavior",void 0);
_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],Id.prototype,"componentBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],Id.prototype,"ytdReduxBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Id.prototype,"data",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],Id.prototype,"circular",void 0);
_.A([_.F({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.r("design:type",Object)],Id.prototype,"richThumbnail",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.r("design:type",Boolean)],Id.prototype,"hasClip",void 0);_.A([_.F(),_.r("design:type",Object)],Id.prototype,"eventSink",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],Id.prototype,"queued",void 0);
_.A([_.F({value:!1}),_.r("design:type",Boolean)],Id.prototype,"richGridThumbnail",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],Id.prototype,"useExpandableTooltip",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],Id.prototype,"useUntranslatedNavigationEndpoint",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Id.prototype,"disableInteraction",void 0);
_.A([_.F({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.r("design:type",Object)],Id.prototype,"computedNavigationEndpoint",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],Id.prototype,"nowPlayingEqualizerOnly",void 0);_.A([_.F({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],Id.prototype,"hidePlaybackStatus",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",String)],Id.prototype,"objectFit",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Id.prototype,"noRoundedCorners",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],Id.prototype,"watchFeedThumbnail",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Id.prototype,"isPreviewLoading",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.r("design:type",Object)],Id.prototype,"isOriginalAspectRatio",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.r("design:type",Object)],Id.prototype,"computedObjectFit",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.r("design:type",Boolean)],Id.prototype,"isLiveVideo",void 0);
_.A([_.F({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],Id.prototype,"loaded",void 0);_.A([_.F({computed:"computeOverlayColor(data.thumbnail)"}),_.r("design:type",Object)],Id.prototype,"overlayColor",void 0);_.A([_.F({selector:_.grn}),_.r("design:type",Boolean)],Id.prototype,"inlinePreviewIsEnabled",void 0);_.A([_.F(),_.r("design:type",Number)],Id.prototype,"width",void 0);
_.A([_.Y("inlinePreviewIsEnabled"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Id.prototype,"isPreviewDisabled",null);_.A([_.Y("width"),_.r("design:type",String),_.r("design:paramtypes",[])],Id.prototype,"thumbnailSize",null);_.A([_.mX("image-loaded"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Id.prototype,"onImageLoaded",null);
_.A([_.mX("image-unloaded"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Id.prototype,"onImageUnloaded",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-thumbnail"})],Id);
var Gci=_.vp()(Id,"ytd-thumbnail",function(){if(kc2===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);kc2=x}x=kc2;return x},{callbackProps:["onClick"],
allowedProps:"data disableInteraction noRoundedCorners objectFit useExpandableTooltip useUntranslatedNavigationEndpoint width circular watchFeedThumbnail queued".split(" "),allowedPropsFromBehaviors:"height bottomSidePanel size disableRounding disableNowPlaying disableTooltips useHoveredProperty hovered addBackground nowPlaying isVideoPlaying".split(" "),mode:2});var JVw=function(x){var L=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$14925_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$14925_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(D){CFC(L,D)};
this.onLockupMouseLeaveFn=function(D){D=D.relatedTarget;var S,Q;((S=document.getElementsByTagName("ytd-video-preview"))==null?0:(Q=S.item(0))==null?0:Q.contains(D))||(L.terminateVideoPreview(),E0(L))};
this.onThumbnailMouseDownFn=function(){L.terminateVideoPreview();E0(L)};
this.onTouchStart=function(){L.JSC$14925_touched=!0};
this.mediaRenderer=x.mediaRenderer;this.thumbnailElement=x.thumbnailElement;this.lockupElement=x.lockupElement;this.videoPreviewOptsInput=x.videoPreviewOpts;le_(this);Mr(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)):
_.qy(Error("Kh")):_.qy(Error("Lh")):UER(this)},DS=function(x){UER(x);
var L;(L=x.lockupElement)==null||L.removeEventListener("mouseenter",x.onMouseMoveFn);var D;(D=x.lockupElement)==null||D.removeEventListener("mouseleave",x.onLockupMouseLeaveFn);var S;(S=x.lockupElement)==null||S.removeEventListener("touchstart",x.onTouchStart);var Q;(Q=x.thumbnailElement)==null||Q.removeEventListener("mousedown",x.onThumbnailMouseDownFn);E0(x)},le_=function(x){x.inlinePreviewIsEnabledForUser=_.Jd().getState().ui.inlinePreviewIsEnabled;
x.unsubscribeFromInlinePreviewIsEnabled=_.oQ(_.Jd(),_.grn,function(L){(x.inlinePreviewIsEnabledForUser=L)||E0(x)});
x.JSC$14925_unsubscribeFromInlinePreviewIsActive=_.oQ(_.Jd(),_.uen,function(L){(x.inlinePreviewIsActive=L)||E0(x)})},UER=function(x){x.unsubscribeFromInlinePreviewIsEnabled();
x.unsubscribeFromInlinePreviewIsEnabled=function(){};
x.JSC$14925_unsubscribeFromInlinePreviewIsActive();x.JSC$14925_unsubscribeFromInlinePreviewIsActive=function(){}},CFC=function(x,L){L.buttons>0||(L=_.dE("kevlar_lockup_hover_delay",-1),x.JSC$14925_touched&&L>=0?(_.WW.cancelJob(x.videoPreviewJobId),x.videoPreviewJobId=_.hD(_.WW,function(){wmA(x)},L),x.JSC$14925_touched=!1):wmA(x))},Nic=function(x){x.videoPreviewJobId=_.hD(_.WW,function(){return _.I(function(L){return L.yield(BnH(x,{isAutoplay:!0}),0)})})},wmA=function(x){!x.previewTriggered&&Mr(x)&&
(x.inlinePreviewIsActive&&x.terminateVideoPreview(),x.previewTriggered=!0,x.mediaRenderer.isInlinePreviewTriggered=!0,_.WW.cancelJob(x.videoPreviewJobId),x.videoPreviewJobId=_.hD(_.WW,function(){return _.I(function(L){return L.yield(BnH(x),0)})}))},BnH=function(x,L){L=L===void 0?{}:L;
var D=L.isAutoplay===void 0?!1:L.isAutoplay;var S,Q,J,Z;return _.I(function(y){if(y.nextAddress==1){if(!Mr(x))return y.return();S=x.getVideoPreviewOpts();if(!S)return y.return();D&&(S.isAutoplay=!0);return(J=(Q=_.P$(x.mediaRenderer.hostElement,"yt-open-video-preview-action",[S]))&&Q[0])?y.yield(Q[0],3):y.jumpTo(2)}y.nextAddress!=2&&(J=y.yieldResult===1);if(J){var E=(Z=x.mediaRenderer)==null?void 0:Z.data;E&&(QA0(E)?delete E.inlinePlayerData:"inlinePlaybackEndpoint"in E&&delete E.inlinePlaybackEndpoint)}_.Y2(y)})};
JVw.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var x,L;if((L=(x=this.videoPreviewOptsInput)==null?void 0:x.videoPreviewData)!=null)x=L;else if(x=this.mediaRenderer.data)if(QA0(x))x={inlinePlaybackEndpoint:_.fI(x.inlinePlayerData.onVisible),navigationEndpoint:_.fI(x.onTap),thumbnail:"image"in x?x.image:x.thumbnail,thumbnailOverlays:void 0,accessibilityText:Sep(x)};else if("multipleInlinePlaybackEndpoint"in x){var D=_.g(_.g(x.multipleInlinePlaybackEndpoint,YHh),FkQ);if(D!=
null&&D.playerDescriptors){L=[];D=_.O(D.playerDescriptors);for(var S=D.next();!S.done;S=D.next())S=S.value,L.push({inlinePlaybackEndpoint:S.inlinePlaybackEndpoint,navigationEndpoint:S.navigationEndpoint,thumbnail:S.thumbnail,thumbnailOverlays:S.thumbnailOverlays,accessibilityText:Sep(x)});x=L}else x=void 0}else x={inlinePlaybackEndpoint:x.inlinePlaybackEndpoint,navigationEndpoint:x.navigationEndpoint,thumbnail:x.thumbnail,thumbnailOverlays:x.thumbnailOverlays,accessibilityText:Sep(x)};else x=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:x,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var Mr=function(x){var L;if(L=x.inlinePreviewIsEnabledForUser)L=(x=x.mediaRenderer.data)?"inlinePlaybackEndpoint"in x&&x.inlinePlaybackEndpoint||QA0(x)&&x.inlinePlayerData||"multipleInlinePlaybackEndpoint"in x&&x.multipleInlinePlaybackEndpoint?!0:!1:!1;return L};
JVw.prototype.terminateVideoPreview=function(){_.dg(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var E0=function(x){_.WW.cancelJob(x.videoPreviewJobId);x.inlinePreviewIsActive=!1;x.previewTriggered=!1;x.mediaRenderer.isInlinePreviewTriggered=!1};var WVA=_.xI(["#"]),dN=function(){var x=_.e.apply(this,arguments)||this;x.isDisabled=!1;return x};
_.p(dN,_.e);_.K=dN.prototype;_.K.configureRendererStamper=function(){return{"data.menu":ob,"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"}}}};
_.K.attached=function(){this.updateInlinePreviewHoverListeners()};
_.K.detached=function(){this.clearInlinePreviewHoverListeners()};
_.K.getMetadata=function(x){var L=[];if(x.metadataText&&Object.keys(x.metadataText).length>0){var D=this.ytRendererBehavior.getSimpleString(x.metadataText);x.upcomingEventData&&x.upcomingEventData.upcomingEventText&&(D=_.CX(D,Number(x.upcomingEventData.startTime)));L.push(D)}else x.shortViewCountText&&L.push(this.ytRendererBehavior.getSimpleString(x.shortViewCountText)),x.publishedTimeText&&L.push(this.ytRendererBehavior.getSimpleString(x.publishedTimeText)),x.upcomingEventData&&x.upcomingEventData.upcomingEventText&&
(D=this.ytRendererBehavior.getSimpleString(x.upcomingEventData.upcomingEventText),L.push(_.CX(D,Number(x.upcomingEventData.startTime))));return L};
_.K.calculateBylineText=function(x){return x.shortBylineText?x.shortBylineText:x.bylineText?x.bylineText:null};
_.K.calculateIsDisabled=function(x){return!!x.isDisabled};
_.K.computeHrefWithDefault=function(x){return this.ytComponentBehavior.computeHref_(x)||_.KW0(WVA)};
_.K.onDetailsTap=function(x){var L=this.data&&this.data.navigationEndpoint;L&&!_.QC(_.Jq(x)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.u("kevlar_grid_video_renderer_killswitch")?_.MF(this.hostElement,"yt-navigate",{endpoint:L}):this.ytComponentBehavior.resolveCommand(L))};
_.K.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.K.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$14932_inlinePreviewHoverListener=r4({mediaRenderer:this,lockupElement:_.jr(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.jr(this.hostElement).querySelector("ytd-thumbnail")})};
_.K.clearInlinePreviewHoverListeners=function(){var x;(x=this.JSC$14932_inlinePreviewHoverListener)==null||DS(x)};
_.K.computeThumbnailWidth=function(x,L){return L&&L>0?L:x?360:210};
_.K.computeNumBadgesInRow=function(x){var L;return((L=x.badges)==null?void 0:L.length)||0};
_.K.computeShowChannelThumbnail=function(x,L){var D;return L&&!!(x==null?0:(D=x.channelThumbnailSupportedRenderers)==null?0:D.channelThumbnailWithLinkRenderer)};
_.J3.Object.defineProperties(dN.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.JSC$14932_inlinePreviewHoverListener)==null?0:Mr(x))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
dN.prototype.dataChanged=dN.prototype.dataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],dN.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],dN.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],dN.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.dK),_.r("design:type",Object)],dN.prototype,"ytdDismissibleItemBehavior",void 0);
_.A([_.b(_.uM),_.r("design:type",Object)],dN.prototype,"ytdLockupBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],dN.prototype,"ytdReduxBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],dN.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Boolean)],dN.prototype,"noEndpoints",void 0);_.A([_.F({computed:"calculateBylineText(data)"}),_.r("design:type",Object)],dN.prototype,"bylineText",void 0);
_.A([_.F({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],dN.prototype,"isSearch",void 0);_.A([_.F({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],dN.prototype,"isDownloading",void 0);_.A([_.F({reflectToAttribute:!0,value:0}),_.r("design:type",Number)],dN.prototype,"width",void 0);_.A([_.F({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.r("design:type",Object)],dN.prototype,"isDisabled",void 0);
_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],dN.prototype,"dataChanged",null);_.A([_.Y("lockupIsHovered"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],dN.prototype,"isHovered",null);_.A([_.w({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],dN);
_.q(dN,"ytd-grid-video-renderer",function(){if(IeR!==void 0)return IeR;var x=document.createElement("template");_.m(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-video-renderer"><ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(isSearch, width)]]" class="style-scope ytd-grid-video-renderer"></ytd-thumbnail><div id="details" on-tap="onDetailsTap" class="style-scope ytd-grid-video-renderer"><a id="channel-thumbnail" hidden="[[!computeShowChannelThumbnail(data, isSearch)]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-grid-video-renderer"><yt-img-shadow id="avatar" thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="36" class="style-scope ytd-grid-video-renderer"></yt-img-shadow></a><div id="text-metadata" class="style-scope ytd-grid-video-renderer"><div id="meta" class="style-scope ytd-grid-video-renderer"><h3 class="style-scope ytd-grid-video-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer><a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-video-renderer" href$="[[computeHrefWithDefault(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a></h3><div id="metadata-container" class="grid style-scope ytd-grid-video-renderer" meta-block=""><div id="metadata" class="style-scope ytd-grid-video-renderer"><div id="byline-container" hidden="[[!bylineText]]" class="style-scope ytd-grid-video-renderer"><ytd-channel-name id="channel-name" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" no-endpoints="[[noEndpoints]]" class="style-scope ytd-grid-video-renderer"></ytd-channel-name></div><div id="metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[item]]</span></template></div></div><div id="additional-metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[data.additionalMetadatas]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[getSimpleString(item)]]</span></template></div></div></div><ytd-badge-supported-renderer id="video-badges" badges="[[data.badges]]" hidden="[[!data.badges]]" num-badges-in-row="[[computeNumBadgesInRow(data)]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer></div><div id="menu" class="style-scope ytd-grid-video-renderer"></div></div><div id="buttons" class="style-scope ytd-grid-video-renderer"></div></div><div id="dismissed" class="style-scope ytd-grid-video-renderer"><div id="dismissed-content" class="style-scope ytd-grid-video-renderer"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-grid-video-renderer"></yt-interaction>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return IeR=x},{mode:_.Vm("kevlar_poly_si_batch_j047")?1:2});var qeh;var PE=function(){var x=_.e.apply(this,arguments)||this;x.roundedContainer=!0;x.skipRoundingTop=!1;x.disableTopPadding=!1;x.amsterdamEnabled=_.u("enable_desktop_amsterdam_info_panels");x.extractOverlay=!1;return x};
_.p(PE,_.e);PE.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
PE.prototype.onClick=function(x){var L,D=(L=this.data)==null?void 0:L.sourceEndpoint;!_.QC(_.Jq(x),this.hostElement,["A".toString()])&&D&&_.MF(this.hostElement,"yt-navigate",{endpoint:D})};
_.J3.Object.defineProperties(PE.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 x;return!((x=this.data)==null||!x.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var x,L;return(L=(x=this.data)==null?void 0:x.paragraphMaxLines)!=null?L:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],PE.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],PE.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],PE.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],PE.prototype,"showVerticalDividers",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],PE.prototype,"roundedContainer",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],PE.prototype,"skipRoundingTop",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],PE.prototype,"disableTopPadding",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],PE.prototype,"amsterdamEnabled",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],PE.prototype,"extractOverlay",void 0);
_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],PE.prototype,"showMetadataAtTop",null);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],PE.prototype,"showMetadataBelowTitle",null);_.A([_.F({reflectToAttribute:!0}),_.Y("data.menu"),_.r("design:type",Object),_.r("design:paramtypes",[])],PE.prototype,"hasMenu",null);
_.A([_.F({reflectToAttribute:!0}),_.Y("data.truncateParagraphs"),_.r("design:type",Object),_.r("design:paramtypes",[])],PE.prototype,"truncateParagraphs",null);_.A([_.F({reflectToAttribute:!0}),_.Y("data.paragraphMaxLines"),_.r("design:type",Number),_.r("design:paramtypes",[])],PE.prototype,"paragraphMaxLines",null);
_.A([_.F({type:_.u("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.Y("data.background"),_.r("design:type",Object),_.r("design:paramtypes",[])],PE.prototype,"background",null);_.A([_.w({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],PE);
_.q(PE,"ytd-info-panel-content-renderer",function(){if(qeh!==void 0)return qeh;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return qeh=x},{mode:_.Vm("kevlar_poly_si_batch_j076")?1:2});var AVB;var $E2;var rVR;var Nnr;var jg=function(){return _.e.apply(this,arguments)||this};
_.p(jg,_.e);jg.prototype.computeStyle=function(x){return x};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],jg.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],jg.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.r("design:type",String)],jg.prototype,"style_",void 0);_.A([_.oW({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],jg);
_.q(jg,"yt-channel-thumbnail-with-link-renderer",function(){if(Nnr===void 0){var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;rVR===void 0&&(rVR=document.createElement("template"));var S=rVR;D.call(L,S.content.cloneNode(!0),x.content.firstChild);Nnr=x}x=Nnr;return x},{mode:2});var vE=function(){return _.e.apply(this,arguments)||this};
_.p(vE,_.e);vE.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"}}}};
vE.prototype.computeTitleStyle=function(x){return x||null};
vE.prototype.computeAvatarStyle=function(x){return x||null};
vE.prototype.computeShowNavigationButton=function(x,L){return!(x==null||!x.navigationButton||L)};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],vE.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],vE.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],vE.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.r("design:type",String)],vE.prototype,"titleStyle",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.r("design:type",String)],vE.prototype,"avatarStyle",void 0);_.A([_.F(),_.r("design:type",Boolean)],vE.prototype,"hideNavigationButton",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],vE.prototype,"isModernSd",void 0);_.A([_.w({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],vE);
_.q(vE,"ytd-rich-list-header-renderer",function(){if($E2!==void 0)return $E2;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return $E2=x},{mode:_.Vm("kevlar_poly_si_batch_j058")?1:2});var Vn=function(){return _.e.apply(this,arguments)||this};
_.p(Vn,_.e);Vn.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]]"}}}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Vn.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Vn.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Vn.prototype,"data",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],Vn.prototype,"isSearch",void 0);_.A([_.w({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],Vn);
_.q(Vn,"ytd-preview-card-renderer",function(){if(AVB!==void 0)return AVB;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return AVB=x},{mode:1});var ibW;var hA=function(){return _.e.apply(this,arguments)||this};
_.p(hA,_.e);hA.prototype.configureRendererStamper=function(){return{"data.menu":ob}};
hA.prototype.dataChanged=function(){var x=this.get("colorExtractionPalette.section1Color",this.data);x=_.zF(x);_.uN(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":x})};
hA.prototype.computeCardStyle=function(x){return this.get("style.value",x)||null};
hA.prototype.dataChanged=hA.prototype.dataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],hA.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],hA.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.dK),_.r("design:type",Object)],hA.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],hA.prototype,"data",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.r("design:type",String)],hA.prototype,"cardStyle",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],hA.prototype,"dataChanged",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],hA);
_.q(hA,"ytd-compact-channel-recommendation-card-renderer",function(){if(ibW!==void 0)return ibW;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return ibW=x},{mode:1});var feB;var oS2;var HE=function(){var x=_.e.apply(this,arguments)||this;x.alignAuto=!1;x.collapsed=!0;x.isToggled=!1;x.alwaysCollapsed=!1;x.canToggle=!0;x.collapsedHeight=80;x.disableToggle=!1;x.alwaysToggleable=!1;x.reversed=!1;x.shouldUseNumberOfLines=!1;x.recomputeOnResize=!1;x.canToggleJobId=0;x.lastReversed=!1;return x};
_.p(HE,_.e);_.K=HE.prototype;_.K.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.K.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.K.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var x=_.jr(this.hostElement),L=x.childNodes,D=document.createDocumentFragment(),S=x.childNodes.length-1;S>=0;S--)_.jr(D).appendChild(L[S]);_.u("enable_shadydom_free_scoped_node_methods")?_.vP(this.hostElement).appendChild(D):x.appendChild(D)}};
_.K.ready=function(){var x=this;_.xi(function(){x.initChildrenObserver()},1)};
_.K.attached=function(){var x;(x=this.resizeObserver)==null||x.observe(this.content)};
_.K.detached=function(){this.detachObserver()};
_.K.toggle=function(x,L){this.canToggle&&(this.isToggled=L,_.MF(this.hostElement,"yt-refit"),x&&x.stopPropagation())};
_.K.reset=function(){this.childrenChanged()};
_.K.onIronResize=function(){this.recomputeOnResize&&!_.u("ytd_expander_use_resize_observer")&&this.childrenChanged()};
_.K.computeIsMoreVisible=function(x,L){return x&&!L};
_.K.computeShouldUseNumberOfLines=function(x){try{return!!x&&window.CSS.supports("-webkit-line-clamp","1")}catch(L){}return!1};
_.K.computeIsLessVisible=function(x,L){return x&&L};
_.K.observeCollapsedHeightAndMaxLines=function(){var x=this.collapsedHeight,L=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.uN(this.hostElement,{"--ytd-expander-max-lines":""+L,"--ytd-expander-collapsed-height":""}):_.uN(this.hostElement,{"--ytd-expander-collapsed-height":x+"px","--ytd-expander-max-lines":""})};
_.K.handleMoreTap=function(x){this.disableToggle||(_.MF(this.hostElement,"yt-expander-more-tapped"),this.toggle(x,!0))};
_.K.handleLessTap=function(x){_.MF(this.hostElement,"yt-expander-less-tapped");this.toggle(x,!1)};
_.K.initChildrenObserver=function(){var x=this;this.observer=new MutationObserver(function(){x.childrenChanged()});
this.recomputeOnResize&&window.ResizeObserver&&_.u("ytd_expander_use_resize_observer")&&(this.resizeThrottle=new _.zR(this.childrenChanged,50,this),this.resizeObserver=new ResizeObserver(function(){var L;(L=x.resizeThrottle)==null||L.fire()}),this.resizeObserver.observe(this.content));
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.K.childrenChanged=function(){var x=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){VO(function(){x.canToggleJobId=0;x.calculateCanCollapse()})}))};
_.K.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};
_.K.detachObserver=function(){this.observer&&this.observer.disconnect();this.resizeObserver&&this.resizeObserver.disconnect()};
_.K.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.gU("collapsed-changed",this.collapsed))};
_.K.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.gU("is-toggled-changed",this.isToggled))};
_.K.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.gU("can-toggle-changed",this.canToggle))};
_.J3.Object.defineProperties(HE.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
HE.prototype.canToggleChangedForBinding=HE.prototype.canToggleChangedForBinding;HE.prototype.isToggledChangedForBinding=HE.prototype.isToggledChangedForBinding;HE.prototype.collapsedChangedForBinding=HE.prototype.collapsedChangedForBinding;HE.prototype.observeCollapsedHeightAndMaxLines=HE.prototype.observeCollapsedHeightAndMaxLines;HE.prototype.onIronResize=HE.prototype.onIronResize;HE.prototype.reversedChanged=HE.prototype.reversedChanged;HE.prototype.toggledChanged=HE.prototype.toggledChanged;
HE.prototype.alwaysToggleableChanged=HE.prototype.alwaysToggleableChanged;_.A([_.b(_.XO),_.r("design:type",Object)],HE.prototype,"ironResizableBehavior",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],HE.prototype,"alignAuto",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],HE.prototype,"collapsed",void 0);_.A([_.F(),_.r("design:type",Object)],HE.prototype,"isToggled",void 0);_.A([_.F(),_.r("design:type",Object)],HE.prototype,"alwaysCollapsed",void 0);
_.A([_.F(),_.r("design:type",Object)],HE.prototype,"canToggle",void 0);_.A([_.F(),_.r("design:type",Object)],HE.prototype,"collapsedHeight",void 0);_.A([_.F(),_.r("design:type",Object)],HE.prototype,"disableToggle",void 0);_.A([_.F(),_.r("design:type",Object)],HE.prototype,"alwaysToggleable",void 0);_.A([_.F(),_.r("design:type",Object)],HE.prototype,"reversed",void 0);_.A([_.F(),_.r("design:type",Number)],HE.prototype,"maxNumberOfLines",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.r("design:type",Object)],HE.prototype,"shouldUseNumberOfLines",void 0);_.A([_.F(),_.r("design:type",Object)],HE.prototype,"recomputeOnResize",void 0);_.A([_.F1("#content"),_.r("design:type",HTMLDivElement)],HE.prototype,"content",void 0);_.A([_.GV("alwaysToggleable"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],HE.prototype,"alwaysToggleableChanged",null);
_.A([_.GV("isToggled"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],HE.prototype,"toggledChanged",null);_.A([_.Y("canToggleJobId"),_.r("design:type",Object),_.r("design:paramtypes",[])],HE.prototype,"isResetting",null);_.A([_.bN("reversed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],HE.prototype,"reversedChanged",null);
_.A([_.mX("iron-resize"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],HE.prototype,"onIronResize",null);_.A([_.bN("maxNumberOfLines","collapsedHeight"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],HE.prototype,"observeCollapsedHeightAndMaxLines",null);_.A([_.bN("collapsed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],HE.prototype,"collapsedChangedForBinding",null);
_.A([_.bN("isToggled"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],HE.prototype,"isToggledChangedForBinding",null);_.A([_.bN("canToggle"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],HE.prototype,"canToggleChangedForBinding",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-expander"})],HE);
_.q(HE,"ytd-expander",function(){if(oS2!==void 0)return oS2;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return oS2=x},{mode:1});var uu=function(){return _.e.apply(this,arguments)||this};
_.p(uu,_.e);uu.prototype.computeIsCarousel=function(x){return!!x.isCarousel};
uu.prototype.observeLightsourcePalette=function(){var x,L=(x=this.data)==null?void 0:x.vibrantsourceColorPaletteData;L&&_.UI(this.hostElement,L)};
uu.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
uu.prototype.observeLightsourcePalette=uu.prototype.observeLightsourcePalette;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],uu.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],uu.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],uu.prototype,"data",void 0);_.A([_.F({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],uu.prototype,"isCarousel",void 0);
_.A([_.bN("data.vibrantsourceColorPaletteData"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],uu.prototype,"observeLightsourcePalette",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],uu);
_.q(uu,"ytd-media-upsell-renderer",function(){if(feB!==void 0)return feB;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return feB=x},{mode:2});var ae2;var gN=function(){var x=_.e.apply(this,arguments)||this;x.JSC$14959_playerEvents=new Map;x.listeningToPlayer=!1;x.startX=0;x.active=!1;x.shouldShowButtons=_.u("web_buttons_hidden_killswitch");x.isHighlighted=!1;x.useHighlightStyling=_.u("web_enable_deeper_metadata_highlight_styling");x.modern=_.u("kevlar_modern_sd");x.enableProblemWalkthrough=_.u("problem_walkthrough_sd");return x};
_.p(gN,_.e);_.K=gN.prototype;
_.K.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}}}}}};
_.K.created=function(){this.JSC$14959_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.K.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.p$(this,this.onRepeatButtonToggle));this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.p$(this,this.onActiveUpdate))};
_.K.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.p$(this,this.onRepeatButtonToggle));this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.p$(this,this.onActiveUpdate))};
_.K.onDataChanged=function(){this.removePlayerListeners()};
_.K.onColorPaletteChange=function(){var x={},L;if(_.l1()==="USER_INTERFACE_THEME_DARK"&&((L=this.data)==null?0:L.darkColorPalette)){var D=this.data.darkColorPalette;x["--ytd-macro-markers-list-item-background-color"]=_.XA(this.get("section2Color",D))}else{var S;_.l1()==="USER_INTERFACE_THEME_LIGHT"&&((S=this.data)==null?0:S.lightColorPalette)&&(D=this.data.lightColorPalette,x["--ytd-macro-markers-list-item-background-color"]=_.XA(this.get("section3Color",D)))}D?(x["--ytd-macro-markers-list-item-title-color"]=
_.XA(this.get("primaryTitleColor",D)),x["--ytd-macro-markers-list-item-secondary-color"]=_.XA(this.get("secondaryTitleColor",D)),x["--ytd-macro-markers-list-item-timestamp-background-color"]=_.XA(this.get("section1Color",D)),this.customButtonProperties={customColors:{color:_.XA(this.get("primaryTitleColor",D))}},this.useColorSampling=!0):(x["--ytd-macro-markers-list-item-background-color"]="initial",x["--ytd-macro-markers-list-item-title-color"]="initial",x["--ytd-macro-markers-list-item-secondary-color"]=
"initial",x["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.uN(this.hostElement,x)};
_.K.onEndpointMouseDown=function(x){this.startX=x.clientX};
_.K.onEndpointClick=function(x){var L=this,D,S,Q;return _.I(function(J){if(J.nextAddress==1){if(L.startX!==x.clientX)return x.preventDefault(),J.return();L.data&&L.ytRendererBehavior.logExplicitClick(L.data);if(!L.seekWithAnimationOnClick)return J.jumpTo(0);if(x.button!==0||x.shiftKey||x.altKey||x.metaKey||x.ctrlKey||_.QC(_.Jq(x),L.hostElement,["BUTTON".toString()]))return J.return();x.stopPropagation();x.preventDefault();return L.data?J.yield(_.yC().getPlayerPromise(),3):J.return()}D=J.yieldResult;
Q=(S=_.g(L.data.onTap,_.L6))==null?void 0:S.startTimeSeconds;Q!==void 0&&D.seekToTimeWithAnimation(Q*1E3,_.SR(L.data.title));_.Y2(J)})};
_.K.computeLayout=function(x){return x};
_.K.computeIsHighlighted=function(x){return!!x};
_.K.computeCarouselType=function(x){return x};
_.K.hideModernCarousel=function(x){return this.modern&&this.hideThumbnail(x)};
_.K.hideThumbnail=function(x){return this.enableProblemWalkthrough&&x!==null&&x==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.K.onRepeatButtonToggle=function(x){var L=this;x.detail.toggled&&_.yC().getPlayerPromise().then(function(D){L.ytPlayerListenerBehavior.listenToPlayerEvents(D,L.JSC$14959_playerEvents);L.listeningToPlayer=!0})};
_.K.onLoopRangeChange=function(x){var L=_.jr(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(L){var D=L.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",L.polymerController.data);if(D){var S=Number(D.endTimeMs);if(Number(D.startTimeMs)!==(x==null?void 0:x.startTimeMs)||S!==(x==null?void 0:x.endTimeMs))L.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.K.removePlayerListeners=function(){var x=this;this.listeningToPlayer&&_.yC().getPlayerPromise().then(function(L){x.ytPlayerListenerBehavior.unlistenFromPlayerEvents(L,x.JSC$14959_playerEvents);x.listeningToPlayer=!1})};
_.K.onActiveUpdate=function(x){this.active=x.detail.active};
gN.prototype.onColorPaletteChange=gN.prototype.onColorPaletteChange;gN.prototype.onDataChanged=gN.prototype.onDataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],gN.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],gN.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.kj.YtPlayerListenerBehavior),_.r("design:type",_.pO)],gN.prototype,"ytPlayerListenerBehavior",void 0);
_.A([_.F(),_.r("design:type",Object)],gN.prototype,"data",void 0);_.A([_.F({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],gN.prototype,"useCustomColors",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],gN.prototype,"active",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],gN.prototype,"shouldShowButtons",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.r("design:type",String)],gN.prototype,"layout",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.r("design:type",Object)],gN.prototype,"isHighlighted",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],gN.prototype,"useHighlightStyling",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],gN.prototype,"modern",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],gN.prototype,"enableProblemWalkthrough",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.r("design:type",String)],gN.prototype,"carouselType",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],gN.prototype,"useColorSampling",void 0);_.A([_.F(),_.r("design:type",Boolean)],gN.prototype,"seekWithAnimationOnClick",void 0);_.A([_.F(),_.r("design:type",Object)],gN.prototype,"customButtonProperties",void 0);
_.A([_.F1("#repeat-button"),_.r("design:type",HTMLElement)],gN.prototype,"repeatButton",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],gN.prototype,"onDataChanged",null);_.A([_.bN("data.lightColorPalette","data.darkColorPalette"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],gN.prototype,"onColorPaletteChange",null);_.A([_.w({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],gN);
_.q(gN,"ytd-macro-markers-list-item-renderer",function(){if(ae2!==void 0)return ae2;var x=document.createElement("template");_.m(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[hideModernCarousel(data.carouselType)]]">\n  <div hidden="[[hideThumbnail(data.carouselType)]]" id="thumbnail" class="style-scope ytd-macro-markers-list-item-renderer">\n    <yt-img-shadow hidden="[[!data.thumbnail]]" object-fit="FILL" thumbnail="[[data.thumbnail]]" class="style-scope ytd-macro-markers-list-item-renderer">\n    </yt-img-shadow>\n    <div id="overlay" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n  </div>\n  <div id="details" class="style-scope ytd-macro-markers-list-item-renderer">\n    <h4 hidden="[[hideThumbnail(data.carouselType)]]" class="macro-markers style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <h4 hidden="[[!hideThumbnail(data.carouselType)]]" class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n  </div>\n</a>\n<div id="details" hidden="[[!hideModernCarousel(data.carouselType)]]" class="style-scope ytd-macro-markers-list-item-renderer">\n  <a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[!hideThumbnail(data.carouselType)]]">\n    <h4 class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n  </a>\n  <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n</div>\n<div id="share-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n<div id="repeat-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return ae2=x},{mode:1});var zCR;var Xm2;var kq=function(){return _.e.apply(this,arguments)||this};
_.p(kq,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],kq.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],kq.prototype,"data",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],kq);
_.q(kq,"ytd-title-and-button-list-header-renderer",function(){if(Xm2!==void 0)return Xm2;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Xm2=x},{mode:1});var cVA;var nSA=new _.vx("BUTTON_RENDERER_WIZ_TOKEN"),tLG=new _.vx("BUTTON_RENDERER_TOKEN");_.pD=_.B(function(x){var L=_.yY().resolve(_.ZN(nSA));if(L)return _.M(L,Object.assign({},x,{overrides:x.buttonOverrides}));var D=_.yY().resolve(tLG);return D?_.M(WBb,null,function(){return _.M(QB,null,function(){var S,Q,J,Z,y,E,P,v,V,h,H,k;return void D(x.data(),{onButtonClickCallback:x.onButtonClickCallback,shouldShowIcons:(S=x.shouldShowIcons)==null?void 0:S.call(x),icon:(Q=x.icon)==null?void 0:Q.call(x),processAllEndpoints:(J=x.processAllEndpoints)==null?void 0:J.call(x),preventDefault:(Z=x.preventDefault)==
null?void 0:Z.call(x),stopPropagation:(y=x.stopPropagation)==null?void 0:y.call(x),disableButtonRendererClickHandling:(E=x.disableButtonRendererClickHandling)==null?void 0:E.call(x),className:(P=x.className)==null?void 0:P.call(x),buttonOverrides:(v=x.buttonOverrides)==null?void 0:v.call(x),forceModernIconButton:(V=x.forceModernIconButton)==null?void 0:V.call(x),isSubscribe:(h=x.isSubscribe)==null?void 0:h.call(x),alignByText:(H=x.alignByText)==null?void 0:H.call(x),forceDisabled:(k=x.forceDisabled)==
null?void 0:k.call(x)})})}):_.M(_.I1,null)},"Sa");
_.pD.idomCompat=!0;var x3B=_.B(function(x){var L=x.data,D=_.ZH(x.useSquareAspectRatio,!1);return _.M("dismissed-mini-game-card-view-model",null,_.M(_.d,{cond:function(){var S,Q;return(S=L().responseText)==null?void 0:(Q=S.runs)==null?void 0:Q.length},
then:function(){var S={};return _.M("div",{class:_.gF("yt-mini-game-card-view-model__dismissed-card",(S["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!D()},S["yt-mini-game-card-view-model--dismissed-square-card"]=D,S))},_.M("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.M(_.d,{cond:function(){return L().responseText.runs[0].text},
then:function(Q){return _.M("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:Q},Q)}}),_.M(_.Fj,{data:function(){return L().buttons}},{buttonRenderer:_.pD,
buttonViewModel:_.qP})))}}))},"Ta");var OkW=_.B(function(x){x=_.ym(x,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var L=x.data,D=x.useFullWidth,S=x.isDesktopWeb,Q=x.addSearchResultTopMargin,J=function(){return L().layout},Z=function(){return L().title},y=function(){return L().metadataText?L().metadataText:L().genre},E=function(){return L().channelName},P=function(){return L().image},v=function(){return L().colorPalette},V=function(){return L().actionButton},h=function(){return L().overflowButton},
H=function(){return L().avatar},k=function(){var l={};
l=_.gF("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(l["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return S()},l));
return _.M("div",{class:l},_.M(LQH,{imageData:P,colorPalette:v}),_.M(D3h,{onTap:function(){return L().onTap},
imageData:P,accessibilityText:function(){return L().accessibilityText},
overlayBadgeText:function(){return L().overlayBadgeText},
iconName:function(){return L().iconName},
unplayableInlinePlaybackIconName:function(){return L().unplayableInlinePlaybackIconName},
isDesktopWeb:S}),_.M(_.d,{cond:function(){return!S()},
then:function(){return _.M(_.I1,null,_.M(S$2,{layout:J,colorPalette:v,isDesktopWeb:S,overflowButton:h,avatar:H,onTap:function(){return L().onTap},
genre:y,title:Z,channelName:E}),_.M(Q9B,{actionButton:V}))}}))},T=function(){var l={};
l=_.gF((l["yt-mini-game-card-view-model--search-result-desktop"]=function(){return S()},l["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!S()},l["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return Q()},l));
return _.M("div",{class:l},k(),_.M(JPd,{description:function(){return L().description},
isDesktopWeb:S,title:Z,genre:y,onTap:function(){return L().onTap},
actionButton:V,overflowButton:h,avatar:H,channelName:E}))},G=function(){var l={};
l=_.gF("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(l["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return S()},l["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return S()&&L().width===135},l["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return S()},l["yt-mini-game-card-view-model--big-metadata-font"]=function(){return L().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},l["yt-mini-game-card-view-model--use-full-width"]=
function(){return D()},l["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!V()},l));
return _.M("div",{class:l},_.M(KQH,{colorPalette:v,isDesktopWeb:S,onTap:function(){return L().onTap},
accessibilityText:function(){return L().accessibilityText},
overlayBadgeText:function(){return L().overlayBadgeText},
iconName:function(){return L().iconName},
unplayableInlinePlaybackIconName:function(){return L().unplayableInlinePlaybackIconName},
actionButton:V,imageData:P}),_.M(S$2,{layout:J,colorPalette:v,isDesktopWeb:S,overflowButton:h,avatar:H,onTap:function(){return L().onTap},
genre:y,title:Z,channelName:E}))},U=function(){var l={};
l=_.gF("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(l["yt-mini-game-card-view-model--square-card-desktop"]=function(){return S()},l["yt-mini-game-card-view-model--use-full-width"]=function(){return D()},l));
return _.M("div",{class:l},_.M(D3h,{onTap:function(){return L().onTap},
imageData:P,accessibilityText:function(){return L().accessibilityText},
overlayBadgeText:function(){return L().overlayBadgeText},
iconName:function(){return L().iconName},
unplayableInlinePlaybackIconName:function(){return L().unplayableInlinePlaybackIconName},
isDesktopWeb:S}),_.M(S$2,{layout:J,colorPalette:v,isDesktopWeb:S,overflowButton:h,avatar:H,onTap:function(){return L().onTap},
genre:y,title:Z,channelName:E}))};
return _.M("mini-game-card-view-model",{class:x.className},_.M(_.GS,null,_.M(_.TS,{when:function(){return J()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return G()}),_.M(_.TS,{when:function(){return J()==="MINI_APP_LAYOUT_SQUARE"}},function(){return U()}),_.M(_.TS,{when:function(){return J()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return T()})))},"Ua");
OkW.idomCompat=!0;var Q9B=_.B(function(x){var L=_.ZH(x.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.M(_.Fj,{data:x.actionButton},{buttonViewModel:function(D){return _.M("div",{class:L},_.M(_.qP,{data:D.data}))}})},"Va"),D3h=_.B(function(x){var L=x.onTap;
var D=x.imageData;var S=x.accessibilityText;var Q=x.overlayBadgeText;var J=x.iconName;var Z=x.unplayableInlinePlaybackIconName;x=x.isDesktopWeb;return _.M(_.lr,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:L},_.M(_.Ku,{data:D,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(S==null?void 0:S())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.M(ZkB,{overlayBadgeText:Q,iconName:J,unplayableInlinePlaybackIconName:Z,isDesktopWeb:x}))},"Wa"),ZkB=_.B(function(x){var L=x.overlayBadgeText;
var D=x.iconName;var S=x.unplayableInlinePlaybackIconName;var Q=x.isDesktopWeb;return _.M("div",{class:"yt-mini-game-card-view-model__badge-container"},_.M(_.d,{cond:D,then:function(J){return _.M("div",{class:"yt-mini-game-card-view-model__badge"},_.M("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.M(_.YO,{icon:J,className:"yt-mini-game-card-view-model__icon",size:12}),_.M("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},L)))}}),_.M(_.d,{cond:function(){return!D()&&
L()},
then:function(){return _.M("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},L)}}),_.M(_.d,{cond:function(){return S()&&Q()},
then:function(){return _.M("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.M(_.YO,{icon:S,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"Xa"),LQH=_.B(function(x){var L=x.colorPalette;
var D=x.imageData;var S=function(){return L().vibrantColorPalette?L().vibrantColorPalette.section2Color:L().sectionTwoColor};
return _.M(_.I1,null,_.M("div",{class:"yt-mini-game-card-view-model__background-base",style:_.bc({"background-color":function(){return cq(S(),"1")}})}),_.M("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.bc({"background-image":function(){return"url("+D().sources[0].url+")"}})}),_.M("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.bc({background:function(){return"linear-gradient(180deg,\n    "+cq(S(),".8")+" 0%,\n    "+cq(S(),".4")+" 25%,\n    "+cq(L().vibrantColorPalette?L().vibrantColorPalette.section4Color:L().sectionFourColor,".8")+" 100%)"}})}))},"Ya"),S$2=_.B(function(x){var L=x.layout;
var D=x.colorPalette;var S=x.overflowButton;var Q=x.avatar;var J=x.onTap;var Z=x.title;var y=x.channelName;var E=x.genre;var P=function(){var v;return L()!=="MINI_APP_LAYOUT_SQUARE"&&((v=D())==null?0:v.textPrimaryColor)?"color: "+cq(D().textPrimaryColor,".7"):""};
return _.M("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.M(_.d,{cond:Q,then:function(){return _.M("div",{class:"yt-mini-game-card-view-model__avatar"},_.M(_.Fj,{data:Q},{avatarViewModel:_.O0}))}}),_.M(_.lr,{command:J,
className:"yt-mini-game-card-view-model__metadata-details"},_.M("h3",{class:"yt-mini-game-card-view-model__title",title:Z},Z),_.M(_.d,{cond:Q,then:function(){return _.M("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.M("span",{class:"yt-mini-game-card-view-model__genre",title:y,style:P},y),_.M("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:P},E))},
else:function(){return _.M("span",{class:"yt-mini-game-card-view-model__genre",title:E},E)}})),_.M("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.M(_.Fj,{data:S},{buttonViewModel:function(v){var V=v.data;
return _.M(_.qP,{data:function(){return Object.assign({},V(),{customFontColor:L()==="MINI_APP_LAYOUT_SINGLETON"?V().customFontColor:void 0})}})}})))},"Za"),KQH=_.B(function(x){var L=x.colorPalette;
var D=x.isDesktopWeb;var S=x.onTap;var Q=x.accessibilityText;var J=x.overlayBadgeText;var Z=x.iconName;var y=x.unplayableInlinePlaybackIconName;var E=x.actionButton;x=x.imageData;return _.M("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.M(LQH,{imageData:x,colorPalette:L}),_.M(D3h,{onTap:S,imageData:x,accessibilityText:Q,overlayBadgeText:J,iconName:Z,unplayableInlinePlaybackIconName:y,isDesktopWeb:D}),_.M(_.d,{cond:function(){return E==null?void 0:E()},
then:function(){return _.M(Q9B,{actionButton:E})}}))},"$a"),JPd=_.B(function(x){var L=x.description;
var D=x.isDesktopWeb;var S=x.title;var Q=x.genre;var J=x.onTap;var Z=x.actionButton;var y=x.overflowButton;var E=x.avatar;x=x.channelName;var P={};P=_.gF("yt-mini-game-card-view-model--search-result-metadata-wrapper",(P["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=D,P["yt-mini-game-card-view-model--show-unplayable-on-hover"]=D,P["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!D()},P));
var v={};v=_.gF("yt-mini-game-card-view-model__search-result-info-row",(v["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!D()},v));
return _.M("div",{class:P},_.M("div",{class:v},_.M(_.lr,{command:J,className:"yt-mini-game-card-view-model__metadata-details"},_.M("h3",{class:"yt-mini-game-card-view-model__title",title:S},S),_.M("span",{class:"yt-mini-game-card-view-model__genre",title:Q},Q)),_.M(Q9B,{actionButton:Z,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.M("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.M(_.Fj,{data:y},{buttonViewModel:_.qP}))),_.M("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.M("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.M("div",{class:"yt-mini-game-card-view-model__avatar"},_.M(_.Fj,{data:E},{avatarViewModel:function(V){var h=V.data;return _.M(_.O0,{data:function(){return Object.assign({},h(),{avatarImageSize:D()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.M(_.lr,{command:J,
className:"yt-mini-game-card-view-model__description"},_.M("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},x)),_.M(_.lr,{command:J,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.M("div",null)))),_.M(_.d,{cond:D,then:function(){return _.M(_.lr,{command:J,className:"yt-mini-game-card-view-model__description"},L)}}))},"ab");_.dF(OkW,"mini-game-card-view-model",{props:{data:_.pJ,className:_.pJ,useFullWidth:_.pJ,isDesktopWeb:_.pJ,addSearchResultTopMargin:_.pJ}});_.dF(x3B,"dismissed-mini-game-card-view-model",{props:{data:_.pJ,useSquareAspectRatio:_.pJ}});var mO=function(){var x=_.e.apply(this,arguments)||this;x.isSearch=!1;x.isRichGrid=!1;return x};
_.p(mO,_.e);_.K=mO.prototype;_.K.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.K.dismissibleItemOnYtServiceRequestSent=function(x,L){L.actions&&this.dismissibleItemProcessActions(x,L.actions)};
_.K.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.K.dataChanged=function(){this.dismissibleItemReset()};
_.K.dismissibleItemProcessActions=function(x,L){for(var D=0;D<L.length;D++){var S=L[D];_.g(S,_.$K)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.g(S,_.$K)),x.stopPropagation())}};
_.K.dismissibleItemHandleReplaceEnclosingAction=function(x){this.dismissedRenderer=x.item;this.isDismissed=!0};
_.J3.Object.defineProperties(mO.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var x;return!!this.data&&!((x=this.dismissedRenderer)==null?0:x.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.dismissedRenderer)==null||!x.notificationMultiActionRenderer)}}});
mO.prototype.dataChanged=mO.prototype.dataChanged;mO.prototype.dismissibleItemOnRequestSent=mO.prototype.dismissibleItemOnRequestSent;mO.prototype.dismissibleItemOnYtServiceRequestSent=mO.prototype.dismissibleItemOnYtServiceRequestSent;_.A([_.F(),_.r("design:type",Object)],mO.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],mO.prototype,"isSearch",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],mO.prototype,"isDismissed",void 0);
_.A([_.F(),_.r("design:type",Object)],mO.prototype,"dismissedRenderer",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],mO.prototype,"isRichGrid",void 0);_.A([_.Y("data.layout"),_.r("design:type",Object),_.r("design:paramtypes",[])],mO.prototype,"useSquareAspectRatio",null);_.A([_.Y("data","dismissedRenderer"),_.r("design:type",Object),_.r("design:paramtypes",[])],mO.prototype,"showCard",null);
_.A([_.Y("data","dismissedRenderer"),_.r("design:type",Object),_.r("design:paramtypes",[])],mO.prototype,"showDismissed",null);_.A([_.mX("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.zQ]),_.r("design:returntype")],mO.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.A([_.mX("yt-service-request-sent-button-renderer"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],mO.prototype,"dismissibleItemOnRequestSent",null);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],mO.prototype,"dataChanged",null);_.A([_.oW({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],mO);
_.q(mO,"ytd-mini-game-card-view-model",function(){if(cVA!==void 0)return cVA;var x=document.createElement("template");_.m(x,'\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>');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return cVA=x},{mode:_.Vm("kevlar_poly_si_batch_j081")?1:2});var yPQ;var IUR;var bu=function(){return _.KL.apply(this,arguments)||this};
_.p(bu,_.KL);bu.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
bu.prototype.getContinuationUrl=function(x){var L={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(L.itct=this.data.clickTrackingParams);return _.DN(x,L)};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],bu.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],bu.prototype,"data",void 0);_.A([_.oW({is:"yt-reload-continuation",noInjection:!0})],bu);var EwB;var MBR;var Yq=function(){var x=_.e.apply(this,arguments)||this;x.notificationData={};return x};
_.p(Yq,_.e);_.K=Yq.prototype;_.K.isMenuExpanded=function(x){return x&&x.length<=1?"undefined":"false"};
_.K.dataChanged_=function(){this.selected=void 0;var x=this.computeSelectedIndex_(this.data);x>=0&&(this.selected=x);x=this.data&&this.data.length>1;_.VA(this.hostElement,"has-items",x);_.jr(this.hostElement).querySelector("#label").tabIndex=x?0:-1};
_.K.onDropdownOpen=function(){var x=_.A3();if(this.parentTrackingParams&&this.data){var L=_.CI(this.parentTrackingParams);this.data.forEach(function(D){x&&L&&D.trackingParams&&(D=_.CI(D.trackingParams),_.XI(x,L,D),_.t_(x,[D]))})}else this.parentTrackingParams||_.qy(new _.RZ("No parent tracking params passed in for yt-dropdown-menu."))};
_.K.hasNotification=function(x){var L;if(x.targetId&&((L=this.notificationData)==null?0:L.targetId)){var D;return x.targetId===((D=this.notificationData)==null?void 0:D.targetId)}};
_.K.computeSelectedIndex_=function(x){if(x)for(var L=0,D=x.length;L<D;L++)if(x[L].selected)return L;return-1};
_.K.computeLabel_=function(x){return this.data&&x!=void 0?this.data[x].title:""};
_.K.computeShowIcon_=function(x,L){return!L&&!!x};
_.K.computeVerticalOffset_=function(x){return x?36:0};
_.K.computeEndpoint_=function(x){return x.endpoint||x.navigationEndpoint};
_.K.onLabelClick_=function(x){this.data&&this.data.length<=1?x.stopPropagation():this.menuExpanded="true"};
_.K.onIronActivate_=function(x){x=x.detail.item;var L=_.jr(this.hostElement).querySelector("#repeat").itemForElement(x);if(L&&L.trackingParams){var D=_.A3(),S=_.CI(L.trackingParams);D&&_.L7(D,S)}if(L&&L.serviceEndpoint)_.u("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(L.serviceEndpoint):_.jq(this.hostElement,[L.serviceEndpoint]),_.MF(this.hostElement,"yt-playlist-reloading");else a:{if((L=x.querySelector("yt-supported-renderers"))&&
(L=L.rendererElement)&&L.is=="yt-reload-continuation"){L.trigger();break a}(x=x.querySelector("yt-reload-continuation"))&&x.trigger()}};
_.K.onTap_=function(x){x.preventDefault()};
_.K.onItemTap_=function(x){this.ytEndpointBehavior.onEndpointTap_(x)};
_.K.onLinkFocus_=function(x){try{var L=x.target}catch(S){}if(L){var D=L.querySelector("tp-yt-paper-item");D&&_.LI(this,"focus",function(){D.focus()})}};
_.K.onMenuClose_=function(){this.menuExpanded="false"};
_.K.isLabelIconActive_=function(x){return x==="true"};
_.K.computeHasSubtitle_=function(x){return!!x};
_.K.computeHrefForItem_=function(x){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(x))};
_.K.updateSelectedFromBinding=function(x){this.selected=x.detail.value};
_.J3.Object.defineProperties(Yq.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
Yq.prototype.onMenuClose_=Yq.prototype.onMenuClose_;Yq.prototype.onTap_=Yq.prototype.onTap_;Yq.prototype.onIronActivate_=Yq.prototype.onIronActivate_;Yq.prototype.onDropdownOpen=Yq.prototype.onDropdownOpen;Yq.prototype.dataChanged_=Yq.prototype.dataChanged_;_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],Yq.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.NP.YtEndpointBehavior),_.r("design:type",Object)],Yq.prototype,"ytEndpointBehavior",void 0);
_.A([_.F(),_.r("design:type",Array)],Yq.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],Yq.prototype,"parentTrackingParams",void 0);_.A([_.F(),_.r("design:type",Object)],Yq.prototype,"selected",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],Yq.prototype,"useLabel",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],Yq.prototype,"useComputedAriaLabel",void 0);_.A([_.F(),_.r("design:type",String)],Yq.prototype,"icon",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",String)],Yq.prototype,"iconLabel",void 0);_.A([_.F(),_.r("design:type",String)],Yq.prototype,"ariaLabel",void 0);_.A([_.F({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],Yq.prototype,"disabled",void 0);_.A([_.F({computed:"isMenuExpanded(data)"}),_.r("design:type",String)],Yq.prototype,"menuExpanded",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],Yq.prototype,"closeOnActivate",void 0);
_.A([_.F({reflectToAttribute:!0,value:_.u("web_modern_buttons")}),_.r("design:type",Boolean)],Yq.prototype,"modernButtons",void 0);_.A([_.F(),_.r("design:type",Object)],Yq.prototype,"notificationData",void 0);_.A([_.Y("ariaLabel, selected"),_.F(),_.r("design:type",String),_.r("design:paramtypes",[])],Yq.prototype,"computedAriaLabel",null);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Yq.prototype,"dataChanged_",null);
_.A([_.mX("paper-dropdown-open"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],Yq.prototype,"onDropdownOpen",null);_.A([_.mX("iron-activate"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],Yq.prototype,"onIronActivate_",null);_.A([_.mX("tap"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Yq.prototype,"onTap_",null);
_.A([_.mX("iron-overlay-closed"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],Yq.prototype,"onMenuClose_",null);_.A([_.oW({is:"yt-dropdown-menu",disableElementRegistration:!0})],Yq);
_.q(Yq,"yt-dropdown-menu",function(){if(MBR===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;EwB===void 0&&(EwB=document.createElement("template"));var S=EwB;D.call(L,S.content.cloneNode(!0),x.content.firstChild);MBR=x}x=MBR;return x},{mode:2});var Fb=function(){var x=_.e.apply(this,arguments)||this;x.hasNotification=!1;return x};
_.p(Fb,_.e);Fb.prototype.computeId=function(x){return x};
Fb.prototype.computeHorizontalAlign=function(x){return x?"right":"left"};
Fb.prototype.computeAccessibilityLabel=function(x){var L,D;return((L=x.accessibility)==null?void 0:(D=L.accessibilityData)==null?void 0:D.label)||null};
Fb.prototype.notificationDataChanged=function(){var x;this.hasNotification=!!this.notificationData&&!((x=this.data)==null?0:x.icon)};
Fb.prototype.notificationDataChanged=Fb.prototype.notificationDataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Fb.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.P9.YtLiveChatTooltipTargetingBehavior),_.r("design:type",Object)],Fb.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Fb.prototype,"data",void 0);_.A([_.F({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.r("design:type",String)],Fb.prototype,"id",void 0);
_.A([_.F({value:!1}),_.r("design:type",Boolean)],Fb.prototype,"isRightAligned",void 0);_.A([_.F({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],Fb.prototype,"disabled",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],Fb.prototype,"closeOnActivate",void 0);_.A([_.F(),_.r("design:type",Object)],Fb.prototype,"notificationData",void 0);_.A([_.F(),_.r("design:type",Object)],Fb.prototype,"hasNotification",void 0);
_.A([_.F({value:!1}),_.r("design:type",Boolean)],Fb.prototype,"useComputedAriaLabel",void 0);_.A([_.bN("notificationData"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Fb.prototype,"notificationDataChanged",null);_.A([_.oW({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],Fb);
_.q(Fb,"yt-sort-filter-sub-menu-renderer",function(){if(IUR===void 0){var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;yPQ===void 0&&(yPQ=document.createElement("template"));var S=yPQ;D.call(L,S.content.cloneNode(!0),x.content.firstChild);IUR=x}x=IUR;return x},{mode:2});var d3Q=_.B(function(x){var L=x.data;var D=_.kO(function(){var J=L().onTap;(J=_.g(J,_.ii))&&_.yY().resolve(_.E2).resolveCommand(J);return!1}),S=function(){return{sources:[{url:L().thumbnailUrl,
width:120,height:90}]}},Q=function(){return L().rating&&L().ratingA11yLabel&&L().reviewsCount&&L().reviewsCountA11yLabel};
return _.M("place-data-view-model",null,_.M(_.d,{cond:function(){return L().placeName&&L().placeCategory},
then:function(){return _.M("div",{class:"ytSpecPlaceDataViewModelShapeHost","on:click":D},_.M(_.Ku,{data:S,alt:"",targetWidth:120,targetHeight:90,className:"ytSpecPlaceDataViewModelShapeThumbnail"}),_.M(_.lr,{className:"ytSpecPlaceDataViewModelShapePlaceLink",command:function(){return L().onTap}},_.M("h3",{class:"ytSpecPlaceDataViewModelShapeName",
title:function(){return L().placeName}},function(){return L().placeName})),_.M("div",{class:"ytSpecPlaceDataViewModelShapeMetadata"},_.M(_.d,{cond:Q,
then:function(){return _.M("div",{class:_.gF("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")},_.M("span",{class:"score",title:function(){return L().ratingA11yLabel}},function(){return L().rating}),_.M("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowStarIcon"},_.M(_.YO,{icon:"STAR",
active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.M("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowReviews",title:function(){return L().reviewsCountA11yLabel}},function(){return L().reviewsCount}))},
else:function(){return _.M("div",{class:_.gF("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")})}}),_.M("div",{class:_.gF("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowCategories")},_.M("span",{class:"category",
title:function(){return L().placeCategory}},function(){return L().placeCategory}))))}}))},"bb");
d3Q.idomCompat=!0;_.dF(d3Q,"place-data-view-model",{props:{data:_.pJ}});var PaG=new _.vx("INLINE_PLAYBACK_HOOK_TOKEN");var j9i=_.qj({sharedUi:_.Fxh});_.aB=_.AD(j9i)(j9i.sharedUi,{animatedThumbnailEnabledSelector:function(x){return x.animatedThumbnailEnabled},
inlinePreviewEnabledSelector:function(x){return x.inlinePreviewEnabled},
currentPageTypeSelector:function(x){return x.currentPageType},
currentPageSubTypeSelector:function(x){return x.currentPageSubType},
persistentPanelVisibleSelector:function(x){return x.persistentPanelVisible}});var vwd=function(x){this.setActiveSlideIndex=x;this.jobIds=[];this.isSlideshowPlaying=!1},Hki=function(x,L){x.isSlideshowPlaying||(x.isSlideshowPlaying=!0,VBQ(x),hcB(x,L,0))},VBQ=function(x){_.hD(_.WW,function(){x.setActiveSlideIndex(0)},1)},hcB=function(x,L,D){x.jobIds.push(_.hD(_.WW,function(){var S=D<L-1?D+1:0;
x.setActiveSlideIndex(S);hcB(x,L,S)},1800))};var uvd=new _.vx("IMAGE_ON_LOAD_HANDLER_TOKEN");var gwW=_.B(function(x){return _.M("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.M(_.d,{cond:function(){var L;return(L=x.data())==null?void 0:L.thumbnail},
then:function(L){return _.M(_.Ku,{data:L,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"cb");_.k1r=_.B(function(x){var L=x.data;var D=x.lockupExperiments;x={};return _.M("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.M("div",{class:_.gF("ytThumbnailOverlayButtonViewModelButton",(x.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var S;return D&&((S=D())==null?void 0:S.useLegacySizedIconButton)},x))},_.M(_.Fj,{data:function(){return L().overlayButton}},{buttonViewModel:function(S){return _.M(_.qP,{data:S.data,
buttonOverrides:function(){var Q;return D&&((Q=D())==null?0:Q.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"},ariaHidden:!0,tabIndex:-1}:void 0}})}})))},"db");
_.k1r.idomCompat=!0;var pR2=_.B(function(x){return _.M("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.kO(function(L){L.preventDefault();return!1})},_.M(_.Fj,{data:function(){return x.data().buttons}},{toggleButtonViewModel:function(L){return _.M("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.M(_.JT,{data:L.data}))}}))},"eb");
pR2.idomCompat=!0;var m3R=_.B(function(x){var L=function(){var D;return((D=_.g(x.data().rendererContext,_.Fm))==null?void 0:D.label)||""};
return _.M("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.M(_.d,{cond:function(){return x.data().image},
then:function(){return _.M("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.M(_.Ku,{data:function(){return x.data().image},
alt:L}))}}),_.M(_.d,{cond:function(){return x.data().text},
then:function(){return _.M("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return x.data().text})}}))},"fb");var bkr;bkr=_.aB.animatedThumbnailEnabledSelector;_.s0=_.B(function(x){var L=[],D=function(){var h,H;return by4((h=x.width)==null?void 0:h.call(x),(H=x.height)==null?void 0:H.call(x))},S=_.yY().resolve(_.ZN(uvd)),Q=_.x3("yt-thumbnail-view-model",function(){L.push("elRef.value set");
var h;(h=x.playbackRef)==null||h.call(x,{thumbnailElRef:Q,thumbnail:x.data().image,thumbnailOverlays:x.data().overlays,thumbnailSize:D()})});
_.wO(function(){L.push("onInit");_.wH(function(){L.push("onCleanup")})});
var J=_.ic(bkr),Z=function(){var h,H;return(H=(h=x.aspectRatio)==null?void 0:h.call(x))!=null?H:0},y=function(){return(x.data().image?_.nmh(x.data().image):Z())<=1&&Z()===0},E=function(){return y()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},P=function(){Q.value||_.qy(new _.RZ("Thumbnail elRef.value is null",L.join("\n")));
S&&Q.value&&S(Q.value)},v=function(){var h,H;
return((h=x.hovered)==null?void 0:h.call(x))&&D()!=="large"&&((H=x.data().overlays)==null?void 0:H.some(function(k){return _.g(k,IdH)}))},V={};
return _.M("yt-thumbnail-view-model",{class:_.gF("ytThumbnailViewModelHost",x.className,function(){return Obp(Z())},function(){var h,H;
a:{var k=D(),T=(h=x.disableRounding)==null?void 0:h.call(x);h=(H=x.isClip)==null?void 0:H.call(x);if(!T&&!h)switch(k){case "large":H="ytThumbnailViewModelLarge";break a;case "small":H="ytThumbnailViewModelSmall";break a;default:H="ytThumbnailViewModelMedium";break a}H=void 0}return H},(V.ytThumbnailViewModelCinematic=y,V)),
style:_.bc({"background-color":function(){var h,H=y()?(h=x.data().backgroundColor)==null?void 0:h.lightTheme:void 0;return H?cq(H,"1"):void 0}}),
el:Q},_.M(_.d,{cond:y,then:function(){return _.M("div",{class:"ytThumbnailViewModelBlurredImage"},_.M(_.Ku,{data:function(){return x.data().image},
alt:"",contentMode:E,targetWidth:x.width,onload:P}))}}),_.M("div",{class:"ytThumbnailViewModelImage"},_.M(_.Ku,{data:function(){return x.data().image},
alt:"",contentMode:E,targetWidth:x.width,onload:P}),null),_.M(_.Fj,{data:function(){return v()?void 0:x.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:Tnh,thumbnailOverlayBadgeViewModel:function(h){return _.M(_.eCW,{data:h.data,thumbnailSize:D,isClip:x.isClip})},
thumbnailBottomOverlayViewModel:function(h){return _.M(bbC,{data:h.data,thumbnailSize:D,isClip:x.isClip})},
thumbnailOverlayFullViewModel:m3R,thumbnailOverlayButtonViewModel:function(h){return _.M(_.k1r,{data:h.data,lockupExperiments:x.lockupExperiments})}}),_.M(_.Fj,{data:function(){var h;
return((h=x.hovered)==null?0:h.call(x))?x.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(h){return _.M(KD,{data:h.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:pR2}),_.M(_.Fj,{data:function(){var h;return((h=x.hovered)==null?0:h.call(x))&&J()?x.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:gwW}),_.M(_.d,{cond:x.isClip,then:function(){return _.M("div",{class:"ytPinkingNsHost"},_.M("svg",{class:"ytPinkingNsPinkingLeft"},_.M("defs",null,_.M("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.M("polygon",{class:"ytPinkingNsPinking",points:"0,0 4,4 0,8"}))),_.M("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.M("svg",{class:"ytPinkingNsPinkingRight"},_.M("defs",null,_.M("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.M("polygon",{class:"ytPinkingNsPinking",points:"4,0 0,4 4,8"}))),_.M("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"gb");
_.s0.idomCompat={callbacks:{playbackRef:!0}};var Y$i=_.B(function(x){var L=_.O(_.HB(-1,void 0,"RW2Ole")),D=L.next().value,S=L.next().value;_.wO(function(){var Q=new vwd(S);Hki(Q,x.data().thumbnails.length);_.wH(function(){if(Q.isSlideshowPlaying){Q.isSlideshowPlaying=!1;for(var J=Q.jobIds,Z=0,y=J.length;Z<y;Z++)_.WW.cancelJob(J[Z]);Q.jobIds.length=0}})});
return _.M("yt-collection-thumbnail-slideshow",{class:"ytCollectionThumbnailSlideshowHost"},_.M(_.Fj,{data:function(){return x.data().thumbnails}},{thumbnailViewModel:function(Q,J){return _.M("div",{class:function(){var Z=!x.data().primaryThumbnail,y=J(),E=D(),P=["ytCollectionThumbnailSlideshowSlideshowThumbnail"];
Z&&y===0&&P.push("ytCollectionThumbnailSlideshowSlideshowThumbnailFirstSlide");y<=E&&P.push("ytCollectionThumbnailSlideshowSlideshowThumbnailShowSlide");return P.join(" ")}},_.M(_.s0,{data:Q.data,
disableRounding:x.disableRounding}))}}))},"hb");
Y$i.idomCompat=!0;var Zbh=new _.vx("DWELL_DETECTOR_REGISTRY_TOKEN");var s9i=_.B(function(x){var L=yV3(x.triggeringElement),D=function(){return!!x.data().primaryThumbnail},S=function(){var J,Z=(J=x.data())==null?void 0:J.maxHeight,y;
J=(y=x.maxHeight)==null?void 0:y.call(x);return Z!=null&&J!=null?Math.min(Z,J):J!=null?J:Z},Q=function(){var J=S();
if(J){var Z;if(D()&&(Z=x.includeStackHeight)!=null&&Z.call(x)){var y;Z=((y=x.doubleStack)==null?0:y.call(x))?8:4}else Z=0;J=J-Z-1;if(!(J<0)){y=Math;Z=y.ceil;var E,P;var v=mWb((P=(E=x.aspectRatio)==null?void 0:E.call(x))!=null?P:0);return Z.call(y,J*v)}}};
return _.M("yt-collection-thumbnail-view-model",{class:"ytCollectionThumbnailViewModelHost","aria-hidden":"true",style:_.bc({height:function(){return S()?S()+"px":void 0},
width:function(){return Q()?Q()+"px":void 0}})},_.M(FQB,{stackEnabled:D,
thumbnailSize:function(){var J,Z;return by4((J=x.width)==null?void 0:J.call(x),(Z=x.height)==null?void 0:Z.call(x))},
doubleStack:x.doubleStack,stackColor:function(){return x.data().stackColor},
includeStackHeight:x.includeStackHeight},_.M(_.Fj,{data:function(){return x.data().primaryThumbnail}},{thumbnailViewModel:function(J){var Z={};
return _.M(_.s0,{data:J.data,width:x.width,height:x.height,aspectRatio:x.aspectRatio,disableRounding:x.disableRounding,className:_.gF((Z.ytCollectionThumbnailViewModelHostHasStacks=D,Z)),hovered:x.hovered,playbackRef:x.playbackRef})}}),_.M(_.d,{cond:function(){var J;
return L()&&((J=x.data().thumbnails)==null?void 0:J.length)},
then:function(){return _.M("div",{class:"ytCollectionThumbnailViewModelSlideshow"},_.M(Y$i,{data:x.data,disableRounding:function(){return!D()}}))}})))},"ib");
s9i.idomCompat={callbacks:{playbackRef:!0}};
var FQB=_.B(function(x){var L=x.children;var D=x.stackEnabled;var S=x.thumbnailSize;var Q=x.doubleStack;var J=x.stackColor;var Z=x.includeStackHeight;var y,E=(y=_.yY().resolve(_.ZN(_.Dt)))==null?void 0:y();return _.M(_.d,{cond:D,then:function(){return _.M(LV2,{data:function(){var P,v;return{experimentEnabled:!0,thumbnailSize:S(),doubleStack:Q==null?void 0:Q(),color:E?J==null?void 0:(P=J())==null?void 0:P.darkTheme:J==null?void 0:(v=J())==null?void 0:v.lightTheme,enableResponsiveMode:!1,includeStackHeight:Z==
null?void 0:Z()}}},L)},
else:function(){return L}})},"jb");var Tji=new _.vx("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var eg;_.T2={calledOnce:!0,state:"visible"};eg={calledOnce:!0,state:"hidden"};_.Rd=_.B(function(x){var L=x.data;var D=x.customCommandResolver;var S=x.className;var Q=x.delayedClassName;var J=x.animationEntityKey;var Z=x.isCompactWidth;var y=x.isContentWidth;x=_.O(_.HB(!1,void 0,"pC3tUb"));var E=x.next().value,P=x.next().value,v=_.ZH(J,""),V=_.mF(uQh,v),h=function(){var p3,w0;return(w0=(p3=V())==null?void 0:p3.value)!=null?w0:!1},H=function(){_.Ok(_.TR("booleanEntity",v(),{key:v(),
value:!0}));N=void 0};
J=_.O(_.mU(h));var k=J.next().value,T=J.next().value;J=_.O(_.mU(h));var G=J.next().value,U=J.next().value;J=_.O(_.mU(function(){var p3;return h()?(p3=L().styleTransitionConfig)==null?void 0:p3.destinationStyle:void 0}));
var l=J.next().value,X=J.next().value,f=function(){var p3=Object.assign({},L(),l()&&{style:l()});var w0,Rn,lG=p3.label,xX=(w0=p3.interaction)==null?void 0:(Rn=w0.accessibility)==null?void 0:Rn.label;w0=p3.iconImage?p3.label&&p3.label.content?p3.iconLeading?"leading":"trailing":"icon-only":void 0;p3={formattedButtonText:lG,accessibilityLabel:xX,style:dEf(p3.style),type:PFh(p3.style),state:"active",size:MLN(p3.size),iconPosition:w0,disabled:!1,aTagConfig:ESb(p3,D)};_.u("enable_desktop_vdcbg_components")&&
(p3.focused=E());return p3},N;
J=_.yB({visibilityCallback:function(p3){var w0,Rn=(w0=L().interaction)==null?void 0:w0.onFirstVisible;p3&&Rn&&_.Xf(Rn)},
showOption:_.T2});var z=function(){return C2p(f(),!!L().iconImage)};
x={};var xf={};S=_.gF(function(){return"ytwAdButtonViewModelHost"},function(){return L().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var p3=!!L().delayedAppearanceConfig,w0=k();
return p3?w0?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var p3=!!L().delayedAppearanceConfig,w0=G();
return p3?w0?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!L().delayedAppearanceConfig||k()?Q==null?void 0:Q():""},(x.ytwAdButtonViewModelHostCompactWidth=function(){return Z==null?void 0:Z()},x),(xf.ytwAdButtonViewModelHostContentWidth=function(){return y==null?void 0:y()},xf),S!=null?S:"");
var K3=function(){var p3,w0=(p3=L().delayedAppearanceConfig)==null?void 0:p3.delayedInvisibleSeconds;w0&&(N=_.GR(_.WW,function(){T(!0);P4()},w0*1E3))},P4=function(){var p3,w0=(p3=L().delayedAppearanceConfig)==null?void 0:p3.delayedVisibleSeconds;
w0&&(N=_.GR(_.WW,function(){U(!0);kf()},w0*1E3))},kf=function(){var p3,w0=(p3=L().styleTransitionConfig)==null?void 0:p3.styleTransitionSeconds,Rn,lG=(Rn=L().styleTransitionConfig)==null?void 0:Rn.destinationStyle;
w0&&lG?N=_.GR(_.WW,function(){X(lG);H()},w0*1E3):H()},H4=function(){var p3;
return(p3=L().delayedAppearanceConfig)==null?void 0:p3.transitionDurationSeconds};
_.wO(function(){K3()});
_.wH(function(){N&&_.WW.cancelJob(N)});
return _.M("ad-button-view-model",{"on:focusin":_.kO(_.u("enable_desktop_vdcbg_components")?function(){var p3=_.yY().resolve(_.ZN(_.CJ));p3&&P(p3.isKeyBoardInUse());return!1}:void 0),
"on:focusout":_.kO(_.u("enable_desktop_vdcbg_components")?function(){P(!1);return!1}:void 0),
class:S,el:_.Zt(J),style:_.bc({"transition-duration":function(){return H4()?H4()+"s":void 0}})},_.M(_.d,{cond:f,
then:function(){return _.M(_.W9,{data:f,icon:function(){return _.M(_.d,{cond:function(){return L().iconImage},
then:function(p3){return _.M(_.Ku,{data:p3,alt:"",targetWidth:z,targetHeight:z,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"lb");var ecQ=_.B(function(x){var L=x.data;x=function(){return L().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"};
var D=_.yB({visibilityCallback:function(J){var Z,y=(Z=L().interaction)==null?void 0:Z.onFirstVisible;J&&y&&_.Xf(y)},
showOption:_.T2}),S={},Q={};return _.M("ad-button-group-view-model",{class:_.gF("ytwAdButtonGroupViewModelHost",(S.ytwAdButtonGroupViewModelHostCompactWidth=x,S)),el:_.Zt(D)},_.M("div",{class:_.gF("ytwAdButtonGroupViewModelHostSecondaryButton",(Q.ytwAdButtonGroupViewModelHostCompactWidthSecondaryButton=x,Q))},_.M(_.Fj,{data:function(){return L().secondaryAdButton}},{adButtonViewModel:function(J){return _.M(_.Rd,{data:J.data})}})),_.M("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.M(_.Fj,
{data:function(){return L().primaryAdButton}},{adButtonViewModel:function(J){return _.M(_.Rd,{data:J.data})}})))},"mb");var Rcr=_.B(function(x){var L=function(){var D;return((D=x.data())==null?void 0:D.answers)||[]};
return _.M("yt-survey-icons",{class:"ytSurveyIconsHost"},_.M("div",{class:"ytSurveyIconsHeader"},_.M("div",{class:"ytSurveyIconsTitle"},function(){var D;return(D=x.data())==null?void 0:D.text}),_.M("div",null,_.M(_.W9,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var D;(D=x.onDismiss)==null||D.call(x)}}},
iconName:"DISMISSAL"}))),_.M("div",null,_.M("div",{class:"ytSurveyIconsAnswers"},_.M(_.R1,{each:function(){return L()},
keyBy:"INDEX"},function(D,S){return _.M("div",null,_.M(_.W9,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var Q;(Q=x.onSelect)==null||Q.call(x,D(),S)}}},
icon:function(){return _.M(_.YO,{icon:function(){var Q,J;return(Q=D())==null?void 0:(J=Q.icon)==null?void 0:J.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.M("div",{class:"ytSurveyIconsAnswersText"},_.M("div",null,function(){return L().length?L()[0].text:""}),_.M("div",null,function(){return L().length?L()[L().length-1].text:""}))))},"nb");var G1_=_.B(function(x){var L=_.Zt(_.AL(function(){var E;return(E=x.data())==null?void 0:E.rendererContext},void 0,void 0,void 0,!0)),D=_.O(_.HB(!1,void 0,"GW0yjf")),S=D.next().value,Q=D.next().value,J=_.mF(KpG,function(){var E;
return(E=x.data().keys)==null?void 0:E.surveyEntityKey}),Z=_.mF(OjG,function(){var E;
return(E=x.data().keys)==null?void 0:E.surveyStateEntityKey});
_.t7("ytd-slimline-survey-show-action",function(){Q(!1)});
var y=function(){var E,P;var v=(E=Z())==null?void 0:(P=E.questionStack)==null?void 0:P[0];if(v!==void 0){var V,h;return(V=J())==null?void 0:(h=V.questions)==null?void 0:h[v]}};
D={};return _.M("yt-slimline-survey-view-model",{el:L,class:_.gF("ytSlimlineSurveyViewModelHost",(D.ytSlimlineSurveyViewModelCollapsed=function(){return S()},D))},_.M("div",{class:"ytSlimlineSurveyViewModelContainer"},_.M(_.d,{cond:function(){var E;
return((E=y())==null?void 0:E.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.M(Rcr,{data:function(){return y()},
onSelect:function(E,P){var v,V;return _.I(function(h){Q(!0);if(V=(v=x.data())==null?void 0:v.onSelectRating)_.Xf(V),_.Ok(Wx2(P));_.Y2(h)})},
onDismiss:function(){Q(!0);var E;var P=(E=J())==null?void 0:E.dismissalFeedbackToken;E=P?{feedbackEndpoint:{feedbackToken:P}}:void 0;E&&_.o6(E,{form:{element:L.value}})}})}})))},"ob");var CaW=_.B(function(x){return _.M("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.M(_.Fj,{data:function(){var L;return(L=x.data())==null?void 0:L.attachments}},{flexibleActionsViewModel:function(L){return _.M("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.M(_.yw,{data:L.data,
layout:function(){var D;return((D=x.lockupStyle())==null?void 0:D.arrangement)===1?0:1},
justifyContentOverride:function(){var D;return((D=x.lockupStyle())==null?void 0:D.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(L){return _.M("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.M(G1_,{data:L.data}))},
expandableMetadataViewModel:function(L){L=L.data;var D;return _.M("div",{class:_.gF("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(D=_.yY().resolve(_.ZN(Tji)))==null?void 0:D({data:L}))},
adButtonGroupViewModel:function(L){return _.M("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.M(ecQ,{data:L.data}))},
adButtonViewModel:function(L){return _.M("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.M(_.Rd,{data:L.data,isCompactWidth:!0}))}}))},"pb");var uV0=_.dE("rich_grid_min_item_width",310),hCs=_.dE("rich_grid_max_item_width",500);var lUA=_.B(function(x){var L=x.data;return _.M("br-nz-badge-shape",{class:_.gF(function(){return sAp(L().brNzRatingBadgeType)}),
role:function(){return L().accessibilityText?"img":void 0},
"aria-label":function(){return L().accessibilityText}},function(){var D;
return(D=L())==null?void 0:D.text})},"qb");_.G2=_.B(function(x){var L=function(){var D=x.data(),S,Q,J;if(D){var Z=!((S=x.workaroundShortsIsThumbnailBadge)==null||!S.call(x));S=(Q=x.modern)==null?void 0:Q.call(x);Q=(J=x.numBadgesInRow)==null?void 0:J.call(x);var y;a:switch(D.badgeStyle){case "BADGE_OVERLAY":J=!0;break a;default:J=!1}D={type:Z?17:Tnf(D.badgeStyle),brNzRatingBadgeType:eC0(D.badgeStyle),text:D.badgeText,icon:D.iconName,isOverlay:J,modern:S||_.u("web_modern_badge_view_model"),numBadgesInRow:Q,accessibilityText:D.accessibilityLabel||
((y=_.g(D.rendererContext,_.Fm))==null?void 0:y.label)}}else D=void 0;return D};
return _.M("yt-badge-view-model",{class:_.gF("ytBadgeViewModelHost",x.class)},_.M(_.GS,null,_.M(_.TS,{when:function(){var D;return!((D=L())==null||!D.brNzRatingBadgeType)}},function(){return _.M(lUA,{data:function(){return L()}})}),_.M(_.TS,{when:function(){return!!L()&&!L().brNzRatingBadgeType}},function(){return _.M(_.dd,{data:function(){return L()}})})))},"rb");
_.G2.idomCompat=!0;var Gcn,RC0;Gcn=16/9;RC0=2/3;_.CD=_.B(function(x){var L=x.data;var D=x.className;var S=x.imageSizeConfig;var Q=x.notifyOnLoaded;var J=function(){return L().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},Z=function(){var h;
return _.qb((h=L())==null?void 0:h.rendererContext)};
x={};x=(x.ytContentPreviewImageViewModelHost=!0,x.ytContentPreviewImageViewModelCircleImage=function(){return J()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},x.ytContentPreviewImageViewModelTappable=function(){return Z()},x);
var y=function(){var h,H;return(H=(h=_.g(L().rendererContext,_.Fm))==null?void 0:h.label)!=null?H:""},E=function(){return lec(L())},P=function(){var h=CF4(J(),L().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",S==null?void 0:S(),UEw(E()),L().layoutWidth,L().layoutHeight),H=Object.assign({},h);
h.width&&(H.width=Math.round(h.width));h.height&&(H.height=Math.round(h.height));h.maxWidth&&(H.maxWidth=Math.round(h.maxWidth));h.maxHeight&&(H.maxHeight=Math.round(h.maxHeight));return H},v=_.m5(function(){return P().height},void 0,"CxFlJb"),V=_.m5(function(){return P().width},void 0,"lb8Jhd");
return _.M("yt-content-preview-image-view-model",{el:_.Zt(_.AL(function(){var h;return(h=L())==null?void 0:h.rendererContext})),
role:function(){return Z()?"link":void 0},
tabindex:function(){return Z()?0:void 0},
class:_.gF(D,x,function(){var h=J();var H=S==null?void 0:S();h=h==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||h==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||h==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||h==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(H==null?void 0:H.size)!=null&&H.size<=16?"ytContentPreviewImageViewModelExtraSmallRoundedImage":(H==null?void 0:H.size)!=null&&H.size<=24?"ytContentPreviewImageViewModelSmallRoundedImage":"ytContentPreviewImageViewModelLargeRoundedImage":
void 0;return h}),
style:function(){var h=P(),H=[];h.width&&H.push("width: "+h.width+"px");h.height&&H.push("height: "+h.height+"px");h.maxWidth&&H.push("max-width: "+h.maxWidth+"px");h.maxHeight&&H.push("max-height: "+h.maxHeight+"px");h.fullWidth&&H.push("width: 100%");return H.join(";")}},_.M(_.d,{cond:E,
then:function(h){return _.M(_.Ku,{data:h,alt:y,"data-disabled$":function(){return!y()},
notifyOnLoaded:Q,targetWidth:V,targetHeight:v,preserveWidth:function(){return!!V()},
preserveHeight:function(){return!!v()}})}}),_.M(_.Fj,{data:function(){var h;
return(h=L())==null?void 0:h.overlays}},{thumbnailHoverOverlayViewModel:KD,
thumbnailOverlayButtonViewModel:_.k1r}))},"sb");
_.CD.idomCompat=!0;var wRd=_.B(function(x){var L=x.data;var D=x.className;var S=x.useSmallLayout;x=x.useMediumText;var Q={};return _.M("yt-attribution-view-model",{el:_.Zt(_.AL(function(){var J;return(J=L())==null?void 0:J.rendererContext})),
class:_.gF(D,(Q.ytAttributionViewModelHost=!0,Q.ytAttributionViewModelMediumText=x,Q))},_.M(_.d,{cond:function(){return _.qb(L().rendererContext)},
then:function(){return _.M("button",{class:"ytAttributionViewModelTappable"},_.M(U32,{data:L,useSmallLayout:S}))},
else:function(){return _.M(U32,{data:L,useSmallLayout:S})}}))},"tb"),U32=_.B(function(x){var L=x.data;
var D=x.useSmallLayout;var S=function(){return{size:(D==null?0:D())?16:24}};
return _.M(_.I1,null,_.M(_.Fj,{data:function(){return L().contentPreviewImage}},{contentPreviewImageViewModel:function(Q){return _.M(_.CD,{data:Q.data,
className:"ytAttributionViewModelAttributionImage",imageSizeConfig:S})}}),_.M(_.Fj,{data:function(){return L().badge}},{badgeViewModel:function(Q){return _.M(_.G2,{data:Q.data,
class:"ytAttributionViewModelBadge",modern:!0})}}),_.M(_.d,{cond:function(){return L().text},
then:function(){return _.M(_.kP,{text:function(){return L().text},
noWrap:!0,linkInheritColor:!0,className:"ytAttributionViewModelAttributionText"})}}),_.M(_.d,{cond:function(){return L().suffix},
then:function(){return _.M(_.kP,{text:function(){return L().suffix},
linkInheritColor:!0,className:"ytAttributionViewModelSuffix"})}}))},"ub");
wRd.idomCompat=!0;var BjW,WQh,q$H,APH,$3G;BjW=_.B(function(x){var L=x.delimiter;var D=x.max;var S=x.index;var Q=x.isStandalone;return _.M(_.d,{cond:function(){return D()-1>S()},
then:function(){var J={};return _.M("span",{class:_.gF("yt-content-metadata-view-model__delimiter",(J["yt-content-metadata-view-model__delimiter--standalone"]=Q,J)),"aria-hidden":!0},L)}})},"vb");
WQh=_.B(function(x){var L=x.metadataPart;var D=x.maxLines;return _.M(_.kP,{text:function(){return L().text},
linkInheritColor:!0,className:function(){return wm0(D())},
userInput:!0})},"wb");
q$H=_.B(function(x){var L=x.metadataPart;var D=x.maxLines;return _.M(_.d,{cond:function(){return L().tooltip},
then:function(S){return _.M("span",{title:S,role:"tooltip"},_.M(WQh,{metadataPart:L,maxLines:D}))},
else:function(){return _.M(WQh,{metadataPart:L,maxLines:D})}})},"xb");
APH=_.B(function(x){var L=x.metadataPart;var D=x.isOverlay;var S=x.useMediumText;var Q=x.hideAvatar;var J=function(){return L().maxLines!==void 0?L().maxLines:1};
return _.M(_.I1,null,_.M(_.Fj,{data:function(){return L().avatarStack}},{avatarStackViewModel:function(Z){return _.M(_.yn,{data:Z.data,
isOverlay:D,useMediumText:S,hideAvatar:Q})},
badgeViewModel:_.G2}),_.M(_.d,{cond:function(){return L().leadingIcon},
then:function(Z){return _.M(_.YO,{className:"yt-content-metadata-view-model__leading-icon",icon:function(){return Z().name},
size:function(){return Z().width}})}}),_.M(_.d,{cond:function(){return L().text},
then:function(){return _.M(q$H,{metadataPart:L,maxLines:J})}}),_.M(_.d,{cond:function(){return L().icon},
then:function(Z){return _.M(_.YO,{className:"yt-content-metadata-view-model__icon",icon:function(){return Z().name},
size:function(){return Z().width}})}}))},"yb");
$3G=_.B(function(x){var L=x.metadataRow;var D=x.isInline;var S=x.delimiter;var Q=x.isOverlay;var J=x.useMediumText;var Z=x.extensions;var y=function(){var P,v=Z==null?void 0:(P=Z())==null?void 0:P.lockupMetadata;P=L();var V,h;return!!((v==null?0:(V=v.byline)==null?0:V.hideAvatar)&&((h=_.g(P,DKQ))==null?void 0:h.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},E=function(){return L().metadataParts||[]};
x={};return _.M("div",{class:_.gF("yt-content-metadata-view-model__metadata-row",(x["yt-content-metadata-view-model__metadata-row--metadata-row-inline"]=D,x["yt-content-metadata-view-model__metadata-row--metadata-row-padding"]=function(){var P,v=Z==null?void 0:(P=Z())==null?void 0:P.lockupMetadata;P=L();var V,h;return!!((v==null?0:(V=v.byline)==null?0:V.addPadding)&&((h=_.g(P,DKQ))==null?void 0:h.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},x["yt-content-metadata-view-model__metadata-row--metadata-row-wrap"]=
function(){var P;
return!!(Z==null?0:(P=Z())==null?0:P.lockupMetadata)&&L().badges&&!L().metadataParts},x))},_.M(_.Fj,{data:function(){return L().badges}},{badgeViewModel:function(P){return _.M("div",{class:"yt-content-metadata-view-model__badge"},_.M(_.G2,{data:P.data,
numBadgesInRow:function(){var v,V;return((v=L())==null?void 0:(V=v.badges)==null?void 0:V.length)||0}}))}}),_.M(_.R1,{each:E},function(P,v){return _.M(_.I1,null,_.M(APH,{metadataPart:P,
isOverlay:Q,useMediumText:J,hideAvatar:y}),_.M(BjW,{delimiter:S,max:function(){return E().length},
index:v,isStandalone:!1}))}),_.M(_.d,{cond:function(){return L().isSpacerRow&&!D()},
then:function(){return _.M("div",{class:"yt-content-metadata-view-model__spacer"})}}))},"zb");
_.lu=_.B(function(x){x=_.ym(x,{layout:0,isOverlay:!1});var L=x.data,D=x.layout,S=x.isOverlay,Q=x.useMediumText,J=x.extensions,Z=function(){return D()===0},y=function(){var P;
return((P=L().metadataRows)==null?void 0:P.filter(function(v){var V,h=J==null?void 0:(V=J())==null?void 0:V.lockupMetadata,H,k;V=!!((h==null?0:(H=h.description)==null?0:H.hideDescription)&&((k=_.g(v,DKQ))==null?void 0:k.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var T,G;return!((h==null?0:(T=h.spacer)==null?0:T.hideSpacer)&&((G=_.g(v,DKQ))==null?void 0:G.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||V)}))||[]},E={};
return _.M("yt-content-metadata-view-model",{class:_.gF(x.className,"yt-content-metadata-view-model",(E["yt-content-metadata-view-model--inline"]=Z,E["yt-content-metadata-view-model--tappable"]=function(){return _.qb(L().rendererContext)},E["yt-content-metadata-view-model--medium-text"]=Q,E)),
el:_.Zt(_.AL(function(){return L().rendererContext}))},_.M(_.R1,{each:y},function(P,v){return _.M(_.I1,null,_.M($3G,{metadataRow:P,
isInline:Z,delimiter:function(){return L().delimiter},
isOverlay:S,useMediumText:Q,extensions:J}),_.M(_.d,{cond:function(){return Z()&&!P.isSpacerRow},
then:function(){return _.M(BjW,{delimiter:function(){return L().delimiter},
max:function(){return y().length},
index:v,isStandalone:!0})}}))}))},"Ab");
_.lu.idomCompat=!0;var rP2=_.B(function(x){var L=_.yY().resolve(_.ZN(_.Dt)),D={};return _.M("yt-lockup-metadata-view-model",{class:_.gF("yt-lockup-metadata-view-model",function(){a:{var S=x.lockupStyle();if(S==null?0:S.isOverlay)S="yt-lockup-metadata-view-model--overlay";else switch(S==null?void 0:S.arrangement){case 1:S="yt-lockup-metadata-view-model--horizontal";break a;default:S="yt-lockup-metadata-view-model--vertical"}}return S},function(){a:{var S=x.lockupStyle();
if(S==null?0:S.isTiny)S="yt-lockup-metadata-view-model--tiny";else switch(S==null?void 0:S.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":S="yt-lockup-metadata-view-model--compact";break a;default:S="yt-lockup-metadata-view-model--standard"}}return S},(D["yt-lockup-metadata-view-model--overlay"]=function(){var S;
return(S=x.lockupStyle())==null?void 0:S.isOverlay},D["yt-lockup-metadata-view-model--card"]=function(){var S;
return(S=x.lockupStyle())==null?void 0:S.isCard},D["yt-lockup-metadata-view-model--centered"]=function(){var S;
return(S=x.lockupStyle())==null?void 0:S.isCentered},D["yt-lockup-metadata-view-model--typography-bump"]=function(){var S;
return(S=x.lockupStyle())==null?void 0:S.typographyBump},D["yt-lockup-metadata-view-model--legacy-typography"]=function(){var S;
return(S=x.lockupStyle())==null?void 0:S.useLegacyTypography},D["yt-lockup-metadata-view-model--rich-grid-legacy-typography"]=function(){var S;
return(S=x.lockupStyle())==null?void 0:S.useRichGridLegacyTypography},D))},_.M(_.Fj,{data:function(){return x.data().image}},{avatarStackViewModel:function(S){return _.M("div",{class:"yt-lockup-metadata-view-model__avatar"},_.M(_.yn,{data:S.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(S){return _.M("div",{class:"yt-lockup-metadata-view-model__avatar"},_.M(_.O0,{data:S.data}))},
decoratedAvatarViewModel:function(S){return _.M("div",{class:"yt-lockup-metadata-view-model__avatar"},_.M(_.Z6,{data:S.data}))}}),_.M("div",{class:"yt-lockup-metadata-view-model__text-container"},_.M("h3",{class:"yt-lockup-metadata-view-model__heading-reset",
title:function(){var S;return(S=x.data().title)==null?void 0:S.content}},_.M(_.d,{cond:function(){return x.data().title},
then:function(S){return _.M(_.lr,{command:x.lockupCommand,className:"yt-lockup-metadata-view-model__title",style:_.bc({color:function(){var Q;a:{var J=x.lockupStyle();var Z=(Q=x.hovered)==null?void 0:Q.call(x);Q=!(L==null||!L());var y;if((J==null?0:(y=J.onFocusEffect)==null?0:y.textPrimaryColor)&&Z&&(J=Q?J.onFocusEffect.textPrimaryColor.darkTheme:J.onFocusEffect.textPrimaryColor.lightTheme)){J=_.zF(J);break a}J=void 0}return J}}),
ariaLabel:x.lockupAccessibilityLabel},_.M(_.kP,{text:S,userInput:!0}))}})),_.M("div",{class:"yt-lockup-metadata-view-model__metadata",
style:_.bc({color:function(){var S;a:{var Q=x.lockupStyle();var J=(S=x.hovered)==null?void 0:S.call(x);S=!(L==null||!L());var Z;if((Q==null?0:(Z=Q.onFocusEffect)==null?0:Z.textSecondaryColor)&&J&&(Q=S?Q.onFocusEffect.textSecondaryColor.darkTheme:Q.onFocusEffect.textSecondaryColor.lightTheme)){Q=_.zF(Q);break a}Q=void 0}return Q}})},_.M(_.Fj,{data:function(){return x.data().metadata}},{contentMetadataViewModel:function(S){return _.M(_.lu,{data:S.data,
layout:1,useMediumText:function(){var Q,J;return((Q=x.lockupStyle())==null?void 0:Q.typographyBump)||((J=x.lockupStyle())==null?void 0:J.useRichGridLegacyTypography)},
extensions:function(){var Q,J,Z,y;return{lockupMetadata:{byline:{hideAvatar:((Q=x.lockupStyle())==null?void 0:Q.arrangement)===0,addPadding:((J=x.lockupStyle())==null?void 0:J.arrangement)===1},description:{hideDescription:!((Z=x.lockupStyle())==null||!Z.compactMetadata)},spacer:{hideSpacer:!((y=x.lockupStyle())==null||!y.compactMetadata)}}}}})}})),_.M(_.Fj,{data:function(){return x.data().attribution}},{attributionViewModel:function(S){return _.M("div",{class:"yt-lockup-metadata-view-model__attribution"},
_.M(wRd,{data:S.data,
useSmallLayout:!0}))}})),_.M("div",{class:"yt-lockup-metadata-view-model__menu-button"},_.M(_.Fj,{data:function(){return x.data().menuButton}},{buttonViewModel:function(S){return _.M(_.qP,{data:S.data,
buttonOverrides:function(){var Q;return((Q=x.lockupStyle())==null?0:Q.isOverlay)?{style:"overlay"}:void 0}})}})))},"Bb");
rP2.idomCompat=!0;var Nj2=_.B(function(x){var L=_.x3("notification-multi-action-renderer");_.UX(function(){requestAnimationFrame(function(){_.LV(L.value)})});
var D={},S={},Q={};return _.M("notification-multi-action-renderer",{class:_.gF("ytNotificationMultiActionRendererHost",(D.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var J;return(J=x.useLegacyShelfStyle)==null?void 0:J.call(x)},D)),
el:L},_.M("span",{"aria-live":"polite",class:_.gF("ytNotificationMultiActionRendererTextContainer",(S.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var J;return(J=x.useLegacyShelfStyle)==null?void 0:J.call(x)},S))},_.M(_.kP,{text:function(){return x.data().responseText}})),_.M("div",{class:_.gF("ytNotificationMultiActionRendererButtonContainer",(Q.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var J;
return(J=x.useLegacyShelfStyle)==null?void 0:J.call(x)},Q))},_.M(_.Fj,{data:function(){var J;
return(J=x.data().buttons)==null?void 0:J.map(function(Z){if(Z=Z.buttonRenderer){var y,E=Object,P=E.assign,v=(y=Z.icon)==null?void 0:y.iconType;y=(y=Z.command||Z.serviceEndpoint||Z.navigationEndpoint)?{innertubeCommand:y}:void 0;Z={buttonViewModel:P.call(E,{},{iconName:v,onTap:y,trackingParams:Z.trackingParams,titleFormatted:Z.text?_.$i(Z.text):void 0},WV0(Z))}}else Z=void 0;return Z}).filter(function(Z){return!!Z})}},{buttonViewModel:function(J,Z){return _.M("div",null,_.M(_.qP,{data:J.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var y;return((y=x.useModernStyles)==null?0:y.call(x))?{type:Z()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Db");var ikC=_.B(function(x){var L=_.x3("notification-text-renderer");_.UX(function(){requestAnimationFrame(function(){_.LV(L.value)})});
return _.M("notification-text-renderer",{el:L,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.M(_.kP,{text:function(){return x.data().successResponseText}}))},"Fb");_.U0=_.B(function(x){var L=_.mF(FaO,function(){var S;return qef((S=x.contentId)==null?void 0:S.call(x))}),D=function(){var S;
return _.g((S=L())==null?void 0:S.command,_.$K)};
return _.M(_.d,{cond:function(){var S;if(!(S=D())){var Q;S=_.g((Q=L())==null?void 0:Q.command,uC_)}return S},
then:function(){return _.M(_.d,{cond:D,then:function(){var S={};return _.M("div",{class:_.gF("ytDismissibleItemReplacedContent",function(){var Q;return AVN((Q=x.aspectRatio)==null?void 0:Q.call(x))})},_.M("div",{class:_.gF((S.ytDismissibleItemAspectRatioContainer=function(){var Q;
return((Q=x.aspectRatio)==null?void 0:Q.call(x))!==void 0},S))},_.M(_.Fj,{data:function(){var Q;
return(Q=D())==null?void 0:Q.item}},{notificationMultiActionRenderer:function(Q){return _.M(Nj2,{data:Q.data,
useModernStyles:x.useModernStyle,useLegacyShelfStyle:x.useLegacyShelfStyle})},
notificationTextRenderer:ikC})))}})},
else:x.children})},"Gb");_.fUB=_.B(function(x){var L=x.data;var D=x.customCommandResolver;x=_.Zt(_.yB({visibilityCallback:function(J){var Z,y=(Z=L().interaction)==null?void 0:Z.onFirstVisible;J&&y&&_.Xf(y)},
showOption:_.T2}));var S=function(){var J;return((J=L().interaction)==null?0:J.onTap)?function(Z){var y;Iew(Z,(y=L().interaction)==null?void 0:y.onTap,D)}:void 0},Q=function(){var J,Z=L(),y=S(),E=(J=_.g(L().rendererContext,_.Fm))==null?void 0:J.label;
a:switch(Z.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":J=1;break a;default:J=0}return{size:NnG(Z.size),type:J,onTap:y,accessibilityText:E}};
return _.M("ad-avatar-view-model",{class:function(){var J;return((J=L().interaction)==null?0:J.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:x},_.M(_.d,{cond:function(){return L().image},
then:function(J){return _.M(sAh,{data:Q,image:J})}}))},"Hb");_.wN=_.B(function(x){var L=_.ym(x,{hasDot:!1,usedInMasthead:!1}),D=Object.assign({},L),S=L.data,Q=L.hasDot;x=L.customCommandResolver;var J=L.usedInMasthead,Z=(delete D.data,delete D.hasDot,delete D.customCommandResolver,delete D.usedInMasthead,D);L=function(){return S().style};
L!==void 0&&L!==null||_.X0(Error("Mh"));x=_.ik(function(){return S().interaction},x);
return _.M("ad-badge-view-model",{class:_.gF(function(){var y;return((y=S().interaction)==null?0:y.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var y=Z.adRenderingContextType(),E=J();
S();return y!=="AD_RENDERING_CONTEXT_TYPE_BROWSE"||E?"ytwAdBadgeViewModelHostStyleStandard":"ytwAdBadgeViewModelHostStyleStandardBrowse"}),
el:_.Zt(x)},_.M(_.dd,{data:function(){var y;S();return{type:2,text:(y=S().label)==null?void 0:y.content,adsIncludeDot:Q(),isOverlay:S().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Ib");var owQ;_.BE=_.B(function(x){var L=x.data;var D=x.customCommandResolver;var S=x.adRenderingContextType;return _.M("ad-details-line-view-model",{class:function(){var Q;return((Q=L().interaction)==null?0:Q.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:_.Zt(_.yB({visibilityCallback:function(Q){var J,Z=(J=L().interaction)==null?void 0:J.onFirstVisible;Q&&Z&&_.Xf(Z)},
showOption:_.T2}),_.ik(function(){return L().interaction},D))},_.M(_.d,{cond:function(){return L().style},
then:function(Q){return _.M(_.R1,{each:function(){var J;return((J=L())==null?void 0:J.attributes)||[]},
keyBy:"INDEX"},function(J){return _.M(owQ,{attribute:J,style:Q,adRenderingContextType:function(){return S()}})})}}))},"Jb");
owQ=_.B(function(x){var L=x.attribute;var D=x.style;var S=x.adRenderingContextType;return _.M(_.d,{cond:function(){return L().text},
then:function(Q){return _.M(_.kP,{text:Q,className:function(){var J=S();D();return J==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Kb");var aUd=_.B(function(x){var L=x.data;var D=x.typographyBump;var S=function(){return L().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
x={};return _.M(_.I1,null,_.M("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.M(_.kP,{text:function(){return L().headline},
className:_.gF("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(x.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return S==null?void 0:S()},x.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(D==null?void 0:D())&&!(S==null?0:S())},x)),
linkInheritColor:!0}),_.M(_.d,{cond:function(){return L().description},
then:function(Q){var J={};return _.M(_.kP,{text:Q,className:_.gF("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(J.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return S==null?void 0:S()},J.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(D==null?void 0:D())&&!(S==null?0:S())},J)),
linkInheritColor:!0})}}),_.M(_.d,{cond:function(){return L().secondaryDescription},
then:function(Q){var J={};return _.M(_.kP,{text:Q,className:_.gF("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(J.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return D==null?void 0:D()},J)),
linkInheritColor:!0})}}),_.M("div",{class:function(){return S()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.M(_.d,{cond:function(){return L().adAvatar},
then:function(){return _.M("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.M(_.Fj,{data:function(){return L().adAvatar}},{adAvatarViewModel:_.fUB}))}}),_.M(_.Fj,{data:function(){return L().adBadge}},{adBadgeViewModel:function(Q){return _.M(_.wN,{data:Q.data,
hasDot:function(){return!!L().adDetailsLine},
adRenderingContextType:function(){return L().adRenderingContextType}})}}),_.M(_.Fj,{data:function(){return L().adDetailsLine}},{adDetailsLineViewModel:function(Q){return _.M(_.BE,{data:Q.data,
adRenderingContextType:function(){return L().adRenderingContextType}})}}))),_.M("div",{class:function(){return S()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.M(_.Fj,{data:function(){return L().menu}},{buttonViewModel:function(Q){return _.M(_.qP,{data:Q.data,
buttonOverrides:function(){a:switch(L().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var J="S";break a;default:J="M"}return{size:J}}})}})))},"Lb"),zcd=_.B(function(x){var L=x.data;
var D=x.noBottomMargin;var S=x.useVideoLockupTopPadding;var Q=x.typographyBump;x={};x=_.gF("ytwFeedAdMetadataViewModelHostMetadata",(x.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return D==null?void 0:D()},x.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return S==null?void 0:S()},x));
var J=function(){return L().adBadge};
J!==void 0&&J!==null||_.X0(Error("Nh"));J={};var Z={};return _.M(_.I1,null,_.M(_.d,{cond:function(){return L().adAvatar},
then:function(){return _.M("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.M(_.Fj,{data:function(){return L().adAvatar}},{adAvatarViewModel:function(y){return _.M(_.fUB,{data:y.data})}}))}}),_.M("div",{class:x},_.M("div",{class:_.gF("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(J.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return Q==null?void 0:Q()},J.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(Q==
null?void 0:Q())&&_.u("web_enable_typography_bump_v2")},J))},_.M(_.kP,{text:function(){return L().headline},
linkInheritColor:!0})),_.M(_.d,{cond:function(){return L().description},
then:function(y){return _.M(_.kP,{text:y,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.M("div",{class:function(){return L().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.u("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.M(_.Fj,{data:function(){return L().adBadge}},
{adBadgeViewModel:function(y){return _.M(_.wN,{data:y.data,
hasDot:function(){return!!L().adDetailsLine},
adRenderingContextType:function(){return L().adRenderingContextType}})}}),_.M(_.Fj,{data:function(){return L().adDetailsLine}},{adDetailsLineViewModel:function(y){return _.M(_.BE,{data:y.data,
adRenderingContextType:function(){return L().adRenderingContextType}})}})),_.M(_.d,{cond:function(){return L().secondaryDescription},
then:function(y){return _.M(_.kP,{text:y,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.M("div",{class:_.gF("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(Z.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return S==null?void 0:S()},Z))},_.M(_.Fj,{data:function(){return L().menu}},{buttonViewModel:_.qP})))},"Mb"),WE=_.B(function(x){var L=x.data;
var D=x.noBottomMargin;var S=x.listenToTapEvent;var Q=x.setTouchEndHandler;var J=x.useVideoLockupTopPadding;var Z=x.typographyBump;x=_.yB({visibilityCallback:function(V){var h,H=(h=L().interaction)==null?void 0:h.onFirstVisible;V&&H&&_.Xf(H)},
showOption:_.T2});var y=_.ik(function(){return L().interaction},void 0,function(){return S==null?void 0:S()}),E=_.O(_.HB(!1,void 0,"a2FSrb")),P=E.next().value,v=E.next().value;
E=_.kO(function(V){(Q==null?0:Q())&&!P()&&(V.currentTarget.click(),v(!0),setTimeout(function(){v(!1)},100));
return!1});
return _.M("feed-ad-metadata-view-model",{class:function(){var V;return((V=L().interaction)==null?0:V.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:_.Zt(x,y),"on:touchend":E},_.M(_.GS,null,_.M(_.TS,{when:function(){return L().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.M(aUd,{data:L,
typographyBump:Z})}),_.M(_.TS,{when:function(){return L().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.M(zcd,{data:L,
noBottomMargin:D,useVideoLockupTopPadding:J,typographyBump:Z})})))},"Nb");var XR_,cPB;XR_=_.aB.inlinePreviewEnabledSelector;_.qr=_.B(function(x){return _.M("yt-lockup-view-model",{class:_.gF(x.className)},_.M(_.U0,{contentId:function(){return x.data().contentId},
useModernStyle:!0,aspectRatio:function(){var L,D;return((L=x.containerType)==null?void 0:L.call(x))!==3?YeG(x.data().contentType,(D=x.force16By9ThumbnailAspectRatio)==null?void 0:D.call(x)):void 0}},function(){return _.M(cPB,Object.assign({},x))}))},"Ob");
cPB=_.B(function(x){x=_.ym(x,{containerLayoutConfig:void 0,protectBackground:void 0,containerType:void 0,sizing:void 0,typographyBump:!1,force16By9ThumbnailAspectRatio:!1,thumbnailFixedWidth:void 0,thumbnailTargetWidth:void 0,lockupExperiments:void 0,elementsPerRow:void 0});var L=x.data,D=x.containerLayoutConfig,S=x.containerType,Q=x.sizing,J=x.protectBackground,Z=x.typographyBump,y=x.force16By9ThumbnailAspectRatio,E=x.thumbnailFixedWidth,P=x.thumbnailTargetWidth,v=x.lockupExperiments,V=x.elementsPerRow,
h=_.yY().resolve(_.ZN(_.Dt));x=_.Zt(_.AL(function(){var Rn;return(Rn=L())==null?void 0:Rn.rendererContext},void 0,void 0,["A".toString(),
"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL","YT-EXPANDABLE-METADATA-VIEW-MODEL","FEED-AD-METADATA-VIEW-MODEL","AD-BADGE-VIEW-MODEL","AD-DETAILS-LINE-VIEW-MODEL"],!0));var H=_.ic(XR_),k=_.yY().resolve(_.ZN(PaG)),T=k?{}:void 0,G=function(){var Rn,lG,xX;return(xX=(lG=_.g((Rn=L())==null?void 0:Rn.rendererContext,_.Fm))==null?void 0:lG.label)!=null?xX:void 0},U=function(){var Rn;
return(Rn=_.g(L().metadata,_.SVh))==null?void 0:Rn.endorsement},l=function(){var Rn=D==null?void 0:D(),lG;
if(Rn==null?0:Rn.containerType){var xX=(lG=L())==null?void 0:lG.contentType;lG=v();var UR=Z(),c4=P(),hr=J();Rn=Object.assign({},FV0(pmh(Rn),gSw(Rn.responsiveSize),UR,xX,Rn.force16By9ThumbnailAspectRatio,c4,hr,lG),{thumbnailFixedWidth:Rn.contentPreviewWidth})}else Rn=FV0(S(),Q(),Z(),(xX=L())==null?void 0:xX.contentType,y(),P(),J(),v());return Rn};
k&&T&&k({enabled:function(){return H()},
itemPlaybackModel:function(){return L().itemPlayback},
thumbnailElRef:function(){return T.thumbnailElRef},
containerElRef:x,options:function(){var Rn=T.thumbnailOverlays||[],lG=U(),xX;!lG||((xX=v())==null?0:xX.onFocusEffect)||Rn.push(lG);var UR,c4;return{thumbnail:T.thumbnail,thumbnailOverlays:Rn,accessibilityText:G(),thumbnailSize:T.thumbnailSize,enableRounding:l().isCollection,containPlayerWithinThumbnail:l().isCollection,mouseleaveCallback:function(){N(!1)},
trackingParams:(UR=_.g(L().rendererContext,_.T$))==null?void 0:(c4=UR.loggingDirectives)==null?void 0:c4.trackingParams}}});
var X=0;k=_.O(_.HB(!1,void 0,"JThLqe"));var f=k.next().value,N=k.next().value;k=_.O(_.HB(!1,void 0,"SSE3E"));var z=k.next().value,xf=k.next().value;k=_.kO(function(){z()?(_.WW.cancelJob(X),X=_.WW.addJob(function(){N(!0)},8,32)):N(!0);
return!0});
var K3=_.kO(function(Rn){Rn=Rn.relatedTarget;var lG=document.querySelector("ytd-video-preview");Rn&&lG&&lG.contains(Rn)||(X&&(_.WW.cancelJob(X),X=0),N(!1))});
_.wH(function(){X&&(_.WW.cancelJob(X),X=0)});
var P4=rVw(function(){xf(!0)}),kf=P4.touchFeedbackEvents,H4=P4.touchFeedbackOnPointerUp,p3=P4.touchFeedbackOnPointerDown;
P4=P4.touchFeedbackOnPointerLeave;var w0={};return _.M(_.I1,null,_.M("div",{el:x,class:_.gF("yt-lockup-view-model",function(){a:{var Rn=l();if(Rn.isOverlay)Rn="yt-lockup-view-model--overlay";else switch(Rn.arrangement){case 1:Rn="yt-lockup-view-model--horizontal";break a;default:Rn="yt-lockup-view-model--vertical"}}return Rn},function(){a:{var Rn=l();
if(Rn.isOverlay)Rn="yt-lockup-view-model--overlay";else{switch(Rn.collectionStackNumber){case 1:Rn="yt-lockup-view-model--collection-stack-1";break a;case 2:Rn="yt-lockup-view-model--collection-stack-2";break a}Rn=void 0}}return Rn},function(){var Rn;
return _.Bnf((Rn=L())==null?void 0:Rn.contentId)},(w0["yt-lockup-view-model--card"]=function(){return l().isCard},w0["yt-lockup-view-model--compact"]=function(){return l().isTiny||l().sizing!=="STANDARD"},w0["yt-lockup-view-model--protect-background"]=J,w0["yt-lockup-view-model--add-margins"]=function(){return l().addMarginForFullbleed},w0["yt-lockup-view-model--centered"]=function(){return l().isCentered},w0["yt-lockup-view-model--fullbleed"]=function(){return l().fullbleed},w0["yt-lockup-view-model--single-column-grid"]=
function(){return V()===1&&S()===2},w0["yt-lockup-view-model--rich-grid-legacy-margin"]=function(){var Rn;
return(Rn=v())==null?void 0:Rn.useRichGridLegacyMargin},w0)),
"on:mousedown":p3,"on:mouseleave":K3,"on:mouseup":H4,"on:mouseover":k,"on:touchstart":p3,"on:touchend":H4,"on:pointerleave":P4},_.M(_.UB,{model:function(){var Rn,lG=Object,xX=lG.assign,UR=(T==null?void 0:T.thumbnailSize)||"small";a:{var c4=l();if(U())c4=12;else{switch(c4.collectionStackNumber){case 1:c4=8;break a;case 2:c4=12;break a}c4=void 0}}UR={thumbnailSize:UR,triggerEvents:!0,customTopExtend:c4};var hr;c4=(Rn=v())==null?void 0:Rn.onFocusEffect;var GB=!(h==null||!h());if(c4){var C2,X9;Rn=GB?
(C2=c4.onFocusColor)==null?void 0:C2.darkTheme:(X9=c4.onFocusColor)==null?void 0:X9.lightTheme;var vs,Zp;C2=GB?(vs=c4.keyLightColor)==null?void 0:vs.darkTheme:(Zp=c4.keyLightColor)==null?void 0:Zp.lightTheme;var K2;vs=GB?(hr=c4.touchResponseColor)==null?void 0:hr.darkTheme:(K2=c4.touchResponseColor)==null?void 0:K2.lightTheme;hr={background:Rn!==void 0?_.zF(Rn):void 0,keyLight:C2!==void 0?_.zF(C2):void 0};K2=[];c4=_.O(c4.lightingTechniques||[]);for(Zp=c4.next();!Zp.done;Zp=c4.next())switch(Zp.value){case "LIGHTING_TECHNIQUE_KEY_LIGHT":K2.push(2);
break;case "LIGHTING_TECHNIQUE_BACK_LIGHT":K2.push(1);break;case "LIGHTING_TECHNIQUE_FILL_LIGHT":K2.push(3)}hr={hoverEffect:{palette:hr,lightingTechniques:K2},touchEffect:{palette:{background:vs!==void 0?_.zF(vs):void 0}}}}else hr={};return xX.call(lG,{},UR,hr)},
hovered:function(){return f()},
pointerDownEvent:kf.pointerDownEvent,pointerUpEvent:kf.pointerUpEvent,pointerLeaveEvent:kf.pointerLeaveEvent}),_.M(_.lr,{command:function(){var Rn;return _.WX((Rn=L())==null?void 0:Rn.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model__content-image",style:function(){return E()&&l().arrangement===1?"width: "+E():""}},_.M(_.Fj,{data:function(){var Rn;
return(Rn=L())==null?void 0:Rn.contentImage}},{thumbnailViewModel:function(Rn){return _.M(_.s0,{data:Rn.data,
aspectRatio:function(){return l().aspectRatio},
disableRounding:function(){return l().disableRounding},
width:P,hovered:function(){return f()&&!(H()&&L().itemPlayback)},
isClip:function(){var lG;return((lG=L())==null?void 0:lG.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:KVb(T),lockupExperiments:function(){return v()}})},
collectionThumbnailViewModel:function(Rn){return _.M(s9i,{data:Rn.data,aspectRatio:function(){return l().aspectRatio},
disableRounding:function(){return l().disableRounding},
width:P,doubleStack:function(){return l().collectionStackNumber===2},
hovered:function(){return f()&&!(H()&&L().itemPlayback)},
playbackRef:KVb(T)})},
decoratedAvatarViewModel:_.Z6})),_.M("div",{class:"yt-lockup-view-model__metadata"},_.M(_.Fj,{data:function(){var Rn;return(Rn=L())==null?void 0:Rn.metadata}},{lockupMetadataViewModel:function(Rn){return _.M(rP2,{data:Rn.data,
hovered:f,lockupStyle:l,lockupCommand:function(){var lG;return _.WX((lG=L())==null?void 0:lG.rendererContext)},
lockupAccessibilityLabel:function(){return G()}})},
feedAdMetadataViewModel:function(Rn){return _.M(WE,{data:Rn.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:Z})}}),_.M(_.Fj,{data:function(){var Rn;
return(Rn=L())==null?void 0:Rn.attachmentSlot}},{lockupAttachmentsViewModel:function(Rn){return _.M(CaW,{data:Rn.data,
lockupStyle:l})}}))),_.M(_.Fj,{data:function(){var Rn;
return(Rn=L())==null?void 0:Rn.bottomAttachmentSlot}},{lockupAttachmentsViewModel:function(Rn){return _.M(CaW,{data:Rn.data,
lockupStyle:l})}}))},"Pb");
_.qr.idomCompat=!0;_.dF(_.qr,"yt-lockup-view-model",{props:{data:_.pJ,containerLayoutConfig:_.pJ,containerType:_.pJ,sizing:_.pJ,protectBackground:_.pJ,typographyBump:_.pJ,thumbnailFixedWidth:_.pJ,thumbnailTargetWidth:_.pJ,force16By9ThumbnailAspectRatio:_.pJ,className:_.pJ,lockupExperiments:_.pJ,elementsPerRow:_.pJ}});var aeh,nwA=_.B(function(x){var L=_.ym(x,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),D=L.text,S=L.alwaysShowTruncationText;x=L.truncationText;var Q=L.onTextClick,J=L.maxLines,Z=L.disableTextMask,y=L.textStyle,E=L.accessibilityLabel,P=L.textSize,v=L.alwaysTruncateAtMaxLines,V=L.expandOnClick;L=_.O(_.HB(!1,void 0,"EzA1q"));var h=L.next().value,H=L.next().value;L=_.kO(function(){V()&&H(!h());Q==null||Q()});
var k=function(){a:switch(P()){case "medium":var z=2;break a;case "large":z=2.2;break a;default:z=1.8}return z},T=cV0(D,function(){return h()?Infinity:J()},k,Z,v,h),G=T.isTruncated;
D=T.displayText;v=T.contentRef;var U=T.hiddenRef,l=T.placeholderTruncationTextRef,X=T.hiddenTruncationTextRef;T=T.truncationTextRef;var f={},N={};return _.M("truncated-text",{class:_.gF((f["yt-truncated-text"]=!0,f["yt-truncated-text--overlay"]=function(){return y()==="overlay"},f["yt-truncated-text--medium-text"]=function(){return P()==="medium"},f["yt-truncated-text--large-text"]=function(){return P()==="large"},f["yt-truncated-text--primary-text"]=function(){return y()==="primary-text"},f)),
"on:click":L,style:function(){return"line-height: "+k()+"rem;"}},_.M("truncated-text-content",{class:"yt-truncated-text__truncated-text-content",
el:v,style:function(){return h()?"":"max-height: "+J()*k()+"rem;"}},_.M(_.kP,{text:D}),_.M("button",{"aria-disabled":!0,
disabled:!0,class:"yt-truncated-text__inline-button",el:l,style:function(){return"line-height: "+k()+"rem;"}},_.M(_.kP,{text:x}))),_.M("truncated-text-content",{class:_.gF("yt-truncated-text__truncated-text-content","yt-truncated-text__truncated-text-content--hidden-text-content"),
el:U,style:function(){return h()?"":"max-height: "+J()*k()+"rem;"},
"aria-hidden":"true"},_.M(_.kP,{text:D}),_.M("button",{"aria-disabled":!0,disabled:!0,class:"yt-truncated-text__inline-button",el:X,style:function(){return"line-height: "+k()+"rem;"}},_.M(_.kP,{text:x}))),_.M("button",{"aria-label":E,
class:_.gF((N["yt-truncated-text__absolute-button"]=function(){return!Z()},N["yt-truncated-text__bottom-button"]=function(){return Z()},N["yt-truncated-text--hidden"]=function(){return!(!h()&&(S!=null&&S()||G()))},N)),
el:T,style:function(){return"line-height: "+k()+"rem;"}},_.M(_.kP,{text:x})))},"Rb");
nwA.idomCompat={callbacks:{onTextClick:!0}};var Lh2=_.B(function(x){var L=x.data;x=x.className;var D=_.m5(function(){return tLs(L())},void 0,"uDhDke"),S=_.M(_.I1,null,_.M(_.d,{cond:function(){return L().heroText||L().image},
then:function(){return _.M(tBA,{data:L})}}),_.M(x8Q,{data:L,
sizeSmall:function(){return L().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}));
return _.M("yt-video-attribute-view-model",{class:x},_.M("div",{class:function(){var Q=L();a:switch(Q.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var J="yt-video-attribute-view-model--vertical";break a;default:J="yt-video-attribute-view-model--horizontal"}a:switch(Q.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var Z="yt-video-attribute-view-model--image-small";break a;default:Z="yt-video-attribute-view-model--image-large"}a:switch(Q.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(Q.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var E="yt-video-attribute-view-model--metadata-header";break a;default:E=""}a:switch(Q.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var P="yt-video-attribute-view-model--container-card";break a;default:P=""}return["yt-video-attribute-view-model",J,Z,
y,E,P,tLs(Q)?"yt-video-attribute-view-model--clickable":""].join(" ")},
style:_.bc({"background-color":function(){var Q=L();if(Q.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var J="";else{J=Q.lightColorPalette;Q=Q.darkColorPalette;var Z,y=((Z=_.yY().resolve(_.ZN(_.Dt)))==null?0:Z())&&Q?Q:J;J=(J=y==null?void 0:y.section2Color)?_.XA(J):""}return J}})},_.M(_.d,{cond:D,
then:function(){return _.M(_.lr,{className:"yt-video-attribute-view-model__content-container",command:D,role:"group",ariaLabel:function(){return L().title}},S)},
else:function(){return _.M("div",{class:"yt-video-attribute-view-model__content-container"},S)}})))},"Sb");
Lh2.idomCompat=!0;var tBA=_.B(function(x){var L=x.data;var D,S=(D=_.yY().resolve(_.ZN(_.Dt)))==null?void 0:D(),Q=function(){return S&&L().darkThemeImage?L().darkThemeImage:L().image},J=_.m5(function(){return x3N(L())},void 0,"UDqj0b");
return _.M("div",{class:"yt-video-attribute-view-model__hero-section"},_.M(_.GS,null,_.M(_.TS,{when:Q},function(){return _.M(_.Ku,{data:function(){return Q()},
className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),_.M(_.TS,{when:function(){return L().heroText}},function(){return _.M("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.M("span",{class:"yt-video-attribute-view-model__hero-text"},function(){return L().heroText}))})),_.M(_.d,{cond:function(){return L().overflowMenuOnTap},
then:function(){return _.M("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.M(_.W9,{data:J,iconName:"MORE_VERT"}))}}))},"Tb");
tBA.idomCompat=!0;var x8Q=_.B(function(x){var L=x.data;x=x.sizeSmall;var D=function(){return L().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},S=_.m5(function(){return z$(_.a6({innertubeCommand:tLs(L())}))?"link":tLs(L())?"button":"group"},void 0,"e2MmYe"),Q={};
return _.M("div",{class:_.gF("yt-video-attribute-view-model__metadata",(Q["yt-video-attribute-view-model--small-font"]=x,Q)),role:S},_.M("h1",{class:"yt-video-attribute-view-model__title"},function(){return L().title}),_.M(_.d,{cond:function(){return L().subtitle},
then:function(){return _.M("h4",{class:"yt-video-attribute-view-model__subtitle"},_.M(_.d,{cond:D,then:function(){return _.M(nwA,{text:function(){return nS0(L().subtitle)},
truncationText:function(){return nS0(L().subtitleTruncationText)},
maxLines:2})},
else:function(){return _.M("span",null,function(){return L().subtitle})}}))}}),_.M(_.d,{cond:function(){return L().secondarySubtitle},
then:function(J){return _.M("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.M(_.kP,{text:function(){var Z=J();if(Z!=null&&Z.attachmentRuns){for(var y=[],E=_.O(Z.attachmentRuns),P=E.next();!P.done;P=E.next())P=P.value,P.element&&y.push(Object.assign({},P,{element:Object.assign({},P.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));Z=Object.assign({},Z,{attachmentRuns:y})}return Z}}))}}),_.M(_.Fj,
{data:function(){return L().buttonViewModel}},{buttonViewModel:function(J){return _.M(_.qP,{data:J.data,
className:"yt-video-attribute-view-model__button"})}}))},"Ub");
x8Q.idomCompat=!0;_.dF(Lh2,"yt-video-attribute-view-model",{props:{data:_.pJ,className:_.pJ}});var AA=function(){var x=_.e.apply(this,arguments)||this;x.useHighlightStyling=_.u("web_enable_deeper_metadata_highlight_styling");x.isSearch=!1;x.JSC$15166_lastScrollContainerWidth=NaN;x.pageLoadingFromNavigation=!1;x.currentIndex=0;x.supportComponentResize=!1;return x};
_.p(AA,_.e);_.K=AA.prototype;
_.K.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}}}}}};
_.K.attached=function(){document.addEventListener("yt-page-type-changed",_.p$(this,this.onPageChange))};
_.K.detached=function(){document.removeEventListener("yt-page-type-changed",_.p$(this,this.onPageChange))};
_.K.getItemsPath=function(){return"data.cards"};
_.K.onIronResize=function(){this.updateListStyles()};
_.K.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var x;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(x=this.data)==null?void 0:x.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.u("problem_walkthrough_sd")&&!!this.centerItems};
_.K.computeCardListStyle=function(x){return x||null};
_.K.computeEmpty=function(x){return!this.get("cards.length",x)};
_.K.computeThumbnailStyle=function(x){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",x)||null};
_.K.computeHasSubtitle=function(x){return!!this.get("header.richListHeaderRenderer.subtitle",x)};
_.K.computeInitialCountNumber=function(x){return this.hasSquareMiniApp&&x==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&x==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:x==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:x==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:x==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&x==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.K.computeUseFloorScrolling=function(x){return x==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.K.computeHasGameCard=function(x){return(x=this.get("cards",x))?x.some(function(L){return L.gameCardRenderer}):!1};
_.K.computeCenterHeaderTitle=function(x){return!(x==null||!x.centerHeaderTitle)};
_.K.computeHasPortraitMiniApp=function(x){return(x=x==null?void 0:x.cards)?x.some(function(L){return L.miniGameCardViewModel&&L.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.K.computeHasSquareMiniApp=function(x){return(x=x==null?void 0:x.cards)?x.some(function(L){return L.miniGameCardViewModel&&L.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.K.computeHasSkinnyWidthPortraitMiniApp=function(x){return(x=x==null?void 0:x.cards)?x.some(function(L){return L.miniGameCardViewModel&&L.miniGameCardViewModel.width===135}):!1};
_.K.computeCenterItems=function(x){return!!x};
_.K.computeHasInfoPanel=function(x){var L;return x==null?void 0:(L=x.cards)==null?void 0:L.some(function(D){return D.infoPanelContentRenderer})};
_.K.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.K.getItemByIndex=function(x){var L=this.items.children;return L&&L.length>x?L[x]:void 0};
_.K.onPageChange=function(){var x=this;this.pageLoadingFromNavigation=!0;_.WW.addJob(function(){x.pageLoadingFromNavigation=!1;_.P$(x.hostElement,"yt-terminate-video-preview-action")},8)};
_.K.updateListStyles=function(){if(_.u("problem_walkthrough_sd")&&this.JSC$15166_scrollContainer!==void 0){var x=this.JSC$15166_scrollContainer.clientWidth;x!==this.JSC$15166_lastScrollContainerWidth&&(this.JSC$15166_lastScrollContainerWidth=x,_.uN(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(x*.8,415)+"px"}),_.MF(this.hostElement,"iron-resize"))}};
_.J3.Object.defineProperties(AA.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.u("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var x,L,D;return!!((x=this.data)==null?0:(L=x.cards)==null?0:(D=L[0])==null?0:D.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var x,L,D;return!!((x=this.data)==null?0:(L=x.cards)==null?0:(D=L[0])==null?0:D.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var x,L,D;return _.u("enable_desktop_amsterdam_info_panels")&&!!((x=this.data)==null?0:(L=x.cards)==null?0:(D=L[0])==null?0:D.infoPanelContentRenderer)}}});
AA.prototype.dataChanged=AA.prototype.dataChanged;AA.prototype.onIronResize=AA.prototype.onIronResize;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],AA.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],AA.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.CO.YtdHorizontalListBehavior),_.r("design:type",Object)],AA.prototype,"ytdHorizontalListBehavior",void 0);
_.A([_.b(_.dK),_.r("design:type",Object)],AA.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],AA.prototype,"data",void 0);_.A([_.F({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],AA.prototype,"useCustomColors",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],AA.prototype,"useHighlightStyling",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.r("design:type",Object)],AA.prototype,"cardListStyle",void 0);_.A([_.F({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.r("design:type",Boolean)],AA.prototype,"empty",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.r("design:type",Boolean)],AA.prototype,"hasSubtitle",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.r("design:type",Boolean)],AA.prototype,"thumbnailStyle",void 0);_.A([_.F({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.r("design:type",Boolean)],AA.prototype,"hasGameCard",void 0);_.A([_.F({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.r("design:type",Boolean)],AA.prototype,"centerHeaderTitle",void 0);
_.A([_.F({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.r("design:type",Boolean)],AA.prototype,"hasPortraitMiniApp",void 0);_.A([_.F({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.r("design:type",Boolean)],AA.prototype,"hasSquareMiniApp",void 0);_.A([_.F({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.r("design:type",Boolean)],AA.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.A([_.F({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.r("design:type",Boolean)],AA.prototype,"hasInfoPanel",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],AA.prototype,"isSearch",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],AA.prototype,"inlineStructuredDescription",void 0);_.A([_.F1("#scroll-container"),_.r("design:type",HTMLDivElement)],AA.prototype,"JSC$15166_scrollContainer",void 0);
_.A([_.F({computed:"computeInitialCountNumber(data.style.type)"}),_.r("design:type",Number)],AA.prototype,"initialCount",void 0);_.A([_.F({computed:"computeUseFloorScrolling(data.style.type)"}),_.r("design:type",Boolean)],AA.prototype,"useFloorScrolling",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.r("design:type",Boolean)],AA.prototype,"centerItems",void 0);_.A([_.F(),_.r("design:type",Object)],AA.prototype,"pageLoadingFromNavigation",void 0);
_.A([_.F(),_.r("design:type",Object)],AA.prototype,"currentIndex",void 0);_.A([_.F(),_.r("design:type",Number)],AA.prototype,"scrollCount",void 0);_.A([_.F(),_.r("design:type",Object)],AA.prototype,"supportComponentResize",void 0);_.A([_.F1("#items"),_.r("design:type",HTMLDivElement)],AA.prototype,"items",void 0);_.A([_.mX("iron-resize"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],AA.prototype,"onIronResize",null);
_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],AA.prototype,"dataChanged",null);_.A([_.F({reflectToAttribute:!0}),_.Y("inlineStructuredDescription"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],AA.prototype,"hideNavigationButton",null);_.A([_.F({reflectToAttribute:!0}),_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],AA.prototype,"modernChapters",null);
_.A([_.F({reflectToAttribute:!0}),_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],AA.prototype,"hasVideoAttributeViewModels",null);_.A([_.F({reflectToAttribute:!0}),_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],AA.prototype,"modernInfoPanels",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],AA);
_.q(AA,"ytd-horizontal-card-list-renderer",function(){if(zCR!==void 0)return zCR;var x=document.createElement("template");_.m(x,'\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>');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return zCR=x},{mode:_.Vm("kevlar_poly_si_batch_j072")?1:2});var D8H=_.B(function(x){var L=x.data;var D={};return _.M("video-summary-content-view-model",{class:_.gF("videoSummaryContentViewModelHost",x.className,(D.videoSummaryContentViewModelHostIsSearch=x.isSearch,D))},_.M(_.R1,{each:function(){var S=[],Q=L().paragraphs;if(Q==null||!Q.length)return[];for(var J=0;J<Q.length;J++){var Z=_.g(Q[J],Qfh),y=void 0;J>0&&(y=_.g(Q[J-1],Qfh));y&&!!y.marker===!!Z.marker?S[S.length-1].paragraphs.push(Z):S.push({isList:!!Z.marker,paragraphs:[Z]})}return S},
keyBy:"INDEX"},function(S){return _.M(_.d,{cond:function(){return S().isList},
then:function(){return _.M("ul",{class:"videoSummaryContentViewModelList"},_.M(_.R1,{each:function(){return S().paragraphs},
keyBy:"INDEX"},function(Q){return _.M("li",{class:"videoSummaryContentViewModelListItem"},_.M(_.kP,{text:function(){return Q().text}}))}))},
else:function(){return _.M("div",{class:"videoSummaryContentViewModelParagraphContainer"},_.M(_.R1,{each:function(){return S().paragraphs},
keyBy:"INDEX"},function(Q){return _.M("p",{class:"videoSummaryContentViewModelParagraph"},_.M(_.kP,{text:function(){return Q().text}}))}))}})}),_.M(_.d,{cond:function(){return!!_.g(L().likeButtonViewModel,_.Q4)&&!!_.g(L().dislikeButtonViewModel,_.S3)},
then:function(){return _.M("div",{class:"videoSummaryContentViewModelBottomButtonsContainer"},_.M("div",{class:"videoSummaryContentViewModelLikeButton"},_.M(_.Ea,{data:function(){return _.g(L().likeButtonViewModel,_.Q4)},
disableIconAnimation:!0})),_.M(_.Ib,{data:function(){return _.g(L().dislikeButtonViewModel,_.S3)}}))}}))},"Vb");
D8H.idomCompat=!0;_.dF(D8H,"video-summary-content-view-model",{props:{data:_.pJ,isSearch:_.pJ,className:_.pJ}});var $q=function(){var x=_.e.apply(this,arguments)||this;var L,D;x.isExpanded=(D=(L=x.data)==null?void 0:L.isExpanded)!=null?D:!1;x.disableExpand=!1;x.showProminentLabel=!1;x.showRightSideLabel=!0;x.toggleExpandableContent=function(S){x.disableExpand||(S.stopPropagation(),_.JL(_.Jq(S),x.hostElement,["info","expanded-subtitle"])||(x.isExpanded=!x.isExpanded,x.ytRendererBehavior.logExplicitClick(x.data),x.JSC$15177_cardList&&!_.u("expandable_metadata_a11y_fix_ks")&&_.So(x,function(){_.xZ(x.hostElement)})))};
x.useSquareThumbnail=!1;x.startX=0;return x};
_.p($q,_.e);_.K=$q.prototype;_.K.computeUseSquareThumbnail=function(){var x;return(x=this.data)==null?void 0:x.useSquareThumbnail};
_.K.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"}}}}};
_.K.dataChanged=function(){if(this.data){var x,L;this.isExpanded=(L=(x=this.data)==null?void 0:x.isExpanded)!=null?L:!1;var D,S,Q,J;if(x=this.isDarkTheme()?(D=this.data)==null?void 0:(S=D.colorData)==null?void 0:S.darkColorPalette:(Q=this.data)==null?void 0:(J=Q.colorData)==null?void 0:J.lightColorPalette){var Z,y;if((Z=this.data)==null?0:(y=Z.colorData)==null?0:y.vibrantColorPalette)x.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.UI(this.hostElement,x)}}};
_.K.isExpandedChanged=function(){this.isExpanded&&this.JSC$15177_cardList&&_.MF(this.JSC$15177_cardList,"iron-resize")};
_.K.computeIsExpanded=function(x){return!!x.isExpanded};
_.K.computeShowProminentLabel=function(x,L){var D;return!!(x==null?0:(D=x.header)==null?0:D.showLeadingCollapsedLabel)&&!L};
_.K.computeShowRightSideLabel=function(x,L){var D;return!(x==null?0:(D=x.header)==null?0:D.showLeadingCollapsedLabel)&&!L};
_.K.captureContentClick=function(x){if(!this.disableExpand)if(_.u("expandable_metadata_fix_killswitch")){var L=x.target;_.zlA(L,"ytd-macro-markers-list-item-renderer")||x.stopPropagation();(L==null?void 0:L.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.JL(_.Jq(x),this.hostElement,["items"])||_.QC(_.Jq(x),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.K.timestampClick=function(x){x.stopPropagation();var L,D;(x=(L=this.data)==null?void 0:(D=L.header)==null?void 0:D.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(x)};
_.K.onDown=function(x){x.stopPropagation();this.startX=x.detail?x.detail.x:0};
_.K.onUp=function(x){this.skipKeyInteraction(x)&&x.stopPropagation()};
_.K.skipKeyInteraction=function(x){var L=x.target;if((L==null?void 0:L.id)==="scroll-container"||(L==null?void 0:L.id)==="items"||x.detail&&x.detail.x!==this.startX)return!0;x=_.Jq(x);x=_.O(x);for(L=x.next();!L.done;L=x.next()){L=L.value;if(L===this.hostElement)break;if(L.hasAttribute&&L.hasAttribute("skip-key-interaction"))return!0}return!1};
_.K.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.J3.Object.defineProperties($q.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var x;return!!_.g((x=this.data)==null?void 0:x.expandedContent,SW2)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var x;return!!_.g((x=this.data)==null?void 0:x.expandedContent,_.QkB)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var x,L;return!((x=this.data)==null||!x.useCustomColors)&&!((L=this.data)==null||!L.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var x,L;return!!((x=this.data)==null?0:(L=x.header)==null?0:L.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var x,L;return!!((x=this.data)==null?0:(L=x.header)==null?0:L.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var x,L;return!!((x=this.data)==null?0:(L=x.header)==null?0:L.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
$q.prototype.onUp=$q.prototype.onUp;$q.prototype.onDown=$q.prototype.onDown;$q.prototype.isExpandedChanged=$q.prototype.isExpandedChanged;$q.prototype.dataChanged=$q.prototype.dataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],$q.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],$q.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],$q.prototype,"ytComponentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],$q.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],$q.prototype,"isExpanded",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],$q.prototype,"disableExpand",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],$q.prototype,"isSearch",void 0);
_.A([_.F({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],$q.prototype,"isWatch",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.r("design:type",Object)],$q.prototype,"showProminentLabel",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.r("design:type",Object)],$q.prototype,"showRightSideLabel",void 0);
_.A([_.F({value:!1,reflectToAttribute:!0}),_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],$q.prototype,"hasVideoSummary",null);_.A([_.F({value:!1,reflectToAttribute:!0}),_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],$q.prototype,"hasLockupViewModel",null);_.A([_.F({reflectToAttribute:!0}),_.Y("data","isWatch"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],$q.prototype,"useCustomColors",null);
_.A([_.F({reflectToAttribute:!0}),_.Y("data","isExpanded"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],$q.prototype,"showInfoButton",null);_.A([_.Y("data","isExpanded"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],$q.prototype,"showTimestamp",null);_.A([_.Y("data","isExpanded"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],$q.prototype,"showExpandedSubtitle",null);
_.A([_.Y("data","isExpanded"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],$q.prototype,"showThumbnail",null);_.A([_.F({reflectToAttribute:!0}),_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],$q.prototype,"useVppShoppingDestinationStyle",null);_.A([_.F(),_.r("design:type",Object)],$q.prototype,"toggleExpandableContent",void 0);_.A([_.F1("ytd-horizontal-card-list-renderer"),_.r("design:type",Object)],$q.prototype,"JSC$15177_cardList",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.r("design:type",Object)],$q.prototype,"useSquareThumbnail",void 0);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],$q.prototype,"dataChanged",null);_.A([_.bN("isExpanded"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],$q.prototype,"isExpandedChanged",null);
_.A([_.mX("down"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],$q.prototype,"onDown",null);_.A([_.mX("up"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],$q.prototype,"onUp",null);_.A([_.w({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],$q);
_.q($q,"ytd-expandable-metadata-renderer",function(){if(Seh!==void 0)return Seh;var x=document.createElement("template");_.m(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" on-click="toggleExpandableContent" skip-key-interaction="" class="style-scope ytd-expandable-metadata-renderer">\n  <div id="left-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="thumbnail" hidden="[[!showThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-img-shadow object-fit="FILL" thumbnail="[[data.header.collapsedThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n    <div id="prominent-collapsed-label" hidden="[[!showProminentLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string id="prominent-label-text" text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="timestamp" hidden="[[!showTimestamp]]" raised="" on-click="timestampClick" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedJumpToTimestamp]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="collapsed-title" hidden="[[isExpanded]]" role="button" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expanded-title-subtitle-group" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon id="expanded-title-icon" disable-upgrade$="[[!data.header.expandedTitleIcon.iconType]]" hidden="[[!data.header.expandedTitleIcon.iconType]]" icon="[[data.header.expandedTitleIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <div id="expanded-title-subtitle-text" class="style-scope ytd-expandable-metadata-renderer">\n        <div id="expanded-title" class="style-scope ytd-expandable-metadata-renderer">\n          <yt-formatted-string text="[[data.header.expandedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n        </div>\n        <div id="expanded-subtitle" hidden="[[!showExpandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-expandable-metadata-renderer" href$="[[computeHref_(data.header.expandedSubtitleTapCommand)]]" data="[[data.header.expandedSubtitleTapCommand]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" hidden="[[!isExpanded]]" on-click="captureContentClick" class="style-scope ytd-expandable-metadata-renderer"></div>\n<div id="menu" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Seh=x},{mode:1});var Sld,Qeh=function(){if(Sld!==void 0)return Sld;var x=document.createElement("template");_.m(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-renderer">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" use-untranslated-navigation-endpoint="[[hideTranslation]]" width="[[computeThumbnailWidth(isBackstageVideo, isPostCompactVideo, useSearchUi, useBiggerThumbs, biggerThumbsStyle, videoStyle)]]" class="style-scope ytd-video-renderer">\n  </ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-video-renderer" on-click="onTextWrapperClick">\n    <div id="meta" class="style-scope ytd-video-renderer">\n      <div id="title-wrapper" class="style-scope ytd-video-renderer">\n        <h3 class="title-and-badge style-scope ytd-video-renderer">\n          <ytd-badge-supported-renderer collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-renderer">\n          </ytd-badge-supported-renderer>\n          <a id="video-title" class="yt-simple-endpoint style-scope ytd-video-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[computedNavigationEndpoint]]">\n            <yt-icon id="inline-title-icon" hidden="[[hideInlineTitleIcon(hideTranslation, inlineTitleIcon)]]" icon="[[inlineTitleIcon]]" class="style-scope ytd-video-renderer">\n            </yt-icon>\n            <yt-formatted-string text="[[computeTitleText(hideTranslation, data.title, data.untranslatedTitle)]]" class="style-scope ytd-video-renderer">\n            </yt-formatted-string>\n          </a>\n        </h3>\n        <div id="menu" class="style-scope ytd-video-renderer"></div>\n      </div>\n      <ytd-video-meta-block data="[[data]]" no-byline="[[shouldShowChannelInfo]]" truncate-metadata-line="[[isRichGridVideoPost]]" class="style-scope ytd-video-renderer">\n      </ytd-video-meta-block>\n    </div>\n    <div id="channel-info" hidden="[[!shouldShowChannelInfo]]" class="style-scope ytd-video-renderer">\n      <a id="channel-thumbnail" hidden="[[!shouldShowChannelThumbnail]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-video-renderer">\n        <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-video-renderer">\n        </yt-img-shadow>\n      </a>\n      <div id="avatar" hidden="[[!useAvatar]]" class="style-scope ytd-video-renderer"></div>\n      <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-video-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n      </ytd-channel-name>\n    </div>\n    <yt-formatted-string id="description-text" hidden="[[!data.descriptionSnippet]]" text="[[computeDescriptionSnippet(hideTranslation, data.descriptionSnippet, data.untranslatedDescriptionSnippet)]]" class="style-scope ytd-video-renderer">\n    </yt-formatted-string>\n    <template is="dom-repeat" items="[[data.detailedMetadataSnippets]]" hidden="[[!data.detailedMetadataSnippets]]" class="style-scope ytd-video-renderer">\n      <div class$="[[getMetadataSnippetContainerClass(item.maxOneLine)]] style-scope ytd-video-renderer">\n        <a class="yt-simple-endpoint metadata-snippet-timestamp style-scope ytd-video-renderer" aria-label$="[[item.snippetTimestamp.accessibility.accessibilityData.label]]" hidden="[[!item.snippetTimestamp]]" href$="[[computeHref_(item.timestampEndpoint)]]" data="[[item.timestampEndpoint]]">\n          <span id="time" class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetTimestamp)]]</span>\n          <yt-formatted-string class="metadata-snippet-text-navigation style-scope ytd-video-renderer" text="[[item.snippetText]]">\n          </yt-formatted-string>\n        </a>\n        <yt-formatted-string class="metadata-snippet-text style-scope ytd-video-renderer" hidden="[[item.snippetTimestamp]]" text="[[computeSnippetText(hideTranslation, item.snippetText, item.untranslatedSnippetText)]]">\n        </yt-formatted-string>\n        <tp-yt-paper-tooltip class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetHoverText)]]</tp-yt-paper-tooltip>\n      </div>\n    </template>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" hidden-badge-groups="[[hiddenBadgeGroups]]" class="style-scope ytd-video-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="expandable-metadata" class="style-scope ytd-video-renderer"></div>\n    <div id="buttons" class="style-scope ytd-video-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-video-renderer"></yt-interaction>\n');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return Sld=x};_.dF(_.yn,"yt-avatar-stack-view-model",{props:{className:_.pJ,data:_.pJ,overrides:_.pJ,isOverlay:_.pJ,useMediumText:_.pJ,decorations:_.pJ,hideAvatar:_.pJ}});_.BD("itemSectionRenderer","videoRenderer","ytd-video-renderer");var rN=function(){var x=_.e.apply(this,arguments)||this;x.disableExpand=!1;x.shouldShowChannelInfo=!1;x.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return x};
_.p(rN,_.e);_.K=rN.prototype;_.K.computeUseSearchUi=function(){var x,L;return this.isSearch||((x=this.data)==null?void 0:(L=x.style)==null?void 0:L.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.K.computeUseThreeLineTitle=function(){var x;return((x=this.data)==null?void 0:x.maxTitleLines)===3};
_.K.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.u("polymer_video_renderer_defer_menu")&&!oM2?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"}}}};
_.K.attached=function(){_.VA(this.hostElement,"blue-links",_.u("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.K.detached=function(){this.clearInlinePreviewHoverListeners()};
_.K.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.hq(_.jr(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var x=this.get("data.buttons.buttonRenderer.serviceEndpoint"),L;x&&((L=_.g(x.commandMetadata,_.of))==null?0:L.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(x);this.updateInlinePreviewHoverListeners()};
_.K.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15182_inlinePreviewHoverListener=r4({mediaRenderer:this,lockupElement:this.JSC$15182_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.K.clearInlinePreviewHoverListeners=function(){var x;(x=this.JSC$15182_inlinePreviewHoverListener)==null||DS(x)};
_.K.onTextWrapperClick=function(x){var L,D,S=this.hideTranslation?(L=this.data)==null?void 0:L.untranslatedNavigationEndpoint:(D=this.data)==null?void 0:D.navigationEndpoint;L=_.JL(_.Jq(x),this.hostElement,["expandable-metadata"]);!S||L&&!_.u("expandable_metadata_fix_killswitch")||_.QC(_.Jq(x),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.MF(this.hostElement,"yt-navigate",{endpoint:S})};
_.K.computeThumbnailWidth=function(x,L,D,S,Q){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:S?Q==="MASSIVE"?600:Q==="BIG"?500:Q==="MEDIUM"?450:420:D?360:L?128:x?210:246};
_.K.computeUseBiggerThumbs=function(x){return x&&_.u("enable_desktop_search_bigger_thumbs")};
_.K.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.K.computeVideoStyle=function(){if(_.u("enable_video_style")){var x,L;return(x=this.data)==null?void 0:(L=x.style)==null?void 0:L.value}};
_.K.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.K.handleHideItemSectionVideosByIdCommand=function(x){var L;x=(L=_.g(x,b1B))==null?void 0:L.videoId;this.data&&this.data.videoId===x&&(this.isHidden=!0)};
_.K.getMetadataSnippetContainerClass=function(x){return x?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.K.computeTitleText=function(x,L,D){return x?D:L};
_.K.computeDescriptionSnippet=function(x,L,D){return x?D:L};
_.K.computeSnippetText=function(x,L,D){return x?D:L};
_.K.computeNavigationEndpoint=function(x,L){return x?L==null?void 0:L.untranslatedNavigationEndpoint:L==null?void 0:L.navigationEndpoint};
_.K.hideInlineTitleIcon=function(x,L){return x||!L};
_.J3.Object.defineProperties(rN.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 x;return(x=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?x:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var x,L,D;return!!(this==null?0:(x=this.data)==null?0:(L=x.channelThumbnailSupportedRenderers)==null?0:(D=L.channelThumbnailWithLinkRenderer)==null?0:D.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var x;return!!_.g((x=this.data)==null?void 0:x.avatar,JTG)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.JSC$15182_inlinePreviewHoverListener)==null?0:Mr(x))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.J3.Object.defineProperties(rN,{template:{configurable:!0,enumerable:!0,get:function(){return Qeh()}}});
rN.prototype.dataChanged=rN.prototype.dataChanged;_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],rN.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],rN.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],rN.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.dK),_.r("design:type",Object)],rN.prototype,"ytdDismissibleItemBehavior",void 0);
_.A([_.b(_.uM),_.r("design:type",Object)],rN.prototype,"ytdLockupBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],rN.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],rN.prototype,"ytdReduxBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],rN.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],rN.prototype,"isBackstageVideo",void 0);
_.A([_.F({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],rN.prototype,"isPostCompactVideo",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],rN.prototype,"isHistory",void 0);_.A([_.F({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],rN.prototype,"isRichGridVideoPost",void 0);_.A([_.F({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],rN.prototype,"isHidden",void 0);
_.A([_.F({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],rN.prototype,"isSearch",void 0);_.A([_.F({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.r("design:type",Boolean)],rN.prototype,"useSearchUi",void 0);_.A([_.F({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.r("design:type",Boolean)],rN.prototype,"useThreeLineTitle",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.r("design:type",Boolean)],rN.prototype,"useBiggerThumbs",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.r("design:type",Object)],rN.prototype,"videoStyle",void 0);_.A([_.F({computed:"computeDisableExpand(videoStyle)"}),_.r("design:type",Object)],rN.prototype,"disableExpand",void 0);
_.A([_.F({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.r("design:type",Object)],rN.prototype,"shouldShowChannelInfo",void 0);_.A([_.F({reflectToAttribute:!0,value:function(){return _.PY("desktop_search_bigger_thumbs_style")}}),
_.r("design:type",String)],rN.prototype,"biggerThumbsStyle",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.r("design:type",String)],rN.prototype,"inlineTitleIcon",void 0);_.A([_.F({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.r("design:type",Object)],rN.prototype,"computedNavigationEndpoint",void 0);_.A([_.F({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(x,L){return _.u6(x.entities,"searchVideoResultEntity",L)}}),
_.r("design:type",Object)],rN.prototype,"searchVideoResultEntity",void 0);_.A([_.F1("ytd-thumbnail"),_.r("design:type",HTMLElement)],rN.prototype,"thumbnail",void 0);_.A([_.F1("#dismissible"),_.r("design:type",HTMLElement)],rN.prototype,"JSC$15182_dismissibleMedia",void 0);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],rN.prototype,"dataChanged",null);
_.A([_.Y("searchVideoResultEntity"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],rN.prototype,"hideTranslation",null);_.A([_.Y("searchVideoResultEntity"),_.r("design:type",Array),_.r("design:paramtypes",[])],rN.prototype,"hiddenBadgeGroups",null);_.A([_.Y("data","useAvatar"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],rN.prototype,"shouldShowChannelThumbnail",null);_.A([_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],rN.prototype,"useAvatar",null);
_.A([_.Y("lockupIsHovered"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],rN.prototype,"isHovered",null);_.A([_.w({is:"ytd-video-renderer",disableElementRegistration:!0})],rN);_.q(rN,"ytd-video-renderer",function(){return Qeh()},{mode:_.Vm("kevlar_poly_si_batch_j047")?1:2});var Nr=function(){var x=_.e.apply(this,arguments)||this;x.editDialog=null;x.roundedContainer=!0;x.isLoading=!1;x.isRichGrid=!1;x.isRichGridRepost=!1;x.reduceSidePaddings=_.u("reduce_side_paddings_in_shelf");x.JSC$15189_spinnerEl=null;return x};
_.p(Nr,_.e);_.K=Nr.prototype;
_.K.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"}}}};
_.K.contentTextChanged=function(){this.expander.reset()};
_.K.dataChanged=function(){var x=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var L=0,D=this.data.actions&&this.data.actions.length;L<D;L++)this.openEditDialog(_.g(this.data.actions[L],E02));if((L=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(L=this.get("buttonRenderer.hint.hintRenderer.hintId",L))&&L.startsWith("share-post-hint")){var S=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(S){_.Cp.getInstance();var Q=lo(_.Dv(_.p6("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.WW.addLowPriorityJob(function(){_.v$(x.hostElement,Q,S)})}}}};
_.K.updatePoll=function(x){x>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.K.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15189_spinnerEl||(this.JSC$15189_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.jr(this.hostElement).appendChild(this.JSC$15189_spinnerEl));this.JSC$15189_spinnerEl&&(this.JSC$15189_spinnerEl.active=this.isLoading)};
_.K.onYtNavigate=function(x){var L=this.get("updateCommentDialogEndpoint",x.detail.endpoint);L&&(this.openEditDialog(L),x.stopPropagation())};
_.K.onYtCommentboxDismiss=function(){this.editDialog=null};
_.K.onYtCommentPollRevert=function(x,L){L&&this.updatePoll(L.selectedChoiceIndex)};
_.K.onYtServiceRequestSent=function(x,L){var D;L.endpoint&&(_.g(L.endpoint,jOr)||_.g(L.endpoint,Po2)&&((D=_.g(L.endpoint,Po2))==null||!D.clientActions))&&(this.isLoading=!0);if(L.actions)for(x=0;x<L.actions.length;x++)D=L.actions[x],_.g(D,iZ)&&(D=this.get("updateBackstagePollAction.selectedChoiceIndex",D),D==void 0&&(D=-1),this.updatePoll(D))};
_.K.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.K.openEditDialog=function(x){x&&x.dialog&&(this.editDialog=x.dialog,x=this.editDialogEl.firstElementChild)&&(x.focus(),x.openDialog&&x.openDialog())};
_.K.computeIsPostHidden=function(x,L){return!!x||L};
_.K.computeSurfaceType=function(x){return x?x.toLowerCase().replace(/_/g,"-"):""};
_.K.computeUsesCompactLockup=function(x){return x==="BACKSTAGE_SURFACE_TYPE_HOME"||x==="BACKSTAGE_SURFACE_TYPE_SEARCH"||x==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||x==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||x==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||x==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.K.computeShowWithoutToolbar=function(x){return!x.actionButtons&&!x.actionMenu};
_.K.computePostAttachment=function(x){if(x.backstageAttachment){if(_.g(x.backstageAttachment,aqH))return"poll";if(_.g(x.backstageAttachment,Re2))return"quiz";if(_.g(x.backstageAttachment,_.E6))return"video";if(_.g(x.backstageAttachment,GuC))return"uploaded-videos";if(_.g(x.backstageAttachment,wci))return x.contentText?"image":"image-only";if(_.g(x.backstageAttachment,F1R))return"playlist"}return"none"};
_.K.computePostTabIndex=function(x){return x?0:-1};
_.K.computeButtonTooltipPosition=function(x){return this.computeUsesCompactLockup(x)?"top":"bottom"};
_.K.computeHasText=function(x){return!(x==null||!x.contentText)};
_.K.onTap=function(x){var L,D;if(((L=this.data)==null?0:L.navigationEndpoint)&&((D=this.data)==null?void 0:D.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var S;((S=this.data)==null?0:S.navigationEndpoint)&&!_.QC(_.Jq(x)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.MF(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.J3.Object.defineProperties(Nr.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.voteCount)||_.Dv("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null?void 0:x.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.g(this.data.backstageAttachment,aqH))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.g(this.data.backstageAttachment,GuC))}}});
Nr.prototype.onYtServiceRequestCompleted=Nr.prototype.onYtServiceRequestCompleted;Nr.prototype.onYtServiceRequestSent=Nr.prototype.onYtServiceRequestSent;Nr.prototype.onYtCommentPollRevert=Nr.prototype.onYtCommentPollRevert;Nr.prototype.onYtCommentboxDismiss=Nr.prototype.onYtCommentboxDismiss;Nr.prototype.onYtNavigate=Nr.prototype.onYtNavigate;Nr.prototype.isLoadingChanged=Nr.prototype.isLoadingChanged;Nr.prototype.dataChanged=Nr.prototype.dataChanged;Nr.prototype.contentTextChanged=Nr.prototype.contentTextChanged;
_.A([_.b(_.dK),_.r("design:type",Object)],Nr.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Nr.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Nr.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],Nr.prototype,"ytComponentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Nr.prototype,"data",void 0);
_.A([_.F(),_.r("design:type",Object)],Nr.prototype,"editDialog",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Nr.prototype,"roundedContainer",void 0);_.A([_.F(),_.r("design:type",Object)],Nr.prototype,"isLoading",void 0);_.A([_.F({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.r("design:type",String)],Nr.prototype,"surface",void 0);
_.A([_.F({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.r("design:type",Boolean)],Nr.prototype,"usesCompactLockup",void 0);_.A([_.F({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],Nr.prototype,"showWithoutToolbar",void 0);_.A([_.F({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.r("design:type",String)],Nr.prototype,"attachment",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Nr.prototype,"isRichGrid",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Nr.prototype,"isRichGridRepost",void 0);_.A([_.F({reflectToAttribute:!0,value:_.u("use_better_post_dismissals")}),_.r("design:type",Boolean)],Nr.prototype,"useBetterPostDismissals",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Nr.prototype,"reduceSidePaddings",void 0);
_.A([_.F({computed:"computeHasText(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],Nr.prototype,"hasText",void 0);_.A([_.F1("#expander"),_.r("design:type",Object)],Nr.prototype,"expander",void 0);_.A([_.F1("#action-buttons"),_.r("design:type",Object)],Nr.prototype,"actionButtons",void 0);_.A([_.F1("#edit-dialog"),_.r("design:type",HTMLElement)],Nr.prototype,"editDialogEl",void 0);
_.A([_.bN("data.contentText"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Nr.prototype,"contentTextChanged",null);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Nr.prototype,"dataChanged",null);_.A([_.bN("isLoading"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Nr.prototype,"isLoadingChanged",null);
_.A([_.mX("yt-navigate"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Nr.prototype,"onYtNavigate",null);_.A([_.mX("yt-commentbox-dismiss"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Nr.prototype,"onYtCommentboxDismiss",null);_.A([_.mX("yt-comment-poll-revert"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],Nr.prototype,"onYtCommentPollRevert",null);
_.A([_.mX("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.zQ]),_.r("design:returntype")],Nr.prototype,"onYtServiceRequestSent",null);_.A([_.mX("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.S2]),_.r("design:returntype")],Nr.prototype,"onYtServiceRequestCompleted",null);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Nr.prototype,"voteCount",null);
_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Nr.prototype,"commentCount",null);_.A([_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Nr.prototype,"hasPoll",null);_.A([_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Nr.prototype,"hasUploadedVideo",null);_.A([_.w({is:"ytd-post-renderer",disableElementRegistration:!0})],Nr);
_.q(Nr,"ytd-post-renderer",function(){if(mQ_!==void 0)return mQ_;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return mQ_=x},{mode:1});var JZA;var KhH;var iu=function(){return _.e.apply(this,arguments)||this};
_.p(iu,_.e);iu.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],iu.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],iu.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.CO.YtdHorizontalListBehavior),_.r("design:type",Object)],iu.prototype,"ytdHorizontalListBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],iu.prototype,"componentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],iu.prototype,"data",void 0);
_.A([_.F({value:"$.items.children"}),_.r("design:type",String)],iu.prototype,"itemsPath",void 0);_.A([_.F({value:1}),_.r("design:type",Number)],iu.prototype,"initialCount",void 0);_.A([_.F({reflectToAttribute:!0,value:_.u("enable_community_page_on_desktop")}),_.r("design:type",Boolean)],iu.prototype,"useSmallerPostImageAttachments",void 0);_.A([_.F(),_.r("design:type",String)],iu.prototype,"surface",void 0);_.A([_.w({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],iu);
_.q(iu,"ytd-post-multi-image-renderer",function(){if(KhH!==void 0)return KhH;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return KhH=x},{mode:_.Vm("kevlar_poly_si_batch_j079")?1:2});var Ooi={"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"}}},fD=function(){var x=_.e.apply(this,arguments)||this;x.hasInlineCommentSection=!1;x.editDialog=null;x.isLoading=!1;x.shouldHideAuthor=!1;x.shouldShowVideoTime=!1;
x.isInEngagementPanel=!1;x.hideBorder=!1;x.usesFullLockup=!1;x.shouldShowMenuInCompactView=!1;x.JSC$15204_spinnerEl=null;x.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return x};
_.p(fD,_.e);_.K=fD.prototype;_.K.configureRendererStamper=function(){return Ooi};
_.K.computeIsPollHeaderEnabled=function(x){return(x==null?void 0:x.pollMetadataIcon)!=null};
_.K.getPublishTimeStampString=function(x,L){L=new Date((Number(L)-60*((new Date).getTimezoneOffset()-(new Date(Number(L)*1E3)).getTimezoneOffset()))*1E3);L=(new LB(10)).format(L);if(x&&x.runs&&x.runs.length)for(var D=0;D<x.runs.length;D++)x.runs[D].text&&(x.runs[D].text=x.runs[D].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",L));return x};
_.K.created=function(){this.JSC$15204_spinnerEl=null};
_.K.contentTextChanged=function(){this.expander.reset()};
_.K.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var x;if((x=this.data)==null?0:x.actions){x=_.O(this.data.actions);for(var L=x.next();!L.done;L=x.next())this.openEditDialog(_.g(L.value,E02))}};
_.K.handleSignalActionOpenPostCommentDialogAction=function(){_.jr(this.hostElement).querySelector("#action-buttons").reply()};
_.K.updatePoll=function(x,L){L&&this.set("data.pollMetadataVoteCountText",L);this.hasInlineCommentSection&&(x=x>=0,L=_.jr(this.hostElement).querySelector("#action-buttons"),x?L.reply():L.hideReplyDialog())};
_.K.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15204_spinnerEl||(this.JSC$15204_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.jr(this.hostElement).appendChild(this.JSC$15204_spinnerEl));this.JSC$15204_spinnerEl&&(this.JSC$15204_spinnerEl.active=this.isLoading)};
_.K.onYtNavigate=function(x){var L=this.get("updateCommentDialogEndpoint",x.detail.endpoint);L&&(this.openEditDialog(L),x.stopPropagation())};
_.K.onYtCommentboxDismiss=function(){this.editDialog=null};
_.K.onYtCommentPollRevert=function(x,L){L&&this.updatePoll(L.selectedChoiceIndex,L.totalVotes)};
_.K.onYtServiceRequestSent=function(x,L){x.stopPropagation();x=_.g(L.endpoint,Po2);if(_.g(L.endpoint,jOr)||x&&!x.clientActions)this.isLoading=!0;if(L.actions)for(x=0;x<L.actions.length;x++){var D=L.actions[x],S=_.g(D,iZ);S&&(D=this.get("updateBackstagePollAction.selectedChoiceIndex",D),D===void 0&&(D=-1),this.updatePoll(D,S.totalVotes))}};
_.K.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.K.openEditDialog=function(x){x&&x.dialog&&(this.editDialog=x.dialog,x=this.editDialogElement.firstElementChild)&&(x.focus(),x.openDialog&&x.openDialog())};
_.K.computeIsBodyHidden=function(x,L){return!!x||L};
_.J3.Object.defineProperties(fD.prototype,{authorCommentBadge:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var x=this.data,L=x.showPostAuthorBackgroundHighlight,D=x.postAuthorBadgeType,S=x.authorEndpoint;if(!L&&D!=="POST_AUTHOR_BADGE_TYPE_VERIFIED"&&D!=="POST_AUTHOR_BADGE_TYPE_ARTIST")return null;var Q,J,Z;x=_.Dv(((Q=x.authorText)==null?void 0:(J=Q.runs)==null?void 0:(Z=J[0])==null?void 0:Z.text)||"");Q=void 0;switch(D){case "POST_AUTHOR_BADGE_TYPE_ARTIST":Q={iconType:"AUDIO_BADGE"};
break;case "POST_AUTHOR_BADGE_TYPE_VERIFIED":Q={iconType:L?"CHECK_CIRCLE_THICK":"CHECK"}}return{renderer:{authorText:x,authorEndpoint:S,authorCreator:L,icon:Q}}}},
postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var x,L;if((x=this.data)==null?0:(L=x.pollMetadataIcon)==null?0:L.iconType)return _.gB(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.voteCount)||_.Dv("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null?void 0:x.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.g(this.data.backstageAttachment,aqH))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.g(this.data.backstageAttachment,Re2))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.g(this.data.backstageAttachment,GuC))}}});
fD.prototype.onYtServiceRequestCompleted=fD.prototype.onYtServiceRequestCompleted;fD.prototype.onYtServiceRequestSent=fD.prototype.onYtServiceRequestSent;fD.prototype.onYtCommentPollRevert=fD.prototype.onYtCommentPollRevert;fD.prototype.onYtCommentboxDismiss=fD.prototype.onYtCommentboxDismiss;fD.prototype.onYtNavigate=fD.prototype.onYtNavigate;fD.prototype.isLoadingChanged=fD.prototype.isLoadingChanged;fD.prototype.dataChanged=fD.prototype.dataChanged;fD.prototype.contentTextChanged=fD.prototype.contentTextChanged;
_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],fD.prototype,"actionHandlerBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],fD.prototype,"rendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],fD.prototype,"rendererstamperBehavior",void 0);_.A([_.F1("#contentTextExpander"),_.r("design:type",Object)],fD.prototype,"expander",void 0);
_.A([_.F1("#edit-dialog"),_.r("design:type",Element)],fD.prototype,"editDialogElement",void 0);_.A([_.F(),_.r("design:type",Object)],fD.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],fD.prototype,"hasInlineCommentSection",void 0);_.A([_.F(),_.r("design:type",Object)],fD.prototype,"editDialog",void 0);_.A([_.F(),_.r("design:type",Object)],fD.prototype,"isLoading",void 0);
_.A([_.F({computed:"computeIsPollHeaderEnabled(data)"}),_.r("design:type",Boolean)],fD.prototype,"isPollHeaderEnabled",void 0);_.A([_.F(),_.r("design:type",Object)],fD.prototype,"shouldHideAuthor",void 0);_.A([_.F(),_.r("design:type",Object)],fD.prototype,"shouldShowVideoTime",void 0);_.A([_.F(),_.r("design:type",Object)],fD.prototype,"isInEngagementPanel",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],fD.prototype,"hideBorder",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],fD.prototype,"usesFullLockup",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],fD.prototype,"shouldShowMenuInCompactView",void 0);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],fD.prototype,"authorCommentBadge",null);_.A([_.Y("isInEngagementPanel"),_.r("design:type",Number),_.r("design:paramtypes",[])],fD.prototype,"postTextMaxLines",null);
_.A([_.Y("data.icon.iconType"),_.r("design:type",Object),_.r("design:paramtypes",[])],fD.prototype,"pollIcon",null);_.A([_.bN("data.contentText"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],fD.prototype,"contentTextChanged",null);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],fD.prototype,"dataChanged",null);
_.A([_.bN("isLoading"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],fD.prototype,"isLoadingChanged",null);_.A([_.mX("yt-navigate"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],fD.prototype,"onYtNavigate",null);_.A([_.mX("yt-commentbox-dismiss"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],fD.prototype,"onYtCommentboxDismiss",null);
_.A([_.mX("yt-comment-poll-revert"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],fD.prototype,"onYtCommentPollRevert",null);_.A([_.mX("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.zQ]),_.r("design:returntype")],fD.prototype,"onYtServiceRequestSent",null);
_.A([_.mX("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],fD.prototype,"onYtServiceRequestCompleted",null);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],fD.prototype,"voteCount",null);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],fD.prototype,"commentCount",null);
_.A([_.Y("data.backstageAttachment"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],fD.prototype,"hasPoll",null);_.A([_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],fD.prototype,"hasQuiz",null);_.A([_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],fD.prototype,"hasUploadedVideo",null);_.A([_.w({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],fD);
_.q(fD,"ytd-backstage-post-renderer",function(){if(JZA!==void 0)return JZA;var x=document.createElement("template");_.m(x,'\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="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-backstage-post-renderer"></div>\n');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return JZA=x},{mode:1});var Zo2;var od=function(){var x=_.e.apply(this,arguments)||this;x.editDialog=null;x.showExpandButton=!1;x.isRichGrid=!1;x.usesFullLockup=!1;return x};
_.p(od,_.e);_.K=od.prototype;_.K.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"}}}};
_.K.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.K.computeShowExpandButton=function(x){return this.usesCompactLockup||x&&x.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.K.computeUsesCompactLockup=function(x){return!!x.condensedContent};
_.K.computeShowFullContentText=function(x){return!x};
_.K.onYtNavigate=function(x){x=this.get("updateCommentDialogEndpoint",x.detail.endpoint);this.openEditDialog(x)};
_.K.onYtCommentboxDismiss=function(){this.editDialog=null};
_.K.openEditDialog=function(x){x&&x.dialog&&(this.editDialog=x.dialog,x=this.repostEditDialogEl.firstElementChild)&&(x.focus(),x.openDialog&&x.openDialog())};
_.K.onTap=function(x){if(this.data){var L=null;this.usesCompactLockup&&!_.QC(_.Jq(x)||[],this.hostElement,["YT-IMG-SHADOW"])?L=this.get("navigationEndpoint",this.data):x.target===this.moreButtonEl&&(L=this.get("navigationEndpoint",x.target.data));L&&_.MF(this.hostElement,"yt-navigate",{endpoint:L})}};
od.prototype.onYtCommentboxDismiss=od.prototype.onYtCommentboxDismiss;od.prototype.onYtNavigate=od.prototype.onYtNavigate;od.prototype.dataChanged=od.prototype.dataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],od.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],od.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],od.prototype,"data",void 0);
_.A([_.F(),_.r("design:type",Object)],od.prototype,"editDialog",void 0);_.A([_.F({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],od.prototype,"usesCompactLockup",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],od.prototype,"showExpandButton",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],od.prototype,"isRichGrid",void 0);
_.A([_.F({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.r("design:type",Boolean)],od.prototype,"showFullContentText",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],od.prototype,"usesFullLockup",void 0);_.A([_.F1("#more"),_.r("design:type",Object)],od.prototype,"moreButtonEl",void 0);_.A([_.F1("#repost-content-text"),_.r("design:type",HTMLElement)],od.prototype,"repostContentTextEl",void 0);
_.A([_.F1("#repost-edit-dialog"),_.r("design:type",HTMLElement)],od.prototype,"repostEditDialogEl",void 0);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],od.prototype,"dataChanged",null);_.A([_.mX("yt-navigate"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],od.prototype,"onYtNavigate",null);
_.A([_.mX("yt-commentbox-dismiss"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],od.prototype,"onYtCommentboxDismiss",null);_.A([_.w({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],od);
_.q(od,"ytd-shared-post-renderer",function(){if(Zo2!==void 0)return Zo2;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Zo2=x},{mode:1});var yZ2;var IlQ;var ad=function(){return _.e.apply(this,arguments)||this};
_.p(ad,_.e);ad.prototype.attached=function(){var x=this;this.networkStatusManager||(this.networkStatusManager=new _.cW,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){x.onlineHandler()}))};
ad.prototype.detached=function(){var x=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){x.onlineHandler()}),delete this.networkStatusManager)};
ad.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],ad.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],ad.prototype,"ytComponentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],ad.prototype,"data",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],ad);
_.q(ad,"ytd-reload-page-button-renderer",function(){if(IlQ!==void 0)return IlQ;var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);
return IlQ=x},{mode:1});var Eu2={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"},z2=function(){var x=_.e.apply(this,arguments)||this;x.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return x};
_.p(z2,_.e);_.K=z2.prototype;_.K.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.K.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.K.computeHasBodyText=function(x){return!!x.bodyText};
_.K.computeButtons=function(x){var L=[];x.ctaButton&&L.push(x.ctaButton);x.secondaryButton&&L.push(x.secondaryButton);return L};
_.K.computeRendererStyle=function(x){return x.style?x.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():x.icon?"":"no-icon"};
_.K.getIconName=function(x,L){L=L===void 0?!1:L;if(x===void 0)return"";x=this.get("icon.iconType",x);var D;_.u("enable_hlp_client_icon_pick")?D=this.getThemedIcon(x,L):D=x;(L=Eu2[D])||(L="yt-icons");return[L,D].join(":")};
_.K.getThemedIcon=function(x,L){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(x)?L?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(x)?L?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":x};
_.K.isThumbnail=function(x){return!!x.thumbnail};
_.K.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.K.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],z2.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],z2.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],z2.prototype,"ytActionHandlerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],z2.prototype,"data",void 0);
_.A([_.F({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.r("design:type",String)],z2.prototype,"rendererStyle",void 0);_.A([_.F({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.r("design:type",String)],z2.prototype,"iconName",void 0);_.A([_.F({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],z2.prototype,"thumbnail",void 0);_.A([_.F({computed:"computeButtons(data)"}),_.r("design:type",Array)],z2.prototype,"buttons",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],z2.prototype,"isDarkTheme",void 0);_.A([_.F({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],z2.prototype,"hasBodyText",void 0);_.A([_.w({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],z2);
_.q(z2,"ytd-background-promo-renderer",function(){if(yZ2!==void 0)return yZ2;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return yZ2=x},{mode:1});var Mw2;var Xb=function(){var x=_.e.apply(this,arguments)||this;x.collections=_.u("web_modern_collections_v2");return x};
_.p(Xb,_.e);_.J3.Object.defineProperties(Xb.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var x,L,D,S,Q,J;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(x=this.data)==null?void 0:(L=x.thumbnail)==null?void 0:L.sampledThumbnailColor,vibrantColorPalette:(D=this.data)==null?void 0:(S=D.thumbnail)==null?void 0:S.vibrantColorPalette,darkColorPalette:(Q=this.data)==null?void 0:(J=Q.thumbnail)==null?void 0:J.darkColorPalette,experimentEnabled:this.collections}}}});
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Xb.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Xb.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],Xb.prototype,"collections",void 0);_.A([_.Y("data","collections"),_.r("design:type",Object),_.r("design:paramtypes",[])],Xb.prototype,"collectionStack",null);_.A([_.w({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],Xb);
_.q(Xb,"ytd-compact-station-renderer",function(){if(Mw2!==void 0)return Mw2;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return Mw2=x},{mode:1});var d8r;var cE=function(){var x=_.e.apply(this,arguments)||this;x.isRichGrid=!1;return x};
_.p(cE,_.e);cE.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]]"}}}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],cE.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],cE.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],cE.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],cE.prototype,"isRichGrid",void 0);_.A([_.w({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],cE);
_.q(cE,"ytd-grid-channel-renderer",function(){if(d8r!==void 0)return d8r;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return d8r=x},{mode:1});var PIi;var nD=function(){return _.e.apply(this,arguments)||this};
_.p(nD,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],nD.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],nD.prototype,"data",void 0);_.A([_.w({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],nD);
_.q(nD,"ytd-grid-movie-playlist-renderer",function(){if(PIi!==void 0)return PIi;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return PIi=x},{mode:1});var jeG;var tA=function(){var x=_.e.apply(this,arguments)||this;x.downloadProgress=0;x.transferState="TRANSFER_STATE_UNKNOWN";x.modernButtons=_.u("web_modern_buttons");x.useModernCollectionsV2=_.u("web_modern_collections_v2");return x};
_.p(tA,_.e);tA.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
tA.prototype.configureRendererStamper=function(){return{"data.menu":ob}};
tA.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
tA.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.u("woffle_playlist_renderer_killswitch")){var x,L=HJ4(this.entityInfo,this.transferState,this.downloadProgress,(x=this.data)==null?void 0:x.playlistId,this.isOnline);x=L.viewPlaylistText;var D=L.badges;L=L.thumbnailOverlays;this.isDownloads=!!x||!!D;this.set("data.viewPlaylistText",x);D&&D.length>0&&this.set("data.badges",D);L&&L.length>0&&this.set("data.thumbnailOverlays",
L)}};
_.J3.Object.defineProperties(tA.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 x;return!((x=this.data)==null?0:x.menu)}}});
tA.prototype.transferStateChanged=tA.prototype.transferStateChanged;tA.prototype.dataChanged=tA.prototype.dataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],tA.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.uM),_.r("design:type",Object)],tA.prototype,"ytdLockupBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],tA.prototype,"ytdReduxBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],tA.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.F({selector:_.T6p,selectorArgs:["data.playlistId"]}),_.r("design:type",Object)],tA.prototype,"downloadProgress",void 0);_.A([_.F({selector:_.f7,selectorArgs:["data.playlistId"]}),_.r("design:type",Object)],tA.prototype,"transferState",void 0);_.A([_.F({selector:sOO,selectorArgs:["data.playlistId"]}),_.r("design:type",Object)],tA.prototype,"entityInfo",void 0);_.A([_.F({selector:_.NU}),_.r("design:type",Boolean)],tA.prototype,"isOnline",void 0);
_.A([_.F(),_.r("design:type",Object)],tA.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],tA.prototype,"downloadRenderData",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],tA.prototype,"modernButtons",void 0);_.A([_.F({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],tA.prototype,"isDownloads",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],tA.prototype,"useModernCollectionsV2",void 0);
_.A([_.Y("transferState"),_.F({reflectToAttribute:!0}),_.r("design:type",String),_.r("design:paramtypes",[])],tA.prototype,"downloadState",null);_.A([_.Y("data"),_.F({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],tA.prototype,"menuHidden",null);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],tA.prototype,"dataChanged",null);
_.A([_.GV("transferState","downloadProgress","isOnline"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],tA.prototype,"transferStateChanged",null);_.A([_.w({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],tA);
_.q(tA,"ytd-grid-playlist-renderer",function(){if(jeG!==void 0)return jeG;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return jeG=x},{mode:1});var vud;var xA=function(){var x=_.e.apply(this,arguments)||this;x.collections=_.u("web_modern_collections_v2");return x};
_.p(xA,_.e);xA.prototype.configureRendererStamper=function(){return{"data.menu":ob,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.J3.Object.defineProperties(xA.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var x,L,D,S,Q,J;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(x=this.data)==null?void 0:(L=x.thumbnail)==null?void 0:L.sampledThumbnailColor,vibrantColorPalette:(D=this.data)==null?void 0:(S=D.thumbnail)==null?void 0:S.vibrantColorPalette,darkColorPalette:(Q=this.data)==null?void 0:(J=Q.thumbnail)==null?void 0:J.darkColorPalette,experimentEnabled:this.collections}}}});
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],xA.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.dK),_.r("design:type",Object)],xA.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.b(_.uM),_.r("design:type",Object)],xA.prototype,"ytdLockupBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],xA.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],xA.prototype,"data",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],xA.prototype,"collections",void 0);_.A([_.Y("data","collections"),_.r("design:type",Object),_.r("design:paramtypes",[])],xA.prototype,"collectionStack",null);_.A([_.w({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],xA);
_.q(xA,"ytd-grid-radio-renderer",function(){if(vud!==void 0)return vud;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return vud=x},{mode:1});var Vwd;var La=function(){var x=_.e.apply(this,arguments)||this;x.useModernCollectionsV2=_.u("web_modern_collections_v2");return x};
_.p(La,_.e);La.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
La.prototype.computeNavigationEndpoint=function(x){return kd0(x==null?void 0:x.navigationEndpoint)};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],La.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],La.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.uM),_.r("design:type",Object)],La.prototype,"ytdLockupBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],La.prototype,"data",void 0);_.A([_.F({computed:"computeNavigationEndpoint(data)"}),_.r("design:type",Object)],La.prototype,"computedNavigationEndpoint",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],La.prototype,"useModernCollectionsV2",void 0);_.A([_.w({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],La);
_.q(La,"ytd-grid-show-renderer",function(){if(Vwd!==void 0)return Vwd;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Vwd=x},{mode:1});var haR;_.DO=function(x){this.playerClient=x};
_.Ho_=function(x,L,D){D=D===void 0?{}:D;return x.playerClient.setOption("ad",L,D)};
_.DO.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.DO.prototype.executeCommand=function(x,L){this.getOptions().includes("executeCommand")?_.Ho_(this,"executeCommand",{command:x,layoutId:L}):_.Xj("Calling executeCommand when adModule is not loaded")};var SI=function(){return _.e.apply(this,arguments)||this};
_.p(SI,_.e);SI.prototype.getLayoutId=function(){var x=_.o1("yt.www.ads.eventcache.getLastCompanionData");return x?(x=x())&&x.layoutId:null};
SI.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var x=_.Zs(),L=this.getLayoutId(),D=this.data.clickthroughEndpoint;x&&L&&_.u("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?x.getPlayerPromise().then(function(S){(new _.DO(S)).executeCommand(D,L)}):_.MF(this.hostElement,"yt-navigate",{endpoint:D})}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],SI.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],SI.prototype,"data",void 0);_.A([_.w({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],SI);
_.q(SI,"ytd-shopping-companion-item-renderer",function(){if(haR!==void 0)return haR;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return haR=x},{mode:1});var uMC;var Qf=function(){var x=_.e.apply(this,arguments)||this;x.isExpandableContent=!1;return x};
_.p(Qf,_.e);_.J3.Object.defineProperties(Qf.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null?void 0:x.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null?void 0:x.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var x,L,D;return((x=this.data)==null?void 0:x.price)||((L=this.data)==null?void 0:(D=L.dealsData)==null?void 0:D.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var x,L;if((x=this.data)!=null&&x.dealsData&&((L=this.data)==null||!L.priceReplacementText)){x=this.data.dealsData;var D,S,Q;return((D=x.salesData)==null?void 0:D.originalPrice)||((S=x.priceDropData)==null?void 0:S.referencePrice)||((Q=x.promotionData)==null?void 0:Q.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var x,L;return(x=this.data)==null?void 0:(L=x.dealsData)==null?void 0:L.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Qf.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],Qf.prototype,"componentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Qf.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Qf.prototype,"isExpandableContent",void 0);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Qf.prototype,"showCta",null);
_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Qf.prototype,"ctaText",null);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Qf.prototype,"hasPriceTopPosition",null);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Qf.prototype,"hasPriceBottomPosition",null);_.A([_.F({reflectToAttribute:!0}),_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Qf.prototype,"useNewStyle",null);
_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Qf.prototype,"showPriceReplacementText",null);_.A([_.F({reflectToAttribute:!0}),_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Qf.prototype,"priceValue",null);_.A([_.F({reflectToAttribute:!0}),_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Qf.prototype,"showDeal",null);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Qf.prototype,"showAffiliateDisclaimer",null);
_.A([_.F({reflectToAttribute:!0}),_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Qf.prototype,"useSaleStyle",null);_.A([_.F({reflectToAttribute:!0}),_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Qf.prototype,"useFromBrandCtaStyle",null);_.A([_.F({reflectToAttribute:!0}),_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Qf.prototype,"useFromVendorCtaStyle",null);
_.A([_.F({reflectToAttribute:!0}),_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Qf.prototype,"useShoppingCollectionCtaStyle",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],Qf);
_.q(Qf,"ytd-vertical-product-card-renderer",function(){if(uMC!==void 0)return uMC;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return uMC=x},{mode:1});var gui;var Je=function(){return _.e.apply(this,arguments)||this};
_.p(Je,_.e);Je.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Je.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Je.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.uM),_.r("design:type",Object)],Je.prototype,"ytdLockupBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Je.prototype,"data",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],Je);
_.q(Je,"ytd-grid-movie-renderer",function(){if(gui!==void 0)return gui;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return gui=x},{mode:1});var klB;var Ka=function(){var x=_.e.apply(this,arguments)||this;x.roundedFix=_.u("web_enable_merch_item_rounding_fix");x.itemStyle="small-item";return x};
_.p(Ka,_.e);Ka.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var x,L,D,S,Q=(L=_.g((x=this.data)==null?void 0:x.buttonCommand,_.Aa))==null?void 0:(D=L.item)==null?void 0:(S=D.notificationTextRenderer)==null?void 0:S.successResponseText;Q&&_.LQf(this.hostElement,Q)}};
_.J3.Object.defineProperties(Ka.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var x,L;return((x=this.data)==null?void 0:x.isProductPlaceholder)!==void 0&&((L=this.data)==null?void 0:L.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.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}}});
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Ka.prototype,"ytRendererBehavior",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Ka.prototype,"roundedFix",void 0);_.A([_.F(),_.r("design:type",Object)],Ka.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",String)],Ka.prototype,"itemStyle",void 0);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Ka.prototype,"hasPrice",null);
_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Ka.prototype,"hasPriceReplacementText",null);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Ka.prototype,"hasAdditionalFeesText",null);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Ka.prototype,"hasAffiliateDisclaimer",null);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Ka.prototype,"isProductPlaceholder",null);
_.A([_.F(),_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Ka.prototype,"hideOpenInNewIcon",null);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Ka.prototype,"ariaLabel",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],Ka);
_.q(Ka,"ytd-merch-shelf-item-renderer",function(){if(klB!==void 0)return klB;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return klB=x},{mode:1});var pKA=_.B(function(x){return _.M("button-card-view-model",{el:_.Zt(_.AL(function(){return x.data().rendererContext})),
class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return x.data().title},
role:"button"},_.M(_.UB,{model:{}}),_.M("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.M("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.M(_.d,{cond:function(){return x.data().image},
then:function(L){return _.M(_.Ku,{data:L,alt:"",className:"ytwButtonCardViewModelHostImage"})}})),_.M("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return x.data().title})))},"Wb");_.u("web_button_view_model_wcw_registration_killswitch")||_.dF(pKA,"button-card-view-model",{props:{data:_.pJ}});_.dF(_.B(function(x){x=_.ym(x,{className:void 0});var L=x.data;x=x.className;var D=_.m5(function(){return L().onTapCommand},void 0,"SXkP9e");
return _.M("ytd-shopping-item-card",{class:_.gF("ytdShoppingItemCardHost",x)},_.M(_.lr,{command:D,className:"ytdShoppingItemCardHostLink"},_.M("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.M(_.Fj,{data:function(){return L().thumbnailViewModel}},{thumbnailViewModel:function(S){return _.M(_.s0,{data:S.data,
aspectRatio:3})}})),_.M("div",null,_.M("p",{class:"ytdShoppingItemCardHostItemTitle"},_.M(_.kP,{text:function(){return L().itemTitle}})),_.M("p",{class:"ytdShoppingItemCardHostPrice"},_.M(_.kP,{text:function(){return L().priceOrStatus}})))))},"Xb"),"ytd-shopping-item-card",{props:{data:_.pJ,
className:_.pJ}});var m82={isAdsVideo:!0},bo2={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},YlR={showPlayerControls:!1,videoPreviewDurationMs:15E3},Fhh={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0};var tL=null,D3p={};var JPO="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(" "),O_={},KQf=(O_.FEwhat_to_watch="home",O_.FEhashtag="hashtag",O_.FEtrending="trending",O_.FEhistory="history",O_.SPunlimited="premium",O_.FEmemberships_and_purchases="paid_memberships",O_.SPredeem_code="redeem",O_.SPverify_location="locate",O_.SPminor_moment="minor_moment",
O_.FEmini_app_container="mini_app",O_.FEnews_destination="news",O_.SPopen_in_app="open_in_app",O_.FEexplore="explore",O_.FEsubscriptions="subscriptions",O_.FEsfv_audio_pivot="sfv_audio_pivot",O_.FEplaylist_aggregation="playlist_aggregation",O_);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");_.V0("init");var seh=function(){},Gl2=_.B(function(x){var L=x.data;
var D=x.inlineMetadata;var S=x.aspectRatio;var Q=x.scrimStyle;var J=x.className;var Z=x.useDefaultStyle;var y=x.titleStyle;var E=new seh,P=_.u("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",v=_.m5(function(){return(Z==null?0:Z())?P==="SHORTS_LOCKUP_STYLE_SLIM":L().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"xq9ok"),V=_.m5(function(){return _.WB(D)||v()||!1},void 0,"neizSe"),h=function(){return(Q==null?void 0:Q())!==void 0?Q==null?void 0:Q():1},
H=_.m5(function(){return L().belowThumbnailMetadata||!V()},void 0,"HdmMMe");
x=_.yB({visibilityCallback:function(K3){var P4=L().onFirstVisible;K3&&P4&&_.Xf(P4)},
showOption:{calledOnce:!0,state:"visible"}});var k=_.Zt(),T={},G=_.gF(function(){return v(),"shortsLockupViewModelHostThumbnailContainer"},(T.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.WB(S)===1},T.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.WB(S)===2},T.shortsLockupViewModelHostThumbnailContainerCustomDimensions=function(){return!_.u("web_shorts_2_by_3_lockups_study")&&!_.u("desktop_search_enable_two_by_three_shorts_aspect_ratio")},
T)),U=_.m5(function(){if(_.WB(S)===1)return 1;
_.WB(S);return 2},void 0,"ZRUa3c"),l,X=function(){if(E){var K3;
(K3=l)==null||DS(K3);var P4;if(E.hostElement&&((P4=E.data)==null?0:P4.inlinePlayerData)){K3=Object.assign({},Fhh);var kf,H4;((kf=E.data)==null?void 0:(H4=kf.inlinePlayerData)==null?void 0:H4.maxPlaybackLengthSec)!==void 0&&(K3.videoPreviewDurationMs=E.data.inlinePlayerData.maxPlaybackLengthSec*1E3);l=r4({mediaRenderer:E,lockupElement:E.hostElement,thumbnailElement:k.value,videoPreviewOpts:K3})}}};
_.Us(function(){E&&(E.data=L(),X())},"c4oj4d");
var f=_.m5(function(){return L().thumbnail},void 0,"CJHyHc");
T=_.m5(function(){return L().badge},void 0,"g31PIe");
var N=_.m5(function(){return L().onTap},void 0,"CJCUBc"),z={},xf={};
return _.M("ytm-shorts-lockup-view-model",{el:_.Zt(function(K3){E&&(E.hostElement=K3)},X,x),
class:_.gF("shortsLockupViewModelHost",J)},_.M(_.I1,null,_.M(_.lr,{command:N,className:_.gF("shortsLockupViewModelHostEndpoint",(z.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!H()},z),"reel-item-endpoint",""),
ariaHidden:function(){return!V()},
tabIndex:function(){return V()?0:-1}},_.M("div",{el:k,
class:_.gF("shortsLockupViewModelHostThumbnailParentContainer",(xf.shortsLockupViewModelHostThumbnailParentContainerRounded=function(){return!v()},xf))},_.M(_.d,{cond:f,
then:function(){return _.M("div",{class:G},_.M(_.Ku,{data:function(){var K3;return(K3=f==null?void 0:f())!=null?K3:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}))}}),_.M(_.Fj,{data:function(){return L().thumbnailViewModel}},{thumbnailViewModel:function(K3){return _.M(_.s0,{data:K3.data,
aspectRatio:function(){return U()},
disableRounding:function(){return v()}})}}),null),_.M(_.d,{cond:V,
then:function(){return _.M(TvG,{data:L,scrimStyle:h,useDefaultStyle:Z,titleStyle:y})}}),_.M(_.Fj,{data:T},{badgeViewModel:function(K3){return _.M(_.G2,{data:K3.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.M(_.d,{cond:function(){return V()&&L().menuOnTap},
then:function(){return _.M(eaW,{data:L,inlineMetadata:!0})}}),_.M(_.d,{cond:H,
then:function(){return _.M(Ra_,{data:L,useDefaultStyle:Z,inlineMetadata:V})}})))},"Zb"),TvG=_.B(function(x){var L=x.data;
var D=x.scrimStyle;var S=x.useDefaultStyle;var Q=x.titleStyle;var J=_.u("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",Z=S&&_.u("web_hide_primary_text_for_pivot_panel"),y=_.m5(function(){return(S==null?0:S())?J==="SHORTS_LOCKUP_STYLE_SLIM":L().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"eqtoN");
x={};x=_.gF("shortsLockupViewModelHostInlineMetadata",(x.shortsLockupViewModelHostMetadataRounded=function(){return!y()},x.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(D==null?void 0:D())===3&&!_.u("enable_shorts_lockup_new_scrim")},x.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(D==null?void 0:D())===3&&_.u("enable_shorts_lockup_new_scrim")},x.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(D==null?void 0:D())===2||(D==null?void 0:
D())===4},x.shortsLockupViewModelHostShowOverPlayer=function(){return!0},x),"image-overlay-text");
var E={};return _.M("div",{class:x},_.M("h3",{class:_.gF("shortsLockupViewModelHostMetadataTitle",(E.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(D==null?void 0:D())===4},E.shortsLockupViewModelHostMetadataTitleHasBottomMetadata=function(){return L().belowThumbnailMetadata},E.shortsLockupViewModelHostMetadataTitleMaxLines1=function(){return(Q==null?void 0:Q())===1},E.shortsLockupViewModelHostMetadataTitleMaxLines2=function(){return(Q==null?void 0:Q())===2},E)),
"aria-label":function(){return L().accessibilityText}},_.M(_.d,{cond:function(){var P;
return!((P=L().overlayMetadata)==null||!P.primaryText)&&!Z},
then:function(){return _.M(_.kP,{text:function(){var P;return(P=L().overlayMetadata)==null?void 0:P.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.M(_.d,{cond:function(){var P;
return(P=L().overlayMetadata)==null?void 0:P.secondaryText},
then:function(){return _.M(CIC,{data:L,scrimStyle:D,className:void 0})}}))},"$b"),Ra_=_.B(function(x){var L=x.data;
var D=x.useDefaultStyle;var S=x.inlineMetadata;var Q=_.u("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",J=_.m5(function(){return(D==null?0:D())?Q==="SHORTS_LOCKUP_STYLE_SLIM":L().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"rFGYIe"),Z=_.Zt(),y;
x=_.kO(function(H){if(_.BX(_.w4(H),Z.value,["AVATAR-VIEW-MODEL"]))return!1;var k;(k=y)==null||k.click();return!1});
var E=_.m5(function(){return L().belowThumbnailMetadata||L().overlayMetadata},void 0,"yJVuMb"),P=function(){return L().menuOnTap&&!S()},v=function(){var H;
return(H=E())==null?void 0:H.avatar},V={},h={};
return _.M("div",{class:_.gF(function(){return J()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},(V.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!v()},V.shortsLockupViewModelHostOutsideMetadataHasMenu=P,V)),
"on:click":x,el:Z,role:"presentation"},_.M(_.Fj,{data:v},{avatarViewModel:function(H){return _.M("div",{class:"shortsLockupViewModelHostOutsideMetadataAvatar"},_.M(_.O0,{data:H.data}))}}),_.M("div",null,_.M("h3",{class:_.gF("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(h.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var H,k;
return!((H=E())==null?0:(k=H.primaryText)==null?0:k.content)},h.shortsLockupViewModelHostOutsideMetadataTitleHasInlineMetadata=S,h)),
role:"presentation"},_.M(_.lr,{ref:function(H){return void(y=H)},
command:function(){return L().onTap},
className:_.gF("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var H,k;return(H=E())==null?void 0:(k=H.primaryText)==null?void 0:k.content},
"aria-label":function(){return L().accessibilityText}},_.M(_.d,{cond:function(){var H;
return(H=E())==null?void 0:H.primaryText},
then:function(H){return _.M(_.kP,{text:H,noEndpoints:!0,noStyleRuns:!0})}}))),_.M(_.d,{cond:function(){var H;
return(H=E())==null?void 0:H.secondaryText},
then:function(H){return _.M("div",{class:_.gF("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead")},_.M(_.kP,{text:H,noStyleRuns:!0}))}})),_.M(_.d,{cond:P,
then:function(){return _.M(eaW,{data:L,inlineMetadata:!1})}}))},"ac"),CIC=_.B(function(x){var L=x.data;
var D=x.scrimStyle;x=x.className;var S={};return _.M("div",{class:_.gF((S.shortsLockupViewModelHostMetadataSubhead=function(){return(D==null?void 0:D())!==4},S.shortsLockupViewModelHostMetadataSubheadNew=_.u("enable_shorts_lockup_new_scrim"),S.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(D==null?void 0:D())===4},S),x),
"aria-hidden":"true"},_.M(_.kP,{text:function(){var Q;return(Q=L().overlayMetadata)==null?void 0:Q.secondaryText},
noStyleRuns:!0}))},"bc"),eaW=_.B(function(x){var L=x.data;
var D=x.inlineMetadata;x={};x=_.gF((x.shortsLockupViewModelHostInlineMetadataMenu=function(){return D()},x.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!D()},x.shortsLockupViewModelHostShowOverPlayer=function(){return!0},x),"image-overlay-text");
return _.M("div",{class:x},_.M(_.W9,{data:function(){return{style:D()?"overlay":"mono",accessibilityLabel:L().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(S){S.preventDefault();S.stopPropagation();var Q=_.a6({elementsCommand:L().menuOnTap,forceNewState:!0});if(Q==null?0:Q.onclick)Q.onclick(S)}}},
iconName:"MORE_VERT"}))},"cc");var llA=_.B(function(x){var L=x.data;var D=x.inlineMetadata;var S=x.aspectRatio;var Q=x.scrimStyle;var J=x.className;var Z=x.useDefaultStyle;x=_.m5(function(){var y=L().entityId;return y?y.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"r2ABGd");
return _.M("ytm-shorts-lockup-view-model-v2",{class:_.gF("shortsLockupViewModelHost",J)},_.M(_.U0,{contentId:x,aspectRatio:function(){return(S==null?void 0:S())===1?1:(S==null?void 0:S())===2?2:4}},function(){return _.M(Gl2,{data:L,
inlineMetadata:D,aspectRatio:S,scrimStyle:Q,className:J,useDefaultStyle:Z})}))},"dc");_.dF(llA,"ytm-shorts-lockup-view-model-v2",{props:{data:_.Il,inlineMetadata:_.Il,aspectRatio:_.Il,scrimStyle:_.Il,className:_.Il,useDefaultStyle:_.Il,titleStyle:_.Il}});var U8C=16/9*210,ZO=function(){var x=_.e.apply(this,arguments)||this;x.isExpandableContent=!1;x.hideShelfHeader=!1;x.engagementPanel=!1;x.buttonClasses=["arrow"];x.isSearch=!1;x.disableScrollEventListener=!1;x.containsLockup=!1;x.overrideArrowPositionForProductCard=!1;x.overrideArrowPositionForShoppingItemCard=!1;x.overrideArrowPositionForReelItems=!1;x.overrideArrowPositionForGridMovie=!1;x.overrideArrowPositionToCenter=!1;x.isSearchPostShelf=!1;x.overrideArrowPositionForMixedShelf=!1;x.overrideArrowPositionForMixedShelfShortsOnly=
!1;x.hasBigThumbsReelItems=!1;x.shouldUseMixedListHeight=!1;x.shouldUseShortsListHeight=!1;x.gridVideoWidth=0;x.isSearchVodShelf=!1;x.disableWheelScroll=!1;x.sizing="COMPACT";x.shortsLockupAspectRatio=0;return x};
_.p(ZO,_.e);_.K=ZO.prototype;
_.K.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]]"}}}}};
_.K.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.u("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.K.computeInitialCountNumber=function(x){if(!x)return 6;var L=x.items.some(function(J){return!!J.topicRecommendationsChipRenderer}),D=x.items.some(function(J){return!!J.displayAdRenderer}),S=this.computeShouldListItemsHaveEqualHeight(x),Q=x.items.some(function(J){return!!J.gridPlaylistRenderer});
x=x.items.some(function(J){return!!J.shoppingItemCardViewModel});
return L?9:D?8:Q||S?10:x?7:6};
_.K.computeContainsPost=function(x){return!!x&&!!x.items&&x.items.some(function(L){return!!L.postRenderer})};
_.K.computeContainsLockup=function(){if(_.u("web_horizontal_list_lockup_arrow_killswitch"))return!1;var x,L;return(x=this.data)==null?void 0:(L=x.items)==null?void 0:L.some(function(D){return!!D.lockupViewModel})};
_.K.maybeUpdateLockupAspectRatio=function(){var x,L;if(this.computeContainsLockup()&&((x=this.data)==null?0:(L=x.items)==null?0:L.length)){var D;x=YeG((D=this.data.items[0].lockupViewModel)==null?void 0:D.contentType,this.data.force16By9ThumbnailAspectRatio);D=Yr0(x);D=this.computeLockupWidth()/D;_.uN(this.hostElement,{"--yt-horizontal-list-content-height":D+"px"})}};
_.K.computeOverrideArrowPositionForProductCard=function(x){if(this.isExpandableContent)return!1;var L;return!!(x==null?0:(L=x.items)==null?0:L.some(function(D){return!!D.verticalProductCardRenderer}))};
_.K.computeOverrideArrowPositionForShoppingItemCard=function(x){var L;return!!(x==null?0:(L=x.items)==null?0:L.some(function(D){return!!D.shoppingItemCardViewModel}))};
_.K.computeOverrideArrowPositionForReelItemRenderer=function(x){return this.containsReelItemRenderer(x)};
_.K.computeHasBigThumbsReelItems=function(x,L){return x&&this.containsReelItemRenderer(L)};
_.K.computeShouldListItemsHaveEqualHeight=function(x){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(x==null?void 0:x.itemSizeConstraint)};
_.K.computeShouldListItemsHaveShortsHeight=function(x){return this.computeShouldListItemsHaveEqualHeight(x)&&!this.containsGridVideoRenderer(x)};
_.K.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.K.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.K.containsReelItemRenderer=function(x){var L;return!!(x==null?0:(L=x.items)==null?0:L.some(function(D){return!(!D.reelItemRenderer&&!D.shortsLockupViewModel)}))};
_.K.containsGridVideoRenderer=function(x){var L;return!!(x==null?0:(L=x.items)==null?0:L.some(function(D){return!!D.gridVideoRenderer||!!D.lockupViewModel}))};
_.K.computeContainsGridMovieRenderer=function(x){var L;return!!(x==null?0:(L=x.items)==null?0:L.some(function(D){return!!D.gridMovieRenderer}))};
_.K.computeOverrideArrowPositionToCenter=function(x){return this.computeIsSearchPostShelf(x)};
_.K.computeIsSearchPostShelf=function(x){var L;return!!(x==null?0:(L=x.items)==null?0:L.some(function(D){var S,Q;return((Q=(S=D.postRenderer)==null?void 0:S.surface)!=null?Q:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.K.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(x){var L;return!!(x==null?0:(L=x.items)==null?0:L.some(function(D){var S,Q,J;return((J=(S=D.backgroundPromoRenderer)==null?void 0:(Q=S.style)==null?void 0:Q.value)!=null?J:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.K.computeIsSearchVodShelf=function(x,L){return x&&this.containsGridVideoRenderer(L)};
_.K.computeDisableWheelScroll=function(x,L){return this.computeIsSearchVodShelf(x,L)};
_.K.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.K.computeShortsLockupAspectRatio=function(){return 1};
_.K.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.uN(this.hostElement,{"--ytd-reel-item-thumbnail-height":U8C+"px"})};
ZO.prototype.dataChanged=ZO.prototype.dataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],ZO.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],ZO.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.CO.YtdHorizontalListBehavior),_.r("design:type",Object)],ZO.prototype,"ytdHorizontalListBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],ZO.prototype,"data",void 0);
_.A([_.F(),_.r("design:type",Object)],ZO.prototype,"isExpandableContent",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],ZO.prototype,"hideShelfHeader",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],ZO.prototype,"engagementPanel",void 0);_.A([_.F(),_.r("design:type",Array)],ZO.prototype,"buttonClasses",void 0);_.A([_.F(),_.r("design:type",Object)],ZO.prototype,"isSearch",void 0);
_.A([_.F(),_.r("design:type",Object)],ZO.prototype,"disableScrollEventListener",void 0);_.A([_.F({computed:"computeInitialCountNumber(data)"}),_.r("design:type",Number)],ZO.prototype,"initialCount",void 0);_.A([_.F({computed:"computeContainsPost(data)"}),_.r("design:type",Boolean)],ZO.prototype,"supportComponentResize",void 0);_.A([_.F({computed:"computeContainsPost(data)"}),_.r("design:type",Boolean)],ZO.prototype,"containsPost",void 0);
_.A([_.F({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.r("design:type",Object)],ZO.prototype,"containsLockup",void 0);_.A([_.F({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],ZO.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.A([_.F({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.r("design:type",Object)],ZO.prototype,"overrideArrowPositionForProductCard",void 0);_.A([_.F({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.r("design:type",Object)],ZO.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.A([_.F({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.r("design:type",Object)],ZO.prototype,"overrideArrowPositionForReelItems",void 0);_.A([_.F({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.r("design:type",Object)],ZO.prototype,"overrideArrowPositionForGridMovie",void 0);
_.A([_.F({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.r("design:type",Object)],ZO.prototype,"overrideArrowPositionToCenter",void 0);_.A([_.F({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.r("design:type",Object)],ZO.prototype,"isSearchPostShelf",void 0);_.A([_.F({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.r("design:type",Object)],ZO.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.A([_.F({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.r("design:type",Object)],ZO.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.A([_.F({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.r("design:type",Object)],ZO.prototype,"hasBigThumbsReelItems",void 0);
_.A([_.F({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.r("design:type",Object)],ZO.prototype,"shouldUseMixedListHeight",void 0);_.A([_.F({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.r("design:type",Object)],ZO.prototype,"shouldUseShortsListHeight",void 0);_.A([_.F({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.r("design:type",Object)],ZO.prototype,"gridVideoWidth",void 0);
_.A([_.F({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.r("design:type",Object)],ZO.prototype,"isSearchVodShelf",void 0);_.A([_.F({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.r("design:type",Object)],ZO.prototype,"disableWheelScroll",void 0);_.A([_.F({computed:"computeSizing(isSearch)"}),_.r("design:type",Object)],ZO.prototype,"sizing",void 0);
_.A([_.F({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.r("design:type",Object)],ZO.prototype,"shortsLockupAspectRatio",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ZO.prototype,"dataChanged",null);
_.q(ZO,"yt-horizontal-list-renderer",function(){if(Bah===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);Bah=x}x=Bah;return x},{mode:1});var wKQ=function(){this.subscriptions=new Map([["navigation-start",new Set],["navigation-end",new Set]])};
wKQ.prototype.subscribe=function(x,L){var D=this.subscriptions.get(x);if(!D)return function(){};
D.add(L);return function(){D.delete(L)}};
wKQ.prototype.unsubscribe=function(x,L){(x=this.subscriptions.get(x))&&x.delete(L)};
wKQ.prototype.publish=function(x,L){L=L===void 0?{}:L;(x=this.subscriptions.get(x))&&x.forEach(function(D){D(L)})};var Bv2;var WhC=[10,12,14,16,18,20,24,28,32,36],ql2=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],yf=function(){var x=_.e.apply(this,arguments)||this;x.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";x.hideOverflow=!1;x.useRoboto=!1;x.fontClass="";x.overflown=!1;x.actionMap={"yt-window-resized":"resize"};return x};
_.p(yf,_.e);_.K=yf.prototype;
_.K.attached=function(){var x=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();_.So(this,function(){x.resize()});
if(!_.j_){var L,D,S;(L=document)==null||(D=L.fonts)==null||(S=D.ready)==null||S.then(function(){x.resize()})}};
_.K.dataChanged=function(){this.resize()};
_.K.guideIsExpandedChanged=function(){this.resize()};
_.K.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 x=this.getMaxNumLines(),L=this.getMinFont(),D=this.getMaxFont(),S=this.useRoboto?WhC:ql2;for(S=S.filter(function(J){return J<=D&&J>=L});S.length>1;){var Q=Math.floor(S.length/2);
this.updateFontSize(S[Q]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=x)S=S.slice(Q,S.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>x)S=S.slice(0,Q);else break}this.updateFontSize(S[S.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(x)}};
_.K.handleOverflow=function(x){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>x&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",x.toString()))};
_.K.updateFontSize=function(x){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+x;this.textNode.classList.add(this.fontClass)};
_.K.getMaxFont=function(){var x=this.useRoboto?WhC:ql2;x=x[x.length-1];return this.maxFontSize&&this.maxFontSize<=x?this.maxFontSize:x};
_.K.getMinFont=function(){var x=(this.useRoboto?WhC:ql2)[0];return this.minFontSize&&this.minFontSize>=x?this.minFontSize:x};
_.K.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.K.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.K.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.SR(this.text).split("\n").length-1:Infinity};
_.K.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("Oh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
yf.prototype.guideIsExpandedChanged=yf.prototype.guideIsExpandedChanged;yf.prototype.dataChanged=yf.prototype.dataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],yf.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],yf.prototype,"ytdReduxBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],yf.prototype,"actionHandlerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],yf.prototype,"text",void 0);
_.A([_.F(),_.r("design:type",String)],yf.prototype,"fontFamily",void 0);_.A([_.F(),_.r("design:type",Number)],yf.prototype,"maxWidth",void 0);_.A([_.F(),_.r("design:type",Number)],yf.prototype,"maxHeight",void 0);_.A([_.F(),_.r("design:type",Number)],yf.prototype,"maxFontSize",void 0);_.A([_.F(),_.r("design:type",Number)],yf.prototype,"minFontSize",void 0);_.A([_.F(),_.r("design:type",Number)],yf.prototype,"maxLines",void 0);_.A([_.F(),_.r("design:type",Object)],yf.prototype,"hideOverflow",void 0);
_.A([_.F({selector:_.vrc}),_.r("design:type",Boolean)],yf.prototype,"guideIsExpanded",void 0);_.A([_.F1("#container"),_.r("design:type",HTMLElement)],yf.prototype,"containerNode",void 0);_.A([_.F1("#text"),_.r("design:type",HTMLElement)],yf.prototype,"textNode",void 0);_.A([_.GV("text"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],yf.prototype,"dataChanged",null);
_.A([_.GV("guideIsExpanded"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],yf.prototype,"guideIsExpandedChanged",null);_.A([_.w({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],yf);
_.q(yf,"yt-dynamic-sizing-formatted-string",function(){if(Bv2!==void 0)return Bv2;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Bv2=x},{mode:1});var AZC;_.$8G=function(x){_.Dp.call(this,x)};
_.p(_.$8G,_.Dp);var rZ2=function(x){_.Dp.call(this,x)};
_.p(rZ2,_.$8G);var IY=function(){return _.e.apply(this,arguments)||this};
_.p(IY,_.e);IY.prototype.onTapSuspendedChannel=function(){var x;if((x=this.data)!=null&&x.serviceEndpoint){var L,D;(x=(D=_.g((L=this.data)==null?void 0:L.serviceEndpoint,_.oR))==null?void 0:D.url)?_.x9(x,void 0,void 0,window.top):(L=new rZ2("Did not handle suspended account tap. No appealUrl."),_.BI(L))}else L=new rZ2("Did not handle suspended account tap. No serviceEndpoint."),_.BI(L)};
IY.prototype.onTap=function(){var x=this,L=_.sk(),D,S=(D=_.Ff(L,{veType:7116}))!=null?D:void 0;_.XT(L,{visualElement:S});_.nB();this.saveRoleText();var Q;if((Q=this.data)==null?0:Q.youtubeSuspended)this.onTapSuspendedChannel();else{var J=!1,Z,y;(L=(y=_.g((Z=this.data)==null?void 0:Z.serviceEndpoint,_.gri))==null?void 0:y.supportedTokens)&&L.forEach(function(E){if(E.accountSigninToken)if(J=!0,x.onAccountItemTap)x.onAccountItemTap(E.accountSigninToken.signinUrl);else _.x9(E.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!J){if(Z=this.get("serviceEndpoint",this.data))J=!0,this.ytComponentBehavior.resolveCommand(Z);J||_.WI(new rZ2("Did not handle account switch tap. No token."))}}};
IY.prototype.saveRoleText=function(){if(this.data){var x=this.data,L=x.channelDelegationRole;if(L){var D,S=(D=_.g(x==null?void 0:x.serviceEndpoint,_.gri))==null?void 0:D.supportedTokens;if(!S){var Q,J,Z,y;S=(Q=_.g(x==null?void 0:x.serviceEndpoint,_.fS))==null?void 0:(J=Q.popup)==null?void 0:(Z=J.confirmDialogRenderer)==null?void 0:(y=Z.confirmButton)==null?void 0:y.buttonRenderer;var E;S=(E=_.g(S==null?void 0:S.command,_.h_))==null?void 0:E.commands;if(!S)return;var P;S=(P=_.g(S[1],_.gri))==null?
void 0:P.supportedTokens}if(S){E=void 0;P=_.O(S);for(S=P.next();!S.done;S=P.next())if(S=S.value,S.datasyncIdToken){E=S.datasyncIdToken.datasyncIdToken;break}if(E){var v;a:{if(_.o5w()&&(P=_.q40(E+"::pom"))){P=new LJ(P);break a}P=void 0}(v=P)==null||v.set("role_text",L);if((KO4?KO4:window.location).href.indexOf("studio")!==-1&&(v=ak0())){P=v.src?(new URL(v.src)).origin:"*";var V;(V=v.contentWindow)==null||V.postMessage({action:"save_pom_role",datasyncId:E,roleText:L},P)}}}}}};
_.J3.Object.defineProperties(IY.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var x,L,D=(x=this.data)==null?void 0:(L=x.accountPhoto)==null?void 0:L.thumbnails;return D&&D.length>0&&(D[0].height===36||D[0].height===48)?D[0].height:40}}});
IY.prototype.onTap=IY.prototype.onTap;_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],IY.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],IY.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],IY.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!1}),_.r("design:type",Function)],IY.prototype,"onAccountItemTap",void 0);
_.A([_.F({reflectToAttribute:!0}),_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],IY.prototype,"enableRingForActiveAccount",null);_.A([_.F({reflectToAttribute:!0}),_.Y("data"),_.r("design:type",Number),_.r("design:paramtypes",[])],IY.prototype,"thumbnailSize",null);_.A([_.mX("tap"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],IY.prototype,"onTap",null);_.A([_.w({is:"ytd-account-item-renderer",disableElementRegistration:!0})],IY);
_.q(IY,"ytd-account-item-renderer",function(){if(AZC!==void 0)return AZC;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return AZC=x},{mode:1});var Nvh;var E_=function(){return _.e.apply(this,arguments)||this};
_.p(E_,_.e);E_.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.yY().resolve(_.E2).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],E_.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],E_.prototype,"data",void 0);_.A([_.w({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],E_);
_.q(E_,"ytd-identity-chip-renderer",function(){if(Nvh!==void 0)return Nvh;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Nvh=x},{mode:1});var iod;var flQ;var ouH;var alG;var MM=function(){var x=_.e.apply(this,arguments)||this;x.richItemMinWidth=_.dE("wn_grid_min_item_width",310);x.isShorts=!1;x.isWatchNext=!1;x.isExploreHub=!1;return x};
_.p(MM,_.e);_.J3.Object.defineProperties(MM.prototype,{shimmerAnimation:{configurable:!0,enumerable:!0,get:function(){return this.isExploreHub}},
cardItems:{configurable:!0,enumerable:!0,get:function(){var x=[],L=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.uN(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var D;if(((D=this.data)==null?0:D.rows)&&L)for(L*=this.data.rows,D=0;D<L;D++)x.push({});return x}}});
_.A([_.b(_.EG),_.r("design:type",Object)],MM.prototype,"ytdReduxBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],MM.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],MM.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0,selector:_.A2,value:3}),_.r("design:type",Number)],MM.prototype,"itemsPerRow",void 0);_.A([_.F({selector:_.jOG,value:6}),_.r("design:type",Number)],MM.prototype,"slimItemsPerRow",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Number)],MM.prototype,"richItemMinWidth",void 0);_.A([_.F({reflectToAttribute:!0,selector:_.qU}),_.r("design:type",Boolean)],MM.prototype,"miniMode",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],MM.prototype,"isShorts",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],MM.prototype,"isWatchNext",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],MM.prototype,"isExploreHub",void 0);
_.A([_.Y("isExploreHub"),_.F({reflectToAttribute:!0}),_.r("design:type",Object),_.r("design:paramtypes",[])],MM.prototype,"shimmerAnimation",null);_.A([_.Y("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.r("design:type",Array),_.r("design:paramtypes",[])],MM.prototype,"cardItems",null);_.A([_.w({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],MM);
_.zar=_.vp()(MM,"ytd-ghost-grid-renderer",function(){if(alG===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);alG=x}x=alG;return x},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.dF(_.B(function(x){var L=_.ym(x,{numberOfComments:3}).numberOfComments,D=_.ym(x,{isInitialLoad:!1}).isInitialLoad,S=_.ym(x,{engagementPanel:!1}).engagementPanel,Q=function(){return Math.min(Number(L==null?void 0:L())||20,20)};
return _.M("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.M(_.d,{cond:function(){return!(S==null?0:S())&&(D==null?void 0:D())},
then:function(){return _.M("div",{class:"ytGhostCommentsComments"},_.M("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.M("div",{class:_.gF("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.M("div",{class:_.gF("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.M("div",{class:"ytGhostCommentsGhostCard"},_.M("div",{class:"ytGhostCommentsAvatar"},_.M("div",{class:"ytGhostCommentsCircle"})),_.M("div",{class:"ytGhostCommentsComments"},_.M("div",{class:"ytGhostCommentsMeta"},
_.M("div",{class:_.gF("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.M("div",{class:_.gF("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.M("div",{class:"ytGhostCommentsComments"},_.M(_.R1,{each:function(){return Array((Q==null?void 0:Q())||3)}},function(){return _.M("div",{class:"ytGhostCommentsGhostCard"},_.M("div",{class:"ytGhostCommentsAvatar"},_.M("div",{class:"ytGhostCommentsCircle"})),_.M("div",{class:"ytGhostCommentsHost"},_.M("div",{class:"ytGhostCommentsMeta"},
_.M("div",{class:_.gF("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.M("div",{class:_.gF("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.M("div",{class:_.gF("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.M("div",{class:"ytGhostCommentsGhostLikeDislike"},_.M("div",{class:_.gF("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.M("div",{class:_.gF("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"ec"),"yt-ghost-comments",{props:{numberOfComments:_.pJ,
isInitialLoad:_.pJ,engagementPanel:_.pJ}});_.BD("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var dW=function(){var x=_.e.apply(this,arguments)||this;x.isOverridable=!1;x.spinnerActive=!1;x.showButton=!1;x.isCommentsSection=!1;x.engagementPanel=!0;x.isShortsGrid=!1;x.isShortsPage=!1;x.isWatchPage=!1;x.ghostCardExperimentEnabled=_.u("show_ghost_comments_shorts_watch")||_.u("show_ghost_comments_desktop_watch");x.originalShowButton=!1;x.endOfList=!1;return x};
_.p(dW,_.e);_.K=dW.prototype;_.K.resetIntersectionObserver=function(){var x;(x=this.observer)==null||x.disconnect();this.observer=void 0};
_.K.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var x,L;((x=this.data)==null?void 0:x.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((L=this.data)==null?0:L.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.K.initializeIntersectionObserver=function(){var x=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(L){L=_.O(L);for(var D=L.next();!D.done;D=L.next())D.value.isIntersecting&&(x.triggerContinuation(),x.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.K.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},isShortsCommentsSection:{id:"ghost-comment-section",mapping:{ghostCommentsSectionRenderer:{component:"yt-ghost-comments"}}},"data.ghostCards":{id:"ghost-cards",mapping:{ghostGridRenderer:{component:"ytd-ghost-grid-renderer",properties:{isShorts:"[[isShortsGrid]]"}}}}}};
_.K.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var x;((x=this.data)==null?0:x.continuationEndpoint)&&(x=_.g(this.data.continuationEndpoint,_.ol))&&this.ytdReduxBehavior.dispatch(_.MU({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:x}}))};
_.K.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.K.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.K.onServiceRequestCompleted=function(x,L){if(!_.u("kevlar_hide_spinner_on_empty_continuation_killswitch")){var D;(D=L.actions)!=null&&D.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.K.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.K.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.K.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.K.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var x=3;if(this.engagementPanel){var L,D,S;x=Math.floor(((((L=this.hostElement)==null?void 0:(D=L.parentElement)==null?void 0:(S=D.parentElement)==null?void 0:S.scrollHeight)||108)-108)/108);x=this.isInitialLoad?Math.max(x,3):3}L=[].concat(_.lP(this.hostElement.querySelectorAll("yt-ghost-comments")));L=_.O(L);for(D=L.next();!D.done;D=L.next())D=D.value,D.numberOfComments=x,D.isInitialLoad=this.isInitialLoad,D.engagementPanel=
this.engagementPanel}};
_.K.detached=function(){this.resetIntersectionObserver()};
_.J3.Object.defineProperties(dW.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton&&(_.u("show_ghost_comments_shorts_watch")&&this.engagementPanel||_.u("show_ghost_comments_desktop_watch"))?{ghostCommentsSectionRenderer:!0}:!1}}});
dW.prototype.numberOfGhostCommentsChanged=dW.prototype.numberOfGhostCommentsChanged;dW.prototype.continuationTriggerOffsetChanged=dW.prototype.continuationTriggerOffsetChanged;dW.prototype.showButtonChanged=dW.prototype.showButtonChanged;dW.prototype.onYtServiceRequestCompletedForButtonRenderer=dW.prototype.onYtServiceRequestCompletedForButtonRenderer;dW.prototype.onServiceRequestCompleted=dW.prototype.onServiceRequestCompleted;dW.prototype.onYtServiceRequestSentForButtonRenderer=dW.prototype.onYtServiceRequestSentForButtonRenderer;
dW.prototype.observeData=dW.prototype.observeData;_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],dW.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],dW.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.hz.YtVisibilityBehavior),_.r("design:type",Object)],dW.prototype,"ytVisibilityBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],dW.prototype,"ytComponentBehavior",void 0);
_.A([_.b(_.EG),_.r("design:type",Object)],dW.prototype,"ytdReduxBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],dW.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],dW.prototype,"isOverridable",void 0);_.A([_.F(),_.r("design:type",Object)],dW.prototype,"spinnerActive",void 0);_.A([_.F(),_.r("design:type",Object)],dW.prototype,"showButton",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],dW.prototype,"isCommentsSection",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],dW.prototype,"engagementPanel",void 0);_.A([_.F(),_.r("design:type",Object)],dW.prototype,"isShortsGrid",void 0);_.A([_.F({reflectToAttribute:!0,selector:_.HpG}),_.r("design:type",Object)],dW.prototype,"isShortsPage",void 0);_.A([_.F({reflectToAttribute:!0,selector:_.hyG}),_.r("design:type",Object)],dW.prototype,"isWatchPage",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],dW.prototype,"ghostCardExperimentEnabled",void 0);
_.A([_.F(),_.r("design:type",Number)],dW.prototype,"continuationTriggerOffset",void 0);_.A([_.F(),_.r("design:type",Object)],dW.prototype,"endOfList",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],dW.prototype,"isInitialLoad",void 0);_.A([_.F1("ytd-button-renderer"),_.r("design:type",_.TM)],dW.prototype,"buttonRenderer",void 0);_.A([_.F(),_.r("design:type",Object)],dW.prototype,"buttonOverrides",void 0);
_.A([_.F(),_.Y("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.r("design:type",Object),_.r("design:paramtypes",[])],dW.prototype,"isShortsCommentsSection",null);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],dW.prototype,"observeData",null);
_.A([_.mX("yt-service-request-sent-button-renderer"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],dW.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.A([_.mX("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.S2]),_.r("design:returntype")],dW.prototype,"onServiceRequestCompleted",null);
_.A([_.mX("yt-service-request-completed-button-renderer"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],dW.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.A([_.GV("showButton"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],dW.prototype,"showButtonChanged",null);
_.A([_.GV("continuationTriggerOffset"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],dW.prototype,"continuationTriggerOffsetChanged",null);_.A([_.bN("isInitialLoad","engagementPanel"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],dW.prototype,"numberOfGhostCommentsChanged",null);_.A([_.w({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],dW);
_.q(dW,"ytd-continuation-item-renderer",function(){if(ouH!==void 0)return ouH;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return ouH=x},{mode:1});var XKH;var PS=function(){var x=_.e.apply(this,arguments)||this;x.downloadProgress=0;x.transferState="TRANSFER_STATE_UNKNOWN";x.downloadState="DOWNLOAD_STATE_UNKNOWN";x.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";x.offlineVideoPolicyExpirationTimestamp=0;x.downloadedVideoPlaybackPosition=0;return x};
_.p(PS,_.e);PS.prototype.dataChanged=function(){var x;this.videoData=_.g((x=this.data)==null?void 0:x.renderer,t3i);this.transferStateChanged()};
PS.prototype.downloadProgressChanged=function(){if(this.entityInfo){var x=Object.assign({},this.videoData),L=uW0(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),D=L.publishedTimeText,S=L.badges;x.shortViewCountText=L.shortViewCountText;x.publishedTimeText=D;x.badges=S;this.set("videoData",x)}};
PS.prototype.transferStateChanged=function(){if(this.entityInfo){var x=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",L=_.TD(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!s4(this.entityInfo.policyEntity),D=Object.assign({},this.videoData),S=uW0(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),Q=S.publishedTimeText,J=S.badges;D.shortViewCountText=
S.shortViewCountText;D.publishedTimeText=Q;D.badges=J;D.isDisabled=L;D.isWatched=this.downloadedVideoPlaybackPosition>0;D.navigationEndpoint=L?void 0:un0(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var Z;x&&((Z=this.videoData)==null?0:Z.videoId)&&!_.u("dl_resume_click_killswitch")&&(D.isDisabled=!1,D.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});D.thumbnailOverlays=hY4(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",D)}};
PS.prototype.transferStateChanged=PS.prototype.transferStateChanged;PS.prototype.downloadProgressChanged=PS.prototype.downloadProgressChanged;PS.prototype.dataChanged=PS.prototype.dataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],PS.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],PS.prototype,"ytdReduxBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],PS.prototype,"data",void 0);
_.A([_.F(),_.r("design:type",Object)],PS.prototype,"videoData",void 0);_.A([_.F({selector:ot,selectorArgs:["videoData.videoId"]}),_.r("design:type",Object)],PS.prototype,"downloadProgress",void 0);_.A([_.F(),_.r("design:type",Number)],PS.prototype,"relativeDateReference",void 0);_.A([_.F({selector:_.i6,selectorArgs:["videoData.videoId"]}),_.r("design:type",Object)],PS.prototype,"transferState",void 0);
_.A([_.F({selector:qjh,selectorArgs:["videoData.videoId"]}),_.r("design:type",Object)],PS.prototype,"downloadState",void 0);_.A([_.F({selector:mIN,selectorArgs:["videoData.videoId"]}),_.r("design:type",Object)],PS.prototype,"offlinePolicyAction",void 0);_.A([_.F({selector:bpO,selectorArgs:["videoData.videoId"]}),_.r("design:type",Object)],PS.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.A([_.F({selector:at,selectorArgs:["videoData.videoId"]}),_.r("design:type",Object)],PS.prototype,"downloadedVideoPlaybackPosition",void 0);_.A([_.F({selector:F$s,selectorArgs:["videoData.videoId"]}),_.r("design:type",Object)],PS.prototype,"entityInfo",void 0);_.A([_.F({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],PS.prototype,"isDownloading",void 0);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],PS.prototype,"dataChanged",null);
_.A([_.GV("downloadProgress"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],PS.prototype,"downloadProgressChanged",null);_.A([_.GV("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],PS.prototype,"transferStateChanged",null);
_.A([_.w({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],PS);
_.q(PS,"ytd-downloaded-video-grid-video-renderer",function(){if(XKH!==void 0)return XKH;var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return XKH=x},{mode:_.Vm("kevlar_poly_si_batch_j025")?1:2});var cZ_;var jI=function(){};
jI.prototype.resolve=function(x,L){var D=this;return _.I(function(S){return S.yield(D.resolveCommand(x,L),0)})};var nuh,vS;nuh=PTs(function(x){return x.targetId},{shouldPersist:!1});
vS=nuh.updateData;_.twd=nuh.useUpdatableData;var x72,LYH;x72=PTs(function(x){return x.targetId});
LYH=x72.updateData;_.D7h=x72.useUpdatableData;var Si2=IUw.bind(null,vS),QhR=IUw.bind(null,LYH);(function(x,L,D){var S=_.g(D==null?void 0:D.updatedRenderer,_.sQd);return S?x({targetId:L},function(){return S}):!1}).bind(null,vS);var Vf=function(){};
_.p(Vf,jI);Vf.prototype.resolveCommand=function(x){var L;return _.I(function(D){L=_.g(x,_.ua0);if(!L)return D.return();Si2(L.targetId,L);_.Y2(D)})};var he=function(){var x=_.er.apply(this,arguments)||this;x.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return x};
_.p(he,_.er);_.K=he.prototype;_.K.configureContinuationPathMap=function(){return{}};
_.K.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.K.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.K.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.K.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.K.handleAppendContinuationItemsAction=function(x){var L=_.g(x,_.YxA);if(this.data&&this.data.targetId&&L&&this.continuationPathMap&&L.targetId===this.data.targetId){var D=S3p(x),S=D&&this.continuationPathMap[D];if(S&&D)if(x=this.get(S,this.data)){a:{for(D=0;D<x.length;D++){var Q=x[D],J=void 0,Z=!!_.g((J=_.g(Q,dlC))==null?void 0:J.content,_.zeG);if(_.g(Q,_.SK)||Z)break a}D=x.length}S="data."+S;L.continuationItems?D===x.length-1?(this.pop(S),this.push.apply(this,[S].concat(_.lP(L.continuationItems)))):
D===x.length?this.push.apply(this,[S].concat(_.lP(L.continuationItems))):this.splice.apply(this,[S,D,1].concat(_.lP(L.continuationItems))):this.splice(S,D,1);(_.u("web_enable_voting_animation")||_.u("enable_music_web_cairo_voting_animation"))&&_.MF(this.hostElement,"yt-append-continuation-items-action-finished");_.MF(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.qy(new _.RZ("append continuation items does not exist",D));else _.qy(new _.RZ("append continuation path does not exist",
D))}};
_.K.handleReloadContinuationItemsCommand=function(x){var L=_.g(x,_.ua0);if(this.data&&L){if(_.u("web_client_explore_hub")||_.u("web_explore_hub_on_hover")||_.u("web_client_explore_hub_on_hover"))try{_.yY().resolve(Vf).resolveCommand(x)}catch(J){}if(this.data.targetId&&this.continuationPathMap&&L.targetId===this.data.targetId&&(!_.u("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||L.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var D,S=(D=L.slot)==null?void 0:
D.replace("RELOAD_CONTINUATION_SLOT_","");D=(x=S3p(x)+"-"+(S==null?void 0:S.toLowerCase()))&&this.continuationPathMap[x];if(!D||!x||!S)_.qy(new _.RZ("reload continuation path does not exist",x));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(L)){if(L.replaceWithFirstItem){var Q;this.set("data."+D,((Q=L.continuationItems)==null?0:Q.length)?L.continuationItems[0]:{})}else this.set("data."+D,L.continuationItems?L.continuationItems:[]);this.continuationIsReloading=
!1;_.MF(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.K.handleShowReloadUiCommand=function(x){x=_.g(x,$o2);var L;((L=this.data)==null?0:L.targetId)&&(x==null?0:x.targetId)&&x.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
he.prototype.observeData=he.prototype.observeData;_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],he.prototype,"actionHandlerBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],he.prototype,"componentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],he.prototype,"data",void 0);_.A([_.F({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],he.prototype,"continuationIsReloading",void 0);
_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],he.prototype,"observeData",null);_.A([_.RW()],he);_.HS=[_.jZ.YtComponentBehavior,_.ir.YtActionHandlerBehavior,he.prototype];_.u0={};_.u0.YtNextContinuationBehavior=[_.sB.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",_.p$(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.p$(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(x,L){x.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,L,{}):(x={locationRetrieved:function(D){this.makeNextContinuationRequest_(D,L,{})}.bind(this)},_.MF(this.hostElement,"yt-retrieve-location",x))},
makeNextContinuationRequest_:function(x,L,D){_.rg("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();x=L(x);var S;this.canUseContextualNetworkManager_()&&(S=this.getNetworkManager());S||(S=_.yY().resolve(_.NB));L=_.cD.instance;if(_.$6("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&L){S=_.KB([x.startsWith("/")?x.substr(1):x]);var Q,J;D=_.MI(L,{},S,D==null?void 0:(Q=D.context)==null?void 0:(J=Q.clickTracking)==null?void 0:J.clickTrackingParams).then(function(Z){return{response:Z}})}else D=
this.nextContinuation.usePost?S.postData(x,D):S.fetchData(x);
D.then(this.updateNextContinuationData_.bind(this,x));this.pendingContinuationRequest_=D;this.startListeningForNavigate_()},
updateNextContinuationData_:function(x,L){var D=this;_.rg("ncl");this.pendingContinuationRequest_=void 0;if(L){var S={};this.nextContinuation&&(S=this.nextContinuation);if(L.response&&L.response.continuationContents&&L.response.continuationContents[S.continuationType]){x=L.response.continuationContents[S.continuationType];var Q=S.header||"data.header",J=x[S.responseHeaderKey||"header"];J&&this.set(Q,J);Q=S.contentsArray||"data.contents";J=this.getContents_(x,S.responseContentsKey||"contents")||[];
this.pathExists_(Q)?(J.unshift(Q),this.push.apply(this,J)):this.set(Q,J);J&&(EwN(_.sk(),L.response,this.hostElement,function(Z){_.dg(D.hostElement,"yt-store-grafted-ve-action",[Z])}),_.MF(this.hostElement,"yt-next-continuation-data-updated",{continuationData:L,
page:this,contentsArray:Q}));this.set(S.continuationsArray||"data.continuations",x[S.responseContinuationsKey||"continuations"]||[])}else L.reload?_.qy(new _.RZ("Reloading from continuation is unsupported")):L.responseContext&&L.responseContext.errors||(delete L.xsrf_token,delete L.timing,delete L.endpoint,delete L.csn,L.responseContext&&delete L.responseContext.serviceTrackingParams,Q={request:_.LH(x,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(L).sort()},L.response&&(Q.responseContentKeys=
Object.keys(L.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(Q.continuationType=this.nextContinuation.continuationType.substr(0,256)),L=new _.RZ("Malformed continuation",Q),x.indexOf("/comment_service_ajax")==0?_.qy(L):_.BI(L)),this.set(S.continuationsArray||"data.continuations",[])}else _.WI(new _.RZ("Missing continuation response",x))},
getContents_:function(x,L){L=L.split(".");return _.wk.getValueByKeys(x,L)},
pathExists_:function(x){var L=this;x=x.toString().split(".");for(var D=0;D<x.length;D++)if(L=L[x[D]],L===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var JJh;var KYG;var gW=function(){var x=_.e.apply(this,arguments)||this;x.triggered_=!1;return x};
_.p(gW,_.e);_.K=gW.prototype;_.K.attached=function(){this.maybeTriggerAutoload()};
_.K.detached=function(){this.hasBeenTriggered_=!1};
_.K.onPrescanVisible=function(){this.onShow()};
_.K.onShow=function(){this.showButton||this.trigger()};
_.K.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.MF(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.K.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.K.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.K.computeLabel_=function(x,L){return x===void 0?null:x.label||!L?x.label:this.showMoreText_};
_.K.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.K.getContinuationUrl=function(x){var L={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(L.itct=this.data.clickTrackingParams);return _.DN(x,L)};
_.K.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
gW.prototype.showButtonChanged_=gW.prototype.showButtonChanged_;gW.prototype.observeData_=gW.prototype.observeData_;_.A([_.b(_.hz.YtVisibilityBehavior),_.r("design:type",Object)],gW.prototype,"ytVisibilityBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],gW.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],gW.prototype,"data",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],gW.prototype,"showButton",void 0);
_.A([_.F({value:!1}),_.r("design:type",Boolean)],gW.prototype,"showIcon",void 0);_.A([_.F({computed:"computeLabel_(data, showButton)"}),_.r("design:type",Object)],gW.prototype,"label",void 0);_.A([_.F({value:_.Dv(_.p6("SHOW_MORE",void 0,"Show More"))}),_.r("design:type",Object)],gW.prototype,"showMoreText_",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],gW.prototype,"spinnerActive_",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],gW.prototype,"hasBeenTriggered_",void 0);
_.A([_.F({value:void 0}),_.r("design:type",String)],gW.prototype,"observeVisibleOption",void 0);_.A([_.F({value:void 0}),_.r("design:type",String)],gW.prototype,"observeHiddenOption",void 0);_.A([_.F({value:"observe_once"}),_.r("design:type",Object)],gW.prototype,"observePrescanOption",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],gW.prototype,"observeData_",null);
_.A([_.bN("showButton"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],gW.prototype,"showButtonChanged_",null);_.A([_.oW({is:"yt-next-continuation",disableElementRegistration:!0})],gW);
_.q(gW,"yt-next-continuation",function(){if(KYG===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;JJh===void 0&&(JJh=document.createElement("template"));var S=JJh;D.call(L,S.content.cloneNode(!0),x.content.firstChild);KYG=x}x=KYG;return x},{mode:2});var Osr;var ZsA;var kA=function(){return _.e.apply(this,arguments)||this};
_.p(kA,_.e);kA.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],kA.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],kA.prototype,"data",void 0);_.A([_.oW({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],kA);
_.q(kA,"yt-music-pass-small-feature-info-renderer",function(){if(ZsA===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;Osr===void 0&&(Osr=document.createElement("template"));var S=Osr;D.call(L,S.content.cloneNode(!0),x.content.firstChild);ZsA=x}x=ZsA;return x},{mode:2});_.BD("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var pa=function(){var x=_.e.apply(this,arguments)||this;x.isCollapsible=!1;x.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return x};
_.p(pa,_.e);_.K=pa.prototype;_.K.computeIsCollapsible=function(x){return!!(((x==null?0:x.showMoreText)||(x==null?0:x.visibleRowCount))&&(x==null?0:x.isCollapsible))};
_.K.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"}}}};
_.K.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.K.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.K.onIronResize=function(){var x=this;_.LI(this,"updateGridInitItems",function(){x.maybeUpdateInitialItemsDisplayed()})};
_.K.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var x=this.getVisibleWidth();x!==0&&(x=Math.floor(x/214)*(this.data.visibleRowCount||2),x!==this.initialCount&&(this.initialCount=x,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.K.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.K.computeExpandVisible=function(x,L,D,S){return x&&L&&D&&!!S&&!!S.showMoreText};
_.K.computeShowMoreButton=function(x){return{text:x,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.K.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.K.initCollapsed=function(){var x=this;this.ytLazyListBehavior.canShowMore=!1;var L;(this.collapsed=!((L=this.data)==null||!L.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.So(this,function(){_.P$(x.hostElement,"yt-refit-popups-action")})};
_.K.fillRestIfNotCollapsible=function(){var x=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!x||this.ytLazyListBehavior.fillRemainingListItems()};
_.K.computeViewAllHidden=function(x,L){return x||!L.viewAllEndpoint};
pa.prototype.fillRestIfNotCollapsible=pa.prototype.fillRestIfNotCollapsible;pa.prototype.initCollapsed=pa.prototype.initCollapsed;pa.prototype.onIronResize=pa.prototype.onIronResize;pa.prototype.persistentGuideChanged=pa.prototype.persistentGuideChanged;_.A([_.b(_.XO),_.r("design:type",Object)],pa.prototype,"ironResizableBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],pa.prototype,"ytRendererBehavior",void 0);
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],pa.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.Gz.YtLazyListBehavior),_.r("design:type",Object)],pa.prototype,"ytLazyListBehavior",void 0);_.A([_.b(_.u0.YtNextContinuationBehavior),_.r("design:type",Object)],pa.prototype,"ytNextContinuationBehavior",void 0);_.A([_.b(_.Vi.YtdGuideStateAwareBehavior),_.r("design:type",Object)],pa.prototype,"ytdGuideStateAwareBehavior",void 0);
_.A([_.b(_.HS),_.r("design:type",Object)],pa.prototype,"ytContinuationHandlerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],pa.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Boolean)],pa.prototype,"collapsed",void 0);_.A([_.F(),_.r("design:type",Number)],pa.prototype,"initialCount",void 0);_.A([_.F({computed:"computeShowMoreButton(data.showMoreText)"}),_.r("design:type",Object)],pa.prototype,"showMoreButton",void 0);
_.A([_.F({computed:"computeIsCollapsible(data)"}),_.r("design:type",Object)],pa.prototype,"isCollapsible",void 0);_.A([_.F1("#items"),_.r("design:type",HTMLElement)],pa.prototype,"items",void 0);_.A([_.GV("guidePersistentAndVisible"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],pa.prototype,"persistentGuideChanged",null);_.A([_.mX("iron-resize"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],pa.prototype,"onIronResize",null);
_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],pa.prototype,"initCollapsed",null);_.A([_.GV("canShowMore"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],pa.prototype,"fillRestIfNotCollapsible",null);_.A([_.w({is:"ytd-grid-renderer",disableElementRegistration:!0})],pa);
_.q(pa,"ytd-grid-renderer",function(){if(cZ_!==void 0)return cZ_;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return cZ_=x},{mode:_.Vm("kevlar_poly_si_batch_j025")?1:2});var mx=function(){return _.e.apply(this,arguments)||this};
_.p(mx,_.e);
mx.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"}}}};
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],mx.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],mx.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],mx.prototype,"data",void 0);_.A([_.w({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],mx);
_.q(mx,"ytd-carousel-ad-renderer",function(){if(flQ!==void 0)return flQ;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return flQ=x},{mode:1});var yJ_;var b0=function(){return _.e.apply(this,arguments)||this};
_.p(b0,_.e);_.K=b0.prototype;_.K.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"}}}};
_.K.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,b0.JSC$15386_CLICK_LOCATION_ID_MAP))};
_.K.onSitelinkTap=function(x){x.stopPropagation();var L,D,S=x==null?void 0:(L=x.model)==null?void 0:(D=L.item)==null?void 0:D.onTap;S&&this.ytSparklesClickLocationBehavior.handleClick(S,x,!1)};
_.K.onTap=function(x){var L=this.data&&this.data.content&&this.data.content.navigationEndpoint;L&&this.ytSparklesClickLocationBehavior.handleClick(L,x,!1)};
_.K.sendImpression=function(){if(this.data&&this.data.content)for(var x=_.O(this.data.content.impressionEndpoints||[]),L=x.next();!L.done;L=x.next()){L=_.O(L.value.loggingUrls||[]);for(var D=L.next();!D.done;D=L.next())D=D.value,D.baseUrl&&Xg(D.baseUrl,D.attributionSrcMode)}};
b0.prototype.onTap=b0.prototype.onTap;b0.prototype.dataChanged=b0.prototype.dataChanged;b0.JSC$15386_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"]]);
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],b0.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],b0.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.RF.YtSparklesClickLocationBehavior),_.r("design:type",Object)],b0.prototype,"ytSparklesClickLocationBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],b0.prototype,"data",void 0);
_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],b0.prototype,"dataChanged",null);_.A([_.mX("tap"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],b0.prototype,"onTap",null);_.A([_.w({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],b0);
_.q(b0,"ytd-promoted-sparkles-text-search-renderer",function(){if(yJ_!==void 0)return yJ_;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return yJ_=x},{mode:1});var Imh;var YA=function(){var x=_.e.apply(this,arguments)||this;x.actionMap={"yt-mute-ad-action":"handleMuteAd"};return x};
_.p(YA,_.e);_.K=YA.prototype;
_.K.configureRendererStamper=function(){return{"data.menu":{id:_.u("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]]"}}}}}};
_.K.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.K.computeHasAdBadge=function(x){return!(x==null||!x.adBadge)};
_.K.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",YA.JSC$15395_DEFAULT_AD_BADGE_RENDERER),_.VA(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,YA.JSC$15395_CLICK_LOCATION_ID_MAP))};
_.K.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var x;(((x=this.data)==null?void 0:x.impressionCommands)||[]).forEach(function(L){L=_.O(L.loggingUrls||[]);for(var D=L.next();!D.done;D=L.next())D=D.value,D.baseUrl&&Xg(D.baseUrl,D.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.K.onTap=function(x){var L,D=(L=this.data)==null?void 0:L.navigationEndpoint,S;(L=(S=this.data)==null?void 0:S.thumbnailNavigationEndpoint)&&_.JL(_.Jq(x),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(L,x,!1):D&&this.ytSparklesClickLocationBehavior.handleClick(D,x,!1)};
_.K.handleMuteAd=function(){this.collapsed=!0};
_.K.attached=function(){var x=this;_.u("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&x.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.K.detached=function(){_.u("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.J3.Object.defineProperties(YA.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var x;return!(((x=this.data)==null?void 0:x.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var x;return!(((x=this.data)==null?void 0:x.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.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}}});
YA.prototype.dataChanged=YA.prototype.dataChanged;
YA.JSC$15395_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"]]);
YA.JSC$15395_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.p6("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],YA.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],YA.prototype,"ytRendererBehavior",void 0);_.A([_.b(IF),_.r("design:type",Object)],YA.prototype,"ytdActiveViewBehavior",void 0);
_.A([_.b([_.ir.YtActionHandlerBehavior]),_.r("design:type",Object)],YA.prototype,"actionHandlerBehavior",void 0);_.A([_.b(_.RF.YtSparklesClickLocationBehavior),_.r("design:type",Object)],YA.prototype,"ytSparklesClickLocationBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],YA.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],YA.prototype,"collapsed",void 0);_.A([_.F({reflectToAttribute:!0,value:function(){return _.u("enable_desktop_search_bigger_thumbs")}}),
_.r("design:type",Boolean)],YA.prototype,"useBiggerThumbs",void 0);_.A([_.F({reflectToAttribute:!0,value:function(){return _.PY("desktop_search_bigger_thumbs_style")}}),
_.r("design:type",String)],YA.prototype,"biggerThumbsStyle",void 0);_.A([_.F({reflectToAttribute:!0,value:function(){return _.u("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.r("design:type",Boolean)],YA.prototype,"fixAlignmentSmallScreens",void 0);_.A([_.F({reflectToAttribute:!0,value:function(){return _.u("enable_desktop_search_bigger_thumbs_square")}}),
_.r("design:type",Boolean)],YA.prototype,"useBiggerThumbsSquare",void 0);_.A([_.F({reflectToAttribute:!0}),_.Y("data.mediaHoverOverlay"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],YA.prototype,"hideHoverOverlay",null);_.A([_.F({reflectToAttribute:!0}),_.Y("data.promotedSparklesWebStyle"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],YA.prototype,"webSearchLayout",null);
_.A([_.F({reflectToAttribute:!0}),_.Y("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],YA.prototype,"webSearchLayoutLandscape",null);_.A([_.F({reflectToAttribute:!0}),_.Y("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],YA.prototype,"webSearchLayoutSquare",null);
_.A([_.F({reflectToAttribute:!0}),_.Y("data.promotedSparklesWebStyle"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],YA.prototype,"sparklesCtaNoBackground",null);_.A([_.F({reflectToAttribute:!0}),_.Y("data.actionButton"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],YA.prototype,"hideActionButton",null);_.A([_.F({computed:"computeButtonOverride(uiUpdate)"}),_.r("design:type",Object)],YA.prototype,"buttonOverride",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.r("design:type",Boolean)],YA.prototype,"hasNewAdBadge",void 0);_.A([_.Y("data.promotedSparklesWebStyle"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],YA.prototype,"useRoundedBadge",null);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],YA.prototype,"dataChanged",null);_.A([_.w({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],YA);
_.q(YA,"ytd-promoted-sparkles-web-renderer",function(){if(Imh!==void 0)return Imh;var x=document.createElement("template");_.m(x,'\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>');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return Imh=x},{mode:1});var EbH;var FJ=function(){var x=_.e.apply(this,arguments)||this;x.isInlinePreviewTriggered=!1;x.enableMonoStyle=_.u("enable_default_mono_cta_migration_web_client");return x};
_.p(FJ,_.e);_.K=FJ.prototype;_.K.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]]"}}}}}};
_.K.computeShowCta=function(x){return!(x==null||!x.ctaRenderer)};
_.K.onCtaClick=function(){var x,L,D,S=(x=this.data)==null?void 0:(L=x.ctaRenderer)==null?void 0:(D=L.buttonRenderer)==null?void 0:D.command;S&&this.ytComponentBehavior.resolveCommand(S)};
_.K.onWatchButtonClick=function(){var x,L,D,S=(x=this.data)==null?void 0:(L=x.watchButtonRenderer)==null?void 0:(D=L.buttonRenderer)==null?void 0:D.command;S&&this.ytComponentBehavior.resolveCommand(S)};
_.K.onTap=function(){};
_.K.dataChanged=function(){if(this.data){var x;_.u("enable_inline_muted_playback_on_web_search")&&((x=this.data)==null?0:x.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",FJ.JSC$15399_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",FJ.JSC$15399_DEFAULT_CLICK_LOCATION_BEHAVIOR,FJ.JSC$15399_CLICK_LOCATION_ID_MAP);
this.thumbnail&&(x=this.thumbnail.getElementsByTagName("a"),x.length>0&&(x=x.namedItem("thumbnail"))&&x.removeAttribute("href"));var L;if(((L=this.data)==null?0:L.forceImpAutoplay)&&_.u("enable_force_imp_autoplay_on_desktop_search")){var D;(D=this.JSC$15400_inlinePreviewHoverListener)==null||Nic(D)}}};
_.K.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var x=_.O(this.data.impressionUrls),L=x.next();!L.done;L=x.next())L=L.value,AHc(L,rHG(L));this.data.impressionsFired=!0}};
_.K.maybeComputeHref=function(){return null};
_.K.computeIsShortDR=function(x){return!(x==null||!x.watchButtonRenderer)&&!(x==null||!x.ctaRenderer)&&!!this.enableShortDR};
_.K.computeIsNewUiOrShortDr=function(x){return!!this.enableUiUpdate||this.computeIsShortDR(x)};
_.K.computeIsNewUiAndNotShortDr=function(x){return!!this.enableUiUpdate&&!this.computeIsShortDR(x)};
_.K.computeHideAvatar=function(x){return!((x==null?0:x.channelThumbnail)&&this.computeIsNewUiOrShortDr(x))};
_.K.onClick=function(x){var L,D=(L=this.data)==null?void 0:L.navigationEndpoint;if(this.enableShortDR&&D&&(_.g(D,_.L6)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(D,x,!!_.g(D,_.L6)),x.stopPropagation();else if(D&&_.g(D,_.L6))this.ytSparklesClickLocationBehavior.handleClick(D,x,!0),x.stopPropagation();else if(D){var S,Q;((S=this.data)==null?0:S.navigationEndpoint)&&((Q=this.data)==null?0:Q.adPlaybackContextParams)&&(L=this.data.navigationEndpoint,x=this.data.adPlaybackContextParams,
L.commandMetadata&&_.g(L.commandMetadata,_.gg)&&_.g(L.commandMetadata,_.gg).url&&(L=_.xQ(_.g(L.commandMetadata,_.gg).url).adurl)&&_.r_b(L)&&_.J_(_.XY(L),{encoded_ad_playback_context:x}));this.ytComponentBehavior.resolveCommand(D)}};
_.K.computeButtonOverride=function(x){if(this.computeIsNewUiOrShortDr(x))return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal",iconPosition:"none"}};
_.K.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.K.onThumbnailContainerClick=function(x){this.onClick(x)};
_.K.computeThumbnailWidth=function(x,L){return x?L==="MASSIVE"?600:L==="BIG"?500:L==="MEDIUM"?450:420:360};
_.K.attached=function(){var x=this,L;_.u("enable_inline_muted_playback_on_web_search")&&((L=this.data)==null?0:L.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();_.u("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&x.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.K.detached=function(){var x;_.u("enable_inline_muted_playback_on_web_search")&&((x=this.data)==null?0:x.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();_.u("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.K.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15400_inlinePreviewHoverListener=r4({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:m82})};
_.K.clearInlinePreviewHoverListeners=function(){var x;(x=this.JSC$15400_inlinePreviewHoverListener)==null||DS(x)};
FJ.prototype.dataChanged=FJ.prototype.dataChanged;FJ.prototype.onTap=FJ.prototype.onTap;FJ.JSC$15399_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.p6("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};FJ.JSC$15399_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
FJ.JSC$15399_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"}];_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],FJ.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],FJ.prototype,"ytRendererBehavior",void 0);_.A([_.b(IF),_.r("design:type",Object)],FJ.prototype,"ytdActiveViewBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],FJ.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.RF.YtSparklesClickLocationBehavior),_.r("design:type",Object)],FJ.prototype,"ytSparklesClickLocationBehavior",void 0);
_.A([_.F1("#main-container"),_.r("design:type",HTMLElement)],FJ.prototype,"mainContainer",void 0);_.A([_.F(),_.r("design:type",Object)],FJ.prototype,"isInlinePreviewTriggered",void 0);_.A([_.F(),_.r("design:type",Object)],FJ.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0,value:function(){return _.u("enable_desktop_search_bigger_thumbs")}}),
_.r("design:type",Boolean)],FJ.prototype,"useBiggerThumbs",void 0);_.A([_.F({reflectToAttribute:!0,value:function(){return _.u("enable_video_display_compact_button_group_for_desktop_search")}}),
_.r("design:type",Boolean)],FJ.prototype,"enableShortDR",void 0);_.A([_.F({reflectToAttribute:!0,value:function(){return _.u("enable_vac_ui_update_for_desktop_search")}}),
_.r("design:type",Boolean)],FJ.prototype,"enableUiUpdate",void 0);_.A([_.F({reflectToAttribute:!0,value:function(){return _.PY("desktop_search_bigger_thumbs_style")}}),
_.r("design:type",String)],FJ.prototype,"biggerThumbsStyle",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.r("design:type",Boolean)],FJ.prototype,"showCta",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.r("design:type",Boolean)],FJ.prototype,"isShortDr",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.r("design:type",Boolean)],FJ.prototype,"isShortDrOrNewUi",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.r("design:type",Boolean)],FJ.prototype,"isNewUiAndNotShortDr",void 0);_.A([_.F({computed:"computeButtonOverride(data)"}),_.r("design:type",Object)],FJ.prototype,"buttonOverride",void 0);_.A([_.F({computed:"computeSecondaryButtonOverride(data)"}),_.r("design:type",Object)],FJ.prototype,"secondaryButtonOverride",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],FJ.prototype,"enableMonoStyle",void 0);
_.A([_.F1("ytd-thumbnail"),_.r("design:type",HTMLElement)],FJ.prototype,"thumbnail",void 0);_.A([_.mX("tap"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],FJ.prototype,"onTap",null);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],FJ.prototype,"dataChanged",null);_.A([_.w({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],FJ);
_.q(FJ,"ytd-promoted-video-renderer",function(){if(EbH!==void 0)return EbH;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return EbH=x},{mode:1});var Msi;var s_=function(){var x=_.e.apply(this,arguments)||this;x.useRoundedBadge=!0;x.sitelinkIds=[];return x};
_.p(s_,_.e);_.K=s_.prototype;
_.K.configureRendererStamper=function(){return{"data.menu":{id:_.u("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]]"}}}}}};
_.K.dataChanged=function(){var x;(x=this.data)!=null&&x.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,s_.JSC$15405_CLICK_LOCATION_ID_MAP)};
_.K.onTap=function(x){var L,D=(L=this.data)==null?void 0:L.navigationCommand;D&&!_.JL(_.Jq(x),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(D,x,!1)};
_.K.onSitelinkTap=function(x){var L,D,S=x==null?void 0:(L=x.model)==null?void 0:(D=L.item)==null?void 0:D.onTap;S&&this.ytSparklesClickLocationBehavior.handleClick(S,x,!1)};
_.K.configureSitelinkClickTargets=function(){var x=this,L,D,S=(L=this.data)==null?void 0:(D=L.clickLocationTargets)==null?void 0:D.find(function(Q){return Q.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
S&&_.jr(this.hostElement).querySelectorAll(".sitelink").forEach(function(Q){_.VA(Q,"yt-simple-endpoint",!0);x.sitelinkIds.push(Q.id);var J,Z;(J=x.ytSparklesClickLocationBehavior)==null||(Z=J.clickTargetMap)==null||Z.set(Q.id,S)})};
_.K.sendImpression=function(){var x,L,D=((x=this.data)==null?void 0:(L=x.impressionCommand)==null?void 0:L.loggingUrls)||[];x=_.O(D);for(L=x.next();!L.done;L=x.next())L=L.value,L.baseUrl&&Xg(L.baseUrl,L.attributionSrcMode)};
_.K.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.J3.Object.defineProperties(s_.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
s_.prototype.onTap=s_.prototype.onTap;s_.prototype.dataChanged=s_.prototype.dataChanged;s_.JSC$15405_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"]]);
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],s_.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],s_.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.RF.YtSparklesClickLocationBehavior),_.r("design:type",Object)],s_.prototype,"ytSparklesClickLocationBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],s_.prototype,"data",void 0);
_.A([_.F({reflectToAttribute:!0}),_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],s_.prototype,"showFavicon",null);_.A([_.F({reflectToAttribute:!0,value:function(){return _.u("enable_desktop_search_bigger_thumbs")}}),
_.r("design:type",Boolean)],s_.prototype,"useBiggerThumbs",void 0);_.A([_.F({reflectToAttribute:!0,value:function(){return _.PY("desktop_search_bigger_thumbs_style")}}),
_.r("design:type",String)],s_.prototype,"biggerThumbsStyle",void 0);_.A([_.F({reflectToAttribute:!0,value:function(){return _.u("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.r("design:type",Boolean)],s_.prototype,"enableThumbnailScalingFix",void 0);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],s_.prototype,"dataChanged",null);_.A([_.mX("tap"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],s_.prototype,"onTap",null);_.A([_.w({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],s_);
_.q(s_,"ytd-text-image-no-button-layout-renderer",function(){if(Msi!==void 0)return Msi;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return Msi=x},{mode:_.Vm("kevlar_poly_si_batch_j028")?1:2});var d7G;var TW=function(){var x=_.e.apply(this,arguments)||this;x.isInlinePlaybackState=!1;x.uiUpdate=_.u("web_modern_buttons");x.hideCta=_.u("hide_cta_for_home_web_video_ads");x.noBottomMargin=!1;x.animateInTimeStamp=_.dE("hide_cta_for_home_web_video_ads_animate_in_time");x.animateInCta=!1;x.isHovered=!1;x.enableMonoStyle=_.u("enable_default_mono_cta_migration_web_client");x.player=null;x.JSC$15412_playerEvents=new Map;x.JSC$15412_preventProgressSaveTimer=null;x.delayedCtaJobId=null;return x};
_.p(TW,_.e);_.K=TW.prototype;_.K.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]]"}}}}}};
_.K.attached=function(){this.JSC$15412_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$15412_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.u("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.K.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$15412_playerEvents)};
_.K.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",TW.JSC$15411_DEFAULT_CLICK_LOCATION_BEHAVIOR,TW.JSC$15411_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.K.hoverChanged=function(){var x=this;this.delayedCtaJobId&&(_.WW.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.u("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.GR(_.WW,function(){x.buttonContainer.classList.add("show-delayed-buttons")},_.dE("delayed_cta_on_web_delay_milliseconds")))};
_.K.setPlayer=function(){var x=this,L;return _.I(function(D){if(D.nextAddress==1)return(L=_.P$(x.hostElement,"yt-get-inline-preview-player-action"))&&L[0]?D.yield(L[0].getPlayerPromise(),3):D.jumpTo(0);x.player=D.yieldResult;x.ytPlayerListenerBehavior.listenToPlayerEvents(x.player,x.JSC$15412_playerEvents);_.Y2(D)})};
_.K.onPlaybackStart=function(){var x=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$15412_preventProgressSaveTimer=_.hD(_.WW,function(){x.JSC$15412_preventProgressSaveTimer=null},1E4))};
_.K.onVideoProgress=function(x){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&x>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.K.resetPreventProgressSaveTimer=function(){_.WW.cancelJob(this.JSC$15412_preventProgressSaveTimer);this.JSC$15412_preventProgressSaveTimer=null};
_.K.getSimpleString=function(x){return _.SR(x)};
_.K.onClick=function(x){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var L,D=(L=this.data)==null?void 0:L.navigationEndpoint,S;L=(S=this.data)==null?void 0:S.channelEndpoint;var Q,J;((J=_.g((Q=this.data)==null?void 0:Q.adCtaButton,_.y4))==null?0:J.command)&&_.JL(_.Jq(x),this.hostElement,["call-to-action"])||(L&&_.JL(_.Jq(x),this.hostElement,["channel-thumbnail-container","short-byline-text"])?this.ytSparklesClickLocationBehavior.handleClick(L,x,!1):!_.JL(_.Jq(x),this.hostElement,
["secondary-button"])&&D&&(_.u("enable_short_dr_for_desktop_launchable")?(S=!!_.g(D,_.L6),this.isInlinePlaybackState&&S&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(D,x,S)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(D,x,!0))))}};
_.K.updateWatchEndpointStartTime=function(){var x,L;this.player&&((x=this.data)==null?0:x.inlinePlaybackEndpoint)&&((L=this.data)==null?0:L.navigationEndpoint)&&!this.JSC$15412_preventProgressSaveTimer&&(x=Math.floor(this.player.getCurrentTime()),_.g(this.data.navigationEndpoint,_.L6).startTimeSeconds=x,_.g(this.data.inlinePlaybackEndpoint,_.L6).startTimeSeconds=x)};
_.K.computeButtonOverride=function(){if(this.uiUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal"}};
_.K.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.J3.Object.defineProperties(TW.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.u("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var x,L;return!((x=this.data)==null||!x.watchButton)&&!((L=this.data)==null||!L.adCtaButton)}}});
TW.prototype.hoverChanged=TW.prototype.hoverChanged;TW.prototype.dataChanged=TW.prototype.dataChanged;
TW.JSC$15411_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"]]);
TW.JSC$15411_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"}];
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],TW.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],TW.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],TW.prototype,"ytdReduxBehavior",void 0);_.A([_.b(_.RF.YtSparklesClickLocationBehavior),_.r("design:type",Object)],TW.prototype,"ytSparklesClickLocationBehavior",void 0);
_.A([_.b(_.kj.YtPlayerListenerBehavior),_.r("design:type",_.pO)],TW.prototype,"ytPlayerListenerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],TW.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],TW.prototype,"isInlinePlaybackState",void 0);_.A([_.F({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],TW.prototype,"miniMode",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],TW.prototype,"uiUpdate",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],TW.prototype,"hideCta",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],TW.prototype,"noBottomMargin",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],TW.prototype,"animateInCta",void 0);_.A([_.F({computed:"computeButtonOverride(uiUpdate)"}),_.r("design:type",Object)],TW.prototype,"buttonOverride",void 0);
_.A([_.F({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.r("design:type",Object)],TW.prototype,"secondaryButtonOverride",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],TW.prototype,"isHovered",void 0);_.A([_.F1("#button-container"),_.r("design:type",HTMLElement)],TW.prototype,"buttonContainer",void 0);_.A([_.F({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],TW.prototype,"typographyBump",void 0);
_.A([_.F({reflectToAttribute:!0}),_.Y("typographyBump"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],TW.prototype,"typographyBumpV2",null);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],TW.prototype,"enableMonoStyle",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],TW.prototype,"dataChanged",null);
_.A([_.bN("isHovered"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],TW.prototype,"hoverChanged",null);_.A([_.Y("data"),_.F({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],TW.prototype,"isButtonGroup",null);_.A([_.w({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],TW);
_.q(TW,"ytd-ad-inline-playback-meta-block",function(){if(d7G!==void 0)return d7G;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return d7G=x},{mode:_.Vm("kevlar_poly_si_batch_j065")?1:2});var PUr;var eI=function(){var x=_.e.apply(this,arguments)||this;x.noBottomMargin=!1;x.isInlinePreviewTriggered=!1;x.JSC$15417_activeViewMeasurementDataResolver=_.xe();return x};
_.p(eI,_.e);_.K=eI.prototype;_.K.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.K.attached=function(){var x=this;this.updateInlinePreviewHoverListeners();this.JSC$15417_activeViewMeasurementDataResolver.promise.then(function(L){x.ytdActiveViewBehavior.enableActiveViewMeasurement(L,15)});
_.u("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&x.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.K.detached=function(){this.clearInlinePreviewHoverListeners();_.u("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.K.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15417_inlinePreviewHoverListener=r4({mediaRenderer:this,lockupElement:this.JSC$15417_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:m82})};
_.K.clearInlinePreviewHoverListeners=function(){var x;(x=this.JSC$15417_inlinePreviewHoverListener)==null||DS(x)};
_.K.onDataChanged=function(){var x;((x=this.data)==null?0:x.activeView)&&this.JSC$15417_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",eI.JSC$15416_DEFAULT_CLICK_LOCATION_BEHAVIOR,eI.JSC$15416_CLICK_LOCATION_ID_MAP);this.thumbnail&&(x=this.thumbnail.getElementsByTagName("a"),x.length>0&&(x=x.namedItem("thumbnail"))&&x.removeAttribute("href"));var L;if((L=this.data)==
null?0:L.forceImpAutoplay){var D;(D=this.JSC$15417_inlinePreviewHoverListener)==null||Nic(D)}};
_.K.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.K.onThumbnailContainerClick=function(x){if(this.data&&this.data.navigationEndpoint){var L,D=(L=this.data)==null?void 0:L.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(D,x,!!_.g(D,_.L6));x.stopPropagation()}};
_.K.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.K.impressionLog=function(){var x=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var L,D,S=(D=_.g((L=this.data)==null?void 0:L.onImpression,_.h_))==null?void 0:D.commands;S&&(S.forEach(function(Q){Q.clickTrackingParams&&delete Q.clickTrackingParams;x.ytComponentBehavior.resolveCommand(Q)}),this.data.impressionsFired=!0)}};
_.J3.Object.defineProperties(eI.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.JSC$15417_inlinePreviewHoverListener)==null?0:Mr(x))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
eI.prototype.onTypographyBumpChanged=eI.prototype.onTypographyBumpChanged;eI.prototype.onDataChanged=eI.prototype.onDataChanged;eI.JSC$15416_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);eI.JSC$15416_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"}];
_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],eI.prototype,"ytComponentBehavior",void 0);_.A([_.b(IF),_.r("design:type",Object)],eI.prototype,"ytdActiveViewBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],eI.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],eI.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.dK),_.r("design:type",Object)],eI.prototype,"ytdDismissibleItemBehavior",void 0);
_.A([_.b(_.uM),_.r("design:type",Object)],eI.prototype,"ytdLockupBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],eI.prototype,"ytdReduxBehavior",void 0);_.A([_.b(_.RF.YtSparklesClickLocationBehavior),_.r("design:type",Object)],eI.prototype,"ytSparklesClickLocationBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],eI.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],eI.prototype,"noBottomMargin",void 0);
_.A([_.F(),_.r("design:type",Object)],eI.prototype,"isInlinePreviewTriggered",void 0);_.A([_.F({reflectToAttribute:!0,selector:_.qU}),_.r("design:type",Boolean)],eI.prototype,"miniMode",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],eI.prototype,"typographyBump",void 0);_.A([_.F1("ytd-thumbnail"),_.r("design:type",HTMLElement)],eI.prototype,"thumbnail",void 0);_.A([_.F1("#dismissible"),_.r("design:type",HTMLElement)],eI.prototype,"JSC$15417_dismissibleMedia",void 0);
_.A([_.F1("ytd-ad-inline-playback-meta-block"),_.r("design:type",HTMLElement)],eI.prototype,"adInlinePlaybackMetaBlock",void 0);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],eI.prototype,"onDataChanged",null);_.A([_.GV("typographyBump"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],eI.prototype,"onTypographyBumpChanged",null);
_.A([_.Y("lockupIsHovered"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],eI.prototype,"isHovered",null);_.A([_.w({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],eI);
_.q(eI,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(PUr!==void 0)return PUr;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return PUr=x},{mode:1});var jhd;var RY=function(){var x=_.e.apply(this,arguments)||this;x.isInlinePreviewTriggered=!1;x.JSC$15420_activeViewMeasurementDataResolver=_.xe();return x};
_.p(RY,_.e);_.K=RY.prototype;_.K.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.K.attached=function(){var x=this;this.updateInlinePreviewHoverListeners();this.JSC$15420_activeViewMeasurementDataResolver.promise.then(function(L){x.ytdActiveViewBehavior.enableActiveViewMeasurement(L,15)})};
_.K.detached=function(){this.clearInlinePreviewHoverListeners()};
_.K.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15420_inlinePreviewHoverListener=r4({mediaRenderer:this,lockupElement:this.JSC$15420_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:m82})};
_.K.clearInlinePreviewHoverListeners=function(){var x;(x=this.JSC$15420_inlinePreviewHoverListener)==null||DS(x)};
_.K.onDataChanged=function(){var x;((x=this.data)==null?0:x.activeView)&&this.JSC$15420_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",RY.JSC$15419_DEFAULT_CLICK_LOCATION_BEHAVIOR,RY.JSC$15419_CLICK_LOCATION_ID_MAP);this.thumbnail&&(x=this.thumbnail.getElementsByTagName("a"),x.length>0&&(x=x.namedItem("thumbnail"))&&x.removeAttribute("href"))};
_.K.onThumbnailContainerClick=function(x){if(this.data&&this.data.navigationEndpoint){var L,D=(L=this.data)==null?void 0:L.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(D,x,!0);x.stopPropagation()}};
_.K.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.K.impressionLog=function(){var x=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var L,D,S=(D=_.g((L=this.data)==null?void 0:L.onImpression,_.h_))==null?void 0:D.commands;S&&(S.forEach(function(Q){Q.clickTrackingParams&&delete Q.clickTrackingParams;_.yY().resolve(_.E2).resolveCommand(Q,{form:{element:x.hostElement}})}),this.data.impressionsFired=!0)}};
_.J3.Object.defineProperties(RY.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.JSC$15420_inlinePreviewHoverListener)==null?0:Mr(x))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
RY.prototype.onDataChanged=RY.prototype.onDataChanged;RY.JSC$15419_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);RY.JSC$15419_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"}];_.A([_.b(IF),_.r("design:type",Object)],RY.prototype,"ytdActiveViewBehavior",void 0);
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],RY.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],RY.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.dK),_.r("design:type",Object)],RY.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.b(_.uM),_.r("design:type",Object)],RY.prototype,"ytdLockupBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],RY.prototype,"ytdReduxBehavior",void 0);
_.A([_.b(_.RF.YtSparklesClickLocationBehavior),_.r("design:type",Object)],RY.prototype,"ytSparklesClickLocationBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],RY.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],RY.prototype,"isInlinePreviewTriggered",void 0);_.A([_.F({reflectToAttribute:!0,selector:_.qU}),_.r("design:type",Boolean)],RY.prototype,"miniMode",void 0);_.A([_.F1("ytd-thumbnail"),_.r("design:type",HTMLElement)],RY.prototype,"thumbnail",void 0);
_.A([_.F1("#dismissible"),_.r("design:type",HTMLElement)],RY.prototype,"JSC$15420_dismissibleMedia",void 0);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],RY.prototype,"onDataChanged",null);_.A([_.Y("lockupIsHovered"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],RY.prototype,"isHovered",null);_.A([_.w({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],RY);
_.q(RY,"ytd-video-display-full-buttoned-renderer",function(){if(jhd!==void 0)return jhd;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return jhd=x},{mode:1});var KF=function(x,L,D,S){S=S===void 0?!1:S;_.Dp.call(this,x);this.adsClientErrorMessage=D;this.aggressivelySample=S;this.args=[];L&&this.args.push(L)};
_.p(KF,_.Dp);var Qx=function(x,L,D,S){S=S===void 0?!1:S;_.Dp.call(this,x);this.adsClientErrorMessage=D;this.aggressivelySample=S;this.args=[];L&&this.args.push(L)};
_.p(Qx,_.Dp);var vbr=function(x){_.Te.call(this);var L=this;this.initializationFunction=x;this.instance=null;this.addOnDisposeCallback(function(){_.Q1(L.instance);L.instance=null})};
_.p(vbr,_.Te);vbr.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.Xj("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var Hkn=function(){var x=new Map;[].forEach(function(L){x.set(L.JSC$30528_getType(),L)});
this.getters=x};new Promise(function(){});var Pas=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"]]),MBw=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"}]]),Vsi=function(x){this.experimentApiProvider=x;x=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=x<.1};var GW=function(x,L,D,S){_.Te.call(this);this.adsControlFlowEventListeners=L;this.adEventLogger=D;this.experimentApiProvider=S;this.adsControlFlowManagerHelper=x(this,this,this,this,this);_.V1(this,this.adsControlFlowManagerHelper);x=_.O(L);for(L=x.next();!L.done;L=x.next())_.V1(this,L.value)};
_.p(GW,_.Te);var hxR=function(x,L,D,S){Ca(x.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",L,D,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,S);x=_.O(x.adsControlFlowEventListeners);for(S=x.next();!S.done;S=x.next())hxR(S.value,L,D)};
_.K=GW.prototype;_.K.onOpportunityProcessedExternallyManaged=function(x,L,D,S){Ca(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",x,D,L,void 0,void 0,void 0,void 0,void 0,void 0,void 0,S)};
_.K.onSlotReceivedExternallyManaged=function(x,L){l0(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",x,L)};
_.K.onSlotEntered=function(x){if(U_(this.adsControlFlowManagerHelper,x)!=null){l0(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",x);this.adsControlFlowManagerHelper.onSlotEntered(x);for(var L=_.O(this.adsControlFlowEventListeners),D=L.next();!D.done;D=L.next())D.value.onSlotEntered(x);if(U_(this.adsControlFlowManagerHelper,x)!=null&&U_(this.adsControlFlowManagerHelper,x).isOccupyingSlotType()&&wW(this.adsControlFlowManagerHelper,x)&&!Hs2(this.adsControlFlowManagerHelper,x)){var S;BS(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",x,(S=wW(this.adsControlFlowManagerHelper,x))!=null?S:void 0);x=U_(this.adsControlFlowManagerHelper,x);x.slotLifecycleStage!=="entered"&&WS(x.slot,x.slotLifecycleStage,"enterLayoutForSlot");x.slotLifecycleStage="rendering";x.registeredLayoutRenderingAdapter.startRendering(x.layout)}}};
_.K.onSlotExited=function(x){if(U_(this.adsControlFlowManagerHelper,x)!=null){l0(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",x);this.adsControlFlowManagerHelper.onSlotExited(x);for(var L=_.O(this.adsControlFlowEventListeners),D=L.next();!D.done;D=L.next())D.value.onSlotExited(x);U_(this.adsControlFlowManagerHelper,x)!=null&&U_(this.adsControlFlowManagerHelper,x).markedForUnscheduleAfterOutboundAdapterRequests&&uci(this,x)}};
_.K.onLayoutReceivedExternallyManaged=function(x,L,D){x.managerLayer!=="core"&&BS(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",x,L,D)};
var gbW=function(x,L,D){if(U_(x.adsControlFlowManagerHelper,L)!=null){BS(x.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",L,D);x=_.O(x.adsControlFlowEventListeners);for(var S=x.next();!S.done;S=x.next())gbW(S.value,L,D)}};
GW.prototype.onLayoutExited=function(x,L,D){if(U_(this.adsControlFlowManagerHelper,x)!=null){BS(this.adEventLogger,d3b(D),x,L);this.adsControlFlowManagerHelper.onLayoutExited(x,L);for(var S=_.O(this.adsControlFlowEventListeners),Q=S.next();!Q.done;Q=S.next())Q.value.onLayoutExited(x,L,D);(D=wW(this.adsControlFlowManagerHelper,x))&&L.layoutId===D.layoutId&&ksh(this,x)}};
GW.prototype.disposeInternal=function(){var x=plh(this.adsControlFlowManagerHelper);x=_.O(x);for(var L=x.next();!L.done;L=x.next())uci(this,L.value);_.Te.prototype.disposeInternal.call(this)};
var uci=function(x,L){if(U_(x.adsControlFlowManagerHelper,L)!=null)if(U_(x.adsControlFlowManagerHelper,L).JSC$30558_isSlotExitRequested()||U_(x.adsControlFlowManagerHelper,L).JSC$30558_isLayoutExitRequested())U_(x.adsControlFlowManagerHelper,L).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(U_(x.adsControlFlowManagerHelper,L).isOccupyingSlotType())U_(x.adsControlFlowManagerHelper,L).markedForUnscheduleAfterOutboundAdapterRequests=!0,ksh(x,L);else if(U_(x.adsControlFlowManagerHelper,L).JSC$30558_isSlotFillRequested())U_(x.adsControlFlowManagerHelper,
L).markedForUnscheduleAfterOutboundAdapterRequests=!0,U_(x.adsControlFlowManagerHelper,L)!=null&&(l0(x.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",L),L=U_(x.adsControlFlowManagerHelper,L),L.fulfillmentLifecycleStage="fill_cancel_requested",L.registeredFulfillmentAdapter.cancelSlotFilling());else{var D=wW(x.adsControlFlowManagerHelper,L),S;x.experimentApiProvider.get();(S=_.u("h5_enable_layout_unscheduling_events"))&&(D?m7i(x,L,D):_.Xj(Error("Qh"),L,D,void 0,!1));l0(x.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",L);var Q=U_(x.adsControlFlowManagerHelper,L),J=L.slotEntryTrigger,Z=Q.registeredSlotEntryTriggerAdapters.get(J.triggerId);Z&&(Z.unregisterTrigger(J),Q.registeredSlotEntryTriggerAdapters.delete(J.triggerId));J=_.O(L.slotFulfillmentTriggers);for(Z=J.next();!Z.done;Z=J.next()){Z=Z.value;var y=Q.registeredFulfillmentTriggerAdapters.get(Z.triggerId);y&&(y.unregisterTrigger(Z),Q.registeredFulfillmentTriggerAdapters.delete(Z.triggerId))}J=_.O(L.slotExpirationTriggers);
for(Z=J.next();!Z.done;Z=J.next())if(Z=Z.value,y=Q.registeredExpirationTriggerAdapters.get(Z.triggerId))y.unregisterTrigger(Z),Q.registeredExpirationTriggerAdapters.delete(Z.triggerId);Q.hasLayout()&&(J=Q.layout,qM(Q,J.layoutExitNormalTriggers),qM(Q,J.layoutExitSkipTriggers),qM(Q,J.layoutExitMuteTriggers),qM(Q,J.layoutExitUserInputSubmittedTriggers),qM(Q,J.layoutExitUserCancelledTriggers));Q.registeredFulfillmentAdapter=void 0;Q.registeredSlotAdapter!=null&&(Q.registeredSlotAdapter.release(),Q.registeredSlotAdapter=
void 0);Q.registeredLayoutRenderingAdapter!=null&&(Q.registeredLayoutRenderingAdapter.release(),Q.registeredLayoutRenderingAdapter=void 0);Q=x.adsControlFlowManagerHelper;U_(Q,L)&&(Q=bs2(Q,L.slotType+"_"+L.slotPhysicalPosition))&&Q.delete(L.slotId);l0(x.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",L);x=_.O(x.adsControlFlowEventListeners);for(Q=x.next();!Q.done;Q=x.next())Q=Q.value,Q.onSlotUnscheduled(L),D&&!S&&m7i(Q,L,D)}},m7i=function(x,L,D){BS(x.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
L,D);
BS(x.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",L,D);x=_.O(x.adsControlFlowEventListeners);for(var S=x.next();!S.done;S=x.next())S=S.value,D&&m7i(S,L,D)},ksh=function(x,L){if(U_(x.adsControlFlowManagerHelper,L)!=null&&U_(x.adsControlFlowManagerHelper,L).isOccupyingSlotType()){var D=wW(x.adsControlFlowManagerHelper,L);
if(D&&Hs2(x.adsControlFlowManagerHelper,L)){if(U_(x.adsControlFlowManagerHelper,L)!=null){var S=x.adEventLogger,Q;var J=((Q=MBw.get("abandoned"))==null?void 0:Q.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";BS(S,J,L,D);x=U_(x.adsControlFlowManagerHelper,L);x.slotLifecycleStage!=="rendering"&&WS(x.slot,x.slotLifecycleStage,"exitLayout");x.slotLifecycleStage="rendering_stop_requested";x.registeredLayoutRenderingAdapter.stopRendering(D,"abandoned")}}else{l0(x.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
L);try{S=U_(x.adsControlFlowManagerHelper,L);if(!S)throw new Qx("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");S.slotLifecycleStage!=="enter_requested"&&S.slotLifecycleStage!=="entered"&&S.slotLifecycleStage!=="rendering"&&WS(S.slot,S.slotLifecycleStage,"exitSlot");S.slotLifecycleStage="exit_requested";if(S.registeredSlotAdapter===void 0)throw S.slotLifecycleStage="scheduled",new Qx("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
S.registeredSlotAdapter.exit()}catch(Z){Z instanceof Qx&&Z.adsClientErrorMessage?(YiQ(x.adEventLogger,Z.adsClientErrorMessage,L),_.Xj(Z,L,void 0,void 0,Z.aggressivelySample)):(YiQ(x.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",L),_.Xj(Z,L))}}}};var Ae=function(x,L,D,S,Q,J){_.Te.call(this);this.registry=x;this.experimentApiProvider=J;this.slotMap=new Map};
_.p(Ae,_.Te);var bs2=function(x,L){return(x=x.slotMap.get(L))?x:new Map},U_=function(x,L){return bs2(x,L.slotType+"_"+L.slotPhysicalPosition).get(L.slotId)},plh=function(x){var L=[];
x.slotMap.forEach(function(D){D=_.O(D.values());for(var S=D.next();!S.done;S=D.next())L.push(S.value.slot)});
return L};
Ae.prototype.onSlotEntered=function(x){x=U_(this,x);x.slotLifecycleStage!=="enter_requested"&&WS(x.slot,x.slotLifecycleStage,"onSlotEntered");x.slotLifecycleStage="entered"};
var Hs2=function(x,L){x=U_(x,L);return x.hasLayout()&&x.isRendering()},wW=function(x,L){(x=U_(x,L))?x.hasLayout()&&!x.layout&&_.Xj("Unexpected empty layout",L):_.Xj("Unexpected undefined slotState",L);
return(x==null?void 0:x.layout)||null};
Ae.prototype.onSlotExited=function(x){x=U_(this,x);x.slotLifecycleStage!=="exit_requested"&&WS(x.slot,x.slotLifecycleStage,"onSlotExited");x.slotLifecycleStage="scheduled"};
Ae.prototype.onLayoutExited=function(x,L){x=U_(this,x);x.isPrimaryLayout(L)&&(x.slotLifecycleStage!=="rendering_stop_requested"&&WS(x.slot,x.slotLifecycleStage,"onLayoutExited"),x.slotLifecycleStage="entered")};
var qM=function(x,L){L=_.O(L);for(var D=L.next();!D.done;D=L.next()){D=D.value;var S=x.registeredLayoutExitTriggerAdapters.get(D.triggerId);S&&(S.unregisterTrigger(D),x.registeredLayoutExitTriggerAdapters.delete(D.triggerId))}},WS=function(x,L,D){_.Xj("Slot stage was "+L+" when calling method "+D,x)};var shC=function(x){_.Te.call(this);this.deps=x;this.JSC$15470_adsControlFlowManager=FYi(this)};
_.p(shC,_.Te);var FYi=function(x){var L=new GW(function(D,S,Q,J){return new Ae(x.deps.registry,D,S,Q,J,x.deps.experimentApiProvider)},new Set(hcN(x.deps.registry).concat(x.deps.listeners)),x.deps.adEventLogger,x.deps.experimentApiProvider);
_.V1(x,L);return L};var agf=function(){};var T7B=function(x,L){_.Te.call(this);this.experimentApiProvider=x;this.eventLoggingSettingsProvider=L;this.eventCount=0;this.premiumAdSeenEventLogger=zD4()()};
_.p(T7B,_.Te);T7B.prototype.logEvent=function(x){Ca(this,x)};
var l0=function(x,L,D,S){Ca(x,L,void 0,void 0,void 0,D,void 0,void 0,void 0,D.adSlotLoggingData,void 0,void 0,S)},BS=function(x,L,D,S,Q){Ca(x,L,void 0,void 0,void 0,D,S?S:void 0,void 0,void 0,D.adSlotLoggingData,S?S.adLayoutLoggingData:void 0,void 0,Q);
D=_.yY().resolve(_.ZN(e7))==null?void 0:RR();L=D==null?void 0:D.adsSeenHotConfig;D=D==null?void 0:D.adsHotConfig;(L==null?0:L.logOnAdsSeen)&&(D==null?0:D.webEnablePremiumAdsSeenLogging)&&exG(x,S?S:void 0,Q)},YiQ=function(x,L,D){Ca(x,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,D,void 0,void 0,void 0,D.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:L})},Ca=function(x,L,D,S,Q,J,Z,y,E,P,v,V,h){h=h===void 0?0:h;
RxQ(x.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+L,"slot:",J,"layout:",Z,"ping:",y,"Opportunity:",{opportunityType:D,associatedSlotId:S,slotsFromOpportunity:Q,triggerBundle:E,adSlotLoggingData:P,adLayoutLoggingData:v});try{var H=function(){x.experimentApiProvider.get();if(L!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){L||_.Xj("Empty PACF event type",J,Z);var k=x.eventLoggingSettingsProvider.get();var T;(T=k.alwaysIncludeDebugData)||(k.experimentApiProvider.get(),T=
!1);k=T;T={eventType:L,eventOrder:++x.eventCount};var G={};J&&(G.slotData=vwO(k,J));if(Z){var U={type:Z.layoutType,controlFlowManagerLayer:Pas.get(Z.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};k&&(U.debugData={layoutId:Z.layoutId});G.layoutData=U}y&&(G.pingData={pingDispatchStatus:y.dispatchStatus,serializedAdPingMetadata:y.ping.serializedAdPingMetadata,pingIndex:y.index});E&&(G.triggerData=j9n(E.trigger,E.category));D&&(G.opportunityData=VBb(k,D,S,Q));T.adClientData=G;P&&(T.serializedSlotAdServingData=
P.serializedSlotAdServingDataEntry);v&&(T.serializedAdServingData=v.serializedAdServingDataEntry);V&&(T.errorInfo=V);_.Uh("adsClientStateChange",{adsClientEvent:T})}};
h&&h>0?_.TG(_.RP(),function(){return H()},h):H()}catch(k){RxQ(x.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.TG(_.RP(),function(){_.Xj(k instanceof Error?k:String(k),J,Z,{pacf_message:"exception during pacf logging"})})}},exG=function(x,L,D){if(L){var S=L.adLayoutLoggingData;
_.TG(_.RP(),function(){x.premiumAdSeenEventLogger!=null&&S&&_.Uh("adsSeenClientLogging",{serializedAdServingDataEntry:S.serializedAdServingDataEntry})},D!=null?D:0)}};var GsW=function(x,L){T7B.call(this,x,L)};
_.p(GsW,T7B);var CUH=function(){},RxQ=function(x,L){return _.u(L)};var U7_=function(){var x=new lmW;this.JSC$15495_adsControlFlowManager=(new shC(x)).JSC$15470_adsControlFlowManager},lmW=function(){_.Te.call(this);
var x=this;this.experimentApiProvider=new vbr(function(){return new CUH});
var L=new vbr(function(){return new Vsi(x.experimentApiProvider)});
this.adEventLogger=new GsW(this.experimentApiProvider,L);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.p(lmW,_.Te);var wld=function(){},B7B,$A=function(){B7B||(B7B=new wld);
return B7B},rW=function(x){if(!x.JSC$15506_externallyManagedSlotAdapterCallback){var L=(new U7_).JSC$15495_adsControlFlowManager;
x.JSC$15506_externallyManagedSlotAdapterCallback=L}return x.JSC$15506_externallyManagedSlotAdapterCallback},WY2=function(x,L,D){var S=L.opportunityType,Q=Error("Rh");
if(S!==void 0){var J=rW(x);hxR(J,S,void 0,D)}else _.Xj(Q,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});J=[];if(L.adSlotAndLayoutMetadata!==void 0){L=_.O(L.adSlotAndLayoutMetadata);for(var Z=L.next();!Z.done;Z=L.next()){var y=Z.value;if(Z=y.adSlotMetadata)if(J.push(Z),x.onSlotReceivedExternallyManaged(Z,D),y.adLayoutMetadata){y=_.O(y.adLayoutMetadata);for(var E=y.next();!E.done;E=y.next())x.onLayoutReceivedExternallyManaged(Z,E.value,D)}else D>0&&_.Xj("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
S,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else D>0&&_.Xj("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+S,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else D>0&&_.Xj("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+S,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(S!==void 0)x.onOpportunityProcessedExternallyManaged(S,J,void 0,D);else _.Xj(Q,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
wld.prototype.onSlotReceivedExternallyManaged=function(x,L){x=Ji(x);if(x instanceof Qx)_.Xj(x,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else rW(this).onSlotReceivedExternallyManaged(x,L)};
wld.prototype.onLayoutReceivedExternallyManaged=function(x,L,D){x=Ji(x);L=uvO(L);if(x instanceof Qx)_.Xj(x,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(L instanceof KF)_.Xj(L,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else rW(this).onLayoutReceivedExternallyManaged(x,L,D)};
wld.prototype.onOpportunityProcessedExternallyManaged=function(x,L,D,S){var Q=[];L=_.O(L);for(var J=L.next();!J.done;J=L.next())J=Ji(J.value),J instanceof Qx?_.Xj(J,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):Q.push(J);rW(this).onOpportunityProcessedExternallyManaged(x,Q,D,S)};
var qiG=function(x,L){L=Ji(L);if(L instanceof Qx)_.Xj(L,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var D=rW(x);l0(D.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",L);D=_.O(D.adsControlFlowEventListeners);for(var S=D.next();!S.done;S=D.next())S=U_(S.value,L),S.slotLifecycleStage!=="not_scheduled"&&WS(S.slot,S.slotLifecycleStage,"onSlotScheduled"),S.slotLifecycleStage="scheduled";x=rW(x);l0(x.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",L);x=_.O(x.adsControlFlowEventListeners);
for(D=x.next();!D.done;D=x.next())D.value.onSlotEntered(L)}},AJr=function(x,L){L=Ji(L);
if(L instanceof Qx)_.Xj(L,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var D=rW(x);l0(D.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",L);D=_.O(D.adsControlFlowEventListeners);for(var S=D.next();!S.done;S=D.next())S.value.onSlotExited(L);x=rW(x);l0(x.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",L);x=_.O(x.adsControlFlowEventListeners);for(D=x.next();!D.done;D=x.next())D.value.onSlotUnscheduled(L)}},$7h=function(x,L,D){L=Ji(L);
D=uvO(D);if(L instanceof Qx)_.Xj(L,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(D instanceof KF)_.Xj(D,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var S=rW(x);BS(S.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",L,D);S=_.O(S.adsControlFlowEventListeners);for(var Q=S.next();!Q.done;Q=S.next())Q.value.onLayoutScheduled(L,D);x=rW(x);BS(x.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",L,D);x=_.O(x.adsControlFlowEventListeners);
for(S=x.next();!S.done;S=x.next())gbW(S.value,L,D)}},NM=function(x,L,D){L=Ji(L);
D=uvO(D);if(L instanceof Qx)_.Xj(L,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(D instanceof KF)_.Xj(D,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var S=rW(x);BS(S.adEventLogger,d3b("normal"),L,D);S=_.O(S.adsControlFlowEventListeners);for(var Q=S.next();!Q.done;Q=S.next())Q.value.onLayoutExited(L,D,"normal");x=rW(x);x=_.O(x.adsControlFlowEventListeners);for(S=x.next();!S.done;S=x.next())m7i(S.value,L,D)}};_.i0=_.B(function(x){var L=_.ym(x,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});x=Object.assign({},L);var D=L.data;L=L.customCommandResolver;var S=(delete x.data,delete x.customCommandResolver,x);x=_.yB({visibilityCallback:function(y,E){var P,v=(P=D().interaction)==null?void 0:P.onFirstVisible;y&&(v&&_.Xf(v),S.setOnErrorHandler()&&gw0(E))},
showOption:_.T2});L=_.ik(function(){return D().interaction},L,function(){var y;
return(y=S.listenToTapEvent)==null?void 0:y.call(S)});
var Q=_.O(_.HB(!1,void 0,"wAC0Lc")),J=Q.next().value,Z=Q.next().value;Q=_.kO(function(y){var E;((E=S.setTouchEndHandler)==null?0:E.call(S))&&!J()&&(y.currentTarget.click(),Z(!0),setTimeout(function(){Z(!1)},100));
return!1});
return _.M("ad-image-view-model",{class:function(){var y,E=[((y=D().interaction)==null?0:y.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],P;((P=S.isGridViewEnabled)==null?0:P.call(S))&&E.push("ytwAdImageViewModelHostInGridView");return E.join(" ")},
el:_.Zt(x,L),"on:touchend":Q},_.M("div",{class:"ytwAdImageViewModelHostImageContainer"},_.M(_.Ku,{data:function(){var y;return{sources:D().imageSources,contentMode:(y=D().imageProperties)==null?void 0:y.contentMode}},
alt:function(){var y,E;return((y=D().interaction)==null?void 0:(E=y.accessibility)==null?void 0:E.label)||""},
targetHeight:S.targetHeight,targetWidth:S.targetWidth,preserveHeight:S.preserveHeight,preserveWidth:S.preserveWidth,useWidth:S.useWidth,style:function(){var y,E;return"vertical-align: bottom;"+(((y=D().background)==null?0:y.color)?"background-color:"+_.zF((E=D().background)==null?void 0:E.color)+";":"")},
className:function(){return S.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var y,E;return(E=(y=S.setDraggable)==null?void 0:y.call(S))!=null?E:void 0}})))},"fc");var rJB=_.B(function(x){var L=x.data,D=x.listenToTapEvent,S=function(){};
return _.M("ad-button-hover-overlay-view-model",{"on:click":_.kO(function(Q){if(_.u("enable_web_home_top_landscape_image_layout_legacy_click_command")){var J,Z=(J=L().interaction)==null?void 0:J.onTap;Z&&_.MF(Q.currentTarget,"yt-navigate",{endpoint:_.fI(Z)})}}),
class:function(){var Q;return((Q=L().interaction)==null?0:Q.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:_.Zt(_.yB({visibilityCallback:function(Q){var J,Z=(J=L().interaction)==null?void 0:J.onFirstVisible;Q&&Z&&_.Xf(Z)},
showOption:_.T2}),_.ik(function(){return L().interaction},void 0,function(){return!_.u("enable_web_home_top_landscape_image_layout_legacy_click_command")&&(D==null?void 0:D())}))},function(){return _.u("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.M(_.Fj,{data:function(){return L().button}},{adButtonViewModel:function(Q){return _.M(_.Rd,{data:Q.data,
customCommandResolver:S})}}):_.M(_.Fj,{data:function(){return L().button}},{adButtonViewModel:_.Rd})}())},"gc");var O3;_.dF(_.B(function(x){var L=x.data;x=_.yB({visibilityCallback:function(y,E){if(y){var P;(y=(P=L().interaction)==null?void 0:P.onFirstVisible)&&_.Xf(y);var v;if(P=(v=L().adLayoutData)==null?void 0:v.activeViewData)Zn(E,P),_.u("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&yx(E)})}else _.u("stop_av_measurement_on_detach")&&yx(E)},
showOption:_.T2,hideOption:eg});var D=_.ik(function(){return L().interaction},void 0,function(){return!0}),S=_.O(_.HB(!1,void 0,"VNDDT")),Q=S.next().value,J=S.next().value;
S=_.kO(function(){J(!0)});
var Z=_.kO(function(){J(!1)});
return _.M("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:_.Zt(x,s9n,D),"on:mouseenter":S,"on:mouseleave":Z},_.M("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.bc({"max-width":function(){return _.u("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.M("div",{class:function(){var y;
a:{var E;switch((y=_.g(L().thumbnailImage,GmQ))==null?void 0:(E=y.imageProperties)==null?void 0:E.renderingAspect){case "RENDERING_ASPECT_SQUARE":y="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":y="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}y=void 0}return y}},_.M(_.Fj,{data:function(){return L().thumbnailImage}},{adImageViewModel:function(y){return _.M(_.i0,
{data:y.data,
listenToTapEvent:!0,setTouchEndHandler:_.u("enable_top_landscape_image_experiment_dom_id_web")})}})),_.M("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.M(_.d,{cond:function(){var y,E,P;
return(y=_.g(L().thumbnailImage,GmQ))==null?void 0:(E=y.imageProperties)==null?void 0:(P=E.overlayIcon)==null?void 0:P.iconImage},
then:function(y){return _.M(_.Ku,{data:y,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.M("div",{class:function(){return Q()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.M(_.Fj,{data:function(){return L().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(y){return _.M(rJB,
{data:y.data,
listenToTapEvent:!0})}}))),_.M("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.M(_.Fj,{data:function(){return L().feedAdMetadata}},{feedAdMetadataViewModel:function(y){return _.M(WE,{data:y.data,
listenToTapEvent:!0,setTouchEndHandler:_.u("enable_top_landscape_image_experiment_dom_id_web")})}})))},"hc"),"compact-landscape-no-button-layout-view-model",{props:{data:_.pJ}});_.dF(_.B(function(x){var L=x.data;x=_.yB({visibilityCallback:function(y,E){if(y){var P;(y=(P=L().interaction)==null?void 0:P.onFirstVisible)&&_.Xf(y);var v;if(P=(v=L().adLayoutData)==null?void 0:v.activeViewData)Zn(E,P),_.u("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&yx(E)})}else _.u("stop_av_measurement_on_detach")&&yx(E)},
showOption:_.T2,hideOption:eg});var D=_.ic(_.Nj),S=_.ik(function(){return L().interaction}),Q={},J={},Z={};
return _.M("square-image-layout-view-model",{class:_.gF("ytwSquareImageLayoutViewModelHost",(Q.ytwSquareImageLayoutViewModelHostColumn=D,Q)),el:_.Zt(x,Tjn,S)},_.M("div",{class:_.gF("ytwSquareImageLayoutViewModelHostImage",(J.ytwSquareImageLayoutViewModelHostColumnImage=D,J))},function(){return _.M(_.Fj,{data:function(){return L().adImage}},{adImageViewModel:function(y){return _.M(_.i0,{data:y.data,
isGridViewEnabled:D,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.M("div",{class:_.gF("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(Z.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=D,Z))},_.M(_.Fj,{data:function(){return L().feedAdMetadata}},{feedAdMetadataViewModel:WE}),function(){return _.M(_.Fj,{data:function(){return L().adButton}},{adButtonViewModel:function(y){var E={};
return _.M(_.Rd,{data:y.data,className:_.gF((E.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,E.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=D,E))})}})}()))},"ic"),"square-image-layout-view-model",{props:{data:_.pJ}});_.dF(_.B(function(x){var L=x.data;var D=x.noBottomMargin;var S=x.typographyBump;x=_.yB({visibilityCallback:function(V,h){if(V){var H;(V=(H=L().interaction)==null?void 0:H.onFirstVisible)&&_.Xf(V);var k;if(H=(k=L().adLayoutData)==null?void 0:k.activeViewData)Zn(h,H),_.u("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&yx(h)})}else _.u("stop_av_measurement_on_detach")&&yx(h)},
showOption:_.T2,hideOption:eg});var Q=_.ik(function(){return L().interaction},void 0,function(){return _.u("enable_web_home_top_landscape_image_layout_level_click")}),J=function(){return L().interaction};
J!==void 0&&J!==null||_.X0(Error("Sh"));var Z=function(){var V,h,H;return(V=_.g(L().thumbnailImage,GmQ))==null?void 0:(h=V.background)==null?void 0:(H=h.backgroundImageSource)==null?void 0:H.imageSources};
J=_.O(_.HB(!1,void 0,"NFjwje"));var y=J.next().value,E=J.next().value;J=_.kO(function(){E(!0)});
var P=_.kO(function(){E(!1)}),v=function(){return y()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.M("top-landscape-image-layout-view-model",{class:function(){var V;return((V=L().interaction)==null?0:V.onTap)&&_.u("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:_.Zt(x,ecb,Q),"on:mouseenter":J,"on:mouseleave":P},_.M("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.M(_.d,{cond:function(){return Z()&&Z().length>0},
then:function(){return _.M("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.bc({top:"0","background-image":function(){return"url("+String(Z()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.M(_.d,{cond:function(){return!!L().adButtonHoverOverlay},
then:function(){return _.M("div",{class:v},_.M(_.Fj,{data:function(){return L().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:rJB}))}}),_.M("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.M(_.Fj,{data:function(){return L().thumbnailImage}},{adImageViewModel:function(V){return _.M(_.i0,{data:V.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.u("enable_web_home_top_landscape_image_layout_level_click")})}})),_.M("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.M(_.Ku,{data:{sources:[{clientResource:{imageName:_.u("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.M("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.M(_.Fj,{data:function(){return L().feedAdMetadata}},{feedAdMetadataViewModel:function(V){return _.M(WE,{data:V.data,
noBottomMargin:function(){return D==null?void 0:D()},
listenToTapEvent:function(){return _.u("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return S==null?void 0:S()}})}})))},"jc"),"top-landscape-image-layout-view-model",{props:{data:_.pJ,
noBottomMargin:_.pJ,typographyBump:_.pJ}});var N7_=_.B(function(x){var L=x.data,D=_.yB({visibilityCallback:function(Q){var J,Z=(J=L().interaction)==null?void 0:J.onFirstVisible;Q&&Z&&_.Xf(Z)},
showOption:_.T2});x=_.ik(function(){return L().interaction},x.customCommandResolver);
var S={};return _.M("ad-text-image-view-model",{class:_.gF("ytwAdTextImageViewModelHost",(S.ytwAdTextImageViewModelHostDarkBackground=function(){return L().style==="AD_TEXT_IMAGE_STYLE_DARK_BACKGROUND"},S)),
el:_.Zt(D,x),"aria-label":function(){var Q,J;return(Q=L().interaction)==null?void 0:(J=Q.accessibility)==null?void 0:J.label}},_.M("div",{class:"ytwAdTextImageViewModelHostHeadlineContainer"},_.M(_.kP,{text:function(){return L().headline},
className:"ytwAdTextImageViewModelHostHeadlineContainerHeadline",linkInheritColor:!0,noEndpoints:!0})),_.M(_.d,{cond:function(){return L().overlayIcon},
then:function(Q){return _.M("div",{class:"ytwAdTextImageViewModelHostOverlayIconContainer"},_.M(_.Ku,{data:Q,alt:"",className:"ytwAdTextImageViewModelHostOverlayIconContainerOverlayIcon"}))}}))},"kc");var isC=_.B(function(x){var L=x.data;return _.M("feed-ad-sitelink-view-model",{class:function(){var D;return((D=L().interaction)==null?0:D.onTap)?"ytwFeedAdSitelinkViewModelHostIsClickableAdComponent":"ytwFeedAdSitelinkViewModelHost"},
el:_.Zt(_.ik(function(){return L().interaction},x.customCommandResolver,void 0,function(){return!0})),
"aria-label":function(){var D,S;return(D=L().interaction)==null?void 0:(S=D.accessibility)==null?void 0:S.label},
role:"link",tabindex:0},_.M(_.kP,{text:function(){return L().headline},
className:"ytwFeedAdSitelinkViewModelHeadline",linkInheritColor:!0}))},"lc");var fmG=_.B(function(x){var L=x.data;x={};return _.M("feed-ad-sitelinks-carousel-view-model",{el:_.Zt(_.yB({visibilityCallback:function(D){var S,Q=(S=L().interaction)==null?void 0:S.onFirstVisible;D&&Q&&_.Xf(Q)},
showOption:_.T2})),class:_.gF("ytwFeedAdSitelinksCarouselViewModelHost",(x.ytwFeedAdSitelinksCarouselViewModelHostDefault=function(){return L().style==="FEED_AD_SITELINKS_STYLE_NONE"},x))},_.M(_.Fj,{data:function(){return L().sitelinks}},{feedAdSitelinkViewModel:isC}))},"mc");_.dF(_.B(function(x){var L=x.data;x=_.yB({visibilityCallback:function(Z,y){if(Z){var E;(Z=(E=L().interaction)==null?void 0:E.onFirstVisible)&&_.Xf(Z);var P;(E=(P=L().adLayoutData)==null?void 0:P.activeViewData)&&Zn(y,E)}},
showOption:_.T2});var D=_.O(_.HB(!1,void 0,"BzPhl")),S=D.next().value,Q=D.next().value;D=_.kO(function(){Q(!0)});
var J=_.kO(function(){Q(!1)});
return _.M("text-image-no-button-layout-view-model",{class:"ytwTextImageNoButtonLayoutViewModelHost",el:_.Zt(x),"on:mouseenter":D,"on:mouseleave":J},_.M("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainer"},_.M("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerImageContainer"},_.M(_.Fj,{data:function(){return L().textImage}},{adTextImageViewModel:N7_})),_.M("div",{class:function(){return S()?"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":
"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.M(_.Fj,{data:function(){return L().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(Z){return _.M(rJB,{data:Z.data,
listenToTapEvent:!0})}}))),_.M("div",{class:"ytwTextImageNoButtonLayoutViewModelHostMetadataContainer"},_.M(_.Fj,{data:function(){return L().feedAdMetadata}},{feedAdMetadataViewModel:function(Z){return _.M(WE,{data:Z.data,
listenToTapEvent:!0})}}),_.M(_.Fj,{data:function(){return L().feedAdSitelinksCarousel}},{feedAdSitelinksCarouselViewModel:fmG})))},"nc"),"text-image-no-button-layout-view-model",{props:{data:_.pJ}});_.dF(_.B(function(x){var L=x.data;var D=x.typographyBump;return _.M("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:_.Zt(_.yB({visibilityCallback:function(S,Q){if(S){var J;(S=(J=L().interaction)==null?void 0:J.onFirstVisible)&&_.Xf(S);var Z;(J=(Z=L().adLayoutData)==null?void 0:Z.activeViewData)&&Zn(Q,J)}},
showOption:_.T2,hideOption:eg}))},_.M("div",null,_.M(_.Fj,{data:function(){return L().videoLockup}},{lockupViewModel:function(S){return _.M(_.qr,{data:S.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:D})}})))},"oc"),"video-display-button-group-layout-view-model",{props:{data:_.pJ,
noBottomMargin:_.pJ,typographyBump:_.pJ}});_.dF(_.B(function(x){var L=x.data;var D=x.className;var S=x.typographyBump;return _.M("video-display-compact-button-group-layout-view-model",{el:_.Zt(_.yB({visibilityCallback:function(Q,J){if(Q){var Z;(Q=(Z=L().interaction)==null?void 0:Z.onFirstVisible)&&_.Xf(Q);var y;(Z=(y=L().adLayoutData)==null?void 0:y.activeViewData)&&Zn(J,Z)}},
showOption:_.T2})),class:_.gF("videoDisplayCompactButtonGroupLayoutViewModelHost",D)},_.M(_.Fj,{data:function(){return L().videoLockup}},{lockupViewModel:function(Q){return _.M(_.qr,{data:Q.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:S})}}))},"pc"),"video-display-compact-button-group-layout-view-model",{props:{data:_.pJ,
className:_.pJ,typographyBump:_.pJ}});_.dF(_.B(function(x){var L=x.data;var D=x.className;var S=x.typographyBump;return _.M("video-display-compact-buttoned-layout-view-model",{el:_.Zt(_.yB({visibilityCallback:function(Q,J){if(Q){var Z;(Q=(Z=L().interaction)==null?void 0:Z.onFirstVisible)&&_.Xf(Q);var y;(Z=(y=L().adLayoutData)==null?void 0:y.activeViewData)&&Zn(J,Z)}},
showOption:_.T2})),class:_.gF("videoDisplayCompactButtonedLayoutViewModelHost",D)},_.M(_.Fj,{data:function(){return L().videoLockup}},{lockupViewModel:function(Q){return _.M(_.qr,{data:Q.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:S})}}))},"qc"),"video-display-compact-buttoned-layout-view-model",{props:{data:_.pJ,
className:_.pJ,typographyBump:_.pJ}});_.dF(_.B(function(x){var L=x.data;var D=x.className;var S=x.typographyBump;var Q=function(){return L().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"},J=_.ic(_.Nj);
x=_.yB({visibilityCallback:function(P,v){if(P){var V=L();P=V.adLayoutData;var h;(V=(h=V.interaction)==null?void 0:h.onFirstVisible)&&_.Xf(V);(h=P==null?void 0:P.activeViewData)&&Zn(v,h)}},
showOption:_.T2});var Z=_.m5(function(){return{containerType:Q()&&J()?"CONTAINER_TYPE_GRID":"CONTAINER_TYPE_VERTICAL_LIST"}},void 0,"mu2jrc"),y=_.m5(function(){return Q()&&J()?"":Q()?"168px":"50%"},void 0,"qNDzkb"),E=_.m5(function(){return Q()&&J()?9999:void 0},void 0,"Ikn8Kb");
return _.M("video-display-compact-layout-view-model",{el:_.Zt(x),class:_.gF("videoDisplayCompactLayoutViewModelHost",D)},_.M(_.Fj,{data:function(){return L().videoLockup}},{lockupViewModel:function(P){return _.M(_.qr,{data:P.data,
containerLayoutConfig:Z,lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:y,thumbnailTargetWidth:E,typographyBump:S})}}))},"rc"),"video-display-compact-layout-view-model",{props:{data:_.pJ,
className:_.pJ,typographyBump:_.pJ}});_.dF(_.B(function(x){var L=x.data;var D=x.typographyBump;return _.M("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:_.Zt(_.yB({visibilityCallback:function(S,Q){if(S){var J;(S=(J=L().interaction)==null?void 0:J.onFirstVisible)&&_.Xf(S);var Z;(J=(Z=L().adLayoutData)==null?void 0:Z.activeViewData)&&Zn(Q,J)}},
showOption:_.T2,hideOption:eg}))},_.M("div",null,_.M(_.Fj,{data:function(){return L().videoLockup}},{lockupViewModel:function(S){return _.M(_.qr,{data:S.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:D})}})))},"sc"),"video-display-full-layout-view-model",{props:{data:_.pJ,
noBottomMargin:_.pJ,typographyBump:_.pJ}});_.obG=_.B(function(x){var L=x.data;x=_.x3("ad-card-badge-view-model");return _.M("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:x},_.M(_.d,{cond:function(){return L().imageBadge},
then:function(D){return _.M(_.Ku,{data:D,alt:""})}}))},"tc");var amA=_.B(function(x){var L=x.data;var D=x.customCommandResolver;return _.M("carousel-ad-card-image-view-model",{class:function(){var S;return((S=L().interaction)==null?0:S.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:_.Zt(_.yB({visibilityCallback:function(S){var Q,J=(Q=L().interaction)==null?void 0:Q.onFirstVisible;S&&J&&_.Xf(J)},
showOption:_.T2}),_.ik(function(){return L().interaction},D)),
"aria-label":function(){var S,Q;return(S=L().interaction)==null?void 0:(Q=S.accessibility)==null?void 0:Q.label}},_.M(_.Fj,{data:function(){return L().adImage}},{adImageViewModel:function(S){return _.M(_.i0,{data:S.data,
customCommandResolver:D})}}),_.M("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.M(_.Fj,{data:function(){return L().badge}},{adCardBadgeViewModel:_.obG})),_.M(_.UB,{model:{color:4}}))},"uc");var zx_=_.B(function(x){var L=_.O(_.HB(0,void 0,"JJ0QQc")),D=L.next().value;L.next();var S=L.next().value,Q=_.O(_.HB(!1,void 0,"f6YICe"));L=Q.next().value;var J=Q.next().value,Z;_.wH(function(){clearTimeout(Z)});
Q=_.kO(function(){var P;((P=x.animate)==null?0:P.call(x))?(J(!0),Z=setTimeout(function(){J(!1);y()},200)):y();
return!1});
var y=function(){S(function(P){return(P+x.numShownItems())%x.data().length})},E={};
return _.M("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.M("div",{class:_.gF("ytwHorizontalCarouselCarouselWrapper")},_.M("div",{class:_.gF("ytwHorizontalCarouselCarouselInnerWrapper",(E.ytwHorizontalCarouselAnimating=L,E))},_.M(_.R1,{each:x.data,keyBy:"INDEX"},function(P,v){return _.M("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.bc({"flex-basis":function(){return"calc((100% - (8px * "+(x.numShownItems()-1)+")) / "+x.numShownItems()+")"},
order:function(){var V=v-D();V<0&&(V+=x.data().length);return V}})},x.children(P,v))}))),_.M("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":Q},x.nextButton()))},"vc");var XlR=_.B(function(x){var L=x.data;var D=x.customCommandResolver;var S=x.expansive;return _.M("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:_.Zt(_.yB({visibilityCallback:function(Q){var J,Z=(J=L().interaction)==null?void 0:J.onFirstVisible;Q&&Z&&_.Xf(Z)},
showOption:_.T2}))},_.M(zx_,{data:function(){var Q;return((Q=L())==null?void 0:Q.carouselAdCards)||[]},
nextButton:function(){return _.M(_.Fj,{data:function(){return L().nextButton}},{buttonViewModel:function(Q){var J=Q.data;
return _.M(_.qP,{data:function(){return(S==null?0:S())?Object.assign({},J(),{style:"mono"}):J()},
className:_.u("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(Q){return _.M(_.Fj,{data:Q},{carouselAdCardImageViewModel:function(J){return _.M(amA,{data:J.data,customCommandResolver:D})}})}))},"wc");var cJC=_.B(function(x){var L=x.data;var D=x.customCommandResolver;var S=x.className;var Q=x.buttonClassName;var J=x.animationEntityKey;var Z=x.expansive;return _.M("carousel-button-view-model",{class:_.gF("ytwCarouselButtonViewModelHost",S)},_.M(_.Fj,{data:function(){return L().carousel}},{carouselAdCardCollectionViewModel:function(y){return _.M(XlR,{data:y.data,
customCommandResolver:D,expansive:Z})}}),_.M(_.Fj,{data:function(){return L().button}},{adButtonViewModel:function(y){var E=y.data;
return _.M(_.Rd,{data:function(){return(Z==null?0:Z())?Object.assign({},E(),{style:"AD_BUTTON_STYLE_TONAL"}):E()},
className:Q,customCommandResolver:D,animationEntityKey:J})}}))},"xc");_.nbG=_.B(function(x){var L=x.data;x=x.className;var D=_.x3("pivot-button-view-model");_.wO(function(){var S;((S=L())==null?0:S.backgroundColor)&&D.value.setAttribute("data-background-color",String(L().backgroundColor))});
return _.M("pivot-button-view-model",{el:D,class:_.gF("ytwPivotButtonViewModelHost",x)},_.M(_.lr,{command:function(){var S=L();S=S.onClickCommand?_.fI(S.onClickCommand):S.contentDescription?_.yy(S.contentDescription):void 0;return S},
ariaLabel:function(){return L().contentDescription}},_.M(_.d,{cond:function(){return L().thumbnail},
then:function(S){return _.M(_.Ku,{data:S,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.M(_.d,{cond:function(){return L().icon},
then:function(S){return _.M(_.YO,{icon:function(){return S().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"yc");_.tsd=_.B(function(x){var L=x.data;var D=x.buttonShapeOverrideables;return _.M("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.M(_.Fj,{data:function(){return L().buttonViewModels}},{buttonViewModel:function(S){return _.M(_.qP,{data:S.data,
buttonOverrides:D})},
likeButtonViewModel:function(S){return _.M(_.Ea,{data:S.data,buttonShapeOverrideables:D})},
dislikeButtonViewModel:function(S){return _.M(_.Ib,{data:S.data,buttonShapeOverrideables:D})},
toggleButtonViewModel:function(S){return _.M(_.JT,{data:S.data,buttonShapeOverrides:D})}}))},"zc");var xtd=_.B(function(x){var L=x.avatar;var D=x.headline;var S=x.badge;var Q=x.description;var J=x.expansive;x={};return _.M("yt-ad-metadata-shape",{class:_.gF("ytAdMetadataShapeHost",(x.ytAdMetadataShapeHostLarge=J,x))},_.M("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.M(_.d,{cond:L,then:function(Z){return _.M(_.fUB,{data:function(){return(J==null?0:J())?Object.assign({},Z(),{size:"AD_AVATAR_SIZE_M"}):Z()}})}}),_.M("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.M(_.kP,{text:D,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.M(_.d,{cond:S,then:function(Z){return _.M(_.wN,{data:function(){return(J==null?0:J())?Object.assign({},Z(),{style:"AD_BADGE_STYLE_STARK"}):Z()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.M("h2",{class:"ytAdMetadataShapeHostDescription"},_.M(_.kP,{text:Q,
linkInheritColor:!0,isHeadline:function(){return J==null?void 0:J()}})))},"Ac");var LZB=_.B(function(x){var L=x.data;var D=x.onShow;var S=x.expansive;x=_.ik(function(){return L().interaction});
_.wO(function(){var J,Z=(J=L().animatedRenderingConfig)==null?void 0:J.delayedSecondsToVisible;if(Z){var y=setTimeout(D,Z*1E3);_.wH(function(){clearTimeout(y)})}});
var Q={};return _.M("reels-ad-card-buttoned-view-model",{class:_.gF(function(){var J;return((J=L().interaction)==null?0:J.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(Q.ytwReelsAdCardButtonedViewModelHostExpansive=S,Q)),
el:_.Zt(x)},_.M(xtd,{avatar:function(){return _.g(L().avatar,TG2)},
headline:function(){return L().headline},
badge:function(){return _.g(L().adBadge,eSQ)},
description:function(){return L().description},
expansive:S}),_.M(_.Fj,{data:function(){return L().ctaButton}},{adButtonViewModel:function(J){var Z=J.data;
return _.M(_.Rd,{data:function(){return(S==null?0:S())?Object.assign({},Z(),{style:"AD_BUTTON_STYLE_FILLED"}):Z()}})}}))},"Bc");var Dti=_.B(function(x){var L=x.data;x=x.expansive;var D=_.u("web_ad_metadata_clickable")?_.ik(function(){return L().interaction},void 0,function(){return _.u("web_ad_metadata_clickable")}):void 0,S={};
S=_.Uv("ytwReelsAdMetadataViewModelHost",(S.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.u("web_ad_metadata_clickable"),S));return _.M("reels-ad-metadata-view-model",{class:S,el:_.Zt(D)},_.M(xtd,{avatar:function(){return _.g(L().avatar,TG2)},
headline:function(){return L().headline},
badge:function(){return _.g(L().adBadge,eSQ)},
description:function(){return L().description},
expansive:x}))},"Cc");var SJC={iconPosition:"icon-with-label",size:"L"},QyW=_.B(function(x){var L=x.data;var D=x.overlayDensity;var S=x.extractOverlay;var Q=x.extractActionBar;x=_.x3("reels-player-overlay-layout-view-model");var J=_.ZH(D,0),Z=function(){var H;return(H=L().reelsAdCardButtonedEntityKey)!=null?H:""},y=function(){return Z()+"/ad_button"},E=_.mF(uQh,Z),P=function(){var H,k;
return(k=(H=E())==null?void 0:H.value)!=null?k:!1},v=_.ic(RcG),V=function(){var H;
return Object.assign({},SJC,(v()||!((H=Q==null?void 0:Q())!=null&&H))&&{style:"overlay-dark"})};
D={};var h={};return _.M("reels-player-overlay-layout-view-model",{class:_.gF("ytwReelsPlayerOverlayLayoutViewModelHost",(D.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!L().extension},D.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},D.ytwReelsPlayerOverlayLayoutViewModelHostExpansiveOverlay=function(){return J()===1&&!(S==null?0:S())},D.ytwReelsPlayerOverlayLayoutViewModelHostExtractOverlay=function(){var H;
return(H=S==null?void 0:S())!=null?H:!1},D.ytwReelsPlayerOverlayLayoutViewModelHostExtractActionBar=function(){var H;
return(H=Q==null?void 0:Q())!=null?H:!1},D)),
"overlay-density":function(){return String(J())},
el:x},_.M("div",{class:_.gF("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(h.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},h))},_.M("div",{"aria-hidden":function(){return P()},
class:_.gF("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return P()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.bc({"transition-duration":function(){return U33(L())}})},_.M(_.Fj,{data:function(){return L().adMetadata}},{reelsAdMetadataViewModel:function(H){return _.M(Dti,{data:H.data,
expansive:function(){return J()===1}})}}),_.M(_.d,{cond:function(){return L().extension},
then:function(H){return _.M("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.M(_.Fj,{data:H},{adButtonViewModel:function(k){return _.M(_.Rd,{data:k.data,animationEntityKey:y,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(k){return _.M(cJC,{data:k.data,animationEntityKey:y,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return J()===1}})}}))}})),_.M("div",{"aria-hidden":function(){return!P()},
class:_.gF("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return P()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.bc({"transition-duration":function(){return U33(L())}})},_.M(_.Fj,{data:function(){return L().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(H){return _.M(LZB,{data:H.data,
onShow:function(){_.Ok(_.TR("booleanEntity",Z(),{key:Z(),value:!0}))},
expansive:function(){return J()===1}})}}))),_.M("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.M(_.Fj,{data:function(){return L().actions}},{reelActionBarViewModel:function(H){return _.M(_.tsd,{data:H.data,
buttonShapeOverrideables:V})}}),_.M(_.Fj,{data:function(){return L().menu}},{buttonViewModel:function(H){return _.M(_.qP,{data:H.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},V(),{type:"tonal"})}})}}),_.M(_.Fj,{data:function(){return L().pivotButton}},{pivotButtonViewModel:function(H){return _.M(_.nbG,{data:H.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"Dc");_.dF(QyW,"reels-player-overlay-layout-view-model",{props:{data:_.pJ,overlayDensity:_.pJ,extractOverlay:_.pJ,extractActionBar:_.pJ}});var fa=function(){var x=_.e.apply(this,arguments)||this;x.noBottomMargin=!1;x.overlayDensity=0;x.extractOverlay=!1;x.extractActionBar=!1;return x};
_.p(fa,_.e);_.K=fa.prototype;
_.K.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{carouselAdRenderer:"ytd-carousel-ad-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",displayAdRenderer:{component:"ytd-display-ad-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",squareImageLayoutViewModel:"square-image-layout-view-model",topLandscapeImageLayoutViewModel:{component:"top-landscape-image-layout-view-model",
properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonGroupLayoutViewModel:{component:"video-display-compact-button-group-layout-view-model",
properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonedLayoutViewModel:{component:"video-display-compact-buttoned-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactLayoutViewModel:{component:"video-display-compact-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",textImageNoButtonLayoutViewModel:"text-image-no-button-layout-view-model",
promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.u("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]]"}}}}}};
_.K.ready=function(){var x=this;zIf(function(){x.isAttached&&Dn(x.JSC$15551_storedAdSlotMetadata,x.JSC$15551_storedAdLayoutMetadata,x.adSlotMetadata,x.adLayoutMetadata)&&NM($A(),x.JSC$15551_storedAdSlotMetadata,x.JSC$15551_storedAdLayoutMetadata)})};
_.K.attached=function(){Dn(this.JSC$15551_storedAdSlotMetadata,this.JSC$15551_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&$7h($A(),this.JSC$15551_storedAdSlotMetadata,this.JSC$15551_storedAdLayoutMetadata)};
_.K.detached=function(){Dn(this.JSC$15551_storedAdSlotMetadata,this.JSC$15551_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&NM($A(),this.JSC$15551_storedAdSlotMetadata,this.JSC$15551_storedAdLayoutMetadata)};
_.K.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.K.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15551_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15551_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15551_storedAdLayoutMetadata!==void 0&&this.JSC$15551_storedAdSlotMetadata!==void 0&&NM($A(),this.JSC$15551_storedAdSlotMetadata,this.JSC$15551_storedAdLayoutMetadata),$7h($A(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15551_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15551_storedAdSlotMetadata=this.adSlotMetadata)};
_.J3.Object.defineProperties(fa.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null?void 0:x.adLayoutMetadata}}});
fa.prototype.onAdMetadataChanged=fa.prototype.onAdMetadataChanged;fa.prototype.onTypographyBumpChanged=fa.prototype.onTypographyBumpChanged;_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],fa.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],fa.prototype,"rendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],fa.prototype,"ytComponentBehavior",void 0);
_.A([_.F(),_.r("design:type",Object)],fa.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],fa.prototype,"noBottomMargin",void 0);_.A([_.F(),_.r("design:type",Object)],fa.prototype,"overlayDensity",void 0);_.A([_.F(),_.r("design:type",Object)],fa.prototype,"extractOverlay",void 0);_.A([_.F(),_.r("design:type",Object)],fa.prototype,"extractActionBar",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],fa.prototype,"typographyBump",void 0);
_.A([_.Y("data.adLayoutMetadata"),_.r("design:type",Object),_.r("design:paramtypes",[])],fa.prototype,"adLayoutMetadata",null);_.A([_.F(),_.r("design:type",Object)],fa.prototype,"adSlotMetadata",void 0);_.A([_.F1("ytd-video-display-full-buttoned-and-button-group-renderer"),_.r("design:type",HTMLElement)],fa.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);
_.A([_.bN("typographyBump"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],fa.prototype,"onTypographyBumpChanged",null);_.A([_.bN("adLayoutMetadata","adSlotMetadata"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],fa.prototype,"onAdMetadataChanged",null);_.A([_.w({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],fa);
_.q(fa,"ytd-in-feed-ad-layout-renderer",function(){if(iod!==void 0)return iod;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return iod=x},
{mode:_.Vm("kevlar_poly_si_batch_j028")?1:2});var J0i;var KZR;_.dF(_.wN,"ad-badge-view-model",{props:{data:_.pJ,hasDot:_.pJ,customCommandResolver:_.Il,adRenderingContextType:_.Il,usedInMasthead:_.Il}});_.dF(_.Rd,"ad-button-view-model",{props:{data:_.pJ,customCommandResolver:_.Il,className:_.Il,delayedClassName:_.Il,animationEntityKey:_.Il,isCompactWidth:_.Il,isContentWidth:_.Il}});var oY=function(){var x=_.e.apply(this,arguments)||this;x.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return x};
_.p(oY,_.e);_.K=oY.prototype;_.K.computeHasLiveDescription=function(x){return!(x==null||!x.liveDescription)};
_.K.computeHasByline=function(x){return!(x==null||!x.byline)};
_.K.computeUsesAdButtonViewModel=function(x){return!!_.g(x==null?void 0:x.cta,RSi)};
_.K.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"}}}}}};
_.K.onYtToggleButton=function(x){var L,D=(L=this.data)==null?void 0:L.videoReminderEntityKey;D&&this.ytdReduxBehavior.dispatch(_.TR("upcomingEventReminderStateEntity",D,{key:D,state:x.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.K.attached=function(){this.updateChannelBanner()};
_.K.dataChanged=function(){this.updateChannelBanner()};
_.K.videoReminderStateChanged=function(){var x;this.videoReminderState&&_.g((x=this.data)==null?void 0:x.cta,_.IQ)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.K.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var x=_.PD(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);x&&(x.startsWith("//")&&(x="https:"+x),this.hostElement.classList.add("channel-banner"),_.uN(this.hostElement,{"--ytvmh-channel-banner":"url("+x+")"}))}else _.u("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.K.onPlayerReady=function(){this.onIronResize()};
_.K.maybeFlushDebouncer=function(){_.u("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(x){var L;x=(L=x.getElementsByTagName("yt-attributed-string"))==null?void 0:L[0];jgh(x==null?void 0:x.polymerController)})};
_.K.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var x=_.jr(this.hostElement).querySelector("#live-description"),L;x&&((L=this.data)==null?0:L.shortLiveDescription)&&x.clientWidth<x.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
oY.prototype.onIronResize=oY.prototype.onIronResize;oY.prototype.videoReminderStateChanged=oY.prototype.videoReminderStateChanged;oY.prototype.dataChanged=oY.prototype.dataChanged;oY.prototype.onYtToggleButton=oY.prototype.onYtToggleButton;_.A([_.b(_.XO),_.r("design:type",Object)],oY.prototype,"ironResizableBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],oY.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],oY.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],oY.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],oY.prototype,"ytdReduxBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],oY.prototype,"data",void 0);_.A([_.F({selectorArgs:["data.videoReminderEntityKey"],selector:k70}),_.r("design:type",Object)],oY.prototype,"videoReminderState",void 0);
_.A([_.F({reflectToAttribute:!0,value:_.u("web_modern_buttons")}),_.r("design:type",Boolean)],oY.prototype,"rounded",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.r("design:type",Boolean)],oY.prototype,"hasLiveDescription",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeHasByline(data)"}),_.r("design:type",Boolean)],oY.prototype,"hasByline",void 0);
_.A([_.F({value:"AD_RENDERING_CONTEXT_TYPE_BROWSE"}),_.r("design:type",String)],oY.prototype,"adRenderingContextType",void 0);_.A([_.F({value:!0}),_.r("design:type",Boolean)],oY.prototype,"isMasthead",void 0);_.A([_.F({computed:"computeUsesAdButtonViewModel(data)"}),_.r("design:type",Boolean)],oY.prototype,"usesAdButtonViewModel",void 0);
_.A([_.F({reflectToAttribute:!0,value:_.u("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.r("design:type",Boolean)],oY.prototype,"resizableAdBannerSafariFix",void 0);_.A([_.sY("yt-formatted-string"),_.r("design:type",Array)],oY.prototype,"formattedStrings",void 0);_.A([_.F1("#cta-button"),_.r("design:type",HTMLElement)],oY.prototype,"ctaButton",void 0);
_.A([_.mX("yt-toggle-button"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],oY.prototype,"onYtToggleButton",null);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],oY.prototype,"dataChanged",null);_.A([_.bN("videoReminderState"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],oY.prototype,"videoReminderStateChanged",null);
_.A([_.mX("iron-resize"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],oY.prototype,"onIronResize",null);_.A([_.w({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],oY);
_.q(oY,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(KZR!==void 0)return KZR;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return KZR=x},{mode:1});var OYQ;var aY=function(){var x=_.e.apply(this,arguments)||this;x.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};x.isLocked=!1;return x};
_.p(aY,_.e);_.K=aY.prototype;_.K.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.K.onExpandedChanged=function(){this.expanded&&_.P$(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.K.onMouseOver=function(){this.maybeExpand()};
_.K.onTap=function(){this.maybeExpand()};
_.K.onExpandableTileExpanding=function(x){x!==this&&(this.expanded=!1)};
_.K.onExpandableTileLockAndCollapse=function(x){this.isLocked=!0;x!==this&&(this.expanded=!1)};
_.K.onExpandableTileUnlock=function(){this.isLocked=!1};
aY.prototype.onTap=aY.prototype.onTap;aY.prototype.onMouseOver=aY.prototype.onMouseOver;aY.prototype.onExpandedChanged=aY.prototype.onExpandedChanged;_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],aY.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],aY.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],aY.prototype,"data",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],aY.prototype,"expanded",void 0);_.A([_.GV("expanded"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],aY.prototype,"onExpandedChanged",null);_.A([_.mX("mouseover"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],aY.prototype,"onMouseOver",null);_.A([_.mX("tap"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],aY.prototype,"onTap",null);
_.A([_.w({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],aY);
_.q(aY,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(OYQ!==void 0)return OYQ;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return OYQ=x},{mode:1});var ZYi;var zW=function(){var x=_.e.apply(this,arguments)||this;x.buttonOverrides={style:"overlay"};x.useYtdPlayer=_.u("use_ytd_player_for_desktop_masthead");x.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};x.playbackFinished=!1;x.JSC$15565_playerManager=null;x.JSC$15565_mastheadCounter=new hzQ;return x};
_.p(zW,_.e);_.K=zW.prototype;_.K.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"}}}};
_.K.created=function(){this.JSC$15565_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$15565_playerManager=new Di)};
_.K.ready=function(){var x=this;this.JSC$15565_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var L=_.jr(this.hostElement).querySelector("#player");this.useYtdPlayer?L.style.display="none":(this.ytdPlayer.style.display="none",Kn2(this.JSC$15565_playerManager,L,function(){x.onPlaybackEnded()}),_.jr(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var D;
((D=x.data)==null?0:D.navigationEndpoint)&&_.MF(x.hostElement,"yt-navigate",{endpoint:x.data.navigationEndpoint})}))};
_.K.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$15565_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.K.attached=function(){var x=this;_.xi(function(){x.maybePlayVideo()})};
_.K.maybePlayVideo=function(){var x=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$15565_playerManager.playVideo(),this.getPlayerPromise().then(function(){x.JSC$15565_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.K.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15565_playerManager.stopVideo()};
_.K.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var x,L={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((x=this.data.playbackStartMs)!=null?x:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(L);this.setupYtdPlayer()}else Z4G(this.JSC$15565_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(O4i(this.JSC$15565_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.K.getPlayerPromise=function(){return this.JSC$15565_playerManager.getPlayerPromise()};
_.K.onYtToggleButton=function(x){this.useYtdPlayer?this.toggleMute(x.detail.toggled):x.detail.toggled?this.JSC$15565_playerManager.mute():this.JSC$15565_playerManager.unMute()};
_.K.onYtNavigate=function(x){var L=ZDO(x.detail.endpoint),D=yAp(this.data.clickthroughReportingData);L&&D&&(x.detail.endpoint.watchEndpoint?x.detail.tempData=D:_.J_(L,D,30))};
_.K.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.K.onExpandedChanged=function(){this.expanded?(_.P$(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.K.onMouseOver=function(){this.maybeExpand()};
_.K.onTap=function(){this.maybeExpand()};
_.K.onExpandableTileExpanding=function(x){x!==this&&(this.stopVideo(),this.expanded=!1)};
_.K.onExpandableTileLockAndCollapse=function(x){x!==this&&(this.isLocked=!0,this.expanded=!1)};
_.K.onExpandableTileUnlock=function(){this.isLocked=!1};
_.K.lockAndCollapseExpandableTiles=function(){_.dg(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.K.unlockExpandableTiles=function(){_.dg(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.K.setupYtdPlayer=function(){var x=this,L;return _.I(function(D){if(D.nextAddress==1)return D.yield(x.ytdPlayer.getPlayerPromise(),2);L=D.yieldResult;L.addEventListener("onStateChange",function(S){x.onPlayerStateChange(S)});
L.addEventListener("onCueRangeExit",function(S){x.onCueRangeExit(S)});
_.Y2(D)})};
_.K.onPlayerStateChange=function(x){if(x===1&&(x=this.ytdPlayer.getPlayer())){var L=x.getCurrentTime(),D,S,Q=L+((S=(D=this.data)==null?void 0:D.playbackDurationMs)!=null?S:0)/1E3;x.addCueRange("playback",L,Q);this.JSC$15565_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.K.onCueRangeExit=function(x){x==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.K.toggleMute=function(x){var L=this,D;return _.I(function(S){if(S.nextAddress==1)return S.yield(L.ytdPlayer.getPlayerPromise(),2);D=S.yieldResult;x?D.mute():D.unMute();_.Y2(S)})};
zW.prototype.onTap=zW.prototype.onTap;zW.prototype.onMouseOver=zW.prototype.onMouseOver;zW.prototype.onExpandedChanged=zW.prototype.onExpandedChanged;zW.prototype.onYtNavigate=zW.prototype.onYtNavigate;zW.prototype.onYtToggleButton=zW.prototype.onYtToggleButton;zW.prototype.dataChanged=zW.prototype.dataChanged;_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],zW.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],zW.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],zW.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],zW.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],zW.prototype,"expanded",void 0);_.A([_.F(),_.r("design:type",Object)],zW.prototype,"buttonOverrides",void 0);
_.A([_.F(),_.r("design:type",Object)],zW.prototype,"useYtdPlayer",void 0);_.A([_.F1("#ytd-player"),_.r("design:type",Object)],zW.prototype,"ytdPlayer",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],zW.prototype,"dataChanged",null);_.A([_.mX("yt-toggle-button"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],zW.prototype,"onYtToggleButton",null);
_.A([_.mX("yt-navigate"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],zW.prototype,"onYtNavigate",null);_.A([_.GV("expanded"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],zW.prototype,"onExpandedChanged",null);_.A([_.mX("mouseover"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],zW.prototype,"onMouseOver",null);
_.A([_.mX("tap"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],zW.prototype,"onTap",null);_.A([_.w({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],zW);
_.q(zW,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(ZYi!==void 0)return ZYi;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return ZYi=x},{mode:1});var y02;var XJ=function(){return _.e.apply(this,arguments)||this};
_.p(XJ,_.e);XJ.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
XJ.prototype.onShow=function(){var x=_.jr(this.hostElement).querySelector("#live-description"),L;x&&((L=this.data)==null?0:L.shortLiveDescription)&&x.clientWidth<x.scrollWidth&&this.hostElement.classList.add("short-live-description")};
XJ.prototype.onYtToggleButton=function(x){var L,D=(L=this.data)==null?void 0:L.videoReminderEntityKey;D&&this.ytdReduxBehavior.dispatch(_.TR("upcomingEventReminderStateEntity",D,{key:D,state:x.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
XJ.prototype.videoReminderStateChanged=function(){var x;this.videoReminderState&&_.g((x=this.data)==null?void 0:x.cta,_.IQ)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
XJ.prototype.videoReminderStateChanged=XJ.prototype.videoReminderStateChanged;XJ.prototype.onYtToggleButton=XJ.prototype.onYtToggleButton;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],XJ.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],XJ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],XJ.prototype,"ytdReduxBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],XJ.prototype,"data",void 0);
_.A([_.F({selectorArgs:["data.videoReminderEntityKey"],selector:k70}),_.r("design:type",Object)],XJ.prototype,"videoReminderState",void 0);_.A([_.mX("yt-toggle-button"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],XJ.prototype,"onYtToggleButton",null);_.A([_.bN("videoReminderState"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],XJ.prototype,"videoReminderStateChanged",null);
_.A([_.w({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],XJ);
_.q(XJ,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(y02!==void 0)return y02;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return y02=x},{mode:_.Vm("kevlar_poly_si_batch_j065")?1:2});var IGR;var cS=function(){var x=_.e.apply(this,arguments)||this;x.useYtdPlayer=_.u("use_ytd_player_for_desktop_masthead");x.buttonOverrides={style:"overlay"};x.JSC$15573_playerManager=null;x.JSC$15573_mastheadCounter=new hzQ;x.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return x};
_.p(cS,_.e);_.K=cS.prototype;_.K.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"}}}};
_.K.created=function(){this.JSC$15573_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$15573_playerManager=new Di)};
_.K.ready=function(){var x=this;this.JSC$15573_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var L;(L=this.embeddedPlayer)==null||L.remove()}else{var D;(D=this.ytdPlayer)==null||D.remove();Kn2(this.JSC$15573_playerManager,this.embeddedPlayer,function(){x.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){x.data&&x.data.navigationEndpoint&&_.MF(x.hostElement,"yt-navigate",{endpoint:x.data.navigationEndpoint})})}};
_.K.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$15573_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.K.dataChanged=function(){var x=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var L=!this.data.disableAutoPlayback,D,S={autoplay:L,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((D=this.data.playbackStartMs)!=null?D:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(L?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(S);this.setupYtdPlayer()}else Z4G(this.JSC$15573_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(O4i(this.JSC$15573_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$15573_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.dg(x.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");x.JSC$15573_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.K.getPlayerPromise=function(){return this.JSC$15573_playerManager.getPlayerPromise()};
_.K.onYtToggleButton=function(x){this.useYtdPlayer?this.toggleMute(x.detail.toggled):x.detail.toggled?this.JSC$15573_playerManager.mute():this.JSC$15573_playerManager.unMute()};
_.K.onYtNavigate=function(x){var L=ZDO(x.detail.endpoint),D=yAp(this.data.clickthroughReportingData);L&&D&&(x.detail.endpoint.watchEndpoint?x.detail.tempData=D:_.J_(L,D,30))};
_.K.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15573_playerManager.stopVideo()};
_.K.setupYtdPlayer=function(){var x=this,L;return _.I(function(D){if(D.nextAddress==1)return D.yield(x.ytdPlayer.getPlayerPromise(),2);L=D.yieldResult;L.addEventListener("onStateChange",function(S){x.onPlayerStateChange(S)});
L.addEventListener("onCueRangeExit",function(S){x.onCueRangeExit(S)});
_.Y2(D)})};
_.K.onPlayerStateChange=function(x){if(x===1&&(x=this.ytdPlayer.getPlayer())){var L=x.getCurrentTime(),D,S,Q=L+((S=(D=this.data)==null?void 0:D.playbackDurationMs)!=null?S:0)/1E3;x.addCueRange("playback",L,Q);_.dg(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$15573_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.K.onCueRangeExit=function(x){x==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.K.toggleMute=function(x){var L=this,D;return _.I(function(S){if(S.nextAddress==1)return S.yield(L.ytdPlayer.getPlayerPromise(),2);D=S.yieldResult;x?D.mute():D.unMute();_.Y2(S)})};
_.J3.Object.defineProperties(cS.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var x,L;if(!((x=this.data)==null?0:(L=x.accessibilityData)==null?0:L.label))return"Ad primary link";var D,S;return _.p6("AD_TITLE",{title:(D=this.data)==null?void 0:(S=D.accessibilityData)==null?void 0:S.label})}}});
cS.prototype.onYtMastheadHidden=cS.prototype.onYtMastheadHidden;cS.prototype.onYtNavigate=cS.prototype.onYtNavigate;cS.prototype.onYtToggleButton=cS.prototype.onYtToggleButton;cS.prototype.dataChanged=cS.prototype.dataChanged;_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],cS.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],cS.prototype,"ytRendererBehavior",void 0);
_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],cS.prototype,"ytActionHandlerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],cS.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],cS.prototype,"useYtdPlayer",void 0);_.A([_.F1("ytd-toggle-button-renderer"),_.r("design:type",Object)],cS.prototype,"muteButton",void 0);_.A([_.F(),_.r("design:type",Object)],cS.prototype,"buttonOverrides",void 0);
_.A([_.Y("data.accessibilityData.label"),_.r("design:type",String),_.r("design:paramtypes",[])],cS.prototype,"titleAriaLabel",null);_.A([_.F1("#replay-button"),_.r("design:type",Object)],cS.prototype,"replayButton",void 0);_.A([_.F1("#player-container"),_.r("design:type",Object)],cS.prototype,"playerContainer",void 0);_.A([_.F1("#player"),_.r("design:type",Object)],cS.prototype,"embeddedPlayer",void 0);_.A([_.F1("#ytd-player"),_.r("design:type",Object)],cS.prototype,"ytdPlayer",void 0);
_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],cS.prototype,"dataChanged",null);_.A([_.mX("yt-toggle-button"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],cS.prototype,"onYtToggleButton",null);_.A([_.mX("yt-navigate"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],cS.prototype,"onYtNavigate",null);
_.A([_.mX("yt-masthead-hidden"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],cS.prototype,"onYtMastheadHidden",null);_.A([_.w({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],cS);
_.q(cS,"ytd-video-masthead-ad-primary-video-renderer",function(){if(IGR!==void 0)return IGR;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return IGR=x},{mode:2});var EFB;var na=function(){var x=_.e.apply(this,arguments)||this;x.collapsed=!1;x.impressionResolver=_.xe();x.JSC$15577_activeViewMeasurementDataResolver=_.xe();x.actionMap={"yt-mute-ad-action":"handleMuteAd"};return x};
_.p(na,_.e);_.K=na.prototype;_.K.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"}}}};
_.K.ready=function(){var x=this;_.jr(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){x.expandAd()});
this.hostElement.addEventListener("yt-action",function(L){if(L.detail.actionName==="yt-service-request"){var D=L.detail.args[1];D.videoMastheadAdMuteCommand&&(x.collapseAd(D.videoMastheadAdMuteCommand.encryptedMastheadId),L.stopPropagation())}})};
_.K.attached=function(){var x=this;_.xi(function(){x.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(L){if(!x.collapsed){L=_.O(L);for(var D=L.next();!D.done;D=L.next())D=D.value,Xg(D.baseUrl,D.attributionSrcMode);x.data.impressionCommand=void 0}});
this.JSC$15577_activeViewMeasurementDataResolver.promise.then(function(L){x.ytdActiveViewBehavior.enableActiveViewMeasurement(L,15)});
_.u("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&x.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.K.dataChanged=function(){var x;((x=this.data.impressionCommand)==null?0:x.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var L;((L=this.data)==null?0:L.activeView)&&this.JSC$15577_activeViewMeasurementDataResolver.resolve(this.data.activeView);(x=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(x.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.K.computeWidescreen=function(x){var L;return!!(x&&((L=_.g(x,m_r))==null?0:L.isWidescreen))};
_.K.computeExpandable=function(x){return!!(x&&x.length>0)};
_.K.onIronResize=function(){if(this.expandable){var x=_.jr(this.hostElement).querySelector("#expandable-tile-container :first-child");x&&!x.expanded&&(x.expanded=!0)}};
_.K.handleMuteAd=function(){this.collapseAd(null)};
_.K.restoreCollapsedState=function(x){this.collapsed=_.FI().get("HIDDEN_MASTHEAD_ID")===x};
_.K.collapseAd=function(x){if(x){var L=_.FI();L.set("HIDDEN_MASTHEAD_ID",x);L.save()}(x=_.jr(this.hostElement).querySelector("#video"))&&_.MF(x,"yt-masthead-hidden");this.collapsed=!0};
_.K.expandAd=function(){var x=_.FI();x.set("HIDDEN_MASTHEAD_ID",!1);x.save();location.reload()};
_.K.detached=function(){_.u("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
na.prototype.onIronResize=na.prototype.onIronResize;na.prototype.dataChanged=na.prototype.dataChanged;_.A([_.b(_.XO),_.r("design:type",Object)],na.prototype,"ironResizableBehavior",void 0);_.A([_.b(IF),_.r("design:type",Object)],na.prototype,"ytdActiveViewBehavior",void 0);_.A([_.b(_.jC),_.r("design:type",Object)],na.prototype,"ytdGridStateAwareBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],na.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],na.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],na.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],na.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.r("design:type",Boolean)],na.prototype,"widescreen",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.r("design:type",Boolean)],na.prototype,"expandable",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],na.prototype,"collapsed",void 0);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],na.prototype,"dataChanged",null);
_.A([_.mX("iron-resize"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],na.prototype,"onIronResize",null);_.A([_.w({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],na);
_.q(na,"ytd-video-masthead-ad-v3-renderer",function(){if(EFB!==void 0)return EFB;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return EFB=x},{mode:2});var te=function(){return _.e.apply(this,arguments)||this};
_.p(te,_.e);_.K=te.prototype;_.K.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.K.ready=function(){var x=this;zIf(function(){x.isAttached&&Dn(x.JSC$15582_storedAdSlotMetadata,x.JSC$15582_storedAdLayoutMetadata,x.adSlotMetadata,x.adLayoutMetadata)&&NM($A(),x.JSC$15582_storedAdSlotMetadata,x.JSC$15582_storedAdLayoutMetadata)})};
_.K.attached=function(){Dn(this.JSC$15582_storedAdSlotMetadata,this.JSC$15582_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&$7h($A(),this.JSC$15582_storedAdSlotMetadata,this.JSC$15582_storedAdLayoutMetadata)};
_.K.detached=function(){Dn(this.JSC$15582_storedAdSlotMetadata,this.JSC$15582_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&NM($A(),this.JSC$15582_storedAdSlotMetadata,this.JSC$15582_storedAdLayoutMetadata)};
_.K.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15582_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15582_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15582_storedAdLayoutMetadata!==void 0&&this.JSC$15582_storedAdSlotMetadata!==void 0&&NM($A(),this.JSC$15582_storedAdSlotMetadata,this.JSC$15582_storedAdLayoutMetadata),$7h($A(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15582_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15582_storedAdSlotMetadata=this.adSlotMetadata)};
_.J3.Object.defineProperties(te.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null?void 0:x.adLayoutMetadata}}});
te.prototype.onAdMetadataChanged=te.prototype.onAdMetadataChanged;_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],te.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],te.prototype,"ytComponentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],te.prototype,"data",void 0);_.A([_.Y("data.adLayoutMetadata"),_.r("design:type",Object),_.r("design:paramtypes",[])],te.prototype,"adLayoutMetadata",null);
_.A([_.F(),_.r("design:type",Object)],te.prototype,"adSlotMetadata",void 0);_.A([_.bN("adLayoutMetadata","adSlotMetadata"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],te.prototype,"onAdMetadataChanged",null);_.A([_.w({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],te);
_.q(te,"ytd-page-top-ad-layout-renderer",function(){if(J0i!==void 0)return J0i;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return J0i=
x},{mode:_.Vm("kevlar_poly_si_batch_j070")?1:2});var Mth;var xp=function(){var x=_.e.apply(this,arguments)||this;x.noBottomMargin=!1;x.overlayDensity=0;x.typographyBump=!1;x.extractOverlay=!1;x.extractActionBar=!1;return x};
_.p(xp,_.e);_.K=xp.prototype;
_.K.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]]"}}}}}};
_.K.ready=function(){var x=this;zIf(function(){x.isAttached&&x.adSlotMetadata&&AJr($A(),x.adSlotMetadata)})};
_.K.attached=function(){if(this.adSlotMetadata){var x;if(this.adSlotMetadata===((x=this.data)==null?void 0:x.adSlotMetadata))qiG($A(),this.adSlotMetadata);else{var L;_.qy(Error("Th`"+this.adSlotMetadata+"`"+((L=this.data)==null?void 0:L.adSlotMetadata)))}}};
_.K.detached=function(){this.adSlotMetadata&&AJr($A(),this.adSlotMetadata)};
_.K.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.K.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&AJr($A(),this.adSlotMetadata),qiG($A(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.J3.Object.defineProperties(xp.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var x,L,D=_.g((x=this.data)==null?void 0:(L=x.fulfillmentContent)==null?void 0:L.fulfilledLayout,_.Y1W),S;return(x=(S=_.g(D==null?void 0:D.renderingContent,bWC))==null?void 0:S.layout)?x.toLowerCase().replace(/_/g,"-"):""}}});
xp.prototype.onAdSlotMetadataChanged=xp.prototype.onAdSlotMetadataChanged;xp.prototype.onTypographyBumpChanged=xp.prototype.onTypographyBumpChanged;_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],xp.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],xp.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],xp.prototype,"rendererBehavior",void 0);
_.A([_.F(),_.r("design:type",Object)],xp.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],xp.prototype,"noBottomMargin",void 0);_.A([_.F(),_.r("design:type",Object)],xp.prototype,"overlayDensity",void 0);_.A([_.F(),_.r("design:type",Object)],xp.prototype,"typographyBump",void 0);_.A([_.F(),_.r("design:type",Object)],xp.prototype,"extractOverlay",void 0);_.A([_.F(),_.r("design:type",Object)],xp.prototype,"extractActionBar",void 0);
_.A([_.F1("ytd-in-feed-ad-layout-renderer"),_.r("design:type",HTMLElement)],xp.prototype,"inFeedAdLayoutRenderer",void 0);_.A([_.F({reflectToAttribute:!0}),_.Y("data"),_.r("design:type",String),_.r("design:paramtypes",[])],xp.prototype,"layout",null);_.A([_.bN("typographyBump"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],xp.prototype,"onTypographyBumpChanged",null);
_.A([_.bN("data.adSlotMetadata"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],xp.prototype,"onAdSlotMetadataChanged",null);_.A([_.w({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],xp);
_.q(xp,"ytd-ad-slot-renderer",function(){if(Mth!==void 0)return Mth;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return Mth=x},{mode:_.Vm("kevlar_poly_si_batch_j077")?
1:2});var dth;var Lz=function(){return _.e.apply(this,arguments)||this};
_.p(Lz,_.e);_.K=Lz.prototype;_.K.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"}}}};
_.K.maybeComputeHref=function(){return null};
_.K.onTap=function(){};
_.K.onThumbnailContainerClick=function(x){this.onClick(x)};
_.K.onClick=function(x){var L,D=(L=this.data)==null?void 0:L.navigationEndpoint;D&&_.g(D,_.L6)&&(this.ytSparklesClickLocationBehavior.handleClick(D,x,!1),x.stopPropagation())};
_.K.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var x=_.O(this.data.impressionUrls),L=x.next();!L.done;L=x.next())L=L.value,AHc(L,rHG(L));this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",Lz.JSC$15590_DEFAULT_CLICK_LOCATION_BEHAVIOR,Lz.JSC$15590_CLICK_LOCATION_ID_MAP);this.thumbnail&&(x=this.thumbnail.getElementsByTagName("a"),x.length>0&&(x=x.namedItem("thumbnail"))&&
x.removeAttribute("href"))}};
_.K.attached=function(){var x=this;_.u("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&x.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.K.detached=function(){_.u("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.J3.Object.defineProperties(Lz.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.u("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.u("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
Lz.prototype.dataChanged=Lz.prototype.dataChanged;Lz.prototype.onTap=Lz.prototype.onTap;Lz.JSC$15590_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
Lz.JSC$15590_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"}];_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Lz.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Lz.prototype,"ytRendererBehavior",void 0);_.A([_.b(IF),_.r("design:type",Object)],Lz.prototype,"ytdActiveViewBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],Lz.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],Lz.prototype,"ytdReduxBehavior",void 0);_.A([_.b(_.RF.YtSparklesClickLocationBehavior),_.r("design:type",Object)],Lz.prototype,"ytSparklesClickLocationBehavior",void 0);
_.A([_.F({selector:_.Nj}),_.r("design:type",Object)],Lz.prototype,"isGridViewEnabled",void 0);_.A([_.Y("isGridViewEnabled"),_.F({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Lz.prototype,"watchFeedBigThumbs",null);_.A([_.Y("isGridViewEnabled"),_.F({reflectToAttribute:!0}),_.r("design:type",String),_.r("design:paramtypes",[])],Lz.prototype,"thumbnailWidth",null);_.A([_.F(),_.r("design:type",Object)],Lz.prototype,"data",void 0);
_.A([_.F1("ytd-thumbnail"),_.r("design:type",HTMLElement)],Lz.prototype,"thumbnail",void 0);_.A([_.mX("tap"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Lz.prototype,"onTap",null);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Lz.prototype,"dataChanged",null);_.A([_.w({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],Lz);
_.q(Lz,"ytd-compact-promoted-video-renderer",function(){if(dth!==void 0)return dth;var x=document.createElement("template");_.m(x,'\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>');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return dth=x},{mode:1});var P9W;_.BD("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var D1=function(){return _.e.apply(this,arguments)||this};
_.p(D1,_.e);D1.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],D1.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],D1.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],D1.prototype,"data",void 0);_.A([_.w({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],D1);
_.q(D1,"ytd-search-pyv-renderer",function(){if(P9W!==void 0)return P9W;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return P9W=x},{mode:1});var jyB;_.BD("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var SD=function(){var x=_.e.apply(this,arguments)||this;x.roundedContainer=!0;x.JSC$15598_handleOpenPostCommentDialogActionAfterStamp=!1;x.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return x};
_.p(SD,_.e);_.K=SD.prototype;
_.K.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}}};
_.K.onStampFinished=function(){this.JSC$15598_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.K.handleSignalActionOpenPostCommentDialogAction=function(){var x=_.jr(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");x?x.openDialog():this.JSC$15598_handleOpenPostCommentDialogActionAfterStamp=!0};
_.K.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.K.computeHideBorder=function(){return this.isInEngagementPanel};
_.K.computeIsCompact=function(){return this.isInEngagementPanel};
_.K.computeUsesCompactLockup=function(x){return x==="BACKSTAGE_SURFACE_TYPE_HOME"||x==="BACKSTAGE_SURFACE_TYPE_SEARCH"||x==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||x==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||x==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||x==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.K.computeUsesFullLockup=function(){var x,L=(x=this.data)==null?void 0:x.post,D;x=(D=_.g(L,BGd))==null?void 0:D.surface;var S;D=(S=_.g(L,ARd))==null?void 0:S.originalPost;var Q;if(S=x||((Q=_.g(D,BGd))==null?void 0:Q.surface))return!this.computeUsesCompactLockup(S)&&this.useUpdatedRepostUi;var J;return((J=_.g(L,ARd))==null?void 0:J.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.J3.Object.defineProperties(SD.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var x,L;return((L=_.g((x=this.data)==null?void 0:x.post,BGd))==null?void 0:L.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null?void 0:x.useUpdatedRepostUi}}});
SD.prototype.onYtCommentModerationPanelEmpty=SD.prototype.onYtCommentModerationPanelEmpty;SD.prototype.onStampFinished=SD.prototype.onStampFinished;_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],SD.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],SD.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],SD.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.F(),_.r("design:type",Object)],SD.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],SD.prototype,"roundedContainer",void 0);_.A([_.F({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.r("design:type",Boolean)],SD.prototype,"hideBorder",void 0);_.A([_.F({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.r("design:type",Boolean)],SD.prototype,"isCompact",void 0);
_.A([_.F({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.r("design:type",Boolean)],SD.prototype,"usesFullLockup",void 0);_.A([_.mX("yt-rendererstamper-finished"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],SD.prototype,"onStampFinished",null);
_.A([_.mX("ytd-comment-moderation-panel-empty"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],SD.prototype,"onYtCommentModerationPanelEmpty",null);_.A([_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],SD.prototype,"isInEngagementPanel",null);_.A([_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],SD.prototype,"useUpdatedRepostUi",null);
_.A([_.w({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],SD);
_.q(SD,"ytd-backstage-post-thread-renderer",function(){if(jyB!==void 0)return jyB;var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return jyB=x},{mode:1});var vFd;var yd=function(){var x=_.e.apply(this,arguments)||this;x.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return x};
_.p(yd,_.e);yd.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
yd.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var x=this.data.thumbnail.thumbnails;this.isDarkTheme&&(x=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(x=_.PD(x,24,void 0,"height"))?x:void 0}};
yd.prototype.onDarkModeToggledAction=function(x){this.isDarkTheme=x};
yd.prototype.computeHasText=function(){var x;return!((x=this.data)==null||!x.text)};
_.J3.Object.defineProperties(yd.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.$z(this.bannerImageUrl))+'");'}}});
yd.prototype.computeHasText=yd.prototype.computeHasText;yd.prototype.computeBannerImageUrl=yd.prototype.computeBannerImageUrl;_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],yd.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],yd.prototype,"actionHandlerBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],yd.prototype,"ytRendererBehavior",void 0);
_.A([_.F(),_.r("design:type",Object)],yd.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Boolean)],yd.prototype,"isDarkTheme",void 0);_.A([_.F(),_.r("design:type",String)],yd.prototype,"bannerImageUrl",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.r("design:type",Boolean)],yd.prototype,"hasText",void 0);_.A([_.bN("data","isDarkTheme"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],yd.prototype,"computeBannerImageUrl",null);
_.A([_.bN("data.text"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],yd.prototype,"computeHasText",null);_.A([_.Y("bannerImageUrl"),_.r("design:type",Object),_.r("design:paramtypes",[])],yd.prototype,"bannerStyle",null);_.A([_.w({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],yd);
_.q(yd,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(vFd!==void 0)return vFd;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return vFd=x},{mode:1});var Vth;var I0=function(){return _.e.apply(this,arguments)||this};
_.p(I0,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],I0.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],I0.prototype,"data",void 0);_.A([_.w({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],I0);
_.q(I0,"ytd-backstage-zero-state-renderer",function(){if(Vth!==void 0)return Vth;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Vth=x},{mode:1});var hJ2;var EM=function(){return _.e.apply(this,arguments)||this};
_.p(EM,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],EM.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],EM.prototype,"data",void 0);_.A([_.F({computed:"computeIcon_(data.icon)"}),_.r("design:type",String)],EM.prototype,"icon",void 0);_.A([_.w({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],EM);
_.q(EM,"ytd-post-filter-zero-state-renderer",function(){if(hJ2!==void 0)return hJ2;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return hJ2=x},{mode:1});var HYG;var uHd={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},M0=function(){return _.e.apply(this,arguments)||this};
_.p(M0,_.e);M0.prototype.configureRendererStamper=function(){return uHd};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],M0.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],M0.prototype,"rendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],M0.prototype,"data",void 0);_.A([_.F({computed:"computeIcon_(data.icon)"}),_.r("design:type",String)],M0.prototype,"icon",void 0);_.A([_.w({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],M0);
_.q(M0,"ytd-post-scheduling-zero-state-renderer",function(){if(HYG!==void 0)return HYG;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return HYG=x},{mode:1});var gFh;var dJ=function(){var x=_.e.apply(this,arguments)||this;x.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return x};
_.p(dJ,_.e);dJ.prototype.onTabsActivate=function(x){this.data&&this.data.tabs&&_.MF(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[x.detail.selected].navigationEndpoint})};
dJ.prototype.shouldShowTotalCount=function(x){return x&&x.totalCount!==void 0};
dJ.prototype.handleUpdatePostsTotalCountAction=function(x){var L=this.get(["data.tabs",1,"totalCount"]),D=this.get("updatePostsTotalCountAction.updateType",x);x=this.get("updatePostsTotalCountAction.number",x);L!==void 0&&D!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&x&&(D==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(L)+x):D==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(L)-x))};
_.J3.Object.defineProperties(dJ.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var x=0,L=this.data.tabs.length;x<L;x++)if(this.data.tabs[x].selected)return x;return 0}}});
_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],dJ.prototype,"actionHandlerBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],dJ.prototype,"rendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],dJ.prototype,"data",void 0);_.A([_.Y("data.tabs"),_.r("design:type",Number),_.r("design:paramtypes",[])],dJ.prototype,"selected",null);_.A([_.w({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],dJ);
_.q(dJ,"ytd-post-stream-filter-renderer",function(){if(gFh!==void 0)return gFh;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return gFh=x},{mode:1});var kwR;var PT=function(){return _.e.apply(this,arguments)||this};
_.p(PT,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],PT.prototype,"kevlarBehaviors",void 0);_.A([_.F(),_.r("design:type",Object)],PT.prototype,"data",void 0);_.A([_.w({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],PT);
_.q(PT,"ytd-channel-age-gate-renderer",function(){if(kwR!==void 0)return kwR;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return kwR=x},{mode:1});var ph2;_.BD("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var jD=function(){var x=_.e.apply(this,arguments)||this;x.data=null;return x};
_.p(jD,_.e);jD.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.J3.Object.defineProperties(jD.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var x,L,D;return((x=this.data)==null?0:(L=x.title)==null?0:(D=L.runs)==null?0:D.length)?147:160}}});
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],jD.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],jD.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.Y("data"),_.r("design:type",Number),_.r("design:paramtypes",[])],jD.prototype,"imageSizePx",null);_.A([_.w({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],jD);
_.q(jD,"ytd-channel-owner-empty-state-renderer",function(){if(ph2!==void 0)return ph2;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return ph2=x},{mode:1});var mtG;var bYA;var vT=function(){var x=_.e.apply(this,arguments)||this;x.boundSubmitSearch=function(){x.submitSearch()};
x.boundClearSearch=function(){x.clearSearch()};
return x};
_.p(vT,_.e);_.K=vT.prototype;_.K.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]]"}}}}}};
_.K.toggleClearButton=function(){this.hideClearButton=DR4||!this.input.value};
_.K.submitOnEnterKeyUp=function(x){x.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.K.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.K.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.K.submit=function(){_.MF(this.hostElement,"search-query-changed",this.input.value)};
vT.prototype.toggleClearButton=vT.prototype.toggleClearButton;_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],vT.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],vT.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],vT.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],vT.prototype,"data",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],vT.prototype,"hideClearButton",void 0);_.A([_.F(),_.r("design:type",Object)],vT.prototype,"boundSubmitSearch",void 0);_.A([_.F(),_.r("design:type",Object)],vT.prototype,"boundClearSearch",void 0);_.A([_.F1("#input"),_.r("design:type",Object)],vT.prototype,"input",void 0);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],vT.prototype,"toggleClearButton",null);
_.A([_.w({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],vT);
_.q(vT,"ytd-channel-switcher-search-box-renderer",function(){if(bYA!==void 0)return bYA;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return bYA=x},{mode:1});var YJB;var Vd=function(){var x=_.e.apply(this,arguments)||this;x.boundSubmit=function(){x.submit()};
return x};
_.p(Vd,_.e);_.K=Vd.prototype;_.K.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"}}}}};
_.K.ready=function(){var x=this;this.form.addEventListener("submit",function(L){return x.onSubmit(L)})};
_.K.onSubmit=function(x){x.preventDefault();return!1};
_.K.toggleClearButton=function(){this.hideClearButton=DR4||!this.input.value};
_.K.submitOnEnterKeyUp=function(x){x.keyCode===13&&this.submit()};
_.K.submit=function(){var x=this.data.endpoint,L=(0,_.wk.unsafeClone)(x);_.g(L,_.mt)?_.g(L,_.mt).query=this.input.value:_.g(L,_.b1)&&(_.g(L,_.b1).query=this.input.value);var D=_.g(L.commandMetadata,_.gg);(D==null?0:D.url)?(D.url=_.rz(D.url,"query",this.input.value),_.MF(this.hostElement,"yt-navigate",{endpoint:L})):_.g(L,HW2)?(_.g(L,HW2).channelSwitcherQuery=this.input.value,_.yY().resolve(_.E2).resolveCommand(L,{form:{element:this.hostElement}})):(x=Error("Uh`"+JSON.stringify(x)),_.BI(x))};
_.K.getUrl=function(x){return this.get("commandMetadata.webCommandMetadata.url",x)};
Vd.prototype.toggleClearButton=Vd.prototype.toggleClearButton;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Vd.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Vd.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Vd.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],Vd.prototype,"hideClearButton",void 0);
_.A([_.F(),_.r("design:type",Object)],Vd.prototype,"boundSubmit",void 0);_.A([_.F1("#form"),_.r("design:type",HTMLFormElement)],Vd.prototype,"form",void 0);_.A([_.F1("#input"),_.r("design:type",Object)],Vd.prototype,"input",void 0);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Vd.prototype,"toggleClearButton",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],Vd);
_.q(Vd,"ytd-search-box-renderer",function(){if(YJB!==void 0)return YJB;var x=document.createElement("template");_.m(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-box-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<form id="form" action="[[getUrl(data.endpoint)]]" class="style-scope ytd-search-box-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[getSimpleString(data.placeholderText)]]" max-length="100" name="query" no-label-float="" use-v2-underline="" value="[[getSimpleString(data.searchText)]]" on-input="toggleClearButton" on-keyup="submitOnEnterKeyUp" class="style-scope ytd-search-box-renderer">\n    <div id="search-button" slot="prefix" prefix="" class="style-scope ytd-search-box-renderer"></div>\n    <div id="clear-button" slot="suffix" suffix="" class="style-scope ytd-search-box-renderer"></div>\n  </tp-yt-paper-input>\n</form>\n');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return YJB=x},{mode:2});var hb=function(){var x=_.e.apply(this,arguments)||this;x.showSearchBox=!0;return x};
_.p(hb,_.e);hb.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],hb.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],hb.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],hb.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],hb.prototype,"showSearchBox",void 0);_.A([_.w({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],hb);
_.q(hb,"ytd-channel-switcher-header-renderer",function(){if(mtG!==void 0)return mtG;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return mtG=x},{mode:1});var FZh;var syA;var HT=function(){var x=_.e.apply(this,arguments)||this;x.isDisplayed=!0;return x};
_.p(HT,_.e);_.K=HT.prototype;_.K.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.K.dataChanged=function(){this.isDisplayed=!0};
_.K.computeType=function(x){return x||"UNKNOWN"};
_.K.onYtServiceRequestCompleted=function(x){x.stopPropagation();this.isDisplayed=!1};
_.K.onClose=function(){this.isDisplayed=!1};
HT.prototype.onYtServiceRequestCompleted=HT.prototype.onYtServiceRequestCompleted;HT.prototype.dataChanged=HT.prototype.dataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],HT.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],HT.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],HT.prototype,"data",void 0);
_.A([_.F({computed:"computeType(data.type)",reflectToAttribute:!0}),_.r("design:type",String)],HT.prototype,"type",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],HT.prototype,"isDisplayed",void 0);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],HT.prototype,"dataChanged",null);
_.A([_.mX("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],HT.prototype,"onYtServiceRequestCompleted",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],HT);
_.q(HT,"ytd-alert-with-button-renderer",function(){if(syA!==void 0)return syA;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return syA=x},{mode:1});var ug=function(){var x=_.e.apply(this,arguments)||this;x.noResult=!1;x.enableAlertBanner=!1;x.dismissedAlertBanner=!1;x.hideCreateChannelButton=!1;x.boundDismissAlertBanner=function(){x.dismissAlertBanner()};
x.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return x};
_.p(ug,_.e);_.K=ug.prototype;_.K.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.K.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.K.updateChannelSwitcherAction=function(x){var L;x=(L=_.g(x,Mpi))==null?void 0:L.page;_.g(x,Eoh)!==void 0&&(this.data=_.g(x,Eoh))};
_.K.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]]"}}}}}};
_.K.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.K.searchQueryChanged=function(x,L){if(this.data&&this.data.contents&&this.data.contents.length){x=[];var D=[];this.hideCreateChannelButton=this.noResult=!1;for(var S=document.querySelectorAll("ytd-account-item-renderer"),Q=_.O(S),J=Q.next();!J.done;J=Q.next())J=J.value,D.push(J),J.style.display="block";this.resetRightBorder(D);if(L){this.hideCreateChannelButton=!0;for(D=1;D<this.data.contents.length;D++)if(J=this.data.contents[D],_.g(J,vxG)){var Z=void 0,y=void 0;Q=(Z=_.g(J,vxG))==null?void 0:(y=
Z.accountName)==null?void 0:y.simpleText;y=Z=void 0;J=(Z=_.g(J,vxG))==null?void 0:(y=Z.channelHandle)==null?void 0:y.simpleText;(Z=S[D-1])&&Q&&_.d0(Q,L)?x.push(Z):_.u("enable_handle_search_on_channel_switcher")&&Z&&J&&_.d0(J.toString(),L.toString())?x.push(Z):Z.style.display="none"}x.length===0&&(this.noResult=!0);this.resetRightBorder(x)}}};
_.K.resetRightBorder=function(x){for(var L=0;L<x.length;L++)x[L].style.borderRight=!this.hideCreateChannelButton&&(L+2)%3===0||this.hideCreateChannelButton&&(L+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.K.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.K.setShowSearchBox=function(x){if(x&&x.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var L=0;L<x.contents.length;L++)_.g(x.contents[L],_.SK)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.K.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.J3.Object.defineProperties(ug.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null?0:x.contents)}}});
ug.prototype.onContinuationItemsUpdated=ug.prototype.onContinuationItemsUpdated;ug.prototype.searchQueryChanged=ug.prototype.searchQueryChanged;ug.prototype.onDataChanged=ug.prototype.onDataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],ug.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],ug.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],ug.prototype,"actionHandlerBehavior",void 0);_.A([_.b(_.HS),_.r("design:type",Object)],ug.prototype,"ytContinuationHandlerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],ug.prototype,"data",void 0);_.A([_.F1("ytd-channel-switcher-header-renderer"),_.r("design:type",Object)],ug.prototype,"channelSwitcherHeaderRenderer",void 0);_.A([_.F(),_.r("design:type",Object)],ug.prototype,"noResult",void 0);
_.A([_.F(),_.r("design:type",Object)],ug.prototype,"enableAlertBanner",void 0);_.A([_.F(),_.r("design:type",Object)],ug.prototype,"dismissedAlertBanner",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],ug.prototype,"hideCreateChannelButton",void 0);_.A([_.Y("data.contents"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],ug.prototype,"isLoading",null);_.A([_.F(),_.r("design:type",Object)],ug.prototype,"boundDismissAlertBanner",void 0);
_.A([_.F({computed:"computeButtonOverride()"}),_.r("design:type",Object)],ug.prototype,"buttonOverride",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ug.prototype,"onDataChanged",null);_.A([_.mX("search-query-changed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,String]),_.r("design:returntype")],ug.prototype,"searchQueryChanged",null);
_.A([_.mX("yt-next-continuation-data-updated"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],ug.prototype,"onContinuationItemsUpdated",null);_.A([_.w({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],ug);
_.q(ug,"ytd-channel-switcher-page-renderer",function(){if(FZh!==void 0)return FZh;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return FZh=x},{mode:1});var TLR;var eJ2;var gJ=function(){var x=_.e.apply(this,arguments)||this;x.images=[];x.selectedImageIndex=0;return x};
_.p(gJ,_.e);_.K=gJ.prototype;
_.K.ready=function(){_.Uk(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.Uk(this.JSC$15643_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.Uk(this.JSC$15643_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.Uk(this.JSC$15643_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.K.onThumbnailClick=function(x){if(x=x.event_.detail)this.selectedImageIndex=this.images.indexOf(x)};
_.K.updateImageThumbnails=function(x){x=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:x.event_.detail});this.images.splice(this.selectedImageIndex,1,x);this.images=[].concat(_.lP(this.images))};
_.K.cancelImageRepositions=function(){this.selectedImageIndex=0;_.MF(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.K.saveImageRepositions=function(){this.selectedImageIndex=0;_.MF(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.J3.Object.defineProperties(gJ.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var x=this;return(this.images||[]).map(function(L,D){return{image:L,selected:D===x.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],gJ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F1("ytd-backstage-image-preview-renderer"),_.r("design:type",Object)],gJ.prototype,"JSC$15643_imagePreviewContainer",void 0);_.A([_.F1(".thumbnail-images-container"),_.r("design:type",HTMLElement)],gJ.prototype,"thumbnailImagesContainer",void 0);_.A([_.F(),_.r("design:type",Array)],gJ.prototype,"images",void 0);
_.A([_.F(),_.r("design:type",Object)],gJ.prototype,"repositionInstructions",void 0);_.A([_.F(),_.r("design:type",Object)],gJ.prototype,"selectedImageIndex",void 0);_.A([_.Y("images","selectedImageIndex"),_.r("design:type",Array),_.r("design:paramtypes",[])],gJ.prototype,"thumbnailRendererDatas",null);_.A([_.Y("images","selectedImageIndex"),_.r("design:type",Object),_.r("design:paramtypes",[])],gJ.prototype,"selectedImageData",null);
_.A([_.w({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],gJ);
_.q(gJ,"ytd-backstage-multi-image-reposition-renderer",function(){if(eJ2!==void 0)return eJ2;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return eJ2=x},{mode:1});var kp=function(x,L){_.Bc.call(this);this.uploadUrl=x;this.channelId=L;this.imagesUploadData=[]};
_.p(kp,_.Bc);kp.prototype.getAllUploadStatuses=function(){var x=this,L,D,S;return _.I(function(Q){if(Q.nextAddress==1)return Q.yield(RJi(x),2);L=Q.yieldResult;D=L.get("succeed");S=L.get("failed");return Q.return(D.concat(S))})};
var C9G=function(x){var L,D;return _.I(function(S){if(S.nextAddress==1)return S.yield(RJi(x),2);L=S.yieldResult;D=L.get("failed");D.length>0&&GwW(x,D);return S.return(x.getAllUploadStatuses())})},RJi=function(x){var L,D,S,Q,J,Z,y;
return _.I(function(E){if(E.nextAddress==1)return L=new Map,E.yield(Promise.allSettled(x.imagesUploadData.map(function(P){return P.uploadPromise})),2);
D=E.yieldResult;S=[];Q=_.O(D);for(J=Q.next();!J.done;J=Q.next())Z=J.value,Z.status==="fulfilled"&&S.push(Z.value);y=x.imagesUploadData.map(function(P){return P.image}).filter(function(P){return S.every(function(v){return v.id!==P.id})});
L.set("succeed",S);L.set("failed",y);return E.return(L)})},GwW=function(x,L){L=_.O(L);
for(var D=L.next();!D.done;D=L.next()){var S=x;D=D.value;lGR(S,D.id)>=0&&S.cancel(D.id);var Q=new Utd(D),J=_.Qwh(S.uploadUrl,{"X-YouTube-ChannelId":S.channelId},D.imageBlob);Q.transfer=J;Q.uploadPromise=whW(J,D);S.imagesUploadData.push(Q);J.run()}};
kp.prototype.cancel=function(x){var L=lGR(this,x);L!==-1&&((L=this.imagesUploadData[L].transfer)&&L.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(D){return D.image.id!==x}))};
var lGR=function(x,L){return x.imagesUploadData.findIndex(function(D){return D.image.id===L})},whW=function(x,L){return new Promise(function(D,S){x.listen("l",function(){var Q=x.getResponseText();
Q?(Q=JSON.parse(Q).encryptedBlobId,L.encryptedBlobId=Q,D(L)):S("upload failed")});
x.listen("n",function(){S("upload failed")})})},Utd=function(x){this.image=x};var wRO=function(x,L,D,S,Q){this.id=x;this.imageBlob=L;this.localImageSrc=D;this.naturalWidth=S;this.naturalHeight=Q;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 BLC=[".jpeg",".jpg",".png"],pz=function(){var x=_.e.apply(this,arguments)||this;x.showImagesPreview=!1;x.pollOptions=[];x.errorMessage="";x.optionPlaceholderText="";x.optionDefaultText="";x.JSC$15654_imageId=0;x.maxFileSizeMb=0;x.maxAspectRatio=0;x.invalidFileSizeError="";x.invalidAspectRatioError="";x.invalidFileTypeError="";x.imageSelector=new Gd(null,"single_file",BLC);return x};
_.p(pz,_.e);_.K=pz.prototype;_.K.ready=function(){_.Uk(this.imageSelector,"j",this.onImageSelect,!1,this);_.Uk(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.Uk(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.K.dataChanged=function(){var x,L,D=_.g((x=this.data)==null?void 0:(L=x.cellTemplate)==null?void 0:L.onEmptyCellTap,$Vd);if(D&&D.uploadUrl&&D.channelId){var S;this.maxFileSizeMb=((S=D.imageValidationInfo)==null?void 0:S.maxFileSizeMb)||0;var Q;this.maxAspectRatio=((Q=D.imageValidationInfo)==null?void 0:Q.allowedMaxAspectRatio)||0;var J;this.invalidFileSizeError=this.getSimpleString((J=this.data)==null?void 0:J.invalidFileSizeError);var Z;this.invalidAspectRatioError=this.getSimpleString((Z=this.data)==
null?void 0:Z.invalidAspectRatioError);var y;this.invalidFileTypeError=this.getSimpleString((y=this.data)==null?void 0:y.invalidFileTypeError);this.uploadManager=new kp(D.uploadUrl,D.channelId)}};
_.K.onEditorInfoChange=function(){this.optionPlaceholderText=_.SR(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.SR(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.K.observeAddImageError=function(){this.errorMessage!==""&&_.MF(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.K.onPollOptionsChange=function(){for(var x=!1,L=[],D=0;D<this.pollOptions.length;D++){var S=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(D+1);this.pollOptions[D].placeholderText!==S?(x=!0,L.push(Object.assign({},this.pollOptions[D],{placeholderText:S}))):L.push(this.pollOptions[D])}x&&(this.pollOptions=L);this.isValid()?_.MF(this.hostElement,"yt-commentbox-post-enable"):_.MF(this.hostElement,"yt-commentbox-post-disable")};
_.K.createPollOptions=function(x){var L=[],D;x=(D=x==null?void 0:x.minPollOptions)!=null?D:0;for(D=0;D<x;D++)L.push(this.createPollOption());return L};
_.K.onImageSelect=function(x){var L=this,D,S,Q,J,Z,y;return _.I(function(E){if(E.nextAddress==1){if(L.selectedImageIndex===void 0)return E.jumpTo(0);D=x.files[0];L.errorMessage="";S=L.validateImage(D);if(S!=="")return L.errorMessage=S,E.return();Q=new ge(L.maxAspectRatio,!1,!0);return E.yield(Q.transform(D),3)}if(E.nextAddress!=4)return J=E.yieldResult,J.transformedData?J.invalidAspectRatio?(L.errorMessage=L.invalidAspectRatioError,E.return()):E.yield(Bj0(L.JSC$15654_imageId,x.files[0],J.transformedData),
4):(L.errorMessage=L.invalidFileTypeError,E.return());Z=E.yieldResult;L.JSC$15654_imageId++;GwW(L.uploadManager,[Z]);y=Object.assign({},L.pollOptions[L.selectedImageIndex],{image:Z});L.pollOptions.splice(L.selectedImageIndex,1,y);L.refreshPollOptions();_.MF(L.hostElement,"yt-backstage-poll-image-select");_.Y2(E)})};
_.K.validateImage=function(x){return x.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.K.refreshPollOptions=function(){this.pollOptions=[].concat(_.lP(this.pollOptions))};
_.K.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.lP(this.pollOptions),[this.createPollOption()]))};
_.K.onRemovePollOption=function(x){var L=this.pollOptions[x.model.index];L&&L.image&&this.uploadManager.cancel(L.image.id);this.pollOptions.splice(x.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.MF(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.K.onTextInput=function(){this.refreshPollOptions()};
_.K.onImageButtonClick=function(x){this.selectedImageIndex=x.model.index;this.imageSelector.click()};
_.K.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.K.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.K.saveImageRepositions=function(x){x=x.event_.detail;for(var L=0,D=[],S=_.O(this.pollOptions),Q=S.next();!Q.done;Q=S.next())Q=Q.value,Q.image!==void 0?(Q=Object.assign({},Q,{image:x[L]}),D.push(Q),L++):D.push(Q);this.showImagesPreview=!1;this.pollOptions=[].concat(_.lP(D))};
_.K.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 x=0,L=_.O(this.pollOptions),D=L.next();!D.done;D=L.next())if(D=D.value,D.optionText.trim()!==""||D.image!==void 0){if(!D.image||this.hasCustomOptionText&&D.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;x++}return x>=Number(this.editorInfo.minPollOptions)};
_.K.getAllUploadStatuses=function(){var x=this,L,D,S,Q;return _.I(function(J){if(J.nextAddress==1)return J.yield(x.uploadManager.getAllUploadStatuses(),2);L=J.yieldResult;D=_.O(L);for(S=D.next();!S.done;S=D.next())if(Q=S.value,Q.encryptedBlobId===void 0)return J.return(C9G(x.uploadManager));return J.return(L)})};
_.K.getPostCreateOptions=function(){for(var x=[],L=_.O(this.pollOptions),D=L.next();!D.done;D=L.next())D=D.value,D.image!==void 0&&x.push({text:this.hasCustomOptionText?D.optionText:D.placeholderText,image:D.image});return x};
_.K.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.K.createButtonRenderer=function(x,L){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:x,accessibilityData:{accessibilityData:{label:this.getSimpleString(x)}},isDisabled:L}};
_.K.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.K.computeThumbnailRendererData=function(x){return x?{image:x,selected:!1}:void 0};
_.K.getSimpleString=function(x){return _.SR(x)};
_.K.updateOptionTextFromBinding=function(x){if(x.target){var L=Array.from(_.jr(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(x.target);if(L>=0){var D;this.pollOptions[L].optionText=(D=x.detail.value)!=null?D:""}}};
_.J3.Object.defineProperties(pz.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var x,L;return this.pollOptions.length<((L=(x=this.editorInfo)==null?void 0:x.maxPollOptions)!=null?L:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(x){return x.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(x){return x.image}).map(function(x){return x.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(x){return x.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var x,L=(x=this.data)==null?void 0:x.addOptionButtonText;return L?this.createButtonRenderer(L,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var x,L=(x=this.data)==null?void 0:x.repositionImagesButtonLabel;return L?this.createButtonRenderer(L,!this.hasImages):void 0}}});
pz.prototype.onPollOptionsChange=pz.prototype.onPollOptionsChange;pz.prototype.observeAddImageError=pz.prototype.observeAddImageError;pz.prototype.onEditorInfoChange=pz.prototype.onEditorInfoChange;pz.prototype.dataChanged=pz.prototype.dataChanged;_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],pz.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F1("ytd-backstage-multi-image-reposition-renderer"),_.r("design:type",Object)],pz.prototype,"imageRepositionContainer",void 0);
_.A([_.F(),_.r("design:type",Object)],pz.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],pz.prototype,"editorInfo",void 0);_.A([_.F(),_.r("design:type",kp)],pz.prototype,"uploadManager",void 0);_.A([_.F(),_.r("design:type",Object)],pz.prototype,"showImagesPreview",void 0);_.A([_.F(),_.r("design:type",Array)],pz.prototype,"pollOptions",void 0);_.A([_.F(),_.r("design:type",Object)],pz.prototype,"errorMessage",void 0);
_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],pz.prototype,"dataChanged",null);_.A([_.GV("editorInfo"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],pz.prototype,"onEditorInfoChange",null);_.A([_.bN("errorMessage"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],pz.prototype,"observeAddImageError",null);
_.A([_.GV("pollOptions"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],pz.prototype,"onPollOptionsChange",null);_.A([_.Y("pollOptions","editorInfo"),_.r("design:type",Object),_.r("design:paramtypes",[])],pz.prototype,"isAllowedToAddOption",null);_.A([_.Y("pollOptions"),_.r("design:type",Object),_.r("design:paramtypes",[])],pz.prototype,"hasImages",null);
_.A([_.Y("pollOptions"),_.r("design:type",Object),_.r("design:paramtypes",[])],pz.prototype,"imagesToReposition",null);_.A([_.Y("pollOptions"),_.r("design:type",Object),_.r("design:paramtypes",[])],pz.prototype,"hasCustomOptionText",null);_.A([_.Y("data","isAllowedToAddOption"),_.r("design:type",Object),_.r("design:paramtypes",[])],pz.prototype,"addOptionButton",null);_.A([_.Y("data","hasImages"),_.r("design:type",Object),_.r("design:paramtypes",[])],pz.prototype,"repositionImagesButton",null);
_.A([_.w({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],pz);
_.q(pz,"ytd-backstage-image-poll-editor-renderer",function(){if(TLR!==void 0)return TLR;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return TLR=x},{mode:2});var WZd={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 qJH;var mq=function(){var x=_.e.apply(this,arguments)||this;x.a11yConfig=WZd;x.imageDisplayOffsetTop=0;x.imageDisplayOffsetLeft=0;x.pickerDisplayOffsetTop=0;x.pickerDisplayOffsetLeft=0;x.showPreviewContainer=!0;x.startPicker=!1;x.repositionOptional=!1;x.editOnlyMode=!1;x.savedImageDisplayOffsetTop=0;x.savedImageDisplayOffsetLeft=0;return x};
_.p(mq,_.e);_.K=mq.prototype;_.K.created=function(){_.KS.requestAvailability()};
_.K.ready=function(){};
_.K.onArrowKeysDown=function(x){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){x.detail.keyboardEvent.preventDefault();var L=0,D=0,S="";switch(x.detail.keyboardEvent.key){case "ArrowUp":WQp(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?S=this.a11yConfig.reachBottomOfImage:L=this.imageHeight*.05*-1;break;case "ArrowDown":WQp(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?S=this.a11yConfig.reachTopOfImage:
L=this.imageHeight*.05;break;case "ArrowLeft":WQp(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?S=this.a11yConfig.reachRightOfImage:D=this.imageWidth*.05*-1;break;case "ArrowRight":WQp(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?S=this.a11yConfig.reachLeftOfImage:D=this.imageWidth*.05}S&&_.p6(S)&&_.MF(this.hostElement,"iron-announce",{text:_.p6(S)});if(D||L)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+L)),x=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),x=_.p6(this.a11yConfig.imageVerticalPosition,{x_percent:""+x,y_percent:""+(100-x)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+D)),x=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),x=_.p6(this.a11yConfig.imageHorizontalPosition,{x_percent:""+x,y_percent:""+(100-x)})),x&&_.MF(this.hostElement,"iron-announce",{text:x})}};
_.K.getPreviewPosition=function(x,L,D,S){return Math.round(100*(x+L*.5-D)/S)};
_.K.calculateDisplayPosition=function(){var x=this.imageData.naturalWidth,L=this.imageData.naturalHeight;this.displayScale=Math.max(200/x,200/L);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var D=x*this.displayScale*this.imageData.previewCoordinates.left,S=L*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=L>x?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-D;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=x>L?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-S;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=x*this.displayScale;this.imageHeight=L*this.displayScale};
_.K.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.K.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.K.getSignedPosition=function(x,L,D){return L==="X"&&_.$6("HTML_DIR")==="rtl"?D==="-"?x+"px":x*-1+"px":D==="-"?x*-1+"px":x+"px"};
_.K.pickerMove=function(x){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var L=this.pickerOffsetX-x.clientX,D=this.pickerOffsetY-x.clientY;this.pickerOffsetX=x.clientX;this.pickerOffsetY=x.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
D)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-L))}};
_.K.pickerMoveStart=function(x){this.startPicker=!0;this.pickerOffsetX=x.clientX;this.pickerOffsetY=x.clientY};
_.K.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var x=this.generateCropPreview();x&&_.MF(this.hostElement,"ytd-backstage-image-preview-coordinates-update",x)};
_.K.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.MF(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.K.deleteImage=function(){_.MF(this.hostElement,"ytd-backstage-image-preview-delete")};
_.K.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.K.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var x=this.generateCropPreview();x&&_.MF(this.hostElement,"ytd-backstage-image-preview-coordinates-save",x)};
_.K.getPreviewOffset=function(x,L,D){return L&&x?(D==="X"&&_.$6("HTML_DIR")==="rtl"?300/L*x:300/L*x*-1)+"px":"0px"};
_.K.getSimpleText=function(x){return x?_.SR(x):""};
_.K.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}};
_.J3.Object.defineProperties(mq.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var x=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.p6(this.a11yConfig.imageVerticalPosition,{x_percent:""+x,y_percent:""+(100-x)})+"\n"+_.p6(this.a11yConfig.verticalRepositionInstruction)}x=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.p6(this.a11yConfig.imageHorizontalPosition,{x_percent:""+x,y_percent:""+(100-x)})+"\n"+_.p6(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 x,L,D=(x=this.instruction)==null?void 0:(L=x.previewInstruction)==null?void 0:L.editButtonLabel;return D?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:D,accessibilityData:{accessibilityData:{label:this.getSimpleText(D)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var x,L,D,S,Q=this.editOnlyMode?(x=this.instruction)==null?void 0:(L=x.editInstruction)==null?void 0:L.saveImagesButtonLabel:(D=this.instruction)==null?void 0:(S=D.editInstruction)==null?void 0:S.saveButtonLabel;return Q?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:Q,accessibilityData:{accessibilityData:{label:this.getSimpleText(Q)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var x,L,D=(x=this.instruction)==null?void 0:(L=x.previewInstruction)==null?void 0:L.deleteButtonLabel;return D?{size:"SIZE_SMALL",text:D,accessibilityData:{accessibilityData:{label:this.getSimpleText(D)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var x,L,D=(x=this.instruction)==null?void 0:(L=x.editInstruction)==null?void 0:L.cancelButtonLabel;x=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return D?{style:x,size:"SIZE_SMALL",text:D,accessibilityData:{accessibilityData:{label:this.getSimpleText(D)}}}: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"}}});
mq.prototype.onEditOnlyModeUpdate=mq.prototype.onEditOnlyModeUpdate;mq.prototype.onImageChange=mq.prototype.onImageChange;_.A([_.F(),_.r("design:type",wRO)],mq.prototype,"imageData",void 0);_.A([_.F(),_.r("design:type",Object)],mq.prototype,"instruction",void 0);_.A([_.F(),_.r("design:type",Object)],mq.prototype,"a11yConfig",void 0);_.A([_.F(),_.r("design:type",Number)],mq.prototype,"imageWidth",void 0);_.A([_.F(),_.r("design:type",Number)],mq.prototype,"imageHeight",void 0);
_.A([_.F(),_.r("design:type",Number)],mq.prototype,"displayScale",void 0);_.A([_.F(),_.r("design:type",Object)],mq.prototype,"imageDisplayOffsetTop",void 0);_.A([_.F(),_.r("design:type",Object)],mq.prototype,"imageDisplayOffsetLeft",void 0);_.A([_.F(),_.r("design:type",Object)],mq.prototype,"pickerDisplayOffsetTop",void 0);_.A([_.F(),_.r("design:type",Object)],mq.prototype,"pickerDisplayOffsetLeft",void 0);_.A([_.F(),_.r("design:type",Object)],mq.prototype,"showPreviewContainer",void 0);
_.A([_.F(),_.r("design:type",Object)],mq.prototype,"startPicker",void 0);_.A([_.F(),_.r("design:type",Number)],mq.prototype,"pickerOffsetX",void 0);_.A([_.F(),_.r("design:type",Number)],mq.prototype,"pickerOffsetY",void 0);_.A([_.F(),_.r("design:type",Object)],mq.prototype,"repositionOptional",void 0);_.A([_.F(),_.r("design:type",Object)],mq.prototype,"editOnlyMode",void 0);_.A([_.F1("#picker-container"),_.r("design:type",HTMLElement)],mq.prototype,"JSC$15667_pickerContainer",void 0);
_.A([_.F1("#picker"),_.r("design:type",HTMLElement)],mq.prototype,"picker",void 0);_.A([_.F1("#preview-clipper"),_.r("design:type",HTMLElement)],mq.prototype,"previewClipper",void 0);_.A([_.F1("#image-in-picker-background"),_.r("design:type",HTMLImageElement)],mq.prototype,"JSC$15667_imageInBackground",void 0);_.A([_.F1("#image-in-picker"),_.r("design:type",HTMLImageElement)],mq.prototype,"JSC$15667_imageInPicker",void 0);
_.A([_.F1("#image-in-preview-clipper"),_.r("design:type",HTMLImageElement)],mq.prototype,"JSC$15667_imageInPreviewClipper",void 0);_.A([_.Y("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.r("design:type",String),_.r("design:paramtypes",[])],mq.prototype,"altLabelForImage",null);_.A([_.Y("imageHeight","imageWidth"),_.r("design:type",Number),_.r("design:paramtypes",[])],mq.prototype,"pickerSize",null);
_.A([_.Y("imageHeight","imageWidth"),_.r("design:type",Object),_.r("design:paramtypes",[])],mq.prototype,"imageOrientationStyle",null);_.A([_.Y("instruction"),_.r("design:type",Object),_.r("design:paramtypes",[])],mq.prototype,"editButton",null);_.A([_.Y("instruction","editOnlyMode"),_.r("design:type",Object),_.r("design:paramtypes",[])],mq.prototype,"saveButton",null);_.A([_.Y("instruction"),_.r("design:type",Object),_.r("design:paramtypes",[])],mq.prototype,"deleteButton",null);
_.A([_.Y("instruction","editOnlyMode"),_.r("design:type",Object),_.r("design:paramtypes",[])],mq.prototype,"cancelButton",null);_.A([_.Y("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.r("design:type",Number),_.r("design:paramtypes",[])],mq.prototype,"cropOffsetTop",null);_.A([_.Y("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.r("design:type",Number),_.r("design:paramtypes",[])],mq.prototype,"cropOffsetLeft",null);
_.A([_.Y("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.r("design:type",String),_.r("design:paramtypes",[])],mq.prototype,"pickerBackgroundStyle",null);_.A([_.Y("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.r("design:type",String),_.r("design:paramtypes",[])],mq.prototype,"pickerDisplayStyle",null);_.A([_.Y("cropOffsetLeft","cropOffsetTop"),_.r("design:type",String),_.r("design:paramtypes",[])],mq.prototype,"imageInPickerStyle",null);
_.A([_.Y("cropOffsetLeft","cropOffsetTop","pickerSize"),_.r("design:type",String),_.r("design:paramtypes",[])],mq.prototype,"previewClipperStyle",null);_.A([_.GV("imageData"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],mq.prototype,"onImageChange",null);_.A([_.GV("editOnlyMode"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],mq.prototype,"onEditOnlyModeUpdate",null);
_.A([_.Y("showPreviewContainer"),_.r("design:type",String),_.r("design:paramtypes",[])],mq.prototype,"pickerModeStyle",null);_.A([_.w({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],mq);
_.q(mq,"ytd-backstage-image-preview-renderer",function(){if(qJH!==void 0)return qJH;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return qJH=x},{mode:1});var A0Q;var $td={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 r0H;var NL2;var bg=function(){var x=_.e.apply(this,arguments)||this;x.a11yConfig=$td;x.imageDisplayOffsetTop=0;x.imageDisplayOffsetLeft=0;x.pickerDisplayOffsetTop=0;x.pickerDisplayOffsetLeft=0;x.cropCoordinatesSaved=!1;x.previewSize=0;x.startPicker=!1;x.repositionOptional=!1;return x};
_.p(bg,_.e);_.K=bg.prototype;_.K.created=function(){_.KS.requestAvailability()};
_.K.ready=function(){};
_.K.onArrowKeysDown=function(x){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){x.detail.keyboardEvent.preventDefault();var L=0,D=0,S="";switch(x.detail.keyboardEvent.key){case "ArrowUp":q$f(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?S=this.a11yConfig.reachBottomOfImage:L=this.imageHeight*.05*-1;break;case "ArrowDown":q$f(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?S=this.a11yConfig.reachTopOfImage:
L=this.imageHeight*.05;break;case "ArrowLeft":q$f(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?S=this.a11yConfig.reachRightOfImage:D=this.imageWidth*.05*-1;break;case "ArrowRight":q$f(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?S=this.a11yConfig.reachLeftOfImage:D=this.imageWidth*.05}S&&_.p6(S)&&_.MF(this.hostElement,"iron-announce",{text:_.p6(S)});if(D||L)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+L)),x=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),x=_.p6(this.a11yConfig.imageVerticalPosition,{x_percent:""+x,y_percent:""+(100-x)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+D)),x=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),x=_.p6(this.a11yConfig.imageHorizontalPosition,{x_percent:""+x,y_percent:""+(100-x)})),x&&_.MF(this.hostElement,"iron-announce",{text:x})}};
_.K.getPreviewPosition=function(x,L,D,S){return Math.round(100*(x+L*.5-D)/S)};
_.K.displayImage=function(){var x=this.JSC$15678_pickerContainer.getBoundingClientRect().width,L=this.JSC$15678_pickerContainer.getBoundingClientRect().height,D=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),S=this.JSC$15678_imageInBackground.naturalWidth,Q=this.JSC$15678_imageInBackground.naturalHeight;this.displayScale=Math.max(D/S,D/Q);this.imageWidth=S*this.displayScale;this.imageHeight=Q*this.displayScale;this.pickerDisplayOffsetLeft=(x-D)/2;this.pickerDisplayOffsetTop=
(L-D)/2;this.imageDisplayOffsetLeft=Q>S?this.pickerDisplayOffsetLeft:(x-this.imageWidth)/2;this.imageDisplayOffsetTop=S>Q?this.pickerDisplayOffsetTop:(L-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.K.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$15678_imageInBackground.src=this.imageData.toString(),this.JSC$15678_imageInPicker.src=this.imageData.toString(),this.JSC$15678_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.K.getSignedPosition=function(x,L,D){return L==="X"&&_.$6("HTML_DIR")==="rtl"?D==="-"?x+"px":x*-1+"px":D==="-"?x*-1+"px":x+"px"};
_.K.pickerMove=function(x){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var L=this.pickerOffsetX-x.clientX,D=this.pickerOffsetY-x.clientY;this.pickerOffsetX=x.clientX;this.pickerOffsetY=x.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
D)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-L))}};
_.K.pickerMoveStart=function(x){this.startPicker=!0;this.pickerOffsetX=x.clientX;this.pickerOffsetY=x.clientY};
_.K.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.K.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.MF(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.K.getPreviewOffset=function(x,L,D,S){return L&&x&&D?(S==="X"&&_.$6("HTML_DIR")==="rtl"?D/L*x:D/L*x*-1)+"px":"0px"};
_.K.getSimpleText=function(x){return x?_.SR(x):""};
_.K.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var x=this.cropOffsetTop/this.imageHeight,L=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,D=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,S=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.jr(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.MF(this.hostElement,"yt-img-crop-coordinates-update",{top:x,right:L,bottom:D,left:S})}};
_.J3.Object.defineProperties(bg.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var x=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.p6(this.a11yConfig.imageVerticalPosition,{x_percent:""+x,y_percent:""+(100-x)})+"\n"+_.p6(this.a11yConfig.verticalRepositionInstruction)}x=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.p6(this.a11yConfig.imageHorizontalPosition,{x_percent:""+x,y_percent:""+(100-x)})+"\n"+_.p6(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 x,L=(x=this.learnMore.runs[0])==null?void 0:x.navigationEndpoint,D;return((D=_.g(L,_.oR))==null?void 0:D.url)||void 0}}}});
bg.prototype.onImageDataChange=bg.prototype.onImageDataChange;_.A([_.F(),_.r("design:type",Object)],bg.prototype,"imageData",void 0);_.A([_.F(),_.r("design:type",Object)],bg.prototype,"instruction",void 0);_.A([_.F(),_.r("design:type",Object)],bg.prototype,"a11yConfig",void 0);_.A([_.F(),_.r("design:type",Number)],bg.prototype,"imageWidth",void 0);_.A([_.F(),_.r("design:type",Number)],bg.prototype,"imageHeight",void 0);_.A([_.F(),_.r("design:type",Number)],bg.prototype,"displayScale",void 0);
_.A([_.F(),_.r("design:type",Object)],bg.prototype,"imageDisplayOffsetTop",void 0);_.A([_.F(),_.r("design:type",Object)],bg.prototype,"imageDisplayOffsetLeft",void 0);_.A([_.F(),_.r("design:type",Object)],bg.prototype,"pickerDisplayOffsetTop",void 0);_.A([_.F(),_.r("design:type",Object)],bg.prototype,"pickerDisplayOffsetLeft",void 0);_.A([_.F(),_.r("design:type",Object)],bg.prototype,"cropCoordinatesSaved",void 0);_.A([_.F(),_.r("design:type",Object)],bg.prototype,"previewSize",void 0);
_.A([_.F(),_.r("design:type",Object)],bg.prototype,"startPicker",void 0);_.A([_.F(),_.r("design:type",Number)],bg.prototype,"pickerOffsetX",void 0);_.A([_.F(),_.r("design:type",Number)],bg.prototype,"pickerOffsetY",void 0);_.A([_.F(),_.r("design:type",Object)],bg.prototype,"repositionOptional",void 0);_.A([_.F1("#picker-container"),_.r("design:type",HTMLElement)],bg.prototype,"JSC$15678_pickerContainer",void 0);_.A([_.F1("#picker"),_.r("design:type",HTMLElement)],bg.prototype,"picker",void 0);
_.A([_.F1("#image-in-picker-background"),_.r("design:type",HTMLImageElement)],bg.prototype,"JSC$15678_imageInBackground",void 0);_.A([_.F1("#image-in-picker"),_.r("design:type",HTMLImageElement)],bg.prototype,"JSC$15678_imageInPicker",void 0);_.A([_.F1("#image-in-preview-clipper"),_.r("design:type",HTMLImageElement)],bg.prototype,"JSC$15678_imageInPreviewClipper",void 0);_.A([_.F1("#full-image-as-preview"),_.r("design:type",HTMLImageElement)],bg.prototype,"imageAsPreview",void 0);
_.A([_.Y("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.r("design:type",String),_.r("design:paramtypes",[])],bg.prototype,"altLabelForImage",null);_.A([_.Y("imageHeight","imageWidth"),_.r("design:type",Number),_.r("design:paramtypes",[])],bg.prototype,"pickerSize",null);_.A([_.Y("imageHeight","imageWidth"),_.r("design:type",Object),_.r("design:paramtypes",[])],bg.prototype,"imageOrientationStyle",null);
_.A([_.Y("instruction.previewInstruction.editButtonLabel"),_.r("design:type",Object),_.r("design:paramtypes",[])],bg.prototype,"editButton",null);_.A([_.Y("instruction.editInstruction.saveButtonLabel"),_.r("design:type",Object),_.r("design:paramtypes",[])],bg.prototype,"saveButton",null);_.A([_.Y("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.r("design:type",Number),_.r("design:paramtypes",[])],bg.prototype,"cropOffsetTop",null);
_.A([_.Y("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.r("design:type",Number),_.r("design:paramtypes",[])],bg.prototype,"cropOffsetLeft",null);_.A([_.Y("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.r("design:type",String),_.r("design:paramtypes",[])],bg.prototype,"pickerBackgroundStyle",null);_.A([_.Y("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.r("design:type",String),_.r("design:paramtypes",[])],bg.prototype,"pickerDisplayStyle",null);
_.A([_.Y("cropOffsetLeft","cropOffsetTop"),_.r("design:type",String),_.r("design:paramtypes",[])],bg.prototype,"imageInPickerStyle",null);_.A([_.Y("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.r("design:type",String),_.r("design:paramtypes",[])],bg.prototype,"previewClipperStyle",null);_.A([_.bN("imageData"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],bg.prototype,"onImageDataChange",null);
_.A([_.Y("cropCoordinatesSaved"),_.r("design:type",String),_.r("design:paramtypes",[])],bg.prototype,"pickerModeStyle",null);_.A([_.Y("instruction.editInstruction.learnMore"),_.r("design:type",Object),_.r("design:paramtypes",[])],bg.prototype,"learnMore",null);_.A([_.Y("learnMore"),_.r("design:type",Object),_.r("design:paramtypes",[])],bg.prototype,"learnMoreUrl",null);_.A([_.oW({is:"yt-img-crop-picker",disableElementRegistration:!0})],bg);
_.q(bg,"yt-img-crop-picker",function(){if(NL2===void 0){var x=document.createElement("template");_.m(x,'\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>');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;r0H===void 0&&(r0H=document.createElement("template"));var S=r0H;D.call(L,S.content.cloneNode(!0),x.content.firstChild);NL2=x}x=NL2;return x},{mode:2});var Yp=function(){var x=_.e.apply(this,arguments)||this;x.errorMessage="";x.hasPreview=!1;x.isBackstagePost=!1;x.dismissButtonOverrides={size:"XS"};return x};
_.p(Yp,_.e);_.K=Yp.prototype;_.K.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"}}}};
_.K.detached=function(){this.removeOverlay()};
_.K.setPreview=function(x){_.jr(this.hostElement).querySelector("#preview-picker").imageData=x;this.hasPreview=!0;_.MF(this.hostElement,"yt-backstage-image-select-preview")};
_.K.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var x=_.jr(this.hostElement).querySelector("#dropzone");x.classList.remove("dragover");x.classList.remove("error");_.MF(this.hostElement,"yt-backstage-image-select-cancel")};
_.K.setupOverlay=function(){var x=this.imageUploadEndpoint;this.removeOverlay();if(x&&x.imageValidationInfo){var L=_.jr(this.hostElement).querySelector("#dropzone"),D=_.jr(this.hostElement).querySelector("#select");this.overlay=new pv(x.uploadUrl,x.channelId,x.imageValidationInfo.maxFileSizeMb,x.imageValidationInfo.allowedMaxAspectRatio,L,D,!0);_.Uk(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.Uk(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.Uk(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.Uk(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.Uk(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.K.removeOverlay=function(){this.overlay&&(_.wG(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.wG(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.wG(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.wG(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.wG(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.K.onDragOver=function(x){var L=_.jr(this.hostElement).querySelector("#dropzone");_.VA(L,"dragover",x.value)};
_.K.onPreview=function(x){this.setPreview(x.value)};
_.K.onImageError=function(x){if(x.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var L;x=(L=this.data)==null?void 0:L.fileSizeError}else if(x.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var D;x=(D=this.data)==null?void 0:D.invalidError}else if(x.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var S;x=(S=this.data)==null?void 0:S.invalidAspectRatioError}else return;this.errorMessage=_.SR(x);_.jr(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.K.onImageAlert=function(x){this.onImageError(x)};
_.K.uploadPromise=function(){var x=this,L=this.overlay&&this.overlay.uploadPromise();if(L)return L.catch(function(){throw Error(x.data?_.SR(x.data.uploadFailureError):"");})};
_.J3.Object.defineProperties(Yp.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null?void 0:x.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null?void 0:x.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var x,L;if((x=this.data)==null?0:(L=x.icon)==null?0:L.iconType)return _.gB(this.data.icon.iconType)}}});
Yp.prototype.setupOverlay=Yp.prototype.setupOverlay;_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Yp.prototype,"rendererStamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Yp.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Yp.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],Yp.prototype,"imageUploadEndpoint",void 0);_.A([_.F(),_.r("design:type",Object)],Yp.prototype,"errorMessage",void 0);
_.A([_.F(),_.r("design:type",pv)],Yp.prototype,"overlay",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Yp.prototype,"hasPreview",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Yp.prototype,"isBackstagePost",void 0);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Yp.prototype,"selectionCancel",null);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Yp.prototype,"previewCancel",null);
_.A([_.Y("data.icon.iconType"),_.r("design:type",Object),_.r("design:paramtypes",[])],Yp.prototype,"icon",null);_.A([_.F(),_.r("design:type",Object)],Yp.prototype,"dismissButtonOverrides",void 0);_.A([_.bN("imageUploadEndpoint"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Yp.prototype,"setupOverlay",null);_.A([_.w({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],Yp);
_.q(Yp,"ytd-backstage-image-select-renderer",function(){if(A0Q!==void 0)return A0Q;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return A0Q=x},{mode:1});var iYC;var fG_;var FG=function(){var x=_.e.apply(this,arguments)||this;x.selected=!1;return x};
_.p(FG,_.e);_.K=FG.prototype;_.K.computeSelected=function(x){return x==null?void 0:x.selected};
_.K.computeTransform=function(x,L,D){var S,Q,J=(Q=(S=this.imageContainer)==null?void 0:S.getBoundingClientRect())!=null?Q:{width:0,height:0};S=Math.max(J.width/L,J.height/D);D=D*S*x.top;return"translateX("+this.getSignedPosition(L*S*x.left,"X","-")+") translateY("+this.getSignedPosition(D,"Y","-")+")"};
_.K.getSignedPosition=function(x,L,D){return L==="X"&&_.$6("HTML_DIR")==="rtl"?D==="-"?x+"px":x*-1+"px":D==="-"?x*-1+"px":x+"px"};
_.K.onClick=function(){var x;_.MF(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(x=this.data)==null?void 0:x.image)};
_.K.onKeyPress=function(x){if(x.keyCode===13)this.onClick()};
_.J3.Object.defineProperties(FG.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var x,L;return((x=this.data)==null?void 0:(L=x.image)==null?void 0:L.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var x;if((x=this.data)!=null&&x.image){var L;x=(L=this.data)==null?void 0:L.image;return x.previewCoordinates.top!==0||x.previewCoordinates.left!==0?(L=this.computeTransform(x.previewCoordinates,x.naturalWidth,x.naturalHeight),x.naturalHeight>=x.naturalWidth?"width:inherit;transform:"+L+";":"height:inherit;transform:"+L+";"):x.naturalHeight>=x.naturalWidth?"width:inherit;":"height:inherit;"}}}});
FG.prototype.onKeyPress=FG.prototype.onKeyPress;_.A([_.F1(".image-container"),_.r("design:type",HTMLElement)],FG.prototype,"imageContainer",void 0);_.A([_.F(),_.r("design:type",Object)],FG.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.r("design:type",Object)],FG.prototype,"selected",void 0);_.A([_.Y("data.image"),_.r("design:type",Object),_.r("design:paramtypes",[])],FG.prototype,"thumbnailUrl",null);
_.A([_.Y("data.image","data.image.previewCoordinates"),_.r("design:type",Object),_.r("design:paramtypes",[])],FG.prototype,"thumbnailStyle",null);_.A([_.mX("keypress"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],FG.prototype,"onKeyPress",null);_.A([_.w({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],FG);
_.q(FG,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(fG_!==void 0)return fG_;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return fG_=x},{mode:2});var sM=function(x,L,D){D=D===void 0?!1:D;_.Bc.call(this);var S=this;this.dropZoneOverlay=new Rf(x);this.selectOverlay=D?new Gd(L,"multiple_file",["image/*"]):new Gd(L,"single_file",["image/*"]);this.handler=new _.Mu(this);_.V1(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(L,"click",function(){S.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.p(sM,_.Bc);sM.prototype.onChange=function(x){var L;(L=x.files)!=null&&L.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:x.files}))};var Tf=function(){var x=_.e.apply(this,arguments)||this;x.addImageErrorMessage="";x.errorMessage="";x.images=[];x.selectedImageIndex=0;x.modern=_.u("web_modern_buttons");x.maxNumImagesPerPost=_.dE("max_num_images_per_post_web_ui");x.JSC$15693_imageId=0;return x};
_.p(Tf,_.e);_.K=Tf.prototype;_.K.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.MF(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.K.observeDragToReorder=function(){var x=this;if(this.showImagesPreview){var L,D=npH(_.Cp.getInstance(),(L=this.data)==null?void 0:L.dragToReorderTooltip);_.WW.addLowPriorityJob(function(){_.v$(x.hostElement,D,x.thumbnailDragDropArea)})}};
_.K.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}}};
_.K.computeThumbnail=function(x){return(x==null?void 0:x.localImageSrc)||void 0};
_.K.onRendererstamperFinished=function(){_.qpi(this.ytReorderableBehavior,_.jr(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.jr(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.K.handleDrop=function(x){var L=x.currDragItem;if(L!=null&&L.data){x=this.images[this.selectedImageIndex];var D=L.data.image,S=this.images.indexOf(D)||0;L=_.qf(L.parentNode.children,L);this.images.splice(S,1);this.images.splice(L,0,D);this.images=[].concat(_.lP(this.images));this.selectedImageIndex=this.images.indexOf(x)}};
_.K.setUpImagePicker=function(){var x=this.imageUploadEndpoint;x&&x.imageValidationInfo&&(this.uploadManager=new kp(x.uploadUrl,x.channelId),this.initialPicker||(this.initialPicker=new sM(this.dropzone,this.selectLink,!0),_.Uk(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new sM(this.addImageButtonContainer,this.addImageSelectButton),_.Uk(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.Uk(this.JSC$15693_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.Uk(this.JSC$15693_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.Uk(_.jr(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.K.detached=function(){this.initialPicker&&(_.wG(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.wG(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.K.onInitialSelectImages=function(x){var L=this;return _.I(function(D){return D.yield(L.onSelectImages(x,!1),0)})};
_.K.onAddImage=function(x){var L=this;return _.I(function(D){return D.yield(L.onSelectImages(x,!0),0)})};
_.K.onSelectImages=function(x,L){var D=this,S,Q,J,Z,y,E,P,v,V,h,H,k,T,G,U,l,X,f,N,z;return _.I(function(xf){switch(xf.nextAddress){case 1:L?D.addImageErrorMessage="":(D.images=[],D.errorMessage="");S=x.detail;Q=D.validateImages([].concat(_.lP(S)));if(Q!=="")return L?D.addImageErrorMessage=Q:D.errorMessage=Q,xf.return();J=[].concat(_.lP(S)).map(function(K3){return(new ge(D.maxAspectRatio,!1,!0)).transform(K3)});
return xf.yield(Promise.allSettled(J),2);case 2:Z=xf.yieldResult,y=_.O(Z.entries()),E=y.next();case 3:if(E.done){xf.jumpTo(5);break}P=E.value;v=_.O(P);V=v.next().value;h=v.next().value;H=V;k=h;if(k.status!=="fulfilled"){U=G=T=void 0;L?D.addImageErrorMessage=_.SR((T=D.data)==null?void 0:T.invalidError):D.errorMessage=D.errorMessage===""?_.SR((G=D.data)==null?void 0:G.invalidError):_.SR((U=D.data)==null?void 0:U.multiFileError);xf.jumpTo(4);break}l=k.value;l.cropped&&_.MF(D.hostElement,"yt-backstage-multi-image-cropped");
if(l.invalidAspectRatio){N=f=X=void 0;L?D.addImageErrorMessage=_.SR((X=D.data)==null?void 0:X.invalidAspectRatioError):D.errorMessage=D.errorMessage===""?_.SR((f=D.data)==null?void 0:f.invalidAspectRatioError):_.SR((N=D.data)==null?void 0:N.multiFileError);xf.jumpTo(4);break}return xf.yield(Bj0(D.JSC$15693_imageId,x.detail[H],l.transformedData),8);case 8:z=xf.yieldResult,D.images.push(z),D.JSC$15693_imageId++;case 4:E=y.next();xf.jumpTo(3);break;case 5:if(D.errorMessage!==""||D.addImageErrorMessage!==
"")return xf.return();L?GwW(D.uploadManager,[D.images[D.images.length-1]]):GwW(D.uploadManager,D.images);D.images=[].concat(_.lP(D.images));D.selectedImageIndex=L?Math.max(D.images.length-1,0):0;_.MF(D.hostElement,"yt-backstage-multi-image-select");_.Y2(xf)}})};
_.K.onThumbnailClick=function(x){if(x=x.event_.detail)this.selectedImageIndex=this.images.indexOf(x)};
_.K.validateImages=function(x){if(x.length>this.maxNumImagesPerPost){var L;return _.SR((L=this.data)==null?void 0:L.multiImageExceedMaxImageCountError)}var D=1048576*this.maxFileSizeMb;x=x.filter(function(J){return J.size>D}).length;
if(x===0)return"";var S,Q;x=x>1?(S=this.data)==null?void 0:S.multiFileError:(Q=this.data)==null?void 0:Q.fileSizeError;return _.SR(x)};
_.K.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.lP(this.images));this.selectedImageIndex=0};
_.K.repositionImage=function(x){this.images[this.selectedImageIndex].previewCoordinates=x.event_.detail;this.images=[].concat(_.lP(this.images))};
_.K.getAllUploadStatuses=function(){var x=this,L,D,S,Q;return _.I(function(J){if(J.nextAddress==1)return J.yield(x.uploadManager.getAllUploadStatuses(),2);L=J.yieldResult;D=_.O(L);for(S=D.next();!S.done;S=D.next())if(Q=S.value,Q.encryptedBlobId===void 0)return J.return(C9G(x.uploadManager));return J.return(L)})};
_.K.hasImages=function(){return this.images.length>0};
_.K.cancel=function(){for(var x=this.uploadManager,L=_.O(x.imagesUploadData),D=L.next();!D.done;D=L.next())x.cancel(D.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.MF(this.hostElement,"yt-backstage-multi-image-cancel")};
_.J3.Object.defineProperties(Tf.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var x,L;return((x=this.imageUploadEndpoint)==null?void 0:(L=x.imageValidationInfo)==null?void 0:L.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var x,L;return((x=this.imageUploadEndpoint)==null?void 0:(L=x.imageValidationInfo)==null?void 0:L.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var x,L;if((x=this.data)==null?0:(L=x.icon)==null?0:L.iconType)return _.gB(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null?void 0:x.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null?void 0:x.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null?void 0:x.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 x=this;return(this.images||[]).map(function(L,D){return{renderer:{image:L,selected:D===x.selectedImageIndex}}})}}});
Tf.prototype.setUpImagePicker=Tf.prototype.setUpImagePicker;Tf.prototype.onRendererstamperFinished=Tf.prototype.onRendererstamperFinished;Tf.prototype.observeDragToReorder=Tf.prototype.observeDragToReorder;Tf.prototype.observeAddImageError=Tf.prototype.observeAddImageError;_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Tf.prototype,"rendererStamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Tf.prototype,"ytRendererBehavior",void 0);
_.A([_.b(_.Atd),_.r("design:type",Object)],Tf.prototype,"ytReorderableBehavior",void 0);_.A([_.F1("#dropzone"),_.r("design:type",HTMLElement)],Tf.prototype,"dropzone",void 0);_.A([_.F1("#select-link"),_.r("design:type",HTMLElement)],Tf.prototype,"selectLink",void 0);_.A([_.F1("#thumbnail-drag-drop-area"),_.r("design:type",HTMLElement)],Tf.prototype,"thumbnailDragDropArea",void 0);_.A([_.F1("#add-image-button-container"),_.r("design:type",HTMLElement)],Tf.prototype,"addImageButtonContainer",void 0);
_.A([_.F1("#add-image-button"),_.r("design:type",HTMLElement)],Tf.prototype,"addImageSelectButton",void 0);_.A([_.F1("#image-preview-container"),_.r("design:type",Object)],Tf.prototype,"JSC$15693_imagePreviewContainer",void 0);_.A([_.F(),_.r("design:type",Object)],Tf.prototype,"addImageErrorMessage",void 0);_.A([_.F(),_.r("design:type",Object)],Tf.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],Tf.prototype,"errorMessage",void 0);
_.A([_.F(),_.r("design:type",Object)],Tf.prototype,"imageUploadEndpoint",void 0);_.A([_.F(),_.r("design:type",Array)],Tf.prototype,"images",void 0);_.A([_.F(),_.r("design:type",sM)],Tf.prototype,"initialPicker",void 0);_.A([_.F(),_.r("design:type",sM)],Tf.prototype,"addImagePicker",void 0);_.A([_.F(),_.r("design:type",kp)],Tf.prototype,"uploadManager",void 0);_.A([_.F(),_.r("design:type",Object)],Tf.prototype,"selectedImageIndex",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Tf.prototype,"modern",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Tf.prototype,"maxNumImagesPerPost",void 0);_.A([_.Y("imageUploadEndpoint"),_.r("design:type",Number),_.r("design:paramtypes",[])],Tf.prototype,"maxAspectRatio",null);_.A([_.Y("imageUploadEndpoint"),_.r("design:type",Number),_.r("design:paramtypes",[])],Tf.prototype,"maxFileSizeMb",null);
_.A([_.Y("data.icon.iconType"),_.r("design:type",Object),_.r("design:paramtypes",[])],Tf.prototype,"dropIcon",null);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Tf.prototype,"selectionCancel",null);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Tf.prototype,"previewCancel",null);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Tf.prototype,"dataForAddImageButton",null);
_.A([_.Y("errorMessage"),_.r("design:type",String),_.r("design:paramtypes",[])],Tf.prototype,"dropzoneClass",null);_.A([_.Y("images"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Tf.prototype,"showImagesPreview",null);_.A([_.Y("images"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Tf.prototype,"containMaxImages",null);_.A([_.bN("addImageErrorMessage"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Tf.prototype,"observeAddImageError",null);
_.A([_.bN("showImagesPreview"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Tf.prototype,"observeDragToReorder",null);_.A([_.Y("images","selectedImageIndex"),_.r("design:type",Object),_.r("design:paramtypes",[])],Tf.prototype,"selectedImageData",null);_.A([_.Y("images","selectedImageIndex"),_.r("design:type",Array),_.r("design:paramtypes",[])],Tf.prototype,"thumbnailRenderers",null);
_.A([_.mX("yt-rendererstamper-finished"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Tf.prototype,"onRendererstamperFinished",null);_.A([_.bN("imageUploadEndpoint"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Tf.prototype,"setUpImagePicker",null);_.A([_.w({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],Tf);
_.q(Tf,"ytd-backstage-multi-image-select-renderer",function(){if(iYC!==void 0)return iYC;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return iYC=x},{mode:1});var oFC;var aGh;var zJB;var eD=function(){var x=_.e.apply(this,arguments)||this;x.boundCaptureFocus=function(L){x.onCaptureFocus(L)};
return x};
_.p(eD,_.e);_.K=eD.prototype;_.K.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.K.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.K.onCaptureFocus=function(x){_.Jq(x).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.K.getIconType=function(x){return x?"yt-icons:"+x.toLowerCase():null};
_.K.onSelect=function(){var x;if((x=this.data)==null?0:x.onSelectCommand)if(_.u("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var L;((L=_.g(this.data.onSelectCommand.commandMetadata,_.gg))==null?0:L.url)?_.MF(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.yY().resolve(_.E2).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.J3.Object.defineProperties(eD.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.SR(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}}});
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],eD.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],eD.prototype,"ytComponentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],eD.prototype,"data",void 0);_.A([_.F1("#item"),_.r("design:type",HTMLElement)],eD.prototype,"item",void 0);_.A([_.Y("data.label"),_.r("design:type",String),_.r("design:paramtypes",[])],eD.prototype,"label",null);
_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],eD.prototype,"value",null);_.A([_.w({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],eD);
_.q(eD,"ytd-privacy-dropdown-item-renderer",function(){if(zJB!==void 0)return zJB;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return zJB=x},{mode:1});var R0=function(){var x=_.e.apply(this,arguments)||this;x.value="";x.label="";x.disabled=!1;return x};
_.p(R0,_.e);_.K=R0.prototype;_.K.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"}}}};
_.K.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.K.dataChanged=function(){this.reset()};
_.K.valueChanged=function(){var x;if(this.value&&(x=this.data)!=null&&x.entries){x=_.O(this.data.entries);for(var L=x.next();!L.done;L=x.next())if((L=this.getRendererForEntry(L.value))&&this.getItemRendererValue(L)===this.value){this.label=this.ytComponentBehavior.getSimpleString(L.label);break}}};
_.K.setInitialLabel=function(){if(this.data&&this.data.entries)for(var x=_.O(this.data.entries),L=x.next();!L.done;L=x.next())if(L=this.getRendererForEntry(L.value)){if(L.isSelected){this.label=this.ytComponentBehavior.getSimpleString(L.label);break}this.data.label&&(this.label=this.data.label)}};
_.K.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var x=_.O(this.data.entries),L=x.next();!L.done;L=x.next()){L=this.getRendererForEntry(L.value);var D=void 0;if((D=L)==null?0:D.isSelected)return this.getItemRendererValue(L)||-1}return-1};
_.K.getItemRendererValue=function(x){return"stringValue"in x||"int32Value"in x?x.stringValue||x.int32Value||null:null};
_.K.getRendererForEntry=function(x){return x.dropdownItemRenderer||x.privacyDropdownItemRenderer||x.navigationDropdownItemRenderer||null};
_.K.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.gU("value-changed",this.value))};
_.K.updateValueFromBinding=function(x){this.value=x.detail.value};
R0.prototype.valueChangedForBinding=R0.prototype.valueChangedForBinding;R0.prototype.valueChanged=R0.prototype.valueChanged;R0.prototype.dataChanged=R0.prototype.dataChanged;_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],R0.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],R0.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],R0.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.F(),_.r("design:type",Object)],R0.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],R0.prototype,"value",void 0);_.A([_.F(),_.r("design:type",Object)],R0.prototype,"label",void 0);_.A([_.F1("#entries"),_.r("design:type",Object)],R0.prototype,"entries",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],R0.prototype,"disabled",void 0);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],R0.prototype,"dataChanged",null);
_.A([_.GV("value"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],R0.prototype,"valueChanged",null);_.A([_.bN("value"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],R0.prototype,"valueChangedForBinding",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],R0);
_.q(R0,"ytd-flat-dropdown-renderer",function(){if(aGh!==void 0)return aGh;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return aGh=x},{mode:1});var Xh_;var Gf=function(){var x=_.e.apply(this,arguments)||this;x.quizOptions=[];x.explanationPlaceholderText="";x.optionPlaceholderText="";x.correctAnswerIndex=-1;x.isMarkAnswerTooltipShown=!1;x.timer=0;return x};
_.p(Gf,_.e);_.K=Gf.prototype;_.K.dataChanged=function(){this.optionPlaceholderText=_.SR(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.SR(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.K.onMarkCorrectAnswer=function(x){var L,D=((L=this.quizOptions[this.correctAnswerIndex])==null?void 0:L.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[x.model.index]=Object.assign({},this.quizOptions[x.model.index],{explanationText:D,isCorrect:!0});this.correctAnswerIndex=x.model.index;this.quizOptions=[].concat(_.lP(this.quizOptions))};
_.K.updatePlaceholderTexts=function(){for(var x=!1,L=[],D=0;D<this.quizOptions.length;D++){var S=this.optionPlaceholderText+" "+(D+1),Q=void 0;((Q=this.quizOptions[D])==null?void 0:Q.placeholderText)!==S?(x=!0,L.push(Object.assign({},this.quizOptions[D],{placeholderText:S}))):L.push(this.quizOptions[D])}x&&(this.quizOptions=L);this.isValid()?_.MF(this.hostElement,"yt-commentbox-post-enable"):_.MF(this.hostElement,"yt-commentbox-post-disable")};
_.K.getSimpleString=function(x){return _.SR(x)};
_.K.createQuizOptions=function(x){var L=[],D;x=(D=x==null?void 0:x.minQuizOptions)!=null?D:0;for(D=0;D<x;D++)L.push(this.createQuizOption());return L};
_.K.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.lP(this.quizOptions),[this.createQuizOption()]))};
_.K.onInput=function(){this.quizOptions=[].concat(_.lP(this.quizOptions))};
_.K.onExplanationInput=function(){_.MF(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.K.onRemoveQuizOption=function(x){this.quizOptions.splice(x.model.index,1);x.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:x.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.lP(this.quizOptions));this.quizOptions.length===0&&_.MF(this.hostElement,"yt-quiz-attachment-dismiss")};
_.K.updateHintRenderer=function(){var x=this;clearTimeout(this.timer);this.timer=setTimeout(function(){x.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.K.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var x=0,L=0,D=_.O(this.quizOptions),S=D.next();!S.done;S=D.next()){S=S.value;var Q=void 0;if(((Q=S.optionText)==null?void 0:Q.trim())!==""||S.isCorrect){S.isCorrect&&L++;Q=void 0;if(this.hasCustomOptionText&&((Q=S.optionText)==null?void 0:Q.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;x++}}return x>=
Number(this.editorInfo.minQuizOptions)&&L===1};
_.K.getPostCreateOptions=function(){for(var x=[],L=_.O(this.quizOptions),D=L.next();!D.done;D=L.next()){D=D.value;var S=void 0;((S=D.optionText)==null?void 0:S.trim())!==""&&x.push({pollOption:{text:D.optionText,explanation:D.explanationText},isCorrect:D.isCorrect})}return x};
_.K.getExplanationText=function(){var x;return((x=this.quizOptions[this.correctAnswerIndex])==null?void 0:x.explanationText)||""};
_.K.maybeDisplayMarkAnswerEduToolTip=function(){var x,L,D,S,Q,J,Z;this.shouldShowMarkAnswerTooltip()&&((x=this.editorInfo)==null?0:(L=x.markAnswerButton)==null?0:(D=L.buttonRenderer)==null?0:(S=D.hint)==null?0:(Q=S.hintRenderer)==null?0:(J=Q.content)==null?0:(Z=J.bubbleHintRenderer)==null?0:Z.text)&&(_.Cp.getInstance(),x=lo(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,(x==null?void 0:x.length)>0&&this.optionSelectors&&_.mA(x[0],this.optionSelectors[0]))};
_.K.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var x=0,L=_.O(this.quizOptions),D=L.next();!D.done;D=L.next()){D=D.value;var S=void 0;((S=D.optionText)==null?void 0:S.trim())!==""&&x++;if(D.isCorrect)return!1}return x<2?!1:!0};
_.K.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.K.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.K.updateOptionTextFromBinding=function(x){if(x.target){var L=Array.from(_.jr(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(x.target);if(L>=0){var D;this.quizOptions[L].optionText=(D=x.detail.value)!=null?D:""}}};
_.J3.Object.defineProperties(Gf.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var x,L,D=(x=this.editorInfo)==null?void 0:(L=x.addOptionButton)==null?void 0:L.buttonRenderer;D&&(D.style="STYLE_SUGGESTIVE",D.size="SIZE_SMALL",D.isDisabled=!this.isAllowedToAddOption);return(D==null?0:D.text)?D:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var x,L;return this.quizOptions.length<((L=(x=this.editorInfo)==null?void 0:x.maxQuizOptions)!=null?L:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(x){var L;return(L=x.optionText)==null?void 0:L.trim()})}}});
Gf.prototype.updatePlaceholderTexts=Gf.prototype.updatePlaceholderTexts;Gf.prototype.dataChanged=Gf.prototype.dataChanged;_.A([_.F(),_.r("design:type",Object)],Gf.prototype,"editorInfo",void 0);_.A([_.F(),_.r("design:type",Array)],Gf.prototype,"quizOptions",void 0);_.A([_.F(),_.r("design:type",Object)],Gf.prototype,"explanationPlaceholderText",void 0);_.A([_.sY(".option-selector-button"),_.r("design:type",Array)],Gf.prototype,"optionSelectors",void 0);
_.A([_.GV("editorInfo"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Gf.prototype,"dataChanged",null);_.A([_.Y("editorInfo","isAllowedToAddOption","quizOptions"),_.r("design:type",Object),_.r("design:paramtypes",[])],Gf.prototype,"addAnswerButton",null);_.A([_.Y("editorInfo","quizOptions"),_.r("design:type",Object),_.r("design:paramtypes",[])],Gf.prototype,"isAllowedToAddOption",null);
_.A([_.GV("quizOptions"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Gf.prototype,"updatePlaceholderTexts",null);_.A([_.Y("quizOptions"),_.r("design:type",Object),_.r("design:paramtypes",[])],Gf.prototype,"hasCustomOptionText",null);_.A([_.w({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],Gf);
_.q(Gf,"ytd-backstage-quiz-editor-renderer",function(){if(Xh_!==void 0)return Xh_;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Xh_=x},{mode:2});var c0B;var nF_=(uS.FIRSTDAYOFWEEK+1)%7;var ttR;var xmH=[],L2d=0,Dmi=0;L2d=0;Dmi=24;if(.25*(Dmi-L2d)<0)ttR=[];else{for(var SQd=L2d;SQd<Dmi;SQd+=.25)xmH.push(SQd);ttR=xmH}var Qr2=ttR.map(function(x){x=x*60*60;return{secondsSinceMidnight:x,text:(new LB(7)).format(new Date(0,0,0,0,0,x))}});var JpW;var Cz=function(){var x=_.e.apply(this,arguments)||this;x.skipNextOpenDialog=!1;x.errorMessage="";x.previousMonthLabel=_.p6("PREVIOUS_MONTH_LABEL");x.nextMonthLabel=_.p6("NEXT_MONTH_LABEL");return x};
_.p(Cz,_.e);_.K=Cz.prototype;_.K.attached=function(){var x=this,L=new MutationObserver(function(){x.JSC$15735_calendarMain.scrollHeight>0&&(L.disconnect(),x.calendarConfig&&x.calendarConfig.selectedDate&&x.scrollToDate())});
L.observe(this.JSC$15735_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){L.disconnect()},1E3)};
_.K.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.K.onDateTextChange=function(){if(this.calendarConfig){var x=this.validateDateText();x.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(x.details)):this.textbox.setAttribute("invalid","")}};
_.K.handleDayClick=function(x){x.model.day.date&&(this.commitDate(x.model.day.date),this.dialog.close())};
_.K.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var x=zcO(this.calendarConfig.selectedDate,this.renderData);x!==void 0&&this.JSC$15735_calendarMain.scrollToIndex(x)}};
_.K.scrollToNextMonth=function(){this.JSC$15735_calendarMain.scrollToIndex(this.JSC$15735_calendarMain.firstVisibleIndex+1)};
_.K.scrollToPrevMonth=function(){this.JSC$15735_calendarMain.firstVisibleIndex===0&&this.JSC$15735_calendarMain.scrollTo(0,0);this.JSC$15735_calendarMain.scrollToIndex(this.JSC$15735_calendarMain.firstVisibleIndex-1)};
_.K.onFormSubmit=function(x){x.preventDefault();this.calendarConfig&&(x=this.validateDateText(),x.isValid&&(this.commitDate(x.details),this.dialog.close()))};
_.K.onEscOrClickingOutside=function(x){x=x.detail.path&&!!x.detail.path.length&&x.detail.path[0];if(x.classList.contains("ytd-calendar-date-picker")){x===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var L=0;L<this.dropdownButton.children.length;L++)this.dropdownButton.children[L]===x&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}x=this.textbox.value!==this.dateText;L=this.validateDateText();x&&L.isValid&&this.commitDate(L.details);this.dialog.close();this.textbox.value=
this.dateText};
_.K.commitDate=function(x){this.calendarConfig&&(this.set("calendarConfig.selectedDate",x),_.MF(this.hostElement,"ytd-calendar-date-selected",x))};
_.K.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var x=this.textbox.value;var L=new Date;x=(new PIn(2)).parse(x,L,{validate:!0})===x.length?owb(L):void 0;if(!x)return this.errorMessage=_.p6("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};L=this.calendarConfig.start;var D=this.calendarConfig.end;if($3s(x,L))return this.errorMessage=_.p6("ENTER_DATE_OR_LATER",{allowed_date:fUN(L)}),{isValid:!1,details:void 0};if($3s(D,x))return this.errorMessage=
_.p6("ENTER_DATE_OR_EARLIER",{allowed_date:fUN(D)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:x}};
_.J3.Object.defineProperties(Cz.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?fUN(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var x=this.calendarConfig,L=[],D=0;D<7;D++)L.push(uS.NARROWWEEKDAYS[(D+nF_)%7]);D=[];for(var S=new Date(x.start.year,x.start.month);S.getFullYear()<x.end.year||S.getFullYear()===x.end.year&&S.getMonth()<=x.end.month;){var Q=D,J=Q.push,Z=S.getFullYear(),y=S.getMonth(),E=x,P=void 0,v=[],V=Object.freeze({extraCssClass:"invisible",debugClass:""}),h=new Date(Z,y),H=owb(h);h=h.getDay();for(var k=owb(new Date);H.month===
y;){h!==nF_&&P||(P=Array.from({length:7}).fill(V),v.push(P));var T={date:{year:Z,month:y,day:H.day},extraCssClass:"",debugClass:""};E.selectedDate&&T.date&&APf(T.date,E.selectedDate)&&(T.extraCssClass+=" selected");if($3s(H,E.start)||$3s(E.end,H))T.extraCssClass+=" disabled";APf(H,k)&&(T.extraCssClass+=" today");T.extraCssClass=T.extraCssClass.trim();P[(h-nF_+7)%7]=T;H=Nj3(H);h=(h+1)%7}J.call(Q,{weeks:v,monthLabel:uS.SHORTMONTHS[y]+" "+Z,year:Z,month:y,monthLabelExtraCssClass:v[0][2]===V?"shift-down-label":
""});S.setMonth(S.getMonth()+1)}return{months:D,daysOfWeekLabel:L}}}}});
Cz.prototype.onEscOrClickingOutside=Cz.prototype.onEscOrClickingOutside;Cz.prototype.scrollToDate=Cz.prototype.scrollToDate;_.A([_.F(),_.r("design:type",Object)],Cz.prototype,"calendarConfig",void 0);_.A([_.F(),_.r("design:type",Object)],Cz.prototype,"skipNextOpenDialog",void 0);_.A([_.F(),_.r("design:type",Object)],Cz.prototype,"errorMessage",void 0);_.A([_.F(),_.r("design:type",Object)],Cz.prototype,"previousMonthLabel",void 0);
_.A([_.F(),_.r("design:type",Object)],Cz.prototype,"nextMonthLabel",void 0);_.A([_.F1("#textbox"),_.r("design:type",HTMLInputElement)],Cz.prototype,"textbox",void 0);_.A([_.F1("#calendar-dialog"),_.r("design:type",Object)],Cz.prototype,"dialog",void 0);_.A([_.F1("#calendar-main"),_.r("design:type",Object)],Cz.prototype,"JSC$15735_calendarMain",void 0);_.A([_.F1("#date-picker"),_.r("design:type",HTMLElement)],Cz.prototype,"dropdownButton",void 0);
_.A([_.Y("calendarConfig.selectedDate"),_.r("design:type",String),_.r("design:paramtypes",[])],Cz.prototype,"dateText",null);_.A([_.Y("calendarConfig","calendarConfig.selectedDate"),_.r("design:type",Object),_.r("design:paramtypes",[])],Cz.prototype,"renderData",null);_.A([_.bN("renderData","calendarConfig.selectedDate"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Cz.prototype,"scrollToDate",null);
_.A([_.mX("iron-overlay-canceled"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Cz.prototype,"onEscOrClickingOutside",null);_.A([_.oW({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],Cz);
_.q(Cz,"ytd-calendar-date-picker",function(){if(JpW!==void 0)return JpW;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return JpW=x},{mode:2});var K2W=_.p6("UTC_OFFSET_FORMAT",{utc_offset:(new LB("Z")).format(new Date)}),O_A=(new Date).getTimezoneOffset()*-60,Z_i=new Date,ypB,ILh=x8(Z_i.getTimezoneOffset());ypB=JHA(OIQ(ILh,Z_i));var EnH=_.p6("LOCAL_TIME_GMT_LABEL",{gmt_text:ypB.replace("+0","+").replace("-0","-").replace(":00","")}),lg=function(){var x=_.e.apply(this,arguments)||this;x.selectedTimeIndex=0;x.selectedTimezoneIndex=0;x.timeOfDayOptions=Qr2;return x};
_.p(lg,_.e);_.K=lg.prototype;_.K.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.K.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var x=ik4();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=x,this.selectedTimeIndex=0;else{var L=aUO(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},x,{selectedDate:L.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(D){return D.secondsSinceMidnight===L.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.K.onDatePicked=function(x){this.selectedDate=x.detail};
_.K.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.MF(this.hostElement,"ytd-date-time-selection-cancelled")};
_.K.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var x=this.selectedDate;x=new Date(x.year,x.month,x.day);_.MF(this.hostElement,"ytd-date-time-selection-update",Math.floor(x.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+x.getTimezoneOffset()*60))}};
_.K.getTimezoneFormat=function(x){return x.localizedDisplayText?x.localizedDisplayText:_.p6("TIMEZONE_FORMAT",{utc_offset_text:""+x.localizedUtcOffset,city_name:""+x.localizedName})};
_.K.updateSelectedTimeIndexFromBinding=function(x){this.selectedTimeIndex=x.detail.value};
_.K.updateSelectedTimezoneIndexFromBinding=function(x){this.selectedTimezoneIndex=x.detail.value};
_.J3.Object.defineProperties(lg.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var x=this.data.timezoneOptions;var L={name:"Etc/Unknown",localizedName:_.p6("LOCAL_TIME_LABEL"),localizedUtcOffset:K2W,utcOffsetSec:""+O_A,localizedDisplayText:EnH};x?x.length&&x[0].name!==L.name&&(x[0].localizedDisplayText||(L.localizedDisplayText=""),x.unshift(L)):x=[L];return x}}},
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]}}});
lg.prototype.onDateTimeTimezoneChange=lg.prototype.onDateTimeTimezoneChange;lg.prototype.onDatePicked=lg.prototype.onDatePicked;lg.prototype.updateDefaultSelectedValue=lg.prototype.updateDefaultSelectedValue;_.A([_.F(),_.r("design:type",Object)],lg.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],lg.prototype,"calendarConfig",void 0);_.A([_.F(),_.r("design:type",Object)],lg.prototype,"selectedDate",void 0);_.A([_.F(),_.r("design:type",Object)],lg.prototype,"selectedTimeIndex",void 0);
_.A([_.F(),_.r("design:type",Object)],lg.prototype,"selectedTimezoneIndex",void 0);_.A([_.F1("#time-listbox"),_.r("design:type",Object)],lg.prototype,"timeListBox",void 0);_.A([_.F1("#timezone-listbox"),_.r("design:type",Object)],lg.prototype,"timezoneListBox",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],lg.prototype,"rendererStamperBehavior",void 0);_.A([_.Y("data.timezoneOptions"),_.r("design:type",Object),_.r("design:paramtypes",[])],lg.prototype,"timeZones",null);
_.A([_.GV("data","timeZones"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],lg.prototype,"updateDefaultSelectedValue",null);_.A([_.Y("selectedTimezoneIndex","timeZones"),_.r("design:type",Object),_.r("design:paramtypes",[])],lg.prototype,"selectedTimezone",null);_.A([_.Y("selectedTimeIndex"),_.r("design:type",Object),_.r("design:paramtypes",[])],lg.prototype,"selectedTime",null);
_.A([_.mX("ytd-calendar-date-selected"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],lg.prototype,"onDatePicked",null);_.A([_.bN("selectedTimezone","selectedTime","selectedDate"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],lg.prototype,"onDateTimeTimezoneChange",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],lg);
_.q(lg,"ytd-date-time-picker-renderer",function(){if(c0B!==void 0)return c0B;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return c0B=x},{mode:1});var Mzr;var UM=function(){var x=_.e.apply(this,arguments)||this;x.boundOnTapDismissButton=function(){x.dismissTapHandler()};
x.dismissButtonOverrides={size:"XS"};return x};
_.p(UM,_.e);UM.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}}}}}};
UM.prototype.dismissTapHandler=function(){_.MF(this.hostElement,"yt-backstage-attachment-dismissed")};
UM.prototype.computeAttachmentType=function(x){return x?x.backstageImageRenderer?"image":x.videoRenderer?"video":"none":"none"};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],UM.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],UM.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],UM.prototype,"attachmentPreview",void 0);_.A([_.F(),_.r("design:type",Object)],UM.prototype,"dismissButton",void 0);_.A([_.F(),_.r("design:type",Object)],UM.prototype,"boundOnTapDismissButton",void 0);
_.A([_.F(),_.r("design:type",Object)],UM.prototype,"dismissButtonOverrides",void 0);_.A([_.F({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.r("design:type",String)],UM.prototype,"attachmentType",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],UM);
_.q(UM,"ytd-backstage-dismissable-attachment",function(){if(Mzr!==void 0)return Mzr;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Mzr=x},{mode:1});var dm2;var wJ=function(){var x=_.e.apply(this,arguments)||this;x.selectedVideoId=void 0;x.picker=void 0;x.dismissButtonOverrides={size:"XS"};x.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return x};
_.p(wJ,_.e);_.K=wJ.prototype;_.K.onServiceRequestCompleted=function(x){x.stopPropagation()};
_.K.handleAddVideoPreviewAction=function(x){x=this.get("addVideoPreviewAction",x);this.onGetVideoPreviewSuccess(x)};
_.K.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}}}}}};
_.K.onLaunchVideoPicker=function(x){var L=this,D=_.SR(this.get("addVideoLinkAction.title",x)),S=this.get("addVideoLinkAction.onePickHostId",x);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",x);S&&(this.picker||(D=_.c8_(_.MEw(S).setTitle(D).addView(oQH()).addView(fNH()),function(Q){L.onPickVideo(Q)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",x)||D.addView("youtube"),this.picker=D.build()),this.picker.setVisible(!0))};
_.K.onPickVideo=function(x){if(x)if(x.action==="cancel")_.MF(this.hostElement,"yt-video-link-button-cancel");else if(x.action==="picked"){x=x.docs;if(!x||x.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(x=(x==null?0:x.length)?x[0]:void 0)?x.id:void 0;this.setVideoPreview()}};
_.K.setVideoPreview=function(){var x=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){x.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.K.onGetVideoPreviewSuccess=function(x){if(x&&x.videoPreview&&x.cancelButton)this.videoPreview=x.videoPreview,this.cancelButton=x.cancelButton,_.MF(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.K.onGetVideoPreviewError=function(){this.cancel()};
_.K.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.MF(this.hostElement,"yt-video-link-cancel")};
_.K.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
wJ.prototype.onServiceRequestCompleted=wJ.prototype.onServiceRequestCompleted;_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],wJ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],wJ.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],wJ.prototype,"ytRendererBehavior",void 0);
_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],wJ.prototype,"ytComponentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],wJ.prototype,"videoPreview",void 0);_.A([_.F(),_.r("design:type",Object)],wJ.prototype,"cancelButton",void 0);_.A([_.F(),_.r("design:type",Object)],wJ.prototype,"getVideoPreviewCommand",void 0);_.A([_.F(),_.r("design:type",Object)],wJ.prototype,"dismissButtonOverrides",void 0);
_.A([_.mX("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],wJ.prototype,"onServiceRequestCompleted",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],wJ);
_.q(wJ,"ytd-backstage-video-link-attachment",function(){if(dm2!==void 0)return dm2;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return dm2=x},{mode:1});var PDh;var jrH;var vnd;var BT=function(){return _.e.apply(this,arguments)||this};
_.p(BT,_.e);BT.prototype.dataChanged=function(){this.active=!1};
BT.prototype.onTap=function(){_.MF(this.hostElement,"yt-select-emoji-suggestion",this.data)};
BT.prototype.identity=function(x){return x};
_.J3.Object.defineProperties(BT.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var x,L,D,S;if((x=this.data)==null?0:(L=x.image)==null?0:(D=L.thumbnails)==null?0:(S=D[0])==null?0:S.url)return x=this.data.image.thumbnails[0].url,x.startsWith("data:image/svg+xml")?lQ(x):_.$z(x)}}});
BT.prototype.dataChanged=BT.prototype.dataChanged;_.A([_.F(),_.r("design:type",Object)],BT.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],BT.prototype,"active",void 0);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],BT.prototype,"dataChanged",null);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],BT.prototype,"imageSrc",null);
_.A([_.w({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],BT);
_.q(BT,"ytd-emoji-suggestion",function(){if(vnd!==void 0)return vnd;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return vnd=x},{mode:1});var Vz_=/.*([:@#].*?)$/,WT=function(){var x=_.e.apply(this,arguments)||this;x.suggestions=[];x.suggestionIndex=-1;x.JSC$15763_lastSuggestionRange=null;return x};
_.p(WT,_.e);_.K=WT.prototype;_.K.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.K.getSuggestions=function(x){var L=[],D=$Wh(this.emojiManager,x.substr(0,3));if(D)for(var S in D)if(S.toLocaleLowerCase().indexOf(x)===0){var Q=D[S];if(Q&&Q.emojiId){Q=vG(this.emojiManager,Q.emojiId);var J=void 0,Z=void 0,y=void 0,E=void 0,P=((J=Q)==null?0:J.isCustomEmoji)?(Z=Q)==null?void 0:(y=Z.shortcuts)==null?void 0:y[0]:(E=Q)==null?void 0:E.emojiId;J=void 0;L.push({suggestion:{image:(J=Q)==null?void 0:J.image,alt:P,text:S}});if(L.length>=64)break}}return L?L.sort(function(v,V){return V.suggestion.text<
v.suggestion.text?-1:V.suggestion.text===v.suggestion.text?0:1}):null};
_.K.insertSuggestion=function(x){_.MF(this.hostElement,"yt-insert-suggestion",{range:this.JSC$15763_lastSuggestionRange,text:x.alt});this.dropdown.opened=!1};
_.K.updateSuggestionsAtCaret=function(x){this.updateSuggestions(x,this.retrieveTextBeforeRange(x))};
_.K.offsetStartOfRangeBy=function(x,L){x.startOffset>=L&&x.setStart(x.startContainer,x.startOffset-L)};
_.K.updateSuggestions=function(x,L){var D=this;this.JSC$15763_lastSuggestionRange&&(this.JSC$15763_lastSuggestionRange.detach(),this.JSC$15763_lastSuggestionRange=null);if((L=Vz_.exec(L))&&L.length&&(L=L[L.length-1].toLocaleLowerCase(),L.length>2||L===":_")&&(this.offsetStartOfRangeBy(x,L.length),this.JSC$15763_lastSuggestionRange=x,(x=this.getSuggestions(L))&&x.length)){this.suggestions=x;_.So(this,function(){D.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(x.length-1);return}this.dropdown.opened=!1};
_.K.onKeyDown=function(x){if(this.dropdown.opened)switch(x.key){case "Escape":this.dropdown.opened=!1;x.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);x.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);x.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),x.preventDefault()}};
_.K.onKeyUp=function(x,L){switch(x.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(L);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(L)}};
_.K.onKeyPress=function(x){x.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),x.preventDefault())};
_.K.changeSuggestionIndex=function(x){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(x+this.suggestions.length)%this.suggestions.length,x=this.dropdownContent.children[this.suggestionIndex],x.active=!0,this.dropdownContent.scrollTop=x.offsetTop)};
_.K.retrieveTextBeforeRange=function(x){var L=x.startContainer;return L&&L.nodeType===Node.TEXT_NODE?L.textContent.substr(0,x.startOffset):""};
WT.prototype.onKeyPress=WT.prototype.onKeyPress;WT.prototype.onKeyUp=WT.prototype.onKeyUp;WT.prototype.onKeyDown=WT.prototype.onKeyDown;_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],WT.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Array)],WT.prototype,"suggestions",void 0);_.A([_.F(),_.r("design:type",_.PG)],WT.prototype,"emojiManager",void 0);_.A([_.F(),_.r("design:type",Number)],WT.prototype,"verticalSuggestionsOffset",void 0);
_.A([_.F1("#dropdown"),_.r("design:type",Object)],WT.prototype,"dropdown",void 0);_.A([_.F1("#dropdown-content"),_.r("design:type",HTMLDivElement)],WT.prototype,"dropdownContent",void 0);_.A([_.mX("keydown"),_.r("design:type",Function),_.r("design:paramtypes",[KeyboardEvent]),_.r("design:returntype")],WT.prototype,"onKeyDown",null);_.A([_.mX("keyup"),_.r("design:type",Function),_.r("design:paramtypes",[KeyboardEvent,Range]),_.r("design:returntype")],WT.prototype,"onKeyUp",null);
_.A([_.mX("keypress"),_.r("design:type",Function),_.r("design:paramtypes",[KeyboardEvent]),_.r("design:returntype")],WT.prototype,"onKeyPress",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-emoji-input"})],WT);
_.q(WT,"ytd-emoji-input",function(){if(jrH!==void 0)return jrH;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return jrH=x},{mode:2});var hRQ;var q0=function(){var x=_.e.apply(this,arguments)||this;x.hasMaxOptions=!1;return x};
_.p(q0,_.e);_.K=q0.prototype;_.K.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.K.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.K.setPrefilledChoices=function(x){var L=this;this.set("pollOptions",[]);var D;for(D=0;D<Math.min(x.length,this.data.maxPollOptions);D++)this.push("pollOptions",x[D].substring(0,this.data.maxPollOptionChars));for(;D<this.data.minPollOptions;D++)this.push("pollOptions","");this.hasMaxOptions=D>=this.data.maxPollOptions;_.So(this,function(){for(var S=L.pollOptions,Q=_.jr(L.hostElement).querySelectorAll(".poll-option-input"),J=0;J<Q.length;J++)Q[J].value=S[J]})};
_.K.focusChanged=function(){_.uN(this.hostElement)};
_.K.onInput=function(){var x=this;_.LI(this,"onInput",function(){x.isValid()?_.MF(x.hostElement,"yt-commentbox-post-enable"):_.MF(x.hostElement,"yt-commentbox-post-disable")},300)};
_.K.setPollOptions=function(){var x=[],L,D=((L=this.data)==null?0:L.minPollOptions)?this.data.minPollOptions:0;for(L=0;L<D;L++)x.push("");return x};
_.K.addPollOption=function(){var x=this;_.MF(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.WW.addLowPriorityJob(function(){var L;(L=_.jr(x.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||L.focus()})};
_.K.onRemovePollOption=function(x){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.MF(this.hostElement,"yt-poll-attachment-dismiss")):(x=this.repeat.indexForElement(x.target.parentNode),x!==null&&(this.splice("pollOptions",x,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.MF(this.hostElement,"yt-commentbox-post-enable"))))};
_.K.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.K.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var x=0,L=this.pollOptions.length;x<L;x++)if(this.pollOptions[x].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.K.getPollOptions=function(){return this.pollOptions};
_.K.setPollOptionsFromInputs=function(){for(var x=_.jr(this.hostElement).querySelectorAll(".poll-option-input"),L=0;L<x.length;L++)this.pollOptions[L]=x[L].value.trim()};
_.K.clearPollOptions=function(){var x=_.jr(this.hostElement).querySelectorAll(".poll-option-input");x=_.O(x);for(var L=x.next();!L.done;L=x.next())L.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.K.getSimpleString=function(x){return _.SR(x)};
_.K.updateValueFromBinding=function(x){if(x.target&&this.pollOptions){var L=Array.from(_.jr(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(x.target);if(L>=0){var D;this.pollOptions[L]=(D=x.detail.value)!=null?D:"";this.notifyPath("pollOptions."+L)}}};
q0.prototype.dataChanged=q0.prototype.dataChanged;_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],q0.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],q0.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Array)],q0.prototype,"pollOptions",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],q0.prototype,"hasMaxOptions",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],q0.prototype,"enableCreationBox",void 0);
_.A([_.F1("#repeat"),_.r("design:type",Aq)],q0.prototype,"repeat",void 0);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],q0.prototype,"dataChanged",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-poll-attachment"})],q0);
_.q(q0,"ytd-poll-attachment",function(){if(hRQ!==void 0)return hRQ;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return hRQ=x},{mode:2});var H_W;var u_2;var gnC;var kAA;var Ab=function(){return _.e.apply(this,arguments)||this};
_.p(Ab,_.e);_.J3.Object.defineProperties(Ab.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Ab.prototype,"rendererBehaviors",void 0);_.A([_.F(),_.r("design:type",Object)],Ab.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],Ab.prototype,"focused",void 0);_.A([_.F({reflectToAttribute:!0}),_.Y("focused"),_.r("design:type",Object),_.r("design:paramtypes",[])],Ab.prototype,"ariaSelected",null);_.A([_.oW({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],Ab);
_.q(Ab,"yt-user-mention-suggestion-renderer",function(){if(kAA===void 0){var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;gnC===void 0&&(gnC=document.createElement("template"));var S=gnC;D.call(L,S.content.cloneNode(!0),x.content.firstChild);kAA=x}x=kAA;return x},{mode:2});var p7H;var mmW;var $p=function(){var x=_.e.apply(this,arguments)||this;x.focusedSuggestionIndex=-1;return x};
_.p($p,_.e);_.K=$p.prototype;_.K.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.K.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.K.setFocusedSuggestionIndex=function(x){!this.data||!this.data.suggestions||x<0||x>=this.data.suggestions.length||(this.focusedSuggestionIndex=x,x=this.getSuggestionId(x),this._setFocusedSuggestionId(x))};
_.K.advanceSuggestion=function(x){this.focusedSuggestionIndex===-1||x!==-1&&x!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+x),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.K.ensureSuggestionVisible=function(x){x=this.getSuggestionId(x);x=_.jr(this.hostElement).querySelector("[id="+x+"]");x!=null&&(x.offsetTop<this.hostElement.scrollTop?x.scrollIntoView(!0):x.offsetTop+x.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&x.scrollIntoView(!1))};
_.K.getSuggestionId=function(x){return"user-mention-suggestion-"+x};
_.K.onSuggestionTap=function(x){var L=_.g(x.model.item,Cor);this.ytRendererBehavior.logExplicitClick(L);_.MF(this.hostElement,"yt-user-mention-suggestion-selected",{data:L,index:x.model.index})};
_.K.onSuggestionMouseMove=function(x){x.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(x.model.index)};
_.K.isSuggestionFocused=function(x,L){return x===L};
_.K.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.K.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.gU("focused-suggestion-id-changed",this.focusedSuggestionId))};
$p.prototype.focusedSuggestionIdChangedForBinding=$p.prototype.focusedSuggestionIdChangedForBinding;$p.prototype.onDomChange=$p.prototype.onDomChange;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],$p.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],$p.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],$p.prototype,"focusedSuggestionIndex",void 0);_.A([_.F({readOnly:!0}),_.r("design:type",String)],$p.prototype,"focusedSuggestionId",void 0);
_.A([_.mX("dom-change"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],$p.prototype,"onDomChange",null);_.A([_.bN("focusedSuggestionId"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],$p.prototype,"focusedSuggestionIdChangedForBinding",null);_.A([_.oW({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],$p);
_.q($p,"yt-user-mention-suggestions-dropdown",function(){if(mmW===void 0){var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;p7H===void 0&&(p7H=document.createElement("template"));var S=p7H;D.call(L,S.content.cloneNode(!0),x.content.firstChild);mmW=x}x=mmW;return x},{mode:2});var rJ=function(){var x=_.e.apply(this,arguments)||this;x.suggestionsResponse=null;x.activeMention=null;x.selectionChangeListener=x.onSelectionChange.bind(x);x.handlesEnabled=_.u("enable_handles_in_mention_suggest_posts");x.handlesInMentionSuggestionsEnabled=_.u("handles_in_mention_suggest_posts");x.zeroPrefixMentionSuggestionEnabled=_.u("enable_zero_prefix_mention_suggestion_web");x.pendingQuery=null;x.flowNonce=null;return x};
_.p(rJ,_.e);_.K=rJ.prototype;_.K.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.K.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.K.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.K.hasSuggestions=function(x){return!!(x&&x.suggestions&&x.suggestions.length>0)};
_.K.onInput=function(){var x=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var L=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),D=this.activeMention.JSC$11351_getText().slice(-1)===" ",S=this.activeMention.JSC$11351_getText().slice(-2,-1)===" ",Q="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$11351_getText().slice(-2,
-1))>=0;Q=this.zeroPrefixMentionSuggestionEnabled&&Q;if(this.activeMention.isCollapsed()||(L||S||Q)&&D)this.cancelActiveMention();else{var J=this.activeMention.JSC$11351_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.LI(this,"requestSuggestions",function(){x.requestSuggestions(J)},100)}}}};
_.K.onServiceRequestSent=function(x){x.stopPropagation()};
_.K.onServiceRequestCompleted=function(x){x.stopPropagation();x=x.detail.data;x.query&&(!this.pendingQuery||this.pendingQuery!==x.query)||!this.zeroPrefixMentionSuggestionEnabled&&x.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=x,this.hasSuggestions(x)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.K.onServiceRequestError=function(x){x.stopPropagation()};
_.K.onUserMentionSuggestionSelected=function(x){this.selectSuggestion(x.detail.data,x.detail.index)};
_.K.onSelectionChange=function(){if(this.activeMention){var x=_.j8(),L=this.activeMention.JSC$11351_containsRange(x);x=x&&this.containsHelper(this.dropdown,x.getContainer());L||x||this.cancelActiveMention()}};
_.K.containsHelper=function(x,L){var D;if(((D=window.ShadyDOM)==null?void 0:D.noPatch)===!0)return x.contains(L);for(;L;){if(L===x)return!0;L=L instanceof ShadowRoot?L.host:L.parentNode}return!1};
_.K.maybeStartSuggest=function(){var x=_.j8();if(x&&x.isCollapsed()){var L=x.JSC$11351_getStartNode(),D=x.JSC$11351_getStartOffset();if(L instanceof Text&&!(D<1)){var S=L.textContent;!(S=S&&S.charAt(D-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(S)<0||(this.activeMention=_.Dz(L,D-1,x.JSC$11351_getEndNode(),x.JSC$11351_getEndOffset()),this.flowNonce=Bo(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.K.updateActiveMention=function(){if(this.activeMention){var x=_.j8();x&&x.isCollapsed()&&(this.activeMention=_.Dz(this.activeMention.JSC$11351_getStartNode(),this.activeMention.JSC$11351_getStartOffset(),x.JSC$11351_getEndNode(),x.JSC$11351_getEndOffset()))}};
_.K.requestSuggestions=function(x){if(this.activeMention){var L={suggestions_query:x};this.pendingQuery=x;_.jq(this.hostElement,[this.suggestionsEndpoint,L])}};
_.K.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()};
_.K.focusPreviousSuggestion=function(x){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),x.preventDefault())};
_.K.focusNextSuggestion=function(x){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),x.preventDefault())};
_.K.selectFocusedSuggestion=function(x){if(this.hasSuggestions(this.suggestionsResponse)){var L=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.g(L,Cor)&&(this.selectSuggestion(_.g(L,Cor),this.dropdown.focusedSuggestionIndex),x.preventDefault())}};
_.K.selectSuggestion=function(x,L){if(x){var D=this.activeMention;if(D){var S=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&x.handle?_.aa(S,"\u00a0\u2068@"+x.handle+"\u2069\u00a0"):this.handlesEnabled?_.aa(S,"\u00a0"+x.displayName+"\u00a0"):_.aa(S,"\u00a0@"+x.displayName+"\u00a0");fU(S,"/channel/"+x.channelId);S.classList.add("yt-formatted-string","yt-simple-endpoint");S.setAttribute("spellcheck","false");D.isCollapsed()||D.JSC$11351_removeContents();D.insertNode(S,!0);x=document.createTextNode(" ");
S.parentNode.insertBefore(x,S.nextSibling);window.getSelection().collapse(x,1);L={suggestionSelected:{suggestionIndex:L}};if(this.zeroPrefixMentionSuggestionEnabled){var Q;L.suggestionSelected.isZeroPrefix=((Q=this.suggestionsResponse)==null?void 0:Q.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",L);this.cancelActiveMention();_.MF(this.hostElement,"yt-mention-inserted")}}};
_.K.getPositionTarget=function(x){return x&&x.getBrowserRangeObject()};
_.K.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.K.onFocusedSuggestionIdChanged=function(x){var L=_.jYp(this.hostElement)[0];L&&(x.detail.value?L.setAttribute("aria-activedescendant",x.detail.value):L.removeAttribute("aria-activedescendant"))};
_.K.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.K.logGELEvent=function(x,L){x={eventType:x,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};L&&(x=Object.assign(x,L));_.Uh("userMentionAutoCompleteBoxEvent",x)};
rJ.prototype.onDomChange=rJ.prototype.onDomChange;rJ.prototype.onUserMentionSuggestionSelected=rJ.prototype.onUserMentionSuggestionSelected;rJ.prototype.onServiceRequestError=rJ.prototype.onServiceRequestError;rJ.prototype.onServiceRequestCompleted=rJ.prototype.onServiceRequestCompleted;rJ.prototype.onServiceRequestSent=rJ.prototype.onServiceRequestSent;rJ.prototype.onInput=rJ.prototype.onInput;_.A([_.b(_.A4),_.r("design:type",Object)],rJ.prototype,"ironA11yKeysBehavior",void 0);
_.A([_.F(),_.r("design:type",Object)],rJ.prototype,"suggestionsEndpoint",void 0);_.A([_.F(),_.r("design:type",Object)],rJ.prototype,"suggestionsResponse",void 0);_.A([_.F(),_.r("design:type",Object)],rJ.prototype,"activeMention",void 0);_.A([_.F1("#dropdown"),_.r("design:type",Object)],rJ.prototype,"dropdown",void 0);_.A([_.F1("#iron-dropdown"),_.r("design:type",Object)],rJ.prototype,"ironDropdown",void 0);
_.A([_.mX("input"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],rJ.prototype,"onInput",null);_.A([_.mX("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],rJ.prototype,"onServiceRequestSent",null);_.A([_.mX("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],rJ.prototype,"onServiceRequestCompleted",null);
_.A([_.mX("yt-service-request-error"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],rJ.prototype,"onServiceRequestError",null);_.A([_.mX("yt-user-mention-suggestion-selected"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],rJ.prototype,"onUserMentionSuggestionSelected",null);
_.A([_.mX("dom-change"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],rJ.prototype,"onDomChange",null);_.A([_.oW({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],rJ);
_.q(rJ,"yt-user-mention-autosuggest-input",function(){if(u_2===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;H_W===void 0&&(H_W=document.createElement("template"));var S=H_W;D.call(L,S.content.cloneNode(!0),x.content.firstChild);u_2=x}x=u_2;return x},{mode:2});var N0=null;
_.q$({is:"ytd-commentbox",_template:function(){if(PDh!==void 0)return PDh;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return PDh=x},
behaviors:[_.oA3.YtHostElementBehavior,_.A4,_.ir.YtActionHandlerBehavior,_.jZ.YtComponentBehavior,_.GZ.YtRendererstamperBehavior,_.ONW.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(x,L){return _.u6(x.entities,"aadcGuidelinesStateEntityPayload",L)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(x,L){return _.u6(x.entities,"commentboxStateEntity",L)},
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 _.VT}},
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:_.u("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.u("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",_.p$(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(x){this.fire(x?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(x){this.set("submitButtonDisabled",void 0);this.clear();x&&this.computeIsEmojiButtonDisplayed_(x)&&(x=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&x.updateEmojiCategories()},
observePrefilledImage_:function(x,L,D){this.isValidPrefilledImage_(x,L,D)&&(this.prefilledAttachment_="image",this.prefilledImageData_=L,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(x,L){this.isValidPrefilledVideo_(x,L)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(x){x&&x.pollData&&x.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(x.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.R4();this.focus()},
detached:function(){document.removeEventListener("tap",_.p$(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(x){x=x.detail;x=x.isCustomEmoji?x.shortcuts[0]:x.emojiId;var L=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(L,x);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var x=_.j8();if(x){x=x.getBrowserRangeObject();for(var L=x.commonAncestorContainer;L;){if(L===this.getEditableTextArea_())return x;L=L.parentNode}}x=this.getEditableTextArea_();x=_.L1(x,x.childNodes.length);x.select();return x.getBrowserRangeObject()},
insertTextWithEmojis_:function(x,L,D){(L=this.emojiManager.createDocumentFragment(L,!0,!1,D===void 0?!0:D))&&L.childNodes.length!==0&&(x.collapsed||x.deleteContents(),D=L.lastChild,x.insertNode(L),_.YYA(D).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var x=_.j8();if(x){var L=x.JSC$11351_getStartNode(),D=x.JSC$11351_getEndNode();if(XRc(L)&&XRc(D)){var S=x.JSC$11351_getStartOffset(),Q;if(_.HN&&L.nodeType===Node.ELEMENT_NODE&&(Q=_.blC(L)))_.L1(Q,0).select();else{Q=M1(L)?L:_.rk(L,M1);var J=M1(D)?D:_.rk(D,M1);if(Q||J)if(x.isCollapsed()){if(L.nodeType===Node.TEXT_NODE){x=!0;S===L.length&&(x=!1);if(N0==="end"||N0==="right")x=!1;L=L.parentNode;x=[].concat(_.lP(L.parentNode.childNodes)).indexOf(L)+(x?0:1);_.L1(L.parentNode,
x).select()}}else Q?Q.previousSibling&&Q.previousSibling.length>0?_.Dz(D,x.JSC$11351_getEndOffset(),Q.previousSibling,Q.previousSibling.length-1).select():(L=document.createTextNode("\u200b"),Q.parentNode.insertBefore(L,Q),_.Dz(D,x.JSC$11351_getEndOffset(),L,0).select()):J&&(J.nextSibling&&J.nextSibling.length>0?_.Dz(L,x.JSC$11351_getStartOffset(),J.nextSibling,1).select():(D=document.createTextNode("\u200b"),J.parentNode.insertBefore(D,J.nextSibling),_.Dz(L,x.JSC$11351_getStartOffset(),D,D.length).select()));
N0=null}}else N0=null}else N0=null},
leftKeyPressed_:function(){N0="left"},
rightKeyPressed_:function(){N0="right"},
endKeyPressed_:function(){N0="end"},
maybeDeleteChip_:function(){var x=D8f(!0);if(x){var L=_.j8(),D=L.JSC$11351_getStartNode();L=L.JSC$11351_getStartOffset();_.X4(D,L,x,x.childNodes.length).select()}},
maybeBackspaceChip_:function(){var x=D8f(!1);if(x){var L=_.j8(),D=L.JSC$11351_getStartNode();L=L.JSC$11351_getStartOffset();_.X4(D,L,x,0).select()}},
maybeBackspaceChipWordMode_:function(x){var L=_.j8();if(L.isCollapsed()){var D=L.JSC$11351_getStartNode();L=L.JSC$11351_getStartOffset();var S=SlO(D,L,!0);S&&(_.X4(D,L,S,0).select(),document.execCommand("delete"),x.preventDefault(),x.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(x){var L=_.j8();if(L.isCollapsed()){var D=L.JSC$11351_getStartNode();L=L.JSC$11351_getStartOffset();var S=SlO(D,L,!1);S&&(_.X4(D,L,S,S.childNodes.length).select(),document.execCommand("delete"),x.preventDefault(),x.stopImmediatePropagation())}},
onTap_:function(x){if(!x.defaultPrevented&&(x.currentTarget.tagName==="YTD-COMMENTBOX"&&M1(x.target)&&x.preventDefault(),this.isEmojiPickerDisplayed)){var L=this.$$("#emojis"),D=this.$$("#emoji-button"),S=this.getEditableTextArea_();if((x=x.path?x.path:x.composedPath&&x.composedPath())&&!x.includes(L)&&!x.includes(S)&&!x.includes(D))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(x,L,D){return x==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&L!==void 0&&L.encryptedBlobId!==null&&L.sourceExternalVideoId!==null&&D!==void 0&&D.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(x,L){return x==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!L&&!!L.videoRenderer&&!!L.videoRenderer.videoId},
isValidPrefilledAttachment_:function(x,L,D){return this.isValidPrefilledImage_(x,L,D)||this.isValidPrefilledVideo_(x,D)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.u("enable_multi_image_post_creation")){var x=this.$$("ytd-backstage-multi-image-select-renderer");x&&x.hasImages()&&x.cancel()}else(x=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&x.cancel();(x=this.$["poll-attachment"])&&this.hasPoll_&&x.clearPollOptions();(x=this.$["image-poll-attachment"])&&this.hasImagePoll_&&x.resetPollOptions();(x=this.$["quiz-attachment"])&&this.hasQuiz_&&x.resetQuizOptions();
(x=this.$["video-link-attachment"])&&this.hasVideo_&&x.cancel();(x=this.$["access-restrictions-selector"].firstElementChild)&&x.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 _.jr(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.jr(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(x,L){x=nw0(x,this.emojiManager,L).cloneNode(!0);for(L=x.firstChild;L;)if(L.nodeType!==1)L=L.nextSibling;else switch(L.tagName){case "BR":var D=_.$l();_.Cq2(D,L);L=D.nextSibling;break;case "DIV":(D=L.lastChild)&&L.nextSibling&&_.ft(_.$l(),D);L.previousSibling&&(L.previousSibling.nodeType===1||L.previousSibling.nodeType===3&&!L.previousSibling.textContent.endsWith("\n"))&&_.iW(_.$l(),L);D&&D.nodeName==="BR"&&_.mg(D);D=L;L.hasChildNodes()?(L=L.firstChild,
_.lY2(D)):(L=L.nextSibling,_.mg(D));break;default:L=L.nextSibling}return Qef(x)},
onAddImageError_:function(x){x.stopPropagation();this.errorMessage_=_.Dv(x.detail)},
setTextAreaValue_:function(x){x||(x="");var L=this.getEditableFormattedString_();L.text="";this.getEditableTextArea_().innerText="";typeof x==="string"&&(x={runs:[{text:x}]});L.text=x},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();N0=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var x=this.getEditableTextArea_();x&&(_.L1(x,x.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.$6("HTML_DIR")==="rtl"){var x=this.getEditableTextArea_(),L=this.getTextAreaValue()!==""?"auto":"rtl";x.setAttribute("dir",L)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var x;return NIb((x=this.$["quiz-attachment"])==null?void 0:x.getExplanationText())||NIb(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var x=null;if(this.isEmojiButtonDisplayed){var L=this.getInputRange_();L&&(x=this.emojiInput.retrieveTextBeforeRange(L))}this.insertText_(x,!0);this.updateCharCount_();this.setSubmitButton_();x=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=x.scrollHeight>x.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var x=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:x})},
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(x){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(x)},
onPasteEmoji_:function(x){x.preventDefault();x.stopImmediatePropagation();x=x.clipboardData.getData("text/plain");this.insertText_(x,!1,!1)},
insertText_:function(x,L,D){L=L===void 0?!1:L;D=D===void 0?!0:D;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&x){var S=this.getInputRange_().cloneRange();this.emojiManager&&S&&(L&&this.emojiInput.offsetStartOfRangeBy(S,x.length),this.insertTextWithEmojis_(S,x,D),cPN(this.getEditableTextArea_().lastChild)||(S=this.getInputRange_().cloneRange()),S&&(this.emojiInput.updateSuggestions(S,x),this.updateSuggestionOffset_(S)))}},
setSubmitButton_:function(){if(this.data){var x=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",L=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(x||L){var D=this.getTextAreaValue().trim();L=D===this.previousText_;D=!D||this.aboveCharLimit_;x&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(D=this.aboveCharLimit_);this.submitButtonDisabled=
L||D||!this.getTextLength();x&&_.u("enable_post_scheduling")&&(this.submitButtonDisabled=L&&!this.scheduledPublishTimeSec_||D)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.SR,computeCreationBoxClass_:function(x){return x?"focused":"not-focused"},
computeFooterMessageClass_:function(x,L){return L?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(x,L){return L?L:x},
computeFooterMessageHidden_:function(x,L){return!L&&!x},
computePlaceholderText_:function(x,L,D){return(D==="video"||D==="image")&&(x==null?0:x.prefilledPlaceholderText)?x==null?void 0:x.prefilledPlaceholderText:L==="poll"||L==="image-poll"?x==null?void 0:x.pollPostPlaceholderText:L==="quiz"?x==null?void 0:x.quizPostPlaceholderText:L==="image"?x==null?void 0:x.imagePostPlaceholderText:x==null?void 0:x.placeholderText},
computeHideAttachmentButtons_:function(x,L,D,S){return x===void 0?!1:S&&this.getSimpleString(S)===this.getSimpleString(x.rateLimitErrorMessage)?!0:L!=="none"||D!=="none"||!x.videoLinkButton&&!x.pollButton&&!x.imagePollButton&&!x.quizButton&&!x.imageButton},
computeHideDismissableAttachment_:function(x){return x!=="image"&&x!=="video"},
computeHasVideo_:function(x){return x==="video"},
computeHasImage_:function(x){return x==="image"},
computeHasPoll_:function(x){return x==="poll"},
computeHasImagePoll_:function(x){return x==="image-poll"},
computeHasQuiz_:function(x){return x==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(x){return x&&x.backstageAttachment?x.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!x.backstageAttachment.quizRenderer&&!x.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(x){if(this.isValidPrefilledAttachment_(x.purpose,x.prefilledImageData,x.backstageAttachment))return x.backstageAttachment},
computeEditAttachment_:function(x){if(this.computePrefilledContent_(x)===void 0)return x.backstageAttachment},
computeAuthorThumbnailDimension_:function(x,L){return x&&!L?24:40},
computeImageUploadEndpoint_:function(x){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",x)},
computeRateLimitErrorCommands_:function(x){var L,D;return x==null?void 0:(L=x.advancedTierFeatures)==null?void 0:(D=L.rateLimit)==null?void 0:D.rateLimitCommands},
computeIsBackstageComment_:function(x){return!(!x||x!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(x){return this.get("submitButton.buttonRenderer.serviceEndpoint",x)||this.get("replyButton.buttonRenderer.serviceEndpoint",x)||this.get("postButton.buttonRenderer.serviceEndpoint",x)},
computeSubmitButtonOverride:function(){if(_.u("web_modern_buttons")){var x,L;return{segmentedPosition:this.dropdownSchedulePanel_||!((x=this.data)==null?0:(L=x.postOptionsMenu)==null?0:L.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.u("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(x,L){x=this.get("submitButton.buttonRenderer",x)||this.get("replyButton.buttonRenderer",x)||this.get("postButton.buttonRenderer",x);L&&(x=L);x&&(x=Object.assign({},x),x.serviceEndpoint=void 0,x.isDisabled=this.submitButtonDisabled);return x},
computeHasExternalLinksAccess_:function(x){if(_.u("enable_rfa_external_links")){var L,D,S;return(S=x==null?void 0:(L=x.advancedTierFeatures)==null?void 0:(D=L.externalLinks)==null?void 0:D.allowExternalLinks)!=null?S:!0}return!0},
computeIsEmojiButtonDisplayed_:function(x){return x.emojiButton&&x.emojiPicker&&x.emojiPicker.emojiPickerRenderer&&x.emojiPicker.emojiPickerRenderer.categories?x.emojiPicker.emojiPickerRenderer.categories.find(function(L){return L.emojiPickerCategoryRenderer?L.emojiPickerCategoryRenderer.emojiIds&&L.emojiPickerCategoryRenderer.emojiIds.length>0:L.emojiPickerUpsellCategoryRenderer?L.emojiPickerUpsellCategoryRenderer.emojis&&L.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(x){return x.charLimit?x.charLimit:null},
computeDropdownSchedulingPanel_:function(x,L){if(x==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&L)return L},
computeInlineSchedulingPanel_:function(x,L){if(x==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&L)return L},
computeHideAuthorThumbnail_:function(x,L){return x||this.computeUseIdentityChip_(L)},
computeHideIdentityChipRenderer_:function(x,L){return x||!this.computeUseIdentityChip_(L)},
computeUseIdentityChip_:function(x){return!!x&&!!x.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(x){var L,D,S,Q;(x==null?0:(L=x.detail)==null?0:(D=L.endpoint)==null?0:D.ypcGetOffersEndpoint)||(x==null?0:(S=x.detail)==null?0:(Q=S.endpoint)==null?0:Q.ypcOffersEndpoint)?(x.stopPropagation(),_.jq(this,[x.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",x)&&(x.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(x){this.addedAttachment="video";this.selectedVideoId_=x.detail.videoId},
commentboxStateEntityChanged_:function(x){var L=this;(x==null?void 0:x.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(x==null?void 0:x.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){L.focus()})},
onYtServiceRequestSent_:function(x,L){if(L.actions)for(x=_.O(L.actions),L=x.next();!L.done;L=x.next())L.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(x){this.isLoading=!1;var L=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",x),D,S,Q,J=x==null?void 0:(D=x.detail)==null?void 0:(S=D.data)==null?void 0:(Q=S.actionResult)==null?void 0:Q.commentboxStateEntityKey;if(L)this.errorMessage_=L;else if(J){var Z;this.dismissData_=x==null?void 0:(Z=x.detail)==null?void 0:Z.data;this.commentboxStateKey_=J}else{this.clear();var y;this.fire("yt-commentbox-dismiss",x==null?void 0:(y=x.detail)==
null?void 0:y.data)}},
onYtServiceRequestError_:function(x){x.stopPropagation();this.isLoading=!1;var L,D;if(((L=this.data)==null?void 0:L.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((D=this.data)==null?void 0:D.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(L=this.get("detail.error.args",x)||[],L.length>1&&L[1].message){this.handlePostsServiceRequestError_(L[1].message);return}(x=this.get("detail.error.message",x))?this.errorMessage_=this.data.errorMessage||_.Dv(x):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(x){if(_.u("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var L=_.O(this.rateLimitErrorCommands),D=L.next();!D.done;D=L.next())if(D=D.value,D.errorLabel===x){_.mA(D.command,this.hostElement);return}this.errorMessage_=_.Dv(x)},
submitIfNotBackstagePost_:function(x){if(!this.isBackstagePost)this.onSubmit_(x)},
onSubmit_:function(x){var L=this,D,S,Q,J,Z,y,E,P,v,V,h,H,k,T,G;return _.I(function(U){switch(U.nextAddress){case 1:x.stopPropagation();if(!L.serviceEndpoint||!L.isValidInput_())return U.return();if(L.shouldShowPostAadcNotice_())return L.showPostAadcNotice_(),U.return();if(L.shouldShowCommentAadcNotice_())return L.showCommentAadcNotice_(),U.return();if(!(L.$$("ytd-backstage-multi-image-select-renderer")&&L.hasImage_&&_.u("enable_multi_image_post_creation"))){U.jumpTo(2);break}D=L.$$("ytd-backstage-multi-image-select-renderer");
return U.yield(D.getAllUploadStatuses(),3);case 3:S=U.yieldResult;if(!S)return U.return();Q=_.O(S);for(J=Q.next();!J.done;J=Q.next())if(Z=J.value,Z.encryptedBlobId===void 0)return L.isLoading=!1,E=y=void 0,L.errorMessage_=(E=(y=L.imageUploadEndpoint_)==null?void 0:y.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?E:null,U.return();return U.return(L.submitForm_(void 0,void 0,void 0,void 0,D.images,L.taggedVideoId_));case 2:if(!L.hasImagePoll_||!L.$["image-poll-attachment"]){U.jumpTo(4);
break}return U.yield(L.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:P=U.yieldResult;if(!P)return U.return();v=_.O(P);for(V=v.next();!V.done;V=v.next())if(h=V.value,!h.encryptedBlobId)return L.isLoading=!1,H=void 0,L.errorMessage_=(H=L.data.errorMessage)!=null?H:null,U.return();case 4:T=(k=L.$$("ytd-backstage-image-select-renderer"))&&k.uploadPromise(),G=L.getSharedPostId_(),T?T.then(function(){L.submitForm_.apply(L,_.lP(_.Ne.apply(0,arguments)))}).catch(function(l){L.isLoading=!1;
L.errorMessage_=_.Dv(l.message)}):L.selectedVideoId_?L.submitForm_(void 0,L.selectedVideoId_):L.prefilledAttachment_==="image"?L.submitForm_(L.prefilledImageData_.encryptedBlobId,void 0,void 0,L.prefilledImageData_.sourceExternalVideoId,void 0,L.taggedVideoId_):L.prefilledAttachment_==="video"?L.submitForm_(void 0,L.data.backstageAttachment.videoRenderer.videoId):G?L.submitForm_(void 0,void 0,G):L.taggedVideoId_!==void 0?L.submitForm_(void 0,void 0,void 0,void 0,void 0,L.taggedVideoId_):L.submitForm_(),
_.Y2(U)}})},
openSchedulingPanel:function(x){x&&x.scheduleButton&&x.scheduleButton.buttonRenderer&&(this.scheduleButton_=x.scheduleButton.buttonRenderer);x&&x.dateTimePicker&&this.set("data.schedulingDateTimePicker",x.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(x){x.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(x){x.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(x){x.stopPropagation();x.detail.alertMessage&&(this.alertMessage_=x.detail.alertMessage)},
onImageSelected_:function(x){x.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(x){x.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(x){x.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(x.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(x){x.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(x){var L=this.$["video-link-attachment"];L&&L.onLaunchVideoPicker(x)},
onAttachmentDismiss_:function(x){x.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"&&_.u("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.u("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 x;if(this.addedAttachment==="image-poll"&&((x=this.$["image-poll-attachment"])==null||!x.isValid()))return!1;var L;if(this.addedAttachment==="quiz"&&((L=this.$["quiz-attachment"])==null||!L.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;x=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(x=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")x=!0;return x||!!this.getTextAreaValue().trim()},
submitForm_:function(x,L,D,S,Q,J){var Z=this.getTextAreaValue().trim(),y={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&Z===this.previousText_&&(Z=void 0);Z!==void 0&&(y.comment_text=Z);this.isLoading=!0;J!=void 0&&(y.tagged_video_id=J);x?(y.image_blob_id=x,this.imagePreviewCoordinates_&&(y.image_preview_coordinates=this.imagePreviewCoordinates_)):L?y.attached_video_id=L:D?y.shared_post_id=D:Q&&Q.length>0&&(y.images_data=Q.map(function(E){return{encryptedBlobId:E.encryptedBlobId,
previewCoordinates:E.previewCoordinates}}));
S&&(y.source_video_id=S);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());_.u("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(y.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.u("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(y.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.jq(this,[this.serviceEndpoint,y])},
onIsInputFocusChanged_:function(x,L){x?this.fire("yt-autonav-pause-focus"):L!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(x){var L=this.getEditableTextArea_();[].concat(_.lP(x.dataTransfer.items)).forEach(function(D){D.kind==="string"&&D.type.match("^text/plain")&&D.getAsString(function(S){L.appendChild(document.createTextNode(S))})});
x.preventDefault()},
preventDefault_:function(x){x.preventDefault()},
onSuggestionInsert_:function(x){this.insertTextWithEmojis_(x.detail.range,x.detail.text)},
onEmojiSuggestionClick_:function(x){this.emojiInput.insertSuggestion(x.detail)},
computeSubmitButtonClass_:function(x,L){return!L||x?"":"with-options"},
updateSuggestionOffset_:function(x){if(this.emojiInput&&_.jr(this.emojiInput).querySelector("#dropdown")){var L=this.getEditableTextArea_().getBoundingClientRect().bottom,D=x.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(L-D)+5;L=this.getEditableTextArea_().getBoundingClientRect().left;x=x.getBoundingClientRect().left-L;_.jr(this.emojiInput).querySelector("#dropdown").style.marginLeft=x+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(x){if(_.u("enable_post_scheduling")&&this.data&&this.data.purpose){x=x.detail;if(Math.floor(Date.now()/1E3)>=x)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var L=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(L)||L!==x?this.scheduledPublishTimeSec_=x:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=x;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var x=["image-button","image-poll-button","poll-button"];_.u("enable_quiz_creation")&&x.push("quiz-button");_.u("auto_convert_posts_video_tag")||x.push("video-link-button");return x},
getButtonRenderer:function(x,L){if(x)switch(L){case "video-link-button":var D;return((D=x.videoLinkButton)==null?void 0:D.buttonRenderer)||void 0;case "image-button":var S;return((S=x.imageButton)==null?void 0:S.buttonRenderer)||void 0;case "poll-button":var Q;return((Q=x.pollButton)==null?void 0:Q.buttonRenderer)||void 0;case "image-poll-button":var J;return((J=x.imagePollButton)==null?void 0:J.buttonRenderer)||void 0;case "quiz-button":var Z;return((Z=x.quizButton)==null?void 0:Z.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var x;return(x=this.data)==null||!x.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var x,L;return!((x=this.data)==null||!x.openAadcDialog)&&!((L=this.aadcGuidelinesState_)==null||!L.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.$6("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var x;((x=this.data)==null?0:x.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.Ng("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(x){x.clickTrackingParams&&_.sk().clickCommand(x);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.dg(this,"yt-close-popup-action")},
onHideIdentityChip:function(x){var L;this.set("data.placeholderText",(L=x.hideIdentityChipAction)==null?void 0:L.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var ig=function(){var x=_.e.apply(this,arguments)||this;x.isOpen=!1;x.modern=_.u("web_modern_buttons");x.roundedContainer=!0;x.dropdownButtonOverride=_.u("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;x.inPopupContainer=!1;x.isCommentboxLoading=!1;var L=["image-button","image-poll-button","poll-button"];_.u("enable_quiz_creation")&&L.push("quiz-button");_.u("auto_convert_posts_video_tag")||L.push("video-link-button");x.attachmentButtonIds=L;x.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 x};
_.p(ig,_.e);_.K=ig.prototype;_.K.computeButtonOverride=function(){var x;return((x=this.data)==null?0:x.postOptionsMenu)&&_.u("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.K.configureRendererStamper=function(){var x={"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]]"}}}}};_.u("auto_convert_posts_video_tag")||(x["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return x};
_.K.ready=function(){var x=this,L=_.jr(this.hostElement).querySelector("#placeholder-area"),D=function(S){x.onOpen(S)};
L.addEventListener("tap",D);L.addEventListener("keypress",D)};
_.K.showButtonEduTooltip=function(){var x,L,D,S,Q,J,Z;if(_.u("enable_quiz_creation")&&((x=this.data)==null?0:(L=x.quizButton)==null?0:(D=L.buttonRenderer)==null?0:(S=D.hint)==null?0:(Q=S.hintRenderer)==null?0:(J=Q.content)==null?0:(Z=J.bubbleHintRenderer)==null?0:Z.text)&&(_.Cp.getInstance(),x=lo(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(x==null?void 0:
x.length)>0)){this.ytComponentBehavior.resolveCommand(x[0],{form:{element:this.quizButton}});return}var y;if((y=this.data)==null?0:y.imagePollButtonTooltip)if(_.Cp.getInstance(),y=lo(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 E;_.u("enable_multi_image_post_creation")&&
((E=this.data)==null?0:E.multiImageButtonTooltip)&&(_.Cp.getInstance(),E=lo(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(E==null?void 0:E.length)>0&&this.ytComponentBehavior.resolveCommand(E[0],{form:{element:this.imageButton}}))};
_.K.onCreatePollAction=function(x){_.g(x,ymh)&&(this.JSC$15818_commentbox.addedAttachment="poll",this.openDialog())};
_.K.onAddVideoLinkAction=function(x){if(_.g(x,JmG))this.JSC$15818_commentbox.onAddVideoLink(x)};
_.K.onShowSchedulingPanelCommand=function(x){(x=_.g(x,l9h))&&this.openSchedulingPanel(x)};
_.K.onCreateImagePollCommand=function(x){_.g(x,TeB)&&(this.JSC$15818_commentbox.openImagePollComponent(),this.openDialog())};
_.K.onCreateQuizCommand=function(x){_.g(x,eei)&&(this.JSC$15818_commentbox.openQuizComponent(),this.openDialog())};
_.K.openSchedulingPanel=function(x){_.u("enable_post_scheduling")&&(this.openDialog(),this.JSC$15818_commentbox.openSchedulingPanel(x))};
_.K.onCreateCommentAction=function(x){this.get("createCommentAction.contents",x)&&(this.JSC$15818_commentbox.clear(),this.closeDialog())};
_.K.onOpen=function(x){x instanceof KeyboardEvent&&x.type==="keypress"&&x.keyCode!==13&&x.keyCode!==32||(this.data.prepareAccountEndpoint?_.MF(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.K.onYtCommentboxDismiss=function(){this.closeDialog()};
_.K.onYtCommentboxLoadingStart=function(x){x.stopPropagation();this.isCommentboxLoading=!0};
_.K.onYtCommentboxLoadingEnd=function(x){x.stopPropagation();this.isCommentboxLoading=!1};
_.K.onYtVideoLinkButtonCancel=function(x){x.stopPropagation();this.onOpen(x)};
_.K.onYtVideoLinkSelected=function(x){x.stopPropagation();this.onOpen(x)};
_.K.onIronSelect=function(x){x.stopPropagation();x.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=x.detail.item.value&&(this.accessRestriction?(this.accessRestriction=x.detail.item.value,this.onOpen(x)):this.accessRestriction=x.detail.item.value)};
_.K.onYtNavigate=function(x){this.get("detail.endpoint.backstageImageUploadEndpoint",x)&&(this.JSC$15818_commentbox.addedAttachment="image",this.JSC$15818_commentbox.submitButtonDisabled=!0,this.onOpen(x))};
_.K.onRequestSent=function(x){if(_.u("web_button_rework"))for(var L=_.O(x.detail),D=L.next();!D.done;D=L.next())_.g(D.value,$Vd)&&(this.JSC$15818_commentbox.addedAttachment="image",this.JSC$15818_commentbox.submitButtonDisabled=!0,this.onOpen(x))};
_.K.openDialog=function(){var x;(x=this.data)!=null&&x.isIneligibleForCommunityPagePostCreation||(this.JSC$15818_commentbox.accessRestriction=this.accessRestriction,this.isOpen=!0,this.JSC$15818_commentbox.focus())};
_.K.onPopupClosed=function(){_.Cp.getInstance()};
_.K.computeCreationDisabled=function(x){return!!x};
_.K.computeIsCreationDialog=function(x){return!!x&&x==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.K.computeDisabledPostButton=function(x){if(!x)return null;x.isDisabled=!0;return x};
_.K.computeIsCreationDialogWithHeader=function(x){return!this.inPopupContainer&&!!x&&!!x.authorText&&x.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.K.computeIsHeaderHidden=function(x,L){return!x||L};
_.K.computeDropdownRendererClasses=function(x){return x?["text-secondary-style"]:[]};
_.K.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var x=_.jr(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;x&&x.reset()};
ig.prototype.onPopupClosed=ig.prototype.onPopupClosed;ig.prototype.onRequestSent=ig.prototype.onRequestSent;ig.prototype.onYtNavigate=ig.prototype.onYtNavigate;ig.prototype.onIronSelect=ig.prototype.onIronSelect;ig.prototype.onYtVideoLinkSelected=ig.prototype.onYtVideoLinkSelected;ig.prototype.onYtVideoLinkButtonCancel=ig.prototype.onYtVideoLinkButtonCancel;ig.prototype.onYtCommentboxLoadingEnd=ig.prototype.onYtCommentboxLoadingEnd;ig.prototype.onYtCommentboxLoadingStart=ig.prototype.onYtCommentboxLoadingStart;
ig.prototype.onYtCommentboxDismiss=ig.prototype.onYtCommentboxDismiss;ig.prototype.showButtonEduTooltip=ig.prototype.showButtonEduTooltip;_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],ig.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],ig.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],ig.prototype,"ytRendererBehavior",void 0);
_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],ig.prototype,"ytActionHandlerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],ig.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],ig.prototype,"isOpen",void 0);_.A([_.F({computed:"computeButtonOverride(data)"}),_.r("design:type",Object)],ig.prototype,"buttonOverride",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],ig.prototype,"modern",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],ig.prototype,"roundedContainer",void 0);_.A([_.F(),_.r("design:type",Object)],ig.prototype,"dropdownButtonOverride",void 0);_.A([_.F({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.r("design:type",Boolean)],ig.prototype,"creationDisabled",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],ig.prototype,"enableCreationBox",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.r("design:type",Boolean)],ig.prototype,"isCreationDialog",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],ig.prototype,"inPopupContainer",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.r("design:type",Boolean)],ig.prototype,"isCreationDialogWithHeader",void 0);_.A([_.F(),_.r("design:type",Object)],ig.prototype,"accessRestriction",void 0);
_.A([_.F({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.r("design:type",Array)],ig.prototype,"dropdownRendererClasses",void 0);_.A([_.F(),_.r("design:type",Object)],ig.prototype,"isCommentboxLoading",void 0);_.A([_.F(),_.r("design:type",Array)],ig.prototype,"attachmentButtonIds",void 0);_.A([_.F1("#image-button"),_.r("design:type",HTMLElement)],ig.prototype,"imageButton",void 0);
_.A([_.F1("#image-poll-button"),_.r("design:type",HTMLElement)],ig.prototype,"imagePollButton",void 0);_.A([_.F1("#quiz-button"),_.r("design:type",HTMLElement)],ig.prototype,"quizButton",void 0);_.A([_.F1("#commentbox"),_.r("design:type",Object)],ig.prototype,"JSC$15818_commentbox",void 0);_.A([_.bN("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ig.prototype,"showButtonEduTooltip",null);
_.A([_.mX("yt-commentbox-dismiss"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],ig.prototype,"onYtCommentboxDismiss",null);_.A([_.mX("yt-commentbox-loading-start"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],ig.prototype,"onYtCommentboxLoadingStart",null);
_.A([_.mX("yt-commentbox-loading-end"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],ig.prototype,"onYtCommentboxLoadingEnd",null);_.A([_.mX("yt-video-link-button-cancel"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],ig.prototype,"onYtVideoLinkButtonCancel",null);
_.A([_.mX("yt-video-link-selected"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],ig.prototype,"onYtVideoLinkSelected",null);_.A([_.mX("iron-select"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],ig.prototype,"onIronSelect",null);_.A([_.mX("yt-navigate"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],ig.prototype,"onYtNavigate",null);
_.A([_.mX("yt-service-request-sent-button-renderer"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],ig.prototype,"onRequestSent",null);_.A([_.mX("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ig.prototype,"onPopupClosed",null);_.A([_.w({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],ig);
_.q(ig,"ytd-backstage-post-dialog-renderer",function(){if(oFC!==void 0)return oFC;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return oFC=x},{mode:1});var b_i;var YQQ;var fz=function(){return _.e.apply(this,arguments)||this};
_.p(fz,_.e);_.K=fz.prototype;_.K.computeHeartButtonStyle=function(x){return(x==null?0:x.styleType)?x.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.K.onYtButtonTap=function(){if(this.data.isEnabled){var x=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(x=this.getEndpoint(x))&&_.yY().resolve(_.E2).resolveCommand(x,{form:{element:this.hostElement}})}else(x=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(x)};
_.K.toggle=function(x){this.set("data.isHearted",x!==void 0?x:!this.data.isHearted)};
_.K.getEndpoint=function(x){var L,D=(L=this.data)==null?void 0:L.heartEndpoint,S;L=(S=this.data)==null?void 0:S.unheartEndpoint;if(D&&L)return x?L:D};
_.K.computeButtonAccessibility=function(x,L){var D,S,Q=x==null?void 0:(D=x.heartedAccessibility)==null?void 0:(S=D.accessibilityData)==null?void 0:S.label,J,Z;x=x==null?void 0:(J=x.unheartedAccessibility)==null?void 0:(Z=J.accessibilityData)==null?void 0:Z.label;return L?Q:x};
_.J3.Object.defineProperties(fz.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 x;return _.u("kevlar_system_icons")&&!((x=this.data)==null||!x.isHearted)}}});
fz.prototype.onYtButtonTap=fz.prototype.onYtButtonTap;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],fz.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.Fz),_.r("design:type",Object)],fz.prototype,"ytdOpenPopupBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],fz.prototype,"data",void 0);_.A([_.Y("data.isHearted"),_.r("design:type",Object),_.r("design:paramtypes",[])],fz.prototype,"heartTooltip",null);
_.A([_.Y("data.isHearted"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],fz.prototype,"iconFilled",null);_.A([_.F({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.r("design:type",String)],fz.prototype,"buttonAccessibility",void 0);_.A([_.F({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.r("design:type",String)],fz.prototype,"heartButtonStyle",void 0);
_.A([_.mX("tap"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],fz.prototype,"onYtButtonTap",null);_.A([_.w({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],fz);
_.q(fz,"ytd-creator-heart-renderer",function(){if(YQQ!==void 0)return YQQ;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return YQQ=x},{mode:1});var o0=function(){var x=_.e.apply(this,arguments)||this;x.hasCreatorReply=!1;x.buttonOverrides={size:"S",iconPosition:"icon-only"};x.replyButtonOverrides={size:"S",type:"text"};x.forceIconButton=!_.u("web_modern_buttons");x.modern=_.u("web_modern_buttons");x.buttonTooltipPosition="bottom";x.systemIcons=_.u("kevlar_system_icons");x.replyDialog=null;return x};
_.p(o0,_.e);_.K=o0.prototype;
_.K.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]]"}}}}}};
_.K.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.K.dataChange=function(){this.replyDialog&&_.jr(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var x,L,D;this.isLiked=this.systemIcons&&!!((x=this.data)==null?0:(L=x.likeButton)==null?0:(D=L.toggleButtonRenderer)==null?0:D.isToggled)};
_.K.computeShowVoteCountBeginning=function(x,L){return x===void 0||L===void 0?!0:x.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!L&&this.ytRendererBehavior.getSimpleString(L)!=="0"};
_.K.computeShowVoteCountEnd=function(x,L){return x===void 0||L===void 0?!0:x.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!L&&this.ytRendererBehavior.getSimpleString(L)!=="0"};
_.K.computeShowCommentCount=function(x,L){return x===void 0||L===void 0?!0:x.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!L&&this.ytRendererBehavior.getSimpleString(L)!=="0"};
_.K.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.K.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.K.showReplyDialog=function(x){x&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.jr(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=x,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.K.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.K.onRequestSent=function(x){if(_.u("web_button_rework")){x=_.O(x.detail);for(var L=x.next();!L.done;L=x.next())(L=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",L.value))&&this.showReplyDialog(L)}};
_.K.onYtNavigate=function(x){var L,D;(x=(L=_.g(x.detail.endpoint,_.N1B))==null?void 0:(D=L.dialog)==null?void 0:D.commentReplyDialogRenderer)&&this.showReplyDialog(x)};
_.K.onYtServiceRequestSent=function(x,L){x.stopPropagation();if(L.actions)for(x=0;x<L.actions.length;x++){var D=_.g(L.actions[x],j2C);D&&this.handleUpdateCommentVoteAction(D)}};
_.K.handleUpdateCommentVoteAction=function(x){this.voteCount=x.voteCount||_.Dv("0");x.voteStatus==="LIKE"?this.JSC$15830_ytdDislikeToggleButtonRenderer.toggle(!1):x.voteStatus==="DISLIKE"?this.JSC$15830_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$15830_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$15830_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.K.computeReplyButtonHidden=function(x){return x};
_.K.computeReplyButtonBeginning=function(x){return(x==null?0:x.replyButton)&&x.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?x.replyButton:void 0};
_.K.computeReplyButtonEnd=function(x){return(x==null?0:x.replyButton)&&x.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?x.replyButton:void 0};
_.K.computeActionButtonStyle=function(x){return(x==null?0:x.style)?x.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.K.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.K.onYtToggleButton=function(x){var L,D;this.isLiked=this.systemIcons&&!!((L=x.detail)==null?0:(D=L.actions)==null?0:D.like)};
o0.prototype.onYtToggleButton=o0.prototype.onYtToggleButton;o0.prototype.onButtonTooltipPositionChanged=o0.prototype.onButtonTooltipPositionChanged;o0.prototype.onYtServiceRequestSent=o0.prototype.onYtServiceRequestSent;o0.prototype.onYtNavigate=o0.prototype.onYtNavigate;o0.prototype.onRequestSent=o0.prototype.onRequestSent;o0.prototype.onYtCommentboxDismiss=o0.prototype.onYtCommentboxDismiss;o0.prototype.dataChange=o0.prototype.dataChange;
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],o0.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],o0.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],o0.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],o0.prototype,"voteCount",void 0);_.A([_.F(),_.r("design:type",Object)],o0.prototype,"commentCount",void 0);_.A([_.F(),_.r("design:type",Object)],o0.prototype,"replyThumbnail",void 0);
_.A([_.F(),_.r("design:type",Object)],o0.prototype,"hasCreatorReply",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],o0.prototype,"enableCreationBox",void 0);_.A([_.F({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.r("design:type",String)],o0.prototype,"actionButtonsStyle",void 0);_.A([_.F({computed:"computeReplyButtonBeginning(data)"}),_.r("design:type",Object)],o0.prototype,"replyButtonBeginning",void 0);
_.A([_.F({computed:"computeReplyButtonEnd(data)"}),_.r("design:type",Object)],o0.prototype,"replyButtonEnd",void 0);_.A([_.F(),_.r("design:type",Object)],o0.prototype,"buttonOverrides",void 0);_.A([_.F(),_.r("design:type",Object)],o0.prototype,"replyButtonOverrides",void 0);_.A([_.F(),_.r("design:type",Object)],o0.prototype,"forceIconButton",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],o0.prototype,"useCommentIcon",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],o0.prototype,"modern",void 0);_.A([_.F(),_.r("design:type",Object)],o0.prototype,"buttonTooltipPosition",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],o0.prototype,"systemIcons",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],o0.prototype,"isLiked",void 0);_.A([_.F1("ytd-button-renderer"),_.r("design:type",Object)],o0.prototype,"ytdReplyButtonRenderer",void 0);
_.A([_.F1("#like-button"),_.r("design:type",Object)],o0.prototype,"JSC$15830_ytdLikeToggleButtonRenderer",void 0);_.A([_.F1("#dislike-button"),_.r("design:type",Object)],o0.prototype,"JSC$15830_ytdDislikeToggleButtonRenderer",void 0);_.A([_.F1("#reply-dialog"),_.r("design:type",HTMLElement)],o0.prototype,"replyDialogElement",void 0);_.A([_.F1("#reply-button"),_.r("design:type",HTMLElement)],o0.prototype,"replyButtonElement",void 0);
_.A([_.F1("#reply-button-end"),_.r("design:type",HTMLElement)],o0.prototype,"replyButtonEndElement",void 0);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],o0.prototype,"dataChange",null);_.A([_.mX("yt-commentbox-dismiss"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],o0.prototype,"onYtCommentboxDismiss",null);
_.A([_.mX("yt-service-request-sent-button-renderer"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],o0.prototype,"onRequestSent",null);_.A([_.mX("yt-navigate"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],o0.prototype,"onYtNavigate",null);
_.A([_.mX("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.zQ]),_.r("design:returntype")],o0.prototype,"onYtServiceRequestSent",null);_.A([_.bN("buttonTooltipPosition"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],o0.prototype,"onButtonTooltipPositionChanged",null);
_.A([_.mX("yt-toggle-button"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],o0.prototype,"onYtToggleButton",null);_.A([_.w({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],o0);
_.q(o0,"ytd-comment-action-buttons-renderer",function(){if(b_i!==void 0)return b_i;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return b_i=x},{mode:1});var F2C;var a0=function(){return _.e.apply(this,arguments)||this};
_.p(a0,_.e);a0.prototype.focus=function(){_.jr(this.hostElement).querySelector("#commentbox").focus()};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],a0.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],a0.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],a0.prototype,"zeroStepChannelCreationRenderer",void 0);_.A([_.w({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],a0);
_.q(a0,"ytd-comment-dialog-renderer",function(){if(F2C!==void 0)return F2C;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return F2C=x},{mode:1});var srH;var zf=function(){var x=_.e.apply(this,arguments)||this;x.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.u("enable_web_delhi_icons")};x.replyButtonOverrides={size:"S",type:"text"};return x};
_.p(zf,_.e);_.K=zf.prototype;_.K.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.K.detached=function(){this.replyBox&&this.replyBox.remove()};
_.K.showReplyDialog=function(x){if(x){var L=this.replyBox;L||(L=document.createElement("ytd-comment-reply-dialog-renderer"),L.id="replybox",_.jr(this.replyDialogDiv).appendChild(L));L.data=x;this.replyDialogDiv.hidden=!1;L.openDialog()}};
_.K.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.K.handleReplyButtonClick=function(){if(this.isSubsOnlyCommentsEligibleUser){var x,L=_.g((x=this.toolbarSurface)==null?void 0:x.subscribersOnlyDisclaimerSnackbarCommand,_.ii);L&&_.MF(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:L})}};
_.K.onYtServiceRequestSent=function(x,L){x.stopPropagation();if(L.actions)for(var D=0;D<L.actions.length;D++){var S=_.g(L.actions[D],j2C);S?this.handleUpdateCommentVoteAction(S):x.target===this.heartButton&&this.toggleHeartState()}};
_.K.handleUpdateCommentVoteAction=function(x){var L;(L=this.toolbarState)!=null&&L.key&&this.ytdReduxBehavior.dispatch(_.B2("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:x.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":x.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.K.toggleHeartState=function(){var x;(x=this.toolbarState)!=null&&x.key&&this.ytdReduxBehavior.dispatch(_.B2("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.J3.Object.defineProperties(zf.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var x,L,D;return(((x=this.toolbarState)==null?void 0:x.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(L=this.toolbarData)==null?void 0:L.likeCountLiked:(D=this.toolbarData)==null?void 0:D.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.toolbarSurface)==null?void 0:x.commentDisabledActionCommand)!==void 0}},
isSubsOnlyCommentsIneligibleUser:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.toolbarSurface)==null?void 0:x.subscribersOnlySnackbarCommand)!==void 0}},
isSubsOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.toolbarSurface)==null?void 0:x.subscribersOnlyDisclaimerSnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.toolbarSurface)==null?void 0:x.prepareAccountCommand)!==void 0&&!_.u("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var x,L=_.g((x=this.toolbarSurface)==null?void 0:x.prepareAccountCommand,_.ii),D,S,Q,J,Z,y,E,P,v;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((D=this.toolbarSharedData)==null||!D.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((S=this.toolbarState)==null?void 0:S.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:L!=null?L:_.g((Q=this.toolbarSurface)==null?void 0:Q.likeCommand,_.ii),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:L!=null?L:_.g((J=this.toolbarSurface)==null?void 0:J.unlikeCommand,_.ii),defaultCommand:this.isVisiblyDisabled?_.g((Z=this.toolbarSurface)==null?void 0:Z.commentDisabledActionCommand,_.ii):void 0,defaultTooltip:(y=this.toolbarData)==null?void 0:y.likeInactiveTooltip,toggledTooltip:(E=this.toolbarData)==null?void 0:E.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(P=this.toolbarData)==null?void 0:P.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(v=this.toolbarSharedData)==null?void 0:v.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var x,L=_.g((x=this.toolbarSurface)==null?void 0:x.prepareAccountCommand,_.ii),D,S,Q,J,Z,y,E,P,v,V;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((D=this.toolbarSharedData)==null||!D.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((S=this.toolbarState)==null?void 0:S.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:L!=null?L:_.g((Q=this.toolbarSurface)==null?void 0:Q.dislikeCommand,_.ii),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:L!=null?L:_.g((J=this.toolbarSurface)==null?void 0:J.undislikeCommand,_.ii),defaultCommand:this.isVisiblyDisabled?_.g((Z=this.toolbarSurface)==null?void 0:Z.commentDisabledActionCommand,_.ii):void 0,defaultTooltip:(y=this.toolbarData)==null?void 0:y.dislikeInactiveTooltip,toggledTooltip:(E=this.toolbarData)==null?void 0:
E.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(P=this.toolbarSharedData)==null?void 0:P.dislikeReplyButtonA11y:(v=this.toolbarSharedData)==null?void 0:v.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(V=this.toolbarSharedData)==null?void 0:V.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var x,L,D;if(((x=this.toolbarState)==null?void 0:x.heartState)!==void 0&&((L=this.toolbarState)==null?void 0:L.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((D=this.toolbarState)==null?void 0:D.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var S,Q,J,Z,y,E,P,v,V,h,H,k,T,G;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(S=this.toolbarData)==null?void 0:S.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((Q=this.toolbarState)==null?void 0:Q.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((J=this.toolbarState)==null?void 0:J.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((Z=this.toolbarState)==null?void 0:Z.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((y=this.toolbarState)==null?void 0:y.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.g((E=this.toolbarSurface)==null?void 0:E.heartCommand,
_.ii),unheartEndpoint:this.isVisiblyDisabled?void 0:_.g((P=this.toolbarSurface)==null?void 0:P.unheartCommand,_.ii),disabledEndpoint:this.isVisiblyDisabled?_.g((v=this.toolbarSurface)==null?void 0:v.commentDisabledActionCommand,_.ii):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(V=this.toolbarData)==null?void 0:V.heartActiveTooltip,unheartedTooltip:(h=this.toolbarData)==null?void 0:h.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((H=
this.toolbarState)==null?void 0:H.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(k=this.toolbarSharedData)==null?void 0:k.unheartButtonA11y:(T=this.toolbarSharedData)==null?void 0:T.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(G=this.toolbarSharedData)==null?void 0:G.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.toolbarSurface)==null||!x.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var x,L,D,S;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(x=this.commentStrings)==null?void 0:x.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:_.g((L=this.toolbarSurface)==null?void 0:L.replyCommand,_.ii),command:this.isVisiblyDisabled?_.g((D=this.toolbarSurface)==null?
void 0:D.commentDisabledActionCommand,_.ii):this.isSubsOnlyCommentsIneligibleUser?_.g((S=this.toolbarSurface)==null?void 0:S.subscribersOnlySnackbarCommand,_.ii):void 0}}}});
zf.prototype.onYtServiceRequestSent=zf.prototype.onYtServiceRequestSent;zf.prototype.hideReplyDialogDiv=zf.prototype.hideReplyDialogDiv;_.A([_.F(),_.r("design:type",Object)],zf.prototype,"commentStrings",void 0);_.A([_.F(),_.r("design:type",Boolean)],zf.prototype,"isReply",void 0);_.A([_.F(),_.r("design:type",Object)],zf.prototype,"toolbarData",void 0);_.A([_.F(),_.r("design:type",Object)],zf.prototype,"toolbarSharedData",void 0);
_.A([_.F(),_.r("design:type",String)],zf.prototype,"toolbarStateKey",void 0);_.A([_.F(),_.r("design:type",String)],zf.prototype,"toolbarSurfaceKey",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],zf.prototype,"ytdReduxBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],zf.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],zf.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.b(_.Fz),_.r("design:type",Object)],zf.prototype,"ytdOpenPopupBehavior",void 0);_.A([_.F1("#reply-dialog"),_.r("design:type",HTMLElement)],zf.prototype,"replyDialogDiv",void 0);_.A([_.F1("#replybox"),_.r("design:type",Object)],zf.prototype,"replyBox",void 0);_.A([_.F1("ytd-creator-heart-renderer"),_.r("design:type",Object)],zf.prototype,"heartButton",void 0);_.A([_.F({selector:function(x,L){return _.u6(x.entities,"engagementToolbarStateEntityPayload",L)},
selectorArgs:["toolbarStateKey"]}),_.r("design:type",Object)],zf.prototype,"toolbarState",void 0);_.A([_.F({selector:pe0,selectorArgs:["toolbarSurfaceKey"]}),_.r("design:type",Object)],zf.prototype,"toolbarSurface",void 0);_.A([_.F(),_.r("design:type",Object)],zf.prototype,"buttonOverrides",void 0);_.A([_.mX("yt-commentbox-dismiss"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],zf.prototype,"hideReplyDialogDiv",null);
_.A([_.Y("toolbarData","toolbarState"),_.r("design:type",String),_.r("design:paramtypes",[])],zf.prototype,"likeCount",null);_.A([_.Y("likeCount"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],zf.prototype,"showLikeCount",null);_.A([_.Y("toolbarSurface"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],zf.prototype,"isVisiblyDisabled",null);_.A([_.Y("toolbarSurface"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],zf.prototype,"isSubsOnlyCommentsIneligibleUser",null);
_.A([_.Y("toolbarSurface"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],zf.prototype,"isSubsOnlyCommentsEligibleUser",null);_.A([_.Y("toolbarSurface"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],zf.prototype,"hasPrepareAccountCommand",null);_.A([_.Y("toolbarData","toolbarState","toolbarSurface"),_.r("design:type",Object),_.r("design:paramtypes",[])],zf.prototype,"likeToggleButtonRenderer",null);
_.A([_.Y("isReply","toolbarData","toolbarState","toolbarSurface"),_.r("design:type",Object),_.r("design:paramtypes",[])],zf.prototype,"dislikeToggleButtonRenderer",null);_.A([_.Y("toolbarData","toolbarState","toolbarSurface"),_.r("design:type",Object),_.r("design:paramtypes",[])],zf.prototype,"creatorHeartSupportedRenderer",null);_.A([_.Y("toolbarSurface"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],zf.prototype,"hasReplyCommand",null);
_.A([_.Y("toolbarSurface","commentStrings","isVisiblyDisabled"),_.r("design:type",Object),_.r("design:paramtypes",[])],zf.prototype,"replyButtonRenderer",null);_.A([_.F(),_.r("design:type",Object)],zf.prototype,"replyButtonOverrides",void 0);_.A([_.mX("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.zQ]),_.r("design:returntype")],zf.prototype,"onYtServiceRequestSent",null);_.A([_.w({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],zf);
_.q(zf,"ytd-comment-engagement-bar",function(){if(srH!==void 0)return srH;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return srH=x},{mode:1});var TiH;var XG=function(){return _.e.apply(this,arguments)||this};
_.p(XG,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],XG.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],XG.prototype,"data",void 0);_.A([_.w({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],XG);
_.q(XG,"ytd-comment-inline-thumbnail-renderer",function(){if(TiH!==void 0)return TiH;var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return TiH=x},{mode:1});var eRC;var cT=function(){return _.e.apply(this,arguments)||this};
_.p(cT,_.e);cT.prototype.onMessageTap=function(){if(this.onTapCommand){var x=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);x&&this.ytdOpenPopupBehavior.openPopup(x)}};
_.J3.Object.defineProperties(cT.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var x,L,D;return(x=this.data)==null?void 0:(L=x.button)==null?void 0:(D=L.buttonRenderer)==null?void 0:D.command}}});
_.A([_.b(_.Fz),_.r("design:type",Object)],cT.prototype,"ytdOpenPopupBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],cT.prototype,"data",void 0);_.A([_.Y("data.button.buttonRenderer.command"),_.r("design:type",Object),_.r("design:paramtypes",[])],cT.prototype,"onTapCommand",null);_.A([_.w({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],cT);
_.q(cT,"ytd-comment-pause-composer-renderer",function(){if(eRC!==void 0)return eRC;var x=document.createElement("template");_.m(x,'\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>');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return eRC=x},{mode:1});var RRA;var GA_;var nz=function(){var x=_.e.apply(this,arguments)||this;x.isOpen=!1;return x};
_.p(nz,_.e);_.K=nz.prototype;_.K.dataChanged=function(){this.isOpen=!1};
_.K.onTap=function(){this.data&&(this.data.navigationEndpoint?_.MF(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.K.focus=function(){this.JSC$15860_commentbox.focus()};
_.K.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.K.openDialog=function(){this.isOpen=!0;this.JSC$15860_commentbox.focus();this.JSC$15860_commentbox.maybeHeightChanged()};
nz.prototype.onYtCommentboxDismiss=nz.prototype.onYtCommentboxDismiss;nz.prototype.dataChanged=nz.prototype.dataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],nz.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],nz.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],nz.prototype,"isOpen",void 0);_.A([_.F1("#commentbox"),_.r("design:type",Object)],nz.prototype,"JSC$15860_commentbox",void 0);
_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],nz.prototype,"dataChanged",null);_.A([_.mX("yt-commentbox-dismiss"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],nz.prototype,"onYtCommentboxDismiss",null);_.A([_.w({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],nz);
_.q(nz,"ytd-comment-reply-dialog-renderer",function(){if(GA_!==void 0)return GA_;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return GA_=x},{mode:1});var CDA;var tb=function(){return _.e.apply(this,arguments)||this};
_.p(tb,_.e);_.J3.Object.defineProperties(tb.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var x,L,D=(x=this.data)==null?void 0:(L=x.icon)==null?void 0:L.iconType;return D?"yt-icons:"+D.toLowerCase():null}}});
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],tb.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],tb.prototype,"data",void 0);_.A([_.F(),_.Y("data.icon"),_.r("design:type",Object),_.r("design:paramtypes",[])],tb.prototype,"icon",null);_.A([_.w({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],tb);
_.q(tb,"ytd-pinned-comment-badge-renderer",function(){if(CDA!==void 0)return CDA;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return CDA=x},{mode:1});var lL2;var UmG={},w7A={input:!0,meta:!0,br:!0,link:!0,img:!0},xM=null;UmG.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(){xM==null&&(xM=document.createElement("tp-yt-paper-tooltip"),xM.offset=8,xM.fitToVisibleBounds=!0)},
onMouseOver_:function(x){if(x=_.rk(x.target,function(Q){return Q==this||Q.getAttribute&&Q.getAttribute("shared-tooltip-text")}.bind(this),!0)){var L=x.getAttribute("shared-tooltip-text");
if(L){var D=this,S=null;x!=this&&(x.tagName.toLowerCase()in w7A?D=x.parentElement:D=x,x.id&&(S=x.id));this.polymerController.createTooltipIfRequired_();if(xM.parentElement!=D||xM.for!=S)(0,_.HP)(xM).textContent=L,_.jr(D).appendChild(xM),xM.for=S,xM.animationDelay=this.polymerController.sharedTooltipAnimationDelay,xM.position=this.polymerController.sharedTooltipPosition}}}};var L5=function(){return _.e.apply(this,arguments)||this};
_.p(L5,_.e);L5.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]]"}}}}}};
L5.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img");var x;((x=this.data)==null?0:x.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
L5.prototype.colorChanged=function(){var x,L,D,S=(x=this.data)==null?void 0:(L=x.color)==null?void 0:(D=L.basicColorPaletteData)==null?void 0:D.foregroundBodyColor;S&&(this.rgbBadgeColor=_.zF(S));_.jr(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
L5.prototype.tooltipChanged=function(){var x;((x=this.data)==null?0:x.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
L5.prototype.tooltipChanged=L5.prototype.tooltipChanged;L5.prototype.colorChanged=L5.prototype.colorChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],L5.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],L5.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(UmG.YtSharedTooltipBehavior),_.r("design:type",Object)],L5.prototype,"ytSharedTooltipBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],L5.prototype,"data",void 0);
_.A([_.F({value:"#4285F4"}),_.r("design:type",String)],L5.prototype,"rgbBadgeColor",void 0);_.A([_.bN("data.color"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],L5.prototype,"colorChanged",null);_.A([_.bN("data.tooltip"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],L5.prototype,"tooltipChanged",null);_.A([_.w({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],L5);
_.q(L5,"ytd-sponsor-comment-badge-renderer",function(){if(lL2!==void 0)return lL2;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return lL2=x},{mode:1});var BiA;var W2R;var DI=function(){return _.e.apply(this,arguments)||this};
_.p(DI,_.e);DI.prototype.computeState=function(x){switch(x==null?void 0:x.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"}};
DI.prototype.updateStateIdentifier=function(x){if(this.viewModel.triStateKey){var L=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.B2("triStateButtonStateEntityPayload",L,{key:L,stateIdentifier:x}))}};
DI.prototype.onClick=function(){var x=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(){x.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){x.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.J3.Object.defineProperties(DI.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 x;return((x=this.data)==null?void 0:x.buttonText)||""}}});
_.A([_.F(),_.r("design:type",Object)],DI.prototype,"viewModel",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],DI.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],DI.prototype,"ytdReduxBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],DI.prototype,"ytRendererBehavior",void 0);_.A([_.F({selector:mvb,selectorArgs:["viewModel.triStateKey"]}),_.r("design:type",Object)],DI.prototype,"triStateButtonStateEntity",void 0);
_.A([_.F({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.r("design:type",String)],DI.prototype,"state",void 0);_.A([_.Y("viewModel","state"),_.r("design:type",Object),_.r("design:paramtypes",[])],DI.prototype,"data",null);_.A([_.Y("data"),_.r("design:type",String),_.r("design:paramtypes",[])],DI.prototype,"buttonText",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],DI);
_.q(DI,"ytd-tri-state-button-view-model",function(){if(W2R!==void 0)return W2R;var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return W2R=x},{mode:1});var qQQ;var ApQ;var SM=function(){var x=_.e.apply(this,arguments)||this;x.defaultIconToFilled=!_.u("kevlar_fill_comment_chip_icon_killswitch");return x};
_.p(SM,_.e);SM.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
SM.prototype.dataChanged=function(){if(this.data){var x,L;((x=this.data.chipColorPalette)==null?0:x.backgroundColor)&&((L=this.data.chipColorPalette)==null?0:L.foregroundTitleColor)&&_.uN(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.XA(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.XA(this.data.chipColorPalette.foregroundTitleColor)});var D;((D=this.data)==null?0:D.command)?(_.uN(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.uN(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}};
SM.prototype.onTap=function(){var x;if(this.data&&(x=this.data)!=null&&x.command){var L;this.ytComponentBehavior.resolveCommand((L=this.data)==null?void 0:L.command)}};
SM.prototype.getIconSize=function(){return _.u("kevlar_fill_comment_chip_icon_killswitch")?24:12};
SM.prototype.onTap=SM.prototype.onTap;SM.prototype.dataChanged=SM.prototype.dataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],SM.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],SM.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.A4),_.r("design:type",Object)],SM.prototype,"ironA11yKeysBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],SM.prototype,"data",void 0);
_.A([_.F(),_.r("design:type",Object)],SM.prototype,"basePriceText",void 0);_.A([_.F(),_.r("design:type",Object)],SM.prototype,"chipIcon",void 0);_.A([_.F(),_.r("design:type",Object)],SM.prototype,"defaultIconToFilled",void 0);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],SM.prototype,"dataChanged",null);_.A([_.mX("tap"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],SM.prototype,"onTap",null);
_.A([_.oW({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],SM);
_.q(SM,"yt-pdg-comment-chip-renderer",function(){if(ApQ===void 0){var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;qQQ===void 0&&(qQQ=document.createElement("template"));var S=qQQ;D.call(L,S.content.cloneNode(!0),x.content.firstChild);ApQ=x}x=ApQ;return x},{mode:2});var QM=function(){var x=_.e.apply(this,arguments)||this;x.useSmallAvatars=_.u("small_avatars_for_comments");x.webWatchCompactComments=_.u("web_watch_compact_comments");x.editDialog=null;return x};
_.p(QM,_.e);_.K=QM.prototype;_.K.onShow=function(){_.rg("cmv",void 0,"wn_comments")};
_.K.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"}}}};
_.K.detached=function(){this.editDialog=null;this.expander.reset()};
_.K.updateBackgroundColor=function(){if(this.backgroundColor){var x={"--ytd-comment-paid-background-color":_.XA(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.uN(this.hostElement,x)}else _.uN(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.K.resetExpander=function(){var x;(x=this.expander)==null||x.reset()};
_.K.openEditDialog=function(x){x.dialog&&(this.editDialog=x.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.K.onYtNavigate=function(x){var L=x.detail.endpoint;if(L=_.g(L,_.iSr)||_.g(L,_.fFh))x.stopPropagation(),this.openEditDialog(L)};
_.K.onYtCommentboxDismiss=function(){this.editDialog=null;_.uN(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.K.onAuthorThumbnailClicked=function(){_.u("enable_profile_cards_on_comments")&&(this==null?0:this.authorThumbnailEndpoint)&&(this==null?0:this.authorThumbnailAnchor)&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{form:{sourceElement:this.authorThumbnailAnchor}})};
_.K.onYtCommentboxResize=function(x){var L;(x==null?0:(L=x.detail)==null?0:L.height)&&_.uN(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":x.detail.height+"px"})};
_.J3.Object.defineProperties(QM.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 x,L=(x=this.commentEntity)==null?void 0:x.author;return L&&(L.isCreator||L.isVerified||L.isArtist)?{renderer:{authorEndpoint:L.channelPageEndpoint?_.g(L.channelPageEndpoint,_.ii):_.g(L.channelCommand,_.ii),authorText:{runs:[{text:L.displayName}]},color:L.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:L.isArtist?{iconType:"AUDIO_BADGE"}:
L.isVerified?{iconType:L.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:L.isArtist||L.isVerified?L.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var x,L=(x=this.commentEntity)==null?void 0:x.author;return L!=null&&L.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:L.sponsorBadgeUrl}]},tooltip:L.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var x;return _.g((x=this.commentSurfaceEntity)==null?void 0:x.pdgCommentChip,_.urQ)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var x;return this.voiceReplyContainerViewModel&&((x=this.voiceReplyContainerViewModel)==null?void 0:x.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var x;return _.g((x=this.commentSurfaceEntity)==null?void 0:x.voiceReplyContainerViewModel,moi)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var x;return this.voiceReplyContainerViewModel&&(x=this.voiceReplyContainerViewModel)!=null&&x.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var x,L;return(L=(x=this.commentSurfaceEntity)==null?void 0:x.commentBackgroundColor)!=null?L:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.u("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var x,L;return(((x=this.commentEntity)==null?void 0:(L=x.properties)==null?void 0:L.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var x,L;if(_.u("enable_profile_cards_on_comments")&&((x=this.commentEntity)==null?0:(L=x.author)==null?0:L.profileCardEndpoint)&&this.viewModel.allowProfileCard){var D,S;return _.g((D=this.commentEntity)==null?void 0:(S=D.author)==null?void 0:S.profileCardEndpoint,_.ii)}var Q,J;return _.g((Q=this.commentEntity)==null?void 0:(J=Q.avatar)==null?void 0:J.endpoint,_.ii)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var x,L;if(_.u("enable_profile_cards_on_comments")&&((x=this.commentEntity)==null?0:(L=x.author)==null?0:L.channelPageEndpoint)){var D,S;return _.g((D=this.commentEntity)==null?void 0:(S=D.author)==null?void 0:S.channelPageEndpoint,_.ii)}var Q,J;return _.g((Q=this.commentEntity)==null?void 0:(J=Q.avatar)==null?void 0:J.endpoint,_.ii)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var x,L,D,S,Q=(x=this.commentEntity)==null?void 0:(L=x.avatar)==null?void 0:(D=L.image)==null?void 0:(S=D.sources)==null?void 0:S[0];return Q?{thumbnails:[{url:Q.url,width:Q.width,height:Q.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var x,L;return((x=this.commentEntity)==null?0:(L=x.author)==null?0:L.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var x,L;return((x=this.commentEntity)==null?void 0:(L=x.author)==null?void 0:L.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var x,L;return((x=this.commentEntity)==null?void 0:(L=x.properties)==null?void 0:L.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var x;return _.g((x=this.commentSurfaceEntity)==null?void 0:x.publishedTimeCommand,_.ii)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var x,L;if(((x=this.commentEntity)==null?0:x.translatedContent)&&((L=this.translateButtonState)==null?void 0:L.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var D;if((D=this.voiceReplyContainerViewModel)==null?0:D.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var S,Q;return((S=this.commentEntity)==null?void 0:(Q=S.properties)==null?void 0:Q.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var x,L;return((x=this.commentSharedEntity)==null?void 0:(L=x.strings)==null?void 0:L.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var x,L;return((x=this.commentSharedEntity)==null?void 0:(L=x.strings)==null?void 0:L.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.commentEntity)==null||!x.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var x,L,D=(L=_.g((x=this.viewModel)==null?void 0:x.translateButton,pZR))!=null?L:{},S,Q,J,Z,y,E,P,v,V,h,H;return Object.assign({},D,{untoggledStateData:Object.assign({},D.untoggledStateData,{buttonText:(S=this.commentEntity)==null?void 0:(Q=S.translateData)==null?void 0:Q.text}),togglingStateData:Object.assign({},D.togglingStateData,{buttonText:(J=this.commentSharedEntity)==null?
void 0:(Z=J.strings)==null?void 0:Z.translatingText}),toggledStateData:Object.assign({},D.toggledStateData,{buttonText:(y=this.commentSharedEntity)==null?void 0:(E=y.strings)==null?void 0:E.seeOriginalText}),transitionCommand:((P=this.commentEntity)==null?0:P.translatedContent)?void 0:_.g((v=this.commentEntity)==null?void 0:(V=v.translateData)==null?void 0:V.translateComment,_.ii),triStateKey:(h=this.commentEntity)==null?void 0:(H=h.properties)==null?void 0:H.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var x,L,D;return((L=_.g(_.g((x=this.toolbarSurface)==null?void 0:x.menuCommand,_.ii),oKh))==null?void 0:(D=L.menu)==null?void 0:D.menuRenderer)||null}}});
QM.prototype.onYtCommentboxResize=QM.prototype.onYtCommentboxResize;QM.prototype.onYtCommentboxDismiss=QM.prototype.onYtCommentboxDismiss;QM.prototype.onYtNavigate=QM.prototype.onYtNavigate;QM.prototype.resetExpander=QM.prototype.resetExpander;QM.prototype.updateBackgroundColor=QM.prototype.updateBackgroundColor;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],QM.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],QM.prototype,"ytdReduxBehavior",void 0);
_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],QM.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],QM.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F1("#author-thumbnail > button"),_.r("design:type",HTMLElement)],QM.prototype,"authorThumbnailAnchor",void 0);_.A([_.F({reflectToAttribute:!0}),_.Y("viewModel"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],QM.prototype,"linked",null);
_.A([_.Y("viewModel","linked"),_.r("design:type",Object),_.r("design:paramtypes",[])],QM.prototype,"linkedCommentBadge",null);_.A([_.F({reflectToAttribute:!0}),_.Y("viewModel"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],QM.prototype,"pinned",null);_.A([_.Y("viewModel","pinned"),_.r("design:type",Object),_.r("design:paramtypes",[])],QM.prototype,"pinnedCommentBadge",null);
_.A([_.Y("commentEntity","commentSharedEntity"),_.r("design:type",Object),_.r("design:paramtypes",[])],QM.prototype,"authorCommentBadge",null);_.A([_.F({reflectToAttribute:!0}),_.Y("authorCommentBadge"),_.r("design:type",Object),_.r("design:paramtypes",[])],QM.prototype,"hasAuthorBadge",null);_.A([_.Y("commentEntity"),_.r("design:type",Object),_.r("design:paramtypes",[])],QM.prototype,"sponsorCommentBadge",null);
_.A([_.F({reflectToAttribute:!0}),_.Y("sponsorCommentBadge"),_.r("design:type",Object),_.r("design:paramtypes",[])],QM.prototype,"hasSponsorBadge",null);_.A([_.Y("commentSurfaceEntity"),_.r("design:type",Object),_.r("design:paramtypes",[])],QM.prototype,"pdgCommentChipRenderer",null);_.A([_.F({reflectToAttribute:!0}),_.Y("voiceReplyContainerViewModel"),_.r("design:type",Object),_.r("design:paramtypes",[])],QM.prototype,"hasVoiceReply",null);
_.A([_.Y("commentSurfaceEntity"),_.r("design:type",Object),_.r("design:paramtypes",[])],QM.prototype,"voiceReplyContainerViewModel",null);_.A([_.Y("voiceReplyContainerViewModel"),_.r("design:type",Object),_.r("design:paramtypes",[])],QM.prototype,"voiceReplyUnavailableText",null);_.A([_.F(),_.r("design:type",Object)],QM.prototype,"data",void 0);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],QM.prototype,"viewModel",null);
_.A([_.F({selector:function(x,L){return _.u6(x.entities,"commentSharedEntityPayload",L)},
selectorArgs:["viewModel.sharedKey"]}),_.r("design:type",Object)],QM.prototype,"commentSharedEntity",void 0);_.A([_.F({selector:function(x,L){return _.u6(x.entities,"commentEntityPayload",L)},
selectorArgs:["viewModel.commentKey"]}),_.r("design:type",Object)],QM.prototype,"commentEntity",void 0);_.A([_.F({selector:function(x,L){return _.u6(x.entities,"commentSurfaceEntityPayload",L)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.r("design:type",Object)],QM.prototype,"commentSurfaceEntity",void 0);_.A([_.F({selector:pe0,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.r("design:type",Object)],QM.prototype,"toolbarSurface",void 0);_.A([_.F({selector:mvb,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.r("design:type",Object)],QM.prototype,"translateButtonState",void 0);
_.A([_.Y("commentSurfaceEntity"),_.r("design:type",Object),_.r("design:paramtypes",[])],QM.prototype,"backgroundColor",null);_.A([_.F({reflectToAttribute:!0}),_.Y("viewModel"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],QM.prototype,"optimalReadingWidthComments",null);_.A([_.F1("ytd-expander"),_.r("design:type",Object)],QM.prototype,"expander",void 0);
_.A([_.bN("backgroundColor"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],QM.prototype,"updateBackgroundColor",null);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],QM.prototype,"useSmallAvatars",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],QM.prototype,"webWatchCompactComments",void 0);_.A([_.F({reflectToAttribute:!0}),_.Y("commentEntity"),_.r("design:type",Object),_.r("design:paramtypes",[])],QM.prototype,"isReply",null);
_.A([_.Y("commentEntity"),_.r("design:type",Object),_.r("design:paramtypes",[])],QM.prototype,"authorThumbnailEndpoint",null);_.A([_.Y("commentEntity"),_.r("design:type",Object),_.r("design:paramtypes",[])],QM.prototype,"authorNameEndpoint",null);_.A([_.Y("commentEntity"),_.r("design:type",Object),_.r("design:paramtypes",[])],QM.prototype,"authorThumbnail",null);_.A([_.Y("commentEntity"),_.r("design:type",String),_.r("design:paramtypes",[])],QM.prototype,"authorTextClass",null);
_.A([_.Y("commentEntity"),_.r("design:type",String),_.r("design:paramtypes",[])],QM.prototype,"authorChannelName",null);_.A([_.Y("commentEntity"),_.r("design:type",Object),_.r("design:paramtypes",[])],QM.prototype,"publishedTime",null);_.A([_.Y("commentSurfaceEntity"),_.r("design:type",Object),_.r("design:paramtypes",[])],QM.prototype,"publishedTimeCommand",null);
_.A([_.Y("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.r("design:type",Object),_.r("design:paramtypes",[])],QM.prototype,"contentText",null);_.A([_.bN("contentText"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],QM.prototype,"resetExpander",null);_.A([_.Y("commentEntity"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],QM.prototype,"shouldShowReadMoreInitially",null);
_.A([_.Y("commentSharedEntity"),_.r("design:type",String),_.r("design:paramtypes",[])],QM.prototype,"expandText",null);_.A([_.Y("commentSharedEntity"),_.r("design:type",String),_.r("design:paramtypes",[])],QM.prototype,"collapseText",null);_.A([_.Y("commentEntity"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],QM.prototype,"shouldShowTranslateButton",null);
_.A([_.Y("commentEntity","commentSharedEntity"),_.r("design:type",Object),_.r("design:paramtypes",[])],QM.prototype,"translateButton",null);_.A([_.Y("toolbarSurface"),_.r("design:type",Object),_.r("design:paramtypes",[])],QM.prototype,"overflowMenuRenderer",null);_.A([_.F(),_.r("design:type",Object)],QM.prototype,"editDialog",void 0);_.A([_.F1("ytd-comment-dialog-renderer"),_.r("design:type",Object)],QM.prototype,"editCommentDialogContainer",void 0);
_.A([_.F1("ytd-comment-reply-dialog-renderer"),_.r("design:type",Object)],QM.prototype,"editReplyDialogContainer",void 0);_.A([_.mX("yt-navigate"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],QM.prototype,"onYtNavigate",null);_.A([_.mX("yt-commentbox-dismiss"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],QM.prototype,"onYtCommentboxDismiss",null);
_.A([_.mX("yt-commentbox-resize"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],QM.prototype,"onYtCommentboxResize",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-comment-view-model"})],QM);
_.q(QM,"ytd-comment-view-model",function(){if(BiA!==void 0)return BiA;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return BiA=x},{mode:_.Vm("kevlar_poly_si_batch_j025")?1:2});_.dF(_.B(function(x){var L={};return _.M("yt-sub-thread",{class:_.gF("ytSubThreadHost",(L.ytSubThreadHasButton=x.isButton,L))},_.M("div",{class:"ytSubThreadThreadline"},_.M("div",{class:"ytSubThreadConnection"}),_.M("div",{class:"ytSubThreadContinuation"}),_.M("div",{class:"ytSubThreadShadow"})),_.M("div",{class:"ytSubThreadSubThreadContent"},x.children))},"Ec"),"yt-sub-thread",{props:{isButton:_.pJ}});var Jf=function(){var x=_.e.apply(this,arguments)||this;x.modern=_.u("web_modern_buttons");x.commentThreadingEnabled=_.u("web_delhi_comment_threads");x.isWatchGrid=_.u("kevlar_watch_grid");x.buttonOverrides=x.commentThreadingEnabled?{iconPosition:"trailing",type:"text"}:{style:"call-to-action"};x.JSC$15906_spinnerEl=null;return x};
_.p(Jf,_.e);_.K=Jf.prototype;_.K.configureContinuationPathMap=function(){return _.u("web_delhi_comment_threads")?{"yt-append-continuation-items-action":"subThreads"}:{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.K.shouldShowExpandedThreads=function(x,L){return this.commentThreadingEnabled&&L&&(x==null?void 0:x.length)>0};
_.K.shouldShowCollapsedThreads=function(x,L){return this.commentThreadingEnabled&&!L&&x};
_.K.computeThreadRenderer=function(x){return _.g(x,v0h)};
_.K.computeIsContinuationItem=function(x){return!!this.computeContinuationItemRenderer(x)};
_.K.computeButtonRenderer=function(x){return _.g(x,_.y4)};
_.K.computeContinuationItemRenderer=function(x){return _.g(x,_.SK)};
_.K.computeShowButton=function(x){var L;return!((L=this.computeContinuationItemRenderer(x))==null||!L.button)};
_.K.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]]"}}}}}};
_.K.attached=function(){this.isShowRepliesVisible=!0};
_.K.dataChanged=function(){var x=this.expanderContents;x&&(x.hidden=!0);this.isLoading=!1};
_.K.endsInContinuation=function(x){return!!x&&x.length>0&&!!this.computeContinuationItemRenderer(x[x.length-1])};
_.K.computeShouldShowHideRepliesButton=function(x,L){return!x&&L};
_.K.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.K.isLoadingChanged=function(){this.isLoading&&!this.JSC$15906_spinnerEl&&(this.JSC$15906_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.jr(this.expanderContents).appendChild(this.JSC$15906_spinnerEl));this.JSC$15906_spinnerEl&&(this.JSC$15906_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var x;(x=this.contents)==null||x.classList.remove("reloading")}};
_.K.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.commentThreadingEnabled||this.triggerFirstContinuation();var x=_.g(this.data.viewReplies,_.y4);x&&this.ytRendererBehavior.logExplicitClick(x);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.K.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var x=_.g(this.data.hideReplies,_.y4);x&&this.ytRendererBehavior.logExplicitClick(x);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.K.isShowMoreChanged=function(){if(!this.commentThreadingEnabled){var x=_.jr(this.hostElement).querySelector("#expander-contents");x&&(x.hidden=this.isShowRepliesVisible)}};
_.K.computeAlign=function(){if(this.modern){var x;return!((x=this.data)==null?0:x.viewRepliesCreatorThumbnail)}};
_.J3.Object.defineProperties(Jf.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var x,L;return this.endsInContinuation((x=this.data)==null?void 0:x.contents)||this.commentThreadingEnabled&&this.endsInContinuation((L=this.data)==null?void 0:L.subThreads)}}});
Jf.prototype.isShowMoreChanged=Jf.prototype.isShowMoreChanged;Jf.prototype.isLoadingChanged=Jf.prototype.isLoadingChanged;Jf.prototype.triggerFirstContinuation=Jf.prototype.triggerFirstContinuation;Jf.prototype.dataChanged=Jf.prototype.dataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Jf.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Jf.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.b(_.HS),_.r("design:type",Object)],Jf.prototype,"ytContinuationHandlerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Jf.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Jf.prototype,"modern",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Jf.prototype,"commentThreadingEnabled",void 0);_.A([_.F(),_.r("design:type",Boolean)],Jf.prototype,"expanded",void 0);
_.A([_.F(),_.r("design:type",Function)],Jf.prototype,"toggleExpanded",void 0);_.A([_.F(),_.r("design:type",Array)],Jf.prototype,"teasers",void 0);_.A([_.F(),_.r("design:type",Boolean)],Jf.prototype,"isLoading",void 0);_.A([_.F({value:!0}),_.r("design:type",Boolean)],Jf.prototype,"isShowRepliesVisible",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],Jf.prototype,"useNewFormatting",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Jf.prototype,"isWatchGrid",void 0);
_.A([_.F(),_.r("design:type",Object)],Jf.prototype,"buttonOverrides",void 0);_.A([_.F1("#expander-contents"),_.r("design:type",HTMLElement)],Jf.prototype,"expanderContents",void 0);_.A([_.F1("ytd-continuation-item-renderer"),_.r("design:type",Object)],Jf.prototype,"continuationItemRenderer",void 0);_.A([_.F1("#contents"),_.r("design:type",HTMLElement)],Jf.prototype,"contents",void 0);
_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Jf.prototype,"dataChanged",null);_.A([_.Y("data.contents","data.subThreads.*"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Jf.prototype,"hasContinuation",null);_.A([_.mX("yt-expander-more-tapped"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Jf.prototype,"triggerFirstContinuation",null);
_.A([_.bN("isLoading"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Jf.prototype,"isLoadingChanged",null);_.A([_.bN("isShowRepliesVisible"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Jf.prototype,"isShowMoreChanged",null);_.A([_.w({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],Jf);
_.q(Jf,"ytd-comment-replies-renderer",function(){if(RRA!==void 0)return RRA;var x=document.createElement("template");_.m(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-replies-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expander" hidden="[[commentThreadingEnabled]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!isShowRepliesVisible]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n<div hidden="[[!shouldShowCollapsedThreads(data.viewReplies, expanded)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[teasers]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread class="style-scope ytd-comment-replies-renderer">\n      <div class="sub-thread-content style-scope ytd-comment-replies-renderer">\n        <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n        </ytd-comment-thread-renderer>\n      </div>\n    </yt-sub-thread>\n  </template>\n  <yt-sub-thread is-button="" class="style-scope ytd-comment-replies-renderer">\n    <div class="show-replies-button style-scope ytd-comment-replies-renderer">\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies-sub-thread" data="[[computeButtonRenderer(data.viewReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowMoreTap" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </div>\n  </yt-sub-thread>\n</div>\n<div hidden="[[!shouldShowExpandedThreads(data.subThreads, expanded)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[data.subThreads]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread is-button="[[computeIsContinuationItem(item)]]" class="style-scope ytd-comment-replies-renderer">\n      <template is="dom-if" if="[[computeThreadRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n        </ytd-comment-thread-renderer>\n      </template>\n      <template is="dom-if" if="[[computeContinuationItemRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-continuation-item-renderer button-overrides="[[buttonOverrides]]" data="[[computeContinuationItemRenderer(item)]]" is-comments-section="" show-button="[[computeShowButton(item)]]" class="style-scope ytd-comment-replies-renderer">\n        </ytd-continuation-item-renderer>\n      </template>\n    </yt-sub-thread>\n  </template>\n  <template is="dom-if" if="[[computeShouldShowHideRepliesButton(hasContinuation, data.hideReplies)]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread is-button="" class="style-scope ytd-comment-replies-renderer">\n      <ytd-button-renderer id="less-replies-sub-thread" 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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return RRA=x},{mode:1});var $mh;var K5=function(){var x=_.e.apply(this,arguments)||this;x.isOpen=!1;x.commentDialog=null;x.useSmallAvatars=_.u("small_avatars_for_comments");x.useSmallAvatarsEngagementPanelOnly=_.u("small_avatars_for_comments_ep");x.placeholderFocusListener=null;x.hasOpenedDialog=!1;x.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return x};
_.p(K5,_.e);_.K=K5.prototype;_.K.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]]"}}}}}};
_.K.ready=function(){var x=this,L=_.jr(this.hostElement).querySelector("#placeholder-area"),D=_.jr(this.hostElement).querySelector("#simplebox-placeholder"),S=function(Q){Q.stopPropagation();Q instanceof KeyboardEvent&&Q.type==="keypress"&&Q.keyCode!==13&&Q.keyCode!==32||x.openDialog()};
this.placeholderFocusListener=S;D.addEventListener("focus",this.placeholderFocusListener);L.addEventListener("tap",S);L.addEventListener("keypress",S)};
_.K.maybeRemoveFocusEventListener=function(){var x;(x=this.data)!=null&&x.prepareAccountEndpoint&&!_.u("web_comments_simplebox_modal_focus_on_tap_ks")&&(x=_.jr(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(x.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.K.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.hasOpenedDialog=this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.K.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.u("web_comment_simplebox_resolve_polymer_command_ks")?_.pI.instance.resolveCommand(this.data.prepareAccountEndpoint):_.mA(this.data.prepareAccountEndpoint,this.hostElement);else{if(this.data.subscribersOnlySnackbarCommand&&!this.hasOpenedDialog){var x=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand);x&&this.ytdOpenPopupBehavior.openPopup(x);this.hasOpenedDialog=!0}this.commentDialog||
(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)});this.isOpen=!0;_.jr(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}};
_.K.onYtCommentboxDismiss=function(x){x.stopPropagation();this.isOpen=!1};
_.K.onCreateCommentAction=function(x){this.get("createCommentAction.contents",x)&&(this.isOpen=!1)};
_.K.computeCommentDialog=function(x){return{placeholderText:x.placeholderText,authorThumbnail:x.authorThumbnail,submitButton:x.submitButton,imageButton:x.imageButton,cancelButton:x.cancelButton,emojiButton:x.emojiButton,emojis:x.emojis,emojiPicker:x.emojiPicker,aadcGuidelinesStateEntityKey:x.aadcGuidelinesStateEntityKey,openAadcDialog:x.openAadcDialog,unicodeEmojisUrl:x.unicodeEmojisUrl}};
_.K.onHideIdentityChip=function(x){_.g(x,I7H)&&this.set("data.placeholderText",_.g(x,I7H).placeholderText)};
K5.prototype.onYtCommentboxDismiss=K5.prototype.onYtCommentboxDismiss;K5.prototype.dataChanged=K5.prototype.dataChanged;_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],K5.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.Fz),_.r("design:type",Object)],K5.prototype,"ytdOpenPopupBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],K5.prototype,"ytRendererBehavior",void 0);
_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],K5.prototype,"ytActionHandlerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],K5.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],K5.prototype,"isOpen",void 0);_.A([_.F(),_.r("design:type",Object)],K5.prototype,"commentDialog",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],K5.prototype,"engagementPanel",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],K5.prototype,"useSmallAvatars",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],K5.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],K5.prototype,"enableCreationBox",void 0);_.A([_.F(),_.r("design:type",Boolean)],K5.prototype,"showCreateDialog",void 0);
_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],K5.prototype,"dataChanged",null);_.A([_.mX("yt-commentbox-dismiss"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],K5.prototype,"onYtCommentboxDismiss",null);_.A([_.w({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],K5);
_.q(K5,"ytd-comment-simplebox-renderer",function(){if($mh!==void 0)return $mh;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return $mh=x},{mode:1});var rp2;_.BD("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");
var Od=function(){var x=_.e.apply(this,arguments)||this;x.addHoverEffect=_.u("swatcheroo_comments_hover_effect");x.useSmallAvatars=_.u("small_avatars_for_comments");x.scrollingEnabled=_.u("web_comment_threading_scroll_on_collapse");x.threadHovered=!1;x.expanded=!1;x.removed=!1;x.teasers=[];x.actionMap=x.configureActionMap();x.toggleExpanded=function(){x.expanded=!x.expanded;!x.expanded&&x.scrollingEnabled&&_.dg(x.hostElement,"yt-scroll-to-comment-element",[x.commentElement])};
return x};
_.p(Od,_.e);_.K=Od.prototype;_.K.configureActionMap=function(){return _.u("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"}:{}};
_.K.createCommentReplyAction=function(x){x=_.g(x,Zr_);if(x!=null&&x.contents){var L=x.replyToCommentId,D=x.parentCommentId,S,Q=(S=this.commentViewModel)==null?void 0:S.commentId;(Q===L||Q===D&&!L)&&this.attachReply(x.contents)}};
_.K.attachReply=function(x){var L;((L=this.data)==null?0:L.replies)?(L=this.get("data.replies.commentRepliesRenderer.subThreads").length-1,this.get("data.replies.commentRepliesRenderer.subThreads."+L+".continuationItemRenderer")?L===0?this.push("teasers",x):this.splice("data.replies.commentRepliesRenderer.subThreads",L,0,x):this.push("data.replies.commentRepliesRenderer.subThreads",x)):(this.set("data.replies",{commentRepliesRenderer:{subThreads:[x],viewReplies:{buttonRenderer:{text:_.ya(_.p6("VIEW_REPLIES",
void 0,"View replies")),icon:{iconType:"EXPAND"}}}}}),this.expanded=!0)};
_.K.onAppendContinuationItemsActionFinished=function(){this.teasers.length&&(this.splice.apply(this,["data.replies.commentRepliesRenderer.subThreads",0,0].concat(_.lP(this.teasers))),this.set("teasers",[]))};
_.K.removeCommentAction=function(x){x=_.g(x,doB);var L=x==null?void 0:x.commentId,D;L&&((D=this.commentViewModel)==null?void 0:D.commentId)===L&&this.maybeRemoveComment(x.actionResult)};
_.K.banAuthorAction=function(x){x=_.g(x,KsB);var L=x==null?void 0:x.commentId,D;L&&((D=this.commentViewModel)==null?void 0:D.commentId)===L&&this.maybeRemoveComment(x.actionResult)};
_.K.hideReportedCommentAction=function(x){x=_.g(x,s2R);var L=x==null?void 0:x.commentId,D;L&&((D=this.commentViewModel)==null?void 0:D.commentId)===L&&this.maybeRemoveComment(x.actionResult)};
_.K.maybeRemoveComment=function(x){x&&x.status==="STATUS_SUCCEEDED"&&(this.feedbackText=x.feedbackText||_.ya("Reply removed"),this.removed=!0)};
_.K.onTap=function(x){if(this.addHoverEffect&&!this.engagementPanel&&!_.QC(_.Jq(x)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var L;((L=window.getSelection())==null?0:L.toString().length)||_.mA({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
_.K.attached=function(){var x=this;this.isSubThread&&(this.expanded=!0);var L;(L=this.commentThreadHitbox)==null||L.addEventListener("mouseover",function(){x.threadHovered=!0});
var D;(D=this.commentThreadHitbox)==null||D.addEventListener("mouseout",function(){x.threadHovered=!1});
var S;(S=this.commentThreadHitbox)==null||S.addEventListener("click",function(){x.maybeToggleExpanded()})};
_.K.maybeToggleExpanded=function(){var x,L,D,S=(x=this.data)==null?void 0:(L=x.replies)==null?void 0:(D=L.commentRepliesRenderer)==null?void 0:D.subThreads,Q;(S==null?void 0:S.length)===1&&((Q=_.g(S[0],_.SK))==null?0:Q.button)&&this.expanded||this.toggleExpanded()};
_.J3.Object.defineProperties(Od.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var x;if((x=this.data)!=null&&x.commentViewModel)return _.g(this.data.commentViewModel,kph)}},
hasSubThreading:{configurable:!0,enumerable:!0,get:function(){var x,L,D;return _.u("web_delhi_comment_threads")&&!!((x=this.data)==null?0:(L=x.replies)==null?0:(D=L.commentRepliesRenderer)==null?0:D.subThreads)}}});
Od.prototype.onTap=Od.prototype.onTap;Od.prototype.onAppendContinuationItemsActionFinished=Od.prototype.onAppendContinuationItemsActionFinished;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Od.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],Od.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Od.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Od.prototype,"addHoverEffect",void 0);_.A([_.F(),_.r("design:type",Object)],Od.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Od.prototype,"useSmallAvatars",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Od.prototype,"scrollingEnabled",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],Od.prototype,"isSubThread",void 0);
_.A([_.F1(".thread-hitbox"),_.r("design:type",HTMLElement)],Od.prototype,"commentThreadHitbox",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Od.prototype,"threadHovered",void 0);_.A([_.F1("#comment"),_.r("design:type",HTMLElement)],Od.prototype,"commentElement",void 0);_.A([_.F(),_.r("design:type",Object)],Od.prototype,"expanded",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Od.prototype,"removed",void 0);
_.A([_.F(),_.r("design:type",Object)],Od.prototype,"feedbackText",void 0);_.A([_.F(),_.r("design:type",Array)],Od.prototype,"teasers",void 0);_.A([_.mX("yt-append-continuation-items-action-finished"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Od.prototype,"onAppendContinuationItemsActionFinished",null);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Od.prototype,"commentViewModel",null);
_.A([_.Y("data.replies"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Od.prototype,"hasSubThreading",null);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],Od.prototype,"engagementPanel",void 0);_.A([_.mX("tap"),_.mX("click"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],Od.prototype,"onTap",null);_.A([_.w({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],Od);
_.q(Od,"ytd-comment-thread-renderer",function(){if(rp2!==void 0)return rp2;var x=document.createElement("template");_.m(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="comment-container" class="style-scope ytd-comment-thread-renderer">\n  <div class="threadline style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"><div class="continuation style-scope ytd-comment-thread-renderer"></div></div>\n  <div class="removed-placeholder style-scope ytd-comment-thread-renderer" hidden="[[!removed]]">\n    <yt-icon icon="WARNING_FILLED" class="style-scope ytd-comment-thread-renderer"></yt-icon>\n    <yt-formatted-string text="[[feedbackText]]" class="style-scope ytd-comment-thread-renderer"></yt-formatted-string>\n  </div>\n  <ytd-comment-view-model id="comment" data="[[commentViewModel]]" hidden="[[removed]]" class="style-scope ytd-comment-thread-renderer">\n  </ytd-comment-view-model>\n</div>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer">\n  <template is="dom-if" if="[[data.replies]]" class="style-scope ytd-comment-thread-renderer">\n    <ytd-comment-replies-renderer data="[[data.replies.commentRepliesRenderer]]" expanded="[[expanded]]" teasers="[[teasers]]" toggle-expanded="[[toggleExpanded]]" class="style-scope ytd-comment-thread-renderer">\n    </ytd-comment-replies-renderer>\n  </template>\n</div>\n<div class="thread-hitbox style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"></div>\n');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return rp2=x},{mode:_.Vm("kevlar_poly_si_batch_j025")?1:2});var Ni_;var ZI=function(){var x=_.e.apply(this,arguments)||this;x.compactHeader=_.u("web_watch_compact_comments_header");x.hidePanelButton=!1;x.isPostSchedulingEnabled=_.u("enable_post_scheduling");x.hasFinishedStamping=!1;x.JSC$15929_handleOpenPostCommentDialogActionAfterStamp=!1;x.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return x};
_.p(ZI,_.e);_.K=ZI.prototype;
_.K.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"}}}};
_.K.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.K.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$15929_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.K.onYtServiceRequestSent=function(x,L){if(!_.u("kevlar_command_handler")&&L.actions)for(x=0;x<L.actions.length;x++){var D=L.actions[x];_.g(D,l9h)&&_.jr(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.g(D,l9h))}};
_.K.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var x;if(this.getPrefilledBackstagePostDialog((x=this.data)==null?void 0:x.actions)){_.jr(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var L=_.jr(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;L&&_.So(this,function(){L.focus();L.openDialog&&L.openDialog()})}}else this.hasActionsChange=!0};
_.K.computeIsBackstage=function(x){return x};
_.K.onYtCommentboxDismiss=function(){_.jr(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.K.removePrefilledDialog=function(x){if(x==null?0:x.actions){for(var L=x.actions.length-1;L>=0;L--){var D=void 0;((D=_.g(x.actions[L],raW))==null?0:D.dialog)&&delete x.actions[L]}this.set("data",void 0);this.set("data",x)}};
_.K.getPrefilledBackstagePostDialog=function(x){if(x)for(var L=0;L<x.length;L++){var D=x[L],S=void 0;if((S=_.g(D,raW))==null?0:S.dialog)return _.g(D,raW).dialog}return null};
_.K.computeBackstagePostDialog=function(x){return x&&(this.getPrefilledBackstagePostDialog(x.actions)||x.createRenderer)};
_.K.dataChanged=function(){if(this.data){var x=this.data.customEmojis,L=this.data.unicodeEmojisUrl;_.VT.clear();L&&_.w_d(_.VT,L);x&&_.VT.load(x)}};
_.K.handleSignalActionOpenPostCommentDialogAction=function(){var x=_.jr(this.hostElement).querySelector("ytd-comment-simplebox-renderer");x?x.openDialog():this.JSC$15929_handleOpenPostCommentDialogActionAfterStamp=!0};
_.K.onPostHeaderTap=function(){var x;((x=this.data)==null?0:x.postHeaderOnTap)&&this.ytComponentBehavior.resolveCommand(this.data.postHeaderOnTap)};
_.J3.Object.defineProperties(ZI.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.u("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var x,L,D,S,Q,J,Z;return!this.hidePanelButton&&_.u("kevlar_watch_comments_panel_button")&&((Z=_.g((x=this.data)==null?void 0:(L=x.sortMenu)==null?void 0:(D=L.sortFilterSubMenuRenderer)==null?void 0:(S=D.subMenuItems)==null?void 0:(Q=S[0])==null?void 0:(J=Q.serviceEndpoint)==null?void 0:J.commandMetadata,_.gg))==null?void 0:Z.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.p6("MINIPLAYER_EXPAND_LABEL"),text:_.Dv(_.p6("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
ZI.prototype.dataChanged=ZI.prototype.dataChanged;ZI.prototype.onYtCommentboxDismiss=ZI.prototype.onYtCommentboxDismiss;ZI.prototype.observePrefilledBackstagePostDialog=ZI.prototype.observePrefilledBackstagePostDialog;ZI.prototype.onYtServiceRequestSent=ZI.prototype.onYtServiceRequestSent;ZI.prototype.onStampFinished=ZI.prototype.onStampFinished;_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],ZI.prototype,"ytComponentBehavior",void 0);
_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],ZI.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],ZI.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],ZI.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],ZI.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],ZI.prototype,"compactHeader",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],ZI.prototype,"engagementPanel",void 0);_.A([_.F(),_.r("design:type",Object)],ZI.prototype,"hidePanelButton",void 0);_.A([_.F({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.r("design:type",Boolean)],ZI.prototype,"isBackstage",void 0);_.A([_.F({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.r("design:type",Object)],ZI.prototype,"backstagePostDialog",void 0);
_.A([_.F(),_.r("design:type",Object)],ZI.prototype,"isPostSchedulingEnabled",void 0);_.A([_.F({reflectToAttribute:!0}),_.Y("data","showCommentsPanelButton"),_.r("design:type",Object),_.r("design:paramtypes",[])],ZI.prototype,"useSpaceBetween",null);_.A([_.F({reflectToAttribute:!0}),_.Y("data","hidePanelButton"),_.r("design:type",Object),_.r("design:paramtypes",[])],ZI.prototype,"showCommentsPanelButton",null);
_.A([_.Y("data","showCommentsPanelButton"),_.r("design:type",Object),_.r("design:paramtypes",[])],ZI.prototype,"commentsPanelButtonData",null);_.A([_.mX("yt-rendererstamper-finished"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ZI.prototype,"onStampFinished",null);_.A([_.mX("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.zQ]),_.r("design:returntype")],ZI.prototype,"onYtServiceRequestSent",null);
_.A([_.bN("data.actions"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ZI.prototype,"observePrefilledBackstagePostDialog",null);_.A([_.mX("yt-commentbox-dismiss"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],ZI.prototype,"onYtCommentboxDismiss",null);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ZI.prototype,"dataChanged",null);
_.A([_.w({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],ZI);
_.q(ZI,"ytd-comments-header-renderer",function(){if(Ni_!==void 0)return Ni_;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Ni_=x},{mode:1});var i_B;var yM=function(){return _.e.apply(this,arguments)||this};
_.p(yM,_.e);_.A([_.F(),_.r("design:type",Object)],yM.prototype,"data",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],yM.prototype,"ytRendererBehavior",void 0);_.A([_.w({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],yM);
_.q(yM,"ytd-destination-button-renderer",function(){if(i_B!==void 0)return i_B;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return i_B=x},{mode:1});var fLd;var Ig=function(){var x=_.e.apply(this,arguments)||this;x.isRichGrid=!1;x.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};return x};
_.p(Ig,_.e);_.K=Ig.prototype;_.K.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.K.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.K.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.K.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var x;if((x=this.data)==null||!x.isExpanded){x=this.hostElement.clientWidth;var L;if(x&&(L=this.data)!=null&&L.destinationButtons){L=Math.floor((x+4)/214);x=this.data.destinationButtons.length;var D=Math.ceil(x/L);this.fullyVisibleRows=x%L===1&&D===2?1:Math.min(D,2);this.isShowMoreVisible=this.fullyVisibleRows<D}}}};
_.K.updateRichGridDestinationButtonsVisibility=function(){var x,L;if(this.isRichGrid&&((x=this.data)==null||!x.isExpanded)&&(L=this.data)!=null&&L.destinationButtons){x=this.richGridItemsPerRow+1;L=this.data.destinationButtons.length;var D=Math.ceil(L/x);this.fullyVisibleRows=L%x===1&&D===2?1:Math.min(D,2);this.isShowMoreVisible=this.fullyVisibleRows<D}};
_.K.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
Ig.prototype.updateRichGridDestinationButtonsVisibility=Ig.prototype.updateRichGridDestinationButtonsVisibility;_.A([_.F(),_.r("design:type",Object)],Ig.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Number)],Ig.prototype,"fullyVisibleRows",void 0);_.A([_.F({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],Ig.prototype,"isShowMoreVisible",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Ig.prototype,"isRichGrid",void 0);
_.A([_.F({selector:_.A2,value:0}),_.r("design:type",Number)],Ig.prototype,"richGridItemsPerRow",void 0);_.A([_.F(),_.r("design:type",Object)],Ig.prototype,"gridStateActionMap",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Ig.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Ig.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],Ig.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],Ig.prototype,"ytdReduxBehavior",void 0);_.A([_.bN("data","richGridItemsPerRow"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Ig.prototype,"updateRichGridDestinationButtonsVisibility",null);_.A([_.w({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],Ig);
_.q(Ig,"ytd-destination-shelf-renderer",function(){if(fLd!==void 0)return fLd;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return fLd=x},{mode:1});var onA;var Ed=function(){return _.e.apply(this,arguments)||this};
_.p(Ed,_.e);Ed.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"}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Ed.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Ed.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Ed.prototype,"data",void 0);_.A([_.w({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],Ed);
_.q(Ed,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(onA!==void 0)return onA;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return onA=x},{mode:1});var aL_;var MA=function(){var x=_.e.apply(this,arguments)||this;x.disableAnimation=!1;x.isSlimlineSurvey=!1;x.isSlimlineSurveyFollowUp=!1;x.isShortsStyle=!1;return x};
_.p(MA,_.e);MA.prototype.onTap=function(x){x.preventDefault();this.data&&_.MF(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.J3.Object.defineProperties(MA.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 x,L,D,S,Q;return((x=this.data)==null?0:x.checked)?(L=this.data)==null?void 0:(D=L.onStateIcon)==null?void 0:D.iconType:(S=this.data)==null?void 0:(Q=S.defaultStateIcon)==null?void 0:Q.iconType}}});
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],MA.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],MA.prototype,"ytComponentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],MA.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],MA.prototype,"disableAnimation",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],MA.prototype,"isSlimlineSurvey",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],MA.prototype,"isSlimlineSurveyFollowUp",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],MA.prototype,"isShortsStyle",void 0);_.A([_.Y("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],MA.prototype,"isAnimatedIcon",null);
_.A([_.Y("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.r("design:type",Number),_.r("design:paramtypes",[])],MA.prototype,"iconSize",null);_.A([_.Y("isShortsStyle"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],MA.prototype,"isDarkTheme",null);_.A([_.Y("data.checked"),_.r("design:type",Object),_.r("design:paramtypes",[])],MA.prototype,"icon",null);_.A([_.w({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],MA);
_.q(MA,"ytd-rating-survey-option-renderer",function(){if(aL_!==void 0)return aL_;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return aL_=x},{mode:2});var zRH;var dX=function(){var x=_.e.apply(this,arguments)||this;x.firstResponseText=null;x.lastResponseText=null;x.selectedNonStarOption=null;x.hideOptions=!1;x.hideUndoButton=!0;x.disableAnimation=!1;x.showResponseRangeText=!1;x.selectedRatingIndex=-1;x.isSlimlineSurvey=!1;x.isSlimlineSurveyFollowUp=!1;x.isShortsStyle=!1;x.slimlineSurveyRatingSelectedIndex=-1;return x};
_.p(dX,_.e);_.K=dX.prototype;_.K.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.K.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.K.onOptionChange=function(x,L){var D=this;x=L.onStateIcon&&L.defaultStateIcon&&L.onStateIcon.iconType===L.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(Z,y){Z.responseText===L.responseText?D.isSlimlineSurvey?(D.selectedRatingIndex=y,D.ytdReduxBehavior.dispatch(Wx2(y))):(D.setSurveyOptionValue(y,!0,"checked"),D.setSurveyOptionValue(y,!0,"selected")):(D.setSurveyOptionValue(y,!1,"checked"),D.setSurveyOptionValue(y,
!1,"selected"))});
else if(x)this.selectedNonStarOption=L,this.hideOptions=!0;else{var S=this.ytRendererBehavior.getSimpleString(L.responseText),Q=!0;this.getOptionRenderers().forEach(function(Z,y){D.setSurveyOptionValue(y,Q,"checked");D.setSurveyOptionValue(y,!1,"selected");D.ytRendererBehavior.getSimpleString(Z.responseText)===S&&(Q=!1,D.setSurveyOptionValue(y,!0,"selected"))})}x=L.responseEndpoint;
var J;L.followUpCommand&&(J=_.g(L.followUpCommand,Wk2));this.isSlimlineSurvey?(this.resetComponent(),_.dg(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.dg(this.hostElement,"ytd-inline-survey-rating-select-action",[x,J])};
_.K.showSelectedOption=function(){var x=this;_.WW.addJob(function(){var L=x.getOptionRenderers()[x.slimlineSurveyRatingSelectedIndex];x.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),L)},8,100)};
_.K.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(x){var L;return(L=_.g(x,ASG))!=null?L:{}}):[]};
_.K.onUndoClick=function(){this.resetComponent();_.dg(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.K.setSurveyOptionValue=function(x,L,D){this.notifyPath("data.ratings."+x+".ratingSurveyOptionRenderer."+D);this.set("data.ratings."+x+".ratingSurveyOptionRenderer."+D,L)};
_.K.resetComponent=function(){var x=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var L=this.getOptionRenderers(),D,S;this.firstResponseText=(S=(D=L[0])==null?void 0:D.responseText)!=null?S:null;var Q,J;this.lastResponseText=(J=(Q=L[L.length-1])==null?void 0:Q.responseText)!=null?J:null;L.forEach(function(Z,y){x.setSurveyOptionValue(y,!1,"checked");x.setSurveyOptionValue(y,!1,"selected")})};
_.J3.Object.defineProperties(dX.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
dX.prototype.onOptionChange=dX.prototype.onOptionChange;dX.prototype.dataChanged=dX.prototype.dataChanged;_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],dX.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],dX.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],dX.prototype,"ytdReduxBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],dX.prototype,"data",void 0);
_.A([_.F(),_.r("design:type",Object)],dX.prototype,"firstResponseText",void 0);_.A([_.F(),_.r("design:type",Object)],dX.prototype,"lastResponseText",void 0);_.A([_.F(),_.r("design:type",Object)],dX.prototype,"selectedNonStarOption",void 0);_.A([_.F(),_.r("design:type",Object)],dX.prototype,"hideOptions",void 0);_.A([_.F(),_.r("design:type",Object)],dX.prototype,"hideUndoButton",void 0);_.A([_.F(),_.r("design:type",Object)],dX.prototype,"disableAnimation",void 0);
_.A([_.F(),_.r("design:type",Object)],dX.prototype,"showResponseRangeText",void 0);_.A([_.F(),_.r("design:type",Object)],dX.prototype,"selectedRatingIndex",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],dX.prototype,"isSlimlineSurvey",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],dX.prototype,"isSlimlineSurveyFollowUp",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],dX.prototype,"isShortsStyle",void 0);_.A([_.F({selector:function(x){return x.ui.slimlineSurveyRatingSelectedIndex}}),
_.r("design:type",Object)],dX.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.A([_.Y("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],dX.prototype,"isSingleSelect",null);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],dX.prototype,"dataChanged",null);
_.A([_.mX("ytd-rating-survey-option-changed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],dX.prototype,"onOptionChange",null);_.A([_.w({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],dX);
_.q(dX,"ytd-rating-survey-renderer",function(){if(zRH!==void 0)return zRH;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return zRH=x},{mode:1});var X7_;var cp2;var nnh;var Eu3=(uS.FIRSTDAYOFWEEK+1)%7,tz2=function(x,L,D,S){var Q="";if(S.selection&&Oon(S.selection))Vx(x,S.selection)&&(Q+=" selected");else if(S.selection&&Zoh(S.selection)){var J=S.selection.selectionState||"START_DATE";Vx(x,S.selection.start)&&(Q+=" period-start ",J==="START_DATE"&&(Q+="selected"));Vx(x,S.selection.end)&&(Q+=" period-end ",J==="END_DATE"&&(Q+="selected"));hi(x,S.selection.start)||hi(S.selection.end,x)||(Q+=" highlighted")}if(hi(L,S.start)||hi(S.end,L))Q+=" disabled";S.circleToday&&
Vx(L,D)&&(Q+=" today");return Q};var Pk=function(){return _.e.apply(this,arguments)||this};
_.p(Pk,_.e);_.K=Pk.prototype;_.K.attached=function(){var x=this;_.So(this,function(){x.JSC$15963_calendarMain.scrollHeight>0&&(x.calendarConfig.selection?x.scrollToDate(yZh(x.calendarConfig.selection)):x.scrollToDate(x.calendarConfig.end))})};
_.K.updateSelection=function(x){x=Mwh(Object.assign({},this.calendarConfig,{selection:x}),tz2);this.splice.apply(this,["renderData.months",0,x.length].concat(_.lP(x)))};
_.K.scrollToDate=function(x){this.renderData&&(x=d8G(x,this.renderData),x!==void 0&&this.JSC$15963_calendarMain.scrollToIndex(x))};
_.K.scrollToNextMonth=function(){this.JSC$15963_calendarMain.scrollToIndex(this.JSC$15963_calendarMain.firstVisibleIndex+1)};
_.K.scrollToPrevMonth=function(){this.JSC$15963_calendarMain.firstVisibleIndex===0&&this.JSC$15963_calendarMain.scrollTo(0,0);this.JSC$15963_calendarMain.scrollToIndex(this.JSC$15963_calendarMain.firstVisibleIndex-1)};
_.K.handleDayClick=function(x){_.dg(this.hostElement,"ytd-calendar-date-clicked",[x.model.day.date])};
_.K.handleDayMouseDown=function(x){x.preventDefault();_.dg(this.hostElement,"ytd-calendar-date-mousedown",[x.model.day.date])};
_.K.handleDayMouseUp=function(x){_.dg(this.hostElement,"ytd-calendar-date-mouseup",[x.model.day.date])};
_.K.handleDayMouseEnter=function(x){x.preventDefault();_.dg(this.hostElement,"ytd-calendar-date-mouseenter",[x.model.day.date])};
_.K.handleDayMouseLeave=function(x){_.dg(this.hostElement,"ytd-calendar-date-mouseleave",[x.model.day.date])};
_.J3.Object.defineProperties(Pk.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var x=this.calendarConfig,L=tz2;L=L===void 0?tz2:L;for(var D=[],S=0;S<7;S++)D.push(uS.NARROWWEEKDAYS[(S+Eu3)%7]);return{months:Mwh(x,L),daysOfWeekLabel:D}}}});
_.A([_.F(),_.r("design:type",Object)],Pk.prototype,"calendarConfig",void 0);_.A([_.F1("#calendar-main"),_.r("design:type",Object)],Pk.prototype,"JSC$15963_calendarMain",void 0);_.A([_.Y("calendarConfig"),_.r("design:type",Object),_.r("design:paramtypes",[])],Pk.prototype,"renderData",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],Pk);
_.q(Pk,"ytd-scrollable-calendar",function(){if(nnh!==void 0)return nnh;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return nnh=x},{mode:2});var xxQ;var LEA;var jM=function(){var x=_.e.apply(this,arguments)||this;x.hideCharCounter=!1;x.hideLabel=!1;x.noLabelFloat=!1;x.autoValidate=!0;x.invalid=!1;x.disabled=!1;x.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return x};
_.p(jM,_.e);_.K=jM.prototype;_.K.reset=function(x){this.value=x&&this.data?this.data.value=x:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.K.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.K.focusTextInput=function(){this.input.focus()};
_.K.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()};
_.K.valueChanged=function(){var x,L;if(((x=this.data)==null?0:x.value)||((L=this.data)==null?void 0:L.value)==="")this.value=this.data.value;else{var D;((D=this.data)==null?void 0:D.value)!==void 0||this.value||(this.value="")}};
_.K.computeLabel=function(x,L){return L?"":_.SR(x)};
_.K.computeAriaLabel=function(x,L){return L?_.SR(x):""};
_.K.computeErrorMessage=function(x,L,D,S){!x&&L?x=D||this.strings.REQUIRED_LABEL:(x=_.SR(S),x=_.Mf(x,"&")?"document"in _.Qb?H2A(x):u2C(x):x);return x};
_.K.computeType=function(x){return x==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.K.onTextValueChanged=function(x){this.value=x.detail.value;var L;(L=this.onValueChanged)==null||L.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.K.handleUpdateTextInputFormFieldRendererCommand=function(x){(x=_.g(x,Odh))&&this.data&&this.data.id===x.id&&(x.invalid!==void 0&&(this.invalid=x.invalid),x.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",x.invalidValueErrorMessage))};
_.K.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.gU("value-changed",this.value))};
_.K.updateInvalidFromBinding=function(x){this.invalid=x.detail.value};
_.J3.Object.defineProperties(jM.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var x;return!((x=this.data)==null||!x.isMultiline)}}});
jM.prototype.valueChangedForBinding=jM.prototype.valueChangedForBinding;jM.prototype.valueChanged=jM.prototype.valueChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],jM.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],jM.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],jM.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.F(),_.r("design:type",Object)],jM.prototype,"data",void 0);_.A([_.F(),_.r("design:type",String)],jM.prototype,"value",void 0);_.A([_.F(),_.r("design:type",String)],jM.prototype,"pattern",void 0);_.A([_.F(),_.r("design:type",String)],jM.prototype,"errorMessage",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",String)],jM.prototype,"componentStyle",void 0);_.A([_.F(),_.r("design:type",Object)],jM.prototype,"hideCharCounter",void 0);
_.A([_.F(),_.r("design:type",Object)],jM.prototype,"hideLabel",void 0);_.A([_.F(),_.r("design:type",Object)],jM.prototype,"noLabelFloat",void 0);_.A([_.F(),_.r("design:type",Function)],jM.prototype,"onValueChanged",void 0);_.A([_.F(),_.r("design:type",Boolean)],jM.prototype,"isMultilineOverride",void 0);_.A([_.F(),_.r("design:type",Object)],jM.prototype,"autoValidate",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],jM.prototype,"invalid",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],jM.prototype,"disabled",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],jM.prototype,"enableOverlayTheme",void 0);_.A([_.F({value:{REQUIRED_LABEL:_.p6("REQUIRED_LABEL",void 0,"Required")}}),_.r("design:type",Object)],jM.prototype,"strings",void 0);_.A([_.F1("#input"),_.r("design:type",Object)],jM.prototype,"input",void 0);
_.A([_.Y("data","isMultilineOverride"),_.r("design:type",Object),_.r("design:paramtypes",[])],jM.prototype,"isMultiline",null);_.A([_.GV("data.value"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],jM.prototype,"valueChanged",null);_.A([_.bN("value"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],jM.prototype,"valueChangedForBinding",null);_.A([_.oW({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],jM);
_.q(jM,"yt-text-input-form-field-renderer",function(){if(LEA===void 0){var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;xxQ===void 0&&(xxQ=document.createElement("template"));var S=xxQ;D.call(L,S.content.cloneNode(!0),x.content.firstChild);LEA=x}x=LEA;return x},{mode:2});var vk=function(){var x=_.e.apply(this,arguments)||this;x.data=void 0;x.selectionState="START_DATE";x.isStartDateInvalid=!1;x.isEndDateInvalid=!1;x.autoapply=!1;x.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 x};
_.p(vk,_.e);_.K=vk.prototype;_.K.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"}}}}};
_.K.focus=function(){this.startDateInput.focus()};
_.K.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:H2(this.data.selection.start),end:H2(this.data.selection.end)})};
_.K.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.K.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.Nh(this.selectionState)}};
_.K.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.K.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.K.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.K.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var x=this.calendar.calendarConfig,L=x.end;x=jes({start:x.start,end:this.endDate||L},this.startDateInput.value||"");this.isStartDateInvalid=!x.isValid;x.isValid&&(x=x.value,this.selection=this.endDate?{start:x,end:this.endDate}:x,this.calendar.scrollToDate(x));this.updateInvalidState()}};
_.K.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var x=this.calendar.calendarConfig,L=x.start;x=jes({start:this.startDate||L,end:x.end},this.endDateInput.value||"");this.isEndDateInvalid=!x.isValid;x.isValid&&(x=x.value,this.selection={start:this.startDate,end:x},this.calendar.scrollToDate(x));this.updateInvalidState()}};
_.K.handleCalendarDateClicked=function(x){var L=this.selection&&yZh(this.selection),D=this.selection&&Ilb(this.selection);L&&!hi(x,L)&&this.selectionState==="END_DATE"?(this.selection={start:L,end:x},this.selectionState="START_DATE"):(D&&!hi(D,x)?this.selection={start:x,end:D}:this.selection=x,this.selectionState="END_DATE")};
_.K.handleCalendarDateMouseDown=function(x){this.selection&&!Oon(this.selection)&&(this.dragPivot=Vx(x,this.selection.start)?this.selection.end:Vx(x,this.selection.end)?this.selection.start:x)};
_.K.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.K.handleCalendarDateMouseEnter=function(x){this.dragPivot&&(this.selection={start:function(L,D){return hi(L,D)?L:D}(this.dragPivot,x),
end:function(L,D){return hi(L,D)?D:L}(this.dragPivot,x)},this.dragPivot||(this.selectionState="START_DATE"))};
_.K.handleCalendarDateMouseLeave=function(){};
_.K.handleCalendarSubmitDateRange=function(){this.selection&&!Oon(this.selection)&&_.dg(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.K.updateInvalidState=function(){var x=function(L,D){D?L.setAttribute("invalid",""):L.removeAttribute("invalid")};
x(this.startDateInput,this.isStartDateInvalid);x(this.endDateInput,this.isEndDateInvalid)};
_.K.updateDateStrings=function(){this.selection&&(Oon(this.selection)?Khf(this.selection):(Khf(this.selection.start),Khf(this.selection.end)))};
_.K.updateCalendarSelection=function(x){this.calendar.updateSelection(Object.assign({},x,{selectionState:this.selectionState}))};
_.K.updateIsStartDateInvalidFromBinding=function(x){this.isStartDateInvalid=x.detail.value};
_.K.updateIsEndDateInvalidFromBinding=function(x){this.isEndDateInvalid=x.detail.value};
_.K.updateStartDateStringFromBinding=function(){};
_.K.updateEndDateStringFromBinding=function(){};
_.J3.Object.defineProperties(vk.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:H2(this.data.dateRangeStart),end:H2(this.data.dateRangeEnd),selection:{start:H2(this.data.selection.start),end:H2(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null?void 0:x.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&yZh(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&Ilb(this.selection)}}});
vk.prototype.resetTextboxes=vk.prototype.resetTextboxes;vk.prototype.observeSelection=vk.prototype.observeSelection;vk.prototype.dataChanged=vk.prototype.dataChanged;_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],vk.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],vk.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F1("#calendar"),_.r("design:type",Object)],vk.prototype,"calendar",void 0);
_.A([_.F1("#start-date"),_.r("design:type",Object)],vk.prototype,"startDateInput",void 0);_.A([_.F1("#end-date"),_.r("design:type",Object)],vk.prototype,"endDateInput",void 0);_.A([_.F(),_.r("design:type",Object)],vk.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],vk.prototype,"selection",void 0);_.A([_.F(),_.r("design:type",String)],vk.prototype,"selectionState",void 0);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],vk.prototype,"calendarConfig",null);
_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],vk.prototype,"errorMessage",null);_.A([_.Y("selection"),_.r("design:type",Object),_.r("design:paramtypes",[])],vk.prototype,"startDate",null);_.A([_.Y("selection"),_.r("design:type",Object),_.r("design:paramtypes",[])],vk.prototype,"endDate",null);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],vk.prototype,"dataChanged",null);
_.A([_.bN("selection","selectionState"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],vk.prototype,"observeSelection",null);_.A([_.bN("selectionState"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],vk.prototype,"resetTextboxes",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],vk);
_.q(vk,"ytd-date-period-picker-renderer",function(){if(cp2!==void 0)return cp2;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return cp2=x},{mode:1});var VM=function(){var x=_.e.apply(this,arguments)||this;var L={};x.actionMap=(L["ytd-date-period-picker-apply"]="handleDateRangeUpdated",L);return x};
_.p(VM,_.e);VM.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
VM.prototype.handleDateRangeUpdated=function(){};
_.A([_.F(),_.r("design:type",Object)],VM.prototype,"data",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],VM.prototype,"actionHandlerBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],VM.prototype,"rendererstamperBehavior",void 0);_.A([_.w({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],VM);
_.q(VM,"ytd-report-history-section-header-renderer",function(){if(X7_!==void 0)return X7_;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return X7_=x},{mode:1});var Dx_;var SfQ;var Q$H;var hf=function(){return _.e.apply(this,arguments)||this};
_.p(hf,_.e);_.J3.Object.defineProperties(hf.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var x,L;return((x=this.data)==null?0:(L=x.icon)==null?0:L.iconType)?_.gB(this.data.icon.iconType):""}}});
_.A([_.F(),_.r("design:type",Object)],hf.prototype,"data",void 0);_.A([_.Y("data"),_.r("design:type",String),_.r("design:paramtypes",[])],hf.prototype,"icon",null);_.A([_.w({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],hf);
_.q(hf,"ytd-report-history-table-text-cell-renderer",function(){if(Q$H!==void 0)return Q$H;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Q$H=x},{mode:1});var Hk=function(){return _.e.apply(this,arguments)||this};
_.p(Hk,_.e);Hk.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Hk.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Hk.prototype,"data",void 0);_.A([_.w({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],Hk);
_.q(Hk,"ytd-report-history-table-reason-cell-renderer",function(){if(SfQ!==void 0)return SfQ;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return SfQ=x},{mode:1});var u$=function(){return _.e.apply(this,arguments)||this};
_.p(u$,_.e);u$.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"}}}};
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],u$.prototype,"rendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],u$.prototype,"data",void 0);_.A([_.w({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],u$);
_.q(u$,"ytd-report-history-table-cell-renderer",function(){if(Dx_!==void 0)return Dx_;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);
return Dx_=x},{mode:1});var Jn_;var gX=function(){var x=_.e.apply(this,arguments)||this;x.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 x};
_.p(gX,_.e);gX.prototype.onDataChanged=function(){var x;if((x=this.data)==null?0:x.style)this.componentStyle=this.getStyleName(this.data.style)};
gX.prototype.getCellForColumn=function(x){return this.cells.find(function(L){var D;return((D=_.g(L==null?void 0:L.cell,NIQ)||_.g(L==null?void 0:L.cell,rS2))==null?void 0:D.columnId)===x.type})};
gX.prototype.getClassForColumn=function(x){switch(x){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
gX.prototype.getStyleName=function(x){switch(x){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.J3.Object.defineProperties(gX.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var x;return(((x=this.data)==null?void 0:x.cells)||[]).map(function(L){return _.g(L,$lQ)})}}});
gX.prototype.onDataChanged=gX.prototype.onDataChanged;_.A([_.F(),_.r("design:type",Object)],gX.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Array)],gX.prototype,"columnRenderData",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",String)],gX.prototype,"componentStyle",void 0);_.A([_.Y("data"),_.r("design:type",Array),_.r("design:paramtypes",[])],gX.prototype,"cells",null);
_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],gX.prototype,"onDataChanged",null);_.A([_.w({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],gX);
_.q(gX,"ytd-report-history-table-row-renderer",function(){if(Jn_!==void 0)return Jn_;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Jn_=x},{mode:1});var KE2;var OxB;var vuO={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},VwO={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var kM=function(){return _.e.apply(this,arguments)||this};
_.p(kM,_.e);kM.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"}}}}}};
kM.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.J3.Object.defineProperties(kM.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?0:x.columns)?klN(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return uM4(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var x=this.tableSpec,L=vuO;L=L===void 0?VwO:L;L=gun(x.columnDimensions,x.columnsToShow||[],L);x=0;L=_.O(L);for(var D=L.next();!D.done;D=L.next())D=D.value,x+=D.minWidth+D.paddingLeft+D.paddingRight;return x}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.A([_.b(_.HS),_.r("design:type",Object)],kM.prototype,"ytContinuationHandlerBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],kM.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],kM.prototype,"data",void 0);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],kM.prototype,"tableSpec",null);_.A([_.Y("tableSpec"),_.r("design:type",Array),_.r("design:paramtypes",[])],kM.prototype,"columnRenderData",null);
_.A([_.Y("tableSpec"),_.r("design:type",Number),_.r("design:paramtypes",[])],kM.prototype,"totalMinWidth",null);_.A([_.Y("totalMinWidth"),_.r("design:type",String),_.r("design:paramtypes",[])],kM.prototype,"tableWidthStyle",null);_.A([_.w({is:"ytd-table-renderer",disableElementRegistration:!0})],kM);
_.q(kM,"ytd-table-renderer",function(){if(OxB!==void 0)return OxB;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return OxB=x},{mode:1});var p5=function(){return _.e.apply(this,arguments)||this};
_.p(p5,_.e);p5.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}}}}}};
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],p5.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],p5.prototype,"data",void 0);_.A([_.w({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],p5);
_.q(p5,"ytd-report-reason-history-modal-renderer",function(){if(KE2!==void 0)return KE2;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return KE2=x},{mode:1});var ZxQ;var ynA;var IXh;var m4=function(){return _.e.apply(this,arguments)||this};
_.p(m4,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],m4.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],m4.prototype,"data",void 0);_.A([_.w({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],m4);
_.q(m4,"ytd-profile-column-stats-entry-renderer",function(){if(IXh!==void 0)return IXh;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return IXh=x},{mode:1});var EGi;var b$=function(){return _.e.apply(this,arguments)||this};
_.p(b$,_.e);b$.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],b$.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],b$.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],b$.prototype,"data",void 0);_.A([_.w({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],b$);
_.q(b$,"ytd-profile-column-stats-renderer",function(){if(EGi!==void 0)return EGi;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return EGi=x},{mode:1});var Mhi;var YM=function(){return _.e.apply(this,arguments)||this};
_.p(YM,_.e);_.J3.Object.defineProperties(YM.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var x;if((x=this.data)==null||!x.useThumbnailSize)return 80;var L,D;x=(L=this.data)==null?void 0:(D=L.thumbnail)==null?void 0:D.thumbnails;var S;return x&&((S=x[0])==null?void 0:S.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var x;if((x=this.data)==null||!x.useThumbnailSize)return 80;var L,D;x=(L=this.data)==null?void 0:(D=L.thumbnail)==null?void 0:D.thumbnails;var S;return x&&((S=x[0])==null?void 0:S.height)||80}}});
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],YM.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],YM.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",String)],YM.prototype,"componentStyle",void 0);_.A([_.Y("data.useThumbnailSize"),_.r("design:type",Object),_.r("design:paramtypes",[])],YM.prototype,"thumbnailWidth",null);
_.A([_.Y("data.useThumbnailSize"),_.r("design:type",Object),_.r("design:paramtypes",[])],YM.prototype,"thumbnailHeight",null);_.A([_.w({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],YM);
_.q(YM,"ytd-profile-column-user-info-renderer",function(){if(Mhi!==void 0)return Mhi;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Mhi=x},{mode:1});var Fp=function(){return _.e.apply(this,arguments)||this};
_.p(Fp,_.e);Fp.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]]"}}}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Fp.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Fp.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Fp.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",String)],Fp.prototype,"componentStyle",void 0);_.A([_.w({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],Fp);
_.q(Fp,"ytd-profile-column-renderer",function(){if(ynA!==void 0)return ynA;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return ynA=x},{mode:1});var sd=function(){var x=_.e.apply(this,arguments)||this;x.componentStyle="NON_CENTERED_PROFILE";return x};
_.p(sd,_.e);sd.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
sd.prototype.getIcon=function(x){return x?"settings:"+x.toLowerCase():null};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],sd.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],sd.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],sd.prototype,"data",void 0);_.A([_.w({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],sd);
_.q(sd,"ytd-page-introduction-renderer",function(){if(ZxQ!==void 0)return ZxQ;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return ZxQ=x},{mode:1});var dxh;var T_=function(){return _.e.apply(this,arguments)||this};
_.p(T_,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],T_.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],T_.prototype,"data",void 0);_.A([_.w({is:"ytd-report-description-renderer",disableElementRegistration:!0})],T_);
_.q(T_,"ytd-report-description-renderer",function(){if(dxh!==void 0)return dxh;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return dxh=x},{mode:1});var PLA;var j$G;var eM=function(){return _.e.apply(this,arguments)||this};
_.p(eM,_.e);eM.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],eM.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],eM.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],eM.prototype,"data",void 0);_.A([_.w({is:"ytd-video-report-renderer",disableElementRegistration:!0})],eM);
_.q(eM,"ytd-video-report-renderer",function(){if(j$G!==void 0)return j$G;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return j$G=x},{mode:1});var vGW;_.BD("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.BD("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var Rg=function(){return _.e.apply(this,arguments)||this};
_.p(Rg,_.e);Rg.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]]"}}}}}};
Rg.prototype.computeMessageStyle=function(x){return x};
Rg.prototype.computeButtonOverride=function(x){var L;if((x==null?0:(L=x.style)==null?0:L.value)&&x.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Rg.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Rg.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Rg.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],Rg.prototype,"shelf",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],Rg.prototype,"panel",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.r("design:type",Boolean)],Rg.prototype,"componentStyle",void 0);_.A([_.F({computed:"computeButtonOverride(data)"}),_.r("design:type",Object)],Rg.prototype,"buttonOverride",void 0);_.A([_.w({is:"ytd-message-renderer",disableElementRegistration:!0})],Rg);
_.q(Rg,"ytd-message-renderer",function(){if(vGW!==void 0)return vGW;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return vGW=x},{mode:1});var G_=function(){return _.e.apply(this,arguments)||this};
_.p(G_,_.e);G_.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"}}}};
G_.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
G_.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.J3.Object.defineProperties(G_.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var x,L;return!!(((x=this.data)==null?0:x.header)&&((L=this.data)==null?0:L.table))}}});
G_.prototype.onRequestError=G_.prototype.onRequestError;_.A([_.b(_.HS),_.r("design:type",Object)],G_.prototype,"ytContinuationHandlerBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],G_.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],G_.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],G_.prototype,"data",void 0);
_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],G_.prototype,"isUnifiedReportHistory",null);_.A([_.mX("yt-service-request-error"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],G_.prototype,"onRequestError",null);_.A([_.w({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],G_);
_.q(G_,"ytd-report-history-section-renderer",function(){if(PLA!==void 0)return PLA;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return PLA=x},{mode:1});var VhW;var C5=function(){var x=_.e.apply(this,arguments)||this;x.answerExpanded=!1;return x};
_.p(C5,_.e);C5.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],C5.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],C5.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],C5.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],C5.prototype,"answerExpanded",void 0);_.A([_.w({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],C5);
_.q(C5,"ytd-handles-claiming-faq-renderer",function(){if(VhW!==void 0)return VhW;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return VhW=x},{mode:1});var hbQ;var HxA=function(){return _.e.apply(this,arguments)||this};
_.p(HxA,_.e);_.A([_.F(),_.r("design:type",Object)],HxA.prototype,"data",void 0);_.A([_.w({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],HxA);
_.q(HxA,"ytd-handles-claiming-faq-section-renderer",function(){if(hbQ!==void 0)return hbQ;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return hbQ=x},{mode:1});var u8B;var l$=function(){var x=_.e.apply(this,arguments)||this;x.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";x.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";x.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";x.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";x.leftSquiggly=x.leftSquigglyLight;x.rightSquiggly=x.rightSquigglyLight;
x.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};x.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return x};
_.p(l$,_.e);_.K=l$.prototype;_.K.updateLeftSquigglyStyle=function(){_.uN(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.K.updateRightSquigglyStyle=function(){_.uN(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.K.ready=function(){var x=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(x)};
_.K.onDarkModeToggledAction=function(x){x!==this.isDarkTheme&&(this.set("isDarkTheme",x),x?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.K.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
l$.prototype.updateRightSquigglyStyle=l$.prototype.updateRightSquigglyStyle;l$.prototype.updateLeftSquigglyStyle=l$.prototype.updateLeftSquigglyStyle;_.A([_.F(),_.r("design:type",Object)],l$.prototype,"data",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],l$.prototype,"isDarkTheme",void 0);_.A([_.F(),_.r("design:type",String)],l$.prototype,"leftSquiggly",void 0);_.A([_.F(),_.r("design:type",String)],l$.prototype,"rightSquiggly",void 0);
_.A([_.bN("leftSquiggly"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],l$.prototype,"updateLeftSquigglyStyle",null);_.A([_.bN("rightSquiggly"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],l$.prototype,"updateRightSquigglyStyle",null);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],l$.prototype,"ytRendererBehavior",void 0);
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],l$.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],l$.prototype,"ytActionHandlerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],l$.prototype,"actionButtonOverride",void 0);_.A([_.w({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],l$);
_.q(l$,"ytd-handles-claiming-header-renderer",function(){if(u8B!==void 0)return u8B;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return u8B=x},{mode:1});var gGA;var Ud=function(){var x=_.e.apply(this,arguments)||this;x.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};x.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";x.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";x.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";x.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
x.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";x.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";x.image0SquigglyBackground=x.image0LightSquigglyBackground;x.image1SquigglyBackground=x.image1LightSquigglyBackground;x.image3SquigglyBackground=x.image3LightSquigglyBackground;return x};
_.p(Ud,_.e);_.K=Ud.prototype;_.K.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.K.onDataChanged=function(){this.updateTitleAndImages()};
_.K.onThemeChanged=function(){this.updateTitleAndImages()};
_.K.onDarkModeToggledAction=function(x){x!==this.isDarkTheme&&(this.isDarkTheme=x)};
_.K.updateImage0SquigglyBackground=function(){_.uN(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.K.updateImage1SquigglyBackground=function(){_.uN(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.K.updateImage3SquigglyBackground=function(){_.uN(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.K.updateTitleAndImages=function(){var x,L;((x=this.data)==null?void 0:(L=x.titleImages)==null?void 0:L.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))};
Ud.prototype.updateImage3SquigglyBackground=Ud.prototype.updateImage3SquigglyBackground;Ud.prototype.updateImage1SquigglyBackground=Ud.prototype.updateImage1SquigglyBackground;Ud.prototype.updateImage0SquigglyBackground=Ud.prototype.updateImage0SquigglyBackground;Ud.prototype.onThemeChanged=Ud.prototype.onThemeChanged;Ud.prototype.onDataChanged=Ud.prototype.onDataChanged;_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],Ud.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.F({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],Ud.prototype,"isDarkTheme",void 0);_.A([_.F(),_.r("design:type",Object)],Ud.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],Ud.prototype,"title0",void 0);_.A([_.F(),_.r("design:type",Object)],Ud.prototype,"title1",void 0);_.A([_.F(),_.r("design:type",Object)],Ud.prototype,"title2",void 0);_.A([_.F(),_.r("design:type",Object)],Ud.prototype,"title3",void 0);
_.A([_.F(),_.r("design:type",Object)],Ud.prototype,"title4",void 0);_.A([_.F(),_.r("design:type",Object)],Ud.prototype,"image0",void 0);_.A([_.F(),_.r("design:type",Object)],Ud.prototype,"image1",void 0);_.A([_.F(),_.r("design:type",Object)],Ud.prototype,"image2",void 0);_.A([_.F(),_.r("design:type",Object)],Ud.prototype,"image3",void 0);_.A([_.F(),_.r("design:type",Object)],Ud.prototype,"image4",void 0);_.A([_.F(),_.r("design:type",String)],Ud.prototype,"image0SquigglyBackground",void 0);
_.A([_.F(),_.r("design:type",String)],Ud.prototype,"image1SquigglyBackground",void 0);_.A([_.F(),_.r("design:type",String)],Ud.prototype,"image3SquigglyBackground",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Ud.prototype,"onDataChanged",null);_.A([_.bN("isDarkTheme"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Ud.prototype,"onThemeChanged",null);
_.A([_.bN("image0SquigglyBackground"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Ud.prototype,"updateImage0SquigglyBackground",null);_.A([_.bN("image1SquigglyBackground"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Ud.prototype,"updateImage1SquigglyBackground",null);
_.A([_.bN("image3SquigglyBackground"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Ud.prototype,"updateImage3SquigglyBackground",null);_.A([_.w({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],Ud);
_.q(Ud,"ytd-handles-claiming-title-images-section-renderer",function(){if(gGA!==void 0)return gGA;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return gGA=x},{mode:1});var kYQ;var wX=function(){var x=_.e.apply(this,arguments)||this;x.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return x};
_.p(wX,_.e);wX.prototype.ready=function(){var x=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(x)};
wX.prototype.onDarkModeToggledAction=function(x){x!==this.isDarkTheme&&this.set("isDarkTheme",x)};
wX.prototype.onCopyButtonClick=function(){var x=this,L,D,S;return _.I(function(Q){return(L=x.data)!=null&&L.primaryChannelUrl?Q.yield(navigator.clipboard.writeText(((D=x.data)==null?0:D.encodedChannelUrl)?x.data.encodedChannelUrl:"https://"+_.SR((S=x.data)==null?void 0:S.primaryChannelUrl)),0):Q.jumpTo(0)})};
_.A([_.F(),_.r("design:type",Object)],wX.prototype,"data",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],wX.prototype,"ytComponentBehavior",void 0);_.A([_.F({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],wX.prototype,"isDarkTheme",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],wX.prototype,"ytActionHandlerBehavior",void 0);_.A([_.w({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],wX);
_.q(wX,"ytd-handles-claiming-update-social-renderer",function(){if(kYQ!==void 0)return kYQ;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return kYQ=x},{mode:1});var p0B;var Bk=function(){var x=_.e.apply(this,arguments)||this;x.JSC$16057_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";x.JSC$16057_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";x.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};x.squigglyBackground=x.JSC$16057_squigglyBackgroundLight;return x};
_.p(Bk,_.e);Bk.prototype.updateSquigglyBackgroundStyle=function(){_.uN(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
Bk.prototype.ready=function(){var x=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",x);this.squigglyBackground=x?this.JSC$16057_squigglyBackgroundDark:this.JSC$16057_squigglyBackgroundLight};
Bk.prototype.onDarkModeToggledAction=function(x){x!==this.isDarkTheme&&(this.set("isDarkTheme",x),this.squigglyBackground=x?this.JSC$16057_squigglyBackgroundDark:this.JSC$16057_squigglyBackgroundLight)};
Bk.prototype.updateSquigglyBackgroundStyle=Bk.prototype.updateSquigglyBackgroundStyle;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Bk.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Bk.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],Bk.prototype,"ytActionHandlerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Bk.prototype,"data",void 0);
_.A([_.F({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],Bk.prototype,"isDarkTheme",void 0);_.A([_.F(),_.r("design:type",String)],Bk.prototype,"squigglyBackground",void 0);_.A([_.bN("squigglyBackground"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Bk.prototype,"updateSquigglyBackgroundStyle",null);_.A([_.w({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],Bk);
_.q(Bk,"ytd-handles-claiming-vanity-info-renderer",function(){if(p0B!==void 0)return p0B;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return p0B=x},{mode:1});var mxQ;var Wk=function(){var x=_.e.apply(this,arguments)||this;x.JSC$16060_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";x.JSC$16060_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";x.squigglyBackground=x.JSC$16060_squigglyBackgroundLight;x.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return x};
_.p(Wk,_.e);_.K=Wk.prototype;_.K.ready=function(){var x=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(x)};
_.K.onDarkModeToggledAction=function(x){x!==this.isDarkTheme&&(this.set("isDarkTheme",x),this.squigglyBackground=x?this.JSC$16060_squigglyBackgroundDark:this.JSC$16060_squigglyBackgroundLight)};
_.K.updateSquigglyBackgroundStyle=function(){_.uN(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.K.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.K.detached=function(){this.stop()};
_.K.stop=function(){this.playerElement.stop()};
_.K.setupVideoPlayer=function(){var x=this,L,D;return _.I(function(S){L=x.data.videoId;D="http://i1.ytimg.com/vi/"+L+"/maxresdefault.jpg";x.playerElement.loadVideoWithPlayerVars({video_id:L,iurlhq:D});_.Y2(S)})};
Wk.prototype.onDataChanged=Wk.prototype.onDataChanged;Wk.prototype.updateSquigglyBackgroundStyle=Wk.prototype.updateSquigglyBackgroundStyle;_.A([_.F({value:!1}),_.r("design:type",Boolean)],Wk.prototype,"isDarkTheme",void 0);_.A([_.F(),_.r("design:type",String)],Wk.prototype,"squigglyBackground",void 0);_.A([_.F1("#player"),_.r("design:type",Object)],Wk.prototype,"playerElement",void 0);_.A([_.F(),_.r("design:type",Object)],Wk.prototype,"data",void 0);
_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],Wk.prototype,"ytActionHandlerBehavior",void 0);_.A([_.bN("squigglyBackground"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Wk.prototype,"updateSquigglyBackgroundStyle",null);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Wk.prototype,"onDataChanged",null);
_.A([_.w({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],Wk);
_.q(Wk,"ytd-handles-claiming-video-item-renderer",function(){if(mxQ!==void 0)return mxQ;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return mxQ=x},{mode:1});var bx_;var Af=function(){var x=_.er.apply(this,arguments)||this;x.dragging=!1;x.dragMouseStart=0;x.dragOffsetStart=0;x.containerWidthDiff=0;x.boundPrevClick=function(){x.set("offset",qA(x,x.offset-(x.scrollDistance||320)))};
x.boundNextClick=function(){x.set("offset",qA(x,x.offset+(x.scrollDistance||320)))};
x.boundScrollContainerMouseDown=function(L){x.dragMouseStart=L.clientX;x.dragOffsetStart=x.offset;x.dragging=!0};
x.boundScrollContainerDrag=function(L){x.dragging&&x.set("offset",qA(x,x.dragOffsetStart-(L.clientX-x.dragMouseStart)))};
x.boundMouseUp=function(){x.onMouseUp()};
x.boundWheelScroll=function(L){var D=0;Math.abs(L.deltaX)>=Math.abs(L.deltaY)?D=L.deltaX:L.shiftKey&&(D=L.deltaY);D!==0&&(x.offset+=D,L.stopPropagation(),L.preventDefault())};
x.boundChipCloudChipScrollIntoView=function(L){(L=L.detail)&&x.scrollChipIntoView(L)};
return x};
_.p(Af,_.er);Af.prototype.attached=function(){var x=_.jr(this.hostElement).querySelector("#scroll-container");x.addEventListener("wheel",this.boundWheelScroll);x.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);x.style.touchAction="pan-y";x.addEventListener("pointerdown",this.boundScrollContainerMouseDown);x.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
Af.prototype.detached=function(){var x=_.jr(this.hostElement).querySelector("#scroll-container");x.removeEventListener("wheel",this.boundWheelScroll);x.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);x.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);x.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
Af.prototype.reset=function(){this.set("offset",0);_.So(this,this.setContainerWidthDiff);_.So(this,this.setButtonsState)};
var qA=function(x,L){return Math.min(Math.max(L,0),x.containerWidthDiff)};
_.K=Af.prototype;_.K.onMouseUp=function(){this.dragging=!1};
_.K.transformContainer=function(){this.offset=qA(this,this.offset);var x=_.$6("HTML_DIR")==="rtl"?"":"-";_.jr(this.hostElement).querySelector("#chips").style.transform="translateX("+x+this.offset+"px)";_.So(this,this.setButtonsState)};
_.K.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=qA(this,this.offset));this.atStart=this.offset<=0};
_.K.setContainerWidthDiff=function(){var x=_.jr(this.hostElement).querySelector("#scroll-container"),L=_.jr(this.hostElement).querySelector("#chips");x&&L&&(this.containerWidthDiff=L.clientWidth-x.clientWidth)};
_.K.scrollChipIntoView=function(x){var L=_.jr(this.hostElement).querySelector("#scroll-container");if(L){var D=this.atStart?0:106,S=this.atEnd?0:106;x.offsetLeft<this.offset+D?this.offset=qA(this,x.offsetLeft-D):x.offsetLeft+x.clientWidth>this.offset+L.clientWidth-S&&(this.offset=qA(this,x.offsetLeft+x.clientWidth+S-L.clientWidth))}};
Af.prototype.transformContainer=Af.prototype.transformContainer;_.A([_.F({value:0}),_.r("design:type",Number)],Af.prototype,"offset",void 0);_.A([_.F({value:!0,reflectToAttribute:!0}),_.r("design:type",Boolean)],Af.prototype,"atStart",void 0);_.A([_.F({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],Af.prototype,"atEnd",void 0);_.A([_.F(),_.r("design:type",Number)],Af.prototype,"scrollDistance",void 0);
_.A([_.bN("offset"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Af.prototype,"transformContainer",null);_.A([_.RW()],Af);var Yfr;var FEC;var ebA=_.B(function(x){var L=x.data;x=_.O(_.HB(!1,void 0,"icHmSe"));var D=x.next().value,S=x.next().value;x={};x=_.gF("ytChipShapeChip",function(){a:switch(L==null?void 0:L().state){case 0:var J="ytChipShapeActive";break a;case 1:J="ytChipShapeDisabled";break a;default:J="ytChipShapeInactive"}return J},function(){var J=L().type===1||L().type===2,Z=L();
return J||Z!=null&&Z.startIcon?Z==null||!Z.startIcon||Z!=null&&Z.text?J?"ytChipShapeEndIconPadding":(Z==null?0:Z.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(x.ytChipShapeFocused=function(){var J;
return D()&&((J=L())==null?void 0:J.state)!==1},x));
var Q=function(J){if((L==null?void 0:L().state)!==1){var Z,y;(y=(Z=L()).onTap)==null||y.call(Z,J)}};
return _.M("chip-shape",{class:"ytChipShapeHost","on:focusin":_.kO(function(){var J=_.yY().resolve(_.ZN(_.CJ));if(J){S(J.isKeyBoardInUse());var Z,y;(y=(Z=L()).onFocusIn)==null||y.call(Z)}return!1}),
"on:focusout":_.kO(function(){S(!1);return!1})},_.M(s$H,{shouldWrapInButton:function(){return L().type!==2},
selected:function(){return L().state===0},
onClick:Q,isDropdown:function(){return L().type===1},
accessibilityLabel:function(){return L().type===1?void 0:L().accessibilityLabel}},_.M("div",{class:x},_.M(_.d,{cond:function(){return L().startIcon},
then:function(){return _.M(_.YO,{icon:function(){var J;return(J=L())==null?void 0:J.startIcon},
className:function(){return L().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return L().text},_.M(T2A,{shape:L,
onClick:Q}),_.M(_.UB,{model:{borderRadius:"8px"}}))))},"Fc");
ebA.idomCompat=!0;var s$H=_.B(function(x){var L=_.kO(function(D){x.onClick(D);return!1});
return _.M(_.d,{cond:x.shouldWrapInButton,then:function(){return _.M("button",{class:"ytChipShapeButtonReset","on:click":L,role:function(){return x.isDropdown()?"combobox":"tab"},
"aria-label":x.accessibilityLabel,"aria-selected":x.selected},x.children)},
else:function(){return x.children}})},"Gc"),T2A=_.B(function(x){var L=x.shape;
var D=x.onClick;var S=_.kO(function(Q){D(Q);return!1});
return _.M(_.GS,null,_.M(_.TS,{when:function(){return L().type===1}},function(){return _.M(_.YO,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.M(_.TS,{when:function(){return L().type===2}},function(){return _.M("button",{class:"ytChipShapeButtonReset",
"on:click":S},_.M(_.YO,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.M(_.TS,{when:function(){return L().type===0}},function(){return _.M(_.I1,null)}))},"Hc");_.dF(ebA,"chip-shape",{props:{data:_.pJ}});var $M=function(){var x=_.e.apply(this,arguments)||this;x.disableDeselectEvent=!1;x.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return x};
_.p($M,_.e);_.K=$M.prototype;_.K.onSelectChipCommand=function(x){if(!this.selected&&this.data&&(x=_.g(x,cmB),x.targetId&&x.targetId===this.data.targetId))this.onTap()};
_.K.onFilterChipTransformCommand=function(x){if(!this.selected&&this.data){var L;(x=(L=_.g(x,iW_))==null?void 0:L.chipUniqueId)&&x===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.K.dataChanged=function(){var x=this;_.So(this,function(){x.data&&x.data.isSelected&&!x.selected&&(x.scrollChipIntoView(),x.onTap())})};
_.K.computeChipStyle=function(x){return x!=null?x:"STYLE_DEFAULT"};
_.K.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.dg(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.dg(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.K.onFocus=function(){var x=_.yY().resolve(_.ZN(_.CJ));x&&x.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.K.scrollChipIntoView=function(){_.MF(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.J3.Object.defineProperties($M.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return sep({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
$M.prototype.onFocus=$M.prototype.onFocus;$M.prototype.onTap=$M.prototype.onTap;$M.prototype.dataChanged=$M.prototype.dataChanged;_.A([_.b(_.NY),_.r("design:type",Object)],$M.prototype,"ironButtonState",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],$M.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],$M.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],$M.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.A4),_.r("design:type",Object)],$M.prototype,"ironA11yKeysBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],$M.prototype,"disableDeselectEvent",void 0);_.A([_.F(),_.r("design:type",Object)],$M.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.Y("data.icon"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],$M.prototype,"hasIcon",null);
_.A([_.F({reflectToAttribute:!0}),_.Y("data.uniqueId"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],$M.prototype,"isGnomeChip",null);_.A([_.F({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.r("design:type",String)],$M.prototype,"chipStyle",void 0);_.A([_.F({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],$M.prototype,"selected",void 0);
_.A([_.Y("data","selected"),_.r("design:type",Object),_.r("design:paramtypes",[])],$M.prototype,"chipShapeData",null);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],$M.prototype,"dataChanged",null);_.A([_.mX("tap"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],$M.prototype,"onTap",null);
_.A([_.mX("focus"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],$M.prototype,"onFocus",null);_.A([_.oW({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],$M);
_.q($M,"yt-chip-cloud-chip-renderer",function(){if(FEC===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;Yfr===void 0&&(Yfr=document.createElement("template"));var S=Yfr;D.call(L,S.content.cloneNode(!0),x.content.firstChild);FEC=x}x=FEC;return x},{mode:2});var RbG=_.aB.persistentPanelVisibleSelector,rX=function(){var x=_.e.apply(this,arguments)||this;x.isDarkTheme=!1;x.notSticky=!1;x.transparentBackground=!1;x.shouldHide=!1;x.disableSticky=!1;x.fluidWidth=!1;x.isClipList=!1;x.defaultChipIndex=0;x.isPlaylist=!1;x.playlistVotingAnimationEnabled=_.u("web_enable_voting_animation");x.toolbarHeight=0;x.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return x};
_.p(rX,_.e);_.K=rX.prototype;
_.K.configureRendererStamper=function(){return{"data.contents":{id:"chips",mapping:{chipCloudChipRenderer:{component:"yt-chip-cloud-chip-renderer",properties:{disableDeselectEvent:"[[isDisableDeselectEvent]]"}}}},sortFilterHeaderRendererData:{id:"filter",mapping:{sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isClipList:"[[isClipList]]",isPlaylistPageWithFilters:"[[isPlaylistPage]]"}}}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},
params:{iconSize:16}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.K.attached=function(){var x=this;document.addEventListener("scroll",_.p$(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var L;this.toolbarHeight=((L=document.querySelector("ytd-masthead"))==null?void 0:L.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(D){x.handleIntersect(D)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){x.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.K.detached=function(){var x;(x=this.intersectionObserver)==null||x.disconnect();var L;(L=this.resizeObserver)==null||L.disconnect();document.removeEventListener("scroll",_.p$(this,this.updateChipBarWidthAndTop))};
_.K.dataChanged=function(){var x=this,L,D,S;((S=_.g((L=this.data)==null?void 0:(D=L.contents)==null?void 0:D[0],cMh))==null?void 0:S.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var Q=this.findSelectedChipIndex();this.selectedIndex!==Q&&(this.selectedIndex=-1);_.So(this,function(){x.selectedIndex=Q;x.updating=!1;x.ytScrollableChipCloudBehavior.reset()})};
_.K.findSelectedChipIndex=function(){var x;if((x=this.data)==null||!x.contents)return 0;x=this.data.contents;for(var L=0;L<x.length;L++){var D=void 0;if((D=_.g(x[L],cMh))==null?0:D.isSelected)return L}return 0};
_.K.computeStyle=function(x){return x};
_.K.handleChipCloudChipSelectAction=function(x){x=this.JSC$16081_chipsSelector.indexOf(x);x>-1&&this.JSC$16081_chipsSelector.selectIndex(x)};
_.K.handleChipCloudChipDeselectAction=function(){if(_.u("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var x,L,D,S=(D=_.g((x=this.data)==null?void 0:(L=x.contents)==null?void 0:L[0],cMh))==null?void 0:D.navigationEndpoint;S&&_.dg(this.hostElement,"yt-browse-section-list-reload-endpoint",[S]);this.JSC$16081_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.K.onGuideIsExpandedChanged=function(){this.updateLayout()};
_.K.onPersistentPanelVisibleChanged=function(){this.updateLayout()};
_.K.onResize=function(){this.updateLayout()};
_.K.updateLayout=function(){var x=this.ytScrollableChipCloudBehavior;_.So(x,x.setContainerWidthDiff);x=this.ytScrollableChipCloudBehavior;_.So(x,x.setButtonsState)};
_.K.onDarkModeToggledAction=function(x){this.isDarkTheme=x};
_.K.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.K.handleIntersect=function(x){this.notSticky=this.isChannelPageGrid||this.disableSticky||x[0].intersectionRatio===1};
_.K.updateDimensions=function(){var x=this.ytRendererBehavior.parentComponent;if(x){var L,D=(L=x.headerElement)!=null?L:x;_.uN(this.hostElement,{"--ytd-rich-grid-chips-bar-width":D.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.K.updateSelectedIndexFromBinding=function(x){this.selectedIndex=x.detail.value};
_.K.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var x;(x=this.sortFilterHeaderRendererElement)==null||x.setAttribute("is-playlist-page-with-filters","")}};
_.K.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch($MB(!this.notSticky))};
_.J3.Object.defineProperties(rX.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 x,L,D=(x=this.data)==null?void 0:(L=x.contents)==null?void 0:L.find(function(S){return _.g(S,DIh)});
return{sortFilterHeaderRenderer:_.g(D,DIh)}}}});
rX.prototype.dispatchChipBarIsSticky=rX.prototype.dispatchChipBarIsSticky;rX.prototype.isPlaylistPageChanged=rX.prototype.isPlaylistPageChanged;rX.prototype.updateChipBarWidthAndTop=rX.prototype.updateChipBarWidthAndTop;rX.prototype.onResize=rX.prototype.onResize;rX.prototype.onPersistentPanelVisibleChanged=rX.prototype.onPersistentPanelVisibleChanged;rX.prototype.onGuideIsExpandedChanged=rX.prototype.onGuideIsExpandedChanged;rX.prototype.dataChanged=rX.prototype.dataChanged;
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],rX.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],rX.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],rX.prototype,"actionHandlerBehavior",void 0);_.A([_.b(_.XO),_.r("design:type",Object)],rX.prototype,"ironResizableBehavior",void 0);_.A([_.b(),_.r("design:type",Af)],rX.prototype,"ytScrollableChipCloudBehavior",void 0);
_.A([_.b(_.EG),_.r("design:type",Object)],rX.prototype,"ytdReduxBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],rX.prototype,"data",void 0);_.A([_.F({value:0}),_.r("design:type",Number)],rX.prototype,"selectedIndex",void 0);_.A([_.F({value:320}),_.r("design:type",Number)],rX.prototype,"scrollDistance",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],rX.prototype,"isDarkTheme",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],rX.prototype,"notSticky",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],rX.prototype,"transparentBackground",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.r("design:type",String)],rX.prototype,"componentStyle",void 0);_.A([_.F({selector:_.vrc}),_.r("design:type",Boolean)],rX.prototype,"guideIsExpanded",void 0);
_.A([_.F({selector:RbG}),_.r("design:type",Boolean)],rX.prototype,"persistentPanelVisible",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],rX.prototype,"shouldHide",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],rX.prototype,"disableSticky",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],rX.prototype,"fluidWidth",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],rX.prototype,"isClipList",void 0);
_.A([_.F(),_.r("design:type",Object)],rX.prototype,"defaultChipIndex",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],rX.prototype,"isPlaylist",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],rX.prototype,"playlistVotingAnimationEnabled",void 0);_.A([_.F1("#chips"),_.r("design:type",Object)],rX.prototype,"JSC$16081_chipsSelector",void 0);
_.A([_.F1("ytd-sort-filter-header-renderer"),_.r("design:type",HTMLElement)],rX.prototype,"sortFilterHeaderRendererElement",void 0);_.A([_.F({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],rX.prototype,"updating",void 0);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],rX.prototype,"dataChanged",null);
_.A([_.bN("guideIsExpanded"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],rX.prototype,"onGuideIsExpandedChanged",null);_.A([_.bN("persistentPanelVisible"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],rX.prototype,"onPersistentPanelVisibleChanged",null);_.A([_.mX("iron-resize"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],rX.prototype,"onResize",null);
_.A([_.GV("isChannelPageGrid","disableSticky","data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],rX.prototype,"updateChipBarWidthAndTop",null);_.A([_.Y("componentStyle"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],rX.prototype,"isChannelPageGrid",null);_.A([_.Y("componentStyle"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],rX.prototype,"isHashtagLandingPage",null);
_.A([_.bN("isPlaylistPage"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],rX.prototype,"isPlaylistPageChanged",null);_.A([_.Y("componentStyle"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],rX.prototype,"isPlaylistPage",null);_.A([_.Y("componentStyle"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],rX.prototype,"isDisableDeselectEvent",null);
_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],rX.prototype,"sortFilterHeaderRendererData",null);_.A([_.F({reflectToAttribute:!0,selector:_.py3}),_.r("design:type",String)],rX.prototype,"frostedGlassMode",void 0);_.A([_.bN("notSticky"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],rX.prototype,"dispatchChipBarIsSticky",null);_.A([_.w({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],rX);
_.q(rX,"ytd-feed-filter-chip-bar-renderer",function(){if(bx_!==void 0)return bx_;var x=document.createElement("template");_.m(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-filter-chip-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="chips-wrapper" class="style-scope ytd-feed-filter-chip-bar-renderer">\n  <div id="chips-content" class="style-scope ytd-feed-filter-chip-bar-renderer">\n    <div id="left-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="left-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n    <div id="filter" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    <div id="scroll-container" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <iron-selector id="chips" activate-event="" role="tablist" selected="[[selectedIndex]]" selected-attribute="selected" on-selected-changed="updateSelectedIndexFromBinding" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      </iron-selector>\n    </div>\n    <div id="right-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="right-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n  </div>\n</div>\n');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return bx_=x},{mode:1});var GYh;var CLh=_.B(function(x){var L=x.data;var D=x.buttonIndex;var S=x.selectedIndex;var Q=x.onSelect;var J=function(){return D()===S()},Z=function(){var y,E;
return(E=(y=L().text)==null?void 0:y.content)!=null?E:""};
x=_.YCw();return _.M("yt-toggleable-image-button-view-model",{class:function(){var y={};y=(y.toggleableImageButtonViewModelHost=!0,y[""]=!0,y.toggleableImageButtonViewModelSemiTransparent=S()!==-1&&!J(),y);return _.Uv(y)},
tabindex:0,"aria-label":Z,"aria-pressed":J,role:"button","on:keydown":x,"on:click":_.kO(function(){Q(L().onSubmitCommand);return!1})},_.M(_.d,{cond:function(){return L().logo},
then:function(y){return _.M(_.Ku,{data:y,className:function(){var E={};E=(E.toggleableImageButtonViewModelImage=!0,E.toggleableImageButtonViewModelCircularRadius=!(!L().backgroundColor||!L().backgroundColorDarkMode),E.toggleableImageButtonViewModelGradientRing=!!(J()&&L().backgroundColor&&L().backgroundColorDarkMode),E);return _.Uv(E)},
alt:Z,useWidth:!1,style:function(){if(J()&&L().backgroundColor&&L().backgroundColorDarkMode){var E=cq(Number(L().backgroundColorDarkMode),"1");var P=cq(Number(L().backgroundColor),"1");E="background: linear-gradient(180deg,"+E+","+P+") border-box;"}else E="";return E}})}}),_.M(_.UB,{model:{borderRadius:"16px"}}),_.M("p",{class:function(){var y={};
y=(y.toggleableImageButtonViewModelLabel=!0,y.toggleableImageButtonViewModelBoldText=J(),y);return _.Uv(y)}},_.M(_.kP,{text:function(){return L().text}})))},"Ic");
CLh.idomCompat=!0;var UxQ=_.B(function(x){var L=x.data;x=_.O(_.HB({index:-1,command:{}},void 0,"GM3umb"));var D=x.next().value,S=x.next().value;return _.M("yt-nudge-form-view-model",{class:"nudgeFormViewModelHost"},_.M("div",{class:"nudgeFormViewModelFormOptions"},_.M(_.Fj,{data:function(){return L().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(Q,J){return _.M(CLh,{data:Q.data,buttonIndex:J,selectedIndex:function(){return D().index},
onSelect:function(Z){S({index:J(),command:Z})}})}})),_.M(_.kP,{text:function(){return L().subtitle},
className:"nudgeFormViewModelSubtitle"}),_.M("div",{class:"nudgeFormViewModelSubmit"},_.M(_.Fj,{data:function(){return L().submitButton}},{buttonViewModel:function(Q){return _.M(lXA,{data:Q.data,
isDisabled:function(){return D().index===-1},
onClick:function(){_.Xf(D().command)}})}})))},"Jc");
UxQ.idomCompat=!0;var lXA=_.B(function(x){var L=_.m5(function(){return Object.assign({},x.data(),{state:x.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"wMKC2e");
return _.M(_.qP,{data:L,onClick:x.onClick})},"Kc");_.dF(UxQ,"yt-nudge-form-view-model",{props:{data:_.pJ}});var NA=function(){var x=_.e.apply(this,arguments)||this;x.roundedContainer=!0;x.buttonUpdate=_.u("web_modern_buttons");x.isDarkMode=!1;x.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return x};
_.p(NA,_.e);_.K=NA.prototype;_.K.computeNudgeStyle=function(x){return x?"modernized-nudge":""};
_.K.handleDarkModeToggledAction=function(x){this.isDarkMode=x};
_.K.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.K.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"}}}};
_.K.computeIsHorizontalButtons=function(x){return x?!!x.applyModernizedStyle&&!!x.enableHorizontalButtons&&!!x.secondaryButton:!1};
_.J3.Object.defineProperties(NA.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var x,L;return(L=(x=this.data)==null?void 0:x.backgroundStyle)!=null?L:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var x,L;return(L=(x=this.data)==null?void 0:x.contentsLocation)!=null?L:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null?0:x.lightIconImage)}}});
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],NA.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],NA.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.dK),_.r("design:type",Object)],NA.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],NA.prototype,"actionHandlerBehavior",void 0);
_.A([_.F({reflectToAttribute:!0}),_.Y("isHideEnclosingAction"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],NA.prototype,"isHidden",null);_.A([_.F(),_.r("design:type",Object)],NA.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],NA.prototype,"roundedContainer",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],NA.prototype,"buttonUpdate",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.r("design:type",String)],NA.prototype,"nudgeStyle",void 0);_.A([_.F({reflectToAttribute:!0}),_.Y("data.trimStyle"),_.r("design:type",String),_.r("design:paramtypes",[])],NA.prototype,"trimStyle",null);_.A([_.F({reflectToAttribute:!0}),_.Y("data.backgroundStyle"),_.r("design:type",String),_.r("design:paramtypes",[])],NA.prototype,"backgroundStyle",null);
_.A([_.F({reflectToAttribute:!0}),_.Y("data.contentsLocation"),_.r("design:type",String),_.r("design:paramtypes",[])],NA.prototype,"contentsLocation",null);_.A([_.F({reflectToAttribute:!0}),_.Y("data.disableDropShadow"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],NA.prototype,"noShadow",null);_.A([_.F({reflectToAttribute:!0}),_.Y("data.lightIconImage"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],NA.prototype,"noIcon",null);
_.A([_.F({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.r("design:type",Boolean)],NA.prototype,"isHorizontalButtons",void 0);_.A([_.F({reflectToAttribute:!0,value:!1}),_.r("design:type",Object)],NA.prototype,"isDarkMode",void 0);_.A([_.w({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],NA);
_.q(NA,"ytd-feed-nudge-renderer",function(){if(GYh!==void 0)return GYh;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return GYh=x},{mode:_.Vm("kevlar_poly_si_batch_j028")?1:2});var w0B;var B2Q;var i$=function(){var x=_.e.apply(this,arguments)||this;x.collapsed=!1;x.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return x};
_.p(i$,_.e);i$.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"}}}};
i$.prototype.handleRatingSelect=function(){var x;((x=this.data)==null?0:x.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
i$.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],i$.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],i$.prototype,"actionHandlerBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],i$.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],i$.prototype,"ytRendererBehavior",void 0);
_.A([_.b(_.dK),_.r("design:type",Object)],i$.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],i$.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],i$.prototype,"collapsed",void 0);_.A([_.w({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],i$);
_.q(i$,"ytd-slimline-survey-renderer",function(){if(B2Q!==void 0)return B2Q;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return B2Q=x},{mode:1});var WEh;var f5=function(){return _.e.apply(this,arguments)||this};
_.p(f5,_.e);f5.prototype.maybeGetBackgroundColor=function(x){return this.isDarkMode?x.section2Color:x.section3Color};
f5.prototype.colorPaletteChanged=function(){var x=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;x&&(x==null?0:x.secondaryTitleColor)&&this.maybeGetBackgroundColor(x)?(this.hostElement.style.backgroundColor=_.zF(this.maybeGetBackgroundColor(x)),this.hostElement.style.color=_.zF(x.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
f5.prototype.colorPaletteChanged=f5.prototype.colorPaletteChanged;_.A([_.b(_.EG),_.r("design:type",Object)],f5.prototype,"ytdReduxBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],f5.prototype,"data",void 0);_.A([_.F({selector:function(x){return x.ui.darkModeIsEnabled}}),
_.r("design:type",Boolean)],f5.prototype,"isDarkMode",void 0);_.A([_.F(),_.r("design:type",Object)],f5.prototype,"lightColorPalette",void 0);_.A([_.F(),_.r("design:type",Object)],f5.prototype,"darkColorPalette",void 0);_.A([_.bN("darkColorPalette","lightColorPalette","data","isDarkMode"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],f5.prototype,"colorPaletteChanged",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],f5);
_.q(f5,"ytd-endorsement-header-renderer",function(){if(WEh!==void 0)return WEh;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return WEh=x},{mode:1});_.dF(_.Z6,"yt-decorated-avatar-view-model",{props:{data:_.pJ,className:_.pJ}});_.og=new _.vx("VIEW_TRANSITION_MANAGER_TOKEN");var ag=function(){var x=_.e.apply(this,arguments)||this;x.fullHeight=_.u("web_rich_grid_media_full_height");x.showChannelAvatar=!0;x.hasPlaylistThumbnail=!1;x.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};x.registerThumbnailForPageTransition=function(){_.u("web_thumbnail_to_watch_transition")&&_.qf_(_.yY().resolve(_.og),x.thumbnail)};
return x};
_.p(ag,_.e);_.K=ag.prototype;
_.K.configureRendererStamper=function(){return{lazyLoadMenu:ob,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"}}}};
_.K.attached=function(){this.updateInlinePreviewHoverListeners()};
_.K.detached=function(){this.clearInlinePreviewHoverListeners()};
_.K.shouldLazyLoadMenu=function(){var x=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.u("kevlar_modern_downloads_page")||!x};
_.K.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16106_inlinePreviewHoverListener=r4({mediaRenderer:this,lockupElement:this.JSC$16106_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.K.getVideoPreviewOpts=function(){var x={},L;if((L=this.data)==null?0:L.multipleInlinePlaybackEndpoint)x=YlR;this.isRadio&&(x=bo2);return x};
_.K.clearInlinePreviewHoverListeners=function(){var x;(x=this.JSC$16106_inlinePreviewHoverListener)==null||DS(x)};
_.K.getOwner=function(){var x,L,D;return((x=this.data)==null?void 0:(L=x.channelThumbnailSupportedRenderers)==null?void 0:L.channelThumbnailWithLinkRenderer)||_.g((D=this.data)==null?void 0:D.showProviderChannelThumbnail,Ls2)};
_.K.updateLockupSize=function(){var x;((x=this.getOwner())==null?0:x.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.K.getFeedbackEndpoint=function(x){if(_.g(x,_.Uy))return x;var L,D;x=(D=(L=_.g(x,_.h_))==null?void 0:L.commands)!=null?D:[];L=_.O(x);for(D=L.next();!D.done;D=L.next())if(D=this.getFeedbackEndpoint(D.value))return D;return null};
_.K.computeNavigationEndpoint=function(x){return kd0(x==null?void 0:x.navigationEndpoint)};
_.K.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var x=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(x)!==JSON.stringify(this.data)&&this.set("data",x)}};
_.K.onDataChanged=function(){var x=this,L=this.getOwner();if(L){this.set("data.owner",L);var D,S,Q,J,Z,y=((D=this.data)==null?void 0:(S=D.shortBylineText)==null?void 0:(Q=S.runs)==null?void 0:(J=Q[0])==null?void 0:J.text)||((Z=L.name)==null?void 0:Z.simpleText);this.set("data.owner.title",y)}var E,P,v,V,h,H;L=((E=this.data)==null?void 0:(P=E.thumbnailRenderer)==null?void 0:P.playlistVideoThumbnailRenderer)||((v=this.data)==null?void 0:(V=v.thumbnailRenderer)==null?void 0:V.playlistCustomThumbnailRenderer)||
((h=this.data)==null?void 0:(H=h.thumbnailRenderer)==null?void 0:H.showCustomThumbnailRenderer);var k;((k=this.data)==null?0:k.thumbnail)||!L||this.set("data.thumbnail",L.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){x.updateLockupSize()});
var T;if(E=((T=this.data)==null?void 0:T.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(E);var G;((G=this.dismissActionToReplayEntity)==null?0:G.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.K.onHiddenChanged=function(){this.updateLockupSize()};
_.K.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.dg(this.hostElement,"yt-terminate-video-preview-action");else{var x;(x=this.videoTitleLink)==null||x.focus()}};
_.K.metadataColorChanged=function(){var x;if(this.metadataColor&&((x=this.videoTitle)==null?0:x.style))this.videoTitle.style.color=_.zF(this.metadataColor);else{var L,D;!this.metadataColor&&((L=this.videoTitle)==null?0:(D=L.style)==null?0:D.color)&&(this.videoTitle.style.color="")}};
_.K.onDetailsClick=function(x){var L=this.computedNavigationEndpoint;L&&(_.QC(_.Jq(x),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.MF(this.hostElement,"yt-navigate",{endpoint:L}))};
_.K.onRendererTap=function(){this.registerThumbnailForPageTransition();var x,L,D=((x=this.data)==null?void 0:x.serviceEndpoint)||this.getFeedbackEndpoint((L=this.data)==null?void 0:L.navigationEndpoint);D&&_.g(D,_.Uy)&&this.ytComponentBehavior.resolveCommand(D)};
_.K.onMouseDown=function(x){var L=x.target,D=this.computedNavigationEndpoint,S;x=L.href||((S=_.g(D==null?void 0:D.commandMetadata,_.gg))==null?void 0:S.url);S=L.data||D;x&&S&&di0(x,S)};
_.K.computeVideoTitleText=function(){var x;if((x=this.data)==null?0:x.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.K.computeHasPlaylistThumbnail=function(x){var L,D,S,Q,J;if((((L=x.thumbnailRenderer)==null?0:L.playlistVideoThumbnailRenderer)||((D=x.thumbnailRenderer)==null?0:D.playlistCustomThumbnailRenderer)||((S=x.thumbnailRenderer)==null?0:S.showCustomThumbnailRenderer)||((Q=x.thumbnailRenderer)==null?0:Q.playlistVideoThumbnailRenderer)||((J=x.thumbnailRenderer)==null?0:J.playlistCustomThumbnailRenderer))&&x.thumbnailOverlays)for(L=0;L<x.thumbnailOverlays.length;L++)if(D=void 0,(D=x.thumbnailOverlays[L])==
null?0:D.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.J3.Object.defineProperties(ag.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.u("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var x;return(x=this.data)==null?void 0:x.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var x;return(x=this.data)==null?void 0:x.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.JSC$16106_inlinePreviewHoverListener)==null?0:Mr(x))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.ojw(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var x,L;return((x=this.data)==null?void 0:x.videoId)||((L=this.data)==null?void 0:L.playlistId)||""}}});
ag.prototype.onMouseDown=ag.prototype.onMouseDown;ag.prototype.metadataColorChanged=ag.prototype.metadataColorChanged;ag.prototype.onIsDismissedChanged=ag.prototype.onIsDismissedChanged;ag.prototype.onHiddenChanged=ag.prototype.onHiddenChanged;ag.prototype.onDataChanged=ag.prototype.onDataChanged;ag.prototype.handleReloadDownloadsInfo=ag.prototype.handleReloadDownloadsInfo;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],ag.prototype,"ytRendererBehavior",void 0);
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],ag.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],ag.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.dK),_.r("design:type",Object)],ag.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.b(_.uM),_.r("design:type",Object)],ag.prototype,"ytdLockupBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],ag.prototype,"ytdReduxBehavior",void 0);
_.A([_.F(),_.r("design:type",Object)],ag.prototype,"data",void 0);_.A([_.F(),_.r("design:type",String)],ag.prototype,"entitySelectorType",void 0);_.A([_.F(),_.r("design:type",Boolean)],ag.prototype,"noEndpoints",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],ag.prototype,"isRadio",void 0);_.A([_.F({reflectToAttribute:!0,selector:_.qU}),_.r("design:type",Boolean)],ag.prototype,"miniMode",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],ag.prototype,"fullHeight",void 0);
_.A([_.F(),_.r("design:type",Boolean)],ag.prototype,"showDarkVideoMetadata",void 0);_.A([_.F(),_.r("design:type",Boolean)],ag.prototype,"showLightVideoMetadata",void 0);_.A([_.F(),_.r("design:type",Number)],ag.prototype,"metadataColor",void 0);_.A([_.F(),_.r("design:type",Object)],ag.prototype,"showChannelAvatar",void 0);_.A([_.F(),_.r("design:type",Boolean)],ag.prototype,"hidden",void 0);_.A([_.F({value:!0}),_.r("design:type",Boolean)],ag.prototype,"showYtInteraction",void 0);
_.A([_.F(),_.r("design:type",String)],ag.prototype,"dismissedContentId",void 0);_.A([_.F({selectorArgs:["dismissedContentId"],selector:FaO}),_.r("design:type",Object)],ag.prototype,"dismissActionToReplayEntity",void 0);
_.A([_.F({selectorArgs:["entitySelectorType","mediaId"],selector:function(x,L,D){if(_.u("kevlar_modern_downloads_page")&&D&&L&&L!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(L){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var S=F$s(x,D);if(S){L=_.i6(x,D);var Q=ot(x,D),J=qjh(x,D);x=at(x,D);var Z=uW0(S,L,Q,J);Q=Z.shortViewCountText;var y=Z.publishedTimeText;Z=Z.badges;var E=x>0;J=hY4(S,L,J,x);S=_.TD(L)||L==="TRANSFER_STATE_FAILED"||L==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!s4(S.policyEntity)?
void 0:un0(D,x,S.videoEntity.lengthSeconds);L==="TRANSFER_STATE_PAUSED_BY_USER"&&D&&!_.u("dl_resume_click_killswitch")&&(S={offlineVideoEndpoint:{videoId:D,action:"ACTION_RESUME"}});D={shortViewCountText:Q,publishedTimeText:y,badges:Z,isWatched:E,navigationEndpoint:S,thumbnailOverlays:J}}else D=void 0;return D;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(L=sOO(x,D))if(S=_.f7(x,D),J=_.T6p(x,D),S!=="TRANSFER_STATE_UNKNOWN"){D=HJ4(L,S,J,D,_.NU(x));break a}D=void 0}return D;default:_.qy(new _.RZ("Error: entitySelectorType defined but not matched in selector.",
x,L))}}}),
_.r("design:type",Object)],ag.prototype,"entityDrivenState",void 0);_.A([_.F({computed:"computeVideoTitleText(data)"}),_.r("design:type",Object)],ag.prototype,"videoTitleText",void 0);_.A([_.F({computed:"computeHasPlaylistThumbnail(data)"}),_.r("design:type",Object)],ag.prototype,"hasPlaylistThumbnail",void 0);_.A([_.F({computed:"computeNavigationEndpoint(data)"}),_.r("design:type",Object)],ag.prototype,"computedNavigationEndpoint",void 0);
_.A([_.F({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],ag.prototype,"typographyBump",void 0);_.A([_.F({reflectToAttribute:!0}),_.Y("typographyBump"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],ag.prototype,"typographyBumpV2",null);_.A([_.F1("#video-title"),_.r("design:type",HTMLElement)],ag.prototype,"videoTitle",void 0);_.A([_.F1("#video-title-link"),_.r("design:type",HTMLElement)],ag.prototype,"videoTitleLink",void 0);
_.A([_.F1("#thumbnail"),_.r("design:type",HTMLElement)],ag.prototype,"thumbnail",void 0);_.A([_.F1("#dismissible"),_.r("design:type",HTMLElement)],ag.prototype,"JSC$16106_dismissibleMedia",void 0);_.A([_.Y("data.menu"),_.r("design:type",Object),_.r("design:paramtypes",[])],ag.prototype,"lazyLoadMenu",null);_.A([_.Y("data.menu"),_.r("design:type",Object),_.r("design:paramtypes",[])],ag.prototype,"immediateLoadMenu",null);
_.A([_.GV("entityDrivenState"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ag.prototype,"handleReloadDownloadsInfo",null);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ag.prototype,"onDataChanged",null);_.A([_.GV("hidden"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ag.prototype,"onHiddenChanged",null);
_.A([_.bN("isDismissed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ag.prototype,"onIsDismissedChanged",null);_.A([_.bN("metadataColor"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ag.prototype,"metadataColorChanged",null);_.A([_.mX("mousedown"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],ag.prototype,"onMouseDown",null);
_.A([_.Y("lockupIsHovered"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],ag.prototype,"isHovered",null);_.A([_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],ag.prototype,"useAvatar",null);_.A([_.Y("data","entitySelectorType"),_.r("design:type",String),_.r("design:paramtypes",[])],ag.prototype,"mediaId",null);_.A([_.w({is:"ytd-rich-grid-media",disableElementRegistration:!0})],ag);
var AnQ=_.vp()(ag,"ytd-rich-grid-media",function(){if(w0B!==void 0)return w0B;var x=document.createElement("template");_.m(x,'\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>');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return w0B=x},{mode:_.Vm("kevlar_poly_si_batch_j072")?1:2});var $x2;var z_=function(){var x=_.e.apply(this,arguments)||this;x.removeMaxWidth=!0;x.insetMetadata=!1;return x};
_.p(z_,_.e);_.K=z_.prototype;_.K.configureRendererStamper=function(){return{innerMenu:ob,outerMenu:Object.assign({},ob,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.K.onDataChanged=function(){var x,L=((x=this.data)==null?void 0:x.trackingParams)||"";L&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(L));var D;((D=this.dismissActionToReplayEntity)==null?0:D.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.K.attached=function(){this.updateInlinePreviewHoverListeners()};
_.K.detached=function(){this.clearInlinePreviewHoverListeners()};
_.K.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$16111_inlinePreviewHoverListener=r4({mediaRenderer:this,lockupElement:this.JSC$16111_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:Fhh})};
_.K.clearInlinePreviewHoverListeners=function(){var x;(x=this.JSC$16111_inlinePreviewHoverListener)==null||DS(x)};
_.K.onRendererTap=function(){var x,L,D=(x=this.data)==null?void 0:(L=x.serviceEndpoints)==null?void 0:L[0];_.g(D,_.Uy)&&this.componentBehavior.resolveCommand(D)};
_.K.onDetailsClick=function(x){var L,D=(L=this.data)==null?void 0:L.navigationEndpoint;D&&(_.QC(_.Jq(x),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(D))};
_.K.onShow=function(){var x=this.data;x.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(x.onFirstVisibleCommand),delete x.onFirstVisibleCommand)};
_.J3.Object.defineProperties(z_.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var x;return this.insetMetadata?void 0:(x=this.data)==null?void 0:x.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var x;return this.insetMetadata?(x=this.data)==null?void 0:x.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var x=this.data;if(x!=null&&x.badge&&(x=_.g(x.badge,NeH))){var L,D,S;return[{metadataBadgeRenderer:{label:((L=x.label)==null?void 0:(D=L.runs)==null?void 0:D[0].text)||((S=x.label)==null?void 0:S.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var x=this.data;return Object.assign({},x.headline,{accessibility:x.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var x,L,D;return this.isSlimShort?(x=this.computedTitle)==null?void 0:(L=x.accessibility)==null?void 0:(D=L.accessibilityData)==null?void 0:D.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.u("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.JSC$16111_inlinePreviewHoverListener)==null?0:Mr(x))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
z_.prototype.onDataChanged=z_.prototype.onDataChanged;_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],z_.prototype,"componentBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],z_.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.uM),_.r("design:type",Object)],z_.prototype,"ytdLockupBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],z_.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.b(_.dK),_.r("design:type",Object)],z_.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],z_.prototype,"ytdReduxBehavior",void 0);_.A([_.F1("ytd-thumbnail"),_.r("design:type",HTMLElement)],z_.prototype,"thumbnail",void 0);_.A([_.F1("#dismissible"),_.r("design:type",HTMLElement)],z_.prototype,"JSC$16111_dismissibleMedia",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],z_.prototype,"removeMaxWidth",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],z_.prototype,"insetMetadata",void 0);_.A([_.F(),_.r("design:type",String)],z_.prototype,"dismissedContentId",void 0);_.A([_.F({selectorArgs:["dismissedContentId"],selector:FaO}),_.r("design:type",Object)],z_.prototype,"dismissActionToReplayEntity",void 0);_.A([_.Y("insetMetadata"),_.r("design:type",Object),_.r("design:paramtypes",[])],z_.prototype,"thumbnailObjectFit",null);
_.A([_.Y("data","insetMetadata"),_.r("design:type",Object),_.r("design:paramtypes",[])],z_.prototype,"innerMenu",null);_.A([_.Y("data","insetMetadata"),_.r("design:type",Object),_.r("design:paramtypes",[])],z_.prototype,"outerMenu",null);_.A([_.F(),_.r("design:type",Object)],z_.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0,selector:_.qU}),_.r("design:type",Boolean)],z_.prototype,"miniMode",void 0);
_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],z_.prototype,"onDataChanged",null);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],z_.prototype,"shortsBadges",null);_.A([_.Y("data"),_.F({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],z_.prototype,"isShort",null);
_.A([_.Y("data"),_.F({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],z_.prototype,"isSlimShort",null);_.A([_.Y("data","isShort"),_.r("design:type",Object),_.r("design:paramtypes",[])],z_.prototype,"computedTitle",null);_.A([_.Y("isSlimShort","computedTitle"),_.r("design:type",Object),_.r("design:paramtypes",[])],z_.prototype,"computedAccessibilityLabel",null);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],z_.prototype,"shouldForce2By3",null);_.A([_.Y("lockupIsHovered"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],z_.prototype,"isHovered",null);_.A([_.w({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],z_);
_.q(z_,"ytd-rich-grid-slim-media",function(){if($x2!==void 0)return $x2;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return $x2=x},{mode:_.Vm("kevlar_poly_si_batch_j063")?1:2});var rnR;var N2_;var Xp=function(){var x=_.e.apply(this,arguments)||this;x.darkerDarkTheme=_.u("web_darker_dark_theme");return x};
_.p(Xp,_.e);Xp.prototype.computeIcon=function(x){return x&&x.iconType?"yt-sys-icons:"+x.iconType.toLowerCase():""};
Xp.prototype.onMouseEnter=function(){this.isHovered=!0};
Xp.prototype.onMouseLeave=function(){this.isHovered=!1};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Xp.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Xp.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],Xp.prototype,"ytComponentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Xp.prototype,"data",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],Xp.prototype,"isHovered",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Xp.prototype,"darkerDarkTheme",void 0);_.A([_.w({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],Xp);
_.q(Xp,"ytd-expand-on-hover-card-renderer",function(){if(N2_!==void 0)return N2_;var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return N2_=x},{mode:1});var ixA,fXH=function(){if(ixA!==void 0)return ixA;var x=document.createElement("template");_.m(x,'\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>');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return ixA=x};_.BD("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var ck=function(){var x=_.e.apply(this,arguments)||this;x.compactStyle=!1;x.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return x};
_.p(ck,_.e);_.K=ck.prototype;_.K.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.K.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"}}}};
_.K.computeHideDot=function(x){return!(x&&x.subscriberCountText&&x.videoCountText)||this.compactStyle};
_.K.hasDualButtons=function(x){return x&&x.purchaseButton&&x.subscribeButton};
_.K.backgroundColorChanged=function(){if(this.data!==void 0){var x=this.data.backgroundColor;this.isDarkTheme&&(x=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=x!=null?_.zF(x):"transparent"}};
_.K.onDarkModeToggledAction=function(x){this.isDarkTheme=x};
_.K.onTap=function(x){var L,D,S=((L=this.data)==null?void 0:L.navigationEndpoint)||((D=this.data)==null?void 0:D.serviceEndpoint);_.g(S,_.LF)&&(S&&_.yY().resolve(_.E2).resolveCommand(S,{form:{element:this.hostElement}}),x.preventDefault())};
_.K.computeChannelEndpoint=function(x){return _.g(x,_.LF)?null:x};
_.K.computeHrefEndpoint=function(x){return _.g(x,_.LF)?null:this.componentBehavior.computeHref_(x)};
_.K.computeChannelRendererStyle=function(x){return x};
_.K.computeIconSize=function(x){return x?108:136};
_.J3.Object.defineProperties(ck,{template:{configurable:!0,enumerable:!0,get:function(){return fXH()}}});
ck.prototype.backgroundColorChanged=ck.prototype.backgroundColorChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],ck.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],ck.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.Fz),_.r("design:type",Object)],ck.prototype,"ytdOpenPopupBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],ck.prototype,"componentBehavior",void 0);
_.A([_.F(),_.r("design:type",Object)],ck.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Boolean)],ck.prototype,"isDarkTheme",void 0);_.A([_.F({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.r("design:type",String)],ck.prototype,"channelRendererStyle",void 0);_.A([_.F({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],ck.prototype,"dualButtons",void 0);_.A([_.F({reflectToAttribute:!0,value:function(){return _.u("enable_desktop_search_bigger_thumbs")}}),
_.r("design:type",Boolean)],ck.prototype,"useBiggerThumbs",void 0);_.A([_.F({reflectToAttribute:!0,value:function(){return _.PY("desktop_search_bigger_thumbs_style")}}),
_.r("design:type",String)],ck.prototype,"biggerThumbStyle",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],ck.prototype,"compactStyle",void 0);_.A([_.bN("data","isDarkTheme"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ck.prototype,"backgroundColorChanged",null);_.A([_.w({is:"ytd-channel-renderer",disableElementRegistration:!0})],ck);_.q(ck,"ytd-channel-renderer",function(){return fXH()},{mode:1});var oGR;var aXi;_.BD("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var n5=function(){var x=_.e.apply(this,arguments)||this;x.displayItemCount=2;x.collections=_.u("web_modern_collections_v2");x.hasPlaylistThumbnail=!1;x.stackThumbnailSize="large";return x};
_.p(n5,_.e);_.K=n5.prototype;_.K.attached=function(){this.updateInlinePreviewHoverListeners()};
_.K.detached=function(){this.clearInlinePreviewHoverListeners()};
_.K.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.K.computeFirstVideos=function(x,L){return x&&L?x.slice(0,L):[]};
_.K.computeThumbnailWidth=function(x,L){return x?L==="BIG"?500:L==="MASSIVE"?600:L==="MEDIUM"?450:420:360};
_.K.computeThumbnailHeight=function(x,L){return x?L==="BIG"?280:L==="MASSIVE"?337:234:202};
_.K.clearInlinePreviewHoverListeners=function(){var x;(x=this.JSC$16124_inlinePreviewHoverListener)==null||DS(x)};
_.K.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16124_inlinePreviewHoverListener=r4({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:YlR,thumbnailElement:this.thumbnail})};
_.K.computeHasPlaylistThumbnail=function(x){var L,D;if((((L=x.thumbnailRenderer)==null?0:L.playlistVideoThumbnailRenderer)||((D=x.thumbnailRenderer)==null?0:D.playlistCustomThumbnailRenderer))&&x.thumbnailOverlays)for(L=0;L<x.thumbnailOverlays.length;L++)if(D=void 0,(D=x.thumbnailOverlays[L])==null?0:D.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.J3.Object.defineProperties(n5.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.JSC$16124_inlinePreviewHoverListener)==null?0:Mr(x))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
n5.prototype.dataChanged=n5.prototype.dataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],n5.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.uM),_.r("design:type",Object)],n5.prototype,"ytdLockupBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],n5.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],n5.prototype,"displayItemCount",void 0);_.A([_.F({reflectToAttribute:!0,value:function(){return _.u("enable_desktop_search_bigger_thumbs")}}),
_.r("design:type",Boolean)],n5.prototype,"useBiggerThumbs",void 0);_.A([_.F({reflectToAttribute:!0,value:function(){return _.PY("desktop_search_bigger_thumbs_style")}}),
_.r("design:type",String)],n5.prototype,"biggerThumbsStyle",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],n5.prototype,"collections",void 0);_.A([_.F({computed:"computeHasPlaylistThumbnail(data)"}),_.r("design:type",Object)],n5.prototype,"hasPlaylistThumbnail",void 0);_.A([_.F(),_.r("design:type",String)],n5.prototype,"stackThumbnailSize",void 0);_.A([_.F1("ytd-thumbnail"),_.r("design:type",HTMLElement)],n5.prototype,"thumbnail",void 0);
_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],n5.prototype,"dataChanged",null);_.A([_.Y("lockupIsHovered"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],n5.prototype,"isHovered",null);_.A([_.w({is:"ytd-radio-renderer",disableElementRegistration:!0})],n5);
_.q(n5,"ytd-radio-renderer",function(){if(aXi!==void 0)return aXi;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return aXi=x},{mode:_.Vm("kevlar_poly_si_batch_j058")?1:2});var zbA;_.BD("itemSectionRenderer","showRenderer","ytd-show-renderer");var tf=function(){return _.e.apply(this,arguments)||this};
_.p(tf,_.e);tf.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
tf.prototype.computeThumbnailWidth=function(x){return x?360:246};
tf.prototype.computeUseProminentThumbs=function(x){return x};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],tf.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],tf.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],tf.prototype,"data",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],tf.prototype,"isSearch",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.r("design:type",Boolean)],tf.prototype,"useProminentThumbs",void 0);_.A([_.w({is:"ytd-show-renderer",disableElementRegistration:!0})],tf);
_.q(tf,"ytd-show-renderer",function(){if(zbA!==void 0)return zbA;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return zbA=x},{mode:1});_.BD("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var x$=function(){var x=_.e.apply(this,arguments)||this;x.isRichGrid=!1;return x};
_.p(x$,_.e);x$.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"}}}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],x$.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],x$.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],x$.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],x$.prototype,"isRichGrid",void 0);_.A([_.w({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],x$);
_.q(x$,"ytd-feed-entry-renderer",function(){if(oGR!==void 0)return oGR;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return oGR=x},{mode:1});var X02;var L4=function(){return _.e.apply(this,arguments)||this};
_.p(L4,_.e);L4.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.A([_.b(_.EG),_.r("design:type",Object)],L4.prototype,"ytdReduxBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],L4.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],L4.prototype,"ytComponentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],L4.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0,selector:_.A2,value:3}),_.r("design:type",Number)],L4.prototype,"itemsPerRow",void 0);
_.A([_.w({is:"ytd-link-card-renderer",disableElementRegistration:!0})],L4);
_.q(L4,"ytd-link-card-renderer",function(){if(X02!==void 0)return X02;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return X02=x},{mode:1});var cnH;var DM=function(){return _.e.apply(this,arguments)||this};
_.p(DM,_.e);_.K=DM.prototype;_.K.configureRendererStamper=function(){return{"data.menu":ob,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.K.onRendererTap=function(x){if(!this.ytdDismissibleItemBehavior.isDismissed){var L,D=(L=this.data)==null?void 0:L.navigationEndpoint;D&&!_.QC(_.Jq(x),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(D)?_.QC(_.Jq(x),this.hostElement,["A"])||_.MF(this.hostElement,"yt-navigate",{endpoint:D}):this.ytComponentBehavior.resolveCommand(D,{}))}};
_.K.maybeComputeHref=function(x){return this.ytComponentBehavior.computeHref_(x,!0)};
_.K.getNavigationCommand=function(x){return this.isNavigationCommand(x)?x:null};
_.K.isNavigationCommand=function(x){return x?_.g(x,_.mt)||_.g(x,_.L6)||_.g(x,_.oR)?!0:!1:!1};
DM.prototype.onRendererTap=DM.prototype.onRendererTap;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],DM.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],DM.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.dK),_.r("design:type",Object)],DM.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],DM.prototype,"ytComponentBehavior",void 0);
_.A([_.F(),_.r("design:type",Object)],DM.prototype,"data",void 0);_.A([_.mX("tap"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],DM.prototype,"onRendererTap",null);_.A([_.w({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],DM);
_.q(DM,"ytd-lumiere-promo-item-image-renderer",function(){if(cnH!==void 0)return cnH;var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return cnH=x},{mode:1});var nG_;var Sb=function(){return _.e.apply(this,arguments)||this};
_.p(Sb,_.e);Sb.prototype.computeLandscapeThumbnail=function(){var x;return((x=this.data)==null?void 0:x.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Sb.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],Sb.prototype,"ytdReduxBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Sb.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0,selector:_.qU}),_.r("design:type",Boolean)],Sb.prototype,"miniMode",void 0);_.A([_.F({reflectToAttribute:!0,selector:_.A2}),_.r("design:type",Number)],Sb.prototype,"itemsPerRow",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.r("design:type",Boolean)],Sb.prototype,"landscapeThumbnail",void 0);_.A([_.w({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],Sb);
_.q(Sb,"ytd-lumiere-shelf-details-renderer",function(){if(nG_!==void 0)return nG_;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return nG_=x},{mode:_.Vm("kevlar_poly_si_batch_j076")?1:2});var thd;var Qh=function(){return _.e.apply(this,arguments)||this};
_.p(Qh,_.e);Qh.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Qh.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Qh.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Qh.prototype,"data",void 0);_.A([_.w({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],Qh);
_.q(Qh,"ytd-primetime-promo-details-renderer",function(){if(thd!==void 0)return thd;var x=document.createElement("template");_.m(x,'\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>');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return thd=x},{mode:1});var xnQ;var JN=function(){return _.e.apply(this,arguments)||this};
_.p(JN,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],JN.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],JN.prototype,"data",void 0);_.A([_.w({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],JN);
_.q(JN,"ytd-panel-show-style-metadata-renderer",function(){if(xnQ!==void 0)return xnQ;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return xnQ=x},{mode:1});var L7r;var K4=function(){return _.e.apply(this,arguments)||this};
_.p(K4,_.e);_.K=K4.prototype;_.K.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.K.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.K.computeThumbnail=function(x){if(x)return x.smallFormFactorBackgroundThumbnail||x.largeFormFactorBackgroundThumbnail};
_.K.maybeComputeHref=function(x){return this.ytComponentBehavior.computeHref_(x,!0)};
_.K.isNavigationCommand=function(x){return x?_.g(x,_.mt)||_.g(x,_.L6)||_.g(x,_.oR)?!0:!1:!1};
_.K.getNavigationCommand=function(x){return this.isNavigationCommand(x)?x:null};
K4.prototype.onPanelTap=K4.prototype.onPanelTap;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],K4.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],K4.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],K4.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],K4.prototype,"data",void 0);
_.A([_.F({reflectToAttribute:!0,value:!0}),_.r("design:type",Boolean)],K4.prototype,"roundedContainer",void 0);_.A([_.F({reflectToAttribute:!0,value:_.u("web_modern_buttons")}),_.r("design:type",Boolean)],K4.prototype,"modernButtons",void 0);_.A([_.mX("tap"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],K4.prototype,"onPanelTap",null);_.A([_.w({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],K4);
_.q(K4,"ytd-primetime-promo-panel-renderer",function(){if(L7r!==void 0)return L7r;var x=document.createElement("template");_.m(x,'\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>');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return L7r=x},{mode:1});_.dF(_.B(function(x){x=_.ym(x,{data:{},useFullWidth:!1});var L=x.data,D=x.useFullWidth;x={};return _.M("teaser-card-view-model",{class:_.gF("ytTeaserCardViewModelHost",(x.ytTeaserCardViewModelUseFullWidth=function(){return D()},x))},_.M(_.d,{cond:function(){return L().onTap},
then:function(S){return _.M(_.lr,{className:"ytTeaserCardViewModelLink",command:S},_.M("div",{class:"ytTeaserCardViewModelImageContainer"},_.M(_.d,{cond:function(){return L().image},
then:function(Q){return _.M(_.Ku,{data:Q,className:"ytTeaserCardViewModelImage",alt:""})}})),_.M("p",{class:"ytTeaserCardViewModelCaption"},function(){return L().caption}))}}))},"Lc"),"teaser-card-view-model",{props:{data:_.pJ,
useFullWidth:_.pJ}});_.dF(_.B(function(x){var L=x.data;var D=function(){var S;return _.oB((S=L())==null?void 0:S.iconThemedImage)};
return _.M("yt-edu-card-view-model",null,_.M(_.U0,{contentId:function(){return L().nudgeId}},function(){return _.M("div",{class:_.gF("ytEduCardViewModelHost",function(){return L().trimStyle==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?null:"ytEduCardViewModelGradientTrim"})},_.M("div",{class:"ytEduCardViewModelTopCornerButton"},_.M(_.Fj,{data:function(){return L().dismissButton}},{buttonViewModel:_.qP})),_.M("div",{class:"ytEduCardViewModelContentWrapper"},_.M("div",{class:"ytEduCardViewModelHeaderImage"},_.M(_.d,
{cond:D,
then:function(S){return _.M(_.Ku,{data:S,alt:"",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.M("div",{class:"ytEduCardViewModelTextContainer"},_.M("div",{class:"ytEduCardViewModelTitle"},_.M(_.kP,{text:function(){return L().title}})),_.M("div",{class:"ytEduCardViewModelSubtitle"},_.M(_.kP,{text:function(){return L().subtitle}}))),_.M("div",{class:"ytEduCardViewModelContent"},_.M(_.Fj,{data:function(){return L().form}},{nudgeFormViewModel:UxQ}))),_.M("div",{class:_.gF("ytEduCardViewModelButtonWrapper",
function(){return L().enableHorizontalButtons?"ytEduCardViewModelHorizontalButtonWrapper":null})},_.M(_.Fj,{data:function(){return L().primaryButton}},{buttonViewModel:function(S){return _.M("div",{class:"ytEduCardViewModelPrimaryButton"},_.M(_.qP,{data:S.data}))}}),_.M(_.Fj,{data:function(){return L().secondaryButton}},{buttonViewModel:function(S){return _.M("div",{class:"ytEduCardViewModelSecondaryButton"},_.M(_.qP,{data:S.data}))}})))}))},"Mc"),"yt-edu-card-view-model",{props:{data:_.pJ}});var Dnd=new _.vx("RICH_GRID_VIDEO_RENDERER_TOKEN");_.dF(_.B(function(x){var L=x.data;var D=x.showYtInteractionInContent;var S=function(){return!!L().selectableFeedback};
x=_.O(_.HB(!1,void 0,"qxtgaf"));var Q=x.next().value,J=x.next().value;_.wO(function(){var h=_.g(L().primaryButton,_.j3);(h==null?0:h.isToggled)&&J(h.isToggled)});
x=_.kO(function(h){if(!S())return!1;if(Q()){var H;var k=(H=L().selectableFeedback)==null?void 0:H.onDeselect}else{var T;k=(T=L().selectableFeedback)==null?void 0:T.onSelect}k&&_.Xf(k,{form:{element:h.target}});J(!Q());if(h=_.g(L().primaryButton,_.j3))h.isToggled=Q();return!1});
var Z=function(){if(!S()){var h,H=(h=L().loggingDirectives)==null?void 0:h.trackingParams;H&&_.AM(_.yY().resolve(_.QT),H)}},y=_.Fph(),E=function(){var h;
return S()?(h=L().selectableFeedback)==null?void 0:h.a11yLabel:void 0},P=function(){return S()?{toggled:Q()}:{}},v=_.yY().resolve(_.ZN(Dnd)),V={};
return _.M("yt-feedback-item-renderer",{class:_.gF("ytFeedbackItemRendererHost",(V.ytFeedbackItemRendererSelectableFeedback=S,V)),"on:click":x,"on:keydown":y,title:E,"aria-label":E,"aria-pressed":function(){return S()?Q():void 0},
tabindex:function(){return S()?0:void 0},
role:function(){return S()?"button":void 0}},_.M("div",{class:"ytFeedbackItemRendererContentContainer"},_.M(_.Fj,{data:function(){return L().content}},{videoRenderer:function(h){return _.M(v,{data:h.data,
showYtInteraction:D})},
lockupViewModel:function(h){return _.M(_.qr,{data:h.data,containerType:2})}})),_.M("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.M(_.Fj,{data:function(){return L().primaryButton}},{toggleButtonViewModel:function(h){return _.M(_.JT,{data:h.data,
buttonShapeOverrides:P,disableExplicitClickLogging:!0,onToggle:Z})}})))},"Nc"),"yt-feedback-item-renderer",{props:{data:_.pJ,
showYtInteractionInContent:_.pJ}});var Og=function(){var x=_.e.apply(this,arguments)||this;x.isShortsGrid=!1;x.isCompactGrid=!1;x.isShortsPanelGrid=!1;x.renderedFromRichGrid=!1;x.isInFirstColumn=!1;x.noGutterMargins=!1;x.noBottomMargin=!1;x.halfBottomMargin=!1;x.isInlineGroupItem=!1;x.insetMetadata=!1;x.noBottomMarginInAds=!0;x.force16By9ThumbnailAspectRatio=!1;x.useCompactList=!1;x.containerType=2;x.thumbnailTargetWidth=9999;x.isResponsiveGrid=!1;x.actionMap={"ytd-rich-item-index-update-action":"onIndexUpdateAction"};x.hoverListener=
x.hover.bind(x);x.leaveListener=x.leave.bind(x);x.highlighted=!1;x.JSC$16160_unsubscribeFromInlinePreviewIsActive=function(){};
return x};
_.p(Og,_.e);_.K=Og.prototype;_.K.computeContainerType=function(){return this.useCompactList?3:2};
_.K.itemWidthChanged=function(){var x;this.thumbnailTargetWidth=(x=this.itemWidth)!=null?x:9999};
_.K.updateIsInFirstColumn=function(){var x;this.isInFirstColumn=((x=this.data)==null?void 0:x.colIndex)===0};
_.K.observerContainerType=function(){if(this.lockup){var x=this.lockup;x.containerType=this.containerType;x.sizing=this.sizing;x.typographyBump=this.typographyBump;x.itemWidth=this.itemWidth}this.richGridMedia&&_.u("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.u("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.K.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]]"}}}}}};
_.K.leave=function(x){x=x.relatedTarget;var L=document.querySelector("ytd-video-preview");x&&L&&_.vP(L).contains(x)||this.removeAndCleanupHighlight()};
_.K.hover=function(){var x;!this.highlighted&&(x=this.data)!=null&&x.onFocusEffect&&(this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(x=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:x,boxShadow:"0 0 0 10px "+x})),this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border"),this.highlighted=!0)};
_.K.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};
_.K.registerHoverHighlightListeners=function(){var x=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$16160_unsubscribeFromInlinePreviewIsActive=_.oQ(_.Jd(),_.uen,function(L){x.highlighted&&!L&&x.removeAndCleanupHighlight()})};
_.K.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$16160_unsubscribeFromInlinePreviewIsActive()};
_.K.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.K.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.K.getBackgroundColor=function(){var x,L,D=(x=this.data)==null?void 0:(L=x.onFocusEffect)==null?void 0:L.onFocusColor;if(D){if(document.documentElement.hasAttribute("dark")&&(D==null?0:D.darkTheme))return _.zF(D==null?void 0:D.darkTheme);if(D==null?0:D.lightTheme)return _.zF(D==null?void 0:D.lightTheme)}};
_.K.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var x=_.A3(),L,D,S;x&&((L=this.data)==null?0:L.trackingParams)&&((D=this.data)==null?void 0:D.colIndex)!=null&&((S=this.data)==null?void 0:S.rowIndex)!=null&&_.Sm(x,_.CI(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.K.isSlimMediaRenderer=function(x){return!!_.g(x==null?void 0:x.content,_.unW)||!!_.g(x==null?void 0:x.content,HSi)||!!_.g(x==null?void 0:x.content,_.Zq)||!!_.g(x==null?void 0:x.content,AMG)};
_.K.isPostRenderer=function(){var x,L;return!!_.g((x=this.data)==null?void 0:x.content,q1W)||!!_.g((L=this.data)==null?void 0:L.content,ARd)};
_.K.computeIsGameCardShelf=function(){var x;return!!_.g((x=this.data)==null?void 0:x.content,tpB)};
_.K.computeIsMiniGameCardShelf=function(){var x,L;return!!_.g((x=this.data)==null?void 0:x.content,dc2)||!!_.g((L=this.data)==null?void 0:L.content,P_r)};
_.K.computeIsTeaserCard=function(){var x;return!!_.g((x=this.data)==null?void 0:x.content,P_r)};
_.K.computeIsSelectableFeedbackItem=function(){var x,L;return!((L=_.g((x=this.data)==null?void 0:x.content,vti))==null||!L.selectableFeedback)};
_.K.computeContainsLumierePosters=function(){var x,L;return((L=_.g((x=this.data)==null?void 0:x.content,Xcd))==null?void 0:L.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.K.computeIsExpandOnHoverCardShelf=function(){var x;return!!_.g((x=this.data)==null?void 0:x.content,zSH)};
_.K.computeIsLinkCardShelf=function(){var x;return!!_.g((x=this.data)==null?void 0:x.content,xXi)};
_.K.computeIsReelItemStyleAvatarCircle=function(x){var L;return((L=_.g(x==null?void 0:x.content,_.Zq))==null?void 0:L.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.K.computeIsLinkCardFullWidth=function(x,L){var D;return((D=_.g(x==null?void 0:x.content,xXi))==null?void 0:D.useFullWidth)||L<=2};
_.J3.Object.defineProperties(Og.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){var x;return _.u("web_hover_effect_refactor")&&_.g((x=this.data)==null?void 0:x.content,_.QkB)?!1:this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.u("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){var x;if(_.u("web_hover_effect_refactor")&&_.g((x=this.data)==null?void 0:x.content,_.QkB))return!1;var L;return!((L=this.data)==null||!L.onFocusEffect)||_.u("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 x;return{useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0,onFocusEffect:_.u("web_hover_effect_refactor")?(x=this.data)==null?void 0:x.onFocusEffect:void 0}}}});
Og.prototype.richGridHoverHighlightChanged=Og.prototype.richGridHoverHighlightChanged;Og.prototype.observerContainerType=Og.prototype.observerContainerType;Og.prototype.updateIsInFirstColumn=Og.prototype.updateIsInFirstColumn;Og.prototype.itemWidthChanged=Og.prototype.itemWidthChanged;_.A([_.b(_.EG),_.r("design:type",Object)],Og.prototype,"ytdReduxBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Og.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],Og.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Og.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.uM),_.r("design:type",Object)],Og.prototype,"ytdLockupBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Og.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.r("design:type",Boolean)],Og.prototype,"isPost",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.r("design:type",Boolean)],Og.prototype,"containsLumierePosters",void 0);_.A([_.F({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.r("design:type",Boolean)],Og.prototype,"isSlimMedia",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.r("design:type",Boolean)],Og.prototype,"isGameCardShelf",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.r("design:type",Boolean)],Og.prototype,"isMiniGameCardShelf",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.r("design:type",Boolean)],Og.prototype,"isTeaserCard",void 0);_.A([_.F({computed:"computeIsSelectableFeedbackItem(data)"}),_.r("design:type",Boolean)],Og.prototype,"isSelectableFeedbackItem",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Og.prototype,"isShortsGrid",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],Og.prototype,"isSlimGrid",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Og.prototype,"isCompactGrid",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Og.prototype,"isShortsPanelGrid",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.r("design:type",Boolean)],Og.prototype,"isExpandOnHoverCardShelf",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.r("design:type",Boolean)],Og.prototype,"isLinkCardShelf",void 0);_.A([_.F({reflectToAttribute:!0,selector:_.A2,value:3}),_.r("design:type",Number)],Og.prototype,"itemsPerRow",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Og.prototype,"renderedFromRichGrid",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Og.prototype,"isInFirstColumn",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Og.prototype,"noGutterMargins",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Og.prototype,"noBottomMargin",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Og.prototype,"halfBottomMargin",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Og.prototype,"isInlineGroupItem",void 0);_.A([_.F(),_.r("design:type",Object)],Og.prototype,"insetMetadata",void 0);_.A([_.F(),_.r("design:type",Object)],Og.prototype,"noBottomMarginInAds",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],Og.prototype,"isShelfItem",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.r("design:type",Boolean)],Og.prototype,"isReelItemStyleAvatarCircle",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.r("design:type",Boolean)],Og.prototype,"isLinkCardFullWidth",void 0);_.A([_.F(),_.r("design:type",Object)],Og.prototype,"force16By9ThumbnailAspectRatio",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Og.prototype,"useCompactList",void 0);_.A([_.F(),_.r("design:type",String)],Og.prototype,"sizing",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],Og.prototype,"typographyBump",void 0);_.A([_.F(),_.r("design:type",Number)],Og.prototype,"itemWidth",void 0);_.A([_.F(),_.r("design:type",Boolean)],Og.prototype,"isHomeShelf",void 0);_.A([_.F(),_.r("design:type",Boolean)],Og.prototype,"isHomeGrid",void 0);
_.A([_.F1("yt-lockup-view-model"),_.r("design:type",HTMLElement)],Og.prototype,"lockup",void 0);_.A([_.F1("ytd-rich-grid-media"),_.r("design:type",HTMLElement)],Og.prototype,"richGridMedia",void 0);_.A([_.F1("ytd-ad-slot-renderer"),_.r("design:type",HTMLElement)],Og.prototype,"adSlotRenderer",void 0);_.A([_.F({computed:"computeContainerType(useCompactList)"}),_.r("design:type",Object)],Og.prototype,"containerType",void 0);_.A([_.F(),_.r("design:type",Object)],Og.prototype,"thumbnailTargetWidth",void 0);
_.A([_.Y("showYtInteractionOnRichItem"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Og.prototype,"showYtInteractionOnRichGridMedia",null);_.A([_.Y("isSelectableFeedbackItem","richGridHoverHighlight"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Og.prototype,"showYtInteractionOnRichItem",null);_.A([_.Y("typographyBump","isHomeGrid"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Og.prototype,"richTypographyBump",null);
_.A([_.F({reflectToAttribute:!0}),_.Y("data","isShortsGrid","isCompactGrid"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Og.prototype,"richGridHoverHighlight",null);_.A([_.Y("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.r("design:type",Number),_.r("design:paramtypes",[])],Og.prototype,"shortsLockupViewModelAspectRatio",null);_.A([_.Y("isInlineGroupItem"),_.r("design:type",Number),_.r("design:paramtypes",[])],Og.prototype,"shortsLockupViewModelScrimStyle",null);
_.A([_.bN("itemWidth"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Og.prototype,"itemWidthChanged",null);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Og.prototype,"updateIsInFirstColumn",null);_.A([_.bN("containerType","sizing","typographyBump"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Og.prototype,"observerContainerType",null);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Og.prototype,"isResponsiveGrid",void 0);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Og.prototype,"lockupExperiments",null);_.A([_.bN("richGridHoverHighlight"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Og.prototype,"richGridHoverHighlightChanged",null);_.A([_.w({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],Og);
_.SZR=_.vp()(Og,"ytd-rich-item-renderer",function(){if(rnR===void 0){var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);rnR=x}x=rnR;return x},{mode:_.Vm("kevlar_poly_si_batch_j028")?1:2});var wKb={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var XKf=_.Dv(_.p6("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var Wh4={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"},AZ4={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_light_phone_600x508.webp"},$8s={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_dark_phone_600x508.webp"};var QGC;var ZM=function(){var x=_.e.apply(this,arguments)||this;x.useResponsiveGrid=!1;x.hidden=!1;x.isShowMoreHidden=!1;x.isShowLessHidden=!0;x.hasExpansionButton=!1;x.isInnerShelf=!1;x.allVideosCount=0;x.allPlaylistCount=0;x.haveSmartDownloadsCompleted=!1;x.restrictContentsOverflow=!1;x.firstShownIndex=0;x.horizontalOffset=0;x.atEnd=!0;x.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved","yt-section-reactive-dismissal":"onSectionReactiveDismissal"};
x.nextClick=function(){var L;(L=x.data)!=null&&L.contents&&(x.firstShownIndex+=x.currentElementsPerRow,x.updateHorizontalOffset(),x.updateHorizontalItemVisibility())};
x.previousClick=function(){var L;(L=x.data)!=null&&L.contents&&(x.firstShownIndex-=x.currentElementsPerRow,x.updateHorizontalOffset(),x.updateHorizontalItemVisibility())};
return x};
_.p(ZM,_.e);_.K=ZM.prototype;
_.K.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:_.$6("HTML_DIR")==="rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.K.attached=function(){this.requestElementsPerRow()};
_.K.refreshGridLayoutNew=function(){var x;if((x=this.data)!=null&&x.contents&&this.containerWidth){var L;((L=this.data.responsiveContainerConfiguration)==null?0:L.responsiveSize)?(x=_.twO(this.data.responsiveContainerConfiguration,this.containerWidth),x=_.fX(Object.assign({},x,{standardUnitMinWidth:this.standardUnitMinWidth}))):x=_.fX({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=x.typographyBump;if(this.elementsPerRow!==
x.numItems||this.gutter!==x.gutter)this.elementsPerRow=x.numItems,this.gutter=x.gutter,this.itemWidth=x.itemWidth,_.uN(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":x.gutter+"px"})}};
_.K.computeSizing=function(){if(!this.isLumiere){var x=_.kch(this.data);return x?x:this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.K.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.K.computeButton=function(x){var L=_.g(x,_.y4);x=Object.assign({},_.g(x,_.y4));return L?(x.text||(x.text={simpleText:x.tooltip}),x.style="STYLE_MONO_OUTLINE",x.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",x):L};
_.K.onRowIndexChange=function(){var x=_.A3(),L,D;((L=this.data)==null?0:L.trackingParams)&&((D=this.data)==null?void 0:D.rowIndex)!=null&&x&&_.Sm(x,_.CI(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.K.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var x,L=((x=this.getRichItemRenderers()[0])==null?void 0:x.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*L;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.K.requestElementsPerRow=function(){_.MF(this.hostElement,"yt-request-elements-per-row")};
_.K.onUpdateElementsPerRowAction=function(x,L,D,S,Q,J){if(this.containerWidth!==J&&(this.containerWidth=J,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&x&&L&&D&&S&&Q&&(this.elementsPerRow!==x||this.postsPerRow!==L||this.slimItemsPerRow!==D||this.gameCardsPerRow!==S||this.miniGameCardsPerRow!==Q)&&(this.elementsPerRow=x,this.postsPerRow=L,this.slimItemsPerRow=D,this.gameCardsPerRow=S,this.miniGameCardsPerRow=Q,this.updateItemVisibility())};
_.K.isExpandedChanged=function(){var x=this.getRichItemRenderers(),L=this.isExpanded;x.forEach(function(D){D.halfBottomMargin=L})};
_.K.isCollapsedChanged=function(){var x=this.getRichItemRenderers(),L=this.isCollapsed;x.forEach(function(D){D.noBottomMargin=L})};
_.K.getRichItemRenderers=function(){return _.jr(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.K.updateItemVisibility=function(){var x=this;if(this.data&&this.data.contents){var L=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(S,Q){var J;((J=x.data)==null?0:J.isExpanded)?(S.hidden=Q>L-1,S.ytRendererBehavior.markDirty()):S.hidden=Q>x.currentElementsPerRow-1||Q>L-1});
var D=this.data.contents.length<=this.currentElementsPerRow;this.isShowMoreHidden=!this.data.showMoreButton||D||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||D||!this.data.isExpanded||this.isTruncated;this.hasExpansionButton=!this.isShowMoreHidden||!this.isShowLessHidden}this.contents.style.visibility="visible"}};
_.K.setHeightToSingleRow=function(){var x=this.getRichItemRenderers(),L=Number.parseInt(getComputedStyle(x[0]).marginBottom,10)||0;x=x.slice(0,this.currentElementsPerRow).reduce(function(D,S){return Math.max(D,S.getBoundingClientRect().height+L)},0);
this.contents.style.height=x+"px"};
_.K.focusNextExpandedItem=function(){var x;((x=this.data)==null?0:x.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.K.focusItem=function(x,L){var D=this.getRichItemRenderers();if(D[x]&&(x=D[x].querySelector(".focus-on-expand"))){if(L){var S;(S=D[this.currentElementsPerRow])==null||S.scrollIntoView({behavior:"smooth",block:"center"})}x.focus({preventScroll:!0})}};
_.K.onDataChange=function(){var x=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var L;if((L=this.data)==null?0:L.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.So(this,function(){x.updateItemVisibility()});
var D;if((D=this.data)==null?0:D.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.uN(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),L=0;L<this.data.contents.length;L++)D=_.g(this.data.contents[L],_.af)||{},D.colIndex=L,D.rowIndex=this.data.rowIndex};
_.K.handleRerenderDownloadsData=function(){_.u("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())};
_.K.blockInlinePreview=function(x){var L=this,D;return _.I(function(S){(D=L.inlinePreviewIsEnabled)&&L.ytdReduxBehavior.dispatch(_.Ae2(!1));return S.return(new Promise(function(Q){x(function(){D&&L.ytdReduxBehavior.dispatch(_.Ae2(!0));Q()})}))})};
_.K.expandShelf=function(){var x=this;if(this.data){var L,D=(L=_.g(this.data.showMoreButton,_.y4))==null?void 0:L.trackingParams;D&&_.AM(_.sk(),D);this.set("data.isExpanded",!0);this.blockInlinePreview(function(S){x.setHeightToSingleRow();x.updateItemVisibility();x.contents.style.height=x.contents.scrollHeight+"px";_.WW.addJob(function(){x.contents.style.height="auto";x.focusNextExpandedItem();S()},2,200)})}};
_.K.collapseShelf=function(){var x=this;return _.I(function(L){if(L.nextAddress==1){if(!x.data)return L.return();x.set("data.isExpanded",!1);return L.yield(x.blockInlinePreview(function(D){x.contents.style.height=x.contents.scrollHeight+"px";x.setHeightToSingleRow();_.WW.addJob(function(){x.updateItemVisibility();x.contents.style.height="auto";D()},2,200)}),2)}_.MF(x.hostElement,"yt-rich-shelf-renderer-collapse",x.data.trackingParams);
x.focusItem(0,!1);_.Y2(L)})};
_.K.updateArrowButtonStatus=function(){this.getRichItemRenderers();var x,L;var D=((x=this.data)==null?void 0:(L=x.contents)==null?void 0:L.length)||0;this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=D};
_.K.onChildElementFocus=function(x){this.hasChevronButtons&&(x=x.target.closest("#contents > *"),this.contents.contains(x)&&(x.offsetLeft<this.horizontalOffset?this.previousClick():x.offsetLeft+x.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.K.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.$6("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.K.updateHorizontalOffset=function(){var x=this.getRichItemRenderers(),L,D;var S=((L=this.data)==null?void 0:(D=L.contents)==null?void 0:D.length)||0;var Q;x=((Q=x[0])==null?void 0:Q.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>S?this.firstShownIndex=S-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*x};
_.K.isSlimMediaShelfRenderer=function(){var x,L,D,S=(D=_.g((x=this.data)==null?void 0:(L=x.contents)==null?void 0:L[0],_.af))==null?void 0:D.content;return!!(_.g(S,_.unW)||_.g(S,HSi)||_.g(S,_.Zq)||_.g(S,AMG))};
_.K.isGameCardShelf=function(){var x,L,D,S=(D=_.g((x=this.data)==null?void 0:(L=x.contents)==null?void 0:L[0],_.af))==null?void 0:D.content;return!!_.g(S,tpB)};
_.K.isMiniGameCardShelf=function(){var x,L,D,S=(D=_.g((x=this.data)==null?void 0:(L=x.contents)==null?void 0:L[0],_.af))==null?void 0:D.content;return!!_.g(S,dc2)||!!_.g(S,P_r)};
_.K.hasGameBoxArtAvatarStyle=function(){var x;return((x=this.data)==null?void 0:x.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.K.hasRoundedGameBoxArtAvatarStyle=function(){var x;return((x=this.data)==null?void 0:x.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.K.isShortsShelf=function(){var x,L,D,S=(D=_.g((x=this.data)==null?void 0:(L=x.contents)==null?void 0:L[0],_.af))==null?void 0:D.content;return!!_.g(S,_.Zq)||!!_.g(S,AMG)};
_.K.isPostShelfRenderer=function(){var x,L,D,S=(D=_.g((x=this.data)==null?void 0:(L=x.contents)==null?void 0:L[0],_.af))==null?void 0:D.content;return!(!_.g(S,q1W)&&!_.g(S,ARd))};
_.K.isLumiereShelf=function(){var x,L,D=_.g((x=this.data)==null?void 0:(L=x.contents)==null?void 0:L[0],_.af);return!!_.g(D==null?void 0:D.content,Xcd)};
_.K.isLumiereShelfWithPosters=function(){var x,L,D=_.g((x=this.data)==null?void 0:(L=x.contents)==null?void 0:L[0],_.af),S;return((S=_.g(D==null?void 0:D.content,Xcd))==null?void 0:S.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.K.isExpandOnHoverCardShelf=function(){var x,L,D,S=(D=_.g((x=this.data)==null?void 0:(L=x.contents)==null?void 0:L[0],_.af))==null?void 0:D.content;return!!_.g(S,zSH)};
_.K.computeHasFeaturedBadge=function(){var x,L,D=_.g((x=this.data)==null?void 0:(L=x.badges)==null?void 0:L[0],_.jsC);return D?D.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.K.computeHasPaygatedFeaturedBadge=function(){var x,L,D=_.g((x=this.data)==null?void 0:(L=x.badges)==null?void 0:L[0],_.jsC);return D?(D==null?void 0:D.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.K.computeHeaderHidden=function(){var x,L,D,S,Q,J;return!((x=this.data)==null?0:x.icon)&&!((L=this.data)==null?0:L.title)&&!((D=this.data)==null?0:D.subtitle)&&!((S=this.data)==null?0:S.thumbnail)&&!((Q=this.data)==null?0:Q.badges)&&!((J=this.data)==null?0:J.menu)};
_.K.showCtaButton=function(){var x;return!((x=this.data)==null||!x.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.K.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.K.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.K.computeForce16By9ThumbnailAspectRatio=function(){var x,L;return((x=this.data)==null?void 0:(L=x.responsiveContainerConfiguration)==null?void 0:L.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.K.onSectionReactiveDismissal=function(x,L,D){var S,Q;var J=(S=this.data)==null?void 0:(Q=S.targetingContext)==null?void 0:Q.targetGroupId;this&&J&&L.targetGroupId&&J.includes(L.targetGroupId)?(S=this.rowIndex,x=S===void 0?!1:!(L.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&S<=x)):x=!1;x&&(this.hidden=D)};
_.J3.Object.defineProperties(ZM.prototype,{isExpanded:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.isExpanded)}},
isCollapsed:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null?0:x.isExpanded)}},
currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var x=this.elementsPerRow;this.isPostShelfRenderer()?x=this.postsPerRow:this.isSlimMediaShelfRenderer()?x=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?x=this.slimItemsPerRow-1:this.isGameCardShelf()?x=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(x=this.miniGameCardsPerRow);return x}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.u("kevlar_clean_feeds_show_more")&&this.isHomePage}},
showBottomDivider:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null?0:x.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var x,L;return!((x=this.data)==null||!x.previousButton)&&!((L=this.data)==null||!L.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 x;return((x=_.yY().resolve(_.KX).getCurrentPage())==null?void 0:x.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var x,L,D,S;return!((x=this.data)==null?0:(L=x.thumbnail)==null?0:(D=L.accessibility)==null?0:(S=D.accessibilityData)==null?0:S.label)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
ZM.prototype.onChildElementFocus=ZM.prototype.onChildElementFocus;ZM.prototype.handleRerenderDownloadsData=ZM.prototype.handleRerenderDownloadsData;ZM.prototype.onDataChange=ZM.prototype.onDataChange;ZM.prototype.isCollapsedChanged=ZM.prototype.isCollapsedChanged;ZM.prototype.isExpandedChanged=ZM.prototype.isExpandedChanged;ZM.prototype.onRowIndexChange=ZM.prototype.onRowIndexChange;_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],ZM.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],ZM.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.dK),_.r("design:type",Object)],ZM.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],ZM.prototype,"actionHandlerBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],ZM.prototype,"ytdReduxBehavior",void 0);
_.A([_.F({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.r("design:type",Object)],ZM.prototype,"useResponsiveGrid",void 0);_.A([_.F(),_.r("design:type",Object)],ZM.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Number)],ZM.prototype,"standardUnitMinWidth",void 0);_.A([_.F({reflectToAttribute:!0,value:3}),_.r("design:type",Number)],ZM.prototype,"elementsPerRow",void 0);_.A([_.F({value:3}),_.r("design:type",Number)],ZM.prototype,"postsPerRow",void 0);
_.A([_.F({value:6}),_.r("design:type",Number)],ZM.prototype,"slimItemsPerRow",void 0);_.A([_.F({value:6}),_.r("design:type",Number)],ZM.prototype,"gameCardsPerRow",void 0);_.A([_.F({value:6}),_.r("design:type",Number)],ZM.prototype,"miniGameCardsPerRow",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],ZM.prototype,"hidden",void 0);_.A([_.F(),_.r("design:type",Object)],ZM.prototype,"isShowMoreHidden",void 0);
_.A([_.F(),_.r("design:type",Object)],ZM.prototype,"isShowLessHidden",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],ZM.prototype,"hasExpansionButton",void 0);_.A([_.Y("data.isExpanded"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],ZM.prototype,"isExpanded",null);_.A([_.Y("data.isExpanded"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],ZM.prototype,"isCollapsed",null);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],ZM.prototype,"isInnerShelf",void 0);_.A([_.F({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.r("design:type",Boolean)],ZM.prototype,"isShorts",void 0);_.A([_.F({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.r("design:type",Boolean)],ZM.prototype,"isLumiere",void 0);_.A([_.F({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.r("design:type",Boolean)],ZM.prototype,"hasBoxArtThumbnailStyle",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.r("design:type",Boolean)],ZM.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.r("design:type",Boolean)],ZM.prototype,"hasFeaturedBadge",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.r("design:type",Boolean)],ZM.prototype,"hasPaygatedFeaturedBadge",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.r("design:type",Boolean)],ZM.prototype,"isHeaderHidden",void 0);_.A([_.F({selector:_.Yj4}),_.r("design:type",Object)],ZM.prototype,"allVideosCount",void 0);_.A([_.F({selector:nup}),_.r("design:type",Object)],ZM.prototype,"allPlaylistCount",void 0);_.A([_.F({selector:wyh}),_.r("design:type",Object)],ZM.prototype,"haveSmartDownloadsCompleted",void 0);
_.A([_.F({selectorArgs:["entitySelectorType"],selector:function(x,L){if(_.u("kevlar_modern_downloads_page")&&L&&L!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var D=x.entities;switch(L){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":L=_.wD(D);x=kc(L);var S=_.em(L);D=_.Wa(D);D=_.ya(Nvp(S,D,L.length));return{contents:x,subtitle:D};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return D=_.wD(D),{contents:kc(D)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return D=
_.Ba(D),{contents:kc(D)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return D=_.Sj0(D),{contents:kc(D)};default:_.qy(new _.RZ("Error: entitySelectorType defined but not matched in selector.",x,L))}}}}),
_.r("design:type",Object)],ZM.prototype,"entityDrivenRichShelfData",void 0);_.A([_.F({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.r("design:type",Boolean)],ZM.prototype,"hasTopCtaButton",void 0);_.A([_.F({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.r("design:type",Boolean)],ZM.prototype,"hasBottomCtaButton",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.r("design:type",Boolean)],ZM.prototype,"force16By9ThumbnailAspectRatio",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],ZM.prototype,"restrictContentsOverflow",void 0);_.A([_.F({selector:_.grn}),_.r("design:type",Boolean)],ZM.prototype,"inlinePreviewIsEnabled",void 0);_.A([_.F({computed:"computeSizing(data)"}),_.r("design:type",String)],ZM.prototype,"sizing",void 0);
_.A([_.F(),_.r("design:type",Boolean)],ZM.prototype,"typographyBump",void 0);_.A([_.F(),_.r("design:type",Number)],ZM.prototype,"itemWidth",void 0);_.A([_.F(),_.r("design:type",Object)],ZM.prototype,"firstShownIndex",void 0);_.A([_.F(),_.r("design:type",Object)],ZM.prototype,"horizontalOffset",void 0);_.A([_.F(),_.r("design:type",Object)],ZM.prototype,"atEnd",void 0);_.A([_.F1("#contents"),_.r("design:type",HTMLElement)],ZM.prototype,"contents",void 0);
_.A([_.bN("data.rowIndex"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ZM.prototype,"onRowIndexChange",null);_.A([_.bN("isExpanded"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ZM.prototype,"isExpandedChanged",null);_.A([_.bN("isCollapsed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ZM.prototype,"isCollapsedChanged",null);
_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ZM.prototype,"onDataChange",null);_.A([_.bN("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ZM.prototype,"handleRerenderDownloadsData",null);_.A([_.mX("focusin"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],ZM.prototype,"onChildElementFocus",null);
_.A([_.F({reflectToAttribute:!0}),_.Y("data","isHomePage"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],ZM.prototype,"isTruncated",null);_.A([_.F({reflectToAttribute:!0}),_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],ZM.prototype,"showBottomDivider",null);_.A([_.F({reflectToAttribute:!0}),_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],ZM.prototype,"hasChevronButtons",null);
_.A([_.Y("firstShownIndex"),_.r("design:type",Object),_.r("design:paramtypes",[])],ZM.prototype,"previousButtonOverride",null);_.A([_.Y("atEnd"),_.r("design:type",Object),_.r("design:paramtypes",[])],ZM.prototype,"nextButtonOverride",null);_.A([_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],ZM.prototype,"isHomePage",null);_.A([_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],ZM.prototype,"thumbnailAriaHidden",null);
_.A([_.Y("data"),_.r("design:type",String),_.r("design:paramtypes",[])],ZM.prototype,"entitySelectorType",null);_.A([_.w({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],ZM);
_.JUd=_.vp()(ZM,"ytd-rich-shelf-renderer",function(){if(QGC===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);QGC=x}x=QGC;return x},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.Vm("kevlar_poly_si_batch_j028")?1:2});var K7h;_.dF(_.G2,"yt-badge-view-model",{props:{data:_.pJ,class:_.pJ,workaroundShortsIsThumbnailBadge:_.pJ,modern:_.pJ,numBadgesInRow:_.pJ}});_.dF(G1_,"yt-slimline-survey-view-model",{props:{data:_.pJ}});var yh=function(){var x=_.e.apply(this,arguments)||this;x.tileLottieAnimationRef={};x.backgroundLottieAnimationRef={};x.isOnHoverBehaviorForLottieEnabled=!0;x.useBiggerShowcaseImage=_.u("enable_desktop_search_bigger_thumbs");x.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return x};
_.p(yh,_.e);_.K=yh.prototype;_.K.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.K.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},
"data.badge":{id:"badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.additionalBadge":{id:"additional-badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},
"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.K.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var x=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);x!==this.hasTile&&this.set("hasTile",x);x=this.hasLogo(this.data)||!!this.data.badgeText;x!==this.hasMetadata&&this.set("hasMetadata",x);x=this.data.overflowButton?!1:x;x!==this.showLogoImage&&this.set("showLogoImage",x);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.K.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.K.currentColorChanged=function(){this.updateButtonPalette()};
_.K.computeBackgroundStyle=function(x){if(x&&this.data){var L=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var D=_.jn((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);D&&L.push('background-image: url("'+D+'");')}var S;((S=x.basicColorData)==null?void 0:S.backgroundColor)!==void 0&&L.push("background-color: "+_.XA(x.basicColorData.backgroundColor)+";");return L.join("")}};
_.K.onDarkModeToggledAction=function(x){x!==this.isDarkTheme&&this.set("isDarkTheme",x)};
_.K.getCurrentLogo=function(x,L){if(x)return L?x.darkLogoImage:x.lightLogoImage};
_.K.getCurrentStaticTileImage=function(x,L){if(this.hasStaticTile(x))return x.darkTileImage?L?x.darkTileImage:x.tileImage:x.tileImage};
_.K.computeTitleStyle=function(x){if(this.data&&this.data.title&&x&&x.basicColorData&&x.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.zF(x.basicColorData.foregroundTitleColor)+";"};
_.K.computeSubtitleStyle=function(x){if(this.data&&this.data.subtitle&&x&&x.basicColorData&&x.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.zF(x.basicColorData.foregroundBodyColor)+";"};
_.K.computeSupplementalStyle=function(x){if(this.data&&this.data.supplementalText&&x&&x.supplementalTextColor!==void 0)return x=_.zF(x.supplementalTextColor),"color:"+x+";--yt-endpoint-color:"+x+";--yt-endpoint-hover-color:"+x+";--yt-endpoint-visited-color:"+x+";--yt-formatted-string-bold-font-weight:700;"};
_.K.computeDismissIconStyle=function(x){var L,D;if((x==null?0:(L=x.dismissButtonColorData)==null?0:L.foregroundTitleColor)&&(x==null?0:(D=x.dismissButtonColorData)==null?0:D.backgroundColor))return"--yt-button-color:"+_.XA(x.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.XA(x.dismissButtonColorData.backgroundColor)+";"};
_.K.computeOverflowIconStyle=function(x){var L,D;if((x==null?0:(L=x.dismissButtonColorData)==null?0:L.foregroundTitleColor)&&(x==null?0:(D=x.dismissButtonColorData)==null?0:D.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.XA(x.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.XA(x.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.XA(x.dismissButtonColorData.foregroundTitleColor)+";"};
_.K.computeBannerStyle=function(x){return x?x.toLowerCase().replace(/_/g,"-"):""};
_.K.computeLocation=function(x){switch(x==null?void 0:x.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.K.shouldShowTileSection=function(x,L,D){return!this.shouldExpandLogo(x,L,D)&&L};
_.K.shouldShowExpandedLogoSection=function(x,L,D){return this.shouldExpandLogo(x,L,D)&&x!==void 0&&this.hasLogo(x)};
_.K.shouldExpandLogo=function(x,L,D){return x&&L?!1:D>=2};
_.K.hasStaticTile=function(x){return!(x==null||!x.tileImage)};
_.K.hasTileLottie=function(x){var L;return!!(x==null?0:(L=x.tileLottie)==null?0:L.url)};
_.K.hasLogo=function(x){return this.getCurrentLogo(x,this.isDarkTheme)!==void 0};
_.K.getLogoHeight=function(x){return this.logoWithPadding(x)?"26":"20"};
_.K.getExpandedLogoHeight=function(x){return this.logoWithPadding(x)?"31":"24"};
_.K.getLogoImageId=function(x){return this.logoWithPadding(x)?"logo-image-with-padding":"logo-image"};
_.K.getMaxTitleFontSize=function(x){return x.overrideTitleMaxFontSize?String(x.overrideTitleMaxFontSize):"36"};
_.K.hasBackgroundLottie=function(x){var L;return!!(x==null?0:(L=x.backgroundLottie)==null?0:L.url)};
_.K.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var x,L;(x=this.tileLottieAnimationRef)==null||(L=x.lottieEl)==null||L.play();var D,S;(D=this.backgroundLottieAnimationRef)==null||(S=D.lottieEl)==null||S.play()}};
_.K.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var x,L;(x=this.tileLottieAnimationRef)==null||(L=x.lottieEl)==null||L.pause();var D,S;(D=this.backgroundLottieAnimationRef)==null||(S=D.lottieEl)==null||S.pause()}};
_.K.pauseLottie=function(){var x,L;(x=this.tileLottieAnimationRef)==null||(L=x.lottieEl)==null||L.pause();var D,S;(D=this.backgroundLottieAnimationRef)==null||(S=D.lottieEl)==null||S.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.K.performPrimaryButtonAction=function(){var x,L,D;((x=this.data)==null?0:(L=x.primaryButton)==null?0:(D=L.buttonRenderer)==null?0:D.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.K.requestElementsPerRow=function(){_.MF(this.hostElement,"yt-request-elements-per-row")};
_.K.updateButtonPalette=function(){if(this.data&&this.currentColorData){var x;((x=this.data.dismissButton)==null?0:x.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 L;if((L=this.data.primaryButton)==null?0:L.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 D;if((D=this.data.secondaryButton)==
null?0:D.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 S;((S=this.data.primaryButton)==null?0:S.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var Q;((Q=this.data.secondaryButton)==null?0:Q.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)});var J;((J=this.data.primaryButton)==null?0:J.buttonViewModel)&&this.set("primaryButton",{buttonViewModel:Object.assign({},
this.data.primaryButton.buttonViewModel)})}};
_.K.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var x=this.getTileLottieDataBasedOnTheme(),L,D;if(x.url!==((L=this.tileLottiePlayerProps)==null?void 0:(D=L.animationConfig)==null?void 0:D.path)){var S,Q;(S=this.tileLottieAnimationRef)==null||(Q=S.lottieEl)==null||Q.destroy();var J;this.isOnHoverBehaviorForLottieEnabled=!((J=x.settings)==null?0:J.autoplay);var Z,y;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(y=(Z=x.settings)==null?void 0:Z.autoplay)!=null?y:!1,loop:this.getLottieLoopValue(x.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof x.url==="string"?this.tileLottiePlayerProps.animationConfig.path=x.url:this.tileLottiePlayerProps.animationConfig.animationData=x.url}}};
_.K.getOverflowButton=function(x){return _.g(x.overflowButton,fqR)};
_.K.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var x=this.getBackgroundLottieDataBasedOnTheme(),L,D;if(x.url!==((L=this.backgroundLottiePlayerProps)==null?void 0:(D=L.animationConfig)==null?void 0:D.path)){var S,Q;(S=this.backgroundLottieAnimationRef)==null||(Q=S.lottieEl)==null||Q.destroy();var J;this.isOnHoverBehaviorForLottieEnabled=!((J=x.settings)==null?0:J.autoplay);var Z,y;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(y=(Z=x.settings)==null?void 0:Z.autoplay)!=null?y:!1,loop:this.getLottieLoopValue(x.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof x.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=x.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
x.url}}};
_.K.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var x;((x=this.tileLottieAnimationRef)==null?void 0:x.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var L;((L=this.backgroundLottieAnimationRef)==null?void 0:L.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.K.getTileLottieDataBasedOnTheme=function(){var x;if(this.isDarkTheme&&((x=this.data)==null?0:x.darkThemeTileLottie))return this.data.darkThemeTileLottie;var L;return((L=this.data)==null?0:L.tileLottie)?this.data.tileLottie:{}};
_.K.getBackgroundLottieDataBasedOnTheme=function(){var x;if(this.isDarkTheme&&((x=this.data)==null?0:x.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var L;return((L=this.data)==null?0:L.backgroundLottie)?this.data.backgroundLottie:{}};
_.K.onUpdateElementsPerRowAction=function(x){x&&this.elementsPerRow!==x&&(this.elementsPerRow=x)};
_.K.getLottieLoopValue=function(x){return x?x.loop!==void 0?x.loop:x.loopCount?x.loopCount-1:!0:!0};
_.K.logoWithPadding=function(x){var L,D,S;return(x=(L=this.getCurrentLogo(x,this.isDarkTheme))==null?void 0:(D=L.thumbnails)==null?void 0:(S=D[0])==null?void 0:S.height)&&x%31===0?!0:!1};
yh.prototype.currentColorChanged=yh.prototype.currentColorChanged;yh.prototype.themeChanged=yh.prototype.themeChanged;yh.prototype.dataChanged=yh.prototype.dataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],yh.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],yh.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.dK),_.r("design:type",Object)],yh.prototype,"ytdDismissibleItemBehavior",void 0);
_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],yh.prototype,"actionHandlerBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],yh.prototype,"ytComponentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],yh.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],yh.prototype,"primaryButton",void 0);_.A([_.F(),_.r("design:type",Object)],yh.prototype,"secondaryButton",void 0);
_.A([_.F({reflectToAttribute:!0,value:3}),_.r("design:type",Number)],yh.prototype,"elementsPerRow",void 0);_.A([_.F({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],yh.prototype,"isDarkTheme",void 0);_.A([_.F({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],yh.prototype,"hasTile",void 0);_.A([_.F({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],yh.prototype,"hasMetadata",void 0);
_.A([_.F({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],yh.prototype,"showLogoImage",void 0);_.A([_.F(),_.r("design:type",Object)],yh.prototype,"currentColorData",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.r("design:type",String)],yh.prototype,"bannerStyle",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.r("design:type",String)],yh.prototype,"location",void 0);
_.A([_.F(),_.r("design:type",Object)],yh.prototype,"tileLottiePlayerProps",void 0);_.A([_.F(),_.r("design:type",Object)],yh.prototype,"tileLottieAnimationRef",void 0);_.A([_.F(),_.r("design:type",Object)],yh.prototype,"backgroundLottiePlayerProps",void 0);_.A([_.F(),_.r("design:type",Object)],yh.prototype,"backgroundLottieAnimationRef",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],yh.prototype,"useBiggerShowcaseImage",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],yh.prototype,"isHideEnclosingAction",void 0);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],yh.prototype,"dataChanged",null);_.A([_.GV("isDarkTheme"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],yh.prototype,"themeChanged",null);
_.A([_.GV("currentColorData"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],yh.prototype,"currentColorChanged",null);_.A([_.w({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],yh);
_.q(yh,"ytd-statement-banner-renderer",function(){if(K7h!==void 0)return K7h;var x=document.createElement("template");_.m(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-statement-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-mouseleave="maybePauseLottie" on-mouseover="maybePlayLottie" class="style-scope ytd-statement-banner-renderer">\n  <div id="statement-banner-content" class="style-scope ytd-statement-banner-renderer">\n    <div id="background-content" style$="[[computeBackgroundStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n      <ytd-lottie-player id="background-lottie" data="[[backgroundLottiePlayerProps]]" hidden="[[!hasBackgroundLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n    </ytd-lottie-player></div>\n    <div id="foreground-content" class="style-scope ytd-statement-banner-renderer">\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowTileSection(data, hasTile, elementsPerRow)]]">\n        <div hidden="[[!hasTile]]" id="tile-container" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="tile-image" hidden="[[!hasStaticTile(data)]]" object-fit="CONTAIN" thumbnail="[[getCurrentStaticTileImage(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n          <ytd-lottie-player id="tile-lottie" data="[[tileLottiePlayerProps]]" hidden="[[!hasTileLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n        </ytd-lottie-player></div>\n      </div>\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowExpandedLogoSection(data, hasTile, elementsPerRow)]]" id="logo-container">\n        <div id="logo-wrapper" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="logo-image" height="[[getExpandedLogoHeight(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div id="details-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="text-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n            <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="[[getMaxTitleFontSize(data)]]" max-height="110" max-lines="2" min-font-size="20" text="[[data.title]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-dynamic-sizing-formatted-string>\n            <div id="new-badge-container" hidden="[[data.badge]]" style$="[[computeTitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n              <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n            </div>\n            <div id="badge-view-model-container" class="style-scope ytd-statement-banner-renderer">\n              <div id="additional-badge-view-model" hidden="[[!data.additionalBadge]]" class="style-scope ytd-statement-banner-renderer"></div>\n              <div id="badge-view-model" hidden="[[!data.badge]]" class="style-scope ytd-statement-banner-renderer"></div>\n            </div>\n          </div>\n          <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n          <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-formatted-string>\n          </div>\n        </div>\n        <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n            <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n            <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          </div>\n        </div>\n      </div>\n      <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n      <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    </div>\n  </div>\n  <div id="attached-survey" class="style-scope ytd-statement-banner-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return K7h=x},{mode:1});var Oeh;var Iv=function(){var x=_.e.apply(this,arguments)||this;x.isSearch=!1;x.hideShelfHeader=!1;x.engagementPanel=!1;x.disableMouseScroll=!0;x.useFloorScrolling=!0;return x};
_.p(Iv,_.e);Iv.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.p6("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.p6("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
Iv.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Iv.prototype.onDataChanged=Iv.prototype.onDataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Iv.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Iv.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Iv.prototype,"isSearch",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Iv.prototype,"hideShelfHeader",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Iv.prototype,"engagementPanel",void 0);_.A([_.F(),_.r("design:type",Object)],Iv.prototype,"disableMouseScroll",void 0);_.A([_.F(),_.r("design:type",Object)],Iv.prototype,"useFloorScrolling",void 0);_.A([_.F(),_.r("design:type",Object)],Iv.prototype,"data",void 0);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Iv.prototype,"onDataChanged",null);
_.A([_.w({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],Iv);
_.q(Iv,"ytd-reel-shelf-renderer",function(){if(Oeh!==void 0)return Oeh;var x=document.createElement("template");_.m(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-reel-shelf-renderer">\n  <h2 class="style-scope ytd-reel-shelf-renderer">\n    <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-reel-shelf-renderer">\n    </yt-icon>\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-reel-shelf-renderer"> </yt-formatted-string>\n    <span id="title-superscript" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.titleSuperscript)]]</span>\n  </h2>\n  <div 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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Oeh=x},{mode:_.Vm("kevlar_poly_si_batch_j028")?1:2});var ZeR;var yUB;yUB=_.xI(["https://www.google.com/recaptcha/api.js?trustedtypes=true"]);_.IrB=_.Pn(yUB);var EWC=_.B(function(x){var L=x.data;x=x.useSmallFont;var D={},S={};return _.M("yt-channel-external-link-view-model",{class:"ytChannelExternalLinkViewModelHost"},_.M(_.d,{cond:function(){return L().favicon},
then:function(Q){return _.M(_.Ku,{data:Q,className:"ytChannelExternalLinkViewModelFavicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.M("div",{class:"ytChannelExternalLinkViewModelContainer"},_.M(_.kP,{text:function(){return L().title},
className:_.gF("ytChannelExternalLinkViewModelTitle",(D.ytChannelExternalLinkViewModelTitleSmallFont=x,D)),ellipsisTruncate:!0,userInput:!0}),_.M(_.kP,{text:function(){return L().link},
className:_.gF("ytChannelExternalLinkViewModelLink",(S.ytChannelExternalLinkViewModelLinkSmallFont=x,S)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"Oc");
EWC.idomCompat=!0;_.dF(EWC,"yt-channel-external-link-view-model",{props:{data:_.pJ,useSmallFont:_.pJ}});_.BD("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var Eg=function(){var x=_.e.apply(this,arguments)||this;x.revealButtonClass="button";x.businessEmailDisplayState="HIDE_SECTION";return x};
_.p(Eg,_.e);_.K=Eg.prototype;_.K.refit=function(){var x=this;_.xi(function(){_.P$(x.hostElement,"yt-refit-popups-action")});
_.So(this,function(){_.P$(x.hostElement,"yt-refit-popups-action")})};
_.K.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.ac(_.IrB),this.businessEmailDisplayState="CAPTCHA")};
_.K.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"};
_.K.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.K.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"}}}};
_.K.computeEmailHref=function(x){return"mailto:"+x};
_.K.computeSafeUrl=function(x){if(x)return _.$z(x)};
_.K.linkEndpoint=function(x){return _.g(x.onTap,_.ii)};
_.K.linkEndpointToHref=function(x){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(x))};
_.K.onYtServiceRequestCompleted=function(x){var L;if((L=x.detail.data)==null?0:L.businessEmail)this.businessEmail=x.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var D;if((D=x.detail.data)==null?0:D.errorMessage)this.businessEmailErrorMessage=x.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.K.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var x=this.JSC$16274_captchaTextarea.value;if(x){x={recaptcha_response_token:x,channel_id:this.metadata.channelId};var L=_.g(this.metadata.onBusinessEmailRevealClickCommand,_.ii);L&&this.ytComponentBehavior.resolveCommand(L,{form:x})}}};
_.K.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.J3.Object.defineProperties(Eg.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var x;return _.g((x=this.data)==null?void 0:x.metadata,xo_)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.g(this.metadata.businessEmailRevealButton,_.de)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var x=new URL(this.metadata.canonicalChannelUrl);return x.host+x.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 _.g(this.metadata.learnMoreOnTap,_.ii)}}});
Eg.prototype.onYtServiceRequestCompleted=Eg.prototype.onYtServiceRequestCompleted;Eg.prototype.businessEmailMetadataChanged=Eg.prototype.businessEmailMetadataChanged;Eg.prototype.refit=Eg.prototype.refit;_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],Eg.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Eg.prototype,"ytRendererBehavior",void 0);
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Eg.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F1("#g-recaptcha-response"),_.r("design:type",HTMLTextAreaElement)],Eg.prototype,"JSC$16274_captchaTextarea",void 0);_.A([_.F(),_.r("design:type",Object)],Eg.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],Eg.prototype,"revealButtonClass",void 0);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Eg.prototype,"metadata",null);
_.A([_.Y("metadata"),_.r("design:type",Object),_.r("design:paramtypes",[])],Eg.prototype,"revealButton",null);_.A([_.Y("metadata"),_.r("design:type",Object),_.r("design:paramtypes",[])],Eg.prototype,"channelDisplayUrl",null);_.A([_.GV("metadata"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Eg.prototype,"refit",null);_.A([_.Y("metadata"),_.r("design:type",Object),_.r("design:paramtypes",[])],Eg.prototype,"formattedDescription",null);
_.A([_.Y("metadata","learnMoreCommand"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Eg.prototype,"shouldRendereVerifiedPhoneStatus",null);_.A([_.Y("metadata"),_.r("design:type",Object),_.r("design:paramtypes",[])],Eg.prototype,"learnMoreCommand",null);_.A([_.F(),_.r("design:type",String)],Eg.prototype,"businessEmailDisplayState",void 0);_.A([_.F(),_.r("design:type",String)],Eg.prototype,"businessEmail",void 0);
_.A([_.F(),_.r("design:type",String)],Eg.prototype,"businessEmailErrorMessage",void 0);_.A([_.GV("metadata"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Eg.prototype,"businessEmailMetadataChanged",null);_.A([_.mX("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Eg.prototype,"onYtServiceRequestCompleted",null);_.A([_.w({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],Eg);
_.q(Eg,"ytd-about-channel-renderer",function(){if(ZeR!==void 0)return ZeR;var x=document.createElement("template");_.m(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-about-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="about-container" class="style-scope ytd-about-channel-renderer">\n  <div id="header-row" hidden="[[!metadata.aboutPanelTitle]]" class="style-scope ytd-about-channel-renderer">\n    <h1 class="style-scope ytd-about-channel-renderer">[[metadata.aboutPanelTitle]]</h1>\n    <div id="dismiss-button" class="style-scope ytd-about-channel-renderer"></div>\n  </div>\n\n  <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.descriptionLabel]]" hidden$="[[!formattedDescription]]">\n  </yt-attributed-string>\n  <yt-attributed-string id="description-container" class="about-section style-scope ytd-about-channel-renderer" data="[[formattedDescription]]" hidden$="[[!formattedDescription]]" user-input="true">\n  </yt-attributed-string>\n\n  <div id="bio-container" class="about-section style-scope ytd-about-channel-renderer" hidden="[[!metadata.formattedBio]]">\n    <h2 class="subheadline style-scope ytd-about-channel-renderer">[[metadata.artistBioLabel]]</h2>\n    <yt-attributed-string id="bio-container" class="about-section style-scope ytd-about-channel-renderer" data="[[metadata.artistBio]]" hidden$="[[!metadata.artistBio]]" user-input="true">\n    </yt-attributed-string>\n    <p class="style-scope ytd-about-channel-renderer">[[metadata.artistBio]]</p>\n  </div>\n\n  <div id="links-section" hidden="[[!metadata.links]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <div id="link-list-container" class="style-scope ytd-about-channel-renderer">\n    </div>\n  </div>\n  <div id="custom-links-section" hidden="[[!metadata.customLinks]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <table id="links-container" class="about-section style-scope ytd-about-channel-renderer">\n      <template is="dom-repeat" items="[[metadata.customLinks]]" as="link" class="style-scope ytd-about-channel-renderer">\n        <tr hidden="[[!linkEndpointToHref(link)]]" class="style-scope ytd-about-channel-renderer">\n          <td class="image-container style-scope ytd-about-channel-renderer">\n            <yt-image data="[[link.favicon]]" width="32" class="style-scope ytd-about-channel-renderer"></yt-image>\n          </td>\n          <td class="href-container style-scope ytd-about-channel-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[linkEndpointToHref(link)]]" data="[[linkEndpoint(link)]]">[[link.label]]</a>\n          </td>\n        </tr>\n      </template>\n    </table>\n  </div>\n\n  <div id="additional-info-container" class="about-section style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.additionalInfoLabel]]"></yt-attributed-string>\n    <table class="style-scope ytd-about-channel-renderer">\n      <tbody class="style-scope ytd-about-channel-renderer"><tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[equals(businessEmailDisplayState, \'HIDE_SECTION\')]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="mail" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'SIGN_IN_REQUIRED\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.signInForBusinessEmail]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n\n        <td id="view-email-button-container" hidden="[[!equals(businessEmailDisplayState, \'REVEAL_BUTTON\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-button-view-model classes="[[revealButtonClass]]" data="[[revealButton]]" scoping-class-name="[[is]]" on-click="onBusinessEmailClick" class="style-scope ytd-about-channel-renderer">\n          </yt-button-view-model>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'CAPTCHA\')]]" class="style-scope ytd-about-channel-renderer">\n          \n          <div id="recaptcha" class="g-recaptcha style-scope ytd-about-channel-renderer" data-sitekey$="[[recaptchaSiteKey()]]"></div>\n          <button id="submit-btn" class="yt-uix-button yt-uix-button-size-default yt-uix-button-primary style-scope ytd-about-channel-renderer" on-click="onBusinessEmailCaptchaSubmit">\n            <span class="yt-uix-button-content style-scope ytd-about-channel-renderer">[[metadata.businessEmailSubmitCaptchaLabel]] </span>\n          </button>\n        </td>\n        <td hidden="[[!equals(businessEmailDisplayState, \'ERROR_MESSAGE\')]]" class="style-scope ytd-about-channel-renderer">\n          [[businessEmailErrorMessage]]\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'BUSINESS_EMAIL\')]]" class="style-scope ytd-about-channel-renderer">\n          <a id="email" class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[computeEmailHref(businessEmail)]]" target="_blank">[[businessEmail]]</a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!shouldRendereVerifiedPhoneStatus]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="phone" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <span class="style-scope ytd-about-channel-renderer">[[metadata.phoneVerifiedLabel]]</span>\n          <a class="yt-simple-endpoint phone-status-info style-scope ytd-about-channel-renderer" href$="[[computeHref_(learnMoreCommand)]]" target="_blank">\n            <yt-icon icon="info" class="style-scope ytd-about-channel-renderer"></yt-icon>\n          </a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!channelDisplayUrl]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="language" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[metadata.canonicalChannelUrl]]">[[channelDisplayUrl]]</a>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.country]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.country]]" icon="privacy_public" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.country]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.joinedDateText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.joinedDateText]]" icon="info_outline" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.joinedDateText]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.subscriberCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="person_radar" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.subscriberCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.videoCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.videoCountText]]" icon="my_videos" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.videoCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.viewCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.viewCountText]]" icon="trending_up" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.viewCountText]]</td>\n      </tr>\n    </tbody></table>\n  </div>\n\n  <div id="button-container" class="style-scope ytd-about-channel-renderer">\n    <div id="share-channel" class="button style-scope ytd-about-channel-renderer"></div>\n    <div id="flagging-button" class="button style-scope ytd-about-channel-renderer"></div>\n  </div>\n</div>\n');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return ZeR=x},{mode:1});var M6W;var MZ=function(){return _.e.apply(this,arguments)||this};
_.p(MZ,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],MZ.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],MZ.prototype,"data",void 0);_.A([_.w({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],MZ);
_.q(MZ,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(M6W!==void 0)return M6W;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return M6W=x},{mode:1});var dn_;var dS=function(){return _.e.apply(this,arguments)||this};
_.p(dS,_.e);dS.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],dS.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],dS.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",String)],dS.prototype,"aligment",void 0);_.A([_.w({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],dS);
_.q(dS,"ytd-channel-list-sub-menu-renderer",function(){if(dn_!==void 0)return dn_;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return dn_=
x},{mode:1});var PwG;var PU=function(){return _.e.apply(this,arguments)||this};
_.p(PU,_.e);PU.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}}}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],PU.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],PU.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],PU.prototype,"data",void 0);_.A([_.w({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],PU);
_.q(PU,"ytd-channel-sub-menu-renderer",function(){if(PwG!==void 0)return PwG;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return PwG=x},{mode:1});var jGC;var vWh;var jb=function(){var x=_.e.apply(this,arguments)||this;x.isCompact=!1;return x};
_.p(jb,_.e);_.J3.Object.defineProperties(jb.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var x,L;return((L=_.g((x=this.data)==null?void 0:x.endpoint,_.oR))==null?void 0:L.target)==="TARGET_NEW_WINDOW"}}});
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],jb.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],jb.prototype,"componentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],jb.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],jb.prototype,"isCompact",void 0);_.A([_.Y("isCompact"),_.r("design:type",Number),_.r("design:paramtypes",[])],jb.prototype,"thumbnailWidth",null);
_.A([_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],jb.prototype,"openNewWindow",null);_.A([_.w({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],jb);
_.q(jb,"ytd-media-lockup-renderer",function(){if(vWh!==void 0)return vWh;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return vWh=x},{mode:1});var V6A;var vU=function(){return _.e.apply(this,arguments)||this};
_.p(vU,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],vU.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],vU.prototype,"componentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],vU.prototype,"data",void 0);_.A([_.w({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],vU);
_.q(vU,"ytd-structured-description-channel-lockup-renderer",function(){if(V6A!==void 0)return V6A;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return V6A=x},{mode:1});var hVi;var Vh=function(){var x=_.e.apply(this,arguments)||this;x.isCompact=!1;x.collections=_.u("web_modern_collections_v2");x.collectionsStackColor=_.u("modernize_structured_description_playlist_lockups_v2");return x};
_.p(Vh,_.e);Vh.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:_.u("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.J3.Object.defineProperties(Vh.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var x,L,D,S,Q,J;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(x=this.data)==null?void 0:(L=x.thumbnail)==null?void 0:L.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(D=this.data)==null?void 0:(S=D.thumbnail)==null?void 0:S.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(Q=this.data)==null?void 0:(J=Q.thumbnail)==
null?void 0:J.vibrantColorPalette:void 0}}}});
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Vh.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],Vh.prototype,"componentBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Vh.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Vh.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],Vh.prototype,"showSidePanelThumbnailOverlay",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Vh.prototype,"isCompact",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],Vh.prototype,"collections",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Vh.prototype,"collectionsStackColor",void 0);_.A([_.Y("data"),_.F({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Vh.prototype,"twoLineTitle",null);
_.A([_.Y("data","collections","collectionsStackColor"),_.r("design:type",Object),_.r("design:paramtypes",[])],Vh.prototype,"collectionStack",null);_.A([_.w({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],Vh);
_.q(Vh,"ytd-structured-description-playlist-lockup-renderer",function(){if(hVi!==void 0)return hVi;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return hVi=x},{mode:1});var HeW;var hN=function(){return _.e.apply(this,arguments)||this};
_.p(hN,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],hN.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],hN.prototype,"componentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],hN.prototype,"data",void 0);_.A([_.w({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],hN);
_.q(hN,"ytd-structured-description-video-lockup-renderer",function(){if(HeW!==void 0)return HeW;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return HeW=x},{mode:2});var HU=function(){return _.e.apply(this,arguments)||this};
_.p(HU,_.e);
HU.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}}}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],HU.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],HU.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],HU.prototype,"data",void 0);_.A([_.w({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],HU);
_.q(HU,"ytd-compact-infocard-renderer",function(){if(jGC!==void 0)return jGC;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return jGC=x},{mode:1});var uLH;var uC=function(){var x=_.e.apply(this,arguments)||this;x.useModernCollectionsV2=_.u("web_modern_collections_v2");return x};
_.p(uC,_.e);uC.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.J3.Object.defineProperties(uC.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.u("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.u("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.u("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],uC.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],uC.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.dK),_.r("design:type",Object)],uC.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],uC.prototype,"ytdReduxBehavior",void 0);_.A([_.F({selector:_.Nj}),_.r("design:type",Object)],uC.prototype,"isGridViewEnabled",void 0);
_.A([_.Y("isGridViewEnabled"),_.F({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],uC.prototype,"watchFeedBigThumbs",null);_.A([_.Y("isGridViewEnabled","data"),_.F({reflectToAttribute:!0,value:"168"}),_.r("design:type",String),_.r("design:paramtypes",[])],uC.prototype,"thumbnailWidth",null);_.A([_.Y("isGridViewEnabled","data"),_.F({reflectToAttribute:!0,value:"94"}),_.r("design:type",String),_.r("design:paramtypes",[])],uC.prototype,"customThumbnailSize",null);
_.A([_.F(),_.r("design:type",Object)],uC.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],uC.prototype,"useModernCollectionsV2",void 0);_.A([_.w({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],uC);
_.q(uC,"ytd-compact-playlist-renderer",function(){if(uLH!==void 0)return uLH;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return uLH=x},{mode:1});var gW2;var gS=function(){var x=_.e.apply(this,arguments)||this;x.darkerDarkTheme=_.u("web_darker_dark_theme");x.roundedContainer=!0;x.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return x};
_.p(gS,_.e);_.K=gS.prototype;_.K.attached=function(){this.requestElementsPerRow()};
_.K.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"}}}};
_.K.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.K.computeViewStyle=function(x){return x.style?x.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.K.onUpdateElementsPerRowAction=function(x){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&x===1};
_.K.requestElementsPerRow=function(){_.MF(this.hostElement,"yt-request-elements-per-row")};
gS.prototype.dataChanged=gS.prototype.dataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],gS.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],gS.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.dK),_.r("design:type",Object)],gS.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],gS.prototype,"actionHandlerBehavior",void 0);
_.A([_.F(),_.r("design:type",Object)],gS.prototype,"data",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],gS.prototype,"hideThumbnail",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.r("design:type",String)],gS.prototype,"viewStyle",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],gS.prototype,"darkerDarkTheme",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],gS.prototype,"roundedContainer",void 0);
_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],gS.prototype,"dataChanged",null);_.A([_.w({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],gS);
_.q(gS,"ytd-compact-promoted-item-renderer",function(){if(gW2!==void 0)return gW2;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return gW2=x},{mode:1});var kqd;var k$=function(){var x=_.e.apply(this,arguments)||this;x.collections=_.u("web_modern_collections_v2");return x};
_.p(k$,_.e);k$.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
k$.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
k$.prototype.onYtNavigate=function(x,L){var D=this;if(L.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",L)){var S=this.get("watchEndpoint.videoId",L.endpoint),Q=_.P$(this.hostElement,"yt-get-current-video-id-action")[0];_.u("kevlar_mix_handle_first_endpoint_different")&&S&&Q&&S!==Q||(x.stopPropagation(),_.yC().getPlayerPromise().then(function(J){if(J.getPlayerState()===0&&D.data.secondaryNavigationEndpoint)var Z=D.data.secondaryNavigationEndpoint;else{Z=
Object.assign({},L.endpoint);var y=_.g(Z.commandMetadata,_.gg);y&&(J=Math.floor(J.getCurrentTime()),y.url=_.DN(y.url,{t:J}),!_.u("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(y=_.g(Z,_.L6)))&&(y.startTimeSeconds=J)}_.MF(D.hostElement,"yt-navigate",{endpoint:Z})}))}};
_.J3.Object.defineProperties(k$.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.u("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.u("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var x,L,D,S,Q,J;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(x=this.data)==null?void 0:(L=x.thumbnail)==null?void 0:L.sampledThumbnailColor,vibrantColorPalette:(D=this.data)==null?void 0:(S=D.thumbnail)==null?void 0:S.vibrantColorPalette,darkColorPalette:(Q=this.data)==null?void 0:(J=Q.thumbnail)==null?void 0:J.darkColorPalette,experimentEnabled:this.collections}}}});
k$.prototype.onYtNavigate=k$.prototype.onYtNavigate;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],k$.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.NP.YtEndpointBehavior),_.r("design:type",Object)],k$.prototype,"ytEndpointBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],k$.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.dK),_.r("design:type",Object)],k$.prototype,"ytdDismissibleItemBehavior",void 0);
_.A([_.b(_.uM),_.r("design:type",Object)],k$.prototype,"ytdLockupBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],k$.prototype,"ytdReduxBehavior",void 0);_.A([_.F({selector:_.Nj}),_.r("design:type",Object)],k$.prototype,"isGridViewEnabled",void 0);_.A([_.Y("isGridViewEnabled"),_.F({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],k$.prototype,"watchFeedBigThumbs",null);
_.A([_.Y("isGridViewEnabled"),_.F({reflectToAttribute:!0}),_.r("design:type",String),_.r("design:paramtypes",[])],k$.prototype,"thumbnailWidth",null);_.A([_.F(),_.r("design:type",Object)],k$.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],k$.prototype,"collections",void 0);_.A([_.Y("data","collections"),_.r("design:type",Object),_.r("design:paramtypes",[])],k$.prototype,"collectionStack",null);
_.A([_.mX("yt-navigate"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],k$.prototype,"onYtNavigate",null);_.A([_.w({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],k$);
_.q(k$,"ytd-compact-radio-renderer",function(){if(kqd!==void 0)return kqd;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return kqd=x},{mode:1});var pLQ;var p4=function(){return _.e.apply(this,arguments)||this};
_.p(p4,_.e);p4.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
p4.prototype.computeRendererStyle=function(x){return x.style?x.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.A([_.F(),_.r("design:type",Object)],p4.prototype,"data",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],p4.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],p4.prototype,"rendererBehavior",void 0);_.A([_.F({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.r("design:type",String)],p4.prototype,"rendererStyle",void 0);_.A([_.w({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],p4);
_.q(p4,"ytd-compact-text-promo-renderer",function(){if(pLQ!==void 0)return pLQ;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return pLQ=x},{mode:1});var mn2;var mn=function(){var x=_.e.apply(this,arguments)||this;x.isShortsStyle=!1;return x};
_.p(mn,_.e);_.K=mn.prototype;_.K.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"}}}};
_.K.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.MF(this.hostElement,"yt-disable-lockup-interaction"):_.MF(this.hostElement,"yt-enable-lockup-interaction"))};
_.K.isMetaBlockEmpty=function(x){return!x||!x.longBylineText&&!x.shortBylineText&&!x.shortViewCountText&&!x.viewCountText};
_.K.computeHasOneLineTitle=function(x){return this.forceOneLineTitle||!(x==null||!x.buttons)};
_.K.computeDisableInteraction=function(){var x;return!((x=this.data)==null?0:x.navigationEndpoint)};
_.K.hasSingularTopStandaloneBadge=function(){var x;return!((x=this.data)==null||!x.topStandaloneBadge)};
_.J3.Object.defineProperties(mn.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.u("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.u("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 x;return this.hasSingularTopStandaloneBadge()?[(x=this.data)==null?void 0:x.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var x;return this.shouldShowTopBadges?((x=this.data)==null?void 0:x.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
mn.prototype.disableInteractionChanged=mn.prototype.disableInteractionChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],mn.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],mn.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.dK),_.r("design:type",Object)],mn.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.b(_.uM),_.r("design:type",Object)],mn.prototype,"ytdLockupBehavior",void 0);
_.A([_.b(_.EG),_.r("design:type",Object)],mn.prototype,"ytdReduxBehavior",void 0);_.A([_.F({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.r("design:type",Boolean)],mn.prototype,"metaBlockEmpty",void 0);_.A([_.F({selector:_.Nj}),_.r("design:type",Object)],mn.prototype,"isGridViewEnabled",void 0);_.A([_.Y("isGridViewEnabled"),_.F({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],mn.prototype,"watchFeedBigThumbs",null);
_.A([_.Y("isGridViewEnabled"),_.F({reflectToAttribute:!0}),_.r("design:type",String),_.r("design:paramtypes",[])],mn.prototype,"thumbnailWidth",null);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],mn.prototype,"isShortsStyle",void 0);_.A([_.F(),_.r("design:type",Object)],mn.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.r("design:type",Boolean)],mn.prototype,"hasOneLineTitle",void 0);
_.A([_.F(),_.r("design:type",Boolean)],mn.prototype,"hideThumbnail",void 0);_.A([_.F(),_.r("design:type",Boolean)],mn.prototype,"forceOneLineTitle",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.r("design:type",Boolean)],mn.prototype,"disableInteraction",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],mn.prototype,"musicMetadataVideoLockup",void 0);
_.A([_.bN("disableInteraction"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],mn.prototype,"disableInteractionChanged",null);_.A([_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],mn.prototype,"shouldShowTopBadges",null);_.A([_.Y("data"),_.r("design:type",Array),_.r("design:paramtypes",[])],mn.prototype,"topBadges",null);
_.A([_.Y("shouldShowTopBadges","data"),_.r("design:type",Array),_.r("design:paramtypes",[])],mn.prototype,"inlineMetadataBadges",null);_.A([_.Y("shouldShowTopBadges"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],mn.prototype,"shouldShowBadgesBelowMetadata",null);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],mn.prototype,"compactTitleClass",null);_.A([_.w({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],mn);
_.q(mn,"ytd-compact-video-renderer",function(){if(mn2!==void 0)return mn2;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return mn2=x},{mode:_.Vm("kevlar_poly_si_batch_j067")?1:2});var beA;_.BD("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var bC=function(){return _.e.apply(this,arguments)||this};
_.p(bC,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],bC.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],bC.prototype,"data",void 0);_.A([_.w({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],bC);
_.q(bC,"ytd-counterfactual-renderer",function(){if(beA!==void 0)return beA;var x=document.createElement("template");_.m(x,"\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");x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return beA=x},{mode:1});var YZh;var Y$=function(){var x=_.e.apply(this,arguments)||this;x.hidden=!1;return x};
_.p(Y$,_.e);Y$.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.yY().resolve(_.E2).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
Y$.prototype.computeHidden=function(x){return!!x};
_.J3.Object.defineProperties(Y$.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}}});
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Y$.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Y$.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.r("design:type",Object)],Y$.prototype,"hidden",void 0);_.A([_.Y("data.label"),_.r("design:type",String),_.r("design:paramtypes",[])],Y$.prototype,"label",null);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Y$.prototype,"value",null);
_.A([_.w({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],Y$);
_.q(Y$,"ytd-dropdown-item-renderer",function(){if(YZh!==void 0)return YZh;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return YZh=x},{mode:1});var F7h;var sGr;var F7=function(){return _.e.apply(this,arguments)||this};
_.p(F7,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],F7.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],F7.prototype,"data",void 0);_.A([_.F({computed:"getSimpleString(data.label)"}),_.r("design:type",String)],F7.prototype,"label",void 0);_.A([_.w({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],F7);
_.q(F7,"ytd-navigation-dropdown-item-renderer",function(){if(sGr!==void 0)return sGr;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return sGr=x},{mode:1});var sg=function(){var x=_.e.apply(this,arguments)||this;x.disabled=!1;x.value="";x.noLabelFloat=!1;x.noUnderline=!1;x.usePrimaryColor=!1;x.hasBackground=!1;x.verticalAlign="top";x.autosize=!1;x.minAutosizeWidth=100;x.autosizeFont="14px Roboto";return x};
_.p(sg,_.e);_.K=sg.prototype;_.K.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"}}}};
_.K.open=function(){this.inputEl.open()};
_.K.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.K.dataChanged=function(){this.reset()};
_.K.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.gU("value-changed",this.value))};
_.K.stopPropagation=function(x){x.stopPropagation()};
_.K.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var x=this.canvas.getContext("2d");x&&(x.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(x.measureText(this.inputEl.value).width)+24)+"px")}};
_.K.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var x=0,L=this.data.entries.length;x<L;x++){var D=this.data.entries[x],S;for(S in D)if(D.hasOwnProperty(S)){var Q=D[S];if("isSelected"in Q&&Q.isSelected)return"stringValue"in Q?Q.stringValue||"":"int32Value"in Q?Q.int32Value||0:0}}return null};
_.K.updateValueFromBinding=function(x){this.value=x.detail.value};
_.J3.Object.defineProperties(sg.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 x=0,L=this.data.entries.length;x<L;x++){var D=this.data.entries[x],S;for(S in D)if(D.hasOwnProperty(S)){var Q=D[S];if("isSelected"in Q&&Q.isSelected&&"label"in Q)return this.ytRendererBehavior.getSimpleString(Q.label)}}return null}}});
sg.prototype.autoSizeLabel=sg.prototype.autoSizeLabel;sg.prototype.stopPropagation=sg.prototype.stopPropagation;sg.prototype.valueChangedForBinding=sg.prototype.valueChangedForBinding;sg.prototype.dataChanged=sg.prototype.dataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],sg.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],sg.prototype,"ytRendererStamperBehavior",void 0);
_.A([_.F(),_.r("design:type",Object)],sg.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],sg.prototype,"disabled",void 0);_.A([_.F(),_.r("design:type",Object)],sg.prototype,"value",void 0);_.A([_.F(),_.r("design:type",Object)],sg.prototype,"noLabelFloat",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],sg.prototype,"noUnderline",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",String)],sg.prototype,"theme",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],sg.prototype,"usePrimaryColor",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],sg.prototype,"hasBackground",void 0);_.A([_.F(),_.r("design:type",Object)],sg.prototype,"verticalAlign",void 0);_.A([_.F(),_.r("design:type",Object)],sg.prototype,"autosize",void 0);_.A([_.F(),_.r("design:type",Object)],sg.prototype,"minAutosizeWidth",void 0);_.A([_.F(),_.r("design:type",Object)],sg.prototype,"autosizeFont",void 0);
_.A([_.F1("#entries"),_.r("design:type",Object)],sg.prototype,"entries",void 0);_.A([_.F1("#input"),_.r("design:type",Object)],sg.prototype,"inputEl",void 0);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],sg.prototype,"dataChanged",null);_.A([_.GV("value"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],sg.prototype,"valueChangedForBinding",null);
_.A([_.mX("iron-overlay-opened"),_.mX("iron-overlay-closed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],sg.prototype,"stopPropagation",null);_.A([_.mX("iron-select"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],sg.prototype,"autoSizeLabel",null);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],sg.prototype,"label",null);
_.A([_.w({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],sg);
_.q(sg,"ytd-dropdown-renderer",function(){if(F7h!==void 0)return F7h;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return F7h=x},{mode:1});var T5Q;var T9=function(){var x=_.e.apply(this,arguments)||this;x.isConstrainedList=!1;return x};
_.p(T9,_.e);T9.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"}}}};
T9.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
T9.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
T9.prototype.computeViewAllHidden=function(x,L){return x||!L.viewAllEndpoint};
T9.prototype.fillRestIfNoShowMore=T9.prototype.fillRestIfNoShowMore;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],T9.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],T9.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.Gz.YtLazyListBehavior),_.r("design:type",Object)],T9.prototype,"ytLazyListBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],T9.prototype,"data",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],T9.prototype,"isConstrainedList",void 0);_.A([_.GV("data","canShowMore"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],T9.prototype,"fillRestIfNoShowMore",null);_.A([_.w({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],T9);
_.q(T9,"ytd-expanded-shelf-contents-renderer",function(){if(T5Q!==void 0)return T5Q;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return T5Q=x},{mode:_.Vm("kevlar_poly_si_batch_j025")?1:2});var eVW;var eb=function(){return _.e.apply(this,arguments)||this};
_.p(eb,_.e);eb.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}}}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],eb.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],eb.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],eb.prototype,"data",void 0);_.A([_.w({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],eb);
_.q(eb,"ytd-feed-channel-filter-header-renderer",function(){if(eVW!==void 0)return eVW;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return eVW=x},{mode:1});var RV_;var Gqd;var CwW;var Rv=function(){return _.e.apply(this,arguments)||this};
_.p(Rv,_.e);_.K=Rv.prototype;_.K.onClick=function(x){var L,D=(L=this.data)==null?void 0:L.sectionEndpoint;!_.QC(_.Jq(x),this.hostElement,["A".toString()])&&D&&_.MF(this.hostElement,"yt-navigate",{endpoint:D})};
_.K.computeHasSectionEndpoint=function(x){return(x==null?void 0:x.sectionEndpoint)!==void 0};
_.K.computeShowHeaderAsLink=function(x){return(x==null?void 0:x.header)!==void 0&&(x==null?void 0:x.sectionEndpoint)!==void 0};
_.K.computeShowSubheaderAsLink=function(x){return(x==null?void 0:x.subheader)!==void 0&&(x==null?void 0:x.sectionEndpoint)!==void 0&&(x==null?void 0:x.header)===void 0};
_.K.getHeaderAsLinkClass=function(x){var L=[],D;(x==null?0:(D=x.headerIcon)==null?0:D.iconType)&&L.push("header-link-active");return L.join(" ")};
_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],Rv.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Rv.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Rv.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Rv.prototype,"data",void 0);
_.A([_.F({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],Rv.prototype,"hasSectionEndpoint",void 0);_.A([_.F({computed:"computeShowHeaderAsLink(data)"}),_.r("design:type",Boolean)],Rv.prototype,"showHeaderAsLink",void 0);_.A([_.F({computed:"computeShowSubheaderAsLink(data)"}),_.r("design:type",Boolean)],Rv.prototype,"showSubheaderAsLink",void 0);_.A([_.w({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],Rv);
_.q(Rv,"ytd-medical-panel-section-renderer",function(){if(CwW!==void 0)return CwW;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return CwW=x},{mode:1});var G9=function(){var x=_.e.apply(this,arguments)||this;x.isExpanded=!1;x.roundedContainer=!0;x.skipRoundingTop=!1;x.toggleExpandableSection=function(){x.isExpanded=!x.isExpanded};
return x};
_.p(G9,_.e);
G9.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]]"}}}}}};
G9.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
G9.prototype.dataChanged=G9.prototype.dataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],G9.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],G9.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],G9.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],G9.prototype,"isExpanded",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],G9.prototype,"roundedContainer",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],G9.prototype,"skipRoundingTop",void 0);_.A([_.F(),_.r("design:type",Object)],G9.prototype,"toggleExpandableSection",void 0);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],G9.prototype,"dataChanged",null);_.A([_.w({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],G9);
_.q(G9,"ytd-medical-panel-content-renderer",function(){if(Gqd!==void 0)return Gqd;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return Gqd=x},{mode:1});_.BD("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var C4=function(){var x=_.e.apply(this,arguments)||this;x.roundedContainer=!0;x.extractOverlay=!1;x.amsterdamEnabled=_.u("enable_desktop_amsterdam_info_panels");x.hasTitle=!1;x.linkIcon="OPEN_IN_NEW";x.isDismissed=!1;return x};
_.p(C4,_.e);C4.prototype.onOverlayConditionsChange=function(){var x=_.jr(this.hostElement).querySelector("ytd-info-panel-content-renderer");x&&(x.set("extractOverlay",this.extractOverlay),x.set("roundedContainer",this.roundedContainer))};
C4.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"}}}};
C4.prototype.computeHasTitle=function(x){return!(x==null||!x.title)};
C4.prototype.onClick=function(x){var L,D=(L=this.data)==null?void 0:L.headerEndpoint;!_.QC(_.Jq(x),this.hostElement,["BUTTON".toString()])&&D&&this.ytComponentBehavior.resolveCommand(D)};
_.J3.Object.defineProperties(C4.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 x;return((x=this.data)==null?void 0:x.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var x,L;return((x=this.data)==null?void 0:x.disableBottomDivider)||!((L=this.data)==null?0:L.title)}}});
C4.prototype.onOverlayConditionsChange=C4.prototype.onOverlayConditionsChange;_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],C4.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],C4.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],C4.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],C4.prototype,"ytdReduxBehavior",void 0);
_.A([_.F(),_.r("design:type",Object)],C4.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],C4.prototype,"roundedContainer",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],C4.prototype,"extractOverlay",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],C4.prototype,"amsterdamEnabled",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.r("design:type",Object)],C4.prototype,"hasTitle",void 0);
_.A([_.F({type:_.u("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.Y("data.background"),_.r("design:type",Object),_.r("design:paramtypes",[])],C4.prototype,"background",null);_.A([_.F({type:_.u("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.Y("data.titleStyle"),_.r("design:type",Object),_.r("design:paramtypes",[])],C4.prototype,"titleStyle",null);
_.A([_.F({type:_.u("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.Y("data.titleStyle"),_.r("design:type",Object),_.r("design:paramtypes",[])],C4.prototype,"showLinkIcon",null);_.A([_.F(),_.r("design:type",String)],C4.prototype,"linkIcon",void 0);_.A([_.F({type:_.u("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],C4.prototype,"hideDivider",null);
_.A([_.F({selectorArgs:["data.dismissStateEntityKey"],selector:function(x,L){x=_.u6(x.entities,"dismissState",L);return(x==null?void 0:x.isDismissed)||(x==null?void 0:x.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(x==null?void 0:x.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.r("design:type",Object)],C4.prototype,"isDismissed",void 0);_.A([_.bN("roundedContainer","extractOverlay"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],C4.prototype,"onOverlayConditionsChange",null);_.A([_.w({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],C4);
_.q(C4,"ytd-info-panel-container-renderer",function(){if(RV_!==void 0)return RV_;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return RV_=x},{mode:1});var lrH;_.BD("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var lC=function(){return _.e.apply(this,arguments)||this};
_.p(lC,_.e);lC.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
lC.prototype.computeStyle=function(x){return x?x:""};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],lC.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],lC.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],lC.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.r("design:type",String)],lC.prototype,"titleStyle",void 0);
_.A([_.w({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],lC);
_.vp()(lC,"ytd-item-section-header-renderer",function(){if(lrH===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);lrH=x}x=lrH;return x},{allowedProps:["data"],
mode:1});var Un2;var wLW,B5_=function(){return wLW!==void 0?wLW:wLW=document.createElement("template")};
document.head.appendChild(B5_().content);var W7W;_.Ug=new _.vx("VOTING_ANIMATION_CONTROLLER_TOKEN");var AUH=_.B(function(x){var L=x.data;var D=_.x3("div"),S=_.x3("div");x=_.O(_.HB("VOTE_STATUS_NONE",void 0,"YPH5mf"));var Q=x.next().value,J=x.next().value,Z=_.mF(x73,function(){var h;return(h=L())==null?void 0:h.entityKey}),y=_.u("web_enable_voting_animation")||_.u("enable_music_web_cairo_voting_animation");
_.wO(function(){var h;((h=L().initialState)==null?0:h.status)&&J(L().initialState.status)});
var E=function(){var h,H,k=(H=(h=L().initialState)==null?void 0:h.votes)!=null?H:0,T;h=(T=L().initialState)==null?void 0:T.status;return h==="VOTE_STATUS_UPVOTED"?k-1:h==="VOTE_STATUS_DOWNVOTED"?k+1:k},P=function(){return Q()==="VOTE_STATUS_UPVOTED"?E()+1:Q()==="VOTE_STATUS_DOWNVOTED"?E()-1:E()},v=function(h){var H=h?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
J(H);var k=P(),T=_.yY().resolve(_.ZN(_.Ug)),G=Z();G&&(h&&(G==null?0:G.upvoteDefaultButtonOnTap)?_.Xf(G.upvoteDefaultButtonOnTap,{form:{element:D.value},disableClickTracking:!0}):(G==null?0:G.upvoteToggledButtonOnTap)&&_.Xf(G.upvoteToggledButtonOnTap,{form:{element:D.value},disableClickTracking:!0}));var U;h=(U=G==null?void 0:G.enableOptimisticReordering)!=null?U:L().enableOptimisticReordering;y&&T&&L().itemId&&h&&qZ2(T,L().itemId,k,H)},V=function(h){var H=h?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
J(H);var k=P(),T=_.yY().resolve(_.ZN(_.Ug)),G=Z();G&&(h&&(G==null?0:G.downvoteDefaultButtonOnTap)?_.Xf(G.downvoteDefaultButtonOnTap,{form:{element:S.value},disableClickTracking:!0}):(G==null?0:G.downvoteToggledButtonOnTap)&&_.Xf(G.downvoteToggledButtonOnTap,{form:{element:S.value},disableClickTracking:!0}));var U;h=(U=G==null?void 0:G.enableOptimisticReordering)!=null?U:L().enableOptimisticReordering;y&&T&&L().itemId&&h&&qZ2(T,L().itemId,k,H)};
x={};x=_.gF("ytVotingViewModelVoteCount",(x.ytVotingViewModelVoteCountDisabled=function(){return L().isDisabled},x));
return _.M("voting-view-model",{class:"ytVotingViewModelHost"},_.M("div",{el:D},_.M(_.Fj,{data:function(){var h=_.g(L().upvoteButton,_.j3);return{toggleButtonViewModel:Object.assign({},h,{isToggled:Q()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(h){return _.M(_.JT,{data:h.data,
onToggle:v})}})),_.M("div",{class:x},function(){var h,H,k;
return Q()==="VOTE_STATUS_UPVOTED"?(h=L().initialState)==null?void 0:h.compactVotesUpvoted:Q()==="VOTE_STATUS_DOWNVOTED"?(H=L().initialState)==null?void 0:H.compactVotesDownvoted:(k=L().initialState)==null?void 0:k.compactVotes}),_.M("div",{el:S},_.M(_.Fj,{data:function(){var h=_.g(L().downvoteButton,_.j3);
return{toggleButtonViewModel:Object.assign({},h,{isToggled:Q()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(h){return _.M(_.JT,{data:h.data,
onToggle:V})}})))},"Pc");_.dF(_.B(function(x){var L=x.data;return _.M("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.M("div",{class:_.gF("ytEngagementBarViewModelEngagementBarWrapper",x.className)},_.M(_.Fj,{data:function(){return L().actions}},{votingViewModel:AUH})))},"Qc"),"engagement-bar-view-model",{props:{data:_.pJ,
className:_.pJ}});var wS=function(){var x=_.e.apply(this,arguments)||this;x.playlistVotingAnimationEnabled=_.u("web_enable_voting_animation");x.downloadProgress=0;x.transferState="TRANSFER_STATE_UNKNOWN";x.downloadState="DOWNLOAD_STATE_UNKNOWN";x.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";x.offlineVideoPolicyExpirationTimestamp=0;return x};
_.p(wS,_.e);_.K=wS.prototype;_.K.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"}}}};
_.K.canReorderChanged=function(){this.persistentDragHandle=_.u("kevlar_playlist_drag_handles")&&this.canReorder};
_.K.onDrag=function(){if(this.thumbnail){var x=_.jr(this.thumbnail).querySelector("yt-image");x&&(x.shouldRenderLazy=!1)}};
_.K.onMenuOverlayChanged=function(x,L){this.menuOpened=L};
_.K.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.K.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.K.onContentsTap=function(x){var L,D=(L=this.data)==null?void 0:L.serviceEndpoints;if(D&&D.length===1&&_.g(D[0],Ok0)&&!_.QC(_.Jq(x),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(D[0]);else{var S;(L=(S=this.data)==null?void 0:S.navigationEndpoint)&&_.u("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?$nB(_.yY().resolve(_.iy),L):(_.ie().playlistSuggestionsShelfActivation=
!0,_.rUG(_.yY().resolve(_.iy),L)):L&&!_.QC(_.Jq(x),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.u("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.MF(this.hostElement,"yt-navigate",{endpoint:L}):this.ytComponentBehavior.resolveCommand(L))}};
_.K.computeStyle=function(x){return x?x.toLowerCase().replace(/_/g,"-"):""};
_.K.computeThumbnailWidth=function(x){return x==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.K.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=uW0(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))}};
_.K.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.K.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.K.dataChanged=function(){if(this.data){var x,L,D,S=((x=this.downloadRenderData)==null?void 0:x.badges)&&((L=this.downloadRenderData)==null?void 0:L.badges)!==((D=this.data)==null?void 0:D.badges),Q,J,Z;x=((Q=this.downloadRenderData)==null?void 0:Q.thumbnailOverlays)&&((J=this.downloadRenderData)==null?void 0:J.thumbnailOverlays)!==((Z=this.data)==null?void 0:Z.thumbnailOverlays);(!this.downloadRenderData||S||x)&&this.downloadStateChanged()}};
_.K.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var x,L,D=(x=this.data.menu)==null?void 0:(L=x.menuRenderer)==null?void 0:L.items;if(D)for(x=_.O(D),L=x.next();!L.done;L=x.next())if(L=L.value,D=void 0,_.g((D=L.menuServiceItemRenderer)==null?void 0:D.serviceEndpoint,_.Kv)){var S=D=void 0,Q=void 0;L=(D=L)==null?void 0:(S=D.menuServiceItemRenderer)==null?void 0:(Q=S.serviceEndpoint)==null?void 0:Q.playlistEditEndpoint;Q=S=void 0;if(D=(S=L)==null?void 0:(Q=S.actions)==null?void 0:
Q[0])S=void 0,D.setVideoId=(S=this.data)==null?void 0:S.setVideoId;Q=S=D=void 0;if(L=(D=L)==null?void 0:(S=D.clientActions)==null?void 0:(Q=S[0])==null?void 0:Q.playlistRemoveVideosAction)D=void 0,L.setVideoIds=[(D=this.data)==null?void 0:D.setVideoId]}}};
_.J3.Object.defineProperties(wS.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
wS.prototype.setVideoIdChanged=wS.prototype.setVideoIdChanged;wS.prototype.dataChanged=wS.prototype.dataChanged;wS.prototype.downloadStateChanged=wS.prototype.downloadStateChanged;wS.prototype.onMenuOverlayChanged=wS.prototype.onMenuOverlayChanged;wS.prototype.canReorderChanged=wS.prototype.canReorderChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],wS.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],wS.prototype,"ytdReduxBehavior",void 0);
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],wS.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.uM),_.r("design:type",Object)],wS.prototype,"ytdLockupBehavior",void 0);_.A([_.b(_.dK),_.r("design:type",Object)],wS.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],wS.prototype,"ytComponentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],wS.prototype,"data",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],wS.prototype,"canReorder",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],wS.prototype,"menuOpened",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],wS.prototype,"handleIsHovered",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],wS.prototype,"persistentDragHandle",void 0);_.A([_.F(),_.r("design:type",Object)],wS.prototype,"downloadRenderData",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.r("design:type",String)],wS.prototype,"styleType",void 0);_.A([_.F({computed:"computeThumbnailWidth(data.style)"}),_.r("design:type",Number)],wS.prototype,"thumbnailWidth",void 0);_.A([_.F({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],wS.prototype,"isDownloads",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],wS.prototype,"playlistVotingAnimationEnabled",void 0);
_.A([_.F({selector:ot,selectorArgs:["data.videoId"]}),_.r("design:type",Object)],wS.prototype,"downloadProgress",void 0);_.A([_.F(),_.r("design:type",Number)],wS.prototype,"relativeDateReference",void 0);_.A([_.F({selector:_.i6,selectorArgs:["data.videoId"]}),_.r("design:type",Object)],wS.prototype,"transferState",void 0);_.A([_.F({selector:qjh,selectorArgs:["data.videoId"]}),_.r("design:type",Object)],wS.prototype,"downloadState",void 0);
_.A([_.F({selector:mIN,selectorArgs:["data.videoId"]}),_.r("design:type",Object)],wS.prototype,"offlinePolicyAction",void 0);_.A([_.F({selector:bpO,selectorArgs:["data.videoId"]}),_.r("design:type",Object)],wS.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.A([_.F({selector:F$s,selectorArgs:["data.videoId"]}),_.r("design:type",Object)],wS.prototype,"entityInfo",void 0);_.A([_.F({selector:_.$N}),_.r("design:type",Boolean)],wS.prototype,"miniplayerIsActive",void 0);
_.A([_.Y("data"),_.r("design:type",String),_.r("design:paramtypes",[])],wS.prototype,"playlistVideoId",null);_.A([_.F1("#thumbnail"),_.r("design:type",Object)],wS.prototype,"thumbnail",void 0);_.A([_.GV("canReorder"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],wS.prototype,"canReorderChanged",null);
_.A([_.mX("yt-menu-overlay-changed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Boolean]),_.r("design:returntype")],wS.prototype,"onMenuOverlayChanged",null);_.A([_.GV("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],wS.prototype,"downloadStateChanged",null);
_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],wS.prototype,"dataChanged",null);_.A([_.GV("data.setVideoId"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],wS.prototype,"setVideoIdChanged",null);_.A([_.w({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],wS);
_.q(wS,"ytd-playlist-video-renderer",function(){if(W7W!==void 0)return W7W;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);x.content.insertBefore(B5_().content.cloneNode(!0),x.content.firstChild);return W7W=x},{mode:1});var N5i;var BU=function(){return _.e.apply(this,arguments)||this};
_.p(BU,_.e);_.A([_.F(),_.r("design:type",Object)],BU.prototype,"data",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],BU.prototype,"rendererBehavior",void 0);_.A([_.w({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],BU);
_.q(BU,"ytd-premium-browse-footer-renderer",function(){if(N5i!==void 0)return N5i;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return N5i=x},{mode:1});var ieh;var WU=function(){var x=_.e.apply(this,arguments)||this;x.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return x};
_.p(WU,_.e);_.K=WU.prototype;_.K.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.K.handleDarkModeToggledAction=function(x){this.isDarkTheme=x};
_.K.computeHeaderLogoThumbnail=function(x,L){if(x)return L?x.darkLogo:x.lightLogo};
_.K.computeHeaderLogoHeight=function(x,L){var D,S,Q;return(x=(D=this.computeHeaderLogoThumbnail(x,L))==null?void 0:(S=D.thumbnails)==null?void 0:(Q=S[0])==null?void 0:Q.height)&&x%31===0?"31":"24"};
_.K.computeHeaderLogoMarginBottom=function(x,L){return this.computeHeaderLogoHeight(x,L)==="24"?"0":"-7"};
_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],WU.prototype,"actionHandlerBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],WU.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],WU.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Boolean)],WU.prototype,"isDarkTheme",void 0);_.A([_.F({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.r("design:type",Object)],WU.prototype,"themeLogo",void 0);
_.A([_.F({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.r("design:type",String)],WU.prototype,"logoHeight",void 0);_.A([_.F({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.r("design:type",String)],WU.prototype,"logoMarginBottom",void 0);_.A([_.w({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],WU);
_.q(WU,"ytd-primetime-promo-header-renderer",function(){if(ieh!==void 0)return ieh;var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return ieh=x},{mode:1});var fri;_.qZ=_.B(function(x){var L=x.className;var D=x.data;var S=x.isOverlay;var Q=x.maxLinesOverride;var J=x.useMediumText;var Z=function(){return D().alwaysShowTruncationText},y=function(){return D().truncationText},E=function(){return J!==void 0&&J()?"medium":"small"},P=function(){return S!==void 0&&S()?"overlay":"default"},v=function(){var k,T;
return(T=(k=_.g(D().rendererContext,_.Fm))==null?void 0:k.label)!=null?T:""};
x=_.O(_.HB(!1,void 0,"OKr1o"));var V=x.next().value,h=x.next().value;x=_.kO(function(){D().expandOnTap&&h(!V());return!1});
var H={};return _.M("yt-description-preview-view-model",{el:_.Zt(_.AL(function(){return D().rendererContext})),
class:_.gF("ytDescriptionPreviewViewModelHost",L,(H.ytDescriptionPreviewViewModelClickable=function(){var k;return!((k=_.g(D().rendererContext,Bub))==null||!k.onTap)},H.ytDescriptionPreviewViewModelIsOverlay=S,H)),
"on:click":x},_.M(_.d,{cond:function(){return D().description},
then:function(k){return _.M(_.d,{cond:V,then:function(){var T={};return _.M("div",{class:_.gF("ytDescriptionPreviewViewModelDescription",(T.ytDescriptionPreviewViewModelDescriptionMediumText=J,T))},_.M(_.kP,{text:k}))},
else:function(){return _.M(nwA,{text:k,alwaysShowTruncationText:Z,truncationText:y,maxLines:function(){var T;return(T=Q==null?void 0:Q())!=null?T:D().maxLines},
textStyle:P,accessibilityLabel:v,textSize:E})}})}}))},"Rc");
_.qZ.idomCompat=!0;var arG=_.B(function(x){var L=_.kO(function(Q){var J;(J=x.onClick)==null||J.call(x,Q)}),D={},S={};
return _.M("yt-shelf-header-layout",{class:_.gF("yt-shelf-header-layout",(D["yt-shelf-header-layout--disable-horizontal-padding"]=x.disableHorizontalPadding,D["yt-shelf-header-layout--disable-vertical-padding"]=x.disableVerticalPadding,D["yt-shelf-header-layout--responsive"]=x.useResponsiveLayout,D["yt-shelf-header-layout--narrow"]=function(){var Q,J;return((Q=x.useResponsiveLayout)==null?void 0:Q.call(x))&&((J=x.forceSmallLayout)==null?void 0:J.call(x))},D["yt-shelf-header-layout--is-overlay"]=x.isOverlay,
D["yt-shelf-header-layout--tappable"]=x.isInteractive,D)),
"on:click":L,tabindex:function(){var Q;return((Q=x.isInteractive)==null?0:Q.call(x))?0:void 0}},_.M("div",{class:"yt-shelf-header-layout__header-row"},_.M(_.d,{cond:x.leadingIcon,
then:function(Q){return _.M("div",{class:"yt-shelf-header-layout__leading-icon"},_.M(_.YO,{icon:Q}))},
else:function(){return _.M(_.d,{cond:x.hasLeadingImage,then:function(){var Q,J={};return _.M("div",{class:_.gF("yt-shelf-header-layout__leading-image",(J["yt-shelf-header-layout__leading-image--circular-image"]=x.circularImage,J))},(Q=x.leadingImage)==null?void 0:Q.call(x))}})}}),_.M("div",{class:"yt-shelf-header-layout__label-container"},_.M(_.d,{cond:x.hasSuperlabel,
then:function(){var Q;return _.M("div",{class:"yt-shelf-header-layout__superlabel"},(Q=x.superlabel)==null?void 0:Q.call(x))}}),_.M("div",{class:"yt-shelf-header-layout__title-row"},_.M(oWH,{text:x.title,
className:_.gF("yt-shelf-header-layout__title",(S["yt-shelf-header-layout__title--small-title"]=x.forceSmallLayout,S)),tagLevel:x.tagLevel}),_.M(_.d,{cond:x.hasDetail,then:function(){var Q;return _.M("div",{class:"yt-shelf-header-layout__detail"},(Q=x.detail)==null?void 0:Q.call(x))}})),_.M(_.d,{cond:x.hasSublabel,
then:function(){var Q;return _.M("div",{class:"yt-shelf-header-layout__sublabel"},(Q=x.sublabel)==null?void 0:Q.call(x))}})),_.M(_.d,{cond:x.hasTrailingActions,
then:function(){var Q;return _.M("div",{class:"yt-shelf-header-layout__trailing-actions"},(Q=x.trailingActions)==null?void 0:Q.call(x))}})),_.M(_.d,{cond:x.hasBottomAccessory,
then:function(){var Q;return(Q=x.bottomAccessory)==null?void 0:Q.call(x)}}))},"Sc");
arG.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0,bottomAccessory:!0}};
var oWH=_.B(function(x){var L=x.text;var D=x.className;var S=x.tagLevel;return _.M(_.GS,null,_.M(_.TS,{when:function(){return(S==null?void 0:S())===0}},function(){return _.M("h2",{class:D},L())}),_.M(_.TS,{when:function(){return(S==null?void 0:S())===1}},function(){return _.M("h3",{class:D},L())}),_.M(_.TS,{when:function(){return(S==null?void 0:S())===2}},function(){return _.M("h4",{class:D},L())}),_.M(_.eF,null,function(){return _.M("h2",{class:D},L())}))},"Tc");var cUB,zVh,XL_;_.AN=_.B(function(x){var L=x.className;var D=x.data;var S=x.disableHorizontalPadding;var Q=x.disableVerticalPadding;var J=x.forceSmallLayout;var Z=x.useResponsiveLayout;x=x.isOverlay;return _.M("yt-section-header-view-model",{class:_.gF("ytSectionHeaderViewModelHost",L),style:_.bc({"background-color":function(){return pF(D().backgroundColor)?_.XA(pF(D().backgroundColor)):void 0}})},_.M(arG,{hasDetail:!1,
title:function(){return _.M(_.kP,{text:function(){return D().headline}})},
hasTitle:!0,sublabel:function(){return _.M(zVh,{data:D})},
hasSublabel:function(){return!!D().sublabel||!!D().bottomBadge},
superlabel:function(){return _.M(XL_,{data:D})},
hasSuperlabel:function(){return!!D().superlabel||!!D().topBadge},
leadingImage:function(){return _.M(cUB,{leadingAccessory:function(){return D().leadingAccessory}})},
hasLeadingImage:function(){return!!D().leadingAccessory},
trailingActions:function(){return _.M(_.Fj,{data:function(){return D().trailingActions}},{flexibleActionsViewModel:_.yw})},
hasTrailingActions:function(){return!!D().trailingActions},
disableHorizontalPadding:S,disableVerticalPadding:Q,forceSmallLayout:J,useResponsiveLayout:Z,isOverlay:x,isInteractive:function(){return!!_.WX(D().rendererContext)},
onClick:function(y){if(_.qb(D().rendererContext)){var E=_.WX(D().rendererContext);E&&_.o6(E,{form:{element:y.target,event:y}})}},
bottomAccessory:function(){return _.M(_.Fj,{data:function(){return D().bottomAccessory}},{descriptionPreviewViewModel:_.qZ})},
hasBottomAccessory:function(){return!!D().bottomAccessory}}))},"Uc");
cUB=_.B(function(x){var L=x.leadingAccessory;return _.M(_.I1,null,_.M(_.d,{cond:function(){var D;return(D=L().image)!=null?D:_.oB(L().themedImage)},
then:function(D){return _.M(_.Ku,{data:D,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.M(_.d,{cond:function(){return _.g(L().avatar,_.$e)},
then:function(D){return _.M(_.O0,{data:D})}}))},"Vc");
zVh=_.B(function(x){var L=x.data;return _.M(_.I1,null,_.M(_.d,{cond:function(){return _.g(L().bottomBadge,aJR)},
then:function(D){var S={};return _.M(_.G2,{data:D,class:_.gF((S.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!D()&&!!L().sublabel},S))})}}),_.M(_.d,{cond:function(){return L().sublabel},
then:function(D){return _.M(_.kP,{text:D})}}))},"Wc");
XL_=_.B(function(x){var L=x.data;return _.M(_.I1,null,_.M(_.d,{cond:function(){return _.g(L().topBadge,aJR)},
then:function(D){var S={};return _.M(_.G2,{data:D,class:_.gF((S.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!D()&&!!L().superlabel},S))})}}),_.M(_.d,{cond:function(){return L().superlabel},
then:function(D){return _.M(_.kP,{text:D})}}))},"Xc");_.dF(_.AN,"yt-section-header-view-model",{props:{data:_.pJ,className:_.pJ,disableHorizontalPadding:_.pJ,disableVerticalPadding:_.pJ,forceSmallLayout:_.pJ,useResponsiveLayout:_.pJ,isOverlay:_.pJ}});_.BD("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var $$=function(){var x=_.e.apply(this,arguments)||this;x.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return x};
_.p($$,_.e);_.K=$$.prototype;_.K.attached=function(){this.requestElementsPerRow()};
_.K.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"}}}};
_.K.onDataChange=function(){var x=this;_.So(this,function(){x.updateItemVisibility()})};
_.K.onUpdateElementsPerRowAction=function(x){x&&this.elementsPerRow!==x&&(this.elementsPerRow=x,this.updateItemVisibility())};
_.K.updateItemVisibility=function(){var x=this;this.data&&this.data.panels&&_.jr(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(L,D){L.hidden=D>x.elementsPerRow-1})};
_.K.requestElementsPerRow=function(){_.MF(this.hostElement,"yt-request-elements-per-row")};
$$.prototype.onDataChange=$$.prototype.onDataChange;_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],$$.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.dK),_.r("design:type",Object)],$$.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],$$.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],$$.prototype,"actionHandlerBehavior",void 0);
_.A([_.F(),_.r("design:type",Object)],$$.prototype,"data",void 0);_.A([_.F({value:3}),_.r("design:type",Number)],$$.prototype,"elementsPerRow",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],$$.prototype,"onDataChange",null);_.A([_.w({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],$$);
_.q($$,"ytd-primetime-promo-renderer",function(){if(fri!==void 0)return fri;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return fri=x},{mode:1});var nWH;var rS=function(){var x=_.e.apply(this,arguments)||this;x.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return x};
_.p(rS,_.e);rS.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
rS.prototype.handleButtonRefreshAction=function(x){if(x=_.g(x,gx2))this.set("data.button",x.membershipButton),this.notifyPath("data.button")};
_.J3.Object.defineProperties(rS.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var x,L;return((x=this.data)==null?void 0:(L=x.avatars)==null?void 0:L.slice(0,8))||[]}}});
_.A([_.F(),_.r("design:type",Object)],rS.prototype,"data",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],rS.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],rS.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],rS.prototype,"rendererBehavior",void 0);_.A([_.Y("data"),_.r("design:type",Array),_.r("design:paramtypes",[])],rS.prototype,"avatars",null);
_.A([_.w({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],rS);
_.q(rS,"ytd-recognition-shelf-renderer",function(){if(nWH!==void 0)return nWH;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return nWH=x},{mode:1});var t6i;var xd2;var NZ=function(){var x=_.e.apply(this,arguments)||this;x.modernButtons=_.u("web_modern_buttons");return x};
_.p(NZ,_.e);_.K=NZ.prototype;
_.K.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]]"}}}}}};
_.K.dataChanged=function(){this.collapsed=!0};
_.K.computeVisibleItems=function(x,L){return x!==void 0&&x.items?L?x.items.slice(0,this.data.collapsedItemCount):x.items:[]};
_.K.computeHideShowMore=function(x,L,D){return x>=L||!D};
_.K.computeHideShowAll=function(x,L,D){return!(x&&L)||D};
_.K.onMoreClick=function(){this.collapsed=!1};
_.J3.Object.defineProperties(NZ.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.u("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.PY("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.u("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
NZ.prototype.dataChanged=NZ.prototype.dataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],NZ.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],NZ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],NZ.prototype,"data",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],NZ.prototype,"isSearch",void 0);
_.A([_.F({computed:"computeVisibleItems(data,collapsed)"}),_.r("design:type",Array)],NZ.prototype,"visibleItems",void 0);_.A([_.F({value:!0}),_.r("design:type",Boolean)],NZ.prototype,"collapsed",void 0);_.A([_.F({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.r("design:type",Boolean)],NZ.prototype,"hideShowMore",void 0);
_.A([_.F({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.r("design:type",Boolean)],NZ.prototype,"hideShowAll",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],NZ.prototype,"modernButtons",void 0);_.A([_.Y("isSearch"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],NZ.prototype,"typographyBump",null);
_.A([_.Y("isSearch"),_.r("design:type",Object),_.r("design:paramtypes",[])],NZ.prototype,"lockupExperiments",null);_.A([_.Y("isSearch"),_.r("design:type",String),_.r("design:paramtypes",[])],NZ.prototype,"thumbnailWidth",null);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],NZ.prototype,"dataChanged",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],NZ);
_.q(NZ,"ytd-vertical-list-renderer",function(){if(xd2!==void 0)return xd2;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return xd2=x},{mode:1});var LfG=_.xI(["#"]);_.BD("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var iC=function(){var x=_.e.apply(this,arguments)||this;x.isConstrainedList=!1;return x};
_.p(iC,_.e);_.K=iC.prototype;
_.K.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"}}}};
_.K.computeThumbnailStyle=function(x){return x||""};
_.K.computePlaceAnnotationUnderTitle=function(){var x;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((x=this.data)==null?void 0:x.thumbnailStyle)||"")};
_.K.computeHrefWithDefault=function(x){return this.ytComponentBehavior.computeHref_(x)||_.KW0(LfG)};
_.K.computeIsPromoShelf=function(x){var L;return(x=x==null?void 0:(L=x[0])==null?void 0:L.metadataBadgeRenderer)?x.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.K.computePlaceBadgeBesideTitle=function(x){var L;return(x==null?0:(L=x[0])==null?0:L.metadataBadgeRenderer)?!this.computeIsPromoShelf(x):!1};
_.K.computeMenuIcon=function(x){return this.computeIsPromoShelf(x)?"yt-icons:more_vert":"yt-icons:more"};
_.K.onDataChange=function(){var x,L;((x=this.data)==null?0:(L=x.content)==null?0:L.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.K.onLockupRequested=function(x){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&x.detail&&x.detail.videoIds){for(var L=this.data.content.gridRenderer.items,D=new Set,S=_.O(x.detail.videoIds),Q=S.next();!Q.done;Q=S.next())D.add(Q.value);x.detail.returnValue=L.filter(function(J){return J.gridVideoRenderer&&J.gridVideoRenderer.videoId&&D.has(J.gridVideoRenderer.videoId)}).map(function(J){return J.gridVideoRenderer})}};
_.K.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
iC.prototype.onLockupRequested=iC.prototype.onLockupRequested;iC.prototype.onDataChange=iC.prototype.onDataChange;_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],iC.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.dK),_.r("design:type",Object)],iC.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],iC.prototype,"ytRendererBehavior",void 0);
_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],iC.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.XO),_.r("design:type",Object)],iC.prototype,"ironResizableBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],iC.prototype,"data",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],iC.prototype,"isSearch",void 0);_.A([_.F(),_.r("design:type",Object)],iC.prototype,"isConstrainedList",void 0);_.A([_.F({reflectToAttribute:!0,value:function(){return _.u("kevlar_fluid_dismiss")}}),
_.r("design:type",Boolean)],iC.prototype,"enableFluidDismiss",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.r("design:type",String)],iC.prototype,"thumbnailStyle",void 0);_.A([_.F({computed:"computeMenuIcon(data.badges)"}),_.r("design:type",String)],iC.prototype,"menuIcon",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],iC.prototype,"onDataChange",null);
_.A([_.mX("yt-lockup-requested"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],iC.prototype,"onLockupRequested",null);_.A([_.w({is:"ytd-shelf-renderer",disableElementRegistration:!0})],iC);
_.q(iC,"ytd-shelf-renderer",function(){if(t6i!==void 0)return t6i;var x=document.createElement("template");_.m(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-shelf-renderer">\n  <div class="grid-subheader style-scope ytd-shelf-renderer" hidden="[[data.hideHeader]]">\n    <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-shelf-renderer">\n      <h2 class="style-scope ytd-shelf-renderer">\n        <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n          </yt-icon>\n          <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n        </template>\n        <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <div id="image-container" class="style-scope ytd-shelf-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" aria-hidden="true" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" tabindex="-1" title="[[getSimpleString(data.title)]]">\n              <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-shelf-renderer">\n              </yt-img-shadow>\n              <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n              </yt-icon>\n            </a>\n            <div id="title-text" class="style-scope ytd-shelf-renderer">\n              <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" href$="[[computeHrefWithDefault(data.endpoint)]]" data="[[data.endpoint]]">\n                <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n              </a>\n              <ytd-badge-supported-renderer id="title-featured-badge" badges="[[data.badges]]" hidden="[[!computeIsPromoShelf(data.badges)]]" class="style-scope ytd-shelf-renderer">\n              </ytd-badge-supported-renderer>\n              <yt-formatted-string id="title-annotation" hidden="[[!computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n              </yt-formatted-string>\n            </div>\n          </div>\n        </template>\n        <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!computePlaceBadgeBesideTitle(data.badges)]]" class="style-scope ytd-shelf-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="title-annotation" hidden="[[computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n        </yt-formatted-string>\n        <div id="play-button" class="style-scope ytd-shelf-renderer"></div>\n        <div id="sort-filter" class="style-scope ytd-shelf-renderer"></div>\n      </h2>\n      <div id="spacer" class="style-scope ytd-shelf-renderer"></div>\n      <div id="subscribe-button" class="style-scope ytd-shelf-renderer"></div>\n      <div id="menu" class="style-scope ytd-shelf-renderer"></div>\n    </div>\n    <yt-formatted-string id="subtitle" class="can-be-empty style-scope ytd-shelf-renderer" text="[[data.subtitle]]">\n    </yt-formatted-string>\n  </div>\n  <div id="contents" class="style-scope ytd-shelf-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-shelf-renderer"></div>\n');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return t6i=x},{mode:1});var Dd_;var f4=function(){return _.e.apply(this,arguments)||this};
_.p(f4,_.e);f4.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.J3.Object.defineProperties(f4.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],f4.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],f4.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],f4.prototype,"data",void 0);_.A([_.F({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],f4.prototype,"isPlaylist",void 0);_.A([_.F({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],f4.prototype,"isClipList",void 0);
_.A([_.F({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],f4.prototype,"isPlaylistPageWithFilters",void 0);_.A([_.F({value:!1,reflectToAttribute:!0}),_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],f4.prototype,"hasTitle",null);_.A([_.F(),_.Y("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.r("design:type",Object),_.r("design:paramtypes",[])],f4.prototype,"isRightAligned",null);
_.A([_.w({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],f4);
_.q(f4,"ytd-sort-filter-header-renderer",function(){if(Dd_!==void 0)return Dd_;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Dd_=x},{mode:1});var STA;var ov=function(){var x=_.e.apply(this,arguments)||this;x.enableRightArrowHidden=_.u("channel_details_shelf_resize_observer")&&!!window.ResizeObserver;return x};
_.p(ov,_.e);ov.prototype.attached=function(){var x=this;this.enableRightArrowHidden&&(this.JSC$16403_throttledOnResize=new _.zR(function(){var L;(L=x.ytdHorizontalListBehavior)==null||L.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var L;
(L=x.JSC$16403_throttledOnResize)==null||L.fire()}),this.resizeObserver.observe(this.hostElement))};
ov.prototype.detached=function(){if(this.enableRightArrowHidden){var x;(x=this.resizeObserver)==null||x.disconnect();var L;(L=this.JSC$16403_throttledOnResize)==null||L.dispose()}};
ov.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]]"}}}}}};
ov.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.J3.Object.defineProperties(ov.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.u("enable_creator_details_shelf_m2")){var x=[],L;((L=this.data)==null?0:L.creatorVideosButton)&&x.push(this.data.creatorVideosButton);var D;((D=this.data)==null?0:D.creatorAboutButton)&&x.push(this.data.creatorAboutButton);L=_.O(this.data.creatorCustomUrlButtons||[]);for(D=L.next();!D.done;D=L.next())x.push(D.value);return x}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.u("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],ov.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],ov.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.CO.YtdHorizontalListBehavior),_.r("design:type",Object)],ov.prototype,"ytdHorizontalListBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],ov.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],ov.prototype,"engagementPanel",void 0);
_.A([_.F(),_.r("design:type",Object)],ov.prototype,"enableRightArrowHidden",void 0);_.A([_.Y("enableRightArrowHidden","atEnd"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],ov.prototype,"hideRightArrow",null);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],ov.prototype,"creatorCustomUrlButtons",null);
_.A([_.F({reflectToAttribute:!0}),_.Y("data","creatorCustomUrlButtons"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],ov.prototype,"showCreatorCustomUrlButtons",null);_.A([_.Y("showCreatorCustomUrlButtons"),_.r("design:type",Number),_.r("design:paramtypes",[])],ov.prototype,"channelAvatarSize",null);_.A([_.w({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],ov);
_.q(ov,"ytd-video-description-infocards-section-renderer",function(){if(STA!==void 0)return STA;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return STA=x},{mode:_.Vm("kevlar_poly_si_batch_j067")?1:2});var QpW;var av=function(){return _.e.apply(this,arguments)||this};
_.p(av,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],av.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],av.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],av.prototype,"data",void 0);_.A([_.F({computed:"computeIcon_(data.infoIcon)"}),_.r("design:type",Object)],av.prototype,"infoIcon",void 0);_.A([_.w({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],av);
_.q(av,"ytd-eom-settings-disclaimer-renderer",function(){if(QpW!==void 0)return QpW;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return QpW=x},{mode:1});var JWh;var z9=function(){return _.e.apply(this,arguments)||this};
_.p(z9,_.e);_.J3.Object.defineProperties(z9.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.suppressPaddingDisclaimer)}}});
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],z9.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],z9.prototype,"componentBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],z9.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],z9.prototype,"data",void 0);
_.A([_.F({reflectToAttribute:!0}),_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],z9.prototype,"suppressPaddingDisclaimer",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],z9);
_.q(z9,"ytd-product-list-header-renderer",function(){if(JWh!==void 0)return JWh;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return JWh=x},{mode:1});var Kfd;var X7=function(){return _.e.apply(this,arguments)||this};
_.p(X7,_.e);X7.prototype.computeThumbnailStyle=function(x){if(x&&(x=_.zF(x)))return"background-color:"+x+";"};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],X7.prototype,"rendererBehaviors",void 0);_.A([_.F(),_.r("design:type",Object)],X7.prototype,"data",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],X7);
_.q(X7,"ytd-hashtag-tile-renderer",function(){if(Kfd!==void 0)return Kfd;var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Kfd=x},{mode:1});var OMQ;var cU=function(){return _.e.apply(this,arguments)||this};
_.p(cU,_.e);cU.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}}}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],cU.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],cU.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],cU.prototype,"data",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],cU);
_.q(cU,"ytd-sponsorships-alert-renderer",function(){if(OMQ!==void 0)return OMQ;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return OMQ=x},{mode:1});var ZMQ;var n4=function(){return _.e.apply(this,arguments)||this};
_.p(n4,_.e);n4.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.J3.Object.defineProperties(n4.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.u("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.u("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.A([_.b(_.dK),_.r("design:type",Object)],n4.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.b(_.uM),_.r("design:type",Object)],n4.prototype,"ytdLockupBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],n4.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],n4.prototype,"ytRendererBehavior",void 0);_.A([_.F({selector:_.Nj}),_.r("design:type",Object)],n4.prototype,"isGridViewEnabled",void 0);
_.A([_.Y("isGridViewEnabled"),_.F({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],n4.prototype,"watchFeedBigThumbs",null);_.A([_.Y("isGridViewEnabled"),_.F({reflectToAttribute:!0}),_.r("design:type",String),_.r("design:paramtypes",[])],n4.prototype,"thumbnailWidth",null);_.A([_.F(),_.r("design:type",Object)],n4.prototype,"data",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],n4);
_.q(n4,"ytd-compact-movie-renderer",function(){if(ZMQ!==void 0)return ZMQ;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return ZMQ=x},{mode:1});var yWd;var Ijr;var E_W=_.$6("HTML_DIR")==="rtl",tN=function(){var x=_.e.apply(this,arguments)||this;x.engagementPanel=!1;x.maxLines=2;x.expandButtonOffset=0;x.showExpandButton=!1;x.isTruncated=!1;x.isExpanded=!1;x.currentSnippetType=2;x.alwaysShowExpandButton=!1;x.JSC$16420_lastWidth=NaN;x.observer=null;x.left=0;x.right=0;x.mid=0;x.longestSnippetLength=0;x.isFinalSnippet=!1;x.isFirstMutation=!1;x.isResetMutation=!1;x.OVERFLOW_THRESHOLD=5;return x};
_.p(tN,_.e);_.K=tN.prototype;_.K.onClick=function(x){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.QC(_.Jq(x)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var L;if((L=window.getSelection())==null||!L.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.K.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.K.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.K.updateTextOnSnippetTypeChange=function(){_.u("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.K.setUpBinarySearch=function(x){x=x*this.maxLines/8;this.left=0;var L,D;this.right=Math.min(x*2,(D=(L=this.simpleText)==null?void 0:L.length)!=null?D:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.K.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.K.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.qy(new _.RZ("AttributedSnippet is empty when the description is not empty",this.text))};
_.K.mutationCallback=function(){if(this.observer!=null){var x=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var L=Math.floor(x*this.maxLines/8);this.setSnippetText(this.text,L);L!==0||this.attributedTextIsEmpty()||_.qy(new _.RZ("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;x=x*this.maxLines/8;this.left=0;var D;this.right=Math.min(x*2,(D=(L=this.simpleText)==null?void 0:L.length)!=null?D: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)}}};
_.K.mutationObserve=function(x){var L=this;this.observer||(this.observer=new MutationObserver(function(){L.mutationCallback()}));
this.observer.observe(x,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.K.attached=function(){var x=this;_.So(this,function(){x.resize()})};
_.K.isExpandedChanged=function(){_.MF(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.K.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)};
_.K.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var x="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((E_W?"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",x);this.snippetContainer.style.setProperty("mask-image",
x)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(E_W?"right":"left",this.expandButtonOffset+"px")};
_.K.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.K.setSnippetText=function(x,L){x||(x={});if(_.Sn(x)){var D=Lu(x,L);D.attachmentRuns||D.commandRuns||D.decorationRuns||D.styleRuns||D.alignment||D.lineBreakMode?this.attributedSnippetTextEl?(_.u("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=Lu(x,L),this.attributedSnippetTextEl.headerRuns=soN(L,this.headerRuns)):this.attributedSnippetText={data:Lu(x,L),headerRuns:soN(L,this.headerRuns)},this.currentSnippetType=0):_.qy(new _.RZ("Tried to set snippet text when HTML element was null",
x)):(this.plainSnippetText.textContent=nI(x.content||"",L),this.currentSnippetType=2)}else{a:{D=LYf(x,L);if(D.runs){D=_.O(D.runs);for(var S=D.next();!S.done;S=D.next())if(S=S.value,S.bold||S.deemphasize||S.italics||S.strikethrough||S.textColor||S.navigationEndpoint||_.g(S,rB)){D=!0;break a}}D=!1}D?this.formattedSnippetText?(this.formattedSnippetText.text=LYf(x,L),this.currentSnippetType=1):_.qy(new _.RZ("Tried to set snippet text when HTML element was null",x)):(this.plainSnippetText.textContent=
nI(_.SR(x),L),this.currentSnippetType=2)}};
_.K.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.K.attributedTextIsEmpty=function(){var x=this.text;if(!_.Sn(x))return!0;var L;return((L=x.content)==null?void 0:L.length)===0?!0:!1};
_.K.resize=function(x){if(this.snippetText){if(x===void 0?0:x)this.JSC$16420_lastWidth=NaN;var L=this.hostElement.offsetWidth;if(L!==this.JSC$16420_lastWidth&&!this.isExpanded)if(this.JSC$16420_lastWidth=L,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;x=0;var D,S;L=Math.min(L*this.maxLines/8*2,(S=(D=this.simpleText)==null?void 0:D.length)!=null?S:0)-1;for(D=0;x<=L;)S=Math.floor(x+(L-x)/2),this.setSnippetText(this.text,S),this.isOverflowing()?L=S-1:(x=S+1,D=S);this.setSnippetText(this.text,D);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.K.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.K.onExpandClick=function(){var x=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.u("inline_expander_reset_focus_killswitch")||_.So(this,function(){var L;((L=_.yY().resolve(_.ZN(_.CJ)))==null?0:L.isKeyBoardInUse())&&_.xZ(x.hostElement)});
_.MF(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.K.onCollapseClick=function(){this.collapse();_.MF(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.K.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.K.computeExpandButtonOffset=function(){var x=this.expandSizer;return x?E_W?x.offsetParent?x.offsetParent.offsetWidth-x.offsetWidth-x.offsetLeft:0:x.offsetLeft:0};
_.J3.Object.defineProperties(tN.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.Sn(this.text)?this.text.content||"":_.SR(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 _.Sn(this.text)?!0:this.text&&_.u("web_replace_formatted_with_attributed_string")&&xsh(this.text)?(this.text=_.$i(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}}});
tN.prototype.onTextChanged=tN.prototype.onTextChanged;tN.prototype.updateMaskAndExpandButtonOffset=tN.prototype.updateMaskAndExpandButtonOffset;tN.prototype.updateSnippetContainerMaxHeight=tN.prototype.updateSnippetContainerMaxHeight;tN.prototype.isExpandedChanged=tN.prototype.isExpandedChanged;tN.prototype.updateTextOnSnippetTypeChange=tN.prototype.updateTextOnSnippetTypeChange;tN.prototype.updateIsFormattedExpanded=tN.prototype.updateIsFormattedExpanded;tN.prototype.updateIsAttributedExpanded=tN.prototype.updateIsAttributedExpanded;
tN.prototype.onClick=tN.prototype.onClick;_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],tN.prototype,"componentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],tN.prototype,"text",void 0);_.A([_.F(),_.r("design:type",Array)],tN.prototype,"headerRuns",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],tN.prototype,"engagementPanel",void 0);_.A([_.F(),_.r("design:type",Object)],tN.prototype,"maxLines",void 0);
_.A([_.F(),_.r("design:type",String)],tN.prototype,"expandLabel",void 0);_.A([_.F(),_.r("design:type",String)],tN.prototype,"collapseLabel",void 0);_.A([_.F(),_.r("design:type",Object)],tN.prototype,"expandCommand",void 0);_.A([_.F(),_.r("design:type",Object)],tN.prototype,"expandButtonOffset",void 0);_.A([_.Y("text"),_.r("design:type",String),_.r("design:paramtypes",[])],tN.prototype,"simpleText",null);
_.A([_.mX("click"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],tN.prototype,"onClick",null);_.A([_.Y("text","isExpanded"),_.r("design:type",Object),_.r("design:paramtypes",[])],tN.prototype,"expandedText",null);_.A([_.Y("headerRuns","isExpanded"),_.r("design:type",Object),_.r("design:paramtypes",[])],tN.prototype,"expandedHeaderRuns",null);
_.A([_.Y("text"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],tN.prototype,"hasAttributedStringText",null);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],tN.prototype,"showExpandButton",void 0);_.A([_.Y("collapseLabel","isExpanded"),_.r("design:type",Object),_.r("design:paramtypes",[])],tN.prototype,"showCollapseButton",null);_.A([_.F(),_.r("design:type",Object)],tN.prototype,"isTruncated",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],tN.prototype,"isExpanded",void 0);_.A([_.F(),_.r("design:type",Boolean)],tN.prototype,"isAttributedExpanded",void 0);_.A([_.bN("isExpanded","hasAttributedStringText"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],tN.prototype,"updateIsAttributedExpanded",null);_.A([_.F(),_.r("design:type",Boolean)],tN.prototype,"isFormattedExpanded",void 0);
_.A([_.bN("isExpanded","hasAttributedStringText"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],tN.prototype,"updateIsFormattedExpanded",null);_.A([_.F(),_.r("design:type",Number)],tN.prototype,"currentSnippetType",void 0);_.A([_.Y("currentSnippetType"),_.r("design:type",Object),_.r("design:paramtypes",[])],tN.prototype,"useAttributedSnippet",null);
_.A([_.Y("currentSnippetType"),_.r("design:type",Object),_.r("design:paramtypes",[])],tN.prototype,"useFormattedSnippet",null);_.A([_.Y("currentSnippetType"),_.r("design:type",Object),_.r("design:paramtypes",[])],tN.prototype,"usePlainSnippet",null);_.A([_.F(),_.r("design:type",Object)],tN.prototype,"alwaysShowExpandButton",void 0);_.A([_.bN("currentSnippetType"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],tN.prototype,"updateTextOnSnippetTypeChange",null);
_.A([_.F(),_.r("design:type",Object)],tN.prototype,"attributedSnippetText",void 0);_.A([_.F1("#snippet"),_.r("design:type",HTMLElement)],tN.prototype,"snippetContainer",void 0);_.A([_.F1("#snippet-text"),_.r("design:type",HTMLElement)],tN.prototype,"snippetText",void 0);_.A([_.F1("#plain-snippet-text"),_.r("design:type",HTMLElement)],tN.prototype,"plainSnippetText",void 0);_.A([_.F1("#formatted-snippet-text"),_.r("design:type",Object)],tN.prototype,"formattedSnippetText",void 0);
_.A([_.F1("#attributed-snippet-text"),_.r("design:type",Object)],tN.prototype,"attributedSnippetTextEl",void 0);_.A([_.F1("#expand"),_.r("design:type",HTMLElement)],tN.prototype,"expandButton",void 0);_.A([_.F1("#expand-sizer"),_.r("design:type",HTMLElement)],tN.prototype,"expandSizer",void 0);_.A([_.GV("isExpanded"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],tN.prototype,"isExpandedChanged",null);
_.A([_.bN("isExpanded","maxLines"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],tN.prototype,"updateSnippetContainerMaxHeight",null);_.A([_.bN("isTruncated","showExpandButton","expandButtonOffset"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],tN.prototype,"updateMaskAndExpandButtonOffset",null);
_.A([_.GV("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],tN.prototype,"onTextChanged",null);_.A([_.w({is:"ytd-text-inline-expander",disableElementRegistration:!0})],tN);
_.q(tN,"ytd-text-inline-expander",function(){if(Ijr===void 0){var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);Ijr=x}x=Ijr;return x},{mode:2});var xD=function(){var x=_.e.apply(this,arguments)||this;x.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return x};
_.p(xD,_.e);xD.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
xD.prototype.handleUpdateDescriptionAction=function(x){if(x=_.g(x,_.mKd))if(x.attributedDescription)this.set("data.attributedDescriptionBodyText",x.attributedDescription);else if(x.description){var L;((L=this.data)==null?0:L.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.$i(x.description)):this.set("data.descriptionBodyText",x.description)}};
_.J3.Object.defineProperties(xD.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var x,L;return!((x=this.data)==null||!x.attributedDescriptionBodyText)||!((L=this.data)==null||!L.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var x;if((x=this.data)==null?0:x.collapsedLineCount){var L;return(L=this.data)==null?void 0:L.collapsedLineCount}x=_.dE("web_watch_description_collapsed_default_lines",12);if(_.u("ww_desc_line_page_size_ks"))return x;L=Math.round(_.sO().height*_.dE("web_watch_description_screen_height_percentage",.5)/20);return Math.max(L,x)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var x,L,D;return(D=(x=this.data)==null?void 0:x.descriptionBodyText)!=null?D:(L=this.data)==null?void 0:L.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null?void 0:x.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null?void 0:x.sourceAttributions}}});
xD.prototype.panelContentVisibleChanged=xD.prototype.panelContentVisibleChanged;_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],xD.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],xD.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],xD.prototype,"componentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],xD.prototype,"data",void 0);
_.A([_.F(),_.r("design:type",Boolean)],xD.prototype,"panelContentVisible",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],xD.prototype,"engagementPanel",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],xD.prototype,"shortsPanel",void 0);_.A([_.F1("#inline-expander"),_.r("design:type",Object)],xD.prototype,"inlineExpander",void 0);
_.A([_.bN("panelContentVisible"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],xD.prototype,"panelContentVisibleChanged",null);_.A([_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],xD.prototype,"hasDescriptionText",null);_.A([_.Y("data"),_.r("design:type",Number),_.r("design:paramtypes",[])],xD.prototype,"collapsedLines",null);
_.A([_.Y("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.r("design:type",Object),_.r("design:paramtypes",[])],xD.prototype,"descriptionText",null);_.A([_.Y("data","data.headerRuns"),_.r("design:type",Object),_.r("design:paramtypes",[])],xD.prototype,"headerRuns",null);_.A([_.Y("data","data.sourceAttributions"),_.r("design:type",Object),_.r("design:paramtypes",[])],xD.prototype,"sourceAttributions",null);
_.A([_.w({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],xD);
_.q(xD,"ytd-expandable-video-description-body-renderer",function(){if(yWd!==void 0)return yWd;var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return yWd=x},{mode:_.Vm("kevlar_poly_si_batch_j028")?1:2});var Mkd;var dd_=_.B(function(x){var L=x.data;return _.M("factoid-renderer",{class:"ytwFactoidRendererHost"},_.M("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return L().accessibilityText}},_.M("span",{class:"ytwFactoidRendererValue"},_.M(_.kP,{text:function(){return L().value}})),_.M("span",{class:"ytwFactoidRendererLabel"},_.M(_.kP,{text:function(){return L().label}}))))},"Yc");_.dF(dd_,"factoid-renderer",{props:{data:_.pJ}});_.dF(_.B(function(x){var L=x.data;return _.M("upload-time-factoid-renderer",null,_.M(_.Fj,{data:function(){return L().factoid}},{factoidRenderer:dd_}))},"Zc"),"upload-time-factoid-renderer",{props:{data:_.Il}});_.dF(_.B(function(x){var L=x.data;return _.M("view-count-factoid-renderer",null,_.M(_.Fj,{data:function(){return L().factoid}},{factoidRenderer:dd_}))},"$c"),"view-count-factoid-renderer",{props:{data:_.Il}});var LT=function(){var x=_.e.apply(this,arguments)||this;x.shortsPanel=!1;x.engagementPanel=!1;x.watchWhileSdp=_.u("shorts_desktop_watch_while_sdp");return x};
_.p(LT,_.e);LT.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"}}}}};
_.J3.Object.defineProperties(LT.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var x;return(x=this.data)==null?void 0:x.channel}}});
_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],LT.prototype,"componentBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],LT.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],LT.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],LT.prototype,"shortsPanel",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],LT.prototype,"engagementPanel",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],LT.prototype,"watchWhileSdp",void 0);_.A([_.Y("shortsPanel","engagementPanel","data.channel"),_.r("design:type",Object),_.r("design:paramtypes",[])],LT.prototype,"showChannelInfo",null);_.A([_.w({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],LT);
_.q(LT,"ytd-video-description-header-renderer",function(){if(Mkd!==void 0)return Mkd;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Mkd=x},{mode:1});var Pnh;var Dy=function(){return _.e.apply(this,arguments)||this};
_.p(Dy,_.e);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],Dy.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Dy.prototype,"ytRendererBehavior",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],Dy.prototype,"noPadding",void 0);_.A([_.F(),_.r("design:type",Object)],Dy.prototype,"data",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],Dy);
_.q(Dy,"ytd-list-item-view-model",function(){if(Pnh!==void 0)return Pnh;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return Pnh=x},{mode:1});var jpr;var v_h;var VkR;var hnW;var SU=function(){var x=_.e.apply(this,arguments)||this;x.adaptiveFullWidth=!1;x.modernButtons=_.u("web_modern_buttons");x.buttonOverrides={style:"call-to-action",type:"filled"};x.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return x};
_.p(SU,_.e);SU.prototype.handleSetTimestamp_=function(x){this.data&&this.data.shortUrl&&(_.jr(this.hostElement).querySelector("#share-url").value=x.isSet?_.D9(this.data.shortUrl,"t",x.timestamp):this.data.shortUrl)};
SU.prototype.handleSignalActionCopyShareUrl_=function(x,L){(_.u("killswitch_copy_link_target_check")||_.jr(this.hostElement).querySelector("#copy-button")===L)&&this.copyUrlToClipboard()};
SU.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.jr(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
SU.prototype.computeStyle_=function(x){return x?x.toLowerCase().replace(/_/g,"-"):""};
_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],SU.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],SU.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],SU.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.r("design:type",String)],SU.prototype,"rendererStyle",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],SU.prototype,"adaptiveFullWidth",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],SU.prototype,"modernButtons",void 0);_.A([_.F(),_.r("design:type",Object)],SU.prototype,"buttonOverrides",void 0);_.A([_.oW({is:"yt-copy-link-renderer",disableElementRegistration:!0})],SU);
_.q(SU,"yt-copy-link-renderer",function(){if(hnW===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;VkR===void 0&&(VkR=document.createElement("template"));var S=VkR;D.call(L,S.content.cloneNode(!0),x.content.firstChild);hnW=x}x=hnW;return x},{mode:2});_.BD("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var Qp=function(){var x=_.e.apply(this,arguments)||this;x.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return x};
_.p(Qp,_.e);_.K=Qp.prototype;_.K.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.K.attached=function(){this.keyboardFocused=!1};
_.K.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var x=_.yY().resolve(_.ZN(_.CJ));x&&(this.keyboardFocused=x.isKeyBoardInUse())}};
_.K.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.K.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}};
_.K.onChange_=function(){if(this.data){var x=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;x&&this.ytComponentBehavior.resolveCommand(x);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.K.handleUpdateToggleAction_=function(x){(x=_.g(x,f7G))&&this.data&&x.targetId==this.data.targetId&&this.set("data.toggled",x.toggled)};
_.K.toBoolean_=function(x){return!!x};
_.K.reset=function(){};
_.K.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.gU("data-changed",this.data))};
_.K.updateDataToggledFromBinding=function(x){this.set("data.toggled",x.detail.value)};
Qp.prototype.dataChangedForBinding=Qp.prototype.dataChangedForBinding;_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],Qp.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Qp.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],Qp.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Qp.prototype,"ytRendererBehavior",void 0);
_.A([_.F(),_.r("design:type",Object)],Qp.prototype,"data",void 0);_.A([_.F({computed:"computeDescription_(data.*)"}),_.r("design:type",Object)],Qp.prototype,"description_",void 0);_.A([_.F({value:function(){return!!_.yY().resolve(_.ZN(_.CJ))&&_.u("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.r("design:type",Boolean)],Qp.prototype,"useKeyboardFocused",void 0);_.A([_.F({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],Qp.prototype,"keyboardFocused",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Qp.prototype,"dataChangedForBinding",null);_.A([_.oW({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],Qp);
_.q(Qp,"yt-toggle-form-field-renderer",function(){if(v_h===void 0){var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;jpr===void 0&&(jpr=document.createElement("template"));var S=jpr;D.call(L,S.content.cloneNode(!0),x.content.firstChild);v_h=x}x=v_h;return x},{mode:2});var HM2;var uyh;var J1=function(){var x=_.e.apply(this,arguments)||this;x.isDarkTheme=!1;x.isSearch=!1;x.darkerDarkTheme=_.u("web_darker_dark_theme");x.noTopMargin=_.u("kevlar_watch_no_top_margin");x.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 x};
_.p(J1,_.e);_.K=J1.prototype;_.K.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}}}}}};
_.K.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.K.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.K.dataChanged=function(){var x=this.getSelectedIndex();if(x>0)this.selected=x;else{this.selected=0;var L,D;(L=this.ytScrollableChipCloudBehavior)==null||(D=L.reset)==null||D.call(L)}};
_.K.getSelectedIndex=function(){var x;if((x=this.data)==null||!x.chips)return-1;x=-1;for(var L,D=0;D<((L=this.data)==null?void 0:L.chips.length);D++){var S=void 0,Q=void 0;if((S=this.data)==null?0:(Q=S.chips[D].chipCloudChipRenderer)==null?0:Q.isSelected){x=D;break}}return x};
_.K.onResize=function(){var x=this.ytScrollableChipCloudBehavior;_.So(x,x.setContainerWidthDiff);x=this.ytScrollableChipCloudBehavior;_.So(x,x.setButtonsState)};
_.K.onDarkModeToggledAction=function(x){this.isDarkTheme=x};
_.K.handleRelatedChipCommand=function(x,L){x=this.JSC$16447_chipsSelector.indexOf(L);x!==-1&&this.JSC$16447_chipsSelector.selectIndex(x)};
_.K.handleChipCloudChipSelectAction=function(x){x=this.JSC$16447_chipsSelector.indexOf(x);x>-1&&this.JSC$16447_chipsSelector.selectIndex(x)};
_.K.handleChipCloudChipDeselectAction=function(){var x=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$16447_chipsSelector&&((x==null?0:x.continuationCommand)?_.jq(this.hostElement,[x]):(x==null?0:x.searchEndpoint)?this.ytComponentBehavior.resolveCommand(x):x&&_.v$(this.hostElement,[x],this.hostElement),this.JSC$16447_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.K.updateSelectedFromBinding=function(x){this.selected=x.detail.value};
J1.prototype.onResize=J1.prototype.onResize;J1.prototype.dataChanged=J1.prototype.dataChanged;J1.prototype.isSearchChanged=J1.prototype.isSearchChanged;_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],J1.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],J1.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],J1.prototype,"actionHandlerBehavior",void 0);
_.A([_.b(_.XO),_.r("design:type",Object)],J1.prototype,"ironResizableBehavior",void 0);_.A([_.b(),_.r("design:type",Af)],J1.prototype,"ytScrollableChipCloudBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],J1.prototype,"ytComponentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],J1.prototype,"data",void 0);_.A([_.F({value:0}),_.r("design:type",Number)],J1.prototype,"selected",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],J1.prototype,"isDarkTheme",void 0);_.A([_.F({value:160}),_.r("design:type",Number)],J1.prototype,"scrollDistance",void 0);_.A([_.F(),_.r("design:type",Object)],J1.prototype,"isSearch",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],J1.prototype,"darkerDarkTheme",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],J1.prototype,"noTopMargin",void 0);
_.A([_.F1("#chips"),_.r("design:type",Object)],J1.prototype,"JSC$16447_chipsSelector",void 0);_.A([_.bN("isSearch"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],J1.prototype,"isSearchChanged",null);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],J1.prototype,"dataChanged",null);_.A([_.mX("iron-resize"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],J1.prototype,"onResize",null);
_.A([_.oW({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],J1);
_.q(J1,"yt-chip-cloud-renderer",function(){if(uyh===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;HM2===void 0&&(HM2=document.createElement("template"));var S=HM2;D.call(L,S.content.cloneNode(!0),x.content.firstChild);uyh=x}x=uyh;return x},{mode:2});var g_2,kvd=function(){return g_2!==void 0?g_2:g_2=document.createElement("template")};
document.head.appendChild(kvd().content);var pwi;var mdR=document.head,bMA=mdR.appendChild,YTW;if(pwi===void 0){var Ffi=document.createElement("template");_.m(Ffi,"");Ffi.content.insertBefore(kvd().content.cloneNode(!0),Ffi.content.firstChild);pwi=Ffi}YTW=pwi;bMA.call(mdR,YTW.content);var spW=_.B(function(x){var L=x.data;return _.M("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.M("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.M("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.M(_.d,{cond:function(){return _.oB(L().image)},
then:function(D){return _.M("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.M(_.Ku,{data:D,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.M("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.M(_.kP,{text:function(){return L().title}})),_.M("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.M(_.kP,{text:function(){return L().subtitle}})))),_.M(_.d,{cond:function(){var D;
return(D=L())==null?void 0:D.hasBottomDivider},
then:function(){return _.M("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"ad");var Tlr=_.B(function(x){var L=x.data;return _.M("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.M("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.M(_.Fj,{data:function(){var D;return(D=L().offerPlanDetailsItem)!=null?D:[]}},{offerPlanDetailsItemViewModel:function(D){return _.M("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.M(spW,{data:D.data}))}})),_.M("div",null,_.M(_.d,{cond:function(){return L().hasBottomDivider},
then:function(){return _.M("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.M("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.M("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.M("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.M("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"bd");var enr=_.B(function(x){var L=x.data;x=_.O(_.HB(!1,void 0,"MrXxy"));var D=x.next().value,S=x.next().value,Q=_.kO(function(){S(!D());return!1}),J=function(){var Z;
return(Z=L().offerPlanDetailsContainer)!=null?Z:[]};
return _.M("lp-complex-offer-card-details-view-model",null,_.M("div",null,_.M(_.d,{cond:function(){return D()},
then:function(){return _.M("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.M("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":Q,"aria-expanded":D},_.M(_.kP,{text:function(){return L().expandedTitle}})),_.M("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.M(_.Fj,{data:J},{offerPlanDetailsContainerViewModel:function(Z){return _.M("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.M(Tlr,{data:Z.data}))}})),_.M("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.M(_.kP,{text:function(){return L().legalText}})))},
else:function(){return _.M("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":Q,"aria-expanded":D},_.M(_.kP,{text:function(){return L().collapsedTitle}}),_.M("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.M(_.YO,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"cd");var Rnr=_.B(function(x){var L=x.data;return _.M("lp-complex-offer-card-option-view-model",null,_.M("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.M(_.d,{cond:function(){return L().topDividerText},
then:function(){return _.M("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.M("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.M("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.M("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.M(_.kP,{text:function(){return L().topDividerText}}))))}}),_.M(_.d,{cond:function(){return L().description},
then:function(){return _.M("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},_.M(_.kP,{text:function(){return L().description}}))}}),_.M(_.d,{cond:function(){return L().planPricingPrimary},
then:function(){return _.M("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.M(_.kP,{text:function(){return L().planPricingPrimary}}))}}),_.M(_.d,{cond:function(){return L().planPricingSecondary},
then:function(){return _.M("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.M(_.kP,{text:function(){return L().planPricingSecondary}}))}}),_.M(_.d,{cond:function(){return L().primaryButton},
then:function(){return _.M("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.M(_.Fj,{data:function(){return L().primaryButton}},{buttonViewModel:function(D){return _.M(_.qP,{data:D.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"dd");var GvW=_.B(function(x){var L=x.data;var D=function(){var J;return((J=L())==null?void 0:J.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
x={};var S={},Q={};return _.M("ytm-lp-complex-offer-card-view-model",null,_.M("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.M("div",{class:_.gF((x.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=D,x),"ytmLpComplexOfferCardViewModelCardContainer")},_.M(_.d,{cond:function(){var J;return(J=L())==null?void 0:J.bannerText},
then:function(){return _.M("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.M("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.M(_.kP,{text:function(){return L().bannerText}})))}}),_.M(_.d,{cond:function(){return _.oB(L().logo)},
then:function(J){var Z={};return _.M("div",{class:_.gF((Z.ytmLpComplexOfferCardViewModelLogoAlignLeft=D,Z),"ytmLpComplexOfferCardViewModelLogo")},_.M(_.Ku,{data:J,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.M("div",{class:_.gF((S.ytmLpComplexOfferCardViewModelTitleAlignLeft=D,S),"ytmLpComplexOfferCardViewModelTitle")},_.M(_.kP,{text:function(){return L().title}})),_.M(_.d,{cond:function(){var J;
return(J=L())==null?void 0:J.subtitle},
then:function(){var J={};return _.M("div",{class:_.gF((J.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=D,J),"ytmLpComplexOfferCardViewModelSubtitle")},_.M(_.kP,{text:function(){return L().subtitle}}))}}),_.M(_.d,{cond:function(){return L().planPricingPrimary},
then:function(){return _.M("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.M(_.kP,{text:function(){return L().planPricingPrimary}}))}}),_.M(_.d,{cond:function(){return L().planPricingSecondary},
then:function(){return _.M("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.M(_.kP,{text:function(){return L().planPricingSecondary}}))}}),_.M(_.d,{cond:function(){return L().purchaseButton},
then:function(){return _.M("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.M(_.Fj,{data:function(){return L().purchaseButton}},{buttonViewModel:function(J){return _.M(_.qP,{data:J.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.M(_.d,{cond:function(){var J;
return(J=L())==null?void 0:J.offerOptions},
then:function(){return _.M("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.M(_.Fj,{data:function(){return L().offerOptions}},{lpComplexOfferCardOptionViewModel:Rnr}))}}),_.M("div",{class:_.gF((Q.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=D,Q),"ytmLpComplexOfferCardViewModelLegalText")},_.M(_.kP,{text:function(){return L().legalText}})),_.M(_.d,{cond:function(){var J;
return(J=L())==null?void 0:J.offerCardDetails},
then:function(){return _.M("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.M(_.Fj,{data:function(){return L().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:enr}))}}))))},"ed");var Cnh=_.B(function(x){var L=x.data;var D=function(){var Z;return((Z=L())==null?void 0:Z.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
x={};var S={},Q={},J={};return _.M("ytm-lp-complex-offer-card-section-view-model",null,_.M("div",{class:_.gF("ytmLpComplexOfferCardSectionViewModelHost")},_.M("div",{class:_.gF((x.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=D,x),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.M("div",{class:_.gF((S.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=D,S),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.M("h2",{class:_.gF((Q.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
D,Q),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.M(_.kP,{text:function(){return L().title}}))),_.M(_.d,{cond:function(){var Z;
return(Z=L())==null?void 0:Z.subtitle},
then:function(){var Z={},y={};return _.M("div",{class:_.gF((Z.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=D,Z),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.M("div",{class:_.gF((y.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=D,y),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.M(_.kP,{text:function(){return L().subtitle}})))}}),_.M("div",{class:_.gF((J.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=D,J),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.M(_.Fj,{data:function(){var Z;
return(Z=L().offerPlans)!=null?Z:[]}},{lpComplexOfferCardViewModel:function(Z){return _.M("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.M(GvW,{data:Z.data}))}})))))},"fd");var lj2=_.B(function(x){return _.M("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.M("div",{class:"ytLpCouponBannerViewModelIcon"},_.M(_.YO,{icon:function(){return"price_tag"}})),_.M("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.M("div",{class:"ytLpCouponBannerViewModelContent"},_.M("div",{class:"ytLpCouponBannerViewModelHeading"},_.M(_.kP,{text:function(){var L;
return(L=x.data())==null?void 0:L.title}})),_.M("div",{class:"ytLpCouponBannerViewModelBody"},_.M(_.kP,{text:function(){var L;
return(L=x.data())==null?void 0:L.subtitle}})))))},"gd");
lj2.idomCompat=!0;_.KT=qD_.getInstance();var Udi;Udi=_.B(function(x){return _.M("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsQuestion","aria-hidden":x.shouldAriaHideContent},_.M("h2",{class:"ytLpFaqEntryViewModelLpFaqQuestion",id:x.questionId},_.M(_.kP,{text:x.question})))},"hd");
_.ww_=_.B(function(x){var L=x.data;var D=x.themeOverride;x=_.O(_.HB(!1,void 0,"pNli2b"));var S=x.next().value,Q=x.next().value;x=_.kO(function(){Q(!S());return!1});
var J=function(){return S()?"EXPAND_LESS":"EXPAND_MORE"},Z=("faq-container"+_.zp(_.KT)).toString(),y="faq-question-and-answers-section-question"+_.zp(_.KT),E={},P={};
return _.M("faq-entry-view-model",null,_.M("div",{class:_.gF("ytLpFaqEntryViewModelHost",(E.ytLpFaqEntryViewModelPremiumForceDarkMode=function(){return D==null?void 0:D().useDarkTheme},E))},_.M("div",{class:"ytLpFaqEntryViewModelFaqQuestionAndAnswersSection",
"on:click":x,role:"button","aria-expanded":S,"aria-labelledby":y.toString(),"tab-index":"0"},_.M(Udi,{question:function(){return L().question},
questionId:y,shouldAriaHideContent:!0}),_.M(_.d,{cond:function(){return S()!==void 0},
then:function(){return _.M("div",{class:"ytLpFaqEntryViewModelIconContainer"},_.M(_.YO,{icon:J,ariaHidden:!0}),_.M("div",{class:"ytLpFaqEntryViewModelIconHoverHighlighting"}))}})),_.M("div",{class:_.gF("ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswer",(P.ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswerCollapsed=function(){return!S()},P))},_.M("div",{id:Z},_.M(_.R1,{each:function(){return L().answers||[]}},function(v){return _.M("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsAnswer"},_.M(_.kP,
{text:v}))})))))},"id");
_.ww_.idomCompat=!0;var Blh=_.B(function(x){var L=x.data;var D=x.themeOverride;x={};return _.M("lp-faq-section-view-model",null,_.M("div",{class:_.gF("yt-lp-faq-section-view-model",(x["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return L().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},x["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(D==null||!D().useDarkTheme)},x))},_.M("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.M(_.d,{cond:function(){return L().header},
then:function(S){return _.M("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.M(_.kP,{text:S}))}}),_.M("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.M(_.Fj,{data:function(){return L().faqs}},{faqEntryViewModel:function(S){return _.M(_.ww_,{data:S.data,
themeOverride:D})}})),_.M("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.M(_.R1,{each:function(){return L().footers||[]}},function(S){return _.M(_.kP,{text:S})})),_.M(_.d,{cond:function(){return L().legal},
then:function(S){return _.M("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.M(_.kP,{text:S}))}}))))},"jd");
Blh.idomCompat=!0;var Wf_=_.B(function(x){var L=x.data;var D=x.themeOverride;_.wO(function(){var Z=L().gtmId;Z&&_.SZ(Z,_.$6("GL",""))});
var S={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var Z,y,E;return(E=(Z=L().logo)==null?void 0:(y=Z.accessibilityData)==null?void 0:y.label)!=null?E:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},Q=_.yY().resolve(_.ZN(_.Dt)),J=function(){return Q&&Q()||(D==null?void 0:D().useDarkTheme)};
return _.M("lp-header-section-view-model",null,_.M("div",{class:function(){var Z=L().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",y=L().marginType==="LP_SECTION_MARGIN_TYPE_TOP",E=D==null?void 0:D().useDarkTheme,P=["lp-header-section-view-model"];Z&&P.push("lp-header-section-view-model--ptc-layout-type");y&&P.push("lp-header-section-view-model__lp-header-section-margin");E&&P.push("lp-header-section-view-model--premium-force-dark-mode");return P.join(" ")}},_.M(_.d,{cond:function(){return L().logo},
then:function(){return _.M("div",null,_.M(_.d,{cond:J,then:function(){return _.M(_.d,{cond:function(){var Z;return(Z=L().logo)==null?void 0:Z.imageDark},
then:function(Z){return _.M(_.Ku,Object.assign({},{data:Z},S))}})},
else:function(){return _.M(_.d,{cond:function(){var Z;return(Z=L().logo)==null?void 0:Z.imageLight},
then:function(Z){return _.M(_.Ku,Object.assign({},{data:Z},S))}})}}))}}),_.M(_.d,{cond:function(){return L().title},
then:function(Z){return _.M("div",{class:"lp-header-section-view-model__lp-header-title"},_.M(_.kP,{text:Z}))}}),_.M("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.M(_.d,{cond:function(){return L().subtitles},
then:function(Z){return _.M(_.R1,{each:Z},function(y){return _.M("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.M(_.kP,{text:y}))})}})),_.M(_.d,{cond:function(){return L().additionalInfo},
then:function(Z){return _.M("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.M(_.kP,{text:Z}))}}),_.M("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.M(_.d,{cond:function(){return L().primaryButton},
then:function(Z){return _.M("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.M(_.Fj,{data:Z},{buttonViewModel:_.qP}))}}),_.M(_.d,{cond:function(){return L().secondaryButton},
then:function(Z){return _.M("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.M(_.Fj,{data:Z},{buttonViewModel:_.qP}))}})),_.M(_.d,{cond:function(){return L().otherOffersInfo},
then:function(Z){return _.M("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.M(_.kP,{text:Z}))}}),_.M("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.M(_.d,{cond:function(){return L().billingInfo},
then:function(Z){return _.M(_.R1,{each:Z},function(y){return _.M("div",null,_.M(_.kP,{text:y}))})}}))))},"kd");
Wf_.idomCompat=!0;var qT_=_.B(function(x){var L=x.data;var D=_.ZH(x.themeOverride,{useDarkTheme:!1});x={};x=_.gF("ytmLpHeadlineSectionViewModelHost",(x.ytmLpHeadlineSectionViewModelPremiumForceDarkMode=function(){return D().useDarkTheme},x));
return _.M("lp-headline-section-view-model",null,_.M("div",{class:x},_.M(_.d,{cond:function(){return L().title},
then:function(S){return _.M("div",{class:"ytmLpHeadlineSectionViewModelTitleText"},_.M(_.kP,{text:S}))}}),_.M(_.d,{cond:function(){return L().subtitle},
then:function(S){return _.M("div",{class:"ytmLpHeadlineSectionViewModelSubtitleText"},_.M(_.kP,{text:S}))}})))},"ld");var AW2=_.B(function(x){var L=x.data;var D=x.themeOverride;var S=_.yY().resolve(_.ZN(_.Dt)),Q=function(){return S&&S()||(D==null?void 0:D().useDarkTheme)},J=function(){var P,v;
var V=Q()?(P=L().textBackgroundImage)==null?void 0:P.imageDark:(v=L().textBackgroundImage)==null?void 0:v.imageLight;return chG((V==null?void 0:V.sources)||[])},Z=function(){var P,v;
return Q()?(P=L().featureImage)==null?void 0:P.imageDark:(v=L().featureImage)==null?void 0:v.imageLight},y=function(){return L().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},E=function(){var P,v;
return Q()?(P=L().logo)==null?void 0:P.imageDark:(v=L().logo)==null?void 0:v.imageLight};
return _.M("ytm-lp-large-feature-section-view-model",null,_.M("div",{class:function(){var P=L().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",v=L().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",V=(L().index||0)%2===1,h=D==null?void 0:D().useDarkTheme,H=["yt-lp-large-feature-section-view-model"];P?H.push("yt-lp-large-feature-section-view-model--music-feature-type"):v?H.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):V||H.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
h&&H.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return H.join(" ")}},_.M("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.M(_.d,{cond:Z,
then:function(){return _.M(_.Ku,{data:function(){return Z()},
alt:function(){var P,v,V;return(V=(P=L().featureImage)==null?void 0:(v=P.accessibilityData)==null?void 0:v.label)!=null?V:""},
contentMode:y})}})),_.M("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var P;return((P=J())==null?0:P.url)?"background-image: url("+_.$z(J().url)+");":""}},_.M("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.M(_.d,{cond:E,
then:function(){return _.M(_.Ku,{data:function(){return E()},
alt:function(){var P,v,V;return(V=(P=L().logo)==null?void 0:(v=P.accessibilityData)==null?void 0:v.label)!=null?V:""},
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"})}}),_.M(_.d,{cond:function(){return L().eyebrowText},
then:function(){return _.M("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.M(_.kP,{text:function(){return L().eyebrowText}}))}}),_.M(_.d,{cond:function(){return L().title},
then:function(){return _.M("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.M(_.kP,{text:function(){return L().title}}))}}),_.M(_.d,{cond:function(){return L().subtitles},
then:function(){return _.M("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.M(_.R1,{each:function(){return L().subtitles||[]}},function(P){return _.M(_.kP,{text:P})}))}})))))},"md");
AW2.idomCompat=!0;var $dH=_.B(function(x){return _.M("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.M("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.M(_.YO,{icon:function(){var L;return(L=x.data())==null?void 0:L.iconType},
className:function(){var L;switch((L=x.data())==null?void 0:L.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 L;return((L=x.data())==null?void 0:L.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.M("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.M(_.kP,{text:function(){var L;
return(L=x.data())==null?void 0:L.text},
className:function(){var L;return((L=x.data())==null?void 0:L.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"nd");var rW_=_.B(function(x){x=_.ym(x,{config:void 0,themeOverride:void 0});var L=x.data,D=x.config,S=x.themeOverride;x={};x=_.gF("ytmLpOfferCardOptionViewModelHost",(x.ytmLpOfferCardOptionViewModelPremiumForceDarkMode=function(){var y;return(y=S())==null?void 0:y.useDarkTheme},x));
var Q=_.kO(function(){var y,E;(y=D())==null||(E=y.handleRadioButtonClick)==null||E.call(y,L());return!1}),J=function(){var y;
return(y=D())==null?void 0:y.shouldDisplayRadioButton},Z=function(){var y;
return(y=L().featureListItems)!=null?y:[]};
return _.M("ytm-lp-offer-card-option-view-model",null,_.M("div",{class:x,"on:click":_.kO(function(){if(J()){var y,E;(y=D())==null||(E=y.handleRadioButtonClick)==null||E.call(y,L())}return!1})},_.M(_.d,{cond:J,
then:function(){return _.M("div",null,_.M("input",{type:"radio","on:click":Q,class:"ytmLpOfferCardOptionViewModelInputEl","prop:checked":function(){var y;return!((y=D())==null||!y.isOptionSelected)}}))}}),_.M("div",null,_.M("div",{class:"ytmLpOfferCardOptionViewModelEyebrowText"},_.M(_.kP,{text:function(){return L().eyebrowText}})),_.M("div",{class:"ytmLpOfferCardOptionViewModelTitle"},_.M(_.kP,{text:function(){return L().title}})),_.M("div",{class:"ytmLpOfferCardOptionViewModelSubtitle"},_.M(_.kP,
{text:function(){return L().subtitle}})),_.M(_.d,{cond:function(){return Z().length>0},
then:function(){return _.M("div",{class:"ytmLpOfferCardOptionViewModelFeatureListItems"},_.M(_.Fj,{data:Z},{lpFeatureListItemViewModel:$dH}))}}),_.M("div",{class:"ytmLpOfferCardOptionViewModelDescription"},_.M(_.kP,{text:function(){return L().description}})))))},"od");
rW_.idomCompat=!0;var Nl2=_.B(function(x){var L=x.data;var D=x.themeOverride;x=_.O(_.mU(function(){var J,Z=(J=L().offerOptions)==null?void 0:J[0];return _.g(Z,lq2)||{}}));
var S=x.next().value,Q=x.next().value;x={};return _.M("ytm-lp-offer-card-view-model",null,_.M("div",{class:_.gF("ytmLpOfferCardViewModelHost",(x.ytmLpOfferCardViewModelPremiumForceDarkMode=function(){return!(D==null||!D().useDarkTheme)},x))},_.M("div",{class:"ytmLpOfferCardViewModelTitleContainer"},_.M(_.d,{cond:function(){return L().titleIconType},
then:function(){return _.M("div",{class:"ytmLpOfferCardViewModelIconContainer"},_.M(_.YO,{icon:function(){var J;return((J=L().titleIconType)==null?void 0:J.toString())||""}}))}}),_.M("div",{class:"ytmLpOfferCardViewModelTitleText"},_.M(_.kP,{text:function(){return L().title}})),_.M(_.Fj,{data:function(){return L().titleBadge}},{badgeViewModel:function(J){return _.M("div",{class:"ytmLpOfferCardViewModelTitleBadge"},_.M(_.G2,{data:J.data}))}})),_.M("div",{class:"ytmLpOfferCardViewModelOfferOptionsContainer"},
_.M(_.Fj,{data:function(){return L().offerOptions}},{lpOfferCardOptionViewModel:function(J){var Z=J.data;
return _.M(_.I1,null,_.M("div",{class:"ytmLpOfferCardViewModelDivider"}),_.M(rW_,{data:Z,config:function(){var y;return{shouldDisplayRadioButton:(L().offerOptions||[]).length>1,isOptionSelected:Z().id===((y=S())==null?void 0:y.id),handleRadioButtonClick:function(E){return void Q(E)}}},
themeOverride:D}))}})),_.M("div",{class:"ytmLpOfferCardViewModelPurchaseButtonContainer"},_.M(_.Fj,{data:function(){var J;
return(J=S())==null?void 0:J.purchaseButtonOverride}},{buttonViewModel:_.qP}))))},"pd");
Nl2.idomCompat=!0;var iMG=_.B(function(x){var L=x.data;var D=x.themeOverride;x={};x=_.gF("ytmLpOfferCardSectionViewModelHost",(x.ytmLpOfferCardSectionViewModelPremiumForceDarkMode=function(){var S;return D==null?void 0:(S=D())==null?void 0:S.useDarkTheme},x));
return _.M("ytm-lp-offer-card-section-view-model",null,_.M("div",{class:x},_.M(_.d,{cond:function(){return L().title!==void 0},
then:function(){return _.M("div",{class:"ytmLpOfferCardSectionViewModelTitleContainer"},_.M("div",{class:"ytmLpOfferCardSectionViewModelTitleText"},_.M(_.kP,{text:function(){return L().title}})),_.M(_.d,{cond:function(){return L().subtitle},
then:function(){return _.M("div",{class:"ytmLpOfferCardSectionViewModelSubtitleText"},_.M(_.kP,{text:function(){return L().subtitle}}))}}))}}),_.M("div",{class:"ytmLpOfferCardSectionViewModelOfferCardsContainer"},_.M(_.Fj,{data:function(){return L().offerCards}},{lpOfferCardViewModel:function(S){return _.M("div",{class:"ytmLpOfferCardSectionViewModelOfferCardContainer"},_.M(Nl2,{data:S.data,
themeOverride:D}))}})),_.M(_.d,{cond:function(){return L().footer},
then:function(){return _.M("div",{class:"ytmLpOfferCardSectionViewModelFooterText"},_.M(_.kP,{text:function(){return L().footer}}))}})))},"qd");var fj2=_.B(function(x){var L=x.data;return _.M("lp-offer-table-cell-content-view-model",null,_.M("div",{class:"ytLpOfferTableCellContentViewModelHost"},_.M(_.GS,null,_.M(_.TS,{when:function(){return L().title}},function(){return _.M(_.kP,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellTitle",
text:function(){return L().title}})}),_.M(_.TS,{when:function(){return L().subTitle}},function(){return _.M(_.kP,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellSubtitle",
text:function(){return L().subTitle}})}),_.M(_.TS,{when:function(){return L().featureDescription}},function(){return _.M(_.kP,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDescription",
text:function(){return L().featureDescription}})}),_.M(_.TS,{when:function(){return L().description}},function(){return _.M(_.kP,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellDescription",
text:function(){return L().description}})}),_.M(_.TS,{when:function(){return L().iconType}},function(){return _.M("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellIcon"},_.M(_.YO,{icon:function(){return L().iconType.toString()}}))}),_.M(_.TS,{when:function(){return L().purchaseButton}},function(){return _.M(_.Fj,{data:function(){return L().purchaseButton}},{buttonViewModel:function(D){return _.M("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellPurchaseButton"},_.M(_.qP,
{data:D.data}))}})}),_.M(_.TS,{when:function(){return L().note}},function(){return _.M(_.kP,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellNote",
text:function(){return L().note}})}),_.M(_.TS,{when:function(){return L().featureDetail}},function(){return _.M(_.kP,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDetail",
text:function(){return L().featureDetail}})}),_.M(_.TS,{when:function(){return L().badge}},function(){return _.M(_.Fj,{data:function(){return L().badge}},{badgeViewModel:_.G2})}))))},"rd");
fj2.idomCompat=!0;var o_2=_.B(function(x){var L=x.data;return _.M("lp-offer-table-cell-view-model",null,_.M("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(L().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;"}}},_.M(_.Fj,{data:function(){return L().contents}},{lpOfferTableCellContentViewModel:fj2})))},
"sd");
o_2.idomCompat=!0;var ajd=_.B(function(x){var L=x.data;var D=x.lpTableIsFirstRow;var S=x.lpTableIsLastRow;var Q=function(){return(D==null?0:D())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowHeaderCell":"ytLpOfferTableRowViewModelLpOfferTableRowHeaderCell"},J=function(){return(D==null?0:D())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowContentCell":(S==null?0:S())?"ytLpOfferTableRowViewModelLpOfferTableLastRowContentCell":"ytLpOfferTableRowViewModelLpOfferTableRowContentCell"};
return _.M("ytm-lp-offer-table-row-view-model",null,_.M("div",{class:"ytLpOfferTableRowViewModelHost"},_.M(_.Fj,{data:function(){return L().rowHeaderCell}},{lpOfferTableCellViewModel:function(Z){return _.M("div",{class:Q},_.M(o_2,{data:Z.data}))}}),_.M(_.Fj,{data:function(){return L().contentCells}},{lpOfferTableCellViewModel:function(Z){return _.M("div",{class:J},_.M(o_2,{data:Z.data}))}})))},"td");
ajd.idomCompat=!0;var zn2=_.B(function(x){var L=x.data;var D=x.themeOverride;var S=_.yY().resolve(_.ZN(_.Dt)),Q=function(){return _.g(L().logo,DXH)||{}};
x={};return _.M("ytm-lp-offer-table-section-view-model",null,_.M("div",{class:"ytLpOfferTableViewModelHost"},_.M(_.d,{cond:function(){var J,Z;return S&&S()||(D==null?0:D().useDarkTheme)?(J=Q())==null?void 0:J.imageDark:(Z=Q())==null?void 0:Z.imageLight},
then:function(J){return _.M(_.Ku,{data:J,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var Z,y,E;return(E=(Z=Q())==null?void 0:(y=Z.accessibilityData)==null?void 0:y.label)!=null?E:""},
targetWidth:140,targetHeight:40,height:40,className:"ytLpOfferTableViewModelLpOfferTableSectionLogo",useWidth:!1})}}),_.M("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionTitle"},_.M(_.kP,{text:function(){return L().title}})),_.M("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionSubtitle"},_.M(_.kP,{text:function(){return L().subtitle}})),_.M(_.d,{cond:function(){return L().disclaimers},
then:function(J){return _.M("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionDisclaimers"},_.M(_.R1,{each:J},function(Z){return _.M("div",null,_.M(_.kP,{text:Z}))}))}}),_.M("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionRows"},_.M(_.Fj,{data:function(){return L().rows}},{lpOfferTableRowViewModel:function(J,Z){return _.M(ajd,{data:J.data,
lpTableIsFirstRow:function(){return Z()===0},
lpTableIsLastRow:function(){return Z()===L().rows.length-1}})}})),_.M("div",{class:_.gF((x.ytLpOfferTableViewModelLpOfferTableSectionFooterWrapper=function(){return L().hasFooterBackground},x))},_.M(_.d,{cond:function(){return L().footer},
then:function(){return _.M("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooter"},_.M(_.kP,{text:function(){return L().footer}}))}}),_.M(_.d,{cond:function(){return L().footerTitle},
then:function(){return _.M("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterTitle"},_.M(_.kP,{text:function(){return L().footerTitle}}))}}),_.M(_.d,{cond:function(){return L().footerDescription},
then:function(){return _.M("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.M(_.kP,{text:function(){return L().footerDescription}}))}}),_.M(_.d,{cond:function(){return L().footerDescriptions},
then:function(J){return _.M("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.M(_.R1,{each:J},function(Z){return _.M("div",null,_.M(_.kP,{text:Z}))}))}}))))},"ud");
zn2.idomCompat=!0;var XwW=_.B(function(x){var L=x.data;var D=x.themeOverride;var S=_.yY().resolve(_.ZN(_.Dt)),Q=function(){var y;return D==null?void 0:(y=D())==null?void 0:y.useDarkTheme},J=function(){var y,E;
return S&&S()||Q()?(y=L().image)==null?void 0:y.imageDark:(E=L().image)==null?void 0:E.imageLight};
x={};x=_.gF("ytmLpSmallFeatureSectionViewModelHost",(x.ytmLpSmallFeatureSectionViewModelPremiumForceDarkMode=Q,x));var Z=function(){var y,E,P;return(P=(y=L().image)==null?void 0:(E=y.accessibilityData)==null?void 0:E.label)!=null?P:""};
return _.M("ytm-lp-small-feature-section-view-model",{class:x},_.M(_.d,{cond:function(){return J()&&!oSh},
then:function(){return _.M("div",{class:"ytmLpSmallFeatureSectionViewModelFeatureImageContainer"},_.M(_.Ku,{data:function(){return J()},
alt:Z,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.M("div",{class:"ytmLpSmallFeatureSectionViewModelContentSection"},_.M("div",{class:"ytmLpSmallFeatureSectionViewModelTitleText"},_.M(_.d,{cond:function(){return L().title},
then:function(y){return _.M(_.kP,{text:y})}})),_.M("div",{class:"ytmLpSmallFeatureSectionViewModelDescriptionText"},_.M(_.kP,{text:function(){return L().description}}))))},"vd");
XwW.idomCompat=!0;var cWQ=_.B(function(x){var L=x.data;var D=x.themeOverride;x={};return _.M("ytm-lp-small-feature-section-group-view-model",null,_.M("div",{class:_.gF("ytmLpSmallFeatureSectionGroupViewModelHost",(x.ytmLpSmallFeatureSectionGroupViewModelPremiumForceDarkMode=function(){return!(D==null||!D().useDarkTheme)},x))},_.M("div",{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeaturesContainer"},_.M(_.Fj,{data:function(){return L().smallFeatures}},{lpSmallFeatureSectionViewModel:function(S){return _.M("div",
{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeatureContainer"},_.M(XwW,{data:S.data,
themeOverride:D}))}}))))},"wd");
cWQ.idomCompat=!0;_.dF(_.B(function(x){var L=x.data;var D=function(){return L().forcedTheme==="USER_INTERFACE_THEME_DARK"},S=function(){return L().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},Q=function(){var Z="",y,E;
var P=_.yY().resolve(_.ZN(_.Dt));P=D()||(P==null?0:P())?(y=L().themedImageViewModel)==null?void 0:y.imageDark:(E=L().themedImageViewModel)==null?void 0:E.imageLight;(y=chG((P==null?void 0:P.sources)||[]))&&y.url&&(Z=S()?"background-image: linear-gradient(to bottom, transparent, "+(L().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.$z(y.url)+");":"background-image: url("+_.$z(y.url)+");");return Z},J=function(){return{useDarkTheme:D()}};
x={};return _.M("yt-section-group-view-model",null,_.M("div",{class:_.gF("yt-lp-section-group-view-model",(x["yt-lp-section-group-view-model--premium-force-dark-mode"]=D,x["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return L().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},x))},_.M(_.d,{cond:function(){return Q().length},
then:function(){var Z={};return _.M("div",{class:_.gF("yt-lp-section-group-view-model__bg-image",(Z["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=S,Z)),style:Q})}}),_.M("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.M(_.Fj,{data:function(){return L().sections}},{lpFaqSectionViewModel:function(Z){return _.M(Blh,{data:Z.data,
themeOverride:J})},
lpHeaderSectionViewModel:function(Z){return _.M(Wf_,{data:Z.data,themeOverride:J})},
lpHeadlineSectionViewModel:function(Z){return _.M(qT_,{data:Z.data,themeOverride:J})},
lpLargeFeatureSectionViewModel:function(Z){return _.M(AW2,{data:Z.data,themeOverride:J})},
lpOfferCardSectionViewModel:function(Z){return _.M(iMG,{data:Z.data,themeOverride:J})},
lpComplexOfferCardSectionViewModel:function(Z){return _.M(Cnh,{data:Z.data})},
lpOfferTableSectionViewModel:function(Z){return _.M(zn2,{data:Z.data,themeOverride:J})},
lpSmallFeatureSectionGroupViewModel:function(Z){return _.M(cWQ,{data:Z.data,themeOverride:J})},
lpCouponBannerViewModel:function(Z){return _.M(lj2,{data:Z.data})}}))))},"xd"),"yt-section-group-view-model",{props:{data:_.pJ}});var Qhw=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.n_Q=_.B(function(x){function L(){if(Qhw.has(x.data().displayType)){var P=!S(),v;if((v=x.disableDeselection)==null||!v.call(x)||P){x.data().selected=P;v=Object.assign({},Z(),{selected:P});y(v);var V;(V=x.callback)==null||V.call(x,v,P)}}}
var D=_.x3("chip-view-model"),S=function(){var P,v;return!!(((P=x.selected)==null?void 0:P.call(x))!==void 0?(v=x.selected)==null?0:v.call(x):Z().selected)},Q=_.O(_.mU(x.data)),J=Q.next().value;
Q=Q.next().value;var Z=J,y=Q,E=_.mF(Sih,function(){return x.data().chipEntityKey||""});
return _.M("chip-view-model",{class:"ytChipViewModelHost",el:D},_.M(ebA,{data:function(){var P,v=Object.assign({},Z(),{selected:S()}),V=E(),h=(P=x.disableDeselection)==null?void 0:P.call(x);a:switch(v.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":P=1;break a;case "CHIP_VIEW_MODEL_DISPLAY_TYPE_STATELESS":P=3;break a;default:P=0}return{text:(V==null?void 0:V.text)||v.text,state:v.disabled?1:v.selected?0:2,type:P,onTap:JJp(v,D,L,h),
accessibilityLabel:v.accessibilityLabel||v.text}}}))},"yd");
_.n_Q.idomCompat={callbacks:{callback:!0}};_.tkh=_.B(function(x){var L=_.mF(D7f,function(){var Z;return(Z=x.data())==null?void 0:Z.chipBarStateEntityKey}),D=function(){return x.data().disableDeselection},S=_.O(_.mU(function(){var Z;
if(((Z=L())==null?void 0:Z.selectedIndex)!=void 0)return L().selectedIndex;var y,E;Z=_.O(((y=x.data())==null?void 0:(E=y.chips)==null?void 0:E.entries())||[]);for(y=Z.next();!y.done;y=Z.next()){y=_.O(y.value);E=y.next().value;y=y.next().value;var P=void 0;if((P=_.g(y,_.P5))==null?0:P.selected)return E}return-1})),Q=S.next().value,J=S.next().value;
return _.M("chip-bar-view-model",{class:_.gF("ytChipBarViewModelHost",x.className),role:"tablist"},_.M(_.Fj,{data:function(){return x.data().chips}},{chipViewModel:function(Z,y){return _.M("div",{class:"ytChipBarViewModelChipWrapper"},_.M(_.n_Q,{data:Z.data,
selected:function(){return y()===Q()},
callback:function(E,P){E=!!P;P=y();J(E?P:-1);var v,V=(v=x.data())==null?void 0:v.chipBarStateEntityKey;V&&E&&_.Ok(_.TR("chipBarStateEntity",V,{key:V,selectedIndex:P}))},
disableDeselection:x.disableDeselection||D}))}}))},"zd");_.dF(_.tkh,"chip-bar-view-model",{props:{data:_.Il,className:_.Il,disableDeselection:_.Il}});_.x2R=_.B(function(x){var L=x.data;x={};return _.M("divider-view-model",{class:_.gF("dividerViewModelHost",(x.dividerViewModelInsetThinPadding=function(){return L().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},x))},_.M("div",{class:_.gF("dividerViewModelBaseDivider",function(){return KYs(L().dividerStyle)}),
style:_.bc({"background-color":function(){return L().backgroundColor?_.zF(L().backgroundColor):void 0}})}))},"Ad");
_.x2R.idomCompat=!0;_.dF(_.x2R,"divider-view-model",{props:{data:_.pJ}});var bS=new Map,mB=new Map,yJc=0,Yc;var vbG=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],Hsh={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var Lyr,D2C;Lyr=function(x){return function(L){return function(){return(L==null?void 0:L())!==void 0?String(L())+x:void 0}}};
_.ON=Lyr("px");D2C=Lyr("s");var SnQ=PTs(function(x){return x.targetGroupId}).useUpdatableData;_.JvC=_.B(function(x){function L(xf){return function(){var K3=T().numItemsPerGridRow,P4=xf()*K3;K3=P4+K3;var kf,H4;return(H4=(kf=S().contents)==null?void 0:kf.slice(P4,K3))!=null?H4:[]}}
var D=_.ym(x,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),S=D.data,Q=D.layoutContainerWidth,J=D.shouldUseOwnContainerSize,Z=D.marginSettings,y=rlf(),E=_.O(SnQ(function(){var xf,K3;return{targetGroupId:(xf=S().targetingContext)==null?void 0:(K3=xf.targetGroupId)==null?void 0:K3[0]}})).next().value;
D=_.O(_.HB(!0,void 0,"f25nob"));var P=D.next().value,v=D.next().value,V=function(){var xf,K3=(xf=_.g(S().showMoreButton,_.de))==null?void 0:xf.trackingParams;K3&&_.AM(_.sk(),K3);v(!1)},h=function(){var xf,K3=(xf=_.g(S().showLessButton,_.de))==null?void 0:xf.trackingParams;
K3&&_.AM(_.sk(),K3);v(!0)};
D=_.x3("grid-shelf-view-model");var H=_.gb0(D,{canHaveZeroSize:!1}),k=function(){var xf;return(xf=S().contentAspectRatio)!=null?xf:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},T=_.m5(function(){var xf=_.fX({containerWidth:J()&&H.width()>0?H.width()||Q():Q(),
sizing:"EXTRA_COMPACT",marginSettings:Z(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:xf.maxContainerWidth,numItemsPerGridRow:xf.numItems,contentPadding:J()?xf.margin:xf.contentMargin,itemWidth:xf.itemWidth,itemMargin:xf.gutter/2}},void 0,"b3gcJf"),G=function(){if(S().enableVerticalExpansion){if(P())return U();
var xf,K3,P4=(K3=(xf=S().contents)==null?void 0:xf.length)!=null?K3:0;return Math.ceil(P4/T().numItemsPerGridRow)}return T().numItemsPerGridRow<=2?2:1},U=function(){var xf;
return Math.ceil(((xf=S().minCollapsedItemCount)!=null?xf:1)/T().numItemsPerGridRow)},l=function(){return S().enableVerticalExpansion&&S().showLessButton&&!P()&&G()>U()},X=function(){var xf,K3;
return S().enableVerticalExpansion&&S().showMoreButton&&P()&&((K3=(xf=S().contents)==null?void 0:xf.length)!=null?K3:0)>T().numItemsPerGridRow*U()},f=function(){return!l()},N=function(){return!X()},z={};
return _.M("grid-shelf-view-model",{class:_.gF("ytGridShelfViewModelHost",x.className,(z.ytGridShelfViewModelHostHasBottomButton=function(){return l()||X()},z.ytGridShelfViewModelHostIsDismissed=function(){var xf,K3=(xf=E())!=null?xf:{};
xf=K3.behavior;var P4=K3.isDismissed,kf=K3.stamperContextTargetId;K3=K3.stamperIndex;if(!(_.u("mweb_see_fewer_shorts_group_dismissal")&&P4&&xf&&kf))return!1;var H4;P4=y;for(var p3,w0,Rn=((p3=P4)==null?0:p3.targetId)?_.WB((w0=P4)==null?void 0:w0.targetId):void 0;((H4=P4)==null?0:H4.parent)&&Rn!==kf;)P4=P4.parent,w0=p3=void 0,Rn=((p3=P4)==null?0:p3.targetId)?_.WB((w0=P4)==null?void 0:w0.targetId):void 0;H4=Rn===kf?P4:void 0;if(!H4)return!1;var lG;kf=H4==null?void 0:(lG=H4.stamperIndex)==null?void 0:
lG.call(H4);return xf==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_ALL_ITEMS"||xf==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&kf!=null&&K3!=null&&kf>K3},z)),
el:D,style:_.bc({"margin-left":(0,_.ON)(function(){return T().contentPadding}),
"margin-right":(0,_.ON)(function(){return T().contentPadding})})},_.M(_.d,{cond:function(){return _.g(S().header,MQR)},
then:function(xf){return _.M(_.AN,{data:xf,disableHorizontalPadding:!0})}}),_.M("div",null,_.M(_.R1,{each:function(){return Array(G())}},function(xf,K3){return _.M(Qxd,{className:x.className,
items:L(K3),responsiveGridShelfLayout:T,contentAspectRatio:k})})),_.M("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.M(_.Fj,{data:function(){return S().showMoreButton}},{buttonViewModel:function(xf){return _.M("div",{hidden:N},_.M(_.qP,{data:xf.data,
onClick:V}))}}),_.M(_.Fj,{data:function(){return S().showLessButton}},{buttonViewModel:function(xf){return _.M("div",{hidden:f},_.M(_.qP,{data:xf.data,
onClick:h}))}})))},"Cd");
_.JvC.idomCompat=!0;var Qxd=_.B(function(x){var L=x.items;var D=x.responsiveGridShelfLayout;var S=x.contentAspectRatio;x=x.className;var Q=_.x3("div");Zs0(Q,function(){a:{var Z=Q.value;for(var y=L(),E=[],P=0;P<y.length;P++){var v=_.g(y[P],AMG);if(!v||v==null||!v.inlinePlayerData){Z=null;break a}var V=Z.children.item(P);if(!V){Z=null;break a}E.push({thumbnailElement:V,videoData:v})}Z={gridVideoPreviewData:{gridItems:E}}}return Z});
var J=(0,_.ON)(function(){return-D().itemMargin});
return _.M("div",{el:Q,class:_.gF("ytGridShelfViewModelGridShelfRow",x),style:_.bc({"margin-left":J,"margin-right":J})},_.M(_.Fj,{data:L,replacementWrapper:function(Z){return _.M(KyA,{responsiveGridShelfLayout:D},Z)}},{shortsLockupViewModel:function(Z){return _.M(KyA,{responsiveGridShelfLayout:D},_.M(llA,{data:Z.data,
aspectRatio:function(){return S()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,titleStyle:_.u("mweb_enable_one_line_title_on_shorts")?1:_.u("mweb_enable_two_line_title_on_shorts")?2:void 0,className:void 0}))},
lockupViewModel:function(Z){return _.M(KyA,{responsiveGridShelfLayout:D},_.M(_.qr,{data:Z.data}))}}))},"Dd"),KyA=_.B(function(x){return _.M("div",{style:_.bc({width:(0,_.ON)(function(){return x.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+x.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},x.children)},"Ed");
_.JvC.idomCompat=!0;_.dF(_.JvC,"grid-shelf-view-model",{props:{data:_.pJ,layoutContainerWidth:_.pJ,shouldUseOwnContainerSize:_.pJ,marginSettings:_.pJ,className:_.pJ}});_.OQi=_.B(function(x){var L=_.O(_.HB(!1,void 0,"FVl30c")),D=L.next().value,S=L.next().value;L={};return _.M("yt-alert-banner-view-model",{class:_.gF("ytAlertBannerViewModelHost",x.className,function(){var Q;a:switch((Q=x.data())==null?void 0:Q.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":Q="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":Q="ytAlertBannerViewModelWarning";break a;default:Q="ytAlertBannerViewModelInformational"}return Q},(L.ytAlertBannerViewModelDismissed=
D,L.ytAlertBannerViewModelFullbleed=x.fullbleed,L.ytAlertBannerViewModelNarrow=x.narrow,L.ytAlertBannerViewModelIsInRichGrid=x.isInRichGrid,L))},_.M(_.d,{cond:function(){var Q;
return!((Q=x.data())==null?0:Q.hideIcon)},
then:function(){return _.M("div",{class:"ytAlertBannerViewModelIcon"},_.M(_.YO,{icon:function(){return"info_circle"}}))}}),_.M("div",{class:"ytAlertBannerViewModelOuterContainer"},_.M("div",{class:"ytAlertBannerViewModelContainer"},_.M("div",{class:"ytAlertBannerViewModelContent"},_.M("div",{class:"ytAlertBannerViewModelHeading"},_.M(_.kP,{text:function(){var Q;
return(Q=x.data())==null?void 0:Q.heading}})),_.M("div",{class:"ytAlertBannerViewModelBody"},_.M(_.kP,{text:function(){var Q;
return(Q=x.data())==null?void 0:Q.body}})))),_.M(_.Fj,{data:function(){var Q;
return(Q=x.data())==null?void 0:Q.actionButton}},{buttonViewModel:function(Q){return _.M(_.qP,{data:Q.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.M(_.Fj,{data:function(){var Q;
return(Q=x.data())==null?void 0:Q.dismissButton}},{buttonViewModel:function(Q){return _.M(_.qP,{data:Q.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var J;((J=x.data())==null?0:J.disableLocalDismissBehavior)||S(!0)}})}}))},"Fd");_.dF(_.OQi,"yt-alert-banner-view-model",{props:{data:_.pJ,fullbleed:_.pJ,narrow:_.pJ,isInRichGrid:_.pJ,className:_.pJ}});var ZQ2;_.yv_=_.B(function(x){return _.M("basic-content-view-model",{class:_.gF("ytBasicContentViewModelHost",_.ZH(x.className))},_.M(_.d,{cond:function(){return x.data().headline},
then:function(L){return _.M("div",{class:"ytBasicContentViewModelHeadline"},_.M(_.kP,{text:L}))}}),_.M(_.R1,{each:function(){return x.data().paragraphs||[]},
keyBy:"INDEX"},function(L){return _.M("div",{class:"ytBasicContentViewModelParagraph"},_.M(_.d,{cond:function(){var D=L();return!!(D.header||D.customHeader||D.headline)},
then:function(){return _.M(ZQ2,{paragraph:L})}}),_.M(_.d,{cond:function(){return L().asset||L().text},
then:function(){return _.M("div",{class:"ytBasicContentViewModelParagraphContent"},_.M(_.d,{cond:function(){return L().asset},
then:function(D){return _.M("div",{class:"ytBasicContentViewModelParagraphAsset"},_.M(_.Fj,{data:D},{contentPreviewImageViewModel:_.CD}))}}),_.M(_.d,{cond:function(){return L().text},
then:function(D){return _.M("div",{class:"ytBasicContentViewModelParagraphText"},_.M(_.kP,{text:D}))}}))}}))}))},"Gd");
ZQ2=_.B(function(x){var L=x.paragraph;return _.M(_.I1,null,_.M(_.d,{cond:function(){return L().headline},
then:function(D){return _.M(_.kP,{text:D,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.M(_.Fj,{data:function(){return L().header||L().customHeader}},{sectionHeaderViewModel:function(D){return _.M(_.AN,{data:D.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"Hd");_.ID2=_.B(function(x){var L=function(){return x.data().orientation==="LINEAR_LAYOUT_ORIENTATION_HORIZONTAL"};
return _.M("yt-linear-layout-view-model",{class:_.gF("ytLinearLayoutViewModelHost",function(){a:switch(x.data().orientation){case "LINEAR_LAYOUT_ORIENTATION_HORIZONTAL":var D="ytLinearLayoutViewModelHorizontal";break a;default:D="ytLinearLayoutViewModelVertical"}return D})},_.M(_.Fj,{data:function(){return x.data().items}},{lockupViewModel:function(D){return _.M("div",{style:_.bc({"margin-bottom":function(){return L()?void 0:"8px"},
"margin-right":function(){return L()?"8px":void 0}})},_.M(_.qr,{data:D.data,
containerType:function(){return L()?2:3},
sizing:"COMPACT",thumbnailFixedWidth:function(){return L()?void 0:"33%"}}))},
basicContentViewModel:function(D){return _.M("div",{style:_.bc({"margin-bottom":function(){return L()?void 0:"8px"},
"margin-right":function(){return L()?"8px":void 0}})},_.M(_.yv_,{data:D.data}))}}))},"Id");_.dF(_.ID2,"yt-linear-layout-view-model",{props:{data:_.pJ}});_.Zy=_.B(function(x){var L=x.data;var D=x.callback;var S=x.selectionBehavior;var Q=x.disableChipsScrollAnimation;var J=_.Sc("div");x=_.O(_.HB(!0,void 0,"aUEsOc"));var Z=x.next().value,y=x.next().value;x=_.O(_.HB(!1,void 0,"V0aKld"));var E=x.next().value,P=x.next().value,v=!1,V=0;_.UX(function(){y(k());P(T())});
x=_.O(_.mU(function(){var xf={};return L().autoselectedChipIndex!=null?(xf[L().autoselectedChipIndex]=!0,xf):{}}));
var h=x.next().value,H=x.next().value,k=function(){var xf=J.value;return xf==null||xf.scrollLeft-1<=0},T=function(){var xf=J.value;
return xf==null?!1:xf.scrollLeft+1>=(xf==null?NaN:xf.scrollWidth)-(xf==null?NaN:xf.clientWidth)},G=function(){return L().isHorizontallyScrollable},U=function(xf){J.value!=null&&(_.$6("HTML_DIR")==="rtl"&&(xf=-xf),J.value.scrollBy({left:xf,
behavior:(Q==null?0:Q())?"instant":"smooth"}))},l=function(){U(-320)},X=function(){U(320)},f=_.kO(function(xf){v=!0;
V=xf.clientX}),N=_.kO(function(xf){if(v){xf=xf.clientX;
var K3=xf-V;V=xf;var P4;(P4=J.value)==null||P4.scrollBy({left:-K3})}}),z=_.kO(function(){var xf=k(),K3=T();
xf!==Z()&&y(xf);K3!==E()&&P(K3)});
_.OU("pointerup",function(){v&&(v=!1)});
return _.M("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.M(_.U0,{contentId:function(){return L().contentId},
useModernStyle:!0},function(){var xf={},K3={};return _.M("div",null,_.M(_.d,{cond:function(){return L().title},
then:function(){return _.M("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.M("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},function(){return L().title}),_.M(_.Fj,{data:function(){return L().overflowButton}},{buttonViewModel:_.qP}))}}),_.M("div",{class:"ytChipsShelfViewModelChipsShelfContent"},_.M(_.d,{cond:function(){return L().previousButton},
then:function(){var P4={};return _.M("div",{class:_.gF("ytChipsShelfViewModelLeftArrowContainer",(P4.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return Z()},P4))},_.M(_.Fj,{data:function(){return L().previousButton}},{buttonViewModel:function(kf){return _.M(_.qP,{data:kf.data,
className:"ytChipsShelfViewModelLeftArrow",onClick:l})}}))}}),_.M("div",{el:J,
"on:pointerdown":f,"on:pointermove":N,"on:scroll":z,class:_.gF("ytChipsShelfViewModelChipsScrollContainer",(xf.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=G,xf))},_.M("div",{class:_.gF("ytChipsShelfViewModelChipsContainer",(K3.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=G,K3.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,K3)),role:"tablist"},_.M(_.Fj,{data:function(){return L().contents}},{chipViewModel:function(P4,kf){return _.M("div",
{class:"ytChipsShelfViewModelChipWrapper"},_.M(_.n_Q,{data:P4.data,
callback:function(H4,p3){var w0=kf(),Rn,lG=(Rn=S==null?void 0:S())!=null?Rn:0;lG===1||lG===2?(Rn={},H((Rn[w0]=p3,Rn))):(Rn={},H(Object.assign({},h(),(Rn[w0]=p3,Rn))));D==null||D(H4,p3,w0)},
disableDeselection:function(){return(S==null?void 0:S())===1},
selected:function(){return!!h()[kf()]}}))}}))),_.M(_.d,{cond:function(){return L().nextButton},
then:function(){var P4={};return _.M("div",{class:_.gF("ytChipsShelfViewModelRightArrowContainer",(P4.ytChipsShelfViewModelRightArrowContainerIsHidden=E,P4))},_.M(_.Fj,{data:function(){return L().nextButton}},{buttonViewModel:function(kf){return _.M(_.qP,{data:kf.data,
className:"ytChipsShelfViewModelRightArrow",onClick:X})}}))}})))}))},"Kd");
_.Zy.idomCompat={callbacks:{callback:!0}};_.dF(_.Zy,"chips-shelf-view-model",{props:{data:_.pJ,callback:_.Il,selectionBehavior:_.pJ,disableChipsScrollAnimation:_.pJ}});_.dF(_.B(function(x){return _.M("yt-comment-filter-context-view-model",{class:_.gF("ytCommentFilterContextHost",x.className)},_.M(_.kP,{text:function(){return x.data().text}}))},"Ld"),"yt-comment-filter-context-view-model",{props:{data:_.pJ,
className:_.Il}});var Edr=_.B(function(x){x=_.ym(x,{disabled:!1});var L=x.active,D=x.disabled;x={};x=_.gF("ytSwitchShapeTrack",(x.ytSwitchShapeTrackActive=function(){return L()},x.ytSwitchShapeTrackDisabled=function(){return D()},x));
var S={};S=_.gF("ytSwitchShapeKnob",(S.ytSwitchShapeKnobActive=function(){return L()},S));
return _.M("switch-shape",{class:"ytSwitchShapeHost"},_.M("div",{class:x}),_.M("div",{class:S}))},"Md");var MX_=_.B(function(x){var L=_.ym(x,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),D=L.data;x=L.className;var S=L.handleOnTapEventInParent,Q=L.parentActive,J=L.onTap;L=_.O(_.mU(function(){var h;return(h=Q())!=null?h:D().switchedOnByDefault||!1}));
var Z=L.next().value,y=L.next().value,E=function(){return D().isDisabled},P=_.x3("button");
L=_.kO(function(h){return h.key==="Enter"?(h.preventDefault(),P.value.click(),!1):!0});
var v=_.kO(function(h){if(D().handleOnTapEventInParent||S())return!0;if(E())return!1;if(J)return J(h),!0;plf(D(),Z(),h);y(!Z());return!1}),V={};
V=_.gF("ytSwitchButtonViewModelButton",(V.ytSwitchButtonViewModelTappable=function(){return!E()},V));
return _.M("switch-button-view-model",{class:_.gF("ytSwitchButtonViewModelHost",x)},_.M("button",{el:P,class:V,"on:click":v,"on:keydown":L,"aria-label":function(){return Z()?D().a11yLabelSwitchedOn:D().a11yLabelSwitchedOff},
"aria-checked":Z,"aria-disabled":E,role:"switch"},_.M(Edr,{active:Z,disabled:E})))},"Nd");var d22=_.B(function(x){var L=x.data;var D=x.isLeading;var S=x.hideSelectionTextChevron;var Q=x.isToggled;var J=function(){return D()?L().leadingImage:L().trailingImage},Z=function(){a:switch(L().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var v="expand_more";
break a;default:v="chevron_right"}return v};
x={};var y=_.gF("yt-list-item-view-model__image-container",(x["yt-list-item-view-model__leading"]=D,x["yt-list-item-view-model__trailing"]=function(){return!D()},x)),E=_.gF("yt-list-item-view-model__accessory","yt-list-item-view-model__image");
x={};var P=_.gF("yt-list-item-view-model__accessory",(x["yt-list-item-view-model__leading"]=D,x["yt-list-item-view-model__trailing"]=function(){return!D()},x));
return _.M(_.d,{cond:function(){var v=L(),V=D();return!!(V&&(v.leadingImage||v.leadingAccessory)||!V&&(v.trailingImage||v.trailingButton||v.trailingButtons||v.selectionText))},
then:function(){return _.M(_.I1,null,_.M(_.d,{cond:J,then:function(v){return _.M("div",{class:y,"aria-hidden":"true"},_.M(_.Ku,{data:v,alt:"",preserveWidth:!0,preserveHeight:!0,className:E,isToggled:Q}))}}),_.M(_.d,{cond:function(){return D()&&L().leadingAccessory},
then:function(){return _.M("div",{class:y},_.M(_.Fj,{data:function(){return L().leadingAccessory}},{avatarViewModel:function(v){return _.M(_.O0,{data:v.data,
avatarButtonCustomClassName:E})},
collectionThumbnailViewModel:function(v){return _.M(s9i,{data:v.data,maxHeight:36,width:56,includeStackHeight:!0})}}))}}),_.M(_.d,{cond:function(){return!D()&&L().trailingButton},
then:function(){return _.M("div",{class:"yt-list-item-view-model__button-container"},_.M(_.Fj,{data:function(){return L().trailingButton}},{buttonViewModel:function(v){return _.M(_.qP,{data:v.data,
className:P})}}))}}),_.M(_.d,{cond:function(){var v;
return!D()&&((v=L().trailingButtons)==null?void 0:v.buttons)},
then:function(){return _.M("div",{class:"yt-list-item-view-model__button-container"},_.M(_.Fj,{data:function(){var v;return(v=L().trailingButtons)==null?void 0:v.buttons}},{buttonViewModel:function(v){return _.M(_.qP,{data:v.data,
className:P})},
accountLinkButtonViewModel:function(v){return _.M(hPQ,{data:v.data,className:P})},
switchButtonViewModel:function(v){return _.M(MX_,{data:v.data,className:P})},
subscribeButtonViewModel:function(v){return _.M(_.Oa,{data:v.data,isOverlay:!1,animateWidth:!1,className:P})},
toggleButtonViewModel:function(v){return _.M(_.JT,{data:v.data,className:P})}}))}}),_.M(_.d,{cond:function(){return!D()&&!!L().selectionText},
then:function(){return _.M(_.I1,null,_.M(_.kP,{text:function(){return L().selectionText},
className:_.gF("yt-list-item-view-model__selection-text","yt-list-item-view-model__selection-text--trailing-selection-text")}),_.M(_.d,{cond:function(){return!(S==null?0:S())},
then:function(){return _.M(_.YO,{icon:Z,className:"yt-list-item-view-model__chevron-icon"})}}))}}))}})},"Od");var PRB=_.B(function(x){function L(){var H,k;E((k=(H=Q)==null?void 0:H.isKeyBoardInUse())!=null?k:!1)}
function D(){E(!1)}
function S(){var H;return y()?(H=x.focusedClassName)==null?void 0:H.call(x):""}
var Q=_.yY().resolve(_.ZN(_.CJ)),J=_.O(_.HB(!1,void 0,"zbdw0d")),Z=J.next().value;J=J.next().value;var y=Z,E=J,P=function(){var H,k;return((H=x.toggleable)==null?0:H.call(x))?(k=x.toggled)==null?void 0:k.call(x):void 0},v=_.kO(function(H){var k,T=(k=x.command)==null?void 0:k.call(x);
T&&_.yY().resolve(_.E2).resolveCommand(T);var G;(G=x.onClick)==null||G.call(x,H)}),V=_.kO(L),h=_.kO(D);
return _.M(_.d,{cond:function(){var H;if(H=x.command){H=x.command();H=ZRs(H);var k=H.href;H=!(!H.navigatingCommand||!k)}return H},
then:function(){return _.M(_.lr,Object.assign({},{command:x.command,style:x.style,ariaDescribedby:x.ariaDescribedby,ariaHidden:x.ariaHidden,ariaLabel:x.ariaLabel,ariaLabelledby:x.ariaLabelledby,ariaSelected:x.ariaSelected,disabled:x.disabled,dir:x.dir,tabIndex:x.tabIndex,target:x.target,title:x.title,onClick:x.onClick},{className:_.gF("ytButtonOrAnchorHost","ytButtonOrAnchorAnchor",x.className,function(){return S()}),
onFocusin:L,onFocusout:D,ariaCurrent:function(){var H,k;return(k=(H=x.ariaCurrent)==null?void 0:H.call(x))!=null?k:P()}}),x.children)},
else:function(){return _.M("button",{"on:click":v,"on:focusin":V,"on:focusout":h,class:_.gF("ytButtonOrAnchorHost","ytButtonOrAnchorButton",x.className,function(){return S()}),
style:x.style,"aria-describedby":x.ariaDescribedby,"aria-hidden":x.ariaHidden,"aria-label":x.ariaLabel,"aria-labelledby":x.ariaLabelledby,"aria-pressed":P,dir:x.dir,disabled:x.disabled,tabindex:x.tabIndex,title:x.title},x.children)}})},"Pd");var jx_=_.B(function(x){var L=x.data;var D=x.useButtonOrAnchor;var S=x.onTap;var Q=x.isTappableWithoutSelect;var J=x.isToggled;return _.M(_.d,{cond:function(){return L().title||L().subtitle},
then:function(){return _.M("div",{class:"yt-list-item-view-model__text-wrapper"},_.M(_.d,{cond:function(){return L().title},
then:function(Z){return _.M("div",{class:"yt-list-item-view-model__title-wrapper"},_.M(_.d,{cond:function(){return(D==null?void 0:D())&&(Q==null?void 0:Q())},
then:function(){return _.M(PRB,{command:function(){return _.WX(L().rendererContext)},
onClick:S,className:"yt-list-item-view-model__button-or-anchor",toggleable:J!==void 0,toggled:J},_.M(_.kP,{text:Z,className:"yt-list-item-view-model__title"}))},
else:function(){return _.M(_.kP,{text:Z,className:"yt-list-item-view-model__title"})}}))}}),_.M(_.d,{cond:function(){return L().subtitle},
then:function(Z){return _.M(_.kP,{text:Z,className:"yt-list-item-view-model__subtitle"})}}))}})},"Qd");var vdB=_.B(function(x){var L=x.data;var D=x.hideSelectionTextChevron;var S=x.TrailingAccessory;var Q=x.isToggled;var J=x.disabled;var Z=x.isSelectItem;var y=x.isCompact;var E=x.inPopup;var P=x.disableHorizontalPadding;var v=x.isTappableWithoutSelect;var V=x.useButtonOrAnchor;x=x.onTap;var h={};return _.M("div",{class:_.gF("yt-list-item-view-model__label",(h["yt-list-item-view-model__container"]=function(){return!(Z==null?0:Z())},h["yt-list-item-view-model__container--disabled"]=function(){return!!L().isDisabled||
!(J==null||!J())},h["yt-list-item-view-model__container--has-subtitle"]=function(){return!!L().subtitle},h["yt-list-item-view-model__container--compact"]=y,h["yt-list-item-view-model__container--tappable"]=v,h["yt-list-item-view-model__container--in-popup"]=E,h["yt-list-item-view-model__container--disable-horizontal-padding"]=function(){return(P==null?void 0:P())&&!(Z==null?0:Z())},h))},_.M(d22,{data:L,
isLeading:!0,hideSelectionTextChevron:D,isToggled:Q}),_.M(jx_,{data:L,onTap:x,useButtonOrAnchor:V,isTappableWithoutSelect:v,isToggled:Q}),_.M(_.d,{cond:function(){return!!S},
then:function(){return _.M("div",{class:"yt-list-item-view-model__trailing"},S&&_.M(S,null))},
else:function(){return _.M(d22,{data:L,isLeading:!1,hideSelectionTextChevron:D,isToggled:Q})}}))},"Rd");var hH_=_.B(function(x){var L=_.ym(x,{checked:!1});x=L.name;var D=L.onChange,S=L.onClick,Q=L.checked,J=L.labelRenderable,Z=L.hasLeadingLabel,y=L.labelClass,E=L.isCompact,P=L.selectElementClass;L=L.disableHorizontalPadding;var v="checkbox"+_.zp(_.KT),V=_.kO(function(k){S==null||S(k);return!1}),h=_.kO(function(k){D==null||D(k);
return!1}),H={};
return _.M("checkbox-shape",null,_.M("label",{class:_.gF("ytCheckboxShapeHost",y,(H.ytCheckboxShapeHostCompact=E,H.ytCheckboxShapeDisableHorizontalPadding=L,H))},_.M("input",{class:"ytCheckboxShapeInput",id:v,checked:Q,name:x,type:"checkbox","prop:checked":Q,"on:change":h,"on:click":V}),_.M(_.d,{cond:function(){return!(Z==null?0:Z())},
then:function(){return _.M(VXH,{isLeading:!0,selectElementClass:P})}}),_.M(_.d,{cond:function(){return!!J},
then:function(){return _.M("div",{class:"ytCheckboxShapeLabel"},J==null?void 0:J())}}),_.M(_.d,{cond:Z,
then:function(){return _.M(VXH,{isLeading:!1,selectElementClass:P})}})))},"Sd");
hH_.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var VXH=_.B(function(x){var L=x.selectElementClass;x={};return _.M("div",{class:_.gF("ytCheckboxShapeCheckbox",L,(x.ytCheckboxShapeCheckboxDefaultStyle=function(){return!(L==null?0:L())},x)),
"aria-hidden":"true"},_.M(_.YO,{icon:_.u("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.M(_.YO,{icon:_.u("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"Td");_.yp=_.B(function(x){var L=x.name;var D=x.onChange;var S=x.onClick;var Q=x.checked;var J=x.labelRenderable;var Z=x.useCheckIcon;var y=x.hasLeadingLabel;var E=x.labelClass;var P=x.isCompact;var v=x.selectElementClass;var V=x.ariaLabel;x=x.className;var h="radio"+_.zp(_.KT),H=_.x3("input"),k=_.kO(function(z){H.value.checked=!(Q==null||!Q());D==null||D(z);return!1}),T=_.kO(function(z){S==null||S(z);
return!1}),G=_.kO(function(z){_.u("enable_ios_webview_radio_button_responsiveness")&&(z.preventDefault(),H.value.click())}),U=_.O(_.HB(!1,void 0,"TcCZlf")),l=U.next().value,X=U.next().value;
U=_.kO(function(){var z;((z=_.yY().resolve(_.ZN(_.CJ)))==null?0:z.isKeyBoardInUse())&&X(!0)});
var f=_.kO(function(){X(!1)}),N={};
return _.M("radio-shape",{class:_.gF("yt-radio-shape",x)},_.M("input",{el:H,class:"yt-radio-shape__input",id:h,"prop:checked":Q,name:L,type:"radio","on:change":k,"on:click":T,"aria-label":V,"on:focusin":U,"on:focusout":f}),_.M("label",{class:_.gF("yt-radio-shape__label-container",E,(N["yt-radio-shape--compact"]=P,N["yt-radio-shape__label-container--keyboard-focused"]=l,N)),for:h,"on:click":G},_.M(_.d,{cond:function(){return!(y==null?0:y())},
then:function(){return _.M(HQR,{checked:Q,useCheckIcon:Z,isLeading:!0,selectElementClass:v})}}),_.M(_.d,{cond:function(){return!!J},
then:function(){return _.M("div",{class:"yt-radio-shape__label","aria-hidden":function(){return(V==null?0:V())?"true":"false"}},J==null?void 0:J())}}),_.M(_.d,{cond:y,
then:function(){return _.M(HQR,{checked:Q,useCheckIcon:Z,isLeading:!1,selectElementClass:v})}})))},"Ud");
_.yp.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var HQR=_.B(function(x){var L=x.useCheckIcon;var D=x.selectElementClass;x=function(){return(L==null?0:L())?"CHECK":_.u("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var S={};return _.M("div",{class:_.gF("yt-radio-shape__radio",D,(S["yt-radio-shape__radio--check-icon"]=L,S["yt-radio-shape__radio--radio-default-style"]=function(){return!(D==null?0:D())},S)),
"aria-hidden":"true"},_.M(_.YO,{icon:x}),_.M(_.YO,{icon:x,active:function(){return!(L==null?0:L())}}))},"Vd");_.Ij=_.B(function(x){var L=x.data;var D=x.isMenuItem;var S=x.isCompact;var Q=x.onTap;var J=x.trailingAccessory;var Z=x.hideSelectionTextChevron;var y=x.disabled;var E=x.inPopup;var P=x.disableHorizontalPadding;var v=x.isOverlay;var V=x.isToggled;var h=x.ariaLabel;x=x.ariaPressed;var H=!_.u("web_enable_killswitch_for_selectable_list_item_on_tap_fix"),k=function(){return _.u("enable_web_shorts_captions_language_command")||_.u("web_shorts_audio_track_picker")?Object.assign({},L(),Yib(L())):L()},T=_.sh4(function(){return k().rendererContext}),
G=function(){return!(k().isSelected===void 0||!k().selectionStyle||k().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},U=function(){return(_.qb(k().rendererContext)||Q)&&!G()},l={},X=_.gF("yt-list-item-view-model__container",(l["yt-list-item-view-model__container--tappable"]=function(){return _.qb(k().rendererContext)||G()},l["yt-list-item-view-model__container--compact"]=S,l["yt-list-item-view-model__container--in-popup"]=E,l["yt-list-item-view-model__container--disable-horizontal-padding"]=
function(){return(P==null?void 0:P())&&G()},l)),f=function(){return k().leadingImage||k().leadingAccessory},N=_.gF("yt-list-item-view-model__image-container",function(){return f()?"yt-list-item-view-model__trailing":"yt-list-item-view-model__leading"});
l=_.kO(function(p3){var w0;if(w0=H)w0=k().selectionStyle,w0=w0==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"||w0==="LIST_ITEM_SELECTION_STYLE_RADIO"||w0==="LIST_ITEM_SELECTION_STYLE_DEFAULT";w0||H4||Q==null||Q(p3)});
var z=_.YCw(),xf=_.O(_.HB(!1,void 0,"YQ5CU")),K3=xf.next().value,P4=xf.next().value,kf=function(){return _.M(vdB,{data:k,hideSelectionTextChevron:Z,TrailingAccessory:J,isToggled:V,disabled:y,isSelectItem:G,isCompact:S,inPopup:E,disableHorizontalPadding:P,isTappableWithoutSelect:U,useButtonOrAnchor:H4,onTap:Q})},H4=_.u("web_button_or_anchor_list_item");
xf={};return _.M("yt-list-item-view-model",{el:_.Zt(_.AL(function(){return k().rendererContext},void 0,void 0,H4?["A".toString(),
"BUTTON".toString()]:[]),H4&&Q?FYn(Q):void 0,Agn(function(){return U==null?void 0:U()},{focusin:function(){var p3;
((p3=_.yY().resolve(_.ZN(_.CJ)))==null?0:p3.isKeyBoardInUse())&&P4(!0)},
focusout:function(){P4(!1)}})),
class:_.gF("yt-list-item-view-model",(xf["yt-list-item-view-model--is-overlay"]=v,xf["yt-list-item-view-model--keyboard-focused"]=K3,xf)),role:function(){return(D==null?0:D())?"menuitem":"listitem"},
tabindex:function(){var p3=U();p3=H4?void 0:Q||p3?0:void 0;return p3},
"on:keydown":z,"on:click":l,"aria-label":function(){var p3;return(h==null?void 0:h())||((p3=T())==null?void 0:p3.label)},
"aria-pressed":x},_.M(_.d,{cond:G,then:function(){return _.M(_.GS,null,_.M(_.TS,{when:function(){return k().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.M(hH_,{labelRenderable:kf,
isCompact:S,checked:function(){return k().isSelected},
hasLeadingLabel:function(){return!!f()},
labelClass:X,selectElementClass:N,disableHorizontalPadding:P,onClick:H?Q:void 0})}),_.M(_.TS,{when:function(){return k().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.M(_.yp,{labelRenderable:kf,
isCompact:S,checked:function(){return k().isSelected},
hasLeadingLabel:function(){return!!f()},
labelClass:X,selectElementClass:N,onClick:H?Q:void 0})}),_.M(_.TS,{when:function(){return k().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.M(_.yp,{labelRenderable:kf,
isCompact:S,checked:function(){return k().isSelected},
hasLeadingLabel:function(){return!!f()},
labelClass:X,selectElementClass:N,useCheckIcon:!0,onClick:H?Q:void 0})}),_.M(_.eF,null,kf))},
else:kf}))},"Wd");
_.Ij.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};_.uFH=_.B(function(x){var L=x.data;var D=x.onTap;var S=x.onSwitch;var Q=x.overrideDisabled;x=x.disableHorizontalPadding;var J=_.O(_.mU(function(){var H;return((H=bs3(V()))==null?void 0:H.switchedOnByDefault)||!1})),Z=J.next().value,y=J.next().value;
J=_.O(_.HB(!1,void 0,"ZHBkbb"));var E=J.next().value,P=J.next().value,v=_.u("web_button_or_anchor_list_item"),V=function(){var H;if(!(H=L().switchButton)){var k=L();H=Q==null?void 0:Q();k={switchOnCommand:k.switchOnCommand,switchOffCommand:k.switchOffCommand,switchedOnByDefault:k.switchedOnByDefault,isDisabled:k.isDisabled,handleOnTapEventInParent:!v,a11yLabelSwitchedOn:k.a11yLabelSwitchedOn,a11yLabelSwitchedOff:k.a11yLabelSwitchedOff};H!==void 0&&(k.isDisabled=H);H={switchButtonViewModel:k}}return H},
h=function(H){var k=bs3(V());
!k||k.isDisabled||L().ignoreTapUntilCommandCompletes&&E()||(D==null||D(H),plf(k,Z(),H,L().ignoreTapUntilCommandCompletes,P),y(!Z()),S==null||S(Z()))};
return _.M("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.M(_.Ij,{data:function(){return{title:L().title,subtitle:L().attributedSubtitle,leadingImage:L().leadingImage,leadingAccessory:L().leadingAccessory,isDisabled:L().isDisabled}},
onTap:h,isToggled:v?Z:void 0,trailingAccessory:function(){return _.M(_.Fj,{data:V},{switchButtonViewModel:function(H){return _.M(MX_,{data:H.data,parentActive:Z,handleOnTapEventInParent:!!D&&!v,onTap:v?h:void 0})}})},
disableHorizontalPadding:x}))},"Xd");var gd2=_.B(function(x){var L=_.O(_.mU(function(){var Q,J;return!!((Q=x.data())==null?0:(J=Q.initialState)==null?0:J.isToggled)})),D=L.next().value,S=L.next().value;
L=_.kO(function(){S(!D())});
return _.M("toggleable-list-item-view-model",{el:_.Zt(_.AL(function(){return x.data().rendererContext})),
class:_.gF("toggleableListItemViewModelHost",x.className),"on:click":L},_.M(_.d,{cond:function(){if(D()){var Q=x.data().toggledListItem;Q=_.g(Q,_.RB)}else Q=x.data().defaultListItem,Q=_.g(Q,_.RB);return Q},
then:function(Q){return _.M(_.Ij,{data:Q,isToggled:D,ariaLabel:function(){var J=D()?x.data().toggledListItem:x.data().defaultListItem,Z;J=(Z=_.g(J,_.RB))==null?void 0:Z.rendererContext;var y;return(y=_.g(J,_.Fm))==null?void 0:y.label},
ariaPressed:function(){return D()}})}}))},"Yd");var k5C=_.p6("DOWNLOAD",{},"Download"),ptH=_.p6("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),m2h=_.p6("RETRY",{},"Retry"),bQh=_.p6("PAUSE_DOWNLOADING",{},"Pause downloading"),Ynd=_.p6("RESUME_DOWNLOAD",{},"Resume download"),T7N={text:k5C,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},s3={text:ptH,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},Gs0={text:m2h,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
exs={text:bQh,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},Rxb={text:Ynd,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var Fy2=_.B(function(x){var L=function(){var y=x.data();y=_.WX(y.rendererContext);var E;return(E=_.g(y,_.ke))==null?void 0:E.videoId},D=_.ic(function(y){var E=L(),P=U7c(x.data());
return E?_.i6(y,E):P?_.f7(y,P):"TRANSFER_STATE_UNKNOWN"}),S=_.mF(_.W$b,L),Q=_.ic(function(y){return _.RyG(y,L(),U7c(x.data()))}),J=function(){return lm0(D(),S(),_.WX(x.data().rendererContext),!!U7c(x.data()))},Z=function(){return Q()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.M("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:Z},_.M(_.d,{cond:function(){return!Z()},
then:function(){return _.M(_.d,{cond:J,then:function(y){return _.M(_.R1,{each:y},function(E){return _.M(_.Ij,{data:E,isCompact:x.isCompact,isMenuItem:x.isMenuItem,inPopup:x.inPopup,disableHorizontalPadding:x.disableHorizontalPadding})})}})}}))},"Zd");
Fy2.idomCompat=!0;_.sxA=_.B(function(x){var L=x.data;var D=x.isCompact;var S=x.hideSelectionTextChevron;var Q=x.inPopup;var J=x.isOverlay;var Z=x.disableHorizontalPadding;var y=function(){return wlO(L())&&(Q==null?void 0:Q())};
x=_.kO(function(P){if(Q!=null&&Q()&&_.u("web_enable_arrow_key_navigation_in_dropdown")){var v=_.O3O(P.currentTarget),V=v.length;if(V!==0){var h=Array.prototype.indexOf.call(v,document.activeElement);switch(P.key){case "ArrowDown":P.preventDefault();var H;(H=v[(h+1)%V])==null||H.focus();break;case "ArrowUp":P.preventDefault();var k;(k=v[h===-1?V-1:(h-1+V)%V])==null||k.focus()}}}});
var E={};return _.M("yt-list-view-model",{class:_.gF("ytListViewModelHost",(E.ytListViewModelHostKaiosSpatNav=oSh&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",E.ytListViewModelCollectionThumbnailClass=function(){return qis(L())},E)),
role:function(){return y()?"menu":"list"},
style:_.bc({"max-height":function(){var P,v=(P=L())==null?void 0:P.visibleElementCount;if(v)return qis(L())?(v+.5)*48+"px":(v+.5)*40+"px"}}),
"on:keydown":x},_.M(_.Fj,{data:function(){return L().listItems}},{listItemViewModel:function(P){return _.M(_.Ij,{data:P.data,
isMenuItem:y,isCompact:D,hideSelectionTextChevron:S,inPopup:Q,isOverlay:J,disableHorizontalPadding:Z})},
toggleableListItemViewModel:function(P){return _.M(gd2,{data:P.data})},
downloadListItemViewModel:function(P){return _.M(Fy2,{data:P.data,isMenuItem:y,isCompact:D,inPopup:Q,disableHorizontalPadding:Z})},
switchListItemViewModel:function(P){return _.M(_.uFH,{data:P.data,disableHorizontalPadding:Z})}}))},"$d");
_.sxA.idomCompat=!0;var TR2=_.B(function(x){var L=x.data;var D=x.isOverlay;x={};return _.M("yt-course-perks-view-model",{class:_.gF("ytwCoursePerksViewModelHost",(x.ytwCoursePerksViewModelHostOverlay=D,x))},_.M("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.M(_.kP,{text:function(){return L().title}})),_.M("div",null,_.M(_.d,{cond:function(){return L().perks},
then:function(S){return _.M(_.sxA,{data:function(){return{listItems:S()}},
isCompact:!0,isOverlay:D})}})))},"ae");_.dF(TR2,"yt-course-perks-view-model",{props:{data:_.Il,isOverlay:_.Il}});_.dF(_.B(function(x){var L=x.data;return _.M("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.M("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.M(_.kP,{text:function(){return L().title}})),_.M("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.M(_.kP,{text:function(){return L().progressSummary}})),_.M("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.M("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.bc({width:function(){return L().progressPercentage*100+"%"}})})))},"be"),"yt-course-progress-view-model",{props:{data:_.pJ}});var eH2=_.B(function(x){var L={};return _.M("yt-progress-view-model",{class:_.gF("ytwProgressViewModelHost",(L.ytwProgressViewModelHostOverlay=_.ZH(x.isOverlay,!1),L))},_.M(_.d,{cond:function(){return x.data().progressSummary},
then:function(D){return _.M("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.M(_.kP,{text:D}))}}),_.M("div",{class:"ytwProgressViewModelHostProgressContainer"},_.M(_.d,{cond:function(){return x.data().leadingLabel},
then:function(D){return _.M("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.M(_.kP,{text:D}))}}),_.M("div",{class:"ytwProgressViewModelHostProgressBar"},_.M("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(x.data().progressPercentage||0)*100+"%"}}))))},"ce");var EN=_.B(function(x){var L=x.starNumber;var D=x.data;var S=function(){var Q;return((Q=D())==null?void 0:Q.rating)||0};
return _.M(_.d,{cond:function(){return L()},
then:function(Q){return _.M(_.GS,null,_.M(_.TS,{when:function(){return S()>=Q()-.25}},function(){return _.M("div",{class:"ytStarRatingViewModelHostStar"},_.M(_.YO,{icon:"STAR_FILLED",
size:function(){return 24}}))}),_.M(_.TS,{when:function(){return S()>=Q()-.75}},function(){return _.M("div",{class:"ytStarRatingViewModelHostStar"},_.M(_.YO,{icon:"STAR_HALF",
size:function(){return 24}}))}),_.M(_.eF,null,function(){return _.M("div",{class:"ytStarRatingViewModelHostStar"},_.M(_.YO,{icon:"STAR_BORDER",
size:function(){return 24}}))}))}})},"de"),RHr=_.B(function(x){x=x.data;
return _.M("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.M(EN,{starNumber:1,data:x}),_.M(EN,{starNumber:2,data:x}),_.M(EN,{starNumber:3,data:x}),_.M(EN,{starNumber:4,data:x}),_.M(EN,{starNumber:5,data:x}))},"ee");_.dF(_.B(function(x){var L=_.ym(x,{}).data;return _.M("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.M("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.M(_.kP,{text:function(){var D;return(D=L())==null?void 0:D.title}})),_.M("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.M(_.d,{cond:function(){return L().starProgressViewModels},
then:function(D){return _.M("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.M(_.Fj,{data:D},{progressViewModel:eH2}))}}),_.M("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.M("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.M(_.kP,{text:function(){var D;
return(D=L())==null?void 0:D.averageRatingLabel}})),_.M(_.d,{cond:function(){return L().zeroStateText},
then:function(D){return _.M("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.M(_.kP,{text:D}))}}),_.M(_.d,{cond:function(){return L().starRatingViewModel},
then:function(D){return _.M("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.M(_.Fj,{data:D},{starRatingViewModel:RHr}))}}),_.M("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.M(_.kP,{text:function(){var D;
return(D=L())==null?void 0:D.totalRatingsCountLabel}})))))},"fe"),"yt-course-ratings-view-model",{props:{data:_.Il}});var G52;G52={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"}};_.CRr=_.B(function(x){var L=_.x3("yt-learning-journey-loader-view-model"),D=_.uk();_.UX(function(){requestAnimationFrame(function(){var Q;(Q=D.lottieEl)==null||Q.addEventListener("DOMLoaded",function(){var J;(J=x.onLottieLoaded)==null||J.call(x)})});
var S=x.data().browseEndpoint;S&&_.Xf(S)});
return _.M("yt-learning-journey-loader-view-model",{class:_.gF("learningJourneyLoaderViewModelHost",x.className),"data-target-id":function(){var S;return((S=x.data)==null?void 0:S.call(x).targetId)||""},
el:L},_.M(_.fJ,{className:_.gF("learningJourneyLoaderViewModelLoader",x.className),animationName:function(){return G52.animationConfig.name},
data:G52,animationRef:D}))},"he");_.dF(_.CRr,"yt-learning-journey-loader-view-model",{props:{data:_.pJ,className:_.Il,onLottieLoaded:_.Il}});var $7f=new Set,AJG=null;var lDG=_.B(function(x){var L=void 0,D=function(){return x.data()},S=function(){return!!Gk(e8(D())).optionColor},Q=_.O(_.HB(-1,void 0,"Oxve9b")),J=Q.next().value,Z=Q.next().value,y=function(V){return D().correctAnswerIndex===V},E=function(){return J()!==-1};
Q=_.O(_.HB("",void 0,"DZG7ze"));var P=Q.next().value,v=Q.next().value;return _.M("learning-journey-quiz-view-model",{class:_.gF("learningJourneyQuizViewModelHost","learningJourneyQuizYoututorHost",x.className),style:_.bc({background:function(){return Gk(e8(D())).backgroundColor}})},_.M("div",{"aria-live":"polite",
class:"learningJourneyQuizYoututorVisuallyHidden"},P),_.M(_.d,{cond:function(){return!!D().video},
then:function(){return _.M("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.bc({background:function(){return Gk(e8(D())).videoBackgroundColor}})},_.M(_.Fj,{data:function(){return D().video}},{lockupViewModel:function(V){return _.M(_.qr,{data:V.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.M("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.M("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.M("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.M(_.d,{cond:function(){return!!D().aiGeneratedQuizLabel},
then:function(){return _.M("div",{class:"learningJourneyQuizViewModelHostQuizAiGeneratedLabel"},_.M(_.kP,{text:function(){return D().aiGeneratedQuizLabel}}))}}),_.M("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.bc({"align-items":function(){return D().overflowMenu?"start":"center"}})},_.M("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.bc({"min-height":function(){return D().overflowMenu?"48px":"26px"}})},_.M("div",{class:"learningJourneyQuizYoututorText",
style:_.bc({color:function(){return Gk(e8(D())).primaryTextColor}})},_.M(_.kP,{text:function(){return D().questionHeaderText}})))),_.M("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
style:_.bc({color:function(){return Gk(e8(D())).secondaryTextColor}})},_.M(_.kP,{text:function(){var V=D();
return E()?V.explanationText:V.questionSubheaderText}}))),_.M("div",{role:"group",
class:_.gF("learningJourneyQuizViewModelHostQuizOptionsList","learningJourneyQuizYoututorOptionsListGap")},_.M(_.R1,{each:function(){return D().optionsData||[]}},function(V,h){var H={};
return _.M("button",{class:_.gF("learningJourneyQuizViewModelHostQuizOptions","learningJourneyQuizYoututorOptionsGap","learningJourneyQuizYoututorOptionsBorderSquare",(H.learningJourneyQuizViewModelHostQuizHover=function(){return!E()},H.learningJourneyQuizViewModelHostQuizOptionWithCustomColor=S,H.learningJourneyQuizYoututorOptionSelectedCorrectOutline=function(){return E()&&y(h())},H.learningJourneyQuizYoututorOptionSelectedIncorrectOutline=function(){var k;
if(k=J()!==D().correctAnswerIndex)k=h(),k=J()===k;return k},H)),
"on:click":_.kO(function(){if(E())return!1;Z(h());var k,T;v(y(h())?((k=D().successTitle)==null?void 0:k.content)||"":((T=D().failureTitle)==null?void 0:T.content)||"");return!1}),
style:_.bc({background:"transparent"}),"aria-description":function(){var k,T;return E()?y(h())?(k=D().successTitle)==null?void 0:k.content:(T=D().failureTitle)==null?void 0:T.content:""},
"aria-disabled":E,el:_.Zt(function(k){_.Tk(271905,k,L,function(T){L=T})}),
"client-ve-type":271905},_.M("div",{class:"learningJourneyQuizViewModelHostQuizOptionContainer"},_.M(_.kP,{text:V.optionText}),_.M(_.d,{cond:function(){var k=h(),T;if(T=E())T=J()===k||y(k);return T},
then:function(){var k={};return _.M(_.YO,{className:_.gF("learningJourneyQuizYoututorOptionIcon",(k.learningJourneyQuizViewModelHostQuizPulse=function(){return J()===D().correctAnswerIndex&&y(h())},k)),
size:24,icon:function(){return y(h())?"CHECK_CIRCLE_FILLED":"X_CIRCLE"},
active:!0})}})))}),_.M(_.d,{cond:E,
then:function(){return _.M("div",{class:"learningJourneyQuizYoututorExplanationContainer"},_.M("div",{class:"learningJourneyQuizYoututorExplanationText"},_.M(_.kP,{text:function(){return D().explanationHeaderText}})),_.M(_.kP,{text:function(){return D().optionsData[J()].explanationText},
className:"learningJourneyQuizYoututorExplanationDescriptionText"}))}})))))},"ie");
lDG.idomCompat=!0;var U2h;_.wtB=_.B(function(x){var L=null,D=null,S=null,Q=function(){return x.data()},J=function(){var f=Q();
var N=_.yY().resolve(_.ZN(_.Dt));f=N!=null&&N()?f.darkThemeColorPalette:f.lightThemeColorPalette;return{primaryTextColor:CF(f,0),secondaryTextColor:CF(f,1),optionColor:CF(f,2),backgroundColor:CF(f,3),videoBackgroundColor:CF(f,4)}},Z=function(){return!!J().optionColor},y=_.O(_.HB(-1,void 0,"QDu8Oe")),E=y.next().value,P=y.next().value,v=function(f){return E()===f},V=function(f){return Q().correctAnswerIndex===f},h=function(){return E()!==-1},H=function(){return E()===Q().correctAnswerIndex},k=function(){var f=
Q(),N=h(),z=H();
return N?z?f.successTitle:f.failureTitle:f.questionHeaderText},T=function(){var f=h(),N=H();
return f?N?264685:264684:264683},G=function(){var f=Q();
return h()?f.explanationText:f.questionSubheaderText},U=function(){return!!Q().video},l=function(f){return H()&&V(f)},X=_.kO(function(){P(-1);
return!1});
return _.M(_.d,{cond:function(){return Q().quizType==="LEARNING_JOURNEY_QUIZ_TYPE_YOUTUTOR"},
then:function(){return _.M(lDG,{data:function(){return Q()}})},
else:function(){return _.M("learning-journey-quiz-view-model",{class:_.gF("learningJourneyQuizViewModelHost",x.className),style:_.bc({background:function(){return J().backgroundColor}})},_.M(_.d,{cond:U,
then:function(){return _.M("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.bc({background:function(){return J().videoBackgroundColor}})},_.M(_.Fj,{data:function(){return Q().video}},{lockupViewModel:function(f){return _.M(_.qr,{data:f.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.M("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.M("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.M("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.M(_.d,{cond:function(){return!!Q().aiGeneratedQuizLabel},
then:function(){return _.M("div",{class:"learningJourneyQuizViewModelHostQuizAiGeneratedLabel"},_.M(_.kP,{text:function(){return Q().aiGeneratedQuizLabel}}))}}),_.M("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.bc({"align-items":function(){return Q().overflowMenu?"start":"center"}})},_.M("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.bc({"min-height":function(){return Q().overflowMenu?"48px":"26px"}})},_.M("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
el:_.Zt(function(f){_.Tk(T(),f,L,function(N){L=N})}),
style:_.bc({color:function(){return J().primaryTextColor}}),
"client-ve-type":T},_.M(_.kP,{text:k}))),_.M("div",{class:"learningJourneyQuizViewModelHostQuizHeaderButtons"},_.M(_.d,{cond:h,then:function(){return _.M("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover",el:_.Zt(function(f){_.Tk(264687,f,D,function(N){D=N})}),
"on:click":X,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.M("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.bc({fill:function(){return J().primaryTextColor}})},_.M("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"})))}}),
_.M(_.Fj,{data:function(){return Q().overflowMenu}},{buttonViewModel:function(f){return _.M(_.qP,{data:f.data})}}))),_.M("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
el:_.Zt(function(f){_.Tk(264688,f,S,function(N){S=N})}),
style:_.bc({color:function(){return J().secondaryTextColor}}),
"client-ve-type":264688},_.M(_.kP,{text:G}))),_.M("div",{role:"group",class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.M(_.R1,{each:function(){return Q().optionsData||[]}},function(f,N){var z={};
return _.M("button",{class:_.gF("learningJourneyQuizViewModelHostQuizOptions","learningJourneyQuizViewModelHostQuizOptionsBorderRound",(z.learningJourneyQuizViewModelHostQuizHover=function(){return!h()},z.learningJourneyQuizViewModelHostQuizOptionWithCustomColor=Z,z.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return l(N())},z.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return!H()&&v(N())},z.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return h()&&
!v(N())},z)),
"on:click":_.kO(function(){if(h())return!1;P(N());return!1}),
style:_.bc({background:function(){var xf=N();return h()&&v(xf)?"":Z()?J().optionColor:"transparent"}}),
"aria-disabled":h,"client-ve-type":264686},_.M("div",{class:"learningJourneyQuizViewModelHostQuizOptionContainer"},_.M(_.d,{cond:h,then:function(){return _.M(U2h,{isOptionCorrect:V,optionIndex:N,isOptionSelectedAndCorrect:l,colors:J})}}),_.M(_.kP,{text:f.optionText})))})))))}})},"je");
U2h=_.B(function(x){var L={};return _.M("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var D=x.optionIndex();return x.isOptionCorrect(D)?"0 0 24 24":"0 -960 960 960"},
class:_.gF("learningJourneyQuizViewModelHostQuizOptionIconLeading",(L.learningJourneyQuizViewModelHostQuizPulse=function(){return x.isOptionSelectedAndCorrect(x.optionIndex())},L)),
style:_.bc({fill:function(){return x.colors().primaryTextColor}})},_.M("path",{d:function(){var D=x.optionIndex();
return x.isOptionCorrect(D)?"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"}}))},"ke");
_.wtB.idomCompat=!0;_.dF(_.wtB,"learning-journey-quiz-view-model",{props:{data:_.pJ,className:_.pJ}});var BRh=_.B(function(x){var L=_.O((0,_.twd)(function(){var Z;return{targetId:(Z=x.data().config)==null?void 0:Z.suspenseKey,contents:[x.data()]}})).next().value,D=_.yY().resolve(_.E2),S=function(){var Z=L().contents.length>0?L().contents[0]:void 0;
return Z==null?void 0:Z.config},Q=function(){var Z;
return(Z=S())==null?void 0:Z.entityTriggerConfig},J=_.mF(nYn,function(){var Z,y;
return(y=(Z=Q())==null?void 0:Z.entityKey)!=null?y:""});
_.Us(function(){var Z,y,E,P=(E=Number((Z=Q())==null?void 0:(y=Z.invalidationTimestamp)==null?void 0:y.seconds))!=null?E:0,v,V,h;if(((h=Number((v=J())==null?void 0:(V=v.lastUpdated)==null?void 0:V.seconds))!=null?h:0)>P){var H;(Z=(H=S())==null?void 0:H.continuationCommand)&&D.resolveCommand(Z)}},"FaC8z");
return _.M("yt-suspense-view-model",{class:_.gF("ytSuspenseViewModelHost")},_.M(_.Fj,{data:function(){var Z;return(Z=S())==null?void 0:Z.contents}},{lockupViewModel:_.qr}))},"me");var WyQ=_.B(function(x){var L=_.ym(x,{palette:void 0,isLastItem:!1}),D=L.palette,S=L.isLastItem,Q=function(){return x.data().isHighlighted},J=function(){var E;
return N7c((E=D())==null?void 0:E.iconDisabledColor)},Z=function(){var E;
return N7c((E=D())==null?void 0:E.primaryTitleColor)},y=function(){var E;
return N7c((E=D())==null?void 0:E.secondaryTitleColor)};
L={};return _.M("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:_.Zt(_.AL(function(){return x.data().rendererContext}))},_.M(_.Fj,{data:function(){return x.data().thumbnail}},{thumbnailViewModel:_.s0}),_.M("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.M("div",{class:_.gF("ytMacroMarkerListItemViewModelTimeDescription",(L.ytMacroMarkerListItemViewModelHighlighted=Q,L)),
style:_.bc({"background-color":function(){return Q()?Z():J()},
color:function(){return Q()?"":y()}})},_.M(_.kP,{text:function(){return x.data().timestamp}})),_.M("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.bc({"background-color":function(){return S()?"transparent":J()}})}),_.M("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(Q()?Z():y())}},_.M(_.kP,{text:function(){return x.data().title}}))))},"ne");_.MG=_.B(function(x){function L(Zp){l("transform:translateX("+(_.$6("HTML_DIR")==="rtl"?"":"-")+Zp+"px)")}
function D(Zp){return Math.min(Math.max(Zp,0),U()-xf())}
function S(){var Zp=N()+H4();return Q()?(Math.round(xf()/Zp)||1)*Zp:0}
var Q=function(){return x.data().items||[]},J=function(){return x.data().previousButton},Z=function(){return x.data().nextButton},y=function(){var Zp,K2;
return(K2=(Zp=x.disableArrows)==null?void 0:Zp.call(x))!=null?K2:!1},E=function(){var Zp;
return!((Zp=x.forceNarrowLayout)==null||!Zp.call(x))},P=_.m5(function(){var Zp;
return!((Zp=x.centerAlignItems)==null||!Zp.call(x))&&U()<=xf()},void 0,"Uto0kc"),v=_.x3("horizontal-shelf-view-model"),V=_.x3("div"),h=_.O(_.HB(0,void 0,"G0xZB")),H=h.next().value,k=h.next().value;
h=_.O(_.HB(0,void 0,"kqCYFf"));var T=h.next().value,G=h.next().value,U=T;T=_.O(_.HB("",void 0,"Hh6Uye"));h=T.next().value;var l=T.next().value;T=_.O(_.HB(0,void 0,"yMGBKb"));var X=T.next().value,f=T.next().value,N=X;T=_.O(_.HB(0,void 0,"VChthd"));X=T.next().value;var z=T.next().value,xf=X;T=_.O(_.HB(!1,void 0,"qJlhhe"));var K3=T.next().value,P4=T.next().value;T=_.O(_.HB(0,void 0,"x7H94"));X=T.next().value;var kf=T.next().value,H4=X;T=_.O(_.HB(0,void 0,"ksuUee"));var p3=T.next().value,w0=T.next().value;
T=_.O(_.HB("50%",void 0,"uxCxde"));var Rn=T.next().value,lG=T.next().value,xX=function(){var Zp,K2=(Zp=x.data())==null?void 0:Zp.responsiveContainerConfiguration,F2,II;return K2?gSw(K2==null?void 0:K2.responsiveSize):(II=(F2=x.sizing)==null?void 0:F2.call(x))!=null?II:"STANDARD"};
T=_.m5(function(){return!y()&&H()>0},void 0,"XK60w");
X=_.m5(function(){return!y()&&H()<U()-xf()},void 0,"D22LVd");
var UR=function(){k(D(H()-S()));L(H())},c4=function(){k(D(H()+S()));
L(H())},hr=function(){v.value!==null&&C2()},GB;
_.wO(function(){C2();window.ResizeObserver?(GB=new ResizeObserver(_.lW(hr,0)),GB.observe(v.value)):window.addEventListener("resize",hr)});
_.wH(function(){if(window.ResizeObserver){var Zp;(Zp=GB)==null||Zp.disconnect()}else window.removeEventListener("resize",hr)});
var C2=function(){var Zp=v.value.clientWidth,K2=x.includeMargin!==void 0?x.includeMargin():!1,F2;var II=x.hasPeek!==void 0?x.hasPeek():!((F2=x.data())==null||!F2.hasPeek);Zp=_.fX({containerWidth:Zp,hasPeek:II,sizing:xX(),marginSettings:K2?E()?4:1:0});kf(Zp.gutter);w0(Zp.margin);f(Zp.itemWidth);P4(Zp.maxContainerWidth<528||E());z(Zp.maxContainerWidth);Q()&&G((Zp.itemWidth+Zp.gutter)*Q().length-Zp.gutter);if(Q()){var jW;if(((jW=x.thumbnailAspectRatio)==null?void 0:jW.call(x))!==void 0){var J5;lG(N()/
mWb((J5=x.thumbnailAspectRatio)==null?void 0:J5.call(x))/2+"px")}else lG("50%")}},X9={},vs={};
return _.M("horizontal-shelf-view-model",{class:_.gF("ytwHorizontalShelfViewModelHost",x.className),el:v},_.M(_.d,{cond:function(){var Zp;return x.data().header&&!((Zp=x.horizontalShelfExperiments)==null?0:Zp.call(x).hideHeader)},
then:function(){return _.M("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.bc({width:function(){return xf()+"px"},
padding:function(){return"0 "+p3()+"px"}})},_.M(_.Fj,{data:function(){return x.data().header}},{sectionHeaderViewModel:function(Zp){return _.M(_.AN,{data:Zp.data,
disableHorizontalPadding:!0,forceSmallLayout:K3,useResponsiveLayout:!0})}}))}}),_.M("div",{class:_.gF("ytwHorizontalShelfViewModelOuterContainer",(X9.ytwHorizontalShelfViewModelCenterAlignOuterContainer=function(){return P()},X9)),
style:_.bc({"margin-top":function(){var Zp,K2=x.data().header&&!((Zp=x.horizontalShelfExperiments)==null?0:Zp.call(x).hideHeader),F2;return(((F2=x.ensureMarginTop)==null?0:F2.call(x))&&!K2?12:0)+"px"}})},_.M("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.bc({width:function(){return xf()+"px"},
padding:function(){return"0 "+p3()+"px"},
overflow:function(){return y()?"auto":"hidden"}})},_.M("div",{class:_.gF("ytwHorizontalShelfViewModelItems",(vs.ytwHorizontalShelfViewModelCenterAlignItems=function(){return P()},vs)),
el:V,style:h},_.M(_.Fj,{data:Q},{macroMarkerListItemViewModel:function(Zp,K2){return _.M("div",{style:_.bc({width:function(){return N()+"px"},
"margin-right":function(){return(K2()===Q().length-1?0:H4())+"px"}})},_.M(WyQ,{data:Zp.data,
palette:_.ZH(x.palette),isLastItem:function(){return K2()===Q().length-1}}))},
lockupViewModel:function(Zp,K2){var F2=Zp.data;return _.M("div",{style:_.bc({width:function(){return N()+"px"},
"margin-right":function(){return(K2()===Q().length-1?0:H4())+"px"}})},_.M(_.qr,{data:F2,
containerType:4,sizing:xX,protectBackground:x.protectBackground,thumbnailFixedWidth:function(){return is4(F2())+"px"},
thumbnailTargetWidth:function(){return is4(F2())}}))},
suspenseViewModel:function(Zp,K2){return _.M("div",{style:_.bc({width:function(){return N()+"px"},
"margin-right":function(){return(K2()===Q().length-1?0:H4())+"px"}})},_.M(BRh,{data:Zp.data}))}}))),_.M(_.d,{cond:T,
then:function(){return _.M("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.bc({top:function(){return Rn()}})},_.M(_.Fj,{data:J},{buttonViewModel:function(Zp){return _.M(_.qP,{data:Zp.data,
onClick:UR})}}))}}),_.M(_.d,{cond:X,
then:function(){return _.M("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.bc({top:function(){return Rn()}})},_.M(_.Fj,{data:Z},{buttonViewModel:function(Zp){return _.M(_.qP,{data:Zp.data,
onClick:c4})}}))}})))},"oe");
_.MG.idomCompat=!0;var qnr=_.B(function(x){var L=function(){return x.data().targetId||""},D=function(){var T;
return((T=x.data())==null?void 0:T.expansionEntityKey)||""},S=_.mF(_.cOw,D),Q=!0,J=function(){var T;
return((T=S())==null?void 0:T.value)===L()},Z=function(T){_.Ok(_.TR("stringEntity",D(),{key:D(),
value:T?L():""}))};
_.UX(function(){Q=!1;x.data().isExpanded&&Z(!0)});
var y=function(){if(J()){var T=!0;x.onCollapse!==void 0&&(T=x.onCollapse());T&&Z(!1)}else Z(!0)},E=_.kO(y),P=function(){var T;
return(((T=x.accordionStyle)==null?void 0:T.call(x))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},v=_.x3("div"),V=function(){var T,G;
return(G=(T=_.g(x.data().rendererContext,_.Fm))==null?void 0:T.label)!=null?G:""},h=function(){var T,G;
return{disabled:(T=x.hideIfNotExpanded)==null?void 0:T.call(x),ariaHidden:(G=x.hideIfNotExpanded)==null?void 0:G.call(x)}},H={},k={};
return _.M("yt-accordion-item-view-model",{class:_.gF("ytAccordionItemViewModelHost",x.className,(H.ytAccordionItemViewModelExpanded=function(){return J()},H.ytAccordionItemViewModelHidden=function(){var T;
return(T=x.hideIfNotExpanded)==null?void 0:T.call(x)},H.ytAccordionItemViewModelMini=P,H)),
"data-target-id":L},_.M("div",{class:"ytAccordionItemViewModelContainer"},_.M("div",{class:"ytAccordionItemViewModelLeftSection","on:click":E,title:V,"aria-hidden":function(){var T;return(T=x.hideIfNotExpanded)==null?void 0:T.call(x)}},_.M(_.kP,{text:function(){return x.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:V})),_.M("div",{class:"ytAccordionItemViewModelRightSection"},_.M(_.Fj,{data:function(){return J()?x.data().expandButton:x.data().collapseButton}},{buttonViewModel:function(T){return _.M(_.qP,{data:T.data,
className:"ytAccordionItemViewModelToggleButton",onClick:y,buttonOverrides:h})}}))),_.M("div",{class:"ytAccordionItemViewModelContainer"},_.M("div",{class:_.gF("ytAccordionItemViewModelContent",(k.ytAccordionItemViewModelExpandedSubtitle=function(){return J()},k)),
el:v,style:_.bc({"max-height":function(){return Q?"auto":J()?v.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!J()}},_.M(_.d,{cond:function(){return!P()},
then:function(){return _.M(_.kP,{text:function(){return x.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.M(_.Fj,{data:function(){return x.data().content}},{horizontalShelfViewModel:function(T){return _.M(_.MG,{data:T.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"qe");_.AvQ=_.B(function(x){var L=_.O((0,_.twd)(x.data)).next().value,D=function(){return x.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},S=function(){return D()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},Q=_.O(_.HB(!0,void 0,"AbejLb")),J=Q.next().value,Z=Q.next().value,y=function(){return S()&&J()},E=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){Z(!J())}}},P=_.kO(function(){L().onTitleTap&&_.Xf(L().onTitleTap||{})});
Q={};return _.M("yt-accordion-view-model",{class:_.gF("ytAccordionViewModelHost",(Q.ytAccordionViewModelMinimized=function(){return y()},Q)),
"data-target-id":function(){return x.data().targetId||""}},_.M(_.d,{cond:function(){return S()||!!L().title},
then:function(){return _.M("div",{class:"ytAccordionViewModelHeader"},_.M("div",{class:"ytAccordionViewModelTitleSection"},_.M("div",{class:"ytAccordionViewModelTitleWrapper"},_.M(_.d,{cond:function(){return!!x.data().headerIcon},
then:function(){return _.M(_.YO,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var v;return(v=x.data().headerIcon)==null?void 0:v.iconType}})}}),_.M("div",{class:"ytAccordionViewModelTitle",
"on:click":P},_.M(_.kP,{className:"ytAccordionViewModelTitleText",text:function(){return L().title}})))),_.M("div",{class:"ytAccordionViewModelButtonSection"},_.M(_.d,{cond:S,
then:function(){return _.M(_.W9,{data:E,iconName:function(){return y()?"chevron_down":"chevron_collapse"}})}})))}}),_.M("div",{class:"ytAccordionViewModelContent"},_.M(_.Fj,{data:function(){return L().contents}},{accordionItemViewModel:function(v){return _.M(qnr,{data:v.data,
className:"ytAccordionViewModelRow",accordionStyle:D,hideIfNotExpanded:y,onCollapse:function(){return S()?(Z(!0),!1):!0}})}})),_.M("div",null,_.M(_.d,{cond:function(){return!S()&&(!!L().disclaimerFooter||!!L().footer)},
then:function(){return _.M("div",{class:"ytAccordionViewModelFooter"},_.M(_.kP,{text:function(){return L().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.M(_.Fj,{data:function(){return x.data().footer}},{flexibleActionsViewModel:function(v){return _.M(_.yw,{data:v.data,
layout:0})}}))}})))},"re");_.dF(_.AvQ,"yt-accordion-view-model",{props:{data:_.pJ}});_.dF(_.B(function(x){var L=null,D=null,S,Q=(S=_.yY().resolve(_.ZN(_.Dt)))==null?void 0:S(),J=_.O(_.HB(!1,void 0,"h3atzd"));S=J.next().value;var Z=J.next().value;J=_.O(_.HB(!0,void 0,"UTh8db"));var y=J.next().value,E=J.next().value,P=_.x3("textarea",function(G){_.Tk(264503,G,L,function(U){L=U})}),v=function(G){Z(!0);
G={learningJourneyFormData:{query:G}};_.Xf(x.data().searchEndpoint||{},{form:{formData:G}});return!1},V=_.kO(function(G){G.target.closest("button-view-model")&&Z(!0)});
J=_.kO(function(){E(P.value.value.length===0)});
var h=_.kO(function(G){if(G.key==="Enter"&&!G.shiftKey&&!y()){var U=G.target;G.preventDefault();v(U.value)}}),H={},k={},T={};
return _.M("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.M("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.M(_.Ku,{data:function(){return x.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.M("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.M("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.M("div",{class:_.gF("ytLearningJourneyZeroStateSearchBar",(H.ytLearningJourneyZeroStateSearchBarDark=Q,H))},_.M("textarea",{class:_.gF("ytLearningJourneyZeroStateTextInput",(k.ytLearningJourneyZeroStateTextInputDark=Q,k)),el:P,"on:keyup":J,"on:keydown":h,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.M("div",{class:_.gF("ytLearningJourneyZeroStateSearchButtonContainer",(T.ytLearningJourneyZeroStateSearchButtonContainerDark=Q,T))},_.M(_.qP,{data:function(){return _.g(x.data().searchButton,_.de)},
className:"search-button",onClick:function(){return v(P.value.value)},
buttonOverrides:function(){return{disabled:y(),style:Q?"mono-inverse":"mono",size:"XL"}}}))),_.M(_.d,{cond:function(){return!!x.data().errorBanner},
then:function(){return _.M("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.Zt(function(G){_.Tk(264617,G,D,function(U){D=U})})},_.M(_.Fj,{data:function(){return x.data().errorBanner}},{alertBannerViewModel:function(G){return _.M(_.OQi,{data:G.data,
"client-ve-type":264617})}}))}})),_.M(_.d,{cond:S,
then:function(){return _.M("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.M(_.Fj,{data:function(){return x.data().loader}},{learningJourneyLoaderViewModel:function(G){return _.M(_.CRr,{data:G.data})}}))},
else:function(){return _.M("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.M(_.d,{cond:function(){return!!x.data().learningJourneyShelf},
then:function(){return _.M("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.M("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return x.data().learningJourneySectionTitle}),_.M(_.Fj,{data:function(){return x.data().learningJourneyShelf}},{horizontalShelfViewModel:function(G){return _.M(_.MG,{data:G.data,
centerAlignItems:!0})}}))}}),_.M("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.M("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return x.data().suggestedJourneySectionTitle}),_.M("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":V},_.M(_.Fj,{data:function(){return x.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(G){return _.M(_.yw,{data:G.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"se"),"yt-learning-journey-zero-state",{props:{data:_.pJ}});var $2r=_.B(function(x){var L=x.data;return _.M("ytvl-live-leaderboard-item-action-content-view-model",{class:_.gF("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.M(_.kP,{text:function(){var D;return(D=L())==null?void 0:D.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.M(_.Fj,{data:function(){return L().actionButton}},{buttonViewModel:function(D){return _.M(_.qP,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:D.data})}}))},"te");var rv2=_.B(function(x){var L=x.data;return _.M("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.gF("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.M(_.kP,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var D;return(D=L())==null?void 0:D.displayName},
ellipsisTruncate:!0}),_.M(_.Fj,{data:function(){return L().badge}},{buttonViewModel:function(D){return _.M(_.qP,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:D.data})}}))},"ue");_.dF(_.B(function(x){var L=x.data;return _.M("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.M("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.M(_.kP,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var D;return(D=L())==null?void 0:D.rank}})),_.M("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.M(_.Fj,{data:function(){return L().avatar}},{avatarViewModel:_.O0})),_.M("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.M(_.Fj,{data:function(){return L().content}},{liveLeaderboardItemChannelContentViewModel:rv2,
liveLeaderboardItemActionContentViewModel:$2r})),_.M(_.kP,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var D;return(D=L())==null?void 0:D.points}}))},"ve"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.pJ}});_.dF(_.B(function(x){var L=x.data;return _.M("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.M(_.kP,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var D,S;return(D=L())==null?void 0:(S=D.ranking)==null?void 0:S.rank}}),_.M("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.M(_.Fj,{data:function(){return L().avatar}},{avatarViewModel:_.O0})),_.M(_.kP,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var D,S;return(D=L())==null?void 0:(S=D.channelContent)==null?void 0:S.channelName}}),_.M(_.kP,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var D;return(D=L())==null?void 0:D.points}}))},"we"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.pJ}});var NRh=_.B(function(x){x=_.ym(x,{wrapper:!1}).wrapper;return _.M(_.d,{cond:x,then:function(){return _.M("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.M("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.M("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"xe");
NRh.idomCompat=!0;var iQH=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],fDR=_.B(function(x){var L=x.data;var D=_.Zt(),S=_.m5(function(){return L().command},void 0,"fyYsT");
_.Us(function(){S()&&_.o6(S(),{form:{element:D.value}})},"B0nxdb");
return _.M("div",{el:D,class:"YtQrCodeRendererHostContainer"},_.M(_.d,{cond:function(){return L().qrCodeImage},
then:function(Q){return _.M(_.Ku,{data:Q,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.M(_.d,{cond:function(){return L().spinner},
then:function(){return _.M(NRh,null)}})}}),_.M(_.d,{cond:function(){return L().label},
then:function(Q){return _.M(_.kP,{text:Q,className:"YtQrCodeRendererHostLabel"})}}),_.M(_.d,{cond:function(){return L().labels},
then:function(Q){return _.M("div",{class:"YtQrCodeRendererHostLabels"},_.M(_.R1,{each:Q},function(J){return _.M(_.kP,{text:J})}))}}))},"Ae");_.dF(_.B(function(x){var L=x.data;var D=_.m5(function(){return L().qrEntityKey},void 0,"M0PrY"),S=_.m5(function(){return L().deleteEntityOnDismiss},void 0,"QZa4g"),Q=_.m5(function(){return L().command},void 0,"wEOxUe"),J=_.mF(gY4,D);
x=_.m5(function(){return L().qrCodeImage},void 0,"UO5oub");
var Z=_.m5(function(){return L().style&&iQH.includes(L().style)},void 0,"Op9kZd"),y=_.yB({visibilityCallback:function(E){E&&Q()&&_.o6(Q())},
showOption:{calledOnce:!0,state:"visible"}});_.wO(function(){_.wH(function(){S()&&D()&&_.KI().dispatch(_.TR("qrCodeEntity",D()))})});
return _.M("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:_.Zt(y)},_.M(_.d,{cond:Z,then:function(){return _.M(_.d,{cond:J,then:function(E){return _.M(fDR,{data:E})}})}}),_.M(_.d,{cond:x,
then:function(E){return _.M(_.Ku,{data:E,alt:""})}}))},"ye"),"yt-qr-code-renderer",{props:{data:_.pJ}});var aDW=_.B(function(x){var L=function(){return _.XA(1728053247&(x.barColor!==void 0?pF(x.barColor()):4278190080))};
return _.M("video-overview-ghost-card",{class:"ytVideoOverviewGhostCardHost"},_.M(odC,{animationDelay:0,percentWidth:100,barColor:function(){return L()}}),_.M("div",{class:"ytVideoOverviewGhostCardMediaWrapper"},_.M("div",{class:"ytVideoOverviewGhostCardMedia",
style:function(){return"background-color:"+L()}})),_.M(odC,{animationDelay:0,
percentWidth:100,barColor:function(){return L()}}),_.M(odC,{animationDelay:600,
percentWidth:60,barColor:function(){return L()}}))},"Be"),odC=_.B(function(x){return _.M("div",{class:"ytVideoOverviewGhostCardGhostLine",
style:function(){return"max-width:"+x.percentWidth()+"%"}},_.M("div",{class:"ytVideoOverviewGhostCardSlider",
style:function(){var L=x.animationDelay(),D=x.barColor();return"animation-delay:"+L+"ms;\n      background: linear-gradient(\n      90deg,\n      rgba(0, 0, 0, 0)  20%,\n      "+D+" 50%,\n      rgba(0, 0, 0, 0) 80%\n    );"}}))},"Ce");var zHr;_.XtW=_.B(function(x){function L(G){Z(G)}
var D=x.data;var S=_.x3("yt-video-overview-view-model"),Q=_.Sc("div");x=_.O(_.HB(-1,void 0,"qaDSu"));var J=x.next().value,Z=x.next().value;x=_.O(_.HB(0,void 0,"Vz681c"));var y=x.next().value,E=x.next().value,P={},v=_.mF(fms,function(){return D().asyncDataEntityKey}),V=function(){var G;
if((G=v())==null?0:G.videoOverviewViewModel){var U;return _.g((U=v())==null?void 0:U.videoOverviewViewModel,Oph)}return D()};
_.wO(function(){E(Math.min((S.value.clientWidth-24)/4-8,72))});
var h=function(G){Z(G);(Q==null?0:Q.value)&&Q.value.children[G]&&Q.value.children[G].scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})};
Zs0(S,function(){var G;if((G=V())==null||!G.inlinePlaybackEndpoint)return null;var U;G=P==null?void 0:(U=P.thumbnailElRef)==null?void 0:U.value;if(!G)return null;var l;U=(l=V())==null?void 0:l.inlinePlaybackEndpoint;l=_.g(U,FkQ);return{multipleVideoPreviewData:{data:(l==null?0:l.playerDescriptors)&&(l==null?0:l.playerDescriptors.length)?l.playerDescriptors:[],thumbnailElement:G,trackingParams:"test",callbacks:{onPlaybackStarted:h},options:{hideScrubbingControls:!0,hideTimeDisplay:!0}}}});
var H=function(){var G;return((G=V())==null?void 0:G.headerSubtext)!==void 0?!0:!1},k=function(){var G,U=pF((G=V())==null?void 0:G.titleColor);
return U?"color: "+_.XA(U)+";":void 0},T=function(){var G,U=pF((G=V())==null?void 0:G.subtextColor);
return U?"color: "+_.XA(U)+";":void 0};
return _.M("yt-video-overview-view-model",{class:"ytGenAiVideoOverviewViewModelHost",el:S,style:function(){var G,U=pF((G=V())==null?void 0:G.backgroundColor);return U?"background-color: "+_.XA(U)+";":void 0}},_.M(_.d,{cond:function(){var G;
return(G=V())==null?void 0:G.isLoading},
then:function(){return _.M(aDW,{barColor:function(){var G;return(G=V())==null?void 0:G.titleColor}})},
else:function(){return _.M(_.I1,null,_.M("div",{class:"ytGenAiVideoOverviewViewModelHeader"},_.M("div",{class:"ytGenAiVideoOverviewViewModelTitle",style:function(){return k()}},_.M(_.kP,{text:function(){var G;
return(G=V())==null?void 0:G.headerText}})),_.M(_.d,{cond:H,
then:function(){return _.M("div",{class:"ytGenAiVideoOverviewViewModelSubhead"},_.M("div",{class:"ytGenAiVideoOverviewViewModelSubheadIcon",style:function(){return T()}},_.M(_.YO,{icon:"SPARK",
className:"ytGenAiVideoOverviewViewModelSparkIcon"})),_.M("div",{class:"ytGenAiVideoOverviewViewModelSubtext",style:function(){return T()}},_.M(_.kP,{text:function(){var G;
return(G=V())==null?void 0:G.headerSubtext}})))}})),_.M("div",{class:"ytGenAiVideoOverviewViewModelThumbnail"},_.M(_.Fj,{data:function(){var G;
return(G=V())==null?void 0:G.thumbnail}},{thumbnailViewModel:function(G){return _.M(_.s0,{data:G.data,
aspectRatio:0,playbackRef:KVb(P)})}})),_.M(_.d,{cond:function(){var G,U,l,X;
return((G=V())==null?void 0:(U=G.listItems)==null?void 0:U.length)!==void 0&&((l=V())==null?void 0:(X=l.listItems)==null?void 0:X.length)>0?!0:!1},
then:function(){return _.M("div",{class:"ytGenAiVideoOverviewViewModelCarousel",el:Q},_.M(_.R1,{each:function(){var G;return(G=V())==null?void 0:G.listItems}},function(G,U){return _.M(zHr,{image:G.image,
index:U,isSelected:function(){return U()===J()},
onClick:L,itemWidth:y})}))}}),_.M("div",{class:"ytGenAiVideoOverviewViewModelFooter"},_.M("div",{class:"ytGenAiVideoOverviewViewModelFooterTitle",
style:function(){return k()}},_.M(_.kP,{text:function(){var G,U,l,X,f,N,z;
return(z=(G=V())==null?void 0:(U=G.listItems)==null?void 0:(l=U[J()])==null?void 0:l.headline)!=null?z:(X=V())==null?void 0:(f=X.listItems)==null?void 0:(N=f[0])==null?void 0:N.headline}})),_.M("div",{class:"ytGenAiVideoOverviewViewModelFooterSubtext",
style:function(){return T()}},_.M(_.kP,{text:function(){var G,U,l,X,f,N,z;
return(z=(G=V())==null?void 0:(U=G.listItems)==null?void 0:(l=U[J()])==null?void 0:l.subtext)!=null?z:(X=V())==null?void 0:(f=X.listItems)==null?void 0:(N=f[0])==null?void 0:N.subtext}}))))}}))},"De");
zHr=_.B(function(x){var L=x.image;var D=x.itemWidth;var S=x.index;var Q=x.isSelected;var J=x.onClick;x=_.kO(function(){S!==void 0&&J!==void 0&&J(S());return!1});
var Z={};return _.M("div",{class:_.gF("ytGenAiVideoOverviewViewModelCarouselItem",(Z.ytGenAiVideoOverviewViewModelCarouselItemSelected=function(){return Q==null?void 0:Q()},Z)),
style:function(){return"width: "+D()+"px;"},
"on:click":x},_.M(_.Ku,{data:L,alt:"",className:"ytGenAiVideoOverviewViewModelCarouselThumbnail"}),_.M(_.d,{cond:function(){return Q==null?void 0:Q()},
then:function(){return _.M("div",{class:"ytGenAiVideoOverviewViewModelProgressBar"},_.M("div",{class:"ytGenAiVideoOverviewViewModelInnerProgressBar"}))}}))},"Ee");
_.XtW.idomCompat=!0;_.dF(_.XtW,"yt-video-overview-view-model",{props:{data:_.pJ}});_.cv2=_.B(function(x){var L=x.data;var D=x.topbarOffset;var S,Q=((S=_.yY().resolve(_.ZN(_.Dt)))==null?void 0:S())||!1;return _.M("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var J=L();var Z,y,E=Q?(Z=J.config)==null?void 0:Z.darkThemeBackgroundColor:(y=J.config)==null?void 0:y.lightThemeBackgroundColor;J=E?_.zF(E):void 0;J="background-color: "+J+";";D!==void 0&&(J+="top: -"+D()+"px;");return J},
"aria-hidden":!0},_.M(_.d,{cond:function(){var J,Z,y;return!!((J=L().backgroundImageConfig)==null?0:(Z=J.image)==null?0:(y=Z.sources)==null?0:y.length)},
then:function(){return _.M(_.Ku,{data:function(){var J;return(J=L().backgroundImageConfig)==null?void 0:J.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.M("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+obs(Q,L().gradientColorConfig)+";"}}))},"Fe");
_.cv2.idomCompat=!0;var ndd=_.B(function(x){var L=x.data;var D=x.isOverlay;return _.M("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.M("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.M(_.Fj,{data:function(){return L().header}},{sectionHeaderViewModel:function(S){return _.M(_.AN,{data:S.data,
isOverlay:D})}})),_.M("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.M(_.Fj,{data:function(){return L().channelInfoButtons}},{flexibleActionsViewModel:_.yw})),_.M("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.M(_.Fj,{data:function(){return L().description}},{descriptionPreviewViewModel:function(S){return _.M(_.qZ,{data:S.data,
isOverlay:D})}})))},"Ge");
ndd.idomCompat=!0;var tXW=_.B(function(x){var L=x.data;var D={};return _.M("factoid-view-model",{class:_.gF("ytwFactoidViewModelHost",(D.ytwFactoidViewModelHostOverlay=x.isOverlay,D))},_.M(_.kP,{text:function(){return L().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.M(_.kP,{text:function(){return L().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"He");
tXW.idomCompat=!0;var xDC=_.B(function(x){var L=x.data;var D=x.isOverlay;return _.M("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.M(_.Fj,{data:function(){return L().factoids}},{factoidViewModel:function(S){return _.M(tXW,{data:S.data,
isOverlay:D})}}))},"Ie");
xDC.idomCompat=!0;_.L6d=_.B(function(x){var L=x.data;var D=x.isOverlay;return _.M("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.M(_.Fj,{data:function(){return L().items}},{channelInfoViewModel:function(S){return _.M("div",{class:"ytwCourseMetadataViewModelHostItem"},_.M(ndd,{data:S.data,
isOverlay:D}))},
coursePerksViewModel:function(S){return _.M("div",{class:"ytwCourseMetadataViewModelHostItem"},_.M(TR2,{data:S.data,isOverlay:D}))},
descriptionPreviewViewModel:function(S){return _.M("div",{class:"ytwCourseMetadataViewModelHostItem"},_.M(_.qZ,{data:S.data,isOverlay:D}))},
factoidsRowViewModel:function(S){return _.M("div",{class:"ytwCourseMetadataViewModelHostItem"},_.M(xDC,{data:S.data,isOverlay:D}))},
progressViewModel:function(S){return _.M("div",{class:"ytwCourseMetadataViewModelHostItem"},_.M(eH2,{data:S.data,isOverlay:D}))}}))},"Je");var DDC=_.B(function(x){return _.M("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.M(_.Fj,{data:function(){return x.data().content}},{courseMetadataViewModel:function(L){return _.M(_.L6d,{data:L.data,
isOverlay:x.isOverlay})},
progressViewModel:function(L){return _.M(eH2,{data:L.data})}}))},"Ke");var SPd=_.B(function(x){var L=x.data;x=x.className;var D=function(){var Q;return _.qb((Q=L())==null?void 0:Q.rendererContext)},S={};
S=(S.dynamicTextViewModelHost=!0,S.dynamicTextViewModelHostTappable=function(){return D()},S);
return _.M("yt-dynamic-text-view-model",{el:_.Zt(_.AL(function(){var Q;return(Q=L())==null?void 0:Q.rendererContext})),
role:function(){return D()?"link":void 0},
tabindex:function(){return D()?0:void 0},
class:_.gF(x,S)},_.M("h1",{class:"dynamicTextViewModelH1","aria-label":function(){var Q,J,Z;return(Z=(J=_.g((Q=L())==null?void 0:Q.rendererContext,_.Fm))==null?void 0:J.label)!=null?Z:""}},_.M(_.kP,{text:function(){return L().text},
userInput:!0})))},"Le");
SPd.idomCompat=!0;_.dC=_.B(function(x){var L=x.data;var D=x.isPositionRelative;var S=_.zxc("(max-width: 527.9px)"),Q=function(){var J,Z;return(Z=(J=L())==null?void 0:J.style)!=null?Z:"IMAGE_BANNER_STYLE_FULL_BLEED"};
x={};return _.M("yt-image-banner-view-model",{el:_.Zt(_.AL(function(){var J;return(J=L())==null?void 0:J.rendererContext})),
class:_.gF((x.ytImageBannerViewModelHost=!0,x.ytImageBannerViewModelInset=function(){return Xlw(Q())},x.ytImageBannerViewModelPositionAbsolute=function(){return _.WB(!0)&&!(D==null?0:D())},x.ytImageBannerViewModelSmallInset=function(){return Xlw(Q())&&S()},x.ytImageBannerViewModelTappable=function(){var J;
return _.qb((J=L())==null?void 0:J.rendererContext)},x))},_.M(_.d,{cond:function(){var J;
return(J=L())==null?void 0:J.image},
then:function(){return _.M(_.Ku,{data:function(){return L().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.M(_.Fj,{data:function(){var J;
return(J=L())==null?void 0:J.overlays}},{thumbnailHoverOverlayViewModel:KD}))},"Me");
_.dC.idomCompat=!0;var Qzh;Qzh=_.B(function(x){var L=x.condition;var D=x.content;return _.M(_.d,{cond:L,then:function(){return _.M("div",{class:"yt-page-header-view-model__scroll-container"},D())},
else:function(){return D()}})},"Ne");
_.J$W=_.B(function(x){var L=x.data;var D=x.noPadding;var S=x.enableBanner;var Q=x.cinematicContainerTopbarOffset;var J=x.allowCinematicContainerOverflow;var Z=x.displayAsSidebar;var y=x.displayAsPanel;var E=x.alwaysUseMediumTextDescription;var P=cJ4(),v=function(){return!!L().image||!!L().animatedImage},V=function(){return!!L().background},h=function(){return(Z==null?0:Z())||(y==null?0:y())?1:P()},H=function(){return h()===1},k=function(){return H()||h()===2},T=function(){return h()===4},G=function(){var p3=
L();
var w0=!!L().heroImage;var Rn=h(),lG=nbs(L()),xX=Z==null?void 0:Z(),UR=!p3.metadata,c4;if(c4=w0?_.g(p3.heroImage,tZd):_.g(p3.animatedImage||p3.image,tZd)){p3=c4.style;var hr=c4.layoutMode;if(hr!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(c4=UEw(lec(c4)),w0)w0=am0(Rn,p3,hr,c4,xX);else b:if(UR)w0=Rn===1?{size:48}:{size:72};else switch(Rn){case 1:w0={size:72};break b;case 2:w0={size:120};break b;default:w0=lG<4?{size:120}:{size:160}}else w0=void 0}else w0={size:0};return w0};
x={};x=_.gF((x["yt-page-header-view-model"]=!0,x["yt-page-header-view-model--no-padding"]=function(){return!(D==null||!D())},x["yt-page-header-view-model--small-top-padding"]=function(){return H()&&!L().actions&&!(y==null?0:y())||h()===2&&!(v()||L().heroImage)},x["yt-page-header-view-model--small-bottom-padding"]=function(){return k()&&!L().actions&&!(y==null?0:y())},x["yt-page-header-view-model--cinematic-container-overflow-boundary"]=function(){return!(J==null?0:J())},x["yt-page-header-view-model--display-as-sidebar"]=
Z,x));
var U={},l=_.gF((U["yt-page-header-view-model__page-header-headline"]=!0,U["yt-page-header-view-model__page-header-headline--page-header-headline-full-width-hero"]=function(){var p3;return(p3=G())==null?void 0:p3.allowFullWidth},U)),X=function(){var p3;
return k()&&!((p3=G())==null?0:p3.allowFullWidth)},f=function(){return H()&&(!!L().heroImage||v())&&nbs(L())>0},N=function(){return f()&&(y==null?void 0:y())};
U={};var z=_.gF((U["yt-page-header-view-model__page-header-title"]=!0,U["yt-page-header-view-model__page-header-title--page-header-title-large"]=function(){return!f()},U["yt-page-header-view-model__page-header-title--page-header-title-medium"]=function(){return f()&&!N()},U["yt-page-header-view-model__page-header-title--page-header-title-medium-force-small-layout"]=N,U["yt-page-header-view-model__page-header-title--page-header-title-overlay"]=V,U));
U={};var xf=_.gF((U["yt-page-header-view-model__page-header-headline-image"]=!0,U["yt-page-header-view-model__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!L().heroImage&&k()},U));
U={};var K3=_.gF((U["yt-page-header-view-model__page-header-banner-container"]=S,U["yt-page-header-view-model__page-header-banner-container--full-bleed"]=function(){var p3;return(S==null?void 0:S())&&((p3=_.g(L().banner,_.LwC))==null?void 0:p3.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},U));
U={};var P4=_.gF((U["yt-page-header-view-model__page-header-content-metadata"]=!0,U["yt-page-header-view-model__page-header-content-metadata--page-header-content-metadata-overlay"]=V,U));U={};var kf=_.gF((U["yt-page-header-view-model__page-header-flexible-actions"]=!0,U["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!L().metadata||k()},U["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!k()},U));
U={};var H4=_.gF((U["yt-page-header-view-model__page-header-attribution"]=!0,U["yt-page-header-view-model__page-header-attribution--page-header-attribution-overlay"]=V,U));return _.M("yt-page-header-view-model",{class:x},_.M(_.d,{cond:V,then:function(){return _.M("div",{class:"yt-page-header-view-model__page-header-background"},_.M(_.Fj,{data:function(){return L().background}},{cinematicContainerViewModel:function(p3){return _.M(_.cv2,{data:p3.data,
topbarOffset:Q})}}))}}),_.M(Qzh,{condition:function(){return!(Z==null||!Z())},
content:function(){return _.M("div",{class:"yt-page-header-view-model__page-header-content"},_.M(_.d,{cond:function(){return(S==null?void 0:S())&&L().banner},
then:function(){return _.M("div",{class:K3},_.M(_.Fj,{data:function(){return L().banner}},{imageBannerViewModel:_.dC}))}}),_.M("div",{class:l},_.M(_.d,{cond:v,
then:function(){return _.M(_.Fj,{data:function(){var p3;if(!(p3=L().animatedImage)){p3=L();if(v()){var w0=p3=Object.assign({},p3),Rn=h(),lG=nbs(L()),xX=w0.image,UR=_.g(xX,xKh),c4=UR==null?void 0:UR.avatar,hr=_.g(c4,_.$e);if(xX&&c4&&hr){switch(Rn){case 1:hr.avatarImageSize="AVATAR_SIZE_XL";break;case 2:hr.avatarImageSize="AVATAR_SIZE_XXL";break;default:lG<4?hr.avatarImageSize="AVATAR_SIZE_XXL":hr.avatarImageSize="AVATAR_SIZE_XXXL"}_.AH(c4,_.$e,Object.assign({},hr));UR.avatar=Object.assign({},c4);_.AH(xX,
xKh,Object.assign({},UR));w0.image=Object.assign({},xX)}}p3=p3.image}return p3}},{contentPreviewImageViewModel:function(p3){return _.M(_.CD,{data:p3.data,
className:xf,imageSizeConfig:G})},
decoratedAvatarViewModel:function(p3){return _.M(_.Z6,{data:p3.data,className:xf})}})}}),_.M(_.d,{cond:function(){return!!L().heroImage&&!X()},
then:function(){return _.M(_.Fj,{data:function(){return L().heroImage}},{contentPreviewImageViewModel:function(p3){return _.M(_.CD,{data:p3.data,
className:xf,imageSizeConfig:G})}})}}),_.M("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.M(_.d,{cond:function(){return!!L().heroImage&&X()},
then:function(){return _.M("div",{class:"yt-page-header-view-model__page-header-headline-image-hero-container"},_.M(_.Fj,{data:function(){return L().heroImage}},{contentPreviewImageViewModel:function(p3){return _.M(_.CD,{data:p3.data,
className:xf,imageSizeConfig:G})}}))}}),_.M(_.Fj,{data:function(){return L().title}},{dynamicTextViewModel:function(p3){return _.M(SPd,{data:p3.data,
className:z})}}),_.M(_.Fj,{data:function(){return L().metadata}},{contentMetadataViewModel:function(p3){return _.M(_.lu,{data:p3.data,
layout:function(){return H()?1:0},
className:P4,isOverlay:V,useMediumText:T})}}),_.M(_.d,{cond:function(){return L().description&&!H()},
then:function(){return _.M(_.Fj,{data:function(){return L().description}},{descriptionPreviewViewModel:function(p3){return _.M(_.qZ,{data:p3.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:V,maxLinesOverride:function(){return H()?void 0:1},
useMediumText:function(){return(E==null?void 0:E())||T()}})}})}}),_.M(_.d,{cond:function(){return L().attribution&&!k()},
then:function(){return _.M(_.Fj,{data:function(){return L().attribution}},{attributionViewModel:function(p3){return _.M(wRd,{data:p3.data,
className:H4,useMediumText:T})}})}}),_.M(_.d,{cond:function(){return L().actions&&!k()},
then:function(){return _.M(_.Fj,{data:function(){return L().actions}},{flexibleActionsViewModel:function(p3){return _.M(_.yw,{data:p3.data,
layout:function(){return tsO(h())},
className:kf})}})}}))),_.M("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.M(_.d,{cond:function(){return L().description&&H()},
then:function(){return _.M(_.Fj,{data:function(){return L().description}},{descriptionPreviewViewModel:function(p3){return _.M(_.qZ,{data:p3.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:V,maxLinesOverride:function(){return H()?void 0:1},
useMediumText:function(){return(E==null?void 0:E())||T()}})}})}}),_.M(_.d,{cond:function(){return L().attribution&&k()},
then:function(){return _.M(_.Fj,{data:function(){return L().attribution}},{attributionViewModel:function(p3){return _.M(wRd,{data:p3.data,
className:H4,useMediumText:T})}})}}),_.M(_.d,{cond:function(){return L().actions&&k()},
then:function(){return _.M(_.Fj,{data:function(){return L().actions}},{flexibleActionsViewModel:function(p3){return _.M(_.yw,{data:p3.data,
layout:function(){return tsO(h())},
className:kf})}})}})),_.M("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.M(_.Fj,{data:function(){return L().bottomMetadataFlexibleContainer}},{flexibleContainer:function(p3){return _.M(DDC,{data:p3.data,
isOverlay:V})}})))}}))},"Oe");
_.J$W.idomCompat=!0;_.dF(_.B(function(x){var L=_.O(_.HB(!1,void 0,"vvzTj")),D=L.next().value,S=L.next().value;return _.M("yt-official-card-view-model",{class:_.gF("ytOfficialCardViewModelHost",x.className),style:_.bc({"background-color":function(){var Q,J=pF((Q=x.data())==null?void 0:Q.backgroundColor);return J?_.XA(J):void 0}})},_.M(_.Fj,{data:function(){return x.data().header}},{pageHeaderViewModel:function(Q){return _.M(_.J$W,{data:Q.data,
noPadding:!0})}}),_.M(_.Fj,{data:function(){return x.data().contents}},{horizontalShelfViewModel:function(Q){return _.M(_.MG,{data:Q.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.M(_.d,{cond:D,
then:function(){return _.M("div",{class:"ytOfficialCardViewModelExpandedContent"},_.M(_.Fj,{data:function(){return x.data().expandedContents}},{horizontalShelfViewModel:function(Q){return _.M(_.MG,{data:Q.data,
sizing:"MINI"})}}),_.M("div",{class:"ytOfficialCardViewModelCollapseButton"},_.M(_.Fj,{data:function(){return x.data().collapseButton}},{buttonViewModel:function(Q){return _.M(_.qP,{data:Q.data,
onClick:function(){S(!D())}})}})))},
else:function(){return _.M("div",{class:"ytOfficialCardViewModelExpandButton"},_.M(_.Fj,{data:function(){return x.data().expandButton}},{buttonViewModel:function(Q){return _.M(_.qP,{data:Q.data,
onClick:function(){S(!D())}})}}))}}))},"Pe"),"yt-official-card-view-model",{props:{data:_.pJ,
className:_.pJ}});var K62=_.B(function(x){var L,D=(L=_.yY().resolve(_.ZN(_.Dt)))==null?void 0:L();return _.M("ytw-search-friction-view-model",{class:_.gF("ytwSearchFrictionViewModelHost",x.className)},_.M("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.M("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},_.M(_.d,{cond:function(){return D&&x.data().darkThemeImage?x.data().darkThemeImage:x.data().image},
then:function(S){return _.M(_.Ku,{data:S,alt:"",className:"ytwSearchFrictionViewModelHostImage"})}})),_.M(_.Fj,{data:function(){return x.data().overflowMenuButton}},{buttonViewModel:function(S){return _.M(_.qP,{data:S.data,
className:"ytwSearchFrictionViewModelHostMenuButton"})}})),_.M(_.kP,{text:function(){return x.data().title},
className:"ytwSearchFrictionViewModelHostTitle"}),_.M(_.R1,{each:function(){return x.data().bodyText||[]}},function(S){return _.M(_.kP,{text:S,
className:"ytwSearchFrictionViewModelHostBodyText"})}),_.M(_.Fj,{data:function(){return x.data().actions}},{buttonViewModel:function(S){return _.M(_.qP,{data:S.data,
className:"ytwSearchFrictionViewModelHostButton"})}}),_.M(_.kP,{text:function(){return x.data().disclaimer},
className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.M(_.kP,{text:function(){return x.data().attribution},
className:"ytwSearchFrictionViewModelHostAttribution"}))},"Qe");
K62.idomCompat=!0;_.dF(K62,"ytw-search-friction-view-model",{props:{data:_.pJ,className:_.pJ}});_.P6=_.B(function(x){var L=_.x3("markdown-div"),D,S=(D=_.yY().resolve(_.ZN(_.Dt)))==null?void 0:D();_.Us(function(){var Q=L.value;var J=new vXQ,Z=new Map(J.JSC$9303_sanitizerTable.globalAttributePolicies);Z.set("style",{policyAction:4});J.JSC$9303_sanitizerTable=new Uc(J.JSC$9303_sanitizerTable.allowedElements,J.JSC$9303_sanitizerTable.elementPolicies,J.JSC$9303_sanitizerTable.allowedGlobalAttributes,Z,J.JSC$9303_sanitizerTable.globallyAllowedAttributePrefixes);var y=["data-time"];if(y===void 0)Z=
new Set(J.JSC$9303_sanitizerTable.globallyAllowedAttributePrefixes),Z.add("data-"),J.JSC$9303_sanitizerTable=new Uc(J.JSC$9303_sanitizerTable.allowedElements,J.JSC$9303_sanitizerTable.elementPolicies,J.JSC$9303_sanitizerTable.allowedGlobalAttributes,J.JSC$9303_sanitizerTable.globalAttributePolicies,Z);else{Z=new Set(J.JSC$9303_sanitizerTable.allowedGlobalAttributes);y=_.O(y);for(var E=y.next();!E.done;E=y.next()){E=E.value;if(E.indexOf("data-")!==0)throw Error("ka`"+E);Z.add(E)}J.JSC$9303_sanitizerTable=
new Uc(J.JSC$9303_sanitizerTable.allowedElements,J.JSC$9303_sanitizerTable.elementPolicies,Z,J.JSC$9303_sanitizerTable.globalAttributePolicies,J.JSC$9303_sanitizerTable.globallyAllowedAttributePrefixes)}Z=new Set(J.JSC$9303_sanitizerTable.allowedGlobalAttributes);Z.add("class");J.JSC$9303_sanitizerTable=new Uc(J.JSC$9303_sanitizerTable.allowedElements,J.JSC$9303_sanitizerTable.elementPolicies,Z,J.JSC$9303_sanitizerTable.globalAttributePolicies,J.JSC$9303_sanitizerTable.globallyAllowedAttributePrefixes);
_.JB(Q,_.EX2(J.build(),LZN(x.text())));Dtn(L.value)},"OZ439c");
D={};return _.M("div",null,_.M("markdown-div",{class:_.gF("ytwMarkdownDivHost",(D.ytwMarkdownDivDark=S,D.ytwMarkdownDivHostEnableDefaultStylingSmall=function(){var Q;return((Q=x.isSmallText)==null?void 0:Q.call(x))||!1},D.ytwMarkdownDivHostWrapCodeBlocks=function(){var Q;
return((Q=x.wrapCodeBlocks)==null?void 0:Q.call(x))||!1},D.ytwMarkdownDivHostEnableDefaultStyling=function(){var Q;
return!((Q=x.disableDefaultStyling)==null?0:Q.call(x))},D)),
el:L}))},"Se");
_.P6.idomCompat=!0;var OcB=_.B(function(x){var L=x.imageData;var D=_.ZH(x.isInList,!1),S=function(){return D()?{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 _.M("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.M(_.d,{cond:function(){return L().image},
then:function(Q){return _.M(_.Ku,{data:Q,alt:function(){return S().alt},
contentMode:function(){return S().contentMode},
targetWidth:function(){return S().targetWidth},
targetHeight:function(){return S().targetHeight},
className:function(){return S().className}})}}),_.M("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.M("div",{class:_.gF("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.M(_.kP,{text:function(){return L().title}})),_.M(_.R1,{each:function(){var Q;
return(Q=L().description)!=null?Q:[]}},function(Q){return _.M("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.M(jU,{content:Q}))})))},"Te"),ZcA=_.B(function(x){var L=x.list;
var D=function(){var S;return(S=L().items)!=null?S:[]};
return _.M("div",{class:"ytwGenAiRichTextViewModelListContent"},_.M(_.d,{cond:function(){return L().title},
then:function(S){return _.M("div",{class:_.gF("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.M(_.kP,{text:S}))}}),_.M(_.d,{cond:function(){return L().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.M("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.M(_.R1,{each:D},function(S){return _.M("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.M(jU,{content:S,isInList:!0}))}))}}),_.M(_.d,{cond:function(){return L().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.M("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.M(_.R1,{each:D},function(S){return _.M("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.M(jU,{content:S,isInList:!0}))}))}}),_.M(_.d,{cond:function(){return L().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.M("div",{class:"ytwGenAiRichTextViewModelImageList"},_.M(_.R1,{each:D},function(S){return _.M("div",{class:"ytwGenAiRichTextViewModelListItem"},_.M(jU,{content:S,isInList:!0}))}))}}))},"Ue"),y$Q=_.B(function(x){var L=x.table;
return _.M("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.M("thead",null,_.M("tr",null,_.M(_.R1,{each:function(){var D,S;return(S=(D=L().header)==null?void 0:D.cells)!=null?S:[]}},function(D){return _.M("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.M(_.R1,{each:function(){return D.contents}},function(S){return _.M(jU,{content:S})}))}))),_.M("tbody",null,_.M(_.R1,{each:function(){var D;
return(D=L().rows)!=null?D:[]}},function(D){return _.M("tr",null,_.M(_.R1,{each:function(){return D.cells}},function(S){return _.M("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.M(_.R1,{each:function(){return S.contents}},function(Q){return _.M(jU,{content:Q})}))}))})))},"Ve"),jU=_.B(function(x){var L=x.content;
var D=_.ZH(x.isInList,!1),S=function(){var Q,J;return(J=(Q=L().contentBlock)==null?void 0:Q.contents)!=null?J:[]};
return _.M("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.M(_.d,{cond:function(){return L().text},
then:function(Q){return _.M(_.kP,{className:"ytwGenAiRichTextViewModelText",text:Q})}}),_.M(_.d,{cond:function(){return L().image},
then:function(Q){return _.M(OcB,{imageData:Q,isInList:D})}}),_.M(_.d,{cond:function(){return L().list},
then:function(Q){return _.M(ZcA,{list:Q})}}),_.M(_.d,{cond:function(){return L().contentBlock},
then:function(){return _.M("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.M(_.R1,{each:S},function(Q){return _.M(jU,{content:Q,isInList:!1})}))}}),_.M(_.d,{cond:function(){return L().table},
then:function(Q){return _.M(y$Q,{table:Q})}}))},"We"),IC2=_.B(function(x){var L={};
L=_.Uv("ytwGenAiRichTextViewModelHost",(L.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.PY("search_overview_link_style")),L));return _.M("gen-ai-rich-text-view-model",{class:L},_.M(jU,{content:function(){return x.data().content}}))},"Xe");_.EL2=_.B(function(x){var L=x.data;var D=function(){var T;return((T=L().loadingUi)!=null?T:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},S=function(){return L().isLoading&&(D()==="UNSPECIFIED"||D()==="GHOST_CARD")},Q=function(){return!L().isLoading},J=function(){return!!L().content&&!L().contents},Z=function(){return!!L().contents},y=function(){return!!L().nextQueryButtons},E=function(){return L().isLoading&&D()==="INVISIBLE"},P=function(){var T,G;
return(G=(T=L().headerIcon)==null?void 0:T.iconType)!=null?G:""},v=function(){var T;
return(T=L().content)!=null?T:""},V=function(){return!!L().sourcesSection},h,H=!((h=_.yY().resolve(_.ZN(_.Dt)))==null||!h()),k=_.m5(function(){var T=[],G=L().contents;
if(G)for(var U=0;U<G.length;U++){var l=_.g(G&&G[U],K$Q);l&&T.push(l)}return T},void 0,"gcCsZb");
_.wO(function(){L().isLoading||_.$T("so_re",void 0,"search_overview_answer")});
return _.M("ytd-overview-answer-view-model",{class:function(){var T={};T=(T.ytdOverviewAnswerViewModelHost=!0,T.ytdOverviewAnswerViewModelDarkBackground=H&&!E(),T.ytdOverviewAnswerViewModelLightBackground=!H&&!E(),T);return _.Uv(T)}},_.M(_.d,{cond:function(){return!E()},
then:function(){return _.M(_.I1,null,_.M("h2",null,_.M("div",{class:"ytdOverviewAnswerViewModelHeader"},_.M(_.d,{cond:P,then:function(T){return _.M("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.M(_.YO,{icon:T}))}}),_.M("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.M("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return L().headerText}),_.M("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.M(_.kP,{text:function(){return L().headerSubtext}}))))),_.M(_.d,{cond:S,
then:function(){return _.M(SJ4,null)}}),_.M(_.d,{cond:Q,
then:function(){return _.M(_.I1,null,_.M(_.d,{cond:J,then:function(){return _.M("div",{class:"ytdOverviewAnswerViewModelText"},_.M(_.P6,{text:v,isSmallText:!0}))}}),_.M(_.d,{cond:Z,
then:function(){return _.M("div",{class:"ytdOverviewAnswerViewModelRichText"},_.M(_.R1,{each:k},function(T){return _.M(IC2,{data:T})}))}}),_.M(_.d,{cond:y,
then:function(){return _.M("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.M(_.Fj,{data:function(){return L().nextQueryButtons}},{buttonViewModel:function(T){return _.M(_.qP,{data:T.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.MG}))}}),_.M("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.M("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.M(_.d,{cond:function(){return!!_.g(L().likeButtonViewModel,_.Q4)&&!!_.g(L().dislikeButtonViewModel,_.S3)},
then:function(){return _.M("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.M(_.Ea,{data:function(){return _.g(L().likeButtonViewModel,_.Q4)},
disableIconAnimation:!0}),_.M(_.Ib,{data:function(){return _.g(L().dislikeButtonViewModel,_.S3)}}))}})),_.M(_.d,{cond:function(){var T;
return(T=L().sourcesSection)==null?void 0:T.headerText},
then:function(T){return _.M("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.M(_.kP,{text:T}))}})),_.M(_.d,{cond:V,
then:function(){return _.M("div",{class:"ytdOverviewAnswerViewModelSources"},_.M(_.Fj,{data:function(){var T;return(T=L().sourcesSection)==null?void 0:T.sourcesShelf}},{buttonViewModel:_.qP,
horizontalShelfViewModel:function(T){return _.M(_.MG,{data:T.data,includeMargin:!0,hasPeek:!0})}}))}}),_.M(_.d,{cond:function(){return L().disclaimerText},
then:function(){return _.M("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.M(_.kP,{text:function(){return L().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"Ye");var MjC=_.B(function(x){var L=_.ym(x,{}).data;return _.M("yt-shopping-content-line-item-view-model",{class:_.gF("ytShoppingContentLineItemViewModelHost")},_.M(_.kP,{text:function(){var D;return(D=L().text)==null?void 0:D.attributedString}}))},"Ze");_.v6=_.B(function(x){x=_.ym(x,{});var L=x.data,D={};return _.M("yt-shopping-content-line-view-model",{class:_.gF("ytShoppingContentLineViewModelHost",x.className,(D.ytShoppingContentLineViewModelTruncateText=function(){return!L().wrapContent},D)),
style:_.bc({"--shopping-content-line-gap":function(){return L().itemGap?L().itemGap+"px":void 0},
"--shopping-content-line-height":function(){return L().lineHeight?L().lineHeight+"px":void 0}})},_.M(_.R1,{each:function(){return(L().items||[]).map(function(S){return _.g(S,hB_)}).filter(function(S){return!!S})}},function(S){return _.M(MjC,{data:S})}))},"$e");var dDB=_.B(function(x){var L=x.data;var D=function(){var J;return((J=L().image)==null?void 0:J.height)||48},S=function(){var J;
return((J=L().image)==null?void 0:J.width)||48},Q=function(){return"width: "+S()+"px; height: "+D()+"px;"};
return _.M("yt-shopping-description-item-view-model",{class:"ytShoppingDescriptionItemViewModelHost",style:function(){var J,Z,y,E=((J=_.yY().resolve(_.ZN(_.Dt)))==null?0:J())?(Z=L())==null?void 0:Z.darkThemeBackgroundColor:(y=L())==null?void 0:y.lightThemeBackgroundColor;return"background-color: "+(E?_.XA(E):"")+";"},
el:_.Zt(_.AL(function(){var J;return(J=L())==null?void 0:J.rendererContext}))},_.M(_.d,{cond:function(){var J,Z;
return(Z=(J=L().image)==null?void 0:J.image)!=null?Z:L().thumbnail},
then:function(J){return _.M("div",{class:"ytShoppingDescriptionItemViewModelThumbnail",style:function(){var Z;return"background-color: "+(((Z=L().image)==null?0:Z.backgroundColor)?_.XA(L().image.backgroundColor):"")+";"+Q()}},_.M(_.Ku,{data:J,
height:D,width:S,style:Q,alt:""}))}}),_.M("div",{class:"ytShoppingDescriptionItemViewModelText"},_.M(_.Fj,{data:function(){return L().line1}},{shoppingContentLineViewModel:function(J){return _.M(_.v6,{data:J.data})}}),_.M(_.Fj,{data:function(){return L().line2}},{shoppingContentLineViewModel:function(J){return _.M(_.v6,{data:J.data})}}),_.M(_.Fj,{data:function(){return L().line3}},{shoppingContentLineViewModel:function(J){return _.M(_.v6,{data:J.data})}})))},"af");var PdC=_.B(function(x){var L=x.data;var D=x.active;var S=_.x3("transcript-segment-view-model");_.Us(function(){var Q,J,Z,y=((Q=_.yY().resolve(_.ZN(_.Dt)))==null?0:Q())?(J=L())==null?void 0:J.darkThemeColorPalette:(Z=L())==null?void 0:Z.lightThemeColorPalette;y&&(y.additiveBackground&&S.value.style.setProperty("--timestamp-active-background-color",_.XA(y.additiveBackground)),y.textSecondary&&S.value.style.setProperty("--timestamp-active-color",_.zF(y.textSecondary)))},"TnVCnb");
x={};return _.M("transcript-segment-view-model",{class:_.gF("ytwTranscriptSegmentViewModelHost",(x.ytwTranscriptSegmentViewModelHostActive=D,x.ytwTranscriptSegmentViewModelHostModern=_.u("enable_timeline_view_modern_transcript")||_.u("enable_timeline_view_modern_transcript_fe"),x)),el:S},_.M(_.d,{cond:function(){var Q;return(Q=L())==null?void 0:Q.timestamp},
then:function(Q){var J={};return _.M(_.I1,null,_.M("div",{class:_.gF("ytwTranscriptSegmentViewModelTimestamp",(J.ytwTranscriptSegmentViewModelTimestampActive=D,J)),"aria-hidden":!0},Q),_.M("div",{class:"ytwTranscriptSegmentViewModelTimestampA11yLabel"},function(){var Z=Q().split(":").map(Number),y=_.O(Z.reverse());Z=y.next().value;var E=y.next().value;y=y.next().value;return _.fJ0({hours:y,minutes:E,seconds:Z})}))}}),_.M(_.kP,{text:function(){var Q,J,Z;
return(Z=(Q=L())==null?void 0:Q.attributedText)!=null?Z:{content:(J=L())==null?void 0:J.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"cf");var jzC=_.B(function(x){var L=x.data;return _.M("div",{class:"videoAttributesSectionViewModelHeader"},_.M("div",{class:"videoAttributesSectionViewModelTitleContainer"},_.M("h3",{class:"videoAttributesSectionViewModelTitle"},function(){return L().headerTitle}),_.M(_.d,{cond:function(){return L().headerInfoButton},
then:function(){return _.M(_.Fj,{data:function(){return L().headerInfoButton}},{buttonViewModel:function(D){return _.M(_.qP,{data:D.data,
className:"videoAttributesSectionViewModelInfoButton"})}})}})),_.M(_.d,{cond:function(){return L().headerSubtitle},
then:function(){return _.M("span",{class:"videoAttributesSectionViewModelSubtitle"},function(){return L().headerSubtitle})}}))},"df"),vL_=_.B(function(x){function L(T){return Math.max(Math.min(T,0),P()-y())}
var D=x.data;var S;x=_.x3("div",function(T){var G=function(){v(T.clientWidth)};
G();window.ResizeObserver&&(S=new ResizeObserver(G),S.observe(T))});
var Q=_.x3("div",function(T){E(T.scrollWidth)}),J=_.O(_.HB(0,void 0,"C3XQAe")),Z=J.next().value;
J=J.next().value;var y=Z,E=J;J=_.O(_.HB(0,void 0,"db7y3"));Z=J.next().value;J=J.next().value;var P=Z,v=J;Z=_.O(_.HB(0,void 0,"RchC7"));var V=Z.next().value,h=Z.next().value;_.wH(function(){var T;(T=S)==null||T.disconnect()});
var H=function(){h(L(V()+P()))},k=function(){h(L(V()-P()))};
return _.M("yt-video-attributes-section-view-model",null,_.M("div",{class:"videoAttributesSectionViewModelHost"},_.M(_.d,{cond:function(){return D().headerTitle},
then:function(){return _.M(jzC,{data:D})}}),_.M("div",{class:_.gF("videoAttributesSectionViewModelVideoAttributes","videoAttributesSectionViewModelScrollContainer"),
el:x},_.M("div",{class:"videoAttributesSectionViewModelVideoAttributesContainer",style:_.bc({transform:function(){var T=V();_.$6("HTML_DIR")==="rtl"&&(T*=-1);return"translateX("+T+"px)"}}),
el:Q},_.M(_.Fj,{data:function(){return D().videoAttributeViewModels}},{videoAttributeViewModel:Lh2}))),_.M(_.Fj,{data:function(){return D().footerButton}},{buttonViewModel:function(T){return _.M(_.qP,{data:T.data,
className:"videoAttributesSectionViewModelFooterButton"})}}),_.M(_.d,{cond:function(){return V()<0&&D().previousButton},
then:function(){return _.M("div",{class:"videoAttributesSectionViewModelLeftArrow"},_.M(_.Fj,{data:function(){return D().previousButton}},{buttonViewModel:function(T){return _.M(_.qP,{data:T.data,
onClick:H})}}))}}),_.M(_.d,{cond:function(){return V()>P()-y()&&D().nextButton},
then:function(){return _.M("div",{class:"videoAttributesSectionViewModelRightArrow"},_.M(_.Fj,{data:function(){return D().nextButton}},{buttonViewModel:function(T){return _.M(_.qP,{data:T.data,
onClick:k})}}))}})))},"ef");
vL_.idomCompat=!0;var Vj2=_.B(function(x){var L=x.data;var D=x.active;var S={},Q={};return _.M("timeline-item-view-model",{class:_.gF("ytwTimelineItemViewModelHost",(S.ytwTimelineItemViewModelHostChapterChild=x.chapterChild,S.ytwTimelineItemViewModelModern=_.u("enable_timeline_view_modern_transcript")||_.u("enable_timeline_view_modern_transcript_fe"),S))},_.M("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.M("div",{class:_.gF("ytwTimelineItemViewModelTimestamp",(Q.ytwTimelineItemViewModelTimestampActive=
D,Q))},function(){return L().timestamp})),_.M("div",{class:"ytwTimelineItemViewModelContentItems"},_.M(_.Fj,{data:function(){return L().contentItems}},{transcriptSegmentViewModel:function(J){return _.M(PdC,{data:J.data,
active:D})},
videoAttributesSectionViewModel:vL_})))},"ff");var hGR=_.B(function(x){var L=x.data;x={};return _.M("timeline-chapter-view-model",{class:_.gF("ytwTimelineChapterViewModelHost")},_.M("div",{class:_.gF("ytwTimelineChapterViewModelTitle",(x.ytwTimelineChapterViewModelModern=_.u("enable_timeline_view_modern_transcript")||_.u("enable_timeline_view_modern_transcript_fe"),x))},function(){return L().title}),_.M(_.Fj,{data:function(){return L().contents}},{timelineItemViewModel:function(D){return _.M(Vj2,{data:D.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(D){return _.M(vL_,{data:D.data})}}))},"gf");var Hc2=_.B(function(x){var L=x.data;var D=_.x3("macro-markers-panel-item-view-model"),S=_.mF(_.jKp,function(){var J;return(J=L().markersEngagementPanelSyncEntityKey)!=null?J:""}),Q=function(){var J;
return((J=S())==null?void 0:J.activeItemIndex)===L().index};
x=_.kO(function(J){var Z,y,E,P,v;return _.I(function(V){if(V.nextAddress==1)return J.stopPropagation(),_.BX(_.w4(J),D.value,["A".toString(),"BUTTON".toString()])?V.return():(Z=_.fI(L().onTap))?V.yield(_.hL(),2):V.return();y=V.yieldResult;P=(E=_.g(Z,_.L6))==null?void 0:E.startTimeSeconds;P===void 0||(v=y)!=null&&v.seekTo(P,!0);_.Y2(V)})});
return _.M("macro-markers-panel-item-view-model",{class:_.gF("ytwMacroMarkersPanelItemViewModelHost",{"is-active":Q}),el:D,"on:click":x,tabindex:0,role:"button"},_.M(_.Fj,{data:function(){var J;return(J=L())==null?void 0:J.item}},{timelineChapterViewModel:function(J){return _.M(hGR,{data:J.data,
active:Q})},
timelineItemViewModel:function(J){return _.M(Vj2,{data:J.data,active:Q})},
videoAttributeViewModel:Lh2,shoppingDescriptionItemViewModel:dDB}))},"hf");
Hc2.idomCompat=!0;_.dF(Hc2,"macro-markers-panel-item-view-model",{props:{data:_.pJ}});_.dF(vL_,"yt-video-attributes-section-view-model",{props:{data:_.pJ}});var uiQ=_.B(function(x){var L=function(){var D,S,Q;return(Q=(D=x.data().leadingLogoAccessibility)==null?void 0:(S=D.accessibilityData)==null?void 0:S.label)!=null?Q:""};
return _.M("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.M(_.d,{cond:function(){return x.data().leadingLogo},
then:function(D){return _.M(_.Ku,{className:"ytwFantasySectionHeaderViewModelLogo",data:D,alt:L})}}),_.M("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.M(_.kP,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return x.data().title}}),_.M(_.kP,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return x.data().subtitle}})),_.M(_.Fj,{data:function(){return x.data().trailingButton}},{buttonViewModel:function(D){return _.M(_.qP,{data:D.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"jf");var gLC=_.B(function(x){var L={};L=_.gF("ytwFantasyTeamViewModelHost",(L.ytwFantasyTeamViewModelCompact=function(){var Q;return!((Q=x.compact)==null||!Q.call(x))},L.ytwFantasyTeamViewModelUser=function(){return x.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},L.ytwFantasyTeamViewModelOpponent=function(){return x.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},L));
var D=function(){var Q,J,Z;return(Z=(Q=x.data().teamLogoAccessibility)==null?void 0:(J=Q.accessibilityData)==null?void 0:J.label)!=null?Z:""},S=_.mF(hww,function(){return x.data().teamEntityKey});
return _.M("ytw-fantasy-team-view-model",{class:L},_.M(_.d,{cond:function(){return x.data().teamLogo},
then:function(Q){return _.M(_.Ku,{className:"ytwFantasyTeamViewModelLogo",data:Q,alt:D})}}),_.M("div",{class:"ytwFantasyTeamViewModelMetadata"},_.M("div",{class:"ytwFantasyTeamViewModelHeader"},_.M(_.kP,{className:"ytwFantasyTeamViewModelScore",
text:function(){var Q;return(Q=S())==null?void 0:Q.score}}),_.M(_.YO,{icon:function(){var Q;
return(Q=S())==null?void 0:Q.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.M(_.kP,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var Q;return(Q=S())==null?void 0:Q.projectedScore}})),_.M(_.kP,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return x.data().primaryText}}),_.M(_.kP,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return x.data().secondaryText}}),_.M(_.kP,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return x.data().tertiaryText}})),_.M(_.kP,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var Q;return(Q=S())==null?void 0:Q.score}}))},"kf");_.dF(_.B(function(x){return _.M("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.M("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.M(_.Fj,{data:function(){return x.data().summaryHeader}},{fantasySectionHeaderViewModel:uiQ})),_.M(_.Fj,{data:function(){return x.data().userTeam}},{fantasyTeamViewModel:gLC}),_.M(_.Fj,{data:function(){return x.data().opponentTeam}},{fantasyTeamViewModel:gLC}))},"lf"),"fantasy-league-summary-view-model",{props:{data:_.pJ}});var k4H=_.B(function(x){var L=_.ym(x,{shape:{},useCustomTabRenderable:!1}),D=L.shape;L=L.useCustomTabRenderable;var S=x.customTabRenderable,Q=function(){return D().disabled},J=function(){return D().selected},Z=function(){return D().title},y=function(){return D().icon},E=_.x3("yt-tab-shape");
x=_.kO(function(V){var h;if(!Q()&&((h=D().aTagConfig)==null?0:h.onclick))D().aTagConfig.onclick(V);return!1});
var P=_.kO(function(V){if(V.key==="Enter"||V.key==="ArrowUp"||V.key==="ArrowDown")V.preventDefault(),E.value.click();return!1}),v={};
return _.M("yt-tab-shape",{class:_.gF("yt-tab-shape",function(){return D().className},(v["yt-tab-shape__tab--last-tab"]=function(){return D().isLastTab},v["yt-tab-shape--host-disabled"]=Q,v["yt-tab-shape--host-clickable"]=!S,v)),
role:S?void 0:"tab","aria-selected":J!=null?J:!1,"aria-disabled":Q,tabindex:S?void 0:0,"on:click":x,"on:keydown":P,el:E,"tab-identifier":function(){return D().identifier},
"tab-title":Z},_.M(_.d,{cond:L,then:function(){return S()},
else:function(){var V={},h={};return _.M(_.I1,null,_.M("div",{class:_.gF("yt-tab-shape__tab",(V["yt-tab-shape__tab--tab-selected"]=J,V))},_.M(_.d,{cond:y,then:function(H){return _.M(_.YO,{className:"yt-tab-shape__tab-icon",icon:function(){return H().iconType}})}}),Z),_.M("div",{class:_.gF("yt-tab-shape__tab-bar",(h["yt-tab-shape__tab-bar--tab-bar-selected"]=J,h))}))}}))},"mf");
k4H.idomCompat={callbacks:{customTabRenderable:!0}};_.mD2=_.B(function(x){var L=x.shape;x=_.O(_.HB(48,void 0,"rCewuf"));var D=x.next().value,S=x.next().value;x=_.O(_.HB(0,void 0,"aUUTWe"));var Q=x.next().value,J=x.next().value,Z=function(){return L().tabs},y=_.x3("yt-tab-group-shape"),E=function(){var P,v;
return(v=(P=Z())==null?void 0:P.findIndex(function(V){return V.selected}))!=null?v:-1};
_.wO(function(){var P=y.value.querySelectorAll("yt-tab-shape"),v=E()>-1?P[E()]:void 0;_.WW.addJob(function(){S((v==null?void 0:v.getBoundingClientRect().width)||0)},8,0)});
_.Us(function(){var P=E(),v=_.WW.addJob(function(){var V,h=((V=y.value)==null?void 0:V.querySelectorAll("yt-tab-shape"))||[],H;S(((H=P>-1?h[P]:void 0)==null?void 0:H.getBoundingClientRect().width)||0);for(H=V=0;H<P;H++)V+=h[H].offsetWidth+24;_.$6("HTML_DIR")==="rtl"&&(V=-V);J(V)},8,0);
_.wH(function(){_.WW.cancelJob(v)})},"DAb5Qb");
x={};return _.M("yt-tab-group-shape",{class:_.gF("tabGroupShapeHost",(x.tabGroupShapeOverflowHidden=function(){return L().isOverflowHidden},x)),
el:y},_.M(_.d,{cond:Z,then:function(P){return _.M(_.I1,null,_.M("div",{class:"tabGroupShapeTabs",role:"tablist"},_.M(_.R1,{each:P},function(v,V){return _.M(k4H,{shape:function(){return Object.assign({},v,{isLastTab:V()===P().length-1})},
customTabRenderable:v.customTabRenderable,useCustomTabRenderable:!!v.customTabRenderable})})),_.M(prW,{width:D,
sliderOffset:Q}))}}))},"of");
_.mD2.idomCompat=!0;var prW=_.B(function(x){var L=_.ZH(x.sliderOffset,0),D=x.width;return _.M("div",{class:"tabGroupShapeSlider",style:_.bc({width:function(){return D()+"px"},
transform:function(){return"translateX("+L()+"px)"}})})},"pf");var bc_=_.B(function(x){var L=function(){var J,Z,y;return(y=(J=x.data().playerLogoAccessibility)==null?void 0:(Z=J.accessibilityData)==null?void 0:Z.label)!=null?y:""},D=_.mF(H9n,function(){return x.data().playerEntityKey}),S={};
S=_.gF("ytwFantasyPlayerViewModelHost",(S.ytwFantasyPlayerViewModelPlaying=function(){var J;return!((J=D())==null||!J.isPlayerPlaying)},S.ytwFantasyPlayerViewModelOnField=function(){var J;
return((J=D())==null?void 0:J.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},S.ytwFantasyPlayerViewModelRedZone=function(){var J;
return((J=D())==null?void 0:J.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},S));
var Q=function(){var J,Z,y,E=((J=_.yY().resolve(_.ZN(_.Dt)))==null?0:J())?(Z=x.data().playerLogoBackgroundColor)==null?void 0:Z.darkTheme:(y=x.data().playerLogoBackgroundColor)==null?void 0:y.lightTheme;return E===void 0?"":_.XA(E)};
return _.M("ytw-fantasy-player-view-model",{class:S},_.M(_.d,{cond:function(){return x.data().playerLogo},
then:function(J){return _.M("div",{class:"ytwFantasyPlayerViewModelLogo"},_.M("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.M(_.Ku,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.bc({"background-color":Q}),data:J,alt:L})),_.M("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.M(_.YO,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.M("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.M("div",{class:"ytwFantasyPlayerViewModelHeader"},_.M(_.kP,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var J;return(J=x.data())==null?void 0:J.playerNameText}}),_.M(_.kP,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var J;return(J=x.data())==null?void 0:J.playerDescriptionText}})),_.M("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.M(_.kP,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var J;return(J=D())==null?void 0:J.gamePeriodText}}),_.M(_.kP,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var J;return(J=x.data())==null?void 0:J.opponentTeamText}}),_.M(_.kP,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var J;return(J=D())==null?void 0:J.gameStatusText}}),_.M(_.kP,{className:_.gF("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var J;return(J=D())==null?void 0:J.playerStatusText}})),_.M("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.M(_.kP,{text:function(){var J;
return(J=D())==null?void 0:J.playerStatsText}}))),_.M(_.kP,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var J;return(J=D())==null?void 0:J.fantasyScore}}))},"qf");var YPd=_.B(function(x){return _.M("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.M(_.d,{cond:function(){return x.data().players},
then:function(L){return _.M(_.Fj,{data:L},{fantasyPlayerViewModel:bc_})}}))},"rf");var F62=_.B(function(x){var L=_.O(_.mU(function(){var Q;return(Q=x.data().selectedTabIdentifierKey)!=null?Q:""})),D=L.next().value,S=L.next().value;
_.UX(function(){var Q;(Q=x.setSelectedTabSignal)==null||Q.call(x,D)});
return _.M("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.M("div",{class:"ytTabbedViewModelTabGroup"},_.M(_.mD2,{shape:function(){var Q=x.data(),J=[],Z={tabs:J};if(!Q.tabs)return Z;Q=_.O(Q.tabs);for(var y=Q.next(),E={};!y.done;E={tabViewModel:void 0},y=Q.next())if(E.tabViewModel=_.g(y.value,gs_),E.tabViewModel){var P=y=void 0;J.push({aTagConfig:{onclick:function(v){return function(){var V;S((V=v.tabViewModel.tabIdentifier)!=null?V:"")}}(E)},
identifier:E.tabViewModel.tabIdentifier,selected:D()===E.tabViewModel.tabIdentifier,title:(P=(y=E.tabViewModel.title)==null?void 0:y.content)!=null?P:""})}return Z}})),_.M(_.Fj,{data:function(){var Q,J=_.O((Q=x.data().tabs)!=null?Q:[]);
for(Q=J.next();!Q.done;Q=J.next())if((Q=_.g(Q.value,gs_))&&Q.tabIdentifier===D())return Q.content}},{fantasyRosterViewModel:YPd}))},"tf");_.dF(_.B(function(x){var L=_.O(Qy0()),D=L.next().value,S=L.next().value;return _.M("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.M(_.kP,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return x.data().title}}),_.M(_.d,{cond:function(){return x.data().tabbedViewModel},
then:function(Q){return _.M(_.Fj,{data:Q},{tabbedViewModel:function(J){return _.M(F62,{data:J.data,setSelectedTabSignal:S})}})}}),_.M(_.d,{cond:function(){var Q,J=(Q=_.g(x.data().tabbedViewModel,kMd))==null?void 0:Q.tabs;
Q=_.g(J==null?void 0:J[0],gs_);J=_.g(J==null?void 0:J[1],gs_);var Z=Q==null?void 0:Q.tabIdentifier;if(D()===Z){var y,E;if(!((y=_.g(Q==null?void 0:Q.content,BIQ))==null?0:(E=y.players)==null?0:E.length))return x.data().noUserTeamPlayersText}else{var P,v;if(!((P=_.g(J==null?void 0:J.content,BIQ))==null?0:(v=P.players)==null?0:v.length))return x.data().noOpponentTeamPlayersText}},
then:function(Q){return _.M(_.kP,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:Q})}}))},"uf"),"ytw-fantasy-matchup-view-model",{props:{data:_.pJ}});_.dF(_.B(function(x){return _.M("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.M(_.kP,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return x.data().title}}),_.M(_.d,{cond:function(){return x.data().matchupTeamPairs},
then:function(L){return _.M(_.R1,{each:L,keyBy:"INDEX"},function(D){return _.M("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.M(_.Fj,{data:function(){return[D().firstTeam,D().secondTeam]}},{fantasyTeamViewModel:function(S){return _.M(gLC,{data:S.data,
compact:!0})}}))})}}))},"vf"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.pJ}});_.dF(_.B(function(x){var L=function(){var Q,J,Z;return(Z=(Q=x.data().userLogoAccessibility)==null?void 0:(J=Q.accessibilityData)==null?void 0:J.label)!=null?Z:""},D=function(){var Q,J,Z;
return(Z=(Q=x.data().opponentLogoAccessibility)==null?void 0:(J=Q.accessibilityData)==null?void 0:J.label)!=null?Z:""},S=_.mF(V4f,function(){return x.data().entityKey});
return _.M("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.M("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.M(_.d,{cond:function(){return x.data().userLogo},
then:function(Q){return _.M(_.Ku,{className:"ytwFantasyWinProbabilityViewModelLogo",data:Q,alt:L})}}),_.M("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.M(_.kP,{text:function(){return x.data().title}})),_.M(_.d,{cond:function(){return x.data().opponentLogo},
then:function(Q){return _.M(_.Ku,{className:"ytwFantasyWinProbabilityViewModelLogo",data:Q,alt:D})}})),_.M("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.M("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.M(_.kP,{text:function(){var Q;
return(Q=S())==null?void 0:Q.userWinNumberLabel}})),_.M("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.M("div",{class:_.gF("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.bc({flex:function(){var Q,J;return(J=(Q=S())==null?void 0:Q.userWinNumber)!=null?J:50}})}),_.M("div",{class:_.gF("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.bc({flex:function(){var Q,J;return(J=(Q=S())==null?void 0:Q.opponentWinNumber)!=null?J:50}})})),_.M("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.M(_.kP,{text:function(){var Q;
return(Q=S())==null?void 0:Q.opponentWinNumberLabel}}))))},"wf"),"fantasy-win-probability-view-model",{props:{data:_.pJ}});var sz_={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},T32=_.B(function(x){return _.M(_.Fj,{data:x.button},{buttonViewModel:function(L){return _.M(_.qP,{data:L.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"xf"),eGG=_.B(function(x){return _.M("ytd-backstage-locked-post-view-model",{class:_.gF("ytdBackstageLockedPostViewModelHost",x.className)},_.M("div",{class:"ytdBackstageLockedPostViewModelHeader"},_.M("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},_.M(_.Fj,
{data:function(){return x.data().authorAvatar}},{decoratedAvatarViewModel:_.Z6})),_.M("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},_.M("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},_.M(_.kP,{text:function(){return x.data().authorText}})),_.M("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},_.M(_.kP,{text:function(){return x.data().publishedTimeText}}),_.M(_.Fj,{data:function(){return x.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(L){return _.M(UQh,
{data:L.data,
className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),_.M("div",{class:"ytdBackstageLockedPostViewModelPostText"},_.M(_.kP,{text:function(){return x.data().contentText}})),_.M(_.GS,null,_.M(_.TS,{when:function(){return x.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return _.M("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},_.M(_.Ku,{data:sz_,
alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),_.M(_.kP,{text:function(){return x.data().lockedText}}))}),_.M(_.TS,{when:function(){return x.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return _.M("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},_.M("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},_.M(_.Ku,{data:sz_,
alt:""})),_.M(_.kP,{text:function(){return x.data().lockedText}}))})),_.M("div",{class:"ytdBackstageLockedPostViewModelButtons"},_.M(T32,{button:function(){return x.data().likeButton}}),_.M("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return x.data().voteCountA11y}},_.M(_.kP,{text:function(){return x.data().voteCount}})),_.M(T32,{button:function(){return x.data().dislikeButton}}),_.M(T32,{button:function(){return x.data().commentButton}}),_.M("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return x.data().commentCountA11y}},_.M(_.kP,{text:function(){return x.data().commentCount}}))))},"yf");
eGG.idomCompat=!0;_.dF(eGG,"ytd-backstage-locked-post-view-model",{props:{data:_.pJ,className:_.pJ}});_.BD("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var Vp=function(){var x=_.e.apply(this,arguments)||this;x.darkerPanels=_.u("web_watch_darker_panels");x.commentsHidePanelButton=!1;x.isWatchGrid=!1;x.continuationShowButton=!1;x.isSearch=!1;x.isConstrainedList=!1;x.isWatch=!1;x.eligibleToSwitchToGrid=!1;x.useBigThumbs=!1;x.notSticky=!1;x.epRestyle=!1;x.isCarouselInFeed=!0;x.topSpacingZero=!1;x.continuationIsInitialLoad=!0;x.enableSqueezebackPanels=_.u("web_shorts_enable_squeezeback_panels");x.enableAnchoredPanel=_.u("desktop_shorts_v2_anchored_panel");
x.mastheadHeight=0;x.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};x.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return x};
_.p(Vp,_.e);_.K=Vp.prototype;_.K.updateLockupContainerTypes=function(x){if(this.eligibleToSwitchToGrid){var L;(L=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||L.forEach(function(D){D.containerType=x})}};
_.K.getItemsPath=function(){return"data.contents"};
_.K.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.K.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:_.u("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.u("kevlar_low_priority_continuation")}}};
_.K.created=function(){};
_.K.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.K.handleIntersect=function(x){this.notSticky=x[0].intersectionRatio===1};
_.K.attached=function(){var x=this,L=_.u("web_item_section_sticky_header_use_scroll_as_fallback");L||document.addEventListener("scroll",_.p$(this,this.updateHeaderState));var D;this.mastheadHeight=((D=document.querySelector("ytd-masthead"))==null?void 0:D.clientHeight)||0;window.IntersectionObserver?(this.intersectionObserver=new IntersectionObserver(function(S){x.handleIntersect(S)},{rootMargin:"-"+(this.mastheadHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement)):L&&document.addEventListener("scroll",_.p$(this,this.updateHeaderState));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){x.updateHeaderState()}),this.resizeObserver.observe(this.hostElement))};
_.K.detached=function(){document.removeEventListener("scroll",_.p$(this,this.updateHeaderState));var x;(x=this.intersectionObserver)==null||x.disconnect();var L;(L=this.resizeObserver)==null||L.disconnect()};
_.K.updated=function(x){x.has("data")&&this.updateHeaderState()};
_.K.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch($MB(!this.notSticky))};
_.K.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var x=_.jr(this.hostElement).querySelector("ytd-comments-header-renderer");x&&(x.hidePanelButton=this.commentsHidePanelButton)}};
_.K.onRetrieveLocation=function(x,L){this.containsComments()&&(this.firstCommentsLoaded=L.hasComments=!0)};
_.K.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.K.onLoadReloadContinuation=function(x,L){var D=this;x.stopPropagation();this.isReloading=!0;_.MF(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(S){var Q=_.yY().resolve(_.NB);S=L(S);Q.postData(S).then(function(J){D.onReloadContinuationData(J)})}})};
_.K.onReloadContinuationData=function(x){if(x=this.get("response.continuationContents.itemSectionContinuation",x)||this.get("response.contents.itemSectionRenderer",x)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",x)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",x))this.set("data.contents",x.contents||x.results),x.header&&this.set("data.header",x.header),this.set("data.continuations",
x.continuations||[]);this.isReloading=!1};
_.K.computeContentsClass=function(x){return x?"reloading":""};
_.K.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.K.computeSectionIdentifier=function(x){return x==null?void 0:x.sectionIdentifier};
_.K.computeFitContainer=function(x){return(x==null?void 0:x.sectionIdentifier)==="youchat-item-section"};
_.K.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.u("kevlar_disable_comments_auto_load")};
_.K.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.K.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.K.computeHasDestinationShelfRenderer=function(x){var L,D;return!!(x==null?0:(L=x.contents)==null?0:(D=L[0])==null?0:D.destinationShelfRenderer)};
_.K.computeHasSectionGroupViewModel=function(x){var L,D;return!!(x==null?0:(L=x.contents)==null?0:(D=L[0])==null?0:D.sectionGroupViewModel)};
_.K.computeHasQrCodeRenderer=function(x){var L,D;return!!(x==null?0:(L=x.contents)==null?0:(D=L[0])==null?0:D.qrCodeRenderer)};
_.K.computeStaticCommentsHeader=function(x){return x&&this.containsComments()};
_.K.computeEpRestyle=function(x){return _.u("web_ep_restyling")&&x&&this.containsComments()};
_.K.computeIsContinuationCommentSection=function(x){return(x==null?void 0:x.targetId)==="shorts-engagement-panel-comments-section"||(x==null?void 0:x.targetId)==="comments-section"||(x==null?void 0:x.targetId)==="engagement-panel-comments-section"};
_.K.computeSuppressPaddingDisclaimer=function(){var x,L,D,S;return!!((x=this.data)==null?0:(L=x.contents)==null?0:(D=L[0])==null?0:(S=D.productListHeaderRenderer)==null?0:S.suppressPaddingDisclaimer)};
_.K.computeHeaderStyle=function(x){switch(x==null?void 0:x.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.K.dataChanged=function(){this.firstCommentsLoaded=!1};
_.K.observeDataContentsLength=function(){var x,L;((x=this.data)==null?0:(L=x.contents)==null?0:L.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.K.onYtDismissibleItemDismissedChange=function(x){this._setItemDismissed(x.type==="yt-dismissible-item-dismissed")};
_.K.triggerContinuations=function(){for(var x=_.jr(this.hostElement).querySelector("#continuations").children,L=0;L<x.length;L++)x[L].trigger()};
_.K.triggerInitialContinuations=function(){for(var x=_.jr(this.hostElement).querySelector("#continuations").children,L=0;L<x.length;L++)x[L].triggerIfNotPreviouslyTriggered()};
_.K.handleYtItemSectionContinuation=function(x,L){var D;L&&((D=this.data)==null?void 0:D.sectionIdentifier)!==L||(this.set("data.continuations",[x]),this.triggerContinuations())};
_.K.handleYtItemSectionReplace=function(x,L){var D;L&&((D=this.data)==null?void 0:D.sectionIdentifier)!==L||(this.set("data.contents",x),this.set("data.continuations",[]))};
_.K.computeUseHeightHack=function(x){return x&&!_.u("kevlar_disable_height_hack")};
_.K.computeTopSpacingZero=function(x){return x};
_.K.continuationShowButtonChanged=function(){var x=_.jr(this.hostElement).querySelector("ytd-continuation-item-renderer");x&&(x.showButton=this.continuationShowButton)};
_.K.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.gU("data-changed",this.data))};
_.J3.Object.defineProperties(Vp.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.u("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
thumbnailTargetWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&this.containerWidth?this.containerWidth/2:void 0}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.useBigThumbs?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
hasHeader:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.header)}},
expFixPlaylistHeader:{configurable:!0,enumerable:!0,get:function(){return _.u("web_fix_sticky_playlist_header")}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var x,L,D;return!!((x=this.data)==null?0:(L=x.contents)==null?0:(D=L[0])==null?0:D.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var x,L,D,S,Q,J,Z;return!!((x=this.data)==null?0:(L=x.contents)==null?0:(D=L[0])==null?0:(S=D.shelfRenderer)==null?0:(Q=S.content)==null?0:(J=Q.gridRenderer)==null?0:(Z=J.targetId)==null?0:Z.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var x,L,D;return!!((x=this.data)==null?0:(L=x.contents)==null?0:(D=L[0])==null?0:D.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var x,L,D;return!!((x=this.data)==null?0:(L=x.contents)==null?0:(D=L[0])==null?0:D.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.PY("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.u("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.u("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){},
set:function(){}}});
Vp.prototype.dataChangedForBinding=Vp.prototype.dataChangedForBinding;Vp.prototype.continuationShowButtonChanged=Vp.prototype.continuationShowButtonChanged;Vp.prototype.onYtDismissibleItemDismissedChange=Vp.prototype.onYtDismissibleItemDismissedChange;Vp.prototype.observeDataContentsLength=Vp.prototype.observeDataContentsLength;Vp.prototype.dataChanged=Vp.prototype.dataChanged;Vp.prototype.onServiceRequestCompleted=Vp.prototype.onServiceRequestCompleted;Vp.prototype.onLoadReloadContinuation=Vp.prototype.onLoadReloadContinuation;
Vp.prototype.onRetrieveLocation=Vp.prototype.onRetrieveLocation;Vp.prototype.commentsHidePanelButtonChanged=Vp.prototype.commentsHidePanelButtonChanged;Vp.prototype.dispatchChipBarIsSticky=Vp.prototype.dispatchChipBarIsSticky;Vp.prototype.updateLockupContainerTypes=Vp.prototype.updateLockupContainerTypes;_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],Vp.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Vp.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Vp.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.Gz.YtLazyListBehavior),_.r("design:type",Object)],Vp.prototype,"ytLazyListBehavior",void 0);_.A([_.b(_.u0.YtNextContinuationBehavior),_.r("design:type",Object)],Vp.prototype,"ytNextContinuationBehavior",void 0);
_.A([_.b(_.HS),_.r("design:type",Object)],Vp.prototype,"ytContinuationHandlerBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],Vp.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],Vp.prototype,"ytdReduxBehavior",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Vp.prototype,"darkerPanels",void 0);_.A([_.F(),_.r("design:type",Object)],Vp.prototype,"data",void 0);
_.A([_.F(),_.r("design:type",Boolean)],Vp.prototype,"engagementPanel",void 0);_.A([_.F(),_.r("design:type",Object)],Vp.prototype,"commentsHidePanelButton",void 0);_.A([_.F(),_.r("design:type",Object)],Vp.prototype,"isWatchGrid",void 0);_.A([_.F(),_.r("design:type",Object)],Vp.prototype,"continuationShowButton",void 0);_.A([_.F({computed:"computeIsContinuationCommentSection(data)"}),_.r("design:type",Boolean)],Vp.prototype,"continuationIsCommentsSection",void 0);
_.A([_.F({value:!0}),_.r("design:type",Boolean)],Vp.prototype,"autoFill",void 0);_.A([_.F(),_.r("design:type",Boolean)],Vp.prototype,"continuationDisablePrescanVisibility",void 0);_.A([_.F(),_.r("design:type",Boolean)],Vp.prototype,"isReloading",void 0);_.A([_.F(),_.r("design:type",Object)],Vp.prototype,"isSearch",void 0);_.A([_.F(),_.r("design:type",Object)],Vp.prototype,"isConstrainedList",void 0);_.A([_.F(),_.r("design:type",Object)],Vp.prototype,"isWatch",void 0);
_.A([_.F(),_.r("design:type",Object)],Vp.prototype,"eligibleToSwitchToGrid",void 0);_.A([_.F(),_.r("design:type",Object)],Vp.prototype,"useBigThumbs",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Vp.prototype,"notSticky",void 0);_.A([_.F({selector:_.Nj}),_.r("design:type",Object)],Vp.prototype,"isGridViewEnabled",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.r("design:type",Object)],Vp.prototype,"epRestyle",void 0);_.A([_.Y("isWatch"),_.F({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Vp.prototype,"hideShortsShelfHeader",null);_.A([_.Y("isSearch","isWatch"),_.r("design:type",String),_.r("design:paramtypes",[])],Vp.prototype,"thumbnailWidth",null);
_.A([_.Y("isSearch","containerWidth"),_.r("design:type",Object),_.r("design:paramtypes",[])],Vp.prototype,"thumbnailTargetWidth",null);_.A([_.Y("isSearch","isWatch"),_.r("design:type",String),_.r("design:paramtypes",[])],Vp.prototype,"sizing",null);_.A([_.Y("isWatch","isGridViewEnabled","useBigThumbs","data"),_.F({reflectToAttribute:!0}),_.r("design:type",Number),_.r("design:paramtypes",[])],Vp.prototype,"lockupContainerType",null);
_.A([_.Y("data"),_.F({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Vp.prototype,"hasHeader",null);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Vp.prototype,"expFixPlaylistHeader",null);_.A([_.bN("lockupContainerType","data"),_.r("design:type",Function),_.r("design:paramtypes",[Number]),_.r("design:returntype")],Vp.prototype,"updateLockupContainerTypes",null);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",String)],Vp.prototype,"pageSubtype",void 0);_.A([_.F({computed:"computeContainerWidth()"}),_.r("design:type",Number)],Vp.prototype,"containerWidth",void 0);_.A([_.F(),_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Vp.prototype,"isPlaylist",null);_.A([_.F(),_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Vp.prototype,"isClipList",null);_.A([_.F(),_.r("design:type",Object)],Vp.prototype,"isCarouselInFeed",void 0);
_.A([_.F({reflectToAttribute:!0}),_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Vp.prototype,"isPlaylistVideoContainer",null);_.A([_.F({reflectToAttribute:!0}),_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Vp.prototype,"isSearchFrictionPage",null);_.A([_.F({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.r("design:type",Boolean)],Vp.prototype,"useHeightHack",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.r("design:type",Object)],Vp.prototype,"topSpacingZero",void 0);_.A([_.F({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.r("design:type",Boolean)],Vp.prototype,"showButton",void 0);_.A([_.F(),_.r("design:type",Boolean)],Vp.prototype,"firstCommentsLoaded",void 0);_.A([_.F(),_.r("design:type",Object)],Vp.prototype,"continuationIsInitialLoad",void 0);
_.A([_.F({reflectToAttribute:!0,readOnly:!0}),_.r("design:type",Boolean)],Vp.prototype,"itemDismissed",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.r("design:type",String)],Vp.prototype,"sectionIdentifier",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.r("design:type",String)],Vp.prototype,"fitContainer",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.r("design:type",Boolean)],Vp.prototype,"hasDestinationShelfRenderer",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.r("design:type",Boolean)],Vp.prototype,"staticCommentsHeader",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Vp.prototype,"enableSqueezebackPanels",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Vp.prototype,"enableAnchoredPanel",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.r("design:type",Boolean)],Vp.prototype,"hasSectionGroupViewModel",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.r("design:type",Boolean)],Vp.prototype,"hasQrCodeRenderer",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.r("design:type",Boolean)],Vp.prototype,"suppressDisclaimerSeparator",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.r("design:type",String)],Vp.prototype,"headerStyle",void 0);_.A([_.Y("isSearch"),_.r("design:type",Object),_.r("design:paramtypes",[])],Vp.prototype,"lockupExperiments",null);
_.A([_.Y("isSearch"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Vp.prototype,"typographyBump",null);_.A([_.F1("#header"),_.r("design:type",HTMLElement)],Vp.prototype,"header",void 0);_.A([_.bN("notSticky"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Vp.prototype,"dispatchChipBarIsSticky",null);
_.A([_.bN("commentsHidePanelButton"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Vp.prototype,"commentsHidePanelButtonChanged",null);_.A([_.mX("yt-retrieve-location"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],Vp.prototype,"onRetrieveLocation",null);
_.A([_.mX("yt-load-reload-continuation"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Function]),_.r("design:returntype")],Vp.prototype,"onLoadReloadContinuation",null);_.A([_.mX("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Vp.prototype,"onServiceRequestCompleted",null);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Vp.prototype,"dataChanged",null);
_.A([_.GV("data.contents.length"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Vp.prototype,"observeDataContentsLength",null);_.A([_.mX("yt-dismissible-item-dismissed"),_.mX("yt-dismissible-item-undismissed"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],Vp.prototype,"onYtDismissibleItemDismissedChange",null);
_.A([_.bN("continuationShowButton"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Vp.prototype,"continuationShowButtonChanged",null);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Vp.prototype,"dataChangedForBinding",null);_.A([_.w({is:"ytd-item-section-renderer",disableElementRegistration:!0})],Vp);
_.q(Vp,"ytd-item-section-renderer",function(){if(Un2!==void 0)return Un2;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return Un2=x},{mode:1});var RGW;var OYb=_.Dv(_.p6("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var G4_={},KZw=(G4_[0]={title:_.ya(_.p6("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.ya(_.p6("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:_.O4("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},G4_[1]={title:_.ya(_.p6("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:_.O4("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},G4_);_.BD("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var h1=function(){var x=_.e.apply(this,arguments)||this;x.allVideosCount=0;x.allPlaylistCount=0;x.isOnline=!1;x.shouldRenderDownloadsBanner=!1;x.shouldRenderDownloadsBannerUpsell=!1;x.hasOptedIntoSmartDownloads=!1;x.areAllSmartDownloadsDeleted=!1;x.smartDownloadsCompleted=!1;return x};
_.p(h1,_.e);h1.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
h1.prototype.attached=function(){this.downloadsToRenderChanged()};
h1.prototype.detached=function(){this.set("renderableData",{})};
h1.prototype.downloadsToRenderChanged=function(){var x=_.Jd().getState().entities,L=_.wD(x),D=_.u("kevlar_playlist_dl_page_killswitch")?dIs(x):_.Ba(x),S=_.K$b(x),Q=_.IJ0(x),J=_.em(L);x=_.Wa(x);this.set("renderableData",y0h(D,L,S,Q,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,this.isOnline,J,x))};
h1.prototype.downloadsToRenderChanged=h1.prototype.downloadsToRenderChanged;_.A([_.b(_.EG),_.r("design:type",Object)],h1.prototype,"ytdReduxBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],h1.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],h1.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],h1.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.F(),_.r("design:type",Object)],h1.prototype,"renderableData",void 0);_.A([_.F({selector:_.Yj4}),_.r("design:type",Object)],h1.prototype,"allVideosCount",void 0);_.A([_.F({selector:nup}),_.r("design:type",Object)],h1.prototype,"allPlaylistCount",void 0);_.A([_.F({selector:_.NU}),_.r("design:type",Object)],h1.prototype,"isOnline",void 0);_.A([_.F({selector:_.CoG}),_.r("design:type",Object)],h1.prototype,"shouldRenderDownloadsBanner",void 0);
_.A([_.F({selector:_.B6h}),_.r("design:type",Object)],h1.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.A([_.F({selector:_.lJf}),_.r("design:type",Object)],h1.prototype,"hasOptedIntoSmartDownloads",void 0);_.A([_.F({selector:_.UI4}),_.r("design:type",Object)],h1.prototype,"areAllSmartDownloadsDeleted",void 0);_.A([_.F({selector:wyh}),_.r("design:type",Object)],h1.prototype,"smartDownloadsCompleted",void 0);
_.A([_.GV("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","shouldRenderDownloadsBannerUpsell","isOnline","allPlaylistCount"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],h1.prototype,"downloadsToRenderChanged",null);_.A([_.w({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],h1);
_.q(h1,"ytd-offline-item-section-renderer",function(){if(RGW!==void 0)return RGW;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return RGW=x},
{mode:1});var CdQ;var lCW;var H6=function(){return _.e.apply(this,arguments)||this};
_.p(H6,_.e);
H6.prototype.onDataChanged=function(){if(this.JSC$16715_lastData){var x=this.getFilterClass(this.JSC$16715_lastData.status);x&&this.hostElement.classList.remove(x)}var L;(x=this.getFilterClass((L=this.data)==null?void 0:L.status))&&this.hostElement.classList.add(x);x==="selected"?_.jr(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.jr(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");x==="disabled"?_.jr(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.jr(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$16715_lastData=this.data};
H6.prototype.getFilterClass=function(x){switch(x){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
H6.prototype.onDataChanged=H6.prototype.onDataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],H6.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],H6.prototype,"data",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],H6.prototype,"onDataChanged",null);_.A([_.w({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],H6);
_.q(H6,"ytd-search-filter-renderer",function(){if(lCW!==void 0)return lCW;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return lCW=x},{mode:_.Vm("kevlar_poly_si_batch_j075")?1:2});var ut=function(){return _.e.apply(this,arguments)||this};
_.p(ut,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],ut.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],ut.prototype,"data",void 0);_.A([_.w({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],ut);
_.q(ut,"ytd-search-filter-group-renderer",function(){if(CdQ!==void 0)return CdQ;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return CdQ=x},{mode:_.Vm("kevlar_poly_si_batch_j075")?1:2});var UDH;var gC=function(){return _.e.apply(this,arguments)||this};
_.p(gC,_.e);gC.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.R4());this.isCollapsed=!this.isCollapsed};
gC.prototype.navigateToAboutTheseResultsPage=function(){var x=_.Wi("https://www.youtube.com/howyoutubeworks/product-features/search/");x?_.nU(window,x,"_blank"):_.N9(Error("Zh"))};
gC.prototype.dataChanged=function(){this.isCollapsed=!0};
gC.prototype.computeShowBottomBorder=function(){var x,L,D;return!!((x=this.data)==null?0:(L=x.button)==null?0:L.toggleButtonRenderer)||!((D=this.data)==null||!D.aboutTheseResultsButton)};
gC.prototype.dataChanged=gC.prototype.dataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],gC.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],gC.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.r("design:type",Boolean)],gC.prototype,"showBottomBorder",void 0);_.A([_.F(),_.r("design:type",Boolean)],gC.prototype,"renderCollapsibleMenu",void 0);
_.A([_.F(),_.r("design:type",Boolean)],gC.prototype,"isCollapsed",void 0);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],gC.prototype,"dataChanged",null);_.A([_.w({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],gC);
_.q(gC,"ytd-search-sub-menu-renderer",function(){if(UDH!==void 0)return UDH;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return UDH=x},{mode:1});var wr_;var B3G=new _.vx("SECTION_LIST_RENDERER_TOKEN");var W62;var kD=function(){return _.e.apply(this,arguments)||this};
_.p(kD,_.e);kD.prototype.computeStyle=function(x){return x?x.toLowerCase().replace(/_/g,"-"):""};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],kD.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],kD.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.r("design:type",String)],kD.prototype,"headerStyle",void 0);_.A([_.w({is:"ytd-text-header-renderer",disableElementRegistration:!0})],kD);
_.q(kD,"ytd-text-header-renderer",function(){if(W62!==void 0)return W62;var x=document.createElement("template");_.m(x,"\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");x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return W62=x},{mode:1});var qPh;var pT=function(){return _.e.apply(this,arguments)||this};
_.p(pT,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],pT.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],pT.prototype,"data",void 0);_.A([_.w({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],pT);
_.q(pT,"ytd-minor-moment-header-renderer",function(){if(qPh!==void 0)return qPh;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return qPh=x},{mode:1});var A$h;var md=function(){return _.e.apply(this,arguments)||this};
_.p(md,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],md.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],md.prototype,"data",void 0);_.A([_.w({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],md);
_.q(md,"ytd-minor-moment-setting-alert-renderer",function(){if(A$h!==void 0)return A$h;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return A$h=x},{mode:1});var $Dh;var r$G;var bt=function(){var x=_.e.apply(this,arguments)||this;x.booleanSettingById=!1;x.smartDownloadsEnabledVE=_.VC(128287);x.smartDownloadsDisabledVE=_.VC(128286);x.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return x};
_.p(bt,_.e);_.K=bt.prototype;_.K.attachSmartDownloadsSettingVes=function(){var x;this.activeVeForLogging||((x=this.data)==null?void 0:x.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.B5(_.sk(),this.smartDownloadsEnabledVE),_.B5(_.sk(),this.smartDownloadsDisabledVE))};
_.K.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.MF(this.hostElement,"yt-settings-switch-ready")};
_.K.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.K.onSwitchChange=function(x){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(x=_.K$(x).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.u("kevlar_settings_switch_resolve_command_killswitch")?_.yY().resolve(_.E2).resolveCommand(x,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(x)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.K.handleUpdateSettingsSwitch=function(x){(x=_.g(x,Qs_))&&this.data&&this.data.id===x.id&&this.set("data.enabled",!!x.enabled)};
_.K.onToggleSettingsSwitch=function(x,L){this.data&&this.data.id===x&&this.set("data.enabled",L!=null?L:!this.data.enabled)};
_.K.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.Yh.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.K.maybeLogSmartDownloadsSettingVisibility=function(){var x=_.A3(),L;x&&((L=this.data)==null?void 0:L.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.t_(x,[this.smartDownloadsEnabledVE]),_.xN(x,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.t_(x,[this.smartDownloadsDisabledVE]),_.xN(x,[this.smartDownloadsEnabledVE])))};
_.K.maybeLogSmartDownloadsSettingClick=function(){var x;((x=this.data)==null?void 0:x.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.qJ(_.sk(),this.activeVeForLogging)};
_.K.updateDataEnabledFromBinding=function(x){this.set("data.enabled",x.detail.value)};
_.J3.Object.defineProperties(bt.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var x=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!x&&(x=this.ytRendererBehavior.getSimpleString(this.data.title));return x}}});
bt.prototype.dataChanged=bt.prototype.dataChanged;_.A([_.b(_.EG),_.r("design:type",Object)],bt.prototype,"ytdReduxBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],bt.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],bt.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],bt.prototype,"ytComponentBehavior",void 0);
_.A([_.F(),_.r("design:type",Object)],bt.prototype,"data",void 0);_.A([_.F({selector:function(x,L){if(Object.keys(x==null?void 0:x.entities).length)switch(L){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return Poh(x.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.r("design:type",Object)],bt.prototype,"booleanSettingById",void 0);_.A([_.F(),_.r("design:type",Wo)],bt.prototype,"activeVeForLogging",void 0);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],bt.prototype,"toggleAriaLabel",null);_.A([_.GV("data"),_.GV("booleanSettingById"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],bt.prototype,"dataChanged",null);
_.A([_.w({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],bt);
_.q(bt,"ytd-settings-switch-renderer",function(){if(r$G!==void 0)return r$G;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return r$G=x},{mode:1});var YD=function(){return _.e.apply(this,arguments)||this};
_.p(YD,_.e);YD.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}}}}};
_.J3.Object.defineProperties(YD.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var x=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(x+=" remove-left-margin");this.data.extraBottomSpace&&(x+=" extra-bottom-space");return x}}});
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],YD.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],YD.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],YD.prototype,"data",void 0);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],YD.prototype,"contentsClassName",null);_.A([_.w({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],YD);
_.q(YD,"ytd-minor-moment-setting-section-renderer",function(){if($Dh!==void 0)return $Dh;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return $Dh=x},{mode:1});var N3i;var FX=function(){return _.e.apply(this,arguments)||this};
_.p(FX,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],FX.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],FX.prototype,"componentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],FX.prototype,"data",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],FX);
_.q(FX,"ytd-empty-product-details-renderer",function(){if(N3i!==void 0)return N3i;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return N3i=x},{mode:1});var icA;var fCR;var sN=function(){var x=_.e.apply(this,arguments)||this;x.expanded=!0;return x};
_.p(sN,_.e);sN.prototype.getBadgeRowClass=function(x,L,D){for(var S=_.O(this.hostElement.querySelectorAll("yt-img-shadow")),Q=S.next();!Q.done;Q=S.next())Q.value.onShow();x=x.selected;return D?x!==-1?x===L?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(x!==void 0?x:0)===L?"badge-line":"badge-hidden"};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],sN.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],sN.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],sN.prototype,"expanded",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],sN);
_.q(sN,"ytd-sponsorships-loyalty-badges-renderer",function(){if(fCR!==void 0)return fCR;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return fCR=x},{mode:1});var oLi;var Tb=function(){var x=_.e.apply(this,arguments)||this;x.expanded=!0;return x};
_.p(Tb,_.e);Tb.prototype.getContainerClasses=function(x,L){x=x?"expanded":"collapsed";L&&(x+=" item");return x};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Tb.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Tb.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],Tb.prototype,"expanded",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],Tb);
_.q(Tb,"ytd-sponsorships-perk-renderer",function(){if(oLi!==void 0)return oLi;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return oLi=x},{mode:1});var aCQ;var eU=function(){var x=_.e.apply(this,arguments)||this;x.expanded=!0;return x};
_.p(eU,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],eU.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],eU.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],eU.prototype,"expanded",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],eU);
_.q(eU,"ytd-sponsorships-perks-renderer",function(){if(aCQ!==void 0)return aCQ;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return aCQ=x},{mode:1});var Rj=function(){var x=_.e.apply(this,arguments)||this;x.isCollapsed=!1;return x};
_.p(Rj,_.e);Rj.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
Rj.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
Rj.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var x;this.expandCollapseButton=_.g((x=this.data)==null?void 0:x.expandButton,_.y4)}else{var L;this.expandCollapseButton=_.g((L=this.data)==null?void 0:L.collapseButton,_.y4)}};
Rj.prototype.updateExpandCollapseButton=Rj.prototype.updateExpandCollapseButton;Rj.prototype.onDataChanged=Rj.prototype.onDataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Rj.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Rj.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Rj.prototype,"isCollapsed",void 0);_.A([_.F(),_.r("design:type",Object)],Rj.prototype,"expandCollapseButton",void 0);
_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Rj.prototype,"onDataChanged",null);_.A([_.GV("data","isCollapsed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Rj.prototype,"updateExpandCollapseButton",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],Rj);
_.q(Rj,"ytd-sponsorships-expandable-perks-renderer",function(){if(icA!==void 0)return icA;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return icA=x},{mode:1});var zGC;var Gb=function(){return _.e.apply(this,arguments)||this};
_.p(Gb,_.e);Gb.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],Gb.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Gb.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Gb.prototype,"data",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],Gb);
_.q(Gb,"ytd-sponsorships-actionable-message-renderer",function(){if(zGC!==void 0)return zGC;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return zGC=x},{mode:1});var Xri;var CT=function(){return _.e.apply(this,arguments)||this};
_.p(CT,_.e);_.K=CT.prototype;_.K.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.K.getExpansionIcon=function(x){return x?"COLLAPSE":"EXPAND"};
_.K.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.K.computeMessageContainerStyle=function(x){var L=x.expandableItems?" style-clickable":"";return x.messageContainerStyle?x.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+L:"style-unspecified"+L};
_.K.isSinglePerk=function(x){return!!x.messageContainerStyle&&(x.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||x.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.K.onExpandedChanged=function(){var x=this;if(this.expanded)for(var L=_.O(this.hostElement.querySelectorAll("yt-img-shadow")),D=L.next();!D.done;D=L.next())D.value.onShow();_.So(this,function(){_.MF(x.hostElement,"yt-refit")})};
_.K.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
CT.prototype.onDataChanged=CT.prototype.onDataChanged;CT.prototype.onExpandedChanged=CT.prototype.onExpandedChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],CT.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],CT.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],CT.prototype,"data",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],CT.prototype,"expanded",void 0);
_.A([_.bN("expanded"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],CT.prototype,"onExpandedChanged",null);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],CT.prototype,"onDataChanged",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],CT);
_.q(CT,"ytd-sponsorships-expandable-message-renderer",function(){if(Xri!==void 0)return Xri;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return Xri=x},{mode:_.Vm("kevlar_poly_si_batch_j028")?1:2});var c$2;var lt=function(){return _.e.apply(this,arguments)||this};
_.p(lt,_.e);lt.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"}}}}};
lt.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.g(this.data.endButton,_.y4).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
lt.prototype.onDataChanged=lt.prototype.onDataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],lt.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],lt.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],lt.prototype,"data",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],lt.prototype,"onDataChanged",null);
_.A([_.w({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],lt);
_.q(lt,"ytd-sponsorships-heading-renderer",function(){if(c$2!==void 0)return c$2;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return c$2=x},{mode:1});var nLr;var UN=function(){return _.e.apply(this,arguments)||this};
_.p(UN,_.e);_.A([_.F(),_.r("design:type",Object)],UN.prototype,"data",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],UN.prototype,"ytRendererBehavior",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],UN);
_.q(UN,"ytd-sponsorships-links-renderer",function(){if(nLr!==void 0)return nLr;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return nLr=x},{mode:1});var tjW;var wC=function(){return _.e.apply(this,arguments)||this};
_.p(wC,_.e);_.K=wC.prototype;_.K.onDataChanged=function(){if(this.data&&this.data.expandableItems){var x;(x=_.jr(this.hostElement).querySelector("tp-yt-paper-button"))==null||x.setAttribute("role","button")}else{var L;(L=_.jr(this.hostElement).querySelector("tp-yt-paper-button"))==null||L.removeAttribute("role")}};
_.K.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.K.getExpansionIcon=function(x){return x?"COLLAPSE":"EXPAND"};
_.K.getTileClasses=function(x){return x?"tile expandable-tile":"tile"};
_.K.getButtonDisabled=function(x){return x?void 0:""};
wC.prototype.onDataChanged=wC.prototype.onDataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],wC.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],wC.prototype,"data",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],wC.prototype,"expanded",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],wC.prototype,"onDataChanged",null);
_.A([_.w({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],wC);
_.q(wC,"ytd-sponsorships-list-tile-renderer",function(){if(tjW!==void 0)return tjW;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return tjW=x},{mode:1});var xR_;var L0r;var B6=function(){return _.e.apply(this,arguments)||this};
_.p(B6,_.e);B6.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],B6.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],B6.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],B6.prototype,"data",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],B6);
_.q(B6,"ytd-sponsorships-promotion-renderer",function(){if(L0r!==void 0)return L0r;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return L0r=x},{mode:1});var DRC;var W6=function(){return _.e.apply(this,arguments)||this};
_.p(W6,_.e);W6.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],W6.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],W6.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],W6.prototype,"data",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],W6);
_.q(W6,"ytd-sponsorships-purchase-option-renderer",function(){if(DRC!==void 0)return DRC;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return DRC=x},{mode:1});var Sbh;var QJR;var JjH=function(){return _.e.apply(this,arguments)||this};
_.p(JjH,_.e);_.A([_.F(),_.r("design:type",Object)],JjH.prototype,"data",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],JjH);
_.q(JjH,"ytd-ypc-offer-promo-renderer",function(){if(QJR!==void 0)return QJR;var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return QJR=x},{mode:1});var qG=function(){return _.e.apply(this,arguments)||this};
_.p(qG,_.e);_.K=qG.prototype;
_.K.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"}}}}};
_.K.expansionCTA=function(x,L){return x&&(L?x.collapseCallToAction:x.expansionCallToAction)};
_.K.getExpansionIcon=function(x){return x?"COLLAPSE":"EXPAND"};
_.K.expansionCallToActionTap=function(){var x=this;this.expanded=!this.expanded;_.So(this,function(){_.MF(x.hostElement,"yt-refit")})};
_.K.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var x,L=(x=this.data)==null?void 0:x.onVisible;L&&this.ytComponentBehavior.resolveCommand(L)};
_.K.computeDisplayTitle=function(x){return!(!x||this.titledisplaystatus!=="show")};
_.K.computeDisplaySeparator=function(){return!1};
_.K.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
qG.prototype.onDataChanged=qG.prototype.onDataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],qG.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],qG.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],qG.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],qG.prototype,"data",void 0);
_.A([_.F({value:!1}),_.r("design:type",Boolean)],qG.prototype,"expanded",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],qG.prototype,"purchaseButtonClicked",void 0);_.A([_.F({reflectToAttribute:!0,value:"show"}),_.r("design:type",String)],qG.prototype,"titledisplaystatus",void 0);_.A([_.F({computed:"computeDisplayTitle(data.title)"}),_.r("design:type",Boolean)],qG.prototype,"displayTitle",void 0);
_.A([_.F({computed:"computeDisplaySeparator(data)"}),_.r("design:type",Boolean)],qG.prototype,"displaySeparator",void 0);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],qG.prototype,"onDataChanged",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],qG);
_.q(qG,"ytd-sponsorships-tier-renderer",function(){if(Sbh!==void 0)return Sbh;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Sbh=x},{mode:2});var A1=function(){return _.e.apply(this,arguments)||this};
_.p(A1,_.e);
A1.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"}}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],A1.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],A1.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],A1.prototype,"data",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],A1);
_.q(A1,"ytd-sponsorships-management-renderer",function(){if(xR_!==void 0)return xR_;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return xR_=x},{mode:1});var K0A;var $D=function(){return _.e.apply(this,arguments)||this};
_.p($D,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],$D.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],$D.prototype,"data",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],$D);
_.q($D,"ytd-open-in-native-app-view-model",function(){if(K0A!==void 0)return K0A;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return K0A=x},{mode:_.Vm("kevlar_poly_si_batch_j028")?1:2});var OPH;var ZPQ;var yjQ=_.xI(["top-"]),I3A=_.xI(["bottom-"]),E4B=_.xI(["left-"]),Ml2=_.xI(["right-"]),dRQ={},P5G=function(x,L,D){x.removeAttribute("top-"+D);x.removeAttribute("bottom-"+D);x.removeAttribute("left-"+D);x.removeAttribute("right-"+D);L&&(L.top&&_.KZ([_.ID(yjQ)],x,"top-"+D,L.top),L.bottom&&_.KZ([_.ID(I3A)],x,"bottom-"+D,L.bottom),L.left&&_.KZ([_.ID(E4B)],x,"left-"+D,L.left),L.right&&_.KZ([_.ID(Ml2)],x,"right-"+D,L.right))};
dRQ.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(x){var L,D=_.jr((L=this.hostElement)!=null?L:this),S;L=this.cardItemBoxBehaviorMarginTargetId&&D?D.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(S=this.hostElement)!=null?S:this;P5G(L,x,"margin")},
cardItemContainerPaddingChanged_:function(x){var L,D=_.jr((L=this.hostElement)!=null?L:this),S;L=this.cardItemBoxBehaviorPaddingTargetId&&D?D.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(S=this.hostElement)!=null?S:this;P5G(L,x,"padding")}}];var rC={CARD_ITEM_COLOR_GENERAL_BACKGROUND_A:"var(--yt-spec-general-background-a)",CARD_ITEM_COLOR_GENERAL_BACKGROUND_B:"var(--yt-spec-general-background-b)",CARD_ITEM_COLOR_BRAND_BACKGROUND_SOLID:"var(--yt-spec-brand-background-solid)",CARD_ITEM_COLOR_ERROR_BACKGROUND:"var(--yt-spec-error-background)",CARD_ITEM_COLOR_TEXT_PRIMARY:"var(--yt-spec-text-primary)",CARD_ITEM_COLOR_TEXT_SECONDARY:"var(--yt-spec-text-secondary)",CARD_ITEM_COLOR_TEXT_DISABLED:"var(--yt-spec-text-disabled)",CARD_ITEM_COLOR_CALL_TO_ACTION:"var(--yt-spec-call-to-action)",
CARD_ITEM_COLOR_ICON_INACTIVE:"var(--yt-spec-icon-inactive)",CARD_ITEM_COLOR_ICON_DISABLED:"var(--yt-spec-icon-disabled)",CARD_ITEM_COLOR_BRAND_ICON_ACTIVE:"var(--yt-spec-brand-icon-active)",CARD_ITEM_COLOR_BRAND_ICON_INACTIVE:"var(--yt-spec-brand-icon-inactive)",CARD_ITEM_COLOR_10_PERCENT_LAYER:"var(--yt-spec-10-percent-layer)",CARD_ITEM_COLOR_TEXT_PRIMARY_INVERSE:"var(--yt-spec-text-primary-inverse)",CARD_ITEM_COLOR_ICON_ACTIVE_OTHER:"var(--yt-spec-icon-active-other)",CARD_ITEM_COLOR_THEMED_GREEN:"var(--yt-spec-themed-green)",
CARD_ITEM_COLOR_ERROR_INDICATOR:"var(--yt-spec-error-indicator)"};var jJC;var v4G;var NG=function(){return _.e.apply(this,arguments)||this};
_.p(NG,_.e);NG.prototype.textColorChanged_=function(){this.hostElement.style.color=rC[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
NG.prototype.textColorChanged_=NG.prototype.textColorChanged_;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],NG.prototype,"ytRendererBehavior",void 0);_.A([_.b(dRQ.YtCardItemBoxBehavior),_.r("design:type",Object)],NG.prototype,"ytCardItemBoxBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],NG.prototype,"data",void 0);_.A([_.bN("data.textColor"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],NG.prototype,"textColorChanged_",null);
_.A([_.oW({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],NG);
_.q(NG,"yt-card-item-text-renderer",function(){if(v4G===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;jJC===void 0&&(jJC=document.createElement("template"));var S=jJC;D.call(L,S.content.cloneNode(!0),x.content.firstChild);v4G=x}x=v4G;return x},{mode:2});var VlW;var hkH;var fT=function(){return _.e.apply(this,arguments)||this};
_.p(fT,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],fT.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],fT.prototype,"data",void 0);_.A([_.oW({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],fT);
_.q(fT,"yt-card-item-badge-renderer",function(){if(hkH===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;VlW===void 0&&(VlW=document.createElement("template"));var S=VlW;D.call(L,S.content.cloneNode(!0),x.content.firstChild);hkH=x}x=hkH;return x},{mode:2});var HPB;var uwd;var oj=function(){return _.e.apply(this,arguments)||this};
_.p(oj,_.e);oj.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],oj.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],oj.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],oj.prototype,"data",void 0);_.A([_.oW({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],oj);
_.q(oj,"yt-card-item-text-collection-renderer",function(){if(uwd===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;HPB===void 0&&(HPB=document.createElement("template"));var S=HPB;D.call(L,S.content.cloneNode(!0),x.content.firstChild);uwd=x}x=uwd;return x},{mode:2});var g4Q;var koA;var aj=function(){return _.e.apply(this,arguments)||this};
_.p(aj,_.e);aj.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]]"}}}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],aj.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],aj.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],aj.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Number)],aj.prototype,"iconSize",void 0);_.A([_.oW({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],aj);
_.q(aj,"yt-card-item-text-with-button-renderer",function(){if(koA===void 0){var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;g4Q===void 0&&(g4Q=document.createElement("template"));var S=g4Q;D.call(L,S.content.cloneNode(!0),x.content.firstChild);koA=x}x=koA;return x},{mode:2});var zb=function(){return _.e.apply(this,arguments)||this};
_.p(zb,_.e);zb.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"}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],zb.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],zb.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],zb.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],zb.prototype,"data",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],zb);
_.q(zb,"ytd-commerce-cart-summary-line-item-renderer",function(){if(ZPQ!==void 0)return ZPQ;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return ZPQ=x},{mode:1});_.BD("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var XX=function(){var x=_.e.apply(this,arguments)||this;x.hidden=!1;return x};
_.p(XX,_.e);_.K=XX.prototype;_.K.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"}}}}};
_.K.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.K.updateSummary=function(){var x=this.commerceCartCheckoutButtonEntity,L;if(((L=this.data)==null?0:L.cartButton)&&x.checkoutSummaryText){var D,S=U3((D=this.data)==null?void 0:D.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+S+".cardItemTextRenderer.text",wq(x.checkoutSummaryText));if(x.checkoutDetailText){var Q;D=U3((Q=this.data)==null?void 0:Q.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+D+".cardItemTextRenderer.text",wq(x.checkoutDetailText))}if(x.checkoutAdditionalMetadataText){var J;
Q=U3((J=this.data)==null?void 0:J.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+Q+".cardItemTextRenderer.text",wq(x.checkoutAdditionalMetadataText))}}else x.estimatedTotalPrice&&(J=U3((S=this.data)==null?void 0:S.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+J+".cardItemTextRenderer.text",wq(x.estimatedTotalPrice)))};
_.K.updateIsHidden=function(){var x,L=(x=this.commerceCartCheckoutButtonEntity)==null?void 0:x.isHidden;L!==void 0&&(this.hidden=L)};
_.K.updateCheckoutButton=function(){var x,L=(x=this.commerceCartCheckoutButtonEntity)==null?void 0:x.isDisabled;L!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",L);var D;x=(D=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:D.innertubeCommand;x!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",x);var S;D=(S=this.commerceCartCheckoutButtonEntity)==null?void 0:S.checkoutButtonText;D!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:D})};
XX.prototype.entityChanged=XX.prototype.entityChanged;_.A([_.b(_.EG),_.r("design:type",Object)],XX.prototype,"ytdReduxBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],XX.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],XX.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],XX.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],XX.prototype,"fullWidth",void 0);_.A([_.F(),_.r("design:type",Object)],XX.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],XX.prototype,"compact",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],XX.prototype,"hidden",void 0);
_.A([_.F({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:bN0}),_.r("design:type",Object)],XX.prototype,"commerceCartCheckoutButtonEntity",void 0);_.A([_.bN("commerceCartCheckoutButtonEntity","data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],XX.prototype,"entityChanged",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],XX);
_.q(XX,"ytd-commerce-cart-checkout-button-renderer",function(){if(OPH!==void 0)return OPH;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return OPH=x},{mode:2});var pJB;_.mRA={};
_.mRA.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",_.p$(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.p$(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(x){!this.tappableItemBehaviorTapEnabled||x.keyCode!==13&&x.keyCode!==32||x.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var x=this.data.onTap;x.ypcGetCartEndpoint?(_.jq(this.hostElement,[x]),this.tappableItemBehaviorTapEnabled=!1):x.ypcOffersEndpoint?_.jq(this.hostElement,[x]):_.v$(this.hostElement,[x],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(x){this.tappableItemBehaviorTapEnabled=!!x},
tappableItemBehaviorOnTapEnabledChanged_:function(){var x=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(x.setAttribute("tabIndex",0),x.setAttribute("role","button")):(x.removeAttribute("tabIndex"),x.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(x){x.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var bP_;var YbH;var c6=function(){return _.e.apply(this,arguments)||this};
_.p(c6,_.e);c6.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.WD("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.WD("sharingToggleButtonAndDefaultButton")}}};
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],c6.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],c6.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],c6.prototype,"data",void 0);_.A([_.oW({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],c6);
_.q(c6,"yt-card-item-actions-renderer",function(){if(YbH===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;bP_===void 0&&(bP_=document.createElement("template"));var S=bP_;D.call(L,S.content.cloneNode(!0),x.content.firstChild);YbH=x}x=YbH;return x},{mode:2});var F0d;var sJ2;var TMi;var ek2;var RkC;var God;var nT=function(){var x=_.e.apply(this,arguments)||this;x.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return x};
_.p(nT,_.e);nT.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
nT.prototype.handleDarkModeToggledAction_=function(x){this.isDarkTheme_=x};
nT.prototype.computeThemeImage_=function(x,L){if(!x||!x.imageLight)return!1;this.isCircular_=x.isCircular;x.imageWidth&&(this.hostElement.style.width=x.imageWidth+"px");x.imageHeight&&(this.hostElement.style.height=x.imageHeight+"px");x.borderWidth&&(this.image.style.borderWidth=x.borderWidth+"px",this.image.style.borderStyle="solid");x.borderColor&&(this.image.style.borderColor=_.XA(x.borderColor));return L&&x.imageDark?x.imageDark:x.imageLight};
nT.prototype.computeThemeIcon_=function(x){var L,D;if(!(x==null?0:(L=x.themedIcon)==null?0:(D=L.icon)==null?0:D.iconType))return!1;this.icon.style.color=rC[x.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(x.imageWidth||18)+"px";this.icon.style.height=(x.imageHeight||18)+"px";return _.gB(x.themedIcon.icon.iconType)};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],nT.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],nT.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(dRQ.YtCardItemBoxBehavior),_.r("design:type",Object)],nT.prototype,"ytCardItemBoxBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],nT.prototype,"ytActionHandlerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],nT.prototype,"data",void 0);
_.A([_.F({value:!1}),_.r("design:type",Boolean)],nT.prototype,"fit",void 0);_.A([_.F(),_.r("design:type",Boolean)],nT.prototype,"isDarkTheme_",void 0);_.A([_.F({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.r("design:type",Object)],nT.prototype,"themeImage_",void 0);_.A([_.F({computed:"computeThemeIcon_(data)"}),_.r("design:type",Object)],nT.prototype,"themeIcon_",void 0);_.A([_.F({reflectToAttribute:!0,value:!1}),_.r("design:type",Object)],nT.prototype,"isCircular_",void 0);
_.A([_.F1("#image"),_.r("design:type",Object)],nT.prototype,"image",void 0);_.A([_.F1("#icon"),_.r("design:type",Object)],nT.prototype,"icon",void 0);_.A([_.oW({is:"yt-themed-image-renderer",disableElementRegistration:!0})],nT);
_.q(nT,"yt-themed-image-renderer",function(){if(God===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;RkC===void 0&&(RkC=document.createElement("template"));var S=RkC;D.call(L,S.content.cloneNode(!0),x.content.firstChild);God=x}x=God;return x},{mode:2});var t1=function(){return _.e.apply(this,arguments)||this};
_.p(t1,_.e);t1.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"}}}}};
t1.prototype.computeImagePlacement_=function(x){return x||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],t1.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],t1.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],t1.prototype,"data",void 0);_.A([_.F({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.r("design:type",String)],t1.prototype,"imagePlacement",void 0);
_.A([_.oW({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],t1);
_.q(t1,"yt-card-item-text-with-image-renderer",function(){if(ek2===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;TMi===void 0&&(TMi=document.createElement("template"));var S=TMi;D.call(L,S.content.cloneNode(!0),x.content.firstChild);ek2=x}x=ek2;return x},{mode:2});var xm=function(){return _.e.apply(this,arguments)||this};
_.p(xm,_.e);xm.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"}}}}};
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],xm.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],xm.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],xm.prototype,"data",void 0);_.A([_.oW({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],xm);
_.q(xm,"yt-card-item-error-renderer",function(){if(sJ2===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;F0d===void 0&&(F0d=document.createElement("template"));var S=F0d;D.call(L,S.content.cloneNode(!0),x.content.firstChild);sJ2=x}x=sJ2;return x},{mode:2});var C5A;var l3H;_.BD("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var LR=function(){return _.e.apply(this,arguments)||this};
_.p(LR,_.e);_.K=LR.prototype;
_.K.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"}}}}};
_.K.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.K.backgroundColorChanged_=function(){var x,L=(x=this.data)==null?void 0:x.backgroundColor;x=rC[L||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.jr(this.hostElement).querySelector("#main-content").style.backgroundColor=x};
_.K.headerPromoBackgroundColorChanged_=function(){var x,L=(x=this.data)==null?void 0:x.headerPromoBackgroundColor;x=rC[L||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.jr(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=x};
_.K.errorRendererVisibilityChanged_=function(){var x=this.isExpanded_,L;this.isErrorRendererVisible_=!((L=this.data)==null||!L.errorRenderer)&&!x};
_.K.onYtToggleButton_=function(x,L){this.isExpanded_=L.toggled};
LR.prototype.onYtToggleButton_=LR.prototype.onYtToggleButton_;LR.prototype.errorRendererVisibilityChanged_=LR.prototype.errorRendererVisibilityChanged_;LR.prototype.headerPromoBackgroundColorChanged_=LR.prototype.headerPromoBackgroundColorChanged_;LR.prototype.backgroundColorChanged_=LR.prototype.backgroundColorChanged_;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],LR.prototype,"ytRendererBehavior",void 0);
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],LR.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(dRQ.YtCardItemBoxBehavior),_.r("design:type",Object)],LR.prototype,"ytCardItemBoxBehavior",void 0);_.A([_.b(_.mRA.YtTappableItemBehavior),_.r("design:type",Object)],LR.prototype,"ytTappableItemBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],LR.prototype,"data",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],LR.prototype,"isExpanded_",void 0);
_.A([_.F({value:!1}),_.r("design:type",Boolean)],LR.prototype,"isErrorRendererVisible_",void 0);_.A([_.bN("data.backgroundColor"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],LR.prototype,"backgroundColorChanged_",null);_.A([_.bN("data.headerPromoBackgroundColor"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],LR.prototype,"headerPromoBackgroundColorChanged_",null);
_.A([_.bN("data.errorRenderer","isExpanded_"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],LR.prototype,"errorRendererVisibilityChanged_",null);_.A([_.mX("yt-toggle-button"),_.r("design:type",Function),_.r("design:paramtypes",[Event,Object]),_.r("design:returntype")],LR.prototype,"onYtToggleButton_",null);_.A([_.oW({is:"yt-card-item-renderer",disableElementRegistration:!0})],LR);
_.q(LR,"yt-card-item-renderer",function(){if(l3H===void 0){var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;C5A===void 0&&(C5A=document.createElement("template"));var S=C5A;D.call(L,S.content.cloneNode(!0),x.content.firstChild);l3H=x}x=l3H;return x},{mode:2});_.BD("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var D_=function(){var x=_.e.apply(this,arguments)||this;x.hidden=!1;return x};
_.p(D_,_.e);_.K=D_.prototype;_.K.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.K.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.K.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var x,L=(x=this.commerceCartHeaderEntity)==null?void 0:x.isHidden;L!==void 0&&(this.hidden=L)}};
_.K.updateTitle=function(){var x=this.commerceCartHeaderEntity.isDisabled,L,D,S=(D=_.g((L=this.data)==null?void 0:L.item,cTH))==null?void 0:D.headingRenderer;S&&(L=U3(S,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+L+".0.cardItemTextRenderer.textColor",x?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.K.updateSummaryText=function(){var x=this.commerceCartHeaderEntity;if(this.compact){var L,D,S=(D=_.g((L=this.data)==null?void 0:L.item,cTH))==null?void 0:D.headingRenderer;S&&(L=U3(S,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+L+".1.cardItemTextRenderer.text",x.shortHeaderSummaryText?wq(x.shortHeaderSummaryText):x.headerSummaryText?wq(x.headerSummaryText):""))}else{var Q;if(L=(Q=_.g((S=this.data)==null?void 0:S.item,cTH))==null?void 0:Q.additionalInfoRenderer)L=U3(L,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+L+".text",x.headerSummaryText?wq(x.headerSummaryText):"")}};
_.K.updateCheckoutButton=function(){var x=this.commerceCartHeaderEntity,L,D,S=(D=_.g((L=this.data)==null?void 0:L.item,cTH))==null?void 0:D.additionalInfoRenderer;L=U3(S,"buttonRenderer");var Q;D=(Q=this.commerceCartHeaderEntity)==null?void 0:Q.isButtonDisabled;var J;Q=(J=this.commerceCartHeaderEntity)==null?void 0:J.isButtonHidden;D!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+L+".buttonRenderer.isDisabled",D);Q!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
Q);var Z;x=(Z=x.checkoutButtonCommand)==null?void 0:Z.innertubeCommand;x!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+L+".buttonRenderer.command",x)};
D_.prototype.entityChanged=D_.prototype.entityChanged;_.A([_.b(_.EG),_.r("design:type",Object)],D_.prototype,"ytdReduxBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],D_.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],D_.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],D_.prototype,"data",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],D_.prototype,"compact",void 0);_.A([_.F({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(x,L){return _.u6(x.entities,"commerceCartHeaderEntity",L)}}),
_.r("design:type",Object)],D_.prototype,"commerceCartHeaderEntity",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],D_.prototype,"hidden",void 0);_.A([_.bN("commerceCartHeaderEntity","data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],D_.prototype,"entityChanged",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],D_);
_.q(D_,"ytd-commerce-cart-header-renderer",function(){if(pJB!==void 0)return pJB;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return pJB=x},{mode:1});var URC;var wJG=_.lW(function(x,L){var D;return(D=x.onChangeCallback)==null?void 0:D.call(x,L)},1E3),BMC=_.B(function(x){var L=x.data;
var D=x.iconMinus;x=x.iconPlus;var S=function(){return!!L().disabled},Q=_.O(_.HB(0,void 0,"mKh0af")),J=Q.next().value,Z=Q.next().value;
Q=_.kO(function(){if(J()===1){var V,h;(h=(V=L()).onRemoveCommand)==null||h.call(V)}V=J()>L().maxValue?L().maxValue:J()-1;Z(V);wJG(L(),V);return!1});
var y=_.kO(function(){if(J()===L().maxValue)return!1;var V=J()+1;Z(V);wJG(L(),V);return!1});
_.UX(function(){Z(L().value)});
var E={},P={},v={};return _.M("quantity-incrementer-shape",null,_.M("div",{class:"ytSpecQuantityIncrementerShapeHost"},_.M("button",{class:"ytSpecQuantityIncrementerShapeButton",disabled:function(){return J()===(L().onRemoveCommand?0:1)||S()},
"aria-label":function(){return J()!==1?L().minusLabel:L().minimumReachedLabel},
"on:click":Q},_.M(_.UB,{model:{circular:!0}}),_.M("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.M("div",{class:_.gF("ytSpecQuantityIncrementerShapeIcon",(E.ytSpecQuantityIncrementerShapeIconDisabled=function(){return S()||J()===(L().onRemoveCommand?0:1)},E))},D()))),_.M("div",{class:_.gF("ytSpecQuantityIncrementerShapeText",(P.ytSpecQuantityIncrementerShapeTextInvalid=function(){return J()>L().maxValue},P.ytSpecQuantityIncrementerShapeTextDisabled=S,P))},J),_.M("button",{class:"ytSpecQuantityIncrementerShapeButton",
disabled:function(){return J()>=L().maxValue||S()},
"aria-label":function(){return J()!==L().maxValue?L().plusLabel:L().maximumReachedLabel},
"on:click":y},_.M(_.UB,{model:{circular:!0}}),_.M("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.M("div",{class:_.gF("ytSpecQuantityIncrementerShapeIcon",(v.ytSpecQuantityIncrementerShapeIconDisabled=function(){return J()>=L().maxValue||S()},v))},x())))))},"Af");_.dF(_.B(function(x){function L(){D().onRemoveCommand&&_.Xf(D().onRemoveCommand)}
var D=x.data;var S=_.mF(Zjh,function(){return D().quantityIncrementerEntityKey});
return _.M("yt-quantity-incrementer-view-model",null,_.M(BMC,{data:function(){var Q=D(),J;var Z=S()?!((J=S())==null||!J.disabled):!1;var y;J=S()?(y=S())==null?void 0:y.quantity:D().quantity;return Mtp(Q,Z,L,J)},
iconMinus:function(){return _.M(_.YO,{icon:"BAR_HORIZONTAL",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerMinusIcon"})},
iconPlus:function(){return _.M(_.YO,{icon:"ADD",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerPlusIcon"})}}))},"Bf"),"yt-quantity-incrementer-view-model",{props:{data:_.pJ}});var SJ=function(){var x=_.e.apply(this,arguments)||this;x.compact=!1;x.hasQuantityIncrementer=!1;return x};
_.p(SJ,_.e);SJ.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"}}}};
SJ.prototype.computeHasQuantityIncrementer=function(){var x;return!!_.g((x=this.data)==null?void 0:x.picker,LPC)};
SJ.prototype.onLabelClick=function(){var x;(x=this.dropdownEl)==null||x.open()};
_.A([_.F1("ytd-dropdown-renderer"),_.r("design:type",Object)],SJ.prototype,"dropdownEl",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],SJ.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],SJ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],SJ.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",String)],SJ.prototype,"quantityColor",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],SJ.prototype,"compact",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.r("design:type",Object)],SJ.prototype,"hasQuantityIncrementer",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],SJ);
_.q(SJ,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(URC!==void 0)return URC;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return URC=x},{mode:1});var W0h;var qbi;var Q9=function(){return _.e.apply(this,arguments)||this};
_.p(Q9,_.e);Q9.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Q9.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
Q9.prototype.updateTitle=function(){var x=this.disabledCartItemEntity;x.disableActionName&&this.set("data.title",wq(x.disableActionName))};
Q9.prototype.updateButton=function(){var x,L=(x=this.disabledCartItemEntity.undoCommand)==null?void 0:x.innertubeCommand;L!==void 0&&(this.set("data.actionButton.buttonRenderer.command",L),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
Q9.prototype.entityChanged=Q9.prototype.entityChanged;_.A([_.b(_.EG),_.r("design:type",Object)],Q9.prototype,"ytdReduxBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Q9.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Q9.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(x,L){return _.u6(x.entities,"disabledCartItemEntity",L)}}),
_.r("design:type",Object)],Q9.prototype,"disabledCartItemEntity",void 0);_.A([_.F(),_.r("design:type",Object)],Q9.prototype,"data",void 0);_.A([_.bN("disabledCartItemEntity","data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Q9.prototype,"entityChanged",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],Q9);
_.q(Q9,"ytd-disabled-cart-item-renderer",function(){if(qbi!==void 0)return qbi;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return qbi=x},{mode:1});_.BD("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var Jh=function(){var x=_.e.apply(this,arguments)||this;x.compact=!1;x.hidden=!1;x.errorHidden=!1;x.noOnTap=!1;return x};
_.p(Jh,_.e);_.K=Jh.prototype;
_.K.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"}}}};
_.K.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.K.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var x=this.firstButtonElement;x.alignByText=!0;x.iconAlignByText=!0}};
_.K.computeNoOnTap=function(x){return!x};
_.K.updateQuantityColor=function(){if(this.pickerElement){var x,L=(x=this.commerceCartItemEntity)==null?void 0:x.quantityColor;this.pickerElement.quantityColor=L}};
_.K.updateTotalPriceColor=function(){var x,L=(x=this.commerceCartItemEntity)==null?void 0:x.totalPriceColor;if(L){var D;x=_.g((D=this.data)==null?void 0:D.quantityPicker,tQr);if(D=_.g(x==null?void 0:x.price,nsB))D.textColor=L}};
_.K.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var x,L=(x=this.commerceCartItemEntity)==null?void 0:x.isHidden;L!==void 0&&(this.hidden=L)}};
_.K.updateHideErrorMessage=function(){var x,L=(x=this.commerceCartItemEntity)==null?void 0:x.hideErrorMessage;L!==void 0&&(this.errorHidden=L)};
_.K.updateQuantity=function(){var x=this,L,D=(L=this.commerceCartItemEntity)==null?void 0:L.quantity,S;L=(S=this.commerceCartItemEntity)==null?void 0:S.totalPrice;if(D){this.updateTotalPriceColor();this.updateQuantityColor();var Q;S=_.g((Q=this.data)==null?void 0:Q.quantityPicker,tQr);if(Q=_.g(S==null?void 0:S.price,nsB))Q.text=L?{simpleText:L.content}:void 0;if(L=_.g(S==null?void 0:S.picker,LPC))L.quantity=D;var J;if(Q=(J=_.g(S==null?void 0:S.picker,nhW))==null?void 0:J.entries){J=!1;L=void 0;Q=
_.O(Q);for(S=Q.next();!S.done;S=Q.next())S=S.value,S.dropdownItemRenderer&&(L||(L=S.dropdownItemRenderer),S.dropdownItemRenderer.isSelected=!1,D===S.dropdownItemRenderer.int32Value&&(J=!0,S.dropdownItemRenderer.isSelected=!0));!J&&L&&(L.isSelected=!0)}_.So(this,function(){var Z;x.set("data.quantityPicker",_.wk.unsafeClone((Z=x.data)==null?void 0:Z.quantityPicker))})}};
Jh.prototype.onYtRendererstamperFinished=Jh.prototype.onYtRendererstamperFinished;Jh.prototype.entityChanged=Jh.prototype.entityChanged;_.A([_.F(),_.r("design:type",Object)],Jh.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Jh.prototype,"compact",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],Jh.prototype,"ytdReduxBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Jh.prototype,"ytRendererBehavior",void 0);
_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],Jh.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Jh.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(x,L){return _.u6(x.entities,"commerceCartItemEntity",L)}}),
_.r("design:type",Object)],Jh.prototype,"commerceCartItemEntity",void 0);_.A([_.F(),_.r("design:type",Object)],Jh.prototype,"quantityPicker",void 0);_.A([_.F(),_.r("design:type",Object)],Jh.prototype,"compactQuantityPicker",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Jh.prototype,"hidden",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Jh.prototype,"errorHidden",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.r("design:type",Object)],Jh.prototype,"noOnTap",void 0);_.A([_.F1("ytd-commerce-cart-item-quantity-picker-renderer"),_.r("design:type",Object)],Jh.prototype,"pickerElement",void 0);_.A([_.F1("yt-button-renderer"),_.r("design:type",Element)],Jh.prototype,"firstButtonElement",void 0);
_.A([_.bN("commerceCartItemEntity","data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Jh.prototype,"entityChanged",null);_.A([_.mX("yt-rendererstamper-finished"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Jh.prototype,"onYtRendererstamperFinished",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],Jh);
_.q(Jh,"ytd-commerce-cart-item-renderer",function(){if(W0h!==void 0)return W0h;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return W0h=x},{mode:_.Vm("kevlar_poly_si_batch_j028")?1:2});var Ajd;var $Rr;var KR=function(){return _.e.apply(this,arguments)||this};
_.p(KR,_.e);KR.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}}}}}};
KR.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
KR.prototype.updateCheckoutLineItems=function(){var x,L=(x=this.commerceCartCheckoutButtonEntity)==null?void 0:x.checkoutLineItems;L&&(x=L.map(function(D){a:{var S=D.price,Q=D.description;switch(D.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":D={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:wq(Q),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:wq(S),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:D={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:wq(Q),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:wq(S),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 D}),this.set("data.summaryLineItems",x))};
KR.prototype.updateIsHidden=function(){var x,L=(x=this.commerceCartCheckoutButtonEntity)==null?void 0:x.isHidden;L!==void 0&&(this.hostElement.hidden=L)};
KR.prototype.entityChanged=KR.prototype.entityChanged;_.A([_.b(_.EG),_.r("design:type",Object)],KR.prototype,"ytdReduxBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],KR.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],KR.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],KR.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.F(),_.r("design:type",Object)],KR.prototype,"data",void 0);_.A([_.F({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:bN0}),_.r("design:type",Object)],KR.prototype,"commerceCartCheckoutButtonEntity",void 0);_.A([_.bN("commerceCartCheckoutButtonEntity","data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],KR.prototype,"entityChanged",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],KR);
_.q(KR,"ytd-commerce-cart-summary-renderer",function(){if($Rr!==void 0)return $Rr;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return $Rr=x},{mode:1});var rjQ={};rjQ.InjectBehavior=[NWh.InjectBehavior];var NMW;var iP_;var OE=function(){return _.e.apply(this,arguments)||this};
_.p(OE,_.e);
OE.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:_.WD("menuRenderer")}}};
OE.prototype.onMenuTap=function(x){x.stopPropagation()};
_.J3.Object.defineProperties(OE.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 x,L;return!(((x=this.data)==null||!x.sectionHeading)&&((L=this.data)==null?void 0:L.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var x,L;return!(((x=this.data)==null||!x.image)&&((L=this.data)==null?void 0:L.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var x,L;return!(((x=this.data)==null||!x.menu)&&((L=this.data)==null?void 0:L.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],OE.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],OE.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.mRA.YtTappableItemBehavior),_.r("design:type",Object)],OE.prototype,"ytTappableItemBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],OE.prototype,"data",void 0);
_.A([_.F({reflectToAttribute:!0}),_.Y("data.accessibilityData"),_.r("design:type",String),_.r("design:paramtypes",[])],OE.prototype,"ariaLabel",null);_.A([_.Y("data.sectionHeading","data.layout"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],OE.prototype,"sectionHeadingVisible",null);_.A([_.Y("data.image","data.layout"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],OE.prototype,"imageVisible",null);
_.A([_.Y("data.menu","data.layout"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],OE.prototype,"menuVisible",null);_.A([_.oW({is:"yt-activity-item-renderer",disableElementRegistration:!0})],OE);
_.q(OE,"yt-activity-item-renderer",function(){if(iP_===void 0){var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;NMW===void 0&&(NMW=document.createElement("template"));var S=NMW;D.call(L,S.content.cloneNode(!0),x.content.firstChild);iP_=x}x=iP_;return x},{mode:2});var f3R;var o4_;var a3R;var zkW;var Z_=function(){return _.e.apply(this,arguments)||this};
_.p(Z_,_.e);
Z_.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"}}}}};
Z_.prototype.backgroundColorChanged_=function(){var x,L=(x=this.data)==null?void 0:x.backgroundColor;this.hostElement.style.backgroundColor=rC[L||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
Z_.prototype.backgroundColorChanged_=Z_.prototype.backgroundColorChanged_;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Z_.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Z_.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Z_.prototype,"data",void 0);
_.A([_.bN("data.backgroundColor"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Z_.prototype,"backgroundColorChanged_",null);_.A([_.oW({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],Z_);
_.q(Z_,"yt-offer-item-upsell-renderer",function(){if(zkW===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;a3R===void 0&&(a3R=document.createElement("template"));var S=a3R;D.call(L,S.content.cloneNode(!0),x.content.firstChild);zkW=x}x=zkW;return x},{mode:2});_.BD("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var y9=function(){var x=_.e.apply(this,arguments)||this;x.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};x.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return x};
_.p(y9,_.e);_.K=y9.prototype;
_.K.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:_.WD("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.K.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.K.computeContainerStyle_=function(x){return x};
_.K.computeContainerIsHidden_=function(x){return x&&!!x.isHidden};
_.K.computeShowSpinner_=function(x,L){return x&&L==="in-progress"};
_.K.computeShowMoreContentsButton_=function(x,L,D,S,Q){return!(!(S&&S.length||Q&&Q.length&&D)||!x||L)};
_.K.onToggleButton_=function(x){var L=this;x.stopPropagation();this.isExpanded_=x.detail&&x.detail.toggled;var D,S;this.isExpanded_&&!this.data.continuationSection.length&&((D=this.data)==null?0:(S=D.continuation)==null?0:S.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.MF(this.hostElement,"yt-load-next-continuation",function(Q){return L.getContinuationUrl_(L.data.continuation.onClickContinuationData,Q)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.jq(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.K.onShowMoreContentsButtonClicked_=function(x){var L=this;x.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.MF(this.hostElement,"yt-load-next-continuation",function(D){return L.getContinuationUrl_(L.data.continuations[0].nextContinuationData,D)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.jq(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.K.getContinuationUrl_=function(x,L){var D=x.continuation;x=x.clickTrackingParams;var S=_.A3();x&&S&&_.L7(S,_.CI(x));return _.DN(L,{continuation:D})};
_.K.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var x=_.jr(this.hostElement).querySelector("#continuation-section");x&&(x=x.querySelectorAll("ytmusic-item-section-renderer"))&&x.forEach(function(L){return L.classList.add("memberships-and-purchases")})};
_.K.dataChanged_=function(){var x;this.isExpanded_=!((x=this.data)==null||!x.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.K.updateCardOnClickCommand_=function(x){x=_.g(x,rTQ);var L,D;this.data&&((L=this.data)==null?0:L.targetId)&&x&&x.targetId===((D=this.data)==null?void 0:D.targetId)&&x.onClickCommand&&(this.data.onClickCommand=x.onClickCommand,this.isOnClickCommand_=!0)};
_.K.backgroundColorChanged_=function(){var x,L=(x=this.data)==null?void 0:x.backgroundColor;this.hostElement.style.backgroundColor=rC[L||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
y9.prototype.backgroundColorChanged_=y9.prototype.backgroundColorChanged_;y9.prototype.dataChanged_=y9.prototype.dataChanged_;y9.prototype.nextContinuationDataUpdated_=y9.prototype.nextContinuationDataUpdated_;y9.prototype.onToggleButton_=y9.prototype.onToggleButton_;_.A([_.b(_.HS),_.r("design:type",Object)],y9.prototype,"ytContinuationHandlerBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],y9.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],y9.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.u0.YtNextContinuationBehavior),_.r("design:type",Object)],y9.prototype,"ytNextContinuationBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],y9.prototype,"ytRendererBehavior",void 0);_.A([_.b(rjQ.InjectBehavior),_.r("design:type",Object)],y9.prototype,"injectBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],y9.prototype,"data",void 0);
_.A([_.F({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],y9.prototype,"compact",void 0);_.A([_.F({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],y9.prototype,"isExpanded_",void 0);_.A([_.F({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.r("design:type",String)],y9.prototype,"containerStyle_",void 0);_.A([_.F({value:"not-started"}),_.r("design:type",String)],y9.prototype,"continuationStatus_",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.r("design:type",Boolean)],y9.prototype,"showSpinner_",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],y9.prototype,"isOnClickCommand_",void 0);_.A([_.F({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.r("design:type",Boolean)],y9.prototype,"showMoreContentsButton_",void 0);
_.A([_.F({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(x,L){return!L||x.entities?null:_.u6(x.entities,"cardItemContainerEntity",L)}}),
_.r("design:type",Object)],y9.prototype,"cardItemContainerEntity_",void 0);_.A([_.mX("yt-toggle-button"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],y9.prototype,"onToggleButton_",null);_.A([_.mX("yt-next-continuation-data-updated"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],y9.prototype,"nextContinuationDataUpdated_",null);
_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],y9.prototype,"dataChanged_",null);_.A([_.bN("data.backgroundColor"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],y9.prototype,"backgroundColorChanged_",null);_.A([_.oW({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],y9);
_.q(y9,"yt-card-item-container-renderer",function(){if(o4_===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;f3R===void 0&&(f3R=document.createElement("template"));var S=f3R;D.call(L,S.content.cloneNode(!0),x.content.firstChild);o4_=x}x=o4_;return x},{mode:2});var Io=function(){return _.e.apply(this,arguments)||this};
_.p(Io,_.e);Io.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"}}}};
Io.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
Io.prototype.computeLoadingHidden=function(){var x;return!((x=this.commerceCartPageStateEntity)==null?0:x.cartActionInProgress)};
Io.prototype.updateNotification=function(){var x,L=(x=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:x.summaryText;L&&this.set("data.cartNotification",wq(L))};
Io.prototype.notificationEntityChanged=Io.prototype.notificationEntityChanged;_.A([_.b(_.EG),_.r("design:type",Object)],Io.prototype,"ytdReduxBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Io.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],Io.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Io.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.F(),_.r("design:type",Object)],Io.prototype,"data",void 0);_.A([_.F({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(x,L){return _.u6(x.entities,"commerceCartExpandableNotificationEntity",L)}}),
_.r("design:type",Object)],Io.prototype,"commerceCartExpandableNotificationEntity",void 0);_.A([_.F({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(x,L){return _.u6(x.entities,"commerceCartPageStateEntity",L)}}),
_.r("design:type",Object)],Io.prototype,"commerceCartPageStateEntity",void 0);_.A([_.F1("#spinner"),_.r("design:type",HTMLElement)],Io.prototype,"spinner",void 0);_.A([_.bN("commerceCartExpandableNotificationEntity","data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Io.prototype,"notificationEntityChanged",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],Io);
_.q(Io,"ytd-commerce-cart-renderer",function(){if(Ajd!==void 0)return Ajd;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return Ajd=x},{mode:1});var XJr;var EE=function(){var x=_.e.apply(this,arguments)||this;x.bigImage=!1;return x};
_.p(EE,_.e);_.J3.Object.defineProperties(EE.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null?void 0:x.placeholderImageUrl}}});
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],EE.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],EE.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],EE.prototype,"bigImage",void 0);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],EE.prototype,"placeholderImageUrl",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],EE);
_.q(EE,"ytd-empty-product-shelf-renderer",function(){if(XJr!==void 0)return XJr;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return XJr=x},{mode:1});var cjG;var Ms=function(){var x=_.e.apply(this,arguments)||this;x.itemStyle="link-item";x.watchMetadataRefresh=!1;x.skinnyMode=!1;x.metaPanel=!1;x.inStructuredDescription=!1;x.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};x.updateOnResizeDebouncer=null;return x};
_.p(Ms,_.e);_.K=Ms.prototype;_.K.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.K.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"}}}}};
_.K.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.K.attachVEs=function(x){x.trackingParams&&_.sk().graftServerVe(x.trackingParams)};
_.K.handleUpdateMerchShelfAction=function(x){var L=this,D=_.g(x.updateMerchandiseShelfAction.merchandiseShelf,_.Vv2);D&&(D.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){L.attachVEs(D);L.data=D},Number(D.renderDelayMs))):(this.attachVEs(D),this.data=D))};
_.K.updateOnResize=function(){if(this.JSC$16883_scrollContainer!==void 0&&this.JSC$16883_scrollContainer.clientWidth!==0&&this.items!==void 0){var x=this.JSC$16883_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-x));this.ytdHorizontalListBehavior.reposition_();var L;switch((L=this.data)==null?void 0:L.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var D,
S;((D=this.data)==null?void 0:(S=D.items)==null?void 0:S.length)===1?this.itemStyle="cta-item":this.itemStyle=x>=740?"large-item":"small-item"}}};
_.K.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.Yt(this.updateOnResizeDebouncer,_.PO.after(100),this.updateOnResize)};
Ms.prototype.debouncedUpdateOnResize=Ms.prototype.debouncedUpdateOnResize;Ms.prototype.dataChanged=Ms.prototype.dataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Ms.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Ms.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.CO.YtdHorizontalListBehavior),_.r("design:type",Object)],Ms.prototype,"ytdHorizontalListBehavior",void 0);
_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],Ms.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],Ms.prototype,"ytActionHandlerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Ms.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Ms.prototype,"itemStyle",void 0);_.A([_.F({value:6}),_.r("design:type",Number)],Ms.prototype,"initialCount",void 0);
_.A([_.F({value:"data.items"}),_.r("design:type",String)],Ms.prototype,"itemsPath",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Ms.prototype,"watchMetadataRefresh",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Ms.prototype,"skinnyMode",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Ms.prototype,"metaPanel",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Ms.prototype,"inStructuredDescription",void 0);
_.A([_.F1("#items"),_.r("design:type",HTMLDivElement)],Ms.prototype,"items",void 0);_.A([_.F1("#scroll-container"),_.r("design:type",HTMLDivElement)],Ms.prototype,"JSC$16883_scrollContainer",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Ms.prototype,"dataChanged",null);_.A([_.mX("iron-resize"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Ms.prototype,"debouncedUpdateOnResize",null);
_.A([_.w({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],Ms);
_.q(Ms,"ytd-merch-shelf-renderer",function(){if(cjG!==void 0)return cjG;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return cjG=x},{mode:2});var n42;var dx=function(){var x=_.e.apply(this,arguments)||this;x.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 x};
_.p(dx,_.e);_.K=dx.prototype;
_.K.addBackstagePostAction=function(x){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(x=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",x))&&(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:x}):this.set("data.contents",[{backstagePostThreadRenderer:x}]))};
_.K.addBackstageCommentAction=function(x){var L=this.get("addBackstageCommentAction.parentId",x);x=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",x);if(L&&x){L=this.postIdToIndices(L);for(var D=0;D<L.length;D++){var S=L[D];if(S<0)break;S="data.contents."+S+".backstagePostThreadRenderer.comments";this.get(S)&&(this.get(S+".backstageCommentsRenderer.contents")&&this.push(S+".backstageCommentsRenderer.contents",{commentThreadRenderer:x}),this.get(S+".backstageCommentsRenderer.teaserContents")?
this.push(S+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:x}):this.set(S+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:x}]))}}};
_.K.addBackstageReplyAction=function(x){var L=this.get("addBackstageReplyAction.parentId",x);x=this.get("addBackstageReplyAction.renderer.commentRenderer",x);L&&x&&this.setCreatorReply(L,x)};
_.K.banAuthorAction=function(x){var L=this.get("banAuthorAction.commentId",x);L&&(x=this.get("banAuthorAction.parentCommentId",x)||this.getParentPostId(L),this.removeFromStream(L,x))};
_.K.hideReportedCommentAction=function(x){var L=this.get("hideReportedCommentAction.commentId",x);L&&((x=this.get("hideReportedCommentAction.parentCommentId",x))||(x=this.getParentPostId(L)),this.removeFromStream(L,x))};
_.K.replaceBackstageCommentAction=function(x){var L=this.get("replaceBackstageCommentAction.commentId",x),D=this.get("replaceBackstageCommentAction.parentId",x);x=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",x);if(L&&D&&x){D=this.postIdToIndices(D);for(var S=0;S<D.length;S++){var Q=D[S];if(Q<0)break;var J=this.commentIdToIndex(L,Q,!1);if(J>=0){var Z=this.get("data.contents."+Q+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+J+".commentThreadRenderer.replies.commentRepliesRenderer");
Z&&(x.replies={commentRepliesRenderer:Z});this.splice("data.contents."+Q+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",J,1,{commentThreadRenderer:x})}J=this.commentIdToIndex(L,Q,!0);if(J>=0){if(Z=this.get("data.contents."+Q+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(J+".commentThreadRenderer.replies.commentRepliesRenderer")))x.replies={commentRepliesRenderer:Z};this.splice("data.contents."+Q+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
J,1,{commentThreadRenderer:x})}}}};
_.K.replaceBackstagePostAction=function(x){var L=this.get("replaceBackstagePostAction.itemId",x);if(L){L=this.postIdToIndices(L);for(var D=0;D<L.length;D++){var S=L[D];if(S<0)break;var Q=this.getPostRendererType(S),J=this.get("replaceBackstagePostAction.renderer."+Q,x);if(!J&&Q!=="sharedPostRenderer")break;var Z=!1;J||(Z=!0,J=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",x));if(!J)break;var y={};Z?(_.AH(y,BGd,J),this.set("data.contents."+S+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
y)):(_.AH(y,new _.jp(Q),J),this.set("data.contents."+S+".backstagePostThreadRenderer.post",y))}}};
_.K.replaceBackstageReplyAction=function(x){var L=this.get("replaceBackstageReplyAction.replyId",x),D=this.get("replaceBackstageReplyAction.parentId",x);x=this.get("replaceBackstageReplyAction.renderer.commentRenderer",x);L&&x&&D&&this.setCreatorReply(D,x)};
_.K.removeCommentAction=function(x){var L=this.get("removeCommentAction.commentId",x);if(L){var D=this.get("removeCommentAction.parentCommentId",x);D&&this.get("removeCommentAction.isCreatorReply",x)?this.setCreatorReply(D,void 0):(D||(D=this.getParentPostId(L)),this.removeFromStream(L,D))}};
_.K.setCreatorReply=function(x,L){var D=this.getParentPostId(x);if(D){D=this.postIdToIndices(D);for(var S=0;S<D.length;S++){var Q=D[S];if(Q<0)break;var J=this.commentIdToIndex(x,Q,!1);if(J>=0){var Z="data.contents."+Q+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+J;J=Z+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";Z+=".commentThreadRenderer.replies";L==void 0?(this.set(Z,{}),this.set(J,!1)):(this.set(Z,{commentRepliesRenderer:{teaserContents:[{commentRenderer:L}]}}),
this.set(Z+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(J,!0))}J=this.commentIdToIndex(x,Q,!0);J>=0&&(J="data.contents."+Q+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+J,Q=J+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",J+=".commentThreadRenderer.replies",L==void 0?(this.set(J,{}),this.set(Q,!1)):(this.set(J,{commentRepliesRenderer:{teaserContents:[{commentRenderer:L}]}}),this.set(Q,!0)))}}};
_.K.removeFromStream=function(x,L){if(L){L=this.postIdToIndices(L);for(var D=0;D<L.length;D++){var S=L[D];if(S<0)break;var Q=this.commentIdToIndex(x,S,!1);Q>=0&&this.splice("data.contents."+S+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",Q,1);Q=this.commentIdToIndex(x,S,!0);Q>=0&&this.splice("data.contents."+S+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",Q,1);S="data.contents."+S+".backstagePostThreadRenderer.post.backstagePostRenderer";
Q=S+".backstageAttachment.pollRenderer.votedCommentId";this.get(Q)===x&&(this.set(Q,null),this.set(S+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(L=this.postIdToIndices(x).reverse(),D=0;D<L.length;D++){S=L[D];if(S<0)break;Q=this.getPostRendererType(S);var J=this.get("backstagePostThreadRenderer.post."+Q,this.data.contents[S]);J.postId===x?this.splice("data.contents",S,1):Q==="sharedPostRenderer"&&this.set("data.contents."+S+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);J.scheduledPublishTimeSec&&_.dg(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.K.postIdToIndices=function(x){for(var L=[],D=0;D<this.data.contents.length;D++){var S=this.getPostRendererType(D);this.get("backstagePostThreadRenderer.post."+S+".postId",this.data.contents[D])===x&&L.push(D);if(S==="sharedPostRenderer"){var Q=this.get("backstagePostThreadRenderer.post."+S+".originalPost.backstagePostRenderer.postId",this.data.contents[D]);S=this.get("backstagePostThreadRenderer.post."+S+".originalPost.postRenderer.postId",this.data.contents[D]);Q!==x&&S!==x||L.push(D)}}return L};
_.K.commentIdToIndex=function(x,L,D){if(L<0)return-1;var S,Q,J,Z,y=_.g((S=this.data)==null?void 0:(Q=S.contents)==null?void 0:(J=Q[L])==null?void 0:(Z=J.backstagePostThreadRenderer)==null?void 0:Z.comments,U_G);return(L=D?y==null?void 0:y.teaserContents:y==null?void 0:y.contents)&&L.length?L.findIndex(function(E){return _.g(E,v0h).comment.commentRenderer.commentId===x}):-1};
_.K.getParentPostId=function(x){x=x.split(".");if(x[1])return x[0]};
_.K.getPostRendererType=function(x){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[x])?"sharedPostRenderer":"backstagePostRenderer"};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],dx.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],dx.prototype,"ytActionHandlerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],dx.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0,value:_.u("enable_community_page_on_desktop")}),_.r("design:type",Boolean)],dx.prototype,"useSmallerPostContainer",void 0);
_.A([_.w({disableElementRegistration:!0,is:"ytd-backstage-items"})],dx);
_.q(dx,"ytd-backstage-items",function(){if(n42!==void 0)return n42;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return n42=
x},{mode:1});var tlh;var xzA={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},PQ=function(){var x=_.e.apply(this,arguments)||this;x.disablePrescanVisibility=!0;x.canScheduleJobs=!0;x.engagementPanel=!1;x.hidePanelButton=!1;x.isWatchGrid=
!1;x.hasShownSubscribersOnlyDisclaimer=!1;x.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_"};x.TEST_ONLY=void 0;return x};
_.p(PQ,_.e);_.K=PQ.prototype;_.K.created=function(){this.initCommentsCsi_();_.u("web_delhi_comment_threads")||(this.actionMap["yt-create-comment-reply-action"]="createCommentReplyAction_");_.u("web_comment_threading_scroll_on_collapse")&&(this.actionMap["yt-scroll-to-comment-element"]="handleScrollToCommentElement_")};
_.K.contentsChanged_=function(){var x;(x=this.data)!=null&&x.contents&&this.tickForCommentsTimer_("cml")};
_.K.headerChanged_=function(){var x;(x=this.data)!=null&&x.header&&this.tickForCommentsTimer_("cmhl")};
_.K.initCommentsCsi_=function(){_.A_("wn_comments");var x=_.A3();x&&_.W$({clientScreenNonce:x},"wn_comments");this.tickForCommentsTimer_("cmi")};
_.K.createCommentAction_=function(x){x=_.wk.unsafeClone(x);var L,D;if(x=(L=_.g(x,OrG))==null?void 0:(D=L.contents)==null?void 0:D.commentThreadRenderer){var S,Q,J,Z,y,E;!this.isBackstage&&((S=this.data)==null?0:(Q=S.header)==null?0:(J=Q.commentsHeaderRenderer)==null?0:(Z=J.createRenderer)==null?0:(y=Z.commentSimpleboxRenderer)==null?0:(E=y.zeroStep)==null?0:E.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var P,
v,V;this.isBackstage&&_.g((P=this.data)==null?void 0:(v=P.header)==null?void 0:(V=v.commentsHeaderRenderer)==null?void 0:V.zeroStateMessage,Weh)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(x)}};
_.K.doReplyInsert_=function(x,L,D,S){S?this.splice(x,S,0,L):this.push(x,L)};
_.K.getRepliesPath_=function(x){return"data.contents."+x+".commentThreadRenderer.replies"};
_.K.getRepliesContentsPath_=function(x,L){x=this.getRepliesPath_(x);return L?x+".commentRepliesRenderer.teaserContents":x+".commentRepliesRenderer.contents"};
_.K.showSubscribersOnlyDisclaimer_=function(x){(x=x.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(x=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(x))&&(_.dg(this.hostElement,"yt-open-popup-action",[x,this]),this.hasShownSubscribersOnlyDisclaimer=!0)};
_.K.createCommentReplyAction_=function(x){x=_.wk.unsafeClone(x);var L=_.g(x,Zr_);if(x=L==null?void 0:L.contents){var D=this.commentIdToIndex_(L==null?void 0:L.parentCommentId);if(!(D<0)){var S=this.getRepliesPath_(D);if(this.get(S)){L=L.replyToCommentId;S=this.getRepliesContentsPath_(D,!1);if(this.get(S)){var Q=this.get(S).length,J=S+"."+(Q-1)+".continuationItemRenderer";this.get(J+".button")?(J=this.replyIdToIndex_(L,D,!1),this.doReplyInsert_(S,x,J,Q-1)):this.get(J)||(Q=this.replyIdToIndex_(L,D,
!1),this.doReplyInsert_(S,x,Q,null))}S=this.getRepliesContentsPath_(D,!0);this.get(S)?(D=this.replyIdToIndex_(L,D,!0),(!L||D>=0)&&this.doReplyInsert_(S,x,D,null)):this.set(S,[x])}else this.set(S,{commentRepliesRenderer:{teaserContents:[x]}})}}};
_.K.hideReportedCommentAction_=function(x){var L=_.g(x,s2R);if(x=L==null?void 0:L.commentId)(L=this.get("parentCommentId",L))||(L=this.getParentCommentId_(x)),this.remove_(x,L)};
_.K.getParentCommentId_=function(x){x=x.split(".");if(x[1])return x[0]};
_.K.removeCommentAction_=function(x){var L=_.g(x,doB);if(x=L==null?void 0:L.commentId)L=(L==null?void 0:L.parentCommentId)||this.getParentCommentId_(x),this.remove_(x,L)};
_.K.pinCommentAction_=function(x){x=_.wk.unsafeClone(x);var L=_.g(x,Mui);L!=null&&L.commentId&&(x=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",x))&&(this.remove_(L.commentId),this.insert_(x,!0))};
_.K.unpinCommentAction_=function(x){x=_.wk.unsafeClone(x);x=_.g(x,PJd);if(x!=null&&x.commentId){var L,D,S=(L=x.actionResult)==null?void 0:(D=L.update)==null?void 0:D.commentThreadRenderer;S&&(this.remove_(x.commentId),this.insert_(S))}};
_.K.banAuthorAction_=function(x){var L=_.g(x,KsB);L!=null&&L.commentId&&(x=L.commentId,L=L.parentCommentId||this.getParentCommentId_(x),this.remove_(x,L))};
_.K.handleScrollToCommentElement_=function(x){this.nearestScrollParent||(this.nearestScrollParent=dtp(x));this.isCommentVisibleInScrollParent(x)||x.scrollIntoView({behavior:"smooth",block:"start"})};
_.K.isCommentVisibleInScrollParent=function(x){if(!this.nearestScrollParent)return!1;x=x.getBoundingClientRect();var L=this.nearestScrollParent===document.documentElement?{top:68,bottom:window.innerHeight}:this.nearestScrollParent.getBoundingClientRect();return x.top>=L.top&&x.bottom<=L.bottom};
_.K.commentIdToIndex_=function(x){var L;return x&&(L=this.data)!=null&&L.contents?this.data.contents.findIndex(function(D){D=D.commentThreadRenderer;var S;return x===((D==null?void 0:D.commentViewModel)&&((S=_.g(D.commentViewModel,kph))==null?void 0:S.commentId))}):-1};
_.K.insert_=function(x,L){L=L===void 0?!1:L;var D,S;if((D=this.data)==null?0:(S=D.contents)==null?0:S.some(function(J){return!!J.commentThreadRenderer}))for(D=0,S=this.data.contents.length;D<S;D++){var Q=this.data.contents[D].commentThreadRenderer;
if(xzA[x.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]>=xzA[Q.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){L&&xzA[x.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===xzA[Q.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]?this.splice("data.contents",D,1,{commentThreadRenderer:x}):this.splice("data.contents",D,0,{commentThreadRenderer:x});break}}else this.set("data.contents",[{commentThreadRenderer:x}])};
_.K.doReplyRemove_=function(x,L,D){x=this.replyIdToIndex_(x,L,D);x<0||(L=this.getRepliesContentsPath_(L,D),this.splice(L,x,1))};
_.K.remove_=function(x,L){L=this.commentIdToIndex_(L);L<0?(L=this.commentIdToIndex_(x),L<0||this.splice("data.contents",L,1)):_.u("web_delhi_comment_threads")||(this.doReplyRemove_(x,L,!1),this.doReplyRemove_(x,L,!0))};
_.K.replyIdToIndex_=function(x,L,D){if(L<0)return-1;L=this.getRepliesContentsPath_(L,D);L=this.get(L);if(!L||!L.length)return-1;D=0;for(var S=L.length;D<S;D++){var Q=void 0,J=void 0;if(((Q=L[D])==null?void 0:(J=Q.commentViewModel)==null?void 0:J.commentId)===x)return D}return-1};
_.K.tickForCommentsTimer_=function(x){_.rg(x,void 0,"wn_comments")};
_.K.reloadComments_=function(x){x=_.g(x,uNB);_.g(x==null?void 0:x.command,_.ol)&&_.jq(this.hostElement,[x==null?void 0:x.command])};
_.J3.Object.defineProperties(PQ.prototype,{isBackstage:{configurable:!0,enumerable:!0,get:function(){var x,L,D;return!!((x=this.data)==null?0:(L=x.header)==null?0:(D=L.commentsHeaderRenderer)==null?0:D.isBackstageContent)}}});
_.J3.Object.defineProperties(PQ,{template:{configurable:!0,enumerable:!0,get:function(){if(tlh===void 0){var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);tlh=x}x=tlh;return x}}});
PQ.prototype.showSubscribersOnlyDisclaimer_=PQ.prototype.showSubscribersOnlyDisclaimer_;PQ.prototype.headerChanged_=PQ.prototype.headerChanged_;PQ.prototype.contentsChanged_=PQ.prototype.contentsChanged_;_.A([_.b(_.Fz),_.r("design:type",Object)],PQ.prototype,"ytdOpenPopupBehavior",void 0);_.A([_.b(_.oA3.YtHostElementBehavior),_.r("design:type",Object)],PQ.prototype,"ytHostElementBehavior",void 0);
_.A([_.b(_.kj.YtPlayerListenerBehavior),_.r("design:type",Function)],PQ.prototype,"ytPlayerListenerBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],PQ.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],PQ.prototype,"ytActionHandlerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],PQ.prototype,"data",void 0);
_.A([_.F({reflectToAttribute:!0}),_.Y("data.header.commentsHeaderRenderer.isBackstageContent"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],PQ.prototype,"isBackstage",null);_.A([_.F(),_.r("design:type",Object)],PQ.prototype,"disablePrescanVisibility",void 0);_.A([_.F(),_.r("design:type",Object)],PQ.prototype,"canScheduleJobs",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],PQ.prototype,"engagementPanel",void 0);
_.A([_.F(),_.r("design:type",Object)],PQ.prototype,"hidePanelButton",void 0);_.A([_.F(),_.r("design:type",Object)],PQ.prototype,"isWatchGrid",void 0);_.A([_.F(),_.r("design:type",Object)],PQ.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);_.A([_.bN("data.contents"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],PQ.prototype,"contentsChanged_",null);
_.A([_.bN("data.header"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],PQ.prototype,"headerChanged_",null);_.A([_.mX("yt-show-subscribers-only-disclaimer"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],PQ.prototype,"showSubscribersOnlyDisclaimer_",null);_.A([_.w({is:"ytd-comments"})],PQ);var jJ=function(){return _.er.apply(this,arguments)||this};
_.p(jJ,_.er);_.K=jJ.prototype;_.K.bindIf=function(x,L,D){return x?L:D};
_.K.bindIfDefined=function(x,L){return x!==void 0?x:L};
_.K.booleanString=function(x){return(!!x).toString()};
_.K.equals=function(){for(var x=_.Ne.apply(0,arguments),L=x[0],D=1;D<x.length;D++)if(L!=x[D])return!1;return!0};
_.K.isGreaterThan=function(x,L){return x>L};
_.K.isLessThan=function(x,L){return x<L};
_.K.logicalAND=function(){for(var x=_.Ne.apply(0,arguments),L=!!x[0],D=1;D<x.length;D++)L=L&&!!x[D];return L};
_.K.logicalOR=function(){for(var x=_.Ne.apply(0,arguments),L=!!x[0],D=1;D<x.length;D++)L=L||!!x[D];return L};
_.K.toBool=function(x){return!!x};
jJ.prototype.toBool=jJ.prototype.toBool;jJ.prototype.logicalOR=jJ.prototype.logicalOR;jJ.prototype.logicalAND=jJ.prototype.logicalAND;jJ.prototype.isLessThan=jJ.prototype.isLessThan;jJ.prototype.isGreaterThan=jJ.prototype.isGreaterThan;jJ.prototype.equals=jJ.prototype.equals;jJ.prototype.booleanString=jJ.prototype.booleanString;jJ.prototype.bindIfDefined=jJ.prototype.bindIfDefined;jJ.prototype.bindIf=jJ.prototype.bindIf;_.A([_.RW()],jJ);_.LCR=[jJ.prototype];var Dzh;var SS2;var vQ=function(){return _.e.apply(this,arguments)||this};
_.p(vQ,_.e);vQ.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
vQ.prototype.onBackIconTap_=function(){window.history.back()};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],vQ.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],vQ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],vQ.prototype,"data",void 0);_.A([_.oW({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],vQ);
_.q(vQ,"yt-header-with-back-renderer",function(){if(SS2===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;Dzh===void 0&&(Dzh=document.createElement("template"));var S=Dzh;D.call(L,S.content.cloneNode(!0),x.content.firstChild);SS2=x}x=SS2;return x},{mode:2});var QCh;var JC2;var V9=function(){var x=_.e.apply(this,arguments)||this;x.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return x};
_.p(V9,_.e);_.K=V9.prototype;_.K.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.K.onDarkModeToggledAction=function(x){x!==this.isDarkTheme&&(this.isDarkTheme=x,this.setUrl())};
_.K.dataChanged=function(){var x=this;if(this.data){var L=this.setUrl();L&&_.dT({destination:window,iframe:this.iframe,origin:_.HUr(L.toString()),channelName:"yt-iframe",onMessage:function(D){(D=x.getCommunicationCommand(D.data))&&x.ytComponentBehavior.resolveCommand(D)},
onEstablished:function(){}})}};
_.K.setUrl=function(){if(this.data&&this.data.iframeUrl){var x=_.qg(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(x)return _.ci(this.iframe,x),x}};
_.K.getCommunicationCommand=function(x){var L;if((L=this.data)!=null&&L.onCommunicationCommandsMap){L=this.data.onCommunicationCommandsMap.find(function(Q){return Q.key===x});
if(L==null?0:L.value)return L==null?void 0:L.value;try{var D=CH2(_.tG(x)),S=this.data.onCommunicationCommandsMap.find(function(Q){return Q.key===(D==null?void 0:D.getMethodName())});
if(S==null?0:S.value)return S==null?void 0:S.value}catch(Q){}}};
V9.prototype.dataChanged=V9.prototype.dataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],V9.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],V9.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],V9.prototype,"actionHandlerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],V9.prototype,"data",void 0);
_.A([_.F({value:!1}),_.r("design:type",Boolean)],V9.prototype,"isDarkTheme",void 0);_.A([_.F1("#iframe"),_.r("design:type",HTMLIFrameElement)],V9.prototype,"iframe",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],V9.prototype,"dataChanged",null);_.A([_.oW({is:"yt-iframe-renderer",disableElementRegistration:!0})],V9);
_.q(V9,"yt-iframe-renderer",function(){if(JC2===void 0){var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;QCh===void 0&&(QCh=document.createElement("template"));var S=QCh;D.call(L,S.content.cloneNode(!0),x.content.firstChild);JC2=x}x=JC2;return x},{mode:2});_.hh=function(x){_.Te.call(this);this.callback=x;this.bezier=new vOH(0,0,.4,0,.2,1,1,1);this.delay=new _.ZR(this.next,window,this);this.JSC$16924_animating=!1;_.V1(this,this.delay)};
_.p(_.hh,_.Te);_.hh.prototype.isAnimating=function(){return this.JSC$16924_animating};
_.hh.prototype.start=function(x,L,D){this.config={from:x,to:L,duration:D,startTime:(0,_.y5)()};this.JSC$16924_animating=!0;this.next()};
_.hh.prototype.stop=function(){this.delay.stop();this.JSC$16924_animating=!1;this.config=void 0};
_.hh.prototype.next=function(){if(this.config){var x=this.config,L=x.from,D=x.to,S=x.duration;x=x.startTime;var Q=(0,_.y5)()-x;x=this.bezier;S=huR(x,Q/S);if(S==0)x=x.y0;else if(S==1)x=x.y3;else{Q=wT(x.y0,x.y1,S);var J=wT(x.y1,x.y2,S);x=wT(x.y2,x.y3,S);Q=wT(Q,J,S);J=wT(J,x,S);x=wT(Q,J,S)}x=_.BF(x,0,1);this.callback(L+(D-L)*x);x<1?this.delay.start():this.JSC$16924_animating=!1}};_.HQ=new _.vx("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var KCh={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},Znh=function(x,L,D,S){_.Te.call(this);this.JSC$16935_miniAppId=x;this.localReleaseId=L;this.derivedDeviceInterface=D;this.isForeground=S;this.JSC$16935_playNonceResolver=new _.Hq;this.playPingTimerId=NaN;this.playPingIntervalMs=_.dE("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.dE("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.u("enable_displaying_ppn");this.JSC$16935_miniAppClientDataProvider=_.yY().resolve(_.HQ);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;On2(this);var Q=setTimeout(function(){_.qy(new _.RZ("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$16935_playNonceResolver.promise.then(function(){clearTimeout(Q)})};
_.p(Znh,_.Te);var I$R=function(x,L){x.JSC$16935_playNonceResolver.resolve(L!=null?L:Bo(8));x.enableDisplayingPpn&&yC2(x).then(function(D){x.JSC$16935_miniAppClientDataProvider.clientData.set("post_play_nonce",D)})},yC2=function(x){return _.I(function(L){return L.nextAddress==1?L.yield(x.JSC$16935_playNonceResolver.promise,2):L.return(L.yieldResult)})},On2=function(x){var L,D;
_.I(function(S){if(S.nextAddress==1)return S.yield(x.JSC$16935_playNonceResolver.promise,2);L=S.yieldResult;D={miniAppInfo:{externalPostId:x.JSC$16935_miniAppId,localReleaseId:x.localReleaseId,postPlayNonce:L,derivedDeviceInterface:x.derivedDeviceInterface}};_.W$(D);_.Y2(S)})},M5h=function(x){x.state!==0?_.qy(new _.RZ("[MiniAppPlayLogger] recordPlayStart failed with state "+KCh[x.state])):(x.state=1,uK(x,"ma_cl"),gx(x,"PLAY_EVENT_TYPE_PLAY_START"),EJd(x))},dzr=function(x){x.isForeground=!1;
gx(x,"PLAY_EVENT_TYPE_PLAY_PAUSE")},P4d=function(x){x.state!==1&&x.state!==2?_.qy(new _.RZ("[MiniAppPlayLogger] recordPlayEnd failed with state "+KCh[x.state])):(x.state=3,window.clearInterval(x.playPingTimerId),x.playPingTimerId=NaN,Bhh(),gx(x,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},jC2=function(x,L){x.state===2&&x.gameReady&&(x.firstClickRecorded?Date.now()-x.clickRecordedMs<x.playClickIntervalMs||(x.clickRecordedMs=Date.now(),gx(x,"PLAY_EVENT_TYPE_PLAY_CLICK")):L&&(uK(x,"ma_fua"),gx(x,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),x.firstClickRecorded=!0,x.clickRecordedMs=Date.now()))};
Znh.prototype.logError=function(x){var L=this,D;_.I(function(S){if(S.nextAddress==1)return x.metadata.externalPostId=L.JSC$16935_miniAppId,D=x.metadata,S.yield(Promise.race([L.JSC$16935_playNonceResolver.promise,new Promise(function(Q){setTimeout(function(){Q("")},3E4)})]),2);
D.postPlayNonce=S.yieldResult;x.metadata.localReleaseId=L.localReleaseId;x.loggingError.level="WARNING";_.BI(x.loggingError,x.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:x.metadata});_.Y2(S)})};
var vJi=function(x,L,D,S){var Q,J,Z,y,E,P;_.I(function(v){if(v.nextAddress==1)return v.yield(x.JSC$16935_playNonceResolver.promise,2);Q=v.yieldResult;J={externalPostId:x.JSC$16935_miniAppId,localReleaseId:x.localReleaseId,postPlayNonce:Q,sdkVersion:D,api:L};S!==void 0&&(J.networkRequestsMeasurement={networkRequests:_.y1(S,1),cachedRequests:_.y1(S,2),transferredBytes:_.y1(S,3)},(Z=S)==null?0:_.bV(Z,Vj,6))&&(J.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((y=_.Mg(S,
Vj,6))==null?void 0:WN(y,1))||"0",cacheHits:((E=_.Mg(S,Vj,6))==null?void 0:WN(E,2))||"0",cachedBytes:((P=_.Mg(S,Vj,6))==null?void 0:WN(P,3))||"0"});_.Uh("miniAppSdkUsage",J);_.Y2(v)})},hXR=function(x,L,D){var S,Q,J,Z,y,E,P,v,V,h,H,k,T,G,U,l;
_.I(function(X){if(X.nextAddress==1)return X.yield(x.JSC$16935_playNonceResolver.promise,2);S=X.yieldResult;Q={externalPostId:x.JSC$16935_miniAppId,localReleaseId:x.localReleaseId,postPlayNonce:S,sdkVersion:D,measurementWindow:{startTimestampMs:String(lV(L,1)),endTimestampMs:String(lV(L,2))},frameRate:{averageFrameTimeDeltaMs:U9(L,3),averageFrameIdleTimeMs:U9(L,4)}};_.bV(L,ha,5)&&(Q.networkRequests={networkRequests:(J=bZ(L))==null?void 0:_.y1(J,1),cachedRequests:(Z=bZ(L))==null?void 0:_.y1(Z,2),transferredBytes:(y=
bZ(L))==null?void 0:_.y1(y,3),sameOriginStatusCodeToCounts:V52((E=bZ(L))==null?void 0:lYh(E,4)),crossOriginStatusCodeToCounts:V52((P=bZ(L))==null?void 0:lYh(P,5))},(v=bZ(L))==null?0:_.bV(v,Vj,6))&&(Q.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((V=bZ(L))==null?void 0:(h=_.Mg(V,Vj,6))==null?void 0:WN(h,1))||"0",cacheHits:((H=bZ(L))==null?void 0:(k=_.Mg(H,Vj,6))==null?void 0:WN(k,2))||"0",cachedBytes:((T=bZ(L))==null?void 0:(G=_.Mg(T,Vj,6))==null?void 0:WN(G,3))||"0"});_.bV(L,
RsG,7)&&(Q.gameCapture={averageFrameTimeDeltaMs:(U=_.Mg(L,RsG,7))==null?void 0:U9(U,1),averageFrameIdleTimeMs:(l=_.Mg(L,RsG,7))==null?void 0:U9(l,2)});_.Uh("miniAppPerformanceMetrics",Q);_.Y2(X)})},HnA=function(x,L){var D,S;
return _.I(function(Q){if(Q.nextAddress==1)return Q.yield(x.JSC$16935_playNonceResolver.promise,2);D=Q.yieldResult;S={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:x.JSC$16935_miniAppId,postPlayNonce:D,miniAppReleaseId:x.localReleaseId},derivedDeviceInterface:x.derivedDeviceInterface,adTriggerType:L,rejectedReason:"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"};_.Uh("miniAppAdEvent",S);_.Y2(Q)})};
Znh.prototype.disposeInternal=function(){_.Te.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var gx=function(x,L,D,S){D=D===void 0?{}:D;S=S===void 0?!1:S;var Q,J,Z,y;_.I(function(E){if(E.nextAddress==1)return Q=x.isForeground,J=x.beforeReady,E.yield(x.JSC$16935_playNonceResolver.promise,2);Z=E.yieldResult;y={externalPostId:x.JSC$16935_miniAppId,localReleaseId:x.localReleaseId,derivedDeviceInterface:x.derivedDeviceInterface,postPlayNonce:Z,type:L};D.sequenceGroup=Z;y.playState=J?"PLAY_STATE_NOT_READY":Q?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.Uh("miniAppPlayEvent",y,
D);S&&_.wz();_.Y2(E)})},uK=function(x,L){var D;
_.I(function(S){if(S.nextAddress==1)return D=(0,_.y5)(),S.yield(x.JSC$16935_playNonceResolver.promise,2);_.$T(L,D);_.Y2(S)})},EJd=function(x){isNaN(x.playPingTimerId)&&(x.playPingTimerId=_.h8(function(){x.state!==1&&x.state!==2?_.qy(new _.RZ("[MiniAppPlayLogger] reportPlayPing failed with state "+KCh[x.state])):gx(x,"PLAY_EVENT_TYPE_PLAY_PING")},x.playPingIntervalMs))},V52=function(x){return Array.from(x.entries()).map(function(L){var D=_.O(L);
L=D.next().value;D=D.next().value;return{key:L,value:D}})};var uBr=function(){},gJh=function(x,L){x.showMiniAppAdCommand=L.showMiniAppAdCommand;
x.isEmbeddedInWebview=L.isEmbeddedInWebview;x.playLogger=L.playLogger},pA2=function(x,L){var D;
return _.I(function(S){if(S.nextAddress==1){if(!x.showMiniAppAdCommand||!x.isEmbeddedInWebview)return S.return(kh_(x,L));x.adResolver=new _.Hq;var Q=new cg;D=_.dt(Q,3,L);Ai(x.showMiniAppAdCommand,EtQ(D));return S.yield(x.adResolver.promise,2)}return S.return(S.yieldResult)})};
uBr.prototype.onAdFinished=function(x){x=yo2(x);var L;(L=this.adResolver)==null||L.resolve(x)};
var kh_=function(x,L){var D;return _.I(function(S){if(S.nextAddress==1)S=S.yield((D=x.playLogger)==null?void 0:HnA(D,uHO(L)),2);else{var Q=S.return;var J=new ZtC;J=_.dt(J,1,2);S=Q.call(S,J)}return S})};var mzB=new _.vx("INNERTUBE_MANAGER_TOKEN");var bnH=function(){this.callbacks={}};
bnH.prototype.initialize=function(x){var L=this;this.callbacks=x;window.youtubewebview?window.youtubewebview.onmessage=function(D){YSB(L,D)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(D){YSB(L,D)})};
var YSB=function(x,L){if(L.data)try{var D=CH2(L.data);if(_.uq(_.mi(D,1))!=null){var S=JsQ(_.wy(D,2));switch(D.getMethodName()){case "yt-mini-app-load-audio-state":var Q,J;(J=(Q=x.callbacks).onAudioStateLoaded)==null||J.call(Q,_.Ci(S,bY(S,Xn,1)));break;case "yt-mute-mini-app":var Z,y;(y=(Z=x.callbacks).onMuteMiniApp)==null||y.call(Z);break;case "yt-unmute-mini-app":var E,P;(P=(E=x.callbacks).onUnmuteMiniApp)==null||P.call(E);break;case "yt-playable-exit":var v,V;(V=(v=x.callbacks).onExit)==null||V.call(v);
break;case "yt-post-play-nonce":var h,H;(H=(h=x.callbacks).onPostPlayNonceReceived)==null||H.call(h,qa(S,2,Xn));break;case "yt-confirm-exit-mini-app":var k,T;(T=(k=x.callbacks).confirmExitMiniApp)==null||T.call(k);break;case "yt-confirm-exit-mini-app-edu":var G,U;(U=(G=x.callbacks).confirmExitMiniAppEdu)==null||U.call(G);break;case "yt-benchmarking-response":var l,X;(X=(l=x.callbacks).onNativeBenchmarkingMessageReceived)==null||X.call(l,qa(S,2,Xn));break;case "yt-mini-app-load-3p-consent-state":var f,
N;(N=(f=x.callbacks).multiplayer3pAckStateLoaded)==null||N.call(f,_.Ci(S,bY(S,Xn,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var z,xf;(xf=(z=x.callbacks).exitMiniAppSeenStateLoaded)==null||xf.call(z,_.Ci(S,bY(S,Xn,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var K3,P4;(P4=(K3=x.callbacks).onNavigateToNewMiniApp)==null||P4.call(K3);break;case "yt-game-data-available":var kf,H4;(H4=(kf=x.callbacks).onGameDataAvailable)==null||H4.call(kf,qa(S,2,Xn));break;case "yt-pause-mini-app":var p3,
w0;(w0=(p3=x.callbacks).onPauseMiniApp)==null||w0.call(p3);break;case "yt-resume-mini-app":var Rn,lG;(lG=(Rn=x.callbacks).onResumeMiniApp)==null||lG.call(Rn);break;case "yt-playable-ad-finished":var xX,UR;(UR=(xX=x.callbacks).onAdFinished)==null||UR.call(xX,qa(S,2,Xn))}}else _.qy(Error("$h"))}catch(c4){_.BI(Error("ai"))}else _.qy(Error("bi"))};var kww=function(x){this.rpcErrorCode=x};var km=function(x,L,D){this.intervalMs=x;this.apiFunc=L;this.type=D;this.schedulerReady=!0};
km.prototype.call=function(x){var L=this,D;return _.I(function(S){if(S.nextAddress==1){if(L.type!==1&&x===L.cachedValue)return S.return();L.pendingApiRequestResolver||(L.pendingApiRequestResolver=new _.Hq);D=L.pendingApiRequestResolver.promise;L.cachedValue=x;return S.yield(FCh(L),2)}return S.return(D)})};
km.prototype.flush=function(x){x=x===void 0?!1:x;var L=this;return _.I(function(D){return L.cachedValue===void 0?D.return():D.yield(L.apiFunc(L.cachedValue,x),0)})};
var FCh=function(x){var L,D,S;return _.I(function(Q){switch(Q.nextAddress){case 1:if(!x.schedulerReady||!x.pendingApiRequestResolver)return Q.return();x.schedulerReady=!1;L=x.pendingApiRequestResolver;x.pendingApiRequestResolver=void 0;_.HH(Q,2);if(x.cachedValue===void 0){Q.jumpTo(4);break}return Q.yield(x.apiFunc(x.cachedValue),5);case 5:D=Q.yieldResult,L.resolve(D);case 4:_.nH(Q,3);break;case 2:S=_.mW(Q),L.reject(S);case 3:setTimeout(function(){return _.I(function(J){x.schedulerReady=!0;return J.yield(FCh(x),
0)})},x.intervalMs),_.Y2(Q)}})};var bY0=window.location.origin+"/miniapp_cloudsaves",ph3=[400,401],sC2=_.dE("cloud_save_game_data_rate_limit_ms",3E3),RXA=function(x){var L=this;this.JSC$16979_miniAppId=x;this.loadAttempts=0;this.cloudSaveIntervalMs=sC2;this.initialDownloadDataSucceeded=!1;this.JSC$16979_playNonceResolver=new _.Hq;this.scottyUploadRateLimiter=new km(this.cloudSaveIntervalMs,function(D,S){return T9R(L,D,S)},2);
this.downloadDataPromise=eXC(this);this.downloadDataPromise.then(function(){L.initialDownloadDataSucceeded=!0}).catch(function(){})},Ghh=function(x,L){L.then(function(D){return x.JSC$16979_playNonceResolver.resolve(D)})},C4R=function(x){return _.I(function(L){return x.cachedData===void 0?L.return(x.downloadDataPromise):L.return(x.cachedData)})},l$W=function(x,L){return _.I(function(D){x.cachedData=L;
if(!x.initialDownloadDataSucceeded)throw Error("ci");return D.yield(x.scottyUploadRateLimiter.call(L),0)})},UzG=function(){return new Promise(function(x){setTimeout(x,1E3,"")})},wAh=function(x,L){var D,S;
return _.I(function(Q){if(Q.nextAddress==1)return D=x.JSC$16979_miniAppId,Q.yield(Promise.race([x.JSC$16979_playNonceResolver.promise,UzG()]),2);S={"X-YouTube-MiniAppId":D,"X-YouTube-PostPlayNonce":Q.yieldResult};"DELEGATED_SESSION_ID"in _.q9&&O7p(L,S);return Q.return(S)})},T9R=function(x,L,D){D=D===void 0?!1:D;
return _.I(function(S){return gFp()?_.u("enable_cloud_save_error_popup_after_retry")?S.return(new Promise(function(Q,J){var Z,y,E,P,v;return _.I(function(V){switch(V.nextAddress){case 1:Z=0,y=!0,P=E=null;case 2:if(!(y&&Z++<2)){V.jumpTo(4);break}_.HH(V,5);return V.yield(B9B(x,L,D),7);case 7:E=V.yieldResult;y=E.ok?!1:!ph3.includes(E.status);_.nH(V,2);break;case 5:P=v=_.mW(V);y=mts(P);V.jumpTo(2);break;case 4:E?E.ok?(pR(x,sC2),Q()):(pR(x,x.cloudSaveIntervalMs*2),J(Error("di`"+String(E.status),{cause:{rpcErrorCode:E.status}}))):
(pR(x,x.cloudSaveIntervalMs*2),J(P||Error("ei"))),_.Y2(V)}})})):S.return(new Promise(function(Q,J){var Z,y;
return _.I(function(E){if(E.nextAddress==1){if(x.JSC$16979_miniAppId==="")return J(Error("fi")),E.return();_.HH(E,2);return E.yield(B9B(x,L,D),4)}if(E.nextAddress!=2)return Z=E.yieldResult,Z.ok?(pR(x,sC2),Q()):(pR(x,x.cloudSaveIntervalMs*2),J(Error("di`"+String(Z.status),{cause:{rpcErrorCode:Z.status}}))),_.nH(E,0);y=_.mW(E);pR(x,x.cloudSaveIntervalMs*2);J(y);_.Y2(E)})})):S.return()})},B9B=function(x,L,D){D=D===void 0?!1:D;
var S,Q,J;return _.I(function(Z){if(Z.nextAddress==1)return S=_.Gg((new TextEncoder).encode(L)),Q=YJN(),Z.yield(wAh(x,Q),2);J=Z.yieldResult;return Z.return(fetch(Q,{method:"POST",body:new Blob([S]),headers:J,keepalive:D}))})},eXC=function(x){var L,D;
return _.I(function(S){if(S.nextAddress==1){if(!gFp())return S.return("");if(x.JSC$16979_miniAppId==="")throw Error("fi");if(x.loadAttempts>2)return S.return(x.downloadDataPromise);_.HH(S,2);return S.yield(WCh(x),4)}if(S.nextAddress!=2)return L=S.yieldResult,S.return(L);D=_.mW(S);if(mts(D)&&++x.loadAttempts<2)return S.return(eXC(x));throw D;})},WCh=function(x){var L,D,S,Q,J;
return _.I(function(Z){switch(Z.nextAddress){case 1:return _.HH(Z,2),L=YJN(),Z.yield(wAh(x,L),4);case 4:return D=Z.yieldResult,Z.yield(fetch(L,{method:"GET",headers:D}),5);case 5:return S=Z.yieldResult,S.ok?Z.yield(S.text(),6):Z.return(Promise.reject(Error("gi`"+String(S.status),{cause:new kww(S.status)})));case 6:return Q=Z.yieldResult,Z.return((new TextDecoder).decode(_.tG(Q)));case 2:return J=_.mW(Z),Z.return(Promise.reject(J))}})},pR=function(x,L){x.cloudSaveIntervalMs=L;
x.scottyUploadRateLimiter.intervalMs=x.cloudSaveIntervalMs};
RXA.prototype.flush=function(){var x=this;return _.I(function(L){return x.initialDownloadDataSucceeded?L.yield(x.scottyUploadRateLimiter.flush(!0),0):L.return()})};var qSR=pS(kK(1),uZ(1)),ACW=pS(kK(1),uZ(3)),mL=function(x){this.callbacks=x};
_.K=mL.prototype;_.K.onAudioToggled=function(x,L){(L===void 0||L)&&_.qB("yt-mini-app-is-audio-enabled",x,2592E3)};
_.K.onPause=function(){this.onAudioToggled(!1,!1)};
_.K.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.K.returnNativeBenchmarkingMessage=function(){};
_.K.sendGameData=function(){};
_.K.sendStartGameFrameCapture=function(){};
var FZp=function(x,L,D){this.callbacks=x;var S=this;this.sdkVersion=new _.Hq;this.channel=new b3d(_.dT({destination:window,iframe:L,origin:(new URL(D.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var Q=bK;var J=kK(5);var Z=new hsR;Z=_.$I(Z,1,1E4);J=_.bQ(J,4,Ych,Z);Q(S,J);S.onAudioToggled(S.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){S.sdkVersion.resolve("")},1E4)};
_.p(FZp,mL);_.K=FZp.prototype;_.K.onAudioToggled=function(x,L){mL.prototype.onAudioToggled.call(this,x,L===void 0?!0:L);L=bK;var D=kK(2),S=new vlA;x=_.db(S,1,x);x=_.bQ(D,3,Ych,x);L(this,x)};
_.K.onPause=function(){mL.prototype.onPause.call(this);bK(this,kK(3))};
_.K.onResume=function(){mL.prototype.onResume.call(this);bK(this,kK(4))};
_.K.returnNativeBenchmarkingMessage=function(x){var L=bK,D=kK(6);var S=uZ(_.bV(x,KW,1)?1:2);x=_.bV(x,KW,1)?x:null;S=_.bQ(S,5,g1,x);L(this,pS(D,S))};
_.K.sendGameData=function(x){var L=bK,D=kK(7);x=_.bQ(D,5,Ych,x);L(this,x)};
_.K.sendStartGameFrameCapture=function(){bK(this,kK(9))};
var Ym=function(x,L,D){var S,Q,J;return _.I(function(Z){if(Z.nextAddress==1)return S=x.callbacks,Q=S.onSdkCalled,J=L,Z.yield(x.sdkVersion.promise,2);Q.call(S,J,Z.yieldResult,D);_.Y2(Z)})};
FZp.prototype.onMessage=function(){var x=this;return sni(YK,function(L){var D,S,Q,J,Z,y,E,P,v,V,h,H,k,T,G,U,l,X,f,N,z,xf,K3,P4,kf,H4,p3,w0,Rn,lG,xX,UR,c4,hr,GB,C2,X9,vs,Zp,K2,F2,II,jW,J5,Eq,zB;return _.I(function(ER){switch(ER.nextAddress){case 1:if(!UC2(L.data))return _.qy(Error("hi")),ER.return();D=_.BN(L.data,1);_.u("enable_iframe_message_get_type_via_fields")&&(S=L.data,D=Q=_.BN(S,1));switch(D){case 8:if(L.data.hasMetadata()){var qh=x.sdkVersion,g$=qh.resolve;var p2=L.data.getMetadata();p2=_.wy(p2,
1);g$.call(qh,p2);clearTimeout(x.sdkVersionTimeoutId)}break;case 6:return ER.jumpTo(2);case 16:if(!_.YI(L.data,TTA,14,Fn))return ER.return();J=_.A9(L.data,TTA,14,Fn);(y=(Z=x.callbacks).onGameFrameReceived)==null||y.call(Z,J);return ER.return();case 17:if(!_.YI(L.data,sar,15,Fn))return ER.return();(P=(E=x.callbacks).onGameAudioReceived)==null||P.call(E,_.A9(L.data,sar,15,Fn));return ER.return();case 1:if(qh=_.A9(L.data,gl2,2,Fn))switch(_.BN(qh,1)){case 1:x.callbacks.onFirstFrameReady();if(_.u("enable_network_request_logging_on_game_events")&&
_.bV(qh,ha,4)){Ym(x,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.Mg(qh,ha,4));break}Ym(x,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(p2=(g$=x.callbacks).onGameReady)==null||p2.call(g$);if(_.u("enable_network_request_logging_on_game_events")&&_.bV(qh,ha,4)){Ym(x,"MINI_APP_SDK_API_GAME_READY",_.Mg(qh,ha,4));break}Ym(x,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.YI(qh,Hg,3,kCG))x.callbacks.onResourceLoaded(_.A9(qh,Hg,3,kCG))}return ER.return();case 3:return ER.jumpTo(3);case 4:return ER.jumpTo(4);
case 2:return ER.jumpTo(5);case 9:return ER.jumpTo(6);case 10:return x.callbacks.onClick(),ER.return();case 5:return ER.jumpTo(7);case 11:if(!_.YI(L.data,jv,9,Fn))return ER.return();v=_.A9(L.data,jv,9,Fn);(h=(V=x.callbacks).onBenchmarkingMessageReceived)==null||h.call(V,v);qh=L.reply;g$=kK(1);p2=uZ(1);var uG=new jv;var h5=new Uint8Array(NM0(v,bY(v,Elr,6))|0);uG=uY(uG,5,Elr,_.bG(h5,!1));p2=_.bQ(p2,5,g1,uG);qh.call(L,pS(g$,p2));return ER.return();case 12:return ER.jumpTo(8);case 13:return ER.jumpTo(9);
case 15:if(!_.u("enable_open_yt_content"))return L.reply(ACW),ER.return();if(!_.YI(L.data,F8W,12,Fn))return L.reply(pS(kK(1),uZ(2))),ER.return();qh=_.A9(L.data,F8W,12,Fn);H=_.wy(qh,1);x.callbacks.onOpenYTContent(H);L.reply(qSR);return ER.return();case 14:return ER.jumpTo(10);default:return ER.return()}ER.jumpTo(0);break;case 2:if(!_.YI(L.data,mG,5,Fn))return ER.return();g$=L.data;qh=bY(g$,Fn,5);g$=g$.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;k=W34(g$,g$[_.Jr]|0,mG,qh)||mG[ArN]||(mG[ArN]=
$hh(mG));qh=_.O7(k,vg,1,_.Zb());T=_.O(qh);G=T.next();case 12:if(G.done){ER.jumpTo(14);break}U=G.value;l=new _.RZ;l.level=_.BN(U,2)===1?"WARNING":"ERROR";X=TLw(U.getSource());return ER.yield(x.sdkVersion.promise,15);case 15:f={source:X,sdkVersion:ER.yieldResult};_.DY(_.mi(U,6))!=null?(l.message=U.getMessage(),l.stack=_.wy(U,5),f.sdkErrorType=eJh(_.BN(U,6)),_.DY(_.mi(U,7))!=null&&(f.sdkApi=RJn(_.BN(U,7)))):l.stack=void 0;z=N=void 0;(z=(N=x.callbacks).onError)==null||z.call(N,{loggingError:l,metadata:f});
G=T.next();ER.jumpTo(12);break;case 14:return ER.return();case 3:return _.HH(ER,16),qh=ER.yield,g$=x.callbacks,p2=g$.onSave,uG=_.A9(L.data,V9r,4,Fn),uG=_.wy(uG,1),qh.call(ER,p2.call(g$,uG),18);case 18:L.reply(qSR);_.nH(ER,17);break;case 16:return xf=_.mW(ER),K3=$c,P4=xf,kf=x.callbacks,H4="MINI_APP_SDK_API_SAVE_DATA",ER.yield(x.sdkVersion.promise,19);case 19:K3(P4,kf,H4,ER.yieldResult),L.reply(ACW);case 17:return ER.yield(Ym(x,"MINI_APP_SDK_API_SAVE_DATA"),20);case 20:return ER.return();case 4:return _.HH(ER,
21),ER.yield(x.callbacks.onLoad(),23);case 23:p3=ER.yieldResult;qh=L.reply;g$=kK(1);p2=uZ(1);uG=new V9r;uG=_.ei(uG,1,p3);p2=_.bQ(p2,3,g1,uG);qh.call(L,pS(g$,p2));_.nH(ER,22);break;case 21:return w0=_.mW(ER),Rn=$c,lG=w0,xX=x.callbacks,UR="MINI_APP_SDK_API_LOAD_DATA",ER.yield(x.sdkVersion.promise,24);case 24:Rn(lG,xX,UR,ER.yieldResult),L.reply(ACW);case 22:return ER.yield(Ym(x,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return ER.return();case 5:_.HH(ER,26);x.callbacks.onSendHighScore(q4(_.A9(L.data,
CWr,3,Fn).getValue()));L.reply(pS(kK(1),uZ(1)));_.nH(ER,27);break;case 26:return c4=_.mW(ER),hr=$c,GB=c4,C2=x.callbacks,X9="MINI_APP_SDK_API_SEND_SCORE",ER.yield(x.sdkVersion.promise,28);case 28:hr(GB,C2,X9,ER.yieldResult),L.reply(ACW);case 27:return ER.yield(Ym(x,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return ER.return();case 6:if(!_.YI(L.data,lVR,8,Fn)){ER.jumpTo(30);break}qh=ER.yield;g$=_.A9(L.data,lVR,8,Fn);g$=_.BN(g$,1);return qh.call(ER,Ym(x,RJn(g$)),30);case 30:return ER.return();case 7:return qh=
L.reply,g$=kK(1),p2=uZ(1),uG=x.callbacks.getLanguage(),p2=uY(p2,4,g1,Hs(uG)),qh.call(L,pS(g$,p2)),ER.yield(Ym(x,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return ER.return();case 8:if(!_.YI(L.data,GCH,10,Fn))return ER.return();vs=_.A9(L.data,GCH,10,Fn);Zp=x.callbacks;K2=Zp.onSdkPerformanceUpdate;return ER.yield(x.sdkVersion.promise,33);case 33:return K2.call(Zp,vs,ER.yieldResult),ER.return();case 9:qh=L.data;g$=bY(qh,Fn,11);if(_.uq(_.mi(qh,g$))==null)return L.reply(pS(kK(1),uZ(2))),ER.return();
F2=qa(L.data,11,Fn);x.callbacks.onShareInviteCode(F2);L.reply(qSR);return ER.yield(Ym(x,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return ER.return();case 10:if(_.YI(L.data,jah,13,Fn)){ER.jumpTo(35);break}return ER.yield(x.callbacks.onShowMiniAppAd(2),36);case 36:return II=ER.yieldResult,L.reply(pS(kK(1),mCh(II))),ER.yield(Ym(x,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return ER.return();case 35:qh=_.A9(L.data,jah,13,Fn);a:switch(_.BN(qh,1)){case 1:qh={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:qh={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:qh={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}jW=qh;J5=jW.adType;Eq=jW.sdkApi;qh=ER.yield;g$=x.callbacks;p2=g$.onShowMiniAppAd;uG=_.A9(L.data,jah,13,Fn);uG=_.wy(uG,2);return qh.call(ER,p2.call(g$,J5,uG||void 0),38);case 38:return zB=ER.yieldResult,L.reply(pS(kK(1),mCh(zB))),ER.yield(Ym(x,Eq),39);case 39:return ER.return()}})})};
var bK=function(x,L){_.I(function(D){x.channel.send(L);_.Y2(D)})},rq=function(x,L,D){this.callbacks=x;
var S=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;x=cw4(L,(new URL(D.toString())).origin);this.gameSnacks=new $fr(x);this.gameSnacks.page.onReady(function(){S.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){S.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var Q,J;(J=(Q=S.callbacks).onGameReady)==null||J.call(Q)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(Q,J){try{S.callbacks.onSendHighScore(J)}catch(Z){$c(Z,S.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(Q,J){var Z;return _.I(function(y){if(y.nextAddress==1)return _.HH(y,2),y.yield(S.callbacks.onSave(S.decoder.decode(J)),4);if(y.nextAddress!=2)return _.nH(y,0);Z=_.mW(y);$c(Z,S.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return y.return()})});
this.gameSnacks.storage.onLoad(function(){var Q,J;return _.I(function(Z){if(Z.nextAddress==1)return _.HH(Z,2),Z.yield(S.callbacks.onLoad(),4);if(Z.nextAddress!=2)return Q=Z.yieldResult,Z.return(S.encoder.encode(Q));J=_.mW(Z);$c(J,S.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return Z.return(S.encoder.encode(""))})});
this.gameSnacks.init()};
_.p(rq,mL);rq.prototype.onAudioToggled=function(x,L){mL.prototype.onAudioToggled.call(this,x,L===void 0?!0:L);var D;(D=this.gameSnacks)==null||D.audio.update(x)};
rq.prototype.onPause=function(){mL.prototype.onPause.call(this);var x;(x=this.gameSnacks)==null||x.game.pause()};
rq.prototype.onResume=function(){mL.prototype.onResume.call(this);var x;(x=this.gameSnacks)==null||x.game.resume()};var $zH=Gw0,rC_=_.B(function(x){var L=x.data;var D=x.loadingProgress;var S=x.forPaused;x=_.O(_.HB("",void 0,"LYYTdd"));var Q=x.next().value,J=x.next().value;x=_.O(_.HB(!1,void 0,"K0waae"));var Z=x.next().value,y=x.next().value,E=[],P=function(){return"transform: scaleX("+(_.WB(D)||0)+")"},v=null,V=function(){return L()&&v!==null&&v!==void 0?v:v=L().showAnniversaryAnimation?6:$zH()};
_.Us(function(){var T;if(L().timeOutMessages&&((T=L().timeOutMessages)==null?0:T.length)){v=null;T=_.O(E);for(var G=T.next();!G.done;G=T.next())clearTimeout(G.value);E.length=0;C9s(L().timeOutMessages,E,J,y)}},"BNu9j");
var h=function(){return!!L().persistentErrorMessageTitle},H=function(){return D!==void 0},k=function(){return L().title};
return _.M("yt-mini-splash-screen-view-model",{class:"miniAppSplashScreenViewModelHost"},_.M("div",{class:"miniAppSplashScreenViewModelLoadingScreen",role:"region",tabindex:0},_.M("div",{class:"miniAppSplashScreenViewModelBackgroundBase"}),_.M("div",{class:"miniAppSplashScreenViewModelBackgroundBlur",style:function(){var T,G=(T=L().backgroundImage)==null?void 0:T.sources,U;return(G==null?0:G.length)?"background-image: url("+((U=G[0])==null?void 0:U.url)+")":""}}),_.M("div",{class:"miniAppSplashScreenViewModelBackgroundScrim"}),
_.M(_.d,{cond:function(){return!h()&&!(S==null?0:S())},
then:function(){var T={};return _.M("div",{class:"miniAppSplashScreenViewModelLoadingScreenContent"},_.M("div",{class:"miniAppSplashScreenViewModelLoadingIcon"},_.M(_.fJ,{className:"miniAppSplashScreenViewModelLoadingIconAnimation",animationName:function(){return"loading_animation_"+V()},
data:function(){var G="loading_animation_"+V();return{animationConfig:{name:G,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+G+".json",loop:!0,autoplay:!0}}}})),_.M("div",{class:"miniAppSplashScreenViewModelTimeoutMessageContainer"},_.M(_.d,{cond:k,
then:function(){return _.M("h3",{class:"miniAppSplashScreenViewModelTimeoutHeading"},k)}}),_.M("p",{class:_.gF("miniAppSplashScreenViewModelTimeoutMessage",(T.miniAppSplashScreenViewModelTimeoutMessageFadeOut=function(){return Z()},T)),
"aria-live":"polite"},Q),_.M(_.d,{cond:H,then:function(){return _.M("div",{class:"miniAppSplashScreenViewModelLoadingBarTrack"},_.M("div",{class:"miniAppSplashScreenViewModelLoadingBarSegment miniAppSplashScreenViewModelLoadingBarSegmentResourceAnimation",style:P}))}})))}}),_.M(_.d,{cond:h,
then:function(){return _.M("div",{class:"miniAppSplashScreenViewModelPersistentErrorContent"},_.M("h3",{class:"miniAppSplashScreenViewModelPersistentErrorMessageTitle"},function(){return L().persistentErrorMessageTitle}),_.M(_.d,{cond:function(){return!!L().persistentErrorMessageDescription},
then:function(){return _.M("p",{class:"miniAppSplashScreenViewModelPersistentErrorMessageDescription"},function(){return L().persistentErrorMessageDescription})}}))}}),_.M(_.d,{cond:S,
then:function(){return _.M("div",{class:"miniAppSplashScreenViewModelPauseContent"},_.M("img",{class:"miniAppSplashScreenViewModelPauseIcon",src:"https://fonts.gstatic.com/s/i/short-term/release/youtube_fill/svg/tic_tac_toe_cairo_24px.svg"}),_.M("h3",{class:"miniAppSplashScreenViewModelPauseMessage"},k))}})))},"Df");var N9i=new _.vx("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var inR=QN;QN=function(x){function L(D){if(D){var S,Q;(S=D.__spec)==null||(Q=S.didUnmount)==null||Q.call(S);for(S=0;S<D.childNodes.length;S++)L(D.childNodes[S])}}
inR==null||inR(x);Wp(function(){for(var D=0;D<x.length;D++)L(x[D])})};var f$A=_.B(function(x){var L=x.data;var D=x.score;var S=x.formattedScore;var Q=x.onScoreChanged;var J=x.isEmbeddedInWebview;var Z=_.Sc("yt-mini-app-score-button-view-model"),y=function(){var H;return _.g(L==null?void 0:(H=L())==null?void 0:H.buttonViewModel,_.de)},E=function(){var H;
return(D==null?void 0:D())||Number(L==null?void 0:(H=L())==null?void 0:H.lastScore)||0},P=function(){var H;
return(S==null?void 0:S())||((H=y())==null?void 0:H.title)||""},v,V=1;
if(x=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))x=Number(x),V=isNaN(x)?1:x/100;_.Us(function(){Q==null||Q(E());var H;var k=_.fI((H=y())==null?void 0:H.onTap);if(k){H=_.g(k,N6R);var T,G,U;H=_.g(H==null?void 0:(T=H.panelLoadingStrategy)==null?void 0:(G=T.inlineContent)==null?void 0:(U=G.dialogViewModel)==null?void 0:U.customContent,MHC)}else H=void 0;if(T=H)T.score=P()},"Aekez");
x=_.kO(function(){var H,k,T=L==null?void 0:(H=L())==null?void 0:(k=H.loggingDirectives)==null?void 0:k.trackingParams;T&&_.AM(_.yY().resolve(_.QT),T);return!1});
_.wO(function(){if(Z.value){var H=Z.value.querySelector("button"),k=y();H&&k&&lGw(H,k);_.OU("yt-share-playable-with-high-score",function(){var T=E().toString(),G=L==null?void 0:L().onShareHighScoreCommand,U=L==null?void 0:L().highScoreShareClientParamIdentifier,l=J==null?void 0:J();G&&(l?(U=new eyQ,T=_.ei(U,2,T),Ai(G,T.JSC$12375_serializeBinary())):U&&(_.yY().resolve(N9i).clientParams.set(U,{miniAppClientParams:{highScore:T}}),vFO(G,!1)))})}});
var h=function(){var H=y();H&&(D==null?0:D())&&H.accessibilityText&&(H.accessibilityText=H.accessibilityText.replace(v,P()));v=P();return{numberValue:E(),numberText:P(),heightPx:36,fontSizeMultiplier:V,shouldAnimate:!(D==null||!D())&&!0}};
return _.M("yt-mini-app-score-button-view-model",{class:function(){var H={};return _.Uv("miniAppScoreButtonViewModelHost",(H.miniAppScoreButtonViewModelIsVisible=E()!==0,H))},
el:Z,"on:click":x},e30(!1,function(){return _.M("span",{style:"display:none;"},E)}),_.M(_.Fj,{data:function(){var H;
return L==null?void 0:(H=L())==null?void 0:H.buttonViewModel}},{buttonViewModel:function(H){return _.M(_.qP,{data:H.data,
animatedTextProps:h})}}))},"Ff");var cC_=_.B(function(x){var L,D=(L=_.Ad("yt-mini-app-is-theater-mode-enabled"))!=null?L:!1,S=_.u("enable_playable_container_save_button"),Q=_.u("enable_play_next_destination_page_in_toolbar");L={};return _.M("ytm-mini-app-top-bar-view-model",null,_.M("div",{class:_.gF("yt-mini-app-top-bar-view-model",(L["yt-mini-app-top-bar-view-model--mobile"]=!1,L["yt-mini-app-top-bar-view-model--desktop"]=!0,L))},_.M("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.M(_.d,{cond:function(){var J;return!!x.data().backButtonEdu&&
!((J=x.isExitMiniAppSeen)==null?0:J.call(x))},
then:function(){return _.M(_.Fj,{data:function(){return x.data().backButtonEdu}},{buttonViewModel:_.qP})},
else:function(){return _.M(_.Fj,{data:function(){return x.data().backButton}},{buttonViewModel:_.qP})}}),_.M(_.d,{cond:function(){return x.data().viewAllButton&&!0},
then:function(){return _.M(_.Fj,{data:function(){return x.data().viewAllButton}},{buttonViewModel:_.qP})}}),_.M(_.d,{cond:function(){return x.data().title&&!0},
then:function(){return _.M("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return x.data().title})}})),_.M("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.M(_.d,{cond:function(){var J;
return(J=x.isDesktopPlayPage)==null?void 0:J.call(x)},
then:function(){return _.M(_.I1,null,_.M(oJW,{highScoreButton:function(){return x.data().highScoreButton},
score:x.score,formattedScore:x.formattedScore,onScoreChanged:x.onScoreChanged,isEmbeddedInWebview:x.isEmbeddedInWebview}),_.M(a$h,{enableSaveButton:function(){return _.WB(S)},
saveButton:function(){return x.data().saveButton},
isSaved:x.isSaved,onSaveToggled:function(){return x.onSaveToggled}}),_.M(zX2,{menuButton:function(){return x.data().menuButton}}))},
else:function(){return _.M(_.d,{cond:function(){return!1},
then:function(){return _.M(_.Fj,{data:function(){return x.data().playPageButton}},{buttonViewModel:function(J){return _.M(_.qP,{data:J.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.M(oJW,{highScoreButton:function(){return x.data().highScoreButton},
score:x.score,formattedScore:x.formattedScore,onScoreChanged:x.onScoreChanged,isEmbeddedInWebview:x.isEmbeddedInWebview})}})}})),_.M("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.M(_.Fj,{data:function(){return x.data().muteButton}},{toggleButtonViewModel:function(J){var Z=J.data;
return _.M(_.JT,{data:function(){var y,E;return Object.assign({},Z(),{isToggled:(E=(y=x.isAudioEnabled)==null?void 0:y.call(x))!=null?E:!0})},
onToggle:x.onAudioToggled,useOutlinedIcon:!0})}}),_.M(_.Fj,{data:function(){return x.data().theatreModeButton}},{toggleButtonViewModel:function(J){var Z=J.data;
return _.M("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.M(_.JT,{data:function(){return Object.assign({},Z(),{isToggled:D})},
useOutlinedIcon:!0}))}}),_.M(XAd,{fullscreenButton:function(){return x.data().fullscreenButton}}),_.M(_.d,{cond:function(){return _.WB(Q)&&x.data().viewAllButton&&!1},
then:function(){return _.M(_.Fj,{data:function(){return x.data().viewAllButton}},{buttonViewModel:_.qP})}}),_.M(_.d,{cond:function(){var J;
return!((J=x.isDesktopPlayPage)==null?0:J.call(x))},
then:function(){return _.M(_.I1,null,_.M(a$h,{enableSaveButton:function(){return _.WB(S)},
saveButton:function(){return x.data().saveButton},
isSaved:x.isSaved,onSaveToggled:function(){return x.onSaveToggled}}),_.M(zX2,{menuButton:function(){return x.data().menuButton}}))}}))))},"Gf");
cC_.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var zX2=_.B(function(x){return _.M(_.Fj,{data:x.menuButton},{buttonViewModel:_.qP})},"Hf"),a$h=_.B(function(x){var L=x.enableSaveButton;
var D=x.saveButton;var S=x.isSaved;var Q=x.onSaveToggled;return _.M(_.d,{cond:function(){return L()&&!(D==null||!D())},
then:function(){return _.M(_.Fj,{data:function(){var J=_.g(D==null?void 0:D(),_.j3),Z;return{toggleButtonViewModel:Object.assign({},J,{isToggled:(Z=S==null?void 0:S())!=null?Z:!(J==null||!J.isToggled)})}}},{toggleButtonViewModel:function(J){return _.M(_.JT,{data:J.data,
onToggle:Q})}})}})},"If"),oJW=_.B(function(x){var L=x.highScoreButton;
var D=x.score;var S=x.formattedScore;var Q=x.onScoreChanged;var J=x.isEmbeddedInWebview;return _.M(_.Fj,{data:L},{miniAppScoreButtonViewModel:function(Z){return _.M(f$A,{data:Z.data,score:D,formattedScore:S,onScoreChanged:Q,isEmbeddedInWebview:J})}})},"Jf"),XAd=_.B(function(x){x=x.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.M(_.I1,null):_.M(_.Fj,{data:x},{buttonViewModel:_.qP})},"Kf");_.nJr=new _.vx("DESKTOP_CURRENT_PAGE");var Qn9=_.B(function(x){var L=x.data;var D=_.u("force_active_time_logging_webview"),S=!1,Q=new bnH,J=void 0,Z=void 0,y=_.yY().resolve(mzB),E=new uBr,P=void 0,v=void 0,V=[],h=void 0,H=void 0,k=!1,T=!1,G=!1,U=!1,l=new _.Hq,X=_.yY().resolve(N9i),f=_.yY().resolve(_.HQ),N=_.yY().resolve(_.ZN(aF)),z,xf=(z=_.yY().resolve(_.ZN(_.nJr)))==null?void 0:z.getCurrentPage(),K3=!1,P4=0,kf=function(an){an.preventDefault();return an.returnValue=""},H4;
x=_.O(_.HB(!((H4=_.Ad("yt-mini-app-is-audio-enabled"))!=null&&!H4),void 0,"WhYQTd"));var p3=x.next().value,w0=x.next().value,Rn;H4=_.O(_.HB(!((Rn=_.Ad("exit-mini-app-seen-state"))==null||!Rn),void 0,"jxhCJb"));var lG=H4.next().value,xX=H4.next().value;Rn=_.O(_.HB(!1,void 0,"MuvDfe"));var UR=Rn.next().value,c4=Rn.next().value;Rn=_.O(_.HB(void 0,void 0,"u9DLoc"));var hr=Rn.next().value,GB=Rn.next().value;Rn=_.O(_.HB(void 0,void 0,"rykyJb"));var C2=Rn.next().value,X9=Rn.next().value;Rn=_.O(_.HB(!0,void 0,
"d8FUvf"));var vs=Rn.next().value,Zp=Rn.next().value;Rn=_.O(_.HB(!1,void 0,"x9XwUb"));var K2=Rn.next().value,F2=Rn.next().value;Rn=_.O(_.HB(!1,void 0,"bcquyc"));var II=Rn.next().value,jW=Rn.next().value;Rn=_.O(_.HB(void 0,void 0,"FMAC5b"));var J5=Rn.next().value,Eq=Rn.next().value;Rn=_.O(_.HB(0,void 0,"HUGJEb"));var zB=Rn.next().value,ER=Rn.next().value,qh=_.x3("mini-app-container-view-model"),g$=function(){return L().isEmbeddedInWebview},p2=function(){return L().hasPlayNextShelf};
_.OU("yt-page-type-changed",function(an){if(_.u("enable_is_mini_app_page_active_bugfix"))an.detail.newPageSubtype==="mini_app"&&an.detail.newPageType==="ytd-browse"||!vs()||x2();else if(an=_.ZkN()==="mini_app",an!==vs())if(Zp(an),an){var pl;an=(pl=L().playableId)==null?void 0:pl.toString();an!==void 0&&window.location.href.includes(an)&&!T&&(U=!0,uG(),Hi.value&&sq(Hi.value))}else an||x2()});
_.OU("yt-action",function(an){an.detail.actionName==="yt-engagement-panel-visible-changed"&&an.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&an.detail.args[2]==="PAmini_app_panel"&&x2();_.u("enable_is_mini_app_page_active_bugfix")?an.detail.actionName==="yt-history-load"&&!vs()&&(xf==null?0:xf.active)?(Zp(!0),uG(),Hi.value&&sq(Hi.value)):an.detail.actionName==="yt-history-load"&&vs()&&!L().isEmbeddedInWebview&&K8():vs()&&an.detail.actionName==="yt-history-load"&&(U?U=!1:L().isEmbeddedInWebview||
K8())});
_.wH(function(){h5()});
_.Us(function(){uG()},"bLMzme");
var uG=function(){var an=L().playableId,pl=L().localReleaseId,Uu=L().derivedDeviceInterface;if(T)_.qy(new _.RZ("[MiniAppContainerViewModel] onEnter was called more than once"));else{T=!0;J=new Znh(an,pl,Uu,document.visibilityState==="visible");M5h(J);Z=new RXA(an);t5h(y,an);gJh(E,{showMiniAppAdCommand:L().showMiniAppAdCommand,isEmbeddedInWebview:L().isEmbeddedInWebview,playLogger:J});oNf()&&(H=document.body.style.backgroundColor,_.Xq(document.body,"background-color","black"));Xd();w$();l=new _.Hq;
if(L().isEmbeddedInWebview){if(an=(new URLSearchParams(window.location.search)).get("postPlayNonce"))I$R(J,an),K3=!0;Q.initialize({onAudioStateLoaded:function(Ou){zG(Ou)},
onMuteMiniApp:function(){zG(!1)},
onUnmuteMiniApp:function(){zG(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(Ou){K3||(I$R(J,Ou),K3=!0)},
confirmExitMiniApp:function(){var Ou,Mp,aD;return _.I(function($a){if($a.nextAddress==1)return L().confirmExitMiniAppCommand?$a.yield(Promise.race([l.promise,Promise.resolve(!1)]),2):$a.return();(Ou=$a.yieldResult)?!L().confirmExitMiniAppCommandEdu||(aD=(Mp=lG)==null?void 0:Mp())!=null&&aD?u8(L().confirmExitMiniAppCommand):(u8(L().confirmExitMiniAppCommandEdu),_.qB("exit-mini-app-seen-state","true",2592E6)):u8(L().closeMiniAppCommand);_.Y2($a)})},
onNativeBenchmarkingMessageReceived:function(Ou){Ou=dCi(_.jrf(Ou));if(_.YI(Ou,_.W2,3,IVR)){var Mp=_.A9(Ou,_.W2,3,IVR),aD=Vtf();var $a=q4(aD.getSeconds())-q4(Mp.getSeconds());Mp=_.y1(aD,2)-_.y1(Mp,2);$a<0&&Mp>0?($a+=1,Mp-=1E9):$a>0&&Mp<0&&(--$a,Mp+=1E9);$a=(new KW).setSeconds($a);$a=_.xz($a,2,_.SG(Mp),0);_.mR(Ou,1,$a)}var tH;(tH=v)==null||tH.returnNativeBenchmarkingMessage(Ou)},
multiplayer3pAckStateLoaded:function(Ou){K8(Ou)},
exitMiniAppSeenStateLoaded:function(Ou){L().confirmExitMiniAppCommandEdu&&xX(Ou)},
onNavigateToNewMiniApp:function(){u8(L().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(Ou){Ou=new URLSearchParams(Ou);var Mp=void 0;Ou.has("invite_code")&&(Mp=new uq2,Ou=Ou.get("invite_code"),Mp=_.ei(Mp,1,Ou));if(Ou=Mp){var aD;(aD=v)==null||aD.sendGameData(Ou)}},
onPauseMiniApp:function(){S=!0;YX()},
onResumeMiniApp:function(){S=!0;$2()},
onAdFinished:function(Ou){E.onAdFinished(Ou)}});
L().showMultiplayer3pConsentDialogCommand||l.resolve(!0);u8(L().onContainerReadyCommand)}else I$R(J),l.resolve(!0);Ghh(Z,yC2(J));yC2(J).then(function(Ou){Ou={miniAppPlayData:{postPlayNonce:Ou}};var Mp,aD=(Mp=L().loggingDirectives)==null?void 0:Mp.trackingParams;aD&&_.sk().stateChanged(aD,Ou)});
an=L().showSignInDialogCommand;!gFp()&&an&&(_.qB("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),u8(an));L().confirmExitMiniAppCommand&&N&&(an=P90(L().confirmExitMiniAppCommand))&&(N.customConfirmationCommand=an)}},h5=function(){H&&_.Xq(document.body,"background-color",H);
k=!1;h&&h.release();Z.flush().catch(function(an){_.qy(an)});
y.flush().catch(function(an){_.qy(an)});
P4d(J);pG();v=void 0;xf3(X)},x2=function(){Zp(!1);
h5();c4(!1);Eq(void 0);GB(void 0);X9(void 0);P4=0;ER(0);T=!1},YX=function(){var an;
(an=v)==null||an.onPause();h&&h.release();Z.flush().catch(function(pl){_.qy(pl)});
y.flush().catch(function(pl){_.qy(pl)});
dzr(J);F2(!0)},$2=function(){var an;
(an=v)==null||an.onResume();w$();an=J;an.isForeground=!0;gx(an,"PLAY_EVENT_TYPE_PLAY_RESUME");F2(!1)},zG=function(an){var pl;
(pl=v)==null||pl.onAudioToggled(an);w0(an)},K8=function(an){L().showMultiplayer3pConsentDialogCommand&&(L().isEmbeddedInWebview&&an!==void 0&&l.resolve(an),!an&&_.ZkN()==="mini_app"&&u8(L().showMultiplayer3pConsentDialogCommand))},oi=function(){var an,pl,Uu,Ou;
return _.I(function(Mp){if(Mp.nextAddress==1){!L().isLivestream||L().disableVideoCapture||(an=v)!=null&&an.sendStartGameFrameCapture();pl=(new URL(window.location.href)).searchParams;if(pl.has("invite_code")){var aD=new uq2,$a=pl.get("invite_code");Uu=_.ei(aD,1,$a);(Ou=v)==null||Ou.sendGameData(Uu)}UR()||(c4(!0),aD=J,aD.state!==1?_.qy(new _.RZ("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+KCh[aD.state])):(_.jT("mini_app_ids_without_game_ready").includes(aD.JSC$16935_miniAppId)&&(aD.gameReady=
!0),aD.state=2,aD.beforeReady=!1,uK(aD,"ma_ffr"),gx(aD,"PLAY_EVENT_TYPE_PLAY_READY")));return Mp.yield(l.promise,2)}u8(L().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();L().isEmbeddedInWebview||K8();_.Y2(Mp)})},kX=function(){var an=J;
an.gameReady=!0;uK(an,"ma_gr")},n2=function(an){var pl;
return _.I(function(Uu){if(Uu.nextAddress==1)return _.HH(Uu,2),Uu.yield(l$W(Z,an),4);if(Uu.nextAddress!=2)return _.nH(Uu,0);pl=_.mW(Uu);u8(L().showSavingErrorPopupCommand);throw pl;})},Vo=function(){var an,pl;
return _.I(function(Uu){if(Uu.nextAddress==1)return _.HH(Uu,2),Uu.yield(C4R(Z),4);if(Uu.nextAddress!=2)return an=Uu.yieldResult,Uu.return(an);pl=_.mW(Uu);u8(L().showLoadingErrorDialogCommand);throw pl;})},hx=function(an){J.logError(an)},Ge=function(an,pl,Uu){vJi(J,an,pl,Uu)},nw=function(an,pl){hXR(J,an,pl)},nZ=function(){!D&&L().isEmbeddedInWebview||_.Oh();
jC2(J,!0);k||(window.addEventListener("beforeunload",kf,{capture:!0}),k=!0)},OO=function(an){var pl,Uu,Ou,Mp,aD,$a,tH;
return _.I(function(sv){if(sv.nextAddress==1)return y&&(!P||P<an)&&an>0?sv.yield(Lcl(y,an),3):sv.jumpTo(0);pl=sv.yieldResult;Uu=_.O(pl);Ou=Uu.next().value;Mp=Uu.next().value;aD=Ou;$a=Mp;((tH=aD)==null?0:tH.displayString)&&$a&&(GB($a),X9(aD.displayString));_.Y2(sv)})},sw=function(an){var pl=L().onBenchmarkingMessageReceivedCommand;
if(pl){var Uu=Vtf();_.bQ(an,3,IVR,Uu);Ai(pl,PWh(an))}},W4=function(an){var pl=L().onGameFrameReceivedCommand;
if(pl){var Uu=new cg;var Ou=new O0r;var Mp=lV(an,1);Ou=_.Fd(Ou,1,Mp);an=_.wy(an,2);an=_.ei(Ou,2,an);Uu=_.mR(Uu,2,an);Ai(pl,EtQ(Uu))}},f3=function(an){var pl=L().onGameAudioDataReceivedCommand;
if(pl){var Uu=new cg;var Ou=new ysG;an=_.wy(an,1);Ou=_.ei(Ou,1,an);Uu=_.mR(Uu,4,Ou);Ai(pl,EtQ(Uu))}},vC=function(){var an=new URLSearchParams(window.location.search);
if(L().isEmbeddedInWebview&&an&&an.get("override_hl")==="true"&&an.get("hl"))return an.get("hl");an=document.documentElement.lang;return an!==""?an:zD},Ps=function(an){var pl=L().onShareInviteCodeCommand;
if(pl)if(L().isEmbeddedInWebview){var Uu=new eyQ;an=_.ei(Uu,1,an);Ai(pl,Gy2(an))}else Uu=L().inviteCodeShareClientParamIdentifier,X.clientParams.set(Uu,{miniAppClientParams:{inviteCode:an}}),u8(pl)},eN=function(an){var pl,Uu,Ou;
return _.I(function(Mp){if(Mp.nextAddress==1)return pl=L().onMiniAppOpenYtContentRequested,y&&_.u("enable_open_yt_content")&&pl?Mp.yield(Df3(y,an),3):Mp.jumpTo(0);Uu=Mp.yieldResult;if(Uu==="OK")if(L().isEmbeddedInWebview){var aD=new SLQ;Ou=uY(aD,2,Xn,Hs(an));Ai(pl,KDh(Ou))}else f.clientData.set("video_id",an),u8(pl);_.Y2(Mp)})},F9=function(an){P4+=_.y1(an,3);
an=Math.min(Math.log(1+P4/15E6*9)/Math.log(10),.99);ER(an);HC(an)},HC=_.lW(function(an){var pl=L().updateLoadingProgressCommand;
if(pl){var Uu=new SLQ;an=uY(Uu,3,Xn,_.iG(an));Ai(pl,KDh(an))}},100),VQ=function(an){return pA2(E,an)},w$=function(){var an,pl;
((an=_.oGw())==null?void 0:(pl=an.wakeLock)==null?void 0:pl.request)!=null&&_.oGw().wakeLock.request("screen").then(function(Uu){h=Uu}).catch(function(){})},Hi=_.Sc("iframe");
_.Us(function(){L().isSupportedCountry&&(gFp()||_.u("enable_sign_in_promo")||!L().showSignInDialogCommand?Hi.value&&sq(Hi.value):u8(L().onMiniAppReadyCommand))},"ASuFde");
var dA=function(){return _.M("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return UR()?0:-1},
el:Hi})},sq=function(an,pl){pl=pl===void 0?!1:pl;
var Uu=tx();Uu&&(pl||Uu.toString()!==an.getAttribute("src"))&&(v=sy0(L().source,{isAudioEnabled:p3,onFirstFrameReady:oi,onGameReady:kX,onSave:n2,onLoad:Vo,onError:hx,onSdkCalled:Ge,onSdkPerformanceUpdate:nw,onClick:nZ,onSendHighScore:OO,onBenchmarkingMessageReceived:sw,getLanguage:vC,onShareInviteCode:Ps,onResourceLoaded:F9,onOpenYTContent:eN,onShowMiniAppAd:VQ,onGameFrameReceived:W4,onGameAudioReceived:f3},an,Uu),R6(an,"load",function(){uK(J,"ma_il");R6(an,"load",function(){sq(an,!0)})}),_.ci(an,
Uu))},tx=function(){var an=L().url;
if(an&&(an=_.qg(an),an!==null)){if(L().source&&L().source==="MINI_APP_SOURCE_GAMESNACKS")an=_.vn(an,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.u("enable_origin_query_parameter_bugfix")){var pl=_.eK(_.DvG(an.toString()));pl=new URLSearchParams(pl||"");pl.set("origin",window.location.origin);pl=pl.toString();an=_.RN(an).toString();an=_.Ti(VG2.exec(an)[0]+(pl.trim()?"#"+pl:""))}return an}},qe=function(){var an={};
an=_.gF("yt-mini-app-container-view-model__loading-screen",(an["yt-mini-app-container-view-model__loading-screen--fade-out"]=UR,an));var pl=function(){return UR()?1:zB()};
return _.M("div",{class:an},_.M(_.Fj,{data:function(){return L().splashScreen}},{miniAppSplashScreenViewModel:function(Uu){return _.M(rC_,{data:Uu.data,
loadingProgress:pl})}}))},ou=function(){var an={};
return _.M("div",{class:_.gF("yt-mini-app-container-view-model__pause-interstitial",(an["yt-mini-app-container-view-model__pause-interstitial--pause-fade-out"]=function(){return!K2()},an["yt-mini-app-container-view-model__pause-interstitial--pause-fade-in"]=K2,an))},_.M(_.Fj,{data:function(){return L().splashScreen}},{miniAppSplashScreenViewModel:function(pl){return _.M(rC_,{data:pl.data,
forPaused:!0})}}))},Xd=function(){V=[];
V.push(_.Uk(window,"visibilitychange",function(){G||S&&g$()||(document.visibilityState==="visible"?$2():YX())}));
V.push(_.Uk(window,"pagehide",function(){h5()}));
V.push(_.Uk(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&qh.value.dispatchEvent(new Event("tap"))},0)}));
V.push(_.Uk(qh.value,"pointerdown",function(){jC2(J,!1)},!0));
V.push(_.Uk(qh.value,"pause",function(){G=!0;YX()}));
V.push(_.Uk(qh.value,"play",function(){G=!1;$2()}));
V.push(_.Uk(qh.value,"exit",function(){h5()}));
var an=navigator.keyboard,pl=an&&an.lock;V.push(_.Uk(window,Tcr,function(){jW(RKR());RKR()?(L().hasPlayNextShelf&&Yy("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),TV("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),pl&&an.lock(["Escape"])):(L().hasPlayNextShelf&&TV("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),Yy("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),pl&&an.unlock())}));
L().showMultiplayer3pConsentDialogCommand&&V.push(_.Uk(window,"yt-playables-ack-3p-data-usage",function(){Sw9(y)}));
L().confirmExitMiniAppCommandEdu&&V.push(_.Uk(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.qB("exit-mini-app-seen-state","true",2592E6)}));
L().onGameAudioDataReceivedCommand&&V.push(_.Uk(window,"message",function(Uu){Uu=Uu.event_;var Ou,Mp=(Ou=Hi.value)==null?void 0:Ou.src;if(Mp&&Uu.origin===(new URL(Mp)).origin&&Uu.data&&Uu.data.type==="GAME_AUDIO"&&Uu.data.audio&&Uu.data.audio.length>0)if(_.u("enable_sending_unwrapped_game_audio_as_serialized_metadata"))HYs(L().onGameAudioDataReceivedCommand,Uu.data.audio);else{var aD=new FileReader;aD.onload=function(){var $a=new cg;var tH=new ysG;tH=_.ei(tH,1,aD.result);$a=_.mR($a,4,tH);Ai(L().onGameAudioDataReceivedCommand,
EtQ($a))};
aD.readAsDataURL(new Blob([Uu.data.audio]))}}))},pG=function(){V.forEach(function(an){G$(an)});
window.removeEventListener("beforeunload",kf,{capture:!0})},u8=function(an){an&&vFO(an,L().isEmbeddedInWebview||!1)},TV=function(an,pl){an=_.O(qh.value.getElementsByClassName(an));
for(var Uu=an.next();!Uu.done;Uu=an.next())Uu.value.classList.add(pl)},Yy=function(an,pl){an=_.O(qh.value.getElementsByClassName(an));
for(var Uu=an.next();!Uu.done;Uu=an.next())Uu.value.classList.remove(pl)};
return function(){var an={};an=_.gF("yt-mini-app-container-view-model",(an["yt-mini-app-container-view-model--desktop"]=!0,an["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return L().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},an["yt-mini-app-container-view-model--ios-web-view"]=oNf(),an["yt-mini-app-container-view-model--no-top-bar"]=function(){return!L().topBar},an["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return L().hasPlayNextShelf},an["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return L().hasPlayNextShelf},an["yt-mini-app-container-view-model--show-peek-below"]=function(){return!II()&&L().hasPlayNextShelf},an));
var pl={};pl=_.gF("yt-mini-app-container-view-model__content",(pl["yt-mini-app-container-view-model__content--desktop-content"]=!0,pl["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return L().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},pl["yt-mini-app-container-view-model--desktop-play-page"]=function(){return L().hasPlayNextShelf},pl));
return _.M("mini-app-container-view-model",{el:qh},_.M("div",{class:an},_.M(_.d,{cond:function(){return L().topBar&&!II()},
then:function(){return _.M(_.Fj,{data:function(){return L().topBar}},{miniAppTopBarViewModel:function(Uu){return _.M(cC_,{data:Uu.data,
isAudioEnabled:p3,onAudioToggled:function(Ou){zG(Ou)},
score:hr,formattedScore:C2,onScoreChanged:function(Ou){P=Ou},
isEmbeddedInWebview:g$,isSaved:J5,onSaveToggled:function(Ou){Eq(Ou)},
isExitMiniAppSeen:lG,isDesktopPlayPage:p2})}})}}),_.M("div",{class:pl},_.M(_.d,{cond:vs,
then:function(){return dA()}}),_.M(_.d,{cond:function(){return L().isLivestream},
then:function(){return ou()}}),_.M(_.d,{cond:function(){return!L().isEmbeddedInWebview},
then:function(){return qe()}}))))}()},"Nf");
Qn9.idomCompat=!0;_.dF(Qn9,"mini-app-container-view-model",{props:{data:_.pJ}});var JGq=_.B(function(x){var L=x.data;return _.M("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.M("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.kO(function(){var D=L().onTap;D&&_.Xf(D)})},_.M(_.d,{cond:function(){return L().icon},
then:function(D){return _.M(_.YO,{icon:function(){return D().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.M("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return L().title})))},"Of");
JGq.idomCompat=!0;var Kc9=_.B(function(x){var L=_.x3("div"),D=_.O(_.HB(void 0,void 0,"dg3xff")),S=D.next().value,Q=D.next().value;D=_.O(_.HB(void 0,void 0,"AgHNfc"));var J=D.next().value,Z=D.next().value;D=_.O(_.HB(void 0,void 0,"fuTKCc"));var y=D.next().value,E=D.next().value,P=function(){var U=S();return U!==void 0?Math.abs(U):void 0},v=function(){var U=P();
return U===void 0||U<=3},V=function(){var U=P();
var l=J(),X=y();U=U!==void 0&&l!==void 0&&X!==void 0?l-X-U:void 0;return U===void 0||U<=3},h=function(U){L.value&&L.value.scrollBy({top:0,
left:(_.$6("HTML_DIR")==="rtl"?-1:1)*U*L.value.clientWidth,behavior:"smooth"})},H=function(){var U;
Q((U=L.value)==null?void 0:U.scrollLeft);var l;Z((l=L.value)==null?void 0:l.scrollWidth);var X;E((X=L.value)==null?void 0:X.clientWidth)},k=function(){h(-.5)},T=function(){h(.5)};
D=_.kO(function(){H()});
_.UX(function(){H();if(L.value&&window.ResizeObserver){var U=new ResizeObserver(H);U.observe(L.value);_.wH(function(){U.disconnect()})}});
var G={};return _.M("yt-sponsorships-scrollable-shelf",{class:_.gF("ytdSponsorshipsScrollableShelfHost",x.className)},_.M("div",{class:_.gF("ytdSponsorshipsScrollableShelfContent",(G.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return x.data().previousButton&&x.data().nextButton&&!v()&&!V()},G.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return x.data().previousButton&&!v()&&V()},G.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return x.data().nextButton&&
v()&&!V()},G)),
el:L,"on:scroll":D},x.children),_.M(_.d,{cond:function(){return!v()},
then:function(){return _.M(_.Fj,{data:function(){return x.data().previousButton}},{buttonViewModel:function(U){return _.M(_.qP,{data:U.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:k})}})}}),_.M(_.d,{cond:function(){return!V()},
then:function(){return _.M(_.Fj,{data:function(){return x.data().nextButton}},{buttonViewModel:function(U){return _.M(_.qP,{data:U.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:T})}})}}))},"Qf");
Kc9.idomCompat=!0;var Z35=_.B(function(x){var L=x.data;x={};return _.M("yt-sponsorships-hub",{class:_.gF("ytdSponsorshipsHubHost",(x.ytdSponsorshipsHubHostIndented=function(){return L().indented},x))},_.M("div",{class:"ytdSponsorshipsHubHeader"},_.M("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.M("div",{class:"ytdSponsorshipsHubAvatar"},_.M(_.Fj,{data:function(){return L().avatar}},{avatarViewModel:_.O0})),_.M(_.d,{cond:function(){return L().badgeImage},
then:function(D){return _.M("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.M("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.M("div",{class:"ytdSponsorshipsHubBadge"},_.M(_.Ku,{data:D,targetWidth:24,targetHeight:24,alt:""}))))}})),_.M("div",{class:"ytdSponsorshipsHubDetails"},_.M("div",{class:"ytdSponsorshipsHubTierName"},function(){return L().tierName}),_.M("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return L().membershipType}),_.M("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return L().membershipDurationOrExpiry})),_.M("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.M(_.Fj,{data:function(){return L().manageButton}},{buttonViewModel:function(D){return _.M(_.qP,{data:D.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.M(_.Fj,{data:function(){return L().actionMenuButton}},{buttonViewModel:function(D){return _.M(_.qP,{data:D.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.M("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return L().perksTitle}),_.M(Kc9,{data:function(){return{previousButton:L().previousPerkButton,
nextButton:L().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.M("div",{class:"ytdSponsorshipsHubPerkCards"},_.M(_.Fj,{data:function(){return L().perkCards}},{sponsorshipsHubPerkCardViewModel:JGq}),_.M(_.d,{cond:function(){return L().viewAllPerksButton},
then:function(D){return _.M(O3l,{data:D})}}))))},"Rf");
Z35.idomCompat=!0;var O3l=_.B(function(x){var L=x.data;return _.M("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.M(_.Fj,{data:function(){return L().button}},{buttonViewModel:_.qP}),_.M("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.M("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return L().title}),_.M("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return L().subtitle})))},"Sf");
O3l.idomCompat=!0;_.dF(Z35,"yt-sponsorships-hub",{props:{data:_.pJ}});_.yGI=_.B(function(x){var L=x.data;return _.M("yt-dual-avatar-view-model",{class:_.gF("ytDualAvatarViewModelHost",x.className),style:_.bc({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var D;return((D=L().badgeCutoutRadius)!=null?D:14)+"px"}})},_.M("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.M(_.Fj,{data:function(){return L().startAvatar}},{avatarViewModel:_.O0}),_.M(_.Fj,{data:function(){return L().endAvatar}},{avatarViewModel:_.O0})),_.M(_.Fj,{data:function(){return L().badge}},
{contentPreviewImageViewModel:function(D){return _.M("div",{class:"ytDualAvatarViewModelBadge"},_.M(_.CD,{data:D.data}))}}))},"Tf");
_.yGI.idomCompat=!0;var Efu=_.B(function(x){var L=x.data;var D,S=!((D=_.yY().resolve(_.ZN(_.Dt)))==null||!D());x=_.m5(function(){var v,V,h=S?(v=L().header)==null?void 0:v.backgroundColorDarkMode:(V=L().header)==null?void 0:V.backgroundColorLightMode;if(h!==void 0)return _.XA(h)},void 0,"TDdh7d");
D=_.m5(function(){var v,V;return S?(v=L().header)==null?void 0:v.backgroundImagePart1Dark:(V=L().header)==null?void 0:V.backgroundImagePart1Light},void 0,"X0peMe");
var Q=_.m5(function(){var v,V;return S?(v=L().header)==null?void 0:v.backgroundImagePart2Dark:(V=L().header)==null?void 0:V.backgroundImagePart2Light},void 0,"an0Hzd"),J=_.m5(function(){return _.$6("HTML_DIR")==="rtl"},void 0,"BltEgb"),Z=_.x3("yt-sponsorships-perks-list"),y=!1,E=function(){var v=Z.value;
if(v&&!y){var V,h=(V=v.parentElement)==null?void 0:V.parentElement;if(h)for(v=v.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),V=0;V<v.length;++V){var H=v[V];if(H instanceof HTMLElement){h.scrollTo({top:H.offsetTop+H.clientHeight/2-h.clientHeight/2,behavior:"smooth"});y=!0;break}}}};
_.wO(function(){var v=Z.value;if(v&&window.ResizeObserver){var V=new ResizeObserver(E);V.observe(v);_.wH(function(){V.disconnect()})}});
var P={};return _.M("yt-sponsorships-perks-list",{el:Z,class:_.gF("ytdSponsorshipsPerksListHost",(P.ytdSponsorshipsPerksListHorizontalPadding=function(){return L().horizontalPaddingEnabled},P))},_.M("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.M("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.bc({"background-color":x})},_.M("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.M(_.d,{cond:D,then:function(v){var V={};return _.M("div",{class:_.gF((V.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=S,V.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!S,V.ytdSponsorshipsPerksListFlipped=J,V))},_.M(_.Ku,{data:v,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.M("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.M(_.d,{cond:Q,
then:function(v){var V={};return _.M("div",{class:_.gF((V.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=S,V.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!S,V.ytdSponsorshipsPerksListFlipped=J,V))},_.M(_.Ku,{data:v,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.M("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.M(_.Fj,{data:function(){var v;
return(v=L().header)==null?void 0:v.dualAvatar}},{dualAvatarViewModel:_.yGI})))),_.M("div",{class:"ytdSponsorshipsPerksListBody"},_.M("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return L().title}),_.M(_.d,{cond:function(){return L().perks},
then:function(v){return _.M(_.R1,{each:v},function(V,h){var H={};return _.M("div",{class:_.gF("ytdSponsorshipsPerksListPerkContainer",(H.ytdSponsorshipsPerksListSelectedPerk=function(){var k=h(),T=L().selectedPerkIndex;return k===T},H))},_.M(_.d,{cond:function(){return h()>0},
then:function(){return _.M("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.M("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.M(_.d,{cond:function(){return V.icon},
then:function(k){return _.M(_.YO,{icon:function(){return k().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.M("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.M("div",{class:"ytdSponsorshipsPerksListPerkTitle"},V.title),_.M("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.M(_.kP,{text:V.description})),_.M(_.d,{cond:function(){return V.instructions},
then:function(){var k,T;return _.M("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.M("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(k=V.instructions)==null?void 0:k.title),_.M("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.M(_.kP,{text:(T=V.instructions)==null?void 0:T.text})))}}))),_.M(_.d,{cond:function(){return V.emoji},
then:function(k){return _.M("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.M(_.R1,{each:function(){return k()}},function(T){return _.M(_.Ku,{data:T,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.M(IpI,{data:V}))})}})))},"Uf");
Efu.idomCompat=!0;var IpI=_.B(function(x){var L=x.data;var D=function(Z,y){return Z===y},S=function(){var Z=L();
Z=_.g(Z==null?void 0:Z.badgesShelf,wy2);return Z!==void 0&&Z!==null?Z:{previousButton:{},nextButton:{}}},Q=_.Sc("div"),J=function(){var Z=Q.value;
if(Z){var y=Z.parentElement;if(y){Z=Z.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var E=0;E<Z.length;++E){var P=Z[E];if(P instanceof HTMLElement){y.scrollTo({left:P.offsetLeft+P.clientWidth/2-y.clientWidth/2,behavior:"instant"});break}}}}};
_.wO(function(){var Z=Q.value;if(Z){var y=new ResizeObserver(J);y.observe(Z);_.wH(function(){y.disconnect()})}});
return _.M("div",null,_.M(_.d,{cond:function(){return L().badges},
then:function(Z){return _.M(Kc9,{data:S},_.M("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:Q},_.M(_.R1,{each:function(){return Z()}},function(y,E){var P={},v={},V={};
return _.M("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.M(_.d,{cond:function(){return E()>0},
then:function(){return _.M("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.M("div",{class:_.gF("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(P.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return D(E(),L().currentBadgeIndex)},P.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!D(E(),L().currentBadgeIndex)},P))},_.M("div",{class:_.gF("ytdSponsorshipsPerksListLoyaltyBadge",(v.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return D(E(),
L().currentBadgeIndex)},v.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!D(E(),L().currentBadgeIndex)},v))},_.M(_.d,{cond:function(){return y.image},
then:function(h){var H={};return _.M("div",{class:_.gF((H.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return D(E(),L().currentBadgeIndex)},H.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!D(E(),L().currentBadgeIndex)},H))},_.M(_.Ku,{data:h,
alt:""}))}})),_.M("div",{class:_.gF("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(V.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return D(E(),L().currentBadgeIndex)},V))},y.title)))})))}}))},"Vf");
IpI.idomCompat=!0;_.dF(Efu,"yt-sponsorships-perks-list",{props:{data:_.pJ}});_.dF(_.B(function(x){return _.M("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.M(_.d,{cond:function(){return x.data().image},
then:function(L){return _.M(_.Ku,{className:"ytwFantasyEmptyStateViewModelImage",data:L,ariaHidden:!0,alt:""})}}),_.M(_.kP,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return x.data().title}}),_.M(_.kP,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return x.data().subtitle}}),_.M(_.Fj,{data:function(){return x.data().primaryButton}},{buttonViewModel:function(L){return _.M(_.qP,{data:L.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"Wf"),"ytw-fantasy-empty-state-view-model",{props:{data:_.pJ}});var M0Y;var dfX=_.B(function(x){var L=x.data;var D=x.uniqueId;var S=x.overrides;x=_.m5(function(){var Q,J=((Q=L().timedAnimationData)==null?void 0:Q.animationTiming)||[];return{uniqueId:D(),timings:J,experimentEnabled:J.length>0,enabled:J.length>0}},void 0,"hiuXI");
return _.M("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.M(tAi,{settings:x},_.M(_.Fj,{data:function(){return L().buttonRenderer}},{buttonRenderer:function(Q){return _.M(_.pD,{data:Q.data,
buttonOverrides:S})}})))},"Xf");
dfX.idomCompat=!0;_.dF(dfX,"timed-animation-button-renderer",{props:{data:_.pJ,uniqueId:_.pJ,overrides:_.pJ}});var FS=function(){var x=_.e.apply(this,arguments)||this;x.hideJoinButtonBeforeSubscribed=_.u("hide_join_button_before_subscribed");x.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return x};
_.p(FS,_.e);_.K=FS.prototype;_.K.hasShowDialogCommand=function(x){return!!_.g(x,N6R)};
_.K.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"}}}};
_.K.updateJoinButtonOverrides=function(){var x,L;(x=_.jr(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(L=x.polymerController)==null||L.set("overrides",this.joinButtonOverrides);if(x=_.jr(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))x.overrides=this.joinButtonOverrides};
_.K.handleButtonRefreshAction=function(x){if(x=_.g(x,gx2))this.set("data.membershipButton",x.membershipButton),this.notifyPath("data.membershipButton")};
_.K.onYtServiceRequestError=function(x){_.nX(this.hostElement,x.detail.error.message)};
_.K.onKeydown=function(x){if(x.key==="Enter"){var L;(L=this.data)!=null&&L.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)}};
_.K.handleUnsubscribeAction=function(){var x,L,D;((x=this.data)==null?void 0:(L=x.membershipButton)==null?void 0:(D=L.buttonRenderer)==null?void 0:D.style)==="STYLE_PRIMARY"&&_.jr(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.J3.Object.defineProperties(FS.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.subscriptionStateEntity)==null||!x.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var x,L=(x=this.data)==null?void 0:x.membershipButton,D;x=(L==null?void 0:L.buttonRenderer)||_.g(L==null?void 0:(D=L.timedAnimationButtonRenderer)==null?void 0:D.buttonRenderer,_.y4);return(x==null?void 0:x.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(x==null?void 0:x.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(x==null?void 0:x.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var x;if(this.hasShowDialogCommand((x=this.data)==null?void 0:x.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var x;if(this.hasShowDialogCommand((x=this.data)==null?void 0:x.navigationEndpoint))return"button"}},
hasAttributedTitle:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.attributedTitle)}}});
FS.prototype.onYtServiceRequestError=FS.prototype.onYtServiceRequestError;FS.prototype.updateJoinButtonOverrides=FS.prototype.updateJoinButtonOverrides;_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],FS.prototype,"actionHandlerBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],FS.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],FS.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.b(_.EG),_.r("design:type",Object)],FS.prototype,"ytdReduxBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],FS.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.n1),_.r("design:type",Object)],FS.prototype,"ironButtonState",void 0);_.A([_.F(),_.r("design:type",Object)],FS.prototype,"data",void 0);_.A([_.Y("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.r("design:type",Object),_.r("design:paramtypes",[])],FS.prototype,"hideJoin",null);
_.A([_.F(),_.r("design:type",String)],FS.prototype,"subscribeKey",void 0);_.A([_.F({selectorArgs:["subscribeKey"],selector:uln}),_.r("design:type",Object)],FS.prototype,"subscriptionStateEntity",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],FS.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.A([_.Y("subscriptionStateEntity"),_.F({reflectToAttribute:!0}),_.r("design:type",Object),_.r("design:paramtypes",[])],FS.prototype,"subscribed",null);
_.A([_.Y("subscribed","data.membershipButton"),_.r("design:type",Object),_.r("design:paramtypes",[])],FS.prototype,"joinButtonOverrides",null);_.A([_.Y("data.navigationEndpoint"),_.r("design:type",Object),_.r("design:paramtypes",[])],FS.prototype,"channelNameTabIndex",null);_.A([_.Y("data.navigationEndpoint"),_.r("design:type",Object),_.r("design:paramtypes",[])],FS.prototype,"channelNameRole",null);
_.A([_.Y("data.attributedTitle"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],FS.prototype,"hasAttributedTitle",null);_.A([_.bN("joinButtonOverrides"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],FS.prototype,"updateJoinButtonOverrides",null);_.A([_.mX("yt-service-request-error"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],FS.prototype,"onYtServiceRequestError",null);
_.A([_.w({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],FS);
var Psl=_.vp()(FS,"ytd-video-owner-renderer",function(){if(M0Y===void 0){var x=document.createElement("template");_.m(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-owner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-video-owner-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1"><yt-img-shadow id="avatar" alt="[[getSimpleString(data.title)]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-video-owner-renderer"></yt-img-shadow><div id="avatar-stack" hidden="[[!data.avatarStack.avatarStackViewModel]]" class="style-scope ytd-video-owner-renderer"></div></a><div id="upload-info" class="style-scope ytd-video-owner-renderer"><yt-attributed-string id="attributed-channel-name" data="[[data.attributedTitle]]" ellipsis-truncate="true" hidden$="[[!hasAttributedTitle]]" no-pre-wrap="true" no-wrap="true" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></yt-attributed-string><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" hidden="[[hasAttributedTitle]]" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></ytd-channel-name><yt-formatted-string id="owner-sub-count" hidden="[[!data.subscriberCountText]]" text="[[data.subscriberCountText]]" class="style-scope ytd-video-owner-renderer"></yt-formatted-string><slot name="date" class="style-scope ytd-video-owner-renderer"></slot></div><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-video-owner-renderer"></div><div id="sponsor-button" hidden="[[hideJoin]]" class="style-scope ytd-video-owner-renderer"></div><div id="analytics-button" class="style-scope ytd-video-owner-renderer"></div>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);M0Y=x}x=M0Y;return x},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.dF(_.B(function(x){var L=x.data;var D;x=_.O(_.HB(!((D=_.Ad("yt-mini-app-is-theater-mode-enabled"))==null||!D),void 0,"i2pjVd"));var S=x.next().value,Q=x.next().value;D=_.O(_.HB(!1,void 0,"ga7V5c"));var J=D.next().value,Z=D.next().value;_.wO(function(){var P=_.Uk(window,Tcr,function(){Z(RKR())});
_.wH(function(){G$(P)})});
var y;D=(y=_.yY().resolve(_.ZN(B3G)))!=null?y:function(){return _.M("div",null)};
_.t7("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){Q(!0);_.qB("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.t7("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){Q(!1);_.qB("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
y={};x={};var E={};return _.M("mini-app-play-page-renderer",{class:_.gF("miniAppPlayPageRendererHost",(y.miniAppPlayPageRendererHostDetailsView=function(){return!S()},y))},_.M("div",{class:_.gF("miniAppPlayPageRendererGameContainer",(x.miniAppPlayPageRendererGameContainerDetailsView=function(){return!S()},x))},_.M(_.Fj,{data:function(){return L().containerViewModel}},{miniAppContainerViewModel:Qn9}),_.M(_.d,{cond:function(){return L().channel&&L().subscribeButton},
then:function(){var P={};return _.M("div",{class:_.gF("miniAppPlayPageRendererChannelContainer",(P.miniAppPlayPageRendererHideVisibility=function(){return J()},P))},_.M(_.Fj,{data:function(){return L().channel}},{videoOwnerRenderer:function(v){return _.M(Psl,{data:v.data})}}),_.M(_.Fj,{data:function(){return L().subscribeButton}},{subscribeButtonViewModel:function(v){return _.M(_.Oa,{data:v.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.M(_.d,{cond:function(){return!S()&&L().description},
then:function(){var P={};return _.M("div",{class:_.gF("miniAppPlayPageRendererMiniAppDescriptionWrapper",(P.miniAppPlayPageRendererHideVisibility=function(){return J()},P))},_.M("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return L().description}))}})),_.M("div",{class:_.gF("miniAppPlayPageRendererPlayNextContainer",(E.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!S()},E.miniAppPlayPageRendererHideVisibility=function(){return J()},E))},_.M(_.Fj,{data:function(){return L().sectionList}},
{sectionListRenderer:D})))},"Yf"),"mini-app-play-page-renderer",{props:{data:_.pJ}});var sE=function(){var x=_.e.apply(this,arguments)||this;x.isSearch=!1;x.isConstrainedList=!1;x.hasChipsBar=!1;x.inReplyPanel=!1;x.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"}};x.monitorScroll=!0;x.SCROLL_ANIMATION_DURATION_MS=300;x.nextContinuation={continuationType:"sectionListContinuation"};return x};
_.p(sE,_.e);_.K=sE.prototype;
_.K.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{feedChannelFilterHeaderRenderer:{component:"ytd-feed-channel-filter-header-renderer",noInjection:!0},textHeaderRenderer:{component:"ytd-text-header-renderer",noInjection:!0},richListHeaderRenderer:{component:"ytd-rich-list-header-renderer",noInjection:!0},headerWithBackRenderer:{component:"yt-header-with-back-renderer",noInjection:!0},feedFilterChipBarRenderer:{component:"ytd-feed-filter-chip-bar-renderer",noInjection:!0,
properties:{isClipList:"[[isClipList]]"}},liveChatItemDisplayRenderer:{component:"yt-live-chat-item-display-renderer",noInjection:!0,params:{isHeader:!0}},chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},"data.subMenu":{id:"sub-menu",mapping:{searchSubMenuRenderer:{component:"ytd-search-sub-menu-renderer",noInjection:!0},channelSubMenuRenderer:{component:"ytd-channel-sub-menu-renderer",noInjection:!0},channelListSubMenuRenderer:{component:"ytd-channel-list-sub-menu-renderer",noInjection:!0},
sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",noInjection:!0}}},shownItems:{id:"contents",mapping:{itemSectionRenderer:{matcher:function(x){switch(x.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:_.u("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.u("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",
properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.K.created=function(){var x=this;this.JSC$17074_scrollAnimation=new _.hh(function(L){x.hostElement.scrollTop=L})};
_.K.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.K.getItemsPath=function(){return"data.contents"};
_.K.replacePrimaryContent=function(x){this.set("data.contents",x)};
_.K.computeHasSortFilter=function(x){return!!x&&!!x.sortFilterSubMenuRenderer};
_.K.computeShouldScrollInPanel=function(x){var L;return!!(x==null?0:(L=x.scrollPaneStyle)==null?0:L.scrollable)};
_.K.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.VA(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.K.scrollToTop=function(){this.hostElement.scrollTop=0};
_.K.scrollToItemSection=function(x){if(x=this.getItemByIdentifier(x))x=this.getScrollPositionForItem(x),this.hostElement.scrollTop!==x&&this.JSC$17074_scrollAnimation.start(this.hostElement.scrollTop,x,this.SCROLL_ANIMATION_DURATION_MS)};
_.K.getItemByIdentifier=function(x){var L=this.contents.querySelectorAll("ytd-item-section-renderer");if(L&&L.length!==0){var D=Array.from(L).findIndex(function(S){return S.sectionIdentifier===x});
return L[D===-1?0:D]}};
_.K.getScrollPositionForItem=function(x){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===x)return 0;x=_.$R(x).y+this.hostElement.scrollTop-_.$R(this.hostElement).y;return Math.min(x,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.J3.Object.defineProperties(sE.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.targetId)==="browse-feedFEclips"}}});
sE.prototype.onScroll=sE.prototype.onScroll;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],sE.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],sE.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.Gz.YtLazyListBehavior),_.r("design:type",Object)],sE.prototype,"ytLazyListBehavior",void 0);_.A([_.b(_.u0.YtNextContinuationBehavior),_.r("design:type",Object)],sE.prototype,"ytNextContinuationBehavior",void 0);
_.A([_.b(_.LCR),_.r("design:type",Object)],sE.prototype,"ytBooleanLogicBehavior",void 0);_.A([_.b(_.HS),_.r("design:type",Object)],sE.prototype,"ytContinuationHandlerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],sE.prototype,"data",void 0);_.A([_.F({value:2}),_.r("design:type",Number)],sE.prototype,"initialCount",void 0);_.A([_.F({value:!0}),_.r("design:type",Boolean)],sE.prototype,"autoFill",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.r("design:type",Boolean)],sE.prototype,"hasSortFilter",void 0);_.A([_.F({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.r("design:type",Boolean)],sE.prototype,"hideBottomSeparator",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.r("design:type",Boolean)],sE.prototype,"shouldScrollInPanel",void 0);
_.A([_.F(),_.r("design:type",Object)],sE.prototype,"isSearch",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],sE.prototype,"isConstrainedList",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",String)],sE.prototype,"responsiveSizing",void 0);_.A([_.F(),_.r("design:type",Object)],sE.prototype,"hasChipsBar",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",String)],sE.prototype,"pageSubtype",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],sE.prototype,"engagementPanel",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],sE.prototype,"liveChatEngagementPanel",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],sE.prototype,"inReplyPanel",void 0);_.A([_.F1("#action-button"),_.r("design:type",HTMLElement)],sE.prototype,"actionButton",void 0);_.A([_.F(),_.r("design:type",Object)],sE.prototype,"scrollUpButtonData",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],sE.prototype,"engagementPanelDropdown",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],sE.prototype,"engagementPanelDialog",void 0);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],sE.prototype,"isClipList",null);_.A([_.F1("#contents"),_.r("design:type",HTMLElement)],sE.prototype,"monitorScrollElement",void 0);_.A([_.F1("#contents"),_.r("design:type",HTMLElement)],sE.prototype,"contents",void 0);
_.A([_.mX("scroll"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],sE.prototype,"onScroll",null);_.A([_.w({is:"ytd-section-list-renderer",disableElementRegistration:!0})],sE);
var jn$=_.vp()(sE,"ytd-section-list-renderer",function(){if(wr_===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);wr_=x}x=wr_;return x},{mode:1});var vfl;var V0G;var hOl;var H3I;var TI=function(){return _.e.apply(this,arguments)||this};
_.p(TI,_.e);TI.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
TI.prototype.onLikeButtonClick=function(x){x.stopPropagation();x.preventDefault()};
_.J3.Object.defineProperties(TI.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var x;if((x=this.data)!=null&&x.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)})}}}});
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],TI.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],TI.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],TI.prototype,"ytdReduxBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],TI.prototype,"ytRendererStamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],TI.prototype,"data",void 0);
_.A([_.F({selectorArgs:["data.likeStatusEntityKey"],selector:fu}),_.r("design:type",Object)],TI.prototype,"likeStatusEntity",void 0);_.A([_.Y("data","likeStatusEntity"),_.r("design:type",Object),_.r("design:paramtypes",[])],TI.prototype,"likeButtonRenderer",null);_.A([_.w({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],TI);
_.q(TI,"ytd-slim-metadata-toggle-button-renderer",function(){if(H3I!==void 0)return H3I;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);
return H3I=x},{mode:1});var eJ=function(){var x=_.e.apply(this,arguments)||this;x.minimizePipBreakages=_.u("web_pip_minimize_breakages");x.showEqualizer=_.u("web_enable_playlist_video_lockup_equalizer");x.watchColorUpdate=_.u("kevlar_watch_color_update");x.actionMap={};return x};
_.p(eJ,_.e);_.K=eJ.prototype;_.K.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:"left"}}}},"data.actionButtons":{id:"action-buttons",mapping:{slimMetadataToggleButtonRenderer:"ytd-slim-metadata-toggle-button-renderer"}}}};
_.K.computeEditableClass=function(x){return x&&x.menu?"editable":""};
_.K.computeSelected=function(x){return!(x==null||!x.selected)};
_.K.computeUseColorPalette=function(x){return!!((x==null?0:x.lightColorPalette)&&(x==null?0:x.darkColorPalette))};
_.K.computeLargerPlaylistThumbs=function(x,L){return _.u("web_enable_playlist_bigger_thumbnails")&&!L};
_.K.computeShowPlayIcon=function(x){return!!x&&_.u("web_use_play_icon_for_playlist_panel_video_renderer")};
_.K.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.K.onYtServiceRequestSent=function(x,L){L.endpoint&&this.isHideEnclosingAction(L.endpoint)&&!this.selected&&hiA(_.hY(),this.data.videoId)};
_.K.isHideEnclosingAction=function(x){var L=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",x);x=this.get("likeEndpoint.status",x)==="INDIFFERENT";return L||x};
_.K.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.K.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.J3.Object.defineProperties(eJ.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.u("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
playIcon:{configurable:!0,enumerable:!0,get:function(){return _.u("enable_web_delhi_icons")?"play":"play_arrow"}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var x;return!!(this.withinMiniplayer&&((x=this.data)==null?0:x.actionButtons))}}});
eJ.prototype.onYtServiceRequestSent=eJ.prototype.onYtServiceRequestSent;eJ.prototype.canReorderChanged=eJ.prototype.canReorderChanged;_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],eJ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],eJ.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],eJ.prototype,"ytRendererBehavior",void 0);
_.A([_.b(_.uM),_.r("design:type",Object)],eJ.prototype,"ytdLockupBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],eJ.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],eJ.prototype,"withinMiniplayer",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],eJ.prototype,"minimizePipBreakages",void 0);_.A([_.F({computed:"computeSelected(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],eJ.prototype,"selected",void 0);
_.A([_.F({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],eJ.prototype,"useColorPalette",void 0);_.A([_.F({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.r("design:type",Boolean)],eJ.prototype,"largerPlaylistThumbs",void 0);_.A([_.F(),_.r("design:type",Object)],eJ.prototype,"showEqualizer",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],eJ.prototype,"canReorder",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],eJ.prototype,"touchPersistentDragHandle",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],eJ.prototype,"handleIsHovered",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],eJ.prototype,"watchColorUpdate",void 0);_.A([_.F(),_.r("design:type",String),_.r("design:paramtypes",[])],eJ.prototype,"reorderIcon",null);
_.A([_.F({computed:"computeShowPlayIcon(selected)",reflectToAttribute:!0}),_.r("design:type",Boolean)],eJ.prototype,"showPlayIcon",void 0);_.A([_.F(),_.r("design:type",String),_.r("design:paramtypes",[])],eJ.prototype,"playIcon",null);_.A([_.Y("largerPlaylistThumbs"),_.r("design:type",Number),_.r("design:paramtypes",[])],eJ.prototype,"thumbnailWidth",null);_.A([_.F({reflectToAttribute:!0}),_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],eJ.prototype,"showActionButtons",null);
_.A([_.GV("canReorder"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],eJ.prototype,"canReorderChanged",null);_.A([_.mX("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.zQ]),_.r("design:returntype")],eJ.prototype,"onYtServiceRequestSent",null);_.A([_.w({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],eJ);
_.q(eJ,"ytd-playlist-panel-video-renderer",function(){if(hOl!==void 0)return hOl;var x=document.createElement("template");_.m(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-playlist-panel-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div id="container" class="style-scope ytd-playlist-panel-video-renderer">\n    <div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-panel-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n      <span id="reorder" class="style-scope ytd-playlist-panel-video-renderer">\n        <yt-icon icon="[[reorderIcon]]" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n      </span>\n      <span id="index" class="style-scope ytd-playlist-panel-video-renderer">[[getSimpleString(data.indexText)]]</span>\n      <template is="dom-if" if="[[showPlayIcon]]" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="play-icon" class="style-scope ytd-playlist-panel-video-renderer">\n          <yt-icon default-to-filled="true" icon="[[playIcon]]" size="12" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n        </span>\n      </template>\n    </div>\n    <div id="thumbnail-container" class="style-scope ytd-playlist-panel-video-renderer">\n      <ytd-thumbnail data="[[data]]" disable-now-playing="[[!showEqualizer]]" disable-tooltips="" now-playing-equalizer-only="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </ytd-thumbnail>\n    </div>\n    <div id="meta" class$="[[computeEditableClass(data)]] style-scope ytd-playlist-panel-video-renderer">\n      <yt-formatted-string id="unplayableText" disable-upgrade$="[[!data.unplayableText]]" hidden="[[!data.unplayableText]]" no-endpoints="" text="[[data.unplayableText]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <h4 class="style-scope ytd-playlist-panel-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h4>\n      <div id="byline-container" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="byline" hidden="[[!data.shortBylineText]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.shortBylineText)]]\n        </span>\n        <ytd-badge-supported-renderer badges="[[data.ownerBadges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n      <yt-formatted-string id="video-info" disable-upgrade$="[[!data.videoInfo]]" hidden="[[!data.videoInfo]]" no-endpoints="" text="[[data.videoInfo]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <div id="action-buttons" hidden="[[!showActionButtons]]" class="style-scope ytd-playlist-panel-video-renderer"></div>\n    </div>\n  </div>\n</a>\n<div id="menu" class="style-scope ytd-playlist-panel-video-renderer"></div>\n');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return hOl=x},{mode:2});var Ro=function(){return _.e.apply(this,arguments)||this};
_.p(Ro,_.e);Ro.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Ro.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Ro.prototype,"data",void 0);_.A([_.w({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],Ro);
_.q(Ro,"ytd-playlist-panel-supported-items",function(){if(V0G!==void 0)return V0G;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return V0G=
x},{mode:1});CiB=!0;ncQ("\\P{N}");var wh0;var uh9=_.p6("END_OF_PLAYLIST",void 0,"End of playlist"),gfs=_.p6("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),GI=function(){var x=_.e.apply(this,arguments)||this;x.minimizePipBreakages=_.u("web_pip_minimize_breakages");x.hideHeaderText=!1;x.useColorPalette=!1;x.collapsed=!1;x.collapsedPreServerOverride="not_tracked";x.isHovered=!1;x.modernPanels=_.u("kevlar_watch_modern_panels");x.expandLabel=_.p6("MINIPLAYER_EXPAND_LABEL");x.collapseLabel=_.p6("MINIPLAYER_COLLAPSE_LABEL");
x.isFloating=!1;x.metaPanel=!1;x.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};x.currentIndex=void 0;return x};
_.p(GI,_.e);_.K=GI.prototype;
_.K.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"}}}};
_.K.created=function(){this.scrollThrottle=new _.zR(this.onThrottledScroll,1E3,this)};
_.K.onMouseEnter=function(){this.isHovered=!0};
_.K.onMouseLeave=function(){this.isHovered=!1};
_.K.computeOverflowMenuData=function(x){return x&&x.menu?x.menu:null};
_.K.computeCollapsible=function(x){return!x};
_.K.computeHasPlaylistButtons=function(x){return!(!x||!x.playlistButtons)};
_.K.computeHasSeparateSaveButton=function(x){return!(!x||!x.saveButton)};
_.K.computeHasToolbarButton=function(x,L){return!(!x||!(L||x.saveButton||x.menu))};
_.K.computePlaylistType=function(x){if(x&&x.playlistId)return x.playlistId.substring(0,4)};
_.K.computeCanReorder=function(x){return x?x.playlistId&&x.playlistId.startsWith("TLPQ")?!0:!!x.isEditable&&!x.isInfinite:!1};
_.K.attached=function(){var x=this;try{_.yY().resolve(_.d6).setPlaylistComponent(this.hostElement)}catch(L){if(_.u("kevlar_park_on_playlist_token_killswitch"))throw L;_.jP().parkOrScheduleJob(function(){_.yY().resolve(_.d6).setPlaylistComponent(x.hostElement)},2,"ci")}_.y0(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.K.detached=function(){_.I8(this.hostElement)};
_.K.computeTrailingIcon=function(x,L,D){return D?L?"yt-icons:collapse":"yt-icons:close":L?"yt-icons:expand":_.u("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.K.computeIndexMessage=function(x,L){return qJf(x+1)+" / "+qJf(L)};
_.K.onRenderStamperFinished=function(){if(this.scrollForStampDom){var x=!0;this.isHovered&&(x=!1);if(this.collapsed||this.hidden)x=!1;x&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.K.collapseChanged=function(){var x=this;this.collapsed||(_.VG(this.ytTaskEmitterBehavior.getTaskManager(),function(){x.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.K.hiddenChanged=function(){var x=this;this.hidden||_.VG(this.ytTaskEmitterBehavior.getTaskManager(),function(){x.scrollToCurrentVideo()})};
_.K.setupReordering=function(){var x=_.jr(this.hostElement).querySelector("#items");oM2?_.qpi(this.ytReorderableBehavior,x,x,"playlist-drag-handle"):_.qpi(this.ytReorderableBehavior,x,x)};
_.K.scrollToCurrentVideo=function(){var x=this;_.WW.addJob(function(){var L=_.jr(x.hostElement).querySelector("#items");if(L){L.style.setProperty("padding-bottom","");var D=_.jr(x.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(D){L=D.parentElement||_.qC(document);var S=L||_.qC(document);var Q=_.$R(D),J=_.$R(S),Z=_.KRi(S);if(S==_.qC(document)){var y=Q.x-S.scrollLeft;Q=Q.y-S.scrollTop}else y=Q.x-J.x-Z.left,Q=Q.y-J.y-Z.top;D=DeB(D);J=S.clientHeight-
D.height;Z=S.scrollLeft;var E=S.scrollTop;Z+=y-(S.clientWidth-D.width)/2;S=new _.Wn(Z,E+(Q-J/2));L.scrollLeft=S.x;L.scrollTop=S.y}}},8)};
_.K.dataChanged=function(){var x=this;_.WaR(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.So(this,function(){_.TG(x.ytTaskEmitterBehavior.getTaskManager(),function(){x.ytRendererBehavior.markDirty();x.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.K.onFullBleedPlayerChanged=function(){_.u("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.K.onFullscreenChanged=function(){_.u("web_watch_imax_theater_mode")||_.u("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.K.updateNowPlayingOverlay=function(){_.u("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.K.onPlaylistLockupNowPlaying=function(x,L){L&&(this.activeNowPlayingRenderer=L);this.updateNowPlayingOverlay()};
_.K.onScroll=function(){this.scrollThrottle.fire()};
_.K.onThrottledScroll=function(){var x=this;_.TG(this.ytTaskEmitterBehavior.getTaskManager(),function(){x.ytRendererBehavior.markDirty()})};
_.K.onToggleExpanded=function(x){!this.collapsible||x&&(_.K$(x).tagName==="A"||_.QC(_.Jq(x),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.K.setCollapsed=function(x){this.collapsible&&(this.collapsed=x,_.P$(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.K.handleCollapsedFromData=function(x){if(x){var L=x.playlistPanelCollapseState;L==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||L==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),L=L==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==L&&this.setCollapsed(L)):this.currentPlaylistId!==x.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(L=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==L&&this.setCollapsed(L),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=x.playlistId}};
_.K.handleDrop=function(x){var L=x.currDragItem;x=L.data.playlistSetVideoId;var D=_.qf(L.parentNode.childNodes,L),S=void 0;D>0&&(S=L.parentNode.childNodes[D-1].data.playlistSetVideoId);L=_.hY();if(L.responsePlaylistData&&L.responsePlaylistData.contents){var Q=qV4(x,L.responsePlaylistData);L.responsePlaylistData=(0,_.wk.unsafeClone)(L.responsePlaylistData);Wc0(L.responsePlaylistData.contents,Q,D);L.queueProxy?aOh(L.queueProxy,Q,D,x,S):L.playlistProxy&&aOh(L.playlistProxy,Q,D,x,S);_.Hy(L,_.uo(L,L.response?
L.response.autoplayRenderer:void 0))}};
_.K.handleDarkModeChange=function(x){x!==this.isDarkTheme&&(this.isDarkTheme=x)};
_.K.colorPaletteChanged=function(){var x,L=((x=this.data)==null?void 0:x.contents)||[],D;x=_.O(L);for(L=x.next();!L.done;L=x.next()){L=L.value;var S=void 0;if((S=L.playlistPanelVideoRenderer)==null?0:S.selected){x=L.playlistPanelVideoRenderer;S=L=void 0;(D=this.isDarkTheme?(L=x)==null?void 0:L.darkColorPalette:(S=x)==null?void 0:S.lightColorPalette)&&_.UI(this.hostElement,D);break}}this.useColorPalette=!!D};
_.J3.Object.defineProperties(GI.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.moveThreeDotsMenuToMainHeader)&&_.u("course_hide_playlist_panel_shuffle_and_loop_buttons")}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var x=_.yY().resolve(_.ZN(_.d6)),L;if(((L=this.data)==null?0:L.contents)&&(x==null?0:x.hasAutoplayData())){var D;if(((D=this.playlistLoopStateEntity)==null?void 0:D.state)==="PLAYLIST_LOOP_STATE_ONE"){if(x=this.data.currentIndex,x!==void 0){var S,Q;var J=(S=this.data.contents[x])==null?void 0:(Q=S.playlistPanelVideoRenderer)==null?void 0:Q.title}}else{var Z,y=(Z=_.g(x.getAutoplayEndpoint(),_.L6))==null?void 0:Z.videoId,E,P;J=(E=this.data.contents.find(function(v){var V;
return((V=v.playlistPanelVideoRenderer)==null?void 0:V.videoId)===y}))==null?void 0:(P=E.playlistPanelVideoRenderer)==null?void 0:P.title}return J}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)!=null&&x.nextVideoLabel?this.nextVideoTitle?_.SR(this.data.nextVideoLabel)+":":uh9:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var x;if(((x=this.data)==null?0:x.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN"&&!_.u("web_mix_long_byline_from_data"))return _.Dv(gfs);var L;return(L=this.data)==null?void 0:L.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var x,L,D,S=(x=this.data)==null?void 0:(L=x.playlistButtons)==null?void 0:(D=L.menuRenderer)==null?void 0:D.topLevelButtons;if(S)for(x=_.O(S),L=x.next();!L.done;L=x.next())if(L=L.value,L.playlistLoopButtonRenderer)return L.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var x;return!!(this.collapsed&&((x=this.data)==null?0:x.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.u("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
GI.prototype.colorPaletteChanged=GI.prototype.colorPaletteChanged;GI.prototype.onPlaylistLockupNowPlaying=GI.prototype.onPlaylistLockupNowPlaying;GI.prototype.updateNowPlayingOverlay=GI.prototype.updateNowPlayingOverlay;GI.prototype.onFullscreenChanged=GI.prototype.onFullscreenChanged;GI.prototype.onFullBleedPlayerChanged=GI.prototype.onFullBleedPlayerChanged;GI.prototype.dataChanged=GI.prototype.dataChanged;GI.prototype.hiddenChanged=GI.prototype.hiddenChanged;GI.prototype.collapseChanged=GI.prototype.collapseChanged;
GI.prototype.onRenderStamperFinished=GI.prototype.onRenderStamperFinished;GI.prototype.onMouseLeave=GI.prototype.onMouseLeave;GI.prototype.onMouseEnter=GI.prototype.onMouseEnter;_.A([_.b(_.XO),_.r("design:type",Object)],GI.prototype,"ironResizableBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],GI.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],GI.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.b(weW.YtPlaylistPanelBehavior),_.r("design:type",Object)],GI.prototype,"ytPlaylistPanelBehavior",void 0);_.A([_.b(_.sB.YtTaskEmitterBehavior),_.r("design:type",Object)],GI.prototype,"ytTaskEmitterBehavior",void 0);_.A([_.b(_.Atd),_.r("design:type",Object)],GI.prototype,"ytReorderableBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],GI.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],GI.prototype,"ytdReduxBehavior",void 0);
_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],GI.prototype,"actionHandlerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],GI.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],GI.prototype,"autoplayData",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],GI.prototype,"withinMiniplayer",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],GI.prototype,"minimizePipBreakages",void 0);
_.A([_.F({computed:"setMenuData_(data)"}),_.r("design:type",Object)],GI.prototype,"menuRendererData",void 0);_.A([_.F({computed:"computeOverflowMenuData(data)"}),_.r("design:type",Object)],GI.prototype,"overflowMenuDataTopRow",void 0);_.A([_.F({computed:"computeOverflowMenuData(data)"}),_.r("design:type",Object)],GI.prototype,"overflowMenuData",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],GI.prototype,"hideHeaderText",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],GI.prototype,"useColorPalette",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.r("design:type",Boolean)],GI.prototype,"collapsible",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],GI.prototype,"collapsed",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],GI.prototype,"hidden",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.r("design:type",Boolean)],GI.prototype,"hasPlaylistButtons",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.r("design:type",Boolean)],GI.prototype,"hasSeparateSaveButton",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.r("design:type",Boolean)],GI.prototype,"hasToolbar",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.r("design:type",String)],GI.prototype,"playlistType",void 0);_.A([_.F(),_.r("design:type",Object)],GI.prototype,"isHovered",void 0);_.A([_.F({selectorArgs:["playlistLoopStateEntityKey"],selector:_.Ypw}),_.r("design:type",Object)],GI.prototype,"playlistLoopStateEntity",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],GI.prototype,"modernPanels",void 0);
_.A([_.F({value:56}),_.r("design:type",Number)],GI.prototype,"scrollMargin",void 0);_.A([_.F({computed:"computeCanReorder(data)"}),_.r("design:type",Boolean)],GI.prototype,"canReorder",void 0);_.A([_.F(),_.r("design:type",Object)],GI.prototype,"expandLabel",void 0);_.A([_.F(),_.r("design:type",Object)],GI.prototype,"collapseLabel",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],GI.prototype,"isFloating",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],GI.prototype,"metaPanel",void 0);_.A([_.F({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.r("design:type",String)],GI.prototype,"trailingIcon",void 0);_.A([_.F({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],GI.prototype,"isDarkTheme",void 0);_.A([_.F({selector:_.$N}),_.r("design:type",Boolean)],GI.prototype,"miniplayerIsActive",void 0);_.A([_.F({selector:function(x){return x.watch.playerState}}),
_.r("design:type",Number)],GI.prototype,"playerState",void 0);_.A([_.F({selector:_.rF}),_.r("design:type",Boolean)],GI.prototype,"isFullscreen",void 0);_.A([_.F({selector:_.$O}),_.r("design:type",Boolean)],GI.prototype,"isTheaterMode",void 0);_.A([_.F(),_.r("design:type",Object)],GI.prototype,"activeNowPlayingRenderer",void 0);_.A([_.F({reflectToAttribute:!0}),_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],GI.prototype,"moveThreeDotMenuToTopRow",null);
_.A([_.Y("data","autoplayData","playlistLoopStateEntity"),_.r("design:type",Object),_.r("design:paramtypes",[])],GI.prototype,"nextVideoTitle",null);_.A([_.Y("data","nextVideoTitle"),_.r("design:type",String),_.r("design:paramtypes",[])],GI.prototype,"nextVideoLabel",null);_.A([_.Y("collapsed"),_.r("design:type",String),_.r("design:paramtypes",[])],GI.prototype,"buttonAriaLabel",null);
_.A([_.Y("data","playlistId","longBylineText"),_.r("design:type",Object),_.r("design:paramtypes",[])],GI.prototype,"mixLongByLine",null);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],GI.prototype,"playlistLoopStateEntityKey",null);_.A([_.mX("mouseenter"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],GI.prototype,"onMouseEnter",null);
_.A([_.mX("mouseleave"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],GI.prototype,"onMouseLeave",null);_.A([_.F({reflectToAttribute:!0}),_.Y("data","collapsed"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],GI.prototype,"showNextVideoHeader",null);_.A([_.mX("yt-rendererstamper-finished"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],GI.prototype,"onRenderStamperFinished",null);
_.A([_.bN("collapsed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],GI.prototype,"collapseChanged",null);_.A([_.bN("hidden"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],GI.prototype,"hiddenChanged",null);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],GI.prototype,"dataChanged",null);
_.A([_.Y("isTheaterMode","isFullscreen"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],GI.prototype,"isFullBleedPlayer",null);_.A([_.bN("isTheaterMode","isFullscreen"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],GI.prototype,"onFullBleedPlayerChanged",null);_.A([_.bN("isFullscreen"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],GI.prototype,"onFullscreenChanged",null);
_.A([_.bN("playerState","miniplayerIsActive"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],GI.prototype,"updateNowPlayingOverlay",null);_.A([_.mX("yt-playlist-lockup-now-playing-active"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],GI.prototype,"onPlaylistLockupNowPlaying",null);
_.A([_.bN("data","isDarkTheme"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],GI.prototype,"colorPaletteChanged",null);_.A([_.w({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],GI);
_.kNW=_.vp()(GI,"ytd-playlist-panel-renderer",function(){if(vfl===void 0){var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);vfl=x}x=vfl;return x},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var p45;var CR=function(){var x=_.e.apply(this,arguments)||this;x.modern=_.u("web_button_rework");return x};
_.p(CR,_.e);CR.prototype.computeShouldButtonBeVertical=function(x,L){return x||L};
CR.prototype.onYtServiceRequestSent=function(x,L){(x=_.g(L.endpoint,_.N1))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.TR("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:x.status})):this.handleLikeEndpoint(x))};
CR.prototype.computelikeStatusEntityKey=function(x){return x==null?void 0:x.likeStatusEntityKey};
CR.prototype.handleLikeEndpoint=function(x){x.status==="LIKE"?this.JSC$17100_ytdDislikeToggleButtonRenderer.toggle(!1):x.status==="DISLIKE"?this.JSC$17100_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$17100_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$17100_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.J3.Object.defineProperties(CR.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var x;return NL3(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(x=this.likeStatusEntity)==null?void 0:x.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var x;if(this.data&&((x=this.data)==null||!x.hideDislikeButton)){var L;return NL3(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(L=this.likeStatusEntity)==null?void 0:L.likeStatus)}}}});
CR.prototype.onYtServiceRequestSent=CR.prototype.onYtServiceRequestSent;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],CR.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],CR.prototype,"ytdReduxBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],CR.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],CR.prototype,"vertical",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",String)],CR.prototype,"textTransform",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],CR.prototype,"useShortsIcon",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],CR.prototype,"underIconLabel",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],CR.prototype,"modern",void 0);_.A([_.F({value:"left"}),_.r("design:type",String)],CR.prototype,"buttonTooltipPosition",void 0);
_.A([_.F(),_.r("design:type",Object)],CR.prototype,"overrides",void 0);_.A([_.F1("#like-button"),_.r("design:type",Object)],CR.prototype,"JSC$17100_ytdLikeToggleButtonRenderer",void 0);_.A([_.F1("#dislike-button"),_.r("design:type",Object)],CR.prototype,"JSC$17100_ytdDislikeToggleButtonRenderer",void 0);_.A([_.Y("data","likeStatusEntity.likeStatus","useShortsIcon"),_.r("design:type",Object),_.r("design:paramtypes",[])],CR.prototype,"likeButton",null);
_.A([_.Y("data","likeStatusEntity.likeStatus","useShortsIcon"),_.r("design:type",Object),_.r("design:paramtypes",[])],CR.prototype,"dislikeButton",null);_.A([_.F({computed:"computelikeStatusEntityKey(data)"}),_.r("design:type",String)],CR.prototype,"likeStatusEntityKey",void 0);_.A([_.F({selectorArgs:["likeStatusEntityKey"],selector:fu}),_.r("design:type",Object)],CR.prototype,"likeStatusEntity",void 0);
_.A([_.mX("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.zQ]),_.r("design:returntype")],CR.prototype,"onYtServiceRequestSent",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],CR);
var mf3=_.vp()(CR,"ytd-like-button-renderer",function(){if(p45===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);p45=x}x=p45;return x},{mode:1});_.b3l={};
_.b3l.YtConditionalRendererBehavior=[_.c.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(x,L){var D=this,S,Q;return _.I(function(J){switch(J.nextAddress){case 1:if(!L)return D.hidden=!0,D.showSpinner=!1,J.return();if((S=x)==null?0:(Q=S.visibilityCondition)==null?0:Q.mode)switch(x.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return J.jumpTo(5);default:return J.jumpTo(6)}D.showSpinner=
!1;D.hidden=!0;return J.yield(D.shouldShow_(x),4);case 4:D.hidden=!J.yieldResult;J.jumpTo(0);break;case 5:return J.yield(D.shouldShow_(x),8);case 8:D.showSpinner=J.yieldResult;D.hidden=!1;J.jumpTo(0);break;case 6:return D.showSpinner=!1,J.yield(D.shouldShow_(x),9);case 9:D.hidden=!J.yieldResult,_.Y2(J)}})},
shouldShow_:function(x){return x&&x.supportedDatas&&x.supportedDatas.rendererVisibilityConditionData&&x.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(x.supportedDatas.rendererVisibilityConditionData.showIf):x&&x.visibilityCondition&&x.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(x.visibilityCondition.showIf):x&&x.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(x.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(x){switch(x){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(x){switch(x){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var x=_.dg(this.hostElement,"yt-get-mdx-status");return x.length==1&&x[0].connected},
isLocationPermissionGranted_:function(){var x;return _.I(function(L){return L.nextAddress==1?navigator.permissions?L.yield(navigator.permissions.query({name:"geolocation"}),3):L.jumpTo(2):L.nextAddress!=2?(x=L.yieldResult,L.return(Promise.resolve(x.state==="granted"))):L.return(Promise.resolve(!1))})}}];var Ywq=wUO("yt-icon",{callbackProps:["onKeydown"]}),Fcg=_.u("kevlar_use_wil_icons")?_.B(function(x){var L=x.icon;var D=x.active;var S=x.className;var Q=x.style;var J=x.dataSelected;var Z=x.dataDisabled;var y=x.role;var E=x.themeOverride;var P=x.animateIcon;var v=x.ariaHidden;var V=x.ariaExpanded;var h=x.ariaLabel;var H=x.tabindex;var k=x.id;var T=x.iconFilter;var G=x.onKeydown;var U=function(){var f=L==null?void 0:L(),N=null,z=void 0;f&&(f=jLQ(f),f=Iyw(f),f.length&&(N=f[1],z=f[0]));return{iconName:N,
iconSetName:z}},l=function(){return vyd(U().iconName,D==null?void 0:D(),void 0,void 0,U().iconSetName,_.yY().resolve(_.ki))},X=function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:T==null?void 0:T()}};
return _.M(_.d,{cond:P,then:function(){return _.M(Ywq,{icon:L,active:D,className:S,style:Q,dataSelected:J,dataDisabled:Z,role:y,themeOverride:E,ariaHidden:v,ariaExpanded:V,ariaLabel:h,tabindex:H,id:k,iconFilter:T,onKeydown:G})},
else:function(){return _.M(_.d,{cond:l,then:function(f){return _.M("span",{class:_.gF("ytIconWrapperHost",S),role:y,"aria-label":h,"aria-hidden":v,tabindex:function(){return isNaN(Number(H==null?void 0:H()))?void 0:Number(H==null?void 0:H())},
id:k,style:Q,"on:keydown":_.kO(function(N){return void(G==null?void 0:G(N))})},_.M(lZG,{data:f,
options:X}))}})}})},"Zf"):Ywq;var snI=function(x){var L=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];jl3();_.KK("ytglobal.ytUtilActivityCallback_",function(){_.P$(x,"yt-user-activity")});
new KV(function(){return L.JSC$17116_onMouseMove});
document.addEventListener("scroll",function(){return L.onScroll});
window.addEventListener("resize",function(){return L.onResize})},T0G=function(x,L,D){L in x.eventJobIds||(D=_.RP().addLowPriorityJob(function(){_.Oh();
delete x.eventJobIds[L]},D),x.eventJobIds[L]=D)};
snI.prototype.onScroll=function(x){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):x.target===document&&T0G(this,"scroll",200)};
snI.prototype.onResize=function(){T0G(this,"resize",200)};
snI.prototype.JSC$17116_onMouseMove=function(){T0G(this,"mousemove",100)};
_.Tz=function(x){x.scrollEventsToIgnore+=1;x.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){x.scrollEventsToIgnore--},500))};var eO$=function(x){this.element=x;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
eO$.prototype.showFeedbackDialog=function(x,L,D,S){var Q=ROY();if(!Q)return!1;var J=L2O();J.productId=Q;L&&(J.flow="submit",J.report={description:L});D&&(ROY()==="59"?J.callback=_.fm(function(){_.Uh("userFeedbackEvent",{});D()}):J.callback=_.fm(D));
J.bucket=S||_.$6("GOOGLE_FEEDBACK_BUCKET","Other");GN9(J);x=CsI(this,"GFEEDBACK",x);try{_.I9H(J,x)}catch(Z){return _.N9(Z),!1}return!0};
eO$.prototype.showHelpDialog=function(x,L,D){var S=this,Q=ROY();if(!Q)return!1;var J={helpCenterPath:"/youtube",productData:CsI(this,"GUIDED_HELP",D)};GN9(J);var Z=L2O();Z.context=x||J.productData.context||"default";Z.defaultHelpArticleId=L;Z.enableSendFeedback=!0;(_.o1("gapi.load")||function(y,E){return E()})("client",function(){try{var y=lKA(Q,J);
if(_.u("web_always_load_chat_support")&&!S.chatSupportLoaded)try{y.JSC$9979_loadChatSupport(Z),S.chatSupportLoaded=!0}catch(E){}y.startHelp(Z)}catch(E){_.N9(E)}})};
var ROY=function(){var x=_.$6("GOOGLE_FEEDBACK_PRODUCT_ID");x||_.N9(Error("li"));return x},GN9=function(x){x&&(x.locale=_.u("kevlar_help_use_locale")?_.$6("INNERTUBE_CONTEXT_HL","en"):_.$6("HTML_LANG","en"))},CsI=function(x,L,D){var S=x.productData;
delete S.origin;S.device=_.hG();var Q;a:{if(Q=document.createElement("canvas")){var J=Q.getContext("experimental-webgl",{stencil:!0});if(J){var Z=J.getExtension("WEBGL_debug_renderer_info");if(Z){Q=J.getParameter(Z.UNMASKED_RENDERER_WEBGL);break a}}if(J=Q.getContext("webgl")){Q=J.getParameter(J.RENDERER);break a}}Q=null}S.gpu=Q;S.isSDC=!!_.$6("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(Q=_.$6("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.wk.extend(S,Q);_.ttw(L,S);_.xmf(S);(x=_.P$(x.element,"yt-get-autonav-pause-debug-state"))&&
x.length&&(S.autonav_pause_state=x[0]);x=_.YR();S.browser_resolution=x.width+"\u00d7"+x.height+"@"+(window.devicePixelRatio||1)+"x";D&&_.wk.extend(S,D);return S};
eO$.prototype.resetProductData=function(){this.productData={}};var lpX=function(x){this.feedbackManager=new eO$(x)};
lpX.prototype.showFeedbackDialog=function(x,L,D,S){return this.feedbackManager.showFeedbackDialog(x,L,D,S)};
lpX.prototype.showHelpDialog=function(x,L,D){return this.feedbackManager.showHelpDialog(x,L,D)};var Ufs=function(){this.baseUrl="";this.aTag=document.createElement("a")},NpQ=function(x,L,D){D=D===void 0?{}:D;
D.pbj||(D.pbj=1);D=_.t2h(L,D);x.baseUrl&&D&&!_.ST(D)[1]&&!_.QY(D)&&(L=x.baseUrl,yb(L,"/")&&(L=L.slice(0,-1)),_.Ow(D,"/")&&(D=D.slice(1)),D=L+"/"+D);fU(x.aTag,_.Wi(D||""));return x.aTag.href};
Ufs.prototype.fetchData=function(x){return _.oF4(x)};
Ufs.prototype.postData=function(x,L){var D={method:"POST"};if(L){for(var S=_.O(Object.keys(L)),Q=S.next();!Q.done;Q=S.next()){Q=Q.value;var J=L[Q];_.on(J)&&(L[Q]=JSON.stringify(J))}D.postParams=L}return _.oF4(x,D)};
_.iyh=function(x,L,D,S,Q){x=NpQ(x,L,D);if(!x)throw S=Error("mi"),Object.assign(S,{params:L}),S;return _.oF4(x,Q,S)};
Ufs.prototype.requestDataForServiceEndpoint=function(x,L){if(_.g(x,_.PXw))return this.fetchData("/getAccountSwitcherEndpoint");L=L||{};var D=_.g(x,Err);D?L.se=D.base64EncodedServiceEndpoint:L.sej=JSON.stringify(x);(D=_.A3())&&_.u("enable_service_ajax_csn")&&(L.csn=D);L.theme=_.l1();_.g(x,Me0)&&_.$6("DELEGATION_CONTEXT")&&(L.delegation_context=JSON.stringify(_.$6("DELEGATION_CONTEXT")));D=null;for(var S in x)if(yb(S,"Endpoint")||yb(S,"Command")){D=S;break}if(!D){var Q=Error("ni");Object.assign(Q,{params:x});
_.XXh(Q,"WARNING");return new _.HI(function(Z,y){y(Q)})}S={name:D};
var J;(D=(J=_.g(x,_.ul))==null?void 0:J.signal)&&(S.signal=D);(J=_.xQ(window.location.href))&&J.internalcountrycode&&(S.internalcountrycode=J.internalcountrycode);J="/service_ajax";_.u("debug_forward_web_query_parameters")&&(J=_.ENs(J,window.location.search));J=_.DN(J,S);x.clickTrackingParams&&_.J_(J,{itct:x.clickTrackingParams});return this.postData(J,L)};_.w4$=new _.vx("GFEEDBACK_TOKEN");var B0W;var Wc$;var qwl;var AG9;var lK=function(){var x=_.e.apply(this,arguments)||this;x.compact=!1;x.dismissButtonDisabled=!1;return x};
_.p(lK,_.e);lK.prototype.computeHasIcon_=function(x){return!!x};
lK.prototype.isSignInIcon_=function(x){return x=="yt-icons:prompted_sign_in"};
lK.prototype.onDismissButtonClick=function(){var x;this.data.disableOnClick&&!this.dismissButtonDisabled&&(x=this.data.dismissButton)!=null&&x.buttonRenderer&&(this.dismissButtonDisabled=!0)};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],lK.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.b3l.YtConditionalRendererBehavior),_.r("design:type",Object)],lK.prototype,"ytConditionalRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],lK.prototype,"data",void 0);_.A([_.F({computed:"computeIcon_(data.icon)"}),_.r("design:type",Object)],lK.prototype,"icon_",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.r("design:type",Boolean)],lK.prototype,"hasIcon_",void 0);_.A([_.F({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.r("design:type",Boolean)],lK.prototype,"signInIcon_",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],lK.prototype,"compact",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],lK.prototype,"dismissButtonDisabled",void 0);
_.A([_.oW({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],lK);
_.q(lK,"yt-player-error-message-renderer",function(){if(AG9===void 0){var x=document.createElement("template");_.m(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_error_message_renderer.yt.player.error.message.renderer.css.js--\x3e\n<div id="player-error-message-container" hidden="[[showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <yt-icon id="icon" hidden="[[!icon_]]" icon="[[icon_]]" class="style-scope yt-player-error-message-renderer"></yt-icon>\n  <div id="info" class="style-scope yt-player-error-message-renderer">\n    <div id="reason" class="style-scope yt-player-error-message-renderer">[[getSimpleString(data.reason)]]</div>\n    <yt-formatted-string id="subreason" is-overlay="" text="[[data.subreason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="more" is-overlay="" text="[[data.learnMore]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope yt-player-error-message-renderer">\n      <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" disabled$="[[dismissButtonDisabled]]" on-tap="onDismissButtonClick" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="button" data="[[data.proceedButton.buttonRenderer]]" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="spinner" hidden="[[!showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <tp-yt-paper-spinner-lite active="" class="style-scope yt-player-error-message-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;qwl===void 0&&(qwl=document.createElement("template"));var S=qwl;D.call(L,S.content.cloneNode(!0),x.content.firstChild);AG9=x}x=AG9;return x},{mode:2});var $f5;var rGX;var UE=function(){return _.e.apply(this,arguments)||this};
_.p(UE,_.e);UE.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
UE.prototype.computeIcon_=function(x){return x?"yt-icons:"+x.iconType.toLowerCase():"error_outline"};
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],UE.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],UE.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],UE.prototype,"data",void 0);_.A([_.F({computed:"computeIcon_(data.icon)"}),_.r("design:type",Object)],UE.prototype,"icon_",void 0);_.A([_.oW({is:"yt-player-kav-renderer",disableElementRegistration:!0})],UE);
_.q(UE,"yt-player-kav-renderer",function(){if(rGX===void 0){var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;$f5===void 0&&($f5=document.createElement("template"));var S=$f5;D.call(L,S.content.cloneNode(!0),x.content.firstChild);rGX=x}x=rGX;return x},{mode:2});var Qrh=_.xI(["https://www.google.com/recaptcha/api.js?trustedtypes=true&hl=",""]);_.dF(_.B(function(x){var L=_.x3("div"),D=_.O(_.HB(0,void 0,"jxh75d")),S=D.next().value,Q=D.next().value;D=_.O(_.HB(null,void 0,"F5Zm8"));var J=D.next().value,Z=D.next().value;_.wO(function(){Jp0(L.value,Q,Z);L.value.scrollIntoView()});
D=K20.bind(null,x.data,S);_.OU("resize",function(){var y=J();if(S()===1&&y!==null){var E;(E=window.grecaptcha)==null||E.reset(y)}});
return _.M("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.M("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.M("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var y,E;return(y=x.data().accessibility)==null?void 0:(E=y.accessibilityData)==null?void 0:E.label}),_.M(_.kP,{text:D,
className:_.gF("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.M("div",{el:L,class:"ytwPlayerCaptchaViewModelGridItem"})))},"$f"),"yt-player-captcha-view-model",{props:{data:_.Il}});var O_0=!1;_.N03=_.B(function(x){var L=x.data;return _.M("yt-interstitial-view-model",{class:"interstitialViewModelHost"},_.M(_.d,{cond:function(){return L().icon},
then:function(D){return _.M("div",{class:"interstitialViewModelInterstitialIcon interstitialViewModelFlexItem"},_.M(_.Ku,{data:D,alt:"",className:"interstitialViewModelIconImage",preserveWidth:!0}))}}),_.M(_.d,{cond:function(){return L().title},
then:function(D){return _.M("div",{class:"interstitialViewModelInterstitialTitle interstitialViewModelFlexItem"},_.M(_.kP,{text:D}))}}),_.M(_.d,{cond:function(){return L().description},
then:function(D){return _.M("div",{class:"interstitialViewModelInterstitialDescription interstitialViewModelFlexItem"},_.M(_.kP,{text:D}))}}),_.M(_.Fj,{data:function(){return L().primaryButton}},{buttonViewModel:function(D){return _.M(_.qP,{data:D.data,
className:"interstitialViewModelFlexItem"})}}),_.M(_.Fj,{data:function(){return L().secondaryButton}},{buttonViewModel:function(D){return _.M(_.qP,{data:D.data,
className:"interstitialViewModelFlexItem"})}}))},"ag");
_.N03.idomCompat=!0;var i3s=_.B(function(x){var L=x.data;_.aS();return _.M("yt-player-interstitial-renderer",{class:"playerInterstitialRendererHost"},_.M("div",{class:"playerInterstitialRendererScrim"},_.M(_.Fj,{data:function(){return L().content}},{interstitialViewModel:_.N03})))},"bg");
i3s.idomCompat=!0;_.dF(i3s,"yt-player-interstitial-renderer",{props:{data:_.pJ}});var wx=function(){var x=_.e.apply(this,arguments)||this;x.noBackground=!1;x.compact=!1;x.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return x};
_.p(wx,_.e);wx.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"}}}};
wx.prototype.onUpdatePlayerErrorMessageCommand_=function(x){if(_.g(x,mJB)){var L;if(x=(L=_.g(x,mJB))==null?void 0:L.newPlayerErrorMessageRenderer)this.data=x}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],wx.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],wx.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],wx.prototype,"ytActionHandlerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],wx.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],wx.prototype,"status",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],wx.prototype,"noBackground",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],wx.prototype,"compact",void 0);_.A([_.oW({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],wx);
var fp5=_.vp()(wx,"yt-playability-error-supported-renderers",function(){if(Wc$===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;B0W===void 0&&(B0W=document.createElement("template"));var S=B0W;D.call(L,S.content.cloneNode(!0),x.content.firstChild);Wc$=x}x=Wc$;return x},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var of3=wUO("ytd-button-renderer");var Z_n=void 0,ILf=void 0;var dmh=new Hq2;var apq=function(x){this.store=x;this.hCE=new _.kJh},od4=function(x,L,D){var S,Q;
if(!(Q=((S=L.playabilityStatus)==null?void 0:S.status)!=="OK")){x=x.store;var J;Q=L.offlineState&&((J=L.videoDetails)==null?0:J.videoId)?_.u("enable_pl_r_c_cd")?een(x.getState().entities,L.videoDetails.videoId):!!QOs(x.getState().entities,L.videoDetails.videoId):!1}if(Q)return!0;Q=hRb(L);if(Q===1){if(_.u("ab_v_vid_sig")){var Z,y=(Z=L.videoDetails)==null?void 0:Z.videoId;if(!y||!D||y!==D){var E;L=new _.RZ("282054944_vid",{sPX:D,c9Z:(E=L.videoDetails)==null?void 0:E.videoId});_.BI(L)}}return!0}kzG=
0;var P,v;E=(y=L.auxiliaryUi)==null?void 0:(P=y.messageRenderers)==null?void 0:(v=P.bkaEnforcementMessageViewModel)==null?void 0:v.displayType;if(Q!==3&&(E==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||E==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;E={reason:_.ya(_.p6("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.u("ks_something_wrong_learn_more")?Gl3("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.ya(_.p6("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:_.ya("282054944")};zOu(L,{playerErrorMessageRenderer:E});return!1},aD0=function(x,L){if(qG0(L)){_.k8(1,!0);
var D=(D=qG0(L))&&_.ypN()?D:void 0;D?(zOu(L,{enforcementMessageViewModel:D}),x.hCE.increment("IN_PLAYER"),_.k8(5)):(x.hCE.increment("SKIP_DISPLAY"),_.k8(2))}},zOu=function(x,L){x.playabilityStatus=Object.assign({},x.playabilityStatus,{status:"ERROR",
errorScreen:L});x.videoDetails=void 0};
apq.prototype.handleResponse=function(x,L){if(x.playabilityStatus){var D,S,Q,J=(L==null?void 0:(D=L.innerTubeRequest)==null?void 0:D.videoId)||(L==null?void 0:(S=L.innerTubeRequest)==null?void 0:(Q=S.playerRequest)==null?void 0:Q.videoId);od4(this,x,J)&&aD0(this,x)}};
apq[IZ]=[yG];var iQf=new _.vx("ADBLOCK_DETECTION_SERVICE_TOKEN");var nF=function(x){this.n0y=x};
nF.prototype.bindInnertubeChallengeFetcher=function(x){this.n0y.bicf(x)};
nF.prototype.registerChallengeFetchedCallback=function(x){this.n0y.bcr(x)};
nF.prototype.getLatestChallengeResponse=function(){return this.n0y.blc()};var X4s;X4s=_.xI(["https://static.doubleclick.net/instream/ad_status.js"]);_.cGl=_.Pn(X4s);var L_q;_.BQ=function(x,L,D){var S=this;this.network=x;this.options=L;this.networkStatusManager=D;this.nV=null;if(L.useBotguardEverywhere){var Q=new _.Hq;this.nV=Q.promise;_.Qb.ytAtRC&&_.GR(_.WW,function(){var J,Z;return _.I(function(y){if(y.nextAddress==1){if(!_.Qb.ytAtRC)return y.return();J=nfq(null);return y.yield(S.xn(J),2)}Z=y.yieldResult;_.Qb.ytAtRC&&_.Qb.ytAtRC(JSON.stringify(Z));_.Y2(y)})});
p7f().then(function(J){var Z,y,E,P;return _.I(function(v){if(v.nextAddress==1)return J.bindInnertubeChallengeFetcher(function(V){return S.xn(nfq(V))}),v.yield($9b(),2);
Z=v.yieldResult;y=J.getLatestChallengeResponse();E=y.challenge;if(!E)throw Error("oi");P={challenge:E,jv:c2(E),vm:Z,bgChallenge:new zk};Q.resolve(P);J.registerChallengeFetchedCallback(function(V){V=V.challenge;if(!V)throw Error("pi");V={challenge:V,jv:c2(V),vm:Z,bgChallenge:new zk};S.nV=Promise.resolve(V)});
_.Y2(v)})})}else L.preload&&t03(this,new Promise(function(J){_.TG(_.WW,function(){J(xhg(S))},0)}))};
L_q=function(x){var L={preload:!0,useBotguardEverywhere:!0},D=!1;if(typeof L==="boolean")var S={preload:L};else typeof L==="undefined"?S={preload:!0}:(S=L,D=!!L.eTv);L=D?void 0:new _.cW;_.BQ.instance=new _.BQ(x,S,L);return _.BQ.instance};
_.BQ.prototype.w0N=function(){var x=this;return _.I(function(L){return L.nextAddress==1?L.yield(Promise.race([x.nV,null]),2):L.return(!!L.yieldResult)})};
_.BQ.prototype.wMR=function(x,L,D){var S=this,Q,J,Z;return _.I(function(y){S.nV===null&&t03(S,xhg(S));Q=!1;J={};Z=function(){var E,P,v;return _.I(function(V){switch(V.nextAddress){case 1:return V.yield(S.nV,2);case 2:E=V.yieldResult;J.challenge=E.challenge;if(!E.vm){"c1a"in E.jv&&(J.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");V.jumpTo(3);break}P=Object.assign({},{c:E.challenge,e:x},L);_.HH(V,4);Q=!0;return V.yield(E.vm.snapshot({o2:P}),6);case 6:(v=V.yieldResult)?J.webResponse=v:J.error="ATTESTATION_ERROR_VM_NO_RESPONSE";
_.nH(V,3);break;case 4:_.mW(V),J.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(x==="ENGAGEMENT_TYPE_PLAYBACK"){var h=E.jv,H={};if(h.c6a){var k=Number(_.$6("DCLKSTAT",0));H.reportingStatus=String(Number(h.c)^(isNaN(k)?0:k))}h.c6b&&(H.broadSpectrumDetectionResult=String(Number(h.c)^Number(_.$6("CATSTAT",0))));J.adblockReporting=H}return V.return(J)}})};
return y.return(Promise.race([Z(),Dhq(D,function(){var E=Object.assign({},J);Q&&(E.error="ATTESTATION_ERROR_VM_TIMEOUT");return E})]))})};
var nfq=function(x){var L={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};x&&(L.interpreterHash=x);return L},xhg=function(x,L){L=L===void 0?0:L;
var D,S,Q,J,Z,y,E,P,v,V,h,H;return _.I(function(k){switch(k.nextAddress){case 1:D=nfq(pfi().nm5);if(_.u("att_fet_ks"))return _.HH(k,7),k.yield(x.xn(D),9);_.HH(k,4);return k.yield(SRl(x,D),6);case 6:Z=k.yieldResult;Q=Z.cL1;J=Z.oH3;S=Z;_.nH(k,3);break;case 4:return _.mW(k),_.qy(Error("qi`"+L)),QiX(x,864E5),k.return({challenge:"",jv:{},vm:void 0,bgChallenge:void 0});case 9:S=k.yieldResult;if(!S)throw Error("ri");if(!S.challenge)throw Error("si");Q=S.challenge;J=c2(Q);if("c1a"in J&&(!S.bgChallenge||!S.bgChallenge.program))throw Error("ti");
_.nH(k,3);break;case 7:y=_.mW(k);_.qy(y);L++;if(L>=5)return _.qy(Error("qi`"+L)),QiX(x,864E5),k.return({challenge:"",jv:{},vm:void 0,bgChallenge:void 0});E=1E3*Math.pow(2,L-1)+Math.random()*1E3;return k.return(new Promise(function(T){_.TG(_.WW,function(){T(xhg(x,L))},E)}));
case 3:P=kA0(J);QiX(x,P*1E3);v=void 0;if(!("c1a"in J&&S.bgChallenge)){k.jumpTo(10);break}V=gn4(S.bgChallenge);_.HH(k,11);return k.yield(bwi(pfi(),V),13);case 13:_.nH(k,12);break;case 11:return h=_.mW(k),_.qy(h),k.return({challenge:Q,jv:J,vm:v,bgChallenge:V});case 12:return _.HH(k,14),v=new _.XC({challenge:V,e1C:{iV:"aGIf"}}),k.yield(v.d17,16);case 16:_.nH(k,10);break;case 14:H=_.mW(k),_.qy(H),v=void 0;case 10:return k.return({challenge:Q,jv:J,vm:v,bgChallenge:V})}})};
_.BQ.prototype.xn=function(x){var L=this,D;return _.I(function(S){D=L.networkStatusManager;if(!D||D.isNetworkAvailable())return S.return(L.network.xn(x));_.NF("att_pna",void 0,"attestation_challenge_fetch");return S.return(new Promise(function(Q){D.listenOnce("publicytnetworkstatus-online",function(){L.network.xn(x).then(Q)})}))})};
var Jru=function(x){if(!x)throw Error("ri");if(!x.challenge)throw Error("si");var L=x.challenge,D=c2(L);if("c1a"in D&&(!x.bgChallenge||!x.bgChallenge.program))throw Error("ti");return Object.assign({},x,{cL1:L,oH3:D})},SRl=function(x,L){var D,S,Q,J,Z;
return _.I(function(y){switch(y.nextAddress){case 1:D=void 0,S=0,Q={};case 2:if(!(S<5)){y.jumpTo(4);break}if(!(S>0)){y.jumpTo(5);break}Q.piW=1E3*Math.pow(2,S-1)+Math.random()*1E3;return y.yield(new Promise(function(E){return function(P){_.TG(_.WW,function(){P(void 0)},E.piW)}}(Q)),5);
case 5:return _.HH(y,7),y.yield(x.xn(L),9);case 9:return J=y.yieldResult,y.return(Jru(J));case 7:D=Z=_.mW(y),Z instanceof Error&&_.qy(Z);case 8:S++;Q={piW:void 0};y.jumpTo(2);break;case 4:throw D;}})},t03=function(x,L){x.nV=L},K_X=function(x){var L,D,S;
return _.I(function(Q){if(Q.nextAddress==1)return Q.yield(Promise.race([x.nV,null]),2);L=Q.yieldResult;var J=xhg(x);x.nV=J;(D=L)==null||(S=D.vm)==null||S.dispose();_.Y2(Q)})},QiX=function(x,L){var D=Date.now()+L,S=function(){var Q;
return _.I(function(J){Q=D-Date.now();return Q<1E3?J.yield(K_X(x),0):(_.TG(_.WW,S,Math.min(Q,6E4)),J.jumpTo(0))})};
S()},Dhq=function(x,L){return new Promise(function(D){_.TG(_.WW,function(){D(L())},x)})};var O2l=function(){};
O2l.prototype.processContext=function(x){var L=_.BQ.instance;if(!L)return _.ue();var D=Tif(x);return D?new H5(L.wMR(D,YQb(x),500).then(function(S){var Q;(x==null?0:(Q=x.innerTubeRequest)==null?0:Q.context)||(x.innerTubeRequest.context={});Q=x.innerTubeRequest.context;Q.request||(Q.request={});Q.request.attestationResponseData=S})):_.ue()};var Z2u=function(x){this.innertubeTransportService=x};
Z2u.prototype.xn=function(x){_.NF("att_fsr",void 0,"attestation_challenge_fetch");return _.MI(this.innertubeTransportService,x,_.KB(_.TKR)).then(function(L){_.NF("att_frr",void 0,"attestation_challenge_fetch");return L})};_.yr9=function(x){this.innertubeTransportService=x};var Ih3=new _.vx("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var EH9=function(){},dhs=function(x,L,D,S,Q){var J=_.$6("YPC_MB_URL");
_.PL0(J).then(function(){MWu(J,x,L,D,S,Q)})},MWu=function(x,L,D,S,Q,J){try{var Z=_.QG.payments.business.integration,y=_.QG.payments.business.integration.Style.create().withMaterialDesignStyle(),E=Z.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.u("enable_window_constrained_buy_flow_dialog")&&(E=E.usingPopupStyle("windowConstrained"));J&&(E=E.usingCloseCallback(J));var P=D?D:_.$6("YPC_GB_LANGUAGE"),v=_.$6("SESSION_INDEX");Z.bootstrap.fromPaymentsUrl(x);Z.bootstrap.asMashupMode(E).usingGaiaIndex(v).usingLocale(P).usingStyle(y).usingDefaultActivityStatusChangeHandler().inStandaloneContext(Z.standaloneContextAuthId.forGaia()).purchaseManager(L,function(V){S&&S(V)}).load(void 0,Q)}catch(V){throw Q&&Q(V),_.BI(V),V;
}};var PGq=new _.vx("PURCHASE_MANAGER_TOKEN");var jiG=function(){var x=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return x.videos},
getContinuationsPresent:function(){return x.continuationsPresent},
setVideos:function(L){x.videos=L},
getRecommendedVideos:function(){return x.recommendedVideos},
setRecommendedVideos:function(L){x.recommendedVideos=L}}};
jiG.prototype.addVideos=function(x){x&&(this.videos=x.filter(function(L){return!!_.RR0(L)}).map(function(L){var D=_.RR0(L);
a:{var S;if(L.playlistVideoRenderer&&((S=L.playlistVideoRenderer)==null?0:S.voteSortTiebreaker))var Q=L.playlistVideoRenderer.voteSortTiebreaker;else{if(_.g(L,xv)){var J;if(S=(Q=_.g(L,xv))==null?void 0:(J=Q.playlistItemData)==null?void 0:J.voteSortTiebreaker){Q=S;break a}}Q=""}}return{itemId:D,videoId:_.lLh(L),voteCount:_.Ums(L),voteSortTiebreaker:Q}}),this.continuationsPresent=!!_.g(x[x.length-1],_.SK))};
var vHg=function(x,L){return x.videos.findIndex(function(D){return D.itemId===L})},VWq=function(x,L){return x.recommendedVideos.findIndex(function(D){return D.itemId===L})},hdY=function(x){x={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:x}}}}};_.yY().resolve(_.E2).resolveCommand(x)};var H2$=function(){jiG.apply(this,arguments)};
_.p(H2$,jiG);
var qZ2=function(x,L,D,S){if(!x.parentElem)throw Error("yi");var Q=vHg(x,L);Q===-1&&(Q=VWq(x,L),Q=Q!==-1?Q+x.videos.length:-1);if(Q===-1)throw Error("zi");var J=Q>=x.videos.length?x.recommendedVideos[Q-x.videos.length]:x.videos[Q];J.voteCount=D;J.voteSortTiebreaker=Date.now().toString();Q>=x.videos.length?x.recommendedVideos.splice(Q-x.videos.length,1):x.videos.splice(Q,1);var Z=x.videos;for(var y=0,E=Z.length-1;y<=E;){var P=Math.floor((y+E)/2);if(Z[P].voteCount<J.voteCount)E=P-1;else if(Z[P].voteCount>J.voteCount)y=
P+1;else{a:{var v=J.voteSortTiebreaker;var V=Z[P].voteSortTiebreaker;if(v.length!==V.length)v=v.length>V.length;else{for(var h=0;h<v.length;h++){var H=v.charCodeAt(h),k=V.charCodeAt(h);if(H>k){v=!0;break a}if(H<k)break}v=!1}}v?E=P-1:y=P+1}}Z=y;if(Z===-1)throw Error("Ai");x.videos.splice(Z,0,J);Q!==Z&&u2s(x,Q,Z,L,D,S)},u2s=function(x,L,D,S,Q,J){var Z,y=(Z=x.parentElem)==null?void 0:Z.children,E=Math.min(L,D),P=Math.max(L,D);
if(y)for(Z=E;Z<=P;Z++)y[Z].style.viewTransitionName="item-"+String(Z);document.startViewTransition(function(){if(x.parentElem){var v=x.parentElem.children;if(!(!v||L<0||L>=v.length||D<0||D>=v.length)){var V=v[L];if(V){V.remove();x.showRefreshPill=D>=x.videos.length-1&&x.continuationsPresent;if(!x.showRefreshPill){v=v[D]||null;var h;(h=x.parentElem)==null||h.insertBefore(V,v)}_.MF(x.parentElem,"yt-update-video-data-voting-animation",{toIdx:D,itemId:S,newVoteCount:Q,voteStatus:J,hideItem:x.showRefreshPill})}}}}).finished.then(function(){if(y)for(var v=
E;v<=P;v++)y[v].style.viewTransitionName="";
if(x.showRefreshPill)hdY(_.p6("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var V;if(V=v=(V=x.parentElem)==null?void 0:V.children[D])V=v.getBoundingClientRect(),v=V.bottom,V=!(V.top>=0&&v<=x.clientHeight);V&&(V=_.mm(L>D?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(L-D)),hdY(V))}})};var pCg=function(x,L){var D=this;x?this.innertubeTransportServicePromise=Promise.resolve(x):L&&(this.innertubeTransportServicePromise=L(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new km(3E3,function(S){return gHl(D,S)},0);
this.validateMiniAppVideoIdRateLimiter=new km(3E3,function(S){return kB9(D,S)},1)},t5h=function(x,L){x.JSC$17228_miniAppId=L;
x.reportMiniAppValueRateLimiter=new km(3E3,function(D){return gHl(x,D)},0);
x.validateMiniAppVideoIdRateLimiter=new km(3E3,function(D){return kB9(x,D)},1)},Lcl=function(x,L){var D;
return _.I(function(S){if(S.nextAddress==1)return S.yield(x.reportMiniAppValueRateLimiter.call(L),2);D=S.yieldResult;return S.return([D,L])})},gHl=function(x,L){var D,S,Q,J,Z,y,E;
return _.I(function(P){switch(P.nextAddress){case 1:return P.yield(x.innertubeTransportServicePromise,2);case 2:return D=P.yieldResult,S=_.KB(US2),Q=Date.now(),J={externalPostId:x.JSC$17228_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(Q/1E3),nanos:Math.round(Q%1E3*1E6)},intValue:""+L}},_.HH(P,3),P.yield(_.MI(D,J,S),5);case 5:Z=P.yieldResult;_.nH(P,4);break;case 3:throw y=_.mW(P),y;case 4:if(Z){if("error"in Z&&Z.error)throw Z.error;if(Z.errorMetadata)throw Error("Bi`"+
Z.errorMetadata.status);if(E=Z.userStatResult)return P.return(E);throw Error("Ci");}throw Error("Di");}})},Sw9=function(x){var L,D,S,Q,J;
_.I(function(Z){switch(Z.nextAddress){case 1:return Z.yield(x.innertubeTransportServicePromise,2);case 2:return L=Z.yieldResult,D=_.KB(US2),S={externalPostId:x.JSC$17228_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.HH(Z,3),Z.yield(_.MI(L,S,D),5);case 5:Q=Z.yieldResult;_.nH(Z,4);break;case 3:throw J=_.mW(Z),J;case 4:if(Q==null)throw Error("Di");if("error"in Q&&Q.error)throw Q.error;if(Q.errorMetadata)throw Error("Bi`"+Q.errorMetadata.status);_.Y2(Z)}})};
pCg.prototype.flush=function(){var x=this;return _.I(function(L){return L.nextAddress==1?L.yield(x.reportMiniAppValueRateLimiter.flush(),2):L.yield(x.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var Df3=function(x,L){return _.I(function(D){return D.nextAddress==1?D.yield(x.validateMiniAppVideoIdRateLimiter.call(L),2):D.return(D.yieldResult)})},kB9=function(x,L){var D,S,Q,J,Z,y;
return _.I(function(E){switch(E.nextAddress){case 1:return E.yield(x.innertubeTransportServicePromise,2);case 2:return D=E.yieldResult,S=_.KB(FJR),Q={videoId:L},_.HH(E,3),E.yield(_.MI(D,Q,S),5);case 5:J=E.yieldResult;_.nH(E,4);break;case 3:throw Z=_.mW(E),Z;case 4:if(J){if("error"in J&&J.error)throw J.error;if(J.errorMetadata)throw Error("Bi`"+J.errorMetadata.status);if(y=J.playabilityStatus)return E.return(y.status);throw Error("Ei");}throw Error("Di");}})};
pCg[IZ]=[_.ZN(_.i1),_.ZN(ybR)];var mhu=function(){this.clientData=new Map};
mhu.prototype.getData=function(x){return this.clientData.get(x)};var b25=function(x){this.store=x};
b25.prototype.handleResponse=function(x){(x=_.g(x.frameworkUpdates,Ds))&&_.b6(x,this.store)};
b25[IZ]=[_.MP];var YRu=new _.vx("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var F_G,si$;_.WQ=new _.vx("FLOW_STATE_MANAGER_TOKEN");F_G=function(){this.flowStates=new Map};
si$=function(x,L){x=_.O(x.flowStates.values());for(var D=x.next();!D.done;D=x.next())if(D=D.value,D.flowRenderer.targetId===L)return D};var TAY=function(x,L){this.JSC$17253_reduxStore=x;this.JSC$17253_flowStateManager=L};
_.p(TAY,jI);
TAY.prototype.resolveCommand=function(x){var L=this,D,S,Q,J,Z,y,E,P,v,V,h,H,k;return _.I(function(T){D=_.g(x,_.fBW);S=D.stepId;Q=D.targetId;J=si$(L.JSC$17253_flowStateManager,Q);y=(Z=J)==null?void 0:Z.flowRenderer;E=y.flowStateEntityKey;P=_.LG(L.JSC$17253_reduxStore.getState(),E);if(!P)return T.return();v=P.currentStepId;H=(h=(V=P)==null?void 0:V.stepIdStack)!=null?h:[];k=v===H[H.length-1]?S:v;L.JSC$17253_reduxStore.dispatch(_.B2("flowStateEntity",E,{currentStepId:S,stepIdStack:[k]},"REPEATED_FIELDS_MERGE_OPTION_APPEND"));_.Y2(T)})};
TAY[IZ]=[_.MP,_.WQ];var ed3=function(x,L,D){this.JSC$17259_reduxStore=x;this.JSC$17259_flowStateManager=L;this.JSC$17259_commandHandler=D};
_.p(ed3,jI);
ed3.prototype.resolveCommand=function(x,L){var D=this,S,Q,J,Z,y,E,P,v,V,h,H,k,T;return _.I(function(G){S=_.g(x,_.ooG);Q=S.targetId;J=si$(D.JSC$17259_flowStateManager,Q);y=(Z=J)==null?void 0:Z.flowRenderer;E=y.flowStateEntityKey;P=_.LG(D.JSC$17259_reduxStore.getState(),E);h=[].concat(_.lP((V=(v=P)==null?void 0:v.stepIdStack)!=null?V:[]));H=h.pop();((k=P)==null?void 0:k.currentStepId)===H&&(H=h[h.length-1]);if(!H)return(T=S.onFirstStepCommand)&&D.JSC$17259_commandHandler.resolveCommand(T,L),G.return();
D.JSC$17259_reduxStore.dispatch(_.B2("flowStateEntity",E,{currentStepId:H,stepIdStack:h}));_.Y2(G)})};
ed3[IZ]=[_.MP,_.WQ,_.E2];var Rdg=function(x,L){this.innertubeTransportService=x;this.JSC$17263_commandHandler=L};
_.p(Rdg,jI);Rdg.prototype.resolveCommand=function(x,L){var D=this,S,Q,J,Z,y;return _.I(function(E){if(E.nextAddress==1){S=_.g(x,aB_);if(!S)return E.return();_.HH(E,2);return E.yield(_.tD(D.innertubeTransportService,x),4)}if(E.nextAddress!=2){Q=E.yieldResult;if(!Q)return E.return();(J=Q.updateFlowCommand)&&D.JSC$17263_commandHandler.resolveCommand(J,L);return _.nH(E,0)}_.mW(E);(y=(Z=S)==null?void 0:Z.onFailureCommand)&&D.JSC$17263_commandHandler.resolveCommand(y,L);_.Y2(E)})};
Rdg[IZ]=[_.i1,_.E2];var qs=function(x,L){this.JSC$17268_flowStateManager=x;this.JSC$17268_commandHandler=L};
_.p(qs,jI);
qs.prototype.resolveCommand=function(x,L){var D=this,S,Q,J,Z;return _.I(function(y){S=_.g(x,_.Xx2);Q=S.targetId;J=si$(D.JSC$17268_flowStateManager,Q);if(!J)return y.return(Promise.resolve());var E=J,P=(Z=S.steps)!=null?Z:[],v,V=(v=E.flowRenderer.steps)!=null?v:[];P=[].concat(_.lP(V),_.lP(P));E.flowRenderer.steps=P;S.flowContinuationCommand&&(J.flowRenderer.flowContinuationCommand=S.flowContinuationCommand);S.entityUpdateCommand&&D.JSC$17268_commandHandler.resolveCommand(S.entityUpdateCommand,L);return y.return(Promise.resolve())})};
qs[IZ]=[_.WQ,_.E2];var GBg={account_advanced:[[0,1,155]],account_box:[[0,1,24],[1,1,24]],account_notifications:[[0,1,155]],account_playback:[[0,1,155]],account_privacy:[[0,1,155]],account_settings:[[0,1,155]],account_sharing:[[0,1,155]],admin_panel_settings:[[1,1,24]],ameba:[[0,1,60]],"arrow-back":[[1,1,24,!0]],"arrow-forward":[[1,1,24,!0]],arrow_drop_down:[[1,1,24]],arrow_drop_up:[[1,1,24]],artwork:[[0,1,140]],bebo:[[0,1,60]],blogger:[[0,1,60]],chrome_icon:[[0,1,192]],collections:[[0,1,24]],countdown_to_close:[[0,
1,100]],countdown_to_close_digit:[[0,1,100]],creation_post:[[0,1,24],[1,1,24]],creator_studio_red_logo:[[0,2,24]],cyworld:[[0,1,60]],dark_theme:[[0,1,24],[1,1,24]],digg:[[0,1,60]],email:[[0,1,60]],embed:[[0,1,60]],emoji_activities:[[0,1,24]],emoji_food:[[0,1,24]],emoji_nature:[[0,1,24]],emoji_symbols:[[0,1,24]],emoji_travel:[[0,1,24]],empty_search:[[0,1,230]],equalizer:[[0,1,24]],face_filled_happy:[[0,1,36]],face_filled_meh:[[0,1,36]],face_filled_sad:[[0,1,36]],face_filled_unhappy:[[0,1,36]],face_filled_very_happy:[[0,
1,36]],face_outlined_happy:[[1,1,36]],face_outlined_meh:[[1,1,36]],face_outlined_sad:[[1,1,36]],face_outlined_unhappy:[[1,1,36]],face_outlined_very_happy:[[1,1,36]],facebook:[[0,1,60]],fotka:[[0,1,60]],g_translate:[[1,1,24]],game_console_dpad:[[0,1,24]],game_console_face_buttons:[[0,1,24]],goo:[[0,1,60]],google:[[0,1,24]],hashtag_landing_page_empty:[[0,1,200]],hashtag_landing_page_empty_dark_mode:[[0,1,200]],hashtag_landing_page_error:[[0,1,300]],hashtag_landing_page_error_dark_mode:[[0,1,300]],hi5:[[0,
1,60]],kakao:[[0,1,60]],"keyboard-arrow-down":[[1,1,24]],"keyboard-arrow-up":[[1,1,24]],language:[[0,1,24],[1,1,24]],library_remove:[[1,1,24]],linkedin:[[0,1,60]],livejournal:[[0,1,60]],member:[[1,2,16]],meneame:[[0,1,60]],mixi:[[0,1,60]],moderator:[[1,1,16]],money_fill:[[0,3,24]],music:[[1,1,24]],myspace:[[0,1,60]],naver:[[0,1,60]],odnoklassniki:[[0,1,60]],offline_download:[[0,1,24]],offline_downloading_eighty:[[0,1,24]],offline_downloading_eighty_updated:[[0,1,24]],offline_downloading_forty:[[0,
1,24]],offline_downloading_forty_updated:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_sixty_updated:[[0,1,24]],offline_downloading_spinner:[[0,1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_twenty_updated:[[0,1,24]],offline_downloading_zero:[[0,1,24]],offline_downloading_zero_updated:[[0,1,24]],offline_no_content:[[0,1,192]],offline_pause:[[1,1,24]],offline_pin:[[0,1,24]],open_in_panel:[[0,1,24]],owner:[[1,1,16]],pinterest:[[0,1,60]],"play-arrow":[[0,1,24]],
play_disabled:[[0,1,24]],premium:[[0,1,14]],premium_standalone:[[0,2,24]],premium_standalone_cairo:[[0,1,24]],"radio-button-unchecked":[[1,1,24]],rakuten:[[0,1,60]],reddit:[[0,2,192]],refresh:[[1,1,24]],schedule_fanzone:[[0,1,100]],screen_light:[[1,1,24]],search_prominent:[[1,1,24]],"shorts-comment":[[0,2,32]],"shorts-dislike":[[0,2,32]],"shorts-like":[[0,2,32]],"shorts-pause":[[0,1,24]],"shorts-share":[[0,2,32]],skyblog:[[0,1,60]],skype:[[0,1,60]],sms:[[0,1,24]],sort:[[0,1,24]],spark:[[0,1,24],[1,
1,24]],spark_search:[[0,1,24]],stumbleupon:[[0,1,60]],subdirectory_arrow_right:[[1,1,24]],tuenti:[[0,1,60]],tumblr:[[0,1,60]],twitter:[[0,3,192]],unplugged_logo:[[0,2,24]],verified:[[1,2,16]],vertical_align_top:[[1,1,24]],video_call:[[0,1,24]],view_module:[[0,1,24],[1,1,24]],vkontakte:[[0,1,60]],"volume-off":[[0,1,24]],"volume-up":[[0,1,24]],watermark:[[0,1,110]],waveform:[[1,1,24]],web_system_activity_dialog:[[0,1,60]],weibo:[[0,1,60]],whatsapp:[[0,1,60]],wykop:[[0,1,60]],yahoo:[[0,1,60]],yahoo_japan:[[0,
1,192]],youtube_community_post:[[0,1,60]],youtube_community_repost:[[0,1,60]],youtube_kids_round:[[0,2,24]],youtube_logo:[[0,1,24]],youtube_music:[[0,2,24]],youtube_round:[[0,2,24]],youtube_shorts_brand_24:[[0,2,24]],youtube_shorts_fill_no_triangle_red_16:[[0,1,16]],"yt-logo-red-updated":[[0,3,24]],"yt-logo-updated":[[0,3,24]]};var CGg=new _.vx("ICON_SET_TOKEN"),lh$=new _.vx("ICON_URL_PROVIDER_TOKEN"),UhW=new _.vx("PREFETCH_ICONS_TOKEN"),wC5=new _.vx("ICON_MAP_FN_TOKEN");var Ah={},BAG=(Ah.ACCESS_TIME="clock",Ah.ACCOUNT_BOX="person_account",Ah.ACCOUNT_BOX_CAIRO="person_account_cairo",Ah.ACCOUNT_CIRCLE="person_circle",Ah.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",Ah.ACCOUNT_LINKED="account_link_success",Ah.ACCOUNT_UNLINKED="account_link",Ah.ADD_FRIEND="people",Ah.ADD_MODERATOR="shield_add",Ah.ADD_TO_LIBRARY="bookmark",Ah.ADD_TO_PLAYLIST="add",Ah.ADD_TO_QUEUE_TAIL="list_queue",Ah.ADD_TO_REMOTE_QUEUE="list_music",Ah.ADD_TO_WATCH_LATER="clock",Ah.ADD_VIDEO_LINK="film_strip_add",
Ah.ALERT_WARN_RED="alert_triangle",Ah.ARROW_BACK="arrow_left",Ah.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",Ah.ARROW_DROP_DOWN="chevron_down",Ah.ARROW_DROP_UP="chevron_up",Ah.ARROW_FORWARD="arrow_right",Ah.AUDIOTRACK="audio",Ah.AUTO_AWESOME="sparkle",Ah.AVATAR_ANONYMOUS="person_circle",Ah.AVATAR_LOGGED_OUT="person_circle",Ah.BACK="arrow_left",Ah.BAR_CHART="bar_graph",Ah.BLOCK="slash_circle_left",Ah.BLOCK_USER="slash_circle_left",Ah.BOOKMARK_BORDER="bookmark",Ah.BREAKING_NEWS_ALT_1="article_alert",
Ah.BROADCAST_CAIRO="podcast_cairo",Ah.BUG_REPORT="bug",Ah.CAMERA_ALT="camera",Ah.CAMPAIGN="megaphone",Ah.CANCEL="x_circle",Ah.CAPTIONS="closed_caption",Ah.CAST_OUTLINE="chromecast",Ah.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",Ah.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",Ah.CHAT="message_bubble_left",Ah.CHAT_BUBBLE="message_bubble_empty",Ah.CHAT_SPARK="spark_message_bubble_left",Ah.CHECK_BOX_OUTLINE_BLANK="box_empty",Ah.CHECK_CIRCLE_OUTLINE="check_circle",Ah.CHECK_CIRCLE_THICK="check_circle",Ah.CLARIFY=
"article_clarify",Ah.CLOSED_CAPTION_SELECTED="closed_caption",Ah.CLOSE="x_mark",Ah.CLOUD_UPLOAD="cloud_arrow_up",Ah.COLLAPSE="chevron_up",Ah.COLLAPSE_CAIRO="chevron_up_cairo",Ah.COLLECTION="layers",Ah.COLOR_LENS="palette",Ah.COMMENT="message_bubble_right",Ah.CONSENT_SHIELD="person_shield",Ah.CONTENT_CUT="scissors",Ah.CONTENT_CUT_CAIRO="scissors_cairo",Ah.COURSE=_.u("web_enable_course_icon_update")?"creator_academy":"lightbulb",Ah.COURSE_CAIRO=_.u("web_enable_course_icon_update")?"creator_academy_cairo":
"lightbulb_cairo",Ah.CREATION_LIVE="radar_live",Ah.CREATION_POST="box_pencil",Ah.CREATION_UPLOAD="my_videos",Ah.CREATION_UPLOAD_RED="upload",Ah.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",Ah.CREATOR_STUDIO="youtube_studio",Ah.DASHBOARD="grid_asymmetrical",Ah.DELETE="trash_can",Ah.DELETE_SWEEP="trash_can",Ah.DESKTOP="laptop",Ah.DISLIKE="thumb_down",Ah.DISLIKE_SELECTED="thumb_down",Ah.DISMISSAL="x_mark",Ah.DISMISS_QUEUE="list_remove",Ah.DONE_ALL="check_double",Ah.DOWN_ARROW="arrow_down",Ah.DO_NOT_DISTURB=
"slash_circle_left",Ah.DRAFT="paper_corner_folded",Ah.DRAG_HANDLE="bars_2",Ah.EDIT="pencil",Ah.EMOJI="face_very_happy",Ah.EMOJI_FLAGS="flag",Ah.EMOJI_OBJECTS="lightbulb",Ah.EMOJI_PEOPLE="face_very_happy",Ah.EMOJI_RECENT="clock",Ah.EMPTY_HEART="heart",Ah.EMPTY_LIKE="thumb_up",Ah.ERROR_BLACK="alert_circle",Ah.ERROR_OUTLINE="alert_circle",Ah.EXIT_APP="arrow_in",Ah.EXIT_TO_APP="arrow_in",Ah.EXPAND="chevron_down",Ah.EXPAND_ALL="chevron_expand",Ah.EXPAND_CAIRO="chevron_down_cairo",Ah.EXPAND_LESS="chevron_up",
Ah.EXPAND_MORE="chevron_down",Ah.EXPLORE="compass",Ah.EXPLORE_DESTINATION="compass",Ah.EXTERNAL_LINK="open_new",Ah.FAB_UPLOAD="upload",Ah.FACE_HAPPY_OUTLINE="face_happy",Ah.FACT_CHECK="article_check",Ah.FASHION_LOGO="fashion",Ah.FASHION_LOGO_CAIRO="fashion_cairo",Ah.FAVORITE="heart",Ah.FEEDBACK="message_bubble_alert",Ah.FEEDBACK_CAIRO="message_bubble_alert_cairo",Ah.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",Ah.FILL_ARROW_SOLID_UP_16="arrow_solid_up",Ah.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",
Ah.FILTER="menu_filter",Ah.FIRST_PAGE="chevron_first",Ah.FLAG="flag",Ah.FULL_HEART="heart",Ah.GAME_CONSOLE_DPAD="game_console_dpad",Ah.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",Ah.GAMING_LOGO="gaming",Ah.GAMING_LOGO_CAIRO="gaming_cairo",Ah.GO_TO_PAGE="arrow_right",Ah.GROUPS="people_group",Ah.HAPPY="face_happy",Ah.HEALTH_AND_SAFETY="shield_plus",Ah.HELP="question_circle",Ah.HELP_CAIRO="question_circle_cairo",Ah.HELP_OUTLINE="question_circle",Ah.HIDE="slash_circle_left",Ah.IMAGE="image",
Ah.INFINITY_ICON="infinity",Ah.INFO="info_circle",Ah.INFO_OUTLINE="info_circle",Ah.INSERT_CHART="bar_graph_box_vertical",Ah.INSERT_CHART_OUTLINED="bar_graph_box_vertical",Ah.INSERT_PHOTO="image",Ah.KEEP="pin",Ah.KEEP_OFF="pin_off",Ah.KEYBOARD="keyboard",Ah.KEYBOARD_ARROW_DOWN="chevron_down",Ah.KEYBOARD_ARROW_UP="chevron_up",Ah.KIDS_BLOCK="slash_circle_left",Ah.LANGUAGE="globe",Ah.LAST_PAGE="chevron_last",Ah.LAUNCH="open_new",Ah.LEARNING="lightbulb",Ah.LEARNING_CAIRO="lightbulb_cairo",Ah.LIBRARY_ADD=
qQb("library_add"),Ah.LIBRARY_OUTLINE="library",Ah.LIBRARY_REMOVE=qQb(),Ah.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",Ah.LIKES_PLAYLIST="thumb_up",Ah.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",Ah.LIKE="thumb_up",Ah.LIKE_SELECTED="thumb_up",Ah.LIVE="radar_live",Ah.LIVE_CAIRO="radar_live_cairo",Ah.LIVE_UNLISTED="link",Ah.LOCATION_ON="location_point",Ah.LOCATION_PIN="location_point",Ah.LOOP="arrow_repeat",Ah.LOOP_ACTIVE="arrow_repeat",Ah.LOOP_ONE="arrow_repeat_1",Ah.LOOP_ONE_ACTIVE="arrow_repeat_1",Ah.MEH=
"face_meh",Ah.MEMBERS_ONLY_MODE_OFF="message_bubble_left",Ah.MESSAGE="message_bubble_left",Ah.MICROPHONE_ON="mic",Ah.MIX="youtube_mix",Ah.MONETIZATION_ON="dollar_sign_circle",Ah.MONEY_FILL="dollar_sign_container",Ah.MONEY_FILL_JPY="yen_sign_container",Ah.MONEY_HEART="dollar_sign_heart",Ah.MORE_HORIZ="overflow_horizontal",Ah.MORE_VERT="overflow_vertical",Ah.MUSIC="audio",Ah.MUSIC_CAIRO="audio_cairo",Ah.MUSIC_NOTE_SYMBOL="music",Ah.MUSIC_SHUFFLE="arrow_shuffle",Ah.MY_CHANNEL="person_circle",Ah.MY_LOCATION=
"location_point",Ah.NEWS_STORY="news",Ah.NEXT="chevron_right",Ah.NOTIFICATIONS="bell",Ah.NOTIFICATIONS_ACTIVE="bell_on",Ah.NOTIFICATIONS_CAIRO="bell_cairo",Ah.NOTIFICATIONS_DONE_CHECKMARK="check",Ah.NOTIFICATIONS_INBOX="bell",Ah.NOTIFICATIONS_NONE="bell",Ah.NOTIFICATIONS_OFF="bell_off",Ah.NOT_INTERESTED="slash_circle_left",Ah.OFFICIAL_ARTIST_BADGE="audio",Ah.OFFLINE_CLOUD="cloud_off",Ah.OFFLINE_DOWNLOAD="download",Ah.OFFLINE_DOWNLOAD_CAIRO="download_cairo",Ah.OFFLINE_PAUSE="pause",Ah.OPEN_IN_NEW=
"open_new",Ah.OUTLINE_ADJUST="adjust",Ah.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",Ah.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",Ah.OUTLINE_BAG="bag",Ah.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",Ah.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",Ah.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",Ah.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",Ah.PAID="dollar_sign",Ah.PAUSE_OUTLINED="pause",Ah.PAYMENT="credit_card",Ah.PERSON_RADAR_FILLED="person_radar",Ah.PHONE_DOWNLOAD="mobile_download",
Ah.PLAYABLES_LOGO="tic_tac_toe",Ah.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",Ah.PLAYLISTS="list_play_arrow",Ah.PLAYLISTS_CAIRO="list_play_arrow_cairo",Ah.PLAYLIST_ADD=qQb("list_add"),Ah.PLAYLIST_ADD_CHECK=qQb("list_check"),Ah.PLAYLIST_PLAY="list_play_arrow",Ah.PLAY_ALL="play_arrow",Ah.PLAY_CIRCLE="play_arrow_circle",Ah.PLAY_OUTLINED="play_arrow_circle",Ah.PRIVACY_INFO="shield",Ah.PRIVACY_PRIVATE="lock",Ah.PRIVACY_PUBLIC="earth",Ah.PRIVACY_UNLISTED="link",Ah.PROMOTE="megaphone",Ah.PURCHASES="price_tag",
Ah.PURCHASE_SUPER_CHAT="super_chat",Ah.PURCHASE_SUPER_STICKER="super_sticker",Ah.QUESTION_ANSWER="message_bubble_question",Ah.QUEUE_PLAY_LAST="list_queue_last",Ah.QUEUE_PLAY_NEXT="list_play_arrow",Ah.REMIX_FILLED="youtube_shorts_remix",Ah.REMOVE="bar_circle",Ah.REMOVE_CIRCLE="bar_circle",Ah.REMOVE_CIRCLE_OUTLINE="bar_circle",Ah.REMOVE_DONE="check_double_off",Ah.REMOVE_FROM_HISTORY="bar_circle",Ah.REMOVE_FROM_PLAYLIST="bar_circle",Ah.REMOVE_MODERATOR="shield_off",Ah.REPLAY="arrow_circle",Ah.REPLAY_10=
"skip_back_10",Ah.REPORT_PROBLEM="alert_triangle",Ah.SAD="face_sad",Ah.SAVE_PLAYLIST="bookmark",Ah.SCHEDULE="clock",Ah.SCHOOL="creator_academy",Ah.SCREEN_FULLSCREEN="screen_full",Ah.SEARCH_HISTORY="arrow_time",Ah.SELL="price_tag",Ah.SETTINGS="gear",Ah.SETTINGS_CAIRO="gear_cairo",Ah.SETTINGS_LIGHT="gear",Ah.SETTINGS_MATERIAL="gear",Ah.SHARE_ARROW="share",Ah.SHIELD_WITH_AVATAR="person_shield",Ah.SHOPPING_BAG="bag",Ah.SHOPPING_BAG_CAIRO="bag_cairo",Ah.SHOPPING_CART="cart",Ah.SHORTS_COMMENT="youtube_shorts_message_bubble_right",
Ah.SHORTS_DISLIKE="youtube_shorts_thumb_down",Ah.SHORTS_LIKE="youtube_shorts_thumb_up",Ah.SHORTS_SHARE="youtube_shorts_share",Ah.SHUFFLE="arrow_shuffle",Ah.SLOW_MODE_OFF="message_bubble_left",Ah.SOCIAL="people",Ah.SORT="menu_sort",Ah.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",Ah.SPEED_1X="1x",Ah.SPEED_1_POINT_2X="1_point_2x",Ah.SPEED_1_POINT_5X="1_point_5x",Ah.SPEED_1_POINT_8X="1_point_8x",Ah.SPEED_2X="2x",Ah.SPEED_POINT_2X="point_2x",Ah.SPEED_POINT_8X="point_8x",Ah.SPONSORSHIP_STAR="star_circle",
Ah.STAFF_PICK="spotlight",Ah.START_DVR="add",Ah.STAR_BORDER="star",Ah.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",Ah.STICKER_EMOTICON="face_happy",Ah.STOP_DVR="stop",Ah.SUBSCRIBE="youtube_logo_icon",Ah.SUBSCRIBE_PLUS="add_cairo",Ah.SUBSCRIPTION_MANAGER="gear",Ah.SUPERVISOR_ACCOUNT="people",Ah.SUPER_CHAT_FOR_GOOD="hands_heart",Ah.SWAP_HORIZ="arrow_swap_horizontal",Ah.SWITCH_ACCOUNTS="person_account",Ah.TAB_ACCOUNT="person",Ah.TAB_ACTIVITY="bell",Ah.TAB_BOOKMARK="bookmark",Ah.TAB_EXPLORE="compass",
Ah.TAB_HOME="home",Ah.TAB_HOME_CAIRO="home_cairo",Ah.TAB_INBOX="mail",Ah.TAB_LIKED="thumb_up",Ah.TAB_MUSIC_PREMIUM="youtube_music",Ah.TAB_SHORTS="youtube_shorts",Ah.TAB_SHORTS_CAIRO="youtube_shorts_cairo",Ah.TAB_SUBSCRIPTIONS="subscriptions",Ah.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",Ah.TAB_TRENDING="fire",Ah.TIMER="stopwatch",Ah.TRAILER="youtube_originals",Ah.TRENDING="fire",Ah.TRENDING_CAIRO="fire_cairo",Ah.TRENDING_UP="rating_up",Ah.TROPHY="trophy",Ah.TROPHY_CELEBRATIONS="fireworks",Ah.TUNE=
"adjust",Ah.UNBLOCK_USER="bar_circle",Ah.UNLIMITED="youtube_logo_icon",Ah.UNPLUGGED_LIVE_GUIDE="radar_live",Ah.UNPLUGGED_SPORTS="eye_off",Ah.UPLOADS="library",Ah.UP_ARROW="arrow_up",Ah.VERTICAL_ALIGN_BOTTOM="download",Ah.VERY_HAPPY="face_very_happy",Ah.VERY_SAD="face_very_sad",Ah.VIDEOGAME_ASSET="gaming",Ah.VIDEOS="play_arrow_circle",Ah.VIDEO_CALL="video_camera_add",Ah.VIDEO_LIBRARY_WHITE="library",Ah.VIDEO_YOUTUBE="youtube_logo_icon",Ah.VIEW_LIST="list_view",Ah.VIEW_LIST_CAIRO="list_view_cairo",
Ah.VISIBILITY="eye",Ah.VISIBILITY_OFF="eye_off",Ah.VOLUME_MUTE="volume_off",Ah.VOLUME_UP="volume_on",Ah.WALLPAPER="image",Ah.WARNING="alert_triangle",Ah.WATCH_HISTORY="arrow_time",Ah.WATCH_HISTORY_CAIRO="arrow_time_cairo",Ah.WATCH_LATER="clock",Ah.WATCH_LATER_CAIRO="clock_cairo",Ah.WATCH_RELATED_MIX="youtube_mix",Ah.WHAT_TO_WATCH="home",Ah.YOUTUBE_MUSIC_MONOCHROME="youtube_music",Ah.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",Ah.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",
Ah.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="youtube_shorts_no_triangle",Ah.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",Ah.YT_OUTLINE_MUSIC_24="music",Ah);var $m={},W_I=($m.ACCESS_TIME="clock",$m.ACCOUNT_BOX="person_square",$m.ACCOUNT_BOX_CAIRO="person_square",$m.ACCOUNT_CIRCLE="person_circle",$m.ACCOUNT_CIRCLE_CAIRO="person_circle",$m.ACCOUNT_LINKED="account_link",$m.ACCOUNT_UNLINKED="account_link",$m.ADD_CIRCLE="add_circle",$m.ADD_CIRCLE_OUTLINE="add_circle",$m.ADD_FRIEND="person_child",$m.ADD_MODERATOR="shield_add",$m.ADD_TO_LIBRARY="bookmark",$m.ADD_TO_PLAYLIST="add",$m.ADD_TO_QUEUE_TAIL="queue",$m.ADD_TO_REMOTE_QUEUE="playlist_audio",$m.ADD_TO_WATCH_LATER=
"clock",$m.ADD_VIDEO_LINK="film_strip_add",$m.ADMIN_PANEL_SETTINGS="person_gear",$m.ALERT_WARN_RED="alert_triangle",$m.ALIGN_LEFT="text_align_left",$m.ARROWS_ALERT="arrow_split_alert",$m.ARROW_BACK="arrow_left",$m.ARROW_CIRCLE="arrow_counterclockwise",$m.ARROW_CIRCLE_PLAY="replay",$m.ARROW_CIRCLE_RIGHT="arrow_clockwise",$m.ARROW_DIAGONAL="arrow_up_left",$m.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",$m.ARROW_DROP_DOWN="triangle_down",$m.ARROW_DROP_UP="triangle_up",$m.ARROW_FORWARD="arrow_right",$m.ARROW_PAUSE=
"pause_history",$m.ARROW_UNDO="undo",$m.ARTICLE="text_page",$m.ARTICLE_ALERT="text_page_alert",$m.ARTICLE_CHECK="text_page_check",$m.ARTICLE_CLARIFY="text_page_info",$m.AUDIOTRACK="audio",$m.AUDIO_BADGE="audio_badge",$m.AUDIO_SURROUND="surround_sound",$m.AUTO_AWESOME="sparkles",$m.AVATAR_ANONYMOUS="person_circle",$m.AVATAR_LOGGED_OUT="person_circle",$m.BACK="arrow_left",$m.BAR_CHART="chart_bar",$m.BAR_CIRCLE="minus_circle",$m.BAR_HORIZONTAL="minus",$m.BLOCK="circle_slash",$m.BLOCK_USER="circle_slash",
$m.BOOKMARK_BORDER="bookmark",$m.BOX_OPEN_CHECK="quiz",$m.BOX_PENCIL="square_pencil",$m.BOX_STACK_3="square3_stack",$m.BREAKING_NEWS_ALT_1="text_page_alert",$m.BROADCAST="podcast",$m.BROADCAST_CAIRO="podcast",$m.BUG_REPORT="bug",$m.CAMERA_ALT="camera",$m.CAMPAIGN="megaphone",$m.CANCEL="x_circle",$m.CAPTIONS="closed_captions",$m.CAST_ICON="chromecast",$m.CAST_OUTLINE="chromecast",$m.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",$m.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",$m.CHAT="text_bubble",
$m.CHAT_BUBBLE="bubble",$m.CHECK_BOX="check_square",$m.CHECK_BOX_OUTLINE_BLANK="square",$m.CHECK_CIRCLE_FILLED="check_circle",$m.CHECK_CIRCLE_OUTLINE="check_circle",$m.CHECK_CIRCLE_THICK="check_circle",$m.CHECK_DOUBLE="check_done",$m.CHECK_DOUBLE_OFF="check_done_slash",$m.CHEVRON_LEFT="chevron_left",$m.CHEVRON_RIGHT="chevron_right",$m.CHEVRON_RIGHT_CAIRO="chevron_right",$m.CIRCLES_OVERLAP="account_link",$m.CLAPPERBOARD_CAIRO="clapperboard",$m.CLARIFY="text_page_info",$m.CLOCK_ARROWS="clock_split",
$m.CLOCK_ARROWS_ALERT="clock_split_alert",$m.CLOSED_CAPTION="closed_captions",$m.CLOSED_CAPTION_SELECTED="closed_captions",$m.CLOSE="x",$m.CLOUD_UPLOAD="cloud_arrow_up",$m.COLLAPSE="chevron_up",$m.COLLAPSE_CAIRO="chevron_up",$m.COLLECTION="square3d_stack",$m.COLOR_LENS="paint_palette",$m.COMMENT="text_bubble",$m.CONSENT_SHIELD="person_shield",$m.CONTENT_CUT="scissors",$m.CONTENT_CUT_CAIRO="scissors",$m.COURSE="graduation_cap",$m.COURSE_CAIRO="graduation_cap",$m.CREATION_LIVE="live",$m.CREATION_POST=
"square_pencil",$m.CREATION_UPLOAD="video",$m.CREATION_UPLOAD_RED="upload",$m.CREATOR_ACADEMY="graduation_cap",$m.CREATOR_STUDIO="youtube_studio",$m.DARK_THEME="theme",$m.DELETE="trash_can",$m.DELETE_SWEEP="trash_can",$m.DESKTOP="laptop",$m.DISLIKE="thumb_down",$m.DISLIKE_SELECTED="thumb_down",$m.DISMISSAL="x",$m.DISMISS_QUEUE="playlist_x",$m.DOGFOOD="pawprint",$m.DOLLAR_SIGN="dollar_sign_circle",$m.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",$m.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",$m.DOWN_ARROW=
"arrow_down",$m.DO_NOT_DISTURB="circle_slash",$m.DRAFT="document",$m.DRAG_HANDLE="equal",$m.EARTH="globe",$m.EDIT="pencil",$m.EMOJI="face_very_happy",$m.EMOJI_FLAGS="flag",$m.EMOJI_OBJECTS="lightbulb",$m.EMOJI_PEOPLE="face_very_happy",$m.EMOJI_RECENT="clock",$m.EMPTY_HEART="heart",$m.EMPTY_LIKE="thumb_up",$m.ERROR_BLACK="alert_circle",$m.ERROR_OUTLINE="alert_circle",$m.ERROR_WHITE="alert_circle",$m.EXIT_APP="arrow_in",$m.EXIT_TO_APP="arrow_in",$m.EXPAND="chevron_down",$m.EXPAND_ALL="chevron_expand",
$m.EXPAND_CAIRO="chevron_down",$m.EXPAND_LESS="chevron_up",$m.EXPAND_MORE="chevron_down",$m.EXPLORE="compass",$m.EXPLORE_DESTINATION="compass",$m.EXTERNAL_LINK="arrow_up_right",$m.EYE_OFF="eye_slash",$m.FAB_UPLOAD="upload",$m.FACE_HAPPY_OUTLINE="face_happy",$m.FACE_MEH="face_neutral",$m.FACT_CHECK="text_page_check",$m.FASHION_LOGO="fashion",$m.FASHION_LOGO_CAIRO="fashion",$m.FAVORITE="thumb_up",$m.FEEDBACK="alert_bubble",$m.FEEDBACK_CAIRO="alert_bubble",$m.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",
$m.FILL_ARROW_SOLID_UP_16="arrow_solid_up",$m.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",$m.FLAG_CAIRO="flag",$m.FLASH_OFF="flash_slash",$m.FLASH_ON="flash",$m.FULL_HEART="heart",$m.GAMING_LOGO="gaming",$m.GAMING_LOGO_CAIRO="gaming",$m.GO_TO_PAGE="arrow_right",$m.GROUPS="person3",$m.HAND_SWIPE_LEFT="gesture_swipe_left",$m.HAND_SWIPE_RIGHT="gesture_swipe_right",$m.HAPPY="face_happy",$m.HEALTH_AND_SAFETY="shield_health",$m.HEART_BOX="heart_cube",$m.HELP="help_circle",$m.HELP_CAIRO="help_circle",
$m.HELP_OUTLINE="help_circle",$m.HIDE="circle_slash",$m.INCOGNITO_CAIRO="incognito",$m.INFINITY_ICON="infinity",$m.INFO="info_circle",$m.INFO_OUTLINE="info_circle",$m.INSERT_CHART="chart_bar_square",$m.INSERT_CHART_OUTLINED="chart_bar_square",$m.INSERT_PHOTO="image",$m.KEEP="pin",$m.KEEP_OFF="pin_slash",$m.KEYBOARD="keyboard",$m.KEYBOARD_ARROW_DOWN="chevron_down",$m.KEYBOARD_ARROW_UP="chevron_up",$m.KIDS_BLOCK="circle_slash",$m.LANGUAGE="globe",$m.LAUNCH="arrow_up_right",$m.LEARNING="lightbulb",$m.LEARNING_CAIRO=
"lightbulb",$m.LIBRARY_ADD="bookmark",$m.LIBRARY_IMAGE="image_stack",$m.LIBRARY_MUSIC="audio_square_stack",$m.LIBRARY_OUTLINE="play_square_stack",$m.LIBRARY_REMOVE="bookmark",$m.LIBRARY_SAVED="check_square_stack",$m.LIKES_PLAYLIST="thumb_up",$m.LIKES_PLAYLIST_CAIRO="thumb_up",$m.LIKE="thumb_up",$m.LIKE_SELECTED="thumb_up",$m.LIST_QUEUE="queue",$m.LIVE_CAIRO="live",$m.LIVE_UNLISTED="link",$m.LOCATION_ON="location_pin",$m.LOCATION_PIN="location_pin",$m.LOCATION_POINT="location_pin",$m.LOOP="repeat",
$m.LOOP_ACTIVE="repeat",$m.LOOP_ONE="repeat1",$m.LOOP_ONE_ACTIVE="repeat1",$m.MEET="google_meet",$m.MEH="face_neutral",$m.MEMBERSHIPS="memberships",$m.MEMBERS_ONLY_MODE_OFF="text_bubble",$m.MENU_FILTER="filter",$m.MESSAGE="text_bubble",$m.MESSAGE_BUBBLE_GEAR="bubble_gear",$m.MESSAGE_BUBBLE_LEFT="text_bubble",$m.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",$m.MESSAGE_BUBBLE_OVERLAP="bubble_stack",$m.MESSAGE_BUBBLE_QUESTION="help_bubble",$m.MICROPHONE_ON="mic",$m.MONETIZATION_ON="dollar_sign_circle",
$m.MONEY_FILL="dollar_sign_rectangle",$m.MONEY_FILL_JPY="yen_sign_rectangle",$m.MONEY_HAND="dollar_sign_circle_hand",$m.MONEY_HEART="dollar_sign_heart",$m.MOON_Z="sleep_timer",$m.MORE_HORIZ="overflow_horizontal",$m.MORE_VERT="overflow_vertical",$m.MUSIC="audio",$m.MUSIC_CAIRO="audio",$m.MUSIC_EXPLICIT_BADGE="explicit",$m.MUSIC_NEW_RELEASE="audio_badge",$m.MUSIC_NOTE_SYMBOL="audio",$m.MUSIC_SCISSORS="audio_scissors",$m.MUSIC_SHUFFLE="shuffle",$m.MY_CHANNEL="person_circle",$m.MY_LOCATION="location_pin",
$m.MY_VIDEOS="video",$m.MY_VIDEOS_CAIRO="video",$m.NEWS_CAIRO="news",$m.NEWS_STORY="news",$m.NEXT="chevron_right",$m.NOTE_ADD="bubble_pencil",$m.NOTIFICATIONS="bell",$m.NOTIFICATIONS_ACTIVE="bell_waves",$m.NOTIFICATIONS_CAIRO="bell",$m.NOTIFICATIONS_DONE_CHECKMARK="check",$m.NOTIFICATIONS_INBOX="bell",$m.NOTIFICATIONS_NONE="bell",$m.NOTIFICATIONS_OFF="bell_slash",$m.NOT_INTERESTED="circle_slash",$m.OFFICIAL_ARTIST_BADGE="audio",$m.OFFLINE_CLOUD="cloud_slash",$m.OFFLINE_DOWNLOAD="download",$m.OFFLINE_DOWNLOAD_CAIRO=
"download",$m.OFFLINE_PAUSE="pause",$m.OPEN_IN_NEW="arrow_up_right",$m.OUTLINE_ADJUST="adjust",$m.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",$m.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",$m.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",$m.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",$m.OUTLINE_BAG="bag",$m.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_dashed",$m.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",$m.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",$m.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",$m.PAID=
"dollar_sign_circle",$m.PAUSE_OUTLINED="pause",$m.PAYMENT="credit_card",$m.PEOPLE="person_child",$m.PEOPLE_2="person2_rectangle",$m.PEOPLE_GROUP="person3",$m.PEOPLE_NOTE="bubble_asterisk",$m.PERSON_2="person2",$m.PERSON_ACCOUNT="person_square_stack",$m.PERSON_MINUS="person_x",$m.PERSON_MUSIC="person_audio",$m.PERSON_RADAR="person_waves",$m.PERSON_RADAR_FILLED="person_waves",$m.PERSON_SETTING="person_gear",$m.PHONE="phone",$m.PHONE_DOWNLOAD="mobile_arrow_down",$m.PICTURE_IN_PICTURE="picture_in_picture",
$m.PLAYABLES_LOGO="playables",$m.PLAYABLES_LOGO_CAIRO="playables",$m.PLAYLISTS="playlist",$m.PLAYLISTS_CAIRO="playlist",$m.PLAYLIST_ADD_CHECK="bookmark",$m.PLAY_ALL="play",$m.PLAY_ARROW="play",$m.PLAY_ARROW_CIRCLE="play_circle",$m.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",$m.PLAY_CIRCLE="play_circle",$m.PLAY_OUTLINED="play_circle",$m.PODCAST_ADD="podcast_add",$m.PODCAST_CHECK="podcast_check",$m.PRIVACY_INFO="shield_x",$m.PRIVACY_PRIVATE="lock",$m.PRIVACY_PUBLIC="globe",$m.PRIVACY_UNLISTED=
"link",$m.PROMOTE="megaphone",$m.PURCHASES="price_tag",$m.PURCHASE_SUPER_CHAT="super_chat",$m.PURCHASE_SUPER_STICKER="super_sticker",$m.QUESTION_ANSWER="help_bubble",$m.QUESTION_CIRCLE="help_circle",$m.QUEUE_PLAY_LAST="queue_last",$m.QUEUE_PLAY_NEXT="queue_next",$m.QUOTATION_MARK="quote",$m.RADAR_LIVE="live",$m.REMOVE="minus_circle",$m.REMOVE_CIRCLE="minus_circle",$m.REMOVE_CIRCLE_OUTLINE="minus_circle",$m.REMOVE_FROM_HISTORY="minus_circle",$m.REMOVE_FROM_PLAYLIST="minus_circle",$m.REMOVE_MODERATOR=
"shield_slash",$m.REPLAY="arrow_counterclockwise",$m.REPLAY_10="skip10_back",$m.REPLAY_ARROW="replay",$m.REPORT_PROBLEM="alert_triangle",$m.RSS_OFF="rss_slash",$m.SAD="face_sad",$m.SAVE_PLAYLIST="bookmark",$m.SCHEDULE="clock",$m.SCHOOL="graduation_cap",$m.SCREEN_DEFAULT="player_default",$m.SCREEN_FULLSCREEN="player_full_enter",$m.SCREEN_LIGHT="ambient_mode",$m.SCREEN_ROTATION="rotate_portrait",$m.SCREEN_SWITCH="player_switch",$m.SCREEN_THEATRE="player_theater",$m.SEARCH_CAIRO="search",$m.SEARCH_HISTORY=
"history",$m.SELL="price_tag",$m.SETTINGS="gear",$m.SETTINGS_CAIRO="gear",$m.SETTINGS_LIGHT="gear",$m.SETTINGS_MATERIAL="gear",$m.SETTINGS_REMOTE="remote_waves",$m.SHARE="share",$m.SHARE_ARROW="share",$m.SHARE_CAIRO="share",$m.SHIELD="shield_x",$m.SHIELD_OFF="shield_slash",$m.SHIELD_WITH_AVATAR="person_shield",$m.SHOPPING_BAG="bag",$m.SHOPPING_BAG_CAIRO="bag",$m.SHOPPING_CART="cart",$m.SHORTS_COMMENT="text_bubble",$m.SHORTS_DISLIKE="thumb_down",$m.SHORTS_LIKE="thumb_up",$m.SHORTS_SHARE="share",$m.SKIP_FORWARD_30=
"skip30_forward",$m.SLASH_CIRCLE_RIGHT="circle_slash",$m.SLOW_MODE="bubble_slow",$m.SLOW_MODE_OFF="text_bubble",$m.SOCIAL="person_child",$m.SPARKLE="sparkles",$m.SPARK_IMAGE="image_spark",$m.SPARK_RADAR="spark_waves",$m.SPARK_VIDEO="video_spark",$m.SPEAKER_GROUP="speaker_stack",$m.SPEAKER_OFF="speaker_slash",$m.SPEED_1X="n1x",$m.SPEED_1_POINT_2X="n1point2x",$m.SPEED_1_POINT_5X="n1point5x",$m.SPEED_1_POINT_8X="n1point8x",$m.SPEED_2X="n2x",$m.SPONSORSHIP_STAR="star_circle",$m.SPORTS="basketball",$m.SPOTLIGHT=
"spotlight",$m.STAFF_PICK="spotlight",$m.START_DVR="add",$m.STAR_BORDER="star",$m.STAR_CIRCLE_RIBBON="memberships_gift",$m.STAR_HALF="star_half_filled",$m.STAR_SHOOTING="hype",$m.STICKER="sticker",$m.STICKER_EMOTICON="face_happy",$m.STOP_DVR="stop",$m.SUBSCRIBE="youtube",$m.SUBSCRIBE_PLUS="add",$m.SUBSCRIPTION_MANAGER="gear",$m.SUPERSTAR="super_star",$m.SUPERVISOR_ACCOUNT="person_child",$m.SUPER_CHAT_FOR_GOOD="hands_heart",$m.SWAP_HORIZ="arrow_swap_horizontal",$m.SWITCH_ACCOUNTS="person_square_stack",
$m.TAB_ACCOUNT="person",$m.TAB_ACTIVITY="bell",$m.TAB_BOOKMARK="bookmark",$m.TAB_EXPLORE="compass",$m.TAB_HOME="home",$m.TAB_HOME_CAIRO="home",$m.TAB_INBOX="mail",$m.TAB_LIKED="thumb_up",$m.TAB_MUSIC_PREMIUM="youtube_music",$m.TAB_SHORTS="shorts",$m.TAB_SHORTS_CAIRO="shorts",$m.TAB_SUBSCRIPTIONS="subscriptions",$m.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",$m.TAB_TRENDING="trending",$m.TARGET="target",$m.TARGET_ADD="target_add",$m.TEMPLATE_ADD="template_add",$m.TEXT="font",$m.TIMER="stopwatch",$m.TRENDING_CAIRO=
"trending",$m.TRENDING_UP="arrow_trend_up",$m.TROPHY_CAIRO="trophy",$m.TROPHY_CELEBRATIONS="fireworks",$m.TROPHY_STAR="star_trophy",$m.TUNE="adjust",$m.TV_OFF="tv_slash",$m.UNBLOCK_USER="minus_circle",$m.UNFAVORITE="thumb_down",$m.UNLIMITED="youtube",$m.UNPLUGGED_LIVE_GUIDE="live",$m.UNPLUGGED_SPORTS="eye_slash",$m.UPLOADS="play_square_stack",$m.UP_ARROW="arrow_up",$m.VERTICAL_ALIGN_BOTTOM="chevron_down_end",$m.VERTICAL_ALIGN_TOP="chevron_up_end",$m.VERY_HAPPY="face_very_happy",$m.VERY_SAD="face_very_sad",
$m.VIDEOS="play_circle",$m.VIDEO_CALL="video_camera_add",$m.VIDEO_LIBRARY_WHITE="play_square_stack",$m.VIDEO_QUALITY_4K="n4k",$m.VIDEO_QUALITY_8K="n8k",$m.VIDEO_YOUTUBE="youtube",$m.VIEW_LIST_CAIRO="view_list",$m.VIEW_MODULE="view_column3_row2",$m.VISIBILITY="eye",$m.VISIBILITY_OFF="eye_slash",$m.VOLUME_DOWN="volume_min",$m.VOLUME_MUTE="volume_mute",$m.VOLUME_OFF="volume_mute",$m.VOLUME_STABLE="stable_volume",$m.VOLUME_UP="volume_max",$m.WALLPAPER="image",$m.WARNING="alert_triangle",$m.WATCH_HISTORY=
"history",$m.WATCH_HISTORY_CAIRO="history",$m.WATCH_LATER="clock",$m.WATCH_LATER_CAIRO="clock",$m.WATCH_RELATED_MIX="mix",$m.WHAT_TO_WATCH="home",$m.YOUTUBE_LINKED_TV="tv_mobile",$m.YOUTUBE_MUSIC_MONOCHROME="youtube_music",$m.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",$m.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",$m.YOUTUBE_SHORTS_ARROW_UP="arrow_up",$m.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",$m.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",$m.YOUTUBE_SHORTS_OUTLINE_24="shorts",
$m);var qR$={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,3,24],[1,3,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,4,24]],account_link:[[1,8,24]],account_link_error:[[1,6,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,9,16],[1,9,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,6,24],
[1,6,36]],add_half_circle:[[1,2,24]],adjust:[[0,9,24],[1,9,18],[1,9,24]],airplane:[[0,5,24],[1,5,20],[1,5,24]],airplay:[[1,6,16],[1,6,24]],airplay_off:[[1,1,24]],album:[[0,8,24],[1,8,24]],alert_circle:[[0,10,24],[1,10,16],[1,10,24]],alert_triangle:[[0,10,12],[0,10,24],[1,10,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,
36],[1,1,48]],arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,3,24],[1,3,24]],arrow_down_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrow_flip:[[1,10,16],[1,10,18],[1,10,24]],arrow_flip_dollar_sign:[[1,2,24]],arrow_in:[[0,8,24],[1,8,24]],arrow_left:[[1,
8,24,!0]],arrow_left_cairo:[[1,2,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[0,2,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,3,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_solid_up:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_split:[[0,3,24],[1,3,24]],arrow_swap_horizontal:[[0,5,24],[1,5,18],
[1,5,24]],arrow_time:[[0,8,24],[1,8,24]],arrow_time_cairo:[[0,2,24],[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,3,24],[1,3,24]],arrow_up_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,14,12],[0,14,16],[0,14,18],[0,14,24],[1,14,18],[1,14,24]],audio_badge:[[0,3,12],[0,3,16],[0,3,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,
1,24],[1,1,24]],background:[[1,1,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,12],[0,7,18],[0,7,24],[1,7,18],[1,7,24]],bag_bookmark:[[1,2,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,
2,24]],blur:[[1,2,24]],book:[[1,3,24]],bookmark:[[0,9,24],[1,9,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],box_stack_3:[[0,1,24],[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,
24]],brightness:[[0,3,24],[1,3,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,3,24],[1,3,24]],business:[[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],camera:[[0,10,24],[1,10,24]],camera_audio:[[1,5,24]],camera_effects:[[1,4,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,12],[0,3,16],[0,3,24]],cart:[[0,4,24],[1,4,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],check:[[0,
13,12],[0,13,16],[0,13,24],[1,13,16],[1,13,24]],check_circle:[[0,10,18],[0,10,24],[1,10,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,3,24]],chevron_expand:[[1,5,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,9,16,!0],[1,9,18,!0],[1,9,24,!0]],chevron_left_circle:[[0,3,24]],chevron_left_ios:[[1,2,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,
7,16,!0],[0,7,18,!0],[0,7,24,!0],[1,7,16,!0],[1,7,18,!0],[1,7,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,3,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,8,16],[1,8,18],[1,8,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,3,24]],chromecast:[[0,10,24],[1,10,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,
2,24]],circle:[[0,7,24],[1,7,24]],circle_full:[[0,2,24]],circle_half_full:[[1,1,24]],circles_6:[[0,1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,10,24],[1,10,16],[1,10,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,
6,24],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_off:[[1,2,24]],code:[[1,2,24]],compass:[[0,8,24],[1,8,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,3,24]],copyright:[[0,4,24],[1,4,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,4,24]],crop:[[1,3,16],[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,16],[0,5,24],[1,5,12],[1,5,16],[1,5,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,
1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,3,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,11,16],[0,11,24],[1,11,16],[1,11,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,16],[1,23,24]],dollar_sign_off:[[1,3,24]],download:[[0,11,24],[1,11,16],[1,11,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,24]],downloading:[[1,5,
24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,7,18],[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_off:[[1,4,24]],eyedropper:[[1,2,24]],face_add:[[1,1,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[0,
9,36],[1,9,24],[1,9,36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],fashion:[[0,4,24],[1,4,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[0,3,24],[1,3,24]],fast_forward:[[0,5,24]],film_strip:[[0,7,24],
[1,7,24]],film_strip_add:[[1,2,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,8,24],[1,8,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,18],[0,5,24],[1,5,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,4,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,4,16],[0,4,24],[1,
4,24]],football:[[0,4,24],[1,4,24]],gaming:[[0,3,24],[1,3,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,9,24],[1,9,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[0,5,24],[1,5,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],globe_image:[[0,2,24],[0,2,36],[1,2,24],[1,2,36]],glow:[[1,2,24]],google_lens:[[1,4,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,1,24],[1,1,24]],hand:[[1,2,24]],hand_long_press:[[0,
3,24],[1,3,24]],hand_pinch_in:[[1,2,24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,18,13],[0,18,24],[1,18,16],[1,18,24]],heart_box:[[1,1,24]],heart_circle:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],heart_off:[[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],home:[[0,9,24],[1,9,24]],home_cairo:[[0,
2,24],[1,2,24]],hourglass:[[1,3,16],[1,3,24]],image:[[0,8,24],[1,8,24]],image_add:[[1,4,24]],image_wallpaper:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,2,24]],info_circle:[[1,10,16],[1,10,18],[1,10,20],[1,10,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,2,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],
library:[[0,6,24],[1,6,24]],library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,6,24]],lightbulb:[[0,4,12],[0,4,24],[1,4,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,8,18],[1,8,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,
3,24],[1,3,24]],list_queue_next:[[1,1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,12],[1,13,16],[1,13,18],[1,13,24]],lock_open:[[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],math_add:[[0,3,24]],math_and:[[0,3,24]],math_divide:[[0,
3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,3,24]],math_greater_than:[[0,3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,1,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],meet:[[1,1,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,12],[0,9,16],[0,9,18],[0,9,24],[1,9,24]],mention:[[1,5,16],[1,5,24]],menu_filter:[[0,1,24],[1,
1,24]],menu_sort:[[1,4,24]],message_bubble_alert:[[0,6,24],[1,6,24]],message_bubble_alert_cairo:[[1,2,24]],message_bubble_empty:[[1,1,24]],message_bubble_gear:[[1,1,24]],message_bubble_left:[[0,1,24],[1,1,24]],message_bubble_left_boost:[[1,1,24]],message_bubble_left_off:[[1,1,16],[1,1,24]],message_bubble_overlap:[[0,7,24],[1,7,24]],message_bubble_question:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],message_bubble_right:[[0,14,24],[0,14,32],[1,14,16],[1,14,24]],message_bubble_right_caption:[[1,1,24]],mic:[[0,
13,24],[1,13,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,1,24]],mobile:[[0,4,24],[1,4,24]],mobile_check:[[1,2,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,3,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,1,24],[1,1,24]],motion:[[1,2,24]],move:[[1,2,24]],music:[[0,6,24],[1,6,16],[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,3,24]],music_shape:[[1,
3,24]],music_video:[[1,4,24]],music_video_off:[[1,1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,3,24],[1,3,12],[1,3,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],note_add:[[1,1,16],[1,1,24]],note_spark:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,6,24],[1,6,32]],overflow_vertical:[[1,13,24]],overflow_vertical_cairo:[[1,1,
24]],paint_bucket:[[1,3,24]],palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,9,24]],pause_circle:[[0,2,12],[0,2,16],[0,2,24]],pdf:[[1,2,24]],pencil:[[1,9,16],[1,9,18],[1,9,24]],people:[[0,6,12],[0,6,24],[1,6,24]],people_2:[[0,1,24],[1,1,24]],people_group:[[0,4,24],[1,4,16],[1,4,24]],people_note:[[0,1,18],[0,1,24],[1,1,24]],person:[[0,6,12],[0,6,13],[0,6,16],[0,6,24],[0,6,48],[1,6,13],[1,6,16],[1,6,24]],person_2:[[1,
1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,1,24]],person_add:[[1,7,24]],person_box:[[1,5,24]],person_circle:[[0,10,24],[1,10,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,2,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,7,12],[0,7,24],[1,7,16],[1,7,18],[1,7,24]],person_setting:[[1,6,24]],person_shield:[[1,7,24]],person_waveform:[[1,2,24]],phone:[[0,3,24],[1,3,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_combine:[[1,
1,24]],pin:[[0,7,12],[0,7,24],[1,7,16],[1,7,24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,6,24],[1,6,12],[1,6,16],[1,6,18],[1,6,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,9,16],[1,9,24],[1,9,40]],pound:[[1,3,24]],presentation:[[1,
2,24]],presentation_remove:[[1,1,24]],price_tag:[[0,8,12],[0,8,24],[1,8,24]],price_tag_heart:[[1,2,24]],qr_code:[[1,3,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[1,2,24]],quotation_mark:[[0,1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,2,24]],remix:[[1,2,16],[1,2,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,
1,24]],rotate_90_clockwise:[[1,2,24]],rss:[[1,2,16],[1,2,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,2,12],[1,2,16],[1,2,18],[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,12],[0,8,24],[1,8,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,4,16],[1,4,18],[1,4,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_cairo:[[1,1,24]],screen_full_exit:[[1,6,24]],screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,
1,24],[0,1,48],[1,1,24],[1,1,48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,1,24],[1,1,24]],screen_theatre:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],screen_x:[[1,2,24]],sd:[[0,3,24],[1,3,24]],search:[[0,15,24],[1,15,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,
2,24]],shadow_soft:[[0,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[0,12,32,!0],[1,12,16,!0],[1,12,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,2,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,6,24]],shield_add:[[1,2,24]],shield_check:[[1,1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,2,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,
1,24]],shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,5,24]],skip_forward_10:[[0,1,24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,
1,24]],skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,7,24]],skip_previous:[[0,6,24]],skip_up:[[0,5,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,3,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,2,24]],spark:[[0,9,12],[0,9,16],[0,9,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[1,2,24]],spark_message_bubble:[[1,4,16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,
2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_text:[[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,2,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],speaker_headset:[[1,2,24]],speaker_off:[[1,1,24]],split:[[1,4,24]],sports:[[0,1,24]],spotlight:[[0,3,24],[1,3,24]],star:[[0,6,12],[0,6,16],[0,6,24],[1,6,12],[1,6,16],[1,6,24]],star_circle:[[0,6,12],[0,6,16],[0,6,18],[0,6,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],
[1,1,16],[1,1,20],[1,1,24],[1,1,36]],star_half:[[0,2,16],[0,2,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,2,24]],stop:[[0,4,24]],stopwatch:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,11,24],[1,11,18],[1,11,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,4,12],[0,4,24],[1,4,24]],super_chat:[[1,8,18],[1,8,24]],super_sticker:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],super_store:[[1,3,24]],superstar:[[1,
1,24]],tablet:[[1,1,24]],target:[[0,2,24],[1,2,16],[1,2,24]],target_add:[[0,2,24],[1,2,16],[1,2,24]],template_add:[[1,3,16],[1,3,24]],template_play:[[0,3,24],[1,3,24]],text:[[0,9,24],[1,9,16],[1,9,18],[1,9,24]],text_bell_cairo:[[1,1,12],[1,1,16],[1,1,18],[1,1,24]],text_bold:[[1,1,24]],text_box:[[1,5,24]],text_italic:[[1,1,24]],text_outline:[[1,2,24]],text_preset:[[1,1,24]],text_serif:[[1,1,24]],text_shadow:[[1,2,24]],text_strikethrough:[[1,1,24]],text_underline:[[1,1,24]],theme_switch:[[0,1,24],[1,
1,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,16],[0,24,24],[0,24,36],[1,24,16],[1,24,24],[1,24,36]],thumb_up:[[0,22,16],[0,22,24],[0,22,36],[1,22,16],[1,22,24],[1,22,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,3,24],[1,3,24]],tic_tac_toe:[[0,4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],ticket_star:[[1,1,24]],tilt:[[1,4,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,3,24]],toolbox:[[1,4,24]],transcript:[[1,2,16],[1,2,24]],transcript_search:[[1,1,16],[1,1,24]],
transition:[[0,5,24],[1,5,24]],translate:[[1,4,16],[1,4,24]],trash_can:[[1,10,16],[1,10,18],[1,10,24]],triangle_down:[[1,7,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,3,24],[1,3,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,12],[0,8,16],[0,8,24],[1,8,16],[1,8,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_dollar_sign:[[0,1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,
24]],upload:[[1,5,24]],uploading:[[1,1,24]],variable:[[1,4,24]],verified_circle:[[1,4,24]],video_camera:[[0,9,24],[1,9,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,5,16],[1,5,24]],video_spark:[[1,2,24]],video_stitch:[[1,2,24]],video_waveform:[[1,1,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,2,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],volume_stable:[[0,1,24],[1,1,24]],vr:[[0,7,24],[1,7,24]],waveform:[[1,3,24]],waveform_music:[[0,2,18],
[0,2,24],[0,2,48]],waveform_spark:[[1,2,24]],wrench:[[0,3,24],[1,3,24]],x:[[1,11,18],[1,11,24]],x_cairo:[[1,1,24]],x_circle:[[0,9,24],[1,9,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,2,24]],yen_sign_container:[[0,2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,6,24],[1,6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,6,24],[1,6,24]],
youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],youtube_shorts_heart:[[0,2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,4,32],[1,4,16],
[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],[0,2,32]],youtube_shorts_waveform:[[1,2,18],[1,2,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[0,2,24],[1,2,24]]};var Arg={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,9,18],[1,9,24]],add_circle:[[0,6,18],[0,6,24],[1,6,24],[1,6,36]],add_square_stack:[[1,1,24]],add_tv:[[1,1,24]],add_tv_chevron_right:[[1,1,24]],adjust:[[0,9,24],[1,9,24]],airplane:[[0,5,24],[0,5,48],[1,5,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,8,24],[1,8,18],[1,8,24],[1,8,48]],alert_bubble:[[1,2,18],[1,2,24]],alert_circle:[[0,10,24],[1,10,24],[1,10,48]],alert_octagon:[[0,
2,24],[1,2,24]],alert_triangle:[[0,10,12],[0,10,24],[0,10,48],[1,10,24]],ambient_mode:[[1,1,24]],ampersand:[[1,1,24]],api:[[0,2,24],[1,2,24]],archive:[[1,1,24]],arrow_arc_forward:[[1,1,24]],arrow_clockwise:[[1,1,24]],arrow_counterclockwise:[[1,2,24],[1,2,48]],arrow_counterclockwise_dashed:[[1,1,24]],arrow_down:[[1,3,24]],arrow_down_circle:[[0,4,24],[1,4,24]],arrow_down_right:[[1,1,24]],arrow_flip:[[1,10,24]],arrow_in:[[1,8,18],[1,8,24]],arrow_left:[[1,8,24,!0],[1,8,36,!0]],arrow_merge:[[1,2,24]],
arrow_out:[[1,2,24]],arrow_right:[[1,3,24,!0]],arrow_right_rectangle:[[0,2,24],[1,2,24]],arrow_solid_down:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_solid_up:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_split:[[1,3,24]],arrow_split_alert:[[1,1,24]],arrow_swap_horizontal:[[1,5,24]],arrow_trend_down:[[1,1,24]],arrow_trend_up:[[1,2,12],[1,2,24]],arrow_turn_down_right:[[1,1,24]],arrow_up:[[1,3,24]],arrow_up_circle:[[0,4,24],[1,4,24]],arrow_up_left:[[1,1,24]],arrow_up_rectangle_portrait:[[1,1,24]],arrow_up_right:[[1,
2,18],[1,2,24],[1,2,36]],audio:[[0,14,12],[0,14,18],[0,14,24],[1,14,12],[1,14,18],[1,14,24],[1,14,48]],audio_arrow_flip:[[0,2,24],[1,2,24]],audio_badge:[[0,3,24],[1,3,24]],audio_scissors:[[1,1,24]],audio_slash:[[0,2,24],[1,2,24]],audio_spark:[[1,1,24]],audio_square_stack:[[0,2,24],[1,2,24]],audio_staff:[[0,2,24],[1,2,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,24],[1,7,24]],bag_bookmark:[[1,2,24]],basketball:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bed:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],bell:[[0,
10,24],[1,10,24]],bell_slash:[[1,1,24]],bell_waves:[[0,2,24],[1,2,24]],blur:[[1,2,24]],book:[[0,3,24],[1,3,24]],book_audio:[[1,1,24]],bookmark:[[0,9,18],[0,9,24],[1,9,18],[1,9,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,24],[1,3,24]],brightness:[[0,3,24],[1,3,24]],browser:[[0,2,24],[1,2,24]],browser_slash:[[1,1,24]],bubble:[[1,1,24]],bubble_asterisk:[[0,2,24],[1,2,24]],bubble_ellipsis:[[1,1,24]],bubble_gear:[[1,1,24]],bubble_list:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,
24]],bubble_slow:[[0,2,24],[0,2,48],[1,2,24],[1,2,48]],bubble_spark:[[1,1,24]],bubble_sparkles:[[1,1,24]],bubble_stack:[[0,2,24],[1,2,24]],bug:[[0,3,24],[1,3,24]],business:[[0,4,24],[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],calendar_event:[[0,2,24],[1,2,24]],calendar_today:[[1,1,24]],camera:[[0,10,24],[1,10,18],[1,10,24]],camera_audio:[[1,5,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_sparkles:[[1,1,24]],camera_switch:[[0,3,24],[1,3,24]],
card:[[0,3,24]],cart:[[0,4,24],[1,4,24]],cart_add:[[1,1,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],chart_bar:[[1,1,24]],chart_bar_search:[[0,2,24],[1,2,24]],chart_bar_square:[[0,3,24],[1,3,18],[1,3,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,13,12],[1,13,18],[1,13,24],[1,13,36]],check_circle:[[0,10,24],[1,10,24]],check_done:[[1,1,24]],check_done_slash:[[1,1,24]],check_shield:[[1,1,24]],check_square:[[0,2,24],[1,2,24]],check_square_stack:[[0,
1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_circle:[[0,3,24],[1,3,24]],chevron_down_end:[[1,1,24]],chevron_expand:[[1,5,24]],chevron_left:[[1,9,24,!0]],chevron_left_circle:[[0,3,24],[1,3,24]],chevron_left_end:[[1,1,24]],chevron_left_ios:[[1,2,24]],chevron_right:[[1,7,18,!0],[1,7,24,!0]],chevron_right_circle:[[0,3,24],[1,3,24]],chevron_right_end:[[1,1,24]],chevron_right_square:[[1,1,24]],chevron_up:[[1,8,24]],chevron_up_circle:[[0,3,24],[1,3,24]],chevron_up_end:[[1,
1,24]],chromecast:[[0,10,24],[1,10,18],[1,10,24],[1,10,36]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,2,24]],circle:[[0,7,24],[1,7,24]],circle_half_filled:[[1,1,24]],circle_slash:[[0,3,24],[1,3,18],[1,3,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_sparkles:[[0,1,24]],clock:[[0,10,24],[0,10,48],[1,10,24]],clock_arrow_clockwise:[[1,1,24]],clock_half_dashed:[[1,1,24]],clock_split:[[0,2,24],[1,2,24]],clock_split_alert:[[0,2,24],[1,2,24]],closed_captions:[[0,
2,24],[1,2,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,6,24],[1,6,18],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_slash:[[1,2,24],[1,2,48]],cms_allowlist:[[0,2,24],[1,2,24]],code:[[1,2,24]],compare:[[1,1,24]],compass:[[0,8,24],[1,8,24]],copy:[[1,3,24]],copy_to_all:[[1,1,24]],copyright:[[0,4,24],[1,4,24]],copyright_search:[[0,2,24],[1,2,24]],cover_claim:[[1,1,24]],creative_commons:[[0,2,24],[1,2,24]],credit_card:[[0,4,24],[1,4,24]],crop:[[1,
3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,18],[0,5,24],[1,5,24]],csv:[[0,2,24],[1,2,24]],cube:[[0,2,24],[1,2,24]],cursor_click:[[0,2,24],[1,2,24]],curve:[[1,1,24]],cvp:[[0,2,24],[1,2,24]],dashboard:[[0,2,24],[1,2,24]],dashboard_add:[[1,1,24]],die_face3:[[0,2,24],[1,2,24]],directions:[[1,3,24]],display:[[0,2,24],[1,2,24]],display_slash:[[1,1,24]],divide:[[1,1,24]],document:[[0,2,24],[1,2,24]],document_arrow_up_right:[[0,2,24],[1,2,24]],dollar_sign_arrow_flip:[[1,1,24]],dollar_sign_circle:[[0,11,24],
[1,11,18],[1,11,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,1,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,12],[1,23,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],dot:[[0,1,24]],download:[[1,11,18],[1,11,24]],dpad:[[0,2,24],[1,2,24]],embed:[[0,2,24],[1,2,24]],equal:[[1,2,18],[1,2,24]],equal_slash:[[1,1,24]],explicit:[[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_slash:[[1,
1,24]],eyedropper:[[1,2,24]],face_add:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[0,11,48],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[1,9,24]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,
9,24],[1,9,24]],fashion:[[0,4,24],[1,4,24]],fast_forward:[[0,5,24],[1,5,24]],fast_rewind:[[0,2,24],[1,2,24]],film_strip:[[0,7,24],[0,7,48],[1,7,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,1,24]],filter_audio:[[1,1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,18],[1,9,24]],flash:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,24],[1,5,24]],flash_slash:[[0,2,24],[1,2,24]],flip_horizontal:[[1,4,24]],flip_horizontal_half_dashed:[[1,
1,24]],flip_vertical_half_dashed:[[1,1,24]],folder:[[0,4,24],[1,4,24]],font:[[1,1,24]],font_bold:[[1,1,24]],font_italic:[[1,1,24]],font_outline:[[1,1,24]],font_present:[[1,1,24]],font_serif:[[1,1,24]],font_shadow:[[1,1,24]],font_square:[[0,2,24],[1,2,24]],font_strikethrough:[[1,1,24]],font_style:[[1,1,24]],font_underline:[[1,1,24]],football:[[0,4,24],[1,4,24],[1,4,36]],game_controller:[[1,1,24]],gaming:[[0,3,24],[1,3,24]],gear:[[0,9,24],[1,9,18],[1,9,24]],gesture_long_press:[[0,2,24],[1,2,24]],gesture_pinch_in:[[1,
1,24]],gesture_swipe_left:[[1,1,24]],gesture_swipe_right:[[1,1,24]],gesture_swipe_up:[[1,1,24]],gesture_tap:[[0,2,24],[1,2,24]],ghost:[[0,5,24],[1,5,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,4,24]],glow:[[1,2,24]],google:[[0,1,24]],google_blogger:[[0,1,24]],google_drive_add:[[1,1,24]],google_lens:[[1,4,24]],google_meet:[[0,2,24],[1,2,24]],google_quick_share:[[1,1,24]],graduation_cap:[[0,3,18],[0,3,24],[1,3,24]],greater_than:[[1,1,24]],greater_than_n20:[[1,1,24]],greater_than_or_equal_to:[[1,
1,24]],hand:[[1,2,24]],hand_wave:[[1,2,24]],hands_clap:[[1,1,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],hearing:[[0,2,24],[1,2,24]],heart:[[0,18,24],[1,18,18],[1,18,24]],heart_circle:[[1,2,24]],heart_cube:[[1,1,24]],heart_slash:[[1,1,24]],help_bubble:[[0,2,24],[1,2,24]],help_circle:[[1,2,18],[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],history:[[1,1,24]],home:[[0,9,24],[1,9,24]],hourglass:[[1,3,18],[1,3,24]],hype:[[0,
2,24],[1,2,24]],image:[[0,8,24],[1,8,24]],image_add:[[0,4,24],[1,4,24]],image_frame:[[1,1,24]],image_list:[[0,2,24],[1,2,24]],image_list_slash:[[1,1,24]],image_spark:[[1,1,24]],image_stack:[[0,2,24],[1,2,24]],image_viewfinder:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],infinity:[[1,2,24]],info_circle:[[1,10,18],[1,10,24]],info_circle_spark:[[1,1,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],label_slash:[[0,2,24],[1,2,24]],laptop:[[1,3,24]],laptop_mobile:[[0,
4,24],[1,4,24]],layout_bottom:[[1,1,24]],layout_foreground:[[1,1,24]],layout_full:[[1,1,24]],layout_left:[[1,1,24]],layout_middle:[[1,1,24]],layout_picture_in_picture:[[1,1,24]],layout_right:[[1,1,24]],layout_top:[[1,1,24]],leaf:[[1,2,24]],less_than:[[1,1,24]],less_than_n4:[[1,1,24]],less_than_or_equal_to:[[1,1,24]],license:[[0,2,24],[1,2,24]],license_alert:[[1,1,24]],license_search:[[1,1,24]],license_slash:[[1,1,24]],lightbulb:[[0,4,24],[1,4,24]],link:[[1,8,18],[1,8,24]],link_slash:[[1,1,24]],live:[[1,
1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,18],[1,13,24],[1,13,48]],lock_clock:[[1,1,24]],lock_n2:[[1,1,24]],lock_open:[[0,4,24],[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,24],[0,9,36],[1,9,24]],memberships_gift:[[1,1,24]],mention:[[1,5,24]],menu:[[1,1,24]],mic:[[0,
13,18],[0,13,24],[0,13,48],[1,13,18],[1,13,24],[1,13,48]],mic_slash:[[1,2,24]],minus:[[1,2,18],[1,2,24]],minus_circle:[[0,3,24],[1,3,18],[1,3,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,4,24],[1,4,18],[1,4,24]],mobile:[[0,4,24],[1,4,24]],mobile_arrow_down:[[1,1,24]],mobile_arrow_in:[[1,1,24]],mobile_arrow_out:[[1,1,24]],mobile_check:[[1,2,24]],mobile_landscape:[[0,3,24],[1,3,24]],motion:[[1,2,24]],move:[[1,2,24]],music_video:[[0,4,24],[1,4,24]],music_video_slash:[[1,1,24]],n15:[[1,1,24]],n1point2x:[[1,
1,24]],n1point5x:[[1,1,24]],n1point8x:[[1,1,24]],n1x:[[1,1,24]],n2d:[[1,1,24]],n2point5x:[[1,1,24]],n2x:[[1,1,24]],n3d:[[1,1,24]],n3x:[[1,1,24]],n4d:[[1,1,24]],n4k:[[0,1,24],[1,1,24]],n60:[[1,1,24]],n8k:[[0,1,24],[1,1,24]],new_release:[[1,1,24]],news:[[0,3,24],[1,3,24]],news_alert:[[0,1,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,18],[0,1,24],[1,1,18],[1,1,24]],note_spark:[[0,2,18],[0,2,24],[1,2,18],[1,2,24]],open_in_panel:[[1,1,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,
6,24],[1,6,36]],overflow_vertical:[[1,13,18],[1,13,24],[1,13,36]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,9,24],[0,9,36],[0,9,48],[1,9,24]],pause_circle:[[0,2,24],[1,2,24]],pause_history:[[1,1,24]],pawprint:[[1,1,24]],pdf:[[1,2,24]],pencil:[[1,9,18],[1,9,24]],pencil_spark:[[1,1,24]],percent:[[1,1,24]],person:[[0,6,24],[1,6,24]],person2:[[1,1,24]],person2_rectangle:[[0,1,24],[1,1,24]],person3:[[0,2,24],[1,2,18],[1,2,24]],person_add:[[0,
7,24],[1,7,18],[1,7,24]],person_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[0,10,24],[1,10,24],[1,10,48]],person_circle_slash:[[1,2,24]],person_gear:[[0,2,24],[1,2,24]],person_shield:[[1,7,24]],person_square:[[0,2,24],[1,2,18],[1,2,24]],person_square_stack:[[0,2,24],[1,2,18],[1,2,24]],person_viewfinder:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],person_waves:[[0,1,24],[1,1,24]],person_x:[[1,1,24]],phone:[[0,3,24],[1,3,12],
[1,3,24]],piano:[[1,1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,7,24],[1,7,18],[1,7,24]],pin_slash:[[0,2,24],[1,2,18],[1,2,24]],play:[[0,4,18],[0,4,24],[0,4,36],[0,4,48],[1,4,24]],play_circle:[[0,2,24],[0,2,48],[1,2,24]],play_circle_half_dashed:[[1,1,24]],play_slash:[[0,1,24],[1,1,24]],play_square_half_dashed:[[1,1,24]],play_square_stack:[[0,1,24],[1,1,24]],playables:[[0,2,24],[1,2,18],[1,2,24]],player_default:[[0,1,24],[1,1,24]],player_full_enter:[[1,
1,24]],player_full_enter_alt:[[1,1,24]],player_full_enter_portrait:[[1,2,24]],player_full_exit:[[1,1,24]],player_full_exit_alt:[[1,1,24]],player_mini_enter:[[0,1,24],[1,1,24]],player_mini_exit:[[1,1,24]],player_multiview:[[0,1,24],[1,1,24]],player_switch:[[0,1,24],[1,1,24]],player_theater:[[0,1,24],[1,1,24]],playlist:[[1,5,12],[1,5,18],[1,5,24],[1,5,48]],playlist_add:[[1,3,18],[1,3,24]],playlist_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],
playlist_pencil:[[1,2,24],[1,2,48]],playlist_x:[[1,3,18],[1,3,24]],podcast:[[0,6,12],[0,6,24],[1,6,12],[1,6,18],[1,6,24],[1,6,48]],podcast_add:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point2x:[[1,1,24]],point3x:[[1,1,24]],point5x:[[1,1,24]],point8x:[[1,1,24]],poll:[[1,9,18],[1,9,24],[1,9,36]],premium:[[0,1,24],[1,1,24]],presentation:[[1,2,24]],price_tag:[[0,8,24],[0,8,48],[1,8,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,1,24]],question_head:[[1,
2,24]],queue:[[1,1,24]],queue_last:[[1,1,24]],queue_next:[[1,1,24]],quiz:[[0,1,24],[1,1,24]],quote:[[0,1,24],[1,1,24]],quote_slash:[[0,1,24],[1,1,24]],record:[[0,2,24]],redo:[[1,1,24]],remix:[[1,2,24]],remote_waves:[[1,1,24]],repeat:[[0,2,24],[1,2,24]],repeat1:[[0,1,24],[1,1,24]],replay:[[1,2,24],[1,2,36]],rotate_clockwise:[[1,1,24]],rotate_counterclockwise:[[1,1,24]],rotate_landscape:[[1,2,18],[1,2,24]],rotate_portrait:[[1,1,24]],rss:[[1,2,24]],rss_slash:[[1,1,24]],ruby:[[1,2,24]],samples:[[0,2,
24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,24],[1,8,18],[1,8,24]],scissors_cut:[[1,4,24]],scribble:[[1,1,24]],sd:[[0,3,24],[1,3,24]],search:[[0,15,24],[1,15,18],[1,15,24],[1,15,48]],search_shield:[[0,1,24],[1,1,24]],search_spark:[[1,1,24]],seek_forward:[[0,1,24]],seek_rewind:[[0,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],shadow:[[1,1,24]],shadow_hard:[[1,2,24]],shadow_soft:[[1,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[1,12,18,!0],[1,12,24,!0]],share_android:[[0,2,
24],[1,2,24]],share_ios:[[1,2,24]],shield:[[0,6,24],[1,6,24]],shield_add:[[1,2,24]],shield_health:[[1,1,24]],shield_overflow:[[1,2,24]],shield_slash:[[1,1,24]],shield_x:[[0,3,24],[1,3,18],[1,3,24]],shorts:[[0,3,18],[0,3,24],[1,3,24]],shorts_empty:[[0,3,18],[0,3,24],[1,3,24]],shuffle:[[0,4,24],[1,4,18],[1,4,24]],skip10_back:[[1,2,24],[1,2,36]],skip10_forward:[[1,1,24]],skip15_back:[[1,1,24]],skip15_forward:[[1,1,24]],skip20_back:[[1,1,24]],skip20_forward:[[1,1,24]],skip30_back:[[1,1,24]],skip30_forward:[[1,
2,24],[1,2,36]],skip5_back:[[1,1,24]],skip5_forward:[[1,1,24]],skip60_back:[[1,1,24]],skip60_forward:[[1,1,24]],skip_down:[[0,5,24],[1,5,24]],skip_next:[[0,7,12],[0,7,24],[0,7,36],[1,7,24]],skip_previous:[[0,6,24],[0,6,36],[1,6,24]],skip_up:[[0,5,24],[1,5,24]],slash_forward:[[1,1,24]],sleep_timer:[[0,2,24],[1,2,24]],snowflake:[[1,1,24]],soccer_ball:[[1,3,24]],sonar:[[1,1,24]],sort:[[1,2,18],[1,2,24]],spacebar:[[1,2,24]],spark:[[0,9,12],[0,9,24],[1,9,24]],spark_bubble_chat:[[1,1,24]],spark_waves:[[0,
2,24],[1,2,24]],sparkles:[[0,2,24],[1,2,24]],speaker:[[1,2,24]],speaker_headset:[[1,2,24]],speaker_slash:[[1,1,24]],speaker_stack:[[1,1,24]],speaker_stack_slash:[[1,1,24]],speedometer:[[0,2,24],[1,2,24]],splice:[[1,1,24]],split:[[1,4,24]],spotlight:[[0,3,24],[1,3,24]],spreadsheet:[[1,1,24]],square:[[1,1,24]],square3_stack:[[0,2,24],[1,2,24]],square3d_stack:[[0,2,24],[1,2,24]],square_grid2x2:[[1,1,24]],square_grid3x3:[[0,2,24],[1,2,24]],square_pencil:[[0,2,24],[1,2,24]],stable_volume:[[0,2,24],[1,
2,24]],star:[[0,5,24],[1,5,24]],star_circle:[[0,6,12],[0,6,18],[0,6,24],[0,6,36],[1,6,24]],star_half_filled:[[1,1,24]],star_ticket:[[0,2,24],[1,2,24]],star_trophy:[[1,1,24]],star_tv:[[1,1,24]],sticker:[[1,2,24]],stop:[[0,4,24],[0,4,36],[1,4,24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],stopwatch10:[[0,1,24]],stopwatch3:[[0,1,24]],storage:[[0,2,24],[1,2,24]],subscriptions:[[0,11,24],[1,11,24],[1,11,48]],subtitles:[[0,4,24],[1,4,24]],subtitles_bubble:[[1,1,24]],sum:[[1,1,24]],super_chat:[[0,
8,24],[1,8,24]],super_star:[[1,1,24]],super_sticker:[[0,8,24],[1,8,24]],super_store:[[0,3,24],[1,3,24]],surround_sound:[[0,2,24],[1,2,24]],tablet_landscape:[[1,1,24]],target:[[1,2,24]],target_add:[[1,2,24]],template_add:[[1,3,24]],template_play:[[0,3,24],[1,3,24]],template_play_spark:[[1,1,24]],text_align_center:[[0,2,24],[1,2,24]],text_align_left:[[0,2,24],[1,2,24]],text_align_right:[[0,2,24],[1,2,24]],text_bubble:[[0,3,24],[1,3,18],[1,3,24]],text_page:[[0,2,24],[1,2,24]],text_page_alert:[[1,1,24]],
text_page_check:[[1,1,24]],text_page_info:[[1,1,24]],texture:[[1,1,24]],theater:[[1,1,24]],theme:[[0,2,24],[1,2,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,18],[0,24,24],[0,24,36],[0,24,48],[1,24,18],[1,24,24],[1,24,36],[1,24,48]],thumb_up:[[0,22,18],[0,22,24],[0,22,36],[0,22,48],[1,22,18],[1,22,24],[1,22,36],[1,22,48]],thumb_up_down:[[0,3,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,1,24]],timestamp_add:[[1,1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,
5,24],[1,5,24]],translate:[[1,4,18],[1,4,24]],trash_can:[[0,10,24],[1,10,18],[1,10,24]],trending:[[0,2,24],[1,2,24]],triangle_down:[[0,7,24],[1,7,24]],triangle_up:[[0,2,24],[1,2,24]],trophy:[[0,3,24],[1,3,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,24],[1,8,24],[1,8,48]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,2,24],[1,2,36]],tv_slash:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,5,24]],variable:[[1,4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[0,9,24],[0,9,
48],[1,9,24],[1,9,48]],video_camera_add:[[1,2,24]],video_camera_slash:[[1,1,24]],video_link:[[1,5,18],[1,5,24]],video_spark:[[1,2,24]],video_stitch:[[1,2,24]],video_waveform:[[1,1,24]],view_column3:[[0,2,24],[1,2,24]],view_column3_row2:[[0,2,24],[1,2,24]],view_compact:[[0,2,24],[1,2,24]],view_feed:[[0,2,24],[1,2,24]],view_list:[[1,1,24]],view_row2:[[0,2,24],[1,2,24]],view_timeline:[[1,1,24]],volume_fade:[[1,2,24]],volume_max:[[0,2,24],[1,2,24]],volume_min:[[0,2,24],[1,2,24]],volume_mute:[[0,2,24],
[1,2,24]],vr:[[0,7,24],[1,7,24]],watch:[[1,1,24]],water:[[1,1,24]],waveform:[[1,3,24],[1,3,48]],waveform_spark:[[1,2,24]],wrench:[[0,3,18],[0,3,24],[1,3,18],[1,3,24]],x:[[1,11,18],[1,11,24],[1,11,36]],x_circle:[[0,9,24],[1,9,18],[1,9,24]],x_octagon:[[1,2,24]],x_rectangle:[[1,1,24]],yen_sign_rectangle:[[0,2,24],[1,2,24]],youtube:[[0,2,24],[1,2,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_shorts:[[0,10,24],[1,10,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,
8,24],[1,8,24]],zoom_auto:[[1,2,24]],zoom_in:[[0,2,24],[1,2,24]],zoom_out:[[0,2,24],[1,2,24]]};var $h9={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"},rx=function(x){this.iconUrlProvider=x};
rx.prototype.resolveIcon=function(x,L){var D=$h9[x.iconName.toUpperCase()];D&&(x.iconName=D);var S=x.iconName;S=S.replace(/-/g,"_");x=Object.assign({},x,{iconName:this.mapIconTypeToStandardName(S,!!D)||S.toLowerCase()});if(_.u("enable_web_delhi_icons")||D){var Q;return Bi0(Arg,x,((Q=this.iconUrlProvider)==null?void 0:Q.getYtStandardUrl)||$mp,L)}var J;return Bi0(qR$,x,((J=this.iconUrlProvider)==null?void 0:J.getYtStandardUrl)||Apb,L)};
rx.prototype.mapIconTypeToStandardName=function(x,L){return _.u("enable_web_delhi_icons")||L?W_I[x.toUpperCase()]:BAG[x.toUpperCase()]};
rx[IZ]=[_.ZN(lh$)];var rrs=new Set("audio_badge offline_pause pause play_all play_arrow youtube_music".split(" ")),NAX=new Set(["offline_downloading_eighty","offline_downloading_forty","offline_downloading_sixty","offline_downloading_twenty","offline_downloading_zero"]),i29=function(x){this.urlProvider=this.iconUrlProvider=x};
_.p(i29,rx);
i29.prototype.resolveIcon=function(x,L){x.iconName==="youtube_logo"&&(x.iconName="yt-logo-updated");if(x.iconName==="youtube_premium_logo"||x.iconName==="youtube_red_logo")x.iconName="yt-logo-red-updated";var D=Object.assign({},x);x.iconName==="menu"&&(_.u("enable_web_delhi_icons")||(D.iconName="bars_3"),D.iconStyle="youtube_outline");x.iconSetName==="socialNetworksRound"&&(x.iconName==="mail"&&(D.iconName="email"),x.iconName==="embed"&&(D.iconSize=60));x.iconName==="more"&&(D.iconName="overflow_horizontal");
x.iconName==="fullscreen"&&(D.iconName="screen_full");x.iconName==="premium_standalone"&&(D.iconName="premium_standalone_cairo");_.u("enable_connect_icon_update_web")&&x.iconName==="account_linked"&&(D.iconName="circles_overlap_check",D.iconStyle="youtube_fill");_.u("enable_connect_icon_update_web")&&x.iconName==="account_unlinked"&&(D.iconName="circles_overlap",D.iconStyle="youtube_outline");rrs.has(x.iconName)&&(D.iconStyle="youtube_fill");_.u("enable_web_delhi_icons")&&(x.iconName==="playlist_add"&&
(D.iconName="bookmark"),x.iconName==="offline_pin"&&(D.iconName="arrow_down_circle",D.iconStyle="youtube_fill"),NAX.has(x.iconName)&&(D.iconName+="_updated"));x=Object.assign({},D,{iconName:(rx.prototype.mapIconTypeToStandardName.call(this,D.iconName)||D.iconName).toLowerCase()});var S;return(x=Bi0(GBg,x,((S=this.urlProvider)==null?void 0:S.getUrl)||rp3,L))?x:rx.prototype.resolveIcon.call(this,D,L)};
i29[IZ]=[_.ZN(lh$)];_.fhs=1;var Ns=function(x,L){this.JSC$17288_commandHandler=x;this.innertubeTransportService=L};
_.p(Ns,jI);Ns.prototype.resolveCommand=function(x,L){var D=this,S,Q,J;return _.I(function(Z){return(S=_.g(x,PO2))?Z.return(oHs(D,S,(Q=L)==null?void 0:(J=Q.form)==null?void 0:J.element)):Z.return()})};
var oHs=function(x,L,D){L={profileCardContext:L.profileCardContext,profileOwnerExternalChannelId:L.profileOwnerExternalChannelId};var S=_.KB(E5W);return _.MI(x.innertubeTransportService,L,S).then(function(Q){if(!Q)throw new _.RZ("GetProfileCard failed");if(Q=Q.popupCommand){x.JSC$17288_commandHandler.resolveCommand(Q,{form:{element:D}});_.we(_.sk(),66557);Q=Q==null?void 0:Q.clickTrackingParams;var J=_.qu();Q&&J&&_.sk().graftServerVe(Q,J)}})};
Ns[IZ]=[_.E2,_.i1];var iK=function(){};
_.p(iK,jI);iK.prototype.resolveCommand=function(x){var L,D;return _.I(function(S){L=_.g(x,kmQ);if(!L)return S.return();D=Number(L.enableDelayedPacfLoggingTvMs);if(isNaN(D)){var Q=$A();WY2(Q,L,0)}else WY2($A(),L,D);_.Y2(S)})};_.fR=function(){};
_.p(_.fR,jI);
_.fR.prototype.resolveCommand=function(x,L){var D=this,S,Q,J,Z,y,E,P;return _.I(function(v){S=_.g(x,pcA);J=(Q=L.form)==null?void 0:Q.element;y=(Z=J)==null?void 0:Z.closest("ytd-enforcement-message-view-model");if(!S||!y)return v.return();D.allowAdsAction||(E=S.fundingChoiceInstructionPageUrl,D.allowAdsAction=new Wr2(window,_.qg(E)));var V=D.allowAdsAction;V.wallElement=y;V.allowAdsPopup.style.setProperty("display","flex","important");var h=V.scrollManager;h.originalBodyOverflow=h.JSC$10004_domHelper.JSC$9330_document_.body.style.overflow;h.JSC$10004_domHelper.JSC$9330_document_.body.style.overflow=
"hidden";V.wallElement.style.setProperty("display","none","important");XBR(V.accessibilityManager,V.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((P=D.allowAdsAction.allowAdsPopup)&&P instanceof HTMLElement)for(V=_.O(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),h=V.next();!h.done;h=V.next()){var H=_.O(h.value);h=H.next().value;H=H.next().value;P.style.setProperty(h,H)}_.Y2(v)})};
_.fR.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var oo=function(){};
_.p(oo,jI);oo.prototype.resolveCommand=function(x){var L;return _.I(function(D){L=_.g(x,uei);if(!L)return D.return();VJf(x);_.Y2(D)})};var ao=function(x){this.JSC$17303_commandHandler=x};
_.p(ao,jI);
ao.prototype.resolveCommand=function(x){var L=this,D,S,Q,J,Z,y,E,P;return _.I(function(v){if(v.nextAddress==1){D=_.g(x,zB2);if((S=D)==null||!S.text||!navigator.clipboard)return v.return();_.HH(v,2);return v.yield(navigator.clipboard.writeText(D.text),4)}if(v.nextAddress!=2){if(!D.successActions||D.successActions.length===0)return v.return();Q=_.O(D.successActions);for(J=Q.next();!J.done;J=Q.next())Z=J.value,L.JSC$17303_commandHandler.resolveCommand(Z);return _.nH(v,0)}_.mW(v);if(!D.failureActions||D.failureActions.length===
0)return v.return();y=_.O(D.failureActions);for(E=y.next();!E.done;E=y.next())P=E.value,L.JSC$17303_commandHandler.resolveCommand(P);_.Y2(v)})};
ao[IZ]=[_.E2];var zI=function(x){this.JSC$17307_commandHandler=x};
_.p(zI,jI);
zI.prototype.resolveCommand=function(x,L){var D=this,S,Q,J,Z,y,E,P,v,V,h;return _.I(function(H){switch(H.nextAddress){case 1:S=_.g(x,F$G);if(!S)return H.return();_.HH(H,2);if(!S.imageBytes&&!S.imageUrl)throw Error("Fi");if(!S.imageUrl){if(S.imageBytes){J=S.imageBytes;Z=J.replace(/-/g,"+").replace(/_/g,"/");var k=fLO(Z);Q=_.r8(k)}H.jumpTo(4);break}return H.yield(fetch(S.imageUrl),5);case 5:return y=H.yieldResult,H.yield(y.blob(),6);case 6:E=H.yieldResult,Q=_.r8(E);case 4:V=(P=L)==null?void 0:(v=P.form)==
null?void 0:v.element;h=document.createElement("a");fU(h,Q);V.appendChild(h);h.download="";h.click();V.removeChild(h);URL.revokeObjectURL(_.w8(Q));S.successCommand&&D.JSC$17307_commandHandler.resolveCommand(S.successCommand);_.nH(H,0);break;case 2:_.mW(H),S.errorCommand&&D.JSC$17307_commandHandler.resolveCommand(S.errorCommand),_.Y2(H)}})};
zI[IZ]=[_.E2];var XS=function(x){this.store=x};
_.p(XS,jI);XS.prototype.resolveCommand=function(x){var L=this,D,S,Q;return _.I(function(J){S=(D=_.g(x,_.Gv0))==null?void 0:D.entityBatchUpdate;if(!S)return J.jumpTo(0);Q=Object.assign({},S,{mutations:[].concat(_.lP(S.mutations||[]))});return J.yield(_.b6(Q,L.store),0)})};var ahX=function(x){this.JSC$17314_commandHandler=x;this.feedbackDialogMap=new Map};
ahX.prototype.openDialog=function(x,L){(x=this.feedbackDialogMap.get(x))&&this.JSC$17314_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:x}},L)};
ahX[IZ]=[_.E2];var cQ=new _.vx("FEEDBACK_CONTROLLER_TOKEN");var nR=new _.vx("APP_STORE_TOKEN");var th=function(x,L){this.store=x;this.controller=L};
_.p(th,jI);th.prototype.resolveCommand=function(x,L){var D=this,S,Q,J,Z,y,E,P,v,V,h,H,k,T,G,U,l,X,f;return _.I(function(N){if(N.nextAddress==1){S=_.g(x,_.Uy);if(J=(Q=S)==null?void 0:Q.contentId)for(y=_.O(((Z=S)==null?void 0:Z.actions)||[]),E=y.next();!E.done;E=y.next())P=E.value,zdG(D,P,J);h=(v=L)==null?void 0:(V=v.form)==null?void 0:V.element;return N.yield(_.jq(h,[x,{impression:(H=L)==null?void 0:H.disableClickTracking}]).catch(function(){}),2)}k=N.yieldResult;
((T=k)==null?0:(G=T.data)==null?0:(U=G.feedbackResponses)==null?0:U.length)&&(X=(l=k.data.feedbackResponses[0])==null?void 0:l.followUpDialog)&&J&&(f=D.controller)!=null&&f.feedbackDialogMap.set(J,X);_.Y2(N)})};
var zdG=function(x,L,D){var S=_.g(L,_.h_);if(S){S=_.O(S.commands||[]);for(var Q=S.next();!Q.done;Q=S.next())zdG(x,Q.value,D)}_.g(L,_.$K)&&x.store.dispatch(_.TR("commandEntity",qef(D),{key:D,command:L}));_.g(L,uC_)&&x.store.dispatch(_.TR("commandEntity",qef(D),{key:D,command:L}))};
th[IZ]=[nR,cQ];var xy=function(x){this.controller=x};
_.p(xy,jI);xy.prototype.resolveCommand=function(x,L){var D=this,S,Q,J,Z;return _.I(function(y){S=_.g(x,_.iY);J=(Q=S)==null?void 0:Q.targetId;if(((Z=S)==null?void 0:Z.signal)!=="TELL_US_WHY"||!J)return y.return();D.controller.openDialog(J,L);_.Y2(y)})};
xy[IZ]=[cQ];var Lg=function(x){this.store=x};
_.p(Lg,jI);Lg.prototype.resolveCommand=function(x,L){var D=this,S,Q,J,Z,y,E,P;return _.I(function(v){S=_.g(x,RnG);J=(Q=S)==null?void 0:Q.contentId;E=(Z=L)==null?void 0:(y=Z.form)==null?void 0:y.element;P=_.jq(E,[x]);J&&D.undo(J);return v.yield(P,0)})};
Lg.prototype.undo=function(x){this.store.dispatch(_.TR("commandEntity",qef(x),{key:x,command:void 0}))};
Lg[IZ]=[nR];var D2=function(x){this.JSC$17329_commandHandler=x};
_.p(D2,jI);D2.prototype.resolveCommand=function(x){var L=this,D,S,Q,J,Z,y,E,P;return _.I(function(v){D=_.g(x,z7W);S=D.flowStateKey;Q=D.validationFailureCommand;J=D.submitValidFormCommand;Z=oMh(_.LG,[S||""]);y=_.g(Z,noA);((E=y)==null?0:E.isValid)&&J&&L.JSC$17329_commandHandler.resolveCommand(J);((P=y)==null?0:P.isValid)||!Q||L.JSC$17329_commandHandler.resolveCommand(Q);_.Y2(v)})};
D2[IZ]=[_.E2];var Sy=function(x){this.innertubeTransportService=x};
_.p(Sy,jI);Sy.prototype.resolveCommand=function(x,L){var D=this,S;return _.I(function(Q){return Q.yield(_.tD(D.innertubeTransportService,x,(S=L)==null?void 0:S.form).then(function(J){var Z,y;L==null||(Z=L.commandController)==null||(y=Z.onSuccess)==null||y.call(Z,x,J)},function(J){var Z,y;
L==null||(Z=L.commandController)==null||(y=Z.onServerError)==null||y.call(Z,x,J)}),0)})};
Sy[IZ]=[_.i1];var QK=function(){};
_.p(QK,jI);QK.prototype.resolveCommand=function(x){var L,D,S,Q;return _.I(function(J){if(L=_.g(x,_.$KH)){if(D=L.gtmId)S=_.$6("GL",""),_.SZ(D,S);(Q=L.gtmData)&&_.Q$(Q)}_.Y2(J)})};var JF=function(x,L,D){this.innertubeTransportService=x;this.JSC$17340_actionRouter=L;this.JSC$17340_screenManager=D};
_.p(JF,jI);JF.prototype.resolveCommand=function(x){var L=this,D,S;return _.I(function(Q){D=_.g(x,f9r);if(!D)return Q.return();S=D.command;if(!S)return Q.return();L.JSC$17340_actionRouter.triggerAction("yt-insert-rich-section-action",D);return Q.yield(_.tD(L.innertubeTransportService,S,{disableCache:!0}).then(function(J){x.clickTrackingParams&&(J==null?0:J.trackingParams)&&L.JSC$17340_screenManager.graftServerVe(J.trackingParams,_.CI(x.clickTrackingParams))}),0)})};
JF[IZ]=[_.i1,be,_.QT];aLc.bind(null,vS);var XC3=aLc.bind(null,LYH);X7c.bind(null,vS);var cr9=X7c.bind(null,LYH);nnp.bind(null,vS);var nHq=nnp.bind(null,LYH);var Kg=function(){};
_.p(Kg,jI);
Kg.prototype.resolveCommand=function(x){var L,D,S,Q,J,Z,y,E,P,v;return _.I(function(V){L=_.g(x,Tfi);if(!L)return V.return();S=((D=L.operations)==null?void 0:D.operations)||[];Q=_.O(S);for(J=Q.next();!J.done;J=Q.next())if(Z=J.value,Z.insertItemSectionContent){var h=Z.insertItemSectionContent,H=h.contents||[];h.insertByPositionInSection?XC3(h.insertByPositionInSection.sectionTargetId,H,h.insertByPositionInSection.position):h.insertByRelativePositionInSection&&h.insertByRelativePositionInSection.sectionTargetId&&h.insertByRelativePositionInSection.itemTargetId&&
cr9(h.insertByRelativePositionInSection.sectionTargetId,h.insertByRelativePositionInSection.itemTargetId,H,h.insertByRelativePositionInSection.relativePosition)}else Z.replaceSection?(h=Z.replaceSection,H={},h.replaceByTargetId?H=h.replaceByTargetId:h.replaceByGroupId&&(H={targetId:h.replaceByGroupId.groupId,newContent:h.replaceByGroupId.newContent,undoKey:""}),H.newContent&&QhR(H.targetId,{continuationItems:[H.newContent]})):Z.removeItem?(h=Z.removeItem,h.removeByTargetId&&h.sectionTargetId&&nHq(h.sectionTargetId,
h.removeByTargetId.targetIds||[])):Z.removeSection&&(Z.removeSection.removeByTargetId?(y=void 0,tWu(((y=Z.removeSection)==null?void 0:y.removeByTargetId.targetIds)||[])):Z.removeSection.removeByGroupId&&(E=void 0,tWu(((E=Z.removeSection)==null?void 0:E.removeByGroupId.groupIds)||[])));v=((P=L.operations)==null?void 0:P.scrollConfig)||{};xq5(v);_.Y2(V)})};
var tWu=function(x){x=_.O(x);for(var L=x.next();!L.done;L=x.next())QhR(L.value,{continuationItems:[]})},xq5=function(x){if(x.scrollToItem){var L=x.scrollToItem.item||{},D=L.itemTargetId;
L=L.sectionTargetId;if(D&&L){var S=document.querySelector("[data-target-id="+L+"]"),Q=S==null?void 0:S.querySelector("[data-target-id="+D+"]");S&&Q&&setTimeout(function(){var J=Q.offsetTop-S.offsetTop,Z;if(((Z=x.scrollToItem)==null?void 0:Z.scrollPosition)==="SCROLL_POSITION_CENTER")J-=S.offsetHeight/2,J+=Q.offsetHeight/2;else{var y;((y=x.scrollToItem)==null?void 0:y.scrollPosition)==="SCROLL_POSITION_END"&&(J-=S.offsetHeight,J+=Q.offsetHeight)}S.scroll({top:J,behavior:"smooth"})},100)}}};var OA=new _.vx("CLIENT_NAME_TOKEN");var L3q=new _.vx("DEFAULT_STORE_EXPIRATION_TOKEN");var fDw=new _.vx("CLIENT_LOCATION_SERVICE_TOKEN");var Z2=function(x,L,D){this.clientName=x||_.$6("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=L||_.Bq.getInstance();this.JSC$17368_commandHandler=D||_.pI.instance};
_.p(Z2,jI);Z2.prototype.resolveCommand=function(x){var L=this,D,S;return _.I(function(Q){S=(D=_.g(x,y4H))==null?void 0:D.onComplete;L.clientLocationService.clearLocationPlayabilityToken(L.clientName);S&&L.JSC$17368_commandHandler.resolveCommand(S);_.Y2(Q)})};
Z2[IZ]=[OA,fDw,_.E2];var yK=function(x){this.innertubeTransportService=x};
_.p(yK,jI);yK.prototype.resolveCommand=function(x,L){var D=this,S,Q,J,Z;return _.I(function(y){J=(S=L)==null?void 0:(Q=S.form)==null?void 0:Q.element;return y.yield(_.tD(D.innertubeTransportService,x,(Z=L)==null?void 0:Z.form).then(function(E){QKs(J,new CustomEvent("yt-service-request-completed"),{data:E},_.$6("openPopupConfig"))}),0)})};
yK[IZ]=[_.i1];var IL=function(){};
_.p(IL,jI);IL.prototype.resolveCommand=function(x){var L,D;return _.I(function(S){L=_.g(x,Dch);D=document.querySelector("mini-app-container-view-model");if(!L||!D)return S.return();L.isPlaying?D.dispatchEvent(new Event("play")):D.dispatchEvent(new Event("pause"));_.Y2(S)})};var EA=function(){};
_.p(EA,jI);EA.prototype.resolveCommand=function(x){var L,D,S,Q,J,Z,y;return _.I(function(E){L=_.g(x,UKG);if((D=L)==null||!D.paramKeys)return E.return();S=L.paramKeys;Q=_.ze(window.location.href);J=_.O(S);for(Z=J.next();!Z.done;Z=J.next())y=Z.value,Q.JSC$10036_queryData_.remove(y);window.history.replaceState(window.history.state,document.title,Q.toString());_.Y2(E)})};var DqI=function(){this.dropdownMap=new Map};_.Suq=new _.vx("DROPDOWN_CONTROLLER_TOKEN");var MH=function(x){this.controller=x};
_.p(MH,jI);MH.prototype.resolveCommand=function(x){var L=this,D,S,Q,J;return _.I(function(Z){D=_.g(x,dKB);if(!D)return Z.return();S=D;Q=S.dropdownId;J=S.selectedOptionIndex;if(Q===void 0||J===void 0)return Z.return();var y=L.controller.dropdownMap.get(Q);y&&y(J);_.Y2(Z)})};
MH[IZ]=[_.Suq];var dm=function(x){this.controller=x};
_.p(dm,jI);dm.prototype.resolveCommand=function(x){var L=this,D;return _.I(function(S){return(D=_.g(x,puQ))?S.yield(L.controller.closeDialog(),0):S.return()})};
dm[IZ]=[_.Qw];var P1=function(x){this.controller=x};
_.p(P1,jI);P1.prototype.resolveCommand=function(x){var L=this,D,S;return _.I(function(Q){D=_.g(x,KG2);if(!D)return Q.return();var J,Z=D.panelIdentifier||((J=D.identifier)==null?void 0:J.tag);if(!Z)throw Error("Gi");return(S=Z)?Q.yield(L.controller.hidePanel(S),0):Q.jumpTo(0)})};
P1[IZ]=[_.Dk];var jy=function(x){this.controller=x};
_.p(jy,jI);jy.prototype.resolveCommand=function(x){var L=this,D;return _.I(function(S){return(D=_.g(x,$Id))?S.yield(L.controller.closeSheet(),0):S.return()})};
jy[IZ]=[_.SE];var v1=function(x,L){this.innertubeTransportService=x;this.controller=L};
_.p(v1,jI);v1.prototype.resolveCommand=function(x){var L=this,D,S,Q,J;return _.I(function(Z){if(Z.nextAddress==1)return D=_.g(x,OSR),(S=D)!=null&&S.panelId?Z.yield(L.controller.getReloadContinuation(D.panelId),2):Z.return();if(Z.nextAddress!=3)return(Q=Z.yieldResult)?Z.yield(_.tD(L.innertubeTransportService,x,{continuation:Q}),3):Z.return();J=Z.yieldResult;return Z.yield(L.controller.updatePanel({identifier:D.panelId,panelContents:J.content,shouldFocus:!1}),0)})};
v1[IZ]=[_.i1,_.Dk];var VK=function(x,L,D){this.innertubeTransportService=x;this.JSC$17409_screenManager=L;this.JSC$17409_commandHandler=D};
_.p(VK,jI);
VK.prototype.resolveCommand=function(x){var L=this,D,S,Q,J,Z,y;return _.I(function(E){if(E.nextAddress==1){D=_.g(x,_.nKh);if(!D)return E.return();if(D.commands)for(S=_.O(D.commands),Q=S.next();!Q.done;Q=S.next())J=Q.value,L.JSC$17409_commandHandler.resolveCommand(J,{disableClickTracking:!0});Z=_.CI(x.clickTrackingParams);_.we(L.JSC$17409_screenManager,21760,Z,{layer:7,parentLayer:0});return E.yield(_.tD(L.innertubeTransportService,x),2)}y=E.yieldResult;if(!y)return E.return();L.JSC$17409_screenManager.graftServerVe(y.trackingParams,Z,
7);_.Y2(E)})};
VK[IZ]=[_.i1,_.QT,_.E2];var hF=new _.vx("PANEL_LOADING_STRATEGY_TOKEN");var H1=function(x,L){this.controller=x;this.panelLoadingStrategy=L};
_.p(H1,jI);
H1.prototype.resolveCommand=function(x,L){var D=this,S,Q,J;return _.I(function(Z){S=_.g(x,N6R);if((Q=S)==null||!Q.panelLoadingStrategy)return Z.return();J=function(y){var E,P,v,V,h,H,k,T,G,U;return _.I(function(l){P=_.g((E=y.dialogViewModel)==null?void 0:E.header,PHQ);v={viewModel:y.dialogViewModel};V={};if(k=_.u("web_enable_dialog_header_label")?(h=P)==null?void 0:(H=h.headline)==null?void 0:H.content:void 0)V.ariaLabel=k;S.dismissOnBackgroundTap===!1&&(V.isModal=!0);return y.dialogViewModel?l.yield(D.controller.openDialog(v,
(U=(T=L)==null?void 0:(G=T.form)==null?void 0:G.element)!=null?U:document.body,V),0):l.return()})};
return Z.yield(D.panelLoadingStrategy.execute({command:x,data:S.panelLoadingStrategy,renderFn:J,createScreenConfig:{layer:4}}),0)})};
H1[IZ]=[_.Qw,hF];var ub=function(x,L,D){this.innertubeTransportService=x;this.controller=L;this.JSC$17429_screenManager=D};
_.p(ub,jI);
ub.prototype.resolveCommand=function(x,L){var D=this,S,Q,J,Z,y,E,P,v,V,h,H,k,T,G,U;return _.I(function(l){switch(l.nextAddress){case 1:S=_.g(x,_.ly);if(!S)return l.return();var X,f=S.panelIdentifier||((X=S.identifier)==null?void 0:X.tag);if(!f)throw Error("Gi");Q=f;return l.yield(D.controller.isVisible(Q,!0),2);case 2:if((J=l.yieldResult)&&S.blockIfPanelOpen)return l.return();E=(y=(Z=D.controller).getPanelContent)==null?void 0:y.call(Z,Q);if(!(X=E))if(S){var N;X=((N=S.globalConfiguration)==null?void 0:
N.initialState)||S.engagementPanel;if(N=!X)N=!!(S==null?0:(f=S.engagementPanelPresentationConfigs)==null?0:f.engagementPanelPopupPresentationConfig);N&&(X=_.tz3(S.panelIdentifier,S.identifier))}else X=void 0;P=X;v=S.engagementPanelPresentationConfigs;V=S.engagementPanelExtras;return l.yield(D.controller.showPanel({identifier:Q,panelContents:P,config:v,extras:V,target:(h=L)==null?void 0:(H=h.form)==null?void 0:H.element}),3);case 3:if(!S.globalConfiguration){l.jumpTo(0);break}if(S.globalConfiguration.reuseModelAndState&&
_.u("enable_ai_companion")&&(G=(T=(k=D.controller).getPanelContent)==null?void 0:T.call(k,Q)))return l.return();_.we(D.JSC$17429_screenManager,32633);return l.yield(_.tD(D.innertubeTransportService,x),5);case 5:return U=l.yieldResult,D.JSC$17429_screenManager.graftServerVe(U.trackingParams),l.yield(D.controller.updatePanel({identifier:Q,panelContents:U.content,shouldFocus:!0,extras:V,updatePanelContinuationData:U.updatePanelContinuationData}),0)}})};
ub[IZ]=[_.i1,_.Dk,_.QT];var gm=function(x,L){this.controller=x;this.panelLoadingStrategy=L};
_.p(gm,jI);gm.prototype.resolveCommand=function(x,L){var D=this,S,Q,J,Z,y,E;return _.I(function(P){S=_.g(x,_.e2);if((Q=S)==null||!Q.panelLoadingStrategy)return P.return();y=QI3(D.controller,(J=L)==null?void 0:(Z=J.form)==null?void 0:Z.element);E=function(v){return _.I(function(V){return v.sheetViewModel?V.yield(D.controller.openSheet({viewModel:v.sheetViewModel},y),0):V.return()})};
return P.yield(D.panelLoadingStrategy.execute({command:x,data:S.panelLoadingStrategy,renderFn:E,createScreenConfig:{layer:0}}),0)})};
gm[IZ]=[_.SE,hF];var ky=function(x,L){this.controller=x;this.JSC$17438_commandHandler=L};
_.p(ky,jI);ky.prototype.resolveCommand=function(x,L){var D=this,S,Q,J;return _.I(function(Z){if(Z.nextAddress==1){S=_.g(x,EKi);var y=_.g(S.showCommand,_.ly),E,P,v=(P=y==null?void 0:y.panelIdentifier)!=null?P:y==null?void 0:(E=y.identifier)==null?void 0:E.tag;if(!v)throw Error("Hi");Q=v;return Z.yield(D.controller.isVisible(Q),2)}return(J=Z.yieldResult)?Z.yield(D.controller.hidePanel(Q),0):Z.yield(D.JSC$17438_commandHandler.resolveCommand(S.showCommand,L),0)})};
ky[IZ]=[_.Dk,_.E2];var pg=function(x,L,D){this.innertubeTransportService=x;this.controller=L;this.JSC$17441_screenManager=D};
_.p(pg,jI);
pg.prototype.resolveCommand=function(x){var L=this,D,S,Q,J,Z,y,E,P,v,V,h,H,k,T,G,U,l,X,f,N,z,xf;return _.I(function(K3){switch(K3.nextAddress){case 1:return S=D=_.g(x,dJW),Q=S.targetPanelIdentifier,J=S.contentSourcePanelIdentifier,Z=S.globalConfiguration,((y=Q)==null?0:y.tag)&&((E=J)==null?0:E.tag)?Z?K3.yield(L.controller.showPanel({identifier:Q.tag,panelContents:_.tz3(Q.tag,Q)}),5):K3.yield((h=(V=L.controller).getPanel)==null?void 0:h.call(V,J.tag),4):K3.return();case 4:H=K3.yieldResult;P=(k=H)==
null?void 0:(G=(T=k).getPanelContent)==null?void 0:G.call(T);K3.jumpTo(3);break;case 5:return K3.yield(_.tD(L.innertubeTransportService,x),6);case 6:U=K3.yieldResult,((l=U)==null?0:l.trackingParams)&&L.JSC$17441_screenManager.graftServerVe(U.trackingParams),P=(X=U)==null?void 0:X.content,v=(f=U)==null?void 0:f.updatePanelContinuationData;case 3:if(z=(N=P)==null?void 0:N.engagementPanelSectionListRenderer)return K3.yield(L.controller.showPanel({identifier:Q.tag,panelUpdatableFields:{content:z.content,
secondaryHeaderContent:(xf=z.header)!=null?xf:{},targetId:z.targetId},updatePanelContinuationData:v}),0);K3.jumpTo(0)}})};
pg[IZ]=[_.i1,_.Dk,_.QT];var mT=function(){};
_.p(mT,jI);mT.prototype.resolveCommand=function(x){var L,D,S;return _.I(function(Q){if(Q.nextAddress==1)return(L=_.g(x,H1i))?Q.yield(_.hL(),2):Q.return();D=Q.yieldResult;if(!D)return Q.return();var J=D,Z=(S=L)==null?void 0:S.languageCode,y;(J==null?0:(y=J.isReady)==null?0:y.call(J))&&(Z=xxb(J,Z))&&J.setAudioTrack(Z);_.Y2(Q)})};var bb=function(){};
_.p(bb,jI);var J5g=function(x){var L;return _.I(function(D){L=_.$6("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_BACKGROUND_AUDIO_PLAYER;x.JSC$17452_mainAppPlayer=new mP(L);document.addEventListener("yt-page-data-updated",x.JSC$17452_pauseOnNavigation.bind(x));_.Y2(D)})};
bb.prototype.JSC$17452_pauseOnNavigation=function(){var x=this,L,D;return _.I(function(S){if(S.nextAddress==1)return L=x.JSC$17452_mainAppPlayer,S.yield(L.api,2);D=S.yieldResult;D.pauseVideo();_.Y2(S)})};
var K3G=function(x,L,D){var S;return _.I(function(Q){S=x.JSC$17452_mainAppPlayer;return Q.yield(S.loadVideoWithPlayerVars({videoId:L,audio_only:"1",player_params:D}),0)})};
bb.prototype.pauseVideo=function(){var x=this,L,D;return _.I(function(S){if(S.nextAddress==1)return L=x.JSC$17452_mainAppPlayer,S.yield(L.api,2);D=S.yieldResult;D.pauseVideo();_.Y2(S)})};
bb.prototype.playVideo=function(){var x=this,L,D;return _.I(function(S){if(S.nextAddress==1)return L=x.JSC$17452_mainAppPlayer,S.yield(L.api,2);D=S.yieldResult;D.playVideo();_.Y2(S)})};
var Oll=function(x){var L,D;return _.I(function(S){if(S.nextAddress==1)return L=x.JSC$17452_mainAppPlayer,S.yield(L.api,2);D=S.yieldResult;D.mute();_.Y2(S)})},Zl5=function(x){var L,D;
return _.I(function(S){if(S.nextAddress==1)return L=x.JSC$17452_mainAppPlayer,S.yield(L.api,2);D=S.yieldResult;D.unMute();_.Y2(S)})},y5l=function(x,L){return _.I(function(D){switch(D.nextAddress){case 1:switch(L){case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PLAY":return D.jumpTo(2);
case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PAUSE":return D.jumpTo(3);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_MUTE":return D.jumpTo(4);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_UNMUTE":return D.jumpTo(5)}D.jumpTo(0);break;case 2:return D.yield(x.playVideo(),7);case 7:D.jumpTo(0);break;case 3:return D.yield(x.pauseVideo(),8);case 8:D.jumpTo(0);break;case 4:return D.yield(Oll(x),9);case 9:D.jumpTo(0);break;case 5:return D.yield(Zl5(x),10);case 10:D.jumpTo(0)}})};
bb.prototype.resolveCommand=function(x){var L=this,D,S,Q,J,Z,y,E,P,v,V,h;return _.I(function(H){return H.nextAddress==1?(D=_.g(x,a72),((S=D)==null?0:S.newPlaybackParams)||((Q=D)==null?0:Q.controlAction)?L.JSC$17452_mainAppPlayer?H.jumpTo(2):H.yield(J5g(L),2):H.return()):((J=D)==null?0:J.newPlaybackParams)?(E=(Z=D)==null?void 0:(y=Z.newPlaybackParams)==null?void 0:y.externalVideoId,h=(V=(P=D)==null?void 0:(v=P.newPlaybackParams)==null?void 0:v.playerParams)!=null?V:"",E?H.yield(K3G(L,E,h),0):H.return()):
H.yield(y5l(L,D.controlAction),0)})};var F$=function(x){this.JSC$17459_commandHandler=x};
_.p(F$,jI);
F$.prototype.resolveCommand=function(x){var L=this,D,S,Q,J,Z,y;return _.I(function(E){if(E.nextAddress==1)return(D=_.g(x,uOH))?E.yield(_.hL(),2):E.return();S=E.yieldResult;if(!S)return E.return();var P=S,v=(Q=D)==null?void 0:Q.languageCode,V=(J=D)==null?void 0:J.isAutoTranslated;P.getVideoData&&_.Dxc(P).length&&((v=Q$f(P,v,V))?P.setOption("captions","track",v):(P.setOption("captions","stickyLoading",{}),P.setOption("captions","track",{})));Z=S.isSubtitlesOn()?_.p6("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.p6("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");y=_.yy(Z,5E3);L.JSC$17459_commandHandler.resolveCommand(y);_.Y2(E)})};
F$[IZ]=[_.E2];var sA=function(x,L){this.shortsPlayerPromise=x;this.JSC$17463_commandHandler=L};
_.p(sA,jI);
sA.prototype.resolveCommand=function(x){var L=this,D,S,Q,J,Z,y,E,P;return _.I(function(v){if(v.nextAddress==1)return(D=_.g(x,qWW))?v.yield(L.shortsPlayerPromise,2):v.return();S=v.yieldResult;var V=Jnc(S);V!=null&&V.length||(S.loadModule("captions"),V=Jnc(S));Q=V;if((J=Q)==null||!J.length)return Z=_.p6("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),y=_.yy(Z),L.JSC$17463_commandHandler.resolveCommand(y),v.return();S.toggleSubtitles();E=S.isSubtitlesOn()?_.p6("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.p6("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");P=_.yy(E);L.JSC$17463_commandHandler.resolveCommand(P);_.Y2(v)})};
sA[IZ]=[_.C0G,_.E2];var TH=function(x){this.JSC$17466_actionRouter=x;this.dismissPlayerOverlayActions=new Map([["player_overlay_timely_shelf",function(L,D){L.triggerAction("yt-dismiss-shopping-timely-shelf-action",D)}]])};
_.p(TH,jI);TH.prototype.resolveCommand=function(x){var L=this,D,S,Q;return _.I(function(J){D=_.g(x,mYR);if((S=D)==null||!S.overlayId)return J.return();Q=L.dismissPlayerOverlayActions.get(D.overlayId);if(!Q)throw Error("Ii`"+D.overlayId);Q(L.JSC$17466_actionRouter,D);_.Y2(J)})};
TH[IZ]=[be];var ey=function(x){this.JSC$17470_playerPromise=x};
_.p(ey,jI);ey.prototype.resolveCommand=function(x){var L=this,D,S,Q,J;return _.I(function(Z){if(Z.nextAddress==1)return(D=_.g(x,yaQ))?Z.yield(L.JSC$17470_playerPromise,2):Z.return();S=Z.yieldResult;Q=S.getVideoData().video_id;D.videoId===Q&&(J=Number(D.offsetFromVideoStartMilliseconds),J>=0&&S.seekTo(J/1E3));_.Y2(Z)})};
ey[IZ]=[_.d4];var IY5=_.Ha("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),RL=function(x){this.store=x};
_.p(RL,jI);
var EX9=function(x){var L,D,S,Q;return _.I(function(J){if(J.nextAddress==1)return L=_.$6("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,D=_.$6("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,S=L||D,x.JSC$17474_mainAppPlayer=new mP(S),J.yield(x.JSC$17474_mainAppPlayer.api,2);Q=J.yieldResult;Q.addEventListener("onStateChange",x.JSC$17474_playerStateChangeListener.bind(x));document.addEventListener("yt-page-data-updated",x.JSC$17474_pauseOnNavigation.bind(x));window.addEventListener("state-navigatestart",
x.JSC$17474_pauseOnNavigation.bind(x));_.Y2(J)})};
RL.prototype.JSC$17474_playerStateChangeListener=function(x){switch(x){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"}MG3(this)};
var MG3=function(x){x.store.dispatch(_.TR("sfvAudioItemCurrentlyPlayingEntity",IY5,{key:IY5,externalVideoId:x.externalVideoId,sfvAudioItemPlaybackState:x.playbackState,nowPlayingEntityValue:x.nowPlayingEntityValue}))};
RL.prototype.JSC$17474_pauseOnNavigation=function(){var x=this,L,D,S,Q;return _.I(function(J){if(J.nextAddress==1){if(!x.JSC$17474_mainAppPlayer){var Z=new _.RZ("Error: mainAppPlayer is unavailable",x.JSC$17474_mainAppPlayer);_.BI(Z);return J.return()}return J.yield(x.JSC$17474_mainAppPlayer.api,2)}L=J.yieldResult;S=(D=L)==null?void 0:D.getPlayerState();S!==1||(Q=L)!=null&&Q.pauseVideo();_.Y2(J)})};
RL.prototype.playVideo=function(x,L,D){var S=this,Q,J;return _.I(function(Z){if(Z.nextAddress==1)return Z.yield((Q=S.JSC$17474_mainAppPlayer)==null?void 0:Q.api,2);J=Z.yieldResult;if(!S.JSC$17474_mainAppPlayer||!J){var y=new _.RZ("Error: mainAppPlayer is unavailable",S.JSC$17474_mainAppPlayer);_.BI(y);return Z.return()}return Z.yield(S.JSC$17474_mainAppPlayer.loadVideoWithPlayerVars({videoId:S.externalVideoId,audio_only:"1",start:x/1E3,end:x/1E3+L,player_params:D}),0)})};
RL.prototype.pauseVideo=function(){var x=this,L,D;return _.I(function(S){if(S.nextAddress==1){if(!x.JSC$17474_mainAppPlayer){var Q=new _.RZ("Error: mainAppPlayer is unavailable",x.JSC$17474_mainAppPlayer);_.BI(Q);return S.return()}return S.yield(x.JSC$17474_mainAppPlayer.api,2)}L=S.yieldResult;(D=L)==null||D.pauseVideo();_.Y2(S)})};
RL.prototype.resolveCommand=function(x){var L=this,D,S,Q,J,Z,y,E,P,v,V,h,H,k,T,G,U,l,X,f;return _.I(function(N){if(N.nextAddress==1)return D=_.g(x,UJh),Q=(S=D)==null?void 0:S.nowPlayingEntityValue,Z=(J=D)==null?void 0:J.externalVideoId,V=Number((v=(y=D)==null?void 0:(E=y.defaultStartPoints)==null?void 0:(P=E[0])==null?void 0:P.offsetMs)!=null?v:"0"),U=Number((G=(h=D)==null?void 0:(H=h.defaultStartPoints)==null?void 0:(k=H[0])==null?void 0:(T=k.duration)==null?void 0:T.seconds)!=null?G:"15"),f=(X=
(l=D)==null?void 0:l.playerParams)!=null?X:"",Q&&Z?L.JSC$17474_mainAppPlayer?N.jumpTo(2):N.yield(EX9(L),2):N.return();if(N.nextAddress!=6){if(L.nowPlayingEntityValue&&Q===L.nowPlayingEntityValue)return L.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?N.yield(L.pauseVideo(),0):N.yield(L.playVideo(V,U,f),0);L.externalVideoId=Z;L.nowPlayingEntityValue=Q;L.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return N.yield(L.playVideo(V,U,f),6)}MG3(L);return N.jumpTo(0)})};
RL[IZ]=[yG];var GH=function(x){this.JSC$17492_commandHandler=x};
_.p(GH,jI);GH.prototype.resolveCommand=function(x,L){var D=this,S,Q,J;return _.I(function(Z){if(Z.nextAddress==1)return(S=_.g(x,gER))?Z.yield(_.hL(),2):Z.return();Q=Z.yieldResult;if(!Q)return Z.return();(J=KEh(Q))&&D.JSC$17492_commandHandler.resolveCommand(J,L);_.Y2(Z)})};
GH[IZ]=[_.E2];var Cg=function(x){this.JSC$17498_commandHandler=x};
_.p(Cg,jI);Cg.prototype.resolveCommand=function(x,L){var D=this,S,Q,J,Z,y;return _.I(function(E){if(E.nextAddress==1)return(S=_.g(x,kXC))?E.yield(_.hL(),2):E.return();Q=E.yieldResult;if(!Q)return E.return();(J=EGn(Q))?D.JSC$17498_commandHandler.resolveCommand(J,L):(Z=_.p6("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),y=_.yy(Z),D.JSC$17498_commandHandler.resolveCommand(y));_.Y2(E)})};
Cg[IZ]=[_.E2];var lb=function(x){this.JSC$17501_playerPromise=x};
_.p(lb,jI);lb.prototype.resolveCommand=function(x){var L=this,D,S,Q,J,Z;return _.I(function(y){if(y.nextAddress==1){D=_.g(x,IFR);if(!D)return y.return();S=D.overlayRenderer;return S?(Q=_.g(S,eT2))?y.yield(L.JSC$17501_playerPromise,3):y.jumpTo(0):y.return()}J=y.yieldResult;J.renderChapterSeekingAnimation(1,_.SR(Q.text),(Z=Q.icon)==null?void 0:Z.iconType);_.Y2(y)})};
lb[IZ]=[_.d4];var UA=function(x){this.store=x};
_.p(UA,jI);
UA.prototype.resolveCommand=function(x){var L=this,D,S,Q;return _.I(function(J){if(J.nextAddress==1){D=_.g(x,zQ_);if(!D)return J.return();S="";(Q=L.store.getState().collabInviteLink)&&D.id===Q.playlistId?S=Q.inviteLinkURL:D.shortUrl&&(S=D.shortUrl);return S?J.yield(navigator.clipboard.writeText(S),3):J.jumpTo(0)}var Z={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.p6("COPY_LINK_SUCCESS_TOAST")}}}}};_.yY().resolve(_.E2).resolveCommand(Z);_.Y2(J)})};
UA[IZ]=[nR];var wm=function(x,L){this.innertubeTransportService=x;this.JSC$17511_commandHandler=L};
_.p(wm,jI);wm.prototype.resolveCommand=function(x,L){var D=this,S,Q,J,Z,y,E,P,v,V,h;return _.I(function(H){if(H.nextAddress==1)return(S=_.g(x,_.MJ))?H.yield(_.tD(D.innertubeTransportService,x,(Q=L)==null?void 0:Q.form),2):H.return();(J=H.yieldResult)&&J.errorMetadata&&(Z=J,y=_.yy(Z.error.message),D.JSC$17511_commandHandler.resolveCommand(y));E=J;if((P=E)==null?0:P.actions)for(v=_.O(E.actions),V=v.next();!V.done;V=v.next())h=V.value,D.JSC$17511_commandHandler.resolveCommand(h);_.Y2(H)})};
wm[IZ]=[_.i1,_.E2];var B1=function(){};
_.p(B1,jI);B1.prototype.resolveCommand=function(x){var L;return _.I(function(D){L=_.g(x,Ws_);if(!L)return D.return();(new e4R(L)).show();_.Y2(D)})};_.W1=new _.vx("PLAYLIST_EDIT_CONTROLLER_TOKEN");var qH=function(x,L,D,S){this.store=x;this.innertubeTransportService=L;this.controller=D;this.JSC$17519_commandHandler=S};
_.p(qH,jI);
qH.prototype.resolveCommand=function(x,L){var D=this,S,Q,J,Z,y,E,P,v,V,h,H,k,T,G,U,l,X,f,N,z,xf,K3,P4,kf,H4,p3;return _.I(function(w0){if(w0.nextAddress==1){S=_.g(x,_.Kv);if(!S)return w0.return();if(S.clientActions){Q=_.O(S.clientActions);for(J=Q.next();!J.done;J=Q.next())Z=J.value,D.JSC$17519_commandHandler.resolveCommand(Z);var Rn,lG=L==null?void 0:(Rn=L.form)==null?void 0:Rn.element;lG&&_.MF(lG,"yt-dismissible-item-action",S.clientActions)}return w0.yield(_.tD(D.innertubeTransportService,x,(y=
L)==null?void 0:y.form),2)}if(E=w0.yieldResult)E.errorMetadata?(P=E,v=_.yy(P.error.message),D.JSC$17519_commandHandler.resolveCommand(v),"error"in E&&((V=L)==null?0:(h=V.commandController)==null?0:h.onServerError)&&((H=L)==null||(k=H.commandController)==null||k.onServerError(x,E))):(T=L)==null||(G=T.commandController)==null||(l=(U=G).onSuccess)==null||l.call(U,x,E);X=E;((f=X)==null?0:f.collaborationInviteLink)&&S.playlistId&&(_.u("web_enable_invite_collaborators_link")||_.u("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
D.store.dispatch(_.MU({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:S.playlistId,inviteLinkUrl:X.collaborationInviteLink}}));((N=X)==null?0:N.redirectEndpoint)&&D.JSC$17519_commandHandler.resolveCommand(X.redirectEndpoint);((z=X)==null?0:(xf=z.newHeader)==null?0:xf.playlistHeaderRenderer)?dql(D.controller,X.newHeader.playlistHeaderRenderer):((K3=X)==null?0:(P4=K3.newHeader)==null?0:P4.musicEditablePlaylistDetailHeaderRenderer)&&dql(D.controller,X.newHeader.musicEditablePlaylistDetailHeaderRenderer);
D.controller.playlistVideoListElement&&((kf=X)==null?0:(H4=kf.playlistEditResults)==null?0:(p3=H4[0])==null?0:p3.playlistEditVideoAddedResultData)&&((lG=D.controller.playlistVideoListElement)==null||lG.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:X.playlistEditResults[0].playlistEditVideoAddedResultData})));_.Y2(w0)})};
qH[IZ]=[nR,_.i1,_.W1,_.E2];var AF=function(x,L){this.controller=x;this.JSC$17529_commandHandler=L};
_.p(AF,jI);AF.prototype.resolveCommand=function(x,L){var D=this,S,Q,J;return _.I(function(Z){S=_.g(x,XZG);D.controller.showRefreshPill&&((Q=S)==null?0:Q.command)&&(D.JSC$17529_commandHandler.resolveCommand((J=S)==null?void 0:J.command,L),D.controller.showRefreshPill=!1);_.Y2(Z)})};
AF[IZ]=[_.Ug,_.E2];var $y=function(x,L){this.store=x;this.JSC$17533_commandHandler=L||_.pI.instance};
_.p($y,jI);$y.prototype.resolveCommand=function(x,L){var D=this,S,Q,J,Z,y,E,P,v,V,h;return _.I(function(H){S=_.g(x,IBh);Q=D.store.getState().radioButtonGroup;if((J=S)==null?0:J.command)D.JSC$17533_commandHandler.resolveCommand((Z=S)==null?void 0:Z.command,L);else if(Q&&((y=S)==null?void 0:y.formId)===Q.currentFormId)for(E=Object.values(Q.commandsMap),P=_.O(E),v=P.next();!v.done;v=P.next())V=v.value,(h=_.fI(V))&&D.JSC$17533_commandHandler.resolveCommand(h,L);_.Y2(H)})};
$y[IZ]=[_.MP];var rm=new _.vx("USER_PREFS");var NH=function(x){this.JSC$17538_prefCookie=x};
_.p(NH,jI);NH.prototype.resolveCommand=function(x){var L=this,D;return _.I(function(S){(D=_.g(x,eQQ))&&typeof D.useListView==="boolean"&&(_.s8(0,155,D.useListView),L.JSC$17538_prefCookie.save());_.Y2(S)})};
NH[IZ]=[rm];var ib=function(x){this.JSC$17542_prefCookie=x};
_.p(ib,jI);ib.prototype.resolveCommand=function(x){var L=this,D,S,Q,J,Z;return _.I(function(y){D=_.g(x,Am2);if((S=D)==null||!S.gl)return y.return();Q=D.gl;J={persist_gl:"1",gl:Q};L.JSC$17542_prefCookie.set("gl",Q);L.JSC$17542_prefCookie.save();Z=Y5C(J);_.x9(Z);_.Y2(y)})};
ib[IZ]=[rm];var fg=function(x){this.JSC$17546_prefCookie=x};
_.p(fg,jI);fg.prototype.resolveCommand=function(x){var L=this,D,S;return _.I(function(Q){D=_.g(x,n0G);if(!D)return Q.return();S=!1;D.flagNum&&typeof D.value==="boolean"?(_.s8(0,D.flagNum,D.value),S=!0):D.key&&typeof D.stringValue==="string"&&(L.JSC$17546_prefCookie.set(D.key,D.stringValue),S=!0);S&&L.JSC$17546_prefCookie.save();_.Y2(Q)})};
fg[IZ]=[rm];var oL=new _.vx("PREF_STORAGE_PROMISE_TOKEN");var aL=function(x){this.JSC$17550_prefStoragePromise=x};
_.p(aL,jI);aL.prototype.resolveCommand=function(x){var L=this,D,S;return _.I(function(Q){if(Q.nextAddress==1)return(D=_.g(x,xld))?Q.yield(L.JSC$17550_prefStoragePromise,2):Q.return();S=Q.yieldResult;return S===void 0||D.key===void 0||D.value===void 0?Q.return():Q.yield(S.set(D.key,D.value),0)})};
aL[IZ]=[oL];var Pq9=function(x){this.innertubeTransportService=x};
_.p(Pq9,jI);Pq9.prototype.resolveCommand=function(x,L){var D=this,S,Q;return _.I(function(J){(S=_.g(x,_.JYB))&&S&&S.isFirstRequest&&(_.A_("search_overview_answer"),_.$T("so_rq",void 0,"search_overview_answer"));return J.yield(_.tD(D.innertubeTransportService,x,(Q=L)==null?void 0:Q.form),0)})};
Pq9[IZ]=[_.i1];var jIW=function(){};
_.p(jIW,jI);
jIW.prototype.resolveCommand=function(x){var L,D,S,Q,J,Z,y,E,P;return _.I(function(v){L=_.g(x,ZSB);if((D=L)==null?0:D.sectionIdentifier){if(L.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(Q=(S=document.getElementsByTagName(L.sectionIdentifier))==null?void 0:S.item(0))Q.scrollIntoView({behavior:"smooth"}),(J=KUn(Q))&&J.focus({preventScroll:!0});return v.return()}Z=document.querySelector("[section-identifier="+L.sectionIdentifier+"]");y=document.querySelector("[section-identifier="+L.referenceSectionIdentifier+
"]");if(!Z)return v.return();E=L.verticalScrollOffsetDp?L.verticalScrollOffsetDp:0;y&&(E-=y.offsetTop);window.scrollTo({top:Z.offsetTop+E,behavior:"smooth"});(P=KUn(Z))&&P.focus({preventScroll:!0})}_.Y2(v)})};var zH=function(x){this.JSC$17562_commandHandler=x};
_.p(zH,jI);
zH.prototype.resolveCommand=function(x){var L=this,D,S,Q,J,Z,y,E;return _.I(function(P){if(P.nextAddress==1){D=_.g(x,sOd);if(!D||!D.imageBytes||!navigator.clipboard)return P.return();if(D.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.BI(Error("Ki")),P.return();_.HH(P,2);Q=(S=D)==null?void 0:S.imageBytes;J=Q.replace(/-/g,"+").replace(/_/g,"/");Z=fLO(J);y={};E=[new ClipboardItem((y[Z.type]=Z,y))];return P.yield(navigator.clipboard.write(E),4)}if(P.nextAddress!=2)return D.successCommand&&
L.JSC$17562_commandHandler.resolveCommand(D.successCommand),_.nH(P,0);_.mW(P);D.errorCommand&&L.JSC$17562_commandHandler.resolveCommand(D.errorCommand);_.Y2(P)})};
zH[IZ]=[_.E2];var X$=function(x,L){this.innertubeTransportService=x;this.JSC$17566_commandHandler=L};
_.p(X$,jI);X$.prototype.resolveCommand=function(x,L){var D=this,S,Q,J,Z,y;return _.I(function(E){if(E.nextAddress==1)return(S=_.g(x,T6h))?E.yield(_.tD(D.innertubeTransportService,x,(Q=L)==null?void 0:Q.form),2):E.return();(J=E.yieldResult)&&J.errorMetadata&&S.onFailureCommand&&D.JSC$17566_commandHandler.resolveCommand(S.onFailureCommand);Z=J;((y=Z)==null?0:y.shareCommand)&&D.JSC$17566_commandHandler.resolveCommand(Z.shareCommand,L);_.Y2(E)})};
X$[IZ]=[_.i1,_.E2];var c1=function(){};
_.p(c1,jI);c1.prototype.resolveCommand=function(x){var L,D;return _.I(function(S){L=_.g(x,o0r);if(!L||!navigator.share)return S.return();D={url:L.url};try{return S.return(navigator.share(D))}catch(Q){}_.Y2(S)})};var ng=function(){};
_.p(ng,jI);ng.prototype.resolveCommand=function(){return _.I(function(x){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.Y2(x)})};var tF=function(x){this.JSC$17576_navigationConfirmationService=x};
_.p(tF,jI);tF.prototype.resolveCommand=function(){var x=this;return _.I(function(L){x.JSC$17576_navigationConfirmationService.cancelPendingNavigation();_.Y2(L)})};
tF[IZ]=[aF];var x1=function(x){this.JSC$17579_screenManager=x};
_.p(x1,jI);x1.prototype.resolveCommand=function(x,L){var D=this,S,Q,J,Z,y,E,P;return _.I(function(v){Q=(S=L.form)==null?void 0:S.event;Z=(J=L.form)==null?void 0:J.element;if(!Q)throw new _.RZ("Event not passed in when resolving command");y=_.O(Q.composedPath());for(E=y.next();!E.done;E=y.next())if(P=E.value,P.tagName==="YT-COPY-LINK-RENDERER")return P.copyUrlToClipboard(),Z&&_.XT(D.JSC$17579_screenManager,Z),v.return();_.Y2(v)})};
x1[IZ]=[_.QT];var Ly=function(){this.JSC$17583_miniAppClientDataProvider=_.yY().resolve(_.HQ)};
_.p(Ly,jI);Ly.prototype.resolveCommand=function(){var x=this,L,D;return _.I(function(S){if(x.JSC$17583_miniAppClientDataProvider.clientData.has("video_id")){var Q=x.JSC$17583_miniAppClientDataProvider,J=Q.clientData.get("video_id");J&&Q.clientData.delete("video_id");L="https://youtube.com/watch?v="+J;D=_.Wi(L);if(D===void 0)throw Error("Li`"+L);_.nU(window,D)}_.Y2(S)})};var D0=function(){};
_.p(D0,jI);D0.prototype.resolveCommand=function(){return _.I(function(x){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.Y2(x)})};var SY=function(){};
_.p(SY,jI);SY.prototype.resolveCommand=function(){var x;return _.I(function(L){if(L.nextAddress==1)return L.yield(_.rsw(window.document.documentElement),2);(x=document.querySelector("mini-app-container-view-model iframe"))&&x.focus();_.Y2(L)})};var QU=function(x){this.JSC$17590_navigationConfirmationService=x};
_.p(QU,jI);
QU.prototype.resolveCommand=function(){var x=this;return _.I(function(L){var D=x.JSC$17590_navigationConfirmationService,S=_.yY().resolve(_.np),Q;if(((Q=D.navigateParams)==null?void 0:Q.data)!==void 0){var J;_.lW2(S,D.navigateParams.endpoint,D.navigateParams.data,(J=D.navigateParams.navigationType)!=null?J:1,D.navigateParams.tempData,D.navigateParams.isMiniplayer,void 0,!0);D.navigateParams=void 0;D.customConfirmationCommand=void 0}else D.navigateParams&&(S.navigate(D.navigateParams.endpoint,D.navigateParams.reload,
D.navigateParams.params,D.navigateParams.tempData,D.navigateParams.requestType,D.navigateParams.createScreenConfig,!0),D.navigateParams=void 0,D.customConfirmationCommand=void 0);_.Y2(L)})};
QU[IZ]=[aF];var Jl=function(){};
_.p(Jl,jI);Jl.prototype.resolveCommand=function(){return _.I(function(x){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.Y2(x)})};var Ky=function(x){this.JSC$17595_prefStorage=x};
_.p(Ky,jI);Ky.prototype.resolveCommand=function(){var x=this,L,D;return _.I(function(S){switch(S.nextAddress){case 1:return S.yield(x.JSC$17595_prefStorage,2);case 2:return(L=S.yieldResult)?S.yield(L.set("sfvle",!1),3):S.return();case 3:return S.yield(L.set("sfvles",!0),4);case 4:D=_.FI(),_.s8(0,203,!1),_.s8(0,204,!0),D.save(),_.Y2(S)}})};
Ky[IZ]=[oL];var Or=function(x){this.JSC$17598_prefStorage=x};
_.p(Or,jI);Or.prototype.resolveCommand=function(){var x=this,L,D;return _.I(function(S){switch(S.nextAddress){case 1:return S.yield(x.JSC$17598_prefStorage,2);case 2:return(L=S.yieldResult)?S.yield(L.set("sfvle",!0),3):S.return();case 3:return S.yield(L.set("sfvles",!0),4);case 4:D=_.FI(),_.s8(0,203,!0),_.s8(0,204,!0),D.save(),_.Y2(S)}})};
Or[IZ]=[oL];_.vXW=new _.vx("SNACKBAR_CONTROLLER_TOKEN");_.VG9=new _.vx("SHOULD_SHOW_PIVOT_BAR_TOKEN");var Z0=function(x){this.controller=x};
_.p(Z0,jI);Z0.prototype.resolveCommand=function(x){var L=this,D;return _.I(function(S){D=_.g(x,rYA);if(!D)return S.return();var Q=L.controller;Q.closeSnackbarFn&&Q.closeSnackbarFn();_.Y2(S)})};
Z0[IZ]=[_.vXW];var yU=function(x,L){this.controller=x;this.sheetController=L};
_.p(yU,jI);yU.prototype.resolveCommand=function(x,L){var D=this,S,Q,J,Z,y,E;return _.I(function(P){S=_.g(x,ipA);if(!S)return P.return();Z=QI3(D.sheetController,(Q=L)==null?void 0:(J=Q.form)==null?void 0:J.element);y=_.g(S.content,yTH);if(!y)return P.return();var v=D.controller,V=y,h=(E=S.animationStyle)!=null?E:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(v.showSnackbarFn)v.showSnackbarFn({snackbarViewModel:V,animationStyle:h,durationMs:S.durationSeconds*1E3,target:Z});else throw Error("uj");_.Y2(P)})};
yU[IZ]=[_.vXW,_.SE];var IX=function(){};
_.p(IX,jI);IX.prototype.resolveCommand=function(x){var L;return _.I(function(D){L=_.g(x,tuh);if(!L||typeof L.key!=="string"||typeof L.value!=="string")return D.return();window.localStorage.setItem(L.key,L.value);_.Y2(D)})};var Er=function(x){this.store=x};
_.p(Er,jI);Er.prototype.resolveCommand=function(x){var L=this,D;return _.I(function(S){D=_.g(x,enG);if(!D||!D.stepId||!D.token)return S.return();L.store.dispatch(wSW({stepId:D.stepId,token:D.token,isSelected:!1}));_.Y2(S)})};
Er[IZ]=[nR];var MW=function(x,L,D){this.innertubeTransportService=x;this.store=L;this.JSC$17617_screenManager=D};
_.p(MW,jI);
MW.prototype.resolveCommand=function(x){var L=this,D,S,Q,J,Z,y,E,P,v,V,h,H,k,T,G,U,l,X,f,N,z,xf,K3,P4;return _.I(function(kf){D=_.g(x,Cnf);if(!D||(S=D.stepIds)==null||!S.length)return kf.return();Q=L.store.getState().talkToRecs;J=[];Z=[];y=_.O(D.stepIds);for(E=y.next();!E.done;E=y.next())for(P=E.value,v=void 0,(V=(v=Q.stepStates[P])==null?void 0:v.userQuery)&&Z.push({userQuery:V.userQuery,userQueryToken:V.token}),H=h=void 0,k=(H=(h=Q.stepStates[P])==null?void 0:h.selectionStates)!=null?H:{},T=_.O(Object.entries(k)),
G=T.next();!G.done;G=T.next())U=G.value,l=_.O(U),X=l.next().value,f=l.next().value,N=X,z=f,z.isSelected&&J.push(N);xf={selectedChipTokens:J,userQueries:Z,submittedStepIds:D.stepIds};K3={browseTalk2recsFormData:xf};D.browseEndpoint?(P4=x,_.AH(P4,_.mt,D.browseEndpoint)):D.command&&(P4=D.command);return P4?kf.yield(_.tD(L.innertubeTransportService,P4,{formData:K3,disableCache:!0}).then(function(H4){(H4==null?0:H4.trackingParams)&&L.JSC$17617_screenManager.graftServerVe(H4==null?void 0:H4.trackingParams)}),
0):kf.return()})};
MW[IZ]=[_.i1,nR,_.QT];var dp=function(x){this.store=x};
_.p(dp,jI);dp.prototype.resolveCommand=function(x){var L=this,D;return _.I(function(S){D=_.g(x,TlG);if(!D||!D.stepId||!D.token)return S.return();L.store.dispatch(wSW({stepId:D.stepId,token:D.token,isSelected:!0}));_.Y2(S)})};
dp[IZ]=[nR];var P_=function(x){this.store=x};
_.p(P_,jI);P_.prototype.resolveCommand=function(x,L){var D=this,S,Q,J,Z,y;return _.I(function(E){S=_.g(x,ox2);if(!S||!S.stepId||!S.userQueryToken)return E.return();y=(Z=(Q=L)==null?void 0:(J=Q.form)==null?void 0:J.userQuery)!=null?Z:"";D.store.dispatch(_.MU({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:S.stepId,userQueryToken:S.userQueryToken,userQuery:y}}));_.Y2(E)})};
P_[IZ]=[nR];_.hl5=new _.vx("TIMELY_ACTIONS_CONTROLLER_TOKEN");var jY=function(x){this.controller=x};
_.p(jY,jI);jY.prototype.resolveCommand=function(x){var L=this,D,S,Q,J;return _.I(function(Z){D=_.g(x,Jar);if(!D)return Z.return();S=D;Q=S.id;J=S.isVisible;if(Q===void 0||J===void 0)return Z.return();var y;(y=L.controller.timelyActionsMap.get(Q))==null||y(Q,J);_.Y2(Z)})};
jY[IZ]=[_.hl5];var HlI=function(){this.timelyActionsMap=new Map};var v_=function(x){this.JSC$17643_commandHandler=x};
_.p(v_,jI);v_.prototype.resolveCommand=function(x){var L=this,D,S,Q,J,Z;return _.I(function(y){D=_.g(x,_.Aa);if(!D)return y.return();J=(S=D.item)==null?void 0:(Q=S.notificationTextRenderer)==null?void 0:Q.successResponseText;if(!J)return y.return();Z=_.Zv(J);L.JSC$17643_commandHandler.resolveCommand(Z);_.Y2(y)})};
v_[IZ]=[_.E2];var VU=function(x,L){this.innertubeTransportService=x;this.JSC$17648_playerApiPromise=L};
_.p(VU,jI);
VU.prototype.resolveCommand=function(x){var L=this,D,S,Q,J,Z,y,E,P,v;return _.I(function(V){if(V.nextAddress==1)return V.yield(L.JSC$17648_playerApiPromise,2);D=V.yieldResult;S=D.getOption("captions","track");Q=Object.assign({},_.g(x,_.go2));(Z=(J=D.getVideoData())==null?void 0:J.video_id)?Q.externalVideoId=Z:_.X0(Error("Mi"));if((y=S)==null?0:y.languageCode)Q.languageCode=S.languageCode;if((E=S)==null?0:E.kind)Q.kind=S.kind;if((P=S)==null?0:P.name)Q.name=S.name;v=Object.assign({},x,{getTranscriptEndpoint:Q});return V.yield(_.tD(L.innertubeTransportService,
v),0)})};
VU[IZ]=[_.i1,_.d4];var hl=function(){};
_.p(hl,jI);hl.prototype.resolveCommand=function(x){var L,D,S,Q,J,Z,y,E;return _.I(function(P){L=_.g(x,yS2);if((D=L)==null||!D.paramKeyValuePairs)return P.return();S=window.location.href;Q=_.O(L.paramKeyValuePairs);for(J=Q.next();!J.done;J=Q.next())Z=J.value,Z.key&&Z.value&&(y={},S=_.LH(S,(y[Z.key]=Z.value,y)));E=_.yY().resolve(_.iM);_.NX(E,S);_.Y2(P)})};_.H_=new _.vx("UPDATE_VIDEO_METADATA_CONTROLLER_TOKEN");var u2=function(x,L,D){this.controller=x;this.JSC$17655_playerApiPromise=L;this.innertubeTransportService=D};
_.p(u2,jI);
u2.prototype.resolveCommand=function(x){var L=this,D,S,Q,J,Z,y,E,P,v,V,h,H,k,T,G,U;return _.I(function(l){if(l.nextAddress==1){D=_.g(x,YV_);if((S=D)==null||!S.watchEndpoint)return l.return();Q=new io;J=Q.JSC$13119_getRequest(D.watchEndpoint);if(!J)return l.return();Z=D.watchEndpoint.clickTrackingParams;return l.yield(_.MI(L.innertubeTransportService,J.innerTubeRequest,J.input,Z,J.config),2)}if(l.nextAddress!=3)return y=l.yieldResult,l.yield(L.JSC$17655_playerApiPromise,3);E=l.yieldResult;E.updateVideoData({raw_watch_next_response:y});
if(k=(P=y)==null?void 0:(v=P.contents)==null?void 0:(V=v.twoColumnWatchNextResults)==null?void 0:(h=V.results)==null?void 0:(H=h.results)==null?void 0:H.contents)G=(T=k.find(function(X){return X.videoPrimaryInfoRenderer}))==null?void 0:T.videoPrimaryInfoRenderer,((U=G)==null?0:U.subtitle)&&u9G(L.controller,G.subtitle);
_.Y2(l)})};
u2[IZ]=[_.H_,_.d4,_.i1];var gXG=function(){this.subtitleChangeCallbackMap=new Map},u9G=function(x,L){x=_.O(x.subtitleChangeCallbackMap.values());
for(var D=x.next();!D.done;D=x.next())D=D.value,D(L)};var gp=function(x,L){this.JSC$17665_commandHandler=x;this.innertubeTransportService=L};
_.p(gp,jI);
gp.prototype.resolveCommand=function(x,L){var D=this,S,Q,J,Z,y,E,P,v,V,h,H,k,T,G,U,l,X;return _.I(function(f){switch(f.nextAddress){case 1:return(J=(S=L)==null?void 0:(Q=S.form)==null?void 0:Q.element)&&_.fF(J),Z=_.FI().get("hl"),y="",_.HH(f,2),f.yield(j$s(Z),4);case 4:y=f.yieldResult;_.nH(f,3);break;case 2:return _.mW(f),J&&_.oS(J),_.BI(Error("Oi"),"ERROR"),f.return();case 3:E=_.g(x,Wwh);if(!E)return J&&_.oS(J),f.return();(V=(P=E.commerceActionConfig)==null?void 0:(v=P.commandLifeCycleConfig)==null?
void 0:v.onStartCommand)&&D.JSC$17665_commandHandler.resolveCommand(V);return f.yield(_.tD(D.innertubeTransportService,x,{client_data:{paymentsClientToken:{token:y}}}),5);case 5:(h=f.yieldResult)?(J&&_.oS(J),((G=h)==null?0:G.command)&&D.JSC$17665_commandHandler.resolveCommand(h.command),(X=(U=E.commerceActionConfig)==null?void 0:(l=U.commandLifeCycleConfig)==null?void 0:l.onSuccessCommand)&&D.JSC$17665_commandHandler.resolveCommand(X)):(J&&_.oS(J),_.BI(Error("Pi")),(T=(H=E.commerceActionConfig)==
null?void 0:(k=H.commandLifeCycleConfig)==null?void 0:k.onFailureCommand)&&D.JSC$17665_commandHandler.resolveCommand(T)),_.Y2(f)}})};
gp[IZ]=[_.E2,_.i1];var k1=function(x,L,D){this.store=x;this.JSC$17681_commandHandler=L;this.innertubeTransportService=D};
_.p(k1,jI);
k1.prototype.resolveCommand=function(x,L){var D=this,S,Q,J,Z,y,E,P,v,V;return _.I(function(h){S=_.g(x,qVC);Q=S.googlePaymentPayload;S.onStartCommand&&D.JSC$17681_commandHandler.resolveCommand(S.onStartCommand);J=Q.encryptedPurchaseParams;Z=Q.ypcLogWalletAnalyticDataEndpoint;y=S.serializedTransactionFlowLoggingParams;E=Q.serializedPaymentsClientParams;P=S.ypcCujContext;V=hbb(D.innertubeTransportService,(v=L)==null?void 0:v.form,J,Z,y,E,P);return h.return(V.then(function(H){vG0(L==null?void 0:L.form,
!1);var k=D.store,T=D.JSC$17681_commandHandler,G=H.integratorData;G==null||G===""||H.error!=null?(String(H.error)==="-1"&&S.onDismissCommand?T.resolveCommand(S.onDismissCommand):String(H.error)!=="-1"&&S.onFailureCommand&&T.resolveCommand(S.onFailureCommand),String(H.error)!=="-1"&&String(H.error)!=="132"&&_.BI(Error("Qi"),"ERROR")):(S.googlePaymentEntityKey&&k.dispatch(_.TR("commerceAcquisitionClientPayloadEntity",S.googlePaymentEntityKey,{key:S.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:G,
fundsGuaranteeCallbackClientData:H.integratorClientCallbackData}}})),S.onSuccessCommand&&T.resolveCommand(S.onSuccessCommand));_.V0()},function(H){vG0(L==null?void 0:L.form,!1);
_.BI(H,"ERROR");S.onFailureCommand&&D.JSC$17681_commandHandler.resolveCommand(S.onFailureCommand)}))})};
k1[IZ]=[yG,_.E2,_.i1];var py=function(x,L){this.JSC$17685_commandHandler=x;this.purchaseManager=L};
_.p(py,jI);
py.prototype.resolveCommand=function(x){var L=this,D,S,Q,J,Z,y,E,P,v;return _.I(function(V){D=_.g(x,ATC);((S=D)==null?0:(Q=S.commandLifeCycleConfig)==null?0:Q.onStartCommand)&&L.JSC$17685_commandHandler.resolveCommand(D.commandLifeCycleConfig.onStartCommand);if(!((J=D)==null?0:(Z=J.googlePaymentPurchaseManagerPayload)==null?0:Z.securePayloadBytes))return _.BI(Error("Ri"),"ERROR"),V.return();y=QWd(_.tG(D.googlePaymentPurchaseManagerPayload.securePayloadBytes));E=_.FI().get("hl");P=_.xe();dhs(y.serialize(),
E,function(h){P.resolve(h)},function(h){P.reject(h)},P.resolve);
v=P.promise;return V.return(v.then(function(h){if(h)if(h==null?0:h.errorCode){_.BI(Error("Si`"+h.errorCode),"ERROR");var H,k;((H=D)==null?0:(k=H.commandLifeCycleConfig)==null?0:k.onFailureCommand)&&L.JSC$17685_commandHandler.resolveCommand(D.commandLifeCycleConfig.onFailureCommand)}else if(h==null?0:h.isCancelled){var T,G;((T=D)==null?0:(G=T.commandLifeCycleConfig)==null?0:G.onCancelCommand)&&L.JSC$17685_commandHandler.resolveCommand(D.commandLifeCycleConfig.onCancelCommand)}else{var U,l;((U=D)==
null?0:(l=U.commandLifeCycleConfig)==null?0:l.onSuccessCommand)&&L.JSC$17685_commandHandler.resolveCommand(D.commandLifeCycleConfig.onSuccessCommand)}},function(h){_.BI(h,"ERROR");
var H,k;((H=D)==null?0:(k=H.commandLifeCycleConfig)==null?0:k.onFailureCommand)&&L.JSC$17685_commandHandler.resolveCommand(D.commandLifeCycleConfig.onFailureCommand)}))})};
py[IZ]=[_.E2,PGq];var kgg=function(x,L){this.JSC$17693_commandHandler=x;this.commandAllowlistOverride=L;var D;this.commandAllowlist=(D=this.commandAllowlistOverride)!=null?D:LX};
kgg.prototype.handleResponse=function(x,L,D){var S,Q=L==null?void 0:(S=L.config)==null?void 0:S.command;if(!Q||this.commandAllowlist.some(function(J){return!!_.g(Q,J)})){L=void 0;
D!==void 0&&(L={form:{element:D}});x.onResponseReceivedCommand&&this.JSC$17693_commandHandler.resolveCommand(x.onResponseReceivedCommand,L);x.onResponseReceivedAction&&this.JSC$17693_commandHandler.resolveCommand(x.onResponseReceivedAction,L);x.onResponseReceivedEndpoint&&this.JSC$17693_commandHandler.resolveCommand(x.onResponseReceivedEndpoint,L);x.command&&this.JSC$17693_commandHandler.resolveCommand(x.command,L);if(x.onResponseReceivedCommands)for(D=_.O(x.onResponseReceivedCommands),S=D.next();!S.done;S=
D.next())this.JSC$17693_commandHandler.resolveCommand(S.value,L);if(x.onResponseReceivedActions)for(D=_.O(x.onResponseReceivedActions),S=D.next();!S.done;S=D.next())this.JSC$17693_commandHandler.resolveCommand(S.value,L);if(x.onResponseReceivedEndpoints)for(D=_.O(x.onResponseReceivedEndpoints),S=D.next();!S.done;S=D.next())this.JSC$17693_commandHandler.resolveCommand(S.value,L);if(x.actions)for(x=_.O(x.actions),D=x.next();!D.done;D=x.next())this.JSC$17693_commandHandler.resolveCommand(D.value,L)}};
kgg[IZ]=[_.E2,_.ZN(hIs)];var ps$=new _.vx("INNERTUBE_TOKEN_SERVICE");var mqX=new _.vx("SCHEDULER_TOKEN");var bls=function(x){this.scheduler=x;x={};this.tokenMap=(x.app={},x.user={},x)};
bls.prototype.handleResponse=function(x,L){if(!L)throw Error("Ti");var D;if(x=(D=x.responseContext)==null?void 0:D.innertubeTokenJar){if(x.appTokens){var S,Q,J;D=(S=L.innerTubeRequest.context)==null?void 0:(Q=S.request)==null?void 0:(J=Q.innertubeTokenJar)==null?void 0:J.appTokens;Yu9(this,x.appTokens,this.tokenMap.app,D)}if(x.userTokens){var Z,y,E;L=(Z=L.innerTubeRequest.context)==null?void 0:(y=Z.request)==null?void 0:(E=y.innertubeTokenJar)==null?void 0:E.userTokens;Yu9(this,x.userTokens,this.tokenMap.user,
L)}}};
bls.prototype.processContext=function(x){x.request||(x.request={});var L=Object.keys(this.tokenMap.app).length,D=Object.keys(this.tokenMap.user).length;if(L||D)x.request.innertubeTokenJar={},L&&(x.request.innertubeTokenJar.appTokens=[].concat(_.lP(Object.values(this.tokenMap.app).flat()))),D&&(x.request.innertubeTokenJar.userTokens=[].concat(_.lP(Object.values(this.tokenMap.user).flat())))};
var Yu9=function(x,L,D,S){L=_.O(L);for(var Q=L.next(),J={};!Q.done;J={token$jscomp$139:void 0},Q=L.next()){J.token$jscomp$139=Q.value;if(J.token$jscomp$139.type===void 0)throw new _.RZ("InnerTube token has no type",J.token$jscomp$139);if(J.token$jscomp$139.clearTokens)D[J.token$jscomp$139.type]=[];else if(J.token$jscomp$139.value!==void 0){D[J.token$jscomp$139.type]||(D[J.token$jscomp$139.type]=[]);if(S!==void 0&&S.length){Q=_.O(S);for(var Z=Q.next(),y={};!Z.done;y={requestToken:void 0},Z=Q.next())y.requestToken=
Z.value,Z=D[J.token$jscomp$139.type].findIndex(function(E){return function(P){return P===E.requestToken||(0,_.wk.equals)(P,E.requestToken)}}(y)),Z>-1&&D[J.token$jscomp$139.type].splice(Z,1)}D[J.token$jscomp$139.type].push(J.token$jscomp$139);
J.token$jscomp$139.maxAgeSeconds&&Number(J.token$jscomp$139.maxAgeSeconds)>0&&x.scheduler.addLowPriorityJob(function(E){return function(){var P=D[E.token$jscomp$139.type].indexOf(E.token$jscomp$139);P>-1&&D[E.token$jscomp$139.type].splice(P,1)}}(J),Number(J.token$jscomp$139.maxAgeSeconds)*1E3)}else throw new _.RZ("InnerTube token has no value",J.token$jscomp$139);
}};
bls[IZ]=[mqX];var F3g=new _.vx("LOCAL_INNERTUBE_ROUTER_TOKEN"),sIl=new _.vx("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var mb=function(x){this.serviceMap=x};
mb.prototype.shouldPreferLocalResponse=function(x,L){return(x=T$g(this,x))?x.shouldPreferLocalResponse(L):!1};
mb.prototype.localInnertubeResponse=function(x,L){var D=this,S;return _.I(function(Q){return(S=T$g(D,x))?Q.return(S.localInnertubeResponse(L)):Q.return(Promise.reject(Error("Ui")))})};
mb.prototype.canProvideFallbackResponse=function(x,L){return(x=T$g(this,x))?x.canProvideFallbackResponse(L):!1};
mb.prototype.localFallbackInnertubeResponse=function(x,L){var D=this,S;return _.I(function(Q){return(S=T$g(D,x))?Q.return(S.localFallbackInnertubeResponse(L)):Q.return(Promise.reject(Error("Ui")))})};
var T$g=function(x,L){L=_.gE(L);return L?(x=x.serviceMap[L])?x:null:null};
mb[IZ]=[sIl];var Yv=function(){};
Yv.prototype.shouldPreferLocalResponse=function(){return!1};
Yv.prototype.localInnertubeResponse=function(){return _.I(function(x){return x.return(Promise.reject(Error("Vi")))})};
Yv.prototype.canProvideFallbackResponse=function(){return!0};
Yv.prototype.localFallbackInnertubeResponse=function(){var x,L,D;return _.I(function(S){x=gq("CLOSE_POPUP");L={openPopupAction:u8N()};D={actions:[x,L]};return S.return(D)})};var uyf=function(x,L){this.JSC$17742_upliftPromise=x;this.store=L};
_.K=uyf.prototype;_.K.shouldPreferLocalResponse=function(x){var L=x.videoId,D;if(D=L)D=een(this.store.getState().entities,x.videoId);return D&&Reh(this.store.getState().entities,L)?kYb(this.store.getState().entities,x.playlistId):!1};
_.K.localInnertubeResponse=function(x){var L=this,D;return _.I(function(S){return(D=L.getPlayerResponse(x))?S.return(Promise.resolve(D)):S.return(Promise.reject(Error("Wi")))})};
_.K.canProvideFallbackResponse=function(x){return!!x.videoId};
_.K.localFallbackInnertubeResponse=function(x){var L=this,D;return _.I(function(S){if(S.nextAddress==1)return S.yield(L.JSC$17742_upliftPromise,2);D=L.getPlayerResponse(x);var Q;D?Q=S.return(Promise.resolve(D)):Q=GD(L.store.getState().entities,x.videoId)?S.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.ya(_.p6("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:CI4()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
S.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.ya(_.p6("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:Gl3()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return Q})};
_.K.getPlayerResponse=function(x){return QOs(this.store.getState().entities,x.videoId)};var by=function(x,L){this.localPlayerService=x;this.localWatchNextService=L};
by.prototype.shouldPreferLocalResponse=function(x){var L=x.playerRequest;x=x.watchNextRequest;return!!(L&&this.localPlayerService.shouldPreferLocalResponse(L)&&x&&this.localWatchNextService.shouldPreferLocalResponse(x))};
by.prototype.localInnertubeResponse=function(x){var L=this,D,S,Q,J;return _.I(function(Z){if(Z.nextAddress==1){D=x.playerRequest;S=x.watchNextRequest;if(!D||!S)throw new _.RZ("Missing streaming request",x);return Z.yield(L.localPlayerService.localInnertubeResponse(D),2)}if(Z.nextAddress!=3)return Q=Z.yieldResult,Z.yield(L.localWatchNextService.localInnertubeResponse(S),3);J=Z.yieldResult;return Z.return({playerResponse:Q,watchNextResponse:J})})};
by.prototype.canProvideFallbackResponse=function(x){var L=x.playerRequest;x=x.watchNextRequest;return!!(L&&this.localPlayerService.canProvideFallbackResponse(L)&&x&&this.localWatchNextService.canProvideFallbackResponse(x))};
by.prototype.localFallbackInnertubeResponse=function(x){var L=this,D,S,Q,J;return _.I(function(Z){if(Z.nextAddress==1)return D=x.playerRequest,S=x.watchNextRequest,D&&S?Z.yield(L.localPlayerService.localFallbackInnertubeResponse(D),2):Z.return(Promise.reject(new _.RZ("Missing streaming request",x)));if(Z.nextAddress!=3)return Q=Z.yieldResult,Z.yield(L.localWatchNextService.localFallbackInnertubeResponse(S),3);J=Z.yieldResult;return Z.return({playerResponse:Q,watchNextResponse:J})})};var gV=function(x){this.JSC$17752_persistentStorePromiseAccessor=x};
gV.prototype.shouldPreferLocalResponse=function(){return!1};
gV.prototype.localInnertubeResponse=function(){return _.I(function(x){return x.return(Promise.reject(Error("Xi")))})};
gV.prototype.canProvideFallbackResponse=function(){return!0};
gV.prototype.localFallbackInnertubeResponse=function(){var x=this,L,D;return _.I(function(S){return S.nextAddress==1?S.yield(x.JSC$17752_persistentStorePromiseAccessor(),2):S.nextAddress!=3?(L=S.yieldResult)?S.yield(L.get("service:guide:fallback"),3):S.return(Promise.reject(Error("Yi"))):(D=S.yieldResult)&&_.Oy(D)?S.return(p0N(_.Oy(D))):S.return(Promise.reject(Error("Zi")))})};var Fo=function(){};
Fo.prototype.shouldPreferLocalResponse=function(){return!1};
Fo.prototype.localInnertubeResponse=function(){return _.I(function(x){return x.return(Promise.reject(Error("$i")))})};
Fo.prototype.canProvideFallbackResponse=function(){return!0};
Fo.prototype.localFallbackInnertubeResponse=function(){var x,L,D;return _.I(function(S){x=gq("CLOSE_POPUP");L={openPopupAction:u8N()};D={actions:[x,L]};return S.return(D)})};var uy=function(){this.urlMap=elW;this.fallbackCommand=_.fv};
uy.prototype.shouldPreferLocalResponse=function(x){return(x=x.url)?!!Rl5(this,x):!1};
uy.prototype.localInnertubeResponse=function(x){var L=this,D;return _.I(function(S){return(D=x.url)?S.return(Ggl(x,Rl5(L,D))):S.return(Promise.reject(Error("aj")))})};
uy.prototype.canProvideFallbackResponse=function(){return!0};
uy.prototype.localFallbackInnertubeResponse=function(x){var L=this,D,S,Q,J,Z,y,E;return _.I(function(P){D=x.url;if(!D)return P.return(Ggl(x,L.fallbackCommand));if(S=Rl5(L,D))return P.return(Ggl(x,S));Q=void 0;J=_.gE(D);J==="/watch"&&(Z=_.om(D,"v"))&&(E=(y=_.om(D,"list"))!=null?y:void 0,Q=_.Zo(Z,E));Q||(Q=L.fallbackCommand);return P.return(Ggl(x,Q))})};
var Rl5=function(x,L){if(L)return x.urlMap[_.XY(L)]},Ggl=function(x,L){L&&x.parentTrackingParams&&(L.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:x.parentTrackingParams}},L.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:L})};var kv=function(x,L,D){this.JSC$17762_upliftPromise=x;this.store=L;this.JSC$17762_persistentStorePromiseAccessor=D};
kv.prototype.shouldPreferLocalResponse=function(){return!1};
kv.prototype.localInnertubeResponse=function(){return _.I(function(x){return x.return(Promise.reject(Error("bj")))})};
kv.prototype.canProvideFallbackResponse=function(){return!0};
kv.prototype.localFallbackInnertubeResponse=function(){var x=this;return _.I(function(L){return L.return(Cq9(x))})};
var Cq9=function(x){var L,D;return _.I(function(S){if(S.nextAddress==1)return S.yield(KG(x.JSC$17762_upliftPromise,x.store),2);L=S.yieldResult;D={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[gG0(L)]}}}};return S.return(lY9(x,D))})},lY9=function(x,L){var D,S;
return _.I(function(Q){if(Q.nextAddress==1)return Q.yield(x.JSC$17762_persistentStorePromiseAccessor(),2);if(Q.nextAddress!=3)return D=Q.yieldResult,Q.yield(ZS(D),3);S=Q.yieldResult;return Q.return({responseContext:{},contents:L,topbar:S})})};var hK=function(x,L,D){this.JSC$17769_upliftPromise=x;this.store=L;this.JSC$17769_persistentStorePromiseAccessor=D};
hK.prototype.shouldPreferLocalResponse=function(x){var L=x.videoId;return L&&een(this.store.getState().entities,L)&&Reh(this.store.getState().entities,L)?kYb(this.store.getState().entities,x.playlistId):!1};
hK.prototype.localInnertubeResponse=function(x){var L=this,D,S;return _.I(function(Q){if(Q.nextAddress==1)return(D=x.videoId)?Q.yield(L.JSC$17769_upliftPromise,2):Q.return(Promise.reject(Error("cj")));if(Q.nextAddress!=3)return Q.yield(Uq5(L,x,D),3);S=Q.yieldResult;return Q.return(ws5(L,S,D))})};
hK.prototype.canProvideFallbackResponse=function(x){return x.videoId?!0:!1};
hK.prototype.localFallbackInnertubeResponse=function(x){var L=this,D,S,Q,J;return _.I(function(Z){switch(Z.nextAddress){case 1:return(D=x.videoId)?Z.yield(L.JSC$17769_upliftPromise,2):Z.return(Promise.reject(Error("cj")));case 2:return Z.yield(Uq5(L,x,D),3);case 3:S=Z.yieldResult;if(GD(L.store.getState().entities,D)){Z.jumpTo(4);break}return Z.yield(KG(L.JSC$17769_upliftPromise,L.store),5);case 5:return Q=Z.yieldResult,Z.return(B$q(S,Q));case 4:return een(L.store.getState().entities,D)&&Reh(L.store.getState().entities,
D)?Z.return(ws5(L,S,D)):(J={title:_.ya(_.p6("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:CI4()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},Z.return(B$q(S,J)))}})};
var Uq5=function(x,L,D){var S,Q,J,Z,y;return _.I(function(E){if(E.nextAddress==1)return S=L.playlistId,Q=_.Zo(D,S),E.yield(x.JSC$17769_persistentStorePromiseAccessor(),2);if(E.nextAddress!=3)return J=E.yieldResult,E.yield(ZS(J),3);Z=E.yieldResult;y={responseContext:{},currentVideoEndpoint:Q,topbar:Z};return E.return(y)})},ws5=function(x,L,D){if(x=GD(x.store.getState().entities,D)){var S;
D=x.videoEntity;var Q,J={title:It(D.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.E4((S=D.localizedStrings)==null?void 0:S.viewCount),viewCount:_.E4((Q=D.localizedStrings)==null?void 0:Q.viewCount)}}};D.publishedTimestampMillis&&(J.dateText=_.E4(tP0(new Date(Number(D.publishedTimestampMillis)))));S={videoPrimaryInfoRenderer:J};Q=x.videoEntity;x=x.channelEntity;x={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:It(_.p6("SHOW_MORE",void 0,"Show more")),
showLessText:It(_.p6("SHOW_LESS",void 0,"Show less")),description:Q.formattedDescription,owner:{videoOwnerRenderer:{title:It(x.title),thumbnail:x.avatar}}}};L.contents={twoColumnWatchNextResults:{results:{results:{contents:[S,x]}}}}}return L},B$q=function(x,L){x.contents={singleColumnWatchNextResults:{results:{results:{contents:[gG0(L)]}}}};
return x};var mI=function(x,L,D){this.JSC$17774_upliftPromise=x;this.store=L;this.JSC$17774_persistentStorePromiseAccessor=D};
mI.prototype.shouldPreferLocalResponse=function(){return!1};
mI.prototype.localInnertubeResponse=function(){return _.I(function(x){return x.return(Promise.reject(Error("dj")))})};
mI.prototype.canProvideFallbackResponse=function(){return!0};
mI.prototype.localFallbackInnertubeResponse=function(){var x=this,L,D,S,Q;return _.I(function(J){switch(J.nextAddress){case 1:return J.yield(x.JSC$17774_persistentStorePromiseAccessor(),2);case 2:return L=J.yieldResult,J.yield(ZS(L),3);case 3:return D=J.yieldResult,S={responseContext:{},topbar:D},J.yield(x.JSC$17774_upliftPromise,4);case 4:return J.yield(KG(x.JSC$17774_upliftPromise,x.store),5);case 5:return Q=J.yieldResult,S.watchStatus={backgroundPromoRenderer:Q},J.return(S)}})};_.W3s=new _.vx("ENDPOINT_MAP");var quW=function(){var x=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return x.sequenceMap}}},TpB=function(x,L,D){var S,Q=(S=L.config)==null?void 0:S.sequenceStrategy;
if(!Q)return D();x.sequenceMap.has(Q.sequenceKey)||x.sequenceMap.set(Q.sequenceKey,[]);x=x.sequenceMap.get(Q.sequenceKey);switch(Q.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return A5q(x,L,D);case "REQUEST_SEQUENCE_TYPE_REPLACE":return $qG(x,L,D);default:throw new _.RZ("Request could not be sequenced",L);}},A5q=function(x,L,D){var S,Q,J;
return _.I(function(Z){x.length>0?(Q=x[x.length-1],S=Q.responsePromise.then(function(){return D()})):S=D();
J={request:L,responsePromise:S};x.push(J);r5q(x,J);return Z.return(J.responsePromise)})},$qG=function(x,L,D){D=D();
if(x.length>0)for(var S=_.O(x),Q=S.next();!Q.done;Q=S.next())Q.value.responsePromise=D;var J={request:L,responsePromise:D};x.push(J);r5q(x,J);return Promise.resolve().then(function(){return x.indexOf(J)>0?J.responsePromise.then(function(Z){return Object.assign({},Z,{sequenceMetaData:{skipProcessing:!0}})}):J.responsePromise})},r5q=function(x,L){L.responsePromise.then(function(){var D=x.indexOf(L);
D>-1&&x.splice(D,1)})};var N$u=new _.vx("REQUEST_SEQUENCING");var b2=function(){};
_.p(b2,$r);b2.prototype.getApiPaths=function(){return[]};
b2.prototype.getExtension=function(x){return _.g(x,MSd)};
b2.prototype.JSC$13119_buildRequest=function(x,L){x.recaptchaToken=L.recaptchaToken};
b2.prototype.getApiUrl=function(){return"/das_captcha"};var Y1=function(){};
_.p(Y1,$r);Y1.prototype.getApiPaths=function(){return wVC};
Y1.prototype.getExtension=function(x){return _.g(x,$_d)};
Y1.prototype.JSC$13119_buildRequest=function(x,L,D){D=D===void 0?{}:D;L.createBackstagePostParams&&(x.createBackstagePostParams=L.createBackstagePostParams);D.comment_text&&(x.commentText=D.comment_text);if(D.attached_video_id)x.videoAttachment={videoId:D.attached_video_id};else if(D.image_poll_options)x.pollAttachmentData={options:D.image_poll_options};else if(D.poll_options)x.pollAttachment={choices:D.poll_options};else if(D.quiz_options)x.quizAttachmentData={options:D.quiz_options};else if(D.image_blob_id)x.imageAttachment=
{encryptedBlobId:D.image_blob_id},D.source_video_id&&(x.imageAttachment.sourceExternalVideoId=D.source_video_id),D.image_preview_coordinates&&(x.imageAttachment.previewCoordinates=JSON.parse(D.image_preview_coordinates));else if(D.images_data)x.imagesAttachment={imagesData:D.images_data};else if(D.clip_external_video_id!==void 0||D.clip_offset_ms!==void 0||D.clip_duration_ms!==void 0){var S,Q,J,Z,y;x.clipAttachment={externalVideoId:(J=D.clip_external_video_id)!=null?J:"",offsetMs:(Z=(S=D.clip_offset_ms)==
null?void 0:S.toString())!=null?Z:"",durationMs:(y=(Q=D.clip_duration_ms)==null?void 0:Q.toString())!=null?y:""}}else D.shared_post_id&&(x.sharedPostAttachment={postId:D.shared_post_id});D.tagged_video_id&&(x.postCreationData={taggedVideoId:D.tagged_video_id});D.access_restrictions&&(typeof D.access_restrictions==="number"&&(L=D.access_restrictions,x.accessRestrictions={restriction:L!==1&&L===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof D.access_restrictions==="string"&&
(x.accessRestrictionsParams=D.access_restrictions));D.scheduled_publish_time_sec&&(x.scheduledPublishTimeSec=D.scheduled_publish_time_sec.toString())};var F3=function(){};
_.p(F3,$r);F3.prototype.getApiPaths=function(){return NKG};
F3.prototype.getExtension=function(x){return _.g(x,CeW)};
F3.prototype.JSC$13119_buildRequest=function(x,L,D){D=D===void 0?{}:D;L.decorateMessageParams&&(x.params=L.decorateMessageParams);D.text&&(x.text=D.text)};var sr=function(){};
_.p(sr,$r);sr.prototype.getApiPaths=function(){return IkH};
sr.prototype.getExtension=function(x){return _.g(x,rRr)};
sr.prototype.JSC$13119_buildRequest=function(x,L,D){D=D===void 0?{}:D;D.video_id&&(x.videoId=D.video_id)};var TO=function(){};
_.p(TO,$r);TO.prototype.getApiPaths=function(){return jbH};
TO.prototype.getExtension=function(x){return _.g(x,_.ul)};
TO.prototype.JSC$13119_buildRequest=function(x,L,D){D.suggestions_query&&(x.input=D.suggestions_query)};var eY=function(){};
_.p(eY,$r);eY.prototype.getApiPaths=function(){return zgH};
eY.prototype.getExtension=function(x){return _.g(x,NGR)};
eY.prototype.JSC$13119_buildRequest=function(x,L,D){D.comment_text!==void 0&&(x.commentText=D.comment_text);D.scheduled_publish_time_sec&&(x.scheduledPublishTimeSec=D.scheduled_publish_time_sec.toString());x.updateBackstagePostParams=L.updateBackstagePostParams};var RX=function(){};
_.p(RX,$r);RX.prototype.getApiPaths=function(){return ti};
RX.prototype.getExtension=function(x){return _.g(x,_.ol)};
RX.prototype.JSC$13119_buildRequest=function(x,L,D){D.formData&&(x.formData=D.formData);L.token?x.continuation=L.token:L.continuationTokenKey&&(D=_.Jd().getState(),L=_.u6(D.entities,"continuationTokenEntity",L.continuationTokenKey))&&(x.continuation=String(L.continuationToken))};
var il5=function(){};
_.p(il5,$r);_.K=il5.prototype;_.K.getApiPaths=function(){return ti};
_.K.getExtension=function(x){return _.g(x,_.mt)};
_.K.isNavigationCommand=function(){return!0};
_.K.JSC$13126_getStoreKey=function(x){if((x=this.getExtension(x))&&x.browseId){var L={browseId:x.browseId};x.browseEndpointContextSupportedConfigs&&(L.browseEndpointContextSupportedConfigs=JSON.stringify(x.browseEndpointContextSupportedConfigs));x.params&&(L.params=x.params);x.query&&(L.query=x.query);return _.xT("browse",L)}};
_.K.JSC$13119_buildRequest=function(x,L,D){L.browseId&&(x.browseId=L.browseId);L.params&&(x.params=L.params);L.query&&(x.query=L.query);D.formData?x.formData=D.formData:L.formData&&(x.formData=L.formData);L.browseId==="FEsubscriptions"&&_.FI().getFlag(155)&&(x.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");L.browseId==="SPaccount_playback"&&(D=_.FI(),x.formData||(x.formData={}),x.formData.accountSettingsFormData={flagCaptionsDefaultOff:D.getFlag(65),flagAutoCaptionsDefaultOn:D.getFlag(66),
flagDisableInlinePreview:D.getFlag(186),flagAudioDescriptionDefaultOn:D.getFlag(198)});if(L.browseId==="FEwhat_to_watch"){D=_.FI();var S=D.getFlag(196);D.getFlag(197)&&(x.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:S}}})}L.browseId==="FEwhat_to_watch"&&(L=_.FI().getFlag(186),x.inlineSettingStatus=L?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.K.getRequestConfig=function(x,L){L=L===void 0?{}:L;var D={};if(x=this.JSC$13126_getStoreKey(x,L))D.storeStrategy={storeKey:x,disableCache:L.disableCache};_.u("web_log_browse_ticks_ks")||(D.requestTick="br_s",D.responseTick="br_r");return D};var GO=function(){};
_.p(GO,$r);GO.prototype.getApiPaths=function(){return e8R};
GO.prototype.getExtension=function(x){return _.g(x,h7H)};
GO.prototype.JSC$13119_buildRequest=function(x,L,D){x.legacyYoutubeChannelUsername=D.legacyYouTubeChannelUsername||"";x.legacyYoutubeChannelPassword=D.legacyYouTubeChannelPassword||""};var Cy=function(){};
_.p(Cy,$r);Cy.prototype.getApiPaths=function(){return Bd2};
Cy.prototype.getExtension=function(x){return _.g(x,cRB)};
Cy.prototype.JSC$13119_buildRequest=function(x,L,D){D.recaptcha_response_token&&(x.recaptchaResponseToken=D.recaptcha_response_token);D.channel_id&&(x.channelId=D.channel_id)};var l2=function(){};
_.p(l2,$r);l2.prototype.getApiPaths=function(){return Xz2};
l2.prototype.getExtension=function(x){return _.g(x,Sxh)};
l2.prototype.JSC$13119_buildRequest=function(x,L,D){L.externalChannelId&&(x.externalChannelId=L.externalChannelId);D.handle&&(x.handleUpdate={handle:D.handle},L.handleEditSource&&(x.handleUpdate.handleEditSource=L.handleEditSource))};var Ur=function(){};
_.p(Ur,$r);Ur.prototype.getApiPaths=function(){return xr2};
Ur.prototype.getExtension=function(x){return _.g(x,brd)};
Ur.prototype.JSC$13119_buildRequest=function(x,L,D){L.request&&(x.channelId=L.request.channelId);var S;if(D==null?0:(S=D.uploadDefaults)==null?0:S.emojiReactionSet)x.uploadDefaultsRequest||(x.uploadDefaultsRequest={}),x.uploadDefaultsRequest.emojiReactionSet=D.uploadDefaults.emojiReactionSet};var wp=function(){};
_.p(wp,$r);wp.prototype.getApiPaths=function(){return S0R};
wp.prototype.getExtension=function(x){return _.g(x,nxh)};
wp.prototype.JSC$13119_buildRequest=function(x,L,D){L.externalChannelId&&(x.externalChannelId=L.externalChannelId);L.channelHandleEntityKey&&(x.channelHandleEntityKey=L.channelHandleEntityKey);L.handleEditSource&&(x.handleEditSource=L.handleEditSource);D.handle?x.handle=D.handle:D.name&&(x.name=D.name)};var B_=function(){};
_.p(B_,$r);B_.prototype.getApiPaths=function(){return CMG};
B_.prototype.getExtension=function(x){return _.g(x,Po2)};
B_.prototype.JSC$13119_buildRequest=function(x,L){L.actions?x.actions=L.actions:L.action&&(x.actions=[L.action])};var W_=function(){};
_.p(W_,$r);W_.prototype.getApiPaths=function(){return lQ2};
W_.prototype.getExtension=function(x){return _.g(x,_.ol)};
W_.prototype.JSC$13119_buildRequest=function(x,L){L.token&&(x.continuation=L.token)};var qW=function(){};
_.p(qW,$r);qW.prototype.getApiPaths=function(){return ZEh};
qW.prototype.getExtension=function(x){return _.g(x,_.ol)};
qW.prototype.JSC$13119_buildRequest=function(x,L){x.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";L.token&&(x.fetchCommentsParams={continuation:L.token})};var Al=function(){};
_.p(Al,$r);Al.prototype.getApiPaths=function(){return qGW};
Al.prototype.getExtension=function(x){return _.g(x,dIG)};
Al.prototype.JSC$13119_buildRequest=function(x,L,D){D=D===void 0?{}:D;L.createReplyParams&&(x.createReplyParams=L.createReplyParams);L.commentText&&(x.commentText=_.SR(L.commentText));D.comment_text&&(x.commentText=D.comment_text);D.image_blob_id&&(x.imageAttachment={encryptedBlobId:D.image_blob_id});D.botguard_response&&(x.botguardResponse=D.botguard_response)};
_.J3.Object.defineProperties(Al.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var $1=function(){};
_.p($1,$r);$1.prototype.getApiPaths=function(){return AQr};
$1.prototype.getExtension=function(x){return _.g(x,_.MPR)};
$1.prototype.JSC$13119_buildRequest=function(x,L,D){D=D===void 0?{}:D;L.createCommentParams&&(x.createCommentParams=L.createCommentParams);L.commentText&&(x.commentText=_.SR(L.commentText));L.videoPositionMention&&(x.videoPositionMention=L.videoPositionMention);L.sources&&(x.sources=L.sources);D.comment_text&&(x.commentText=D.comment_text);D.attached_video_id?x.videoAttachment={videoId:D.attached_video_id}:D.poll_options?x.pollAttachment={choices:D.poll_options}:D.image_blob_id?x.imageAttachment=
{encryptedBlobId:D.image_blob_id}:D.shared_post_id&&(x.sharedPostAttachment={postId:D.shared_post_id});D.access_restrictions&&typeof D.access_restrictions==="number"&&(L=D.access_restrictions,x.accessRestrictions={restriction:L!==1&&L===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});D.botguard_response&&(x.botguardResponse=D.botguard_response)};
_.J3.Object.defineProperties($1.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var rp=function(){};
_.p(rp,$r);rp.prototype.getApiPaths=function(){return cyC};
rp.prototype.getExtension=function(x){return _.g(x,vr_)};
rp.prototype.JSC$13119_buildRequest=function(x,L,D){L.commentText&&(x.replyText=_.SR(L.commentText));D.comment_text&&(x.replyText=D.comment_text);x.updateReplyParams=L.updateReplyParams};
_.J3.Object.defineProperties(rp.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var NW=function(){};
_.p(NW,$r);NW.prototype.getApiPaths=function(){return n5Q};
NW.prototype.getExtension=function(x){return _.g(x,jOr)};
NW.prototype.JSC$13119_buildRequest=function(x,L,D){L.commentText&&(x.commentText=_.SR(L.commentText));D.comment_text&&(x.commentText=D.comment_text);x.updateCommentParams=L.updateCommentParams};
_.J3.Object.defineProperties(NW.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var i2=function(){};
_.p(i2,$r);i2.prototype.getApiPaths=function(){return tEG};
i2.prototype.getExtension=function(x){return _.g(x,g02)};
i2.prototype.JSC$13119_buildRequest=function(x,L){L.settings&&(x.settings=L.settings)};var fy=function(){};
_.p(fy,$r);fy.prototype.getApiPaths=function(){return LJd};
fy.prototype.getExtension=function(x){return _.g(x,tSH)};
fy.prototype.JSC$13119_buildRequest=function(x,L){L.channelCreationToken&&(x.channelCreationToken=L.channelCreationToken);L.source&&(x.source=L.source)};var oX=function(){};
_.p(oX,$r);oX.prototype.getApiPaths=function(){return WPi};
oX.prototype.getExtension=function(x){return _.g(x,DoH)};
oX.prototype.JSC$13119_buildRequest=function(x,L,D){D=D===void 0?{}:D;if(D.name&&(D.given_name||D.family_name))x=new _.RZ("channel creation cannot set both GAIA and YouTube names",L),_.BI(x);else{if(L.zeroStepChannelCreationParams){if(!D.comment_text){x=new _.RZ("zero_step_create_comment_params but no zero_step_texts",L);_.BI(x);return}x.zeroStepChannelCreationParams=L.zeroStepChannelCreationParams;x.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(x.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
D.comment_text,D.botguard_response&&(x.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=D.botguard_response))}x.channelCreationToken=L.channelCreationToken;D.given_name&&(x.givenName=D.given_name);D.family_name&&(x.familyName=D.family_name);L.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(x.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(D.name||D.handle||D.avatar_url||D.encryptedBlobId||D.isNameChanged!==void 0||D.isHandleChanged!==void 0||D.isDefaultProfilePhoto!==
void 0||D.obakeImageSource)x.overrideChannelCreationParams={},D.name&&(x.overrideChannelCreationParams.name=D.name),D.handle&&(x.overrideChannelCreationParams.handle=D.handle),D.avatar_url&&(x.overrideChannelCreationParams.avatarUrl=D.avatar_url),D.encryptedBlobId&&(x.overrideChannelCreationParams.blobEncryptionId=D.encryptedBlobId),D.enableIdentityForAllChannelCreationDialog&&(D.encryptedBlobId?x.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
D.isDefaultProfilePhoto!==void 0&&(x.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=D.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),D.isNameChanged!==void 0&&(x.overrideChannelCreationParams.identityForAllChannelCreationNameTag=D.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),D.isHandleChanged!==
void 0&&(x.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=D.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),D.obakeImageSource&&(x.overrideChannelCreationParams.obakeImageSourceType=D.obakeImageSource))}};var aX=function(){};
_.p(aX,$r);aX.prototype.getApiPaths=function(x){return(x=this.getExtension(x))&&x.status==="DISLIKE"?aQ_:x&&x.status==="INDIFFERENT"?GaW:uPA};
aX.prototype.getExtension=function(x){return _.g(x,_.N1)};
aX.prototype.JSC$13119_buildRequest=function(x,L){L.target&&(x.target=L.target);if(L=this.getParams(L))x.params=L};
aX.prototype.getParams=function(x){switch(x==null?void 0:x.status){case "DISLIKE":return x.dislikeParams;case "INDIFFERENT":return x.removeLikeParams;default:return x==null?void 0:x.likeParams}};var zO=function(){};
_.p(zO,$r);zO.prototype.getApiPaths=function(){return ryi};
zO.prototype.getExtension=function(x){return _.g(x,kyW)};
zO.prototype.JSC$13119_buildRequest=function(x,L){L.settingItemId&&(x.settingItemId=L.settingItemId);L.stringValue!=null&&L.stringValue!==void 0?x.newValue={stringValue:L.stringValue}:L.intValue?x.newValue={intValue:L.intValue}:L.boolValue!==null&&L.boolValue!==void 0?x.newValue={boolValue:L.boolValue}:(x=new _.RZ("Unknown value type for SetSettingEndpoint.",L),_.BI(x))};var X3=function(){};
_.p(X3,$r);X3.prototype.getApiPaths=function(){return fkR};
X3.prototype.getExtension=function(x){return _.g(x,qj2)||void 0};
X3.prototype.JSC$13119_buildRequest=function(x,L,D){D=D===void 0?{}:D;L.channelIds&&(x.channelIds=L.channelIds);L.siloName&&(x.siloName=L.siloName);L.params&&(x.params=L.params);D.botguardResponse&&(x.botguardResponse=D.botguardResponse);D.feature&&(x.clientFeature=D.feature)};
_.J3.Object.defineProperties(X3.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var c_=function(){};
_.p(c_,$r);c_.prototype.getApiPaths=function(){return akA};
c_.prototype.getExtension=function(x){return _.g(x,py2)||void 0};
c_.prototype.JSC$13119_buildRequest=function(x,L){L.channelIds&&(x.channelIds=L.channelIds);L.siloName&&(x.siloName=L.siloName);L.params&&(x.params=L.params)};
_.J3.Object.defineProperties(c_.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ny=function(x){this.shareClientParamsProvider=x};
_.p(ny,$r);ny.prototype.getApiPaths=function(){return F24};
ny.prototype.getExtension=function(x){return _.g(x,ca2)||_.g(x,_.nKh)||_.g(x,Xg2)};
ny.prototype.JSC$13119_buildRequest=function(x,L){L.serializedShareEntity&&(x.serializedSharedEntity=L.serializedShareEntity);if(L.clientParamIdentifier){var D;if((D=this.shareClientParamsProvider)==null?0:D.clientParams.has(L.clientParamIdentifier)){D=this.shareClientParamsProvider;L=L.clientParamIdentifier;var S=D.clientParams.get(L);S&&D.clientParams.delete(L);x.clientParams=S}}};
ny[IZ]=[N9i];var tl=function(){};
_.p(tl,$r);tl.prototype.getApiPaths=function(){return FPC};
tl.prototype.getExtension=function(x){return _.g(x,ssi)};
tl.prototype.JSC$13119_buildRequest=function(x,L){L.params&&(x.params=L.params)};var xY=function(){};
_.p(xY,$r);xY.prototype.getApiPaths=function(){return z8H};
xY.prototype.getExtension=function(x){return _.g(x,bdQ)};
xY.prototype.JSC$13119_buildRequest=function(x,L){L.dismissal&&(x.items=[L.dismissal])};
_.J3.Object.defineProperties(xY.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var L9=function(){};
_.p(L9,$r);L9.prototype.getApiPaths=function(){return hg_};
L9.prototype.getExtension=function(x){return _.g(x,_.Uy)||void 0};
L9.prototype.JSC$13119_buildRequest=function(x,L,D){x.feedbackTokens=[];L.feedbackToken&&x.feedbackTokens.push(L.feedbackToken);if(L=L.cpn||D.cpn)x.feedbackContext={cpn:L};x.isFeedbackTokenUnencrypted=!!D.is_feedback_token_unencrypted;x.shouldMerge=!1;D.extra_feedback_tokens&&(x.shouldMerge=!0,x.feedbackTokens=x.feedbackTokens.concat(D.extra_feedback_tokens))};
_.J3.Object.defineProperties(L9.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var DZ=function(){};
_.p(DZ,$r);DZ.prototype.getApiPaths=function(){return hg_};
DZ.prototype.getExtension=function(x){return _.g(x,_.ul)};
DZ.prototype.JSC$13119_buildRequest=function(x,L,D){D.feedback_tokens&&(x.feedbackTokens=D.feedback_tokens,x.shouldMerge=!0)};
_.J3.Object.defineProperties(DZ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var S4=function(){};
_.p(S4,$r);S4.prototype.getApiPaths=function(){return hg_};
S4.prototype.getExtension=function(x){return _.g(x,RnG)};
S4.prototype.JSC$13119_buildRequest=function(x,L){L.undoToken&&(x.feedbackTokens=[L.undoToken]);L.isUndoTokenUnencrypted&&(x.isFeedbackTokenUnencrypted=L.isUndoTokenUnencrypted)};
_.J3.Object.defineProperties(S4.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var QS=function(){};
_.p(QS,$r);QS.prototype.getApiPaths=function(){return Qd_};
QS.prototype.getExtension=function(x){return _.g(x,kTB)};
QS.prototype.JSC$13119_buildRequest=function(x,L){L.nextEndpoint&&_.g(L.nextEndpoint,_.oR)?x.nextEndpoint={urlEndpoint:_.g(L.nextEndpoint,_.oR)}:L.nextEndpoint&&_.g(L.nextEndpoint,_.L6)&&(x.nextEndpoint={watchEndpoint:_.g(L.nextEndpoint,_.L6)});L.setRacy&&(x.setRacy=L.setRacy);L.setControvercy&&(x.setControvercy=L.setControvercy)};var JO=function(x){this.JSC$17955_storeWithEntities=x};
_.p(JO,$r);JO.prototype.getApiPaths=function(){return cQ2};
JO.prototype.getExtension=function(x){return _.g(x,aB_)};
JO.prototype.JSC$13119_buildRequest=function(x,L){L.flowId&&(x.flowId=L.flowId);L.targetId&&(x.targetId=L.targetId);L.continuation&&(x.continuation=L.continuation);var D=L.flowStateEntityKey;if(L.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&D&&this.JSC$17955_storeWithEntities){var S;if(L=(S=this.JSC$17955_storeWithEntities.getState())==null?void 0:S.entities)if(S=_.va(D).entityType,S=_.u6(L,S,D))x.flowState=S,x.flowStateEntityKey=D}};
_.J3.Object.defineProperties(JO.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
JO[IZ]=[yG];var fY9=function(){};
_.p(fY9,$r);_.K=fY9.prototype;_.K.getApiPaths=function(){return VEH};
_.K.JSC$13126_getStoreKey=function(){return _.xT("guide")};
_.K.getRequestConfig=function(){var x=this.JSC$13126_getStoreKey(),L;x&&(L={storeStrategy:{storeKey:x}});return L};
_.K.isNavigationCommand=function(){return!0};
_.K.getExtension=function(x){return _.g(x,_.ul)};
_.K.JSC$13119_buildRequest=function(x){x.fetchLiveState=!0};var K9=function(){};
_.p(K9,$r);K9.prototype.getApiPaths=function(){return R8i};
K9.prototype.getExtension=function(x){return _.g(x,yYh)};
K9.prototype.JSC$13119_buildRequest=function(){};var Oo=function(){};
_.p(Oo,$r);Oo.prototype.getApiPaths=function(){return Gz2};
Oo.prototype.getExtension=function(x){return _.g(x,IJW)};
Oo.prototype.JSC$13119_buildRequest=function(){};var ZZ=function(){};
_.p(ZZ,$r);ZZ.prototype.getApiPaths=function(){return YGH};
ZZ.prototype.getExtension=function(x){return _.g(x,_.ol)};
ZZ.prototype.JSC$13119_buildRequest=function(x,L){L.token&&(x.continuation=L.token);var D,S;x==null||(D=x.context)==null||(S=D.user)==null||delete S.onBehalfOfUser};
ZZ.prototype.getRequestConfig=function(x){var L={},D;if(((D=this.getExtension(x))==null?void 0:D.sessionIndex)!==void 0){var S;L={authStrategy:{sessionIndex:(S=this.getExtension(x))==null?void 0:S.sessionIndex}}}return L};var yS=function(){};
_.p(yS,$r);yS.prototype.JSC$13119_getRequest=function(x){var L=this.getExtension(x),D=x="";if(L==null?0:L.popup)x="true";if(L==null?0:L.disableSignout)D="true";L={};return{input:"/getAccountSwitcherEndpoint",requestShell:t3("/getAccountSwitcherEndpoint","GET",(L["X-YouTube-Delegation-Context"]=_.$6("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),L["X-YouTube-Account-Switcher-Popup"]=x,L["X-YouTube-Account-Switcher-Disable-Signout"]=D,L)),innerTubeRequest:{}}};
yS.prototype.getApiPaths=function(){return[]};
yS.prototype.getExtension=function(x){return _.g(x,_.PXw)};
yS.prototype.JSC$13119_buildRequest=function(){};var IK=function(){};
_.p(IK,$r);IK.prototype.JSC$13119_getRequest=function(x){var L="/cross_account_channel_transfer";(x=this.getExtension(x))&&(L=A_0(L,{target_session:x.targetSessionIndex,source_rapt:x.sourceRapt,rapt:x.targetRapt}));return{input:L,requestShell:t3(L,"GET"),innerTubeRequest:{}}};
IK.prototype.getApiPaths=function(){return[]};
IK.prototype.getExtension=function(x){return _.g(x,hSh)};
IK.prototype.JSC$13119_buildRequest=function(){};var Eo=function(){};
_.p(Eo,$r);Eo.prototype.getApiPaths=function(){return njh};
Eo.prototype.isNavigationCommand=function(){return!0};
Eo.prototype.getExtension=function(x){return _.g(x,_.ul)};
Eo.prototype.JSC$13119_buildRequest=function(x){var L=_.FI().get("gsml","");L&&(x.safetyModeLockerObfuscatedGaiaId=L);x.userInterfaceTheme=_.l1(!0);_.UO()?x.deviceTheme="DEVICE_THEME_SELECTED":_.KJs()?x.deviceTheme="DEVICE_THEME_SUPPORTED":x.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var Mi=function(){};
_.p(Mi,$r);Mi.prototype.getApiPaths=function(){return YGH};
Mi.prototype.getExtension=function(x){return _.g(x,HW2)};
Mi.prototype.JSC$13119_buildRequest=function(x,L){if(L&&L.requestType&&(x.requestType=L.requestType,L.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||L.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var D=L.nextUrl;D&&(_.r_b(D)||KH(D))&&(x.nextNavendpoint={urlEndpoint:{url:D}})}L&&L.channelSwitcherQuery&&(x.channelSwitcherQuery=L.channelSwitcherQuery);L&&L.triggerChannelCreation&&(x.triggerChannelCreation=L.triggerChannelCreation);var S;if(L==null?0:(S=L.contentOwnerConfig)==
null?0:S.externalContentOwnerId)x.contentOwnerConfig=L.contentOwnerConfig;x.callCircumstance=L&&L.requestType&&L.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var Q,J;L=x==null?void 0:(Q=x.context)==null?void 0:(J=Q.user)==null?void 0:J.onBehalfOfUser;if(L!==void 0){x.obfuscatedSelectedGaiaId=L;var Z,y;x==null||(Z=x.context)==null||(y=Z.user)==null||delete y.onBehalfOfUser}var E,P;if(Q=x==null?void 0:(E=x.context)==null?void 0:(P=E.user)==null?
void 0:P.serializedDelegationContext)x.selectedSerializedDelegationContext=Q};var dZ=function(){};
_.p(dZ,$r);dZ.prototype.getApiPaths=function(){return sFd};
dZ.prototype.getExtension=function(x){return _.g(x,tvr)};
dZ.prototype.JSC$13119_buildRequest=function(x,L){L.params&&(x.params=L.params)};var P8=function(){};
_.p(P8,$r);P8.prototype.getApiPaths=function(){return BKi};
P8.prototype.getExtension=function(x){return _.g(x,_.Mv_)};
P8.prototype.JSC$13119_buildRequest=function(x,L){if(L=L.createBroadcastRequest)x.useMasks=L.useMasks,x.broadcastType=L.broadcastType,x.broadcastSource=L.broadcastSource,x.broadcastMetadata=L.broadcastMetadata,x.broadcastMetadataMask=L.broadcastMetadataMask,x.videoMetadata=L.videoMetadata,x.videoMetadataMask=L.videoMetadataMask,x.liveChatSettingsUpdate=L.liveChatSettingsUpdate,x.liveChatSettingsUpdateMask=L.liveChatSettingsUpdateMask,x.cloneVideoId=L.cloneVideoId,x.cloneWithOverrides=L.cloneWithOverrides,
x.targetEntity=L.targetEntity,x.scheduledRedirectMetadata=L.scheduledRedirectMetadata};var j4=function(){};
_.p(j4,$r);j4.prototype.getApiPaths=function(){return $Xh};
j4.prototype.getExtension=function(x){return _.g(x,Q_h)};
j4.prototype.JSC$13119_buildRequest=function(x,L,D){D=D===void 0?{}:D;L.params&&(x.params=L.params);D.questionText&&(x.questionText=D.questionText);D.optionText&&D.optionText.length>0&&(x.optionText=D.optionText)};var VS=function(){};
_.p(VS,$r);VS.prototype.getApiPaths=function(){return iOh};
VS.prototype.getExtension=function(x){return _.g(x,DYA)};
VS.prototype.JSC$13119_buildRequest=function(x,L){L.params&&(x.params=L.params)};var hO=function(){};
_.p(hO,$r);hO.prototype.getApiPaths=function(){return Sad};
hO.prototype.getExtension=function(x){return _.g(x,ntH)};
hO.prototype.JSC$13119_buildRequest=function(x,L){L.params&&(x.params=L.params)};var H8=function(){};
_.p(H8,$r);H8.prototype.getApiPaths=function(){return Jyh};
H8.prototype.getExtension=function(x){return _.g(x,tH2)};
H8.prototype.JSC$13119_buildRequest=function(x,L,D){L.params&&(x.params=L.params);L.continuation&&(x.continuation=L.continuation);D.currentPlayerState&&D.currentPlayerState.playerOffsetMs&&(x.currentPlayerState={playerOffsetMs:D.currentPlayerState.playerOffsetMs.toString()})};var uE=function(){};
_.p(uE,$r);uE.prototype.getApiPaths=function(){return KJG};
uE.prototype.getExtension=function(x){return _.g(x,csA)};
uE.prototype.JSC$13119_buildRequest=function(x,L,D){L.params&&(x.params=L.params);D.continuation&&(x.continuation=D.continuation);"hidden"in D&&(x.webClientInfo={isDocumentHidden:D.hidden});D.isInvalidationTimeoutRequest&&(x.isInvalidationTimeoutRequest=D.isInvalidationTimeoutRequest);D.invalidationPayload&&(L=XOB(_.tG(O2(D.invalidationPayload))),x.invalidationPayloadLastPublishAtUsec=WN(L,2));D.reloadActionPanel&&(x.reloadActionPanel=D.reloadActionPanel);D.fullReload&&(x.fullReload=D.fullReload);
D.currentPlayerState&&(x.currentPlayerState=D.currentPlayerState)};var gZ=function(){};
_.p(gZ,$r);gZ.prototype.getApiPaths=function(){return g52};
gZ.prototype.getExtension=function(x){return _.g(x,SFh)};
gZ.prototype.JSC$13119_buildRequest=function(x,L){x.params=L.params};var TK=function(){};
_.p(TK,$r);TK.prototype.getApiPaths=function(){return QbR};
TK.prototype.getExtension=function(x){return _.g(x,jQB)};
TK.prototype.JSC$13119_buildRequest=function(x,L){L.params&&(x.params=L.params)};var e4=function(){};
_.p(e4,$r);e4.prototype.getApiPaths=function(){return OEA};
e4.prototype.getExtension=function(x){return _.g(x,vhB)};
e4.prototype.JSC$13119_buildRequest=function(x,L){L.params&&(x.params=L.params)};var RK=function(){};
_.p(RK,$r);RK.prototype.getApiPaths=function(){return kar};
RK.prototype.getExtension=function(x){return _.g(x,J4A)};
RK.prototype.JSC$13119_buildRequest=function(x,L){L.params&&(x.params=L.params)};var GK=function(){};
_.p(GK,$r);GK.prototype.getApiPaths=function(){return mSh};
GK.prototype.getExtension=function(x){return _.g(x,K9A)};
GK.prototype.JSC$13119_buildRequest=function(x,L){L.params&&(x.params=L.params)};var C9=function(){};
_.p(C9,$r);C9.prototype.getApiPaths=function(){return CAB};
C9.prototype.getExtension=function(x){return _.g(x,DJR)};
C9.prototype.JSC$13119_buildRequest=function(x,L){L.params&&(x.params=L.params)};var lE=function(){};
_.p(lE,$r);lE.prototype.getApiPaths=function(){return AyC};
lE.prototype.getExtension=function(x){return _.g(x,_.O1r)};
lE.prototype.JSC$13119_buildRequest=function(x,L,D){D=D===void 0?{}:D;L.params&&(x.params=L.params);D.client_message_id&&(x.clientMessageId=D.client_message_id);D.recaptcha_token&&(x.recaptchaToken=D.recaptcha_token);D.rich_message&&D.rich_message.text_segments?(L=D.rich_message.text_segments.map(function(S){var Q={};S.text&&(Q.text=S.text);S.emoji_id&&(Q.emojiId=S.emoji_id);return Q}),x.richMessage={textSegments:L}):D.message&&(x.message=D.message);
D.currentPlayerState&&(x.currentPlayerState=D.currentPlayerState)};var Uo=function(){};
_.p(Uo,$r);Uo.prototype.getApiPaths=function(){return $Si};
Uo.prototype.getExtension=function(x){return _.g(x,Z1Q)};
Uo.prototype.JSC$13119_buildRequest=function(x,L){L.params&&(x.params=L.params)};var wZ=function(){};
_.p(wZ,$r);wZ.prototype.getApiPaths=function(){return o5R};
wZ.prototype.getExtension=function(x){return _.g(x,IzB)};
wZ.prototype.JSC$13119_buildRequest=function(x,L,D){L.isUserInitiated&&(x.isUserInitiated=L.isUserInitiated);L.initiationSource&&(x.initiationSource=L.initiationSource);D.locationInfo&&(x.context.client.locationInfo=D.locationInfo)};var B8=function(){};
_.p(B8,$r);B8.prototype.getApiPaths=function(){return pz2};
B8.prototype.getExtension=function(x){return _.g(x,dV_)};
B8.prototype.JSC$13119_buildRequest=function(x,L,D){L.metadataUpdateRequest&&(L=L.metadataUpdateRequest,x.encryptedVideoId=L.encryptedVideoId,L.liveChat&&(L=L.liveChat,x.liveChat||(x.liveChat={}),L.performAsExternalChannelId&&(x.liveChat.performAsExternalChannelId=L.performAsExternalChannelId),L.source&&(x.liveChat.source=L.source)));var S;if(D==null?0:(S=D.liveChat)==null?0:S.liveChatSettings)x.liveChat||(x.liveChat={}),D=D.liveChat.liveChatSettings,x.liveChat.newLiveChatSettings=D,x.liveChat.newLiveChatSettingsMask||
(x.liveChat.newLiveChatSettingsMask={}),D.emojiReactionSet&&(x.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var W8=function(){};
_.p(W8,$r);W8.prototype.getApiPaths=function(){return DrC};
W8.prototype.getExtension=function(x){return _.g(x,_.mIB)};
W8.prototype.JSC$13119_buildRequest=function(x,L,D){D.continuation?x.continuation=D.continuation:L.videoId&&(x.videoId=L.videoId);D.clientParams&&(x.clientParams=D.clientParams)};var qi=function(){};
_.p(qi,$r);qi.prototype.getApiPaths=function(){return ZEh};
qi.prototype.getExtension=function(x){return _.g(x,_.JM)};
qi.prototype.JSC$13119_buildRequest=function(x,L){x.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";x.fetchCommentsParams={};L.videoId&&(x.fetchCommentsParams.encryptedVideoId=L.videoId);L.postId&&(x.fetchCommentsParams.postId=L.postId);L.externalChannelId&&(x.fetchCommentsParams.externalChannelId=L.externalChannelId);L.linkedCommentId&&(x.fetchCommentsParams.linkedCommentId=L.linkedCommentId);(0,_.wk.isEmpty)(x.fetchCommentsParams)&&delete x.fetchCommentsParams};var AO=function(){};
_.p(AO,$r);AO.prototype.getApiPaths=function(){return ti};
AO.prototype.JSC$13119_buildRequest=function(x){x.browseId="FEnotifications_inbox"};
AO.prototype.getExtension=function(x){return _.g(x,_.ul)};var $Y=function(){};
_.p($Y,$r);$Y.prototype.getApiPaths=function(){return ZEh};
$Y.prototype.JSC$13119_buildRequest=function(x,L){L.signal==="GET_NOTIFICATIONS_MENU"&&(x.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");L.ctoken&&(x.ctoken=L.ctoken)};
var oX9=function(){};
_.p(oX9,$Y);oX9.prototype.getExtension=function(x){return _.g(x,_.ul)};
var aYq=function(){};
_.p(aYq,$Y);aYq.prototype.getExtension=function(x){return _.g(x,HdG)};var rZ=function(){};
_.p(rZ,$r);rZ.prototype.getApiPaths=function(){return PAd};
rZ.prototype.getExtension=function(x){return _.g(x,_.ul)};
rZ.prototype.JSC$13119_buildRequest=function(){};var Ni=function(){};
_.p(Ni,$r);Ni.prototype.getApiPaths=function(){return bEh};
Ni.prototype.getExtension=function(x){return _.g(x,Hpr)||void 0};
Ni.prototype.JSC$13119_buildRequest=function(x,L){L.params&&(x.params=L.params);L.secondaryParams&&(x.secondaryParams=L.secondaryParams)};var iE=function(){};
_.p(iE,$r);iE.prototype.getApiPaths=function(){return YaW};
iE.prototype.getExtension=function(x){return _.g(x,xJB)};
iE.prototype.JSC$13119_buildRequest=function(x,L){L.undo&&(x.undo=L.undo);L.serializedOptOut&&(x.serializedOptOut=L.serializedOptOut);L.serializedRecordInteractionsRequest&&(x.serializedRecordInteractionsRequest=L.serializedRecordInteractionsRequest)};var f9=function(){};
_.p(f9,$r);f9.prototype.getApiPaths=function(){return TdQ};
f9.prototype.getExtension=function(x){return _.g(x,L1B)};
f9.prototype.JSC$13119_buildRequest=function(x,L){L.serializedInteractionsRequest&&(x.serializedRecordNotificationInteractionsRequest=L.serializedInteractionsRequest)};var oK=function(){};
_.p(oK,$r);oK.prototype.getApiPaths=function(){return srf};
oK.prototype.getExtension=function(x){return _.g(x,kr4)};
oK.prototype.JSC$13119_buildRequest=function(x,L,D){L=L===void 0?{}:L;D=D===void 0?{}:D;L.videoId?x.videoId=L.videoId:L.playlistId&&(x.playlistId=L.playlistId);var S,Q=(S=L.offlineWebClientEligibility)!=null?S:D.offlineWebClientEligibility;Q&&(x.offlineWebClientEligibility=Q);var J;if(S=(J=L.preferredFormatType)!=null?J:D.preferredFormatType)x.preferredFormatType=S;var Z;if(J=(Z=L.lastOfflineQualitySettingsSavedMs)!=null?Z:D.lastOfflineQualitySettingsSavedMs)x.lastOfflineQualitySettingsSavedMs=J;
L.params&&(x.params=L.params)};var aK=function(){};
_.p(aK,$r);aK.prototype.getApiPaths=function(){return m1};
aK.prototype.getExtension=function(x){return _.g(x,_.ol)};
aK.prototype.JSC$13119_buildRequest=function(x,L,D){D=D===void 0?{}:D;L.token&&(x.continuation=L.token);D.formData&&(x.formData=D.formData)};var zK=function(){};
_.p(zK,$r);zK.prototype.getApiPaths=function(){return m1};
zK.prototype.getExtension=function(x){return _.g(x,OSR)};
zK.prototype.JSC$13119_buildRequest=function(x,L,D){D=D===void 0?{}:D;x.continuation=D.continuation};var XQ=function(){};
_.p(XQ,$r);XQ.prototype.getApiPaths=function(){return m1};
XQ.prototype.getExtension=function(x){return _.g(x,_.ly)};
XQ.prototype.JSC$13119_buildRequest=function(x,L){var D,S=L.panelIdentifier||((D=L.identifier)==null?void 0:D.tag);S&&(x.panelId=S);var Q;if((Q=L.globalConfiguration)==null?0:Q.params){var J;x.params=(J=L.globalConfiguration)==null?void 0:J.params}};
_.J3.Object.defineProperties(XQ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var c8=function(){};
_.p(c8,$r);c8.prototype.getApiPaths=function(){return m1};
c8.prototype.getExtension=function(x){return _.g(x,N6R)};
c8.prototype.JSC$13119_buildRequest=function(x,L){L.panelLoadingStrategy&&FE4(x,L.panelLoadingStrategy)};var n9=function(){};
_.p(n9,$r);n9.prototype.getApiPaths=function(){return m1};
n9.prototype.getExtension=function(x){return _.g(x,M3G)};
n9.prototype.JSC$13119_buildRequest=function(x,L){L.loadingStrategy&&FE4(x,L.loadingStrategy)};var tO=function(){};
_.p(tO,$r);tO.prototype.getApiPaths=function(){return m1};
tO.prototype.getExtension=function(x){return _.g(x,_.e2)};
tO.prototype.JSC$13119_buildRequest=function(x,L){L.panelLoadingStrategy&&FE4(x,L.panelLoadingStrategy)};var xB=function(){};
_.p(xB,$r);xB.prototype.getApiPaths=function(){return m1};
xB.prototype.getExtension=function(x){return _.g(x,dJW)};
xB.prototype.JSC$13119_buildRequest=function(x,L){var D,S=(D=L.contentSourcePanelIdentifier)==null?void 0:D.tag;S&&(x.panelId=S);var Q;if((Q=L.globalConfiguration)==null?0:Q.params){var J;x.params=(J=L.globalConfiguration)==null?void 0:J.params}};var LC=function(){};
_.p(LC,$r);LC.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
LC.prototype.getExtension=function(x){return _.g(x,Ped)};
LC.prototype.JSC$13119_buildRequest=function(x,L){L.params&&(x.params=L.params)};var DP=function(){};
_.p(DP,$r);DP.prototype.getApiPaths=function(){return LOW};
DP.prototype.getExtension=function(x){return _.g(x,V3Q)};
DP.prototype.JSC$13119_buildRequest=function(x,L){L.externalChannelId&&(x.externalChannelId=L.externalChannelId);L.superChatAction&&(x.superChatAction=L.superChatAction);L.superStickersAction&&(x.superStickersAction=L.superStickersAction)};var Se=function(){};
_.p(Se,$r);Se.prototype.getApiPaths=function(){return tC2};
Se.prototype.getExtension=function(x){return _.g(x,Zp2)||_.g(x,mO3)};
Se.prototype.JSC$13119_buildRequest=function(x,L){L.videoIds?x.videoIds=L.videoIds:L.videoId&&(x.videoIds=[L.videoId]);L.playlistId&&(x.playlistId=L.playlistId);L.params&&(x.params=L.params);x.excludeWatchLater=!1};var Qk=function(){};
_.p(Qk,$r);Qk.prototype.getApiPaths=function(){return rQW};
Qk.prototype.getExtension=function(x){return _.g(x,_.MJ)};
Qk.prototype.JSC$13119_buildRequest=function(x,L,D){D.create_playlist_title?x.title=D.create_playlist_title:L.title&&(x.title=L.title);if(D.create_playlist_privacy_status&&typeof D.create_playlist_privacy_status==="number"){a:{var S=D.create_playlist_privacy_status;if(S!==0){if(S===1){S="PUBLIC";break a}if(S===2){S="UNLISTED";break a}}S="PRIVATE"}x.privacyStatus=S}else L.privacyStatus&&(x.privacyStatus=L.privacyStatus);D.create_playlist_description&&(x.description=D.create_playlist_description);L.videoIds&&
(x.videoIds=L.videoIds);L.params&&(x.params=L.params);L.sourcePlaylistId&&(x.sourcePlaylistId=L.sourcePlaylistId)};var Jk=function(){};
_.p(Jk,$r);Jk.prototype.getApiPaths=function(){return fQ2};
Jk.prototype.getExtension=function(x){return _.g(x,VPW)};
Jk.prototype.JSC$13119_buildRequest=function(x,L){x.playlistId=L.playlistId};var KC=function(){};
_.p(KC,$r);KC.prototype.getApiPaths=function(){return yyG};
KC.prototype.getExtension=function(x){return _.g(x,aFB)};
KC.prototype.JSC$13119_buildRequest=function(x,L){L.playlistId&&(x.playlistId=L.playlistId);L.params&&(x.params=L.params)};var Om=function(){};
_.p(Om,$r);Om.prototype.getApiPaths=function(){return sbA};
Om.prototype.getExtension=function(x){return _.g(x,_.Kv)||void 0};
Om.prototype.JSC$13119_buildRequest=function(x,L){L.actions&&(x.actions=L.actions);L.params&&(x.params=L.params);L.playlistId&&(x.playlistId=L.playlistId)};var ZP=function(){};
_.p(ZP,$r);_.K=ZP.prototype;_.K.getApiPaths=function(){return egh};
_.K.getExtension=function(x){return _.g(x,_.TF)};
_.K.JSC$13119_buildRequest=function(x,L){L.videoId&&(x.playerRequest={videoId:L.videoId},L.playerParams&&(x.playerRequest.params=L.playerParams),L.racyCheckOk&&(x.playerRequest.racyCheckOk=!!L.racyCheckOk),L.contentCheckOk&&(x.playerRequest.contentCheckOk=!!L.contentCheckOk));L.params&&(x.params=L.params);L.inputType&&(x.inputType=L.inputType);x.disablePlayerResponse=!0};
_.K.getRequestConfig=function(x){var L;(x=this.JSC$13126_getStoreKey(x))&&(L={storeStrategy:{storeKey:x}});_.u("web_log_reels_ticks")&&(L=L||{},L.requestTick="r_wrs",L.responseTick="r_wrr");return L};
_.K.JSC$13126_getStoreKey=function(x){x=this.getExtension(x);if(x!=null&&x.videoId){var L={videoId:x.videoId};x.params&&(L.params=x.params);return _.xT("reel_item_watch",L)}};var yk=function(){};
_.p(yk,$r);_.K=yk.prototype;_.K.getApiPaths=function(){return RgW};
_.K.getExtension=function(x){return _.g(x,_.TF)};
_.K.JSC$13119_buildRequest=function(x,L,D){D=D===void 0?{}:D;x.sequenceParams=L.sequenceParams;var S;((S=D)==null?0:S.contentPlaybackContext)&&_.u("web_shorts_prefetch_service_enabled")&&(x.playbackContext={contentPlaybackContext:D.contentPlaybackContext})};
_.K.JSC$13126_getStoreKey=function(x){if(_.u("web_enable_delay_shorts_sequence_call")||_.u("shorts_controller_retrieve_seedless_sequence_v2"))if(x=this.getExtension(x),x==null?0:x.sequenceParams)return _.xT("reel_watch_sequence",{sequenceParams:x.sequenceParams})};
_.K.getRequestConfig=function(x){x=this.JSC$13126_getStoreKey(x);var L;x&&(L={storeStrategy:{storeKey:x}});L=L||{};L.requestTick="r_wsrs";L.responseTick="r_wsrr";L.processorTick="r_wsrp";return L};
var IV=function(){};
_.p(IV,$r);IV.prototype.getApiPaths=function(){return RgW};
IV.prototype.getExtension=function(x){return _.g(x,_.ol)};
IV.prototype.JSC$13119_buildRequest=function(x,L,D){D=D===void 0?{}:D;L.token&&(x.continuation=L.token);var S;((S=D)==null?0:S.contentPlaybackContext)&&_.u("web_shorts_prefetch_service_enabled")&&(x.playbackContext={contentPlaybackContext:D.contentPlaybackContext})};
IV.prototype.getRequestConfig=function(x){x=this.JSC$13126_getStoreKey(x);var L;x&&(L={storeStrategy:{storeKey:x}});L=L||{};L.requestTick="r_wsrs";L.responseTick="r_wsrr";L.processorTick="r_wsrp";return L};var Em=function(){};
_.p(Em,$r);Em.prototype.getApiPaths=function(){return XVh};
Em.prototype.getExtension=function(x){return _.g(x,_.id2)};
Em.prototype.JSC$13119_buildRequest=function(x,L,D){D=D===void 0?{}:D;L.flagAction&&(x.action=L.flagAction);L.flagRequestType&&(x.flagRequestType=L.flagRequestType);L.additionalDetailCheckboxChecked&&(x.additionalDetailCheckboxChecked=L.additionalDetailCheckboxChecked);L.legalCheckboxChecked&&(x.legalCheckboxChecked=L.legalCheckboxChecked);L={};D.flag_issue_type!==void 0&&(L.issue=D.flag_issue_type);D.flag_affiliation!==void 0&&(L.affiliation=D.flag_affiliation);D.flag_full_name&&(L.fullName=D.flag_full_name);
Object.keys(L).length&&(x.legalReportDetails=L);if(D.flag_description||D.text)x.userComments=D.flag_description||D.text;L={};D.minutes!==void 0&&D.seconds!==void 0&&(L.minutes=D.minutes,L.seconds=D.seconds);D.vss_id&&(L.vssId=D.vss_id);Object.keys(L).length&&(x.videoReportDetails=L);L={};D.video_ids&&(L.videoIds=D.video_ids);D.impersonated_channel_url&&(L.impersonatedChannelUrl=D.impersonated_channel_url);Object.keys(L).length&&(x.channelAbuseReportDetails=L)};
_.J3.Object.defineProperties(Em.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var MO=function(){};
_.p(MO,$r);MO.prototype.getApiPaths=function(){return DSh};
MO.prototype.getExtension=function(x){return _.g(x,H0r)};
MO.prototype.JSC$13119_buildRequest=function(x,L){L.blockedForKidsContent&&(x.blockedForKidsContent=L.blockedForKidsContent)};var dw=function(){};
_.p(dw,$r);dw.prototype.getApiPaths=function(){return lkH};
dw.prototype.getExtension=function(x){return _.g(x,p3O)};
dw.prototype.JSC$13119_buildRequest=function(x,L,D){x.params=L.params;D.impersonated_channel_url&&(x.impersonatedChannelUrl=D.impersonated_channel_url)};var P3=function(){};
_.p(P3,$r);P3.prototype.getApiPaths=function(){return HEQ};
P3.prototype.getExtension=function(x){return _.g(x,_.u4B)};
P3.prototype.JSC$13119_buildRequest=function(x,L){L.items&&(x.items=L.items);L.kidGaiaId&&(x.kidGaiaId=L.kidGaiaId)};var je=function(){};
_.p(je,$r);je.prototype.getApiPaths=function(){return xSW};
je.prototype.getExtension=function(x){return _.g(x,_.JYB)};
je.prototype.JSC$13119_buildRequest=function(x,L){L.params&&(x.params=L.params);L.targetId&&(x.targetId=L.targetId)};var v3=function(){};
_.p(v3,$r);v3.prototype.getApiPaths=function(){return WJ_};
v3.prototype.getExtension=function(x){return _.g(x,uuB)};
v3.prototype.JSC$13119_buildRequest=function(x,L){L.externalVideoId&&(x.externalVideoId=L.externalVideoId);L.query&&(x.query=L.query);L.sourceTimelines&&(x.sourceTimelines=L.sourceTimelines)};var Vk=function(){};
_.p(Vk,$r);Vk.prototype.getApiPaths=function(){return qaW};
Vk.prototype.getExtension=function(x){return _.g(x,_.ol)||void 0};
Vk.prototype.JSC$13119_buildRequest=function(x,L){L.token&&(x.continuation=L.token)};
_.zl$=function(){};
_.p(_.zl$,$r);_.K=_.zl$.prototype;_.K.getApiPaths=function(){return qaW};
_.K.getExtension=function(x){return _.g(x,_.b1)||void 0};
_.K.isNavigationCommand=function(){return!0};
_.K.JSC$13126_getStoreKey=function(x,L){L=L===void 0?{}:L;if(!L.disableCache&&(x=this.getExtension(x))&&x.query)return L={query:x.query},x.params&&(L.params=x.params),_.xT("search",L)};
_.K.JSC$13119_buildRequest=function(x,L,D){L.query&&(x.query=L.query);L.params&&(x.params=L.params);if(!_.u("web_forward_suggest_stats_killswitch")){var S=_.g(L,AaH);S&&(x.suggestStats=S)}var Q;!_.u("kevlar_searchbox_stats_killswitch")&&((Q=D.tempData)==null?0:Q.gs_l)&&!_.g(L,AaH)&&(x.webSearchboxStatsUrl="/search?oq="+(D.tempData.oq||"")+"&gs_l="+D.tempData.gs_l);var J;if((J=D.tempData)==null?0:J.entityMid)L=x.suggestionSearchParams||{},L.entityMid=D.tempData.entityMid,x.suggestionSearchParams=L;
if(_.u("enable_desktop_vdcbg_components")||_.u("enable_inline_muted_playback_on_web_search"))D=_.FI().getFlag(186),x.inlineSettingStatus=D?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON"};
_.K.getRequestConfig=function(x,L){L=L===void 0?{}:L;x=this.JSC$13126_getStoreKey(x,L);var D;x&&(D={storeStrategy:{storeKey:x}});_.u("web_log_search_ticks_ks")||(D=D||{},D.requestTick="sr_s",D.responseTick="sr_r");return D};var hk=function(){};
_.p(hk,$r);hk.prototype.getApiPaths=function(){return MER};
hk.prototype.getExtension=function(x){return _.g(x,T6h)};
hk.prototype.JSC$13119_buildRequest=function(x,L){L.serializedGetSharingProviderDataParams&&(x.serializedGetSharingProviderDataParams=L.serializedGetSharingProviderDataParams)};var H3=function(){};
_.p(H3,$r);H3.prototype.getApiPaths=function(){return dS2};
H3.prototype.getExtension=function(x){return _.g(x,qHh)};
H3.prototype.JSC$13119_buildRequest=function(x,L){L.endpoint&&(x.endpoint=L.endpoint);L.action&&(x.action=L.action)};var uX=function(){};
_.p(uX,$r);uX.prototype.getApiPaths=function(){return ojR};
uX.prototype.getExtension=function(x){return _.g(x,hyr)};
uX.prototype.JSC$13119_buildRequest=function(x,L){x.videoId=L.videoId;L.scheduledRedirectMetadataSourceVideoId&&(x.scheduledRedirectMetadata={sourceVideoId:L.scheduledRedirectMetadataSourceVideoId})};var gw=function(){};
_.p(gw,$r);gw.prototype.getApiPaths=function(){return Nd_};
gw.prototype.getExtension=function(x){return _.g(x,_.HfG)};
gw.prototype.JSC$13119_buildRequest=function(x,L){x.params=L.params;x.correctionText=L.correctionText};var kB=function(){};
_.p(kB,$r);kB.prototype.getApiPaths=function(){return b_n};
kB.prototype.getExtension=function(x){return _.g(x,_.go2)};
kB.prototype.JSC$13119_buildRequest=function(x,L){L.params&&(x.params=L.params);x.searchQuery=L.searchQuery;x.languageCode=L.languageCode;x.kind=L.kind;x.name=L.name;x.externalVideoId=L.externalVideoId};var pC=function(){};
_.p(pC,$r);pC.prototype.getApiPaths=function(){return KOC};
pC.prototype.getExtension=function(x){return _.g(x,ldB)};
pC.prototype.JSC$13119_buildRequest=function(x,L){L.params&&(x.params=L.params)};var mj=function(x){this.JSC$18225_storeWithEntities=x};
_.p(mj,$r);mj.prototype.getApiPaths=function(){return UXC};
mj.prototype.getExtension=function(x){return _.g(x,wGh)||_.g(x,Wwh)};
mj.prototype.JSC$13119_buildRequest=function(x,L,D){D.client_data&&(x.clientData=D.client_data);if(L.commerceActionConfig){var S=L.commerceActionConfig;L=S.actionId;S=S.commerceActionParams;L&&(x.actionId=L);S&&(x.commerceActionParams=S)}else{var Q=L.actionId,J=L.commerceActionParams;D=L.entityKeys;Q&&(x.actionId=Q);J&&(x.commerceActionParams=J);var Z;L=(S=this.JSC$18225_storeWithEntities)==null?void 0:(Z=S.getState())==null?void 0:Z.entities;if(D&&L){S=[];Z=_.O(D);for(D=Z.next();!D.done;D=Z.next())if(Q=
D.value,D=_.va(Q).entityType,Q=_.u6(L,D,Q))J={},S.push((J[D]=Q,J));x.entityMutationPayloads=S}}};
mj.prototype.getRequestConfig=function(x){var L,D=(L=_.g(x,wGh))==null?void 0:L.requestSequenceType;if(D&&x.clickTrackingParams&&D!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:x.clickTrackingParams,sequenceType:D}}};
mj[IZ]=[yG];var bX=function(){};
_.p(bX,$r);bX.prototype.getApiPaths=function(){return ODG};
bX.prototype.getExtension=function(x){return _.g(x,_.SGh)};
bX.prototype.JSC$13119_buildRequest=function(x,L){L.feedbackData&&(x.feedbackData=L.feedbackData);L.params&&(x.itemParams=L.params)};
_.J3.Object.defineProperties(bX.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var YB=function(){};
_.p(YB,$r);YB.prototype.getApiPaths=function(){return ZDd};
YB.prototype.getExtension=function(x){return _.g(x,QFR)};
YB.prototype.JSC$13119_buildRequest=function(x,L,D){D.payments_payload&&(x.paymentsPayload=D.payments_payload);D.offer_params&&(x.offerParams=D.offer_params);L.transactionParams&&(x.transactionParams=L.transactionParams)};var Fa=function(){};
_.p(Fa,$r);Fa.prototype.getApiPaths=function(){return yAh};
Fa.prototype.getExtension=function(x){return _.g(x,_.JQh)};
Fa.prototype.JSC$13119_buildRequest=function(x,L,D){D=D===void 0?{}:D;L.buybucketParams&&(x.buybucketData={params:L.buybucketParams},L.stickerParams?x.buybucketData.stickerParams=L.stickerParams:(D.rich_chat_message?x.buybucketData.richChatMessage=D.rich_chat_message:D.chat_message_text&&(x.buybucketData.chatMessageText=D.chat_message_text),D.purchase_price_micros&&(x.buybucketData.purchasePriceMicros=D.purchase_price_micros.toString())));L.donationAmountMicros&&(x.tipAmountMicros=L.donationAmountMicros,
L.tipParams&&(x.tipParams=L.tipParams));L.offerParams&&(x.offerParams=L.offerParams);L.productData&&(x.productData=L.productData);L.transactionParams&&(x.transactionParams=L.transactionParams)};var sm=function(){};
_.p(sm,$r);sm.prototype.getApiPaths=function(){return I6C};
sm.prototype.getExtension=function(x){return _.g(x,ZOh)};
sm.prototype.JSC$13119_buildRequest=function(x,L){L.updateFopParams&&(x.updateFopParams=L.updateFopParams)};var Tr=function(){};
_.p(Tr,$r);Tr.prototype.getApiPaths=function(){return Eq2};
Tr.prototype.getExtension=function(x){return _.g(x,_.LF)};
Tr.prototype.JSC$13119_buildRequest=function(x,L){L.couponCode&&(x.couponCode=L.couponCode);L.params&&(x.itemParams=L.params)};var ee=function(){};
_.p(ee,$r);ee.prototype.getApiPaths=function(){return Mgd};
ee.prototype.getExtension=function(x){return _.g(x,_.BUA)};
ee.prototype.JSC$13119_buildRequest=function(x,L,D){D=D===void 0?{}:D;L.params&&(x.params=L.params);D.ctk&&(x.clientToken=D.ctk)};var RV=function(x){this.JSC$18260_storeWithEntities=x};
_.p(RV,$r);RV.prototype.getApiPaths=function(){return drd};
RV.prototype.getExtension=function(x){return _.g(x,_.v5)};
RV.prototype.JSC$13119_buildRequest=function(x,L,D){D.purchase_price_micros&&(x.productData={pdgData:{purchasePriceMicros:D.purchase_price_micros.toString()}},D.rich_chat_message&&(x.productData.pdgData.richChatMessage=D.rich_chat_message),D.currency_code&&(x.productData.pdgData.currencyCode=D.currency_code));L.transactionParams&&(x.transactionParams=L.transactionParams);L.clientLocationContext&&(x.clientLocationContext=L.clientLocationContext);D.payments_payload&&(x.paymentsPayload=D.payments_payload);
D.funds_guarantee_callback_client_data&&(x.fundsGuaranteeCallbackClientData=D.funds_guarantee_callback_client_data);var S,Q;D=(S=this.JSC$18260_storeWithEntities)==null?void 0:(Q=S.getState())==null?void 0:Q.entities;if(L.entityKeys&&D){S=[];L=_.O(L.entityKeys);for(Q=L.next();!Q.done;Q=L.next()){var J=Q.value;Q=_.va(J).entityType;if(J=_.u6(D,Q,J)){var Z={};S.push((Z[Q]=J,Z))}}x.entityMutationPayloads=S}};
RV[IZ]=[yG];var Gr=function(){};
_.p(Gr,$r);Gr.prototype.getApiPaths=function(){return Pui};
Gr.prototype.getExtension=function(x){return _.g(x,KPR)};
Gr.prototype.JSC$13119_buildRequest=function(x,L,D){D=D===void 0?{}:D;D.backend_analytics&&(x.serializedBackendAnalyticsEvent=D.backend_analytics);L.offerParams&&(x.offerParams=L.offerParams)};var CC=function(){};
_.p(CC,$r);CC.prototype.getApiPaths=function(){return Eq2};
CC.prototype.getExtension=function(x){return _.g(x,Ok0)};
CC.prototype.JSC$13119_buildRequest=function(x,L){L.params&&(x.itemParams=L.params)};var lX=function(){};
_.p(lX,$r);lX.prototype.getApiPaths=function(){return jdG};
lX.prototype.getExtension=function(x){return _.g(x,_.NUW)};
lX.prototype.JSC$13119_buildRequest=function(x,L,D){D.resume_time_ms&&(x.resumeTimeMs=D.resume_time_ms);L.pauseParams&&(x.pauseParams=L.pauseParams)};var Um=function(){};
_.p(Um,$r);Um.prototype.getApiPaths=function(){return vq2};
Um.prototype.getExtension=function(x){return _.g(x,_.OO2)};
Um.prototype.JSC$13119_buildRequest=function(x,L,D){D=D===void 0?{}:D;D.c&&(x.redeemCode=D.c);D.rd&&(x.riskData=D.rd);D.ctk&&(x.clientToken=D.ctk)};var ww=function(){};
_.p(ww,$r);ww.prototype.getApiPaths=function(){return Vgh};
ww.prototype.getExtension=function(x){return _.g(x,_.ifi)};
ww.prototype.JSC$13119_buildRequest=function(x,L){L.resumeParams&&(x.resumeParams=L.resumeParams)};var B3=function(x,L){this.clientName=x;this.defaultExpirationDelayMs=L};
B3.prototype.put=function(x,L){var D=this,S;return _.I(function(Q){S=Object.assign({},L.data);S.key=x;S.clientName=D.clientName;S.expireTimestampMs===void 0&&(S.expireTimestampMs=(Math.round((0,_.y5)())+D.defaultExpirationDelayMs).toString());return Q.return(D.putInternal(x,S))})};
B3[IZ]=[OA,L3q];var Xsq=function(){B3.apply(this,arguments);this.JSC$18290_responseStore=new Map};
_.p(Xsq,B3);_.K=Xsq.prototype;_.K.get=function(x){var L=this;return _.I(function(D){return D.return(AQ(L,x))})};
_.K.putInternal=function(x,L){var D=this,S,Q,J;return _.I(function(Z){S=D.defaultExpirationDelayMs;L.expireTimestampMs&&(S=Number(L.expireTimestampMs)-Math.round((0,_.y5)()),Q=_.dE("mweb_override_response_store_expiration_ms"),Q>0&&Q<S&&(S=Q));J=setTimeout(function(){D.remove(x)},S);
D.JSC$18290_responseStore.set(x,{entryData:L,timer:J});_.Y2(Z)})};
_.K.remove=function(x){var L=this;return _.I(function(D){c5s(L,x);_.Y2(D)})};
_.K.removeAll=function(){var x=this;return _.I(function(L){x.JSC$18290_responseStore.forEach(function(D){clearTimeout(D.timer)});
x.JSC$18290_responseStore.clear();_.Y2(L)})};
_.K.has=function(x){return!!this.JSC$18290_responseStore.get(x)};
_.K.getKeys=function(){return this.JSC$18290_responseStore.keys()};
var AQ=function(x,L){if(x=x.JSC$18290_responseStore.get(L))return new _.qX(x.entryData)},c5s=function(x,L){var D=x.JSC$18290_responseStore.get(L);
D&&(clearTimeout(D.timer),x.JSC$18290_responseStore.delete(L))};var s$f;var Rbs=function(x,L,D){B3.call(this,x,L);this.token=D};
_.p(Rbs,B3);_.K=Rbs.prototype;_.K.get=function(x){var L=this,D,S;return _.I(function(Q){return Q.nextAddress==1?Q.yield(eb0(L.token),2):Q.nextAddress!=3?(D=Q.yieldResult,Q.yield(D.get("ResponseStore",[x,L.clientName]),3)):(S=Q.yieldResult)?Q.return(new _.qX(S)):Q.return(void 0)})};
_.K.putInternal=function(x,L){var D=this,S;return _.I(function(Q){if(Q.nextAddress==1)return Q.yield(eb0(D.token),2);S=Q.yieldResult;return Q.yield(S.put("ResponseStore",L),0)})};
_.K.remove=function(x){var L=this,D;return _.I(function(S){if(S.nextAddress==1)return S.yield(eb0(L.token),2);D=S.yieldResult;return S.return(D.delete("ResponseStore",[x,L.clientName]))})};
_.K.removeAll=function(){var x=this,L;return _.I(function(D){if(D.nextAddress==1)return D.yield(eb0(x.token),2);L=D.yieldResult;return D.yield(tcr(L,IDBKeyRange.only(x.clientName)),0)})};
_.K.has=function(){throw Error("ej");};_.W3=new _.vx("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var nXI=function(x){var L;this.stateTagsData=(L=x.responseContext)==null?void 0:L.stateTags},tGl=function(x){var L;
return((L=x.stateTagsData)==null?void 0:L.stateTagsModified)||[]};var xe$;xe$=function(x){this.JSC$18303_responseStore=x};
_.zn=function(x,L,D){if(!_.u("state_tags_killswitch")){var S=new nXI(L);if(tGl(S).length>0){var Q=x.JSC$18303_responseStore.getKeys();Q=_.O(Q);for(var J=Q.next();!J.done;J=Q.next()){J=J.value;var Z=AQ(x.JSC$18303_responseStore,J);if(Z){var y=_.Oy(Z);a:{var E=void 0;Z=tGl(S);y=((E=(new nXI(y)).stateTagsData)==null?void 0:E.relevantStateTags)||[];E=_.O(y);for(y=E.next();!y.done;y=E.next())if(y=y.value,y.stateTag!=null&&Z.includes(y.stateTag)&&y.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){Z=
!0;break a}Z=!1}Z&&c5s(x.JSC$18303_responseStore,J)}}}}var P;S=(P=L.responseContext)==null?void 0:P.maxAgeSeconds;D&&S&&Number(S)>0&&(L=j2(L,S),x.JSC$18303_responseStore.put(D,new _.qX(L)))};
xe$.prototype.handleResponse=function(x,L){if(!L)throw Error("fj");var D,S;L=(D=L.config)==null?void 0:(S=D.storeStrategy)==null?void 0:S.storeKey;_.zn(this,x,L)};
xe$[IZ]=[_.WV];_.$2G=new _.vx("STORE_RESPONSE_PROCESSOR_TOKEN");var LRX=function(x){this.JSC$18306_responseStore=x};
LRX.prototype.handleResponse=function(x,L){if(L.input.match(_.KB(RgW))){var D;if(x==null?0:(D=x.entries)==null?0:D.length)for(x=_.O(x.entries),L=x.next();!L.done;L=x.next()){D=L.value.command;var S=void 0;L=(S=_.g(D,_.TF))==null?void 0:S.unserializedPrefetchData;if(!D||!L)break;S=(new ZP).JSC$13126_getStoreKey(D);var Q=_.g(L,rMh),J=void 0,Z=void 0,y=void 0,E=void 0,P=void 0,v=void 0,V=((J=Q)==null?0:(Z=J.responseContext)==null?0:Z.maxAgeSeconds)&&Number((y=Q)==null?void 0:(E=y.responseContext)==null?
void 0:E.maxAgeSeconds)>0?Number((P=Q)==null?void 0:(v=P.responseContext)==null?void 0:v.maxAgeSeconds):600;S&&V>0&&(Q=j2(Q,V),this.JSC$18306_responseStore.put(S,new _.qX(Q)));D=(new NI).JSC$13126_getStoreKey(D);L=_.g(L,Y6H);E=y=Z=J=Q=S=void 0;P=((S=L)==null?0:(Q=S.responseContext)==null?0:Q.maxAgeSeconds)&&Number((J=L)==null?void 0:(Z=J.responseContext)==null?void 0:Z.maxAgeSeconds)>0?Number((y=L)==null?void 0:(E=y.responseContext)==null?void 0:E.maxAgeSeconds):600;D&&P>0&&(L=j2(L,P),this.JSC$18306_responseStore.put(D,
new _.qX(L)))}}};
LRX[IZ]=[_.WV];var Deg=function(x,L){this.innertubeTransportService=x;this.JSC$18309_commandHandler=L};
Deg.prototype.submitForm=function(x,L,D,S,Q){var J=this,Z,y,E,P,v,V;return _.I(function(h){if(h.nextAddress==1)return Z={submitId:x,formData:L,submitBehavior:D,params:S},y=_.KB(iEi),h.yield(_.MI(J.innertubeTransportService,Z,y,Q),2);E=h.yieldResult;if(!E)return h.return(Promise.reject(new _.RZ("Submit API returned an undefined response. Submit ID: "+x)));P=E;(V=(v=P)==null?void 0:v.onResponseReceived)&&J.JSC$18309_commandHandler.resolveCommand(V);return h.return(P)})};
Deg[IZ]=[_.i1,_.E2];var qO=function(){this.scheduler=_.RP()},S5X;
qO.prototype.pause=function(){throw Error("gj");};
qO.prototype.resume=function(){throw Error("gj");};
qO.prototype.queue=function(x){var L=this,D=_.xe(),S=_.TG(this.scheduler,function(){try{var Q;if(_.pI.instance)var J=_.pI.instance;else{var Z=new _.RZ("Error: Unexpected uninitialized CommandHandler.");_.BI(Z);J=void 0}(Q=J)==null||Q.resolveCommand(x.command);D.resolve()}catch(y){D.reject(y)}});
D.promise.thenCatch(function(Q){Q instanceof _.iS&&L.scheduler.cancelJob(S)});
return D.promise};
qO.prototype.queueAll=function(x){var L=new Map;x=_.O(x);for(var D=x.next();!D.done;D=x.next())D=D.value,L.set(D.id,this.queue(D));return L};var Jwq=function(x,L){var D=this;this.taskModel=x;this.onTaskCancelledCallback=L;this.resolver=_.xe();x=x.proto.prefetchConfig;if(!x)throw Error("hj");if(!x.prefetchAction)throw Error("ij");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(S){S instanceof _.iS&&(QNI(D,D.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),D.onTaskCancelledCallback(D.taskModel.id,D.jobId),D.tick("pcc"));
throw S;});
this.timerName=this.taskModel.id;_.A_(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)};
Jwq.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 QNI=function(x,L){_.W$({prefetchInfo:{cancellationReason:L}},x.timerName)};
Jwq.prototype.tick=function(x){_.$T(x,void 0,this.timerName)};var $B=function(){var x=this;this.scheduler=_.RP();this.maxInflightTasks=_.dE("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.dE("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new GQB;this.onTaskCancelled=function(L,D){D&&x.scheduler.cancelJob(D);KRI(x,L);Ak(x,3)}},OU9=function(){$B.instance||($B.instance=new $B);
return $B.instance};
$B.prototype.pause=function(){this.prefetchCoordinatorState=0};
$B.prototype.resume=function(){Ak(this,0)};
$B.prototype.queue=function(x){x=ZU$(this,x);Ak(this,1);return x};
$B.prototype.queueAll=function(x){var L=new Map;x=_.O(x);for(var D=x.next();!D.done;D=x.next())D=D.value,L.set(D.id,ZU$(this,D));Ak(this,1);return L};
var ZU$=function(x,L){var D=x.allPrefetchTasks.get(L.id);if(D)return D.cancellablePromise;try{var S=new Jwq(L,x.onTaskCancelled)}catch(J){return _.Bp(J)}D=S;D.tick("pcq");var Q={prefetchInfo:{taskId:D.taskModel.id,isPrefetch:!0,fetchAction:D.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:D.taskModel.command.clickTrackingParams}};D.taskModel.csn&&(Q.clientScreenNonce=D.taskModel.csn);_.W$(Q,D.timerName);x.allPrefetchTasks.set(L.id,S);x.drainingHeap.insert(-S.getPriority(),S);return S.cancellablePromise},
Ak=function(x,L){x.prefetchCoordinatorState===L&&(x.prefetchCoordinatorState=2,yw3(x))},yw3=function(x){for(var L={};x.prefetchCoordinatorState!==0;L={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(x.inflightPrefetchTasks.size>=x.maxInflightTasks){x.prefetchCoordinatorState=3;break}L.prefetchTask$jscomp$1=x.drainingHeap.remove();if(!L.prefetchTask$jscomp$1){x.prefetchCoordinatorState=1;break}L.taskId$jscomp$3=L.prefetchTask$jscomp$1.taskModel.id;if(x.allPrefetchTasks.has(L.taskId$jscomp$3)){var D=-1;x.coordinatorTimeoutMs>0&&(D=_.TG(x.scheduler,function(S){return function(){rw(x,S.taskId$jscomp$3,Error("jj"))}}(L),x.coordinatorTimeoutMs));
x.inflightPrefetchTasks.set(L.taskId$jscomp$3,D);if(!x.JSC$18326_commandHandler){if(!_.pI.instance){rw(x,L.taskId$jscomp$3,Error("kj"));continue}x.JSC$18326_commandHandler=_.pI.instance}a:switch(L.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":D=1;break a;default:D=0}L.prefetchTask$jscomp$1.jobId=x.scheduler.addJob(function(S){return function(){S.prefetchTask$jscomp$1.tick("pcr");try{x.JSC$18326_commandHandler.resolveCommand(S.prefetchTask$jscomp$1.taskModel.command)||
rw(x,S.taskId$jscomp$3,Error("lj"))}catch(Q){rw(x,S.taskId$jscomp$3,Q)}}}(L),D,0)}}},IfG=function(x,L){(L=KRI(x,L))!=null&&(L.resolver.resolve(),L.tick("pce"));
Ak(x,3)},rw=function(x,L,D){(L=KRI(x,L,D))!=null&&(L.resolver.reject(D),L.tick("pcc"),QNI(L,"CANCELLATION_REASON_ERROR"),Math.random()<=_.dE("prefetch_coordinator_error_logging_sampling_rate")&&(D=new _.RZ("Prefetch Command failed.",L.taskModel.id,D.message),_.BI(D)));
Ak(x,3)},KRI=function(x,L,D){var S=x.allPrefetchTasks.get(L);
S?((D=x.inflightPrefetchTasks.get(L))&&D!==-1&&x.scheduler.cancelJob(D),x.inflightPrefetchTasks.delete(L),x.allPrefetchTasks.delete(L)):_.qy(new _.RZ("Unexpected missing prefetch task when deleting task.",L,D==null?void 0:D.message));return S};var Ez5=function(x,L,D,S,Q){this.id=x;this.triggerOn=L;this.cancelOn=D;this.command=S;this.proto=Q};
_.J3.Object.defineProperties(Ez5.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var MNq=function(){this.JSC$18331_prefetchCoordinator=OU9();S5X||(S5X=new qO);this.defaultCoordinator=S5X},deq;
MNq.getInstance=function(){deq||(deq=new MNq);return deq};
MNq.prototype.get=function(x){switch(x){case 0:return this.JSC$18331_prefetchCoordinator;default:return this.defaultCoordinator}};var NO=function(){this.coordinatorSupplier=MNq.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},vzq=function(x){var L=_.A3()||void 0,D=Object.keys(PQ$)[0];
if(D){var S=x.taskIdByTriggerId.get(D);if(S!=null){x.taskIdByTriggerId.delete(D);D=[];S=_.O(S);for(var Q=S.next();!Q.done;Q=S.next())if(Q=x.tasks.get(Q.value))L!=="UNDEFINED_CSN"&&(Q.csn=L),D.push(Q);D=lX0(D);L=[];D=_.O(D);for(S=D.next();!S.done;S=D.next()){Q=_.O(S.value);S=Q.next().value;Q=Q.next().value;S=x.coordinatorSupplier.get(S).queueAll(Q);S=_.O(S);var J=S.next();for(Q={};!J.done;Q={taskId$jscomp$9:void 0},J=S.next()){var Z=_.O(J.value);J=Z.next().value;Z=Z.next().value;Q.taskId$jscomp$9=
J;J=Z;L.push(Q.taskId$jscomp$9);x.queuedPromisesByTask.set(Q.taskId$jscomp$9,_.$x(J,function(y){return function(){jNW(x,y.taskId$jscomp$9)}}(Q)))}}}}else _.qy(new _.RZ("Unexpected malformed TriggerEvent."))};
NO.prototype.trigger=function(x,L){var D=this,S=this.tasks.get(x);if(!S||this.queuedPromisesByTask.has(x))return!1;VNs(this,x,S.triggerOn);L!=="UNDEFINED_CSN"&&(S.csn=L);L=this.coordinatorSupplier.get(S.taskType).queue(S);this.queuedPromisesByTask.set(x,_.$x(L,function(){jNW(D,x)}));
return!0};
NO.prototype.cancel=function(x){var L=this.queuedPromisesByTask.get(x);if(L)L.cancel();else return jNW(this,x)};
var jNW=function(x,L){x.queuedPromisesByTask.delete(L);var D=x.tasks.get(L);if(!D)return!1;x.tasks.delete(L);VNs(x,L,D.triggerOn);(D=CLf(D.cancelOn))&&(x=x.taskIdByCancelId.get(D))&&x.delete(L);return!0},VNs=function(x,L,D){(D=Object.keys(D)[0])&&(x=x.taskIdByTriggerId.get(D))&&x.delete(L)};var PQ$={taskRegistered:{}},iX=function(){NO.instance||(NO.instance=new NO);this.JSC$18340_taskManager=NO.instance};
_.p(iX,jI);
iX.prototype.resolveCommand=function(x){var L=this,D,S;return _.I(function(Q){D=_.g(x,AYG);if((S=D)==null||!S.tasks){var J=new _.RZ("RegisterTasksCommand is missing tasks.");_.BI(J);return Q.return()}J=L.JSC$18340_taskManager;for(var Z=_.O(D.tasks),y=Z.next();!y.done;y=Z.next())if(y=y.value,y=y.id&&y.triggerOn&&y.cancelOn&&y.command?new Ez5(y.id,y.triggerOn,y.cancelOn,y.command,y):void 0,y){var E=Object.keys(y.triggerOn)[0];if(E){var P=CLf(y.cancelOn);P?(J.tasks.set(y.id,y),J.taskIdByTriggerId.has(E)||J.taskIdByTriggerId.set(E,
new Set),J.taskIdByTriggerId.get(E).add(y.id),J.taskIdByCancelId.has(P)||J.taskIdByCancelId.set(P,new Set),J.taskIdByCancelId.get(P).add(y.id)):_.qy(new _.RZ("Unexpected malformed cancelOn field."))}else _.qy(new _.RZ("Unexpected malformed triggerOn field."))}else _.qy(new _.RZ("Unexpected malformed Task proto."));vzq(L.JSC$18340_taskManager);_.Y2(Q)})};var hUq={},HU5=(hUq.rendered={priority:_.u("web_adaptive_early_init")?8:0,callback:function(){var x={};x.numCpu=navigator.hardwareConcurrency;var L={};L.ramGb=_.Qb.navigator.deviceMemory;var D={staticContext:{}};L.ramGb&&Jtb(L.ramGb)&&(D.staticContext.memoryTotalKbytes=(L.ramGb*1048576).toString());x.numCpu&&Jtb(x.numCpu)&&(D.staticContext.cpuCores=x.numCpu);if(_.u("web_enable_adaptive_appl_signal")){x={};L=y4f();L=L.length>0?L[0]:void 0;var S,Q=(S=_.il("rses_dpj"))!=null?S:L==null?void 0:L.tick.rses_dpj,
J;S=(J=_.il("rsef_dpj"))!=null?J:L==null?void 0:L.tick.rsef_dpj;Q&&Number(Q)>0&&S&&Number(S)>0&&(J=Math.ceil(Number(S)-Number(Q)),J>0&&(x.loadLatency=J));x.loadLatency&&Jtb(x.loadLatency)&&(D.appL=x.loadLatency.toString())}_.Uh("applicationStarted",D);Kaf=D;_.u("web_adaptive_repeat_ase")&&window.addEventListener("state-navigateend",ON0)}},hUq);var us3=new _.vx("WINDOW_ON_ERROR"),gzl=new _.vx("ERROR_WEIGHT_MAPS"),kiu=new _.vx("INIT_ERROR");var pis={},meG=(pis.initialized={priority:10,callback:function(x){x.injector.resolve(kiu)()}},pis);var bUG=function(){},Y5s=function(){var x=_.o1("meta_logger_impl");
x||(x=new bUG,_.KK("meta_logger_impl",x));return x},FRq=function(){Y5s().csiSubscriptionKey=wPp("meta_logging_csi_event",function(x){var L=x.timerName;
if(x=x.timelineData){_.A_(L,{startTime:x.startTime},L);x.infos&&_.W$(x.infos,L);for(var D=_.O(Object.keys(x.ticks)),S=D.next();!S.done;S=D.next())S=S.value,_.$T(S,x.ticks[S],L)}})};
bUG.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&qYc(this.csiSubscriptionKey)};var sNs={},T89=(sNs.initialized={priority:10,callback:function(){FRq()}},sNs);var eUG=function(x,L){this.innertubeClientName=x;this.JSC$18351_prefCookie=L};
eUG.prototype.record=function(){if(_.u("web_li_record_binary_eval_tick")){var x=_.il("rsef_dpj");var L=_.il("rses_dpj");x=x!==void 0&&L!==void 0?Math.round(x-L):void 0;if(x!==void 0&&x>0){L=_.Ad(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var D=this.poolSize;if(!(L.valuesSeen>=1E9)){if(L.valuesSample.length<D)L.valuesSample.push(x);else{var S=Math.floor(Math.random()*(L.valuesSeen+1));S<D&&(L.valuesSample[S]=x)}L.valuesSeen+=1}_.qB(this.storagePrefix+"-"+this.innertubeClientName,
L,2592E3);x=L.valuesSample;L=Uxb(x);x=x.length<this.poolSize?void 0:L<400?1:L<1700?2:3;x!==void 0&&(this.JSC$18351_prefCookie.set(this.cookiePrefix+this.innertubeClientName,x),this.JSC$18351_prefCookie.save())}}else _.$8(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$18351_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$18351_prefCookie.save()};
eUG[IZ]=[OA,rm];var RU5=function(){eUG.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.p(RU5,eUG);var Gil=new _.vx("PAGE_LOAD_TIME_TOKEN");var CQI=function(x){this.signal=x;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;x.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.TG(_.WW,this.disableLoggingAndSendPayload,1E4)};
CQI.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.WW.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),lfX(this))};
var lfX=function(x){var L=_.qu();if(L){var D={webClientComponentsData:{components:Array.from(x.ids,function(S){return{id:S}})}};
x.ids.clear();_.sk().visualElementStateChanged(L,D)}};var UeW=_.qj({a11y:_.ba_});_.wiX=_.AD(UeW)(UeW.a11y,{ephemeralActionSelector:function(x){return x.ephemeralAction||null}});var B8q=_.qj({continuation:_.sYW});var WRq=_.AD(B8q)(B8q.continuation,{continuationCommandSelector:function(x){return x.continuationCommand}});var q5Y=new _.vx("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var fC=function(x,L){this.JSC$18380_storeWithEntities=x;this.JSC$18380_commandHandler=L;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
fC.prototype.start=function(){this.JSC$18380_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
fC.prototype.observeDownloadingEntities=function(){var x=_.bvb(this.JSC$18380_storeWithEntities.getState().entities).map(function(S){return Y6f(S)});
if(x.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var L={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:ll0()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.ya(_.p6("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$18380_commandHandler.resolveCommand(L)}this.downloadingEntities=x}else if(this.downloadingEntities.length){var D=mJN(this.JSC$18380_storeWithEntities.getState().entities).map(function(S){return Y6f(S)});
this.downloadingEntities.filter(function(S){return D.includes(S)}).length&&(x={openPopupAction:Hx0()},this.JSC$18380_commandHandler.resolveCommand(x));
this.downloadingEntities=[]}};
fC[IZ]=[yG,_.E2];var AwG;_.oV=function(x,L,D,S,Q,J,Z,y){this.JSC$18383_playerApiPromise=x;this.JSC$18383_commandHandler=L;this.JSC$18383_screenManager=D;this.offlineWebClientEligibility=S;this.JSC$18383_prefStorage=Q;this.JSC$18383_actionRouter=J;this.entityTypeMap=Z;this.JSC$18383_persistentStorePromiseAccessor=y;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
AwG=function(){var x=_.yY().resolve(_.oV),L;_.I(function(D){if(D.nextAddress==1)return x.downloadFailureListenerBound?D.return():D.yield(x.JSC$18383_playerApiPromise,2);L=D.yieldResult;L.addEventListener("onOfflineOperationFailure",function(S){if(S.failureReason&&S.entityKey&&S.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(S.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var Q=_.va(S.entityKey).entityId;Q&&x.JSC$18383_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
Q)}else if(_.u("kevlar_woffle")){Q=x.JSC$18383_commandHandler;var J=Q.resolveCommand;S=S.failureReason;var Z=_.p6("TRANSFER_FAILED",void 0,"Download failed");S==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(Z=_.p6("STORAGE_FULL",void 0,"Storage full"));J.call(Q,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.ya(Z),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
x.downloadFailureListenerBound=!0;_.Y2(D)})};
_.oV.prototype.deleteVideo=function(x,L){var D=this,S,Q,J;return _.I(function(Z){if(Z.nextAddress==1)return Z.yield(D.JSC$18383_playerApiPromise,2);S=Z.yieldResult;J={offlineLoggingData:{offlineDeleteReason:(Q=L)!=null?Q:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return Z.yield(S.queueOfflineAction(x,D.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",J),0)})};
_.oV.prototype.pauseVideoDownload=function(x){var L=this,D;return _.I(function(S){if(S.nextAddress==1)return S.yield(L.JSC$18383_playerApiPromise,2);D=S.yieldResult;D.pauseVideoDownload(x);_.Y2(S)})};
_.oV.prototype.resumeVideoDownload=function(x){var L=this,D;return _.I(function(S){if(S.nextAddress==1)return S.yield(L.JSC$18383_playerApiPromise,2);D=S.yieldResult;return S.yield(D.resumeVideoDownload(x),0)})};
_.oV[IZ]=[_.d4,_.E2,_.QT,q5Y,oL,be,kWh,r6];var $eG=new _.vx("DOWNLOAD_STATE_STORE_TOKEN");var rwI=function(x,L){this.JSC$18403_persistentStorePromiseAccessor=x;this.store=L;this.upliftCompletionResolver=new _.Hq},ffG=function(){var x=_.yY().resolve(N8s),L;
_.I(function(D){switch(D.nextAddress){case 1:if(x.upliftImplPromise)return D.return(x.upliftImplPromise);_.HH(D,2);x.upliftImplPromise=iUl(x);return D.yield(x.upliftImplPromise,4);case 4:x.upliftCompletionResolver.resolve();_.nH(D,3);break;case 2:throw L=_.mW(D),x.upliftCompletionResolver.reject(L),L;case 3:return D.return(x.upliftImplPromise)}})},iUl=function(x){var L,D,S;
return _.I(function(Q){switch(Q.nextAddress){case 1:return _.rO("LOGGED_IN")?Q.yield(x.JSC$18403_persistentStorePromiseAccessor(),2):Q.return();case 2:L=Q.yieldResult;if(!L)return _.$T("vdeur"),Q.return();_.$T("vdeus");_.HH(Q,3);return Q.yield(ozl(L),5);case 5:D=Q.yieldResult;x.store.dispatch(Iqb(D));L.observe(function(J){EhO(x.store,J)});
_.nH(Q,4);break;case 3:throw S=_.mW(Q),_.$T("vdeur"),S;case 4:_.$T("vdeuc"),_.Y2(Q)}})},ozl=function(x){var L;
return _.I(function(D){if(D.nextAddress==1)return D.yield($xh(x),2);L=D.yieldResult;return D.return(L.reduce(function(S,Q){if(!Q.data||!Q.key||!Q.entityType)return S;S[Q.entityType]||(S[Q.entityType]={});S[Q.entityType][Q.key]=Q.data;return S},{}))})};
rwI[IZ]=[r6,_.MP];var N8s;N8s=new _.vx("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.aV=new _.vx("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var zr=function(x,L){this.JSC$18406_persistentStorePromiseAccessor=x;this.transportService=L};
zr.prototype.refresh=function(){var x=this,L,D,S,Q;return _.I(function(J){if(J.nextAddress==1)return _.rO("LOGGED_IN")?J.yield(x.JSC$18406_persistentStorePromiseAccessor(),2):J.return();if(J.nextAddress!=3)return(L=J.yieldResult)?J.yield(bxc(L),3):J.return();if((D=J.yieldResult)&&!(Number(D.data.refreshTimestampMs||0)<(0,_.y5)()))return J.return();S={browseId:"SPaccount_downloads"};Q=_.KB(ti);_.MI(x.transportService,S,Q).then(function(Z){var y;if(L&&(Z==null?void 0:(y=Z.responseContext)==null?void 0:
y.maxAgeSeconds)!==0){var E;y=(Z==null?void 0:(E=Z.responseContext)==null?void 0:E.maxAgeSeconds)||604800;E=String(Math.floor((0,_.y5)())+y*1E3);L.put("service:downloads_settings:fallback",new _.qX({innertubeResponse:Z,refreshTimestampMs:E}))}});
_.Y2(J)})};
zr[IZ]=[_.W3,_.i1];var Xa=function(x,L){this.JSC$18410_playerPromise=x;this.store=L;this.started=!1};
Xa.prototype.start=function(){var x=this,L;return _.I(function(D){if(D.nextAddress==1)return x.started?D.return():D.yield(x.JSC$18410_playerPromise,2);L=D.yieldResult;L.addEventListener("onOrchestrationBecameLeader",x.updateIsLeader.bind(x,!0));L.addEventListener("onOrchestrationLostLeader",x.updateIsLeader.bind(x,!1));if(L.isOrchestrationLeader)x.updateIsLeader(L.isOrchestrationLeader());else{var S=new _.RZ("Function isOrchestrationLeader is undefined",{"player.isReady":L.isReady(),"player.playVideo":L.playVideo?
"defined":"undefined"});_.BI(S);x.updateIsLeader(!1)}x.started=!0;_.Y2(D)})};
Xa.prototype.updateIsLeader=function(x){this.store.dispatch(_.MU({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:x}}))};
Xa[IZ]=[_.d4,_.MP];var afl=function(x,L){this.networkStatusManager=x;this.JSC$18413_prefStoragePromise=L;this.redirectsToPreload=["https://youtube.com"]},zU9=function(){var x=_.yY().resolve(afl),L,D,S,Q,J,Z;
_.I(function(y){switch(y.nextAddress){case 1:return y.yield(x.JSC$18413_prefStoragePromise,2);case 2:L=y.yieldResult;if(!(D=L)){y.jumpTo(3);break}return y.yield(L.get("yt-redirect-prefetch-id"),4);case 4:D=y.yieldResult;case 3:if(D||!x.networkStatusManager.isNetworkAvailable())return y.return();S={cache:"reload",redirect:"manual"};Q=_.O(x.redirectsToPreload);J=Q.next();case 5:if(J.done){if(!L){y.jumpTo(0);break}return y.yield(L.set("yt-redirect-prefetch-id",!0,86400),0)}Z=J.value;_.HH(y,8);return y.yield(_.Qb.fetch(Z,
S),10);case 10:_.nH(y,6);break;case 8:_.mW(y);case 6:J=Q.next(),y.jumpTo(5)}})};var Xi5=function(){};_.cws=new _.vx("PAGE_CONTENT_EXTRACTOR_TOKEN");var c3=function(x){x?(this.container=x,this.containerWasInjected=!0):this.containerWasInjected=!1};
c3.prototype.openDialog=function(x,L,D){var S=this,Q;return _.I(function(J){(Q=S.container)==null||Q.openDialog(x,L,D);_.Y2(J)})};
c3.prototype.closeDialog=function(){var x=this,L;return _.I(function(D){(L=x.container)==null||L.closeDialog();_.Y2(D)})};
c3.prototype.isDialogOpen=function(){var x=this,L,D;return _.I(function(S){return S.return((D=(L=x.container)==null?void 0:L.isDialogOpen())!=null?D:!1)})};
c3[IZ]=[_.ZN(Q7H)];_.nzg=new _.vx("POPUP_CONTROLLER_TOKEN");var tNW=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
tNW.prototype.registerPanel=function(x,L){if(x){this.panelMap.set(x,L);var D=this.pendingPanelResolvers.get(x);D&&(D.resolve(L),this.pendingPanelResolvers.delete(x))}};
tNW.prototype.getPanel=function(x){var L=this,D;return _.I(function(S){return(D=L.panelMap.get(x))?S.return(D):S.return(xT$(L,x))})};
var xT$=function(x,L){var D,S;return _.I(function(Q){if(D=x.pendingPanelResolvers.get(L))return Q.return(D.promise);S=new _.Hq;x.pendingPanelResolvers.set(L,S);return Q.return(S.promise)})},LWX=function(x,L){tNW.call(this);
var D=this;this.popupController=x;this.persistentPanelController=L;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return D.panelMap.size}}};
_.p(LWX,tNW);_.K=LWX.prototype;_.K.getReloadContinuation=function(x){var L=this,D;return _.I(function(S){if(S.nextAddress==1)return S.yield(L.getPanel(x),2);D=S.yieldResult;return S.return(D.getReloadContinuation())})};
_.K.showPanel=function(x){var L=this,D,S,Q,J,Z,y,E,P,v,V,h,H;return _.I(function(k){if(k.nextAddress==1){D=x;S=D.identifier;Q=D.panelContents;J=D.config;Z=D.extras;y=D.panelUpdatableFields;E=D.updatePanelContinuationData;P=x.target;E&&L.updatePanelContinuationDatas.set(S,E);if((v=J)==null?0:(V=v.engagementPanelPopupPresentationConfig)==null?0:V.popupType)if(h=J.engagementPanelPopupPresentationConfig.popupType,P===void 0&&(P=document.body),h==="PANEL_POPUP_TYPE_PERSISTENT_SIDE_PANEL"){if(!L.persistentPanelController)return _.qy(new _.RZ("Persistent panel controller is not available.")),
k.return();var T=L.persistentPanelController;T.persistentPanelIdentifiers.has(S)||(T.persistentPanelWrapper.appendChild(T.engagementPanelElement({panelIdentifier:S},{isPersistentPanel:!0})),T.persistentPanelIdentifiers.add(S));a:switch(_.aB.currentPageSubTypeSelector(T.store.getState())){case "watch":var G="WATCH";break a;default:G="APP"}_.DTX(T,G);T.store.dispatch(Y_A(!0))}else{if(h==="PANEL_POPUP_TYPE_DIALOG"||h==="PANEL_POPUP_TYPE_DROPDOWN"){T=k.return;G=L.popupController;var U=G.openPopup;a:switch(h){case "PANEL_POPUP_TYPE_DIALOG":var l=
"DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":l="DROPDOWN";break a;default:throw Error("nj`"+h);}return T.call(k,U.call(G,S,Q,l,P))}_.qy(new _.RZ("Popup type "+h+" not supported in PanelController."))}return k.yield(L.getPanel(S),2)}H=k.yieldResult;(Q||y)&&H.updatePanel(Q,!1,Z,y);H.showPanel(Z);_.Y2(k)})};
_.K.hidePanel=function(x){var L=this,D,S;return _.I(function(Q){if(Q.nextAddress==1)return Q.yield(L.getPanel(x),2);D=Q.yieldResult;D.hidePanel();L.popupController.closePopup(x);(S=L.persistentPanelController)!=null&&S.persistentPanelIdentifiers.has(x)&&S.store.dispatch(Y_A(!1));_.Y2(Q)})};
_.K.isVisible=function(x,L){var D=this,S;return _.I(function(Q){if(Q.nextAddress==1)return L&&!D.panelMap.has(x)?Q.return(!1):Q.yield(D.getPanel(x),2);S=Q.yieldResult;return Q.return(S.isVisible())})};
_.K.updatePanel=function(x){var L=this,D,S,Q,J,Z,y,E,P;return _.I(function(v){if(v.nextAddress==1){D=x;S=D.identifier;Q=D.panelContents;J=D.shouldFocus===void 0?!1:D.shouldFocus;Z=D.extras;y=D.panelUpdatableFields;E=D.updatePanelContinuationData;if(!Q&&!y)return v.return();E&&L.updatePanelContinuationDatas.set(S,E);return v.yield(L.getPanel(S),2)}P=v.yieldResult;P.updatePanel(Q,J,Z,y);Q&&_.u("enable_ai_companion")&&L.registerPanelContent(S,Q);_.Y2(v)})};
_.K.registerPanelContent=function(x,L){x&&this.panelContentMap.set(x,L)};
_.K.unregisterPanelContent=function(x){this.panelContentMap.delete(x)};
_.K.getPanelContent=function(x){return this.panelContentMap.get(x)};
_.K.getUpdatePanelContinuationData=function(x){return this.updatePanelContinuationDatas.get(x)};
LWX[IZ]=[_.nzg,_.ZN(_.Jy)];var nC=function(x,L){this.innertubeTransportService=x;this.JSC$18437_screenManager=L},Stl=function(x){var L;
return!((L=x.panelLoadingStrategy)==null||!L.requestTemplate)};
nC.prototype.makeRequest=function(x){var L=this,D,S;return _.I(function(Q){switch(Q.nextAddress){case 1:if(!Stl(L)){Q.jumpTo(2);break}_.HH(Q,3);return Q.yield(_.tD(L.innertubeTransportService,x),5);case 5:return D=Q.yieldResult,D?Q.return(D.content):(_.BI(Error("oj")),Q.return(void 0));case 3:S=_.mW(Q),_.BI(S);case 2:return Q.return(void 0)}})};
nC.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
nC.prototype.execute=function(x){var L=this,D,S,Q,J,Z,y,E,P,v,V;return _.I(function(h){if(h.nextAddress==1){D=x;S=D.data;Q=D.fallbackVe;J=D.parentVe;Z=D.createScreenConfig;y=D.renderFn;E=D.command;L.panelLoadingStrategy=S;var H,k,T=((H=L.panelLoadingStrategy)==null?0:H.screenVe)?(k=L.panelLoadingStrategy)==null?void 0:k.screenVe:Q;T&&_.we(L.JSC$18437_screenManager,T,J,Z);return(P=L.getContent())?h.yield(y(P),2):h.jumpTo(2)}return h.nextAddress!=4?Stl(L)?h.yield(L.makeRequest(E),4):h.return():(V=v=
h.yieldResult)?h.yield(y(V),0):h.return()})};
nC[IZ]=[_.i1,_.QT];var QT9;QT9=function(x,L){this.engagementPanelElement=x;this.store=L;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%"};
_.DTX=function(x,L){var D=x.persistentPanelContainerMap.get(L);D?D.contains(x.persistentPanelWrapper)||(x=x.persistentPanelWrapper,_.EI=!0,_.Mj.set(x,!0),D.insertBefore(x,null),_.Mj.delete(x),_.EI=!1):_.qy(new _.RZ("Persistent panel container not found for surface "+L+"."))};
QT9[IZ]=[JgR,_.MP];var tk=function(){};
tk.prototype.getContainer=function(){return _.O8()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
tk.prototype.openSheet=function(x,L){var D=this,S,Q,J,Z,y,E;return _.I(function(P){switch(P.nextAddress){case 1:return S={stack:[],error:void 0,hasError:!1},_.HH(P,2,3),Q=JI,P.yield(D.isSheetOpen(),5);case 5:J=P.yieldResult;F6h(S,wWb(Q));if(J){if(_.u("web_close_sheet_if_same_target_killswitch")&&L&&D.currentTarget===L)return(Z=D.getContainer())==null||Z.closeSheet(),P.return();D.pendingData={data:x,target:QI3(D,L)};return P.return()}x.viewModel&&(x={viewModel:x.viewModel});(y=D.getContainer())==null||
y.openSheet(x,L);D.currentTarget=L;case 3:_.gP(P);szc(S);_.pZ(P,0);break;case 2:E=_.mW(P),S.error=E,S.hasError=!0,P.jumpTo(3)}})};
tk.prototype.closeSheet=function(){var x=this,L;return _.I(function(D){if(D.nextAddress==1)return D.yield((L=x.getContainer())==null?void 0:L.closeSheet(),2);if(D.nextAddress!=4)return x.currentTarget=void 0,x.pendingData?D.yield(x.openSheet(x.pendingData.data,x.pendingData.target),4):D.jumpTo(0);x.pendingData=void 0;_.Y2(D)})};
tk.prototype.isSheetOpen=function(){var x=this,L,D;return _.I(function(S){return S.return((D=(L=x.getContainer())==null?void 0:L.isSheetOpen())!=null?D:!1)})};
var QI3=function(x,L){if(!_.u("web_parent_target_for_sheets"))return L;var D,S;return(S=(D=x.getContainer())==null?void 0:D.getParentTarget(L))!=null?S:L};var IP=window.documentPictureInPicture;var xnb=_.xI(["dark"]),L7G=_.xI(["system-icons"]),DnO=_.xI(["typography"]),SZw=_.xI(["lang"]),QG4=_.xI(["style"]),X03=_.xI(["dir"]),cnf=_.xI(["rounded-container"]),nGc=_.xI(["style"]),K7f=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],xC=function(x){this.JSC$18454_clientRoot=x;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
xC.prototype.openWindow=function(x){var L=this,D,S;return _.I(function(Q){switch(Q.nextAddress){case 1:if(!window.documentPictureInPicture||!_.TN()||L.currentPipWindow)return Q.return(!1);_.HH(Q,2);return Q.yield((S=IP?IP:null)==null?void 0:S.requestWindow(x),4);case 4:D=Q.yieldResult;_.nH(Q,3);break;case 2:return _.mW(Q),Q.return(!1);case 3:if(!D)return Q.return(!1);D.addEventListener("pagehide",function(){JBl(L)});
D.addEventListener("resize",L.handlePipWindowResize);JUO(D);Zew(D);dj0(D);return Q.yield(zb0(D),5);case 5:if(!fXf())return Q.return(!1);L.currentPipWindow=D;L.JSC$18454_eventForwarder=Oef(D,L.JSC$18454_clientRoot);L.pipWindowResizeDelay=new _.ZR(function(){L.currentPipWindow&&_.dg(L.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.b8(L.currentPipWindow.innerWidth,L.currentPipWindow.innerHeight)])},D);
L.pipWindowResizeDelay.start();return Q.return(!0)}})};
xC.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var JBl=function(x){if(x.currentPipWindow){var L,D;(L=IP?IP:null)==null||(D=L.window)==null||D.close();x.currentPipWindow.removeEventListener("resize",x.handlePipWindowResize);var S;(S=x.pipWindowResizeDelay)==null||S.dispose();x.pipWindowResizeDelay=void 0;var Q;(Q=x.JSC$18454_eventForwarder)==null||Q.stop();x.JSC$18454_eventForwarder=void 0;L=_.O(x.onCloseCallbacks);for(D=L.next();!D.done;D=L.next())D=D.value,D();x.onCloseCallbacks=[];x.currentPipWindow=null}};
xC.prototype.getWindow=function(){return this.currentPipWindow};
var KWG=function(x,L){var D;(D=x.onCloseCallbacks)==null||D.push(L)};
xC.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.TN()};
_.J3.Object.defineProperties(xC.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
xC[IZ]=[gkd];var OZW=new _.vx("PICTURE_IN_PICTURE_CONTROLLER");var yUN=function(x,L){this.lengthY=this.lengthX=0;this.lengthX=L.x-x.x;this.lengthY=L.y-x.y};var ZZ$=function(){},dql=function(x,L){var D;
(D=x.headerElement)==null||D.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:L}))};var yBW=function(){};
yBW.prototype.openPopup=function(x,L,D,S){var Q=this,J;return _.I(function(Z){if(!Q.container)return Z.return();J={openPopupAction:{popup:L,popupType:D,uniqueId:x}};return Z.return(Q.container.handleOpenPopupAction(J,S))})};
yBW.prototype.closePopup=function(x){this.container&&this.container.closePopup(x)};var IEl=function(){this.openTunnels=new Map},ECs=function(x,L,D){if(jG4(D)){var S=_.om(D,"gclid");
D={handleEvent:function(y){L&&!L.closed&&typeof L.postMessage==="function"&&y&&y.origin&&y.source===L&&y.data&&y.data.action==="gcl_setup"&&L.postMessage(Object.assign({},{action:"gcl_transfer"},S&&{gclid:S},{gadSource:2}),y.origin)}};
for(var Q=_.O(x.openTunnels),J=Q.next();!J.done;J=Q.next()){var Z=_.O(J.value);J=Z.next().value;Z=Z.next().value;if(J.closed)try{window.removeEventListener("message",Z),x.openTunnels.delete(J)}catch(y){_.BI(y)}}L&&x.openTunnels.size<15&&(x.openTunnels.set(L,D),window.addEventListener("message",D))}};var E2G=function(){this.clientParams=new Map},xf3=function(x){for(var L=_.O(x.clientParams.keys()),D=L.next();!D.done;D=L.next())D=D.value,D.startsWith("yt-mini-app-share")&&x.clientParams.delete(D)};var Mfq=function(x,L){_.Te.call(this);var D=this;this.shortsController=x;this.storeWithShorts=L;x=_.oQ(this.storeWithShorts,_.Ca0,function(S){if(S){var Q,J=(Q=D.shortsController.getRoot())==null?void 0:Q.getPlayer(),Z;(Q=(Z=D.shortsController.alternativePlayerContainerElement)==null?void 0:Z.getPlayerContainer())&&(J==null||J.appendTo(Q))}else{var y;Z=(y=D.shortsController.alternativePlayerContainerElement)==null?void 0:y.getPlayerContainer().querySelector("#player");Q=D.shortsController.activeIndex;
(y=(J=D.shortsController.getRoot())==null?void 0:J.querySelector('ytd-reel-video-renderer[id="'+Q+'"] #player-container'))&&(Z==null||Z.appendTo(y,void 0,!0))}});
this.addOnDisposeCallback(x)};
_.p(Mfq,_.Te);var LN=function(x,L,D,S){var Q=this;this.storeWithShorts=x;this.ephemeralResponseStore=L;this.innertubeTransportService=D;this.innertubeTransportLoader=S;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.ic(_.IS);this.isShortsPipActive=_.ic(_.E3);this.nextReelVe=_.VC(56921);this.prevReelVe=_.VC(56922);this.backButtonVe=_.VC(22156);this.TEST_ONLY={getActiveModules:function(){return Q.activeModules}}},dTq=function(x){x.unsubscribeFromStore=
_.oQ(x.storeWithShorts,_.G1c,function(L){x.initOrDisposeActiveModules(L);
!L&&x.storeWithShorts.getState().shorts.isFullscreen&&(_.Zg(document.documentElement),x.storeWithShorts.dispatch(_.TWH(!1)))});
x.initOrDisposeActiveModules(_.G1c(x.storeWithShorts.getState()))},YdR,F4B,PPY;
LN.prototype.initOrDisposeActiveModules=function(x){x?this.activeModules.push(new Mfq(this,this.storeWithShorts)):(_.Jx(this.activeModules),this.activeModules.length=0)};
LN.prototype.registerRootElement=function(x){this.rootElement=x;dTq(this)};
LN.prototype.getRoot=function(){return this.rootElement};
LN.prototype.setActiveIndex=function(x){this.activeIndex=x};
_.upH=function(x,L){var D,S,Q,J,Z,y,E;return _.I(function(P){switch(P.nextAddress){case 1:return D=new ZP,(S=D.JSC$13126_getStoreKey(L))&&x.ephemeralResponseStore.has(S)?P.yield(x.ephemeralResponseStore.get(S),7):P.yield(PPY(x,L),4);case 4:Q=P.yieldResult;if(!S){P.jumpTo(3);break}J=j2(Q,3600);return P.yield(x.ephemeralResponseStore.put(S,new _.qX(J)),3);case 7:Q=(Z=P.yieldResult)==null?void 0:_.Oy(Z);case 3:return((y=Q)==null?0:y.replacementEndpoint)&&(E=_.g(Q.replacementEndpoint,_.TF))&&Q.sequenceContinuation&&
(E.sequenceParams=Q.sequenceContinuation),P.return(Q)}})};
YdR=function(x,L){L=(new yk).JSC$13126_getStoreKey(L);return!!L&&x.ephemeralResponseStore.has(L)};
F4B=function(x,L,D){var S,Q,J,Z,y;_.I(function(E){if(E.nextAddress==1){S=new yk;Q=S.JSC$13126_getStoreKey(L);if(!Q)return E.return();if(D.reelWatchSequenceResponse)return J=j2(D.reelWatchSequenceResponse,3600),x.ephemeralResponseStore.put(Q,new _.qX(J)),E.jumpTo(0);if(!x.ephemeralResponseStore.has(Q))return E.jumpTo(0);y=D;return E.yield(x.ephemeralResponseStore.get(Q),4)}y.reelWatchSequenceResponse=(Z=E.yieldResult)==null?void 0:_.Oy(Z);_.Y2(E)})};
PPY=function(x,L){var D=D===void 0?{}:D;var S,Q,J;return _.I(function(Z){switch(Z.nextAddress){case 1:if(x.innertubeTransportService){S=x.innertubeTransportService;Z.jumpTo(2);break}if(!x.innertubeTransportLoader){_.N9(Error("qj"));Z.jumpTo(2);break}return Z.yield(x.innertubeTransportLoader(),4);case 4:S=Z.yieldResult;case 2:return Z.yield((Q=S)==null?void 0:_.tD(Q,L,D),5);case 5:return J=Z.yieldResult,Z.return(J)}})};
_.J3.Object.defineProperties(LN.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
LN[IZ]=[EMd,_.WV,_.ZN(_.i1),_.ZN(ybR)];_.jT3=new _.vx("STORAGE_MANAGER_TOKEN");var F7f=["touchmove","scroll"];var v2I=!1;var gW3=!1;var sGG={onSpanEnd:function(x){x.parentId==null&&(v2I||(He0(),setInterval(He0,6E5),v2I=!0),kqO(x,"web_tracing_action"))}};var Vf5=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},h0s;
Vf5.prototype.enqueue=function(x,L){L===1?this.currentPersistentToast=x:this.queue.push(x);this.openToast()};
Vf5.prototype.openToast=function(){var x;(x=this.currentToast)!=null&&x.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.Du=new _.vx("TOAST_MANAGER_TOKEN");var HZ9=new _.vx("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");var u5l=new _.vx("VIEW_TRANSITION_COORDINATOR_TOKEN");var g2W=function(x){this.config=x;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;x=_.O(x.transitionConfigs);for(var L=x.next();!L.done;L=x.next())L=_.O(L.value).next().value,this.transitionTasksMap.set(L,[])};
g2W.prototype.registerElement=function(x,L,D){D=D===void 0?!1:D;for(var S=_.O(Object.keys(L)),Q=S.next(),J={};!Q.done;J={viewTransitionName:void 0},Q=S.next()){Q=Q.value;J.viewTransitionName=L[Q];var Z=this.elementTasksMap.get(x),y=void 0;if((y=Z)==null?0:y.has(Q)){_.WI(new _.RZ("Element already registered for transition",x.tagName,Q));break}Z=Z||new Map;Z.set(Q,{beforeTransition:function(E){return function(){x.style.viewTransitionName=E.viewTransitionName}}(J),
afterTransition:function(){x.style.viewTransitionName&&(x.style.viewTransitionName="")},
runOnce:D});this.elementTasksMap.set(x,Z)}};
_.Nb=function(x,L){var D=x.elementTasksMap.get(L);D&&(D.clear(),D.size===0&&x.elementTasksMap.delete(L))};
g2W[IZ]=[HZ9];var pH$=_.B(function(x){var L=_.x3("yt-expandable-metadata-header-view-model"),D=_.kO(function(S){if(!_.BX(_.w4(S),L.value,["A".toString(),"BUTTON".toString()])){var Q;(Q=x.expandedCallback)==null||Q.call(x,!1)}});
return _.M("yt-expandable-metadata-header-view-model",{el:L,class:"ytExpandableMetadataHeaderViewModelHost"},_.M(_.d,{cond:function(){return x.expanded()},
then:function(){return _.M("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":D},_.M("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.M(_.d,{cond:function(){return x.data().expandedTitleImage},
then:function(S){return _.M("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.M(_.Ku,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:S}))}}),_.M("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.M("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.M(_.kP,{text:function(){return x.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.M(_.kP,{text:function(){return x.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.M(_.kP,{text:function(){return x.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.M("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.M(_.Fj,{data:function(){return x.data().infoButton}},{buttonViewModel:_.qP}),_.M(_.Fj,{data:function(){return x.data().collapseButton}},{buttonViewModel:function(S){return _.M(_.qP,{data:S.data,
onClick:function(){var Q;(Q=x.expandedCallback)==null||Q.call(x,!1)}})}})))},
else:function(){return _.M(k6u,Object.assign({},x))}}))},"dg"),mTI=_.B(function(x){return _.M("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.M(_.d,{cond:function(){return x.data().collapsedLabelImage},
then:function(L){return _.M("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.M(_.Ku,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:L,alt:""}))}}),_.M(_.kP,{text:function(){return x.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"eg"),k6u=_.B(function(x){return _.M("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.kO(function(){var L;return void((L=x.expandedCallback)==null?void 0:L.call(x,!0))})},_.M("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.M(_.d,{cond:function(){return x.data().collapsedImage},
then:function(L){return _.M("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.M(_.Ku,{height:20,preserveHeight:!0,preserveWidth:!0,data:L,alt:""}))}}),_.M(_.d,{cond:function(){return x.data().showLeadingCollapsedLabel},
then:function(){return _.M(mTI,Object.assign({},x))}}),_.M("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.M(_.kP,{text:function(){return x.data().collapsedTitle}}))),_.M("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.M(_.d,{cond:function(){return!x.data().showLeadingCollapsedLabel},
then:function(){return _.M(mTI,Object.assign({},x))}}),_.M(_.Fj,{data:function(){return x.data().infoButton}},{buttonViewModel:_.qP}),_.M(_.Fj,{data:function(){return x.data().expandButton}},{buttonViewModel:function(L){return _.M(_.qP,{data:L.data,
onClick:function(){var D;(D=x.expandedCallback)==null||D.call(x,!0)}})}})))},"fg");_.bZu=_.B(function(x){var L=_.O(_.mU(function(){return x.data().initiallyExpanded})),D=L.next().value,S=L.next().value,Q,J=(Q=_.yY().resolve(_.ZN(_.Dt)))==null?void 0:Q(),Z=function(){var y=x.data().colorData;
if(y)return J?y==null?void 0:y.darkColorPalette:y==null?void 0:y.lightColorPalette};
return _.M("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.bc({"background-color":function(){var y=Z();return(y==null?0:y.section2Color)?_.XA(y.section2Color):""}})},_.M(_.Fj,{data:function(){return x.data().header}},{expandableMetadataHeaderViewModel:function(y){return _.M(pH$,{data:y.data,
expanded:function(){return!!D()},
expandedCallback:function(E){S(E)}})}}),_.M(_.d,{cond:function(){return D()},
then:function(){return _.M("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.M(_.Fj,{data:function(){return x.data().expandedContent}},{horizontalShelfViewModel:function(y){return _.M(_.MG,{data:y.data,
includeMargin:!0,forceNarrowLayout:!0,palette:Z})},
videoSummaryContentViewModel:function(y){return _.M(D8H,{data:y.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(y){return _.M(_.qr,{data:y.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(y){return _.M(_.yv_,{data:y.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.M(_.Fj,{data:function(){return x.data().expandedBottomButtons}},{buttonViewModel:function(y){return _.M("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.M(_.qP,{data:y.data}))}}))}}))},"gg");var Yt$=_.B(function(x){var L=x.text;var D=x.marqueeSpacing;var S=x.scrollDelay;var Q=x.scrollDuration;var J=x.enableMarqueeScroll;x=x.large;var Z=_.O(_.HB(!1,void 0,"WyNYFf")),y=Z.next().value,E=Z.next().value,P=_.O(_.HB(0,void 0,"OoTdhe"));Z=P.next().value;var v=P.next().value,V=_.x3("marquee-scroll");P=_.x3("div");var h=_.x3("span"),H=_.yY().resolve(_.QO);_.Us(function(){if(J()){var G=h.value.getBoundingClientRect().width,U=V.value.getBoundingClientRect().width;if(G>U){var l=(H==="ltr"?-1:1)*(G+
(D?D():16));Promise.resolve().then(function(){E(!0);v(l)})}}},"dv0Anf");
var k={},T={};return _.M("marquee-scroll",{class:_.gF("ytMarqueeScrollHost",(k.ytMarqueeScrollHostLarge=x,k)),el:V},_.M("div",{id:"marquee-scroll-inner-container",class:_.gF("ytMarqueeScrollInnerContainer",(T.ytMarqueeScrollAnimationEnabled=function(){return y()},T)),
el:P,style:_.bc({gap:D?(0,_.ON)(D):"16px","animation-duration":Q?D2C(Q):"16s","animation-delay":S?D2C(S):"3s","--marquee-translate":(0,_.ON)(Z)})},_.M("span",{el:h,dir:"auto"},_.M(_.kP,{text:L,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.M(_.d,{cond:y,then:function(){return _.M("span",{"aria-hidden":"true",dir:"auto"},_.M(_.kP,{text:L,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"ig");_.FWs=_.B(function(x){var L=x.data;var D=x.overlayDensity;x=_.kO(function(){L().onTapCommand&&_.Xf(L().onTapCommand);return!1});
var S=_.YCw(),Q=function(){return(D==null?void 0:D())===1?22:16},J={};
return _.M("reel-sound-metadata-view-model",{class:_.gF("ytReelSoundMetadataViewModelHost",(J.ytReelSoundMetadataViewModelHostLarge=function(){return(D==null?void 0:D())===1},J)),
"on:click":x,tabindex:0,role:"button","on:keydown":S},_.M("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.M(_.d,{cond:function(){return L().musicIcon},
then:function(Z){return _.M(_.Ku,{data:Z,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:Q})}}),_.M("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.M(Yt$,{text:function(){return L().soundMetadata},
enableMarqueeScroll:function(){return!!L().enableMarqueeScroll},
large:function(){return(D==null?void 0:D())===1}}))))},"jg");var sTg,TPG,Sa,CPu,UTu,G6X,WW$,BP3;sTg=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];TPG=_.dE("wil_icon_max_concurrent_fetches",Infinity);
Sa=function(x,L,D){var S=this;this.iconSet=x;this.appDirection=L;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.Qb.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.u("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.u("wil_icon_network_first");this.renderWhenIdle=_.u("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.u("wil_icon_load_immediately");this.isPurging=!1;x=function(){S.cacheStorageAvailable&&(S.cacheStorageAsync=_.Qb.caches.open("yt-icons").then(function(J){return S.cacheStorageSync=J}).catch(function(){S.cacheStorageAvailable=!1}))};
D=(D==null?void 0:D())||{};D=_.O(Object.entries(D));for(L=D.next();!L.done;L=D.next()){var Q=_.O(L.value);L=Q.next().value;Q=Q.next().value;Q=pm(Q);e0I(Q);this.iconCache[L]=Q.cloneNode(!0)}this.isPurging=R0q(this);this.isPurging instanceof Promise?this.isPurging.then(x):x()};
_.GK3=function(x,L){var D=x.resolveIcon(L);return D?x.renderingMode===1?G6X(x,D,x.renderingMode):(L=x.iconCache[D.url])?(L=L.cloneNode(!0),CPu(x,L),G6X(x,D,x.renderingMode,L)):_.lEg(x,D).then(function(S){var Q=S?0:1;CPu(x,S);return G6X(x,D,Q,S)}):(_.WI(new _.RZ("Icon not found",{iconShape:L})),function(){})};
CPu=function(x,L){if(L){x.counter+=1;x="_yt"+x.counter;L=[L].concat(_.lP(L.getElementsByTagName("*")));L=_.O(L);for(var D=L.next();!D.done;D=L.next())if(D=D.value,D.tagName==="style"&&D.textContent)D.textContent=UTu(D.textContent,x,!0);else for(var S=_.O(D.attributes),Q=S.next();!Q.done;Q=S.next()){Q=Q.value;Q.name==="id"&&(Q.value+=x);["mask","fill","clip-path"].includes(Q.name)&&(Q.value=UTu(Q.value,x));if(Q.name==="style"){var J=D.style;try{J.cssText=UTu(J.cssText,x,!0)}catch(v){var Z=void 0,y=
void 0,E=void 0,P=void 0;Qs({error:((Z=v)==null?void 0:(E=(y=Z).toString)==null?void 0:E.call(y))||"",el:D.outerHTML,style:!!J,cssText:(P=J)==null?void 0:P.cssText})}}Q.name==="xlink:href"&&(Q.value=Q.value.replace(/#(.*)/,"#$1"+x))}}};
UTu=function(x,L,D){var S=/url\(["']?#(.*?)["']?\)/;(D===void 0?0:D)&&(S=/url\(["']?#(.*?)["']?\)/g);return x.replace(S,"url(#$1"+L+")")};
G6X=function(x,L,D,S){return function(Q,J){var Z=Object.assign({},{iconColor:"currentcolor",iconWidth:L.size+"px",iconHeight:L.size+"px",iconDisplay:"block"},J);J=_.pw("DIV");var y=Z.iconColor,E=Z.iconFilter;Z="width: "+Z.iconWidth+"; height: "+Z.iconHeight+"; display: "+Z.iconDisplay+";";E&&(Z+=" filter: "+E+";");D===0&&(Z+=" fill: "+y+";");D===1&&(E=L.url,Z+=" -webkit-mask: url("+E+") no-repeat center / cover; mask: url("+(E+") no-repeat center / cover; background-color: ")+y);L.allowMirroring&&
x.appDirection==="rtl"&&(Z+=" transform: scale(-1, 1); transform-origin: center center;");J.setAttribute("style",Z);D===0&&S&&J.appendChild(S);Q.appendChild(J)}};
_.lEg=function(x,L){var D,S,Q;return _.I(function(J){D=function(Z){return aN(Z)};
S=L.url;if(!wHI(S))throw Error("sj");Q=BP3(x,S);return J.return(Q.then(function(Z){return Z.clone().text()}).then(function(Z){var y=D(Z);
Z=L.size;var E=_.pw("DIV");_.JB(E,y);y=_.mg(E.firstElementChild!==void 0?E.firstElementChild:_.Uqr(E.firstChild,!0));Z=e0I(y,Z);x.iconCache[S]=Z.cloneNode(!0);delete x.responsePromises[S];return Z}).catch(function(){}))})};
WW$=function(x){var L,D=(L=x.requestAninmationFrameResolver)==null?void 0:L.promise;D||(x.requestAninmationFrameResolver=new _.Hq,D=x.requestAninmationFrameResolver.promise,_.Qb.requestAnimationFrame(function(){var S;(S=x.requestAninmationFrameResolver)==null||S.resolve();x.requestAninmationFrameResolver=null}));
return D};
BP3=function(x,L){var D,S;return _.I(function(Q){if(Q.nextAddress==1)return x.waitForAnimationFrame?Q.yield(WW$(x),2):Q.jumpTo(2);D=x.responsePromises[L];D||(S=function(){var J,Z,y;return _.I(function(E){switch(E.nextAddress){case 1:if(!x.cacheStorageAvailable){J=void 0;E.jumpTo(2);break}if(Z=x.cacheStorageSync){E.jumpTo(3);break}return E.yield(x.cacheStorageAsync,4);case 4:Z=E.yieldResult;case 3:J=Z;case 2:return y=J,x.isNetworkFirstStrategy?E.return(x.fetchAndUpdateCache(L,y).catch(x.getCacheStorageResponse.bind(x,
L,y))):E.return(x.getCacheStorageResponse(L,y).catch(x.fetchAndUpdateCache.bind(x,L,y)))}})},D=x.renderWhenIdle?new Promise(function(J,Z){_.TG(_.WW,function(){S().then(J).catch(Z)},10)}):S(),x.responsePromises[L]=D);
return Q.return(D.catch(function(J){delete x.responsePromises[L];Qs({error:(J==null?0:J.toString)?J.toString():"",url:L});throw J;}))})};
Sa.prototype.fetchAndUpdateCache=function(x,L){var D=this;return _.I(function(S){return S.return(qtg(D,x).then(function(Q){ABg(D,x,Q,L);return Q}))})};
var qtg=function(x,L){var D;return _.I(function(S){if(x.numFetches<TPG)return x.numFetches+=1,S.return($Tg(x,L).finally(function(){--x.numFetches;if(Object.keys(x.queuedResponseResolvers).length){var Q=Object.keys(x.queuedResponseResolvers)[0],J=x.queuedResponseResolvers[Q];delete x.queuedResponseResolvers[Q];J.resolve(qtg(x,Q))}}));
D=new _.Hq;x.queuedResponseResolvers[L]=D;return S.return(D.promise)})},$Tg=function(x,L,D){D=D===void 0?2:D;
var S;return _.I(function(Q){S={credentials:"same-origin",priority:"low"};return Q.return(_.Qb.fetch(L,S).then(function(J){return J.ok?J:Promise.reject(Error("tj`"+J.status+"`"+J.statusText))}).catch(function(J){if(D>0)return $Tg(x,L,D-1);
throw J;}))})},ABg=function(x,L,D,S){_.I(function(Q){return S?Q.return(new Promise(function(J){_.TG(_.WW,function(){var Z,y;
return _.I(function(E){switch(E.nextAddress){case 1:if(!x.isNetworkFirstStrategy){Z=void 0;E.jumpTo(2);break}return E.yield(S.match(L).catch(function(){}),3);
case 3:Z=E.yieldResult;case 2:if(y=Z){E.jumpTo(4);break}return E.yield(S.put(L,D.clone()).catch(function(P){Qs({error:(P==null?0:P.toString)?P.toString():"",url:L})}),4);
case 4:J(),_.Y2(E)}})},50)})):Q.return()})};
Sa.prototype.getCacheStorageResponse=function(x,L){return _.I(function(D){return L?D.return(L.match(x).then(function(S){return S&&S.ok?S:Promise.reject()})):D.return(Promise.reject())})};
var e0I=function(x,L){L===void 0||x.getAttribute("viewBox")||x.setAttribute("viewBox","0 0 "+L+" "+L);x.setAttribute("focusable","false");x.setAttribute("aria-hidden","true");try{x.style.pointerEvents="none",x.style.display="inherit",x.style.width="100%",x.style.height="100%"}catch(Q){var D;Qs({error:((D=Q)==null?0:D.toString)?Q.toString():""});try{x.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(J){var S;Qs({error:((S=J)==null?0:S.toString)?J.toString():
""})}}return x},wHI=function(x){for(var L=_.O(sTg),D=L.next();!D.done;D=L.next())if(x.startsWith(D.value)&&x.endsWith(".svg"))return!0;
return!1};
Sa.prototype.resolveIcon=function(x){return this.iconSet.resolveIcon(x)};
var Qs=function(x){_.qy(new _.RZ("Error in IconManager",x))},R0q=function(x){if(_.u("wil_icons_cache_purge_killswitch"))return!1;
try{var L=_.Qb.localStorage}catch(J){return!1}if(!L||!x.cacheStorageAvailable)return!1;var D=function(J){try{var Z;(Z=L)==null||Z.setItem("yt-icons-last-purged",J.toString())}catch(E){var y;Qs({error:((y=E)==null?0:y.toString)?E.toString():""})}},S=Number(L.getItem("yt-icons-last-purged"));
if(!S)return S=new Date,S=S.setDate(S.getDate()-Math.floor(Math.random()*90+1)),D(S),!1;if(function(J,Z){J=new Date(J);Z=new Date(Z);return Z.getMonth()-J.getMonth()+12*(Z.getFullYear()-J.getFullYear())}(S,Date.now())<3)return!1;
try{return _.Qb.caches.delete("yt-icons").then(function(J){J&&D(Date.now());return J}).catch(function(){return!1}).finally(function(){x.isPurging=!1})}catch(J){var Q;
Qs({error:((Q=J)==null?0:Q.toString)?J.toString():""});return!1}};
Sa[IZ]=[CGg,_.QO,_.ZN(wC5)];_.Jt=function(x,L){this.iconManager=x;this.iconsToFetch=L};
_.Jt[IZ]=[_.ki,_.ZN(UhW)];var rB$=function(){};var NPX=function(x,L,D){this.requestKey=x;this.tCa=L;this.kEq=D;this.s2M=function(){return new XMLHttpRequest};
this.xkw=void 0;this.f4p=[]};
NPX.prototype.getLatestChallengeResponse=function(){return this.kEq};
var WgH=function(x,L,D){var S,Q,J,Z;return _.I(function(y){if(y.nextAddress==1){_.A_("attestation_challenge_fetch");_.$T("att_fs",void 0,"attestation_challenge_fetch");if(!x.xkw)throw new _.N_(9,"Missing fetcher");return y.yield(x.xkw(L,D),2)}S=y.yieldResult;J=(Q=S)==null?void 0:Q.bgChallenge;if(!J)throw new _.N_(15,"Missing field");x.kEq=S;x.f4p.forEach(function(E){E(S)});
Z=gn4(J);_.$T("att_fc",void 0,"attestation_challenge_fetch");qF("attestation_challenge_fetch");return y.return(Z)})},OqG=function(x,L){var D,S,Q,J,Z;
return _.I(function(y){switch(y.nextAddress){case 1:D=new Pf(100,3E5,.25,2),S=void 0;case 2:if(!(D.currBackoffCount_<10)){y.jumpTo(4);break}_.HH(y,5);if(!(D.currBackoffCount_>0)){y.jumpTo(7);break}return y.yield(eV0(D.getValue()),7);case 7:return y.yield(iZq(x,L),9);case 9:return Q=y.yieldResult,y.return(Q);case 5:J=_.mW(y);J instanceof _.N_?S=J:(Z=J instanceof Error?J.message:"Unknown",S=new _.N_(9,Z));z0h(D);y.jumpTo(2);break;case 4:if(S)throw S;throw new _.N_(9,"Unknown error");}})},iZq=function(x,
L){L=FgB(smG(new Y7h,L),x.requestKey);
var D=new _.Hq,S=x.s2M();S.open("POST",x.tCa);S.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");S.setRequestHeader("Content-Type","application/json+protobuf");S.onload=function(){if(_.S4n(S)){var Q=wBG(S.responseText);D.resolve(Q)}else D.reject(new _.N_(_.ZHN(_.vY(S)),S.statusText))};
S.onerror=function(){D.reject(new _.N_(_.ZHN(_.vY(S)),S.statusText))};
S.send(L.serialize());return D.promise};var o2W=function(x){this.networkStatusManager=x;this.isDownloaded=YfG===void 0?function(){return!1}:YfG;
this.isReady=!1;this.iNK=fE3(this)},fE3=function(x){var L;
return _.I(function(D){if(D.nextAddress==1)return D.yield($9b(),2);if(D.nextAddress!=3)return L=D.yieldResult,D.yield(nzB(L),3);x.sR=D.yieldResult;GqO(x.sR).then(function(){x.isReady=!0});
return D.return(x.sR)})},aEu=function(x,L,D){x.sR?(x=x.sR.moC({o2:D,
mbF:!0,byW:!0}),L.serviceIntegrityDimensions={poToken:x}):_.BI(Error("vj"))};
o2W.prototype.processContext=function(x){var L=this;if(!x.input.match(_.KB(FJR)))return _.ue();var D=x.innerTubeRequest,S=D.videoId;return!S||this.isDownloaded(D)||this.networkStatusManager&&!this.sR&&!this.networkStatusManager.isNetworkAvailable()?_.ue():this.sR?this.isReady?(aEu(this,D,S),_.ue()):new H5(GqO(this.sR).then(function(){aEu(L,D,S)})):new H5(this.iNK.then(function(Q){return _.I(function(J){if(J.nextAddress==1)return J.yield(GqO(Q),2);
aEu(L,D,S);_.Y2(J)})}))};var z0q=new _.vx("WEB_PO_CONTEXT_PROCESSOR");var XHu=function(x,L){var D=this;this.hXq=0;var S;this.kFx=(S=L==null?void 0:L.kFx)!=null?S:window;this.networkStatusManagerPromise=L==null?void 0:L.networkStatusManagerPromise;var Q;this.requestKey=(Q=L==null?void 0:L.requestKey)!=null?Q:_.PY("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var J;this.vSX=(J=L==null?void 0:L.vSX)!=null?J:function(E){return new cc(E)};
var Z;S=(Z=L==null?void 0:L.k53)!=null?Z:function(E,P,v){return new NPX(E,P,v)};
this.bgChallenge=gn4(x.bgChallenge);this.ttlSeconds=kA0(c2(x.challenge||""));this.pD=S(this.requestKey,_.u("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.Qb.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",x);this.nSY=L==null?void 0:L.nSY;RVc(this.pD);var y;this.aOa=(y=L==null?void 0:L.aOa)!=null?y:function(E){_.Uk(D.kFx.document,"visibilitychange",
function(){D.kFx.document.visibilityState==="visible"&&E()})}},n2u=function(x){if(!x.vm){var L={maxAttempts:5,
hZY:x.ttlSeconds*1E3};Cw0(x.kFx);x.vm=x.vSX({pD:x.pD,e1C:{disable:_.u("html5_web_po_disable_remote_logging"),iV:"aGIf",yPF:nTw("html5_web_po_experiment_ids"),lsX:_.u("wpo_dis_lfdms")?0:1E3,jo8:function(S){var Q=TJB.get(S);Q||(Q=new s0A(S),Q=new ux(Q),TJB.set(S,Q));return Q}},
fqx:L,zo0:x.bgChallenge,dxi:lrf});x.hXq=Date.now();Cxd(x.vm,function(){x.hXq=Date.now()});
faG(x.vm,function(){return _.I(function(S){return S.return(cBq(x))})});
var D=x.d7C.bind(x);x.networkStatusManagerPromise&&x.ttlSeconds>0&&x.networkStatusManagerPromise.then(function(S){S.listen("publicytnetworkstatus-online",D)});
x.aOa(D)}};
XHu.prototype.d7C=function(){if(Date.now()>this.hXq+this.ttlSeconds*1E3){var x;(x=this.vm)==null||GeH(x)}};
var cBq=function(x){if(x.y05)return x.y05;if(!x.vm)throw Error("wj");x.y05=new Lr({vm:x.vm,pD:x.pD,kXW:!0,onError:lrf,fqx:x.nSY});return x.y05},wL0=function(x,L){x=new XHu(x,L);
n2u(x);cBq(x)};var tfq=_.wiX.ephemeralActionSelector,KN=function(x,L){this.store=x;this.queue=[];L==null||L.addEventListener("yt-navigate-start",this.reset.bind(this))};
KN.prototype.enqueue=function(x){var L=x.command,D=x.durationMs,S=x.elementToFocus;var Q=x.label;var J=x.elementToFocus;x.command?Q=_.p6("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:Q,shortcut:_.p6("SHIFT_PLUS_ENTER")}):J&&(x=Q+". "+_.p6("SHIFT_PLUS_ENTER")+" for more information.",Q=_.p6("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:Q,shortcut:_.p6("SHIFT_PLUS_ENTER")},x));D={announcement:Q,durationMs:D!=null?D:8E3};L?D.command=L:S&&(S.classList.add("ephemeral-action-focusable-element"),D.selector=S.tagName+
".ephemeral-action-focusable-element");this.queue.push(D);xpu(this)};
KN.prototype.activate=function(x){var L=tfq(this.store.getState());if(L){if(L==null?0:L.command)_.o6(L.command),this.store.dispatch(mMr(null));if(L==null?0:L.selector)L=document.querySelector(L.selector),_.NE0(L);x.preventDefault()}};
var xpu=function(x){if(!tfq(x.store.getState())&&x.queue.length){var L=x.queue.shift();L&&(x.previousAnnouncement===L.announcement&&(L.announcement+="\u00a0"),x.store.dispatch(mMr(L)),x.previousAnnouncement=L.announcement,x.timeoutId=setTimeout(function(){if(L.selector){var D;(D=document.querySelector(L.selector))==null||D.classList.remove("ephemeral-action-focusable-element")}x.store.dispatch(mMr(null));xpu(x)},L.durationMs))}};
KN.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(mMr(null));this.queue.length=0;this.timeoutId=void 0};
KN[IZ]=[_.MP,_.ZN(_.np)];_.Op=new _.vx("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var Lo3=window.AbortController||Ai0;var Dpg=new _.vx("AUTH_SERVICE_TOKEN");var qZ3=_.xI(["about:blank"]),W70;var Sql=new _.vx("API_IFRAME_TOKEN"),QD3=new _.vx("FETCH_FN_TOKEN"),Jcg=new _.vx("PARSE_FN_TOKEN"),KoG=new _.vx("WINDOW_REQUEST_TOKEN"),O8l=new _.vx("TEXT_DECODER_TOKEN");var qsW;qsW=new _.vx("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.Z8Y=new _.vx("MISC_UI_SHARED_FLAGS_TOKEN");var ycX=function(){};
ycX.prototype.getFlag=function(x){if(x.configType!==2)throw Error("xj");return IxX(x)};
var IxX=function(x){switch(x.flagType){case "bool":return _.u(x.flagName);case "int":return _.eW(_.dE(x.flagName));case "double":return _.dE(x.flagName);case "string":return _.PY(x.flagName);case "int32_list":return nTw(x.flagName);case "int64_list":return nTw(x.flagName).map(function(L){return _.eW(L)});
case "string_list":return _.jT(x.flagName);default:throw Error("yj");}};var Zu=function(x,L,D){L=L===void 0?{}:L;cx.call(this,D===void 0?"uninitialized":D);this.env=x;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}];L.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=L.shouldWaitOnAsyncImmediate)};
_.p(Zu,cx);Zu.prototype.init=function(x){var L=this,D;return _.I(function(S){if(S.nextAddress==1)return L.processPluginOptions.shouldWaitOnAsyncImmediate?S.yield(x(L.env),2):(x(L.env),S.jumpTo(2));if(S.nextAddress!=4)return L.jobSet?S.yield(L.jobSet.completedResolver.promise,4):S.jumpTo(4);D=_.jP();D.parkOrScheduleJob(function(){L.transition("rendering")},10,"ci");
_.Y2(S)})};
Zu.prototype.initialRender=function(x){var L=this,D;return _.I(function(S){if(S.nextAddress==1)return L.processPluginOptions.shouldWaitOnAsyncImmediate?S.yield(x(L.env),2):(x(L.env),S.jumpTo(2));if(S.nextAddress!=4)return L.jobSet?S.yield(L.jobSet.completedResolver.promise,4):S.jumpTo(4);D=_.jP();D.parkOrScheduleJob(function(){L.transition("rendered")},10,"cr");
_.Y2(S)})};
Zu.prototype.afterRenderImmediate=function(x){var L=this,D;return _.I(function(S){if(S.nextAddress==1)return L.processPluginOptions.shouldWaitOnAsyncImmediate?S.yield(x(L.env),2):(x(L.env),S.jumpTo(2));if(S.nextAddress!=4)return L.jobSet?S.yield(L.jobSet.completedResolver.promise,4):S.jumpTo(4);D=_.jP();D.parkOrScheduleJob(function(){L.transition("after-render-deferred")},10,"carml");
_.Y2(S)})};
Zu.prototype.afterRenderDeferred=function(x){var L=this;return _.I(function(D){x(L.env);_.Y2(D)})};_.Au("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var ER3={},Miq=(ER3.rendered={priority:0,callback:function(x){HLR(x.injector.resolve(e7))}},ER3);var BRf=new _.vx("SERVICE_PARAMS_RESPONSE_PROCESSOR_TOKEN"),dpW=new _.vx("SERVICE_PARAMS_CONFIG_CALLBACK_TOKEN");var P8u=function(x){this.callbackFnMap=x;this.configMap={}};
P8u.prototype.handleResponse=function(x){var L;if(x=(L=x.responseContext)==null?void 0:L.serviceTrackingParams)for(L=_.O(x),x=L.next();!x.done;x=L.next()){x=x.value;var D=x.params,S=x.service;if(D&&S){this.configMap[S]||(this.configMap[S]=new DAh);x=this.configMap[S];var Q=void 0,J=(Q=this.callbackFnMap)==null?void 0:Q[S];D=_.O(D);for(S=D.next();!S.done;S=D.next())Q=S.value,S=Q.key,Q=Q.value,S&&Q&&(x.set(S,Q),J&&J(S,Q))}}};
P8u.prototype.getConfig=function(x){return this.configMap[x]||void 0};
P8u[IZ]=[_.ZN(dpW)];var jDX=!1,cUN=0,oWf=null,XLc=null;var vRu=new _.vx("NETWORK_SLI_TOKEN");var Vig=function(x,L,D,S,Q){this.networkSli=x;this.fetchFn=L;this.parseFn=D;this.requestFn=S;this.JSC$18582_textDecoder=Q};
Vig.prototype.fetch=function(x,L,D){var S=this,Q,J,Z;return _.I(function(y){Q=h9X(S,x,L);Z=(J=S.fetchFn)!=null?J:fetch;return y.return(Z(Q).then(function(E){return S.handleResponse(E,D)}).catch(function(E){_.qy(E);
if((D==null?0:D.expectJsonStrict)&&E instanceof zy&&E.errorType===1)return Promise.reject(E)}))})};
var sXR=function(x,L,D,S){var Q,J,Z,y,E,P,v;return _.I(function(V){switch(V.nextAddress){case 1:return Q=h9X(x,L,D),_.HH(V,2),V.yield(fetch(Q),4);case 4:J=V.yieldResult;_.nH(V,3);break;case 2:throw _.mW(V),new zy(2,"Failed to parse streaming response",Q.url);case 3:if(!J.redirected&&!J.ok)throw(Z=x.networkSli)==null||Z.failure(),new _.RZ("Streaming fetch request not ok",Q.url);if(!J.body)throw new _.RZ("No response body in streaming response",Q.url);y={};if(_.u("web_streaming_fast"))return E=J.body.getReader(),
V.return(H8$(x,E,y,S));P=J.body.pipeThrough(new TextDecoderStream).getReader();v=new _.bh;return V.return(uZg(x,P,v,SmO,y,S))}})},h9X=function(x,L,D){if(x.networkSli){var S=_.gE(_.K6(L,"key"))||"/UNKNOWN_PATH";
x.networkSli.start(S)}S=D;_.u("wug_networking_gzip_request")&&(S=IHG(D));var Q;return new ((Q=x.requestFn)!=null?Q:window.Request)(L,S)},H8$=function(x,L,D,S){var Q,J,Z,y,E,P,v,V,h,H,k,T,G,U,l,X,f,N,z,xf,K3,P4,kf,H4;
return _.I(function(p3){switch(p3.nextAddress){case 1:Q=x.JSC$18582_textDecoder?new x.JSC$18582_textDecoder("utf-8"):new TextDecoder("utf-8"),J=[],Z=0,y=function(){if(J.length===1)return J[0];for(var w0=new Uint8Array(Z),Rn=0,lG=_.O(J),xX=lG.next();!xX.done;xX=lG.next())xX=xX.value,w0.set(xX,Rn),Rn+=xX.length;return w0},_.HH(p3,2,3);
case 5:return p3.yield(L.read(),8);case 8:E=p3.yieldResult;P=E.value;if(v=E.done)return Z>0&&(V=y(),h=V.indexOf(123),H=V.lastIndexOf(125),h!==-1&&H!==-1&&H>h&&(k=V.subarray(h,H+1),T=JSON.parse(Q.decode(k)),SmO(D,T),G=void 0,(G=S)==null||G(D,T))),U=void 0,(U=x.networkSli)==null||U.success(),p3.return(D);J.push(P);Z+=P.length;l=y();for(X=void 0;(X=l.indexOf(10))!==-1;){f=l.subarray(0,X);N=f.indexOf(123);z=f.lastIndexOf(125);if(N!==-1&&z!==-1&&z>N){xf=f.subarray(N,z+1);try{K3=JSON.parse(Q.decode(xf)),
SmO(D,K3),P4=void 0,(P4=S)==null||P4(D,K3)}catch(w0){throw new zy(1,"Failed to parse streaming response object",Q.decode(xf));}}kf=l.subarray(X+1);J=[kf];Z=kf.length;l=kf}p3.jumpTo(5);break;case 3:_.gP(p3);L.releaseLock();_.pZ(p3,0);break;case 2:H4=_.mW(p3);if(H4 instanceof zy)throw H4;throw new zy(1,"Failed to process streaming response");}})},uZg=function(x,L,D,S,Q,J){var Z,y,E,P,v,V,h,H,k;
return _.I(function(T){if(T.nextAddress==1)return T.yield(L.read(),2);Z=T.yieldResult;y=Z.value;if(E=Z.done)return(P=x.networkSli)==null||P.success(),T.return(Q);try{v=D.parse(y)}catch(G){throw new zy(1,"Failed to parse streaming response",y);}if(v!=null)for(V=_.O(v),h=V.next();!h.done;h=V.next())H=h.value,S(Q,H),k=void 0,(k=J)==null||k(Q,H);return T.return(uZg(x,L,D,S,Q,J))})};
Vig.prototype.handleResponse=function(x,L){var D,S=(D=this.parseFn)!=null?D:JSON.parse;D=x.text().then(function(Q){if((L==null?0:L.jspbResponseCtor)&&x.ok)return ozO(L.jspbResponseCtor,Q);Q=Q.replace(")]}'","");if((L==null?0:L.expectJsonStrict)&&Q)try{var J=S(Q)}catch(y){throw new zy(1,"JSON parsing failed after fetch");}var Z;return(Z=J)!=null?Z:S(Q)});
x.redirected||x.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),D=D.then(function(Q){_.qy(new _.RZ("Error: API fetch failed",x.status,x.url,Q));return Object.assign({},Q,{errorMetadata:{status:x.status}})}));
return D};
Vig[IZ]=[_.ZN(vRu),_.ZN(QD3),_.ZN(Jcg),_.ZN(KoG),_.ZN(O8l)];var gRg=new _.vx("NETWORK_MANAGER_TOKEN");var kjl=[1,2,4,8,16,30],mpW=function(x){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=x.maxTimeMs;this.maxFrameCount=x.maxFrameCount===void 0?Math.ceil(60*x.maxTimeMs/1E3):x.maxFrameCount;x=_.O(kjl);for(var L=x.next();!L.done;L=x.next())this.brokenFrameSummarizers.push(new pnq(L.value/60*1E3))},b8g=function(x){var L=x.frameCountInternal>=x.maxFrameCount;
return x.elapsedTimeMs>=x.maxTimeMs||L};
mpW.prototype.summarize=function(){for(var x=[],L=_.O(this.brokenFrameSummarizers),D=L.next();!D.done;D=L.next())D=D.value,D=D.brokenFrameCount!==0?{severityMs:Math.round(D.targetFrameTimeMs),eventCount:D.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(D.averageDurationBetweenEventsMs)}:void 0,D&&x.push(D);return{summaries:x,monitoringDurationMs:Math.round(this.elapsedTimeMs)}};
_.J3.Object.defineProperties(mpW.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 pnq=function(x){this.targetFrameTimeMs=x;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.J3.Object.defineProperties(pnq.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var YqW=function(){};
YqW.prototype.start=function(x,L){var D=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var S=new mpW({maxTimeMs:x});this.monitor=S;this.lastSummaryInternal=void 0;this.metadataToLog=L;return new Promise(function(Q){var J=function(Z){if(Z===void 0)D.stop(),Q(void 0);else if(D.monitor!==S)Z=Object.assign({},S.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),Q(Z);else{var y=D.monitor;if(!b8g(y)){y.frameCountInternal++;if(y.prevTime===
void 0)y.startTime=Z;else for(var E=Z-y.prevTime,P=_.O(y.brokenFrameSummarizers),v=P.next();!v.done;v=P.next()){v=v.value;var V=v.currTimeMs;v.currTimeMs+=E;E>v.targetFrameTimeMs+2&&(v.brokenFrameCount++,v.timeOfFirstBrokenFrameMs===void 0&&(v.timeOfFirstBrokenFrameMs=V),v.timeOfLastBrokenFrameMs=V)}y.prevTime=Z}b8g(D.monitor)?Q(D.stop()):_.WW.addJob(J,5,0)}};
_.WW.addJob(J,5,0)})};
YqW.prototype.stop=function(x){if(!this.monitor)return this.lastSummaryInternal;var L=Object.assign({},this.monitor.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(L.monitoringDurationMs){x=x!=null?x:this.metadataToLog;var D={droppedFramesSummary:L,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};x&&(D[x.type]=x.data);_.Uh("manualSmoothnessMeasurement",D)}this.monitor=void 0;this.lastSummaryInternal=L;this.metadataToLog=void 0;return L};_.Foq=new _.vx("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var sD5;sD5=function(x){this.JSC$18604_expiringStorage=new CH(x)};
_.Tku=function(x){if(_.nWf()&&(x=_.A20(_.TU()+"::"+x)))return new sD5(x)};
sD5.prototype.set=function(x,L,D){D=D!==void 0?Date.now()+D:void 0;this.JSC$18604_expiringStorage.set(x,L,D)};
sD5.prototype.get=function(x){return this.JSC$18604_expiringStorage.get(x)};
sD5.prototype.remove=function(x){this.JSC$18604_expiringStorage.remove(x)};var e9l=new _.vx("SESSION_STORAGE");_.ys=function(){};
_.ys.getInstance=function(){var x=_.o1("ytglobal.storage_");x||(x=new _.ys,_.KK("ytglobal.storage_",x));return x};
_.ys.prototype.estimate=function(){var x,L,D;return _.I(function(S){x=navigator;return((L=x.storage)==null?0:L.estimate)?S.return(x.storage.estimate()):((D=x.webkitTemporaryStorage)==null?0:D.queryUsageAndQuota)?S.return(t6n()):S.return()})};
_.KK("ytglobal.storageClass_",_.ys);var KfO=0;var ddc=!1;var R9l=_.xI(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),GjY=_.xI(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var elW={"/":_.fv,"/?feature=ytca":_.fv,"/feed/downloads":_.ea0};var C8g=WRq.continuationCommandSelector,HF=function(x,L,D){this.JSC$18620_upliftPromise=x;this.store=L;this.JSC$18620_persistentStorePromiseAccessor=D};
HF.prototype.shouldPreferLocalResponse=function(x){return x.browseId==="FEdownloads"||x.browseId==="FEsmart_downloads"&&_.u("kevlar_modern_downloads_page")?!0:!1};
HF.prototype.localInnertubeResponse=function(x){var L=this;return _.I(function(D){return x.browseId==="FEdownloads"?_.u("kevlar_modern_downloads_page")?D.return(lxW(L)):D.return(Ups(L)):x.browseId==="FEsmart_downloads"&&_.u("kevlar_modern_downloads_page")?D.return(wnX(L)):D.return(Promise.reject(Error("Aj")))})};
HF.prototype.canProvideFallbackResponse=function(){return!0};
HF.prototype.localFallbackInnertubeResponse=function(x){var L=this,D,S,Q;return _.I(function(J){switch(J.nextAddress){case 1:return J.yield(L.JSC$18620_persistentStorePromiseAccessor(),2);case 2:D=J.yieldResult;if(x.browseId!=="SPaccount_downloads"||!D){J.jumpTo(3);break}return J.yield(bxc(D),4);case 4:if(S=J.yieldResult)return J.return(_.Oy(S));case 3:return x.browseId==="FEwhat_to_watch"?J.return(Bku(L)):(Q=_.u("web_offline_continuation_automatic_retry")||_.u("web_offline_continuation_retry_button"))&&
x.continuation?J.return(Wo9(L)):J.return(qqs(L))}})};
var Bku=function(x){var L;return _.I(function(D){if(D.nextAddress==1)return D.yield(x.JSC$18620_upliftPromise,2);L=_.Sj0(x.store.getState().entities);return L.length?D.return(Acs(x,L)):D.return(qqs(x))})},Ups=function(x){var L,D;
return _.I(function(S){if(S.nextAddress==1)return S.yield(x.JSC$18620_upliftPromise,2);if(S.nextAddress!=3)return L=$pq([{offlineItemSectionRenderer:{}}]),S.yield(rcX(x,L),3);D=S.yieldResult;D.onResponseReceivedActions=[gq("REFRESH_DOWNLOADS")];return S.return(D)})},lxW=function(x){var L,D,S,Q,J,Z,y,E,P,v,V,h,H,k,T,G;
return _.I(function(U){if(U.nextAddress==1)return U.yield(x.JSC$18620_upliftPromise,2);if(U.nextAddress!=3)return L=x.store.getState(),D=L.entities,S=_.wD(D),Q=_.Ba(D),J=_.lJf(L),Z=_.CoG(L),y=_.UI4(L),E=_.K$b(D),P=_.em(S),v=_.Wa(D),V=_.IJ0(D),h=_.B6h(L),H=_.NU(L),k={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.flb(S,Q,E,V,J,Z,P,v,y,h,H),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},T="",_.u("kevlar_modern_downloads_skip_downloads_title")||
(T=_.p6("DOWNLOADS",void 0,"Downloads")),U.yield(Nk3(x,k,T),3);G=U.yieldResult;G.onResponseReceivedActions=[gq("REFRESH_DOWNLOADS")];return U.return(G)})},wnX=function(x){var L,D,S,Q,J,Z,y,E,P;
return _.I(function(v){if(v.nextAddress==1)return v.yield(x.JSC$18620_upliftPromise,2);if(v.nextAddress!=3)return L=x.store.getState(),D=L.entities,S=_.wD(D),Q=_.em(S),J=_.Wa(D),Z={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.als(S),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},y=_.p6("SMART_DOWNLOADS",void 0,"Smart downloads"),E=Nvp(Q,J),v.yield(Nk3(x,Z,y,E),3);P=v.yieldResult;P.onResponseReceivedActions=
[gq("REFRESH_DOWNLOADS")];return v.return(P)})},qqs=function(x){var L,D;
return _.I(function(S){if(S.nextAddress==1)return S.yield(KG(x.JSC$18620_upliftPromise,x.store),2);L=S.yieldResult;D=$pq([gG0(L)]);return S.return(rcX(x,D))})},Wo9=function(x){var L,D,S,Q;
return _.I(function(J){if(J.nextAddress==1)return L={},D=C8g(x.store.getState()),_.AH(L,_.ol,D),J.yield(KG(x.JSC$18620_upliftPromise,x.store,L,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);S=J.yieldResult;Q={};_.AH(Q,_.YxA,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:S}}}],targetId:"browse-feedFEwhat_to_watch"});return J.return({responseContext:{},onResponseReceivedActions:[Q]})})},$pq=function(x){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:x}}}}]}}},Acs=function(x,L){var D,S;
return _.I(function(Q){var J={contents:kc(L)};D=J&&J.contents?J:{};_.u("kevlar_modern_downloads_page")&&(D=Object.assign({},_.zaG(L),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));S={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:D}}}]}};return Q.return(rcX(x,S))})},rcX=function(x,L){var D,S;
return _.I(function(Q){if(Q.nextAddress==1)return Q.yield(x.JSC$18620_persistentStorePromiseAccessor(),2);if(Q.nextAddress!=3)return D=Q.yieldResult,Q.yield(ZS(D),3);S=Q.yieldResult;return Q.return({responseContext:{},contents:L,topbar:S})})},Nk3=function(x,L,D,S){var Q,J;
return _.I(function(Z){if(Z.nextAddress==1)return Z.yield(x.JSC$18620_persistentStorePromiseAccessor(),2);if(Z.nextAddress!=3)return Q=Z.yieldResult,Z.yield(ZS(Q),3);J=Z.yieldResult;var y=Z.return;var E=D;var P=S;E=E===void 0?"":E;P=P===void 0?"":P;E={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:E}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.p6("SETTINGS",void 0,"Settings"),accessibilityText:_.p6("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:_.O4("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:P}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:E};
return y.call(Z,{responseContext:{},contents:L,topbar:J,header:{pageHeaderRenderer:E}})})};var i8G=function(){this.moduleRegistry={};this.fetchCount=0};
i8G.prototype.isFetching=function(){return this.fetchCount>0};
var fG=function(x,L){x.moduleRegistry[L.toString()]={asyncId:L,isFetching:!1};return x};
i8G.prototype.JSC$18631_loadModules=function(){for(var x=this,L=new Map,D=[],S=_.O(_.Ne.apply(0,arguments)),Q=S.next();!Q.done;Q=S.next()){Q=Q.value;var J=this.moduleRegistry[Q];J?J.resolver?L.set(Q,J.resolver):(J.resolver=new _.Hq,L.set(Q,J.resolver),D.push(J.asyncId),J.isFetching=!0):(J=new _.Hq,L.set(Q,J),J.resolve(void 0))}D.length&&(this.fetchCount+=1,_.$x(_.Wy.getMultipleAsync.apply(_.Wy,_.lP(D)).then(function(Z){for(var y=0;y<D.length;y++){var E=Z[y],P=x.moduleRegistry[D[y].toString()];P.isFetching=
!1;P.resolver.resolve(E)}}).catch(function(Z){for(var y=_.O(D),E=y.next();!E.done;E=y.next()){E=E.value;
var P=x.moduleRegistry[E.toString()];P.resolver=void 0;P.isFetching=!1;L.get(E.toString()).reject(Z)}}),function(){--x.fetchCount}));
return Promise.all([].concat(_.lP(L.values())).map(function(Z){return Z.promise}))};_.oP=new _.vx("MODULE_REGISTRY_TOKEN");var fx9={},oRl=(fx9.rendered={priority:0,callback:function(x){a:{var L=void 0;try{var D;b:{if(_.o5w()){var S=_.q40(_.TU()+"::pom");if(S){var Q=new LJ(S);break b}}Q=void 0}var J=(D=Q)==null?void 0:D.get("role_text");if(!J)break a;L={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:J}]}}}}}}catch(E){}L&&x.injector.resolve(_.E2).resolveCommand(L)}try{var Z=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(Z){var y=JSON.parse(Z);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
y&&x.injector.resolve(_.E2).resolveCommand(y)}}catch(E){}}},fx9);var axW,z99={},XnI=(z99.initialized={priority:10,callback:function(){axW=Tn()}},z99.rendering={callback:function(x){var L;
return _.I(function(D){if(D.nextAddress==1)return D.yield(axW,2);L=D.yieldResult;if(!L.endpoint)throw Error("Cj`"+_.Qb.location.href);CG(x,L);_.Y2(D)})}},z99);var ccs={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(_.lP(_.u("web_pip_minimize_breakages")?[{messageRegExp:/.*__shady_dispatchEvent.*/,weight:0}]:[]),[{messageRegExp:/ytsignals missing/,
weight:500},{messageRegExp:/MutationObserver is not defined/,weight:100},{messageRegExp:/Cannot call 'patch'/,weight:500},{messageRegExp:/ShadyDOM.patch is not a function/,weight:500},{messageRegExp:/Illegal invocation/,weight:500},{messageRegExp:/no such interface supported/,weight:500},{messageRegExp:/play.*request was interrupted/,weight:500},{messageRegExp:/Failed to .* ServiceWorker.*/,weight:500},{messageRegExp:/Cannot call 'onIdle'/,weight:500},{messageRegExp:/Failed to sanitize attribute of <div>: <div style="--nx:82;">/,
weight:500},{messageRegExp:/(DOMPurify|vid_mate_check) is not defined/,weight:0},{messageRegExp:/A network error occurred/,weight:500},{messageRegExp:/Ticking CPT when CPT already ticked/,weight:100},{messageRegExp:/Unexpected end of .*(input|data)/,weight:500},{messageRegExp:/JSON .* unexpected/,weight:500},{messageRegExp:/Unexpected token </,weight:500},{messageRegExp:/^undefined$/,weight:500},{messageRegExp:/The YouTube player is not attached to the DOM/,weight:500},{messageRegExp:/Malformed continuation/,
weight:500},{messageRegExp:/Offset is outside the bounds of the DataView/,weight:500},{messageRegExp:/Cannot call 'push'/,weight:0},{messageRegExp:/.*push is not a function/,weight:0},{messageRegExp:/.*\.find is not a function/,weight:0},{messageRegExp:/Cannot redefine property: BetterJsPop/,weight:0},{messageRegExp:/cdn.paddle.com/,weight:0},{messageRegExp:/^network error$/,weight:0},{messageRegExp:/Cannot read property 'snippet'.*/,weight:0},{messageRegExp:/Cannot read property 'insertBefore'.*/,
weight:0},{messageRegExp:/The play method is not allowed by the user agent or the platform in the current context, possibly because the user denied permission./,weight:0},{messageRegExp:/Unhandled action/,weight:100},{messageRegExp:/UrlEndpoint should not be used for same origin navigations. Use a better typed endpoint instead./,weight:100},{messageRegExp:/VisibilityLogger called before newScreen/,weight:1E3},{messageRegExp:/BL:ULB/,weight:500},{messageRegExp:/Failed to retrieve emoji manager initial JSON data/,
weight:100},{messageRegExp:/Endpoint supplied is invalid/,weight:100},{messageRegExp:/Cannot read property 'polyfillWrapFlushCallback'.*/,weight:500},{messageRegExp:/unblocked44.ml.*/,weight:0},{messageRegExp:/Failed to fetch/,weight:500},{messageRegExp:/.*API fetch failed.*/,weight:1E3},{messageRegExp:/No RequestBuilder for endpoint/,weight:100},{messageRegExp:/.*Failed to initialize Tango client in CommentsInvalidation.*/,weight:100},{messageRegExp:/.*redefine.*property.*adPlacements/,weight:1E3},
{messageRegExp:/ownerObj.base is undefined/,weight:1E3},{messageRegExp:/History popstate has no state/,weight:500},{messageRegExp:/ReadableStream uploading is not supported/,weight:1E3},{messageRegExp:/bad trailing UTF-8 byte .* doesn't match the pattern 0b10xxxxxx/,weight:1E3},{messageRegExp:/b172965563/,weight:1E3},{messageRegExp:/UrlEndpoint should not be used for same origin navigations/,weight:1E3},{messageRegExp:/Fetching RunAttestationCommand returned falsy/,weight:100},{messageRegExp:/WEBCHANNEL_NETWORK_ERROR/,
weight:100},{messageRegExp:/urlForEndpoint used on client endpoint/,weight:1E3},{messageRegExp:/InnerTubeTransportService is already initialized/,weight:100},{messageRegExp:/Cannot redefine property: userAgent/,weight:500},{messageRegExp:/(ResizeObserver loop limit exceeded)|(ResizeObserver loop completed with undelivered notifications)/,weight:500},{messageRegExp:/undefined is not an object \(evaluating 'this.manager'\).*/,weight:500},{messageRegExp:/_0x22d63b is not defined/,weight:500},{messageRegExp:/Cannot call '1'/,
weight:500},{messageRegExp:/.*Wanteeed.*/,weight:0},{messageRegExp:/.*WtdRoot*/,weight:0},{messageRegExp:/.*Constructing wtd-root:*/,weight:0},{messageRegExp:/.*WtdDiv.*/,weight:0},{messageRegExp:/.*Failed to execute 'appendChild'.*/,weight:0},{messageRegExp:/.*TypeError: a is not a constructor'.*/,weight:0},{messageRegExp:/.*Readwise.*/,weight:0},{messageRegExp:/.*Form is either loading or already opened*/,weight:0},{messageRegExp:/.*wtd-div.*/,weight:0},{messageRegExp:/.*Blocked a frame with origin "https:\/\/www.youtube.com" from accessing a cross-origin frame.*/,
weight:0},{messageRegExp:/.*disguiseToken.*/,weight:0},{messageRegExp:/Identifier 'YTNonstop' has already been declared/,weight:1E3},{messageRegExp:/Cannot read properties of undefined (reading 'setTimeout')/,weight:0},{messageRegExp:/undefined is not an object \(evaluating 'this.\w+.setTimeout'\)/,weight:0},{messageRegExp:/BWB:Timeout/,weight:0},{messageRegExp:/NWA/,weight:0},{messageRegExp:/This document requires '((TrustedHTML)|(TrustedScript)|(TrustedScriptURL))' assignment/,weight:0},{messageRegExp:/The constructed element must not have any attributes/,
weight:100},{messageRegExp:/runtime.browser/,weight:500},{messageRegExp:/Cannot call 'registerMenuCommand'/,weight:500},{messageRegExp:/__data is undefined/,weight:0},{messageRegExp:/.*ddg-ctl-placeholder-blocked*/,weight:1E3}]),callbackWeights:[{callback:function(x){var L=x.stack;if(L.includes("chrome://")||L.includes("chrome-extension://")||x.message.includes("chrome-extension://")||L.includes("moz-extension://")||L.includes("local.adguard.org")||L.includes("auctioneer3.50million.club")||L.includes("youtubedownloader")||
L.includes("youtube_home_page")||L.includes("is_youtube_video_no_longer_available")||L.includes("switchScreenSizeHack")||L.includes("yt_main_big_banner.js")||L.includes("YouTubeCenter.js")||L.includes("/mytube.js")||L.includes("JSON.parseWrapper")||L.includes("/inj_js/common.js")||L.includes("firebug-lite")||L.includes(".repl.co/")||L.includes("linkfix")||L.includes("playAfterAd")||x.message.includes("Access is denied for this document")&&L.includes("<anonymous>")||x.fileName==="user-script"||x.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
L.includes("<anonymous>"))return!0;if(L.includes("https://www.youtube.com"))return!1;x=L.split("\n");if(!x.length)return!1;if(x.length<=3&&L.includes("s.onloadeddata"))return!0;L=0;for(var D=_.O(x),S=D.next();!S.done;S=D.next())S=S.value,(S.includes("https://")||S.includes("http://"))&&L++;return L/x.length>.95},
weight:0},{callback:function(x){return x.message==="Unknown Error"&&x.name.indexOf("NS_")===0},
weight:100},{callback:function(x){if(!_.j_)return!1;var L=x.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||x.message.includes("available to complete this operation"),D=x.stack.includes("webcomponents")&&x.message==="Object doesn't support this action";x=x.message.includes("object that does not implement interface Element");return L||D||x},
weight:0},{callback:function(x){return x.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(x){return x.message==="Operation is not supported"&&(x.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(x){return x.stack.includes("eval code (eval (code:1:1)")||x.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(x){return x.message.includes("Permission denied")&&x.stack.includes("this.domHandler")?!0:x.name.includes("TypeError")&&x.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(x){if(!x.stack)return!1;var L=x.stack.trim().split("\n");L.length&&L[0].endsWith("Error: "+x.message)&&L.shift();L.length&&L[L.length-1].includes("at window.onerror (")&&L.pop();if(!L.length)return!0;if(x.message==="Script error.")return L[0].includes("www.youtube.com")||L.length>=2&&L[0].startsWith("at new")&&L[1].startsWith("at window.onerror");if(x.message==="Unexpected token")return!0;x=_.O(L);for(L=x.next();!L.done;L=x.next())if(L=L.value,!(L.includes("<anonymous>")||
L.startsWith("load@")||L.startsWith("global code@")||L.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(x){return x.message==="Cannot read property 'experiments'"&&x.stack.includes("/s/player/")},
weight:500},{callback:function(x){return x.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(x){return x.stack.includes("/embed.js")?(x.params&&x.params&&(x.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.u("use_error_suppression"))var x=_.$6("SUPPRESS_CLIENT_ERRORS",!1);else{if(x=_.uV)x=/Chrome\/(\d+)/.exec(_.hG()),x=(x?parseFloat(x[1]):NaN)>=66;x=!(x||_.HN&&_.h9(65)||_.ij&&_.h9(12.1)||Q5&&_.h9(79))}return x},
weight:500}]};var nRl={},ti3=(nRl.initialized={priority:10,callback:function(x){x.injector.addProvider({provide:gkd,useValue:x.root});x.injector.addProvider({provide:us3,useValue:Ubc});x.injector.addProvider({provide:gzl,useValue:ccs});var L={};x.injector.addProvider((L.provide=kiu,L.useFactory=function(D,S){return function(){WEf(D,S)}},L[IZ]=[us3,
gzl],L));x.injector.addProvider({provide:fO,useClass:fO})}},nRl);var x4W={},Lgu=(x4W.initialized={priority:3,callback:function(){var x;if(x=GDN()){x=x.replace("/",".");var L=_.FI();L.set("tz",x);L.save();x=!0}else x=!1;x||(x=_.FI(),x.set("utco",-Math.floor((new Date).getTimezoneOffset())),x.save())}},x4W);var D45={},S7W=(D45.initialized={priority:10,callback:function(x){x.injector.resolve(fO).start();x=_.L$();var L=_.rO("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.rO("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.rO("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.rO("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.PF(_.j44(),{mainAppWeb:Object.assign({},x,{pageType:L})});_.PF(VHs(),{mainAppWeb:Object.assign({},x,{pageType:L})});
_.PF(hj3(),{mainAppWeb:x});_.PF(H0G(),{mainAppWeb:x});Ro_(function(){_.jK(hj3(),"FAILURE");_.jK(H0G(),"FAILURE")});
Ffn();sp0();wz0()}},D45);var Qml={},Jxg=(Qml.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.$T("dl"),_.jP().processSignal("pcl");else{var x=function(){_.$T("dl");_.jP().processSignal("pcl");window.removeEventListener("load",x)};
window.addEventListener("load",x)}}},Qml);var Kgq={},Ow$=(Kgq.rendering={priority:0,callback:function(){var x=_.jP();x.parkOrScheduleJob(function(){x.processSignal("eocs")},10,"eor",5E3)}},Kgq);var Zwg=function(){};
_.p(Zwg,jI);
Zwg.prototype.resolveCommand=function(x,L){var D,S,Q,J,Z,y,E,P;return _.I(function(v){Q=(D=_.g(x,_.N1B))==null?void 0:(S=D.dialog)==null?void 0:S.commentReplyDialogRenderer;if(!Q)throw new _.RZ("No dialog in createCommentReplyDialogEndpoint");Z=(J=L.form)==null?void 0:J.event;if(!Z)throw new _.RZ("Event not passed in when resolving command");y=_.O(Z.composedPath());for(E=y.next();!E.done;E=y.next())if(P=E.value,P.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||P.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return P.showReplyDialog(Q),v.return();
_.Y2(v)})};var I5=function(){};
_.p(I5,jI);I5.prototype.resolveCommand=function(x){var L,D,S;return _.I(function(Q){if(Q.nextAddress==1)return L=_.g(x,Kkr),(D=L)!=null&&D.externalChannelId?Q.yield((0,_.ci0)("NSzT5"),2):Q.return();S=_.yx9;return Q.yield(S(L.externalChannelId),0)})};var Ep=function(x){this.pageRequestService=x;this.JSC$18649_prefetchCoordinator=OU9()};
_.p(Ep,jI);Ep.prototype.resolveCommand=function(x){var L=this,D,S,Q,J;return _.I(function(Z){if(Z.nextAddress==1){D=_.g(x,p5R);if((S=D)==null||!S.taskId)throw Error("Dj");Q=D.taskId;_.HH(Z,2);return Z.yield(_.mA_(L.pageRequestService,x,{},"").then(function(y){if(!y)throw Error("Ej");},function(y){throw Error("Fj`"+y);
}),4)}if(Z.nextAddress!=2)return IfG(L.JSC$18649_prefetchCoordinator,Q),_.nH(Z,0);
J=_.mW(Z);rw(L.JSC$18649_prefetchCoordinator,Q,J);_.Y2(Z)})};
Ep[IZ]=[sy];var Mv=function(x,L){this.innertubeTransportService=x;this.JSC$18653_commandHandler=L};
_.p(Mv,jI);Mv.prototype.resolveCommand=function(x){var L=this,D,S,Q;return _.I(function(J){if(J.nextAddress==1){D=_.g(x,kyW);if(D.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||D.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")S=D.boolValue?2:1,_.Yh.getInstance().setState(S,!0,!0);return J.yield(_.tD(L.innertubeTransportService,x),2)}Q=J.yieldResult;Ibl(L,Q);_.Y2(J)})};
var Ibl=function(x,L){L.actions&&L.actions.forEach(function(D){x.JSC$18653_commandHandler.resolveCommand(D)})};
Mv[IZ]=[_.i1,_.E2];var Pe={},ja=(Pe.addToPlaylistEndpoint=K7(yK),Pe.addToToastAction=K7(v_),Pe.adsControlFlowOpportunityReceivedCommand=K7(iK),Pe.audioTrackSelectActionCommand=K7(mT),Pe.backgroundAudioPlaybackCommand=K7(bb),Pe.captionLanguageSelectActionCommand=K7(F$),Pe.captionPickerEndpoint=K7(sA),Pe.changeMiniAppPlayStateCommand=K7(IL),Pe.changeTimelyActionVisibilityCommand=K7(jY),Pe.channelCreationFormEndpoint=K7(Sy),Pe.clearLocationCommand=K7(Z2),Pe.clearUrlParamCommand=K7(EA),Pe.copyLinkCommand=K7(UA),Pe.copyTextEndpoint=
K7(ao),Pe.createCommentReplyDialogEndpoint=hBc(Zwg),Pe.createPlaylistServiceEndpoint=K7(wm),Pe.dismissDialogEndpoint=K7(dm),Pe.dismissPlayerOverlayCommand=K7(TH),Pe.entityUpdateCommand=K7(XS),Pe.feedbackEndpoint=K7(th),Pe.getAnswerCommand=K7(Pq9),Pe.getPaymentsClientTokenCommand=K7(gp),Pe.getTranscriptEndpoint=K7(VU),Pe.googlePaymentBillingCommand=K7(k1),Pe.googlePaymentPurchaseManagerCommand=K7(py),Pe.hideEngagementPanelEndpoint=K7(P1),Pe.hideSheetCommand=K7(jy),Pe.hideSnackbarCommand=K7(Z0),Pe.insertRichSectionCommand=
K7(JF),Pe.listMutationCommand=K7(Kg),Pe.logGtmCommand=K7(QK),Pe.notifyDropdownOptionSelectedCommand=K7(MH),Pe.openAdAllowlistInstructionCommand=K7(_.fR),Pe.openOnePickAddVideoModalCommand=K7(B1),Pe.persistSubscriptionsDisplayPreferencesCommand=K7(NH),Pe.pingingEndpoint=K7(oo),Pe.playlistEditEndpoint=K7(qH),Pe.playlistVotingRefreshPopupCommand=K7(AF),Pe.profileCardCommand=K7(Ns),Pe.refreshPanelEndpoint=K7(v1),Pe.saveImageToDeviceEndpoint=K7(zI),Pe.scrollToSectionEndpoint=hBc(jIW),Pe.seekToVideoTimestampCommand=
K7(ey),Pe.selectCountryCommand=K7(ib),Pe.setCookieCommand=K7(fg),Pe.setLocalStorageCommand=K7(IX),Pe.setPrefStorageEntryCommand=K7(aL),Pe.setSettingEndpoint=K7(Mv),Pe.sfvAudioItemPlaybackCommand=K7(RL),Pe.shareImageCommand=K7(zH),Pe.sharingProviderDataCommand=K7(X$),Pe.showAudioTrackPickerActionCommand=K7(GH),Pe.showCaptionLanguageSelectActionCommand=K7(Cg),Pe.showCreatorChatbotEngagementPanelCommand=K7(I5),Pe.showDialogCommand=K7(H1),Pe.showEngagementPanelEndpoint=K7(ub),Pe.showSheetCommand=K7(gm),
Pe.showSnackbarCommand=K7(yU),Pe.showTransientPlayerScrimOverlayCommand=K7(lb),Pe.submitFormWithValidationFlowCommand=K7(D2),Pe.talkToRecsDeselectCommand=K7(Er),Pe.talkToRecsNextCommand=K7(MW),Pe.talkToRecsSelectCommand=K7(dp),Pe.talkToRecsUpdateTextCommand=K7(P_),Pe.toggleEngagementPanelCommand=K7(ky),Pe.undoFeedbackEndpoint=K7(Lg),Pe.updateEngagementPanelContentCommand=K7(pg),Pe.updateUrlParamCommand=K7(hl),Pe.updateVideoMetadataCommand=K7(u2),Pe.verifyCommand=K7(Sy),Pe.webNativeShareCommand=K7(c1),
Pe.webSubmitFormCommand=K7($y),Pe.ACK_PLAYABLES_3P_DATA_CONSENT=K7(ng),Pe.CANCEL_NAVIGATION=K7(tF),Pe.COPY_SHARE_URL=K7(x1),Pe.MINI_APP_EXIT_DIALOG_SEEN=K7(D0),Pe.MINI_APP_OPEN_URL=K7(Ly),Pe.REQUEST_MINI_APP_FULLSCREEN=K7(SY),Pe.RESUME_NAVIGATION=K7(QU),Pe.SHARE_PLAYABLE_WITH_HIGH_SCORE=K7(Jl),Pe.TELL_US_WHY=K7(xy),Pe);_.u("web_enable_prefetching_videos_on_home")&&(ja.prefetchWatchCommand=K7(Ep),ja.registerTasksCommand=K7(iX));
_.u("enable_share_panel_navigation_logging_fix_on_web")&&(ja.shareEntityServiceEndpoint=K7(VK));_.u("web_use_flow_state_manager")&&(ja.flowNextStepCommand=K7(TAY),ja.flowPrevStepCommand=K7(ed3),ja.getFlowCommand=K7(Rdg),ja.updateFlowCommand=K7(qs));var l6i=Object.assign({},ja);var Eal={},M1g=(Eal.initialized={priority:10,callback:Udn},Eal);var d49={},Px3=(d49.initialized={callback:function(x){var L={},D={};aPG().install((L.document_disposed={callback:function(){_.u("finalize_all_timelines")?Bhh():B$();ars("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.ZN0();var S=x.injector.resolve(fO);S.intervalId!==void 0&&(S.intervalId&&_.WW.cancelJob(S.intervalId),S.intervalId=void 0,--S.currentPartitionIndex,S=IWh(S),S>0&&h8d({mainAppWeb:_.L$(),survivalSli:{partitionMinute:S,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));IQh(V4);hM!=null&&
hM.flush();Pq&&Pq.snapshotAndFlush();S=_.O(TJB.values());for(var Q=S.next();!Q.done;Q=S.next())Q.value.snapshotAndFlush()}},L),(D.flush_logs={callback:function(){_.wz()}},D))}},d49);var jm9={},vaX=(jm9.rendered={priority:0,callback:function(){var x=new V$Q;x.increment("STARTED");if(_.$6("LOGGED_IN")&&!_.$6("IS_DBSC",!1)&&_.$6("SERVER_VERSION")!=="test"&&_.$6("SERVER_VERSION")!=="dev"&&!L3G()&&!xqr()){x.increment("EXECUTING");var L=document.createElement("iframe");L.style.display="none";_.Mff(L,2,_.$z("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.$6("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(L);x.increment("DONE")}}},
jm9);var V1G={},hv$=(V1G.rendered={callback:function(){OU9().resume()}},V1G);var Hwg={acknowledgeChannelTouStrikeCommand:eR(tl),addToPlaylistServiceEndpoint:eR(Se),addToPlaylistEndpoint:eR(Se),addUpcomingEventReminderEndpoint:eR(dZ),browseEndpoint:eR(il5),channelCreationFormEndpoint:eR(fy),channelCreationServiceEndpoint:eR(oX),claimLegacyYoutubeChannelEndpoint:eR(GO),clearSearchHistoryEndpoint:eR(K9),clearWatchHistoryEndpoint:eR(Oo),commerceActionCommand:Rq(mj),createBackstagePostEndpoint:eR(Y1),createBroadcastCommand:eR(P8),createCommentEndpoint:eR($1),createCommentReplyEndpoint:eR(Al),
createLiveChatPollEndpoint:eR(j4),createPlaylistServiceEndpoint:eR(Qk),crossAccountChannelTransferEndpoint:eR(IK),deleteLiveChatMessageCommand:eR(VS),deletePlaylistEndpoint:eR(Jk),deleteVideoEndpoint:eR(uX),dismissalEndpoint:eR(xY),feedbackEndpoint:eR(L9),flagEndpoint:eR(Em),getAccountSwitcherEndpoint:eR(yS),verifyCommand:eR(b2),getAccountsListInnertubeEndpoint:eR(Mi),getCommentsFromInboxCommand:eR(qi),getDownloadActionCommand:eR(oK),getFlowCommand:Rq(JO),getKidsBlocklistPickerCommand:eR(MO),getNotificationMenuEndpoint:eR(aYq),
getPaymentInstrumentsParamsCommand:eR(ee),getPaymentsClientTokenCommand:Rq(mj),getPdgBuyFlowCommand:eR(LC),getReportFormEndpoint:eR(dw),getSearchInVideoCommand:eR(v3),getAnswerCommand:eR(je),getSurveyCommand:eR(H3),getTranscriptEndpoint:eR(kB),getPostVideoPreviewEndpoint:eR(sr),decorateMessageEndpoint:eR(F3),likeEndpoint:eR(aX),liveChatActionEndpoint:eR(gZ),liveChatEndpoint:eR(uE),liveChatItemContextMenuEndpoint:eR(hO),liveChatPurchaseMessageEndpoint:eR(TK),liveChatReplayEndpoint:eR(H8),manageLiveChatUserEndpoint:eR(RK),
metadataUpdateCommand:eR(B8),moderateLiveChatEndpoint:eR(GK),modifyChannelNotificationPreferenceEndpoint:eR(Ni),notificationOptOutEndpoint:eR(iE),openSuperStickerBuyFlowCommand:eR(e4),performCommentActionEndpoint:eR(B_),playlistEditEndpoint:eR(Om),playlistEditorEndpoint:eR(KC),recordNotificationInteractionsEndpoint:eR(f9),reelWatchEndpoint:eR(ZP),refreshPanelEndpoint:eR(zK),removeUpcomingEventReminderEndpoint:eR(C9),resolveLocationCommand:eR(wZ),revealBusinessEmailCommand:eR(Cy),searchEndpoint:eR(_.zl$),
sendLiveChatMessageEndpoint:eR(lE),sendLiveChatVoteEndpoint:eR(Uo),setSettingEndpoint:eR(zO),shareEntityServiceEndpoint:Rq(ny),sharingProviderDataCommand:eR(hk),showEngagementPanelEndpoint:eR(XQ),showMoreDrawerCommand:eR(n9),showSheetCommand:eR(tO),showDialogCommand:eR(c8),subscribeEndpoint:eR(X3),transcriptSubmitCaptionCorrectionCommand:eR(gw),undoFeedbackEndpoint:eR(S4),unsubscribeEndpoint:eR(c_),updateBackstagePostEndpoint:eR(eY),updateCommentEndpoint:eR(NW),updateCommentReplyEndpoint:eR(rp),updateCommentsSettingsEndpoint:eR(i2),
updateCreatorChannelInnertubeCommand:eR(Ur),updateKidsBlacklistEndpoint:eR(P3),updateEngagementPanelContentCommand:eR(xB),updatePdgFeatureEnablementCommand:eR(DP),updatedMetadataEndpoint:eR(W8),validateChannelHandleCommand:eR(wp),updateChannelPageSettingsEndpoint:eR(l2),verifyAgeEndpoint:eR(QS),watchEndpoint:Rq(NI),whitelistEditEndpoint:eR(pC),ypcCancelRecurrenceEndpoint:eR(bX),ypcCompleteTransactionEndpoint:eR(YB),ypcFixInstrumentEndpoint:eR(sm),ypcGetCartEndpoint:eR(Fa),ypcGetOffersEndpoint:eR(Tr),
ypcHandleTransactionEndpoint:Rq(RV),ypcLogWalletAnalyticDataEndpoint:eR(Gr),ypcOffersEndpoint:eR(CC),ypcPauseSubscriptionCommand:eR(lX),ypcRedeemCodeEndpoint:eR(Um),ypcResumeSubscriptionCommand:eR(ww),ypcUpdateFopEndpoint:eR(sm)},ve={},uR$=(ve.GET_ACCOUNT_MENU=eR(Eo),ve.GET_NOTIFICATIONS_MENU=eR(oX9),ve.GET_NOTIFICATIONS_INBOX=eR(AO),ve.GET_UNSEEN_NOTIFICATION_COUNT=eR(rZ),ve.GET_USER_MENTION_SUGGESTIONS=eR(TO),ve.LOAD_GUIDE=eR(fY9),ve.SUBMIT_FEEDBACK=eR(DZ),ve),Vs={},gaX=(Vs.CONTINUATION_REQUEST_TYPE_BROWSE=
eR(RX),Vs.CONTINUATION_REQUEST_TYPE_SEARCH=eR(Vk),Vs.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=eR(fp),Vs.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=eR(ZZ),Vs.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=eR(qW),Vs.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=eR(W_),Vs.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=eR(IV),Vs.CONTINUATION_REQUEST_TYPE_GET_PANEL=eR(aK),Vs),keq={player:Rq(NI),watchNext:eR(io)},pfI={player:Rq(NI),reelItemWatch:eR(ZP),reelWatchSequence:eR(yk)},m4s={watchEndpoint:Rq(oO)},bwI=
{commandEndpointMap:Hwg,signalEndpointMap:uR$,continuationEndpointMap:gaX,watchEndpointMap:keq,reelWatchEndpointMap:pfI,streamingEndpointMap:m4s};var Y7q,Fgg,smq;_.Tbq=((Fgg=(Y7q=window).matchMedia)==null?void 0:(smq=Fgg.call(Y7q,"(prefers-reduced-motion: reduce)"))==null?void 0:smq.matches)||!document.startViewTransition;var evl={},Rvs={disableAllTransitions:_.Tbq,ignoredErrors:(evl.DOCUMENT_HIDDEN=!0,evl.WINDOW_SIZE_CHANGED=!0,evl.SAFARI_ABORTED_BY_NEW_TRANSITION=!0,evl),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 GeX=_.xI("\n          :root {\n            --ytd-vtm-exit-ms: ,ms;\n            --ytd-vtm-wait-ms: ,ms;\n            --ytd-vtm-enter-ms: ,ms;\n            --ytd-vtm-watch-exit-ms: ,ms;\n            --ytd-vtm-watch-wait-ms: ,ms;\n            --ytd-vtm-watch-enter-ms: ,ms;\n          }\n      ".split(",")),Cxl=function(x){this.viewTransitionCoordinator=x;this.isBrowseTransitionEnabled=_.PY("web_page_transition_type")==="slide";this.isLockupToWatchTransitionEnabled=_.u("web_thumbnail_to_watch_transition");
this.isLockupThumbnailRegistrationEnabled=_.u("web_thumbnail_to_watch_transition_register_thumbnail");this.isLearningJourneyTransitionEnabled=_.u("enable_plj_landing_page");this.lockupToWatchPlayerTransitionType=_.PY("web_thumbnail_to_watch_player_transition_type");this.isAnyTransitionEnabled=this.isBrowseTransitionEnabled||this.isLockupToWatchTransitionEnabled||this.isLearningJourneyTransitionEnabled;this.lockupThumbnailRegisteredFromWatchEndpoint=!1;this.registerRootElement();if(this.isAnyTransitionEnabled){x=
_.dE("web_page_transition_exit_ms");var L=_.dE("web_page_transition_wait_ms"),D=_.dE("web_page_transition_enter_ms"),S=_.dE("web_page_transition_watch_exit_ms"),Q=_.dE("web_page_transition_watch_wait_ms"),J=_.dE("web_page_transition_watch_enter_ms");if(!isNaN(x)||!isNaN(L)||!isNaN(D))if(x=wnf(GeX,x,L,D,S,Q,J))L=document.createElement("style"),L.textContent=VfG(x),document.head.appendChild(L)}};
Cxl.prototype.registerRootElement=function(){if(this.isAnyTransitionEnabled){var x={};this.viewTransitionCoordinator.registerElement(document.documentElement,(x.slide="root-slide",x["lockup-to-watch"]="root-lockup-to-watch",x["learning-journey"]="root-learning-journey",x))}};
_.qf_=function(x,L){x.isLockupToWatchTransitionEnabled&&x.isLockupThumbnailRegistrationEnabled&&(x.registeredLockupThumbnail?x.lockupThumbnailRegisteredFromWatchEndpoint?_.qy(new _.RZ("Lockup thumbnail registration order is incorrect.")):_.qy(new _.RZ("Lockup thumbnail already registered.")):(x.registeredLockupThumbnail=L,_.lb3(x,L)))};
_.lb3=function(x,L){var D={};x.viewTransitionCoordinator.registerElement(L,(D["lockup-to-watch"]="lockup-thumbnail-lockup-to-watch",D),!0)};
Cxl[IZ]=[u5l];var wwc={data:void 0,previousButtonDisabled:!1,nextButtonDisabled:!1,shortsPreviewThumbnail:void 0,shortsData:void 0,externalPlaylistData:void 0,toastData:void 0,playabilityStatus:void 0,isDisabled:!1,isReadyToResume:!1,watchWhile:!1,playerVe:void 0,expandVe:void 0,closeVe:void 0,readyToResumeVe:void 0,readyToResumeCloseVe:void 0,repositionVe:void 0,resizeVe:void 0};var Wfc=["videoPrimaryInfoRenderer","title"],qTc=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var U4q;U4q=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.wfX=_.B(function(x){x=_.ym(x,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var L=x.data,D=x.playlistData,S=x.expanded,Q=x.onExpandClick,J=x.isReadyToResume,Z=function(){var v;return!((v=D())==null||!v.contents)},y=function(){var v=D();
return v&&v.totalVideos&&v.currentIndex!==void 0?v.currentIndex+1+" / "+v.totalVideos:""};
x=_.kO(function(){_.ht(_.yY().resolve(_.iy));return!1});
var E=_.kO(function(){Z()&&Q&&Q()}),P={};
return _.M("ytd-miniplayer-info-bar",{class:_.gF("ytdMiniplayerInfoBarHost",(P.ytdMiniplayerInfoBarHasPlaylistData=Z,P)),"on:click":E},_.M("div",{class:"ytdMiniplayerInfoBarContent"},_.M("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":x},_.M(_.kP,{text:function(){var v=L();var V=D();if(V==null?0:V.contents){var h;v=(h=_.rTb(V))==null?void 0:h.title}else v=v==null?void 0:v.miniplayerTitle;return AWh(v)},
noEndpoints:!0,ellipsisTruncate:!0})),_.M("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.M(_.d,{cond:J,then:function(){return _.M(pjC,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:U4q})}}),_.M("h1",null,_.M(_.kP,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var v=L();var V=D();v=J()?{simpleText:_.p6("CONTINUE_WATCHING",void 0,"Continue watching")}:(V==null?0:V.contents)?V.titleText:v==null?void 0:v.miniplayerSubtitle;return AWh(v)},
noEndpoints:!0,ellipsisTruncate:!0})),_.M(_.d,{cond:function(){return!!y()&&!J()},
then:function(){return _.M("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.M("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.M("span",null,y))}}))),_.M(_.d,{cond:Z,
then:function(){return _.M("div",{class:"ytdMiniplayerInfoBarExpand"},_.M(_.W9,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(v){Q&&(Q(),v.stopPropagation())}}},
iconName:function(){return S()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"lg");var Bb9;Bb9=_.B(function(x){return _.M("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.M(_.W9,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:x.onTap}},
iconName:"yt-icons:close"}))},"mg");
_.WgX=_.B(function(x){x=_.ym(x,{playabilityStatus:void 0,isDisabled:!1});var L=x.size,D=x.playabilityStatus,S=x.isDisabled,Q=_.x3("div");x=_.O(_.HB(void 0,void 0,"y6THVb"));var J=x.next().value,Z=x.next().value;x=_.ic(_.E3);var y=!1,E=function(){return L().height<=0};
_.Us(function(){var h=L(),H=E(),k=J();k&&!H&&k.setInternalSize(h.width,h.height)},"qu2eI");
_.UX(function(){var h,H,k;return _.I(function(T){if(T.nextAddress==1){h=_.yY().resolve(_.iy);H=h.getPlayerElement();if(!h.isMiniplayerActive()||!H||!Q.value)return T.return();H.appendTo(Q.value);return T.yield(H.getPlayerPromise(),2)}k=T.yieldResult;k.setSizeStyle(!1,!0);Z(k);_.Y2(T)})});
_.wH(function(){P()});
_.Us(function(){var h=J();if(h)if(S()){var H=h.getPlayerState();(y=H===-1||H===1||H===3)&&h.pauseVideo()}else P()},"mCtQKc");
var P=function(){if(y){y=!1;var h;(h=J())==null||h.playVideo()}},v=_.kO(function(){_.ht(_.yY().resolve(_.iy))}),V={};
return _.M("ytd-miniplayer-player-container",{class:_.gF("ytdMiniplayerPlayerContainerHost",(V.ytdMiniplayerPlayerContainerHidden=E,V.ytdMiniplayerPlayerContainerHostShortsPip=x,V)),style:_.bc({width:function(){return L().width+"px"},
height:function(){return L().height+"px"}})},_.M("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:Q}),_.M(_.d,{cond:function(){return!!D()&&!_.M60(D())},
then:function(){return _.M(fp5,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var h;return((h=D())==null?void 0:h.errorScreen)||null},
status:function(){var h;return((h=D())==null?void 0:h.status)||null}})}}),_.M(_.d,{cond:S,
then:function(){return _.M("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":v},_.M(Bb9,{onTap:function(){_.yY().resolve(_.iy).close()}}))}}))},"qg");_.q7g=_.B(function(x){var L=x.toastData;var D=_.x3("ytd-miniplayer-toast");x=_.O(_.mU(function(){return!!L()}));
var S=x.next().value,Q=x.next().value;x=_.O(_.HB(!1,void 0,"BvfNQe"));var J=x.next().value,Z=x.next().value,y=function(){var v;return _.SR((v=L())==null?void 0:v.data.title)};
_.wO(function(){_.KS.requestAvailability();L()&&Q(!1)});
var E,P;_.Us(function(){S()&&(_.MF(D.value,"iron-announce",{text:L().label+" "+y()}),E&&_.WW.cancelJob(E),E=_.WW.addLowPriorityJob(function(){Z(!0)},2500))},"no1dZb");
_.Us(function(){J()&&(P&&_.WW.cancelJob(P),P=_.WW.addLowPriorityJob(function(){Q(!1);Z(!1)},300))},"G3yPNe");
x={};return _.M("ytd-miniplayer-toast",{el:D,class:_.gF("ytdMiniplayerToastHost",(x.ytdMiniplayerToastOpening=function(){return S()},x.ytdMiniplayerToastClosing=function(){return J()},x))},_.M(_.d,{cond:function(){var v;
return(v=L())==null?void 0:v.data},
then:function(v){return _.M(Gci,{className:"ytdMiniplayerToastThumbnail",data:v,width:78})}}),_.M("div",{class:"ytdMiniplayerToastInfo"},_.M("div",{class:"ytdMiniplayerToastLabel"},function(){var v;
return(v=L())==null?void 0:v.label}),_.M("div",{class:"ytdMiniplayerToastTitle"},y)))},"tg");var cWb;var x2w=null;var $4q=_.B(function(x){var L=x.progressState;var D=x.multiMarkersPlayerBarRenderer;var S=x.progressBarWidth;var Q=function(){return QxO(D())},J=function(){return OQn(L())},Z=function(){return S()*(L().playedTime/L().videoDuration)};
return _.M("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.M(_.R1,{each:Q},function(y,E){return _.M(AxG,{modifiedProps:J,chapters:Q,index:E,playedProgressWidth:Z,backgroundGradientPosition:function(){var P=J(),v=Q(),V=E(),h=Z();return(P.playedTime-qk(_.g(v[V],WF)))/P.playedTime*h}})}))},"ug"),AxG=_.B(function(x){var L=x.modifiedProps;
var D=x.chapters;var S=x.index;var Q=x.playedProgressWidth;var J=x.backgroundGradientPosition;x={};x=_.gF("ytChapteredProgressBarChapteredPlayerBarChapter",(x.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return Z().isScrubbing},x.ytChapteredProgressBarHoveredMacroMarker=function(){return Z().scrubberHovering},x.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return Z().videoPosition==="seen"},x));
var Z=function(){return ZQ3(L(),D(),S())},y=function(){var E=L();
var P=D(),v=S();if(ZQ3(E,P,v).videoPosition!=="active")E=0;else{var V=qk(_.g(P[v],WF));E=(E.playedTime-V)/((qk(_.g(P[v+1],WF))||E.videoDuration)-V)}return E};
return _.M("div",{class:x,style:_.bc({width:function(){var E=L(),P=D(),v=S(),V=_.g(P[v],WF);P=_.g(P[v+1],WF);return(P?qk(P)-qk(V):E.videoDuration-qk(V))/E.videoDuration*100+"%"},
"background-color":function(){a:{var E=Z();switch(E.videoPosition){case "pending":E=E.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":E=E.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:E=""}}return E},
"background-size":function(){return(yvc(Z())?Q():"")+"px"},
"background-position-x":function(){return(yvc(Z())?J():"")+"px"}})},_.M("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var E=L(),P=D(),v=S();if(ZQ3(E,P,v).videoPosition==="seen")var V=0;else V=qk(_.g(P[v],WF)),P=qk(_.g(P[v+1],WF))||E.videoDuration,E=E.videoDuration*E.percentLoaded,V=P<=E?1:V>=E?0:(E-V)/(P-V);return"width: "+V*100+"%"}}),_.M("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.bc({width:function(){return y()*100+"%"},
"background-size":function(){return(yvc(Z(),y())?Q():"")+"px"},
"background-position-x":function(){return(yvc(Z(),y())?J():"")+"px"}})}))},"vg");var rxX=function(x,L){L=L===void 0?cLh:L;var D,S=[],Q,J=!1;return function(){var Z=_.Ne.apply(0,arguments);if(J&&D===this&&L(Z,S))return Q;Q=x.apply(this,Z);J=!0;D=this;S=Z;return Q}}(function(x){var L=x.heatMarkers,D=x.minHeightDp===void 0?0:x.minHeightDp,S=x.maxHeightDp===void 0?60:x.maxHeightDp;
var Q=Q===void 0?!1:Q;var J=1E3/L.length;x=[];x.push({x:0,y:100});for(var Z=0;Z<L.length;Z++){var y=void 0,E=((y=_.g(L[Z],TUW))==null?void 0:y.heatMarkerIntensityScoreNormalized)||0;y=(Z+.5)*J;E=100-_.BF(E*100,D/321*100,S/321*100);Z!==0||Q||x.push({x:0,y:E});x.push({x:y,y:E});Z===L.length-1&&x.push({x:1E3,y:E})}x.push({x:1E3,y:100});L="";for(D=0;D<x.length;D++)Q=x[D],D===0?Q="M "+Q.x.toFixed(1)+","+Q.y.toFixed(1):(S=IrN(x[D-1],x[D-2],Q),J=IrN(Q,x[D-1],x[D+1],!0),Q=" C "+(S.x.toFixed(1)+","+S.y.toFixed(1)+
" "+J.x.toFixed(1)+","+J.y.toFixed(1)+" "+Q.x.toFixed(1)+","+Q.y.toFixed(1))),L+=Q;return L});var Nbg=_.B(function(x){var L=x.progressBarProps;var D=x.config;var S={};x=_.gF("ytHeatSeekerHost",(S.ytHeatSeekerHighContrast=x.highContrast,S));var Q=function(){return fjh(D().chapterData)};
return _.M("yt-progress-bar-heatseeker",{class:x,style:function(){var J;return"height: 320px; display: "+(L().isDragging&&((J=Q())==null?0:J.heatMarkers)?"block":"none")}},_.M(_.d,{cond:Q,
then:function(J){return _.M(_.d,{cond:function(){return J().heatMarkers},
then:function(){return _.M("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.M("path",{d:function(){return rxX(J())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"wg");var iw3=_.B(function(x){var L=x.progressBarProps;var D=x.config;x={};x=_.gF("ytProgressBarLineProgressBarLine",(x.ytProgressBarLineProgressBarLineRounded=function(){return D().rounded},x.ytProgressBarLineProgressBarLineBottomInset=function(){return D().position===2},x));
return _.M("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.M("div",{class:x},_.M("div",{class:"ytProgressBarLineProgressBarBackground"}),_.M("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+L().percentLoaded*100+"%"}}),_.M("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var S=L();return"width: "+(S.videoDuration?_.BF(S.hoveredTime/S.videoDuration,0,1):0)*100+"%"}}),_.M("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+rWc(L())*100+"%"}})))},"xg");
iw3.idomCompat=!0;var fbu=_.B(function(x){var L=x.progressBarProps;var D=x.playheadData;var S=x.interpolateDotPosition;var Q=x.hidePlayhead;x={};var J=_.gF("ytProgressBarPlayheadProgressBarPlayheadDot",(x.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return L().isDragging},x.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!L().isDragging&&Q()},x));
return _.M("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.bc({"margin-left":function(){return Nlh(L())*100+"%"},
transform:function(){return"translateX(-"+(S()?Nlh(L())*12:6)+"px)"}})},_.M(_.d,{cond:function(){var Z;
return(Z=_.ZH(D)())==null?void 0:Z.playheadImage},
then:function(Z){var y={};return _.M("div",{class:_.gF("ytProgressBarPlayheadProgressBarPlayheadCustom",(y.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return L().isDragging},y.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!L().isDragging&&Q()},y)),
style:_.bc({"transform-origin":function(){return(S()?Nlh(L())*20:10)+"px center"}})},_.M(_.Ku,{data:Z,
alt:"","aria-hidden":"true"}))},
else:function(){return _.M("div",{class:J,style:_.bc({"transform-origin":function(){return(S()?Nlh(L())*12:6)+"px center"}})})}}))},"yg");
fbu.idomCompat=!0;var He=function(x,L,D,S,Q,J){this.getProgressBarRect=x;this.updateProgressBarRect=L;this.getFilmstripYPosition=D;this.setFineScrubbingDraggedTime=S;this.updateFilmStripDraggedYDistance=Q;this.resetFilmStripYOffset=J;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.zR(this.onThrottledSeek,100,this)},oal=function(x,L,D){return function(S){x.handleClick(S,L(),D())}},Xf3=function(x,L){return function(D){ab3(x,
D,zvX(D),L())}},cxl=function(x,L){return function(D){ab3(x,D,{x:D.clientX,
y:D.clientY},L())}},t1G=function(x,L,D){return function(S){var Q=L(),J=D();
naW(x,S,zvX(S),Q,J,!0);if(J.onTouchMove)J.onTouchMove(Q)}},L53=function(x,L,D){return function(S){xNl(x,S,L(),D())}},DNY=function(x,L){return function(){x.handleMouseLeave(L())}},Sss=function(x,L,D){return function(){var S=L(),Q=D();
u3(x,S,Q);if(Q.onTouchEnd)Q.onTouchEnd(S)}},QuW=function(x,L,D){return function(){var S=L(),Q=D();
u3(x,S,Q);if(Q.onTouchEnd)Q.onTouchEnd(S)}},JIg=function(x,L,D){return function(){u3(x,L(),D())}},K5G=function(x){return function(L){if(L.keyCode===39||L.keyCode===38){var D,S;
(D=x())==null||(S=D.playerApi)==null||S.seekBy(5,void 0,void 0,72)}else if(L.keyCode===37||L.keyCode===40){var Q,J;(Q=x())==null||(J=Q.playerApi)==null||J.seekBy(-5,void 0,void 0,71)}}},Oqq=function(x,L,D){return function(S){!D().disableScrubbing&&x.startPosition&&xNl(x,S,L(),D())}},Zq3=function(x,L,D){return function(){if(!D().disableScrubbing)if(x.startPosition){var S=L(),Q=D();
u3(x,L(),D());if(Q.onTouchEnd)Q.onTouchEnd(S)}else L().setState({isDragging:!1})}},zvX=function(x){x=x.touches[0];
return{x:x.clientX,y:x.clientY}},xNl=function(x,L,D,S){if(L.buttons!==1){if(L.movementX||L.movementY)L.preventDefault(),L.stopPropagation(),x=yI$(x,D,L.clientX),D.setState({isHovering:!0,
hoveredTime:x*D.videoDuration})}else IKX(D),naW(x,L,{x:L.clientX,y:L.clientY},D,S,!1)};
He.prototype.handleMouseLeave=function(x){IKX(x)};
var IKX=function(x){x.isHovering&&x.setState({isHovering:!1,hoveredTime:0})},ab3=function(x,L,D,S){x.startPosition||(x.startPosition=D,x.updateProgressBarRect(),x.controlsWereVisibleBeforeDragging=S.controlsVisible,L.stopPropagation(),_.u("medium_progress_bar_modification")||L.preventDefault())},naW=function(x,L,D,S,Q,J){if(x.startPosition)if(J&&Q.isInlinePlayback&&x.startPosition&&!x.hasDraggedTheMinimumDistance&&Math.abs(D.y-x.startPosition.y)>Math.abs(D.x-x.startPosition.x))u3(x,S,Q);
else if(L.preventDefault(),L.stopPropagation(),S.videoDuration&&(x.startPosition&&!x.hasDraggedTheMinimumDistance&&(x.hasDraggedTheMinimumDistance=Math.abs(D.x-x.startPosition.x)>=1),Q.enableFineScrubbing&&(x.startPosition&&(x.isDraggedForFineScrubbing=-(D.y-x.startPosition.y)>=60),!x.startPosition||D.y>=x.startPosition.y||(S.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:IDh(S.draggedTime,S,Q.chapterData)}),x.setFineScrubbingDraggedTime(S.draggedTime),x.updateFilmStripDraggedYDistance(x.startPosition.y,
D.y,S))),x.hasDraggedTheMinimumDistance)){L=yI$(x,S,D.x);if(x.isDraggedForFineScrubbing){var Z;(Z=S.playerApi)==null||Z.pauseVideo();S.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:S.draggedTime,filmStripXDistance:IDh(L*S.videoDuration,S,Q.chapterData)})}Q.enableFineScrubbing&&(!Q.enableFineScrubbing||x.getFilmstripYPosition(S)<68)||S.setState({draggedTime:L*S.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:x.controlsWereVisibleBeforeDragging});var y;(y=
Q.cancelAutohideControlsFn)==null||y.call(Q)}},u3=function(x,L,D){var S=D.enableFineScrubbing&&L.fineScrubbingActiveState!=="off";
if(L.isDragging||S){S={isDragging:!1,playedTime:L.draggedTime,controlsVisible:x.controlsWereVisibleBeforeDragging};D.enableFineScrubbing&&L.fineScrubbingActiveState!=="on"&&(x.resetFilmStripYOffset(),S.fineScrubbingActiveState="off");var Q=Q===void 0?x2w:Q;var J=_.A3(0);if(J&&Q){var Z=Math.round(L.playedTime*1E3),y=Math.round(L.draggedTime*1E3);Z>2147483647||y>2147483647||_.Do(J,Q,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(Z),endMediaTimeMs:String(y),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}L.setState(S);
x.seekThrottle.fire(L.draggedTime,L,7);_.u("mweb_new_progress_bar_play_on_seek")&&x.resumeVideo(L);D.unmuteOnSeek&&(D=L.playerApi,L.volumeMuted&&(D==null||D.unMute()))}else L.setState({controlsVisible:!L.controlsVisible}),(J=D.triggerAutohideControlsAfterDelayFn)==null||J.call(D);x.startPosition=null;x.hasDraggedTheMinimumDistance=!1;x.isDraggedForFineScrubbing=!1;x.controlsWereVisibleBeforeDragging=!1};
He.prototype.handleClick=function(x,L,D){this.updateProgressBarRect();x.stopPropagation();x=yI$(this,L,x.clientX)*L.videoDuration;L.setState({playedTime:x});if(L.playerState!==2){var S;(S=D.triggerAutohideControlsAfterDelayFn)==null||S.call(D)}this.seekThrottle.fire(x,L,7)};
var yI$=function(x,L,D){x=x.getProgressBarRect(L);return _.BF(0,(D-x.left)/x.width,1)};
He.prototype.resumeVideo=function(x){if(x.draggedTime<x.videoDuration){var L;(L=x.playerApi)==null||L.playVideo()}};
He.prototype.onThrottledSeek=function(x,L,D){if(L=L.playerApi){var S;if((S=L.getVideoData())==null?0:S.isLive)S=this.getProgressState(L),x+=(S==null?void 0:S.seekableStart)||0;L.seekTo(x,void 0,void 0,void 0,D)}};
He.prototype.getProgressState=function(x){var L=x==null?void 0:x.getPresentingPlayerType();return x==null?void 0:x.getProgressState(L)};var dN9,M$s,PmG,vVX,EVg,V$W,hzW,Hq9,uUq;dN9=_.B(function(x){var L=x.progressBarProps;var D=x.config;var S=x.progressBarWidthPx;var Q=x.chapterData;var J=jxc(L,function(){return D().isShortsPage}),Z=function(){return!L().isHovering&&!D().isShortsPage};
x={};var y=_.gF("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(x.ytPlayerStoryboardHostMwebShorts=function(){return D().isShortsPage&&!1},x));
return _.M("yt-player-storyboard",null,_.M(_.d,{cond:function(){return L().isDragging||L().isHovering},
then:function(){return _.M(_.d,{cond:J,then:function(E){return _.M(_.d,{cond:Z,then:function(){return _.M("div",{class:y,"aria-hidden":"true"},_.M(EVg,{props:L,config:D,isBigboard:!0,chapterData:Q}))},
else:function(){return _.M(M$s,{props:L,frame:E,config:D,progressBarWidthPx:S,chapterData:Q})}})}})}}))},"zg");
_.ju3=_.B(function(x){var L=x.progressBarProps;var D=jxc(L,x.isShortsPage);return _.M("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.M(_.d,{cond:function(){return L().isDragging||L().isHovering},
then:function(){return _.M(_.d,{cond:D,then:function(S){return _.M(PmG,{frame:S,props:L,isBigboard:!0})}})}}))},"Ag");
M$s=_.B(function(x){var L=x.props;var D=x.frame;var S=x.config;var Q=x.progressBarWidthPx;x=x.chapterData;var J={};J=_.gF("ytPlayerStoryboardHost",(J.ytPlayerStoryboardHostMwebShorts=function(){return S().isShortsPage&&!1},J.ytPlayerStoryboardHostInlinePlayer=function(){return S().isInlinePlayer},J.ytPlayerStoryboardHostFadeIn=function(){return S().useFadeInAnimation},J));
return _.M("div",{class:J,"aria-hidden":"true",style:function(){var Z=L(),y=EdG(D()),E=Q();Z=MXc(Z)/Z.videoDuration;var P=E*Z,v=y/2+6;y=E-(y/2+6);return"left: "+(P<=v?v/E*100:P>=y?y/E*100:Z*100)+"%"}},_.M(_.d,{cond:function(){var Z=L();
return!(S().isShortsPage&&Z.videoDuration<15)},
then:function(){return _.M(PmG,{frame:D,props:L,isBigboard:!1})}}),_.M(EVg,{props:L,
config:S,isBigboard:!1,chapterData:x}))},"Bg");
PmG=_.B(function(x){var L=x.frame;var D=x.props;var S=x.isBigboard;var Q=function(){var y,E;return(E=(y=D().playerApi)==null?void 0:y.getVideoContentRect())!=null?E:{width:0,height:0}},J=function(){return EdG(L())},Z=function(){var y=L();
return y?y.height/y.rows:0};
x={};x=_.gF((x.ytPlayerStoryboardBigboardImageWrapper=S,x.ytPlayerStoryboardStoryboardImageWrapper=function(){return!S()},x));
return _.M("div",{class:x,style:function(){return"width: "+(S()?Q().width:J())+"px; height: "+(S()?Q().height:Z())+"px;"}},_.M(vVX,{frame:L,
storyboardWidth:J,storyboardHeight:Z,storyboardScale:function(){return(S()?Q().width:J())/J()}}))},"Cg");
vVX=_.B(function(x){var L=x.frame;var D=x.storyboardWidth;var S=x.storyboardHeight;var Q=x.storyboardScale;var J=function(){var Z=L().row,y=L().column,E=D(),P=S(),v=Q();return{left:-y*E*v,top:-Z*P*v}};
return _.M("img",{src:function(){return L().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+J().left+"px; top: "+J().top+"px; width: "+L().width*Q()+"px; height: "+L().height*Q()+"px;"}})},"Dg");
EVg=_.B(function(x){var L=x.props;var D=x.config;var S=x.isBigboard;var Q=x.chapterData;x={};x=_.gF("ytPlayerStoryboardMetadata",(x.ytPlayerStoryboardMetadataBigboard=S,x));return _.M("div",{class:x},_.M(_.d,{cond:S,then:function(){return _.M(_.I1,null,_.M(V$W,{props:L,config:D}),_.M(_.d,{cond:function(){a:{var J=L();var Z=D(),y=Q(),E;if((Z==null?0:Z.activeChapter)&&((E=_.g(Z==null?void 0:Z.activeChapter,WF))==null?0:E.title))J=!0;else{Z=_.O(o_h(y));for(Z=Z.next();!Z.done;Z=Z.next()){J=(Z=_.g(Z.value,
RT2))&&d2h(J,Z);break a}J=!1}}return J},
then:function(){return _.M(hzW,{props:L,config:D,isBigboard:!0,chapterData:Q})}}))},
else:function(){return _.M(_.I1,null,_.M(hzW,{props:L,config:D,isBigboard:!0,chapterData:Q}),_.M(V$W,{props:L,config:D}))}}))},"Eg");
V$W=_.B(function(x){var L=x.props;var D=x.config;x={};x=_.gF("ytPlayerStoryboardTimestamp",(x.ytPlayerStoryboardTimestampShorts=function(){return D().isShortsPage},x.ytPlayerStoryboardTimestampIsHovering=function(){return L().isHovering||D().isShortsPage&&!0},x));
return _.M("div",{class:x},_.M(_.I1,null,function(){return _.PRN(MXc(L()))}))},"Fg");
hzW=_.B(function(x){var L=x.props;var D=x.config;var S=x.isBigboard;var Q=x.chapterData;x={};S=_.gF("ytPlayerStoryboardTitle",(x.ytPlayerStoryboardTitleBigboard=S,x));return _.M("div",{class:S},_.M(_.d,{cond:function(){return!D().isShortsPage},
then:function(){return _.M(Hq9,{props:L,activeChapter:function(){return D().activeChapter},
chapterData:Q})}}))},"Gg");
Hq9=_.B(function(x){var L=x.props;var D=x.activeChapter;var S=x.chapterData;return _.M(_.I1,null,_.M(_.R1,{each:function(){return o_h(S())},
keyBy:"INDEX"},function(Q){return _.M(_.I1,null,_.M(_.d,{cond:function(){return _.g(Q(),RT2)&&d2h(L(),_.g(Q(),RT2))},
then:function(){return _.M(uUq,{timedMarker:function(){return _.g(Q(),RT2)}})}}))}),_.M(_.d,{cond:function(){var Q;
return D()&&((Q=_.g(D(),WF))==null?void 0:Q.title)},
then:function(Q){return _.M(_.kP,{text:Q,noPreWrap:!0})}}))},"Hg");
uUq=_.B(function(x){var L=x.timedMarker;return _.M(_.I1,null,_.M("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.M(_.YO,{icon:function(){return L().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.M(_.kP,{text:function(){return L().label},
noPreWrap:!0}))},"Ig");_.gV9=_.B(function(x){var L=x.progressBarProps;var D=x.playheadData;var S=x.config;x=_.x3("yt-progress-bar");var Q=_.x3("div"),J=_.x3("div"),Z=_.O(_.HB({width:0,left:0},void 0,"WloVn")),y=Z.next().value,E=Z.next().value,P=function(){J.value&&E(J.value.getBoundingClientRect())},v=function(){y().width<=0&&P();
return y()};
_.OU("resize",P);var V=new He(v,function(){},function(){return 0},function(){},function(){},function(){}),h=function(){return L()};
Z=_.O(_.HB(!1,void 0,"u8BZZb"));var H=Z.next().value,k=Z.next().value;Z=_.kO(function(){k(!0);S().position===2?setTimeout(function(){P()},100):P()});
var T=_.kO(function(){k(!1);DNY(V,h)()}),G=_.kO(function(Rn){S().doSeekOnClick&&oal(V,h,S)(Rn);
return!1}),U=_.kO(function(Rn){Xf3(V,h)(Rn);
return!1}),l=_.kO(function(Rn){cxl(V,h)(Rn);
return!1}),X=_.kO(function(Rn){t1G(V,h,S)(Rn);
return!1}),f=_.kO(function(Rn){L53(V,h,S)(Rn);
return!1}),N=_.kO(function(){Sss(V,h,S)();
return!1}),z=_.kO(function(){QuW(V,h,S)();
return!1}),xf=_.kO(function(){JIg(V,h,S)();
return!1}),K3=_.kO(function(Rn){K5G(h)(Rn);
return!1});
_.OU("mousemove",Oqq(V,h,S));_.OU("mouseup",Zq3(V,h,S));_.wO(function(){LyG(Q.value);k(!1);P();Zq3(V,h,S)()});
var P4={};P4=_.gF("ytPlayerProgressBarHost",function(){return S().className},(P4.ytPlayerProgressBarHostReadOnly=function(){return S().disableScrubbing},P4.ytPlayerProgressBarHostHidden=function(){return S().hideProgressBar&&!H()},P4.ytPlayerProgressBarHostLowerPlayer=function(){return S().position===0},P4.ytPlayerProgressBarHostBottomEdge=function(){return S().position===1},P4.ytPlayerProgressBarHostBottomInset=function(){return S().position===2},P4.ytPlayerProgressBarHostCustom=function(){return S().position===
3},P4));
var kf={},H4=_.gF("ytPlayerProgressBarBackground",(kf.ytPlayerProgressBarBackgroundHide=function(){return S().position===2&&!H()&&!L().isDragging},kf));
kf={};kf=_.gF("ytPlayerProgressBarDragContainer",(kf.ytPlayerProgressBarDragContainerBottomEdge=function(){return S().position===1},kf));
var p3={};p3=_.gF("ytPlayerProgressBarProgressBar",(p3.ytPlayerProgressBarProgressBarInset=function(){return S().position===2},p3.ytPlayerProgressBarProgressBarInsetMinimized=function(){return S().position===2&&!H()&&!L().isDragging},p3));
var w0=function(){return Math.floor(rWc(L())*100)};
return _.M("yt-progress-bar",{el:x,class:P4},_.M(_.d,{cond:function(){return S().position===2},
then:function(){return _.M("div",{class:H4})}}),_.M("div",{el:Q,
"on:click":G,"on:touchstart":U,"on:touchmove":X,"on:mouseenter":Z,"on:mousedown":l,"on:mouseleave":T,"on:mousemove":f,"on:mouseup":z,"on:touchend":N,"on:touchcancel":xf,"on:keydown":K3,class:kf,role:"slider","aria-valuenow":w0,"aria-valuetext":function(){return w0()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return L().videoDuration},
draggable:"true",tabindex:0,"aria-label":_.p6("SEEK_SLIDER")},_.M("div",{el:J,class:p3},_.M(Nbg,{progressBarProps:L,config:S,highContrast:function(){return!!S().isInlinePlayback}}),_.M(_.d,{cond:function(){return S().chapterData&&ajO(S().chapterData)},
then:function(){return _.M($4q,{progressState:L,multiMarkersPlayerBarRenderer:function(){return S().chapterData},
progressBarWidth:function(){return y().width}})},
else:function(){return _.M(iw3,{progressBarProps:L,config:S})}}),_.M(fbu,{progressBarProps:L,
playheadData:D,interpolateDotPosition:function(){return S().position!==2},
hidePlayhead:function(){return S().playheadDotBehavior===1&&!H()}}))),_.M(dN9,{progressBarProps:L,
config:function(){return{activeChapter:Ky0(L(),S().chapterData),getProgressBarWidthPx:function(){return v().width},
isShortsPage:!!S().isShortsPage,isInlinePlayer:!!S().isInlinePlayback,useFadeInAnimation:!!S().isInlinePlayback}},
progressBarWidthPx:function(){return y().width},
chapterData:function(){return S().chapterData}}))},"Jg");
_.gV9.idomCompat=!0;Object.assign({},_.zn3(),{setState:function(){},
domMeasurements:{},appApi:_.$df(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var kJq;
_.pBq=_.B(function(){var x,L=(x=_.AK(vdN().playerApi))!=null?x:void 0;x=_.O(_.HB(!1,void 0,"Z9NQ1b"));var D=x.next().value,S=x.next().value;x=_.O(_.HB(!1,void 0,"HoVJXe"));var Q=x.next().value,J=x.next().value;x=_.O(_.HB(!1,void 0,"DWCY3"));var Z=x.next().value,y=x.next().value;x=_.O(_.HB(!1,void 0,"g4C2Zd"));var E=x.next().value,P=x.next().value;x=_.O(_.HB(0,void 0,"lmVfFb"));var v=x.next().value,V=x.next().value;x=_.O(_.HB(0,void 0,"mFLbzb"));var h=x.next().value,H=x.next().value;x=_.O(_.HB(!1,void 0,
"hQN4Wb"));var k=x.next().value,T=x.next().value;x=_.O(_.HB(0,void 0,"WWU0fb"));var G=x.next().value,U=x.next().value;x=_.O(_.HB(0,void 0,"MJ7LMd"));var l=x.next().value,X=x.next().value;x=_.O(_.HB("",void 0,"hnomOe"));var f=x.next().value,N=x.next().value;x=_.O(_.HB(-1,void 0,"ARe3pf"));var z=x.next().value,xf=x.next().value,K3=_.m5(function(){var P4={controlsVisible:D(),isOverlayHidden:Q(),shouldWaitToHideControls:Z(),isDragging:E(),isHovering:k(),videoDuration:G(),playedTime:l(),videoId:f(),draggedTime:h(),
hoveredTime:v(),playerState:z()};return Object.assign({},_.zn3(),P4,{domMeasurements:{},setState:function(kf){kf.controlsVisible!==void 0&&S(kf.controlsVisible);kf.isOverlayHidden!==void 0&&J(kf.isOverlayHidden);kf.shouldWaitToHideControls!==void 0&&y(kf.shouldWaitToHideControls);kf.isDragging!==void 0&&P(kf.isDragging);kf.isHovering!==void 0&&T(kf.isHovering);kf.draggedTime!==void 0&&H(kf.draggedTime);kf.hoveredTime!==void 0&&V(kf.hoveredTime);kf.videoDuration!==void 0&&U(kf.videoDuration);kf.playedTime!==
void 0&&X(kf.playedTime);kf.videoId!==void 0&&N(kf.videoId);kf.playerState!==void 0&&xf(kf.playerState)},
appApi:_.$df(),playerApi:L})},void 0,"Au4PIf");
_.UX(function(){L==null||L.addEventListener("onVideoProgress",tkp(K3));L==null||L.addEventListener("onVideoDataChange",n_b(K3));L==null||L.addEventListener("onStateChange",Xw0(K3))});
_.wH(function(){if(L==null?0:L.isReady())L==null||L.removeEventListener("onVideoProgress",tkp(K3)),L==null||L.removeEventListener("onVideoDataChange",n_b(K3)),L==null||L.removeEventListener("onStateChange",Xw0(K3))});
return _.M("desktop-shorts-player-controls",null,_.M(kJq,{playerControlsProps:K3}))},"Lg");
kJq=_.B(function(x){var L=x.playerControlsProps;return _.M("div",{class:"desktopShortsPlayerControlsHost"},_.M(_.gV9,{progressBarProps:L,config:function(){return{isShortsPage:!0,hideProgressBar:L().videoDuration<30&&L().playerState!==2&&!L().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"Mg");_.mN$=_.B(function(x){function L(K3){K3!==0||V()?K3>50&&(V()||!H())?(h(!1),k(!0)):K3<=50&&(V()||H())&&(h(!1),k(!1)):h(!0)}
function D(K3,P4){var kf;return _.I(function(H4){if(H4.nextAddress==1)return H4.yield(_.hL(),2);kf=H4.yieldResult;P4&&kf?(kf.unMute(!0),K3&&(hHc(K3,kf.getVolume()),G(kf.getVolume()))):kf&&(kf.mute(!0),K3&&hHc(K3,0));_.Y2(H4)})}
function S(K3){var P4,kf;return _.I(function(H4){if(H4.nextAddress==1)return H4.yield(_.hL(),2);P4=H4.yieldResult;kf=50;P4&&(kf=P4.getVolume(),P4.isMuted()?hHc(K3,0):hHc(K3,kf));G(kf);_.Y2(H4)})}
var Q=x.orientation;x=_.x3("desktop-shorts-volume-controls");var J=_.x3("button"),Z=_.Sc("input"),y=_.O(_.HB(!1,void 0,"MvN0Tc")),E=y.next().value,P=y.next().value,v=_.O(_.HB(!1,void 0,"aSjsEb"));y=v.next().value;v=v.next().value;var V=y,h=v;v=_.O(_.HB(!0,void 0,"FUh46d"));y=v.next().value;v=v.next().value;var H=y,k=v;y=_.O(_.HB(50,void 0,"yPke4d"));var T=y.next().value,G=y.next().value;y=_.m5(function(){var K3=V();return _.u("web_shorts_keyboard_enable_mute_shortcut")?K3?_.p6("PLAYER_LABEL_UNMUTE",
void 0,"Unmute (m)"):_.p6("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):K3?_.p6("UNMUTE_VOLUME",void 0,"Unmute"):_.p6("MUTE_VOLUME",void 0,"Mute")},void 0,"SHO4Df");
v=_.m5(function(){var K3=V(),P4=H();return{sources:[{clientResource:{imageName:K3?_.u("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":P4?_.u("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.u("web_shorts_modern_controls")?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"lfsRWd");
var U=_.m5(function(){var K3=T();return V()?K3+"% volume muted":K3+"% volume"},void 0,"xZsRmc"),l=_.m5(function(){return Q()==="vertical_down"},void 0,"FVqYmb");
_.wO(function(){function K3(){P(!0)}
function P4(){P(!1)}
Z&&Z.value&&(Z.value.addEventListener("focus",K3),Z.value.addEventListener("focusout",P4),S(Z.value).then(function(){L(Number(HQw(Z.value)))}));
J&&J.value&&(J.value.addEventListener("focus",K3),J.value.addEventListener("focusout",P4));_.wH(function(){var kf;Z==null||(kf=Z.value)==null||kf.removeEventListener("focus",K3);var H4;Z==null||(H4=Z.value)==null||H4.removeEventListener("focusout",P4);var p3;J==null||(p3=J.value)==null||p3.removeEventListener("focus",K3);var w0;J==null||(w0=J.value)==null||w0.removeEventListener("focusout",P4)})});
var X=_.kO(function(){if(Z&&Z.value){var K3=Number(HQw(Z.value));VXf(K3);G(K3);Z.value.style.setProperty("--gradient-percent",K3+"%");L(K3)}return!1}),f=_.kO(function(){Z&&Z.value&&(D(Z.value,V()),h(!V()));
return!1}),N={},z={},xf={};
return _.M("desktop-shorts-volume-controls",{"on:pointerleave":_.kO(function(){P(!1)}),
"on:pointerenter":_.kO(function(){P(!0)}),
class:_.gF("ytdDesktopShortsVolumeControlsHost",(N.ytdDesktopShortsVolumeControlsHostVertical=l,N.ytdDesktopShortsVolumeControlsHostModern=_.u("web_shorts_modern_controls"),N.ytdDesktopShortsVolumeControlsHostModernExpanded=function(){return _.u("web_shorts_modern_controls")&&E()},N)),
el:x},_.M(_.d,{cond:function(){return!l()},
then:function(){var K3={};return _.M("div",{class:_.gF("ytdDesktopShortsVolumeControlsBackgroundScrim",(K3.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=E,K3.ytdDesktopShortsVolumeControlsBackgroundScrimModern=_.u("web_shorts_modern_controls"),K3))})}}),_.M("div",{class:_.gF((z.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=l,z))},_.M("button",{"aria-label":y,
title:y,el:J,"on:click":f,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},v?_.M(_.Ku,{data:v,alt:y,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.M("div",{class:_.gF("ytdDesktopShortsVolumeControlsSliderContainer",(xf.ytdDesktopShortsVolumeControlsSliderContainerExpanded=E,xf.ytdDesktopShortsVolumeControlsSliderContainerVertical=l,xf.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=l,xf.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=function(){return E()&&
l()},xf))},_.M("input",{"aria-label":_.p6("VOLUME"),
title:_.p6("VOLUME"),el:Z,"on:input":X,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input",role:"slider","aria-valuenow":T,"aria-valuetext":U,"aria-valuemin":0,"aria-valuemax":100})))},"Ng");_.bqG=_.B(function(x){var L=x.data;var D=x.extractOverlay;x={};return _.M("player-disclosure-view-model",{class:_.gF("ytwPlayerDisclosureViewModelHost",(x.ytwPlayerDisclosureViewModelExtractOverlay=function(){return D==null?void 0:D()},x))},_.M(_.lr,{command:function(){return L().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.M(_.d,{cond:function(){return L().iconName},
then:function(S){return _.M(_.YO,{icon:S})}}),_.M("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return L().text}),_.M(_.d,{cond:function(){return L().showEndChevron},
then:function(){return _.M(_.YO,{icon:"CHEVRON_RIGHT"})}})))},"Og");var Ysl=_.B(function(x){var L=x.data;var D=x.overlayDensity;x={};return _.M("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.M(_.Fj,{data:function(){return L().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(S){var Q=S.data;
return _.M(_.Z6,{data:function(){return(D==null?void 0:D())===1?Object.assign({},Q(),{avatar:{avatarViewModel:Object.assign({},_.g(Q().avatar,_.$e),{avatarImageSize:"AVATAR_SIZE_M"})}}):Q()}})}}),_.M(_.Fj,{data:function(){return L().avatarStackViewModel}},{avatarStackViewModel:function(S){return _.M(_.yn,{data:S.data})}}),_.M(_.kP,{className:_.gF("ytReelChannelBarViewModelChannelName",(x.ytReelChannelBarViewModelChannelNameLarge=function(){return(D==null?void 0:D())===1},x)),
text:function(){return L().channelName},
linkInheritColor:!0,userInput:!0}),_.M("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.M(_.Fj,{data:function(){return L().subscribeButtonViewModel}},{subscribeButtonViewModel:function(S){var Q=S.data;
return _.M(_.Oa,{data:function(){return(D==null?void 0:D())===1?Object.assign({},Q(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},Q().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):Q()},
isOverlay:!1})},
buttonViewModel:_.qP})),_.M("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.M(_.Fj,{data:function(){var S,Q;return(Q=_.g((S=L())==null?void 0:S.sponsorButtonViewModel,$Jr))==null?void 0:Q.sponsorButton}},{buttonViewModel:function(S){return _.M(_.qP,{data:S.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"Pg");var F55=_.B(function(x){var L=function(){var S;return(x==null?void 0:(S=x.overlayDensity)==null?void 0:S.call(x))===1?22:16},D={};
return _.M("yt-reel-multi-format-link-view-model",{class:_.gF("ytReelMultiFormatLinkViewModelHost",(D.ytReelMultiFormatLinkViewModelHostTall=!0,D.ytReelMultiFormatLinkViewModelHostLarge=function(){var S;return((S=x.overlayDensity)==null?void 0:S.call(x))===1},D))},_.M(_.lr,{ariaLabel:function(){return x.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return x.data().command}},_.M("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.M(_.d,{cond:function(){return x.data().icon},
then:function(S){return _.M(_.Ku,{data:S,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:L})}}),_.M(_.kP,{text:function(){return x.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"Qg");
F55.idomCompat=!0;var suI=_.B(function(x){var L=x.data;var D=x.overlayDensity;var S=x.extractOverlay;var Q=_.x3("yt-shorts-suggested-action-view-model");x=_.O(_.HB(!1,void 0,"S60Hzc"));var J=x.next().value,Z=x.next().value;x=_.O(_.HB(!1,void 0,"O76chf"));var y=x.next().value,E=x.next().value,P=function(){return L().isMultiLineSa},v=_.mF(uQh,function(){var N,z;
return(z=(N=L().toggleableContent)==null?void 0:N.entityKey)!=null?z:""}),V=function(){var N,z,xf;
return(xf=L().toggleableContent)!=null&&xf.entityKey?(z=(N=v())==null?void 0:N.value)!=null?z:!1:!1},h=function(){var N,z,xf,K3,P4,kf,H4,p3,w0,Rn,lG;
return L().toggleableContent?V()?(N=L().toggleableContent)==null?void 0:N.toggledData:(z=L().toggleableContent)==null?void 0:z.untoggledData:{primaryText:(p3=(xf=L().defaultContent)==null?void 0:xf.primaryText)!=null?p3:L().text,secondaryText:(K3=L().defaultContent)==null?void 0:K3.secondaryText,onTapCommand:(w0=(P4=L().defaultContent)==null?void 0:P4.onTapCommand)!=null?w0:L().onTapCommand,icon:(Rn=(kf=L().defaultContent)==null?void 0:kf.icon)!=null?Rn:L().icon,image:(lG=(H4=L().defaultContent)==
null?void 0:H4.image)!=null?lG:L().image}},H=function(){return P()?L().trailingTapTarget:void 0},k=function(N,z){return function(){return J()?z:N}},T=function(){return{leadingSection:k("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),
secondaryText:(D==null?void 0:D())===1?k("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelExpansiveContainerExpandedSecondary"):k("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:k("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),trailingSectionExtractOverlay:k("ytShortsSuggestedActionViewModelExtractOverlayCollapsedTrailingSection",
"ytShortsSuggestedActionViewModelExtractOverlayExpandedTrailingSection"),leadingIcon:k("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")}};
x={};x=_.gF((x.ytShortsSuggestedActionViewModelStaticHost=function(){return!P()},x.ytShortsSuggestedActionViewModelDynamicHost=P,x.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return P()&&y()},x.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return P()&&!y()},x.ytShortsSuggestedActionViewModelExtractOverlay=function(){return S==null?void 0:S()},x));
_.wO(function(){if(P()){var N=0,z;if((z=L().animationParams)==null?0:z.shouldExpand){var xf,K3;N=((K3=(xf=L().animationParams)==null?void 0:xf.expansionDelaySecs)!=null?K3:0)*1E3}var P4,kf=((P4=L().animationParams)==null?0:P4.shouldExpand)?setTimeout(function(){Z(!0)},N):void 0,H4,p3;
N=((H4=L().animationParams)==null?0:H4.visibilityDelaySecs)?((p3=L().animationParams)==null?NaN:p3.visibilityDelaySecs)*1E3:0;var w0=setTimeout(function(){E(!0)},N);
_.wH(function(){kf&&clearTimeout(kf);clearTimeout(w0)})}});
var G=function(N){_.Xf(N,Object.assign({},{form:{element:Q.value}}))},U=_.kO(function(){var N,z=(N=h())==null?void 0:N.onTapCommand;
z&&G(z)}),l=_.kO(function(){var N,z;
if(N=(z=H())==null?void 0:z.onTapCommand)return G(N),!1}),X=_.bc({"vertical-align":"bottom",
"border-radius":function(){var N;return P()?((N=L().defaultContent)==null?0:N.isCircleImage)?"50%":"4px":"0px"},
width:function(){var N,z,xf;return P()&&((N=L().defaultContent)==null?0:N.imageSize)?((xf=(z=L().defaultContent)==null?void 0:z.imageSize)!=null?xf:24)+"px":null},
height:function(){var N,z,xf;return P()&&((N=L().defaultContent)==null?0:N.imageSize)?((xf=(z=L().defaultContent)==null?void 0:z.imageSize)!=null?xf:24)+"px":null}}),f={};
return _.M("yt-shorts-suggested-action-view-model",{class:x,el:Q},_.M("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.M("button",{class:_.gF(function(){return P()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var N;
return(N=L().useFullRoundedBorder)!=null&&N?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!H()&&P()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":P()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var N;
return(N=L().disableFixedHeight)!=null&&N?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(f.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(D==null?void 0:D())===1},f.ytShortsSuggestedActionViewModelExtractOverlayContainer=function(){return S==null?void 0:S()},f)),
"on:click":U},_.M(_.UB,{model:{color:4}}),_.M("div",{class:_.gF(function(){return P()?T().leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.M(_.d,{cond:function(){var N;
return(N=h())==null?void 0:N.image},
then:function(N){return _.M(_.Ku,{data:N,alt:"",className:function(){return P()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:X})}}),_.M(_.d,{cond:function(){var N,z;
return(N=h())==null?void 0:(z=N.icon)==null?void 0:z.iconType},
then:function(N){return _.M(_.YO,{icon:N,active:V,className:function(){return P()?J()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.M("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.M(_.d,{cond:function(){var N;
return(N=h())==null?void 0:N.primaryText},
then:function(N){return _.M("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.M(_.kP,{text:N}))}}),_.M(_.d,{cond:function(){var N;
return(N=h())==null?void 0:N.secondaryText},
then:function(N){return _.M("div",{class:function(){return T().secondaryText()}},_.M(_.kP,{text:N}))}}))),_.M(_.d,{cond:H,
then:function(N){return _.M("div",{class:_.gF(function(){return T().trailingSection()},function(){var z,xf;
return(S==null?void 0:S())&&((xf=(z=T()).trailingSectionExtractOverlay)==null?void 0:xf.call(z))||""}),
"aria-label":function(){var z;return(z=N().a11yLabel)!=null?z:""},
"on:click":l,role:"button",tabindex:0},_.M(_.UB,{model:{color:4}}),_.M(_.YO,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"Rg");var THY=_.B(function(x){var L=x.data;var D=x.overlayDensity;var S=_.x3("yt-shorts-video-title-view-model");x=_.kO(function(Z){if(_.BX(_.w4(Z),S.value,["A".toString()]))return!1;(Z=L().truncatedTextOnTapCommand)&&_.Xf(Z);return!1});
var Q={},J={};return _.M("yt-shorts-video-title-view-model",{el:S,class:_.gF("ytShortsVideoTitleViewModelHost",(Q.ytShortsVideoTitleViewModelHostClickable=function(){return!!L().truncatedTextOnTapCommand},Q)),
"on:click":x},_.M("h2",{class:_.gF("ytShortsVideoTitleViewModelShortsVideoTitle",(J.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(D==null?void 0:D())===1},J))},_.M(_.kP,{text:function(){return L().text},
linkInheritColor:!0,noEndpoints:!1,userInput:!0,isHeadline:function(){return(D==null?void 0:D())===1}})))},"Sg");_.ezu=_.B(function(x){var L=x.data;var D=x.overlayDensity;var S=x.extractOverlay;var Q=function(){return(D==null?void 0:D())===1};
return _.M("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.M(_.Fj,{data:function(){return L().metadataItems}},{badgeViewModel:function(J){J=J.data;
return _.M("div",{class:_.gF(function(){return Q()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.M(_.G2,{data:J}))},
playerDisclosureViewModel:function(J){J=J.data;return _.M("div",{class:_.gF(function(){return Q()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.M(_.bqG,{data:J,
extractOverlay:S}))},
shortsSuggestedActionViewModel:function(J){J=J.data;return _.M("div",{class:_.gF(function(){return Q()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.M(suI,{data:J,
overlayDensity:D,extractOverlay:S}))},
reelChannelBarViewModel:function(J){J=J.data;var Z={};return _.M("div",{class:_.gF("ytReelMetapanelViewModelMetapanelItem",(Z.ytReelMetapanelViewModelExpansive=function(){return Q()},Z))},_.M(Ysl,{data:J,
overlayDensity:D}))},
reelMultiFormatLinkViewModel:function(J){J=J.data;var Z={};return _.M("div",{class:_.gF("ytReelMetapanelViewModelMetapanelItem",(Z.ytReelMetapanelViewModelExpansive=function(){return Q()},Z))},_.M(F55,{data:J,
overlayDensity:D}))},
shortsVideoTitleViewModel:function(J){J=J.data;var Z={};return _.M("div",{class:_.gF("ytReelMetapanelViewModelMetapanelItem",(Z.ytReelMetapanelViewModelExpansive=function(){return Q()},Z))},_.M(THY,{data:J,
overlayDensity:D}))},
reelSoundMetadataViewModel:function(J){J=J.data;var Z={};return _.M("div",{class:_.gF("ytReelMetapanelViewModelMetapanelItem",(Z.ytReelMetapanelViewModelExpansive=function(){return Q()},Z))},_.M(_.FWs,{data:J,
overlayDensity:D}))},
toggleButtonViewModel:function(J){J=J.data;var Z={};return _.M("div",{class:_.gF("ytReelMetapanelViewModelMetapanelItem",(Z.ytReelMetapanelViewModelExpansive=function(){return Q()},Z))},_.M(_.JT,{data:J}))}}))},"Tg");var Rzu=_.B(function(x){var L=_.ym(x,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),D=L.size,S=L.onTap,Q=L.disabled,J=L.tooltipText;return _.M("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.M(_.W9,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:D(),disabled:Q(),tooltipText:J(),onTap:S}},
iconName:x.iconType}))},"Ug"),GJq=_.B(function(x){function L(v){v.stopPropagation();
v.code==="ArrowUp"?(v.preventDefault(),k54(y.value)):v.code==="ArrowDown"?(v.preventDefault(),ptf(y.value)):v.code==="KeyM"?uFf():(v.code==="KeyK"||v.code==="Space")&&gd3(E())}
var D=_.ym(x,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});x=D.previousButtonDisabled;var S=D.nextButtonDisabled,Q=D.data,J=D.playabilityStatus,Z=D.previewThumbnail,y=_.x3("ytd-shorts-miniplayer-overlay"),E=_.ic(_.ky0),P;_.UX(function(){(P=_.Ac(y.value))&&P.addEventListener("keydown",L)});
_.wH(function(){var v;(v=P)==null||v.removeEventListener("keydown",L)});
D=function(){var v,V,h;return(v=Q())==null?void 0:(V=v.reelPlayerOverlayRenderer)==null?void 0:(h=V.likeButton)==null?void 0:h.likeButtonRenderer};
return _.M("ytd-shorts-miniplayer-overlay",{el:y,class:"ytdShortsMiniplayerOverlayHost"},_.M("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.bc({"background-image":function(){var v=Z();return v?'url("'+_.jn(v.thumbnails)+'")':""}})}),_.M("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.M("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.M(Rzu,{iconType:function(){var v=E();
return v===2||v===-1||v===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){gd3(E())},
tooltipText:function(){var v=E();return v===1||v===3?_.p6("PLAYER_LABEL_PAUSE"):_.p6("PLAYER_LABEL_PLAY")}}),_.M(_.mN$,{orientation:"horizontal_right"})),_.M("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.M(Rzu,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:x,onTap:function(){k54(y.value)},
tooltipText:_.p6("PREVIOUS_VIDEO_LABEL")}),_.M(Rzu,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:S,onTap:function(){ptf(y.value)},
tooltipText:_.p6("NEXT_VIDEO_LABEL")}),_.u("web_shorts_pip_like_button")?_.M("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.M(mf3,{buttonTooltipPosition:"left",data:D,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.M("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.M(_.d,{cond:function(){var v,V;return _.g((v=Q())==null?void 0:(V=v.reelPlayerOverlayRenderer)==null?void 0:V.metapanel,
_.Be_)},
then:function(v){return _.M("div",{class:_.gF("ytdShortsMiniplayerOverlayInteractive")},_.M(_.ezu,{data:v}))}})),_.M("div",{class:_.gF("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var v;return!((v=Q())==null||!v.adsOverlay)||J()&&!EW4(J())}},_.M("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.M(_.pBq,null)))),_.M(_.d,{cond:function(){var v=Q(),V,h;
v=_.g(v==null?void 0:(V=v.adsOverlay)==null?void 0:(h=V.fulfillmentContent)==null?void 0:h.fulfilledLayout,FeG);return _.g(v==null?void 0:v.renderingContent,COQ)},
then:function(v){return _.M("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.M(QyW,{data:v}))}}))},"Wg");var m2f=_.B(function(){var x=_.O(_.HB(new _.b8(NaN,NaN),void 0,"hq9Bjf")),L=x.next().value,D=x.next().value;x=_.O(_.HB(!1,void 0,"Mu3aZc"));var S=x.next().value,Q=x.next().value,J=_.O(_.HB(!1,void 0,"LGtoFb"));x=J.next().value;var Z=J.next().value,y=_.yY().resolve(_.iy).miniplayerPropSignalMap[0],E=y.data,P=y.shortsData,v=y.nextButtonDisabled,V=y.shortsPreviewThumbnail,h=y.previousButtonDisabled,H=y.externalPlaylistData;J=y.toastData;var k=y.playabilityStatus,T=y.isDisabled,G=y.playerVe,U=y.closeVe;
y=_.ic(_.E3);_.t7("yt-pip-window-resized",function(N){D(N)});
_.t7("yt-activate-pip-miniplayer",function(){return _.I(function(N){Z(!0);_.Y2(N)})});
var l=function(){var N;return!((N=H())==null||!N.contents)&&S()},X=function(){var N=L(),z=!!E(),xf=l();
N=N.clone();z&&(N.height-=76);xf&&(N.height-=285);return N},f=function(){Q(!S())};
_.Us(function(){var N=G(),z=_.A3(11),xf=_.qu(11);z&&xf&&N&&(_.XI(z,xf,N),xf=U())&&(_.c$(z,N,[xf]),_.t_(z,[xf]))},"fHkmfb");
return _.M("ytd-pip-container",{class:"ytdPipContainerHost"},_.M(_.d,{cond:x,then:function(){return _.M(_.WgX,{isDisabled:T,playabilityStatus:k,size:X})}}),_.M(_.d,{cond:E,
then:function(){return _.M(_.wfX,{data:E,expanded:S,onExpandClick:f,playlistData:H})}}),_.M(_.d,{cond:l,
then:function(){return _.M("div",{class:"ytdPipContainerPlaylistPanel"},_.M(_.kNW,{data:H,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.M(_.d,{cond:y,
then:function(){return _.M(GJq,{data:P,nextButtonDisabled:v,previousButtonDisabled:h,playabilityStatus:k,previewThumbnail:V})}}),_.M("div",{class:"ytdPipContainerToast"},_.M(_.q7g,{toastData:J})))},"Yg");var go=function(x,L){var D=this;this.pipController=x;this.JSC$18789_clientRoot=L;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=Blp();this.watchPipEnabled=_.u("web_watch_pip");this.shortsPipEnabled=_.u("web_shorts_pip");this.JSC$18789_watchWhileEnabled=_.u("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;_.oQ(_.Jd(),VP0,function(S){D.isSingleOptionSurveyActive=S});
this.JSC$18789_onPlayerPlayVideo=this.JSC$18789_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);_.cI(_.aR.getInstance(),this.miniplayerServiceActionMap,this.JSC$18789_clientRoot);x.pictureInPictureSupported()&&_.Uh("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},Yzh,rIY,W5Y,NHI,iql,$nB;
go.prototype.handleMediaSessionPipActivation=function(){var x=this,L;return _.I(function(D){_.ie().mediaSessionPipActivation=!0;L=_.yY().resolve(_.KX);return L.isOnWatch()&&x.watchPipEnabled?(_.ie().watchPipActivation=!0,_.Cmq(x,L.data),D.jumpTo(0)):L.isOnShorts()&&x.shortsPipEnabled?(_.ie().shortsPipActivation=!0,_.lK$(x),D.jumpTo(0)):x.isMiniplayerActive()&&x.watchPipEnabled&&!x.watchWhileMode?D.yield(UN9(x),0):D.jumpTo(0)})};
var UN9=function(x){var L,D,S,Q;return _.I(function(J){if(J.nextAddress==1)return L=!x.miniplayerToPipMode,D=x.playerElement,S=x.miniplayerData,Q=x.watchResponse,J.yield(x.deactivate(),2);if(J.nextAddress!=3)return L?(_.ie().mediaSessionPipActivation=!0,_.ie().watchPipActivation=!0):_.ie().miniplayerButtonActivation=!0,J.yield(x.activate(D,S,Q),3);x.miniplayerToPipMode=L;_.Y2(J)})};
go.prototype.onDownloadedVideoDeleted=function(x){var L,D=_.g((L=this.miniplayerData)==null?void 0:L.watchEndpoint,_.L6),S,Q;D&&((S=this.watchResponse)==null?void 0:(Q=S.playerResponse)==null?void 0:Q.offlineState)!==void 0&&(L=D.videoId)&&x&&L===x&&this.close()};
go.prototype.onShowMiniplayerCommand=function(x){var L=this,D,S,Q,J,Z,y,E,P,v,V,h;return _.I(function(H){switch(H.nextAddress){case 1:return D=_.g(x,YFW),Q=(S=D)==null?void 0:S.miniplayerCommand,J=_.g(Q,_.L6),Q&&J&&!L.active?H.yield(_.xr.getInstance(),2):H.return();case 2:return Z=H.yieldResult,H.yield((y=Z)==null?void 0:y.get("yt-miniplayer-shown-video-id"),3);case 3:E=H.yieldResult;P=J.videoId;if(!P||E===P)return H.return();v=_.yY().resolve(_.KX);if(v.isOnWatch())return _.qy(Error("Oj")),H.return();
V={channelItem:{externalId:btoa(P)}};L.readyToResumeVe=_.VC(121253,void 0,void 0,V);_.ie().showMiniplayerCommandActivation=!0;return H.yield(_.rUG(L,Q,!0),4);case 4:return L.active&&(_.kC(L,{readyToResumeVe:L.readyToResumeVe,isReadyToResume:!0}),L.isReadyToResume=!0),H.yield((h=Z)==null?void 0:h.set("yt-miniplayer-shown-video-id",J.videoId),5);case 5:L.readyToResumeVe=void 0,_.Y2(H)}})};
go.prototype.init=function(x){this.miniplayerEl?_.qy(new _.RZ("MiniplayerService already initialized.")):this.miniplayerEl=x};
go.prototype.isInitialized=function(){var x=!!this.miniplayerEl;x||_.qy(new _.RZ("MiniplayerService used before initialized."));return x};
_.Cmq=function(x,L){if(x.isInitialized()){var D=_.wV(L.response,!1,L.playerResponse),S=_.yY().resolve(_.KX).getPlayerFromWatch();_.ie().currentEndpoint=D.watchEndpoint||null;x.activate(S,D,L)}};
_.lK$=function(x){if(x.isInitialized()){var L=_.yY().resolve(_.KX).getPlayerFromShorts();x.activate(L)}};
Yzh=function(x,L){var D;(D=!x.isInitialized())||(D=_.yY().resolve(_.KX).isOnWatch()&&x.watchPipMode,D=!(x.isMiniplayerActive()&&(_.ie().userActivation||_.ie().lockupActivation||D)));if(D)return!1;wBq(x,L)?_.ht(x):$nB(x,L);return x.watchPipMode?!_.yY().resolve(_.KX).isOnWatch():!0};
go.prototype.isMiniplayerActive=function(){return this.active};
var wBq=function(x,L){var D;L=(D=_.g(L,_.L6))==null?void 0:D.videoId;var S,Q;x=(Q=_.g((S=x.miniplayerData)==null?void 0:S.watchEndpoint,_.L6))==null?void 0:Q.videoId;return L!=null&&L===x};
go.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.MF(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.dg(this.miniplayerEl,"yt-navigate-home-action"))};
_.rUG=function(x,L,D,S){D=D===void 0?!1:D;var Q,J,Z;return _.I(function(y){switch(y.nextAddress){case 1:if(x.active){y.jumpTo(2);break}Q=_.yY().resolve(_.KX);if(Z=(J=x.playerElement)!=null?J:Q.getPlayerFromWatch()){y.jumpTo(3);break}return y.yield(_.yY().resolve(_.d4),4);case 4:Z=Q.getPlayerFromWatch();case 3:if(!Z){_.qy(Error("Qj"));y.jumpTo(2);break}return y.yield(x.activate(Z,S),2);case 2:return x.active?y.yield($nB(x,L,D),0):y.return()}})};
go.prototype.activate=function(x,L,D){var S=this,Q,J,Z,y,E,P,v,V,h;return _.I(function(H){switch(H.nextAddress){case 1:if(!S.isInitialized())return H.return();if(!x)return _.qy(Error("Qj")),H.return();if(_.iD_()||S.isMiniplayerActive())var k=!0;else k=_.ie().watchPipActivation||_.ie().watchWhileActivation,_.yY().resolve(_.KX).isOnWatch()&&!k?(_.qy(new _.RZ("miniplayer activated on watch page")),k=!0):k=_.ie().watchWhileActivation?S.userDeactivatedWatchWhile||!!document.pictureInPictureElement||fXf():
!1;if(k)return NNR(),H.return();Q=_.ie().mediaSessionPipActivation;J=_.ie().shortsPipActivation;Z=_.ie().watchPipActivation;E=(y=_.ie().watchWhileActivation)||Z;P=Z||J;if(!S.pictureInPictureEnabled()||!P){H.jumpTo(2);break}return H.yield(BH9(S,Q),3);case 3:if(!H.yieldResult)return _.qy(Error("Pj")),NNR(),H.return();case 2:return S.setActive(!0),S.watchResponse=D,S.playerElement=x,S.updateMiniplayerData(L),H.yield(W5Y(S,x),4);case 4:if(!S.active)return _.qy(new _.RZ("miniplayer deactivated during activation")),
S.removePlayerListeners(),H.return();k=_.yY().resolve(_.d6);k.addEventListener("yt-navigate",_.p$(S,S.onPlaylistNavigate));k.addEventListener("yt-playlist-data-updated",_.p$(S,S.JSC$18789_onPlaylistDataUpdated));S.JSC$18789_onPlaylistDataUpdated();NNR();S.JSC$18789_watchWhileEnabled&&_.qsG(S,y);S.pictureInPictureEnabled()&&S.shortsPipEnabled&&(S.shortsPipMode=J,_.Jd().dispatch(efr(S.shortsPipMode)));S.pictureInPictureEnabled()&&S.watchPipEnabled&&(S.watchPipMode=Z,_.aXn(S.handleMediaSessionPipActivation));
S.player&&(v=S.player.getPlayerState(),V=v===1,_.Jd().dispatch(q_H(v)),_.P$(S.miniplayerEl,"yt-miniplayer-play-state-changed",[V]),_.ie().isVideoPlaying=V);_.P$(S.miniplayerEl,"yt-miniplayer-endpoint-changed");AIl(S);_.$NW(S);if(S.shortsPipMode||S.watchPipMode)H=H.yield(_.dg(S.miniplayerEl,"yt-activate-pip-miniplayer")[0],6);else{k=H.yield;var T=_.dg(S.miniplayerEl,"yt-activate-miniplayer",[E])[0];H=k.call(H,T,6)}return H;case 6:if(S.watchResponse){k=S.getScreenLayer();T=_.A3(0);var G=LD4(0);T&&G&&
(_.rr(T,G,k),k===0&&tpN(void 0,0))}rIY(S);NHI(S,!0);(h=S.getPlayerElement())==null||h.focusOnPlayer();_.Y2(H)}})};
go.prototype.updateMiniplayerData=function(x){this.miniplayerData=x;_.kC(this,{data:x})};
_.$NW=function(x){var L,D,S=((L=x.miniplayerData)==null?void 0:(D=L.miniplayerRenderer)==null?void 0:D.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";L=x.watchWhileMode||x.watchPipMode?S&&!_.yY().resolve(_.KX).isOnWatch():S;_.kC(x,{isDisabled:L});var Q,J;D=_.g((Q=x.miniplayerData)==null?void 0:(J=Q.miniplayerRenderer)==null?void 0:J.minimizedEndpoint,_.fS);L&&D&&_.yY().resolve(_.SE).openSheet({openPopupActionCommand:{openPopupAction:D}},x.miniplayerEl)};
rIY=function(x){if(x.watchResponse&&!iql(x)){var L,D=(L=x.watchResponse.playerResponse)==null?void 0:L.trackingParams;D&&(_.kC(x,{expandVe:_.VC(35989),closeVe:_.VC(34699),readyToResumeCloseVe:_.VC(131070),repositionVe:_.VC(226204),resizeVe:_.VC(226205)}),_.kC(x,{playerVe:_.CI(D)}))}};
W5Y=function(x,L){return _.I(function(D){if(D.nextAddress==1)return L.preparePlayer(),D.yield(L.getPlayerPromise(),2);x.player=D.yieldResult;x.player&&(x.player.addEventListener("onPlayVideo",x.JSC$18789_onPlayerPlayVideo),x.player.addEventListener("onCloseMiniplayer",x.onPlayerCloseMiniplayer),x.player.addEventListener("onExpandMiniplayer",x.onPlayerExpandMiniplayer),x.player.addEventListener("onStateChange",x.onPlayerStateChange));_.Y2(D)})};
_.K=go.prototype;_.K.JSC$18789_onPlayerPlayVideo=function(x){var L=x.sessionData&&"autonav"in x.sessionData,D;x.sessionData&&x.sessionData.itct&&(D=x.sessionData.itct);var S=x.watchEndpoint;L=S&&L?_.RIO(S,D):_.Zo(x.videoId,x.listId||void 0,D);x.sessionData&&_.J_(_.g(L.commandMetadata,_.gg).url,x.sessionData);$nB(this,L)};
_.K.onPlayerExpandMiniplayer=function(){_.ht(this)};
_.K.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.K.onPlayerStateChange=function(){if(this.player){var x=this.player.getPlayerState(),L=x===1;_.Jd().dispatch(q_H(x));_.Jd().dispatch(_.re_(x));_.P$(this.miniplayerEl,"yt-miniplayer-play-state-changed",[L]);_.ie().isVideoPlaying=L;if(x===0){L=!_.Yh.getInstance().isAutoplaySetExplicitly();var D,S,Q,J,Z,y,E=(D=this.watchResponse.response)==null?void 0:(S=D.contents)==null?void 0:(Q=S.twoColumnWatchNextResults)==null?void 0:(J=Q.autoplay)==null?void 0:(Z=J.autoplay)==null?void 0:(y=Z.autoplayExplicitChoiceDialogRenderer)==
null?void 0:y.confirmDialogRenderer;L&&E&&this.player.setAutonavState(1)}x===0&&this.watchWhileMode&&this.deactivate()}};
_.K.onPlaylistNavigate=function(x,L){var D=this,S,Q,J,Z,y,E,P;return _.I(function(v){if(v.nextAddress==1){if(!_.g(L.endpoint,_.L6))return v.return();_.ie().currentEndpoint=L.endpoint;_.P$(D.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.yY().resolve(_.KX).isOnWatch()&&(D.watchWhileMode||D.watchPipMode))return v.return();x.stopPropagation();(J=(Q=_.g((S=L.endpoint)==null?void 0:S.commandMetadata,_.gg))==null?void 0:Q.url)&&L.tempData&&!_.wk.isEmpty(L.tempData)&&_.J_(J,L.tempData);Z={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};y=new rbh(function(){return D.getPlayerElement()},Z,{layer:D.getScreenLayer()});
E=function(V){y.processChunk({endpoint:L.endpoint,data:V})};
fKq(D);D.miniplayerFetchRequest=oVX(D,L.endpoint,E);_.HH(v,2);return v.yield(D.miniplayerFetchRequest,4)}if(v.nextAddress!=2)return P=v.yieldResult,aKG(D,P),_.nH(v,0);_.mW(v);_.Y2(v)})};
_.K.JSC$18789_onPlaylistDataUpdated=function(){var x=_.yY().resolve(_.d6).getPlaylistData();this.hasPlaylistData=!!x;_.kC(this,{externalPlaylistData:x||{}})};
_.K.close=function(x){if(this.isInitialized())if(x){if(!((this.watchWhileMode||this.watchPipMode)&&_.yY().resolve(_.KX).isOnWatch()||this.shortsPipMode)){var L;(L=this.getPlayerElement())==null||L.stop()}this.deactivate()}else _.hY().closeMiniplayer(this.miniplayerEl)};
_.K.deactivate=function(x){var L=this,D,S,Q,J;return _.I(function(Z){if(Z.nextAddress==1){if(!L.isInitialized()||!L.active)return Z.return();L.setActive(!1);fKq(L);(D=!!x&&wBq(L,x))&&L.isSingleOptionSurveyActive&&_.dg(L.miniplayerEl,"yt-show-watch-page-survey",[L.isSingleOptionSurveyActive]);return Z.yield(zz5(L),2)}if(Z.nextAddress!=3){NHI(L,!1);L.isReadyToResume=!1;L.watchResponse=void 0;L.updateMiniplayerData(void 0);L.shortsPipMode&&(L.shortsPipMode=!1,_.Jd().dispatch(efr(L.shortsPipMode)),JBl(L.pipController),
(S=L.player)==null||S.setInternalSize(NaN,NaN));L.watchPipMode&&(L.watchPipMode=!1,JBl(L.pipController));(Q=L.watchWhileMode)&&_.qsG(L,!1);L.removePlayerListeners();var y=_.yY().resolve(_.d6);y.removeEventListener("yt-navigate",_.p$(L,L.onPlaylistNavigate));y.removeEventListener("yt-playlist-data-updated",_.p$(L,L.JSC$18789_onPlaylistDataUpdated));_.ie().currentEndpoint=null;_.P$(L.miniplayerEl,"yt-miniplayer-endpoint-changed");L.playerElement=null;NNR();if(L.shortsPipMode||L.watchPipMode)Z=Z.jumpTo(3);
else{y=Z.yield;var E=_.dg(L.miniplayerEl,"yt-deactivate-miniplayer",[D,Q])[0];Z=y.call(Z,E,3)}return Z}(J=L.player)==null||J.setInternalSize(NaN,NaN);L.player=null;_.Y2(Z)})};
var zz5=function(x){var L;return _.I(function(D){L=_.yY().resolve(_.KX);return x.shortsPipMode?D.yield(L.movePlayerToShorts(x.playerElement),0):D.yield(L.movePlayerToWatch(x.playerElement),0)})};
go.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$18789_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
go.prototype.setActive=function(x){this.active=x;this.isSingleOptionSurveyActive?_.dg(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.dg(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.Jd().dispatch(_.MU({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.qsG=function(x,L){x.watchWhileMode=L;_.kC(x,{watchWhile:L})};
NHI=function(x,L){if(!iql(x))if(x.shortsPipMode||x.watchPipMode){var D;(D=x.player)==null||D.setDocumentPictureInPicture(L)}else{var S;(S=x.player)==null||S.setMinimized(L)}};
iql=function(x){return x.watchWhileMode&&_.u("kevlar_watch_while_counterfactual")};
_.ht=function(x){var L;return _.I(function(D){switch(D.nextAddress){case 1:if(!x.isInitialized())return D.return();_.HH(D,2);return D.yield(x.miniplayerFetchRequest,4);case 4:_.nH(D,3);break;case 2:_.mW(D);case 3:x.watchResponse&&x.miniplayerData&&x.miniplayerData.watchEndpoint?(L={url:x.watchResponse.url,endpoint:x.miniplayerData.watchEndpoint,data:x.watchResponse,miniplayer:!0},_.MF(x.miniplayerEl,"yt-navigate-cache",L)):x.miniplayerData&&x.miniplayerData.watchEndpoint&&_.MF(x.miniplayerEl,"yt-navigate",
{endpoint:x.miniplayerData.watchEndpoint}),_.Y2(D)}})};
$nB=function(x,L,D){var S,Q,J,Z;return _.I(function(y){if(y.nextAddress==1){if(wBq(x,L))return y.return();_.ie().currentEndpoint=L;_.P$(x.miniplayerEl,"yt-miniplayer-endpoint-changed");_.P$(x.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.ie().isVideoPlaying=!1;S={clientParams:{miniplayer:!0,autoSaveToQueue:!D}};Q=new rbh(function(){return x.getPlayerElement()},S,{layer:x.getScreenLayer(),
parentLayer:0},void 0,x.readyToResumeVe);J=function(E){var P,v,V=Object.assign({},(P=E.playerResponse)==null?void 0:(v=P.playerConfig)==null?void 0:v.playbackStartConfig,{startPaused:!0}),h;D&&((h=E.playerResponse)==null?0:h.playerConfig)&&(E.playerResponse.playerConfig.playbackStartConfig=V);Q.processChunk({endpoint:L,data:E})};
fKq(x);x.miniplayerFetchRequest=oVX(x,L,J);_.HH(y,2);return y.yield(x.miniplayerFetchRequest,4)}if(y.nextAddress!=2)return Z=y.yieldResult,aKG(x,Z),_.nH(y,0);_.mW(y);_.Y2(y)})};
go.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var fKq=function(x){x.miniplayerFetchRequest&&(x.miniplayerFetchRequest.cancel&&x.miniplayerFetchRequest.cancel("Active request obsolete"),x.miniplayerFetchRequest=null)},oVX=function(x,L,D){var S=_.Xe.instance,Q,J=(Q=_.g(L.commandMetadata,_.gg))==null?void 0:Q.url,Z;
Q=!J||_.u("disable_miniplayer_tempdata")?{}:(Z=As0(J))!=null?Z:{};return aP(S,L,Q,window.location.href,"watch",function(y,E){D(E)},function(y){return y!==x.miniplayerFetchRequest})},aKG=function(x,L){var D;
_.I(function(S){if(!L)return S.return();x.watchResponse=L;rIY(x);AIl(x);D=_.wV(L.response,!1,L.playerResponse);if(x.isMiniplayerActive()){L.response&&(x.playerElement.watchNextData=L.response);var Q=_.wk.getValueByKeys.apply(_.wk,[L].concat(_.lP(tI2)));_.wk.getValueByKeys.apply(_.wk,[L].concat(_.lP(Q0_)))&&Q&&_.yY().resolve(_.d6).setAutoplayRenderer(Q);if(Q)if(_.u("kevlar_is_pupi_enabled")){var J,Z,y,E,P,v=((J=L.response)==null?0:(Z=J.playerOverlays)==null?0:(y=Z.playerOverlayRenderer)==null?0:(E=
y.autonavToggle)==null?0:(P=E.autoplaySwitchButtonRenderer)==null?0:P.enabled)?2:1;_.Yh.getInstance().setState(v,!1,!1)}else J=xYN()?2:1,(v=x.player)==null||v.setAutonavState(J);x.updateMiniplayerData(D);_.$NW(x)}_.Y2(S)})},AIl=function(x){var L,D,S=(L=x.watchResponse)==null?void 0:(D=L.playerResponse)==null?void 0:D.playabilityStatus,Q;
L=S==null?void 0:(Q=S.miniplayer)==null?void 0:Q.miniplayerRenderer;(L==null?void 0:L.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&L.minimizedEndpoint&&_.jq(x.miniplayerEl,[L.minimizedEndpoint]);_.kC(x,{playabilityStatus:S})};
go.prototype.openToast=function(x,L){_.kC(this,{toastData:{data:x,label:L}})};
_.kC=function(x,L){(0,x.miniplayerPropSignalMap[1])(L)};
go.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var x;return this.playerElement?this.playerElement:(x=_.jr(this.miniplayerEl).querySelector("#player-container"))==null?void 0:x.firstElementChild};
go.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var BH9=function(x,L){L=L===void 0?!1:L;var D,S,Q,J,Z,y,E;return _.I(function(P){if(P.nextAddress==1){D=navigator.userActivation.isActive||L;if(!D||!x.pictureInPictureSupported())return P.return(!1);S=XBu(x);Q=S.width;J=S.height;return P.yield(x.pipController.openWindow({width:Q,height:J}),2)}Z=P.yieldResult;y=x.pipController.getWindow();if(!y||!Z)return P.return(!1);y.document.body.style.overflow="hidden";E=bQf(y);KWG(x.pipController,function(){cIW(x);E()});
return P.return(!0)})},XBu=function(x){var L=_.ie().shortsPipActivation,D,S;
x=L?.5625:(S=(D=x.player)==null?void 0:D.getVideoAspectRatio())!=null?S:16/9;D=Math.min(window.innerWidth,window.innerHeight)/2;L=L?0:76;return x>1?new _.b8(D,L+D/x):new _.b8(D*x,L+D)},cIW=function(x){var L;
_.I(function(D){L=_.yY().resolve(_.KX);return L.isOnWatch()&&x.watchPipMode||L.isOnShorts()&&x.shortsPipMode?D.yield(x.deactivate(),0):x.miniplayerToPipMode?D.yield(UN9(x),0):x.watchPipMode?D.yield(_.ht(x),0):D.jumpTo(0)})};
go.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.J3.Object.defineProperties(go.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
go[IZ]=[OZW,gkd];var nV$="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(" "),
t$g="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(" "),x9W="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
LrY="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var D9u=null;var SXu={},Q1u=(SXu.initialized={priority:10,callback:function(x){var L=_.yY();L.addProvider({provide:qsW,useClass:ycX});L.addProvider({provide:_.Z8Y,useFactory:function(){return new AId}});
L.addProvider({provide:OA,useValue:_.$6("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});L.addProvider({provide:L3q,useValue:5184E6});L.addProvider({provide:mqX,useValue:_.RP()});L.addProvider({provide:Gil,useClass:pQQ});L.addProvider({provide:Vf,useClass:Vf});L.addProvider({provide:_.d4,useFactory:function(){return Rfi.promise}});
L.addProvider({provide:_.C0G,useFactory:function(){return _.GWB.promise}});
L.addProvider({provide:Rth,useValue:function(){var E;return((E=_.Zs())==null?void 0:E.getPlayer())||null}});
var D={};L.addProvider((D.provide=_.W3,D.useFactory=function(E,P){return function(){return GYp(E,P)}},D[IZ]=[OA,
L3q],D));D={};L.addProvider((D.provide=_.WV,D.useClass=Xsq,D[IZ]=[OA,L3q],D));D={};L.addProvider((D.provide=_.$2G,D.useClass=xe$,D[IZ]=[_.WV],D));L.addProvider({provide:nR,useFactory:_.Jd});L.addProvider({provide:yG,useFactory:_.Jd});L.addProvider({provide:$eG,useFactory:_.Jd});L.addProvider({provide:EMd,useFactory:_.Jd});L.addProvider({provide:_.MP,useFactory:_.Jd});L.addProvider({provide:r6,useValue:_.p7});L.addProvider({provide:Dpg,useClass:NYf});L.addProvider({provide:YRu,useClass:b25});L.addProvider({provide:mj,
useClass:mj});L.addProvider({provide:NI,useClass:NI});L.addProvider({provide:io,useClass:io});L.addProvider({provide:oO,useClass:oO});L.addProvider({provide:RV,useClass:RV});L.addProvider({provide:JO,useClass:JO});L.addProvider({provide:ny,useClass:ny});L.addProvider({provide:_.W3s,useValue:bwI});L.addProvider({provide:_.QT,useFactory:_.sk});L.addProvider({provide:rm,useFactory:_.FI});D={};L.addProvider((D.provide=mdw,D.useFactory=function(E){return function(P){var v=v===void 0?{}:v;var V,h,H=(h=
_.g((V=P.endpoint)==null?void 0:V.commandMetadata,_.gg))==null?void 0:h.rootVe;if(H){var k,T;if(V=P.previousCsn||((T=_.g((k=P.endpoint)==null?void 0:k.commandMetadata,SjW))==null?void 0:T.parentCsn)){var G=G===void 0?{}:G;if(V!==_.A3(G.layer)||H!==LD4(G.layer))KDp(V,G.cttAuthInfo,G.layer||0),tpN(V,G.layer||0),k=G.layer||0,_.Au(xcN(k===void 0?0:k),H);v.parentCsn=V}P.endpoint&&V?bDi(E,P.endpoint,v):_.we(E,H,void 0,v);var U;((U=P.response)==null?0:U.trackingParams)&&E.graftServerVe(P.response.trackingParams);
var l;((l=P.playerResponse)==null?0:l.trackingParams)&&E.graftServerVe(P.playerResponse.trackingParams);var X;((X=P.reelWatchSequenceResponse)==null?0:X.trackingParams)&&E.graftServerVe(P.reelWatchSequenceResponse.trackingParams)}}},D[IZ]=[_.QT],D));
D={};L.addProvider((D.provide=N8s,D.useClass=rwI,D[IZ]=[r6,_.MP],D));D={};L.addProvider((D.provide=Xa,D.useClass=Xa,D[IZ]=[_.d4,_.MP],D));D={};L.addProvider((D.provide=fC,D.useClass=fC,D[IZ]=[yG,_.E2],D));L.addProvider({provide:_.nzg,useClass:yBW});D={};L.addProvider((D.provide=_.Dk,D.useClass=LWX,D[IZ]=[_.nzg,_.ZN(_.Jy)],D));L.addProvider({provide:_.H_,useClass:gXG});D={};L.addProvider((D.provide=u2,D.useClass=u2,D[IZ]=[_.H_,_.d4,_.i1],D));L.addProvider({provide:_.SE,useClass:tk});L.addProvider({provide:_.vXW,
useClass:rB$});L.addProvider({provide:_.Qw,useClass:c3});_.u("enable_ai_companion")&&(L.addProvider({provide:_.Jy,useClass:QT9}),L.addProvider({provide:_.HA2,useClass:wKQ}),L.addProvider({provide:_.cws,useClass:Xi5}));D={};L.addProvider((D.provide=_.W1,D.useClass=ZZ$,D[IZ]=[_.W1],D));L.addProvider({provide:_.Ug,useClass:H2$});L.addProvider({provide:Sy,useClass:Sy});L.addProvider({provide:bb,useClass:bb});L.addProvider({provide:yK,useClass:yK});D={};L.addProvider((D.provide=Ns,D.useClass=Ns,D[IZ]=
[_.E2,_.i1],D));L.addProvider({provide:hF,useClass:nC});D={};L.addProvider((D.provide=gm,D.useClass=gm,D[IZ]=[_.SE,hF],D));D={};L.addProvider((D.provide=jy,D.useClass=jy,D[IZ]=[_.SE],D));_.u("web_enable_feedback_endpoint_resolver")&&(D={},L.addProvider((D.provide=th,D.useClass=th,D[IZ]=[nR,cQ],D)),L.addProvider({provide:cQ,useClass:ahX}));_.u("web_enable_feedback_endpoint_resolver_batch_2")&&(D={},L.addProvider((D.provide=Lg,D.useClass=Lg,D[IZ]=[nR],D)),D={},L.addProvider((D.provide=xy,D.useClass=
xy,D[IZ]=[cQ],D)));D={};L.addProvider((D.provide=H1,D.useClass=H1,D[IZ]=[_.Qw,hF],D));D={};L.addProvider((D.provide=dm,D.useClass=dm,D[IZ]=[_.Qw],D));D={};L.addProvider((D.provide=ub,D.useClass=ub,D[IZ]=[_.i1,_.Dk],D));D={};L.addProvider((D.provide=VK,D.useClass=VK,D[IZ]=[_.i1,_.QT],D));L.addProvider({provide:zH,useClass:zH});D={};L.addProvider((D.provide=$y,D.useClass=$y,D[IZ]=[nR],D));L.addProvider({provide:yU,useClass:yU});L.addProvider({provide:Z0,useClass:Z0});D={};L.addProvider((D.provide=Er,
D.useClass=Er,D[IZ]=[nR],D));D={};L.addProvider((D.provide=MW,D.useClass=MW,D[IZ]=[_.i1,nR],D));D={};L.addProvider((D.provide=dp,D.useClass=dp,D[IZ]=[nR],D));D={};L.addProvider((D.provide=P_,D.useClass=P_,D[IZ]=[nR],D));D={};L.addProvider((D.provide=P1,D.useClass=P1,D[IZ]=[_.Dk],D));D={};L.addProvider((D.provide=x1,D.useClass=x1,D[IZ]=[_.QT],D));D={};L.addProvider((D.provide=Ky,D.useClass=Ky,D[IZ]=[oL],D));D={};L.addProvider((D.provide=Or,D.useClass=Or,D[IZ]=[oL],D));L.addProvider({provide:SY,useClass:SY});
L.addProvider({provide:QU,useClass:QU});L.addProvider({provide:tF,useClass:tF});D={};L.addProvider((D.provide=ky,D.useClass=ky,D[IZ]=[_.Dk,_.E2],D));L.addProvider({provide:Kg,useClass:Kg});D={};L.addProvider((D.provide=v1,D.useClass=v1,D[IZ]=[_.i1,_.Dk],D));L.addProvider({provide:IL,useClass:IL});D={};L.addProvider((D.provide=qH,D.useClass=qH,D[IZ]=[nR,_.i1,_.W1],D));D={};L.addProvider((D.provide=wm,D.useClass=wm,D[IZ]=[_.i1,_.E2],D));L.addProvider({provide:PaG,useValue:i_N});L.addProvider({provide:uvd,
useValue:ig3});L.addProvider({provide:B1,useClass:B1});D={};L.addProvider((D.provide=UA,D.useClass=UA,D[IZ]=[nR],D));D={};L.addProvider((D.provide=AF,D.useClass=AF,D[IZ]=[_.Ug,_.E2],D));D={};L.addProvider((D.provide=D2,D.useClass=D2,D[IZ]=[_.E2],D));L.addProvider({provide:XS,useFactory:function(){return new XS(_.Jd())}});
L.addProvider({provide:fDw,useFactory:_.Bq.getInstance});D={};L.addProvider((D.provide=Z2,D.useClass=Z2,D[IZ]=[OA,fDw,_.E2],D));L.addProvider({provide:QK,useClass:QK});L.addProvider({provide:iK,useClass:iK});L.addProvider({provide:oo,useClass:oo});L.addProvider({provide:_.fR,useClass:_.fR});L.addProvider({provide:VU,useClass:VU});D={};L.addProvider((D.provide=RL,D.useClass=RL,D[IZ]=[yG],D));D={};L.addProvider((D.provide=mT,D.useClass=mT,D[IZ]=[_.E2],D));D={};L.addProvider((D.provide=GH,D.useClass=
GH,D[IZ]=[_.E2],D));D={};L.addProvider((D.provide=Cg,D.useClass=Cg,D[IZ]=[_.E2],D));_.u("web_enable_prefetching_videos_on_home")&&(L.addProvider({provide:iX,useClass:iX}),L.addProvider({provide:Ep,useClass:Ep}));D={};L.addProvider((D.provide=v_,D.useClass=v_,D[IZ]=[_.E2],D));L.addProvider({provide:ao,useClass:ao});D={};L.addProvider((D.provide=X$,D.useClass=X$,D[IZ]=[_.i1,_.E2],D));D={};L.addProvider((D.provide=zI,D.useClass=zI,D[IZ]=[_.E2],D));D={};L.addProvider((D.provide=Mv,D.useClass=Mv,D[IZ]=
[_.i1,_.E2],D));L.addProvider({provide:I5,useClass:I5});L.addProvider({provide:sA,useClass:sA});D={};L.addProvider((D.provide=F$,D.useClass=F$,D[IZ]=[yG,_.E2],D));L.addProvider({provide:TH,useClass:TH});D={};L.addProvider((D.provide=k1,D.useClass=k1,D[IZ]=[yG,_.E2,_.i1],D));D={};L.addProvider((D.provide=py,D.useClass=py,D[IZ]=[_.E2],D));D={};L.addProvider((D.provide=gp,D.useClass=gp,D[IZ]=[_.E2,_.i1],D));D={};L.addProvider((D.provide=lb,D.useClass=lb,D[IZ]=[_.d4],D));D={};L.addProvider((D.provide=
ey,D.useClass=ey,D[IZ]=[_.d4],D));L.addProvider({provide:fg,useClass:fg});L.addProvider({provide:aL,useClass:aL});L.addProvider({provide:IX,useClass:IX});L.addProvider({provide:c1,useClass:c1});L.addProvider({provide:ib,useClass:ib});L.addProvider({provide:EA,useClass:EA});L.addProvider({provide:NH,useClass:NH});_.u("kevlar_enable_mss_lazy_load")&&L.addProvider({provide:_.oP,useClass:i8G});L.addProvider({provide:_.aO,useClass:LN});L.addProvider({provide:be,useFactory:function(){return _.aR.getInstance()}});
L.addProvider({provide:q5Y,useFactory:ix0});L.addProvider({provide:oL,useFactory:function(){return _.xr.getInstance()}});
L.addProvider({provide:kWh,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});D={};L.addProvider((D.provide=_.oV,D.useClass=_.oV,D[IZ]=[_.d4,_.E2,_.QT,q5Y,oL,be,kWh,r6],D));L.addProvider({provide:_.iM,useClass:KMR});L.addProvider({provide:_.Suq,useClass:DqI});D={};L.addProvider((D.provide=MH,D.useClass=MH,D[IZ]=[_.Suq],D));D={};L.addProvider((D.provide=_.aV,D.useFactory=function(E){return E.upliftCompletionResolver.promise},D[IZ]=[N8s],D));
D=_.rO("IS_SHELL_LOAD")?"aa":"eocs";var S=_.rO("IS_SHELL_LOAD")?3:2;_.jP().parkOrScheduleJob(function(){ffG()},S,D);
_.jP().parkOrScheduleJob(function(){_.yY().resolve(Xa).start()},2,"eocs");
_.jP().parkOrScheduleJob(function(){AwG()},2,"eocs");
_.jP().parkOrScheduleJob(function(){_.yY().resolve(fC).start()},2,"eocs");
_.u("kevlar_debug_data_app_registration_ks")||xv0();L.addProvider({provide:_.Rl,useValue:new snI(x.root)});L.addProvider({provide:fV,useValue:new ZF3});L.addProvider({provide:_.w4$,useValue:new lpX(x.root)});L.addProvider({provide:_.NB,useValue:new Ufs});L.addProvider({provide:_.np,useClass:zz});L.addProvider({provide:OZW,useClass:xC});_.u("kevlar_network_sli_killswitch")||L.addProvider({provide:vRu,useValue:IMH});L.addProvider({provide:Sql,useFactory:AUf});_.u("web_bind_fetch")&&(D={},L.addProvider((D.provide=
QD3,D.useFactory=$nN,D[IZ]=[_.ZN(Sql)],D)));_.u("web_bind_window_request")&&(D={},L.addProvider((D.provide=KoG,D.useFactory=rUs,D[IZ]=[_.ZN(Sql)],D)));_.u("web_bind_text_decoder")&&(D={},L.addProvider((D.provide=O8l,D.useFactory=N5n,D[IZ]=[_.ZN(Sql)],D)));D={};L.addProvider((D.provide=sIl,D.useFactory=g_h,D[IZ]=[_.aV,nR,_.W3],D));D={};L.addProvider((D.provide=F3g,D.useClass=mb,D[IZ]=[sIl],D));L.addProvider({provide:N$u,useClass:quW});L.addProvider({provide:ps$,useClass:bls});D=[].concat(_.lP(LX));
_.u("web_continuation_response_processing")&&D.push(_.ol);D.push(wGh);_.u("enable_share_panel_navigation_logging_fix_on_web")&&D.push(_.nKh);L.addProvider({provide:hIs,useValue:D});L.addProvider({provide:zHG,useClass:kgg});L.addProvider({provide:gRg,useClass:Vig});D={};L.addProvider((D.provide=iQf,D.useClass=apq,D[IZ]=[yG],D));_.WW.addLowPriorityJob(function(){MzG()});
D={};L.addProvider((D.provide=P$i,D.useFactory=function(E){return function(P){var v,V=(v=_.g(P.commandMetadata,_.gg))==null?void 0:v.url;if(!V)throw new _.RZ("No URL for PBJ Command",P);V=A_0(V,{pbj:"1"});v=O7p(V,{})||{};v=Object.assign({},v,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.$6("STS").toString()});P=_.pH({command:JSON.stringify(P),session_token:_.$6("XSRF_TOKEN")});return E.fetch(V,{method:"POST",headers:v,body:P})}},D[IZ]=[gRg],D));
L.addProvider({provide:dpW,useFactory:function(){var E={};return E.CSI=frn(),E.ECATCHER=ief(),E}});
L.addProvider({provide:BRf,useClass:P8u});D=[];D.push(L.resolve(ps$));S={};S=(S.client_location=_.Bq.getInstance(),S.consistency=_.Ikf(),S.entities=L.resolve(YRu),S.response_received_commands=L.resolve(zHG),S.store=L.resolve(_.$2G),S.tokens=L.resolve(ps$),S.service_params=L.resolve(BRf),S);if(_.u("web_shorts_prefetch_service_enabled")){var Q=new LRX(L.resolve(_.WV));S.shorts_prefetch=Q}S.adblock_detection=L.resolve(iQf);L.addProvider({provide:_.cW,useClass:_.cW});Q=L.resolve(_.W3s);var J=[];_.u("PremiumClientSharedConfig__enable_att_context_processor")&&
(L.addProvider({provide:Ih3,useClass:O2l}),J.push(L.resolve(Ih3)));if(_.u("owl_pl_await")){var Z={};L.addProvider((Z.provide=z0q,Z.useFactory=function(E){return new o2W(E)},Z[IZ]=[_.cW],Z));
J.push(L.resolve(z0q))}mWQ(Q,L.resolve(gRg),L.resolve(Dpg),S,L.resolve(_.WV),D,J,L.resolve(F3g),L.resolve(N$u));L.addProvider({provide:_.i1,useValue:_.cD.instance});_.u("start_client_gcf")&&L.addProvider({provide:e7,useValue:v7W()});L.addProvider({provide:afl,useFactory:function(){return new afl(_.yY().resolve(_.cW),_.xr.getInstance())}});
_.jP().parkOrScheduleJob(function(){zU9()},1,"eocs");
D={};L.addProvider((D.provide=zr,D.useClass=zr,D[IZ]=[_.W3,_.i1],D));L.addProvider({provide:_.jT3,useFactory:_.ys.getInstance});_.jP().parkOrScheduleJob(function(){_.yY().resolve(zr).refresh()},0,"eocs");
jg2(bwI.watchEndpointMap||{},Q.reelWatchEndpointMap||{},x.injector.resolve(_.i1));L.addProvider({provide:sy,useValue:_.Xe.instance});_.u("kevlar_signal_collection_killswitch")||(D={},L.addProvider((D.provide=RU5,D.useClass=RU5,D[IZ]=[OA,rm],D)),_.jP().parkOrScheduleJob(function(){_.yY().resolve(RU5).record()},1,"eocs"));
_.u("web_debug_handler_registration_killswitch")||_.jP().parkOrScheduleJob(function(){nBn("DOWNLOAD_PES",N2c);_.u("offline_client_state_export_ks")||nBn("OFFLINE_CLIENT_STATE",Anb)},0,"eocs");
_.u("kevlar_prevent_polymer_dynamic_font_load")&&_.jP().parkOrScheduleJob(function(){var E=[_.Pn(R9l),_.Pn(GjY)];E=_.O(E);for(var P=E.next();!P.done;P=E.next()){P=P.value;var v=document.createElement("link");_.Ot(v,P,"stylesheet");document.head.appendChild(v)}},1,"eocs");
D=x.injector.resolve(_.i1);_.yr9.instance=new _.yr9(D);mm0(L_q(new Z2u(D)));D={};x.injector.addProvider((D.provide=Z5,D.useFactory=function(E){(E=E==null?void 0:E.getCurrentPage())?E=E.visibilityObserver:(D9u||(D9u=v5f()),E=D9u);return E},D[IZ]=[_.ZN(_.KX)],D.skipCache=!0,D));
L.addProvider({provide:_.iy,useClass:go});L.addProvider({provide:aF,useClass:d5R});x.injector.addProvider({provide:yhr,useValue:Fcg});L.addProvider({provide:tLG,useValue:A0b});_.u("web_cow_button_renderer_wiz_token")&&L.addProvider({provide:nSA,useValue:of3});L.addProvider({provide:JgR,useValue:UtO});L.addProvider({provide:_.Dt,useValue:nFc});x=L.addProvider;h0s||(h0s=new Vf5);x.call(L,{provide:_.Du,useValue:h0s});L.addProvider({provide:_.QO,useValue:_.$6("HTML_DIR")==="rtl"?"rtl":"ltr"});L.addProvider({provide:CGg,
useClass:i29});L.addProvider({provide:_.ki,useClass:Sa});_.yY().addProvider({provide:UhW,useValue:_.u("enable_web_delhi_icons")?t$g.concat(LrY):nV$.concat(x9W)});L.addProvider({provide:_.Jt,useClass:_.Jt});L.addProvider({provide:_.Foq,useValue:new YqW});L.addProvider({provide:mzB,useClass:pCg});L.addProvider({provide:ng,useClass:ng});L.addProvider({provide:Ly,useClass:Ly});x={};L.addProvider((x.provide=pg,x.useClass=pg,x[IZ]=[_.i1,_.Dk],x));L.addProvider({provide:hl,useClass:hl});L.addProvider({provide:N9i,
useClass:E2G});L.addProvider({provide:Jl,useClass:Jl});L.addProvider({provide:Dnd,useValue:AnQ});L.addProvider({provide:_.HQ,useClass:mhu});_.u("enable_payments_purchase_manager")&&L.addProvider({provide:PGq,useClass:EH9});L.addProvider({provide:e9l,useFactory:function(){return function(E){return _.Tku(E)}}});
L.addProvider({provide:_.hl5,useClass:HlI});x={};L.addProvider((x.provide=jY,x.useClass=jY,x[IZ]=[_.hl5],x));L.addProvider({provide:D0,useClass:D0});L.addProvider({provide:B3G,useValue:jn$});L.addProvider({provide:Tji,useValue:_.bZu});L.addProvider({provide:Maw,useClass:IEl});L.addProvider({provide:HZ9,useValue:Rvs});x={};L.addProvider((x.provide=u5l,x.useClass=g2W,x[IZ]=[HZ9],x));x={};L.addProvider((x.provide=_.og,x.useClass=Cxl,x[IZ]=[u5l],x));x={};L.addProvider((x.provide=_.Op,x.useClass=KN,x[IZ]=
[_.MP,_.np],x));if(_.u("web_explore_hub_on_hover")||_.u("web_client_explore_hub_on_hover"))x={},L.addProvider((x.provide=JF,x.useClass=JF,x[IZ]=[_.i1,be],x));if(_.u("web_enable_renderer_logger")){var y=new Lo3;fwb(function(){y.abort()});
L.addProvider({provide:FMw,useValue:new CQI(y.signal)})}L.addProvider({provide:EyH,useValue:mip});L.addProvider({provide:Ek3,useClass:Deg});_.u("web_use_flow_state_manager")&&(L.addProvider({provide:_.WQ,useClass:F_G}),x={},L.addProvider((x.provide=qs,x.useClass=qs,x[IZ]=[_.WQ,_.E2],x)))}},SXu);var Juq={},Krg=(Juq.initialized={priority:10,callback:function(){if(!jDX){jl3();ars("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.h8(_.bl(ars,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.u("log_heartbeat_with_lifecycles")){var x={};F6.instance||(F6.instance=new F6);F6.instance.install((x.document_visible={callback:zVf,priority:10},x.document_hidden={callback:zVf,priority:10},x))}else _.J7(document,"visibilitychange",zVf);jDX=!0}(x=_.A3())&&x!=="UNDEFINED_CSN"&&cSf(x)}},Juq);var OmX={},Zm9=(OmX.initialized={callback:function(x){var L=_.VC(232091),D=x.injector.resolve(_.QT);_.B5(D,L);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?YnO()&&_.qJ(D,L):(x=x.injector.resolve(e9l)("refresh_detector"))&&(x.get("first_tab_load")?_.qJ(D,L):x.set("first_tab_load","1"))}},OmX);var yu5={},IaX=(yu5.initialized={priority:10,callback:lDs},yu5);var E65={},MFq=(E65.initialized={priority:0,callback:function(){var x=new vVH,L="other";_.uV?L="chrome":_.HN?L="firefox":_.ij?L="safari":Q5&&(L="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(D){x.increment(_.s2(),D,L)}).catch(function(){x.increment(_.s2(),!1,L)}):x.increment(_.s2(),!1,L)}},E65);var d9l={},PfX=(d9l.rendering={priority:8,callback:U2f},d9l);var j15={},v63=(j15.rendering={priority:10,callback:cvh},j15.rendered={callback:Xt0},j15),VF3={},h1q=(VF3.rendering={callback:cvh},VF3.rendered={callback:Xt0},VF3);var Hm3=!1,u0l={},g6G=(u0l.initialized={priority:10,callback:function(){Hm3||(A3b({didPatch:function(x){x.el&&JWf(x.el,x.props)},
didUnmount:function(x){ST0(x.el)}}),Hm3=!0)}},u0l);var kSW=/^\/shorts\/?$/;_.Au("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:{}}}}}}});_.u("kevlar_enable_mss")&&(_.oQf(new KH_),ncb());
(function(){var x=document.querySelector("ytd-app");if(!x)throw Error("Rj");x=new Zu({root:x,injector:_.yY()});x.install(Krg);var L={};x.install((L.initialized={priority:10,callback:ODs},L));_.u("wp_lat_b")&&(L={},x.install((L.initialized={priority:10,callback:function(){B5c()}},L)));
L={};x.install((L.rendered={priority:0,callback:Qdc},L));L={};x.install((L.rendered={priority:0,callback:function(){_.WW.addLowPriorityJob(function(){_.fhs>1&&(cy4(),Dr4())},4E4)}},L));
x.install(Jxg);x.install(Zm9);x.install(g6G);v_p();x.install(Px3);x.install(ti3);x.install(S7W);x.install(meG);x.install(T89);x.install(M1g);x.install(Q1u);_.u("kevlar_enable_mss_lazy_load")&&x.install(IaX);x.install(Lgu);x.install(MFq);if(!_.rO("IS_SHELL_LOAD")||_.u("kevlar_fetch_initial_data_promise_client")||_.u("sw_nav_preload_pbj")){var D=_.gE(window.location.href);L=D&&D==="/watch";D=D&&D.match(kSW);L?x.install(h1q):D?x.install(PfX):x.install(v63)}else x.install(XnI);x.install(Ow$);_.u("web_enable_prefetching_videos_on_home")&&
x.install(hv$);_.u("start_client_gcf")&&x.install(Miq);x.install(HU5);(new V$Q).increment("INSTALLED");x.install(vaX);x.install(oRl);x.transition("initialized");T5b()})();
_.hd=[[["OWtpbmQjd3FjdTlmdHQwdG0=","anZhbHVlIzQwb204NDhkMXg="],"Q09ORFMjdXJrbXE5ZDMzamEzQURfUExBQ0VNRU5UX0tJTkRfTUlMTElTRQ=="]];_.Vy=["YmFja3MjNTNnY25wb2xjZXdtZ2xvYmFsQ2FsbA==","ZWN0ZWQjcjRvZnlqbGFwN2hnb25BYm5vcm1hbGl0eURldA==","ZFNraXAjN3pwZXJpYXA1enFhb25B","cG9uc2UjZ216OTlhN3hrbmdzcmF3X3BsYXllcl9yZXM=","ZXJBZHMjYzdvdjlpdDVhZjd2cGxheQ=="];_.g6="YmFja3MjNTNnY25wb2xjZXdtZ2xvYmFsQ2FsbA== ZWN0ZWQjcjRvZnlqbGFwN2hnb25BYm5vcm1hbGl0eURldA== ZFNraXAjN3pwZXJpYXA1enFhb25B cG9uc2UjZ216OTlhN3hrbmdzcmF3X3BsYXllcl9yZXM= cHNfa3MjaGNraDRlYW13YTEzd2ViX3BsYXlsaXN0X3F1ZXVlX211bHRpcGxlX3NraQ== c2FfZWYjaHlwZTBkdGw4aTUzYWJf ZXJBZHMjYzdvdjlpdDVhZjd2cGxheQ==".split(" ");
_._ModuleManager_initialize=function(x,L){if(!_.lx){if(!_.U7)return;_.oQf(_.U7())}_.lx.setAllModuleInfoString(x,L)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy2/sy3/sy4:2,3/sy5:2,3/sy6/sy7/sy8/sy9/NSzT5/syb/syc/kevlar_main_module:1,4,5,6,7,8,9/sye:2/syd:5,b,e/syf:f/syg/syh:6/syi/h8y2qb:4,g,h,i,j/syj/JzFVk:e,i,j,l/syk:8/xwEKAe:3,9,h,j,n/syl:f/sym:1,c,f,h,l,n/syn:q/nmfa2d:j,p,r/syo:7,q/syp:i,j,r,t/CF909:p,u/Tm0L3c:u/L3n37:g,i,j,p,t/iuT5Oc',['sy2','sy3','sy8','sye','syb','sy5','syk','syj','syg','syd','syc','sy1','sym','sy7','sy6','syo','syn','syi','syh','syl','syf','syp','sy9','sy4','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module','NSzT5']);
}catch(e){_._DumpException(e)}
try{
_.YC=function(x,L,D,S,Q){var J={};L&&(J[L]=D);S?J.errorType=S:Q&&(J.errorReason=Q);_.Uh(x,J);_.wz()};
_.Fl=function(x){var L=_.jP();return _.Epd(L,x,1)};
_.q$({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 x=this.query;x&&(this.full||x[0]==="("||(x="("+x+")"),this._mq=window.matchMedia(x),this._add(),this.queryHandler(this._mq))},
queryHandler:function(x){this._setQueryMatches(x.matches)}});var la3;var U93;var wdY=function(){};
_.K=wdY.prototype;_.K.addOwnKeyBinding=function(){};
_.K.removeOwnKeyBindings=function(){};
_.K.keyboardEventMatchesKeys=function(){};
_.K._collectKeyBindings=function(){};
_.K._prepKeyBindings=function(){};
_.K._addKeyBinding=function(){};
_.K._resetKeyEventListeners=function(){};
_.K._listenKeyEventListeners=function(){};
_.K._unlistenKeyEventListeners=function(){};
_.K._onKeyBindingEvent=function(){};
_.K._triggerKeyHandler=function(){};
_.K._tapHandler=function(){};
_.K._focusChanged=function(){};
_.K._detectKeyboardFocus=function(){};
_.K._userActivate=function(){};
_.K._upHandler=function(){};
_.K._spaceKeyDownHandler=function(){};
_.K._spaceKeyUpHandler=function(){};
_.K._asyncClick=function(){};
_.K._pressedChanged=function(){};
_.K._ariaActiveAttributeChanged=function(){};
_.K._activeChanged=function(){};
_.K._controlStateChanged=function(){};
_.K._changedButtonState=function(){};
_.K._focusBlurHandler=function(){};
_.K._disabledChanged=function(){};
_.K._changedControlState=function(){};
_.K._downHandler=function(){};
_.K.ensureRipple=function(){};
_.K.getRipple=function(){};
_.K.hasRipple=function(){};
_.K._noinkChanged=function(){};
_.K._focusedChanged=function(){};
_.K._createRipple=function(){};
_.K.registered=function(){};
_.K._invalidChanged=function(){};
_.K.hasValidator=function(){};
_.K.validate=function(){};
_.K._getValidity=function(){};
_.K._requiredChanged=function(){};
_.K._valueChanged=function(){};
_.K._checkedChanged=function(){};
_.K._buttonStateChanged=function(){};
_.K._setPressed=function(){};
_.K._setPointerDown=function(){};
_.K._setReceivedFocusFromKeyboard=function(){};
_.K._setFocused=function(){};
wdY=_.q$({is:"tp-yt-paper-radio-button",_template:function(){if(U93!==void 0)return U93;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;la3===void 0&&(la3=document.createElement("template"));var S=la3;D.call(L,S.content.cloneNode(!0),x.content.firstChild);return U93=x},
behaviors:[_.nvH],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(){_.So(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var x=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),L=Math.floor(3*x);L%2!==x%2&&L++;this.updateStyles({"--paper-radio-button-ink-size":L+"px"})}})}});var BO$;var Wr9;_.q$({_template:function(){if(Wr9!==void 0)return Wr9;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;BO$===void 0&&(BO$=document.createElement("template"));var S=BO$;D.call(L,S.content.cloneNode(!0),x.content.firstChild);return Wr9=x},
is:"tp-yt-paper-radio-group",behaviors:[_.Ecd],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(x){var L=this._valueToItem(x);if(!L||!L.hasAttribute("disabled")){if(this.selected){L=this._valueToItem(this.selected);if(this.selected==x)if(this.allowEmptySelection)x="";else{L&&(L.checked=!0);return}L&&
(L.checked=!1)}_.SO.select.apply(this,[x]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(x){this._focusPrevious();x.preventDefault();this._activateFocusedItem()},
_onDownKey:function(x){this._focusNext();x.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(x){_.Ini._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(x){_.Ini._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.SO._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.zX._resetTabindices.apply(this,arguments);this.items.forEach(function(x){x.removeAttribute("aria-selected")},this)}});var qX3;_.BD("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var sp=function(){return _.e.apply(this,arguments)||this};
_.p(sp,_.e);_.K=sp.prototype;_.K.computeHasPrimaryIcon=function(x){return!(!x.icon&&!x.thumbnail)};
_.K.computeHasSecondary=function(x){return!(!x.secondaryIcon&&!x.secondaryNotificationText)};
_.K.computeHideSecondaryString=function(x){return!_.u("disable_hide_empty_secondary_string")&&!x.secondaryNotificationText};
_.K.computeCompactLinkStyle=function(x){return x?x.toLowerCase().replace(/_/g,"-"):""};
_.K.computeHasFitHeight=function(x){return x==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.K.isActiveEndpoint=function(x){return(x=this.get("commandMetadata.webCommandMetadata.url",x))?_.gE(window.location.href)!=="/account_transfer_channel"&&_.gE(window.location.href)!=="/gaia_link"&&_.gE(window.location.href)!=="/channel_switcher"||x!=="/account"?_.gE(window.location.href)===x:!0:!1};
_.K.onTap=function(){var x;((x=this.data)==null?0:x.serviceEndpoint)&&_.jq(this.hostElement,[this.data.serviceEndpoint])};
sp.prototype.onTap=sp.prototype.onTap;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],sp.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],sp.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.r("design:type",Boolean)],sp.prototype,"active",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.r("design:type",String)],sp.prototype,"compactLinkStyle",void 0);
_.A([_.F({computed:"computeIcon_(data.icon)"}),_.r("design:type",Object)],sp.prototype,"icon",void 0);_.A([_.F({computed:"computeIcon_(data.secondaryIcon)"}),_.r("design:type",Object)],sp.prototype,"secondaryIcon",void 0);_.A([_.F({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],sp.prototype,"hasSecondary",void 0);_.A([_.F({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],sp.prototype,"hideSecondaryString",void 0);
_.A([_.mX("tap"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],sp.prototype,"onTap",null);_.A([_.w({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],sp);
_.q(sp,"ytd-compact-link-renderer",function(){if(qX3!==void 0)return qX3;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return qX3=x},{mode:1});var Au3;_.BD("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var T7=function(){var x=_.e.apply(this,arguments)||this;x.role="link";x.tabindex="0";x.actionMap=_.u("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 x};
_.p(T7,_.e);_.K=T7.prototype;_.K.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.l1()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.K.getCurrentTheme=function(){return _.UO()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.l1()};
_.K.onThemeSelected=function(x,L){var D=x||L?x:_.CB(),S=(D&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!D&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.OE0(_.gE(window.location.href));_.s8(0,165,x);_.s8(0,174,L);this.prefs.save();S&&_.dg(this.hostElement,"yt-dark-mode-toggled-action",[D]);_.dg(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.K.onTap=function(){this.data.serviceEndpoint&&_.jq(this.hostElement,[this.data.serviceEndpoint])};
_.K.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.K.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.K.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
T7.prototype.onTap=T7.prototype.onTap;T7.prototype.dataChanged=T7.prototype.dataChanged;_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],T7.prototype,"actionHandlerBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],T7.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.Pg),_.r("design:type",Object)],T7.prototype,"paperItemBehaviors",void 0);_.A([_.F(),_.r("design:type",Object)],T7.prototype,"data",void 0);_.A([_.F({value:function(){return _.FI()}}),
_.r("design:type",_.hS)],T7.prototype,"prefs",void 0);_.A([_.F(),_.r("design:type",Object)],T7.prototype,"label",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],T7.prototype,"role",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],T7.prototype,"tabindex",void 0);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],T7.prototype,"dataChanged",null);
_.A([_.mX("tap"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],T7.prototype,"onTap",null);_.A([_.w({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],T7);
_.vp()(T7,"ytd-toggle-theme-compact-link-renderer",function(){if(Au3===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);Au3=x}x=Au3;return x},{allowedProps:["data"],
mode:1});
}catch(e){_._DumpException(e)}
try{
var ruq,NOX;_.ea=function(x){return!!x.getOptions("captions")};
_.$9W=function(x){return(x=x.getOption("captions","track"))?!!x.displayName:!1};
_.R5=function(x,L){_.Tk(L,x,function(){return ruq[L]},function(D){ruq[L]=D;
if(!_.u("mweb_player_ve_show_ks")){var S=_.A3(0);S&&D&&_.n6(S,D)}})};
_.G7=function(x){(x=ruq[x])&&_.qJ(_.sk(),x)};
ruq={};var im$;/*

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
*/
_.q$({_template:function(){if(im$!==void 0)return im$;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;NOX===void 0&&(NOX=document.createElement("template"));var S=NOX;D.call(L,S.content.cloneNode(!0),x.content.firstChild);return im$=x},
is:"tp-yt-paper-checkbox",behaviors:[_.nvH],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.So(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var x=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),L="px",D=x.match(/[A-Za-z]+$/);D!==null&&(L=D[0]);x=parseFloat(x);D=8/3*x;L==="px"&&(D=Math.floor(D),D%2!==x%2&&D++);this.updateStyles({"--paper-checkbox-ink-size":D+
L})}})},
_computeCheckboxClass:function(x,L){var D="";x&&(D+="checked ");L&&(D+="invalid");return D},
_computeCheckmarkClass:function(x){return x?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.XF2._createRipple.call(this)}});var fa5=new _.jp("radioButtonSurveyOptionRenderer"),o6u=new _.jp("checkboxSurveyOptionRenderer");var aaq;var z1l;var XdX=0,CN=function(){var x=_.e.call(this)||this;x.selected=!1;x.isOverlay=!1;x.inputId="toggle-option-"+XdX;XdX++;return x};
_.p(CN,_.e);CN.prototype.onTap=function(){_.MF(this.hostElement,"ytd-toggle-option-clicked")};
_.A([_.F(),_.r("design:type",String)],CN.prototype,"label",void 0);_.A([_.F(),_.r("design:type",String)],CN.prototype,"inputId",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],CN.prototype,"selected",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],CN.prototype,"isOverlay",void 0);_.A([_.w({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.r("design:paramtypes",[])],CN);
_.q(CN,"ytd-toggle-option-renderer",function(){if(z1l!==void 0)return z1l;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return z1l=x},{mode:1});var l3=function(){var x=_.e.apply(this,arguments)||this;x.isToggleOption=!1;x.isOverlay=!1;return x};
_.p(l3,_.e);l3.prototype.onTap=function(x){x.preventDefault();this.data&&(x=!this.data.checked,this.set("data.checked",x),_.MF(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:x,value:this.data.value}))};
_.J3.Object.defineProperties(l3.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
l3.prototype.onTap=l3.prototype.onTap;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],l3.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],l3.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],l3.prototype,"isToggleOption",void 0);_.A([_.F(),_.r("design:type",Object)],l3.prototype,"isOverlay",void 0);_.A([_.Y("data.responseText"),_.r("design:type",String),_.r("design:paramtypes",[])],l3.prototype,"label",null);
_.A([_.mX("ytd-toggle-option-clicked"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],l3.prototype,"onTap",null);_.A([_.w({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],l3);
_.q(l3,"ytd-checkbox-survey-option-renderer",function(){if(aaq!==void 0)return aaq;var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return aaq=x},{mode:1});var cuq;var n69;var Up=function(){var x=_.e.apply(this,arguments)||this;x.checked=!1;x.isToggleOption=!1;return x};
_.p(Up,_.e);Up.prototype.onTap=function(){this.data&&(this.checked?_.dg(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.dg(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
Up.prototype.onTap=Up.prototype.onTap;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Up.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Up.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],Up.prototype,"checked",void 0);_.A([_.F(),_.r("design:type",Object)],Up.prototype,"isToggleOption",void 0);_.A([_.mX("ytd-toggle-option-clicked"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],Up.prototype,"onTap",null);
_.A([_.w({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],Up);
_.q(Up,"ytd-radio-button-survey-option-renderer",function(){if(n69!==void 0)return n69;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return n69=x},{mode:1});var wo=function(){var x=_.e.apply(this,arguments)||this;x.disableAnimation=!1;x.isToggleOption=!0;x.followUpSurveyCommand=null;x.selectedRatingEndpoint=null;x.isSlimlineSurveyFollowUp=!1;x.isShortsStyle=!1;x.styleOverrideAttribute=!0;x.isDarkMode=!1;x.isSubmitted=!1;x.roundedContainer=!0;x.improveShortsResponseRate=_.u("web_improve_shorts_response_rate");x.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 x};
_.p(wo,_.e);_.K=wo.prototype;
_.K.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"}}}}};
_.K.attached=function(){var x=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(D){var S;if((S=D[0])!=null&&S.isIntersecting){_.Yi().reportShown(x.hostElement);var Q;(Q=x.intersectionObserver)==null||Q.unobserve(x.hostElement)}},{rootMargin:"0px",
threshold:.6});var L;(L=this.intersectionObserver)==null||L.observe(this.hostElement)};
_.K.onDarkModeToggledAction=function(x){this.isDarkMode=x};
_.K.dataChanged=function(){var x;if(((x=this.data)==null?void 0:x.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var L;((L=this.data)==null?void 0:L.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var D,S,Q,J;this.darkColorPalette=(D=this.data)==null?void 0:(S=D.inlineContent)==null?void 0:(Q=S.compactVideoRenderer)==null?void 0:(J=Q.thumbnail)==null?
void 0:J.darkColorPalette;var Z,y,E,P;this.lightColorPalette=(Z=this.data)==null?void 0:(y=Z.inlineContent)==null?void 0:(E=y.compactVideoRenderer)==null?void 0:(P=E.thumbnail)==null?void 0:P.lightColorPalette;var v,V;if(((v=this.data)==null?0:(V=v.inlineContent)==null?0:V.compactVideoRenderer)&&this.isShortsStyle){var h,H,k,T;x=_.jn((h=this.data)==null?void 0:(H=h.inlineContent)==null?void 0:(k=H.compactVideoRenderer)==null?void 0:(T=k.thumbnail)==null?void 0:T.thumbnails);_.uN(this.hostElement,
{"--yt-background-url":"url("+x+")"})}};
_.K.handleRequestCompletion=function(){this.hostElement.hidden&&_.MF(this.hostElement,"yt-dismissible-item-dismissed")};
_.K.onPopupClosed=function(x){var L;((L=x.detail)==null?void 0:L.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.dg(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.K.handleInlineSurveyRatingSelect=function(x,L){var D=this;this.selectedRatingEndpoint=x;this.followUpSurveyCommand=L;this.expanded=!!x;this.getOptionRenderers().forEach(function(S,Q){D.notifyPath("followUpSurveyCommand.followUpOptions."+Q+".checkboxSurveyOptionRenderer.checked");D.set("followUpSurveyCommand.followUpOptions."+Q+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),x=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.dg(this.hostElement,"yt-reel-non-video-content-dismissal-command",[x]))};
_.K.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.dg(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var x,L=(x=this.data)==null?void 0:x.dismissalEndpoint;L&&this.ytComponentBehavior.resolveCommand(L)}};
_.K.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.dg(this.hostElement,"yt-close-popup-action"))};
_.K.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var x=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{x=this.getOptionRenderers().filter(function(S){return S.checked});
if(x.length===0)return;x=x.map(function(S){return S.responseEndpoint})}var L=[];
x.forEach(function(S,Q){Q!==0&&(S=_.g(S,_.Uy))&&S.feedbackToken&&L.push(S.feedbackToken)});
if(x=x[0]){var D={};L.length>0&&(D.extra_feedback_tokens=L);this.ytComponentBehavior.resolveCommand(x,{form:D})}}};
_.K.getOptionRenderers=function(){var x=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(L){x.isSingleSelect=!!_.g(L,fa5);return x.isSingleSelect?_.g(L,fa5):_.g(L,o6u)}):[]};
_.K.handleInlineSurveyOptionSelect=function(x){x=this.optionSelector.indexOf(x);x!==-1&&this.optionSelector.selectIndex(x)};
_.K.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.K.maybeGetBackgroundColor=function(x){return this.isDarkMode?x.section2Color:x.section3Color};
_.K.colorPaletteChanged=function(){var x=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;x=x&&this.maybeGetBackgroundColor(x);this.dismissibleEl.style.backgroundColor=!x||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.zF(x)};
_.J3.Object.defineProperties(wo.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
wo.prototype.colorPaletteChanged=wo.prototype.colorPaletteChanged;wo.prototype.onPopupClosed=wo.prototype.onPopupClosed;wo.prototype.handleRequestCompletion=wo.prototype.handleRequestCompletion;wo.prototype.dataChanged=wo.prototype.dataChanged;_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],wo.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],wo.prototype,"actionHandlerBehavior",void 0);
_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],wo.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],wo.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.dK),_.r("design:type",Object)],wo.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.F1("#follow-up-survey-options"),_.r("design:type",Object)],wo.prototype,"optionSelector",void 0);_.A([_.F(),_.r("design:type",Object)],wo.prototype,"data",void 0);
_.A([_.F(),_.r("design:type",Object)],wo.prototype,"disableAnimation",void 0);_.A([_.F(),_.r("design:type",Object)],wo.prototype,"isToggleOption",void 0);_.A([_.F(),_.r("design:type",Object)],wo.prototype,"followUpSurveyCommand",void 0);_.A([_.F(),_.r("design:type",Object)],wo.prototype,"selectedRatingEndpoint",void 0);_.A([_.F({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],wo.prototype,"expanded",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],wo.prototype,"isSlimlineSurveyFollowUp",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],wo.prototype,"isShortsStyle",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],wo.prototype,"styleOverrideAttribute",void 0);_.A([_.F(),_.r("design:type",Boolean)],wo.prototype,"isSingleSelect",void 0);_.A([_.F(),_.r("design:type",Object)],wo.prototype,"isDarkMode",void 0);
_.A([_.F(),_.r("design:type",Object)],wo.prototype,"lightColorPalette",void 0);_.A([_.F(),_.r("design:type",Object)],wo.prototype,"darkColorPalette",void 0);_.A([_.Y("selectedRatingEndpoint","isShortsStyle"),_.F({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],wo.prototype,"isOptionSelected",null);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],wo.prototype,"roundedContainer",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],wo.prototype,"improveShortsResponseRate",void 0);_.A([_.F1("#dismissible"),_.r("design:type",HTMLElement)],wo.prototype,"dismissibleEl",void 0);_.A([_.F1("#dismiss-button yt-icon-button"),_.r("design:type",HTMLElement)],wo.prototype,"dismissButtonEl",void 0);_.A([_.F1("#inline-survey-header yt-icon-button"),_.r("design:type",HTMLElement)],wo.prototype,"inlineHeaderDismissButtonEl",void 0);
_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],wo.prototype,"dataChanged",null);_.A([_.mX("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],wo.prototype,"handleRequestCompletion",null);_.A([_.mX("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],wo.prototype,"onPopupClosed",null);
_.A([_.bN("darkColorPalette","lightColorPalette","isDarkMode"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],wo.prototype,"colorPaletteChanged",null);_.A([_.w({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],wo);
_.q(wo,"ytd-inline-survey-renderer",function(){if(cuq!==void 0)return cuq;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return cuq=x},{mode:1});var tFq=["en-CA","en","es-MX","fr-CA"];_.xwX=_.B(function(x){var L=_.ym(x,{isOverlay:!1,isModern:!1}),D=L.captionIconType,S=L.onClick;x=L.ariaLabel;var Q=L.ariaPressed,J=L.isOverlay,Z=L.isModern;L=_.x3("button",function(P){_.R5(P,127299)});
var y=_.kO(function(P){_.G7(127299);S==null||S(P);return!1}),E={};
return _.M("ytm-closed-captioning-button",{class:_.gF("ytmClosedCaptioningButtonHost",(E.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return D()===-1&&J()},E.ytmClosedCaptioningButtonIconDisabled=function(){return D()===-1&&!J()},E))},_.M("button",{el:L,
class:"ytmClosedCaptioningButtonButton",title:x,"aria-label":x,"aria-pressed":Q,"on:click":y},_.M(_.YO,{icon:function(){var P="",v=Z();var V=v?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";v=v?"SUBTITLES_DELHI_PLAYER":"SUBTITLES";var h=_.FI().get("hl");V=!h||tFq.includes(h)?V:v;v=D();switch(v){case -1:case 0:P=V;break;case 1:P=V+"_FILLED";break;default:_.Nh(v)}return P}})))},"$g");
_.xwX.idomCompat={callbacks:{onClick:!0}};
}catch(e){_._DumpException(e)}
try{
_.zt=function(x){return function(L,D){var S=x||D.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(L,D,{get:function(){var Q;return this.$?this.$[S]:(Q=_.Y9(this))==null?void 0:Q.querySelector("#"+S)},
enumerable:!0,configurable:!0})}};_.Xx=function(x){x=x===void 0?!1:x;_.Te.call(this);this.pubSub_=new _.mv(x);_.V1(this,this.pubSub_)};
_.E9(_.Xx,_.Te);_.Xx.prototype.subscribe=function(x,L,D){return this.isDisposed()?0:this.pubSub_.subscribe(x,L,D)};
_.Xx.prototype.unsubscribe=function(x,L,D){return this.isDisposed()?!1:this.pubSub_.unsubscribe(x,L,D)};
_.Xx.prototype.unsubscribeByKey=function(x){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(x)};
_.Xx.prototype.publish=function(x,L){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var o_9=function(){_.YC("ypcRedeemFlowStarted")},oG=function(x){_.YC("ypcRedeemFlowFailed",void 0,void 0,void 0,x)},ajl=function(x,L,D){L&&D&&(x.videos.forEach(function(S){S.videoId===L&&(S.itemId=D)}),x.recommendedVideos.forEach(function(S){S.videoId===L&&(S.itemId=D)}))};var znl;var XwG;/*

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
*/
_.q$({_template:function(){if(XwG!==void 0)return XwG;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;znl===void 0&&(znl=document.createElement("template"));var S=znl;D.call(L,S.content.cloneNode(!0),x.content.firstChild);return XwG=x},
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(x,L){var D=this._resolveSrc(x);D!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",x===""||L?this._setLoading(!1):(this._resolvedSrc=D,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 x=this.$.sizedImgDiv.style,L=this.$.placeholder.style;x.backgroundSize=L.backgroundSize=this.sizing;x.backgroundPosition=L.backgroundPosition=this.sizing?this.position:"";x.backgroundRepeat=L.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(x){x=_.dQ(x,this.$.baseURIAnchor.href);x.length>=2&&x[0]==="/"&&x[1]!=="/"&&(x=(location.origin||location.protocol+"//"+location.host)+x);return x}});var cWW;var n_W;_.q$({_template:function(){if(n_W!==void 0)return n_W;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;cWW===void 0&&(cWW=document.createElement("template"));var S=cWW;D.call(L,S.content.cloneNode(!0),x.content.firstChild);return n_W=x},
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(x){return x?"false":"true"},
_headingChanged:function(x){var L=this.getAttribute("heading"),D=this.getAttribute("aria-label");typeof D==="string"&&D!==L||this.setAttribute("aria-label",x)},
_computeHeadingClass:function(x){return x?" over-image":""},
_computeAnimated:function(x){return x}});var tkY=new _.jp("addRendererToItemSectionAction");var x2u;var aG=function(){return _.e.apply(this,arguments)||this};
_.p(aG,_.e);aG.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],aG.prototype,"rendererBehavior",void 0);_.A([_.b(_.dK),_.r("design:type",Object)],aG.prototype,"dismissibleItemBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],aG.prototype,"rendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],aG.prototype,"data",void 0);_.A([_.w({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],aG);
_.q(aG,"ytd-comment-history-entry-renderer",function(){if(x2u!==void 0)return x2u;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return x2u=x},{mode:1});var Ly5;_.BD("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.BD("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var zq=function(){return _.e.apply(this,arguments)||this};
_.p(zq,_.e);_.K=zq.prototype;_.K.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.K.onKeyUp=function(x){if(x.keyCode===13)this.onTap()};
_.K.onTap=function(){this.data.recordClickEndpoint&&_.yY().resolve(_.E2).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var x=this.data.navigationEndpoint;x&&_.g(x,_.JM)&&_.yY().resolve(_.E2).resolveCommand(x,{form:{element:this.hostElement}})};
_.K.readChanged=function(){var x;_.VA(this.hostElement,"unread",!((x=this.data)==null?0:x.read))};
_.K.dataChanged=function(){this.data&&_.VA(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.K.computeThumbnailSize=function(){var x;return((x=this.data)==null?0:x.highPriorityNotification)?32:48};
_.K.getEndpointURL=function(x){return x&&!_.g(x,_.JM)?this.componentBehavior.computeHref_(x):null};
_.K.getEndpointData=function(x){return x&&!_.g(x,_.JM)?x:null};
zq.prototype.computeThumbnailSize=zq.prototype.computeThumbnailSize;zq.prototype.dataChanged=zq.prototype.dataChanged;zq.prototype.readChanged=zq.prototype.readChanged;zq.prototype.onKeyUp=zq.prototype.onKeyUp;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],zq.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],zq.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],zq.prototype,"componentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],zq.prototype,"data",void 0);_.A([_.F({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.r("design:type",Number)],zq.prototype,"thumbnailSize",void 0);_.A([_.mX("keyup"),_.r("design:type",Function),_.r("design:paramtypes",[KeyboardEvent]),_.r("design:returntype")],zq.prototype,"onKeyUp",null);
_.A([_.bN("data.read"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],zq.prototype,"readChanged",null);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],zq.prototype,"dataChanged",null);_.A([_.bN("data.highPriorityNotification"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],zq.prototype,"computeThumbnailSize",null);
_.A([_.w({is:"ytd-notification-renderer",disableElementRegistration:!0})],zq);
_.q(zq,"ytd-notification-renderer",function(){if(Ly5!==void 0)return Ly5;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Ly5=x},{mode:1});var D2s;var XL=function(){return _.e.apply(this,arguments)||this};
_.p(XL,_.e);XL.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"}}}};
XL.prototype.computeActionButtonClass=function(x){return!x.actionButtons||x.actionButtons.length<=1?"single-button":x.description?"vertical-buttons":"horizontal-buttons"};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],XL.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],XL.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],XL.prototype,"data",void 0);_.A([_.w({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],XL);
_.q(XL,"ytd-playlist-show-metadata-renderer",function(){if(D2s!==void 0)return D2s;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return D2s=x},{mode:1});var SnW;_.BD("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var cL=function(){return _.e.apply(this,arguments)||this};
_.p(cL,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],cL.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],cL.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],cL.prototype,"data",void 0);_.A([_.w({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],cL);
_.q(cL,"ytd-purchase-item-renderer",function(){if(SnW!==void 0)return SnW;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return SnW=x},{mode:1});var Qxl;var Jvs={};Jvs.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(x){if(x)return x.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(x){if(x==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.BD("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var ne=function(){return _.e.apply(this,arguments)||this};
_.p(ne,_.e);ne.prototype.onYtNavigate=function(x){var L=this.openPopupBehavior.getNavigationEndpointPopupAction(x.detail.endpoint);L&&(x.stopPropagation(),this.openPopupBehavior.openPopup(L))};
ne.prototype.onYtNavigate=ne.prototype.onYtNavigate;_.A([_.b(Jvs.YtSimpleTextSectionBehavior),_.r("design:type",Object)],ne.prototype,"ytSimpleTextSectionBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],ne.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.Fz),_.r("design:type",Object)],ne.prototype,"openPopupBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],ne.prototype,"data",void 0);
_.A([_.mX("yt-navigate"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],ne.prototype,"onYtNavigate",null);_.A([_.w({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],ne);
_.q(ne,"ytd-simple-text-section-renderer",function(){if(Qxl!==void 0)return Qxl;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Qxl=x},{mode:1});var Ky$;_.BD("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var tU=function(){return _.e.apply(this,arguments)||this};
_.p(tU,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],tU.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],tU.prototype,"data",void 0);_.A([_.w({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],tU);
_.q(tU,"ytd-unlimited-page-feature-info-renderer",function(){if(Ky$!==void 0)return Ky$;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Ky$=x},{mode:1});var OQI;var ZQl;var x_=function(){return _.e.apply(this,arguments)||this};
_.p(x_,_.e);x_.prototype.dataChanged=function(){if(this.data){var x=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);x&&(x=_.PD(x,screen.width),this.hostElement.style.backgroundImage="url("+x+")")}};
x_.prototype.dataChanged=x_.prototype.dataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],x_.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],x_.prototype,"data",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],x_.prototype,"dataChanged",null);_.A([_.w({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],x_);
_.q(x_,"ytd-post-redemption-section-renderer",function(){if(ZQl!==void 0)return ZQl;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return ZQl=x},{mode:1});var yv3;var LM=function(){return _.e.apply(this,arguments)||this};
_.p(LM,_.e);LM.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],LM.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],LM.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],LM.prototype,"data",void 0);_.A([_.w({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],LM);
_.q(LM,"ytd-ypc-post-redemption-renderer",function(){if(yv3!==void 0)return yv3;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return yv3=x},{mode:1});_.BD("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var Dj=function(){var x=_.e.apply(this,arguments)||this;x.MIN_CODE_LENGTH=12;x.MAX_CODE_LENGTH=24;return x};
_.p(Dj,_.e);_.K=Dj.prototype;_.K.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.K.created=function(){this.riskService=new _.Mhn;this.loadPaymentThenable=_.PL0(_.$6("YPC_MB_URL"))};
_.K.ready=function(){var x=this;this.code.addEventListener("keypress",function(L){x.onCodeInputKeypress(L)})};
_.K.dataChanged=function(){var x=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(L){L=_.O(L);for(var D=L.next();!D.done;D=L.next())D=D.value,D.type==="attributes"&&D.attributeName==="dark"&&x.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.K.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var x=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+x+")")}};
_.K.computeRedeemButton=function(x){(x=this.get("redeemButton.buttonRenderer",x))&&(x=Object.assign({},x,{serviceEndpoint:void 0}));return x};
_.K.onRedeemButtonTap=function(x){x.stopPropagation();o_9();this.redeemCode()};
_.K.redeemCode=function(){var x=this;this.isLoading=!0;var L=this.riskService.init();_.AR([L,this.loadPaymentThenable]).then(function(){var D=x.data.redeemButton.buttonRenderer.serviceEndpoint,S=_.dxf(),Q=_.QG.payments.business.integration.ClientTokenFactory.createClientToken(_.g(D,_.OO2).countryCode,S);S={c:x.code.value.trim(),rd:window.btoa(S),ctk:Q};D&&_.yY().resolve(_.E2).resolveCommand(D,{form:Object.assign({},S,{element:x.hostElement})})},function(){x.showGenericError();
oG("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.N9(Error("Eo"))})};
_.K.onYtServiceRequestCompleted=function(x){x.stopPropagation();this.isLoading=!1;var L,D;this.errorMessage=(L=x.detail)==null?void 0:(D=L.data)==null?void 0:D.errorMessage;var S,Q;this.postRedemptionRenderer=(S=x.detail)==null?void 0:(Q=S.data)==null?void 0:Q.renderer;var J,Z;if(x=(J=x.detail)==null?void 0:(Z=J.data)==null?void 0:Z.redirectEndpoint)this.isLoading=!0,_.MF(this.hostElement,"yt-navigate",{endpoint:x});this.errorMessage?oG("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
x)&&_.YC("ypcRedeemFlowSucceeded")};
_.K.onYtServiceRequestError=function(x){x.stopPropagation();this.isLoading=!1;if(x=this.get("detail.error.message",x))this.errorMessage=_.Dv(x);oG("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.K.onInvokeInstrumentManagerActionCompleted=function(x){x.stopPropagation();this.redeemCode()};
_.K.onInvokeInstrumentManagerActionError=function(x){x.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",x)){case "instrumentManagerLoadError":this.showGenericError();oG("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();oG("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.YC("ypcRedeemFlowCancelled")}};
_.K.onInput=function(){var x=this;_.LI(this,"onInput",function(){var L=x.code.value.trim();x.redeemButtonDisabled=L.length<x.MIN_CODE_LENGTH||L.length>x.MAX_CODE_LENGTH},200)};
_.K.onCodeInputKeypress=function(x){x.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(o_9(),this.redeemCode())};
_.K.computeImageUrl=function(x){return x?_.PD(x.thumbnails,600):null};
_.K.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
Dj.prototype.onInvokeInstrumentManagerActionError=Dj.prototype.onInvokeInstrumentManagerActionError;Dj.prototype.onInvokeInstrumentManagerActionCompleted=Dj.prototype.onInvokeInstrumentManagerActionCompleted;Dj.prototype.onYtServiceRequestError=Dj.prototype.onYtServiceRequestError;Dj.prototype.onYtServiceRequestCompleted=Dj.prototype.onYtServiceRequestCompleted;Dj.prototype.dataChanged=Dj.prototype.dataChanged;
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Dj.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Dj.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Dj.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],Dj.prototype,"isLoading",void 0);_.A([_.F(),_.r("design:type",Boolean)],Dj.prototype,"redeemButtonDisabled",void 0);
_.A([_.F(),_.r("design:type",Object)],Dj.prototype,"errorMessage",void 0);_.A([_.F(),_.r("design:type",Object)],Dj.prototype,"postRedemptionRenderer",void 0);_.A([_.F(),_.r("design:type",Object)],Dj.prototype,"observer",void 0);_.A([_.F1("#code"),_.r("design:type",HTMLInputElement)],Dj.prototype,"code",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Dj.prototype,"dataChanged",null);
_.A([_.mX("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Dj.prototype,"onYtServiceRequestCompleted",null);_.A([_.mX("yt-service-request-error"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Dj.prototype,"onYtServiceRequestError",null);
_.A([_.mX("yt-invoke-instrument-manager-action-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Dj.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.A([_.mX("yt-invoke-instrument-manager-action-error"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Dj.prototype,"onInvokeInstrumentManagerActionError",null);_.A([_.w({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],Dj);
_.q(Dj,"ytd-redeem-code-renderer",function(){if(OQI!==void 0)return OQI;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return OQI=x},{mode:1});var ID9;_.BD("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var Sk=function(){var x=_.e.apply(this,arguments)||this;x.businessEmailDisplayState="HIDE_SECTION";return x};
_.p(Sk,_.e);_.K=Sk.prototype;_.K.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}}}}}};
_.K.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"};
_.K.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.K.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.ac(_.IrB),this.businessEmailDisplayState="CAPTCHA"))};
_.K.onYtServiceRequestCompleted=function(x){var L;if((L=x.detail.data)==null?0:L.businessEmail)this.businessEmail=x.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var D;if((D=x.detail.data)==null?0:D.errorMessage)this.businessEmailErrorMessage=x.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.K.computeEmailHref=function(x){return"mailto:"+x};
_.K.computeSafeUrl=function(x){if(x)return _.$z(x)};
_.K.onBusinessEmailCaptchaSubmit=function(){var x;(x=this.data)!=null&&x.onBusinessEmailRevealClickCommand&&(x=this.JSC$21767_captchaTextarea.value)&&(x={recaptcha_response_token:x,channel_id:this.data.channelId},_.yY().resolve(_.E2).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},x,{element:this.hostElement})}))};
_.K.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.J3.Object.defineProperties(Sk.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 x,L;return!((x=this.data)==null||!x.primaryLinks)&&!((L=this.data)==null?0:L.links)&&this.data.primaryLinks.every(function(D){return D.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var x,L;return!((x=this.data)==null||!x.primaryLinks)&&!((L=this.data)==null?0:L.links)&&!this.shouldShowNewLinks}}});
Sk.prototype.onYtServiceRequestCompleted=Sk.prototype.onYtServiceRequestCompleted;Sk.prototype.dataChanged=Sk.prototype.dataChanged;_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],Sk.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Sk.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Sk.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.F1("#g-recaptcha-response"),_.r("design:type",HTMLTextAreaElement)],Sk.prototype,"JSC$21767_captchaTextarea",void 0);_.A([_.F(),_.r("design:type",Object)],Sk.prototype,"data",void 0);_.A([_.F(),_.r("design:type",String)],Sk.prototype,"businessEmailDisplayState",void 0);_.A([_.F(),_.r("design:type",String)],Sk.prototype,"businessEmail",void 0);_.A([_.F(),_.r("design:type",String)],Sk.prototype,"businessEmailErrorMessage",void 0);
_.A([_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Sk.prototype,"hideDetailsSection",null);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Sk.prototype,"dataChanged",null);_.A([_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Sk.prototype,"shouldShowNewLinks",null);_.A([_.Y("data","shouldShowLinks"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Sk.prototype,"shouldShowLegacyLinks",null);
_.A([_.mX("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Sk.prototype,"onYtServiceRequestCompleted",null);_.A([_.w({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],Sk);
_.q(Sk,"ytd-channel-about-metadata-renderer",function(){if(ID9!==void 0)return ID9;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return ID9=x},{mode:1});var Ed5;_.BD("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var QP=function(){return _.e.apply(this,arguments)||this};
_.p(QP,_.e);QP.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]]"}}}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],QP.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],QP.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],QP.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Number)],QP.prototype,"lockupContainerType",void 0);_.A([_.F(),_.r("design:type",String)],QP.prototype,"thumbnailFixedWidth",void 0);
_.A([_.w({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],QP);
_.q(QP,"ytd-channel-featured-content-renderer",function(){if(Ed5!==void 0)return Ed5;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Ed5=x},{mode:1});var MX3;_.BD("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var JW=function(){var x=_.e.apply(this,arguments)||this;x.roundContainer=!0;x.amsterdamEnabled=_.u("enable_desktop_amsterdam_info_panels");return x};
_.p(JW,_.e);_.K=JW.prototype;_.K.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.K.dataChanged=function(){this.imageWidth=this.imageHeight=24;var x=this.data;x.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!x.style&&x.image&&x.image.thumbnails.length&&(x=x.image.thumbnails[0],this.imageWidth=x.width||0,this.imageHeight=x.height||0)};
_.K.computeSource=function(x){return x.secondarySource?_.SR(x.secondarySource):_.SR(x.source)};
_.K.computeClarifyStyle=function(x){return x?x.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.K.isLargeStyle=function(x){return x==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.K.computeBackgroundStyle=function(x){return x?x.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.K.computeHasActionButton=function(x){return!!x.actionButton};
_.K.computeHasBottomSection=function(x){return!!x.ctaHasBottomSection};
_.K.computeIsSourceMissing=function(x){return x.ctaHasBottomSection===!1?!0:x&&this.computeSource(x)?!1:!0};
_.K.computeSecondaryEndpoint=function(x){return x.secondaryEndpoint||x.endpoint};
JW.prototype.dataChanged=JW.prototype.dataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],JW.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],JW.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],JW.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Number)],JW.prototype,"imageWidth",void 0);_.A([_.F(),_.r("design:type",Number)],JW.prototype,"imageHeight",void 0);
_.A([_.F({computed:"computeSecondaryEndpoint(data)"}),_.r("design:type",Object)],JW.prototype,"secondaryEndpoint",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.r("design:type",Boolean)],JW.prototype,"hasActionButton",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.r("design:type",Boolean)],JW.prototype,"hasBottomSection",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.r("design:type",Boolean)],JW.prototype,"missingSource",void 0);_.A([_.F({computed:"computeIcon_(data.icon)"}),_.r("design:type",String)],JW.prototype,"icon",void 0);_.A([_.F({computed:"computeIcon_(data.secondaryIcon)"}),_.r("design:type",String)],JW.prototype,"secondaryIcon",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.r("design:type",String)],JW.prototype,"clarifyStyle",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.r("design:type",String)],JW.prototype,"backgroundStyle",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],JW.prototype,"roundContainer",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],JW.prototype,"amsterdamEnabled",void 0);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],JW.prototype,"dataChanged",null);
_.A([_.w({is:"ytd-clarification-renderer",disableElementRegistration:!0})],JW);
_.q(JW,"ytd-clarification-renderer",function(){if(MX3!==void 0)return MX3;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return MX3=x},{mode:1});var d29;var PRg;var KM=function(){var x=_.e.apply(this,arguments)||this;x.amsterdamEnabled=_.u("enable_desktop_amsterdam_info_panels");return x};
_.p(KM,_.e);_.K=KM.prototype;_.K.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.K.computeIcon=function(x){return x?"yt-icons:"+x.toLowerCase():null};
_.K.computeUseContacts=function(x){return!!x.contacts&&x.contacts.length>0};
_.K.computePhoneContact=function(x){var L,D;return(L=x.contacts)==null?void 0:(D=L.find(function(S){var Q;return(S==null?void 0:(Q=S.icon)==null?void 0:Q.iconType)==="PHONE"}))==null?void 0:D.actionText};
_.K.computeSmsContact=function(x){var L,D;return(L=x.contacts)==null?void 0:(D=L.find(function(S){var Q;return(S==null?void 0:(Q=S.icon)==null?void 0:Q.iconType)==="SMS"}))==null?void 0:D.actionText};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],KM.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],KM.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],KM.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],KM.prototype,"amsterdamEnabled",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.r("design:type",Boolean)],KM.prototype,"useContacts",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.r("design:type",String)],KM.prototype,"phoneContact",void 0);_.A([_.w({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],KM);
_.q(KM,"ytd-single-action-emergency-support-renderer",function(){if(PRg!==void 0)return PRg;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return PRg=x},{mode:1});_.BD("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var OT=function(){var x=_.e.apply(this,arguments)||this;x.roundedContainer=!0;x.amsterdamEnabled=_.u("enable_desktop_amsterdam_info_panels");return x};
_.p(OT,_.e);OT.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"}}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],OT.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],OT.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],OT.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],OT.prototype,"roundedContainer",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],OT.prototype,"amsterdamEnabled",void 0);
_.A([_.w({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],OT);
_.q(OT,"ytd-emergency-onebox-renderer",function(){if(d29!==void 0)return d29;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return d29=x},{mode:1});var jx3;_.BD("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var Zj=function(){return _.e.apply(this,arguments)||this};
_.p(Zj,_.e);Zj.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"}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Zj.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Zj.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Zj.prototype,"data",void 0);_.A([_.w({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],Zj);
_.q(Zj,"ytd-exploratory-results-renderer",function(){if(jx3!==void 0)return jx3;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return jx3=x},{mode:1});var vdg;_.BD("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var yP=function(){var x=_.e.apply(this,arguments)||this;x.messageData=null;return x};
_.p(yP,_.e);_.K=yP.prototype;_.K.onServiceRequestCompleted=function(x,L){x=L.actions||[];L=0;for(var D=x.length;L<D;L++){var S=x[L],Q=void 0,J=void 0;if((Q=_.g(S,_.$K))==null?0:(J=Q.item)==null?0:J.messageRenderer)this.messageData=_.g(S,_.$K).item.messageRenderer}};
_.K.dataChanged=function(){var x=this.data;this.hostElement.hidden=!1;_.VA(this.hostElement,"is-channel",x&&!x.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.K.computeThumbnailWidth=function(x){return x?126:56};
_.K.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.K.onSubmitTap=function(){var x=this.data,L=this.selectedResponseIndex;x!==void 0&&L!==void 0&&(x=x.responses[L],x.responseData&&_.yY().resolve(_.E2).resolveCommand(x.responseData,{form:{element:this.hostElement}}))};
_.K.onDismissTap=function(){this.hostElement.hidden=!0;var x=this.data;x!==void 0&&x.dismissalEndpoint&&_.yY().resolve(_.E2).resolveCommand(x.dismissalEndpoint,{form:{element:this.hostElement}})};
_.K.updateSelectedResponseIndexFromBinding=function(x){this.selectedResponseIndex=x.detail.value};
yP.prototype.onSelectedResponseIndexChange=yP.prototype.onSelectedResponseIndexChange;yP.prototype.dataChanged=yP.prototype.dataChanged;yP.prototype.onServiceRequestCompleted=yP.prototype.onServiceRequestCompleted;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],yP.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],yP.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],yP.prototype,"messageData",void 0);
_.A([_.F(),_.r("design:type",Number)],yP.prototype,"selectedResponseIndex",void 0);_.A([_.F1("#submit-button"),_.r("design:type",HTMLButtonElement)],yP.prototype,"submitButton",void 0);_.A([_.mX("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.S2]),_.r("design:returntype")],yP.prototype,"onServiceRequestCompleted",null);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],yP.prototype,"dataChanged",null);
_.A([_.bN("selectedResponseIndex"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],yP.prototype,"onSelectedResponseIndexChange",null);_.A([_.w({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],yP);
_.q(yP,"ytd-feedback-elicitation-single-question-renderer",function(){if(vdg!==void 0)return vdg;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return vdg=x},{mode:1});var VXX;var Ip=function(){return _.e.apply(this,arguments)||this};
_.p(Ip,_.e);Ip.prototype.computeThumbnailWidth=function(x){return x?602:428};
Ip.prototype.updateWideFromBinding=function(x){this.wide=x.detail.value};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Ip.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Ip.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Boolean)],Ip.prototype,"wide",void 0);_.A([_.w({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],Ip);
_.q(Ip,"ytd-newspaper-hero-video-renderer",function(){if(VXX!==void 0)return VXX;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return VXX=x},{mode:1});var hH3;var ET=function(){return _.e.apply(this,arguments)||this};
_.p(ET,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],ET.prototype,"rendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],ET.prototype,"data",void 0);_.A([_.w({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],ET);
_.q(ET,"ytd-newspaper-mini-video-renderer",function(){if(hH3!==void 0)return hH3;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return hH3=x},{mode:1});var HQu;_.BD("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var Md=function(){return _.e.apply(this,arguments)||this};
_.p(Md,_.e);Md.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"}}}};
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Md.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Md.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Md.prototype,"data",void 0);_.A([_.w({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],Md);
_.q(Md,"ytd-newspaper-renderer",function(){if(HQu!==void 0)return HQu;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return HQu=x},{mode:1});var uFX;_.BD("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var dl=function(){var x=_.e.apply(this,arguments)||this;x.isSegment=!1;x.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};x.nextContinuation={continuationType:"playlistVideoListContinuation"};return x};
_.p(dl,_.e);_.K=dl.prototype;_.K.attached=function(){_.yY();var x;(x=_.yY().resolve(_.ZN(_.W1)))!=null&&(x.playlistVideoListElement=this.hostElement)};
_.K.detached=function(){var x;(x=_.yY().resolve(_.ZN(_.W1)))!=null&&(x.playlistVideoListElement=void 0);x=_.yY().resolve(_.ZN(_.Ug));_.u("web_enable_voting_animation")&&x&&(x.parentElem=void 0,x.videos=[],x.continuationsPresent=!1,x.showRefreshPill=!1)};
_.K.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"}}}}}};
_.K.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.K.dataChanged=function(){var x=_.yY().resolve(_.ZN(_.Ug));if(_.u("web_enable_voting_animation")&&this.data&&x){var L=_.jr(this.hostElement).querySelector("#contents");L&&(x.parentElem=L);x.addVideos(this.data.contents)}_.WaR(this.ytReorderableBehavior)};
_.K.onRendererstamperFinished=function(){this.canReorder&&_.qpi(this.ytReorderableBehavior,_.jr(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.K.onPlaylistReloading=function(){this.isReloading=!0};
_.K.onUpdateSetVideoId=function(x){if(x.detail&&this.data&&this.data.contents){var L=x.detail;x=this.data.contents.findIndex(function(Q){var J;return((J=Q.playlistVideoRenderer)==null?void 0:J.videoId)===L.videoId});
if(!(x<0)&&L.setVideoId&&(this.set("data.contents."+x+".playlistVideoRenderer.setVideoId",L.setVideoId),_.u("web_enable_voting_animation"))){var D;if(x=_.g((D=this.data.contents[x].playlistVideoRenderer)==null?void 0:D.engagementBar,_.GAc)){var S;(S=x.actions)==null||S.forEach(function(Q){if(Q=_.g(Q,_.CD0))Q.itemId=L.setVideoId})}(D=_.yY().resolve(_.ZN(_.Ug)))&&ajl(D,L.videoId,L.setVideoId)}}};
_.K.computeContentsClass=function(x){return x?"reloading":""};
_.K.computeIsSortable=function(x,L){return x&&L>0&&!this.isSegment&&!_.u("shorts_in_playlists_web")};
_.K.computeIsEditable=function(x){return x};
_.K.computeCanReorder=function(x){return x};
_.K.handlePlaylistRemoveVideosAction=function(x){if(this.get("playlistRemoveVideosAction.setVideoIds",x)&&this.data&&this.data.contents){x=_.g(x,_.RQW).setVideoIds;for(var L=this.data.contents.length-1;L>=0;){var D=this.data.contents[L].playlistVideoRenderer;D&&D.setVideoId&&x.includes(D.setVideoId)&&this.splice("data.contents",L,1);L--}_.dg(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.K.updateIndices=function(){if(this.data&&this.data.contents)for(var x=0;x<this.data.contents.length;x++)this.set("data.contents."+x+".playlistVideoRenderer.index",_.Dv(String(x+1)))};
_.K.handleDrop=function(x){x=x.currDragItem;var L=_.qf(x.parentNode.childNodes,x),D=this.data.contents.splice(Number(_.SR(x.data.index))-1,1)[0];this.data.contents.splice(L,0,D);L=L?this.get("contents."+(L-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();x=this.buildReorderServiceEndpoint(x.data.setVideoId,L);this.ytComponentBehavior.resolveCommand(x)};
_.K.buildReorderServiceEndpoint=function(x,L){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",x),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",L),this.data.onReorderEndpoint):null};
_.K.handleUpdatePlaylistAction=function(x){var L;(x=_.g((L=_.g(x,_.GpB))==null?void 0:L.updatedRenderer,_.sQd))&&this.canReorder!==x.canReorder&&this.set("data.canReorder",x.canReorder);x&&x.contents&&(this.set("data.contents",x.contents),this.isReloading=!1);x&&x.continuations&&this.set("data.continuations",x.continuations)};
_.K.handleAddRendererToItemSectionAction=function(x){var L,D=(L=_.g(x,tkY))==null?void 0:L.renderer,S;D&&((S=_.g(x,tkY))==null?void 0:S.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,D),x=_.yY().resolve(_.ZN(_.Ug)),_.u("web_enable_voting_animation")&&x&&(D&&(L=_.RR0(D))&&x.recommendedVideos.push({itemId:L,videoId:_.lLh(D),voteCount:_.Ums(D),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.K.isVotingEnabledOnPlaylist=function(x){if(!x)return!1;x=_.O(x);for(x=x.next();!x.done;x=x.next()){var L=void 0;return!!_.g((L=x.value.playlistVideoRenderer)==null?void 0:L.engagementBar,_.GAc)}return!1};
_.K.onAppendContinuationItemsActionFinished=function(){var x;this.isVotingEnabledOnPlaylist((x=this.data)==null?void 0:x.contents)&&(this.updateIndices(),x=_.yY().resolve(_.ZN(_.Ug)),_.u("web_enable_voting_animation")&&x&&this.data&&x.addVideos(this.data.contents))};
_.K.updateVideoData=function(x){if(x.detail&&this.data&&this.data.contents){var L=x.detail;x=L.toIdx;var D=L.itemId,S=L.newVoteCount,Q=L.voteStatus;L=L.hideItem;var J,Z,y=(J=this.data)==null?void 0:(Z=J.contents)==null?void 0:Z.findIndex(function(V){return _.RR0(V)===D});
if(!(y<0)){J=this.data.contents[y];var E;if((E=J.playlistVideoRenderer)==null?0:E.voteCount)J.playlistVideoRenderer.voteCount=S;var P;if(E=_.g((P=J.playlistVideoRenderer)==null?void 0:P.engagementBar,_.GAc)){var v;(v=E.actions)==null||v.forEach(function(V){(V=_.g(V,_.CD0))&&V.initialState&&(V.initialState.votes=S,V.initialState.status=Q)})}this.data.contents.splice(y,1);
L||this.data.contents.splice(x,0,J);this.updateIndices()}}};
dl.prototype.updateVideoData=dl.prototype.updateVideoData;dl.prototype.onAppendContinuationItemsActionFinished=dl.prototype.onAppendContinuationItemsActionFinished;dl.prototype.onUpdateSetVideoId=dl.prototype.onUpdateSetVideoId;dl.prototype.onPlaylistReloading=dl.prototype.onPlaylistReloading;dl.prototype.onRendererstamperFinished=dl.prototype.onRendererstamperFinished;dl.prototype.dataChanged=dl.prototype.dataChanged;
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],dl.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],dl.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],dl.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.u0.YtNextContinuationBehavior),_.r("design:type",Object)],dl.prototype,"ytNextContinuationBehavior",void 0);
_.A([_.b(_.Atd),_.r("design:type",Object)],dl.prototype,"ytReorderableBehavior",void 0);_.A([_.b(_.HS),_.r("design:type",Object)],dl.prototype,"ytContinuationHandlerBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],dl.prototype,"ytComponentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],dl.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Boolean)],dl.prototype,"isReloading",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],dl.prototype,"isSegment",void 0);_.A([_.F({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.r("design:type",Boolean)],dl.prototype,"isSortable",void 0);_.A([_.F({computed:"computeIsEditable(data.isEditable)"}),_.r("design:type",Boolean)],dl.prototype,"isEditable",void 0);_.A([_.F({computed:"computeCanReorder(data.canReorder)"}),_.r("design:type",Boolean)],dl.prototype,"canReorder",void 0);
_.A([_.F({value:101}),_.r("design:type",Number)],dl.prototype,"scrollMargin",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],dl.prototype,"dataChanged",null);_.A([_.mX("yt-rendererstamper-finished"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],dl.prototype,"onRendererstamperFinished",null);
_.A([_.mX("yt-playlist-reloading"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],dl.prototype,"onPlaylistReloading",null);_.A([_.mX("yt-update-set-video-id"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],dl.prototype,"onUpdateSetVideoId",null);
_.A([_.mX("yt-append-continuation-items-action-finished"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],dl.prototype,"onAppendContinuationItemsActionFinished",null);_.A([_.mX("yt-update-video-data-voting-animation"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],dl.prototype,"updateVideoData",null);_.A([_.w({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],dl);
_.q(dl,"ytd-playlist-video-list-renderer",function(){if(uFX!==void 0)return uFX;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return uFX=x},{mode:_.Vm("kevlar_poly_si_batch_j047")?1:2});var gdl;var Pw=function(){return _.e.apply(this,arguments)||this};
_.p(Pw,_.e);Pw.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"}}}}};
Pw.prototype.onTextWrapperTap=function(x){var L=this.data&&this.data.navigationEndpoint;L&&!_.QC(_.Jq(x),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.MF(this.hostElement,"yt-navigate",{endpoint:L})};
Pw.prototype.dataChanged=function(){var x=this.get("data.offerButton.buttonRenderer.serviceEndpoint");x&&x.commandMetadata&&_.g(x.commandMetadata,_.of)&&_.g(x.commandMetadata,_.of).fireAutomatically&&_.yY().resolve(_.E2).resolveCommand(x,{form:{element:this.hostElement}})};
Pw.prototype.dataChanged=Pw.prototype.dataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Pw.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Pw.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.uM),_.r("design:type",Object)],Pw.prototype,"ytdLockupBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Pw.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0,value:function(){return _.u("enable_desktop_search_bigger_thumbs")}}),
_.r("design:type",Boolean)],Pw.prototype,"useBiggerThumbs",void 0);_.A([_.F({reflectToAttribute:!0,value:function(){return _.PY("desktop_search_bigger_thumbs_style")}}),
_.r("design:type",String)],Pw.prototype,"biggerThumbsStyle",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],Pw.prototype,"leftAligned",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Pw.prototype,"dataChanged",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-movie-renderer"})],Pw);
_.q(Pw,"ytd-movie-renderer",function(){if(gdl!==void 0)return gdl;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return gdl=x},{mode:1});var k5s;var jk=function(){var x=_.e.apply(this,arguments)||this;x.rounded=!0;x.pageAttachedTo=void 0;x.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return x};
_.p(jk,_.e);jk.prototype.attached=function(){this.pageAttachedTo=_.yY().resolve(_.KX).getCurrentPage();_.MF(this.hostElement,"yt-player-attached",this.player)};
jk.prototype.detached=function(){var x;if((x=this.pageAttachedTo)==null?0:x.hostElement)_.MF(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
jk.prototype.dataChanged=function(){var x;if((x=this.data)==null?0:x.videoId)x={video_id:this.data.videoId,autoplay:!0},!_.u("miniplayer_stop_channel_video_autoplay_killswitch")&&_.yY().resolve(_.iy).isMiniplayerActive()&&(x.pause_at_start=!0,x.autoplay=!1),this.player.loadVideoWithPlayerVars(x)};
jk.prototype.handleSignalActionPausePlayer=function(){_.yC().pause()};
jk.prototype.dataChanged=jk.prototype.dataChanged;_.A([_.F(),_.r("design:type",Object)],jk.prototype,"data",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],jk.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],jk.prototype,"ytActionHandlerBehavior",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],jk.prototype,"rounded",void 0);_.A([_.F1("#player"),_.r("design:type",Object)],jk.prototype,"player",void 0);
_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],jk.prototype,"dataChanged",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],jk);
_.q(jk,"ytd-channel-video-player-renderer",function(){if(k5s!==void 0)return k5s;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return k5s=x},{mode:1});var ptX;var m2q;var bQq;var vw=function(){var x=_.e.apply(this,arguments)||this;x.playing=!1;x.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.zN(x);x.active=!1;return x};
_.p(vw,_.e);_.K=vw.prototype;_.K.detached=function(){this.stop()};
_.K.play=function(){var x=this,L,D,S,Q,J;return _.I(function(Z){if(Z.nextAddress==1)return x.active=!0,L=x.get("data.inlinePlaybackEndpoint.watchEndpoint"),D=L.videoId||x.data.videoId,S=L.startTimeSeconds||0,Q=L.playerParams||null,_.u("kevlar_player_update_killswitch")?Z.yield(x.playerEl.update({args:{video_id:D,startSeconds:S,player_params:Q}}),2):(x.playerEl.loadVideoWithPlayerVars({video_id:D,startSeconds:S,player_params:Q,autoplay:!0}),Z.jumpTo(2));if(Z.nextAddress!=4)return Z.yield(x.playerEl.getPlayerPromise(),
4);J=Z.yieldResult;J.unloadModule("annotations_module");J.addEventListener("onStateChange",function(y){x.onPlayerStateChange(y)});
_.Y2(Z)})};
_.K.onPlayerStateChange=function(x){if(this.active)switch(this.playing=x===1,x){case 1:_.MF(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.MF(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.K.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.K.resize=function(){var x=this,L;return _.I(function(D){if(D.nextAddress==1)return D.yield(x.playerEl.getPlayerPromise(),2);L=D.yieldResult;L.setSize(NaN,NaN);_.Y2(D)})};
_.A([_.F(),_.r("design:type",Object)],vw.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],vw.prototype,"playing",void 0);_.A([_.F(),_.r("design:type",Object)],vw.prototype,"playerId",void 0);_.A([_.F1("#player"),_.r("design:type",Object)],vw.prototype,"playerEl",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],vw);
_.q(vw,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(bQq!==void 0)return bQq;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return bQq=x},{mode:1});var Ynl;var Fy9;var VP=function(){var x=_.e.apply(this,arguments)||this;x.width=0;return x};
_.p(VP,_.e);_.K=VP.prototype;_.K.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.p$(this,this.onEnded));this.mp4El.addEventListener("error",_.p$(this,this.onError))};
_.K.detached=function(){this.videoEl.removeEventListener("ended",_.p$(this,this.onEnded));this.mp4El.removeEventListener("error",_.p$(this,this.onError))};
_.K.play=function(){var x=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var L=this.videoEl.play();L?L.then(function(){x.handleVideoStartPlaying()}).catch(function(){_.MF(x.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.MF(this.hostElement,"yt-video-thumbnail-not-playing")};
_.K.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.K.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.K.dataChanged=function(){var x;if((x=this.data)==null?0:x.thumbnailPlaceholder)x=_.PD(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+x+")";this.stop();this.autoplay&&this.play()};
_.K.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.K.onEnded=function(){this.stop();_.MF(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.K.onError=function(){_.MF(this.hostElement,"yt-video-thumbnail-error")};
_.K.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.K.getVideoThumbnail=function(x){if(x&&x.length)return x[0]};
VP.prototype.dataChanged=VP.prototype.dataChanged;_.A([_.F(),_.r("design:type",Object)],VP.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],VP.prototype,"animatePlaceholderOnEntrance",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],VP.prototype,"autoplay",void 0);_.A([_.F({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.r("design:type",Object)],VP.prototype,"videoThumbnail",void 0);
_.A([_.F(),_.r("design:type",Boolean)],VP.prototype,"loop",void 0);_.A([_.F(),_.r("design:type",Boolean)],VP.prototype,"isVideoPlaying",void 0);_.A([_.F(),_.r("design:type",Object)],VP.prototype,"width",void 0);_.A([_.F1("#mp4"),_.r("design:type",HTMLElement)],VP.prototype,"mp4El",void 0);_.A([_.F1("#placeholder"),_.r("design:type",HTMLElement)],VP.prototype,"placeholderEl",void 0);_.A([_.F1("#video"),_.r("design:type",HTMLVideoElement)],VP.prototype,"videoEl",void 0);
_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],VP.prototype,"dataChanged",null);_.A([_.oW({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],VP);
_.q(VP,"yt-video-as-thumbnail-details",function(){if(Fy9===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;Ynl===void 0&&(Ynl=document.createElement("template"));var S=Ynl;D.call(L,S.content.cloneNode(!0),x.content.firstChild);Fy9=x}x=Fy9;return x},{mode:2});var hW=function(){var x=_.e.apply(this,arguments)||this;x.disableGridStateAware=!1;x.animationEnabled=_.u("enable_web_ketchup_hero_animation");x.transitioningOut=!1;x.narrow=!1;x.narrower=!1;x.isCarouselInFeed=!1;x.videoTimeoutJobId=0;x.panelTimeoutJobId=0;x.panelTimeoutJobStartMs=0;x.actionMap={"yt-window-resized":"onWindowResized"};return x};
_.p(hW,_.e);_.K=hW.prototype;_.K.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.K.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.K.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var x;this.player&&((x=this.data)==null?0:x.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.K.attached=function(){this.onWindowResized()};
_.K.detached=function(){this.clearTimeouts()};
_.K.onWindowResized=function(){this.updateSize()};
_.K.computePanelLayout=function(x){return x&&x.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.K.playVideo=function(){var x;this.video&&((x=this.data)==null?0:x.videoThumbnail)&&this.video.play();var L;this.player&&((L=this.data)==null?0:L.inlinePlaybackRenderer)&&this.player.play()};
_.K.stopVideo=function(){var x;this.video&&((x=this.data)==null?0:x.videoThumbnail)&&this.video.stop();var L;this.player&&((L=this.data)==null?0:L.inlinePlaybackRenderer)&&this.player.stop()};
_.K.transitionOut=function(){var x=this;this.transitioningOut=!0;return new Promise(function(L){var D=function(){_.jr(x.hostElement).querySelector("#action-button").removeEventListener("animationend",D);_.WW.cancelJob(S);L();x.transitioningOut=!1};
var S=_.TG(_.WW,D,1E3);_.jr(x.hostElement).querySelector("#action-button").addEventListener("animationend",D);x.player&&(x.player.playing=!1)})};
_.K.computeMetadataOrder=function(x){return x&&x.metadataOrder&&x.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?x.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.K.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.K.computeAvatarSize=function(x){return x&&x.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.K.onContentClick=function(x){if(!_.QC(_.Jq(x),this.hostElement,["A".toString(),"BUTTON".toString()])){var L;if((L=this.data)==null?0:L.navigationEndpoint){var D;this.componentBehavior.resolveCommand((D=this.data)==null?void 0:D.navigationEndpoint)}}};
_.K.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.K.setBackgroundImage=function(x){if(x=this.getBackgroundImageUrl(x))_.jr(this.hostElement).querySelector("#hero").style.backgroundImage="url("+x+")"};
_.K.setScrimLayer=function(x){var L=this.getScrimLayerColorStops(x);x=((x==null?void 0:x.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(x=180);_.$6("HTML_DIR")==="rtl"&&(x=-x);L&&(_.jr(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+x+"deg, "+L+")")};
_.K.isNarrower=function(){return this.hostElement.clientWidth<hW.NARROW_VERSION_SIZE};
_.K.getScrimLayerColorStops=function(){var x,L=(x=this.data)==null?void 0:x.scrimColorValues;if(!L)return null;if(L.length===1)return x=_.XA(L[0]),x+" 0%, "+x+" 100%";if(L.length===3){var D=[0,72,98];return L.map(function(S,Q){return _.XA(S)+" "+D[Q]+"%"}).join(",")}return null};
_.K.getBackgroundImageUrl=function(x){return x&&x.largeFormFactorBackgroundThumbnail?_.PD((x.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||x.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.K.onPlaying=function(){this.startVideoTimeout()};
_.K.onEnded=function(){this.rotate()};
_.K.startPanelTimeout=function(){var x=this;if(!this.panelTimeoutJobId){var L=this.get("data.minPanelDisplayDurationMs");L&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.TG(_.WW,function(){x.rotate()},L))}};
_.K.startVideoTimeout=function(){var x=this;if(!this.videoTimeoutJobId){_.WW.cancelJob(this.panelTimeoutJobId);var L=Date.now()-this.panelTimeoutJobStartMs;L=Math.max(0,this.get("data.minPanelDisplayDurationMs")-L);L=Math.max(this.get("data.minVideoPlayDurationMs")||0,L);this.videoTimeoutJobId=_.TG(_.WW,function(){x.rotate()},L)}};
_.K.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.WW.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.WW.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.K.rotate=function(){this.clearTimeouts();_.MF(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.J3.Object.defineProperties(hW.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.jr(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.jr(this.hostElement).querySelector("#video")}}});
_.J3.Object.defineProperties(hW,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
hW.prototype.onEnded=hW.prototype.onEnded;hW.prototype.onPlaying=hW.prototype.onPlaying;hW.prototype.dataChanged=hW.prototype.dataChanged;_.A([_.b(_.jC),_.r("design:type",Object)],hW.prototype,"ytdGridStateAwareBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],hW.prototype,"componentBehavior",void 0);_.A([_.b(_.Vi.YtdGuideStateAwareBehavior),_.r("design:type",Object)],hW.prototype,"ytdGuideStateAwareBehavior",void 0);
_.A([_.b(_.LCR),_.r("design:type",Object)],hW.prototype,"ytBooleanLogicBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],hW.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],hW.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],hW.prototype,"ytRendererBehavior",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],hW.prototype,"disableGridStateAware",void 0);_.A([_.F(),_.r("design:type",Object)],hW.prototype,"data",void 0);_.A([_.F({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.r("design:type",String)],hW.prototype,"panelLayout",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],hW.prototype,"animationEnabled",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],hW.prototype,"transitioningOut",void 0);
_.A([_.F({computed:"computeMetadataOrder(data)"}),_.r("design:type",Boolean)],hW.prototype,"metadataOrder",void 0);_.A([_.F({computed:"computeByline(data)"}),_.r("design:type",Object)],hW.prototype,"byline",void 0);_.A([_.F({computed:"computeAvatarSize(data)"}),_.r("design:type",Number)],hW.prototype,"avatarSize",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],hW.prototype,"narrow",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],hW.prototype,"narrower",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],hW.prototype,"layoutStyle",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],hW.prototype,"isCarouselInFeed",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],hW.prototype,"dataChanged",null);_.A([_.mX("yt-default-promo-panel-renderer-playing"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],hW.prototype,"onPlaying",null);
_.A([_.mX("yt-default-promo-panel-renderer-ended"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],hW.prototype,"onEnded",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],hW);
_.q(hW,"ytd-default-promo-panel-renderer",function(){if(m2q!==void 0)return m2q;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return m2q=x},{mode:1});_.BD("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var Hw=function(){var x=_.e.apply(this,arguments)||this;x.narrower=!1;x.dotMenuVisible=!1;x.paginationThumbnailsVisible=!1;x.active=!0;x.disableGridStateAware=!1;x.actionMap={"yt-window-resized":"onWindowResized"};return x};
_.p(Hw,_.e);_.K=Hw.prototype;_.K.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]]"}}}}}};
_.K.attached=function(){document.addEventListener("yt-page-type-changed",_.p$(this,this.onPageTypeChange));this.currentPageSubtype=_.ojw(location.pathname);this.onWindowResized()};
_.K.detached=function(){this.jobId&&_.WW.cancelJob(this.jobId);this.updateSizeJobId&&_.WW.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.p$(this,this.onPageTypeChange))};
_.K.onPageTypeChange=function(x){this.active=x.detail.newPageSubtype===this.currentPageSubtype};
_.K.onWindowResized=function(){this.updateSize()};
_.K.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.K.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.K.setCarouselItem=function(x){x>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.WW.cancelJob(this.jobId);var L=this.getCurrentPanelElement();L&&L.stopVideo();this.currentItemIndex=x%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(L||(L=this.getCurrentPanelElement()),L.playVideo()):this.startRotationJob()};
_.K.scrollThumbnails=function(x){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var L=this.getCurrentPaginationElement();if(L){var D=_.jr(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?D.style.transform="translateX(0)":(L=L.offsetWidth+8,D.style.transform="translateX(-"+L*(x-Math.ceil(Math.floor(this.overlay.offsetWidth/L)/2)+1)+"px)")}}};
_.K.onDataChanged=function(){var x=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.VG(_.WW,function(){var L;(L=x.getCurrentPanelElement())==null||L.updateSize();x.updateSize()}))};
_.K.getCurrentPanelElement=function(){return _.jr(_.jr(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.K.getCurrentPaginationElement=function(){return _.jr(_.jr(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.K.getNavigationClass=function(x,L){return x===L?"selected":""};
_.K.getNavigationDurationStyle=function(x){return"animation-duration:"+(this.get("data.carouselItems."+x+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.K.onNavigationTap=function(x){var L=this,D=x.model.index;D!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){L.setCarouselItem(D)}),this.autorotateActive=!1)};
_.K.onVideoThumbnailEnded=function(){var x=this;if(this.shouldRotate()){var L=this.getCurrentPaginationElement();L&&(L.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){L.classList.remove("finished");x.setNextCarouselItem()}))}};
_.K.onVideoThumbnailError=function(){this.startRotationJob()};
_.K.onVideoNotPlaying=function(){this.startRotationJob()};
_.K.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.K.startRotationJob=function(){var x=this;_.WW.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.WW.addLowPriorityJob(function(){x.getCurrentPanelElement().transitionOut().then(function(){x.setNextCarouselItem()})},this.rotationTimeout))};
_.K.computeDotMenuVisible=function(x,L){return!!x&&!!x.carouselItems&&x.carouselItems.length>1&&!x.paginationThumbnails||!!L};
_.K.computePaginationThumbnailsVisible=function(x,L){var D,S;return((S=x==null?void 0:(D=x.paginationThumbnails)==null?void 0:D.length)!=null?S:0)>1&&!L};
_.K.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.K.computePaginatorAlignment=function(x){return(x==null?void 0:x.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.K.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.K.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.K.isNarrower=function(x){return(x!=null?x:0)<hW.NARROW_VERSION_SIZE};
Hw.prototype.activeChanged=Hw.prototype.activeChanged;Hw.prototype.onVideoNotPlaying=Hw.prototype.onVideoNotPlaying;Hw.prototype.onVideoThumbnailError=Hw.prototype.onVideoThumbnailError;Hw.prototype.onVideoThumbnailEnded=Hw.prototype.onVideoThumbnailEnded;Hw.prototype.onDataChanged=Hw.prototype.onDataChanged;_.A([_.b(_.jC),_.r("design:type",Object)],Hw.prototype,"ytdGridStateAwareBehavior",void 0);
_.A([_.b(_.Vi.YtdGuideStateAwareBehavior),_.r("design:type",Object)],Hw.prototype,"ytdGuideStateAwareBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Hw.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Hw.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Hw.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],Hw.prototype,"currentItem",void 0);
_.A([_.F(),_.r("design:type",Number)],Hw.prototype,"currentItemIndex",void 0);_.A([_.F(),_.r("design:type",Number)],Hw.prototype,"rotationTimeout",void 0);_.A([_.F(),_.r("design:type",Number)],Hw.prototype,"loopCount",void 0);_.A([_.F({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.r("design:type",String)],Hw.prototype,"paginatorAlignment",void 0);_.A([_.F(),_.r("design:type",Number)],Hw.prototype,"jobId",void 0);
_.A([_.F(),_.r("design:type",Number)],Hw.prototype,"updateSizeJobId",void 0);_.A([_.F({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],Hw.prototype,"isCarouselInFeed",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Hw.prototype,"narrower",void 0);_.A([_.F({computed:"computeDotMenuVisible(data, narrower)"}),_.r("design:type",Object)],Hw.prototype,"dotMenuVisible",void 0);
_.A([_.F({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.r("design:type",Object)],Hw.prototype,"paginationThumbnailsVisible",void 0);_.A([_.F({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.r("design:type",String)],Hw.prototype,"layoutType",void 0);_.A([_.F({value:!0,reflectToAttribute:!0}),_.r("design:type",Boolean)],Hw.prototype,"autorotateActive",void 0);_.A([_.F(),_.r("design:type",Object)],Hw.prototype,"active",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Hw.prototype,"disableGridStateAware",void 0);_.A([_.F1("#overlay"),_.r("design:type",HTMLElement)],Hw.prototype,"overlay",void 0);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Hw.prototype,"onDataChanged",null);
_.A([_.mX("yt-video-thumbnail-ended"),_.mX("yt-default-promo-panel-renderer-rotate"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Hw.prototype,"onVideoThumbnailEnded",null);_.A([_.mX("yt-video-thumbnail-error"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Hw.prototype,"onVideoThumbnailError",null);
_.A([_.mX("yt-video-thumbnail-not-playing"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Hw.prototype,"onVideoNotPlaying",null);_.A([_.GV("active"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Hw.prototype,"activeChanged",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],Hw);
_.q(Hw,"ytd-carousel-item-renderer",function(){if(ptX!==void 0)return ptX;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return ptX=x},{mode:2});var sx$;var TRl;var eH9;var RH5;var un=function(){var x=_.e.apply(this,arguments)||this;x.originalQuery=null;x.originalEndpoint=null;return x};
_.p(un,_.e);un.prototype.computeShowOriginalQueryWithoutEndpoint_=function(x,L){return!(!x||L)};
_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],un.prototype,"ytComponentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],un.prototype,"correctedText",void 0);_.A([_.F(),_.r("design:type",Object)],un.prototype,"correctedQuery",void 0);_.A([_.F(),_.r("design:type",Object)],un.prototype,"correctedEndpoint",void 0);_.A([_.F(),_.r("design:type",Object)],un.prototype,"originalText",void 0);_.A([_.F(),_.r("design:type",Object)],un.prototype,"originalQuery",void 0);
_.A([_.F(),_.r("design:type",Object)],un.prototype,"originalEndpoint",void 0);_.A([_.F({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.r("design:type",Boolean)],un.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.A([_.oW({is:"yt-search-query-correction",disableElementRegistration:!0})],un);
_.q(un,"yt-search-query-correction",function(){if(RH5===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;eH9===void 0&&(eH9=document.createElement("template"));var S=eH9;D.call(L,S.content.cloneNode(!0),x.content.firstChild);RH5=x}x=RH5;return x},{mode:2});_.BD("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var gl=function(){return _.e.apply(this,arguments)||this};
_.p(gl,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],gl.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],gl.prototype,"data",void 0);_.A([_.oW({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],gl);
_.q(gl,"yt-did-you-mean-renderer",function(){if(TRl===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;sx$===void 0&&(sx$=document.createElement("template"));var S=sx$;D.call(L,S.content.cloneNode(!0),x.content.firstChild);TRl=x}x=TRl;return x},{mode:2});var G59;var CR5;_.BD("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var lDq=function(){return _.e.apply(this,arguments)||this};
_.p(lDq,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],lDq.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],lDq.prototype,"data",void 0);_.A([_.oW({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],lDq);
_.q(lDq,"yt-including-results-for-renderer",function(){if(CR5===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;G59===void 0&&(G59=document.createElement("template"));var S=G59;D.call(L,S.content.cloneNode(!0),x.content.firstChild);CR5=x}x=CR5;return x},{mode:2});var U2q;var wtg;_.BD("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var k_=function(){return _.e.apply(this,arguments)||this};
_.p(k_,_.e);k_.prototype.computeExtraClasses_=function(x,L){var D="";x&&(D+=" "+x.toLowerCase().replace(/_/g,"-"));L&&(D+=" "+L.toLowerCase().replace(/_/g,"-"));return D};
k_.prototype.computeUrlImg_=function(){var x=this.data;x.image&&(_.jr(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.PD(x.image.thumbnails,Number.MAX_VALUE)+")")};
k_.prototype.computeUrlImg_=k_.prototype.computeUrlImg_;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],k_.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],k_.prototype,"data",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],k_.prototype,"computeUrlImg_",null);_.A([_.oW({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],k_);
_.q(k_,"yt-music-pass-feature-info-renderer",function(){if(wtg===void 0){var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;U2q===void 0&&(U2q=document.createElement("template"));var S=U2q;D.call(L,S.content.cloneNode(!0),x.content.firstChild);wtg=x}x=wtg;return x},{mode:2});var BRq;var WyW;_.BD("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var qn5=function(){return _.e.apply(this,arguments)||this};
_.p(qn5,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],qn5.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],qn5.prototype,"data",void 0);_.A([_.oW({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],qn5);
_.q(qn5,"yt-no-results-found-showing-results-for-renderer",function(){if(WyW===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;BRq===void 0&&(BRq=document.createElement("template"));var S=BRq;D.call(L,S.content.cloneNode(!0),x.content.firstChild);WyW=x}x=WyW;return x},{mode:2});var AvW;var $25;_.BD("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var rv9=function(){return _.e.apply(this,arguments)||this};
_.p(rv9,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],rv9.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],rv9.prototype,"data",void 0);_.A([_.oW({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],rv9);
_.q(rv9,"yt-results-without-quotes-renderer",function(){if($25===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;AvW===void 0&&(AvW=document.createElement("template"));var S=AvW;D.call(L,S.content.cloneNode(!0),x.content.firstChild);$25=x}x=$25;return x},{mode:2});var NRY;var iQX;_.BD("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var fDu=function(){return _.e.apply(this,arguments)||this};
_.p(fDu,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],fDu.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],fDu.prototype,"data",void 0);_.A([_.oW({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],fDu);
_.q(fDu,"yt-search-no-results-renderer",function(){if(iQX===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;NRY===void 0&&(NRY=document.createElement("template"));var S=NRY;D.call(L,S.content.cloneNode(!0),x.content.firstChild);iQX=x}x=iQX;return x},{mode:2});var ods;var aDG;_.BD("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var zH5=function(){return _.e.apply(this,arguments)||this};
_.p(zH5,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],zH5.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],zH5.prototype,"data",void 0);_.A([_.oW({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],zH5);
_.q(zH5,"yt-showing-results-for-renderer",function(){if(aDG===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;ods===void 0&&(ods=document.createElement("template"));var S=ods;D.call(L,S.content.cloneNode(!0),x.content.firstChild);aDG=x}x=aDG;return x},{mode:2});var XtG;var cv9;var ndl;var tXG;var pM=function(){var x=_.e.apply(this,arguments)||this;x.answerExpanded=!1;return x};
_.p(pM,_.e);pM.prototype.toggleAnswer_=function(x){var L=_.K$(x);L&&L.classList.contains("yt-simple-endpoint")||(x.preventDefault(),x.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
pM.prototype.toggleAnswer_=pM.prototype.toggleAnswer_;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],pM.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],pM.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],pM.prototype,"answerExpanded",void 0);_.A([_.mX("tap"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],pM.prototype,"toggleAnswer_",null);
_.A([_.oW({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],pM);
_.q(pM,"yt-generic-faq-question-renderer",function(){if(tXG===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;ndl===void 0&&(ndl=document.createElement("template"));var S=ndl;D.call(L,S.content.cloneNode(!0),x.content.firstChild);tXG=x}x=tXG;return x},{mode:2});_.BD("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var mf=function(){return _.e.apply(this,arguments)||this};
_.p(mf,_.e);mf.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],mf.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],mf.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],mf.prototype,"data",void 0);_.A([_.oW({is:"yt-faq-section-renderer",disableElementRegistration:!0})],mf);
_.q(mf,"yt-faq-section-renderer",function(){if(cv9===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;XtG===void 0&&(XtG=document.createElement("template"));var S=XtG;D.call(L,S.content.cloneNode(!0),x.content.firstChild);cv9=x}x=cv9;return x},{mode:2});var xDs;var L6l;_.BD("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var bn=function(){return _.e.apply(this,arguments)||this};
_.p(bn,_.e);
bn.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"}}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],bn.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],bn.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],bn.prototype,"data",void 0);_.A([_.oW({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],bn);
_.q(bn,"yt-offer-item-expanded-renderer",function(){if(L6l===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;xDs===void 0&&(xDs=document.createElement("template"));var S=xDs;D.call(L,S.content.cloneNode(!0),x.content.firstChild);L6l=x}x=L6l;return x},{mode:2});var DDs;var SPl;_.BD("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var Y_=function(){return _.e.apply(this,arguments)||this};
_.p(Y_,_.e);
Y_.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"}}}}};
Y_.prototype.computeFullWidthMode=function(x){return!(!x||!x.fullWidthMode)};
Y_.prototype.computeBorderlessMode=function(x){return!(!x||!x.borderlessMode)};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Y_.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Y_.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Y_.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.r("design:type",Boolean)],Y_.prototype,"fullWidthMode",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.r("design:type",Boolean)],Y_.prototype,"borderlessMode",void 0);_.A([_.oW({is:"yt-offer-item-renderer",disableElementRegistration:!0})],Y_);
_.q(Y_,"yt-offer-item-renderer",function(){if(SPl===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;DDs===void 0&&(DDs=document.createElement("template"));var S=DDs;D.call(L,S.content.cloneNode(!0),x.content.firstChild);SPl=x}x=SPl;return x},{mode:2});var QzY;var J$G;_.BD("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var Fy=function(){return _.e.apply(this,arguments)||this};
_.p(Fy,_.e);Fy.prototype.computeAriaLevel_=function(x){return this.getLevelID_(x)};
Fy.prototype.getLevelID_=function(x){return(x=x.match(/[0-9]+$/))&&x.length==1?x[0]:"1"};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Fy.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Fy.prototype,"data",void 0);_.A([_.F({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.r("design:type",String)],Fy.prototype,"ariaLevel",void 0);_.A([_.F({value:"heading",reflectToAttribute:!0}),_.r("design:type",String)],Fy.prototype,"role",void 0);
_.A([_.F({value:-1,reflectToAttribute:!0}),_.r("design:type",Number)],Fy.prototype,"tabindex",void 0);_.A([_.oW({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],Fy);
_.q(Fy,"yt-subscription-product-header-renderer",function(){if(J$G===void 0){var x=document.createElement("template");_.m(x,"\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");x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;QzY===void 0&&(QzY=document.createElement("template"));var S=QzY;D.call(L,S.content.cloneNode(!0),x.content.firstChild);J$G=x}x=J$G;return x},{mode:2});var K69;var Ocg;_.BD("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var sT=function(){return _.e.apply(this,arguments)||this};
_.p(sT,_.e);sT.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:_.WD("menuRenderer"),events:!0}}};
sT.prototype.onStampFinished_=function(){_.jr(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
sT.prototype.onStampFinished_=sT.prototype.onStampFinished_;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],sT.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],sT.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],sT.prototype,"data",void 0);_.A([_.mX("yt-rendererstamper-finished"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],sT.prototype,"onStampFinished_",null);
_.A([_.oW({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],sT);
_.q(sT,"yt-subscription-product-renderer",function(){if(Ocg===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;K69===void 0&&(K69=document.createElement("template"));var S=K69;D.call(L,S.content.cloneNode(!0),x.content.firstChild);Ocg=x}x=Ocg;return x},{mode:2});var Zc$;var y$W;_.BD("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var Tv=function(){return _.e.apply(this,arguments)||this};
_.p(Tv,_.e);Tv.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Tv.prototype.imageScrimColorValuesChanged_=function(){var x,L=(x=this.data)==null?void 0:x.imageScrimColorValues;_.jr(this.hostElement).querySelector("#scrim").style.backgroundColor=L?_.XA(L[0]):"transparent"};
Tv.prototype.imageScrimColorValuesChanged_=Tv.prototype.imageScrimColorValuesChanged_;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Tv.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Tv.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Tv.prototype,"data",void 0);
_.A([_.bN("data.imageScrimColorValues"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Tv.prototype,"imageScrimColorValuesChanged_",null);_.A([_.oW({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],Tv);
_.q(Tv,"yt-subscription-product-upsell-offer-renderer",function(){if(y$W===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;Zc$===void 0&&(Zc$=document.createElement("template"));var S=Zc$;D.call(L,S.content.cloneNode(!0),x.content.firstChild);y$W=x}x=y$W;return x},{mode:2});var IC9;var EL9;var Mjs;var dDg;var Pds;var jzs;var ek=function(){return _.e.apply(this,arguments)||this};
_.p(ek,_.e);ek.prototype.onYtServiceRequestError_=function(x){_.nX(this.hostElement,x.detail.error.message)};
ek.prototype.onYtServiceRequestError_=ek.prototype.onYtServiceRequestError_;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],ek.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],ek.prototype,"data",void 0);_.A([_.F({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],ek.prototype,"collapsible",void 0);_.A([_.F({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],ek.prototype,"isManageRed",void 0);
_.A([_.mX("yt-service-request-error"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],ek.prototype,"onYtServiceRequestError_",null);_.A([_.oW({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],ek);
_.q(ek,"yt-single-ypc-offer-renderer",function(){if(jzs===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;Pds===void 0&&(Pds=document.createElement("template"));var S=Pds;D.call(L,S.content.cloneNode(!0),x.content.firstChild);jzs=x}x=jzs;return x},{mode:2});var Rp=function(){return _.e.apply(this,arguments)||this};
_.p(Rp,_.e);Rp.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Rp.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Rp.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Rp.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],Rp.prototype,"isManageRed",void 0);_.A([_.oW({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],Rp);
_.q(Rp,"yt-single-ypc-offer-list-renderer",function(){if(dDg===void 0){var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;Mjs===void 0&&(Mjs=document.createElement("template"));var S=Mjs;D.call(L,S.content.cloneNode(!0),x.content.firstChild);dDg=x}x=dDg;return x},{mode:2});var vL3;var Vjl;_.BD("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var Gv=function(){return _.e.apply(this,arguments)||this};
_.p(Gv,_.e);Gv.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Gv.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Gv.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Gv.prototype,"data",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],Gv.prototype,"isManageRed",void 0);_.A([_.oW({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],Gv);
_.q(Gv,"yt-ypc-offers-list-renderer",function(){if(Vjl===void 0){var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;vL3===void 0&&(vL3=document.createElement("template"));var S=vL3;D.call(L,S.content.cloneNode(!0),x.content.firstChild);Vjl=x}x=Vjl;return x},{mode:2});_.BD("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var CM=function(){return _.e.apply(this,arguments)||this};
_.p(CM,_.e);
CM.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}}}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],CM.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],CM.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],CM.prototype,"data",void 0);_.A([_.oW({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],CM);
_.q(CM,"yt-unlimited-manage-subscription-page-renderer",function(){if(EL9===void 0){var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;IC9===void 0&&(IC9=document.createElement("template"));var S=IC9;D.call(L,S.content.cloneNode(!0),x.content.firstChild);EL9=x}x=EL9;return x},{mode:2});var hGu;var Hcl;var ln=function(){return _.e.apply(this,arguments)||this};
_.p(ln,_.e);_.K=ln.prototype;_.K.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.K.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.K.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.K.onKeypress_=function(x){x.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.K.handleHeaderTap_=function(x){x.preventDefault();x.stopPropagation();this.expandOffers_()};
_.K.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.K.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
ln.prototype.dataChanged_=ln.prototype.dataChanged_;_.A([_.b(_.A4),_.r("design:type",Object)],ln.prototype,"ironA11yKeysBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],ln.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],ln.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],ln.prototype,"data",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],ln.prototype,"offersVisible_",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ln.prototype,"dataChanged_",null);_.A([_.oW({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],ln);
_.q(ln,"yt-collapsible-ypc-offer-renderer",function(){if(Hcl===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;hGu===void 0&&(hGu=document.createElement("template"));var S=hGu;D.call(L,S.content.cloneNode(!0),x.content.firstChild);Hcl=x}x=Hcl;return x},{mode:2});var uiW;var gLs;_.BD("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var UT=function(){return _.e.apply(this,arguments)||this};
_.p(UT,_.e);_.K=UT.prototype;_.K.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.K.dataChanged_=function(){if(this.data.backgroundImage){var x=_.PD(this.data.backgroundImage.thumbnails,screen.width),L=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=L?"linear-gradient(180deg, "+L+"), url("+x+")":"url("+x+")";this.data.gtmId&&_.SZ(this.data.gtmId,_.$6("GL",""))}};
_.K.onYtServiceRequestError_=function(x){_.nX(this.hostElement,x.detail.error.message)};
_.K.getScrimLayerColorStops_=function(){var x,L,D=(x=this.data.unlimitedHeaderV2Data)==null?void 0:(L=x.unlimitedHeaderV2Data)==null?void 0:L.scrimLayerColors;if(!D)return null;var S=100/D.length;return D.map(function(Q,J){J*=S;return _.XA(Q)+" "+J+"%"}).join(",")};
_.K.computeLogoWithPadding=function(x){var L,D,S;return(x=(L=x.unlimitedLogoImage)==null?void 0:(D=L.thumbnails)==null?void 0:(S=D[0])==null?void 0:S.height)&&x%31===0?!0:!1};
UT.prototype.onYtServiceRequestError_=UT.prototype.onYtServiceRequestError_;UT.prototype.dataChanged_=UT.prototype.dataChanged_;_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],UT.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],UT.prototype,"ytRendererBehavior",void 0);_.A([_.F({computed:"computeLogoWithPadding(data)"}),_.r("design:type",Boolean)],UT.prototype,"logoWithPadding",void 0);
_.A([_.F(),_.r("design:type",Object)],UT.prototype,"data",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],UT.prototype,"dataChanged_",null);_.A([_.mX("yt-service-request-error"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],UT.prototype,"onYtServiceRequestError_",null);_.A([_.oW({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],UT);
_.q(UT,"yt-unlimited-page-header-renderer",function(){if(gLs===void 0){var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;uiW===void 0&&(uiW=document.createElement("template"));var S=uiW;D.call(L,S.content.cloneNode(!0),x.content.firstChild);gLs=x}x=gLs;return x},{mode:2});var k4X;var prG;_.BD("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var wl=function(){return _.e.apply(this,arguments)||this};
_.p(wl,_.e);wl.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],wl.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],wl.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],wl.prototype,"data",void 0);_.A([_.oW({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],wl);
_.q(wl,"yt-unlimited-user-notification-renderer",function(){if(prG===void 0){var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;k4X===void 0&&(k4X=document.createElement("template"));var S=k4X;D.call(L,S.content.cloneNode(!0),x.content.firstChild);prG=x}x=prG;return x},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.$FX=_.B(function(x){var L=_.ym(x,{numberOfChips:5}).numberOfChips;return _.M("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.M(_.R1,{each:function(){return Array(L==null?void 0:L())}},function(){return _.M("div",{class:"ytGhostChipShelfChip"})}))},"Hi");_.r_W=_.B(function(x){var L=function(){var J;return((J=x.data)==null?void 0:J.call(x).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"},D=_.uk(),S=_.yY().resolve(_.QO);
_.UX(function(){requestAnimationFrame(function(){var J;(J=D.lottieEl)==null||J.addEventListener("DOMLoaded",function(){var Z;(Z=x.onLottieLoaded)==null||Z.call(x)})})});
var Q={};return _.M("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var J;return((J=x.data)==null?void 0:J.call(x).targetId)||""}},_.M(_.fJ,{className:_.gF((Q.ytChatLoadingViewModelRtl=S==="rtl",Q)),
animationName:"YOUCHAT_LOADER",data:function(){return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:L()==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||L()==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"?"ytChatLoadingViewModelVerticalLoadingSvg":"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:L()}}},
animationRef:D}))},"Ji");
}catch(e){_._DumpException(e)}
try{
var ehq,Rhl,GUY,lNq,Uwg,wYs,BEg,Wv$,q2I,oQX,Xl,fNX,$wW,iH5,NE$,r8l,A8G,aNs,zh5,XY9,c83,ce,nQu,tTu,DgI,tt,xgs,DW,nN,xk,LNI,LA,SD3,QEu,JEg,KNl,OKl,ZKs,yEX,Egg,MV9,dgu,P7u,jEl,vgu,VV9,h3W,ugl,ggY,k3$,mg9,YDs,sEs,Tt5,e3$,R3g,C7l,lAl,UgX,wWW,Btq,WNG,qD3,$gI,fAl,iKG,rE3,ogX,Ntl,aAu,ng9,cE$,z3l,XWW,Q_,tVl,LSY,Dy5,ShG,y75,I8W,EZW,M7l,dyq,PYG,jRs,vZl,V73,hFW,uds,gZ$,kG9,pIX,myl,bVq,Yhq,FSX,Tz$,eFG,KSY;
_.a5=function(x){var L=new _.RZ("Error accessing DB");return _.g5h().then(function(D){return new Promise(function(S,Q){try{var J=D.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(x);J.onsuccess=function(){var Z=J.result;S(Z?Z.value:null)};
J.onerror=function(){L.params={key:x,source:"onerror"};Q(L)}}catch(Z){L.params={key:x,
thrownError:String(Z)},Q(L)}})},function(){return null})};
_.TEX=function(x,L){var D=_.ZZ0(L);D!=="javascript:"&&D!=="data:"&&x.setAttribute("href",L)};
ehq=function(x,L){return _.u6(x.entities,"flowStateEntity",L)};
Rhl=function(x,L){return _.u6(x.entities,"contextNoteUserRatingEntityPayload",L)};
GUY=function(x,L){if(x&&L){var D=_.bk();D().set(x,L);_.IWp(D())}};
_.CjX=function(x,L){if(x&&L){var D=_.bk();D().set(x,L);_.IWp(D())}};
lNq=function(x){return _.Uw(x,function(L){return L.languageCode==="en"})};
Uwg=function(x){var L=z7;if(_.$9W(x))x.setOption("captions","stickyLoading",{}),x.setOption("captions","track",{});else{var D=_.Uw(_.Dxc(x),function(S){return S.displayName===L});
x.setOption("captions","track",D)}};
wYs=function(x){if(!x)return 0;var L=x.getPresentingPlayerType(),D=x.getVideoData();return D&&D.isLive?(x=x.getProgressState(L),x.seekableEnd-x.seekableStart):x.getDuration(L)};
BEg=function(x,L){for(var D=_.O(Object.keys(x)),S=D.next();!S.done;S=D.next())if(S=S.value,x[S]!==L[S])return!1;return!0};
Wv$=function(){return document.getElementById("player-control-overlay")};
q2I=function(x){x!==-1&&!_.u("player_controls_log_creation_killswitch")&&Wv$()&&(_.$T("pcu_cs",x),_.$T("pcu_ce"))};
oQX=function(x,L){var D=_.ZH(x,{}),S=A8G("top",L),Q=A8G("bottom",L),J=A8G("left",L),Z=A8G("right",L);return _.bc({top:function(){return Xl(D().position,S)},
bottom:function(){return Xl(D().position,Q)},
left:function(){return Xl(D().position,J)},
right:function(){return Xl(D().position,Z)},
position:function(){return Xl(D().positionType,$wW)},
height:function(){return Xl(D().height,ce)},
width:function(){return Xl(D().width,ce)},
"min-width":function(){return Xl(D().minWidth,ce)},
"min-height":function(){return Xl(D().minHeight,ce)},
"max-width":function(){return Xl(D().maxWidth,ce)},
"max-height":function(){return Xl(D().maxHeight,ce)},
"aspect-ratio":function(){return Xl(D().aspectRatio,String)},
"margin-top":function(){return Xl(D().margin,S)},
"margin-bottom":function(){return Xl(D().margin,Q)},
"margin-left":function(){return Xl(D().margin,J)},
"margin-right":function(){return Xl(D().margin,Z)},
"padding-top":function(){return Xl(D().padding,S)},
"padding-bottom":function(){return Xl(D().padding,Q)},
"padding-left":function(){return Xl(D().padding,J)},
"padding-right":function(){return Xl(D().padding,Z)},
"flex-direction":function(){return Xl(D().flexDirection,r8l)},
"justify-content":function(){return Xl(D().justifyContent,NE$)},
"align-items":function(){return Xl(D().alignItems,iH5)},
"flex-grow":function(){return Xl(D().flexGrow,String)},
"flex-shrink":function(){return Xl(D().flexShrink,String)},
"flex-basis":function(){return Xl(D().flexBasis,ce)},
"align-self":function(){return Xl(D().alignSelf,iH5)},
"flex-wrap":function(){return Xl(D().flexWrap,fNX)},
"align-content":function(){return Xl(D().alignContent,iH5)}})};
Xl=function(x,L){return x!==void 0?L(x):void 0};
fNX=function(x){switch(x){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
$wW=function(x){switch(x){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
iH5=function(x){switch(x){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"}};
NE$=function(x){switch(x){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"}};
r8l=function(x){switch(x){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"}};
A8G=function(x,L){var D=L==="rtl";switch(x){case "top":var S=aNs;break;case "bottom":S=zh5;break;case "left":S=XY9;break;default:S=c83}return function(Q){return Xl(S(Q,D),ce)}};
aNs=function(x){var L=x.top;var D=x.vertical;x=x.all;var S;return(S=L!=null?L:D)!=null?S:x};
zh5=function(x){var L=x.bottom;var D=x.vertical;x=x.all;var S;return(S=L!=null?L:D)!=null?S:x};
XY9=function(x,L){var D=x.left;var S=x.end;var Q=x.start;var J=x.horizontal;x=x.all;var Z,y;return(y=(Z=D!=null?D:L?S:Q)!=null?Z:J)!=null?y:x};
c83=function(x,L){var D=x.right;var S=x.end;var Q=x.start;var J=x.horizontal;x=x.all;var Z,y;return(y=(Z=D!=null?D:L?Q:S)!=null?Z:J)!=null?y:x};
ce=function(x){var L=x.value;switch(x.unit){case "YPC_DIMENSION_UNIT_POINT":return L+"px";case "YPC_DIMENSION_UNIT_FRACTION":return L+"%";default:return""+L}};
nQu=function(x){switch(x){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"}};
tTu=function(x){var L=x!=null?x:{};x=L.fontRole;var D=L.fontSize;L=L.fontWeight;if(x!==null&&D!==null)switch(x){case "YPC_FONT_ROLE_DISPLAY":switch(D){case "YPC_FONT_SIZE_L":return L==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return L==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return L==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return L==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(D){case "YPC_FONT_SIZE_L":return L==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return L==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return L===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return L==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(D){case "YPC_FONT_SIZE_XL":return L==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return L==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return L==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return L==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return L==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
DgI=function(x,L,D){function S(V){return Object.values(V).map(function(h){var H=h.productId;h=h.pricingOptionIndex;return nN(Q(H).pricingOptions,h).pricingOptionId})}
function Q(V){return E().get(V)}
function J(V){V=S(V);D(V)}
function Z(V,h){return Array.from(tt(V.pricingOptions)).filter(function(H){H=_.O(H);H.next();H=H.next().value;return xk(H.pricingGroupAttributes,h)}).map(function(H){return _.O(H).next().value})}
var y=LA([x,L],function(V,h){var H=V==null?void 0:V.selectedPricingOptions;V={};var k=!0;if(H&&h.length)for(var T=_.O(h),G=T.next();!G.done;G=T.next()){G=G.value;var U=xgs(G.pricingOptions,function(f){a:{f=f.pricingOptionId;for(var N=_.O(H),z=N.next();!z.done;z=N.next())if(z.value===f){f=!0;break a}f=!1}return f});
if(U>=0){k=!1;var l=nN(G.pricingOptions,U),X=void 0;V[G.groupId]={productId:G.productId,pricingOptionIndex:U,pricingGroupAttributes:(X=l)==null?void 0:X.pricingGroupAttributes}}}k&&h.length&&(k=nN(h[0].pricingOptions,0),V[h[0].groupId]={productId:h[0].productId,pricingOptionIndex:0,pricingGroupAttributes:k==null?void 0:k.pricingGroupAttributes});return V}),E=LA([L],function(V){return new Map(V.map(function(h){return[h.productId,
h]}))}),P=LA([L],function(V){var h=new Map;
V=_.O(V);for(var H=V.next();!H.done;H=V.next()){var k=H.value;H=k.groupId;var T=k.productId;k=_.O(tt(k.pricingOptions));for(var G=k.next();!G.done;G=k.next()){var U=_.O(G.value);G=U.next().value;U=U.next().value;h.set(U.pricingOptionId,{groupId:H,productId:T,index:G,pricingOption:U,pricingGroupAttributes:U.pricingGroupAttributes})}}return h}),v=LA([L],function(V){var h=new Map;
V=_.O(V);for(var H=V.next();!H.done;H=V.next()){var k=H.value;H=k.groupId;var T=k.productId,G=void 0;k=_.O(tt((G=k.pricingGroups)!=null?G:[]));for(G=k.next();!G.done;G=k.next()){var U=_.O(G.value);G=U.next().value;U=U.next().value;h.set(U.pricingGroupId,{groupId:H,productId:T,index:G,pricingGroup:U,pricingGroupAttributes:U.pricingGroupAttributes})}}return h});
return{getProductById:Q,isProductSelected:function(V){var h=Q(V);if(!h)return!1;var H;return((H=y()[h.groupId])==null?void 0:H.productId)===V},
getSelectedPricingOptions:function(){return Object.values(y()).map(function(V){var h=V.productId;V=V.pricingOptionIndex;return nN(Q(h).pricingOptions,V)})},
getSelectedPricingGroupAttributesByGroupId:function(V){var h;return(V=(h=y()[V])==null?void 0:h.pricingGroupAttributes)?Array.from(V):void 0},
getSelectedProductByGroupId:function(V){var h;return(V=(h=y()[V])==null?void 0:h.productId)?Q(V):void 0},
onProductSelected:function(V){var h=Q(V);if(h){var H=y(),k;if(((k=H[h.groupId])==null?void 0:k.productId)!==V){var T=(k=(T=H[h.groupId])==null?void 0:T.productId)?Q(k):void 0;var G;k=(G=H[h.groupId])==null?void 0:G.pricingGroupAttributes;var U;G=(U=H[h.groupId])==null?void 0:U.pricingOptionIndex;if(T&&k&&G!==void 0){U=Z(T,k).indexOf(G);if(U===-1)throw Error("Sj`"+G+"`"+T.productId);G=Z(h,k);U=U<G.length?G[U]:G.length>0?G[0]:0}else U=0;DW(h.pricingOptions)<=U&&(U=0);G=nN(h.pricingOptions,U);var l;
T={};J(Object.assign({},H,(T[h.groupId]={productId:V,pricingOptionIndex:U,pricingGroupAttributes:(l=G==null?void 0:G.pricingGroupAttributes)!=null?l:[]},T)))}}},
onPricingOptionSelected:function(V){var h=P().get(V);if(h){V=h.groupId;var H=h.productId;h=h.index;var k=y(),T,G;if(((T=k[V])==null?void 0:T.productId)!==H||((G=k[V])==null?void 0:G.pricingOptionIndex)!==h){var U,l;T={};J(Object.assign({},k,(T[V]={productId:H,pricingOptionIndex:h,pricingGroupAttributes:(l=(U=k[V])==null?void 0:U.pricingGroupAttributes)!=null?l:[]},T)))}}},
onPricingGroupSelected:function(V){var h=v().get(V);if(h){V=h.groupId;var H=h.productId,k=h.pricingGroup.pricingGroupAttributes,T=Q(H);if(T){h=y();var G=h[V].pricingGroupAttributes,U;if(((U=h[V])==null?void 0:U.productId)!==H||!xk(LNI(G,DW(k)),k)){U=Array.from(k);for(k=DW(k);k<DW(G);k++){var l="",X=!1,f=Array.from(U);f.push(nN(G,k));for(var N=_.O(T.pricingGroups),z=N.next();!z.done;z=N.next())if(z=z.value,xk(z.pricingGroupAttributes,f)){U.push(nN(G,k));X=!0;break}else l===""&&DW(z.pricingGroupAttributes)===
f.length&&xk(LNI(z.pricingGroupAttributes,U.length),U)&&(l=nN(z.pricingGroupAttributes,k));X||U.push(l)}l=h[V].pricingOptionIndex;k=[];X=new Map;f=0;T=_.O(tt(T.pricingOptions));for(N=T.next();!N.done;N=T.next())z=_.O(N.value),N=z.next().value,z=z.next().value,xk(z.pricingGroupAttributes,U)&&k.push(N),xk(z.pricingGroupAttributes,G)&&X.set(N,f++);k.length===0?G=0:(G=X.get(l),G=G!==void 0&&G<k.length?k[G]:k[0]);T={};J(Object.assign({},h,(T[V]={productId:H,pricingOptionIndex:G,pricingGroupAttributes:U},
T)))}}}},
onClearGroupSelected:function(V){var h=y();h[V]&&(h=Object.fromEntries(Object.entries(h).filter(function(H){return _.O(H).next().value!==V})),J(h))}}};
tt=function(x){return function D(){var S,Q,J,Z,y;return _.Mk(D,function(E){switch(E.nextAddress){case 1:_.k2(E,2),S=0,Q=_.O(x),J=Q.next();case 4:if(J.done){E.jumpTo(2);break}Z=J.value;y=_.dV;return E.yield([S++,Z],7);case 7:y(E.yieldResult);J=Q.next();E.jumpTo(4);break;case 2:_.gP(E),_.pZ(E,0)}})}()};
xgs=function(x,L){x=_.O(tt(x));for(var D=x.next();!D.done;D=x.next()){var S=_.O(D.value);D=S.next().value;S=S.next().value;if(L(S))return D}return-1};
DW=function(x){var L=0;for(x=x[Symbol.iterator]();!x.next().done;)++L;return L};
nN=function(x,L){x=_.O(tt(x));for(var D=x.next();!D.done;D=x.next()){var S=_.O(D.value);D=S.next().value;S=S.next().value;if(D===L)return S}};
xk=function(x,L){if(!x&&!L)return!0;if(!x||!L)return!1;x=Array.from(x);L=Array.from(L);if(x.length!==L.length)return!1;for(var D=0;D<x.length;D++)if(x[D]!==L[D])return!1;return!0};
LNI=function(x,L){L=L===void 0?Infinity:L;var D=[];x=_.O(tt(x));for(var S=x.next();!S.done;S=x.next()){var Q=_.O(S.value);S=Q.next().value;Q=Q.next().value;if(S>=L)break;S>=0&&D.push(Q)}return D};
LA=function(x,L){var D,S;return function(){for(var Q=x.map(function(Z){return Z()}),J=0;J<Q.length;J++)if(!D||Q[J]!==D[J]){D=Q;
S=L.apply(null,_.lP(Q));break}return S}};
SD3=function(x,L,D){var S=[];x=_.O(x);for(var Q=x.next();!Q.done;Q=x.next()){Q=Q.value;var J=void 0;((J=L)==null?0:J.length)&&!xk(Q.pricingGroupAttributes,L)||S.push({pricingOption:Q,isSelected:D.includes(Q.pricingOptionId)})}return S};
QEu=function(x,L){return _.u6(x.entities,"pdpStateEntity",L)};
JEg=function(x){var L,D;return!!(x.productId&&x.groupId&&((L=x.pricingOptions)==null?0:L.length)&&x.pricingOptions.every(function(S){return S.pricingOptionId})&&((D=x.pricingGroups)==null||!D.length||Array.isArray(x.pricingGroups)&&x.pricingGroups.every(function(S){return S.pricingGroupId&&S.pricingGroupAttributes&&S.pricingGroupAttributes.length>0})))};
KNl=function(x,L,D){return DgI(x,LA([L],function(S){return S.filter(JEg)}),D)};
OKl=function(x){var L=void 0,D;for(D in x)if(x.hasOwnProperty(D)){L=D;break}return L};
ZKs=function(x,L){return L.length===0?[x]:[x.slice(0,L[0]),x.slice(L[0])].filter(function(D){return D.length>0})};
yEX=function(x){switch(x){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""}};
Egg=function(x,L,D,S){S=Object.assign({},S);_.AH(S,IA9,{selectedOptionId:x,primaryButtonOverride:D});_.KI().dispatch(_.TR("flowStateEntity",L,S))};
MV9=function(x){switch(x){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"}};
dgu=function(x){switch(x){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"}};
P7u=function(x,L){L.includes(x)?L=L.filter(function(D){return D!==x}):L.push(x);
return[].concat(_.lP(L))};
jEl=function(x,L){return _.u6(x.entities,"contextNoteFeedEntityPayload",L)};
vgu=function(x,L){switch(x){case "NOTE_HELPFULNESS_VALUE_HELPFUL":return L==null?void 0:L.ratingHelpfulText;case "NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL":return L==null?void 0:L.ratingSomewhatHelpfulText;case "NOTE_HELPFULNESS_VALUE_NOT_HELPFUL":return L==null?void 0:L.ratingNotHelpfulText}};
VV9=function(x,L){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:x.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:x.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:x.deleteDialogTitle}]},dialogMessages:[{runs:[{text:x.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:x.deleteActionText}]},command:{performCommentActionEndpoint:{action:L}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:x.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}};
h3W=function(x,L,D){var S;if(x&&((S=L())==null?0:S.includes(x))){var Q;D((Q=L())==null?void 0:Q.filter(function(J){return J!==x}))}else D([].concat(_.lP(L()||[]),[x]))};
ugl=function(x,L){if(x){var D=[];L=_.O((L==null?void 0:L.checkboxes)||[]);for(var S=L.next();!S.done;S=L.next()){S=_.g(S.value,HK5);var Q=void 0;((Q=S)==null?0:Q.value)&&x.includes(S.key||"")&&D.push(S.value)}return D}};
ggY=function(x){x.style.height="auto";x.style.height=x.scrollHeight+"px"};
k3$=function(x){return[x.syncStep,x.asyncStep].filter(function(L){return L!==void 0})};
mg9=function(x){var L,D,S;if(x=(L=x.structuredContextNoteFormSchema)==null?void 0:(D=L.fieldSchemas)==null?void 0:(S=D.noteBody)==null?void 0:S.validationSchema)for(L=_.O(k3$(x)),D=L.next();!D.done;D=L.next()){D=D.value.rules;if(!D)break;D=_.O(D);for(D=D.next();!D.done;D=D.next())return _.g(D.value,_.pWl)}};
YDs=function(x){if(x){x=_.O(k3$(x));for(var L=x.next();!L.done;L=x.next()){L=L.value.rules;if(!L)break;L=_.O(L);for(L=L.next();!L.done;L=L.next())return _.g(L.value,bKs)}}};
sEs=function(x){if(x){x=_.O(k3$(x));for(var L=x.next();!L.done;L=x.next()){L=L.value.rules;if(!L)break;L=_.O(L);for(L=L.next();!L.done;L=L.next())return _.g(L.value,FNq)}}};
Tt5=function(x){x=/^https?:\/\//.test(x)?x:"http://"+x;try{var L=_.ze(x)}catch(D){return!1}if(L.toString()!==x)return!1;x=L.JSC$10036_domain_.split(".");return x.length>1&&x.every(function(D){return!!D})};
e3$=function(x,L,D,S){var Q;S=(Q=S.structuredContextNoteData)==null?void 0:Q.createCommentEndpoint;if(Q=_.g(S,_.MPR))return Q.commentText=_.Dv(x),Q.videoPositionMention=L,Q.sources=D,S};
R3g=function(x){return x==null?void 0:x.stringValue};
C7l=function(x,L,D){x=x.map(function(S,Q){return{listItemViewModel:{title:S.title,subtitle:S.subtitle,leadingImage:S.leadingImage,trailingImage:Q===L?G3I:void 0,rendererContext:{commandContext:{onTap:S.onTap}}}}});
return Object.assign({},D&&{header:{panelHeaderViewModel:{title:D}}},{content:{listViewModel:{listItems:x}}})};
lAl=function(x,L){if(x&&L)switch(L){case "SELECTION_TYPE_BOOL":return x.boolValue;case "SELECTION_TYPE_INT":return x.intValue;case "SELECTION_TYPE_STRING":return x.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return x.privacyStatusValue}};
UgX=function(x){var L;x=(L=x.options)==null?void 0:L.findIndex(function(D){return D.isSelected});
return x===void 0?-1:x};
wWW=function(x,L,D){var S=function(){return x().label},Q={},J=_.gF("ytDropdownViewModelLabel",(Q.ytDropdownViewModelLabelError=L,Q));
return _.M(_.d,{cond:function(){return x().label&&!(D()===-1&&x().label&&!x().placeholderText)},
then:function(){return _.M("div",{class:J},_.M(_.kP,{text:S}))}})};
Btq=function(x,L){var D={};D=_.gF("ytDropdownViewModelTitle",(D.ytDropdownViewModelTitlePlaceholder=function(){return L()===-1},D));
return _.M("div",{class:D},_.M(_.kP,{text:function(){var S=x();var Q=L();if(Q===-1)S=S.placeholderText?S.placeholderText:S.label;else{var J,Z;S=(J=S.options)==null?void 0:(Z=J[Q])==null?void 0:Z.title}return S}}))};
WNG=function(x,L){var D=function(){return x().hint};
return _.M(_.I1,null,_.M(_.d,{cond:function(){return D()&&!L()},
then:function(){return _.M("div",{class:_.gF("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.M(_.kP,{text:D,className:"ytDropdownViewModelSupportText"}))}}),_.M(_.d,{cond:L,
then:function(){return _.M("div",{id:"dropdown-view-model-error",role:"alert",class:_.gF("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.M(_.YO,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.M(_.kP,{text:L,className:"ytDropdownViewModelSupportText"}))}}))};
qD3=function(x,L){var D=_.yY().resolve(_.Suq);_.wO(function(){var S=x().id;S&&D!=null&&D.dropdownMap.set(S,L)})};
$gI=function(x){x=_.g(x.scheduleButton,AEq);x=_.g(x==null?void 0:x.primaryButton,_.de);x=_.g(x==null?void 0:x.onTap,_.ii);var L,D,S=((D=_.g(x,_.h_))==null?void 0:D.commands)||[x];D=_.O(S);for(x=D.next();!x.done&&!(L=_.g(x.value,_.Mv_));x=D.next());var Q;L=(Q=L)==null?void 0:Q.createBroadcastRequest;if(!L)throw Error("Zj");return L};
fAl=function(x,L,D){D=D===void 0?{}:D;var S,Q;return _.I(function(J){if(S=rE3(L))return J.return(S);(Q=Ntl(x,L,D))&&iKG(L,Q);return J.return(Q)})};
iKG=function(x,L){var D=ogX(x);D&&L.then(function(S){_.yY().resolve(_.WV).put(D,new _.qX({innertubeResponse:S}))})};
rE3=function(x){if(x=ogX(x)){var L=_.yY().resolve(_.WV);if(L.has(x))return L.get(x).then(function(D){return D==null?void 0:_.Oy(D)})}return null};
ogX=function(x){var L=_.g(x.endpoint,_.L6);if(L!=null&&L.videoId)return L={videoId:L.videoId},_.u("web_imp_player_mute_params")&&(L.mutedAtStart=x.startPlaybackInMutedState),_.xT("inline_playback",L)};
Ntl=function(x,L,D){x=_.tD(x,L.endpoint,aAu(L,D)).then(function(S){return S});
return Promise.resolve(x)};
aAu=function(x,L){L=_.u("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!x.startPlaybackInMutedState},L):Object.assign({},{vis:5,autonav:"1"},L);var D;L={contentPlaybackContext:_.GF(L,(D=_.g(x.endpoint.commandMetadata,_.gg))==null?void 0:D.url,window.location.href)};_.u("web_imp_player_mute_params")&&(L.overrideMutedAtStart=!x.startPlaybackInMutedState);return L};
ng9=function(x,L){var D=window.MutationObserver;D&&(SA=new D(function(S,Q){S=_.O(S);for(var J=S.next();!J.done;J=S.next()){J=J.value;var Z;if(Z=J.type==="childList"&&J.target)a:{Z=x;J=z3l(J.target);Z=z3l(Z);for(var y=null,E=0;E<J.length;E++)if(Z.includes(J[E])){if(E===0){Z=!1;break a}y=J[E];break}y?(J=XWW(J,y),Z=XWW(Z,y),Z=J<Z):Z=!1}if(Z){L();Q.disconnect();break}}}),(D=cE$())&&SA.observe(D,{childList:!0,
subtree:!0}))};
cE$=function(){var x=document.getElementsByTagName("ytd-rich-grid-renderer");if(x.length>0)return x[0];x=document.getElementsByTagName("ytd-section-list-renderer");return x.length>0?x[0]:null};
z3l=function(x){for(var L=[];x;)L.push(x),x=x.parentElement;return L};
XWW=function(x,L){var D=Array.from(L.children);L=x.indexOf(L);return L>0?D.indexOf(x[L-1]):-1};
Q_=function(x,L,D){D=D===void 0?{}:D;return _.p6(x,D,L)};
tVl=function(x){switch(x){case "MUSIC":return!0;default:return!1}};
LSY=function(x){if(x=x==null?void 0:x.find(function(S){var Q,J;return((Q=_.g(S,xyI))==null?void 0:(J=Q.inlinePlaybackBadgeData)==null?void 0:J.replicateAsTimestamp)===!0}))if(x=_.g(x,xyI),x==null?0:x.icon){var L,D;
if((x=(L=_.tJc(x.icon))==null?void 0:(D=L.clientResource)==null?void 0:D.imageName)&&tVl(x))return x}};
Dy5=function(x){return x==null?void 0:x.filter(function(L){return L.premiereTrailerBadgeRenderer})};
ShG=function(x){var L,D=x==null?void 0:(L=x.find(function(E){return E.thumbnailOverlayTimeStatusRenderer}))==null?void 0:L.thumbnailOverlayTimeStatusRenderer,S,Q;
if((D==null?0:(S=D.icon)==null?0:S.iconType)&&tVl(D==null?void 0:(Q=D.icon)==null?void 0:Q.iconType)){var J;return{icon:D==null?void 0:(J=D.icon)==null?void 0:J.iconType}}var Z;if(L=x==null?void 0:(Z=x.find(function(E){return E.thumbnailOverlayBadgeViewModel}))==null?void 0:Z.thumbnailOverlayBadgeViewModel)if(Z=LSY(L.thumbnailBadges))return{icon:Z};
var y;if(x=x==null?void 0:(y=x.find(function(E){return E.thumbnailBottomOverlayViewModel}))==null?void 0:y.thumbnailBottomOverlayViewModel)if(y=LSY(x.badges))return{icon:y};
return{}};
y75=function(x,L){var D=QRl,S=_.O(_.HB(J7q(new KSY(function(){},D,L)),void 0,"PAnyd")),Q=S.next().value,J=S.next().value,Z=new KSY(function(y){J(y)},D,L);
_.Us(function(){Promise.resolve().then(function(){var y,E=(y=x())!=null?y:{};Z.playerControlsData=E;_.u("player_controls_skip_double_signal_old")&&(Z.lastSeenPlayerApi=_.AK(E.playerApi));_.u("player_controls_skip_double_signal_old")||(Z.lastSeenPlayerApi=_.AK(E.playerApi));OVq(Z)});
_.wH(function(){ZV5(Z)})},"HikUP");
_.wH(function(){ZV5(Z)});
return function(){return Q()}};
I8W=function(x){return function(L){var D=x(),S={playerState:L};if(L===1){var Q;(Q=D.playerApi)==null||Q.loadModule("captions")}if(L===0){var J;(J=D.playerApi)==null||J.unloadModule("captions")}L!==-1&&D.setState(S)}};
EZW=function(x){return function(L){x().setState({playbackRate:L})}};
M7l=function(x){return function(L){var D=x(),S=D.playerApi,Q=S==null?void 0:S.getVideoData(),J=(Q==null?void 0:Q.isLive)||!1;Q=Q==null?void 0:Q.video_id;J={videoDuration:wYs(S||void 0),isLive:J,videoId:Q};J.videoId!==D.videoId&&(J=Object.assign({},_.zn3(S),J));if(L==null?0:L.playertype)J.playerType=L.playertype;if(S){J.captionsAvailable=_.ea(S);L=J;var Z;Q=(Z=S.getStoryboardLevel(S.getNumberOfStoryboardLevels()-1))==null?void 0:Z.intervalMs;L.storyboardInterval=Q?Q/1E3:void 0;J.captionsAvailable&&
(J.captionsEnabled=_.$9W(S))}J.volumeMuted=!(S==null||!S.isMuted());D.setState(J)}};
dyq=function(x){return function(L){var D=x(),S=D.playerApi;if(S){var Q=S.getPresentingPlayerType();L={playedTime:L||0,percentLoaded:S.getVideoLoadedFraction(),playerType:Q};D.playerState===0&&(L.playedTime=D.videoDuration);D.isLive&&(Q=S.getProgressState(Q),L.playedTime-=Q.seekableStart,L.videoDuration=wYs(S));if(D.playerType===1)S=!1;else{var J;if((J=D.uxConfig)==null?0:J.showCuedOverlay){var Z;S=!((Z=D.playerApi)==null?0:Z.getPlayerStateObject(D.playerType).isDomPaused)}else S=!0}S&&delete L.playedTime;
D.setState(L)}}};
PYG=function(x){return function(){var L=x(),D,S,Q,J={volume:(Q=(D=L.playerApi)==null?void 0:D.getVolume())!=null?Q:0,volumeMuted:!((S=L.playerApi)==null||!S.isMuted())};L.setState(J)}};
jRs=function(x){return function(){var L=x(),D=L.playerApi;if(D){var S={captionsAvailable:_.ea(D)};S.captionsAvailable&&(S.captionsEnabled=_.$9W(D));L.setState(S)}}};
vZl=function(x){return function(){var L=x();if(L.playerApi&&!(L.volumeMuted||L.controlsVisible&&L.isProbablyAScreenreaderUser)){L.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var D;(D=document.querySelector(".player-control-play-pause-icon"))==null||D.focus()}}};
V73=function(x){return{appApi:Object.assign({},_.$df(),{showCaptionsToggleToast:function(L){var D,S;(S=(D=x()).showCaptionsToggleToast)==null||S.call(D,L)},
openInMiniplayer:function(){var L,D;(D=(L=x()).openInMiniplayer)==null||D.call(L)}})}};
hFW=function(x,L){var D,S,Q;return!!(x==null?0:(D=x.playerResponse)==null?0:(S=D.playerConfig)==null?0:(Q=S.inlinePlaybackConfig)==null?0:Q.showScrubbingControls)&&!(L==null?0:L.hideScrubbingControls)};
_.HVq=function(x){var L=!x.miniplayerIsActive;return[5,2,0].includes(x.miniplayerPlaybackState)||L};
uds={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};gZ$=function(x){this.onStepChangeCallback=function(){};
this.flowRenderer=x};
gZ$.prototype.getCurrentStep=function(){var x=this,L;return((L=this.flowRenderer.steps)!=null?L:[]).map(function(D){return _.g(D,_.zd)}).find(function(D){return D&&D.stepId===x.currentStepId})};
kG9=function(x,L){var D=L.flowStateEntityKey,S=x.flowStates.get(D);if(S)return S;L=new gZ$(L);x.flowStates.set(D,L);return L};
pIX=function(x,L){for(var D=_.O(x.flowStates.entries()),S=D.next();!S.done;S=D.next()){var Q=_.O(S.value);S=Q.next().value;Q=Q.next().value;if(Q.flowRenderer.targetId===L){x.flowStates.delete(S);break}}};
myl=function(x,L){x.onStepChangeCallback=L;x.onStepChangeCallback(x.getCurrentStep())};
bVq=function(x,L){var D=x.getCurrentStep();if(!D||D.stepId!==L){var S;((S=x.flowRenderer.steps)!=null?S:[]).map(function(Q){return _.g(Q,_.zd)}).find(function(Q){return Q&&Q.stepId===L})&&(x.currentStepId=L,x.onStepChangeCallback(x.getCurrentStep()))}};
Yhq=function(x,L){var D,S,Q,J,Z;_.I(function(y){if(!L.length)return y.return([]);D=[];S=_.O(L);for(Q=S.next();!Q.done;Q=S.next())J=Q.value,(Z=x.resolveIcon(J))&&!x.iconCache[Z.url]&&D.push(_.lEg(x,Z).then(function(){}).catch(function(){}));
return y.return(Promise.all(D))})};
FSX=function(x,L){var D=[];L=(new Set(L)).values();L=_.O(L);for(var S=L.next();!S.done;S=L.next()){S=S.value;for(var Q=_.O(Object.values(uds)),J=Q.next();!J.done;J=Q.next())D.push({iconName:S,iconStyle:J.value})}Yhq(x.iconManager,D)};
_.sRG=function(x,L,D){var S=D!=null?D:x.iconsToFetch;S!=null&&S.length?L!==void 0&&L>=0?_.TG(_.WW,function(){FSX(x,S)},L):FSX(x,S):Promise.resolve()};
Tz$={sharedUi:_.Fxh,a11y:_.ba_,entities:{}};eFG=function(){return _.MU({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})};
KSY=function(x,L,D){var S=this;this.renderFn=x;this.listeners=L;this.context=D;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var Q;this.lastSeenPlayerApi=_.AK((Q=this.playerControlsData)==null?void 0:Q.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.zn3(),void 0);_.u("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){J7q(S).setState({playerState:-1});S.resetRecentlyNavigatedJobId&&_.WW.cancelJob(S.resetRecentlyNavigatedJobId);
S.recentlyNavigated=!0;S.resetRecentlyNavigatedJobId=_.WW.addJob(function(){S.recentlyNavigated=!1},8,1E4)})};
KSY.prototype.setState=function(x){if(!_.u("mweb_player_skip_no_op_state_changes")||!BEg(x,this.state))if(this.state=Object.assign({},this.state,x),!_.u("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)x=-1,_.u("player_controls_log_creation_killswitch")||Wv$()||(x=(0,_.y5)()),_.$T("pcu_s"),_.$T("pcu_se"),_.$T("pcu_rs"),this.renderFn(J7q(this)),_.$T("pcu_re"),q2I(x),_.WW.addJob(function(){_.$T("pcu_ap")},8)};
var J7q=function(x){var L;var D=_.AK((L=x.playerControlsData)==null?void 0:L.playerApi);return Object.assign({},x.state,{setState:x.boundSetState,domMeasurements:{progressBarLineRect:x.progressBarLineRect},playerApi:D,appApi:x.context.appApi,playerContainer:x.context.playerContainer,playerControlContainer:x.context.playerControlContainer,uxConfig:x.context.uxConfig})},OVq=function(x){x.listeners.forEach(function(L){x.eventListenerCleanupFunctions.push(L.register(function(){return J7q(x)},function(){return x.getData()}))})},
ZV5=function(x){x.eventListenerCleanupFunctions.forEach(function(L){L()});
x.eventListenerCleanupFunctions.length=0};
KSY.prototype.getData=function(){return this.playerControlsData};
var RFl=new _.jp("crowdsourcedContextUserRatingFormFlowState");var GGq=new _.jp("noteViewModel");var JX=new _.jp("abuseReportFlowState");var CY5=new _.jp("feedbackFormFlowState");var l8l=new _.jp("inputBoxViewModel");_.pWl=new _.jp("lengthValidationRule");var bKs=new _.jp("regexValidationRule");var FNq=new _.jp("selectedValidationRule");var Uyg=new _.jp("talkToRecsViewModel");var wIY=new _.jp("creatorGoalSetUpFlowDropdownItemViewModel");var Bz5=new _.jp("creatorGoalSetUpFlowDropdownViewModel");var xyI=new _.jp("thumbnailBadgeViewModel");var WSI=new _.jp("checkboxGroupViewModel");var HK5=new _.jp("checkboxItemViewModel");_.KA=new _.jp("radioButtonGroupViewModel");var qh3=new _.jp("radioButtonItemViewModel");var AEq=new _.jp("panelFooterViewModel");var A7q=new _.jp("ypcCancelRecurrenceCommand");var $y3=new _.jp("cancellationFlowState");var IA9=new _.jp("premiumPurchaseFlowState");var r79=new _.jp("surveyAnswerCardRenderer");var Nz$=new _.jp("showMoreButtonRenderer");var iVX;var f8I,oZ9=function(){if(f8I!==void 0)return f8I;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;iVX===void 0&&(iVX=document.createElement("template"));var S=iVX;D.call(L,S.content.cloneNode(!0),x.content.firstChild);return f8I=x};var Oz=function(){var x=_.e.apply(this,arguments)||this;x.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";x.goalDescription="";x.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";x.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";x.startButtonId="start-button";x.exampleButtonId="example-button";return x};
_.p(Oz,_.e);_.K=Oz.prototype;_.K.getGoalDropdownItems=function(){var x,L;return(L=_.g((x=this.data)==null?void 0:x.purchaseTargetDropdown,Bz5))==null?void 0:L.dropdownItems};
_.K.getTimerDropdownItems=function(){var x,L;return(L=_.g((x=this.data)==null?void 0:x.timerDropdown,Bz5))==null?void 0:L.dropdownItems};
_.K.getColorDropdownItems=function(){var x,L;return(L=_.g((x=this.data)==null?void 0:x.colorDropdown,Bz5))==null?void 0:L.dropdownItems};
_.K.getDropdownItemText=function(x){var L;return(L=_.g(x,wIY))==null?void 0:L.itemLabel};
_.K.getDropdownItemValue=function(x){x=_.g(x,wIY);return(x==null?void 0:x.timeLimit)||(x==null?void 0:x.purchaseTarget)||(x==null?void 0:x.eligiblePurchaseType)};
_.K.updateFlowState=function(x){_.dg(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:x}])};
_.K.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.K.updateGoalValue=function(x){this.goal=x.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.K.onTextValueChanged=function(x){this.goalDescription=x.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.K.updateTimerValue=function(x){this.timer=x.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.K.updateTierValue=function(x){this.tier=x.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.K.getButtonViewModel=function(x){x=(x==null?void 0:x.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var L,D=_.g((L=this.data)==null?void 0:L.startGoalButton,_.de);return Object.assign({},D,{state:x})};
_.J3.Object.defineProperties(Oz,{template:{configurable:!0,enumerable:!0,get:function(){return oZ9()}}});
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Oz.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Oz.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],Oz.prototype,"goal",void 0);_.A([_.F(),_.r("design:type",Object)],Oz.prototype,"goalDescription",void 0);_.A([_.F(),_.r("design:type",Object)],Oz.prototype,"timer",void 0);_.A([_.F(),_.r("design:type",Object)],Oz.prototype,"tier",void 0);
_.A([_.F(),_.r("design:type",Object)],Oz.prototype,"startButtonId",void 0);_.A([_.F(),_.r("design:type",Object)],Oz.prototype,"exampleButtonId",void 0);_.A([_.oW({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],Oz);_.q(Oz,"yt-creator-goal-set-up-flow-view-model",function(){return oZ9()},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var a8X;a8X=Object.assign({},{continuation:_.sYW,download:_.pS_,canvas:_.bJb,reportChannelAbuse:_.lOd,ui:_.Fls,share:_.UMR,talkToRecs:_.BWQ,watch:_.Oj,ypc:_.NW2,radioButtonGroup:_.p9s,collabInviteLink:_.gPs},Tz$,{voiceSearch:_.eYf,shorts:_.Kp});_.ZW=_.qj(a8X);_.zF5=_.AD(_.ZW);var XIs;var c7$;var nZ9;var t73=function(){return _.e.apply(this,arguments)||this};
_.p(t73,_.e);_.A([_.F(),_.r("design:type",Object)],t73.prototype,"data",void 0);_.A([_.oW({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],t73);
_.q(t73,"yt-survey-answer-card-renderer",function(){if(nZ9===void 0){var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;c7$===void 0&&(c7$=document.createElement("template"));var S=c7$;D.call(L,S.content.cloneNode(!0),x.content.firstChild);nZ9=x}x=nZ9;return x},{mode:2});var x6u;var LuY;var y_=function(){return _.e.apply(this,arguments)||this};
_.p(y_,_.e);_.K=y_.prototype;_.K.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.K.selectedItemChanged=function(x){_.dg(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[x.feedbackToken||""]}])};
_.K.surveyAnswerCardRendererClicked=function(x){if(x.target&&_.g(x.model.item,r79)){var L=x.target;x=_.g(x.model.item,r79);x.onTapCommand?_.v$(L,[x.onTapCommand],L):this.data.onTapCommand&&_.v$(L,[this.data.onTapCommand],L);this.selectedItemChanged(x)}};
_.K.checkIsCancellationStyle=function(x){return x==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.K.updateSelectedItemFromBinding=function(x){this.selectedItem=x.detail.value};
y_.prototype.onSelectedItemChanged=y_.prototype.onSelectedItemChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],y_.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],y_.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],y_.prototype,"selectedItem",void 0);_.A([_.F({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.r("design:type",Boolean)],y_.prototype,"isCancellationStyle",void 0);
_.A([_.bN("selectedItem"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],y_.prototype,"onSelectedItemChanged",null);_.A([_.oW({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],y_);
_.q(y_,"yt-survey-flow-step-renderer",function(){if(LuY===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;x6u===void 0&&(x6u=document.createElement("template"));var S=x6u;D.call(L,S.content.cloneNode(!0),x.content.firstChild);LuY=x}x=LuY;return x},{mode:2});var I3=function(){var x=_.e.apply(this,arguments)||this;x.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return x};
_.p(I3,_.e);I3.prototype.handleSurveyFlowStepOptionChanged=function(x){this.ytdReduxBehavior.dispatch(_.MU({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:x}));_.dg(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:x}}])};
_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],I3.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],I3.prototype,"ytdReduxBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],I3.prototype,"data",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],I3);
_.q(I3,"ytd-survey-flow-step-renderer",function(){if(XIs!==void 0)return XIs;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return XIs=x},{mode:1});_.J6$=_.B(function(x){var L=x.data;var D=x.hideDivider;var S=x.isChannelInfoCard;x={};return _.M("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model"},_.M("div",{class:_.gF("yt-profile-identity-info-view-model__frame",(x["yt-profile-identity-info-view-model--frame-with-no-channel-banner"]=function(){return!L().channelBanner},x))},_.M(D6q,{profileIdentityInfoData:L}),_.M("div",{class:"yt-profile-identity-info-view-model__channel-info-section"},_.M("div",{class:"yt-profile-identity-info-view-model__avatar"},
_.M(_.Fj,{data:function(){return L().avatar}},{avatarViewModel:_.O0})),_.M(SUI,{profileIdentityInfoData:L})),_.M(_.d,{cond:function(){return L().channelDescription},
then:function(Q){var J={};return _.M("div",{class:_.gF((J["yt-profile-identity-info-view-model__channel-description-alternate"]=function(){return!(S==null||!S())},J["yt-profile-identity-info-view-model__channel-description"]=function(){return!(S==null?0:S())},J))},Q)}}),_.M(QH9,{profileIdentityInfoData:L}),_.M(_.d,{cond:function(){return!(D==null?0:D())},
then:function(){return _.M("div",{class:"yt-profile-identity-info-view-model__divider"})}})))},"ah");
_.J6$.idomCompat=!0;var QH9=_.B(function(x){var L=x.profileIdentityInfoData;return _.M("div",{class:"yt-profile-identity-info-view-model__buttons"},_.M(_.R1,{each:function(){return L().subscribeButton?[L().subscribeButton,L().channelAccess]:[L().channelAccess]}},function(D){return _.M("div",{class:"yt-profile-identity-info-view-model__wrap-button"},_.M("div",{class:"yt-profile-identity-info-view-model--button"},_.M(_.Fj,{data:function(){return D}},{buttonViewModel:_.qP,
subscribeButtonViewModel:_.Oa})))}))},"bh"),SUI=_.B(function(x){var L=x.profileIdentityInfoData;
return _.M("div",{class:"yt-profile-identity-info-view-model__trio"},_.M("div",{class:"yt-profile-identity-info-view-model__channel-name-frame"},_.M(KuW,{profileIdentityInfoData:L}),_.M(_.Fj,{data:function(){return L().threeDotMenu}},{buttonViewModel:_.qP})),_.M(Oh$,{profileIdentityInfoData:L}))},"ch"),KuW=_.B(function(x){var L=x.profileIdentityInfoData;
return _.M("div",{class:"yt-profile-identity-info-view-model__channel-name-header"},_.M("div",{class:"yt-profile-identity-info-view-model__channel-name"},function(){return L().channelDisplayName}),_.M(_.d,{cond:function(){return L().verifiedOrOacBadge},
then:function(D){return _.M("div",{class:"yt-profile-identity-info-view-model__badge"},_.M(_.Ku,{data:function(){return{thumbnails:[{url:D().badgeUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0}))}}))},"dh"),D6q=_.B(function(x){var L=x.profileIdentityInfoData;
return _.M("div",{class:"yt-profile-identity-info-view-model__channel-banner-container"},_.M(_.Fj,{data:function(){var D=L().channelBanner;if(D)return{imageBannerViewModel:{image:D.image,style:"IMAGE_BANNER_STYLE_INSET"}}}},{imageBannerViewModel:function(D){return _.M("div",{class:"yt-profile-identity-info-view-model__channel-banner"},_.M(_.dC,{data:D.data,
isPositionRelative:!0}))}}))},"eh"),Oh$=_.B(function(x){var L=x.profileIdentityInfoData;
return _.M("div",{class:"yt-profile-identity-info-view-model__metadata"},_.M("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.M("div",{dir:"auto",class:"yt-profile-identity-info-view-model__metadata-handle-with-bold-font"},function(){return L().channelHandle}),_.M(_.d,{cond:function(){return L().channelPronouns&&L().channelHandle},
then:function(){return _.M("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.M("div",{dir:"auto",
class:"yt-profile-identity-info-view-model__metadata-pronouns"},function(){return L().channelPronouns})),_.M("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.M("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return L().leftOfBulletInfo}),_.M(_.d,{cond:function(){return L().leftOfBulletInfo&&L().rightOfBulletInfo},
then:function(){return _.M("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.M("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return L().rightOfBulletInfo})))},"fh");var Zhl;var Ez=function(){return _.e.apply(this,arguments)||this};
_.p(Ez,_.e);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],Ez.prototype,"ytComponentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Ez.prototype,"data",void 0);_.A([_.w({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],Ez);
_.q(Ez,"ytd-channel-history-renderer",function(){if(Zhl!==void 0)return Zhl;var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Zhl=x},{mode:1});var y6s;var I5X=function(){return _.e.apply(this,arguments)||this};
_.p(I5X,_.e);_.A([_.F(),_.r("design:type",Object)],I5X.prototype,"data",void 0);_.A([_.w({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],I5X);
_.q(I5X,"ytd-feature-enablement-info-renderer",function(){if(y6s!==void 0)return y6s;var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return y6s=x},{mode:1});var E3l;var McI;var M5=function(){var x=_.e.apply(this,arguments)||this;x.textBoxMaxLength=_.u("enable_tvod_campaign_code_integration")?15:12;return x};
_.p(M5,_.e);_.K=M5.prototype;_.K.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.K.onSubmit=function(){var x=this.data.serviceEndpoint,L=_.g(x,_.LF);L&&x&&(L.couponCode=this.userInput,_.yY().resolve(_.E2).resolveCommand(x,{form:{element:this.hostElement}}))};
_.K.validate=function(){var x=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=x&&!this.data.errorMessage;this.showErrorMessage=x&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.u("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.K.computeStyle=function(x){return x};
_.K.computeShowValidationBelowInput=function(x){return x!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.K.updateUserInputFromBinding=function(x){this.userInput=x.currentTarget.value};
_.K.updateShowErrorMessageFromBinding=function(x){this.showErrorMessage=x.detail.value};
_.J3.Object.defineProperties(M5.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
M5.prototype.dataChanged=M5.prototype.dataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],M5.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],M5.prototype,"data",void 0);_.A([_.F(),_.r("design:type",String)],M5.prototype,"userInput",void 0);_.A([_.F(),_.r("design:type",Boolean)],M5.prototype,"disableApplyButton",void 0);_.A([_.F(),_.r("design:type",Boolean)],M5.prototype,"hideApplyButton",void 0);
_.A([_.F(),_.r("design:type",Boolean)],M5.prototype,"hideErrorMessage",void 0);_.A([_.F(),_.r("design:type",Boolean)],M5.prototype,"showTick",void 0);_.A([_.F(),_.r("design:type",Boolean)],M5.prototype,"showErrorMessage",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.r("design:type",String)],M5.prototype,"couponStyle",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.r("design:type",Boolean)],M5.prototype,"showValidationBelowInput",void 0);_.A([_.F(),_.r("design:type",Object)],M5.prototype,"textBoxMaxLength",void 0);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],M5.prototype,"dataChanged",null);
_.A([_.Y("showTick","showErrorMessage","userInput"),_.r("design:type",String),_.r("design:paramtypes",[])],M5.prototype,"validationState",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],M5);
_.q(M5,"ytd-ypc-coupon-renderer",function(){if(McI!==void 0)return McI;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return McI=x},{mode:1});var da=function(){return _.e.apply(this,arguments)||this};
_.p(da,_.e);da.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"}}}};
da.prototype.computeStyle=function(x){return x};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],da.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],da.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],da.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.r("design:type",String)],da.prototype,"buttonStyle",void 0);_.A([_.w({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],da);
_.q(da,"ytd-flow-bottom-bar-renderer",function(){if(E3l!==void 0)return E3l;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return E3l=x},{mode:1});var d6$;var Pvl;var jH5;var Pb=function(){return _.e.apply(this,arguments)||this};
_.p(Pb,_.e);Pb.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Pb.prototype.focus=function(x){this.title&&_.xZ(this.title,x)};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Pb.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Pb.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Pb.prototype,"data",void 0);_.A([_.F1("#title"),_.r("design:type",HTMLElement)],Pb.prototype,"title",void 0);_.A([_.w({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],Pb);
_.q(Pb,"ytd-flow-top-bar-renderer",function(){if(jH5!==void 0)return jH5;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return jH5=x},{mode:1});var v35;var VcY;var hog;var jA=function(){return _.e.apply(this,arguments)||this};
_.p(jA,_.e);jA.prototype.freeTextValueChanged=function(){_.dg(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
jA.prototype.updateFreeTextValueFromBinding=function(x){this.freeTextValue=x.detail.value};
_.J3.Object.defineProperties(jA.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var x,L,D=(L=(x=this.data)==null?void 0:x.responseMaxLength)!=null?L:500,S;return((S=this.freeTextValue)!=null?S:"").length>=D?"maxed-out":""}}});
jA.prototype.freeTextValueChanged=jA.prototype.freeTextValueChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],jA.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],jA.prototype,"data",void 0);_.A([_.F(),_.r("design:type",String)],jA.prototype,"freeTextValue",void 0);_.A([_.F1("#user-input"),_.r("design:type",HTMLTextAreaElement)],jA.prototype,"input",void 0);
_.A([_.Y("freeTextValue"),_.r("design:type",Object),_.r("design:paramtypes",[])],jA.prototype,"characterLimitClass",null);_.A([_.bN("freeTextValue"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],jA.prototype,"freeTextValueChanged",null);_.A([_.oW({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],jA);
_.q(jA,"yt-free-text-input-flow-step-renderer",function(){if(hog===void 0){var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;VcY===void 0&&(VcY=document.createElement("template"));var S=VcY;D.call(L,S.content.cloneNode(!0),x.content.firstChild);hog=x}x=hog;return x},{mode:2});var vb=function(){var x=_.e.apply(this,arguments)||this;x.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return x};
_.p(vb,_.e);vb.prototype.handleFreeTextFlowStepInputChanged=function(x){_.dg(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:x}}])};
_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],vb.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],vb.prototype,"ytdReduxBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],vb.prototype,"data",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],vb);
_.q(vb,"ytd-free-text-input-flow-step-renderer",function(){if(v35!==void 0)return v35;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return v35=x},{mode:1});var Hhu;var uEu;var g3G=function(){return _.e.apply(this,arguments)||this};
_.p(g3G,_.e);_.A([_.F(),_.r("design:type",Object)],g3G.prototype,"data",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],g3G);
_.q(g3G,"ytd-metadata-line-renderer",function(){if(uEu!==void 0)return uEu;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return uEu=x},{mode:1});var V_=function(){return _.e.apply(this,arguments)||this};
_.p(V_,_.e);V_.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],V_.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],V_.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],V_.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],V_.prototype,"isMasthead",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],V_);
_.q(V_,"ytd-media-product-renderer",function(){if(Hhu!==void 0)return Hhu;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return Hhu=x},{mode:1});var kLI;var hX=function(){return _.e.apply(this,arguments)||this};
_.p(hX,_.e);hX.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
hX.prototype.onBillboardImageLoaded=function(){_.MF(this.hostElement,"yt-refit")};
hX.prototype.onBillboardImageLoaded=hX.prototype.onBillboardImageLoaded;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],hX.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],hX.prototype,"data",void 0);_.A([_.F1("#billboardImage"),_.r("design:type",Object)],hX.prototype,"billboardImage",void 0);_.A([_.mX("yt-img-shadow-loaded"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],hX.prototype,"onBillboardImageLoaded",null);
_.A([_.w({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],hX);
_.q(hX,"ytd-billboard-masthead-renderer",function(){if(kLI!==void 0)return kLI;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return kLI=x},{mode:1});var pvq;var Hb=function(){var x=_.e.apply(this,arguments)||this;x.smallSize=!1;return x};
_.p(Hb,_.e);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],Hb.prototype,"ytComponentBehaviorType",void 0);_.A([_.F(),_.r("design:type",Object)],Hb.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Hb.prototype,"smallSize",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],Hb);
_.q(Hb,"ytd-bullet-formatted-string",function(){if(pvq!==void 0)return pvq;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return pvq=x},{mode:1});var m6u;var uT=function(){return _.e.apply(this,arguments)||this};
_.p(uT,_.e);uT.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],uT.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],uT.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],uT.prototype,"data",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],uT);
_.q(uT,"ytd-offer-detail-renderer",function(){if(m6u!==void 0)return m6u;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return m6u=x},{mode:1});var bhY;var kk=function(){return _.e.apply(this,arguments)||this};
_.p(kk,_.e);kk.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"}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],kk.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],kk.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],kk.prototype,"data",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],kk);
_.q(kk,"ytd-offer-detail-step-renderer",function(){if(bhY!==void 0)return bhY;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return bhY=x},{mode:1});var YUW;var pA=function(){var x=_.e.apply(this,arguments)||this;x.isInOfferModule=!1;return x};
_.p(pA,_.e);_.K=pA.prototype;_.K.computeHasEndpoint=function(){var x;return!((x=this.data)==null||!x.onClickCommand)};
_.K.dataChanged=function(){var x;if((x=this.data)==null?0:x.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")};
_.K.detached=function(){var x;if((x=this.data)==null?0:x.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.K.handleClickEvent=function(){var x;if((x=this.data)==null?0:x.onClickCommand){var L;this.componentBehavior.resolveCommand((L=this.data)==null?void 0:L.onClickCommand)}};
_.K.onContentKeyDown=function(x){x.key==="Enter"?this.handleClickEvent(x):x.key===" "&&x.preventDefault()};
_.K.onContentKeyUp=function(x){x.key===" "&&this.handleClickEvent(x)};
pA.prototype.dataChanged=pA.prototype.dataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],pA.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],pA.prototype,"componentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],pA.prototype,"data",void 0);_.A([_.F({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],pA.prototype,"hasEndpoint",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],pA.prototype,"isInOfferModule",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],pA.prototype,"dataChanged",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],pA);
_.q(pA,"ytd-channel-masthead-renderer",function(){if(YUW!==void 0)return YUW;var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return YUW=x},{mode:1});var Ful;var mM=function(){var x=_.e.apply(this,arguments)||this;x.thumbnailObjectFit="CONTAIN";x.thumbnailObjectPosition="LEFT";x.isExpanded=!1;return x};
_.p(mM,_.e);_.K=mM.prototype;_.K.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.K.dataChanged=function(){this.resetStates()};
_.K.computeisTapOnOfferInfoContainerEnabled=function(){var x;return((x=this.data)==null?void 0:x.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.K.onExpandBtnClick=function(){var x,L=_.g((x=this.data)==null?void 0:x.showMoreButtonRenderer,Nz$);L&&_.AM(_.sk(),L.trackingParams);this.isExpanded=!this.isExpanded};
_.K.onOfferInfoClick=function(x){this.isTapOnOfferInfoContainerEnabled&&(_.QC(_.Jq(x)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.JL(_.Jq(x)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.K.onBottomBarClick=function(){this.executeTapCommand()};
_.K.executeTapCommand=function(){var x,L=(x=this.data)==null?void 0:x.tapCommand;L&&this.ytComponentBehavior.resolveCommand(L)};
_.K.resetStates=function(){this.isExpanded=!1};
_.J3.Object.defineProperties(mM.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var x=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),L,D,S;return((L=this.data)==null?void 0:L.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&x&&!!((D=this.data)==null?0:(S=D.benefits)==null?0:S.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var x,L,D;return((L=_.g((x=this.data)==null?void 0:x.showMoreButtonRenderer,Nz$))==null?void 0:L.showMoreButtonTitle)||((D=this.data)==null?void 0:D.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var x,L,D;return((L=_.g((x=this.data)==null?void 0:x.showMoreButtonRenderer,Nz$))==null?void 0:L.showLessButtonTitle)||((D=this.data)==null?void 0:D.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var x;return(x=this.showLessButtonTitle)!=null?x:""}var L;return(L=this.showMoreButtonTitle)!=null?L:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var x,L,D;return((x=this.data)==null?void 0:x.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((L=this.data)==null?0:L.footerTitle)||((D=this.data)==null?0:D.footerSubtitle))}}});
mM.prototype.dataChanged=mM.prototype.dataChanged;_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],mM.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],mM.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],mM.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",String)],mM.prototype,"thumbnailObjectFit",void 0);
_.A([_.F(),_.r("design:type",String)],mM.prototype,"thumbnailObjectPosition",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.r("design:type",Boolean)],mM.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.A([_.F(),_.r("design:type",Object)],mM.prototype,"isExpanded",void 0);_.A([_.F(),_.r("design:type",Object)],mM.prototype,"data",void 0);_.A([_.F({computed:"computeIcon_(data.footerIcon)"}),_.r("design:type",String)],mM.prototype,"icon",void 0);
_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],mM.prototype,"dataChanged",null);_.A([_.Y("data.thumbnail"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],mM.prototype,"hasThumbnail",null);_.A([_.Y("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],mM.prototype,"enableExpandButton",null);
_.A([_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],mM.prototype,"enableOfferContentIcon",null);_.A([_.Y("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.r("design:type",Object),_.r("design:paramtypes",[])],mM.prototype,"showMoreButtonTitle",null);_.A([_.Y("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.r("design:type",Object),_.r("design:paramtypes",[])],mM.prototype,"showLessButtonTitle",null);
_.A([_.Y("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.r("design:type",String),_.r("design:paramtypes",[])],mM.prototype,"expandedBtnText",null);_.A([_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],mM.prototype,"enableBottomBar",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],mM);
_.q(mM,"ytd-offer-card-renderer",function(){if(Ful!==void 0)return Ful;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Ful=x},{mode:1});var sH9;var bT=function(){return _.e.apply(this,arguments)||this};
_.p(bT,_.e);bT.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"}}}};
bT.prototype.onClick=function(x){if(!_.QC(x.composedPath()||[],this.hostElement,["A".toString()])){var L,D;if((x=(D=_.g((L=this.data)==null?void 0:L.actionButton,_.y4))==null?void 0:D.command)&&!this.ytComponentBehavior.resolveCommand(x)){var S;(S=_.sk())==null||S.clickCommand(x);_.yY().resolve(_.E2).resolveCommand(x,{form:{element:this.hostElement}})}}};
_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],bT.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],bT.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],bT.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],bT.prototype,"data",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],bT);
_.q(bT,"ytd-offer-content-renderer",function(){if(sH9!==void 0)return sH9;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return sH9=x},{mode:1});var TQl;var Yk=function(){return _.e.apply(this,arguments)||this};
_.p(Yk,_.e);Yk.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.J3.Object.defineProperties(Yk.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var x,L;return!((x=this.data)==null||!x.title)||!((L=this.data)==null||!L.description)}}});
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Yk.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Yk.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Yk.prototype,"data",void 0);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Yk.prototype,"hasHeaderData",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],Yk);
_.q(Yk,"ytd-offer-section-renderer",function(){if(TQl!==void 0)return TQl;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return TQl=x},{mode:1});var eoY;var Fx=function(){return _.e.apply(this,arguments)||this};
_.p(Fx,_.e);
Fx.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"}}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Fx.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Fx.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Fx.prototype,"data",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],Fx);
_.q(Fx,"ytd-offer-selection-step-renderer",function(){if(eoY!==void 0)return eoY;var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return eoY=x},{mode:1});var Ro3;var sz=function(){return _.e.apply(this,arguments)||this};
_.p(sz,_.e);sz.prototype.computeStyle=function(x){return x};
sz.prototype.computeImageWidth=function(x){return x==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.A([_.F({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.r("design:type",String)],sz.prototype,"containerStyle",void 0);_.A([_.F({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.r("design:type",String)],sz.prototype,"imageWidth",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],sz.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],sz.prototype,"data",void 0);
_.A([_.w({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],sz);
_.q(sz,"ytd-confirmation-masthead-renderer",function(){if(Ro3!==void 0)return Ro3;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Ro3=x},{mode:1});var GLl;var Tt=function(){return _.e.apply(this,arguments)||this};
_.p(Tt,_.e);Tt.prototype.computeStyle=function(x){return x};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Tt.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Tt.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.r("design:type",String)],Tt.prototype,"containerStyle",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],Tt);
_.q(Tt,"ytd-purchase-complete-detail-renderer",function(){if(GLl!==void 0)return GLl;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return GLl=x},{mode:1});var Cvq;var eA=function(){var x=_.e.apply(this,arguments)||this;x.scriptsAppended=!1;return x};
_.p(eA,_.e);eA.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"}}}};
eA.prototype.onDataChanged=function(){var x=this.get("data.gtmId");x&&(_.SZ(x,_.$6("GL","")),this.setupConversionTracking())};
eA.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var x=document.createElement("noscript");x.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(x);this.scriptsAppended=!0}};
eA.prototype.onDataChanged=eA.prototype.onDataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],eA.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],eA.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],eA.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],eA.prototype,"scriptsAppended",void 0);
_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],eA.prototype,"onDataChanged",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],eA);
_.q(eA,"ytd-purchase-complete-step-renderer",function(){if(Cvq!==void 0)return Cvq;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Cvq=x},{mode:1});var l5G;var R3=function(){var x=_.e.apply(this,arguments)||this;x.darkerDarkTheme=_.u("web_darker_dark_theme");return x};
_.p(R3,_.e);R3.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],R3.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],R3.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],R3.prototype,"darkerDarkTheme",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],R3);
_.q(R3,"ytd-ypc-transaction-error-message-renderer",function(){if(l5G!==void 0)return l5G;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return l5G=x},{mode:1});var U6I;var wv9;var Gt=function(){var x=_.e.apply(this,arguments)||this;x.handlePhoneVerificationSuccess=function(L){if(x.isValidPhoneVerificationCompletionMessageEvent(L)){var D;((D=x.data)==null?0:D.nextStepCommand)&&x.ytComponentBehavior.resolveCommand(x.data.nextStepCommand)}};
return x};
_.p(Gt,_.e);Gt.prototype.isValidPhoneVerificationCompletionMessageEvent=function(x){if(x.data!=="yt-phone-verification-complete")return!1;x=_.QY(x.origin);return x!==null&&x.includes("youtube.com")};
Gt.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
Gt.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],Gt.prototype,"ytComponentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Gt.prototype,"data",void 0);_.A([_.oW({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],Gt);
_.q(Gt,"yt-feature-enablement-soft-entry-renderer",function(){if(wv9===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;U6I===void 0&&(U6I=document.createElement("template"));var S=U6I;D.call(L,S.content.cloneNode(!0),x.content.firstChild);wv9=x}x=wv9;return x},{mode:1});var BQu;var Wus;var qUq;var A6W;var $69=function(){return _.e.apply(this,arguments)||this};
_.p($69,_.e);_.A([_.F(),_.r("design:type",Object)],$69.prototype,"data",void 0);_.A([_.oW({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],$69);
_.q($69,"yt-benefits-item-renderer",function(){if(A6W===void 0){var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;qUq===void 0&&(qUq=document.createElement("template"));var S=qUq;D.call(L,S.content.cloneNode(!0),x.content.firstChild);A6W=x}x=A6W;return x},{mode:2});var r6u;var NQ5;var CA=function(){return _.e.apply(this,arguments)||this};
_.p(CA,_.e);CA.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
CA.prototype.computeisWithoutPadding=function(){var x;return((x=this.data)==null?void 0:x.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],CA.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],CA.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.r("design:type",Boolean)],CA.prototype,"isWithoutPadding",void 0);_.A([_.oW({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],CA);
_.q(CA,"yt-benefits-section-renderer",function(){if(NQ5===void 0){var x=document.createElement("template");_.m(x,'\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>');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;r6u===void 0&&(r6u=document.createElement("template"));var S=r6u;D.call(L,S.content.cloneNode(!0),x.content.firstChild);NQ5=x}x=NQ5;return x},{mode:2});var lT=function(){return _.e.apply(this,arguments)||this};
_.p(lT,_.e);lT.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
lT.prototype.computeisUsingLargeWidth=function(){var x;return((x=this.data)==null?void 0:x.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],lT.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],lT.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.r("design:type",Boolean)],lT.prototype,"isUsingLargeWidth",void 0);_.A([_.oW({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],lT);
_.q(lT,"yt-benefits-flow-step-renderer",function(){if(Wus===void 0){var x=document.createElement("template");_.m(x,'\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>');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;BQu===void 0&&(BQu=document.createElement("template"));var S=BQu;D.call(L,S.content.cloneNode(!0),x.content.firstChild);Wus=x}x=Wus;return x},{mode:2});var ihI;var f5q;var Uz=function(){return _.e.apply(this,arguments)||this};
_.p(Uz,_.e);Uz.prototype.checkIsUsingLargeWidth=function(){var x;return((x=this.data)==null?void 0:x.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.A([_.F(),_.r("design:type",Object)],Uz.prototype,"data",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Uz.prototype,"ytRendererBehavior",void 0);_.A([_.F({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.r("design:type",Boolean)],Uz.prototype,"isUsingLargeWidth",void 0);_.A([_.oW({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],Uz);
_.q(Uz,"yt-confirmation-flow-step-renderer",function(){if(f5q===void 0){var x=document.createElement("template");_.m(x,'\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>');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;ihI===void 0&&(ihI=document.createElement("template"));var S=ihI;D.call(L,S.content.cloneNode(!0),x.content.firstChild);f5q=x}x=f5q;return x},{mode:2});var o3g;var a5$;var zoG=function(){return _.e.apply(this,arguments)||this};
_.p(zoG,_.e);_.A([_.F(),_.r("design:type",Object)],zoG.prototype,"data",void 0);_.A([_.oW({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],zoG);
_.q(zoG,"yt-info-flow-step-renderer",function(){if(a5$===void 0){var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;o3g===void 0&&(o3g=document.createElement("template"));var S=o3g;D.call(L,S.content.cloneNode(!0),x.content.firstChild);a5$=x}x=a5$;return x},{mode:2});var Xvl;var c6s;var n3X=function(){return _.e.apply(this,arguments)||this};
_.p(n3X,_.e);_.A([_.F(),_.r("design:type",Object)],n3X.prototype,"data",void 0);_.A([_.oW({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],n3X);
_.q(n3X,"yt-info-list-flow-step-renderer",function(){if(c6s===void 0){var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;Xvl===void 0&&(Xvl=document.createElement("template"));var S=Xvl;D.call(L,S.content.cloneNode(!0),x.content.firstChild);c6s=x}x=c6s;return x},{mode:2});var tc5=_.B(function(x){var L=x.data;return _.M("styled-text-view-model",{class:_.gF("ytStyledTextViewModelHost",function(){return tTu(L().fontAttributes)},function(){return nQu(L().color)})},_.M(_.kP,{text:function(){return L().text},
ariaLabel:function(){var D,S,Q;return(Q=(D=L().accessibility)==null?void 0:(S=D.accessibilityData)==null?void 0:S.label)!=null?Q:""}}))},"gh");
tc5.idomCompat=!0;var xuq=_.B(function(x){var L=function(){var Q,J,Z,y;return(y=(Z=(Q=x.alt)==null?void 0:Q.call(x))!=null?Z:(J=x.data().accessibilityData)==null?void 0:J.label)!=null?y:""},D=function(){return x.data().imageWidth},S=function(){return x.data().imageHeight};
return _.M("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.M(_.d,{cond:function(){var Q=x.data();if(Q){var J,Z,y;var E=((J=_.yY().resolve(_.ZN(_.Dt)))==null?0:J())?(Z=Q.imageDark)!=null?Z:Q.imageLight:(y=Q.imageLight)!=null?y:Q.imageDark}else E=void 0;return E},
then:function(Q){return _.M(_.Ku,Object.assign({},x,{data:Q,alt:L,targetWidth:D,targetHeight:S,preserveHeight:!0,preserveWidth:!0}))}}))},"hh");
xuq.idomCompat=!0;var wa=_.B(function(x){var L=x.data;x=_.ZH(function(){return L().slots},[]);
var D=_.ZH(function(){return L().layoutProperties},{}),S=_.yY().resolve(_.QO);
return _.M("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:oQX(D,S)},_.M(_.R1,{each:x,keyBy:"INDEX"},function(Q){return _.M("div",{class:"ytContainerLayoutViewModelSlot",style:oQX(function(){return Q().layoutProperties},S)},_.M(_.Fj,{data:function(){return Q().contents}},{containerLayoutViewModel:wa,
badgeViewModel:_.G2,buttonViewModel:_.qP,styledTextViewModel:tc5,contentPreviewImageViewModel:function(J){return _.M(_.CD,{data:J.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(J){return _.M(xuq,{data:J.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"ih");
wa.idomCompat=!0;var Lzq=_.B(function(x){var L=x.data;var D=x.stateFns;var S=function(){var P=L(),v=P.productId;return!(!P.clearGroupId&&!v)},Q=function(){var P=L(),v=P.clearGroupId;
return(P=P.productId)?D().isProductSelected(P):v?D().getSelectedProductByGroupId(v)==null:!1},J=function(P){var v=L(),V=v.clearGroupId;
if(v=v.productId)D().onProductSelected(v),P==null||P.forEach(function(h){_.Xf(h)});
else if(V)D().onClearGroupSelected(V)},Z=function(){var P=L(),v=P.clearGroupId;
if(P=P.productId){var V;return"group:"+(((V=D().getProductById(P))==null?void 0:V.groupId)||"")}return v?"group:"+v:""},y=_.ZH(function(){return L().header},[]),E=_.ZH(function(){return L().body},[]);
return _.M("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.M(_.d,{cond:function(){return y().length>0||S()},
then:function(){return _.M("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.M("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.M(_.Fj,{data:y},{containerLayoutViewModel:function(P){return _.M("div",{class:"ytPdpCardSectionViewModelContentItem"},_.M(wa,{data:P.data}))},
styledTextViewModel:function(P){return _.M("div",{class:"ytPdpCardSectionViewModelContentItem"},_.M(tc5,{data:P.data}))}})),_.M(_.d,{cond:S,
then:function(){return _.M("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.M(_.yp,{checked:Q,name:Z,onChange:function(){J(L().onSelect)}}))}}))}}),_.M(_.d,{cond:function(){return E().length>0},
then:function(){return _.M("div",null,_.M(_.Fj,{data:E},{containerLayoutViewModel:function(P){return _.M("div",{class:"ytPdpCardSectionViewModelContentItem"},_.M(wa,{data:P.data}))}}))}}))},"jh");
Lzq.idomCompat=!0;var Du9=_.B(function(x){var L=x.data;var D=x.stateFns;return _.M("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.M(_.d,{cond:function(){return L().banner},
then:function(S){return _.M("div",{class:"ytPdpCardViewModelBanner"},_.M(_.kP,{text:S}))}}),_.M(_.Fj,{data:function(){return L().sections}},{pdpCardSectionViewModel:function(S){S=S.data;
var Q={};return _.M("div",{class:_.gF("ytPdpCardViewModelSectionContainer",(Q.ytPdpCardViewModelShowDividers=function(){return L().showDividers},Q))},_.M(Lzq,{data:S,
stateFns:D}))}}))},"kh");
Du9.idomCompat=!0;var SKI=_.B(function(x){var L=x.data;var D=x.isOverlay;x={};return _.M("pdp-masthead-view-model",{class:_.gF("ytPdpMastheadViewModelHost",(x.ytPdpMastheadViewModelIsOverlay=D,x))},_.M(_.Fj,{data:function(){return L().image}},{contentPreviewImageViewModel:_.CD,
themedImageViewModel:function(S){return _.M(xuq,{data:S.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.M(_.d,{cond:function(){return L().title},
then:function(S){return _.M("h1",{class:"ytPdpMastheadViewModelHeading"},_.M(_.kP,{text:S,isOverlay:D}))}}),_.M(_.R1,{each:function(){var S;
return(S=L().finePrint)!=null?S:[]}},function(S){return _.M("div",{class:"ytPdpMastheadViewModelFinePrint"},_.M(_.kP,{text:S,
isOverlay:D}))}))},"lh");
SKI.idomCompat=!0;var Qcg=_.B(function(x){var L=x.data;var D=x.stateFns;var S=function(){return"pdp-pricing-group-selector-"+L().pricingGroupAttributeIds},Q=_.ZH(function(){return L().pricingGroupSelectorSectionHeader});
return _.M("pdp-pricing-group-selector-view-model",null,_.M(_.d,{cond:function(){return!!Q()},
then:function(){return _.M(_.Fj,{data:Q},{sectionHeaderViewModel:function(J){J=J.data;var Z={};return _.M("div",{class:_.gF("ytPdpPricingGroupSelectorViewModelSectionHeader",(Z.ytPdpPricingGroupSelectorViewModelFullBleed=!0,Z.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,Z))},_.M(_.AN,{data:J}))}})}}),_.M("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.M(_.R1,{each:function(){var J=D().getSelectedProductByGroupId(L().groupId);
if(!J)return _.WI(Error("Tj`"+L().groupId)),[];var Z,y=(Z=L().pricingGroupAttributeIds)!=null?Z:[],E;if((E=J.pricingGroups)==null||!E.length||!y.length)return[];Z=J.pricingGroups.filter(function(h){return y.length?h.pricingGroupAttributes.every(function(H){return y.includes(H)}):!1});
J=[];if(y.length>0){Z=[].concat(_.lP(Z));E=_.O(y);for(var P=E.next(),v={};!P.done;v={targetAttrId:void 0},P=E.next())v.targetAttrId=P.value,P=Z.findIndex(function(h){return function(H){return H.pricingGroupAttributes.includes(h.targetAttrId)}}(v)),P!==-1&&(J.push(Z[P]),Z.splice(P,1))}var V=D().getSelectedPricingGroupAttributesByGroupId(L().groupId);
return J.map(function(h){var H=!1;V&&h.pricingGroupAttributes&&(H=xk(h.pricingGroupAttributes,V));return{pricingGroup:h,isSelected:H}})},
keyBy:function(J){return J.pricingGroup.pricingGroupId}},function(J){return _.M("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.M("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.M(_.Fj,{data:function(){return J().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:wa})),_.M("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.M(_.yp,{checked:function(){return J().isSelected},
name:S,onClick:function(){var Z=J().pricingGroup;D().onPricingGroupSelected(Z.pricingGroupId);if(Z=_.fI(Z.onSelectPricingGroup)){var y;(y=_.yY().resolve(_.E2))==null||y.resolveCommand(Z)}}})))})))},"mh");
Qcg.idomCompat=!0;var J35=_.B(function(x){var L=x.data;var D=x.stateFns;var S=function(){var Z=D().getSelectedPricingOptions().map(function(P){return P.pricingOptionId}),y=D().getSelectedProductByGroupId(L().groupId);
if(!y)return _.WI(Error("Uj`"+L().groupId)),[];var E=D().getSelectedPricingGroupAttributesByGroupId(L().groupId);return SD3(y.pricingOptions,E,Z)},Q=_.ZH(function(){return L().pricingOptionSelectorSectionHeader}),J=function(){return S().length>1};
return _.M("pdp-pricing-option-selector-view-model",null,_.M(_.d,{cond:function(){return!!Q()&&J()},
then:function(){return _.M(_.Fj,{data:Q},{sectionHeaderViewModel:function(Z){Z=Z.data;var y={};return _.M("div",{class:_.gF("ytPdpPricingOptionSelectorViewModelSectionHeader",(y.ytPdpPricingOptionSelectorViewModelFullBleed=!0,y.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,y))},_.M(_.AN,{data:Z}))}})}}),_.M(_.d,{cond:J,
then:function(){return _.M("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.M(_.R1,{each:S,keyBy:"INDEX"},function(Z){return _.M("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.M("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.M(_.Fj,{data:function(){return Z().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:wa})),_.M("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.M(_.yp,{checked:function(){return Z().isSelected},
onClick:function(){D().onPricingOptionSelected(Z().pricingOption.pricingOptionId);var y=Z().pricingOption.onSelectPricingOption;if(y=_.fI(y)){var E;(E=_.yY().resolve(_.E2))==null||E.resolveCommand(y)}}})))}))}}))},"nh");
J35.idomCompat=!0;var KzI=_.B(function(x){var L=x.data;var D=x.stateFns;return _.M("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.M(_.Fj,{data:function(){var S,Q;return(Q=(S=D().getSelectedPricingOptions()[0])==null?void 0:S.primaryButton)!=null?Q:L().emptyStateButton}},{buttonViewModel:_.qP}))},"oh");
KzI.idomCompat=!0;var OLl=_.B(function(x){var L=x.stateFns;return _.M("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.M(_.Fj,{data:function(){return L().getSelectedPricingOptions().flatMap(function(D){return D.summaryLines}).filter(function(D){return!!D})}},{containerLayoutViewModel:function(D){return _.M("div",{class:"ytPdpSummaryViewModelLineItem"},_.M(wa,{data:D.data}))}}))},"ph");
OLl.idomCompat=!0;var ZL$=_.B(function(x){function L(G){var U=Z();_.Ok(_.B2("pdpStateEntity",U,{key:U,selectedPricingOptions:G}))}
var D=x.data;var S=x.internalScrolling;var Q=x.stateFnsForTesting;var J=_.ZH(function(){return D().allProducts},[]),Z=_.ZH(function(){return D().pdpStateEntityKey},""),y=_.mF(QEu,Z),E=_.m5(function(){_.WB(!0);
var G;return(G=Q==null?void 0:Q())!=null?G:KNl(y,J,L)},void 0,"ryrrHe"),P=_.ZH(function(){return D().body},[]),v=_.ZH(function(){return D().columnBreakHints},[]),V=function(){return D().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},h=function(){return V()||D().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},H=_.m5(function(){var G=_.oB(D().background),U;
if(G==null?0:(U=G.sources)==null?0:U.length){var l=l===void 0?!0:l;G=_.DH3(void 0,G.sources,void 0,l,l?1E3:void 0,l?void 0:1E3)}else G=null;return G},void 0,"UVFJic");
x=_.bc({"--pdp-view-model-background":function(){return H()?"url("+H()+")":void 0}});
var k={};S=_.gF("ytPdpViewModelHost",(k.ytPdpViewModelHasBackground=function(){return h()||!!H()},k.ytPdpViewModelHasDarkBackground=h,k.ytPdpViewModelHasScrim=V,k.ytPdpViewModelInternalScrolling=_.ZH(S,!1),k));
var T=function(G){var U={};return _.gF("ytPdpViewModelItem",(U.ytPdpViewModelFullBleed=function(){return OKl(G())==="dividerViewModel"||OKl(G())==="sectionHeaderViewModel"},U.ytPdpViewModelNoVerticalPadding=function(){return OKl(G())==="sectionHeaderViewModel"},U))};
_.wO(function(){var G=D().onStartCommand;if(G&&(G=_.fI(G))){var U;(U=_.yY().resolve(_.E2))==null||U.resolveCommand(G)}});
return _.M("pdp-view-model",{class:S,style:x},_.M("div",{class:"ytPdpViewModelColumnContainer"},_.M(_.R1,{each:function(){return ZKs(P(),v())},
keyBy:"INDEX"},function(G){return _.M("div",{class:"ytPdpViewModelColumn"},_.M(_.Fj,{data:G},{containerLayoutViewModel:function(U,l){U=U.data;return _.M("div",{class:T(function(){return G()[l()]})},_.M(wa,{data:U}))},
dividerViewModel:function(U,l){U=U.data;return _.M("div",{class:T(function(){return G()[l()]})},_.M(_.x2R,{data:U}))},
pdpCardViewModel:function(U,l){U=U.data;return _.M("div",{class:T(function(){return G()[l()]})},_.M(Du9,{data:U,
stateFns:E}))},
pdpMastheadViewModel:function(U,l){U=U.data;return _.M("div",{class:T(function(){return G()[l()]})},_.M(SKI,{data:U,
isOverlay:h}))},
pdpPricingGroupSelectorViewModel:function(U,l){U=U.data;return _.M("div",{class:T(function(){return G()[l()]})},_.M(Qcg,{data:U,
stateFns:E}))},
pdpPricingOptionSelectorViewModel:function(U,l){U=U.data;return _.M("div",{class:T(function(){return G()[l()]})},_.M(J35,{data:U,
stateFns:E}))},
pdpPrimaryButtonViewModel:function(U,l){U=U.data;return _.M("div",{class:T(function(){return G()[l()]})},_.M(KzI,{data:U,
stateFns:E}))},
pdpSummaryViewModel:function(U,l){U=U.data;return _.M("div",{class:T(function(){return G()[l()]})},_.M(OLl,{data:U,
stateFns:E}))},
sectionHeaderViewModel:function(U,l){U=U.data;return _.M("div",{class:T(function(){return G()[l()]})},_.M(_.AN,{data:U}))}}))})))},"qh");
ZL$.idomCompat=!0;_.dF(ZL$,"pdp-view-model",{props:{data:_.pJ,stateFnsForTesting:_.Il,internalScrolling:_.Il}});var y3$=_.B(function(x){var L=x.data;var D=x.className;var S=_.mF(_.LG,function(){return L().flowStateEntityKey});
return _.M("ytm-premium-purchase-button-renderer",{class:_.gF("ytPremiumPurchaseButtonRendererHost",D)},_.M(_.Fj,{data:function(){var Q;return(Q=_.g(S(),IA9))==null?void 0:Q.primaryButtonOverride}},{buttonRenderer:function(Q){return _.M(_.pD,{data:Q.data,
className:D})},
buttonViewModel:function(Q){return _.M(_.qP,{data:Q.data,className:D})}}))},"rh");
y3$.idomCompat=!0;var IRY=_.B(function(x){var L=x.data;x=x.className;var D=function(){return yEX(L().style)},S=_.gF("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",D),Q=_.gF("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",D);
return _.M("yt-flow-bottom-bar-renderer",{class:_.gF("yt-flow-bottom-bar-renderer",x,D)},_.M(_.Fj,{data:function(){return L().secondaryButton}},{buttonRenderer:function(J){return _.M(_.pD,{data:J.data,
className:Q})},
buttonViewModel:function(J){return _.M(_.qP,{data:J.data,className:Q})},
premiumPurchaseButtonRenderer:function(J){return _.M(y3$,{data:J.data,className:Q})}}),_.M(_.Fj,{data:function(){return L().primaryButton}},{buttonRenderer:function(J){return _.M(_.pD,{data:J.data,
className:S})},
buttonViewModel:function(J){return _.M(_.qP,{data:J.data,className:S})},
premiumPurchaseButtonRenderer:function(J){return _.M(y3$,{data:J.data,className:S})}}))},"sh");
IRY.idomCompat=!0;_.dF(IRY,"yt-flow-bottom-bar-renderer",{props:{data:_.pJ,className:_.pJ}});var E7I=_.B(function(x){var L=_.gF(x.className,"ytOfferSummaryRendererHost");return _.M("yt-offer-summary-renderer",{class:L},_.M("div",{class:"ytOfferSummaryRendererTextContainer"},_.M("div",{class:"ytOfferSummaryRendererEyebrowText"},_.M(_.kP,{text:function(){return x.data().eyebrowText}})),_.M("div",{class:"ytOfferSummaryRendererTitle"},_.M(_.kP,{text:function(){return x.data().title}})),_.M("div",{class:"ytOfferSummaryRendererSubtitle"},_.M(_.kP,{text:function(){return x.data().subtitle}})),_.M("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.M(_.R1,{each:function(){var D;
return(D=x.data().featureListData)!=null?D:[]}},function(D){var S;
return _.M("div",{class:"ytOfferSummaryRendererFeatureList"},_.M(_.YO,{icon:(S=D.icon)==null?void 0:S.iconType,active:function(){return D.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(D.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"}}}),_.M("div",{class:"ytOfferSummaryRendererFeatureListText"},_.M(_.kP,{text:D.text,
className:function(){return D.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.M("div",{class:"ytOfferSummaryRendererDescription"},_.M(_.kP,{text:function(){return x.data().description}}))))},"th");_.dF(_.B(function(x){var L={};L=_.gF("ytOfferSummaryFlowStepRendererHost",(L.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=x.shouldDisableHeaderTopMargin,L));return _.M("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:L},_.M("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.M("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.M(_.kP,{text:function(){return x.data().header}})),_.M("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.M(_.kP,{text:function(){return x.data().subtitle}}))),_.M("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.M(_.Fj,{data:function(){return x.data().offerSummary}},{offerSummaryRenderer:function(D){return _.M(E7I,{data:D.data,
className:x.flowClassName})}})))},"uh"),"yt-offer-summary-flow-step-renderer",{props:{data:_.Il,
flowClassName:_.Il,flowStateEntityKey:_.Il,shouldDisableHeaderTopMargin:_.Il}});var Mol=_.B(function(x){var L=x.data;var D=x.className;var S=x.flowStateEntityKey;var Q=x.selectionStepStyle;x=_.kO(function(E){var P=L(),v=S==null?void 0:S();E.target&&(E.stopPropagation(),E=v||"",v=_.LG(_.KI().getState(),E),P=Object.assign({},v,{premiumPurchaseFlowState:{selectedOptionId:P.optionId,primaryButtonOverride:P.primaryButtonOverride}}),_.KI().dispatch(_.TR("flowStateEntity",E,P)));return!1});
var J=function(){return(S==null?void 0:S())||""},Z=_.mF(_.LG,J);
_.wO(function(){var E=L(),P=J(),v=Z();E.defaultSelected&&P!==""&&E.primaryButtonOverride&&Egg(E.optionId||"",P,E.primaryButtonOverride,v)});
var y={};return _.M("ytm-option-item-renderer",{"on:click":x,class:_.gF(D,"ytm-option-item-renderer",(y["ytm-option-item-renderer--lp2-style"]=function(){return(Q==null?void 0:Q())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},y))},_.M("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.M("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var E=L(),P=J(),v=Z();v=_.g(v,IA9);return(v?(v==null?void 0:v.selectedOptionId)||"":E.defaultSelected&&P!==""?(E==null?void 0:E.optionId)||"":"")===L().optionId},
name:("input"+_.zp(_.KT)).toString()})),_.M("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.M(_.Fj,{data:function(){return L().titleBadge}},{badgeViewModel:function(E){return _.M(_.G2,{data:E.data,
class:"ytm-option-item-renderer__option-item-title-badge"})}}),_.M(_.d,{cond:function(){return L().eyebrowText},
then:function(){return _.M("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.M(_.kP,{text:function(){return L().eyebrowText}}))}}),_.M("div",{class:"ytm-option-item-renderer__option-item-title"},_.M(_.kP,{text:function(){return L().title}})),_.M("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.M(_.kP,{text:function(){return L().subtitle}})),_.M(_.d,{cond:function(){return L().featureListData},
then:function(){return _.M("div",{class:"ytm-option-item-renderer__feature-list-data"},_.M(_.R1,{each:function(){return L().featureListData||[]}},function(E){var P,v=(P=E.icon)==null?void 0:P.iconType;
a:switch(E.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":P="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":P="ytm-option-item-renderer__feature-list-icon-small";break a;default:P="ytm-option-item-renderer__feature-list-icon-default"}return _.M("div",{class:"ytm-option-item-renderer__feature-list"},_.M(_.YO,{icon:v,className:P,active:function(){return E.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.M("div",{class:"ytm-option-item-renderer__feature-list-text"},_.M(_.kP,{text:E.text,
className:function(){return E.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.M("div",{class:"ytm-option-item-renderer__option-item-description"},_.M(_.kP,{text:function(){return L().description}}))))},"vh");var duq=_.B(function(x){var L=x.data;var D=x.flowClassName;var S=x.flowStateEntityKey;var Q=x.selectionStepStyle;return _.M("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"ytOptionSectionRendererHost"},_.M("div",{class:"ytOptionSectionRendererOptionSectionHeaderSection"},_.M("div",{class:"ytOptionSectionRendererOptionSectionHeader"},_.M(_.kP,{text:function(){return L().title}}),_.M(_.Fj,{data:function(){return L().titleBadge}},{badgeViewModel:function(J){return _.M(_.G2,{data:J.data,
class:"ytOptionSectionRendererOptionSectionTitleBadge"})}})),_.M(_.d,{cond:function(){return L().subtitle},
then:function(){return _.M("div",{class:"ytOptionSectionRendererOptionSectionSubtitle"},_.M(_.kP,{text:function(){return L().subtitle}}))}}),_.M(_.d,{cond:function(){return L().featureListData},
then:function(J){return _.M("div",{class:"ytOptionSectionRendererOptionSectionFeatureList"},_.M(_.R1,{each:J},function(Z){var y;return _.M("div",{class:"ytOptionSectionRendererOptionSectionFeatureItem"},_.M(_.YO,{icon:(y=Z.icon)==null?void 0:y.iconType,active:function(){return Z.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(Z.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconSmall";default:return"ytOptionSectionRendererOptionSectionFeatureItemIconDefault"}}}),_.M("div",{class:"ytOptionSectionRendererOptionSectionFeatureItemText"},_.M(_.kP,{text:Z.text,
className:function(){return Z.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOptionSectionRendererOptionSectionFeatureItemTextSecondary":""}})))}))}}),_.M(_.d,{cond:function(){return L().secondaryTitle},
then:function(){return _.M("div",{class:"ytOptionSectionRendererOptionSectionSecondaryTitle"},_.M(_.kP,{text:function(){return L().secondaryTitle}}))}}),_.M(_.R1,{each:function(){return L().sectionDisclaimers||[]}},function(J){return _.M("div",{class:"ytOptionSectionRendererOptionSectionDisclaimer"},_.M(_.kP,{text:J}))})),_.M(_.Fj,{data:function(){return L().optionItems}},{optionItemRenderer:function(J){return _.M("div",{class:"ytOptionSectionRendererOptionItem"},_.M(Mol,{data:J.data,
className:D,flowStateEntityKey:S,selectionStepStyle:Q}))}}),_.M(_.d,{cond:function(){return L().offerText},
then:function(){return _.M("div",{class:"ytOptionSectionRendererOptionSectionOfferText"},_.M(_.kP,{text:function(){return L().offerText}}))}}))},"wh");
duq.idomCompat=!0;var Pz3=_.B(function(x){var L=x.data;var D=x.flowClassName;var S=x.flowStateEntityKey;x=x.isDesktop;var Q=function(){var P;return(P=L().flowStateEntityKey)!=null?P:S==null?void 0:S()},J=function(){return(Q==null?void 0:Q())||""},Z=function(){return L().style},y=_.mF(_.LG,J);
_.wO(function(){var P=L(),v=J(),V=y();!_.g(V,IA9)&&P.noPreselect&&v!==""&&P.defaultButtonOverride&&Egg("default",v,P.defaultButtonOverride,V)});
var E={};return _.M("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.gF("ytm-option-selection-flow-step-renderer",(E["ytm-option-selection-flow-step-renderer--desktop"]=x,E["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return L().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},E))},_.M("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"},
_.M("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.M(_.kP,{text:function(){return L().header}})),_.M("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.M(_.kP,{text:function(){return L().subtitle}}))),_.M(_.Fj,{data:function(){return L().optionItems||[]}},{optionItemRenderer:function(P){return _.M("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.M(Mol,{data:P.data,
className:D,flowStateEntityKey:Q,selectionStepStyle:Z}))},
optionSectionRenderer:function(P){return _.M("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.M(duq,{data:P.data,flowClassName:D,flowStateEntityKey:Q,selectionStepStyle:Z}))}}))},"xh");
Pz3.idomCompat=!0;_.dF(Pz3,"yt-option-selection-flow-step-renderer",{props:{data:_.pJ,flowClassName:_.pJ,flowStateEntityKey:_.pJ,isDesktop:_.pJ}});_.Bb=_.B(function(x){var L=_.ym(x,{type:1,disablePadding:!1,disablePrimaryButton:!1}),D=L.data,S=L.type;x=L.disablePadding;var Q=L.disablePrimaryButton,J=L.onClickPrimaryButton,Z=function(){return D().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},y=function(){return{disabled:Q(),
state:Q()?"disabled":"active"}},E=function(){return D().leadingLabel||D().trailingLabel};
L={};return _.M("yt-panel-footer-view-model",{class:_.gF("yt-panel-footer-view-model",(L["yt-panel-footer-view-model--hide-divider"]=function(){return D().shouldHideDivider},L["yt-panel-footer-view-model--disable-padding"]=x,L))},_.M(_.d,{cond:E,
then:function(){var P={},v={};return _.M("div",{class:_.gF("yt-panel-footer-view-model__text-row",(P["yt-panel-footer-view-model--row-bottom-padding"]=function(){var V=D();return!(!V.leadingLabel&&!V.trailingLabel||!V.primaryButton&&!V.secondaryButton)},P))},_.M(_.kP,{text:function(){return D().leadingLabel},
className:_.gF((v["yt-panel-footer-view-model--text-padding"]=E,v))}),_.M(_.kP,{text:function(){return D().trailingLabel}}))}}),_.M(_.d,{cond:Z,
then:function(){var P={};return _.M("div",{class:"yt-panel-footer-view-model__button-stack"},_.M("div",{class:_.gF("yt-panel-footer-view-model__primary-button",(P["yt-panel-footer-view-model__button-stack--top-button"]=function(){return D().secondaryButton},P))},_.M(_.Fj,{data:function(){return D().primaryButton}},{buttonViewModel:function(v){return _.M(_.qP,{data:v.data,
buttonOverrides:y,onClick:J})}})),_.M(_.Fj,{data:function(){return D().secondaryButton}},{buttonViewModel:_.qP}))}}),_.M(_.d,{cond:function(){return!Z()},
then:function(){var P={},v={},V={};return _.M("div",{class:_.gF("yt-panel-footer-view-model__button-row",(P["yt-panel-footer-view-model__button-row--trailing"]=function(){return 3===S()},P))},_.M("div",{class:_.gF("yt-panel-footer-view-model__button-row--left-button",(v["yt-panel-footer-view-model__button-row--full-width"]=function(){return 1===S()},v["yt-panel-footer-view-model__button-row--hidden"]=function(){return!D().secondaryButton||0===S()},v["yt-panel-footer-view-model__button-row--shrink"]=
function(){return 2===S()},v))},_.M(_.Fj,{data:function(){return D().secondaryButton}},{buttonViewModel:_.qP})),_.M("div",{class:_.gF("yt-panel-footer-view-model__primary-button",(V["yt-panel-footer-view-model__button-row--full-width"]=function(){return 0===S()||1===S()},V["yt-panel-footer-view-model__button-row--expand"]=function(){return 2===S()},V))},_.M(_.Fj,{data:function(){return D().primaryButton}},{buttonViewModel:function(h){return _.M(_.qP,{data:h.data,
buttonOverrides:y,onClick:J})}})))}}))},"yh");
_.Bb.idomCompat=!0;_.jc5=_.B(function(x){x=_.ym(x,{disablePadding:!1});var L=x.data,D=x.disablePadding;x=_.OAb(function(){return L().formId});
var S=x.submitForm,Q=x.isValid,J=x.isSubmitting;return _.M("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.M(_.Fj,{data:function(){return L().panelFooter}},{panelFooterViewModel:function(Z){return _.M(_.Bb,{data:Z.data,
onClickPrimaryButton:function(){S()},
disablePrimaryButton:function(){return!Q()||J()},
disablePadding:D})}}))},"zh");_.dF(_.jc5,"yt-form-footer-view-model",{props:{data:_.pJ,disablePadding:_.pJ}});var v7G=_.B(function(x){var L=_.u("enable_user_rating_web");return _.M("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.M("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.M(_.d,{cond:function(){var D;return(D=x.data())==null?void 0:D.image},
then:function(D){return _.M(_.Ku,{data:D,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.M("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.M(_.kP,{text:function(){var D;
return(D=x.data())==null?void 0:D.title}})),_.M("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.M(_.kP,{text:function(){var D;
return(D=x.data())==null?void 0:D.subtitle}})),_.M(_.d,{cond:function(){return!L},
then:function(){return _.M(_.Fj,{data:function(){var D;return(D=x.data())==null?void 0:D.viewTipsButton}},{buttonViewModel:function(D){return _.M(_.qP,{data:D.data,
className:"ytContributorZeroStateViewModelCenterAlignedContentButton"})}})}})))},"Ah");_.dF(v7G,"yt-contributor-zero-state-view-model",{props:{data:_.pJ}});var Vo3=_.B(function(x){var L=function(){var D;return(D=x.data())==null?void 0:D.image};
return _.M("yt-featured-content-item-view-model",{class:_.gF("ytFeaturedContentItemViewModelHost")},_.M("div",{class:_.gF(function(){return L()?"ytFeaturedContentItemViewModelItemWithImageContainer":"ytFeaturedContentItemViewModelItemWithIconContainer"})},_.M("div",{class:function(){return L()?"ytFeaturedContentItemViewModelItemWithImage":"ytFeaturedContentItemViewModelItemWithIcon"}},_.M(_.d,{cond:L,
then:function(){return _.M("div",{class:"ytFeaturedContentItemViewModelImage"},_.M(_.Fj,{data:function(){return x.data().image}},{themedImageViewModel:function(D){return _.M(xuq,{data:D.data,
className:"ytFeaturedContentItemViewModelThemedImage"})}}))}}),_.M(_.d,{cond:function(){var D;
return!L()&&((D=x.data())==null?void 0:D.iconName)},
then:function(){return _.M("div",{class:"ytFeaturedContentItemViewModelIcon"},_.M(_.YO,{icon:function(){return x.data().iconName}}))}}),_.M("div",{class:"ytFeaturedContentItemViewModelContent"},_.M(_.d,{cond:function(){var D;
return(D=x.data())==null?void 0:D.title},
then:function(){return _.M("div",{class:"ytFeaturedContentItemViewModelContentTitle"},_.M(_.kP,{text:function(){return x.data().title}}))}}),_.M(_.d,{cond:function(){var D;
return(D=x.data())==null?void 0:D.body},
then:function(){return _.M("div",{class:"ytFeaturedContentItemViewModelContentBody"},_.M(_.kP,{text:function(){return x.data().body}}))}})))))},"Bh");var h5W=_.B(function(x){var L=function(){var Q;return MV9((Q=x.data())==null?void 0:Q.titleFontSize)},D=function(){var Q;
return dgu((Q=x.data())==null?void 0:Q.descriptionFontSize)},S=function(){var Q;
return((Q=x.data())==null?void 0:Q.titleFontSize)==="LANDING_PAGE_YOUTUBE_FONT_SIZE_M"};
return _.M("yt-landing-page-view-model",{class:_.gF("ytLandingPageViewModelHost",x.className)},_.M("div",{class:"ytLandingPageViewModelHeader"},_.M(_.d,{cond:function(){var Q;return(Q=x.data())==null?void 0:Q.bannerImage},
then:function(Q){return _.M("div",{class:"ytLandingPageViewModelHeaderImage"},_.M(_.Fj,{data:function(){return Q()}},{imageBannerViewModel:function(J){return _.M(_.dC,{data:J.data,
isPositionRelative:!0})}}))}}),_.M(_.d,{cond:function(){var Q;
return(Q=x.data())==null?void 0:Q.bannerAnimation},
then:function(Q){return _.M(_.fJ,{data:function(){var J=Q();if(J==null?0:J.url){var Z;J={path:(Z=J==null?void 0:J.url)!=null?Z:"",autoplay:!0,loop:!0,renderer:"svg"}}else if(J==null?0:J.payload){var y;J={animationData:JSON.parse((y=J==null?void 0:J.payload)!=null?y:""),autoplay:!0,loop:!0,renderer:"svg"}}else J=void 0;return{animationConfig:J}},
animationName:"landing_page_banner_animation",className:"ytLandingPageViewModelHeaderBannerAnimation"})}}),_.M("div",{class:"ytLandingPageViewModelHeaderTitle"},_.M(_.d,{cond:function(){var Q;
return(Q=x.data())==null?void 0:Q.title},
then:function(Q){return _.M("div",{class:_.gF("ytLandingPageViewModelHeaderTitleContent",L)},_.M(_.kP,{text:function(){return Q()}}))}}),_.M(_.d,{cond:function(){var Q;
return(Q=x.data())==null?void 0:Q.description},
then:function(Q){var J={};return _.M(_.kP,{className:_.gF("ytLandingPageViewModelHeaderTitleDescription",D,(J.ytLandingPageViewModelHeaderTitleDescriptionMargin=S,J)),text:function(){return Q()}})}}))),_.M(_.d,{cond:function(){var Q,J;
return(Q=x.data())==null?void 0:(J=Q.featuredContentList)==null?void 0:J.length},
then:function(){return _.M("div",{class:"ytLandingPageViewModelFeaturedContentSection"},_.M(_.Fj,{data:function(){return x.data().featuredContentList}},{featuredContentItemViewModel:function(Q){return _.M(Vo3,{data:Q.data})}}))}}),_.M(_.d,{cond:function(){var Q,J;
return(Q=x.data())==null?void 0:(J=Q.expandableContentList)==null?void 0:J.length},
then:function(){return _.M("div",{class:"ytLandingPageViewModelFaqSection"},_.M(_.Fj,{data:function(){return x.data().expandableContentList}},{faqEntryViewModel:function(Q){return _.M("div",{class:"ytLandingPageViewModelFaqSectionEntry"},_.M(_.ww_,{data:Q.data}))}}))}}),_.M("div",{class:"ytLandingPageViewModelFooter"},_.M(_.d,{cond:function(){var Q;
return(Q=x.data())==null?void 0:Q.legalCopy},
then:function(Q){return _.M("div",{class:"ytLandingPageViewModelFooterLegalCopy"},_.M(_.kP,{text:function(){return Q()}}))}}),_.M(_.d,{cond:function(){var Q;
return(Q=x.data())==null?void 0:Q.actions},
then:function(Q){return _.M("div",null,_.M(_.Fj,{data:function(){return Q()}},{flexibleActionsViewModel:function(J){return _.M(_.yw,{data:J.data,
layout:1,className:"ytLandingPageViewModelFooterActions"})}}))}})))},"Ch");_.dF(_.B(function(x){return _.M("yt-lp-section-group-view-model",{class:"ytLpSectionGroupViewModelHost"},_.M("div",{class:"ytLpSectionGroupViewModelContainer"},_.M(_.Fj,{data:function(){return x.data().sections}},{landingPageViewModel:function(L){return _.M(h5W,{data:L.data,
className:"ytLpSectionGroupViewModelSection"})}})))},"Dh"),"yt-lp-section-group-view-model",{props:{data:_.pJ}});var HLu=_.B(function(x){var L=x.data;var D=x.selectedKey;var S=x.onSelected;var Q=x.groupName;var J=function(){return L().text},Z=function(){return L().attributedText},y=function(){return L().subtext},E=function(){return L().attributedSubtext},P=_.M("div",{class:"ytRadioButtonItemViewModelLabel"},_.M(_.d,{cond:J,
then:function(){return _.M("div",null,J)}}),_.M(_.d,{cond:Z,
then:function(){return _.M(_.kP,{text:Z})}}),_.M(_.d,{cond:y,
then:function(){return _.M("div",{class:"ytRadioButtonItemViewModelSubText"},y)}}),_.M(_.d,{cond:E,
then:function(){return _.M("div",{class:"ytRadioButtonItemViewModelSubText"},_.M(_.kP,{text:E}))}})),v=function(){if(Z()){var h;
return(h=Z())==null?void 0:h.content}return J()},V=function(){if(E()){var h;
return(h=E())==null?void 0:h.content}return y()};
x={};return _.M("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.M(_.yp,{name:Q,checked:function(){return!(D==null||!D()||L().key!==(D==null?void 0:D()))},
onChange:function(h){S==null||S(h.target,L(),Q==null?void 0:Q())},
labelRenderable:function(){return P},
ariaLabel:function(){return V()?v()+", "+V():v()},
className:_.gF((x.ytRadioButtonItemViewModelSubTitle=function(){return!!L().subtext},x))}))},"Eh");_.uYq=_.B(function(x){var L=x.data;var D=x.onSelected;var S=x.selectedKey;var Q=x.groupName;var J=function(){return(Q==null?void 0:Q())||L().key};
return _.M("yt-radio-button-group-view-model",{class:"ytRadioButtonGroupViewModelHost"},_.M("fieldset",{class:"ytRadioButtonGroupViewModelFieldset"},_.M(_.Fj,{data:function(){return L().radioButtons}},{radioButtonItemViewModel:function(Z){return _.M(HLu,{data:Z.data,
onSelected:D,selectedKey:S,groupName:J})}})))},"Fh");var g7q=_.B(function(x){_.wO(function(){if(x.controlledMode()&&x.data().defaultSelected)_.BI(Error("Vj"));else{var J;!x.controlledMode()&&((J=x.selected)==null?0:J.call(x))&&_.BI(Error("Wj"))}});
var L=_.O(_.mU(function(){if(!x.controlledMode())return x.data().defaultSelected})),D=L.next().value,S=L.next().value,Q=function(){if(!x.controlledMode())return D();
var J;return(J=x.selected)==null?void 0:J.call(x)};
return _.M("yt-checkbox-item-view-model",{class:_.gF("ytCheckboxItemViewModelHost",x.className)},_.M(_.Ij,{data:function(){var J=x.data(),Z=Q();return{title:J.text,subtitle:J.subtext,superlabel:J.superlabel,isSelected:!!Z,isDisabled:J.isDisabled,selectionStyle:"LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},
onTap:function(J){J.preventDefault();!x.controlledMode()&&S(!D());var Z,y;(y=x.onTap)==null||y.call(x,!!Q(),x.data(),(Z=x.groupName)==null?void 0:Z.call(x))},
isCompact:x.isCompact}))},"Gh");var k0W=_.B(function(x){var L=x.data;var D=x.controlledMode;var S=x.selectedKeys;var Q=x.onItemTap;var J=x.groupName;var Z=function(){return(J==null?void 0:J())||L().key};
_.wO(function(){D()&&L().defaultSelectedKeys?_.BI(Error("Xj")):!D()&&(S==null?0:S())&&_.BI(Error("Yj"))});
x=_.O(_.mU(function(){if(!D())return L().defaultSelectedKeys}));
var y=x.next().value,E=x.next().value,P=function(v,V,h){v=[];!D()&&V.key&&(v=P7u(V.key,y()||[]),E(v));Q==null||Q(V,v,h)};
return _.M("yt-checkbox-group-view-model",{class:_.gF("ytCheckboxGroupViewModelHost")},_.M("fieldset",{class:_.gF("ytCheckboxGroupViewModelFieldset")},_.M(_.Fj,{data:function(){return L().checkboxes}},{checkboxItemViewModel:function(v){var V=v.data;
return _.M(g7q,{data:V,controlledMode:!0,selected:function(){var h=D()?(S==null?void 0:S())||[]:y()||[],H=V().key;return H?h.includes(H):!1},
onTap:P,groupName:Z})}})))},"Hh");var Wb=_.B(function(x){var L=_.mF(jEl,_.ZH(function(){var y;return(y=x.data())==null?void 0:y.noteFeedEntityKey},"")),D=_.mF(Rhl,_.ZH(function(){var y;
return(y=x.data())==null?void 0:y.userRatingEntityKey},"")),S=_.u("enable_user_rating_web"),Q=function(){var y,E,P;
return((y=L())==null?0:y.contributorNote)?(E=L())==null?void 0:E.contributorNote:(P=x.data())==null?void 0:P.existingNote},J=function(){var y,E;
return!!D()&&!!vgu((y=D())==null?void 0:y.helpfulnessValue,(E=x.data())==null?void 0:E.noteData)};
if(S){var Z={};return _.M("yt-note-view-model",{class:_.gF("ytNoteViewModelHostUserRating",(Z.ytNoteViewModelHostUserRatingPublishedNote=function(){var y,E,P,v;return((y=x.data())==null?void 0:(E=y.noteData)==null?void 0:E.isPublished)&&!((P=x.data())==null?0:(v=P.noteData)==null?0:v.isUserRatingForm)},Z))},_.M("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.M("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.M(_.d,{cond:function(){var y,E;
return(y=x.data())==null?void 0:(E=y.noteData)==null?void 0:E.isPinned},
then:function(){return _.M(_.YO,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.M(_.d,{cond:function(){var y,E;return(y=x.data())==null?void 0:(E=y.noteData)==null?void 0:E.isPublished},
then:function(){return _.M(_.YO,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.M(_.Fj,{data:function(){var y;
return(y=x.data())==null?void 0:y.metadata}},{contentMetadataViewModel:_.lu}),_.M("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var y,E;
return(E=_.g((y=x.data())==null?void 0:y.metadata,_.KwR))==null?void 0:E.delimiter}),_.M(_.kP,{text:function(){var y;
return(y=Q())==null?void 0:y.publishedTimeText},
className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),_.M(_.d,{cond:function(){var y,E;return!((y=x.data())==null?0:(E=y.noteData)==null?0:E.isUserRatingForm)},
then:function(){return _.M(_.Fj,{data:function(){var y,E,P,v,V,h,H,k=!!((y=x.data())==null?0:(E=y.noteData)==null?0:E.isPinned);y=J();E=(P=x.data())==null?void 0:P.noteData;P=(v=L())==null?void 0:(V=v.contributorNote)==null?void 0:V.deleteAction;v=(h=x.data())==null?void 0:h.overflowButtonNoteWithRatingOnTapOverride;h=(H=x.data())==null?void 0:H.overflowButton;return k?VV9(E,P):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:v}}:h}},{buttonViewModel:function(y){return _.M(_.qP,{data:y.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})}})),_.M("div",{class:"ytNoteViewModelNoteContent"},_.M(_.kP,{text:function(){var y;
return(y=Q())==null?void 0:y.text}})),_.M(_.d,{cond:function(){var y,E,P,v;
return!((y=x.data())==null?0:(E=y.noteData)==null?0:E.isPinned)&&!((P=x.data())==null?0:(v=P.noteData)==null?0:v.isUserRatingForm)},
then:function(){return _.M(_.d,{cond:J,then:function(){return _.M("div",{class:"ytNoteViewModelUserRatingContainer"},_.M(_.kP,{text:function(){var y,E;return vgu((y=D())==null?void 0:y.helpfulnessValue,(E=x.data())==null?void 0:E.noteData)},
className:"ytNoteViewModelUserRatingContainerText"}))},
else:function(){return _.M(_.Fj,{data:function(){var y;return(y=x.data())==null?void 0:y.userRatingButton}},{buttonViewModel:function(y){return _.M(_.qP,{data:y.data,
className:"ytNoteViewModelRateThisNoteButton"})}})}})}}),_.M(_.d,{cond:function(){var y,E,P,v;
return!((y=x.data())==null?0:(E=y.noteData)==null?0:E.ignoreDivider)&&!((P=x.data())==null?0:(v=P.noteData)==null?0:v.isUserRatingForm)},
then:function(){return _.M("div",{class:"ytNoteViewModelDivider"},_.M(_.Fj,{data:function(){return{dividerViewModel:{dividerStyle:"DIVIDER_STYLE_FULL_BLEED_THIN"}}}},{dividerViewModel:function(y){return _.M(_.x2R,{data:y.data})}}))}}))}return _.M("yt-note-view-model",{class:"ytNoteViewModelHost",
style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.M("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.M("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.M(_.d,{cond:function(){var y,E;return(y=x.data())==null?void 0:(E=y.noteData)==null?void 0:E.isPinned},
then:function(){return _.M(_.YO,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})},
else:function(){return _.M(_.d,{cond:function(){var y,E;return(y=x.data())==null?void 0:(E=y.noteData)==null?void 0:E.isPublished},
then:function(){return _.M(_.YO,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),_.M(_.d,{cond:function(){return S},
then:function(){return _.M(_.Fj,{data:function(){var y;return(y=x.data())==null?void 0:y.metadata}},{contentMetadataViewModel:function(y){return _.M(_.lu,{data:y.data})}})}}),_.M(_.kP,{text:function(){var y,E;
return(y=x.data())==null?void 0:(E=y.noteData)==null?void 0:E.headerText}}),_.M("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},_.M(_.kP,{text:function(){var y,E;
return(y=x.data())==null?void 0:(E=y.noteData)==null?void 0:E.delimiter}})),_.M(_.kP,{text:function(){var y,E;
return(y=L())==null?void 0:(E=y.contributorNote)==null?void 0:E.publishedTimeText}})),_.M(_.Fj,{data:function(){var y,E,P;
return VV9((y=x.data())==null?void 0:y.noteData,(E=L())==null?void 0:(P=E.contributorNote)==null?void 0:P.deleteAction)}},{buttonViewModel:function(y){return _.M(_.qP,{data:y.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.M("div",{class:"ytNoteViewModelNoteContent"},_.M(_.kP,{text:function(){var y,E;
return(y=L())==null?void 0:(E=y.contributorNote)==null?void 0:E.text}})))},"Ih");
Wb.idomCompat=!0;_.dF(_.B(function(x){var L=_.ZH(function(){var l;return(l=x.data())==null?void 0:l.flowStateEntityKey},""),D=_.mF(_.LG,L),S=_.mF(jEl,_.ZH(function(){var l;
return(l=x.data())==null?void 0:l.noteFeedEntityKey},"")),Q=_.O(_.mU(function(){var l;
return(l=_.g(x.data().helpfulnessValue,_.KA))==null?void 0:l.defaultSelectedKey})),J=Q.next().value,Z=Q.next().value;
Q=_.O(_.mU(function(){var l,X,f;return(f=_.g((l=_.g(x.data().helpfulnessValue,_.KA))==null?void 0:(X=l.radioButtons)==null?void 0:X.find(function(N){var z;return((z=_.g(N,qh3))==null?void 0:z.key)===J()}),qh3))==null?void 0:f.value}));
var y=Q.next().value,E=Q.next().value,P=function(l,X){Z(X.key);E(X.value)},v=function(){var l,X;
return((l=y())==null?void 0:l.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_HELPFUL"||((X=y())==null?void 0:X.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"},V=function(){var l,X;
return((l=y())==null?void 0:l.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"||((X=y())==null?void 0:X.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_NOT_HELPFUL"};
Q=_.O(_.mU(function(){var l;return(l=_.g(x.data().helpfulReasons,WSI))==null?void 0:l.defaultSelectedKeys}));
var h=Q.next().value,H=Q.next().value,k=function(l){h3W(l.key,h,H)};
Q=_.O(_.mU(function(){var l;return(l=_.g(x.data().notHelpfulReasons,WSI))==null?void 0:l.defaultSelectedKeys}));
var T=Q.next().value,G=Q.next().value,U=function(l){h3W(l.key,T,G)};
_.wO(function(){var l,X,f;GUY((l=x.data())==null?void 0:(X=l.userRatingFormSchema)==null?void 0:X.id,{isValid:function(){return!!J()},
formData:function(){var N=y(),z=ugl(h(),_.g(x.data().helpfulReasons,WSI)),xf=ugl(T(),_.g(x.data().notHelpfulReasons,WSI));N={helpfulnessValue:N==null?void 0:N.noteHelpfulnessValue};if(z){N.helpfulReasons=[];z=_.O(z);for(var K3=z.next();!K3.done;K3=z.next()){K3=K3.value;var P4=void 0;if((P4=K3)==null?0:P4.noteHelpfulReason)P4=void 0,N.helpfulReasons.push((P4=K3)==null?void 0:P4.noteHelpfulReason)}}if(xf)for(N.notHelpfulReasons=[],xf=_.O(xf),z=xf.next();!z.done;z=xf.next())if(z=z.value,K3=void 0,(K3=
z)==null?0:K3.noteNotHelpfulReason)K3=void 0,N.notHelpfulReasons.push((K3=z)==null?void 0:K3.noteNotHelpfulReason);return{userRatingFormData:N}},
submitConfig:{submitId:"SUBMIT_ID_CROWDSOURCED_CONTEXT_USER_RATING_FORM",params:(f=_.g(D(),RFl))==null?void 0:f.submitFormParams},onSubmitResult:function(){var N,z=(N=_.g(D(),RFl))==null?void 0:N.userRatingEntityKey,xf;N={key:z,helpfulnessValue:(xf=y())==null?void 0:xf.noteHelpfulnessValue};z&&_.Ok(_.TR("contextNoteUserRatingEntityPayload",z,N));var K3;z=(K3=x.data())==null?void 0:K3.viewNoteFlowStepId;var P4;if((P4=S())==null||!P4.contributorNote){var kf;z=(kf=x.data())==null?void 0:kf.zeroStateFlowStepId}(K3=
Object.assign({},D()))&&z&&(K3.currentStepId=z,K3.stepIdStack=[z],_.Ok(_.TR("flowStateEntity",L(),K3)));K3=_.yY().resolve(_.E2);var H4;(P4=(H4=x.data())==null?void 0:H4.ratingSubmittedSnackbarCommand)&&K3&&K3.resolveCommand(P4)},
disableDuringSubmission:!0})});
return _.M("yt-note-user-rating-view-model",{class:"ytNoteUserRatingViewModelHost"},_.M(_.Fj,{data:function(){var l=_.g(D(),RFl);if(l){var X;var f={noteViewModel:{metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:l==null?void 0:(X=l.note)==null?void 0:X.headerText}]}],delimiter:"\u2022"}},existingNote:l.note,noteData:{isUserRatingForm:!0},noteFeedEntityKey:"",userRatingEntityKey:""}}}else f=void 0;return f}},{noteViewModel:function(l){return _.M("div",{class:"ytNoteUserRatingViewModelNoteContainer"},
_.M(Wb,{data:l.data}))}}),_.M(_.Fj,{data:function(){var l;
return(l=x.data())==null?void 0:l.helpfulnessValue}},{radioButtonGroupViewModel:function(l){return _.M("div",{class:"ytNoteUserRatingViewModelHelpfulnessValue"},_.M(_.uYq,{data:l.data,
onSelected:P,selectedKey:J}))}}),_.M(_.d,{cond:v,
then:function(){return _.M("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.M("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.M(_.kP,{text:function(){var l;return(l=x.data())==null?void 0:l.helpfulReasonQuestion}})),_.M(_.Fj,{data:function(){var l;
return(l=x.data())==null?void 0:l.helpfulReasons}},{checkboxGroupViewModel:function(l){return _.M(k0W,{data:l.data,
onItemTap:k,selectedKeys:h,controlledMode:!0})}}))}}),_.M(_.d,{cond:V,
then:function(){return _.M("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.M("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.M(_.kP,{text:function(){var l;return(l=x.data())==null?void 0:l.notHelpfulReasonQuestion}})),_.M(_.Fj,{data:function(){var l;
return(l=x.data())==null?void 0:l.notHelpfulReasons}},{checkboxGroupViewModel:function(l){return _.M(k0W,{data:l.data,
onItemTap:U,selectedKeys:T,controlledMode:!0})}}))}}),_.M(_.d,{cond:function(){return!v()&&!V()},
then:function(){return _.M(_.Fj,{data:function(){var l;return(l=x.data())==null?void 0:l.helpfulNoteFeatures}},{alertBannerViewModel:function(l){return _.M("div",{class:"ytNoteUserRatingViewModelAlertBanner"},_.M(_.OQi,{data:l.data}))}})}}))},"Jh"),"yt-note-user-rating-view-model",{props:{data:_.pJ}});_.dF(Wb,"yt-note-view-model",{props:{data:_.pJ}});_.dF(_.B(function(x){var L=_.mF(jEl,_.ZH(function(){var D;return(D=x.data())==null?void 0:D.noteFeedEntityKey},""));
return _.M("yt-notes-wrapper-view-model",{class:_.gF("ytNotesWrapperViewModelHost")},_.M(_.d,{cond:function(){var D,S,Q;return!((D=x.data())==null||!D.existingNotes)||!((S=x.data())==null||!S.currentNote)&&!((Q=L())==null||!Q.contributorNote)},
then:function(){return _.M(_.I1,null,_.M(_.Fj,{data:function(){var D,S,Q,J;return((S=_.g((D=x.data())==null?void 0:D.currentNote,GGq))==null?0:(Q=S.noteData)==null?0:Q.isPublished)?(J=x.data())==null?void 0:J.currentNote:void 0}},{noteViewModel:function(D){return _.M(Wb,{data:D.data})}}),_.M(_.Fj,{data:function(){var D;
return(D=x.data())==null?void 0:D.existingNotes}},{noteViewModel:function(D){var S=D.data;
return _.M(_.d,{cond:function(){var Q,J;return(Q=S())==null?void 0:(J=Q.noteData)==null?void 0:J.isPublished},
then:function(){return _.M(Wb,{data:S})}})}}),_.M(_.Fj,{data:function(){var D,S,Q,J;
return((S=_.g((D=x.data())==null?void 0:D.currentNote,GGq))==null?0:(Q=S.noteData)==null?0:Q.isPublished)?void 0:(J=x.data())==null?void 0:J.currentNote}},{noteViewModel:function(D){return _.M(Wb,{data:D.data})}}),_.M(_.Fj,{data:function(){var D;
return(D=x.data())==null?void 0:D.existingNotes}},{noteViewModel:function(D){var S=D.data;
return _.M(_.d,{cond:function(){var Q,J;return!((Q=S())==null?0:(J=Q.noteData)==null?0:J.isPublished)},
then:function(){return _.M(Wb,{data:S})}})}}))},
else:function(){return _.M(_.Fj,{data:function(){var D;return(D=x.data())==null?void 0:D.zeroStateData}},{contributorZeroStateViewModel:v7G})}}))},"Kh"),"yt-notes-wrapper-view-model",{props:{data:_.pJ}});var q5=_.B(function(x){var L=_.ym(x,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),D=L.label,S=L.text,Q=L.placeholder,J=L.hint;x=L.rows;var Z=L.overflowStyle,y=L.outline,E=L.disabled,P=L.disableNewLines,v=L.characterLimit,V=L.validation,h=L.onInput,H=_.x3("textarea");L=_.O(_.mU(function(){return S()}));
var k=L.next().value,T=L.next().value;L=_.O(_.HB(!1,void 0,"u9PDq"));var G=L.next().value,U=L.next().value,l=function(){U(!0)},X=function(){U(!1)};
_.wO(function(){var w0=H.value,Rn=Z(),lG=k();Rn==="expand-vertically"&&lG&&ggY(w0);H.value.addEventListener("focusin",l);H.value.addEventListener("focusout",X)});
_.wH(function(){H.value.removeEventListener("focusin",l);H.value.removeEventListener("focusout",X)});
var f=function(){var w0;return(w0=V())==null?void 0:w0.validate(k())},N=function(){return v()&&!f()&&k().length>v().maxChars},z=function(){return!!f()||N()};
L=_.kO(function(w0){if(!w0.currentTarget)return!1;w0=w0.currentTarget;T(w0.value);Z()==="expand-vertically"&&ggY(w0);h==null||h(w0.value);return!0});
var xf=_.kO(function(w0){P()&&w0.key==="Enter"&&w0.preventDefault();return!1}),K3=_.kO(function(){H.value.focus()}),P4=function(){return Q()||D()},kf={},H4={},p3={};
return _.M("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.M("div",{class:_.gF("ytStandardsTextareaShapeTextareaContainer",(kf.ytStandardsTextareaShapeTextareaContainerOutline=y,kf.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=E,kf.ytStandardsTextareaShapeTextareaContainerOutlineError=z,kf)),"on:click":K3},_.M("label",{class:_.gF("ytStandardsTextareaShapeLabel",(H4.ytStandardsTextareaShapeLabelFocused=G,H4.ytStandardsTextareaShapeLabelDisabled=E,H4.ytStandardsTextareaShapeLabelError=
function(){return z()&&!E()},H4.ytStandardsTextareaShapeLabelHidden=function(){return!G()&&!k()&&!!P4()},H4))},D),_.M("div",{class:_.gF("ytStandardsTextareaShapePlaceholder",(p3.ytStandardsTextareaShapePlaceholderVisible=function(){return!G()&&!k()},p3)),
"aria-hidden":"true"},P4),_.M("textarea",{el:H,class:"ytStandardsTextareaShapeTextarea",rows:x,disabled:E,placeholder:P4,"on:input":L,"on:keydown":xf},k)),_.M(_.d,{cond:function(){return J()&&!z()},
then:function(){var w0={};return _.M("div",{class:_.gF("ytStandardsTextareaShapeHint",(w0.ytStandardsTextareaShapeHintDisabled=E,w0))},_.M("div",{class:"ytStandardsTextareaShapeHintHintMessage"},J))}}),_.M(_.d,{cond:f,
then:function(){return _.M(poq,{disabled:E},_.M("div",{class:"ytStandardsTextareaShapeErrorMessage"},f))}}),_.M(_.d,{cond:v,
then:function(w0){return _.M(_.d,{cond:N,then:function(){return _.M(poq,{disabled:E},_.M("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return w0().errorMessage}),_.M("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return k().length+"/"+w0().maxChars}))}})}}))},"Lh");
q5.idomCompat={callbacks:{onInput:!0}};var poq=_.B(function(x){var L={};return _.M("div",{class:_.gF("ytStandardsTextareaShapeError",(L.ytStandardsTextareaShapeErrorDisabled=x.disabled,L)),role:"alert"},_.M(_.YO,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),x.children)},"Mh");_.muI=_.B(function(x){var L=x.data;return _.M("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.M(q5,{text:x.text,label:function(){var D;return(D=L().contentProperties)==null?void 0:D.labelText},
placeholder:function(){var D;return(D=L().contentProperties)==null?void 0:D.placeholderText},
hint:function(){var D;return(D=L().contentProperties)==null?void 0:D.hintText},
outline:function(){var D;return!((D=L().displayProperties)==null?0:D.hideBorder)},
overflowStyle:function(){var D;return((D=L().displayProperties)==null?0:D.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:x.disabled,disableNewLines:function(){var D;return(D=L().displayProperties)==null?void 0:D.disableNewLines},
onInput:x.onInput,characterLimit:x.characterLimit,validation:x.validation,rows:function(){var D;return(D=L().displayProperties)==null?void 0:D.rows}}))},"Nh");_.bL3=_.B(function(x){var L=x.data;return _.M("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.M(q5,{text:x.text,label:function(){var D;return(D=L().contentProperties)==null?void 0:D.labelText},
placeholder:function(){var D;return(D=L().contentProperties)==null?void 0:D.placeholderText},
hint:function(){var D;return(D=L().contentProperties)==null?void 0:D.hintText},
outline:function(){var D;return!((D=L().displayProperties)==null?0:D.hideBorder)},
overflowStyle:function(){var D;return((D=L().displayProperties)==null?0:D.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var D;return(D=L().displayProperties)==null?void 0:D.disableNewLines},
onInput:x.onInput,characterLimit:x.characterLimit,validation:x.validation,rows:function(){var D;return(D=L().displayProperties)==null?void 0:D.rows}}))},"Oh");var YKW=_.B(function(x){var L=_.O(_.mU(function(){var P4,kf;return((P4=x.data().structuredContextNoteFormSchema)==null?0:(kf=P4.initialValues)==null?0:kf.noteBody)?x.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),D=L.next().value,S=L.next().value;
L=_.O(_.mU(function(){x.data();return!1}));
var Q=L.next().value,J=L.next().value;L=_.O(_.mU(function(){x.data();return!1}));
var Z=L.next().value,y=L.next().value;L=_.O(_.mU(function(){var P4,kf;return((P4=x.data().structuredContextNoteFormSchema)==null?0:(kf=P4.initialValues)==null?0:kf.timestamp)?x.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var E=L.next().value,P=L.next().value;L=_.O(_.mU(function(){x.data();return!1}));
var v=L.next().value,V=L.next().value;L=_.O(_.mU(function(){var P4,kf;return((P4=x.data().structuredContextNoteFormSchema)==null?0:(kf=P4.initialValues)==null?0:kf.sources)?[x.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var h=L.next().value,H=L.next().value;L=_.O(_.mU(function(){x.data();return!1}));
var k=L.next().value,T=L.next().value;L=_.O(_.mU(function(){return!1}));
var G=L.next().value,U=L.next().value;_.wO(function(){var P4;_.CjX((P4=x.data().structuredContextNoteFormSchema)==null?void 0:P4.id,{isSubmitting:G,onSubmit:function(){U(!0);var kf=e3$(D(),E(),h(),x.data()),H4=_.yY().resolve(_.E2);kf&&H4&&H4.resolveCommand(kf,{commandController:{onSuccess:function(){U(!1)}}})},
isValid:function(){return Q()&&!Z()&&!v()&&!k()}})});
var l=function(P4){if(P4!==void 0&&(S(P4),!Q()&&P4.length>0&&J(!0),Q())){var kf=mg9(x.data());if(kf){var H4=kf.minLength;kf=kf.maxLength;H4&&P4.length<H4?y(!0):kf&&P4.length>kf?y(!0):y(!1)}}},X=function(P4){if(P4!==void 0){P(P4);
if(P4.length>0){var kf,H4,p3,w0,Rn=YDs((kf=x.data())==null?void 0:(H4=kf.structuredContextNoteFormSchema)==null?void 0:(p3=H4.fieldSchemas)==null?void 0:(w0=p3.timestamp)==null?void 0:w0.validationSchema);if(Rn&&(kf=Rn.regex)&&!(new RegExp(kf)).test(P4)){V(!0);return}}V(!1)}},f=function(P4){if(P4!==void 0){var kf=P4.split(/[ \n]/).map(function(H4){return H4.trim()});
H(kf);if(P4.length>0)for(P4=_.O(kf),kf=P4.next();!kf.done;kf=P4.next())if(!Tt5(kf.value)){T(!0);return}T(!1)}},N=function(){return{validate:function(P4){if(Q()){var kf=mg9(x.data());
if(kf){var H4=kf.minLength;kf=kf.translations;if(H4&&P4.length<H4)return kf==null?void 0:kf.minLengthErrorMessage}}}}},z=function(){var P4=mg9(x.data()),kf=P4==null?void 0:P4.maxLength,H4;
P4=P4==null?void 0:(H4=P4.translations)==null?void 0:H4.maxLengthErrorMessage;if(kf&&P4)return{maxChars:kf,errorMessage:P4}},xf=function(){return{validate:function(P4){if(P4){var kf,H4,p3,w0,Rn=YDs((kf=x.data())==null?void 0:(H4=kf.structuredContextNoteFormSchema)==null?void 0:(p3=H4.fieldSchemas)==null?void 0:(w0=p3.timestamp)==null?void 0:w0.validationSchema);
if(Rn&&(kf=Rn.regex,Rn=Rn.translations,kf&&!(new RegExp(kf)).test(P4)))return Rn==null?void 0:Rn.regexErrorMessage}}}},K3=function(){return{validate:function(P4){if(P4){var kf,H4,p3,w0,Rn=sEs((kf=x.data())==null?void 0:(H4=kf.structuredContextNoteFormSchema)==null?void 0:(p3=H4.fieldSchemas)==null?void 0:(w0=p3.sources)==null?void 0:w0.validationSchema);
if(Rn&&(kf=Rn.translations,kf==null?0:kf.selectedErrorMessage))for(P4=P4.split(/[ \n]/).map(function(lG){return lG.trim()}),P4=_.O(P4),H4=P4.next();!H4.done;H4=P4.next())if(!Tt5(H4.value))return P4=void 0,(P4=kf)==null?void 0:P4.selectedErrorMessage}}}};
return _.M("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.M("div",{class:"ytStructuredContextNoteViewModelTextField"},_.M(_.Fj,{data:function(){var P4;return(P4=x.data())==null?void 0:P4.noteContents}},{textFormFieldViewModel:function(P4){return _.M(_.bL3,{data:P4.data,
onInput:l,validation:N,characterLimit:z})},
textFieldViewModel:function(P4){return _.M(_.muI,{data:P4.data,onInput:l,validation:N,characterLimit:z})}})),_.M("div",{class:"ytStructuredContextNoteViewModelTextField"},_.M(_.Fj,{data:function(){var P4;
return(P4=x.data())==null?void 0:P4.noteTimestamp}},{textFormFieldViewModel:function(P4){return _.M(_.bL3,{data:P4.data,
onInput:X,validation:xf})},
textFieldViewModel:function(P4){return _.M(_.muI,{data:P4.data,onInput:X,validation:xf})}})),_.M("div",{class:"ytStructuredContextNoteViewModelTextField"},_.M(_.Fj,{data:function(){var P4;
return(P4=x.data())==null?void 0:P4.noteSources}},{textFormFieldViewModel:function(P4){return _.M(_.bL3,{data:P4.data,
onInput:f,validation:K3})},
textFieldViewModel:function(P4){return _.M(_.muI,{data:P4.data,onInput:f,validation:K3})}})))},"Ph");
YKW.idomCompat=!0;_.dF(YKW,"yt-structured-context-note-view-model",{props:{data:_.pJ}});var Fz$=_.B(function(x){var L=_.O(_.mU(function(){var J;if((J=x.controlled)==null?0:J.call(x))return[];var Z;return(((Z=x.data())==null?void 0:Z.chips)||[]).map(function(y){y=_.g(y,_.P5);if(y==null?0:y.selected)return R3g(y.chipValue)}).filter(function(y){return y!==void 0})})),D=L.next().value,S=L.next().value,Q=function(J){var Z=R3g(J.chipValue);
if(Z!==void 0){var y;if((y=x.controlled)==null?0:y.call(x))return void x.controlled().onTap(Z);J=D().includes(Z)?[].concat(_.lP(D().filter(function(P){return P!==Z}))):[].concat(_.lP(D()),[Z]);
S(J);var E;if((E=x.uncontrolled)==null?0:E.call(x))x.uncontrolled().onUpdate(J)}};
return _.M("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.M(_.R1,{each:function(){return x.data().chips||[]}},function(J){return _.M("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.M(_.n_Q,{data:function(){return _.g(J,_.P5)},
selected:function(){var Z;if(Z=_.g(J,_.P5)){var y=R3g(Z.chipValue);if(y!==void 0){var E;Z=((E=x.controlled)==null?0:E.call(x))?x.controlled().selectedValues.includes(y):D().includes(y)}else Z=void 0}else Z=!1;return Z},
callback:Q}))}))},"Qh");var scW=_.B(function(x){var L=x.data;var D=function(){var y;return((y=L())==null?void 0:y.flowStateKey)||""},S=_.mF(_.LG,D),Q=function(){var y;
return(y=_.g(S(),CY5))==null?void 0:y.chips},J=function(y){if(y!==void 0){var E=Q()||[];
E=E.find(function(P){return P===y})?E.filter(function(P){return P!==y}):[].concat(_.lP(E),[y]);
E=Object.assign({},S(),{feedbackFormFlowState:Object.assign({},_.g(S(),CY5),{chips:E})});_.Ok(_.TR("flowStateEntity",D(),E))}},Z=function(){var y;
return _.g((y=L())==null?void 0:y.inputBox,l8l)};
x=_.lW(function(y){var E=Z();E=!(E==null?0:E.maxChars)||y.length<=E.maxChars;y=Object.assign({},S(),{feedbackFormFlowState:Object.assign({},_.g(S(),CY5),{detail:y}),abuseReportFlowState:Object.assign({},_.g(S(),JX),{navigationEnabled:E})});_.Ok(_.TR("flowStateEntity",D(),y))},150);
return _.M("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.M("div",{class:"ytFeedbackFormViewModelChips"},_.M(_.Fj,{data:function(){var y;return(y=L())==null?void 0:y.chipSelection}},{chipSelectionFormFieldViewModel:function(y){return _.M(Fz$,{data:y.data,
controlled:function(){return{selectedValues:Q()||[],onTap:J}}})}})),_.M("div",{class:"ytFeedbackFormViewModelInputBox"},_.M(q5,{text:function(){var y;
return(y=_.g(S(),CY5))==null?void 0:y.detail},
placeholder:function(){var y;return((y=Z())==null?void 0:y.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var y=Z();if(y&&y.maxChars)return{maxChars:y.maxChars,errorMessage:y.maxCharsExceededErrorMessage||""}},
onInput:x})),_.M("div",{class:"ytFeedbackFormViewModelFooterText"},_.M(_.kP,{text:function(){return L().footerText}})))},"Rh");
scW.idomCompat=!0;_.dF(scW,"yt-feedback-form-view-model",{props:{data:_.pJ}});var Tru=_.B(function(x){var L=x.data;var D=_.mF(ehq,function(){return L().flowStateKey||""}),S=function(){var Q;
_.Xf((Q=_.g(D(),JX))==null?void 0:Q.navigationCommand)};
return _.M("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.M("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.M(_.Fj,{data:function(){return L().cancelButton}},{buttonViewModel:function(Q){return _.M(_.qP,{data:Q.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:S})}}),_.M(_.Fj,{data:function(){var Q;
if(L().navButton){var J=Object;var Z=J.assign,y=_.g(L().navButton,_.de),E=((Q=_.g(D(),JX))==null?0:Q.navigationEnabled)?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",P,v;Q=_.g((P=_.g(D(),JX))==null?void 0:P.navigationCommand,_.ii);P=(v=_.g(Q,_.oR))==null?void 0:v.url;J={buttonViewModel:Z.call(J,{},y,{state:E,iconName:P?"OPEN_IN_NEW":""})}}else J=void 0;return J}},{buttonViewModel:function(Q){return _.M(_.qP,{data:Q.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:S})}})))},"Sh");
Tru.idomCompat=!0;_.dF(Tru,"yt-report-form-bottom-bar-view-model",{props:{data:_.pJ}});var e5I=_.B(function(x){var L=x.nextStep;return _.M("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.M("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.M(_.YO,{icon:function(){return L().iconName||""}})),_.M("div",null,_.M(_.kP,{text:function(){return L().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"Th"),R5W=_.B(function(x){var L=x.data;
var D,S=(D=_.yY().resolve(_.ZN(_.Dt)))==null?void 0:D(),Q=_.mF(_.LG,function(){return L().flowStateKey||""});
return _.M("yt-report-form-confirmation-page-view-model",{class:function(){var J;return((J=_.g(Q(),JX))==null?void 0:J.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.M("div",{class:function(){var J;
return((J=_.g(Q(),JX))==null?void 0:J.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.M(_.Ku,{data:function(){return S&&L().imageDark?L().imageDark:L().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.M("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.M("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return L().confirmationHeader}),_.M("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.M(_.kP,{text:function(){return L().confirmationText}})),_.M("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.M(_.kP,{text:function(){return L().lawEnforcementText}})),
_.M("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return L().whatToExpectHeader}),_.M(_.d,{cond:function(){return L().nextSteps},
then:function(J){return _.M("div",null,_.M(_.R1,{each:J},function(Z){return _.M(e5I,{nextStep:Z})}))}}),_.M(_.d,{cond:function(){return L().legalReportText},
then:function(J){return _.M("div",null,_.M(_.kP,{text:J,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"Uh");
R5W.idomCompat=!0;_.dF(R5W,"yt-report-form-confirmation-page-view-model",{props:{data:_.pJ}});var G0W=_.B(function(x){var L=x.data;var D=function(){var J;return((J=_.g(L().inputBox,l8l))==null?void 0:J.maxChars)||500},S=function(){return L().flowStateKey||""},Q=_.mF(_.LG,S);
x=_.lW(function(J){J=Object.assign({},Q(),{flowFormState:{isValid:J.length<=D()},abuseReportFlowState:{userComments:J,navigationEnabled:!(J.length>D()),isReportFormDirty:!0}});_.KI().dispatch(_.B2("flowStateEntity",S(),J))},150);
_.wO(function(){var J=Object.assign({},Q(),{flowFormState:{isValid:!0}});_.KI().dispatch(_.B2("flowStateEntity",S(),J))});
return _.M("yt-report-form-details-page-view-model",{class:function(){var J;return((J=_.g(Q(),JX))==null?void 0:J.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.M("h1",{class:function(){var J;
return((J=_.g(Q(),JX))==null?void 0:J.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return L().detailsPageHeader}),_.M("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.M(_.kP,{text:function(){return L().bodyText}})),_.M("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.M(q5,{label:function(){var J;
return((J=_.g(L().inputBox,l8l))==null?void 0:J.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var J;return{errorMessage:((J=_.g(L().inputBox,l8l))==null?void 0:J.maxCharsExceededErrorMessage)||"",maxChars:D()}},
onInput:x})))},"Vh");
G0W.idomCompat=!0;_.dF(G0W,"yt-report-form-details-page-view-model",{props:{data:_.pJ}});var Czs=_.B(function(x){var L=x.data;var D=function(){return L().flowStateKey||""},S=_.mF(_.LG,D),Q=function(){return _.g(S(),JX)};
return _.M("yt-report-form-reason-select-page-view-model",{class:function(){var J;return((J=Q())==null?void 0:J.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.M("h1",{class:function(){var J;
return((J=Q())==null?void 0:J.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return L().pageHeader}),_.M("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.M(_.kP,{text:function(){return L().bodyText}})),_.M("div",{class:function(){var J;
return((J=Q())==null?void 0:J.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.M(_.uYq,{data:function(){return _.g(L().radioButtonGroup,_.KA)},
onSelected:function(J,Z){J=Object.assign({},S(),{abuseReportFlowState:Object.assign({},Q(),{reasonKey:Z.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:Z.command})});_.Ok(_.TR("flowStateEntity",D(),J))},
selectedKey:function(){var J;return(J=Q())==null?void 0:J.reasonKey},
groupName:"report-form-reason-select-page"})))},"Wh");
Czs.idomCompat=!0;_.dF(Czs,"yt-report-form-reason-select-page-view-model",{props:{data:_.pJ}});var lRI=_.B(function(x){var L=x.data;var D,S=(D=_.yY().resolve(_.ZN(_.Dt)))==null?void 0:D();return _.M("yt-report-form-sign-in-page-view-model",{class:"ytReportFormSignInPageViewModelHost"},_.M("div",{class:"ytReportFormSignInPageViewModelSignInPromptImage"},_.M(_.Ku,{data:function(){return S&&L().imageDark?L().imageDark:L().image},
alt:""})),_.M("div",{class:"ytReportFormSignInPageViewModelSignInTextContent"},_.M("h1",{class:"ytReportFormSignInPageViewModelSignInPromptHeader"},function(){return L().header}),_.M(_.kP,{text:function(){return L().text},
className:"ytReportFormSignInPageViewModelSignInPromptBody"})))},"Xh");
lRI.idomCompat=!0;_.dF(lRI,"yt-report-form-sign-in-page-view-model",{props:{data:_.pJ}});_.Uu9=(0,_.zF5)(_.ZW.talkToRecs,{talkToRecsStateSelector:function(x){return x}});_.dF(_.B(function(x){var L=x.data;var D=_.ic(_.Uu9.talkToRecsStateSelector),S=function(){return L().titleSuperscript},Q=function(){return L().answersShelf},J=function(){return L().videoShelf},Z=function(){var K3;
return(K3=L().textInputPlaceholder)==null?void 0:K3.content},y=function(){return L().showOpenTextInput},E=function(){var K3;
return(K3=L().textInputValue)==null?void 0:K3.content},P=function(){return L().isMultiTurnFlow?L().resetButtonViewModel:void 0},v="",V=function(){return L().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_ALLOW_DESELECTION"?2:1};
x=_.O(_.HB("",void 0,"d5Wa4d"));var h=x.next().value,H=x.next().value;x=_.O(_.HB(!1,void 0,"aIzK3e"));var k=x.next().value,T=x.next().value,G=function(){return{state:k()||h()?"active":"disabled",disabled:!(k()||h())}};
_.UX(function(){if(y()){E()&&H(E());var K3;if(!P()&&((K3=D())==null?0:K3.stepStates)){var P4;K3=Object.keys((P4=D())==null?void 0:P4.stepStates);P4=K3[K3.length-1];var kf,H4;(P4=(kf=D().stepStates[P4])==null?void 0:(H4=kf.userQuery)==null?void 0:H4.userQuery)&&H(P4);_.Ok(eFG())}}});
_.wH(function(){_.Ok(eFG())});
var U=function(K3){var P4=L().onUpdateText;P4&&_.Xf(P4,{form:{userQuery:K3}});H(K3)},l=_.lW(function(K3){U(K3.target.value.trim())},150),X=_.kO(function(K3){var P4;
v=(P4=K3.target.value)==null?void 0:P4.trim();l(K3);return!1}),f=_.kO(function(K3){K3.key==="Enter"&&(k()||h())&&(U(K3.target.value.trim()),z());
return!1}),N=function(K3,P4){T(P4);
if(P4){if(L().isMultiTurnFlow&&!v){var kf;U((kf=K3==null?void 0:K3.text)!=null?kf:"")}L().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_CLICK_TO_SUBMIT"&&z()}else H(v)},z=function(){var K3=void 0,P4=_.g(L().nextButtonViewModel,_.de),kf,H4;
if(P4==null?0:(kf=P4.loggingDirectives)==null?0:(H4=kf.clientVeSpec)==null?0:H4.uiType){var p3,w0;K3=_.VC((p3=P4.loggingDirectives)==null?void 0:(w0=p3.clientVeSpec)==null?void 0:w0.uiType)}(P4=L().onNextStepCommand)&&_.Xf(P4,{clickedVisualElement:K3})};
x=_.x3("yt-talk-to-recs-view-model");var xf={};return _.M("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:x},_.M("div",{class:"ytwTalkToRecsTopCornerButton","aria-label":"More options"},_.M(_.Fj,{data:function(){return L().topCornerButton}},{buttonViewModel:_.qP})),_.M("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.M("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.M(_.kP,{text:function(){return L().title}}),_.M(_.d,{cond:S,
then:function(){return _.M("sup",{class:"ytwTalkToRecsSuperScript"},_.M(_.kP,{text:S}))}})),_.M("div",{class:"ytwTalkToRecsSubtitle"},_.M(_.kP,{text:function(){return L().subtitle}})),_.M("div",{class:"ytwTalkToRecsResultsShelf"},_.M(_.d,{cond:Q,
then:function(){return _.M(_.Fj,{data:Q},{chipsShelfViewModel:function(K3){return _.M("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.M(_.Zy,{data:K3.data,callback:N,selectionBehavior:V}))}})}}),_.M(_.d,{cond:J,
then:function(){return _.M(_.Fj,{data:J},{horizontalShelfViewModel:function(K3){return _.M("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},_.M(_.MG,{data:K3.data,thumbnailAspectRatio:0}))}})}})),_.M("div",{class:_.gF("ytwTalkToRecsRefinementContainer",(xf.ytwTalkToRecsBottomMargin=function(){return L().isMultiTurnFlow},xf))},_.M(_.d,{cond:y,
then:function(){return _.M("div",{class:"ytwTalkToRecsUserInputBox"},_.M("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:Z,value:h,"on:input":X,"on:keyup":f,maxlength:200}))}}),_.M(_.Fj,{data:function(){return L().isMultiTurnFlow?L().nextButtonViewModel:void 0}},{buttonViewModel:function(K3){return _.M("div",{class:"ytwTalkToRecsFlowControlButtons"},_.M(_.qP,{data:K3.data,
buttonOverrides:G}))}}),_.M(_.Fj,{data:P},{buttonViewModel:function(K3){return _.M("div",{class:"ytwTalkToRecsFlowControlButtons"},_.M(_.qP,{data:K3.data,
onClick:function(){var P4=_.g(L().resetButtonViewModel,_.de);U(h());(P4=P4==null?void 0:P4.onTap)&&_.Xf(P4)}}))}}))))},"Zh"),"yt-talk-to-recs-view-model",{props:{data:_.pJ}});var G3I={sources:[{clientResource:{imageName:"CHECK"}}]};_.wo$=_.B(function(x){var L=_.x3("div");x=_.ym(x,{error:void 0});var D=x.data,S=x.error,Q=x.onSelected;x=_.O(_.mU(function(){return UgX(D())}));
var J=x.next().value,Z=x.next().value;qD3(D,function(h){Z(h);var H,k,T=lAl((H=D().options)==null?void 0:(k=H[h])==null?void 0:k.value,D().type);Q==null||Q(T);L.value.focus()});
x=_.kO(function(){if(!D().disabled){var h=D(),H=J(),k=L.value;h.options&&(h=C7l(h.options,H,h.label),_.yY().resolve(_.SE).openSheet({viewModel:h},k))}});
var y=_.Fph(),E=function(){return!!S()},P=function(){return!!D().disabled},v={},V={};
return _.M("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.M("div",{class:_.gF("ytDropdownViewModelDropdownContainer",(v.ytDropdownViewModelDropdownContainerErrorBorder=E,v.ytDropdownViewModelDropdownContainerDisabled=P,v)),"on:click":x,el:L,role:"combobox",tabindex:0,"on:keydown":y,"aria-invalid":E,"aria-disabled":P,"aria-describedby":function(){return E()?"dropdown-view-model-error":void 0}},_.M("div",{class:"ytDropdownViewModelText"},wWW(D,E,J),Btq(D,J)),_.M("div",{class:_.gF("ytDropdownViewModelChevronDown",
(V.ytDropdownViewModelChevronDownDisabled=P,V))},_.M(_.YO,{icon:"CHEVRON_DOWN"}))),WNG(D,S))},"$h");_.dF(_.B(function(x){var L=x.data;var D=function(Q){var J=$gI(L());J.videoMetadata||(J.videoMetadata={});J.videoMetadata.sponsorshipsMetadata||(J.videoMetadata.sponsorshipsMetadata={});J.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(Q)},S=function(Q){var J=$gI(L());
J.scheduledRedirectMetadata||(J.scheduledRedirectMetadata={});J.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(Q)};
return _.M("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.M("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.M("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.M(_.kP,{text:function(){return L().title}}),_.M(_.YO,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.M(_.kP,{text:function(){return L().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.M(_.Fj,{data:function(){return L().tierChoices}},{dropdownViewModel:function(Q){return _.M("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.M(_.wo$,{data:Q.data,
onSelected:D}))}}),_.M(_.Fj,{data:function(){return L().startTimeChoices}},{dropdownViewModel:function(Q){return _.M("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.M(_.wo$,{data:Q.data,
onSelected:S}))}}),_.M(_.kP,{text:function(){return L().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.M("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.M(_.Fj,{data:function(){return L().scheduleButton}},{panelFooterViewModel:_.Bb})))},"ai"),"ytfz-schedule-fanzone-view-model",{props:{data:_.pJ}});_.dF(_.B(function(x){var L=x.data;x=x.className===void 0?"":x.className;var D=_.mF(ehq,function(){return L().flowStateEntityKey||""}),S={};
S=_.gF("ytFlowBottomBarViewModelFlowBottomBarButtons",(S.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return L().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||L().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},S));
var Q={},J=_.gF("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",S,(Q.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return L().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},Q.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return L().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},Q));
Q={};var Z=_.gF("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",S,(Q.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return L().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},Q.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return L().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},Q));
S={};S=_.gF("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(S.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return L().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},S.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return L().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},S.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return L().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
S));
x=_.gF("ytFlowBottomBarViewModelHost",x);return _.M("yt-flow-bottom-bar-view-model",{class:x},_.M(_.d,{cond:function(){var y;return(y=L())==null?void 0:y.textSection},
then:function(y){return _.M("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.M(_.kP,{text:y}))}}),_.M("div",{class:S},_.M(_.Fj,{data:function(){return L().secondaryButton}},{buttonViewModel:function(y){return _.M(_.qP,{data:y.data,
className:Z})}}),_.M(_.Fj,{data:function(){return L().primaryButton}},{buttonViewModel:function(y){return _.M(_.qP,{data:y.data,
className:J,buttonOverrides:function(){var E;return{disabled:!((E=D())==null||!E.primaryButtonDisabled)}}})}})))},"bi"),"yt-flow-bottom-bar-view-model",{props:{data:_.pJ,
className:_.Il}});var Br9="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),AX=function(){var x=_.e.apply(this,arguments)||this;x.enableScrollingFix=!0;x.bottomBar=!1;x.fitContent=!1;return x};
_.p(AX,_.e);_.K=AX.prototype;_.K.ready=function(){_.u("enable_pdp_icon_prefetch")&&_.sRG(_.yY().resolve(_.Jt),0,Br9)};
_.K.focus=function(x){this.topBar?_.xZ(this.topBar,x):this.paperDialog.focus(x)};
_.K.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$19173_scroller&&(this.JSC$19173_scroller.dialogElement=this.paperDialog,this.JSC$19173_scroller.attached&&typeof this.JSC$19173_scroller.attached==="function"&&this.JSC$19173_scroller.attached())};
_.K.onDataChanged=function(){var x;this.fitContent=!((x=this.data)==null||!x.fitContent);var L;this.bottomBar=!((L=this.data)==null||!L.bottomBar)};
_.K.onProgressChanged=function(){var x,L,D=((L=(x=this.data)==null?void 0:x.progress)!=null?L:0)*100;this.progressElement.style.width=D+"%"};
_.K.isProgressHidden=function(){var x;return!((x=this.data)==null?0:x.progress)};
_.K.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(x){return x&&!x.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
AX.prototype.onProgressChanged=AX.prototype.onProgressChanged;AX.prototype.onDataChanged=AX.prototype.onDataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],AX.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],AX.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],AX.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],AX.prototype,"enableScrollingFix",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],AX.prototype,"bottomBar",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],AX.prototype,"fitContent",void 0);_.A([_.F1("#progress"),_.r("design:type",HTMLElement)],AX.prototype,"progressElement",void 0);_.A([_.F1("#scroller"),_.r("design:type",Object)],AX.prototype,"JSC$19173_scroller",void 0);_.A([_.F1("ytd-flow-top-bar-renderer"),_.r("design:type",HTMLElement)],AX.prototype,"topBar",void 0);
_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],AX.prototype,"onDataChanged",null);_.A([_.bN("data.progress"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],AX.prototype,"onProgressChanged",null);_.A([_.w({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],AX);
_.q(AX,"ytd-flow-step-renderer",function(){if(Pvl!==void 0)return Pvl;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Pvl=x},{mode:1});var $k=function(x){this.resolveCommand=x;this.steps={}},Wzg=function(x,L){L=_.O(L||[]);
for(var D=L.next();!D.done;D=L.next()){D=D.value;var S=Object.values(D)[0],Q=void 0;if((Q=S)==null?0:Q.stepId)x.steps[S.stepId]=D}},A3W=function(x,L){var D,S,Q,J,Z;
return _.I(function(y){if((D=x.state)==null||!D.currentStepId)return y.return(void 0);S=x.getCurrentStep();if(!S)return y.return(qKu(x));if(Q=_.g(S,_.zd))x.logVEScreen(Q),((J=Q)==null?0:J.onStepStartCommand)&&x.resolveCommand((Z=Q)==null?void 0:Z.onStepStartCommand,{});Q&&L&&(x.logFlowEvent(Q,L),L.steps&&!L.steps.includes(S)&&L.steps.push(S));return y.return(S)})};
$k.prototype.back=function(){var x;(x=this.state)!=null&&x.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
$k.prototype.handleUpdateFlowCommand=function(x){x.steps&&Wzg(this,x.steps);x.entityUpdateCommand&&this.resolveCommand(x.entityUpdateCommand,{});x.flowContinuationCommand&&(x=x.flowContinuationCommand)&&(this.getFlowContinuationCommand=x);this.awaitFlowContinuation&&(x=this.getCurrentStep(),this.awaitFlowContinuation(x),this.awaitFlowContinuation=void 0)};
$k.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var qKu=function(x){return _.I(function(L){return x.getFlowContinuationCommand?L.return(new Promise(function(D){x.awaitFlowContinuation=D;x.getFlowContinuationCommand&&x.resolveCommand(x.getFlowContinuationCommand,{flow_state:x.state})})):L.return(Promise.resolve(void 0))})};
$k.prototype.getCurrentStep=function(){var x;if((x=this.state)!=null&&x.currentStepId)return this.steps[this.state.currentStepId]};
$k.prototype.logVEScreen=function(x){var L;((L=x.screenLoggingData)==null?0:L.screenVeType)&&_.we(_.sk(),x.screenLoggingData.screenVeType)};
$k.prototype.logFlowEvent=function(x,L){var D,S,Q,J;((D=L.flowLoggingData)==null?0:D.eventNamespace)&&((S=x.flowEventData)==null?0:S.eventType)&&((Q=x.flowEventData)==null?0:Q.eventMetadata)&&((J=L.flowLoggingData)==null?0:J.flowType)&&(x=_.u1(L.flowLoggingData.eventNamespace,x.flowEventData.eventType,x.flowEventData.eventMetadata),_.gY().logFlowEvent(x,L.flowLoggingData.flowType))};
_.J3.Object.defineProperties($k.prototype,{currentStepId:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.state)==null?void 0:x.currentStepId}},
nextStepIdOverride:{configurable:!0,enumerable:!0,get:function(){var x;if((x=this.state)!=null&&x.nextStepIdOverride)return this.state.nextStepIdOverride.reduce(function(L,D){D.key&&D.value&&(L[D.key]=D.value);return L},{})}}});var ra=function(){var x=_.e.apply(this,arguments)||this;x.flowState=_.u("web_use_flow_state_manager")?void 0:new $k(function(L,D){D=D===void 0?{}:D;_.pI.instance.resolveCommand(L,{form:{form:D,element:x.hostElement}})});
x.JSC$19184_flowStateManager=_.u("web_use_flow_state_manager")?_.yY().resolve(_.WQ):void 0;x.currentTargetId="";x.initialState=!0;x.isLoading=!1;x.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"};x.containsTalkToRecs=!1;return x};
_.p(ra,_.e);_.K=ra.prototype;_.K.onPopupClosed=function(x){if(!x||this.hostElement===x.detail.popupRenderer){if(this.JSC$19184_flowStateManager){var L;((L=this.data)==null?0:L.flowStateEntityKey)&&this.JSC$19184_flowStateManager.flowStates.delete(this.data.flowStateEntityKey);this.currentTargetId=""}else this.flowState&&this.flowState.reset();this.currentFlowStep=this.data=void 0;this.initialState=!0}};
_.K.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"}}}};
_.K.focus=function(x){var L=this;_.xi(function(){var D=_.jr(L.hostElement).querySelector("ytd-flow-step-renderer");(D==null?0:D.topBar)?D.focus(x):L.topBar&&_.xZ(L.topBar,x)},1)};
_.K.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.K.computeTopBarHidden=function(x){var L;return!((L=_.g(x,_.zd))==null||!L.topBarOverride)};
_.K.onCurrentFlowChange=function(){if(this.JSC$19184_flowStateManager&&this.data&&this.flow){var x=kG9(this.JSC$19184_flowStateManager,this.data),L;x&&((L=this.flow)==null?0:L.currentStepId)&&(bVq(x,this.flow.currentStepId),this.initialState=!1,this.isLoading=!this.currentFlowStep)}};
_.K.observeData=function(){var x=this;if(this.JSC$19184_flowStateManager){var L=this.currentTargetId,D,S,Q=(S=(D=this.data)==null?void 0:D.targetId)!=null?S:"";L!==Q&&L&&pIX(this.JSC$19184_flowStateManager,L);this.currentTargetId=Q;this.data&&myl(kG9(this.JSC$19184_flowStateManager,this.data),function(J){J&&(x.initialState=!1,x.currentFlowStep={flowStepRenderer:J},x.isLoading=!x.currentFlowStep,x.autofocusAndRefit(),x.updateContainsTalkToRecs(),x.logVEScreen(),x.logFlowEvent())})}};
_.K.dataChanged=function(){var x=this,L,D;return _.I(function(S){if(S.nextAddress==1){if(!x.flowState)return S.return();((L=x.data)==null?0:L.steps)&&Wzg(x.flowState,x.data.steps);if((D=x.data)==null?0:D.flowContinuationCommand){var Q=x.flowState,J=x.data.flowContinuationCommand;J&&(Q.getFlowContinuationCommand=J)}return S.yield(A3W(x.flowState,x.data),2)}x.currentFlowStep=S.yieldResult;_.Y2(S)})};
_.K.flowChanged=function(){var x=this,L;return _.I(function(D){if(D.nextAddress==1){if(!x.flowState||!x.flow)return D.return();x.flowState.state=x.flow;x.isLoading=!0;return D.yield(A3W(x.flowState,x.data),2)}L=D.yieldResult;if(!L||x.flow.isLoading)return D.return();x.currentFlowStep=L;x.initialState=!1;x.isLoading=!1;x.autofocusAndRefit();x.updateContainsTalkToRecs();_.Y2(D)})};
_.K.logVEScreen=function(){var x,L,D=(x=_.g(this.currentFlowStep,_.zd))==null?void 0:(L=x.screenLoggingData)==null?void 0:L.screenVeType;D&&_.we(_.yY().resolve(_.QT),D)};
_.K.logFlowEvent=function(){var x=_.g(this.currentFlowStep,_.zd),L,D,S,Q,J,Z;(this==null?0:(L=this.data)==null?0:(D=L.flowLoggingData)==null?0:D.eventNamespace)&&(this==null?0:(S=this.data)==null?0:(Q=S.flowLoggingData)==null?0:Q.flowType)&&(x==null?0:(J=x.flowEventData)==null?0:J.eventType)&&(x==null?0:(Z=x.flowEventData)==null?0:Z.eventMetadata)&&(x=_.u1(this.data.flowLoggingData.eventNamespace,x.flowEventData.eventType,x.flowEventData.eventMetadata),_.gY().logFlowEvent(x,this.data.flowLoggingData.flowType))};
_.K.updateContainsTalkToRecs=function(){var x,L=(x=_.g(this.currentFlowStep,_.zd))==null?void 0:x.content;this.containsTalkToRecs=!!L&&!!_.g(L,Uyg)};
_.K.autofocusAndRefit=function(){var x=this,L=_.yY().resolve(_.ZN(_.CJ)),D=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),S=document.querySelector("yt-report-form-confirmation-page-view-model"),Q=document.querySelector("yt-report-form-details-page-view-model"),J=document.querySelector("yt-report-form-reason-select-page-view-model"),Z=document.querySelector("yt-contributor-zero-state-view-model"),
y=document.querySelector("yt-structured-context-note-view-model"),E=document.querySelector("yt-note-view-model");(!D&&L&&L.isKeyBoardInUse()||S||!D&&Q||!D&&J||Z||y||E)&&_.LV(this.hostElement);_.So(this,function(){_.MF(x.hostElement,"yt-refit")})};
_.K.handleUpdateFlowCommand=function(x){this.flowState?this.data&&(x=_.g(x,_.Xx2),x.targetId===this.data.targetId&&(x.flowContinuationCommand&&(this.data.flowContinuationCommand=x.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(x),this.autofocusAndRefit())):this.ytComponentBehavior.resolveCommand(x)};
_.K.handleFlowNextStepCommand=function(x){this.JSC$19184_flowStateManager?this.ytComponentBehavior.resolveCommand(x):this.data&&this.flow&&this.flow.key&&(x=_.g(x,_.fBW),x.targetId===this.data.targetId&&(x=x.stepId||"",this.ytdReduxBehavior.dispatch(_.B2("flowStateEntity",this.flow.key,{currentStepId:x,stepIdStack:(this.flow.stepIdStack||[]).concat(x)}))))};
_.K.handleFlowPrevStepCommand=function(x){if(this.JSC$19184_flowStateManager)this.ytComponentBehavior.resolveCommand(x);else if(this.data&&this.flow&&this.flow.key&&(x=_.g(x,_.ooG),x.targetId===this.data.targetId)){var L=[].concat(_.lP(this.flow.stepIdStack||[]));L.length>1?(L.pop(),this.ytdReduxBehavior.dispatch(_.B2("flowStateEntity",this.flow.key,{currentStepId:L[L.length-1],stepIdStack:L}))):x.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(x.onFirstStepCommand)}};
_.K.handleYpcCancelRecurrenceCommand=function(x){if(this.data&&this.flow&&this.flow.key&&(x=_.g(x,A7q),x.targetId===this.data.targetId&&x.endpointCommand)){var L=_.g(this.flow,$y3);L&&_.g(x.endpointCommand,_.SGh)&&(_.g(x.endpointCommand,_.SGh).feedbackData=L.surveyFeedback);this.ytComponentBehavior.resolveCommand(x.endpointCommand)}};
_.K.handlePartialUpdateFlowStateEntity=function(x){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.B2("flowStateEntity",this.flow.key,x,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
ra.prototype.flowChanged=ra.prototype.flowChanged;ra.prototype.dataChanged=ra.prototype.dataChanged;ra.prototype.observeData=ra.prototype.observeData;ra.prototype.onCurrentFlowChange=ra.prototype.onCurrentFlowChange;ra.prototype.onPopupClosed=ra.prototype.onPopupClosed;_.A([_.b(_.EG),_.r("design:type",Object)],ra.prototype,"ytdReduxBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],ra.prototype,"ytRendererBehavior",void 0);
_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],ra.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],ra.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],ra.prototype,"ytActionHandlerBehavior",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],ra.prototype,"initialState",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],ra.prototype,"isLoading",void 0);_.A([_.F(),_.r("design:type",Object)],ra.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],ra.prototype,"currentFlowStep",void 0);_.A([_.mX("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],ra.prototype,"onPopupClosed",null);
_.A([_.F({selectorArgs:["data.flowStateEntityKey"],selector:ehq}),_.r("design:type",Object)],ra.prototype,"flow",void 0);_.A([_.F1("ytd-flow-top-bar-renderer"),_.r("design:type",HTMLElement)],ra.prototype,"topBar",void 0);_.A([_.bN("data","flow"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ra.prototype,"onCurrentFlowChange",null);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ra.prototype,"observeData",null);
_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype",Promise)],ra.prototype,"dataChanged",null);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],ra.prototype,"containsTalkToRecs",void 0);_.A([_.GV("flow"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype",Promise)],ra.prototype,"flowChanged",null);_.A([_.w({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],ra);
_.$u9=_.vp()(ra,"ytd-flow-root-renderer",function(){if(d6$!==void 0)return d6$;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return d6$=x},{mode:_.Vm("kevlar_poly_si_batch_j025")?1:2});var r3s;var SA=null;_.dF(_.B(function(x){return _.M("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.M("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.M(_.kP,{text:function(){return x.data().text}}),_.M("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"ci"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.pJ}});var Nr9=_.B(function(x){var L=x.playerControlsProps;var D=x.isShortsPage;return _.M("yt-bigboard",null,_.M(_.d,{cond:function(){return L().isDragging},
then:function(){return _.M("div",{class:"ytBigboardStoryboardHost"},_.M(_.ju3,{progressBarProps:L,isShortsPage:D}))}}))},"di");
Nr9.idomCompat=!0;_.N5={ACCOUNT_LABEL:Q_("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:Q_("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:Q_("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:Q_("AD_BADGE_HINT"),AD_BADGE_TEXT:Q_("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:Q_("ALL_CHANNELS_LABEL"),AMBIENT_MODE:Q_("AMBIENT_MODE"),AMBIENT_MODE_OFF:Q_("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:Q_("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:Q_("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:Q_("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:Q_("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:Q_("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:Q_("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:Q_("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:Q_("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:Q_("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:Q_("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:Q_("AUTO_ZOOM","Auto zoom"),BACK:Q_("BACK"),CANCEL:Q_("CANCEL"),CHANNEL_SWITCHER_LABEL:Q_("CHANNEL_SWITCHER_LABEL"),CLOSE:Q_("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:Q_("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:Q_("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:Q_("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:Q_("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:Q_("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:Q_("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:Q_("COMMENT_MODAL_CONTENT"),CONFIRM_OK:Q_("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:Q_("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:Q_("COPIED_TO_CLIPBOARD"),COPY:Q_("COPY"),COPY_DEBUG_INFO:Q_("COPY_DEBUG_INFO"),COPY_EMBED_CODE:Q_("COPY_EMBED_CODE"),
COPY_LINK_LABEL:Q_("COPY_LINK_LABEL"),COPY_VIDEO_URL:Q_("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:Q_("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:Q_("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:Q_("DELETE_FROM_DOWNLOADS"),DIALOG:Q_("DIALOG"),DONE:Q_("DONE"),DOWNLOAD:Q_("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:Q_("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:Q_("FLAG_CONFIRM"),FLAG_CONTENT:Q_("FLAG_CONTENT"),FLAG_LABEL:Q_("FLAG_LABEL"),FLAG_TITLE:Q_("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:Q_("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:Q_("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:Q_("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:Q_("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:Q_("HIDE_SEARCH_FILTERS_LABEL"),HOME:Q_("HOME","Home"),INVALID_RESPONSE_RECEIVED:Q_("INVALID_RESPONSE_RECEIVED"),LIBRARY:Q_("LIBRARY","Library"),LISTENING:Q_("LISTENING"),LOADING:Q_("LOADING"),LONG_PRESS_MIC_TO_SPEAK:Q_("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:Q_("LOOP"),MENU_DESKTOP:Q_("MENU_DESKTOP"),
MENU_EXIT:Q_("MENU_EXIT"),MENU_FEEDBACK:Q_("MENU_FEEDBACK"),MENU_HELP:Q_("MENU_HELP"),MENU_IMPRESSUM:Q_("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:Q_("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:Q_("MENU_SETTINGS"),MENU_SIGN_IN:Q_("MENU_SIGN_IN"),MENU_TITLE:Q_("MENU_TITLE"),MENU_YOUR_DATA:Q_("MENU_YOUR_DATA"),MORE_INFO:Q_("MORE_INFO"),MORE_OPTIONS:Q_("MORE_OPTIONS"),MUTE_VOLUME:Q_("MUTE_VOLUME"),NEW_PLAYLIST:Q_("NEW_PLAYLIST"),NEXT_VIDEO:Q_("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:Q_("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:Q_("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:Q_("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:Q_("NOT_FOUND_TITLE"),NO_DOWNLOADS:Q_("NO_DOWNLOADS"),NO_MIC_INPUT:Q_("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:Q_("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:Q_("OOPS_MESSAGE"),OPEN_APP:Q_("OPEN_APP"),OPEN_YOUTUBE:Q_("OPEN_YOUTUBE"),PAUSE:Q_("PAUSE"),PLAY:Q_("PLAY"),PLAYER_CAPTION:Q_("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:Q_("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:Q_("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:Q_("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:Q_("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:Q_("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:Q_("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:Q_("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:Q_("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:Q_("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:Q_("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:Q_("PLAYER_MINIMIZE"),PLAYER_NEXT:Q_("PLAYER_NEXT"),PLAYER_PAUSE:Q_("PLAYER_PAUSE"),PLAYER_PLAY:Q_("PLAYER_PLAY"),
PLAYER_PREVIOUS:Q_("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:Q_("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:Q_("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:Q_("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:Q_("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:Q_("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:Q_("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:Q_("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:Q_("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:Q_("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:Q_("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:Q_("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:Q_("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:Q_("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:Q_("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:Q_("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:Q_("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:Q_("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:Q_("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:Q_("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:Q_("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:Q_("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:Q_("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:Q_("PLAY_ALL"),PLEASE_FIX_ERRORS:Q_("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:Q_("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:Q_("PREVIOUS_VIDEO"),PRIVACY_POLICY:Q_("PRIVACY_POLICY"),RELOAD:Q_("RELOAD"),REQUIRED_LABEL:Q_("REQUIRED_LABEL"),SAVE_PLAYLIST:Q_("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:Q_("SCRUB_SLIDE_USER_EDU"),SEARCH:Q_("SEARCH","Search"),
SEARCH_APPEND_LABEL:Q_("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:Q_("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:Q_("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:Q_("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:Q_("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:Q_("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:Q_("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:Q_("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:Q_("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:Q_("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:Q_("SEEK_SLIDER"),SETTINGS_LABEL:Q_("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:Q_("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:Q_("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:Q_("SHOW_LESS"),SHOW_MORE:Q_("SHOW_MORE"),SHOW_PLAYER_CONTROLS:Q_("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:Q_("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:Q_("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:Q_("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:Q_("SIGN_IN_ON_WEB"),STABLE_VOLUME:Q_("STABLE_VOLUME"),STABLE_VOLUME_OFF:Q_("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:Q_("STABLE_VOLUME_ON"),STATS_FOR_NERDS:Q_("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:Q_("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:Q_("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:Q_("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:Q_("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:Q_("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:Q_("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:Q_("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:Q_("TIMESTAMP_SECONDS"),TOGGLE_OFF:Q_("TOGGLE_OFF"),TOGGLE_ON:Q_("TOGGLE_ON"),TRENDING:Q_("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:Q_("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:Q_("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:Q_("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:Q_("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:Q_("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:Q_("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:Q_("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:Q_("VIDEO_LINK_LABEL")};var iLq=_.B(function(x){var L=x.playerApi;x=_.x3("button",function(S){_.R5(S,36843)});
var D=Q_("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.M("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.M("button",{el:x,class:"ytPlayerControlsJumpForwardButtonButton",title:D,"aria-label":D,"on:click":_.kO(function(){_.G7(36843);L&&L().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.M("span",null,_.M(_.YO,{icon:"FAST_FORWARD"}))))},"ei");var fRX=_.B(function(x){var L=x.appApi;x=_.x3("button",function(S){_.R5(S,62946)});
var D=Q_("OPEN_IN_MINIPLAYER");return _.M("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.M("button",{el:x,class:"ytMiniplayerButtonButton",title:D,"aria-label":D,"on:click":_.kO(function(){_.G7(62946);var S,Q;(Q=(S=L()).openInMiniplayer)==null||Q.call(S);return!1})},_.M(_.YO,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"fi");var o79=_.B(function(x){var L=x.playerApi;x=_.x3("button",function(J){_.R5(J,142812)});
var D=_.O(_.HB(!1,void 0,"eOMRAb")),S=D.next().value,Q=D.next().value;D=function(){return Q_("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(S()?1:2)})};
return _.M("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.M("button",{el:x,class:"ytPlaybackSpeedButtonButton",title:D,"aria-label":D,"on:click":_.kO(function(){_.G7(142812);if(L){var J=L(),Z=S();J.setPlaybackRate(Z?1:2);Q(!S())}return!1})},_.M("span",null,_.M(_.YO,{icon:function(){return S()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"gi");var aR3=_.B(function(x){var L=x.title;var D=x.ariaLabel;var S=x.icon;var Q=x.command;var J=x.veType;x=_.x3("button",function(Z){J&&_.R5(Z,J())});
return _.M("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.M("button",{el:x,class:"ytdThumbnailOverlayButtonButton",title:L,"aria-label":D,"on:click":_.kO(function(){J&&_.G7(J());Q&&_.yY().resolve(_.E2).resolveCommand(Q())})},_.M(_.YO,{icon:S})))},"hi");var z7="";var z5X=_.B(function(x){var L=x.playerControlsProps,D=x.onClickFn;x=_.m5(function(){var J=L(),Z=-1;J.captionsAvailable&&(Z=J.captionsEnabled?1:0);return Z},void 0,"MZ0Wqe");
var S=_.m5(function(){var J=L();return J.captionsAvailable?_.p6(J.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.p6("CLOSED_CAPTIONS_DISABLED")},void 0,"ymFqJe"),Q=_.m5(function(){var J=L();
J=J.captionsAvailable?J.captionsEnabled:void 0;return J},void 0,"fhuQRe");
return _.M("yt-closed-captions-toggle-button",null,_.M(_.xwX,{captionIconType:x,ariaLabel:S,ariaPressed:Q,onClick:function(J){var Z=L();if(Z.captionsAvailable){var y=Z.playerApi;if(y){var E=Z.playerApi;if(E){var P=z7;if(P){E=E.getOption("captions","track");var v;z7=(v=E?E.displayName:null)!=null?v:P}else _.ea(E)?(P=_.Dxc(E),z7=P.length?(v=lNq(P))?v.displayName:P[0].displayName:""):z7=""}Uwg(y);_.u("mweb_disable_set_state_captions_killswitch")&&Z.setState({captionsEnabled:!Z.captionsEnabled})}}var V,
h;(h=(V=Z.appApi).showCaptionsToggleToast)==null||h.call(V,Z);D==null||D(J)},
isOverlay:!0}))},"ii");var Xog=_.B(function(x){var L=x.data;return _.M("yt-premiere-trailer-badge",{class:"premiereTrailerBadgeHost"},_.M(_.dd,{data:function(){return{type:17,text:_.pK0(L().label)}}}))},"ji");var c39=_.B(function(x){var L=_.gF("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return x.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return x.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return x.size()==="small"?x.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
x.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.M("animated-seek-arrows",{class:_.gF("ytPlayerControlsAnimatedSeekArrowsHost")},_.M("span",{class:L}),_.M("span",{class:L}),_.M("span",{class:L}))},"ki");
c39.idomCompat=!0;var n73=_.B(function(){var x=_.p6("PLAYER_SECONDS",{seconds_placeholder:"30"}),L=_.O(_.HB(!1,void 0,"iRJu8c")),D=L.next().value,S=L.next().value,Q=_.O(_.HB(!1,void 0,"MPnizf"));L=Q.next().value;var J=Q.next().value;Q={};var Z=_.gF("jumpForwardOverlayOverlay",(Q.jumpForwardOverlayOverlayHidden=L,Q));_.wO(function(){var y=null,E=null,P=function(){y!==null&&_.RP().cancelJob(y);E!==null&&_.RP().cancelJob(E);J(!0);S(!0);_.hD(_.RP(),function(){J(!1)});
y=_.hD(_.RP(),function(){J(!0);E=_.hD(_.RP(),function(){S(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",P);_.wH(function(){window.removeEventListener("jump-forward-clicked",P)})});
return _.M("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.M(_.d,{cond:D,then:function(){return _.M("div",{class:Z},_.M(c39,{direction:1,size:"large"}),_.M("div",null,x))}}))},"li");var tos=_.N5.MUTE_VOLUME,xFq=_.N5.UNMUTE_VOLUME,Lml=_.B(function(x){var L=x.muteIconType;var D=x.onClick;var S=x.useOutlineIcon;var Q=x.useDelhiIcons;x=_.x3("button",function(y){_.R5(y,28662)});
var J=function(){var y=L(),E=S==null?void 0:S(),P=Q==null?void 0:Q(),v="",V="";switch(y){case -1:case 0:v=E?"VOLUME_OFF":P?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";V=xFq;break;case 1:v=E?"VOLUME_UP_OUTLINE":P?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";V=tos;break;case 2:v=E?"VOLUME_DOWN_OUTLINE":P?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";V=tos;break;default:_.Nh(y)}return{iconName:v,ariaLabel:V}},Z=function(){return J().ariaLabel};
return _.M("ytm-mute-button",{class:"ytmMuteButtonHost"},_.M("button",{el:x,class:"ytmMuteButtonButton",title:Z,"aria-label":Z,"on:click":_.kO(function(y){_.G7(28662);D==null||D(y);return!1})},_.M("span",null,_.M(_.YO,{icon:function(){return J().iconName}}))))},"mi");var DFq=_.B(function(x){var L=x.volumeProps;var D=x.onClickFn;var S=x.useOutlineIcon;var Q=x.useDelhiIcons;return _.M("yt-mute-toggle-button",null,_.M(Lml,{muteIconType:function(){var J=L();return J.volumeMuted||J.volume===0?0:J.volume>50?1:2},
onClick:function(J){var Z=L().playerApi;Z&&(Z.isMuted()?Z.unMute():Z.mute(!1));D==null||D(J)},
useOutlineIcon:function(){return!(S==null||!S())},
useDelhiIcons:function(){return!(Q==null||!Q())}}))},"ni");
DFq.idomCompat=!0;var S8q=_.B(function(x){var L=x.data;var D=_.x3("ytm-paid-content-overlay-renderer");return _.M("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:D,"on:animationend":_.kO(function(){D.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.M(_.lr,{command:function(){return L().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.M(_.d,{cond:function(){var S;return(S=L().icon)==null?void 0:S.iconType},
then:function(){return _.M("span",null,_.M(_.YO,{icon:function(){var S;return(S=L().icon)==null?void 0:S.iconType}}))}}),_.M("div",{class:"ytmPaidContentOverlayText"},_.M(_.kP,{text:function(){return L().text}})),_.M(_.d,{cond:function(){return L().navigationEndpoint},
then:function(){return _.M(_.YO,{icon:"CHEVRON_RIGHT"})}})))},"oi");
S8q.idomCompat=!0;var QRl=[].concat(_.lP([{register:function(x){var L=PYG(x),D;(D=x().playerApi)==null||D.addEventListener("onVolumeChange",L);return function(){}}},
{register:function(x){var L=jRs(x);x=x().playerApi;x==null||x.addEventListener("captionschanged",L);x==null||x.addEventListener("captionssettingschanged",L);x==null||x.addEventListener("onCaptionsTrackListChanged",L);return function(){}}},
{register:function(x){if(!_.u("mweb_screenreader_accessible_player"))return function(){};
var L=vZl(x),D=document.querySelector("video");D==null||D.addEventListener("touchend",L);return function(){D==null||D.removeEventListener("touchend",L)}}},
{register:function(x){if(!_.u("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var L=vZl(x),D=document.querySelector("video");D==null||D.addEventListener("focus",L);return function(){D==null||D.removeEventListener("focus",L)}}}]),[{register:function(x){var L=I8W(x),D;
(D=x().playerApi)==null||D.addEventListener("onStateChange",L);return function(){}}},
{register:function(x){var L=EZW(x),D;(D=x().playerApi)==null||D.addEventListener("onPlaybackRateChange",L);return function(){}}},
{register:function(x){var L=M7l(x),D;(D=x().playerApi)==null||D.addEventListener("onVideoDataChange",L);return function(){}}},
{register:function(x){var L=dyq(x),D,S;(D=x())==null||(S=D.playerApi)==null||S.addEventListener("onVideoProgress",L);return function(){}}}]);var Q8q=_.B(function(x){var L=x.data;var D=function(){return _.p6("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+L().playbackRate})};
return _.M(_.d,{cond:function(){return L().playbackRate&&L().playbackRate!==1},
then:function(){return _.M("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.M("div",{class:"ytPlaybackRateOverlayOverlay"},_.M(c39,{direction:1,size:"small"}),_.M("div",{class:"ytPlaybackRateOverlayLabel"},D)))}})},"qi");var J_X=_.B(function(x){var L=x.data;return _.M("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.M(_.d,{cond:function(){var D,S=(D=L())==null?void 0:D.playerResponse,Q;return S==null?void 0:(Q=S.paidContentOverlay)==null?void 0:Q.paidContentOverlayRenderer},
then:function(D){return _.M(S8q,{data:D})}}))},"si"),KmY=_.B(function(x){var L=x.props;
var D=x.data;var S=x.options;var Q=function(){var P,v,V,h;return(P=D())==null?void 0:(v=P.playerResponse)==null?void 0:(V=v.playerConfig)==null?void 0:(h=V.inlinePlaybackConfig)==null?void 0:h.showAudioControls},J=function(){var P,v;
if(Q()&&((P=S())==null?void 0:(v=P.additionalButton)==null?void 0:v.button)!==void 0){var V,h,H;P=(V=D())==null?void 0:(h=V.playerApi)==null?void 0:(H=h.getSize())==null?void 0:H.height;if(!(P===void 0||P<180)){var k,T;return(k=S())==null?void 0:(T=k.additionalButton)==null?void 0:T.button}}},Z=function(){var P,v;
return(P=S())==null?void 0:(v=P.additionalButton)==null?void 0:v.thumbnailOverlayButtonRenderers},y=function(){var P,v;
return(P=S())==null?void 0:(v=P.additionalButton)==null?void 0:v.thumbnailOverlayButtonViewModels},E=function(){var P=[_.M(DFq,{volumeProps:L}),
_.M(z5X,{playerControlsProps:L})];J()===1&&P.push(_.M(iLq,{playerApi:function(){return L().playerApi}}));
J()===2&&P.push(_.M(fRX,{appApi:function(){return L().appApi}}));
J()===3&&P.push(_.M(o79,{playerApi:function(){return L().playerApi}}));
var v=Z();if(J()===4&&v){v=_.O(v);for(var V=v.next(),h={};!V.done;h={tooltip$jscomp$2:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$51:void 0,command$jscomp$597:void 0},V=v.next()){V=V.value;h.tooltip$jscomp$2=V.tooltip;var H=void 0,k=void 0;h.ariaLabel$jscomp$20=((H=V.accessibility)==null?void 0:(k=H.accessibilityData)==null?void 0:k.label)||h.tooltip$jscomp$2;H=void 0;h.icon$jscomp$51=(H=V.icon)==null?void 0:H.iconType;h.command$jscomp$597=V.command;h.tooltip$jscomp$2&&h.ariaLabel$jscomp$20&&h.icon$jscomp$51&&
P.push(_.M(aR3,{title:function(T){return function(){return T.tooltip$jscomp$2}}(h),
ariaLabel:function(T){return function(){return T.ariaLabel$jscomp$20}}(h),
icon:function(T){return function(){return T.icon$jscomp$51}}(h),
command:function(T){return function(){return T.command$jscomp$597}}(h)}))}}v=y();
if(J()===4&&v)for(v=_.O(v),V=v.next(),h={};!V.done;h={tooltip$jscomp$3:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$52:void 0,command$jscomp$598:void 0},V=v.next())V=V.value,h.tooltip$jscomp$3=V.title,h.ariaLabel$jscomp$21=V.accessibilityText||h.tooltip$jscomp$3,h.icon$jscomp$52=V.iconName,h.command$jscomp$598=_.fI(V.onTap),h.tooltip$jscomp$3&&h.ariaLabel$jscomp$21&&h.icon$jscomp$52&&P.push(_.M(aR3,{title:function(T){return function(){return T.tooltip$jscomp$3}}(h),
ariaLabel:function(T){return function(){return T.ariaLabel$jscomp$21}}(h),
icon:function(T){return function(){return T.icon$jscomp$52}}(h),
command:function(T){return function(){return T.command$jscomp$598}}(h)}));
return P};
return _.M(_.d,{cond:Q,then:function(){return _.M("div",{class:"ytInlinePlayerControlsTopRightControls"},_.M(_.R1,{each:E},function(P){return _.M("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.M("div",{class:"ytInlinePlayerControlsButtonIcon"},P))}))}})},"ti"),y_$=_.B(function(x){var L=x.props;
var D=x.data;var S=x.options;x={};x=_.gF("ytInlinePlayerControlsBottomRightControls",(x.ytInlinePlayerControlsBottomRightControlsHidden=function(){var Q;return hFW(D(),S())&&((Q=S())==null?void 0:Q.insetProgressBar)&&(L().isHovering||L().isDragging)},x));
return _.M("div",{class:x},_.M(O6q,{data:D}),_.M(_.d,{cond:function(){var Q;return!((Q=S())==null?0:Q.hideTimeDisplay)},
then:function(){return _.M(Z6W,{props:L,data:D})}}))},"ui"),O6q=_.B(function(x){var L=x.data;
return _.M(_.Fj,{data:function(){var D;return Dy5((D=L())==null?void 0:D.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:Xog})},"vi"),Z6W=_.B(function(x){var L=x.props;
var D=x.data;return _.M(_.d,{cond:function(){return L().isLive},
then:function(){return _.M(IgY,{props:L,data:D})},
else:function(){return _.M(ETW,{props:L,data:D})}})},"wi"),ETW=_.B(function(x){var L=x.props;
var D=x.data;var S=_.m5(function(){var Q;return ShG((Q=D())==null?void 0:Q.thumbnailOverlays)},void 0,"mEUgMd");
return _.M("div",{class:_.gF("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.N5.PLAYER_TIME_ELAPSED+" "+_.PRN(L().playedTime)}},_.M(_.dd,{data:function(){var Q=_.PRN(L().videoDuration-L().playedTime);
return Object.assign({},{type:17,text:Q},S())}}))},"xi"),Mql=_.B(function(x){x=x.badgeShapeData;
return _.M("div",{class:_.gF("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.M(_.dd,{data:x}))},"yi"),IgY=_.B(function(x){var L=x.data;
x=_.m5(function(){if(_.u("use_thumbnail_overlay_time_status_renderer_for_live_badge")){var D,S;return(D=L())==null?void 0:(S=D.thumbnailOverlays)==null?void 0:S.find(function(Q){return Q.thumbnailOverlayTimeStatusRenderer||Q.thumbnailOverlayBadgeViewModel})}},void 0,"daaH9");
return _.M(_.d,{cond:x,then:function(D){return _.M(_.Fj,{data:D},{thumbnailOverlayTimeStatusRenderer:function(S){var Q=S.data;S=_.m5(function(){return _.Ppp(Q(),0)},void 0,"trJFV");
return _.M(Mql,{badgeShapeData:S})},
thumbnailOverlayBadgeViewModel:function(S){return _.M(_.eCW,{data:S.data})}})},
else:function(){var D={type:18,text:_.N5.PLAYER_LIVE_LABEL,icon:"LIVE"};return _.M(Mql,{badgeShapeData:function(){return D}})}})},"zi"),dFW=_.B(function(x){var L=x.props;
var D=x.data;var S=x.options;return _.M(_.gV9,{progressBarProps:L,config:function(){var Q,J=_.g((Q=D())==null?void 0:Q.multiMarkersPlayerBar,_.skR),Z;Q=((Z=S())==null?0:Z.insetProgressBar)?2:1;var y;Z=(y=S())==null?void 0:y.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:Q,chapterData:J,isInlinePlayback:!0,doSeekOnClick:Z,playheadDotBehavior:Z?1:0}}})},"Ai");_.dF(_.B(function(x){var L=x.data;var D=x.appApi;var S=x.options;var Q=y75(L,V73(D));x={};D={};return _.M("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.M("div",{class:_.gF("ytInlinePlayerControlsDarkenedOverlay",(x.ytInlinePlayerControlsDarkenedOverlayShow=function(){return Q().isHovering},x))}),_.M(n73,null),_.M(Q8q,{data:Q}),_.M(J_X,{data:L}),_.M(Nr9,{playerControlsProps:Q,
isShortsPage:!1}),_.M("div",{class:_.gF((D.ytInlinePlayerControlsControlsHidden=function(){return Q().isDragging},D))},_.M(KmY,{props:Q,
data:L,options:S}),_.M(y_$,{props:Q,data:L,options:S})),_.M(_.d,{cond:function(){return hFW(L(),S())},
then:function(){return _.M(dFW,{props:Q,data:L,options:S})}}))},"ri"),"yt-inline-player-controls",{props:{data:_.pJ,
appApi:_.Il,options:_.pJ}});var iT=function(){var x=_.e.apply(this,arguments)||this;x.opts=null;x.playerControlsData=null;x.playerControlsAppApi={openInMiniplayer:function(){x.openInMiniplayer()}};
x.playerControlsOptions={};x.noAnimation=!1;x.playbackIntentTriggered=!1;x.positionData=null;x.hidden=!0;x.active=!1;x.playing=!1;x.videoPreviewDataIndex=0;x.JSC$19226_playerPromise=null;x.player=null;x.enableAudioControls=!1;x.hasBeenUnmuted=!1;x.captionsHaveBeenTurnedOff=!1;x.JSC$19226_playerEvents=new Map;x.videoPreviewFetchRequest=null;x.scheduledPreviewEndJobId=null;x.JSC$19226_preventProgressSaveTimer=null;x.watchEndpointStartTimeUpdaterInterval=null;x.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};x.windowOnBlurFn=function(){x.deactivate()};
return x};
_.p(iT,_.e);_.K=iT.prototype;
_.K.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"}}}};
_.K.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$19226_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19226_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$19226_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$19226_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.p$(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.p$(this,this.onScroll))};
_.K.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.p$(this,this.onScroll))};
_.K.onPageTypeChange=function(){this.deactivate()};
_.K.onWindowResized=function(){this.deactivate()};
_.K.onCaptionsChanged=function(x){x=!!x.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!x);this.setCaptionSize()};
_.K.setCaptionSize=function(){var x;if(this.active&&!this.captionsHaveBeenTurnedOff&&((x=this.player)==null?0:x.getCaptionWindowContainerId())){var L;(L=this.player)==null||L.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.K.currentPageAllowed=function(){return!this.isWatchPage};
_.K.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData||!_.u("web_imp_horizontal_oob_fix_killswitch")&&this.isOutOfBounds(this.positionData))return!1;var x=this.positionData,L=x.initialTopPosition,D=x.initialHorizontalPosition;_.uN(this.hostElement,{"--ytd-video-preview-translate-left":x.finalHorizontalPosition-D+"px","--ytd-video-preview-translate-top":x.finalTopPosition-L+"px","--ytd-video-preview-original-top-position":L+
"px","--ytd-video-preview-original-horizontal-position":D+"px","--ytd-video-preview-initial-scale":"scale("+x.initialScale+")","--ytd-video-preview-width":x.videoPreviewWidth+"px","--ytd-video-preview-height":x.videoPreviewHeight+"px"});return!0};
_.K.isOutOfBounds=function(x){var L=x.initialHorizontalPosition+12;x=L+x.videoPreviewWidth>window.innerWidth;return L<0||this.ytdGuideStateAwareBehavior.guidePersistentAndVisible&&L<260||this.ytdGuideStateAwareBehavior.miniGuideVisible&&L<72||x};
_.K.handleOpenVideoPreviewAction=function(x){var L=this,D;return _.I(function(S){if(!L.currentPageAllowed())return S.return(0);L.opts=x;return(D=L.alignVideoPreviewForAnimation(x.thumbnail))?S.return(L.activate()):S.return(0)})};
_.K.onMouseLeave=function(x){var L,D;(L=this.opts)==null||(D=L.mouseleaveCallback)==null||D.call(L);this.shouldDeactivateOnMouseLeave(x)&&this.deactivate()};
_.K.onScroll=function(){var x,L;((x=this.opts)==null?0:x.isAutoplay)&&((L=this.opts)==null?0:L.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.K.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.WW.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.K.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.K.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",iT.JSC$19225_DEFAULT_CLICK_LOCATION_BEHAVIOR,iT.JSC$19225_CLICK_LOCATION_ID_MAP)};
_.K.shouldDeactivateOnMouseLeave=function(x){x=x.relatedTarget;if(!x)return!0;var L;return(L=this.opts)!=null&&L.mediaRenderer?!_.vP(this.opts.mediaRenderer).contains(x):!0};
_.K.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.K.onPlaybackStart=function(){var x=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$19226_preventProgressSaveTimer=
_.hD(_.WW,function(){x.resetPreventProgressSaveTimer()},1E4);
var L;if((L=this.opts)==null?0:L.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.hD(_.WW,function(){x.hasMultipleVideoPreviews()?x.startPlaybackForNextVideo():x.deactivate()},this.opts.videoPreviewDurationMs);
var D;this.player.setGlobalCrop(((D=this.opts)==null?0:D.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.K.getRoundedCornersSize=function(){var x;if((x=this.opts)==null?0:x.roundedCornersSize){var L;return(L=this.opts)==null?void 0:L.roundedCornersSize}var D;if((D=this.opts)==null?0:D.enableRounding){var S;if(((S=this.opts)==null?void 0:S.thumbnailSize)==="small")return 1;var Q;if(((Q=this.opts)==null?void 0:Q.thumbnailSize)==="medium")return 2;var J;if(((J=this.opts)==null?void 0:J.thumbnailSize)==="large")return 3}return _.u("web_imp_inset_progress_bar")?3:0};
_.K.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.K.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.K.onMediaContainerClick=function(x){this.isShortcutClick(x)||(this.navigateToWatch(x),x.preventDefault(),x.stopPropagation())};
_.K.activate=function(){var x=this,L,D,S,Q,J,Z,y,E,P;return _.I(function(v){switch(v.nextAddress){case 1:if(!x.currentPageAllowed())return v.return(0);D=(L=x.videoPreviewData)==null?void 0:L.inlinePlaybackEndpoint;S=_.cD.instance;if(!D||!S)return v.return(0);x.playbackIntentTriggered=!0;((Q=x.opts)==null?0:Q.mediaRenderer)&&((J=x.opts)==null||!J.isAutoplay)&&ng9(x.opts.mediaRenderer,function(){x.deactivate()});
_.So(x,function(){x.revealPreviewUi()});
Z={};_.u("enable_unknown_lact_fix_on_html5")&&(_.yY().resolve(_.Rl),Z.lact=_.Z8());x.videoPreviewFetchRequest=fAl(S,x.getInlinePlaybackRequestData(x.videoPreviewData),Z);_.HH(v,2);return v.yield(x.videoPreviewFetchRequest,4);case 4:y=v.yieldResult;if(((E=y)==null?void 0:(P=E.playabilityStatus)==null?void 0:P.status)==="OK")return v.return(x.handlePlayerResponse(y));throw Error("$j");case 2:_.mW(v),x.deactivate();case 3:return v.return(1)}})};
_.K.getInlinePlaybackRequestData=function(x){var L,D=_.u("web_imp_player_mute_params")?((L=this.opts)==null?void 0:L.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:x.inlinePlaybackEndpoint,startPlaybackInMutedState:D}};
_.K.handlePlayerResponse=function(x){var L=this,D,S,Q,J,Z,y,E,P,v,V,h,H;return _.I(function(k){if(k.nextAddress==1){D=L.getInlinePlaybackVideoId();if(!(((S=x)==null?0:(Q=S.videoDetails)==null?0:Q.videoId)&&L.currentPageAllowed()&&L.playbackIntentTriggered&&L.opts&&D))return L.deactivate(),k.return(0);if(x.videoDetails.videoId!==D)return k.return(0);L.enableAudioControls=!!((J=x.playerConfig)==null?0:(Z=J.inlinePlaybackConfig)==null?0:Z.showAudioControls);x.trackingParams=L.getInlinePlaybackTrackingParams();
if(!L.inlinePlayer)return k.return(0);y={};if(P=_.g((E=L.videoPreviewData)==null?void 0:E.inlinePlaybackEndpoint,_.L6))y.watch_endpoint=P;if(L.videoPreviewData){var T,G=(T=_.g(L.videoPreviewData.inlinePlaybackEndpoint,_.L6))==null?void 0:T.startTimeSeconds;G!==void 0&&(x.playerConfig||(x.playerConfig={}),x.playerConfig.playbackStartConfig||(x.playerConfig.playbackStartConfig={}),x.playerConfig.playbackStartConfig.startPosition||(x.playerConfig.playbackStartConfig.startPosition={}),x.playerConfig.playbackStartConfig.startSeconds=
G,x.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(G*1E3))}L.inlinePlayer.loadVideoWithPlayerResponse(x,y);if(L.JSC$19226_playerPromise)return k.jumpTo(2);L.JSC$19226_playerPromise=L.inlinePlayer.getPlayerPromise();return k.yield(L.JSC$19226_playerPromise,3)}k.nextAddress!=2&&(v=k.yieldResult,v.setInlinePreview(!0),V=!_.u("web_imp_theater_bugfix"),v.setSizeStyle(!1,V),L.ytPlayerListenerBehavior.listenToPlayerEvents(v,L.JSC$19226_playerEvents),L.player=v,_.MF(L.hostElement,
"player-api-ready"));((h=L.opts)==null?0:h.showPlayerControls)&&L.videoPreviewData&&L.player&&(L.playerControlsData={playerResponse:x,isInlinePlayback:!0,thumbnailOverlays:L.videoPreviewData.thumbnailOverlays,playerApi:L.player},L.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!L.unroundCornersForPlayback,additionalButton:L.getAdditionalButtonType(L.videoPreviewData.thumbnailOverlays),hideTimeDisplay:(H=L.opts)==null?void 0:H.hideTimeDisplay});return k.return(2)})};
_.K.revealPreviewUi=function(){var x=this;this.playbackIntentTriggered&&_.IVw(this,function(){x.hasThumbnailPositionChangedSinceTriggered()||(x.updateActiveState(!0),x.noAnimation=!1)})};
_.K.hasThumbnailPositionChangedSinceTriggered=function(){var x=this.positionData,L=this.getThumbnailPositionData();return(x==null?void 0:x.initialTopPosition)!==(L==null?void 0:L.initialTopPosition)||(x==null?void 0:x.initialHorizontalPosition)!==(L==null?void 0:L.initialHorizontalPosition)};
_.K.getThumbnailPositionData=function(){var x,L;if((L=this.opts)==null||!L.thumbnail)return null;L=this.opts.thumbnail;var D=((x=this.opts)==null?0:x.cropPlayerToFillThumbnailHorizontally)?!1:!0;var S=L.getBoundingClientRect();x=S.width;L=S.height;var Q=S.top+window.scrollY;S=S.left+window.scrollX;var J=D?Math.ceil(x):x;D=D?Math.ceil(L):L;var Z=x/J;x={initialScale:Z,initialTopPosition:Q-12*Z,finalTopPosition:Q-12-(D-L)/2,initialHorizontalPosition:S-(12+(J-x)/2),finalHorizontalPosition:S-12-(J-x)/
2,videoPreviewWidth:J,videoPreviewHeight:D};return x};
_.K.updateActiveState=function(x){this.active=x;this.ytdReduxBehavior.dispatch(_.MU({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:x}))};
_.K.stopPlayer=function(x){x=x.resetWatchEndpointStartTime===void 0?!1:x.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(x)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.WW.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.K.deactivate=function(x){x=x===void 0?{}:x;x=x.resetWatchEndpointStartTime===void 0?!1:x.resetWatchEndpointStartTime;SA&&(SA.disconnect(),SA=null);this.stopPlayer({resetWatchEndpointStartTime:x});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.K.isValidThumbnailOverlayButton=function(x,L){x=x.thumbnailOverlayButtonRenderer;var D;return!!x&&!!x.tooltip&&!((D=x.icon)==null||!D.iconType)&&L.includes(x.icon.iconType)};
_.K.isValidThumbnailOverlayButtonViewModel=function(x,L){var D;x=_.g((D=x.thumbnailOverlayButtonViewModel)==null?void 0:D.overlayButton,_.de);return!!x&&!!x.title&&!!x.iconName&&L.includes(x.iconName)};
_.K.getAdditionalButtonType=function(x){var L=this;if(_.u("web_imp_fastforward_button"))return{button:1};if(_.u("web_imp_miniplayer_button"))return{button:2};if(_.u("web_imp_playback_speed_button"))return{button:3};var D=["BOX_STACK_3"],S=(x||[]).filter(function(J){return L.isValidThumbnailOverlayButton(J,D)}).map(function(J){return J.thumbnailOverlayButtonRenderer});
if(S.length)return{button:4,thumbnailOverlayButtonRenderers:S};var Q=["BOX_STACK_3"];x=(x||[]).filter(function(J){return L.isValidThumbnailOverlayButtonViewModel(J,Q)}).map(function(J){return _.g(J.thumbnailOverlayButtonViewModel.overlayButton,_.de)});
if(x.length)return{button:4,thumbnailOverlayButtonViewModels:x}};
_.K.allowCaptions=function(){var x;return!((x=this.opts)==null?0:x.forceCaptionsOff)};
_.K.allowUnmuting=function(){var x;return this.enableAudioControls&&!((x=this.opts)==null?0:x.forceMutedVolume)};
_.K.beginStartTimeUpdater=function(){var x=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.h8(function(){x.updateWatchEndpointStartTime()},1E3)};
_.K.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.K.resetPreventProgressSaveTimer=function(){this.JSC$19226_preventProgressSaveTimer!==null&&(_.WW.cancelJob(this.JSC$19226_preventProgressSaveTimer),this.JSC$19226_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.K.updateWatchEndpointStartTime=function(x){var L=this.videoPreviewData;if(this.player&&L!=null&&L.inlinePlaybackEndpoint&&!this.JSC$19226_preventProgressSaveTimer){x=x?0:Math.floor(this.player.getCurrentTime());var D=_.g(L.navigationEndpoint,_.L6);D&&(D.startTimeSeconds=x);if(L=_.g(L.inlinePlaybackEndpoint,_.L6))L.startTimeSeconds=x}};
_.K.isShortcutClick=function(x){return!!x&&(x.ctrlKey||x.shiftKey||x.metaKey)};
_.K.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.K.openInMiniplayer=function(){var x=this,L,D;return _.I(function(S){if(S.nextAddress==1){D=(L=x.videoPreviewData)==null?void 0:L.navigationEndpoint;if(!D)return S.return();_.ie().lockupActivation=!0;return S.yield(_.rUG(_.yY().resolve(_.iy),D),2)}_.ie().userActivation=!0;_.Y2(S)})};
_.K.navigateToWatch=function(x){var L,D=(L=this.videoPreviewData)==null?void 0:L.navigationEndpoint;if(D){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(D,x,!0);else{var S;_.u("web_thumbnail_to_watch_transition")&&((S=this.opts)==null?0:S.thumbnail)&&_.qf_(_.yY().resolve(_.og),this.opts.thumbnail);_.MF(this.hostElement,"yt-navigate",{endpoint:D})}this.deactivate()}};
_.K.getInlinePlaybackVideoId=function(){var x,L;return(L=_.g((x=this.videoPreviewData)==null?void 0:x.inlinePlaybackEndpoint,_.L6))==null?void 0:L.videoId};
_.K.getInlinePlaybackTrackingParams=function(){var x,L;return(x=this.videoPreviewData)==null?void 0:(L=x.inlinePlaybackEndpoint)==null?void 0:L.clickTrackingParams};
_.K.hasMultipleVideoPreviews=function(){var x;return!!(((x=this.opts)==null?0:x.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.K.startPlaybackForNextVideo=function(){var x;(x=this.opts)!=null&&x.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())};
_.J3.Object.defineProperties(iT.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.opts)==null?0:x.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.opts)==null||!x.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 x;if(Array.isArray((x=this.opts)==null?void 0:x.videoPreviewData)){var L;return(L=this.opts)==null?void 0:L.videoPreviewData[this.videoPreviewDataIndex]}var D;return(D=this.opts)==null?void 0:D.videoPreviewData}}});
iT.prototype.onIsAdsVideoChange=iT.prototype.onIsAdsVideoChange;iT.prototype.onInlinePreviewIsEnabledChange=iT.prototype.onInlinePreviewIsEnabledChange;iT.prototype.optsChanged=iT.prototype.optsChanged;iT.prototype.onMouseLeave=iT.prototype.onMouseLeave;iT.JSC$19225_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);iT.JSC$19225_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"}];
_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],iT.prototype,"actionHandlerBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],iT.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.kj.YtPlayerListenerBehavior),_.r("design:type",_.pO)],iT.prototype,"ytPlayerListenerBehavior",void 0);_.A([_.b(_.Vi.YtdGuideStateAwareBehavior),_.r("design:type",Object)],iT.prototype,"ytdGuideStateAwareBehavior",void 0);
_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],iT.prototype,"componentBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],iT.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],iT.prototype,"ytdReduxBehavior",void 0);_.A([_.b(_.RF.YtSparklesClickLocationBehavior),_.r("design:type",Object)],iT.prototype,"ytSparklesClickLocationBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],iT.prototype,"opts",void 0);
_.A([_.F(),_.r("design:type",Object)],iT.prototype,"playerControlsData",void 0);_.A([_.F(),_.r("design:type",Object)],iT.prototype,"playerControlsAppApi",void 0);_.A([_.F(),_.r("design:type",Object)],iT.prototype,"playerControlsOptions",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],iT.prototype,"noAnimation",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],iT.prototype,"hidden",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],iT.prototype,"active",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],iT.prototype,"playing",void 0);_.A([_.F({selector:_.grn}),_.r("design:type",Boolean)],iT.prototype,"inlinePreviewIsEnabled",void 0);_.A([_.F(),_.r("design:type",String)],iT.prototype,"pagePath",void 0);_.A([_.F({selector:_.hyG}),_.r("design:type",Boolean)],iT.prototype,"isWatchPage",void 0);
_.A([_.Y("videoPreviewData"),_.r("design:type",Object),_.r("design:paramtypes",[])],iT.prototype,"thumbnailData",null);_.A([_.Y("opts","active"),_.F({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],iT.prototype,"hidePlayerControls",null);_.A([_.Y("opts"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],iT.prototype,"isAdsVideo",null);
_.A([_.Y("opts"),_.F({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],iT.prototype,"roundedCornersSmall",null);_.A([_.Y("opts"),_.F({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],iT.prototype,"roundedCornersMedium",null);_.A([_.Y("opts"),_.F({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],iT.prototype,"roundedCornersLarge",null);
_.A([_.Y("opts"),_.F({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],iT.prototype,"unroundCornersForPlayback",null);_.A([_.Y("opts","videoPreviewDataIndex"),_.r("design:type",Object),_.r("design:paramtypes",[])],iT.prototype,"videoPreviewData",null);_.A([_.F(),_.r("design:type",Object)],iT.prototype,"videoPreviewDataIndex",void 0);_.A([_.F1("#inline-player"),_.r("design:type",Object)],iT.prototype,"inlinePlayer",void 0);
_.A([_.mX("mouseleave"),_.r("design:type",Function),_.r("design:paramtypes",[MouseEvent]),_.r("design:returntype")],iT.prototype,"onMouseLeave",null);_.A([_.GV("opts"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],iT.prototype,"optsChanged",null);_.A([_.GV("inlinePreviewIsEnabled"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],iT.prototype,"onInlinePreviewIsEnabledChange",null);
_.A([_.bN("isAdsVideo"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],iT.prototype,"onIsAdsVideoChange",null);_.A([_.w({is:"ytd-video-preview",disableElementRegistration:!0})],iT);
_.q(iT,"ytd-video-preview",function(){if(r3s!==void 0)return r3s;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return r3s=x},{mode:2});
}catch(e){_._DumpException(e)}
try{
var H28,u2i,gHU;H28=function(x){return _.u("kevlar_watch_cinematics_invisible")||x.fullscreen&&_.u("kevlar_watch_cinematics_invisible_in_fullscreen")||x.theater&&!x.fullscreen&&_.u("kevlar_watch_cinematics_invisible_in_theater")};
u2i=function(){var x=document.createElement("canvas"),L=x.getContext("2d");if(!L)throw Error("Io");_.Xq(x,{position:"absolute",width:"100%",height:"100%"});return{element:x,context:L}};
gHU=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.u("kevlar_watch_cinematics_css_blur")};
_.kBs=function(x,L,D){return Math.abs(x-L)<=(D||1E-6)};
_.pCi=function(x,L){return x==L?!0:x&&L?x.width==L.width&&x.height==L.height:!1};_.mh5=new _.jp("notificationActionRenderer");var b2w=function(x){var L=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.Hq;this.element.addEventListener("load",function(){L.loaded=!0;L.resolver.resolve(L.element)});
this.element.addEventListener("error",function(){L.failed=!0});
this.element.src=x};var YR5=function(x,L){this.image=x;this.frame=L};
YR5.prototype.drawToCanvas=function(x,L){var D=this.frame.width/this.frame.columns,S=this.frame.height/this.frame.rows,Q=L.offsetX,J=L.offsetY;H28(L)?(x.fillStyle=L.fullscreen?"#000":"#0f0f0f",x.fillRect(Q,J,(L==null?void 0:L.width)||D,(L==null?void 0:L.height)||S)):x.drawImage(this.image,this.frame.column*D,this.frame.row*S,D,S,Q,J,(L==null?void 0:L.width)||D,(L==null?void 0:L.height)||S)};
var F_N=function(x){this.color=x};
F_N.prototype.drawToCanvas=function(x,L){var D=L.offsetX,S=L.offsetY,Q=L.width,J=L.height;x.fillStyle=H28(L)?L.fullscreen?"#000":"#0f0f0f":this.color;x.fillRect(D,S,Q,J)};var h$=function(x,L){_.Xx.call(this);this.playerApi=L;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.b8(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();si8(this,x);TAf(this);this.update()};
_.p(h$,_.Xx);h$.prototype.addEventListeners=function(){var x=this,L=function(){x.update()},D=function(Q){x.paused||(Q.type==="newdata"&&(x.mosaics.clear(),edR(x),Hr(x)),TAf(x),x.update())},S=function(){x.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",L);this.playerApi.addEventListener("onVideoDataChange",D);this.playerApi.addEventListener("onStateChange",S);this.addOnDisposeCallback(function(){x.playerApi.removeEventListener("onVideoProgress",L);x.playerApi.removeEventListener("onVideoDataChange",D);x.playerApi.removeEventListener("onStateChange",S)})};
var si8=function(x,L){x.cinematicContainerRenderer!==L&&(x.cinematicContainerRenderer=L,edR(x),Hr(x),x.colorStoreUpdateJobId=_.WW.addLowPriorityJob(function(){var D;if((D=x.cinematicContainerRenderer.colorStore)!=null&&D.sampledColors){D=Infinity;for(var S=_.O(x.cinematicContainerRenderer.colorStore.sampledColors),Q=S.next();!Q.done;Q=S.next()){Q=Q.value;var J=Number(Q.key);J!==0&&J<D&&(D=J);J=_.XA(Q.value);x.colorStore.set(Q.key,J)}x.colorStoreTimeInterval=D}}))},edR=function(x){x.colorStoreUpdateJobId&&
(_.WW.cancelJob(x.colorStoreUpdateJobId),x.colorStoreUpdateJobId=void 0);
x.colorStore.clear();x.currentStoryboardColor=void 0},Rdi=function(x,L){var D;
return(D=x.getStoryboardFrame(L))==null?void 0:D.url};
h$.prototype.onPlayerStateChange=function(){this.update()};
h$.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var TAf=function(x){var L=x.getStoryboardFrame(0);L&&(L=new _.b8(L.width/L.columns,L.height/L.rows),_.pCi(x.currentStoryboardSize,L)||(x.currentStoryboardSize=L,x.publish("STORYBOARD_SIZE_CHANGED",x.currentStoryboardSize)))},GBi=function(x,L){x.currentStoryboardIndex=L;
x.pendingStoryboardIndex=NaN;L=x.getStoryboardFrame(x.currentStoryboardIndex);x.currentStoryboard=new YR5(x.mosaics.get(L.url).element,L);x.publish("STORYBOARD_CHANGED",x.currentStoryboard);x.lastUpdateTime=(0,_.y5)()};
h$.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var Hr=function(x){x.currentStoryboardIndex=NaN;x.pendingStoryboardIndex=NaN;x.currentStoryboard&&(x.currentStoryboard=void 0,x.publish("STORYBOARD_CHANGED",void 0));x.lastUpdateTime=NaN};
h$.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)Hr(this);else{var x=this.playerApi.getPlayerState(1);if(x===-1||x===5||x===0)Hr(this);else if(isNaN(this.lastUpdateTime)||!((0,_.y5)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(x=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){x=""+Math.round(x*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var L=this.colorStore.get(x);L?L!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=L,this.currentStoryboard=new F_N(L),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.y5)()):(_.qy(new _.RZ("Could not find color for timestamp: "+x,this.cinematicContainerRenderer)),Hr(this))}else Hr(this);else CGi(this,x)}};
var CGi=function(x,L){var D=x.getStoryboardFrameIndex(L);if(D!==x.currentStoryboardIndex&&D!==x.pendingStoryboardIndex){L=Rdi(x,D);var S=x.mosaics.get(L);S?S.loaded&&GBi(x,D):(x.pendingStoryboardIndex=D,D=new b2w(L),x.mosaics.set(L,D),D.resolver.promise.then(function(){if(!x.isDisposed()&&!x.paused&&!isNaN(x.pendingStoryboardIndex)){var Q=Rdi(x,x.pendingStoryboardIndex);if(Q){var J;(J=x.mosaics.get(Q))!=null&&J.loaded&&GBi(x,x.pendingStoryboardIndex)}else Hr(x)}}))}};
h$.prototype.getStoryboardFrameIndex=function(x){var L=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(x,L)};
h$.prototype.getStoryboardFrame=function(x){var L=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,D,S;return((S=(D=this.playerApi).getStoryboardFrame)==null?void 0:S.call(D,x,L))||null};
h$.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var g3=function(x,L,D,S){S=S===void 0?!1:S;_.Te.call(this);this.cinematicContainerRenderer=L;this.playerApi=D;this.theater=this.fullscreen=!1;var Q;this.ambientLightThemeEnabled=!S&&!!(L==null?0:(Q=L.config)==null?0:Q.enableInLightTheme);this.ambientFullscreenEnabled=S&&_.u("web_cinematic_fullscreen");this.ambientTheaterModeEnabled=S&&_.u("web_cinematic_theater_mode");this.container=document.createElement("div");x.appendChild(this.container);var J;if(_.u("web_cinematic_theater_mode")||_.u("web_cinematic_fullscreen")||
(L==null?0:(J=L.config)==null?0:J.enableInLightTheme))this.ambientV2Container=document.createElement("div"),this.container.appendChild(this.ambientV2Container);lh8(this);x=this.ambientV2Container||this.container;this.backCanvas=u2i();this.frontCanvas=u2i();x.appendChild(this.backCanvas.element);x.appendChild(this.frontCanvas.element);this.storyboardManager=new h$(L,this.playerApi);_.V1(this,this.storyboardManager);this.addEventListeners();Uhv(this)?wCw(this,100+ud(this)*3*2,100+ud(this)*3*2):BAN(this);
W_N(this,this.storyboardManager.currentStoryboard)};
_.p(g3,_.Te);var lh8=function(x){x.ambientV2Container?qR8(x):(_.Xq(x.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+Ari(x)+", "+$hs(x)+")"}),gHU()&&_.Xq(x.container,"filter","blur("+_.dE("cinematic_watch_css_filter_blur_strength",40)+"px)"))},qR8=function(x){if(x.ambientV2Container){var L=x.playerApi.getVideoAspectRatio();
_.Xq(x.container,{"aspect-ratio":""+L,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.Xq(x.ambientV2Container,{"aspect-ratio":""+L,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+Ari(x)+", "+$hs(x)+")"});gHU()&&_.Xq(x.ambientV2Container,"filter","blur("+_.dE("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
g3.prototype.setFullscreen=function(x,L){this.fullscreen=x;this.theater=!!L;lh8(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled||this.ambientTheaterModeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),x=this.storyboardManager.currentStoryboard,rri(this),x&&NAz(this,x)};
g3.prototype.addEventListeners=function(){var x=this,L=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(Q){W_N(x,Q)}),D=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){BAN(x)});
this.addOnDisposeCallback(function(){x.storyboardManager.unsubscribeByKey(L);x.storyboardManager.unsubscribeByKey(D)});
if(this.ambientV2Container){var S=function(){qR8(x)};
this.playerApi.addEventListener("onVideoDataChange",S);this.addOnDisposeCallback(function(){x.playerApi.removeEventListener("onVideoDataChange",S)})}};
var BAN=function(x){if(!Uhv(x)){var L=x.storyboardManager.currentStoryboardSize;isNaN(L.width)||isNaN(L.height)||wCw(x,Number(L.width)+ud(x)*3*2,Number(L.height)+ud(x)*3*2)}},wCw=function(x,L,D){x.backCanvas.element.width=L;
x.backCanvas.element.height=D;x.frontCanvas.element.width=L;x.frontCanvas.element.height=D},Uhv=function(x){return x.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},W_N=function(x,L,D){D=D===void 0?!1:D;
var S=x.frontCanvas.element.getAnimations()[0];S?(S.pause(),x.backCanvas.context.globalAlpha=Number(getComputedStyle(x.frontCanvas.element).opacity),x.frontCanvas.element.style.opacity="0",S.finish()):x.backCanvas.context.globalAlpha=1;x.backCanvas.context.drawImage(x.frontCanvas.element,0,0,x.backCanvas.element.width,x.backCanvas.element.height);rri(x);L&&NAz(x,L);L=L?x.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.dE("cinematic_watch_fade_out_duration",500);S=_.dE("cinematic_watch_transition_frame_rate")/
1E3;var Q={};S&&(Q={easing:"steps("+Math.round(L*S)+")"});(D===void 0?0:D)||x.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:L,iterations:1},Q));x.frontCanvas.element.style.opacity="1"},rri=function(x){var L=x.ambientLightThemeEnabled||x.ambientTheaterModeEnabled,D=x.ambientLightThemeEnabled||x.ambientFullscreenEnabled;
x.frontCanvas.context.fillStyle=x.theater&&L||x.fullscreen&&D?"#000":"#0f0f0f";gHU()||(x.frontCanvas.context.filter="blur(0)");x.frontCanvas.context.fillRect(0,0,x.frontCanvas.element.width,x.frontCanvas.element.height)},NAz=function(x,L){gHU()||(x.frontCanvas.context.filter="blur("+ud(x)+"px)");
x.frontCanvas.context.globalAlpha=x.fullscreen&&x.ambientFullscreenEnabled||x.theater&&x.ambientTheaterModeEnabled?_.dE("cinematic_watch_effect_letterbox_opacity",.4):_.dE("cinematic_watch_effect_opacity",.4);var D={offsetX:ud(x)*3,offsetY:ud(x)*3,theater:x.theater,fullscreen:x.fullscreen};Uhv(x)&&(D.width=100,D.height=100);L.drawToCanvas(x.frontCanvas.context,D);x.frontCanvas.context.globalAlpha=1},ud=function(x){var L;
return(L=x.cinematicContainerRenderer.config.blurStrength)!=null?L:5},Ari=function(x){var L,D;
if((x.fullscreen||x.theater)&&((L=x.cinematicContainerRenderer.config)==null?0:(D=L.watchFullscreenConfig)==null?0:D.colorSourceWidthMultiplier))return x.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var S;return(S=x.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?S:x.cinematicContainerRenderer.config.colorSourceSizeMultiplier},$hs=function(x){var L,D;
if((x.fullscreen||x.theater)&&((L=x.cinematicContainerRenderer.config)==null?0:(D=L.watchFullscreenConfig)==null?0:D.colorSourceHeightMultiplier))return x.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var S;return(S=x.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?S:x.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
g3.prototype.disposeInternal=function(){_.Te.prototype.disposeInternal.call(this);this.container.remove()};
g3.prototype.clear=function(){W_N(this,void 0,!0)};
g3.prototype.pause=function(){this.storyboardManager.pause()};var i2s;i2s=_.Ct(function(){var x,L,D=!((L=(x=document.createElement("canvas")).getContext)==null||!L.call(x,"2d")),S;x=!((S=CSS)==null||!S.supports("filter: blur(0)"));S=!!Element.prototype.animate&&!!Element.prototype.getAnimations;var Q;return D&&x&&S&&!((Q=CSS)==null||!Q.supports("aspect-ratio: 1 / 1"))});
_.kL=function(x,L){_.Xx.call(this);this.container=x;this.playerApi=L;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=fhi(this);this.update()};
_.p(_.kL,_.Xx);_.oHi=function(x){var L=document.documentElement.hasAttribute("dark");x.isDarkModeEnabled=L;x.update()};
_.ahz=function(x,L){x.settingEnabled=L;x.update()};
_.kL.prototype.setFullscreen=function(x,L){this.fullscreen=x;this.theater=!!L;this.update()};
_.zdN=function(x,L){x.cinematicContainerRenderer=L;x.cinematicContainerRenderer&&(x.cinematicsVe=_.VC(x.isShorts()?227858:159022),_.B5(_.sk(),x.cinematicsVe),x.loggingClientData={watchCinematicContainerData:{presentationStyle:x.cinematicContainerRenderer.presentationStyle}});x.update()};
_.kL.prototype.isShorts=function(){var x,L;return((x=this.cinematicContainerRenderer)==null?void 0:(L=x.config)==null?void 0:L.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.kL.prototype.isAllowed=function(){var x;if(x=i2s()){var L,D,S;x=((D=this.cinematicContainerRenderer)==null?void 0:D.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((S=this.cinematicContainerRenderer)==null||!S.colorStore)||((L=this.cinematicContainerRenderer)==null?void 0:L.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(x)if(_.u("web_cinematics_pausing")){var Q,J;x=this.isDarkModeEnabled||!!((Q=this.cinematicContainerRenderer)==
null?0:(J=Q.config)==null?0:J.enableInLightTheme)}else{var Z,y;Q=!!((Z=this.cinematicContainerRenderer)==null?0:(y=Z.config)==null?0:y.enableInLightTheme)&&(_.$6("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);x=this.isDarkModeEnabled||Q}if(Z=x){var E,P;Z=!((P=(E=this.prefersReducedMotionQuery)==null?void 0:E.matches)!=null&&P)}return Z};
_.XCR=function(x){(x=x.currentCinematicEffect)!=null&&(x=x.storyboardManager,x.paused=!1,TAf(x),x.update())};
_.kL.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var fhi=function(x){if(!_.u("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var L=window.matchMedia("(prefers-reduced-motion: reduce)"),D=function(){x.update()};
L.addListener(D);x.addOnDisposeCallback(function(){L.removeListener(D)});
return L}};
_.kL.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var x=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new g3(this.container,x,this.playerApi,this.isDarkModeEnabled),_.V1(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var L=this.currentCinematicEffect;L.cinematicContainerRenderer!==
x&&(L.cinematicContainerRenderer=x,si8(L.storyboardManager,x),lh8(L));x=_.FI();_.s8(0,194,!0);x.save();x=_.A3();this.cinematicsVe&&x&&_.t_(x,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(x=_.A3(),this.cinematicsVe&&x&&_.xN(x,[this.cinematicsVe],!1,this.loggingClientData),_.Q1(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.J3.Object.defineProperties(_.kL.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var fpw;var ofR;_.q$({_template:function(){if(ofR!==void 0)return ofR;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=
x.content,D=L.insertBefore;fpw===void 0&&(fpw=document.createElement("template"));var S=fpw;D.call(L,S.content.cloneNode(!0),x.content.firstChild);return ofR=x},
is:"tp-yt-iron-pages",behaviors:[_.XO,_.SO],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var NMG;_.iP3=function(){if(_.u("kevlar_home_skeleton")&&!NMG){var x=document.querySelector("#home-page-skeleton");x&&(_.$T("hgcr"),_.mg(x),NMG=!0)}};
NMG=!1;_.SX=new _.jp("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var bc3,F69,sz3,T39,eGq,RGG,G43,CdW,UDX,wr3,qPq,$DY,N3I,A$q,B3q,W6l,oLI;_.mD9=function(x,L,D){L=L===void 0?5:L;if(L!==0){var S=typeof x==="function"?x():document.querySelector(x);S?(D==null?0:D.enableSmartFocus)?_.NE0(S):S.focus():setTimeout(function(){_.mD9(x,L-1,D)},500)}};
bc3=function(x){return String.raw.apply(String,[{raw:x}].concat(_.lP(_.Ne.apply(1,arguments).map(function(L){return L instanceof Array?L.join(""):L}))))};
F69=function(x){var L=_.Ne.apply(1,arguments),D=L.length;if(!Array.isArray(x)||!Array.isArray(x.raw)||x.length!==x.raw.length||!_.DhG&&x===x.raw||!(_.DhG&&!_.SR2||_.Gi(x))||D+1!==x.length)throw new TypeError("$");return new YPl(Object.freeze({strings:Object.freeze(x),args:Object.freeze(L)}))};
sz3=function(x){return _.fkw(_.iEn(x&16777215))<.5};
T39=function(x,L,D){var S=D.minimumRowsOfVideosBetweenSections===void 0?1:D.minimumRowsOfVideosBetweenSections;return x<(D.minimumRowsOfVideosAtStart===void 0?2:D.minimumRowsOfVideosAtStart)||L!==null&&x-L<=S?!1:!0};
eGq=function(x,L){var D=0,S=0;x=_.O(x);for(var Q=x.next();!Q.done;Q=x.next()){var J=Q.value;if(J.richItemRenderer)J.richItemRenderer.rowIndex=S,J.richItemRenderer.colIndex=D++,D===L&&(D=0,S++);else if(J.richGroupRenderer&&J.richGroupRenderer.numColumns!==void 0)J.richGroupRenderer.rowIndex=S,J.richGroupRenderer.colIndex=D,D+=J.richGroupRenderer.numColumns,D===L&&(D=0,S++);else if(J.richSectionRenderer){var Z=Q=void 0;if(J=_.g((Q=J)==null?void 0:(Z=Q.richSectionRenderer)==null?void 0:Z.content,_.PB_))J.rowIndex=
S++}}};
RGG=function(x,L){var D=L.contentElement;L=L.rendererToTagNameMap;if(D&&L&&L.size!==0){for(var S=new Map,Q=_.O(D.children),J=Q.next();!J.done;J=Q.next()){J=J.value;var Z=J.tagName.toLowerCase(),y=S.get(Z);y||(y=[],S.set(Z,y));y.push(J)}if(S.size!==0)for(Q=Math.min(x.length,D.children.length),J=new Map,Z=0;Z<Q;Z++){y=Object.keys(x[Z])[0];y=L.get(y);if(!y)break;var E=J.get(y);E===void 0&&(E=0,J.set(y,E));var P=S.get(y);if(!P||E>=P.length)break;J.set(y,E+1);y=P[E];E=D.children[Z];E!==y&&(_.EI=!0,_.Mj.set(y,
!0),D.insertBefore(y,E),_.Mj.delete(y),_.EI=!1)}}};
G43=function(x,L,D,S,Q,J,Z){S=S===void 0?{}:S;if(!x||!x.length)return{orderedContent:[]};x=x.slice();var y=[],E=[];Q=null;for(var P=0,v=function(X){E.sort(function(z,xf){return xf.skippedOnRow-z.skippedOnRow});
for(var f,N=(f=E.shift())==null?void 0:f.content;N;)!N.richSectionRenderer&&X||y.push(N),f=void 0,N=(f=E.shift())==null?void 0:f.content},V=void 0,h=void 0,H=new Set;x.length>0||E.length>0;){for(var k=[],T=L;T>0;){var G=void 0,U=void 0,l=(U=E[0]&&E[0].skippedOnRow<P?(G=E.shift())==null?void 0:G.content:void 0)!=null?U:x.shift();
if(!l)break;if(l.richItemRenderer)G=l.richItemRenderer.targetId,U=void 0,G&&((U=Z)==null?0:U.has(G))&&(U=Z.get(G),!V||U&&U.timestamp>V.timestamp)&&(V=U,h&&H.add(h),h=G),k.push(l),T--;else if(l.richGroupRenderer&&l.richGroupRenderer.numColumns!==void 0)l.richGroupRenderer.numColumns<=T?(k.push(l),T-=l.richGroupRenderer.numColumns):T===L&&l.richGroupRenderer.numColumns>L?(k.push({richGroupRenderer:Object.assign({},l.richGroupRenderer,{numColumns:L})}),T=0):E.push({content:l,skippedOnRow:P});else if(l.richSectionRenderer)if(T39(P,
Q,S)&&T===L){y.push(l);Q=P;P++;continue}else E.push({content:l,skippedOnRow:P});else if(l.continuationItemRenderer){v(!0);y.push(l);T=0;break}if(T===0)y.push.apply(y,_.lP(k));else if(!D&&x.length===0){v(!1);y.push.apply(y,_.lP(k));T=0;break}}P++;V&&(y.push(V.content),P++);h=V=void 0}eGq(y,L);J&&RGG(y,J);return{orderedContent:y,pinnedContentNotShownTargetIds:H}};
CdW=function(){return _.Ne.apply(0,arguments).flat().filter(function(x){return x}).join(";")};
UDX=function(){return F69(lCG,CdW.apply(null,_.lP(_.Ne.apply(0,arguments))))};
wr3=function(x,L){if(L)return"ytCardViewModelCardSelected";switch(x){case "CARD_STYLE_OUTLINE":return"ytCardViewModelOutline";case "CARD_STYLE_TONAL":return"ytCardViewModelTonal";case "CARD_STYLE_INVERSE":return"ytCardViewModelInverted";default:return"ytCardViewModelRaised"}};
qPq=function(x,L){if(L){var D=_.Jd().getState().entities.flowStateEntity,S=B3q(x),Q=[L];S&&S!==L&&Q.push(S);var J=!0,Z;if(D&&x.flowStateEntityKey&&((Z=D[x.flowStateEntityKey])==null?void 0:Z.primaryButtonDisabled)!==void 0){var y;J=!((y=D[x.flowStateEntityKey])==null||!y.primaryButtonDisabled)}W6l(x,S!=null?S:L,Q,J)}};
$DY=function(x){return _.oQ(_.Jd(),function(L){return L.entities.flowStateEntity},function(L,D){if(x.flowStateEntityKey){var S,Q=L==null?void 0:(S=L[x.flowStateEntityKey])==null?void 0:S.currentStepId,J;
D=D==null?void 0:(J=D[x.flowStateEntityKey])==null?void 0:J.currentStepId;J=_.Jd().getState().talkToRecs;if(Q&&Q!==D){var Z;L=(L==null?void 0:(Z=L[x.flowStateEntityKey])==null?void 0:Z.stepIdStack)||Object.keys(J.stepStates);Z=!A$q(J==null?void 0:J.stepStates[Q]);W6l(x,Q,L,Z)}}})};
N3I=function(x){return _.oQ(_.Jd(),r$q,function(L){var D=B3q(x);if(D){var S=Object.keys(L.stepStates);L=!A$q(L==null?void 0:L.stepStates[D]);W6l(x,D,S,L)}})};
A$q=function(x){var L=Object.keys((x==null?void 0:x.selectionStates)||{}).reduce(function(J,Z){return J||(x==null?void 0:x.selectionStates[Z].isSelected)},!1),D,S,Q=!!(x==null?0:(D=x.userQuery)==null?0:(S=D.userQuery)==null?0:S.trim());
return L||Q};
B3q=function(x){if(x.flowStateEntityKey){var L,D,S=(L=_.Jd().getState().entities.flowStateEntity)==null?void 0:(D=L[x.flowStateEntityKey])==null?void 0:D.currentStepId;if(S)return S}};
W6l=function(x,L,D,S){_.Jd().dispatch(_.TR("flowStateEntity",x.flowStateEntityKey,{currentStepId:L,stepIdStack:D,key:x.flowStateEntityKey,primaryButtonDisabled:S}))};
_.ic$=function(x,L){return _.u6(x.entities,"youchatPendingResponseEntity",L)};
_.fCu=function(x){return function(L){_.Ok(_.TR("youchatPendingResponseEntity",x,{entityKey:x,isPendingResponse:L}))}};
oLI=function(x){x==null||x.addEventListener("DOMLoaded",function(){x.goToAndPlay(x.totalFrames-48,!0)})};
_.OX=function(x){this.__isSoyCss=!0;this.css=bc3.apply(null,[x.strings].concat(_.lP(x.args)))};
_.OX.prototype.toString=function(){return this.css};
var YPl=function(){_.OX.apply(this,arguments)};
_.p(YPl,_.OX);var lCG=_.xI(["",""]);var aCW;var zGs;_.q$({_template:function(){if(zGs!==void 0)return zGs;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);
var L=x.content,D=L.insertBefore;aCW===void 0&&(aCW=document.createElement("template"));var S=aCW;D.call(L,S.content.cloneNode(!0),x.content.firstChild);return zGs=x},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var XrI=new _.jp("flowRootRenderer");var c$l=new _.jp("chipsShelfViewModel");var nL5=new _.jp("responsiveContainerConfiguration");_.tjG=new _.jp("engagementPanelSectionListRenderer");var xR3=function(){this.horizontal=!1},L05=function(x,L){x.horizontal=L};
xR3.prototype.position=function(x,L,D,S){S=S===void 0?1:S;x=this.delta(x)*S+L;S=Math.max(L,D);return x>=Math.min(L,D)&&x<=S?x:D};
xR3.prototype.axis=function(x){x=this.direction(x);return x==="up"||x==="down"?"Y":"X"};var Bw=function(x,L,D){L=L===void 0?_.xP():L;this.target=x;this.manager=L;this.touchAction=D;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
Bw.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(_.lP(this.events)));for(var x=_.O(this.events),L=x.next();!L.done;L=x.next())this.listen(L.value)}};
Bw.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.lP(this.events)));for(var x=_.O(this.events),L=x.next();!L.done;L=x.next())this.unlisten(L.value)}};
Bw.prototype.listen=function(x){this.eventMap[x]&&this.target.addEventListener(x,this.eventMap[x])};
Bw.prototype.unlisten=function(x){this.eventMap[x]&&this.target.removeEventListener(x,this.eventMap[x])};var Ww=function(){xR3.apply(this,arguments)};
_.p(Ww,xR3);Ww.prototype.direction=function(x){var L=x.detail;x=L.deltaY;L=L.deltaX;return x&&!this.horizontal?x>0?"down":"up":L&&this.horizontal?L>0?"right":"left":"none"};
Ww.prototype.distance=function(x){return Math.abs(this.delta(x))};
Ww.prototype.delta=function(x){var L=this.direction(x),D=x.detail;x=D.deltaX;D=D.deltaY;return L==="up"||L==="down"?D||0:x||0};
Ww.prototype.velocity=function(x){var L=this.direction(x),D=x.detail;x=D.velocityX;D=D.velocityY;return Math.abs(L==="up"||L==="down"?D||0:x||0)};_.qd=function(x,L,D,S,Q,J){Q=Q===void 0?new Ww:Q;J=J===void 0?_.xP():J;Bw.call(this,L,J,S);var Z=this;this.element=x;this.target=L;this.config=D;this.input=Q;this.manager=J;this.events=["panstart","panmove","panend"];this.onPanStart=function(){Z.config.draggingClass&&Z.element.classList.add(Z.config.draggingClass);Z.config.startAction&&Z.config.startAction()};
this.onPanMove=function(y){var E=DRs(Z,y);if(E){Z.move(y,E);E.fade&&Z.fade(y,E);var P=Z.input.direction(y);E.moveAction&&E.moveAction(SbY(Z,y,E),P)}};
this.onPanEnd=function(y){var E,P,v,V,h,H;return _.I(function(k){if(k.nextAddress==1){Z.animationRequestId&&cancelAnimationFrame(Z.animationRequestId);Z.animationRequestId=void 0;E=DRs(Z,y);if(!E)return k.return();P=E;v=P.triggerAction;V=P.fade;h=P.disableFinish;H=P.translateBack;var T=Z.input.velocity(y),G=Z.input.distance(y),U=Z.threshold(E);return T>.3&&G>10||G>U?h?k.jumpTo(6):V?k.yield(QJu(Z,y),6):k.yield(JjX(Z,y,E),6):H?k.yield(Z.translateBack(y),3):k.jumpTo(3)}k.nextAddress!=3&&v&&v();Z.config.draggingClass&&
Z.element.classList.remove(Z.config.draggingClass);Z.reset();_.Y2(k)})};
x=Object.keys(D.triggers);this.directions=new Set(x);L05(this.input,this.directions.has("right")||this.directions.has("left"))};
_.p(_.qd,Bw);_.qd.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var DRs=function(x,L){L=x.input.direction(L);return x.config.triggers[L]};
_.qd.prototype.move=function(x,L){var D=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var S=D.input.axis(x),Q=D.input.position(x,D.config.startPosition,L.endPosition,L.moveRatio||1);D.element.style.transform="translate"+S+"("+Q+"px)";D.animationRequestId=void 0}))};
var SbY=function(x,L,D){var S=D.moveRatio||1;D=Math.abs(x.config.startPosition-D.endPosition);return Math.min(x.input.distance(L)*S,D)/D};
_.qd.prototype.fade=function(x,L){var D=L.endOpacity;x=SbY(this,x,L);x>0&&(this.element.style.opacity=""+(((D||0)-1)*x+1))};
_.qd.prototype.threshold=function(x){return x.threshold?x.threshold:Math.abs(x.endPosition-this.config.startPosition)/3};
var JjX=function(x,L,D){var S,Q,J,Z,y,E,P;return _.I(function(v){if(v.nextAddress==1)return S=x.input.delta(L)+x.config.startPosition,Q=x.input.axis(L),J=D,Z=J.endPosition,y=J.transitionEndPosition,P=(E=y)!=null?E:Z,v.yield(x.element.animate([{transform:"translate"+Q+"("+S+"px)"},{transform:"translate"+Q+"("+P+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);x.element.style.transform="translate"+Q+"("+P+"px)";_.Y2(v)})};
_.qd.prototype.translateBack=function(x){var L=this,D,S;return _.I(function(Q){if(Q.nextAddress==1){if(!L.element.style.transform)return Q.return();D=L.input.axis(x);S=L.config.startPosition;return Q.yield(L.element.animate([{transform:L.element.style.transform},{transform:"translate"+D+"("+S+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}L.element.style.transform="translate"+D+"("+S+"px)";_.Y2(Q)})};
var QJu=function(x,L){var D,S,Q,J;return _.I(function(Z){if(Z.nextAddress==1)return D=x.input.delta(L)+x.config.startPosition,S=x.input.axis(L),Q=D+70,J=x.element.style.opacity===""?1:x.element.style.opacity,Z.yield(x.element.animate([{transform:"translate"+S+"("+D+"px)",opacity:J},{transform:"translate"+S+"("+Q+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);x.element.style.transform="translate"+S+"("+Q+"px)";x.element.style.opacity="0";_.Y2(Z)})};var AW=function(){var x=_.er.apply(this,arguments)||this;x._noAccessors=!0;x.scrollRate=3;x.autoScrollAnimationStart=0;x.autoScrollPaused=!1;x.autoScrollRafId=0;return x};
_.p(AW,_.er);_.K=AW.prototype;_.K.created=function(){var x=this;this.boundAutoScrollHandler=function(L){x.autoScroll(L)}};
_.K.detached=function(){this.hostElement.removeEventListener("mouseout",_.p$(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.p$(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.p$(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.K.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.p$(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.p$(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.p$(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.p$(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.p$(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.p$(this,this.endAutoScroll)),this.endAutoScroll())};
_.K.autoScroll=function(x){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=x);var L;if(L=!this.autoScrollPaused&&this.scrollTarget)L=this.scrollTarget,L=L.scrollHeight-L.scrollTop!==L.clientHeight;L&&(L=1E3/this.scrollRate,x-=this.autoScrollAnimationStart,x>L&&(this.scrollTarget.scrollTop+=Math.ceil(x/L),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.K.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.K.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
AW.prototype.autoScrollEnabledChanged=AW.prototype.autoScrollEnabledChanged;_.A([_.F(),_.r("design:type",Object)],AW.prototype,"scrollRate",void 0);_.A([_.F(),_.r("design:type",Object)],AW.prototype,"scrollTarget",void 0);_.A([_.F(),_.r("design:type",Boolean)],AW.prototype,"autoScrollEnabled",void 0);_.A([_.bN("autoScrollEnabled"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],AW.prototype,"autoScrollEnabledChanged",null);_.A([_.RW()],AW);_.K0$=[AW.prototype];var OPX;var $_=function(){var x=_.e.apply(this,arguments)||this;x.buttonUpdate=_.u("web_button_rework");x.dismissButtonOverrides=_.u("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;x.forceDarkTheme=!1;x.forceLightTheme=!1;x.dynamicTextHeight=94;x.hasOverflowButton=!1;x.isInfeedModernization=!1;return x};
_.p($_,_.e);_.K=$_.prototype;_.K.computeUrlImg=function(x){if(x)return _.jn(x.thumbnails)};
_.K.getLogoHeight=function(x){return this.logoWithPadding(x)?"31":"24"};
_.K.getLogoClassName=function(x){return this.logoWithPadding(x)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.K.logoWithPadding=function(x){var L,D;return(x=(L=x.thumbnails)==null?void 0:(D=L[0])==null?void 0:D.height)&&x%31===0?!0:!1};
_.K.sendImpressionEndpoints=function(x){x.impressionEndpoints&&_.jq(this.hostElement,x.impressionEndpoints)};
_.K.observeBasicPalette=function(){var x,L,D=(x=this.data)==null?void 0:(L=x.colorData)==null?void 0:L.basicColorPaletteData;D?_.UI(this.hostElement,D):_.UI(this.hostElement,{})};
_.K.observeDataChanged=function(){var x;this.dynamicTextHeight=((x=this.data)==null?0:x.supplementalText)?74:94;var L;this.hasSupplementalText=!((L=this.data)==null||!L.supplementalText);if(_.u("web_button_rework")){var D,S,Q,J;x=(D=this.data)==null?void 0:(S=D.actionButton)==null?void 0:(Q=S.buttonRenderer)==null?void 0:(J=Q.colorData)==null?void 0:J.basicColorPaletteData;var Z,y,E;if(!((Z=this.data)==null?0:(y=Z.actionButton)==null?0:(E=y.buttonRenderer)==null?0:E.style)&&x){this.computeIsInfeedModernization(this.data)||
(x.borderColor=x.foregroundTitleColor);var P,v;this.set("data.actionButton.buttonRenderer",_.wk.unsafeClone((P=this.data)==null?void 0:(v=P.actionButton)==null?void 0:v.buttonRenderer))}}};
_.K.observeDataForCounterfactual=function(){if(_.u("kevlar_banner_cf_extra_logging")){var x;((x=this.data)==null?0:x.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.K.computeSupplementalStyle=function(){var x;if((x=this.data)!=null&&x.supplementalText){var L,D,S;if((L=this.data)==null?0:(D=L.colorData)==null?0:(S=D.basicColorPaletteData)==null?0:S.foregroundActivatedColor)return x=_.zF(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+x+"; --yt-endpoint-hover-color:"+x+"; --yt-endpoint-visited-color:"+x+"; --yt-formatted-string-bold-font-weight:700;"}};
_.K.computeForcedDarkTheme=function(){var x,L,D,S=(x=this.data)==null?void 0:(L=x.actionButton)==null?void 0:(D=L.buttonRenderer)==null?void 0:D.style,Q,J,Z;x=sz3(((Q=this.data)==null?void 0:(J=Q.colorData)==null?void 0:(Z=J.basicColorPaletteData)==null?void 0:Z.backgroundColor)||0);return S&&x};
_.K.computeForcedLightTheme=function(){var x,L,D,S=(x=this.data)==null?void 0:(L=x.actionButton)==null?void 0:(D=L.buttonRenderer)==null?void 0:D.style,Q,J,Z;x=!sz3(((Q=this.data)==null?void 0:(J=Q.colorData)==null?void 0:(Z=J.basicColorPaletteData)==null?void 0:Z.backgroundColor)||0);return S&&x};
_.K.computeHasOverflowButton=function(x){return!!x.overflowButton};
_.K.computeHasTitle=function(x){return!!x.title};
_.K.computeTitleMaxFontSize=function(x){return this.computeHasOverflowButton(x)?28:64};
_.K.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.K.computeIsInfeedModernization=function(){var x,L,D,S,Q=(x=this.data)==null?void 0:(L=x.actionButton)==null?void 0:(D=L.buttonRenderer)==null?void 0:(S=D.colorData)==null?void 0:S.basicColorPaletteData;return(Q==null?void 0:Q.backgroundColor)===452984831||(Q==null?void 0:Q.backgroundColor)===218103808};
$_.prototype.observeDataForCounterfactual=$_.prototype.observeDataForCounterfactual;$_.prototype.observeDataChanged=$_.prototype.observeDataChanged;$_.prototype.observeBasicPalette=$_.prototype.observeBasicPalette;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],$_.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.dK),_.r("design:type",Object)],$_.prototype,"ytdDismissibleItemBehavior",void 0);
_.A([_.b(_.Vi.YtdGuideStateAwareBehavior),_.r("design:type",Object)],$_.prototype,"ytdGuideStateAwareBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],$_.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],$_.prototype,"buttonUpdate",void 0);_.A([_.F({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],$_.prototype,"hasSupplementalText",void 0);_.A([_.F(),_.r("design:type",Object)],$_.prototype,"dismissButtonOverrides",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.r("design:type",Boolean)],$_.prototype,"hasTitle",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.r("design:type",Object)],$_.prototype,"forceDarkTheme",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.r("design:type",Object)],$_.prototype,"forceLightTheme",void 0);_.A([_.F(),_.r("design:type",Object)],$_.prototype,"dynamicTextHeight",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.r("design:type",Object)],$_.prototype,"hasOverflowButton",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.r("design:type",Object)],$_.prototype,"isInfeedModernization",void 0);_.A([_.bN("data.colorData.basicColorPaletteData"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],$_.prototype,"observeBasicPalette",null);
_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],$_.prototype,"observeDataChanged",null);_.A([_.bN("data.isVisible"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],$_.prototype,"observeDataForCounterfactual",null);_.A([_.w({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],$_);
_.q($_,"ytd-banner-promo-renderer",function(){if(OPX!==void 0)return OPX;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return OPX=x},{mode:1});var ZPW;var yjW;var I3$;var E4g=function(){return _.e.apply(this,arguments)||this};
_.p(E4g,_.e);_.A([_.F(),_.r("design:type",Object)],E4g.prototype,"data",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],E4g.prototype,"ytRendererBehavior",void 0);_.A([_.w({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],E4g);
_.q(E4g,"ytd-hashtag-grid-tile-renderer",function(){if(I3$!==void 0)return I3$;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return I3$=x},{mode:1});var rl=function(){return _.e.apply(this,arguments)||this};
_.p(rl,_.e);rl.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
rl.prototype.updateRichGridTrendingHashtagsVisibility=function(){var x,L;if(((x=this.data)==null||!x.isExpanded)&&(L=this.data)!=null&&L.tiles){x=this.data.tiles.length;L=x>this.richGridItemsPerRow?this.richGridItemsPerRow+1:x;var D=Math.ceil(x/L);this.fullyVisibleRows=x%L===1&&D===2?1:Math.min(D,2);this.isShowMoreVisible=this.fullyVisibleRows<D}};
rl.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
rl.prototype.updateRichGridTrendingHashtagsVisibility=rl.prototype.updateRichGridTrendingHashtagsVisibility;_.A([_.F(),_.r("design:type",Object)],rl.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Number)],rl.prototype,"fullyVisibleRows",void 0);_.A([_.F({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],rl.prototype,"isShowMoreVisible",void 0);_.A([_.F({selector:_.A2,value:0}),_.r("design:type",Number)],rl.prototype,"richGridItemsPerRow",void 0);
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],rl.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],rl.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],rl.prototype,"ytdReduxBehavior",void 0);_.A([_.bN("data","richGridItemsPerRow"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],rl.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.A([_.w({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],rl);
_.q(rl,"ytd-hashtag-grid-shelf-renderer",function(){if(yjW!==void 0)return yjW;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return yjW=x},{mode:1});var Ml9;var dRW;var Nd=function(){var x=_.e.apply(this,arguments)||this;x.visibleVideos=[];x.hiddenVideos=[];x.modern=_.u("web_modern_buttons");x.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return x};
_.p(Nd,_.e);_.K=Nd.prototype;_.K.attached=function(){var x=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",x);this.onDarkModeToggledAction(x)};
_.K.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"}}}};
_.K.dataChanged=function(){var x=this;this.requestElementsPerRow();var L,D;this.currentColorPalette=this.isDarkTheme?(L=this.data)==null?void 0:L.darkColorData:(D=this.data)==null?void 0:D.lightColorData;var S;if((S=this.currentColorPalette)==null?0:S.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.So(this,function(){x.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.K.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.K.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.K.computeIsFirstFeedItem=function(x){return x};
_.K.onDarkModeToggledAction=function(x){x!==this.isDarkTheme&&this.set("isDarkTheme",x);this.data&&(this.currentColorPalette=x?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.K.getCurrentLogo=function(x,L){if(x)return L?x.darkLogoImage:x.lightLogoImage};
_.K.computeTitleStyle=function(x){var L;if((L=this.data)!=null&&L.title&&x&&x.textPrimary!==void 0)return"color:"+_.zF(x.textPrimary)+";"};
_.K.computeSubtitleStyle=function(x){var L;if((L=this.data)!=null&&L.subtitle&&x&&x.textSecondary!==void 0)return"color:"+_.zF(x.textSecondary)+";"};
_.K.computeDismissIconStyle=function(x){if(this.data&&this.data.dismissButton&&x&&x.textPrimary!==void 0)return"--yt-button-color:"+_.zF(x.textPrimary)+";"};
_.K.computeOverflowButtonStyle=function(x){if(this.data&&this.data.overflowButton&&x&&x.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.zF(x.textPrimary)+";--yt-spec-icon-active-other:"+_.zF(x.textPrimary)+";"};
_.K.computeBackgroundStyle=function(x){if(x&&this.data){var L="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var D=_.jn((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);D&&(L+='background-image:url("'+D+'");')}x.backgroundColor!==void 0&&(L+="background-color:"+_.XA(x.backgroundColor)+";");return L}};
_.K.computeButton=function(){var x,L=Object.assign({},_.g((x=this.data)==null?void 0:x.showMoreButton,_.y4));if(this.modern&&L){L.style="STYLE_MONO_OUTLINE";var D;if(x=(D=this.currentColorPalette)==null?void 0:D.textPrimary)L.colorData={basicColorPaletteData:{foregroundTitleColor:x,borderColor:x}}}return L};
_.K.shouldShowBottomButton=function(x,L){return!(x==null?0:x.header)&&!(x==null||!x.primaryButton)&&L<3};
_.K.checkExpanded=function(x){this.isExpanded=x&&x.content?this.hiddenVideos.length===0:!0};
_.K.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.K.getLogoHeight=function(x){return this.logoWithPadding(x)?"26":"20"};
_.K.getLogoImageId=function(x){return this.logoWithPadding(x)?"logo-image-with-padding":"logo-image"};
_.K.computeHasSectionHeader=function(x){return!!x.header};
_.K.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var x;if((x=this.data.primaryButton)==null?0:x.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 L;((L=this.data.dismissButton)==null?0:L.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var D,S;((D=this.data)==null?0:(S=D.primaryButton)==null?0:S.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.K.setVisibleVideos=function(x){if(this.data&&this.data.content)if(this.data.content.length){var L=this.data.content.length;this.data.header?x?(this.visibleVideos=this.data.content.slice(0,Math.min(L,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(L,this.slimItemsPerRow),L)):(this.visibleVideos=this.data.content.slice(0,Math.min(L,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(L,this.elementsPerRow),L)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(L,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(L,this.elementsPerRow),L)):(this.visibleVideos=this.data.content.slice(0,Math.min(L,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(L,this.elementsPerRow-1),L))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.K.setHasMovieRenderer=function(){var x;if((x=this.data)!=null&&x.content){var L;this.hasMovieRenderer=!!_.g((L=this.data)==null?void 0:L.content[0],_.unW)}else this.hasMovieRenderer=!1};
_.K.requestElementsPerRow=function(){_.MF(this.hostElement,"yt-request-elements-per-row")};
_.K.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var x=_.O(this.hiddenMediaRenderers),L=x.next();!L.done;L=x.next())L.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(x=_.jr(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&x.focus()}};
_.K.updateTitleSpec=function(){var x;(x=this.data)!=null&&x.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.K.logoWithPadding=function(x){var L,D,S;return(x=(L=this.getCurrentLogo(x,this.isDarkTheme))==null?void 0:(D=L.thumbnails)==null?void 0:(S=D[0])==null?void 0:S.height)&&x%31===0?!0:!1};
_.K.onUpdateElementsPerRowAction=function(x,L,D){x&&this.elementsPerRow!==x&&(this.elementsPerRow=x);D&&this.slimItemsPerRow!==D&&(this.slimItemsPerRow=D)};
Nd.prototype.slimItemsPerRowChanged=Nd.prototype.slimItemsPerRowChanged;Nd.prototype.elementsPerRowChanged=Nd.prototype.elementsPerRowChanged;Nd.prototype.dataChanged=Nd.prototype.dataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Nd.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Nd.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.dK),_.r("design:type",Object)],Nd.prototype,"ytdDismissibleItemBehavior",void 0);
_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],Nd.prototype,"actionHandlerBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],Nd.prototype,"ytdReduxBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Nd.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],Nd.prototype,"currentColorPalette",void 0);_.A([_.F(),_.r("design:type",Array)],Nd.prototype,"visibleVideos",void 0);_.A([_.F(),_.r("design:type",Array)],Nd.prototype,"hiddenVideos",void 0);
_.A([_.F(),_.r("design:type",Object)],Nd.prototype,"primaryButton",void 0);_.A([_.F({reflectToAttribute:!0,value:3}),_.r("design:type",Number)],Nd.prototype,"elementsPerRow",void 0);_.A([_.F({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],Nd.prototype,"isDarkTheme",void 0);_.A([_.F({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],Nd.prototype,"isExpanded",void 0);_.A([_.F({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],Nd.prototype,"largeTitle",void 0);
_.A([_.F({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],Nd.prototype,"hasMovieRenderer",void 0);_.A([_.F(),_.r("design:type",Number)],Nd.prototype,"slimItemsPerRow",void 0);_.A([_.F(),_.r("design:type",Boolean)],Nd.prototype,"showLightVideoMetadata",void 0);_.A([_.F(),_.r("design:type",Boolean)],Nd.prototype,"showDarkVideoMetadata",void 0);_.A([_.F(),_.r("design:type",Number)],Nd.prototype,"videoMetadataColor",void 0);
_.A([_.F({reflectToAttribute:!0,selector:_.qU}),_.r("design:type",Boolean)],Nd.prototype,"miniMode",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.r("design:type",Boolean)],Nd.prototype,"isFirstFeedItem",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.r("design:type",Boolean)],Nd.prototype,"hasSectionHeader",void 0);
_.A([_.F({reflectToAttribute:!0,value:!0}),_.r("design:type",Boolean)],Nd.prototype,"roundedContainer",void 0);_.A([_.sY("#visible-video-container ytd-rich-grid-media"),_.r("design:type",Array)],Nd.prototype,"visibleMediaRenderers",void 0);_.A([_.sY("#hidden-video-container ytd-rich-grid-media"),_.r("design:type",Array)],Nd.prototype,"hiddenMediaRenderers",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Nd.prototype,"modern",void 0);
_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Nd.prototype,"dataChanged",null);_.A([_.bN("elementsPerRow"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Nd.prototype,"elementsPerRowChanged",null);_.A([_.bN("slimItemsPerRow"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Nd.prototype,"slimItemsPerRowChanged",null);
_.A([_.w({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],Nd);
_.q(Nd,"ytd-brand-video-shelf-renderer",function(){if(dRW!==void 0)return dRW;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return dRW=x},{mode:1});var P5q;var fM=function(){var x=_.e.apply(this,arguments)||this;x.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return x};
_.p(fM,_.e);_.K=fM.prototype;_.K.attached=function(){var x=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",x);this.onDarkModeToggledAction(x)};
_.K.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"}}}};
_.K.dataChanged=function(){this.requestElementsPerRow();var x,L;this.currentColorPalette=this.isDarkTheme?(x=this.data)==null?void 0:x.darkColorData:(L=this.data)==null?void 0:L.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.K.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.K.computeIsFirstFeedItem=function(x){return x};
_.K.onDarkModeToggledAction=function(x){x!==this.isDarkTheme&&this.set("isDarkTheme",x);this.data&&(this.currentColorPalette=x?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(x),this.updateButtonPalette())};
_.K.shouldShowThumbnailInMetadata=function(x){return x<=1};
_.K.computeVideoMetadataColor=function(){if(this.data){var x;if((x=this.currentColorPalette)==null?0:x.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.K.computeTitleStyle=function(x){var L;if((L=this.data)!=null&&L.title&&x&&x.textPrimary!==void 0)return"color:"+_.zF(x.textPrimary)+";"};
_.K.computeSubtitleStyle=function(x){var L;if((L=this.data)!=null&&L.subtitle&&x&&x.textSecondary!==void 0)return"color:"+_.zF(x.textSecondary)+";"};
_.K.computeOverflowButtonStyle=function(x){if(this.data&&this.data.overflowButton&&x.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.zF(x.textPrimary)+";--yt-spec-icon-active-other:"+_.zF(x.textPrimary)+";"};
_.K.computeBackgroundStyle=function(x){if(x&&this.data){var L="";x.backgroundColor!==void 0&&(L+="background-color:"+_.XA(x.backgroundColor)+";");return L}};
_.K.computeHasOverflowButton=function(x){return!!x.overflowButton};
_.K.updateButtonPalette=function(){if(this.data){var x;if((x=this.data.primaryButton)==null?0:x.buttonRenderer){var L;if((L=this.currentColorPalette)==null?0:L.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var D;((D=this.currentColorPalette)==null?0:D.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)})}}};
_.K.requestElementsPerRow=function(){_.MF(this.hostElement,"yt-request-elements-per-row")};
_.K.updateTitleSpec=function(){var x;(x=this.data)!=null&&x.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")};
_.K.onUpdateElementsPerRowAction=function(x){x&&this.elementsPerRow!==x&&(this.elementsPerRow=x)};
fM.prototype.elementsPerRowChanged=fM.prototype.elementsPerRowChanged;fM.prototype.dataChanged=fM.prototype.dataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],fM.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],fM.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.dK),_.r("design:type",Object)],fM.prototype,"ytdDismissibleItemBehavior",void 0);
_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],fM.prototype,"actionHandlerBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],fM.prototype,"ytdReduxBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],fM.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],fM.prototype,"currentColorPalette",void 0);_.A([_.F(),_.r("design:type",Object)],fM.prototype,"primaryButton",void 0);
_.A([_.F({reflectToAttribute:!0,value:3}),_.r("design:type",Number)],fM.prototype,"elementsPerRow",void 0);_.A([_.F({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],fM.prototype,"isDarkTheme",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",String)],fM.prototype,"titleSize",void 0);_.A([_.F(),_.r("design:type",Number)],fM.prototype,"videoMetadataColor",void 0);_.A([_.F({reflectToAttribute:!0,selector:_.qU}),_.r("design:type",Boolean)],fM.prototype,"miniMode",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.r("design:type",Boolean)],fM.prototype,"isFirstFeedItem",void 0);_.A([_.F({reflectToAttribute:!0,value:!0}),_.r("design:type",Boolean)],fM.prototype,"roundedContainer",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.r("design:type",Boolean)],fM.prototype,"hasOverflowButton",void 0);
_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],fM.prototype,"dataChanged",null);_.A([_.bN("elementsPerRow"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],fM.prototype,"elementsPerRowChanged",null);_.A([_.w({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],fM);
_.q(fM,"ytd-brand-video-singleton-renderer",function(){if(P5q!==void 0)return P5q;var x=document.createElement("template");_.m(x,'\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>');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return P5q=x},{mode:_.Vm("kevlar_poly_si_batch_j070")?1:2});var jJs;var v4q=_.B(function(x){var L=x.data;return _.M(_.Ku,{data:function(){return L().thumbnail},
alt:"",className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnailImage",targetHeight:function(){a:switch(L().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var D=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":D=88;break a;default:D=88}return D},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return L().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"fm"),hkX=_.B(function(x){var L=x.metadataRow;
var D=x.delimiter;return _.M(_.R1,{each:function(){return L().textParts||[]},
keyBy:"INDEX"},function(S,Q){return _.M(_.I1,null,_.M(_.kP,{text:S,noWrap:!0,userInput:!0}),_.M(VlG,{delimiter:D,max:function(){return L().textParts.length},
index:Q}))})},"gm"),VlG=_.B(function(x){var L=x.delimiter;
var D=x.max;var S=x.index;return _.M(_.d,{cond:function(){return(L==null?void 0:L())&&D()-1>S()},
then:function(){return _.M("span",null,L)}})},"hm"),HPg=_.B(function(x){var L=x.data;
x={};return _.M("yt-profile-page-header-information-view-model",{class:_.gF("profilePageHeaderInformationViewModelHost",(x.profilePageHeaderInformationViewModelMobile=!1,x))},_.M(_.d,{cond:function(){return L().onTap},
then:function(){return _.M(_.lr,{className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail",command:function(){return _.fI(L().onTap)}},_.M(_.Fj,{data:function(){return L().thumbnail}},{profilePageHeaderThumbnailViewModel:v4q}))},
else:function(){return _.M("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail"},_.M(_.Fj,{data:function(){return L().thumbnail}},{profilePageHeaderThumbnailViewModel:v4q}))}}),_.M("div",{class:"profilePageHeaderInformationViewModelFlexContainer"},_.M(_.d,{cond:function(){return L().onTap},
then:function(){return _.M(_.Fj,{data:function(){return L().title}},{profilePageHeaderTitleViewModel:function(D){var S=D.data;
return _.M(_.lr,{className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle",command:function(){return _.fI(S().onTap)}},_.M(_.kP,{text:function(){return S().title}}))}})},
else:function(){return _.M(_.Fj,{data:function(){return L().title}},{profilePageHeaderTitleViewModel:function(D){var S=D.data;
return _.M(_.kP,{text:function(){return S().title},
className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle"})}})}}),_.M(_.Fj,{data:function(){return L().metadata}},{profilePageHeaderMetadataViewModel:function(D){var S=D.data;
return _.M(_.d,{cond:function(){return S().metadataRows},
then:function(Q){return _.M("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderMetadata"},_.M(_.R1,{each:Q,keyBy:"INDEX"},function(J,Z){return _.M(_.I1,null,_.M(hkX,{metadataRow:J,delimiter:" \u2022 "}),_.M(VlG,{delimiter:" \u2022 ",max:function(){return Q().length},
index:Z}))}))}})}})))},"im");
HPg.idomCompat=!0;_.dF(HPg,"yt-profile-page-header-information-view-model",{props:{data:_.pJ}});var op=function(){return _.e.apply(this,arguments)||this};
_.p(op,_.e);op.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],op.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],op.prototype,"data",void 0);_.A([_.w({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],op);
_.q(op,"ytd-effect-pivot-header-view-model",function(){if(jJs!==void 0)return jJs;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return jJs=
x},{mode:1});var uwl;var ap=function(){return _.e.apply(this,arguments)||this};
_.p(ap,_.e);ap.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],ap.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],ap.prototype,"data",void 0);_.A([_.w({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],ap);
_.q(ap,"ytd-source-pivot-header-renderer",function(){if(uwl!==void 0)return uwl;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return uwl=x},{mode:1});_.g4W=_.B(function(x){var L=x.data;var D=function(){var S;return _.qb((S=L())==null?void 0:S.rendererContext)};
x={};return _.M("content-list-item-view-model",{el:_.Zt(_.AL(function(){return L().rendererContext})),
class:_.gF("ytContentListItemViewModelHost",(x.ytContentListItemViewModelTappable=D,x)),role:function(){return D()?"listitem":void 0},
tabindex:function(){return D()?0:void 0}},_.M("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.M("div",{class:"ytContentListItemViewModelImageContainer"},_.M(_.d,{cond:function(){return L().image},
then:function(S){return _.M(_.Ku,{data:S,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.M(_.Fj,{data:function(){var S;
return(S=L())==null?void 0:S.avatar}},{avatarViewModel:_.O0})),_.M("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.M("div",{class:_.gF("ytContentListItemViewModelTitle",function(){a:{switch(L().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var S="ytContentListItemViewModelProminentTitle";
break a}S=void 0}return S})},_.M(_.kP,{text:function(){return L().title}})),_.M("div",{class:"ytContentListItemViewModelMetadata"},_.M(_.Fj,{data:function(){return L().metadata}},{contentMetadataViewModel:function(S){return _.M(_.lu,{data:S.data,
layout:1})}})))),_.M("div",{class:"ytContentListItemViewModelActionButton"},_.M(_.Fj,{data:function(){var S;
return(S=L())==null?void 0:S.actionButton}},{buttonViewModel:_.qP,
toggleButtonViewModel:_.JT})))},"jm");var ko$=_.B(function(x){var L=function(){return x.data().background},D=function(){return x.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},S=function(){return x.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"};
return _.M("yt-card-view-model",{el:_.Zt(_.AL(function(){return x.data().rendererContext})),
class:_.gF("ytCardViewModelHost",x.className)},_.M(_.U0,{contentId:function(){return x.data().contentId}},function(){return _.M("div",{class:_.gF("ytCardViewModelCardViewModelInner",function(){var Q;
return wr3(x.data().cardStyle,(Q=x.isSelected)==null?void 0:Q.call(x))},function(){if(x.isSelected===void 0){var Q;
a:{switch((Q=x.data().cardState)==null?void 0:Q.selectionState){case "CARD_SELECTION_STATE_SELECTED":Q="ytCardViewModelSelected";break a}Q=void 0}return Q}})},_.M(_.Fj,{data:L},{cinematicContainerViewModel:function(Q){return _.M(_.cv2,{data:Q.data})}}),_.M("div",{class:"ytCardViewModelContentWrapper"},_.M(_.d,{cond:function(){return!D()},
then:function(){var Q={};return _.M("div",{class:"ytCardViewModelTopContentContainer"},_.M("div",{class:"ytCardViewModelTopContent"},_.M(_.Fj,{data:function(){return x.data().topContent}},{contentListItemViewModel:function(J){return _.M(_.g4W,{data:J.data})}})),_.M("div",{class:_.gF("ytCardViewModelInlineTrailingAction",(Q.ytCardViewModelInlineCenterTrailingAction=S,Q))},_.M(_.Fj,{data:function(){return x.data().trailingAction}},{buttonViewModel:function(J){return _.M(_.qP,{data:J.data})}})))}}),
_.M("div",{class:"ytCardViewModelBodyContent"},_.M(_.Fj,{data:function(){return x.data().bodyContent}},{contentListItemViewModel:_.g4W,
listItemViewModel:_.Ij,linearLayoutViewModel:_.ID2,descriptionPreviewViewModel:_.qZ}))),_.M(_.d,{cond:function(){return D()},
then:function(){return _.M("div",{class:"ytCardViewModelOverlayTrailingAction"},_.M(_.Fj,{data:function(){return x.data().trailingAction}},{buttonViewModel:function(Q){return _.M(_.qP,{data:Q.data})}}))}}))}))},"km");_.dF(ko$,"yt-card-view-model",{props:{data:_.pJ,className:_.pJ,isSelected:_.pJ}});var r$q=_.Uu9.talkToRecsStateSelector;_.dF(_.B(function(x){var L=function(){return _.g(x.data().flowRoot,XrI)};
_.wO(function(){var D=L(),S=function(){},Q=function(){};
if(D){var J,Z,y,E=((y=_.g((J=L())==null?void 0:(Z=J.steps)==null?void 0:Z[0],_.zd))==null?void 0:y.stepId)||"";qPq(D,E);S=$DY(D);Q=N3I(D)}_.wH(function(){var P=L();P&&_.Jd().dispatch(_.TR("flowStateEntity",P.flowStateEntityKey));S();S=function(){};
Q();Q=function(){}})});
return _.M("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.M(_.U0,{contentId:function(){return x.data().contentId}},function(){return _.M("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.M(_.d,{cond:L,
then:function(D){return _.M(_.$u9,{data:D})}}))}))},"lm"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.pJ}});_.dF(_.B(function(){return _.M("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.M("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.M("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.M(_.$FX,null)),_.M(_.zar,{data:{rows:1},isExploreHub:!0}))},"mm"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.dF(_.B(function(x){var L=x.data;var D=x.standardUnitMinWidth;x=_.O((0,_.twd)(L));var S=x.next().value,Q=x.next().value,J=function(){var y,E=(y=S())==null?void 0:y.contents;return E==null||E.length===0},Z=function(){Q(Object.assign({},S(),{contents:[]}))};
return _.M("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:_.Zt(_.yB({showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var y=_.g(L().chipsShelf,c$l);if(y!=null&&y!=null&&y.autoselectChipOnVisible){var E,P,v=_.g(y==null?void 0:(E=y.contents)==null?void 0:E[(P=y.autoselectedChipIndex)!=null?P:0],_.P5);v&&v.tapCommand&&_.Xf(v.tapCommand)}}}))},_.M(_.U0,{contentId:function(){return L().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.M("div",null,_.M("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.M(_.Fj,{data:function(){return L().header}},{sectionHeaderViewModel:function(y){return _.M(_.AN,{data:y.data,
disableHorizontalPadding:!0})}})),_.M("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.M(_.Fj,{data:function(){return L().chipsShelf}},{chipsShelfViewModel:function(y){return _.M(_.Zy,{data:y.data,
callback:Z,selectionBehavior:1})}})),_.M("div",null,_.M(_.d,{cond:J,
then:function(){return _.M("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.M(_.zar,{data:{rows:1},isExploreHub:!0}))}}),_.M(_.Fj,{data:function(){var y;
return(y=S())==null?void 0:y.contents}},{richShelfRenderer:function(y){return _.M(_.JUd,{data:y.data,
isInnerShelf:!0,standardUnitMinWidth:D})}})))}))},"nm"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.pJ,
standardUnitMinWidth:_.pJ}});var zv=function(){return _.e.apply(this,arguments)||this};
_.p(zv,_.e);
zv.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}}};
zv.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.A([_.b(_.EG),_.r("design:type",Object)],zv.prototype,"ytdReduxBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],zv.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.HS),_.r("design:type",Object)],zv.prototype,"ytContinuationHandlerBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],zv.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],zv.prototype,"data",void 0);
_.A([_.F(),_.r("design:type",Number)],zv.prototype,"standardUnitMinWidth",void 0);_.A([_.w({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],zv);
_.q(zv,"ytd-rich-section-renderer",function(){if(Ml9!==void 0)return Ml9;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return Ml9=x},{mode:_.Vm("kevlar_poly_si_batch_j029")?
1:2});_.dF(_.J6$,"yt-profile-identity-info-view-model",{props:{data:_.pJ,hideDivider:_.pJ,isChannelInfoCard:_.pJ}});_.dF(_.J$W,"yt-page-header-view-model",{props:{data:_.pJ,noPadding:_.pJ,enableBanner:_.pJ,cinematicContainerTopbarOffset:_.pJ,allowCinematicContainerOverflow:_.pJ,displayAsSidebar:_.pJ,displayAsPanel:_.pJ,alwaysUseMediumTextDescription:_.pJ}});_.dF(_.B(function(x){var L=x.data;var D=function(){var Q;return(Q=L().numColumns)!=null?Q:2},S=function(){return D()>1?3:2};
x={};return _.M("ytd-rich-grid-group",{class:_.gF("ytdRichGridGroupHost",(x.ytdRichGridGroupHostFirstColumn=function(){return L().colIndex===0},x)),
style:_.bc({"--ytd-rich-grid-group-num-columns":D,"--ytd-rich-grid-items-per-group":S})},_.M("div",{class:"ytdRichGridGroupContents"},_.M(_.Fj,{data:function(){var Q;return(Q=L().contents)==null?void 0:Q.slice(0,S())}},{richItemRenderer:function(Q){return _.M(_.SZR,{data:Q.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"om"),"ytd-rich-grid-group",{props:{data:_.pJ}});var Xy=function(){var x=_.e.apply(this,arguments)||this;x.resizeOnObserverInit=!1;x.isInlinePreviewDisabled=_.u("web_disable_inline_preview");x.disableStickyFilterBar=!1;x.transparentBackgroundChipsBar=!1;x.hideChipsBar=!1;x.isWatchDefaultLayout=!0;x.continuationShowButton=!1;x.rowReducedHorizontalMargin=!1;x.useCompactList=!1;x.manualDownloadsPresent=!1;x.smartDownloadsPresent=!1;x.isOnline=!1;x.shouldRenderDownloadsBanner=!1;x.shouldRenderDownloadsBannerUpsell=!1;x.hasOptedIntoSmartDownloads=!1;
x.elementsPerRow=4;x.typographyBump=!1;x.slimItemsPerRow=1;x.pageLoadingFromNavigation=!1;x.resizeObserver=null;x.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"};x.rendererToTagNameMap=new Map(Object.entries(x.contentMapping()).map(function(L){var D=
_.O(L);L=D.next().value;D=D.next().value;return[L,D.component]}));
x.insertedContent=new Map;return x};
_.p(Xy,_.e);_.K=Xy.prototype;_.K.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var x=_.O(_.jr(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),L=x.next();!L.done;L=x.next())L.value.useCompactList=this.useCompactList};
_.K.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var x=_.O(_.jr(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),L=x.next();!L.done;L=x.next())L=L.value,L.sizing=this.sizing,L.typographyBump=this.typographyBump};
_.K.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.K.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]]"}}}};
_.K.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}}};
_.K.attached=function(){document.addEventListener("yt-page-type-changed",_.p$(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.JSC$21957_throttledOnResize=new _.zR(this.resizeObserved,_.dE("rich_grid_resize_delay_ms",50),this)};
_.K.detached=function(){var x;(x=this.resizeObserver)==null||x.disconnect();document.removeEventListener("yt-page-type-changed",_.p$(this,this.onPageChange))};
_.K.insertRichSection=function(x){var L=x.richItemTargetId;x=x.richSectionRendererToInsert;L&&x&&(this.insertedContent.set(L,{content:x,timestamp:Date.now()}),this.reflowContent())};
_.K.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.K.computeIsInlinePreviewEnabled=function(x,L,D){return _.u("web_disable_inline_preview")?!1:!D&&_.HVq({miniplayerIsActive:x,miniplayerPlaybackState:L})};
_.K.computeSizing=function(){var x=_.kch(this.data);if(x||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return x?this.useCompactList?"COMPACT":x:this.miniMode?"COMPACT":"STANDARD"};
_.K.updateItemMinAndMaxWidth=function(){var x=_.dE("rich_grid_max_item_width",500);x>0&&_.uN(this.hostElement,{"--ytd-rich-grid-item-max-width":x+"px"});var L;x=this.getRichItemMinWidth((L=this.hostElement)==null?void 0:L.clientWidth);x>0&&_.uN(this.hostElement,{"--ytd-rich-grid-item-min-width":x+"px"})};
_.K.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.K.resizeObserved=function(){_.P$(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.K.onPageChange=function(){var x=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.P$(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.WW.addJob(function(){x.pageLoadingFromNavigation=!1;x.setMasthead();x.maybeSetBigYoodle();x.forceRefreshAndLog();x.terminateVideoPreview()},8)):this.mastheadData&&(this.mastheadData=void 0)};
_.K.dataChanged=function(){var x=this;_.P$(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.So(this,function(){x.updateRichItemGridPositions();x.contentsElement&&_.uN(x.hostElement,{"--ytd-rich-grid-content-offset-top":x.contentsElement.offsetTop+"px"})}),this.initResizeObserver())};
_.K.initResizeObserver=function(){var x=this;if(window.ResizeObserver){var L;(L=this.resizeObserver)==null||L.disconnect();var D=!1;this.resizeObserver=new ResizeObserver(function(){if(D){var S;(S=x.resizeObserver)==null||S.disconnect();var Q;(Q=x.JSC$21957_throttledOnResize)==null||Q.fire();requestAnimationFrame(function(){var Z;(Z=x.JSC$21957_throttledOnResize)==null||Z.fire();x.initResizeObserver()})}else if(D=!0,x.resizeOnObserverInit){var J;
(J=x.JSC$21957_throttledOnResize)==null||J.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.K.contentLengthChanged=function(){if(this.containerWidth||this.isShortsPanel)this.reflowContent(),_.P$(this.hostElement,"ytd-rich-item-index-update-action")};
_.K.updateElementsPerRow=function(){_.P$(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.MU({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.MU({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.K.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.K.onRichShelfRendererCollapse=function(x){if(this.shownItems){var L=x.detail;x=this.shownItems.findIndex(function(S){var Q,J;return((J=_.g(S==null?void 0:(Q=S.richSectionRenderer)==null?void 0:Q.content,_.PB_))==null?void 0:J.trackingParams)===L});
var D=x+1;x<0||D>=this.contentsElement.children.length||!this.shownItems[D].richItemRenderer||this.contentsElement.children[D].scrollIntoView({behavior:"smooth",block:"start"})}};
_.K.onSoftReloadPage=function(){this.scrollUpToTop()};
_.K.handleRerenderDownloadsData=function(){_.u("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.K.handlePlaylistRemoveVideosAction=function(x){var L;if(((L=_.g(x,_.RQW))==null?0:L.setVideoIds)&&this.data&&this.data.contents){x=_.g(x,_.RQW).setVideoIds;for(L=this.data.contents.length-1;L>=0;){var D=_.g(this.data.contents[L],_.af);(D=D&&_.g(D.content,_.Zq))&&D.setVideoId&&x.includes(D.setVideoId)&&this.splice("data.contents",L,1);L--}this.updateIndices()}};
_.K.updateIndices=function(){if(this.data&&this.data.contents)for(var x=0;x<this.data.contents.length;x++)this.set("data.contents."+x+".richItemRenderer.index",_.Dv(String(x+1)))};
_.K.hasTopRowInlinePlayableVideoWithEndorsement=function(x){var L;return!((L=x.slice(0,this.getItemsPerRow()))==null||!L.some(function(D){var S;D=_.g(D==null?void 0:(S=D.richItemRenderer)==null?void 0:S.content,_.E6);var Q;return(D==null?void 0:D.inlinePlaybackEndpoint)&&(D==null?void 0:(Q=D.thumbnailOverlays)==null?void 0:Q.some(function(J){return J.thumbnailOverlayEndorsementRenderer}))}))};
_.K.refreshGridLayoutNew=function(x,L,D,S){var Q=S.postsPerRow;var J=S.slimItemsPerRow;var Z=S.gameCardsPerRow;S=S.miniGameCardsPerRow;var y;if((y=this.data)==null||!y.contents||!this.containerWidth)return!1;var E;if((E=this.data.responsiveContainerConfiguration)==null?0:E.responsiveSize){var P=_.twO(this.data.responsiveContainerConfiguration,this.containerWidth),v;y=_.fX(Object.assign({},P,{standardUnitMinWidth:(v=this.data)==null?void 0:v.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&P.isCompactList)}else y=_.fX({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(P=this.data)==null?void 0:P.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=y.typographyBump;v=!1;if(x||this.elementsPerRow!==y.numItems||this.postsPerRow!==Q||this.slimItemsPerRow!==J||this.gameCardsPerRow!==
Z||this.miniGameCardsPerRow!==S||this.gutter!==y.gutter)v=this.elementsPerRow!==y.numItems,this.elementsPerRow=y.numItems,this.postsPerRow=Q,this.slimItemsPerRow=J,this.gameCardsPerRow=Z,this.miniGameCardsPerRow=S,this.gutter=y.gutter,this.itemWidth=y.itemWidth,this.reflowContent(L),_.uN(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(D);this.ytdReduxBehavior.dispatch(_.MU({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:y.maxContainerWidth}));return v};
_.K.refreshGridLayout=function(x,L){var D,S=(D=this.hostElement)==null?void 0:D.clientWidth;this.containerWidth=this.adjustRichGridWidth(S,!0);var Q;if((Q=this.data)==null||!Q.contents||!this.containerWidth)return x&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&(x=!0,this.pendingForceReflow=!1);D=this.getRichItemMinWidth(S);var J=this.isShortsPanel?146:194,Z=this.getMiniGameCardMinWidth(),y=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;S=D=this.calcElementsPerRow(D,
y);(Q=D<=3&&this.miniModeAllowed())&&(D=this.calcElementsPerRow(240,4));var E=this.calcMaxSlimElementsPerRow(D,y,this.isDefaultGrid);y=this.calcElementsPerRow(J,E);var P=this.calcElementsPerRow(this.isCompactGrid?J:154,E);J=this.calcElementsPerRow(this.isCompactGrid?J:Z,E);Z=!1;if(this.sizing)return this.refreshGridLayoutNew(x,L,Q,{postsPerRow:S,slimItemsPerRow:y,gameCardsPerRow:P,miniGameCardsPerRow:J});if(x||this.elementsPerRow!==D||this.postsPerRow!==S||this.slimItemsPerRow!==y||this.gameCardsPerRow!==
P||this.miniGameCardsPerRow!==J)Z=this.elementsPerRow!==D,this.elementsPerRow=D,this.postsPerRow=S,this.slimItemsPerRow=y,this.gameCardsPerRow=P,this.miniGameCardsPerRow=J,this.reflowContent(L),this.updateElementsPerRow(),_.uN(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)&&_.uN(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(Q);_.P$(this.hostElement,"yt-rich-grid-layout-refreshed");return Z};
_.K.getRichItemMinWidth=function(x){var L=_.dE("rich_grid_min_item_width",310);if(!_.u("kevlar_disable_min_width_override")){var D,S;L=(S=(D=this.data)==null?void 0:D.minItemWidth)!=null?S:L}return L+_.jAc(x)};
_.K.calcMaxSlimElementsPerRow=function(x,L,D){return(D===void 0?0:D)?x===1?2:x%2===0?x/2*3:x+2:L*2};
_.K.adjustRichGridWidth=function(x,L){var D=_.u("disable_rich_grid_guide_compensation");if(!this.isWatch&&!D){D=_.yY().resolve(_.ZN(_.vV));var S=D==null?void 0:D.guideElement;if(!(!D||D.getData()||S!=null&&S.opened||D.getMiniGuideVisible()))if(D.canFitPersistentGuide(x)&&D.getGuideExpandsAutomatically()){var Q,J,Z=Number((Q=window.getComputedStyle(this.hostElement))==null?void 0:(J=Q.getPropertyValue("--app-drawer-width"))==null?void 0:J.replace("px",""));x-=Z||0}else if(D.canFitMiniGuide(x)){var y;
Q=Number((Z=window.getComputedStyle(this.hostElement))==null?void 0:(y=Z.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:y.replace("px",""));x-=Q||0}}x>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(x-=L?32:48));return x};
_.K.calcElementsPerRow=function(x,L){var D=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),S=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((D+S)/(x+S))||1,L)};
_.K.reflowContent=function(x){var L=this;if(!this.isReflowing){this.isReflowing=!0;var D,S,Q=!!((D=this.data)==null?0:(S=D.contents)==null?0:S.some(function(y){return _.g(y,_.SK)}));
D=this.getItemsPerRow();var J;S=(J=this.data)==null?void 0:J.reflowOptions;x&&(_.$T("rgr_s"),_.So(this,function(){_.$T("rgr_nrf")}));
x={};(J=_.jr(this.hostElement).querySelector("#contents"))&&(x={contentElement:J,rendererToTagNameMap:this.rendererToTagNameMap});J=(J=this.data.contents)?J.slice():[];Q=G43(J,D,Q,S,this.getRichGridStyle(),x,this.insertedContent);var Z=Q.orderedContent;if(Q=Q.pinnedContentNotShownTargetIds)for(Q=_.O(Q),D=Q.next();!D.done;D=Q.next())this.insertedContent.delete(D.value);Q=function(){L.shownItems=Z;L.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(Z),_.So(this,Q)):Q()}};
_.K.getFirstRowItems=function(x){for(var L=[],D=0;D<x.length;D++){var S=void 0,Q=void 0,J=void 0,Z=void 0,y=void 0,E=void 0;if(((S=x[D])==null?void 0:(Q=S.richItemRenderer)==null?void 0:Q.rowIndex)===0||((J=x[D])==null?void 0:(Z=J.richGroupRenderer)==null?void 0:Z.rowIndex)===0||((y=x[D])==null?void 0:(E=y.richSectionRenderer)==null?void 0:E.rowIndex)===0)L.push(x[D]);else break}return L};
_.K.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.K.resetInsertedContentIfNeeded=function(){(_.u("web_explore_hub_on_hover")||_.u("web_client_explore_hub_on_hover"))&&this.insertedContent.size>0&&(this.insertedContent.clear(),this.reflowContent())};
_.K.handleChipCloudChipSelectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents||this.setCacheAndIsFilteredFeed()};
_.K.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()};
_.K.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.K.terminateVideoPreview=function(){_.P$(this.hostElement,"yt-terminate-video-preview-action")};
_.K.updateRichItemGridPositions=function(){var x={gridData:{gridColumnCount:this.elementsPerRow}},L;((L=this.data)==null?0:L.trackingParams)&&(L=_.A3())&&_.Sm(L,_.CI(this.data.trackingParams),x);_.P$(this.hostElement,"ytd-rich-item-index-update-action")};
_.K.miniModeAllowed=function(){return this.isChannelPage};
_.K.getMiniGameCardMinWidth=function(){return 154};
_.K.updateMiniMode=function(x){this.miniMode=this.miniModeAllowed()&&x;this.ytdReduxBehavior.dispatch(_.MU({type:"SET_RICH_GRID_MINI_MODE",payload:x}))};
_.K.isCurrentPage=function(){return location.pathname===this.pagePath};
_.K.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var x=_.yY().resolve(_.KX).getCurrentPage();x&&x.setScrollTop(0)}};
_.K.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.K.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.K.maybeSetBigYoodle=function(){var x,L=(x=this.data)==null?void 0:x.bigYoodle;this.bigYoodleData!==L&&(this.bigYoodleData=L)};
_.K.setMasthead=function(){var x;((x=this.data)==null?0:x.masthead)?this.mastheadData=this.data.masthead:this.mastheadData=void 0};
_.K.getRichGridStyle=function(){var x,L;return(L=(x=this.data)==null?void 0:x.style)!=null?L:"RICH_GRID_STYLE_UNKNOWN"};
_.K.onIsShortsGridChange=function(){var x=this.ytdReduxBehavior,L=x.dispatch,D=this.getRichGridStyle();L.call(x,_.MU({type:"SET_RICH_GRID_STYLE",payload:D}))};
_.J3.Object.defineProperties(Xy.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var x;return(((x=this.data)==null?void 0:x.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var x;return(((x=this.data)==null?void 0:x.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var x=_.yY().resolve(_.KX).getCurrentPage(),L,D,S;return(((L=this.data)==null?void 0:L.targetId)==="browse-feedFEsfv_audio_pivot"||_.u("web_enable_channel_pivot_panel")&&((D=this.data)==null?void 0:D.targetId)==="browse-feedFEsfv_channel_pivot"||_.u("web_enable_effect_pivot_panel")&&((S=this.data)==null?void 0:S.targetId)==="browse-feedFEsfv_effect_pivot")&&(x==null?void 0:x.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.u("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 x;return!((x=this.data)==null?0:x.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var x;return((x=_.yY().resolve(_.KX).getCurrentPage())==null?void 0:x.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var x;return((x=_.yY().resolve(_.KX).getCurrentPage())==null?void 0:x.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 x;return(((x=this.data)==null?void 0:x.targetId)||"")==="watch-next-feed"}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var x,L,D;return((x=this.data)==null?0:x.enableContentSpecificAspectRatio)||((L=this.data)==null?0:(D=L.responsiveContainerConfiguration)==null?0:D.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.dE("web_continuation_handler_margin",0):0}}});
Xy.prototype.onIsShortsGridChange=Xy.prototype.onIsShortsGridChange;Xy.prototype.onReloadContinuationFinish=Xy.prototype.onReloadContinuationFinish;Xy.prototype.reflowContent=Xy.prototype.reflowContent;Xy.prototype.handleRerenderDownloadsData=Xy.prototype.handleRerenderDownloadsData;Xy.prototype.onRichShelfRendererCollapse=Xy.prototype.onRichShelfRendererCollapse;Xy.prototype.onRequestElementsPerRow=Xy.prototype.onRequestElementsPerRow;Xy.prototype.contentLengthChanged=Xy.prototype.contentLengthChanged;
Xy.prototype.dataChanged=Xy.prototype.dataChanged;Xy.prototype.onSizingChange=Xy.prototype.onSizingChange;Xy.prototype.onUseCompactListChange=Xy.prototype.onUseCompactListChange;_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Xy.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Xy.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.XO),_.r("design:type",Object)],Xy.prototype,"ironResizableBehavior",void 0);
_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],Xy.prototype,"actionHandlerBehavior",void 0);_.A([_.b(_.HS),_.r("design:type",Object)],Xy.prototype,"ytContinuationHandlerBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],Xy.prototype,"componentBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],Xy.prototype,"ytdReduxBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Xy.prototype,"data",void 0);
_.A([_.F({reflectToAttribute:!0,selector:_.qU}),_.r("design:type",Boolean)],Xy.prototype,"miniMode",void 0);_.A([_.F({value:[]}),_.r("design:type",Array)],Xy.prototype,"shownItems",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],Xy.prototype,"isReflowing",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],Xy.prototype,"isFilteredFeed",void 0);_.A([_.F({selector:_.vrc}),_.r("design:type",Boolean)],Xy.prototype,"guideIsExpanded",void 0);
_.A([_.F({selectorArgs:["entitySelectorType"],selector:function(x,L){if(_.u("kevlar_modern_downloads_page")&&L&&L!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(L){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":L=x.entities;var D=_.wD(L),S=_.Ba(L),Q=_.lJf(x),J=_.CoG(x),Z=_.UI4(x),y=_.K$b(L),E=_.em(D),P=_.Wa(L);return _.flb(D,S,y,_.IJ0(L),Q,J,E,P,Z,_.B6h(x),_.NU(x));case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return x=_.wD(x.entities),_.als(x);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return x=
_.Sj0(x.entities),_.zaG(x);default:_.qy(new _.RZ("Error: entitySelectorType defined but not matched in selector.",x,L))}}}),
_.r("design:type",Object)],Xy.prototype,"entityDrivenRichGridData",void 0);_.A([_.F(),_.r("design:type",Object)],Xy.prototype,"resizeOnObserverInit",void 0);_.A([_.F(),_.r("design:type",Object)],Xy.prototype,"bigYoodleData",void 0);_.A([_.F(),_.r("design:type",Object)],Xy.prototype,"mastheadData",void 0);_.A([_.F(),_.r("design:type",Boolean)],Xy.prototype,"isInlinePreviewDisabled",void 0);_.A([_.F(),_.r("design:type",Object)],Xy.prototype,"disableStickyFilterBar",void 0);
_.A([_.F(),_.r("design:type",Object)],Xy.prototype,"transparentBackgroundChipsBar",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Xy.prototype,"hideChipsBar",void 0);_.A([_.F(),_.r("design:type",Object)],Xy.prototype,"isWatchDefaultLayout",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Xy.prototype,"continuationShowButton",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Xy.prototype,"rowReducedHorizontalMargin",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Xy.prototype,"useCompactList",void 0);_.A([_.F({selector:function(x){return _.Ba(x.entities).length>0}}),
_.r("design:type",Object)],Xy.prototype,"manualDownloadsPresent",void 0);_.A([_.F({selector:function(x){return _.wD(x.entities).length>0}}),
_.r("design:type",Object)],Xy.prototype,"smartDownloadsPresent",void 0);_.A([_.F({selector:_.NU}),_.r("design:type",Object)],Xy.prototype,"isOnline",void 0);_.A([_.F({selector:_.CoG}),_.r("design:type",Object)],Xy.prototype,"shouldRenderDownloadsBanner",void 0);_.A([_.F({selector:_.B6h}),_.r("design:type",Object)],Xy.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.A([_.F({selector:_.lJf}),_.r("design:type",Object)],Xy.prototype,"hasOptedIntoSmartDownloads",void 0);
_.A([_.bN("useCompactList"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Xy.prototype,"onUseCompactListChange",null);_.A([_.bN("sizing","typographyBump"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Xy.prototype,"onSizingChange",null);_.A([_.F({selector:_.ky0}),_.r("design:type",Number)],Xy.prototype,"miniplayerPlaybackState",void 0);_.A([_.F({selector:_.$N}),_.r("design:type",Boolean)],Xy.prototype,"miniplayerIsActive",void 0);
_.A([_.F({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.r("design:type",Boolean)],Xy.prototype,"isInlinePreviewEnabled",void 0);_.A([_.F({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.r("design:type",String)],Xy.prototype,"sizing",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Xy.prototype,"elementsPerRow",void 0);
_.A([_.F(),_.r("design:type",Object)],Xy.prototype,"typographyBump",void 0);_.A([_.F(),_.r("design:type",Number)],Xy.prototype,"itemWidth",void 0);_.A([_.F1("#header"),_.r("design:type",HTMLElement)],Xy.prototype,"headerElement",void 0);_.A([_.F1("#contents"),_.r("design:type",HTMLElement)],Xy.prototype,"contentsElement",void 0);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Xy.prototype,"dataChanged",null);
_.A([_.GV("data.contents.length"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Xy.prototype,"contentLengthChanged",null);_.A([_.mX("yt-request-elements-per-row"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Xy.prototype,"onRequestElementsPerRow",null);
_.A([_.mX("yt-rich-shelf-renderer-collapse"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Xy.prototype,"onRichShelfRendererCollapse",null);_.A([_.GV("shouldRenderDownloadsBanner","shouldRenderDownloadsBannerUpsell","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent","isOnline"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Xy.prototype,"handleRerenderDownloadsData",null);
_.A([_.Y("data"),_.r("design:type",String),_.r("design:paramtypes",[])],Xy.prototype,"entitySelectorType",null);_.A([_.F({reflectToAttribute:!0}),_.Y("data.targetId"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Xy.prototype,"isSub",null);_.A([_.F({reflectToAttribute:!0}),_.Y("data.targetId"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Xy.prototype,"isWatch",null);
_.A([_.F({reflectToAttribute:!0}),_.Y("data.targetId"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Xy.prototype,"isShortsPanel",null);_.A([_.F({reflectToAttribute:!0}),_.Y("isWatch"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Xy.prototype,"reducedTopMargin",null);_.A([_.F({reflectToAttribute:!0}),_.Y("data","isWatch","isWatchDefaultLayout"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Xy.prototype,"noTopMargin",null);
_.A([_.F({reflectToAttribute:!0}),_.Y("isInlinePreviewEnabled","shownItems"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Xy.prototype,"topRowEndorsement",null);_.A([_.Y("data.header"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Xy.prototype,"hideHeader",null);_.A([_.mX("yt-rich-grid-reflow"),_.r("design:type",Function),_.r("design:paramtypes",[Boolean]),_.r("design:returntype")],Xy.prototype,"reflowContent",null);
_.A([_.mX("yt-reload-continuation-finish"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Xy.prototype,"onReloadContinuationFinish",null);_.A([_.Y("data"),_.F({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Xy.prototype,"isSlimGrid",null);_.A([_.Y("data"),_.F({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Xy.prototype,"isShortsGrid",null);
_.A([_.Y("data","isSlimGrid","isShortsGrid"),_.F(),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Xy.prototype,"noRichItemGutterMargins",null);_.A([_.Y("data"),_.F({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Xy.prototype,"isShortsGridSlim",null);_.A([_.Y("data"),_.F({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Xy.prototype,"isCompactGrid",null);
_.A([_.Y("data"),_.F({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Xy.prototype,"isDefaultGrid",null);_.A([_.Y("data.targetId"),_.F({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Xy.prototype,"hideChipsBarOnWatch",null);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Xy.prototype,"onIsShortsGridChange",null);
_.A([_.Y("data.enableContentSpecificAspectRatio"),_.F(),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Xy.prototype,"force16By9ThumbnailAspectRatio",null);_.A([_.Y("data"),_.r("design:type",Number),_.r("design:paramtypes",[])],Xy.prototype,"continuationTriggerOffset",null);_.A([_.w({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],Xy);
_.q(Xy,"ytd-rich-grid-renderer",function(){if(ZPW!==void 0)return ZPW;var x=document.createElement("template");_.m(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" hidden="[[hideHeader]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="big-yoodle" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="masthead-ad" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-rich-grid-renderer">\n  <div id="title" class="style-scope ytd-rich-grid-renderer">[[getSimpleString(data.title)]]</div>\n</div>\n<div id="spinner-container" class="style-scope ytd-rich-grid-renderer">\n  <tp-yt-paper-spinner-lite active="[[computeIsReloading()]]" class="style-scope ytd-rich-grid-renderer">\n  </tp-yt-paper-spinner-lite>\n</div>\n<div id="contents" class="style-scope ytd-rich-grid-renderer"></div>\n');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return ZPW=x},{mode:2});var pJg=_.B(function(x){return _.M("yt-feedback-prompt-view-model",{class:_.gF("ytFeedbackPromptViewModelHost",x.className)},_.M(_.d,{cond:function(){return x.data().text},
then:function(L){return _.M(_.kP,{text:L})}}),_.M("div",{class:"ytFeedbackPromptViewModelButtons"},_.M(_.Fj,{data:function(){return x.data().likeButton}},{likeButtonViewModel:_.Ea}),_.M(_.Fj,{data:function(){return x.data().dislikeButton}},{dislikeButtonViewModel:_.Ib})))},"pm");var mR$=_.B(function(x){var L=x.thumbsUp,D=x.thumbsDown,S=x.rightAlignThumbs;x=_.O(_.HB(!1,void 0,"OxPsH"));var Q=x.next().value,J=x.next().value;x=_.O(_.HB(!1,void 0,"V5vWne"));var Z=x.next().value,y=x.next().value;x={};return _.M("div",{class:_.gF("ytwThumbsUpDownThumbs",(x.ytwThumbsUpDownRightAlign=function(){return S==null?void 0:S()},x))},_.M(_.JT,{data:L,
onToggle:function(E){J(E);Z()&&y(!1)},
buttonShapeOverrides:function(){return{toggled:Q()}}}),_.M(_.JT,{data:D,
onToggle:function(E){y(E);Q()&&J(!1)},
buttonShapeOverrides:function(){return{toggled:Z()}}}))},"qm");
mR$.idomCompat=!0;var YbX=_.B(function(x){var L=function(){return x.data().pendingStateEntityKey||""},D=_.mF(_.ic$,L),S=function(){var y;
if(!(y=x.disabled())){var E;y=!((E=D())==null||!E.isPendingResponse)}return y},Q=_.O(_.HB(UDX(""),void 0,"NwQXfe")),J=Q.next().value,Z=Q.next().value;
_.UX(function(){requestAnimationFrame(function(){var y=x.data().onShowAnimationMs||0;y=y>0?UDX("--chip-animation-duration: "+y+"ms;"):UDX("");Z(y)})});
return _.M("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:J},_.M(_.R1,{each:function(){return x.data().chipData||[]},
keyBy:"REFERENCE"},function(y){return _.M(bP3,{data:y,disabled:S,pendingStateKey:L,onError:x.onError})}))},"sm"),bP3=_.B(function(x){var L=_.Sc("button"),D=_.O(_.HB(!0,void 0,"G4GPGe")),S=D.next().value,Q=D.next().value,J=function(){return x.data().text.content},Z=function(){return x.data().transparentWhenLoading},y=_.kO(function(E){var P,v,V,h,H,k,T,G;
return _.I(function(U){switch(U.nextAddress){case 1:E.stopPropagation();if(x.disabled())return U.return();v=String(Math.floor(((P=_.HX())==null?void 0:P.getCurrentTime())||0)*1E3);V="youchat-"+Date.now();h=function(){_.o6(x.data().onClick||{});var l={continuationCommand:{token:x.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},X={inputComposerFormData:{clientMessageId:V,playerOffsetMs:v}};return new Promise(function(f,N){_.o6(l,{form:{formData:X},commandController:{onSuccess:function(z,
xf){f(xf)},
onServerError:function(z,xf){N(xf.error)}}})})};
H=_.fCu(x.pendingStateKey());H(!0);_.mD9("#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");Q(!1);_.HH(U,2);return U.yield(h(),4);case 4:_.nH(U,3);break;case 2:k=_.mW(U),(G=(T=x).onError)==null||G.call(T,k);case 3:H(!1),_.Y2(U)}})});
return _.M(_.d,{cond:S,then:function(){return _.M("div",{class:"ytwYouChatChipsDataChipWrapper"},_.M("button",{el:L,class:"ytwYouChatChipsDataChip","data-disabled":x.disabled,"data-transparent-loading":Z,"on:click":y,tabindex:0},J))}})},"tm");var F0l=_.B(function(x){var L=x.data;var D=x.initiallyExpanded;var S=function(){var P;return(P=L().conversationResourceData)==null?void 0:P.learningGuideData};
x=_.O(_.mU(function(){var P;return(P=D==null?void 0:D())!=null?P:!1}));
var Q=x.next().value,J=x.next().value,Z=function(){J(!0)},y=_.m5(function(){var P,v;
return(v=(P=S())==null?void 0:P.sections)!=null?v:[]},void 0,"aPRmH"),E=_.m5(function(){return y().length>4},void 0,"PUPDyc");
x=_.m5(function(){var P;return!Q()&&E()&&(P=S())!=null&&P.expandButton?y().slice(0,4):y()},void 0,"wUz4Ud");
return _.M("yt-conversation-resource-view-model",{class:_.gF("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.M(_.Fj,{data:x},{expandableMetadataViewModel:_.bZu}),_.M(_.d,{cond:function(){return E()&&!Q()},
then:function(){return _.M("div",{id:"showMoreButton"},_.M(_.Fj,{data:function(){var P;return(P=S())==null?void 0:P.expandButton}},{buttonViewModel:function(P){return _.M(_.qP,{data:P.data,
onClick:Z})}}))}}))},"um");var sJ9=_.B(function(x){var L=function(){var l;return(l=x.data().text)==null?void 0:l.content},D=function(){var l,X;
return(l=x.data().webData)==null?void 0:(X=l.textResult)==null?void 0:X.content},S=_.yY().resolve(_.QO),Q=_.uk(),J=function(){return x.data().chatResponseStyle},Z=function(){return!x.data().transparentBackground},y=function(){return x.data().rightAlignThumbs},E=function(){return x.data().animationUrl==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||x.data().animationUrl==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"},P=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:E()?"0 0 1400 1400":"12 0 48 48"},name:"YOUCHAT_ICON",path:x.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},v=function(){var l;
return x.data().webData||((l=x.data().text)==null?void 0:l.content)||x.data().videoResultsData||x.data().conversationResourceViewModel||x.data().quiz||x.data().richContent},V=function(){return!!x.data().sectionHeader||v()},h=function(){var l;
return(l=x.data().videoResultsData)==null?void 0:l.videoShelf},H=function(){var l;
return(l=x.data().webData)==null?void 0:l.sourcesShelf},k=function(){return J()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||J()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:x.data().thumbsDownViewModel&&x.data().thumbsUpViewModel},T=function(){return _.g(x.data().thumbsUpViewModel,_.j3)},G=function(){return _.g(x.data().thumbsDownViewModel,_.j3)};
_.UX(function(){requestAnimationFrame(function(){var l;(l=x.shouldAnimateIcon)!=null&&l.call(x)&&oLI(Q.lottieEl)})});
var U={};return _.M("you-chat-item-view-model",{class:_.gF("ytwYouChatItemViewModelYouChatItemViewModel",(U.ytwYouChatItemViewModelColumnLayout=function(){return E()},U)),
"data-target-id":function(){return x.data().id||""}},_.M(_.d,{cond:function(){return x.data().removeIcon?!1:V()},
then:function(){var l={};return _.M("div",{"aria-hidden":"true"},_.M(_.fJ,{className:_.gF("ytwYouChatItemViewModelIcon",(l.ytwYouChatItemViewModelRtl=S==="rtl",l.ytwYouChatItemViewModelHidden=function(){return!(x.data().hideIcon||J()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||J()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:V())},l)),
animationName:"YOUCHAT_ICON",data:P,animationRef:Q}))}}),_.M(_.d,{cond:V,
then:function(){var l={};return _.M("div",{class:_.gF("ytwYouChatItemViewModelHost",(l.ytwYouChatItemViewModelHostNoPadding=function(){return!!x.data().sectionHeader&&!v()},l.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return J()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},l.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return J()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},l.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return J()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},
l.ytwYouChatItemViewModelGradientBackground=Z,l)),
role:"alert"},_.M(_.d,{cond:L,then:function(X){return _.M(_.P6,{text:X,wrapCodeBlocks:!0})}}),_.M(_.Fj,{data:function(){return x.data().sectionHeader}},{sectionHeaderViewModel:function(X){var f={};
return _.M(_.AN,{data:X.data,className:_.gF("ytwYouChatItemViewModelSectionHeader",(f.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!x.data().sectionHeader&&!v()},f)),
forceSmallLayout:!0})}}),_.M(_.d,{cond:D,
then:function(X){return _.M(_.P6,{text:X,wrapCodeBlocks:!0})}}),_.M(_.d,{cond:h,
then:function(){return _.M("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.M(_.Fj,{data:function(){var X;return(X=x.data().videoResultsData)==null?void 0:X.videoShelf}},{horizontalShelfViewModel:function(X){return _.M(_.MG,{data:X.data,
hasPeek:!0,disableArrows:!1,protectBackground:!0})}}))}}),_.M(_.d,{cond:H,
then:function(){return _.M("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.M(_.Fj,{data:function(){var X;return(X=x.data().webData)==null?void 0:X.sourcesShelf}},{horizontalShelfViewModel:function(X){return _.M(_.MG,{data:X.data,
hasPeek:!0,disableArrows:!1})}}))}}),_.M(_.Fj,{data:function(){return x.data().conversationResourceViewModel}},{conversationResourceViewModel:F0l}),_.M(_.Fj,{data:function(){return x.data().quiz}},{learningJourneyQuizViewModel:_.wtB}),_.M(_.Fj,{data:function(){return x.data().richContent}},{cardViewModel:ko$,
linearLayoutViewModel:_.ID2}),_.M(_.d,{cond:k,then:function(){return _.M(mR$,{thumbsUp:T,thumbsDown:G,rightAlignThumbs:y})}}))}}),_.M(_.d,{cond:function(){return x.data().chipsData},
then:function(l){return _.M(YbX,{data:l,disabled:x.pending,onError:x.onError})}}))},"wm");
sJ9.idomCompat={callbacks:{onError:!0,onSend:!0}};var TMI=_.B(function(x){var L=function(){return x.data().choiceSelectedText},D=function(){return x.data().hasGradientBackground},S={};
return _.M("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.M(_.d,{cond:L,then:function(){return _.M("div",{class:"ytYouChatUserTurnChoiceSelected"},_.M(_.kP,{text:L}))}}),_.M("div",{class:_.gF("ytYouChatUserTurnUserMessage",(S.ytYouChatUserTurnGradientContainer=D,S.ytYouChatUserTurnDefaultContainer=function(){return!D()},S))},function(){return x.data().text}))},"xm");var ekl=_.B(function(x){var L=_.O((0,_.D7h)(x.data)).next().value;return _.M("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return x.data().targetId||""}},_.M(_.Fj,{data:function(){return x.data().header}},{chipBarViewModel:_.tkh}),_.M(_.Fj,{data:function(){return L().contents}},{accordionViewModel:_.AvQ,
alertBannerViewModel:_.OQi,chatLoadingViewModel:_.r_W,chatUserTurnViewModel:TMI,feedbackPromptViewModel:pJg,gridShelfViewModel:function(D){return _.M(_.JvC,{data:D.data,shouldUseOwnContainerSize:!0})},
learningJourneyLoaderViewModel:_.CRr,linearLayoutViewModel:_.ID2,lockupViewModel:function(D){return _.M(_.qr,{data:D.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:x.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
sectionHeaderViewModel:_.AN,videoOverviewViewModel:_.XtW,youChatItemViewModel:function(D){return _.M(sJ9,{data:D.data,pending:!1})}}))},"ym");_.dF(_.B(function(x){var L=_.O((0,_.D7h)(x.data)).next().value,D=_.x3("yt-section-list-renderer"),S=_.O(_.HB(void 0,void 0,"boqAXd")),Q=S.next().value,J=S.next().value,Z=function(){var y;return _.g((y=x.data().sectionListLayoutConfiguration)==null?void 0:y.layoutConfiguration,nL5)};
_.wO(function(){var y,E=(y=D.value)==null?void 0:y.clientWidth;if(Z()){y=Z();var P=y.responsiveSize;E=E<528?"CONTAINER_SIZE_NARROW":E<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE";b:{var v=_.O(y.responsiveMap||[]);for(var V=v.next();!V.done;V=v.next())if(V=V.value,V.containerSize===E){v=V.containerType;break b}v=void 0}if(v&&P){b:{if(v==="CONTAINER_TYPE_VERTICAL_LIST")if(P==="RESPONSIVE_SIZE_STANDARD"){if(E!=="CONTAINER_SIZE_NARROW"){V="50%";break b}}else{V=E==="CONTAINER_SIZE_NARROW"?"50%":
"33.3%";break b}V=void 0}y={responsiveSize:P,containerSize:E,containerType:v,force16By9ThumbnailAspectRatio:!y.enableContentSpecificAspectRatio,contentPreviewWidth:V,fullbleed:(v==="CONTAINER_TYPE_VERTICAL_LIST"||v==="CONTAINER_TYPE_GRID")&&E==="CONTAINER_SIZE_NARROW"&&!1}}else y=void 0}else y=void 0;J(y)});
return _.M("yt-section-list-renderer",{class:_.gF("ytSectionListRendererHost",x.className),el:D,"data-target-id":function(){return x.data().targetId||""}},_.M(_.Fj,{data:function(){return L().contents}},{itemSectionRenderer:function(y){return _.M(ekl,{data:y.data,
containerLayoutConfig:Q})}}))},"zm"),"yt-section-list-renderer",{props:{data:_.pJ,
className:_.Il}});var Rks;var Gol;var C5$=function(){return _.e.apply(this,arguments)||this};
_.p(C5$,_.e);_.A([_.F(),_.r("design:type",Object)],C5$.prototype,"data",void 0);_.A([_.oW({is:"yt-alert-renderer",disableElementRegistration:!0})],C5$);
_.q(C5$,"yt-alert-renderer",function(){if(Gol===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;Rks===void 0&&(Rks=document.createElement("template"));var S=Rks;D.call(L,S.content.cloneNode(!0),x.content.firstChild);Gol=x}x=Gol;return x},{mode:2});
}catch(e){_._DumpException(e)}
try{
var Frl;Frl=function(x,L,D,S){D||(x?S&&(S.DOCUMENT_HIDDEN&&document.visibilityState==="hidden"||S.WINDOW_SIZE_CHANGED&&(L.width!==window.innerWidth||L.height!==window.innerHeight)||S.SAFARI_ABORTED_BY_NEW_TRANSITION&&x instanceof DOMException&&x.name==="AbortError"&&x.message.includes("Old view transition aborted by new view transition"))||_.BI(x):_.BI(Error("rj")))};
_.s1$=function(x,L){L=L===void 0?{}:L;var D,S,Q,J,Z,y,E,P,v,V,h,H,k;return _.I(function(T){switch(T.nextAddress){case 1:D=L;S=D.shouldWrap===void 0?!0:D.shouldWrap;Q=D.skipTransitionTimeoutMs===void 0?300:D.skipTransitionTimeoutMs;J=D.beforeTransition;Z=D.afterTransition;if(!S||!document.startViewTransition||document.visibilityState==="hidden")return T.return(x());y={width:window.innerWidth,height:window.innerHeight};E=!1;(P=J)==null||P();_.HH(T,2);v=document.startViewTransition(x);V=setTimeout(function(){v.skipTransition();
E=!0},Q);
return T.yield(v.ready,4);case 4:return clearTimeout(V),T.yield(v.finished,5);case 5:clearTimeout(V);(h=Z)==null||h();_.nH(T,0);break;case 2:H=_.mW(T),(k=Z)==null||k(),Frl(H,y,E,L.ignoredErrors),_.Y2(T)}})};
_.TOu=function(x,L,D){x.persistentPanelContainerMap.set(D,L)};
_.pN=function(){for(var x=Array(36),L=0,D,S=0;S<36;S++)S==8||S==13||S==18||S==23?x[S]="-":S==14?x[S]="4":(L<=2&&(L=33554432+Math.random()*16777216|0),D=L&15,L>>=4,x[S]=_.HFC[S==19?D&3|8:D]);return x.join("")};/*

Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var e1I=_.xI(['<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>']),
R1s=_.DBh(e1I);R1s.setAttribute("style","display: none;");document.head.appendChild(R1s.content);_.ma=_.TtG(function(x){var L=_.pw("DIV");x&&(L.className=x);L.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";x=_.pw("DIV");_.tG2(x,"200px","200px");L.appendChild(x);document.body.appendChild(L);x=L.offsetWidth-L.clientWidth;_.mg(L);return x});var GSu;var CfY;var b3=function(){var x=_.e.apply(this,arguments)||this;x.icon=null;return x};
_.p(b3,_.e);b3.prototype.dismiss=function(){_.MF(this.hostElement,"yt-live-chat-error-message-dismiss")};
b3.prototype.computeIcon=function(x){return x&&x.iconType?"yt-icons:"+x.iconType.toLowerCase():"yt-icons:close"};
_.A([_.F(),_.r("design:type",Object)],b3.prototype,"data",void 0);_.A([_.F({computed:"computeIcon(data.icon)"}),_.r("design:type",Object)],b3.prototype,"icon",void 0);_.A([_.oW({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],b3);
_.q(b3,"yt-live-chat-error-message-renderer",function(){if(CfY===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;GSu===void 0&&(GSu=document.createElement("template"));var S=GSu;D.call(L,S.content.cloneNode(!0),x.content.firstChild);CfY=x}x=CfY;return x},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var S5z,QNN,Jwe,KRN,OUs,Ezw,PQ8,jNv,vzQ,VNi,hUe,HUw,A$,usR,gzU,ki5,pii,meN,bUN,Y5i,FRe,sNi,T8s,eUN,RUw,GiU,CQN,lfz,Uev,wiz,B8e,WRQ,q5f,AwN,$eN,rwN,N8i,ozU,zUs,cwi,nzi,tNv,xT8,iUU,ffN,StU,QTs,JBU,KWN,OZv,ZZ8,yBv,LWz,E2N;
S5z=function(x,L,D,S){var Q=!1,J={contentId:void 0,contentType:"video"};L=_.O(Object.entries(L));for(var Z=L.next();!Z.done;Z=L.next()){var y=_.O(Z.value);Z=y.next().value;y=y.next().value;x.includes(Z)&&!D.has(y)?(J.contentId=y,D.add(y),Q=!0):Z==="contentType"?y==="LOCKUP_CONTENT_TYPE_PLAYLIST"&&(J.contentType="playlist"):typeof y==="object"&&y!==null&&S5z(x,y,D,S)}Q&&S.push(J)};
QNN=function(x,L){return _.u6(x.entities,"liveReactionsDataEntity",L)};
Jwe=function(x,L){x=_.u6(x.entities,"booleanEntity",L);return!(!x||!x.value)};
KRN=function(x,L){var D=_.A3();D&&x&&_.XI(D,_.CI(x),L)};
OUs=function(x,L){return _.u6(x.entities,"timedMarkersListSyncEntity",L)};
_.ZU8=function(x){return x.watch.isWatchActive};
_.ywR=function(x){return _.$O(x)||_.rF(x)||_.aZs(x)};
_.IfN=function(x){return!_.ywR(x)};
_.qD=function(x){return x.watch.watchScrollTop};
Ezw=function(x){return x.watch.isLiveChatCollapsed};
_.MNe=function(){_.u("web_watch_log_theater_mode")&&_.dQ4("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.deQ=function(x,L,D){if(!x.includes("START_TIME_PLACEHOLDER")||!x.includes("END_TIME_PLACEHOLDER"))return x;var S=new Date(0),Q=new Date(0);S.setUTCMilliseconds(L);Q.setUTCMilliseconds(D);return x.replace("START_TIME_PLACEHOLDER",_.t2(S,7)).replace("END_TIME_PLACEHOLDER",_.t2(Q,7))};
PQ8=function(x,L){return _.u6(x.entities,"booleanEntity",L)};
jNv=function(){return function(x){_.Ok(_.TR("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:x}))}};
vzQ=function(x){switch(x){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}};
VNi=function(x,L,D){var S=_.fI(D);x&&L&&S&&x.getPlayerPromise().then(function(Q){_.HN4(S)&&_.wz();(new _.DO(Q)).executeCommand(S,L);_.u("continue_playback_on_desktop_companion_click")||Q.pauseVideo()})};
hUe=function(x){var L=_.Zs(),D;if(D=_.o1("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var S;D=(S=D())==null?void 0:S.layoutId}else D=null;VNi(L,D,x)};
HUw=function(x){var L=_.Zs(),D;if(D=_.o1("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var S;D=(S=D())==null?void 0:S.layoutId}else D=null;VNi(L,D,x)};
A$=function(x,L){var D=x<0?"-":"";x=Math.abs(x);var S=Math.floor(x/3600),Q=Math.floor(x)%3600,J=Math.floor(Q/60);Q=Math.floor(Q)%60;var Z="";(L===void 0?0:L)&&(Z="."+Math.round((x-Math.floor(x))*10));return S>0?D+S+":"+(J<10?"0"+J:""+J)+":"+(Q<10?"0"+Q:""+Q)+Z:D+J+":"+(Q<10?"0"+Q:""+Q)+Z};
usR=function(x){var L=x.match(/[^0-9:\.]/g);if(L&&L.length>0)return null;x=x.split(":");if(x.length===0||x.length>3)return null;L=1;for(var D=0;x.length>0;){var S=x.pop();if(S===void 0)break;var Q=Number(S);if(S===""||isNaN(Q))return null;D+=Q*L;L*=60}return D};
gzU=function(x,L,D,S){x=Math.max(D,x);L=Math.min(L,S-D);x+L>S?(D=S,x=D-L):D=x+L;return{start:x,end:D}};
ki5=function(x,L,D,S,Q,J){x<D?x=D:x+Q>S&&(x=S-Q);L>S&&(L=S);L=Math.min(x+J,Math.max(x+Q,L));return{start:x,end:L}};
pii=function(x,L,D,S,Q,J){L>S?L=S:L-Q<D&&(L=D+Q);x<D&&(x=D);x=Math.min(L-Q,Math.max(L-J,x));return{start:x,end:L}};
meN=function(x){return _.u("web_transcript_cue_id_killswitch")?String(x):"ytd-transcript-renderer_"+x};
bUN=function(x){return _.u("web_transcript_cue_id_killswitch")?!0:x.startsWith("ytd-transcript-renderer")};
Y5i=function(x){var L=_.Zs(),D;if(D=_.o1("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var S;D=(S=D())==null?void 0:S.layoutId}else D=null;VNi(L,D,x)};
FRe=function(x){x.style.height="auto";x.style.height=Math.min(x.scrollHeight||20,80)+"px"};
sNi=function(x,L,D){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:L,hasGradientBackground:D}}],insertByPositionInSection:{sectionTargetId:x,position:"INSERTION_POSITION_LAST"}}}]}}}};
T8s=function(){var x;return String(Math.floor(((x=_.HX())==null?void 0:x.getCurrentTime())||0)*1E3)};
eUN=function(x){var L=_.Zs(),D;D=(D=_.o1("yt.www.ads.eventcache.getLastCompanionData"))?(D=D())&&D.layoutId:null;VNi(L,D,x)};
RUw=function(x){var L=_.Zs(),D;D=(D=_.o1("yt.www.ads.eventcache.getLastCompanionData"))?(D=D())&&D.layoutId:null;VNi(L,D,x)};
GiU=function(x){if(x.simpleText)return[{text:x.simpleText}];var L;return(L=x.runs)!=null?L:[]};
CQN=function(x){var L=x.startEndTimeTemplate,D=x.startTimeUtcMillis;x=x.endTimeUtcMillis;if(L&&D&&x)return _.Dv(_.deQ(_.SR(L),Number(D),Number(x)))};
lfz=function(x,L){var D,S,Q=x==null?void 0:(D=x.viewCount)==null?void 0:(S=D.videoViewCountRenderer)==null?void 0:S.shortViewCount;if(!L&&Q)return Q;var J,Z;return x==null?void 0:(J=x.viewCount)==null?void 0:(Z=J.videoViewCountRenderer)==null?void 0:Z.viewCount};
Uev=function(x,L){var D=x==null?void 0:x.relativeDateText;return!L&&D?[D,!0]:[x==null?void 0:x.dateText,!1]};
wiz=function(x,L,D,S,Q){S=S===void 0?"":S;Q=Q===void 0?!1:Q;var J=lfz(x,L),Z=_.O(Uev(x,L)),y=Z.next().value;Z=Z.next().value;L=L?x==null?void 0:x.sponsorsOnlyFirstTimeLongText:x==null?void 0:x.sponsorsOnlyFirstTimeShortText;var E=[];D&&J&&E.push(J);!D&&Z||!y||E.push(y);x=[Q?x==null?void 0:x.subtitle:void 0].concat(_.lP(E),[L,x==null?void 0:x.stationName,x==null?void 0:x.rating,x?CQN(x):void 0,x==null?void 0:x.upNextProgramText,x==null?void 0:x.superTitleLink]).filter(function(P){return!!P});
D={runs:[]};for(Q=0;Q<x.length;Q++)D.runs.push.apply(D.runs,_.lP(GiU(x[Q]))),Q<x.length-1&&D.runs.push({text:" "+S+" "});return D};
B8e=function(x){return x.filter(function(L){return!_.g(L,_.S3)})};
WRQ=function(x){var L,D,S,Q;if(x=x==null?void 0:(L=x.contents)==null?void 0:(D=L.twoColumnWatchNextResults)==null?void 0:(S=D.results)==null?void 0:(Q=S.results)==null?void 0:Q.contents){var J,Z;return(Z=(J=x.find(function(y){return!!y.videoPrimaryInfoRenderer}))==null?void 0:J.videoPrimaryInfoRenderer)==null?void 0:Z.updatedMetadataEndpoint}};
q5f=function(x,L){var D;return(D=x.sourceConfigs)==null?void 0:D.find(function(S){return S.videoId===L})};
AwN=function(x){return x==="End of video"||x==="End of playlist"};
$eN=function(x){var L,D,S,Q;return(L=x.getWatchNextResponse())==null?void 0:(D=L.contents)==null?void 0:(S=D.twoColumnWatchNextResults)==null?void 0:(Q=S.playlist)==null?void 0:Q.playlist};
rwN=function(x){var L,D,S,Q,J,Z;return(L=$eN(x))==null?void 0:(D=L.playlistButtons)==null?void 0:(S=D.menuRenderer)==null?void 0:(Q=S.topLevelButtons)==null?void 0:(J=Q[0])==null?void 0:(Z=J.playlistLoopButtonRenderer)==null?void 0:Z.playlistLoopStateEntityKey};
N8i=function(x){var L=_.yY().resolve(_.d6),D;return(L=(D=_.g(L.getAutoplayEndpoint(),_.L6))==null?void 0:D.playlistId)&&L===x};
ozU=function(x,L,D,S,Q){function J(){_.WW.cancelJob($L);var Z=iUU(L,D/x.getPlaybackRate()),y=Z.hours,E=Z.minutes;Z=(Z.seconds*1E3||6E4)/x.getPlaybackRate();x.setVideoTimeLeft(ffN(y,E));S&&x.getPlayerState()!==0&&x.setSleepTimerTimeLeft(ffN(y,E,!0));(y>0||E>0)&&!Q&&($L=_.GR(_.WW,J,Z))}
_.WW.cancelJob($L);$L=_.GR(_.WW,J)};
zUs=function(x,L,D){function S(){_.WW.cancelJob(afU);var Q=iUU(L,D),J=Q.hours;Q=Q.minutes;var Z=6E4/x.getPlaybackRate();if(J>0||Q>0)x.setSleepTimerTimeLeft(ffN(J,Q,!0)),afU=_.GR(_.WW,S,Z)}
_.WW.cancelJob(afU);afU=_.GR(_.WW,S)};
cwi=function(x,L){var D=x.getVolume()/(L/500),S=function(Q){_.WW.cancelJob(Xiw);var J=Math.floor(Q-D);x.setVolume(J,!1);J>0&&(Xiw=_.GR(_.WW,function(){S(J)},500))};
_.WW.cancelJob(Xiw);Xiw=_.GR(_.WW,function(){S(x.getVolume())})};
nzi=function(x,L){_.WW.cancelJob(Xiw);L&&x.syncVolume()};
tNv=function(){var x={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.p6("SLEEP_TIMER_DISRUPTED")}}}}};_.yY().resolve(_.E2).resolveCommand(x)};
xT8=function(x){return(x.getDuration()-x.getProgressState().current)*1E3};
iUU=function(x,L){x=x+L-(0,_.y5)();if(x<=0)return{hours:0,minutes:0,seconds:0};var D=new LWz(0,0,0,0,0,0,x);x=D.getHours();L=D.getMinutes();D=D.getSeconds();D!==0&&L++;L!==0&&L%60===0&&(x++,L=0);return{hours:x,minutes:L,seconds:D}};
ffN=function(x,L,D){return x>0&&L>0?D?_.p6("TIME_LEFT_HOURS_MINUTES",{hours:x.toString(),minutes:L.toString()}):_.p6("TIME_HOURS_MINUTES",{hours:x.toString(),minutes:L.toString()}):x>0?D?_.mm("TIME_LEFT_HOURS",x):_.mm("TIME_HOURS",x):D?_.p6("TIME_LEFT_MINUTES",{minutes:L.toString()}):_.p6("TIME_MINUTES",{minutes:L.toString()})};
StU=function(x,L){if(x.timelyActions)return x.timelyActions.find(function(D){var S;return((S=_.g(D,DTz))==null?void 0:S.cueRangeId)===L})};
QTs=function(x){var L=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.ms(x);x.keyMap_.forEach(function(D,S){_.AG(L,S)||this.remove(S)},x)};
JBU=function(x,L){x.reloadContinuationItemsCommandMatcher=L};
KWN=function(){var x=_.yY().resolve(_.KX),L=[];S5z(["videoId","contentId"],x.data,new Set,L);return L};
OZv=function(){return KWN().filter(function(x){return x.contentType==="video"}).map(function(x){return x.contentId}).filter(function(x){return x!==void 0})};
_.r3=function(x,L){x.insertBefore(L,x.childNodes[0]||null)};
ZZ8=function(x){if(x>=48&&x<=57||x>=96&&x<=106||x>=65&&x<=90||_.V6&&x==0)return!0;switch(x){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 _.vN;default:return!1}};
yBv=function(x){if(x.altKey&&!x.ctrlKey||x.metaKey||x.keyCode>=112&&x.keyCode<=123)return!1;if(ZZ8(x.keyCode))return!0;switch(x.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!_.vN;default:return x.keyCode<166||x.keyCode>183}};
LWz=function(x,L,D,S,Q,J,Z){this.date=typeof x==="number"?new Date(x,L||0,D||1,S||0,Q||0,J||0,Z||0):new Date(x&&x.getTime?x.getTime():_.IM())};
_.E9(LWz,_.r_);_.K=LWz.prototype;_.K.getHours=function(){return this.date.getHours()};
_.K.getMinutes=function(){return this.date.getMinutes()};
_.K.getSeconds=function(){return this.date.getSeconds()};
_.K.getMilliseconds=function(){return this.date.getMilliseconds()};
_.K.getUTCDay=function(){return this.date.getUTCDay()};
_.K.getUTCHours=function(){return this.date.getUTCHours()};
_.K.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.K.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.K.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.K.setHours=function(x){this.date.setHours(x)};
_.K.setMinutes=function(x){this.date.setMinutes(x)};
_.K.setSeconds=function(x){this.date.setSeconds(x)};
_.K.setMilliseconds=function(x){this.date.setMilliseconds(x)};
_.K.setUTCHours=function(x){this.date.setUTCHours(x)};
_.K.setUTCMinutes=function(x){this.date.setUTCMinutes(x)};
_.K.setUTCSeconds=function(x){this.date.setUTCSeconds(x)};
_.K.setUTCMilliseconds=function(x){this.date.setUTCMilliseconds(x)};
_.K.add=function(x){_.r_.prototype.add.call(this,x);x.hours&&this.setUTCHours(this.date.getUTCHours()+x.hours);x.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+x.minutes);x.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+x.seconds)};
_.K.JSC$11334_toIsoString=function(x){var L=_.r_.prototype.JSC$11334_toIsoString.call(this,x);return x?L+"T"+_.vM(this.getHours(),2)+":"+_.vM(this.getMinutes(),2)+":"+_.vM(this.getSeconds(),2):L+"T"+_.vM(this.getHours(),2)+_.vM(this.getMinutes(),2)+_.vM(this.getSeconds(),2)};
_.K.equals=function(x){return this.getTime()==x.getTime()};
_.K.toString=function(){return this.JSC$11334_toIsoString()};
_.K.clone=function(){var x=new LWz(this.date);x.firstDayOfWeek_=this.firstDayOfWeek_;x.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return x};
_.IEU=function(x){return _.MU({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:x}})};
E2N=new _.jp("imageTileRenderer");var Mfe=new _.jp("adGridCardCollectionViewModel");var dTQ=new _.jp("carouselTitleViewModel");var PPf=new _.jp("ctaCarouselItemViewModel");var jTR=new _.jp("textFieldViewModel");_.v2N=new _.jp("engagementPanelHeaderShowNavigationButtonCommand");var Vfw=new _.jp("hideEngagementPanelScrimAction");var h0i=new _.jp("setActivePanelItemAction");var HZs=new _.jp("showEngagementPanelScrimAction");var u5U=new _.jp("updateEngagementPanelAction");var g2v=new _.jp("updateSearchInVideoResultsAction");var k65=new _.jp("transcriptCueGroupRenderer");var pH8=new _.jp("transcriptCueRenderer");var mTN=new _.jp("transcriptFooterRenderer");var bZ5=new _.jp("engagementPanelAdSubtitleRenderer");var Yt8=new _.jp("videoDescriptionFantasySectionViewModel");var FWi=new _.jp("deleteClipEngagementPanelCommand");var sTi=new _.jp("loopCommand");var TPN=new _.jp("changeCreatorEndscreenVisibilityCommand");var e0N=new _.jp("liveChatCallForQuestionsRenderer");var R0e=new _.jp("updateTimedMarkersSyncObserverCommand");var DTz=new _.jp("timelyActionViewModel");var G6z=new _.jp("timelyActionsOverlayViewModel");var CP5=new _.jp("repeatChapterCommand");var lEi=new _.jp("watchPlayerOverflowMenuCommand");var UT5=new _.jp("compositeVideoOverlayRenderer");var wHN=new _.jp("sortFilterSubMenuRenderer");var BPR=new _.jp("switchListItemViewModel");var WW8=new _.jp("inputComposerViewModel");var qti=new _.jp("transcriptEditSegmentCommand");var ABi=new _.jp("transcriptUpdateSegmentTextCommand");var $Ti=new _.jp("transcriptSearchBoxRenderer");var rB8=new _.jp("transcriptSegmentListRenderer");var NPz=new _.jp("transcriptSegmentRenderer");_.iZQ=new _.jp("updateDateTextAction");var fER=new _.jp("updateTitleAction");var o2v=new _.jp("updateViewershipAction");var aE5=new _.jp("carouselLockupRenderer");var ND=new _.jp("expandableVideoDescriptionBodyRenderer");var z0e=new _.jp("videoDescriptionHeaderRenderer");var XH5=new _.jp("videoDescriptionYouchatSectionViewModel");_.id=_.dE("kevlar_watch_page_horizontal_margin",24);_.cBe=_.dE("kevlar_watch_page_columns_top_padding",24);_.n25=426+_.id*2;_.fc=_.dE("kevlar_watch_two_column_width_threshold",1E3);_.tfe=_.id*2;_.xp5=_.dE("kevlar_watch_secondary_width",402);_.LoR=_.dE("kevlar_watch_max_player_width",1280);_.Dpi=_.dE("kevlar_watch_flexy_metadata_height",136);_.SqU=_.tfe+310+_.id;_.QDR=_.tfe+360+_.id;var Jci={PAUSE_CHAT:18};var KoN;var O8U;var oz=function(){return _.e.apply(this,arguments)||this};
_.p(oz,_.e);oz.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
oz.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var x=_.g(this.data.button,_.de);x&&(x.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.J3.Object.defineProperties(oz,{template:{configurable:!0,enumerable:!0,get:function(){if(O8U===void 0){var x=document.createElement("template");_.m(x,'\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>');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;KoN===void 0&&(KoN=document.createElement("template"));var S=KoN;D.call(L,S.content.cloneNode(!0),x.content.firstChild);O8U=x}x=O8U;return x}}});
_.A([_.b(_.ds),_.r("design:type",Object)],oz.prototype,"ytLiveChatReduxBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],oz.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F({selectorArgs:["data.enabledEntityKey"],selector:Jwe,observer:"onEnabledChange"}),_.r("design:type",Boolean)],oz.prototype,"enabled",void 0);_.A([_.F(),_.r("design:type",Object)],oz.prototype,"data",void 0);_.A([_.oW({is:"yt-disableable-button-view-model",noInjection:!0})],oz);var Z8f;var ycz;var Ixz=["transVert01","transVert02","transVert03"],ERR="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),az=function(){var x=_.e.apply(this,arguments)||this;x.emojiManager=_.VT;x.isDarkTheme=document.documentElement.hasAttribute("dark");x.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};x.reactionBuckets=[];x.noEmojiIdentifier="NO_EMOJI";return x};
_.p(az,_.e);_.K=az.prototype;_.K.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.K.desktopFountainEmojiSizePxChanged=function(){_.uN(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.K.createUserReactionAnimation=function(x){this.createEmojiAnimation(x,!0)};
_.K.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var x;((x=this.data)==null?0:x.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.TR("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.lP(this.emojiContainer.children)).forEach(function(L){L.remove()})};
_.K.detached=function(){this.cleanupFountain()};
_.K.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var x;this.reactionBuckets=_.wk.unsafeClone((x=this.emojiFountainData)==null?void 0:x.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.K.processEmojiBucket=function(x){var L=this;if(this.reactionBuckets&&!(x>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var D=this.reactionBuckets[x];this.generateEmojiAnimations(D);if(x<this.reactionBuckets.length-1){var S;if(D==null?0:(S=D.duration)==null?0:S.seconds)this.emojiBucketTimerId=setTimeout(function(){L.processEmojiBucket(x+1)},Number(D.duration.seconds)*1E3)}}};
_.K.generateEmojiAnimations=function(x){var L=this,D=this.getRandomEmojiIdFromBucketWithOverride(x);if(D&&D!==this.noEmojiIdentifier){var S=0;x.targetEps?(S=this.linearInterpolateBounded(1,20,100,12,x.emojiSizeIndex||0),this.createEmojiAnimation(D,!1,x.emojiAnimationMs,S),S=this.getEmojiDelayMsFromTargetEps(x.targetEps)):(this.createEmojiAnimation(D),S=this.getEmojiDelayMsFromDistribution(x.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){L.generateEmojiAnimations(x)},S)}};
_.K.getRandomEmojiIdFromBucketWithOverride=function(x){if(!(x&&x.reactionsData&&x.reactionsData.length&&x.totalReactions))return this.noEmojiIdentifier;for(var L=x.totalReactions,D=1,S=_.O(x.reactionsData),Q=S.next();!Q.done;Q=S.next())Q=Q.value,(Q.reactionWeightOverride||Q.reactionWeightOverride===0)&&Q.reactionCount&&(L-=Q.reactionCount,D-=Q.reactionWeightOverride);S=!0;D<0&&(S=!1,L=x.totalReactions,D=1);if(S&&D>0&&L===0)if(D===1){Q=0;for(var J=_.O(x.reactionsData),Z=J.next();!Z.done;Z=J.next())Z=
Z.value,Z.reactionCount&&Z.reactionCount>0&&Q++;Q=1/Q;J=_.O(x.reactionsData);for(Z=J.next();!Z.done;Z=J.next())Z.value.reactionWeightOverride=Q}else for(Q=1/(1-D),J=_.O(x.reactionsData),Z=J.next();!Z.done;Z=J.next())Z=Z.value,Z.reactionWeightOverride&&(Z.reactionWeightOverride*=Q);Q=Math.random();J=0;Z=_.O(x.reactionsData);for(var y=Z.next();!y.done;y=Z.next())if(y=y.value,y.reactionCount&&(J=(y.reactionWeightOverride||y.reactionWeightOverride===0)&&S?J+y.reactionWeightOverride:J+D*y.reactionCount/
L,J>Q&&(y.reactionCount--,x.totalReactions--,y=this.reactionItemToEmojiString(y),y!==this.noEmojiIdentifier)))return y;return this.noEmojiIdentifier};
_.K.reactionItemToEmojiString=function(x){if(x.unicodeEmojiId)return x.unicodeEmojiId;if(x.emoteId)return x.emoteId;if(x.videoReactionType)switch(x.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.K.createEmojiAnimation=function(x,L,D,S){L=L===void 0?!1:L;this.lastEmojiRequestedForTesting=x;var Q=x.startsWith("yt-icons:"),J=_.jQ(this.emojiManager,x);if(J||Q){var Z=document.createElement("emoji");Z.classList.add("yt-emoji-fountain-view-model");Z.classList.add(Ixz[Math.floor(Math.random()*Ixz.length)]);var y=document.createElement("div");y.classList.add("yt-emoji-fountain-view-model");y.classList.add("horizontal-container");y.classList.add(ERR[Math.floor(Math.random()*ERR.length)]);L?(D=document.createElement("div"),
D.classList.add("user-reaction-bubble"),D.classList.add("yt-emoji-fountain-view-model"),y.appendChild(D)):(D&&(Z.style.animationDuration=D+"ms",y.style.animationDuration=D+"ms"),S&&(Z.style.width=S+"px",Z.style.height=S+"px"));Q?(Q=document.createElement("yt-icon"),Q.polymerController.icon=x,S&&(Q.style.width=S+"px",Q.style.height=S+"px"),x=Q):x=this.emojiManager.createEmoji(J,!1);x.classList.add("yt-emoji-fountain-view-model");y.appendChild(x);Z.appendChild(y);this.emojiContainer.appendChild(Z);
Z.addEventListener("animationend",function(){Z.remove()});
var E,P;if((E=this.data)==null?0:(P=E.loggingDirectives)==null?0:P.trackingParams)L=L?_.VC(183501):_.VC(183500),KRN(this.data.loggingDirectives.trackingParams,L),_.xiO(L);setTimeout(function(){Z&&Z.remove()},2E3)}};
_.K.getEmojiDelayMsFromDistribution=function(x){return Math.random()*(x||1)*1E3};
_.K.getEmojiDelayMsFromTargetEps=function(x){return Math.random()*2*(1/x)*1E3};
_.K.linearInterpolateBounded=function(x,L,D,S,Q){Q=Math.min(Math.max(Q,x),D);return(L*(D-Q)+S*(Q-x))/(D-x)};
az.prototype.onEmojiFountainDataEntityUpdate=az.prototype.onEmojiFountainDataEntityUpdate;az.prototype.desktopFountainEmojiSizePxChanged=az.prototype.desktopFountainEmojiSizePxChanged;az.prototype.isActiveChanged=az.prototype.isActiveChanged;_.A([_.F(),_.r("design:type",_.PG)],az.prototype,"emojiManager",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],az.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.ds),_.r("design:type",Object)],az.prototype,"ytLiveChatReduxBehavior",void 0);
_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],az.prototype,"ytActionHandlerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],az.prototype,"data",void 0);_.A([_.F({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(x,L){return _.u6(x.entities,"emojiFountainDataEntity",L)}}),
_.r("design:type",Object)],az.prototype,"emojiFountainData",void 0);_.A([_.F(),_.r("design:type",Boolean)],az.prototype,"isActive",void 0);_.A([_.bN("isActive"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],az.prototype,"isActiveChanged",null);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],az.prototype,"isDarkTheme",void 0);_.A([_.F(),_.r("design:type",String)],az.prototype,"lastEmojiRequestedForTesting",void 0);
_.A([_.F({value:function(){return _.dE("desktop_fountain_emoji_size_px",20)}}),
_.r("design:type",Number)],az.prototype,"desktopFountainEmojiSizePx",void 0);_.A([_.bN("desktopFountainEmojiSizePx"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],az.prototype,"desktopFountainEmojiSizePxChanged",null);_.A([_.F1("#emoji-container"),_.r("design:type",HTMLElement)],az.prototype,"emojiContainer",void 0);
_.A([_.bN("emojiFountainData"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],az.prototype,"onEmojiFountainDataEntityUpdate",null);_.A([_.oW({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],az);
_.q(az,"yt-emoji-fountain-view-model",function(){if(ycz===void 0){var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;Z8f===void 0&&(Z8f=document.createElement("template"));var S=Z8f;D.call(L,S.content.cloneNode(!0),x.content.firstChild);ycz=x}x=ycz;return x},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var Mie;var dpv;var z4=function(){return _.e.apply(this,arguments)||this};
_.p(z4,_.e);z4.prototype.onChoiceChanged=function(){this.data&&_.uN(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
z4.prototype.onChoiceChanged=z4.prototype.onChoiceChanged;_.A([_.F(),_.r("design:type",Object)],z4.prototype,"data",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],z4.prototype,"onChoiceChanged",null);_.A([_.w({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],z4);
_.q(z4,"yt-live-chat-banner-poll-choice",function(){if(dpv===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;Mie===void 0&&(Mie=document.createElement("template"));var S=Mie;D.call(L,S.content.cloneNode(!0),x.content.firstChild);dpv=x}x=dpv;return x},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var P85;var jDz;var Xi=function(){var x=_.e.apply(this,arguments)||this;x.modern=_.u("web_button_rework_with_live");x.small=!1;return x};
_.p(Xi,_.e);Xi.prototype.computeIsSmall=function(){var x;return((x=this.buttonOverrides)==null?void 0:x.size)==="S"};
Xi.prototype.computeId=function(){return this.data&&this.data.targetId};
_.A([_.b(_.P9.YtLiveChatTooltipTargetingBehavior),_.r("design:type",Object)],Xi.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.A([_.F({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.r("design:type",String)],Xi.prototype,"id",void 0);_.A([_.F(),_.r("design:type",Object)],Xi.prototype,"buttonOverrides",void 0);_.A([_.F(),_.r("design:type",Object)],Xi.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Xi.prototype,"modern",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.r("design:type",Object)],Xi.prototype,"small",void 0);_.A([_.w({disableElementRegistration:!0,is:"yt-live-chat-button"})],Xi);
_.q(Xi,"yt-live-chat-button",function(){if(jDz===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;P85===void 0&&(P85=document.createElement("template"));var S=P85;D.call(L,S.content.cloneNode(!0),x.content.firstChild);jDz=x}x=jDz;return x},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var vR5;var Vii;var cr=function(){var x=_.e.apply(this,arguments)||this;x.inCollapsedBanner=!1;x.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};x.questionButtonOverrides={style:"mono",type:"filled"};return x};
_.p(cr,_.e);_.K=cr.prototype;_.K.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]]"}}}}}};
_.K.onContextMenuButtonClick=function(x){this.ytLiveChatItemBehavior.showContextMenu(x)};
_.K.onYtRendererstamperFinished=function(){this.menuButton=_.jr(this.hostElement).querySelector("#menu-button")};
_.K.dataChanged=function(){var x,L;if((L=_.g((x=this.data)==null?void 0:x.overflowMenuButton,_.y4))==null?0:L.command)this.data.contextMenuEndpoint=_.g(this.data.overflowMenuButton,_.y4).command};
_.K.onButtonClick=function(){var x,L=_.g((x=this.data)==null?void 0:x.askQuestionButton,_.y4);if(L){if(L.trackingParams&&(x=_.CI(L.trackingParams))){var D=_.A3();D&&_.L7(D,x)}_.MF(this.hostElement,"innertube-command",L.command)}};
cr.prototype.onYtRendererstamperFinished=cr.prototype.onYtRendererstamperFinished;_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],cr.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.ds),_.r("design:type",Object)],cr.prototype,"ytLiveChatReduxBehavior",void 0);_.A([_.b(_.hT.YtLiveChatItemBehavior),_.r("design:type",_.HG)],cr.prototype,"ytLiveChatItemBehavior",void 0);_.A([_.F({observer:"dataChanged"}),_.r("design:type",Object)],cr.prototype,"data",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],cr.prototype,"inCollapsedBanner",void 0);_.A([_.F(),_.r("design:type",Object)],cr.prototype,"buttonOverrides",void 0);_.A([_.F(),_.r("design:type",Object)],cr.prototype,"questionButtonOverrides",void 0);_.A([_.mX("yt-rendererstamper-finished"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],cr.prototype,"onYtRendererstamperFinished",null);
_.A([_.w({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],cr);
_.q(cr,"yt-live-chat-call-for-questions-renderer",function(){if(Vii===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;vR5===void 0&&(vR5=document.createElement("template"));var S=vR5;D.call(L,S.content.cloneNode(!0),x.content.firstChild);Vii=x}x=Vii;return x},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var h9z={};h9z.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 x=this;window.requestAnimationFrame(function(){x.restoreFocusNode_||(x.restoreFocusNode_=document.activeElement);var L=_.erh(x.hostElement);L.length&&L[L.length-1].focus()})},
isAttachedChanged_:function(x,L){x?this.focusChild_():L&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(x){this.hidden||_.Jq(x).indexOf(this.hostElement)!==-1||(x.stopPropagation(),this.focusChild_())}};var H88;var uZi;var nc=function(){return _.e.apply(this,arguments)||this};
_.p(nc,_.e);nc.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
nc.prototype.onClick=function(x){x.target!==this.confirmButton&&x.target!==this.cancelButton&&(this.hidden=!0)};
_.A([_.F1("#confirm_button"),_.r("design:type",Object)],nc.prototype,"confirmButton",void 0);_.A([_.F1("#cancel_button"),_.r("design:type",Object)],nc.prototype,"cancelButton",void 0);_.A([_.F(),_.r("design:type",gRi)],nc.prototype,"data",void 0);_.A([_.F({value:!0,reflectToAttribute:!0}),_.r("design:type",Boolean)],nc.prototype,"hidden",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],nc.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.b(h9z.YtLiveChatDialogBehavior),_.r("design:type",Object)],nc.prototype,"ytLiveChatDialogBehavior",void 0);_.A([_.oW({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],nc);
var gRi=_.q(nc,"yt-live-chat-dialog-renderer",function(){if(uZi===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;H88===void 0&&(H88=document.createElement("template"));var S=H88;D.call(L,S.content.cloneNode(!0),x.content.firstChild);uZi=x}x=uZi;return x},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var kjU;var pnQ,mpv=function(){if(pnQ!==void 0)return pnQ;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;kjU===void 0&&(kjU=document.createElement("template"));var S=kjU;D.call(L,S.content.cloneNode(!0),x.content.firstChild);return pnQ=x};var b8i;var Yqv;var t$=function(){var x=_.e.apply(this,arguments)||this;x.tooltip=null;x.data=null;x.id="";x.active=!1;x.icon="";x.disabled=!1;x.showTooltip=!1;x.useToggledActiveState=!0;x.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return x};
_.p(t$,_.e);_.K=t$.prototype;
_.K.dataChanged=function(){var x;((x=this.data)==null?0:x.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,_.HP)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var L;if((L=this.data)==null?0:L.disabled)this.disabled=!0};
_.K.computeId=function(x){return x};
_.K.computeIcon=function(x,L){if(!x)return"";if(this.useToggledActiveState)return"yt-icons:"+x.toLowerCase();var D,S;return L&&((D=this.data)==null?0:(S=D.toggledIcon)==null?0:S.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+x.toLowerCase()};
_.K.logPDGEntryPoint=function(){_.rQ0(_.u1("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")};
_.K.immediatelyShowTooltip=function(){var x=_.jr(this.hostElement).querySelector("#tooltip");x.animationDelay=0;x.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};x.show()};
_.K.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.K.onClick=function(x){var L;((L=this.data)==null?0:L.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(),x.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.MF(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.K.computeShowTooltip=function(x,L){return!!(x&&x.tooltip&&L)};
_.K.maybeUpdateTooltipText=function(){var x=this,L;if((L=this.data)==null?0:L.tooltip){var D=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.HP)(x.tooltip).textContent=D},250)}};
_.K.handleLiveChatActions=function(x){var L=this;x.length&&(this.id!=="creator"&&this.id!=="product-picker"||x.forEach(function(D){(D=L.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",D))&&D.durationSec===D.fullDurationSec&&L.startBubble(L.colorFromDecimal(D.startBackgroundColor))}))};
_.K.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.K.startBubble=function(x){_.uN(this.hostElement,{"--yt-live-chat-monetization-button-glow":x});this.hostElement.setAttribute("bubble","")};
_.K.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.K.colorFromDecimal=function(x){typeof x==="string"&&(x=Number(x));return"rgba("+[x>>16&255,x>>8&255,x&255,(x>>24&255)/255].join()+")"};
t$.prototype.onAnimationEnd=t$.prototype.onAnimationEnd;t$.prototype.disabledChanged=t$.prototype.disabledChanged;t$.prototype.dataChanged=t$.prototype.dataChanged;_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],t$.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],t$.prototype,"ytRendererBehavior",void 0);
_.A([_.b(_.P9.YtLiveChatTooltipTargetingBehavior),_.r("design:type",Object)],t$.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],t$.prototype,"data",void 0);_.A([_.F({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.r("design:type",Object)],t$.prototype,"id",void 0);_.A([_.F({notify:!0,reflectToAttribute:!0}),_.r("design:type",Object)],t$.prototype,"active",void 0);
_.A([_.F({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.r("design:type",Object)],t$.prototype,"icon",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],t$.prototype,"disabled",void 0);_.A([_.F({computed:"computeShowTooltip(data, disabled)"}),_.r("design:type",Object)],t$.prototype,"showTooltip",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],t$.prototype,"useToggledActiveState",void 0);
_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],t$.prototype,"dataChanged",null);_.A([_.bN("disabled"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],t$.prototype,"disabledChanged",null);_.A([_.mX("animationend"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],t$.prototype,"onAnimationEnd",null);
_.A([_.oW({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],t$);
_.q(t$,"yt-live-chat-icon-toggle-button-renderer",function(){if(Yqv===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;b8i===void 0&&(b8i=document.createElement("template"));var S=b8i;D.call(L,S.content.cloneNode(!0),x.content.firstChild);Yqv=x}x=Yqv;return x},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var FoQ;var sDw;var x4=function(){return _.e.apply(this,arguments)||this};
_.p(x4,_.e);x4.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.A([_.F(),_.r("design:type",Object)],x4.prototype,"data",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],x4.prototype,"ytRendererstamperBehavior",void 0);_.A([_.w({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],x4);
_.q(x4,"yt-live-chat-message-input-prompt-header-renderer",function(){if(sDw===void 0){var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;FoQ===void 0&&(FoQ=document.createElement("template"));var S=FoQ;D.call(L,S.content.cloneNode(!0),x.content.firstChild);sDw=x}x=sDw;return x},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var Tk5;var e9U;var R9U;var Gjf;var C8i;var lxv;var Upi=function(){return _.e.apply(this,arguments)||this};
_.p(Upi,_.e);_.A([_.F(),_.r("design:type",Object)],Upi.prototype,"data",void 0);_.A([_.oW({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],Upi);
_.q(Upi,"yt-live-chat-message-subtext-renderer",function(){if(lxv===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;C8i===void 0&&(C8i=document.createElement("template"));var S=C8i;D.call(L,S.content.cloneNode(!0),x.content.firstChild);lxv=x}x=lxv;return x},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var LP=function(){var x=_.e.apply(this,arguments)||this;x.subtextOnBottom=!1;x.buttonOverrides={style:"mono",type:"tonal"};return x};
_.p(LP,_.e);LP.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"}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],LP.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],LP.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],LP.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],LP.prototype,"subtextOnBottom",void 0);_.A([_.F(),_.r("design:type",Object)],LP.prototype,"buttonOverrides",void 0);
_.A([_.oW({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],LP);
_.q(LP,"yt-live-chat-message-renderer",function(){if(Gjf===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;R9U===void 0&&(R9U=document.createElement("template"));var S=R9U;D.call(L,S.content.cloneNode(!0),x.content.firstChild);Gjf=x}x=Gjf;return x},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var wnz;var Bk5;var D3=function(){var x=_.e.apply(this,arguments)||this;x.isRemovable=!1;x.hasPrefilledText=!1;x.isInputDirty=!1;x.overCharacterLimit=!1;x.underCharacterLimit=!1;x.showErrorMessage=!1;return x};
_.p(D3,_.e);_.K=D3.prototype;_.K.computeId=function(){return this.data.id};
_.K.computeInputData=function(){return this.data.inputData};
_.K.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.K.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.K.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.K.getLiveChatRichMessageInput=function(){return _.jr(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.K.clearInput=function(){_.jr(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.K.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.K.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.K.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.K.handleTextInputCharCountChanged=function(x){x=x.detail&&x.detail.characterCount;x!==void 0&&(this.characterCount=x,x!==0&&(this.isInputDirty=!0))};
_.K.onInputFocusOut=function(){this.isInputDirty=!0};
_.K.onClickCloseButton=function(){_.MF(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
D3.prototype.handleTextInputCharCountChanged=D3.prototype.handleTextInputCharCountChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],D3.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],D3.prototype,"data",void 0);_.A([_.F({computed:"computeId(data.id)"}),_.r("design:type",String)],D3.prototype,"id",void 0);_.A([_.F({computed:"computeInputData(data.inputData)"}),_.r("design:type",Object)],D3.prototype,"inputData",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.r("design:type",Object)],D3.prototype,"isRemovable",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.r("design:type",Object)],D3.prototype,"hasPrefilledText",void 0);_.A([_.F({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.r("design:type",Number)],D3.prototype,"charactersRemaining",void 0);
_.A([_.F(),_.r("design:type",Number)],D3.prototype,"characterCount",void 0);_.A([_.F(),_.r("design:type",Object)],D3.prototype,"isInputDirty",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.r("design:type",Object)],D3.prototype,"overCharacterLimit",void 0);_.A([_.F({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.r("design:type",Object)],D3.prototype,"underCharacterLimit",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.r("design:type",Object)],D3.prototype,"showErrorMessage",void 0);_.A([_.mX("yt-live-chat-text-input-field-renderer-character-count-changed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],D3.prototype,"handleTextInputCharCountChanged",null);
_.A([_.oW({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],D3);
_.q(D3,"yt-live-chat-poll-editor-input",function(){if(Bk5===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;wnz===void 0&&(wnz=document.createElement("template"));var S=wnz;D.call(L,S.content.cloneNode(!0),x.content.firstChild);Bk5=x}x=Bk5;return x},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var Wos;var qqi;var Aci={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},Sl=function(){var x=_.e.apply(this,arguments)||this;x.modern=_.u("web_button_rework_with_live");x.closeButtonOverrides={iconPosition:"icon-only"};x.startButtonOverrides={style:"mono",type:"filled"};x.addOptionButtonOverrides={style:"mono",type:"text"};return x};
_.p(Sl,_.e);_.K=Sl.prototype;
_.K.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"}}}}};
_.K.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var x;_.g((x=this.data)==null?void 0:x.startButton,_.y4)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.K.computeId=function(){return this.data&&this.data.id||""};
_.K.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.K.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.K.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.K.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.K.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var x=0;x<this.pollEditorInfoWithDefaults.minPollOptions;x++)this.addPollOptionData()};
_.K.getIsValidPoll=function(){var x=this;if(!this.pollEditorInfoWithDefaults)return!1;var L=this.pollEditorInfoWithDefaults,D=L.minPollOptionChars,S=L.maxPollOptionChars,Q=L.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>L.maxPollQuestionChars)return!1;L=_.jr(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(L).every(function(J,Z){J=J.characterCount;!J&&Q[Z]&&(J=x.ytRendererBehavior.getSimpleString(Q[Z]).length);return J!==void 0&&J>=D&&J<=S})};
_.K.isValidPollChanged=function(){var x;_.g((x=this.data)==null?void 0:x.startButton,_.y4)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.K.addPollOptionData=function(){var x=this.pollEditorInfoWithDefaults,L=x.maxPollOptionChars,D=x.optionPlaceholderText,S=x.customOptionPlaceholderText,Q=x.pollOptionData;this.currentNumPollOptions>=x.maxPollOptions||(x={liveChatPollOptionInput:{inputData:{placeholder:S[this.currentNumPollOptions]||D,maxCharacterLimit:L},maxCharacterLimit:L,minCharacterLimit:x.minPollOptionChars,hasPrefilledText:!!S[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=x.minPollOptions}},Q.charCountErrorText&&
(x.liveChatPollOptionInput.charCountErrorText=Q.charCountErrorText),Q.charsRemainingAltLabel&&(x.liveChatPollOptionInput.charsRemainingAltLabel=Q.charsRemainingAltLabel),Q.removeOptionAltText&&(x.liveChatPollOptionInput.removeOptionAltText=Q.removeOptionAltText),this.push("pollOptionsData",x),Q=Array.from(_.jr(_.jr(this.hostElement).querySelector("#poll-options")).children),Q.forEach(function(J,Z){J.polymerController.set("data.id",Z)}),_.jr(Q[Q.length-1]).querySelector("#input").focus())};
_.K.getPollOptionInputValues=function(){var x=this,L=[],D=_.jr(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),S=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(D).forEach(function(Q,J){var Z=null;Q=Q.getLiveChatRichMessageInput();var y;(Q==null?0:(y=Q.textSegments)==null?0:y.length)?Z=_.al(Q):S[J]&&(Z=x.formattedStringToLiveChatRichMessageInput(S[J]));L.push(Z)});
return L};
_.K.requestCreateAndStartPoll=function(x){var L=this.getPollOptionInputValues();if(!L.some(function(S){return!S})){L={optionText:L};
var D=_.jr(_.jr(this.hostElement).querySelector("#poll-question")).firstChild;D&&D.liveChatRichMessageInput&&(L.questionText=_.al(D.liveChatRichMessageInput));_.jq(this.hostElement,[x,L])}};
_.K.selectedChanged=function(){if(this.selected){var x=_.jr(_.jr(this.hostElement).querySelector("#start-button")).firstElementChild;if(x){var L;(L=_.jr(x).querySelector("#button")||_.vP(x).querySelector("button"))==null||L.focus()}}};
_.K.handleTextInputChanged=function(x){var L;((L=x.target)==null?void 0:L.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=x.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.K.handleStartButtonAction=function(x){x.detail.actionName==="yt-service-request"&&(x.stopPropagation(),(x=x.detail.args[1])&&this.requestCreateAndStartPoll(x))};
_.K.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.K.handleServiceRequestCompleted=function(x){this.createPollRequestInFlight=!1;(x=x.detail&&x.detail.data)&&x.success&&(_.MF(this.hostElement,"picker-cancelled"),_.dg(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.K.onCloseClick=function(){_.MF(this.hostElement,"picker-cancelled");_.dg(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.K.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.K.handlePollEditorInputClosed=function(x){var L=this.pollOptionsData.findIndex(function(D){return D.liveChatPollOptionInput.id===x.detail.id});
this.splice("pollOptionsData",L,1);this.isValidPoll=this.getIsValidPoll()};
_.K.onPickerCancelled=function(){this.reset()};
_.K.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var x=_.jr(_.jr(this.hostElement).querySelector("#poll-question")).firstChild;x&&x.setLiveChatRichMessageInput(null);if(x=_.jr(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){x=_.O(Array.from(x));for(var L=x.next();!L.done;L=x.next())L.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.K.formattedStringToLiveChatRichMessageInput=function(x){return x.simpleText?{text_segments:[x.simpleText]}:{text_segments:x.runs}};
_.J3.Object.defineProperties(Sl.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(Aci,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
Sl.prototype.onPickerCancelled=Sl.prototype.onPickerCancelled;Sl.prototype.handlePollEditorInputClosed=Sl.prototype.handlePollEditorInputClosed;Sl.prototype.handleServiceRequestCompleted=Sl.prototype.handleServiceRequestCompleted;Sl.prototype.handleServiceRequestSent=Sl.prototype.handleServiceRequestSent;Sl.prototype.handleTextInputChanged=Sl.prototype.handleTextInputChanged;Sl.prototype.selectedChanged=Sl.prototype.selectedChanged;Sl.prototype.isValidPollChanged=Sl.prototype.isValidPollChanged;
Sl.prototype.shouldInitializePollChanged=Sl.prototype.shouldInitializePollChanged;Sl.prototype.dataChanged=Sl.prototype.dataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Sl.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Sl.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Sl.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Sl.prototype,"modern",void 0);
_.A([_.F(),_.r("design:type",Object)],Sl.prototype,"closeButtonOverrides",void 0);_.A([_.F(),_.r("design:type",Object)],Sl.prototype,"startButtonOverrides",void 0);_.A([_.F(),_.r("design:type",Object)],Sl.prototype,"addOptionButtonOverrides",void 0);_.A([_.F({computed:"computeId(data.id)",reflectToAttribute:!0}),_.r("design:type",String)],Sl.prototype,"id",void 0);_.A([_.F({value:function(){return[]}}),
_.r("design:type",Array)],Sl.prototype,"pollOptionsData",void 0);_.A([_.Y("pollEditorInfoWithDefaults"),_.r("design:type",Object),_.r("design:paramtypes",[])],Sl.prototype,"pollQuestionData",null);_.A([_.F({value:0}),_.r("design:type",Number)],Sl.prototype,"pollQuestionCharacterCount",void 0);_.A([_.Y("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.r("design:type",Object),_.r("design:paramtypes",[])],Sl.prototype,"pollQuestionCharactersRemaining",null);
_.A([_.F({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.r("design:type",Boolean)],Sl.prototype,"overQuestionCharacterLimit",void 0);_.A([_.Y("data.pollEditorInfo"),_.r("design:type",Object),_.r("design:paramtypes",[])],Sl.prototype,"pollEditorInfoWithDefaults",null);_.A([_.F({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.r("design:type",Number)],Sl.prototype,"currentNumPollOptions",void 0);
_.A([_.F({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.r("design:type",Boolean)],Sl.prototype,"hasMaxNumPollOptions",void 0);_.A([_.Y("pollEditorInfoWithDefaults","pollOptionsData"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Sl.prototype,"shouldInitializePoll",null);_.A([_.F(),_.r("design:type",Object)],Sl.prototype,"isValidPoll",void 0);
_.A([_.F({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],Sl.prototype,"createPollRequestInFlight",void 0);_.A([_.F(),_.r("design:type",Object)],Sl.prototype,"selected",void 0);_.A([_.F({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.r("design:type",Boolean)],Sl.prototype,"showQuestionErrorMessage",void 0);
_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Sl.prototype,"dataChanged",null);_.A([_.bN("shouldInitializePoll"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Sl.prototype,"shouldInitializePollChanged",null);_.A([_.bN("isValidPoll"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Sl.prototype,"isValidPollChanged",null);
_.A([_.bN("selected"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Sl.prototype,"selectedChanged",null);_.A([_.mX("yt-live-chat-text-input-field-renderer-character-count-changed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Sl.prototype,"handleTextInputChanged",null);
_.A([_.mX("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Sl.prototype,"handleServiceRequestSent",null);_.A([_.mX("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Sl.prototype,"handleServiceRequestCompleted",null);
_.A([_.mX("yt-live-chat-poll-editor-input-closed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Sl.prototype,"handlePollEditorInputClosed",null);_.A([_.mX("picker-cancelled"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Sl.prototype,"onPickerCancelled",null);_.A([_.oW({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],Sl);
_.q(Sl,"yt-live-chat-poll-editor-panel-renderer",function(){if(qqi===void 0){var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;Wos===void 0&&(Wos=document.createElement("template"));var S=Wos;D.call(L,S.content.cloneNode(!0),x.content.firstChild);qqi=x}x=qqi;return x},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var $pQ;var rcz;var Ql=function(){return _.e.apply(this,arguments)||this};
_.p(Ql,_.e);Ql.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
Ql.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.J3.Object.defineProperties(Ql.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var x,L;return(x=this.data)==null?void 0:(L=x.title)==null?void 0:L.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var x;return _.fI((x=this.data)==null?void 0:x.onTapCommand)}}});
_.A([_.b(_.NP.YtEndpointBehavior),_.r("design:type",Object)],Ql.prototype,"ytEndpointBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Ql.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Ql.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Ql.prototype,"itemId",null);
_.A([_.F({reflectToAttribute:!0}),_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Ql.prototype,"hasPromotion",null);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Ql.prototype,"innertubeCommand",null);_.A([_.oW({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],Ql);
_.q(Ql,"yt-live-chat-product-picker-panel-item-view-model",function(){if(rcz===void 0){var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;$pQ===void 0&&($pQ=document.createElement("template"));var S=$pQ;D.call(L,S.content.cloneNode(!0),x.content.firstChild);rcz=x}x=rcz;return x},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var NkR;var i8N;var Jj=function(){var x=_.e.apply(this,arguments)||this;x.id="product-picker";x.selected=!1;x.closeButtonId="close-button";x.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return x};
_.p(Jj,_.e);_.K=Jj.prototype;_.K.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.K.observeSelected=function(){this.selected&&this.hostElement.focus();var x=_.jr(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");x.length&&x[0].focus()};
_.K.onCloseBuyFlow=function(){_.MF(this.hostElement,"picker-cancelled")};
_.K.onCloseClick=function(){_.MF(this.hostElement,"picker-cancelled");var x;((x=this.data)==null?0:x.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.g(this.data.closeButton,_.de))};
_.K.onCloseEngageWithAudienceEditorPanels=function(){_.MF(this.hostElement,"picker-cancelled")};
Jj.prototype.observeSelected=Jj.prototype.observeSelected;_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],Jj.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Jj.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Jj.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Jj.prototype,"data",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Jj.prototype,"id",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Jj.prototype,"selected",void 0);_.A([_.F(),_.r("design:type",Object)],Jj.prototype,"closeButtonId",void 0);_.A([_.bN("selected"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Jj.prototype,"observeSelected",null);
_.A([_.oW({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],Jj);
_.q(Jj,"yt-live-chat-product-picker-panel-view-model",function(){if(i8N===void 0){var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;NkR===void 0&&(NkR=document.createElement("template"));var S=NkR;D.call(L,S.content.cloneNode(!0),x.content.firstChild);i8N=x}x=i8N;return x},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var fxs;var oRU;var KP=function(){var x=_.e.apply(this,arguments)||this;x.iconId="";x.icon="";x.disabled=!1;x.systemIcons=_.u("kevlar_system_icons");return x};
_.p(KP,_.e);_.K=KP.prototype;_.K.computeIconId=function(x){return x&&x.icon&&x.icon.iconType?x.icon.iconType.toLowerCase():""};
_.K.computeIcon=function(x){return x&&x.icon&&x.icon.iconType?(x=x.icon.iconType.toLowerCase(),(x.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+x):""};
_.K.computeDisabled=function(x){return!!x};
_.K.computeCommand=function(x,L){return L?void 0:x};
_.K.computeTooltip=function(x,L){return L&&x?x:""};
_.K.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.J3.Object.defineProperties(KP.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var x="",L,D,S;if((L=this.data)==null?0:(D=L.text)==null?0:(S=D.runs)==null?0:S.length)x=this.data.text.runs[0].text||"";else{var Q,J;if((Q=this.data)==null?0:(J=Q.text)==null?0:J.simpleText)x=this.data.text.simpleText}var Z,y,E;if((Z=this.data)==null?0:(y=Z.subtext)==null?0:(E=y.runs)==null?0:E.length)x&&(x+=". "),x+=this.data.subtext.runs[0].text||"";else{var P,v;if((P=this.data)==null?0:(v=P.subtext)==
null?0:v.simpleText)x&&(x+=". "),x+=this.data.subtext.simpleText}return x}}});
_.A([_.b(_.NP.YtEndpointBehavior),_.r("design:type",Object)],KP.prototype,"ytEndpointBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],KP.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],KP.prototype,"data",void 0);_.A([_.F({computed:"computeIconId(data)",reflectToAttribute:!0}),_.r("design:type",Object)],KP.prototype,"iconId",void 0);
_.A([_.F({computed:"computeIcon(data)",reflectToAttribute:!0}),_.r("design:type",Object)],KP.prototype,"icon",void 0);_.A([_.F({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.r("design:type",Object)],KP.prototype,"disabled",void 0);_.A([_.F({computed:"computeCommand(data.command, disabled)"}),_.r("design:type",Object)],KP.prototype,"command",void 0);_.A([_.F({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.r("design:type",String)],KP.prototype,"tooltip",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],KP.prototype,"systemIcons",void 0);_.A([_.Y("data.text","data.subtext"),_.F(),_.r("design:type",String),_.r("design:paramtypes",[])],KP.prototype,"ariaLabel",null);_.A([_.oW({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],KP);
_.q(KP,"yt-live-chat-product-button-renderer",function(){if(oRU===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;fxs===void 0&&(fxs=document.createElement("template"));var S=fxs;D.call(L,S.content.cloneNode(!0),x.content.firstChild);oRU=x}x=oRU;return x},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var axv;var z9s;var Ob=function(){var x=_.e.apply(this,arguments)||this;x.selected=!1;x.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 x};
_.p(Ob,_.e);_.K=Ob.prototype;_.K.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"}}}};
_.K.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.K.computeId=function(x){return x.id||""};
_.K.onCloseClick=function(){_.MF(this.hostElement,"picker-cancelled")};
_.K.observeSelected=function(){this.selected&&this.hostElement.focus();var x=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");x.length&&x[0].focus()};
_.K.onCloseBuyFlow=function(){_.MF(this.hostElement,"picker-cancelled")};
_.K.onCloseEngageWithAudienceEditorPanels=function(){_.MF(this.hostElement,"picker-cancelled")};
Ob.prototype.observeSelected=Ob.prototype.observeSelected;_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],Ob.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Ob.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Ob.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Ob.prototype,"data",void 0);
_.A([_.F({computed:"computeId(data)",reflectToAttribute:!0}),_.r("design:type",String)],Ob.prototype,"id",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Ob.prototype,"selected",void 0);_.A([_.bN("selected"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Ob.prototype,"observeSelected",null);_.A([_.oW({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],Ob);
_.q(Ob,"yt-live-chat-product-picker-renderer",function(){if(z9s===void 0){var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;axv===void 0&&(axv=document.createElement("template"));var S=axv;D.call(L,S.content.cloneNode(!0),x.content.firstChild);z9s=x}x=z9s;return x},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var XnN;var cci;var nRU;var tiR;var Z3=function(){return _.e.apply(this,arguments)||this};
_.p(Z3,_.e);Z3.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()};
Z3.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
Z3.prototype.created=function(){this.ids={background:_.pN(),maskOne:_.pN(),maskTwo:_.pN(),gradient:_.pN(),largeBackground:_.pN(),largeGradientOne:_.pN(),largeGradientTwo:_.pN(),largeGradientPath:_.pN()}};
Z3.prototype.maybeLoadAnimationBackground=Z3.prototype.maybeLoadAnimationBackground;_.A([_.F({value:!1}),_.r("design:type",Boolean)],Z3.prototype,"useLargeBackground",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],Z3.prototype,"useAnimationBackground",void 0);_.A([_.F({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.r("design:type",Boolean)],Z3.prototype,"useRegularBackground",void 0);
_.A([_.F(),_.r("design:type",Object)],Z3.prototype,"ids",void 0);_.A([_.F(),_.r("design:type",Object)],Z3.prototype,"lottieAnimation",void 0);_.A([_.F1("#animation-background"),_.r("design:type",HTMLDivElement)],Z3.prototype,"animationBackground",void 0);_.A([_.bN("useAnimationBackground"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Z3.prototype,"maybeLoadAnimationBackground",null);
_.A([_.oW({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],Z3);
_.q(Z3,"yt-live-interactivity-component-background",function(){if(tiR===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;nRU===void 0&&(nRU=document.createElement("template"));var S=nRU;D.call(L,S.content.cloneNode(!0),x.content.firstChild);tiR=x}x=tiR;return x},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var yl=function(){var x=_.e.apply(this,arguments)||this;x.characterCount=0;x.showInputErrorMessage=!1;x.startQnaRequestInFlight=!1;x.modern=_.u("web_button_rework_with_live");x.buttonOverrides={style:"mono",type:"filled"};x.closeButtonOverrides={iconPosition:"icon-only"};x.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return x};
_.p(yl,_.e);_.K=yl.prototype;
_.K.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]]"}}}}}};
_.K.onCharacterCountChanged=function(x){var L,D,S,Q,J=(D=_.g(this==null?void 0:(L=this.data)==null?void 0:L.creatorCallForQuestions,e0N))==null?void 0:(S=D.inputField)==null?void 0:(Q=S.liveChatTextInputFieldRenderer)==null?void 0:Q.maxCharacterLimit,Z,y;J!=null&&(x==null?void 0:(Z=x.detail)==null?void 0:Z.characterCount)!=null&&_.g(this==null?void 0:(y=this.data)==null?void 0:y.startButton,_.y4)&&(L=x.detail.characterCount>J,this.set("data.startButton.buttonRenderer.isDisabled",x.detail.characterCount===
0||L),this.showInputErrorMessage=L)};
_.K.onCloseClick=function(){_.MF(this.hostElement,"picker-cancelled");_.dg(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.K.onPickerCancelled=function(){var x=_.jr(this.hostElement).querySelector("#qna-creator-text-input-field");x&&x.setLiveChatRichMessageInput(null)};
_.K.handleOpenQnaStartPanel=function(){var x=_.jr(this.hostElement).querySelector("#qna-creator-text-input-field");x&&x.focus()};
_.K.handleStartButtonAction=function(x){var L=this;if(x.detail.actionName==="yt-service-request"&&(x.stopPropagation(),x=x.detail.args[1])){var D=_.jr(this.hostElement).querySelector("#qna-creator-text-input-field"),S;(D==null?0:(S=D.liveChatRichMessageInput)==null?0:S.textSegments)&&D.liveChatRichMessageInput.textSegments.length!==0&&(S={rich_message:_.al(D.liveChatRichMessageInput)},_.jq(this.hostElement,[x,S]).then(function(){_.MF(L.hostElement,"picker-cancelled")}))}};
_.K.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.K.handleServiceRequestCompleted=function(x){var L;x=x==null?void 0:(L=x.detail)==null?void 0:L.data;(x==null?0:x.actions)&&x.actions.length>0?this.startQnaRequestInFlight=!1:_.dg(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.K.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
yl.prototype.handleServiceRequestError=yl.prototype.handleServiceRequestError;yl.prototype.handleServiceRequestCompleted=yl.prototype.handleServiceRequestCompleted;yl.prototype.handleServiceRequestSent=yl.prototype.handleServiceRequestSent;yl.prototype.onPickerCancelled=yl.prototype.onPickerCancelled;yl.prototype.onCharacterCountChanged=yl.prototype.onCharacterCountChanged;_.A([_.F(),_.r("design:type",Object)],yl.prototype,"characterCount",void 0);
_.A([_.F(),_.r("design:type",Object)],yl.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],yl.prototype,"showInputErrorMessage",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],yl.prototype,"startQnaRequestInFlight",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],yl.prototype,"modern",void 0);_.A([_.F(),_.r("design:type",Object)],yl.prototype,"buttonOverrides",void 0);
_.A([_.F(),_.r("design:type",Object)],yl.prototype,"closeButtonOverrides",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],yl.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.ds),_.r("design:type",Object)],yl.prototype,"ytLiveChatReduxBehavior",void 0);_.A([_.b(_.hT.YtLiveChatItemBehavior),_.r("design:type",_.HG)],yl.prototype,"ytLiveChatItemBehavior",void 0);
_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],yl.prototype,"ytActionHandlerBehavior",void 0);_.A([_.mX("yt-live-chat-text-input-field-renderer-character-count-changed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],yl.prototype,"onCharacterCountChanged",null);_.A([_.mX("picker-cancelled"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],yl.prototype,"onPickerCancelled",null);
_.A([_.mX("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],yl.prototype,"handleServiceRequestSent",null);_.A([_.mX("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],yl.prototype,"handleServiceRequestCompleted",null);
_.A([_.mX("yt-service-request-error"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],yl.prototype,"handleServiceRequestError",null);_.A([_.w({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],yl);
_.q(yl,"yt-live-chat-qna-start-panel-renderer",function(){if(cci===void 0){var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;XnN===void 0&&(XnN=document.createElement("template"));var S=XnN;D.call(L,S.content.cloneNode(!0),x.content.firstChild);cci=x}x=cci;return x},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var x4v;var Lg5;var IJ=function(){return _.e.apply(this,arguments)||this};
_.p(IJ,_.e);IJ.prototype.dismiss=function(){_.MF(this.hostElement,"yt-live-chat-error-message-dismiss")};
IJ.prototype.edit=function(){_.MF(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.A([_.F(),_.r("design:type",Object)],IJ.prototype,"data",void 0);_.A([_.oW({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],IJ);
_.q(IJ,"yt-live-chat-text-actions-error-message-renderer",function(){if(Lg5===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;x4v===void 0&&(x4v=document.createElement("template"));var S=x4v;D.call(L,S.content.cloneNode(!0),x.content.firstChild);Lg5=x}x=Lg5;return x},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var D4w;var S7v;var QmU;var Jxi;var Eb=function(){var x=_.e.apply(this,arguments)||this;x.isDarkTheme=document.documentElement.hasAttribute("dark");x.newnessDotEligible=!1;return x};
_.p(Eb,_.e);Eb.prototype.sendReaction=function(){var x,L,D=((x=this.data)==null?void 0:x.emojiId)||((L=this.data)==null?void 0:L.emoteId),S;D&&((S=this.data)==null?0:S.shouldTriggerAnimation)&&_.dg(this.hostElement,"yt-create-user-reaction-animation",[D]);var Q;(x=_.fI((Q=this.data)==null?void 0:Q.onTap))&&_.mA(x,this.hostElement);this.showNewnessDot&&_.dg(this.hostElement,"yt-hide-newness-dot")};
Eb.prototype.onClick=function(x){(!x||x.clientX||x.clientY)&&this.sendReaction()};
Eb.prototype.onKeyDown=function(x){x.key!=="Enter"&&x.key!==" "||x.repeat||this.sendReaction()};
_.J3.Object.defineProperties(Eb.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var x,L;return!!(((x=this.data)==null?0:x.emojiId)||((L=this.data)==null?0:L.emoteId))}}});
_.A([_.F(),_.r("design:type",Object)],Eb.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Eb.prototype,"isDarkTheme",void 0);_.A([_.F(),_.r("design:type",Object)],Eb.prototype,"newnessDotEligible",void 0);_.A([_.Y("data.maybeShowNewnessDot"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Eb.prototype,"showNewnessDot",null);_.A([_.Y("data.emojiId","data.emoteId"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Eb.prototype,"useYtImage",null);
_.A([_.oW({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],Eb);
_.q(Eb,"yt-reaction-control-panel-button-view-model",function(){if(Jxi===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;QmU===void 0&&(QmU=document.createElement("template"));var S=QmU;D.call(L,S.content.cloneNode(!0),x.content.firstChild);Jxi=x}x=Jxi;return x},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var KgQ;var Ow8;var MR=function(){var x=_.e.apply(this,arguments)||this;x.reactionControlPanelExpanded=!1;x.isDarkTheme=document.documentElement.hasAttribute("dark");x.newnessDotEligible=!1;return x};
_.p(MR,_.e);_.K=MR.prototype;_.K.expandedButtonsChanged=function(){var x,L;_.uN(this.hostElement,{"--expanded-buttons-height":((L=(x=this.expandedButtonsData)==null?void 0:x.length)!=null?L:0)*36+"px"})};
_.K.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}}};
_.K.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.K.onMouseLeave=function(){var x=this;this.collapseTimer=setTimeout(function(){x.reactionControlPanelExpanded=!1},500)};
_.K.onFocusIn=function(){this.onMouseEnter()};
_.K.onFocusOut=function(){this.onMouseLeave()};
_.K.onCollapsedButtonFocusIn=function(){var x=this;setTimeout(function(){var L;(L=x.expandedButtons.querySelector("button"))==null||L.focus()},100)};
_.K.onCollapsedButtonFocusOut=function(x){x.stopPropagation()};
_.J3.Object.defineProperties(MR.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var x,L;return _.wk.unsafeClone((x=this.liveReactionsData)==null?void 0:x.emojiButtonData)||((L=this.data)==null?void 0:L.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var x;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((x=this.data)==null||!x.maybeShowNewnessDot)}}});
MR.prototype.expandedButtonsChanged=MR.prototype.expandedButtonsChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],MR.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],MR.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.ds),_.r("design:type",Object)],MR.prototype,"ytLiveChatReduxBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],MR.prototype,"data",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],MR.prototype,"reactionControlPanelExpanded",void 0);_.A([_.F({selectorArgs:["data.liveReactionsDataEntityKey"],selector:QNN}),_.r("design:type",Object)],MR.prototype,"liveReactionsData",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],MR.prototype,"isDarkTheme",void 0);_.A([_.F(),_.r("design:type",Object)],MR.prototype,"newnessDotEligible",void 0);
_.A([_.Y("liveReactionsData","data.expandedButtons"),_.r("design:type",Object),_.r("design:paramtypes",[])],MR.prototype,"expandedButtonsData",null);_.A([_.Y("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.F({reflectToAttribute:!0}),_.r("design:type",Object),_.r("design:paramtypes",[])],MR.prototype,"showNewnessDot",null);_.A([_.F1("#expanded-buttons"),_.r("design:type",HTMLElement)],MR.prototype,"expandedButtons",void 0);
_.A([_.bN("expandedButtonsData"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],MR.prototype,"expandedButtonsChanged",null);_.A([_.oW({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],MR);
_.q(MR,"yt-reaction-control-panel-view-model",function(){if(Ow8===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;KgQ===void 0&&(KgQ=document.createElement("template"));var S=KgQ;D.call(L,S.content.cloneNode(!0),x.content.firstChild);Ow8=x}x=Ow8;return x},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var dM=new _.Ng("yt-live-chat"),Zwi=Date.parse("2024-7-24"),PJ=function(){var x=_.e.apply(this,arguments)||this;x.emojiManager=_.VT;x.newnessDotEligible=!1;x.newnessDotImpressionCounted=!1;x.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return x};
_.p(PJ,_.e);_.K=PJ.prototype;_.K.emojiCustomizationEnabledChanged=function(){var x;((x=this.data)==null?0:x.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((x=dM.getCreationTime("emoji-customization-count"))&&x<Zwi&&dM.set("emoji-customization-count","0"),x=Number(dM.get("emoji-customization-count"))||0,x<3&&(this.newnessDotEligible=!0,dM.set("emoji-customization-count",(x+1).toString())),this.newnessDotImpressionCounted=!0)};
_.K.hideNewnessDot=function(){this.newnessDotEligible=!1;dM.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.K.handleReactionsMute=function(x){var L=_.A3(),D=_.VC(206221),S={checkboxData:{state:x?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};L&&_.L7(L,D,S);this.reactionsMuted=x};
_.K.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.K.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}}};
_.J3.Object.defineProperties(PJ.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var x;return(!((x=this.liveReactionsData)==null||!x.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
PJ.prototype.liveReactionsSettingChanged=PJ.prototype.liveReactionsSettingChanged;PJ.prototype.emojiCustomizationEnabledChanged=PJ.prototype.emojiCustomizationEnabledChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],PJ.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],PJ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.ds),_.r("design:type",Object)],PJ.prototype,"ytLiveChatReduxBehavior",void 0);
_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],PJ.prototype,"ytActionHandlerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],PJ.prototype,"data",void 0);_.A([_.F(),_.r("design:type",_.PG)],PJ.prototype,"emojiManager",void 0);_.A([_.F(),_.r("design:type",Object)],PJ.prototype,"newnessDotEligible",void 0);_.A([_.F(),_.r("design:type",Object)],PJ.prototype,"newnessDotImpressionCounted",void 0);
_.A([_.F({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:Jwe}),_.r("design:type",Boolean)],PJ.prototype,"liveReactionsSetting",void 0);_.A([_.F({selectorArgs:["data.liveReactionsDataEntityKey"],selector:QNN}),_.r("design:type",Object)],PJ.prototype,"liveReactionsData",void 0);_.A([_.F({value:function(){var x=_.u("enable_lwe_web_mute"),L=dM.get("allow-reactions");return L===void 0?!1:!L&&x}}),
_.r("design:type",Boolean)],PJ.prototype,"reactionsMuted",void 0);_.A([_.F({reflectToAttribute:!0}),_.Y("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],PJ.prototype,"liveReactionsEnabled",null);_.A([_.bN("data.emojiCustomizationEnabled"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],PJ.prototype,"emojiCustomizationEnabledChanged",null);
_.A([_.bN("liveReactionsEnabled"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],PJ.prototype,"liveReactionsSettingChanged",null);_.A([_.oW({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],PJ);
_.q(PJ,"yt-reaction-control-panel-overlay-view-model",function(){if(S7v===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;D4w===void 0&&(D4w=document.createElement("template"));var S=D4w;D.call(L,S.content.cloneNode(!0),x.content.firstChild);S7v=x}x=S7v;return x},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var yxs={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(x){var L=this.$.pickers.selected;if(L){_.jr(this.hostElement).removeAttribute(L+"-open");var D="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(D="#picker-buttons",L==="emoji"&&_.jr(this.hostElement).querySelector("#emoji-picker-button")&&(D="#emoji-picker-button"));if(D=_.jr(this.hostElement).querySelector(D).querySelector("#"+L))D.active=!1}D=x;L==x&&(D=null);L!=
x&&_.jr(this.hostElement).setAttribute(x+"-open","");this.$.pickers.selected=D;_.dg(this.hostElement,"yt-live-chat-picker-changed",[D])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var jl=function(){var x=_.e.apply(this,arguments)||this;x.numSentMessages=0;x.timeoutDurationMs=0;x.timeoutMs=0;x.lastTimeoutTimeMs=0;x.pendingMessageId="";x.hasFiredInitialFocusActions=!1;x.isBeforeFocusEnabled=!0;x.id="";x.characterCount=0;x.maxCharacterLimit=0;x.remainingCharacterCount=0;x.inputExpanded=!1;x.buttonOverrides={iconPosition:"icon-only"};x.inReplyPanel=!1;x.countdownRatio=0;x.isTooltipVisible=!1;x.tooltipTimeout=1E4;x.systemIcons=_.u("kevlar_system_icons");x.tallerEmojiPicker=_.u("live_chat_taller_emoji_picker");
x.sendReplyMessageInFlight=!1;x.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"};x.onResize=function(){x.maybeToggleCharacterCount()};
return x};
_.p(jl,_.e);_.K=jl.prototype;
_.K.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"}}}};
_.K.attached=function(){window.addEventListener("resize",this.onResize)};
_.K.detached=function(){window.removeEventListener("resize",this.onResize)};
_.K.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.K.sendMessage=function(){var x=this,L,D,S,Q;return _.I(function(J){if(x.sendDisabled)return J.return();x.isTooltipVisible&&_.dg(x.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(x.data.sendButton&&x.data.sendButton.buttonRenderer){x.input.completeEmojis();L=x.data.sendButton.buttonRenderer.serviceEndpoint;if(!L)return J.return();S=((D=_.g(L,_.O1r))==null?void 0:D.clientIdPrefix)||"";Q={client_message_id:S+String(x.numSentMessages++),rich_message:_.al(x.input.liveChatRichMessageInput)};
x.pendingMessageId=Q.client_message_id;x.inReplyPanel&&(x.sendReplyMessageInFlight=!0);_.jq(x.hostElement,[L,Q]);x.input.setLiveChatRichMessageInput(null)}_.Y2(J)})};
_.K.handleSendButtonAction=function(x){x.detail.actionName==="yt-service-request"&&(x.stopPropagation(),this.sendMessage())};
_.K.onSendCompleted=function(x,L){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(x=this.get("timeoutDurationUsec",L.data))&&this.handleTimeout(Number(x)/1E3);this.errorMessage=this.get("errorMessage",L.data);this.pendingMessageId=""};
_.K.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.dg(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.K.handlePickerButtonToggle=function(x){x=x.detail.targetId;this.ytPickerBehavior.togglePicker_(x);if(x==="emoji")this.input.focus();else if(x==="qna-start-panel"){var L,D;(L=_.jr(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(D=L.querySelector("#qna-creator-text-input-field"))==null||D.focus()}};
_.K.onComponentReplaced=function(x){var L,D;x.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((L=x.replacement.liveChatMessageInputRenderer)==null?0:(D=L.headerRenderer)==null?0:D.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.K.onEmojiSelect=function(x){this.input.focus();this.input.insertEmoji(x.detail)};
_.K.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.K.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.dg(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.dg(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.K.onOpenPopupAction=function(x,L){var D=this;L===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.dg(D.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.K.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.K.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.K.focusChanged=function(){this.maybeToggleCharacterCount()};
_.K.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var x=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",x>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.K.computeId=function(){return this.data&&this.data.targetId||""};
_.K.computeSendDisabled=function(x,L,D,S){x=!!(!x||L&&x>L||S);(L=_.jr(this.hostElement).querySelector("#send-button"))&&L.children.length&&(L.children[0].disabled=x);return x};
_.K.handleTimeout=function(x){this.timeoutDurationMs=this.timeoutMs=x;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.K.updateTimeout=function(x){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(x-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=x,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.K.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.K.onErrorMessageEdit=function(x){this.input.setLiveChatRichMessageInput(x.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.K.errorMessageChanged=function(){var x=this;_.xi(function(){_.dg(x.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.K.computeAuthorNameColor=function(x){var L;if(_.u("live_chat_author_name_color_usernames")&&(x==null?0:(L=x.authorName)==null?0:L.simpleText))return _.ZT0(_.y1h(x.authorName.simpleText));if(_.u("live_chat_seed_color_usernames")&&(x==null?0:x.authorSeedColorArgb))return _.ZT0(_.Hp(x.authorSeedColorArgb));if(_.u("live_chat_colored_usernames"))return"#cc0000";var D;return _.u("live_chat_simple_color_usernames")&&(x==null?0:(D=x.authorName)==null?0:D.simpleText)&&(x==null?0:x.authorUsernameColorLight)&&
(x==null?0:x.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.Hp(x.authorUsernameColorDark):_.Hp(x.authorUsernameColorLight):""};
_.K.onIsTooltipVisibleChanged=function(){var x=_.jr(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){x.hidden=!1;x.setAttribute("role","alert")},0):(x.hidden=!0,x.removeAttribute("role"))};
_.K.onFocusedChanged=function(x){this.inputFocused=x.detail.value};
_.J3.Object.defineProperties(jl.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 x;return!((x=this.data)==null||!x.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var x,L;return((x=this.data)==null?void 0:(L=x.pickers)==null?void 0:L.find(function(D){return D.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var x=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return x?this.ytRendererBehavior.getSimpleString(x):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
jl.prototype.onIsTooltipVisibleChanged=jl.prototype.onIsTooltipVisibleChanged;jl.prototype.errorMessageChanged=jl.prototype.errorMessageChanged;jl.prototype.onErrorMessageEdit=jl.prototype.onErrorMessageEdit;jl.prototype.onErrorMessageDismiss=jl.prototype.onErrorMessageDismiss;jl.prototype.focusChanged=jl.prototype.focusChanged;jl.prototype.characterCountChanged=jl.prototype.characterCountChanged;jl.prototype.onEmojiSelect=jl.prototype.onEmojiSelect;jl.prototype.handlePickerButtonToggle=jl.prototype.handlePickerButtonToggle;
jl.prototype.onSendError=jl.prototype.onSendError;jl.prototype.onSendCompleted=jl.prototype.onSendCompleted;jl.prototype.sendMessage=jl.prototype.sendMessage;jl.prototype.dataChanged=jl.prototype.dataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],jl.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],jl.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.b(yxs.YtPickerBehavior),_.r("design:type",Object)],jl.prototype,"ytPickerBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],jl.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.P9.YtLiveChatTooltipTargetingBehavior),_.r("design:type",Object)],jl.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],jl.prototype,"hasFiredInitialFocusActions",void 0);
_.A([_.F(),_.r("design:type",Object)],jl.prototype,"isBeforeFocusEnabled",void 0);_.A([_.F(),_.r("design:type",Object)],jl.prototype,"data",void 0);_.A([_.F({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.r("design:type",Object)],jl.prototype,"id",void 0);_.A([_.F(),_.r("design:type",Object)],jl.prototype,"characterCount",void 0);_.A([_.F(),_.r("design:type",Object)],jl.prototype,"maxCharacterLimit",void 0);
_.A([_.F(),_.r("design:type",Object)],jl.prototype,"remainingCharacterCount",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],jl.prototype,"inputExpanded",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],jl.prototype,"inputFocused",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],jl.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.A([_.F(),_.r("design:type",_.ks)],jl.prototype,"participantsManager",void 0);
_.A([_.F(),_.r("design:type",Object)],jl.prototype,"buttonOverrides",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],jl.prototype,"inReplyPanel",void 0);_.A([_.Y("characterCount, maxCharacterLimit, countdownActive"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],jl.prototype,"sendDisabled",null);_.A([_.F(),_.r("design:type",Object)],jl.prototype,"countdownRatio",void 0);
_.A([_.Y("countdownRatio"),_.r("design:type",Number),_.r("design:paramtypes",[])],jl.prototype,"countdownStrokeDashOffset",null);_.A([_.Y("countdownRatio"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],jl.prototype,"countdownActive",null);_.A([_.Y("data.interactionMessage"),_.F({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],jl.prototype,"hasInteractionMessage",null);
_.A([_.Y("data.emojiPickerButton"),_.F({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],jl.prototype,"hasEmojiPickerButton",null);_.A([_.Y("data, characterCount"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],jl.prototype,"showAvatar",null);_.A([_.Y("data.pickers"),_.F({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],jl.prototype,"hasProductPickerPanelViewModel",null);
_.A([_.F(),_.r("design:type",Object)],jl.prototype,"errorMessage",void 0);_.A([_.F(),_.r("design:type",Object)],jl.prototype,"genericErrorMessage",void 0);_.A([_.F(),_.r("design:type",Object)],jl.prototype,"isTooltipVisible",void 0);_.A([_.F(),_.r("design:type",Object)],jl.prototype,"tooltipTimeout",void 0);_.A([_.Y("data.onInitialFocusCommand"),_.r("design:type",String),_.r("design:paramtypes",[])],jl.prototype,"tooltipMessage",null);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],jl.prototype,"systemIcons",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],jl.prototype,"tallerEmojiPicker",void 0);_.A([_.Y("data"),_.r("design:type",String),_.r("design:paramtypes",[])],jl.prototype,"authorNameColor",null);_.A([_.F(),_.r("design:type",Object)],jl.prototype,"sendReplyMessageInFlight",void 0);_.A([_.F1("#input"),_.r("design:type",_.xid)],jl.prototype,"input",void 0);
_.A([_.F1("#count"),_.r("design:type",HTMLElement)],jl.prototype,"count",void 0);_.A([_.F1("#input-container"),_.r("design:type",HTMLElement)],jl.prototype,"inputContainer",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],jl.prototype,"dataChanged",null);_.A([_.mX("yt-live-chat-send-message"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype",Promise)],jl.prototype,"sendMessage",null);
_.A([_.mX("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[Event,_.S2]),_.r("design:returntype")],jl.prototype,"onSendCompleted",null);_.A([_.mX("yt-service-request-error"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],jl.prototype,"onSendError",null);
_.A([_.mX("yt-live-chat-icon-toggle-button-renderer-toggle"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],jl.prototype,"handlePickerButtonToggle",null);_.A([_.mX("yt-emoji-select"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],jl.prototype,"onEmojiSelect",null);
_.A([_.bN("characterCount"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],jl.prototype,"characterCountChanged",null);_.A([_.bN("inputFocused"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],jl.prototype,"focusChanged",null);_.A([_.mX("yt-live-chat-error-message-dismiss"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],jl.prototype,"onErrorMessageDismiss",null);
_.A([_.mX("yt-live-chat-error-message-edit"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],jl.prototype,"onErrorMessageEdit",null);_.A([_.bN("errorMessage"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],jl.prototype,"errorMessageChanged",null);_.A([_.bN("isTooltipVisible"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],jl.prototype,"onIsTooltipVisibleChanged",null);
_.A([_.oW({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],jl);
_.q(jl,"yt-live-chat-message-input-renderer",function(){if(e9U===void 0){var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;Tk5===void 0&&(Tk5=document.createElement("template"));var S=Tk5;D.call(L,S.content.cloneNode(!0),x.content.firstChild);e9U=x}x=e9U;return x},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var IbU;var EaU;var vJ=function(){var x=_.e.apply(this,arguments)||this;x.systemIcons=_.u("kevlar_system_icons");x.firedOnClickCommand=!1;x.inReplyPanel=!1;return x};
_.p(vJ,_.e);
vJ.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"}}}};
vJ.prototype.onButtonToggle=function(x){x.target.disabled||this.ytPickerBehavior.togglePicker_(x.detail.targetId)};
vJ.prototype.onClick=function(){var x=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.dg(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return x.firedOnClickCommand=!1},5E3))};
_.J3.Object.defineProperties(vJ.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var x,L;return((x=this.data)==null?void 0:(L=x.panels)==null?void 0:L.find(function(D){return D.liveChatProductPickerPanelViewModel}))!==void 0}}});
vJ.prototype.onButtonToggle=vJ.prototype.onButtonToggle;_.A([_.b(yxs.YtPickerBehavior),_.r("design:type",Object)],vJ.prototype,"ytPickerBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],vJ.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],vJ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],vJ.prototype,"data",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],vJ.prototype,"systemIcons",void 0);_.A([_.F({reflectToAttribute:!1}),_.r("design:type",Object)],vJ.prototype,"firedOnClickCommand",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],vJ.prototype,"inReplyPanel",void 0);_.A([_.Y("data.pickers"),_.F({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],vJ.prototype,"hasProductPickerPanelViewModel",null);
_.A([_.mX("yt-live-chat-icon-toggle-button-renderer-toggle"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],vJ.prototype,"onButtonToggle",null);_.A([_.oW({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],vJ);
_.q(vJ,"yt-live-chat-restricted-participation-renderer",function(){if(EaU===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;IbU===void 0&&(IbU=document.createElement("template"));var S=IbU;D.call(L,S.content.cloneNode(!0),x.content.firstChild);EaU=x}x=EaU;return x},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var Vl=function(){var x=_.e.apply(this,arguments)||this;x.genericErrorMessage=_.Dv("Error, try again.");x.inReplyPanel=!1;x.hideBorder=!1;return x};
_.p(Vl,_.e);Vl.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}}}}}};
_.J3.Object.defineProperties(Vl,{template:{configurable:!0,enumerable:!0,get:function(){return mpv()}}});
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Vl.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Vl.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],Vl.prototype,"genericErrorMessage",void 0);_.A([_.F(),_.r("design:type",Object)],Vl.prototype,"inReplyPanel",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Vl.prototype,"hideBorder",void 0);
_.A([_.oW({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],Vl);_.q(Vl,"yt-live-chat-engagement-panel-input-renderer",function(){return mpv()},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var M1i,d4s;M1i=_.VC(115994);d4s=_.VC(115993);_.hj=function(x,L,D){var S=this;var Q=D.dragDownAction;this.layer=0;this.JSC$22607_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return S.dragDownAction()}}}};
this.JSC$22607_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return S.dragDownAction()}}}};
this.fullscreen=!1;var J=_.sk();_.W5(J,M1i,this.layer);_.W5(J,d4s,this.layer);this.dragDownAction=function(){Q();_.XT(J,{visualElement:S.fullscreen?M1i:d4s})};
this.gesture=new _.qd(x,L,this.getConfig(!1),"pandown");this.attach()};
_.hj.prototype.attach=function(){this.gesture.attach()};
_.hj.prototype.detach=function(){this.gesture.detach()};
_.hj.prototype.update=function(x){this.fullscreen=x;var L=this.gesture;x=this.getConfig(x);L.config=x};
_.hj.prototype.getConfig=function(x){return x?this.JSC$22607_watchFullScreenConfig:this.JSC$22607_watchConfig};var PxR={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(x){if(x&&x.length==1&&Array.isArray(x[0].loggingUrls)){x=_.wk.unsafeClone(x[0]);var L=this.macros||{},D=this.getAdModuleClient_();if(!D)return _.V0();x.loggingUrls.forEach(function(S){if(S.baseUrl){var Q=S.baseUrl;var J=L;J=J===void 0?{}:J;Q=D.getOptions().includes("replaceUrlMacros")?_.Ho_(D,"replaceUrlMacros",{url:Q,additionalMapping:J}):Q;S.baseUrl=Q}},this);
x=[x]}return _.jq(this.hostElement,x)},
getAdModuleClient_:function(){var x=_.Zs(this);return x?(x=x.getPlayer())?new _.DO(x):null:null}}]};var jms;var HJ=function(){var x=_.e.apply(this,arguments)||this;x.isCollapsed=!1;x.modernPanels=_.u("kevlar_watch_modern_panels");x.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return x};
_.p(HJ,_.e);_.K=HJ.prototype;_.K.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.K.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.K.onDonateTap=function(){var x=this.get("data.donateButton.buttonRenderer.command");if(x){var L=_.A3(),D=this.get("data.donateButton.buttonRenderer.trackingParams");L&&D&&_.L7(L,_.CI(D));this.ytOpenPopupBehavior.openPopup(x)}};
_.K.onShowMore=function(){this.isCollapsed=!1;var x=_.A3(),L=this.get("data.expandButton.buttonRenderer.trackingParams");x&&L&&_.L7(x,_.CI(L))};
_.K.onShowLess=function(){this.isCollapsed=!0};
_.K.dataChanged=function(){_.uN(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.K.onDarkModeToggledAction=function(x){this.isDarkTheme=x};
_.K.handleUpdate=function(x){if(x=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",x))this.set("data.startLabel",x.startLabel),this.set("data.endLabel",x.endLabel),this.set("data.progress",x.progress),this.set("data.amountRaisedLabel",x.amountRaisedLabel),this.dataChanged()};
_.K.handleOpenPopupAction=function(x){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",x)&&_.dg(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.K.computeHeaderBackgroundUrl=function(x,L){if(x)return L?x.headerBackgroundDarkUrl:x.headerBackgroundUrl};
_.K.isProgressBarVisible=function(x){return!(!x||x.progress===void 0)};
_.K.headerBackgroundClass=function(){return _.$6("HTML_DIR")==="rtl"?"flip":""};
HJ.prototype.dataChanged=HJ.prototype.dataChanged;_.A([_.b(_.rs.YtOpenPopupBehavior),_.r("design:type",Object)],HJ.prototype,"ytOpenPopupBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],HJ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],HJ.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],HJ.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.F(),_.r("design:type",Object)],HJ.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],HJ.prototype,"isCollapsed",void 0);_.A([_.F({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.r("design:type",String)],HJ.prototype,"headerBackgroundUrl",void 0);_.A([_.F(),_.r("design:type",Boolean)],HJ.prototype,"isDarkTheme",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],HJ.prototype,"modernPanels",void 0);
_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],HJ.prototype,"dataChanged",null);_.A([_.w({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],HJ);
_.q(HJ,"ytd-donation-shelf-renderer",function(){if(jms!==void 0)return jms;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return jms=x},{mode:1});var vaz;var V1N=function(){return _.e.apply(this,arguments)||this};
_.p(V1N,_.e);_.A([_.F(),_.r("design:type",Object)],V1N.prototype,"data",void 0);_.A([_.w({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],V1N);
_.q(V1N,"ytd-donation-unavailable-renderer",function(){if(vaz!==void 0)return vaz;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return vaz=x},{mode:1});var hv8;var u5=function(){return _.e.apply(this,arguments)||this};
_.p(u5,_.e);u5.prototype.computeIconType=function(x){return x?"yt-icons:"+x.toLowerCase():null};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],u5.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],u5.prototype,"data",void 0);_.A([_.w({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],u5);
_.q(u5,"ytd-limited-state-message-renderer",function(){if(hv8!==void 0)return hv8;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return hv8=x},{mode:1});var Hwi;var gM=function(){return _.e.apply(this,arguments)||this};
_.p(gM,_.e);gM.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
gM.prototype.onTap=function(x){var L=this.data&&this.data.endpoint;L&&!_.QC(_.Jq(x),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.MF(this.hostElement,"yt-navigate",{endpoint:L})};
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],gM.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],gM.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],gM.prototype,"data",void 0);_.A([_.w({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],gM);
_.q(gM,"ytd-autotagging-metadata-renderer",function(){if(Hwi!==void 0)return Hwi;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Hwi=x},{mode:1});var uR8;var k4=function(){return _.e.apply(this,arguments)||this};
_.p(k4,_.e);k4.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],k4.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],k4.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],k4.prototype,"data",void 0);_.A([_.w({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],k4);
_.q(k4,"ytd-autotagging-metadata-row-renderer",function(){if(uR8!==void 0)return uR8;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return uR8=x},{mode:1});var gaz;var keQ;var pP=function(){var x=_.e.apply(this,arguments)||this;x.engagementPanelContent=!1;return x};
_.p(pP,_.e);pP.prototype.computeHasDividerLine=function(x,L){return x&&!L};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],pP.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],pP.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.r("design:type",Boolean)],pP.prototype,"hasDividerLine",void 0);_.A([_.F(),_.r("design:type",Object)],pP.prototype,"engagementPanelContent",void 0);
_.A([_.w({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],pP);
_.q(pP,"ytd-metadata-row-header-renderer",function(){if(keQ!==void 0)return keQ;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return keQ=x},{mode:1});var pfN;var m0=function(){return _.e.apply(this,arguments)||this};
_.p(m0,_.e);m0.prototype.computeHasDividerLine=function(x){return x};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],m0.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],m0.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.r("design:type",Boolean)],m0.prototype,"hasDividerLine",void 0);_.A([_.w({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],m0);
_.q(m0,"ytd-metadata-row-renderer",function(){if(pfN!==void 0)return pfN;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return pfN=x},{mode:1});var m4i;var bwN=function(){return _.e.apply(this,arguments)||this};
_.p(bwN,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],bwN.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],bwN.prototype,"data",void 0);_.A([_.w({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],bwN);
_.q(bwN,"ytd-metadata-with-image-row-renderer",function(){if(m4i!==void 0)return m4i;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return m4i=x},{mode:1});var Y7e;var b5=function(){var x=_.e.apply(this,arguments)||this;x.rounded=!0;x.fixie=!1;x.fullWidth=!1;return x};
_.p(b5,_.e);_.K=b5.prototype;_.K.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.K.onDataChanged=function(){var x=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(L){x.onEndpointLinkKeyPress(L)}))};
_.K.onEndpointLinkKeyPress=function(x){x.target===this.endpointLink&&x.keyCode===13&&_.MF(this.hostElement,"click")};
_.K.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var x;if((x=this.data)==null?0:x.endpoint)_.v$(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.K.onYtNavigate=function(x){this.endpointHref||(x.stopPropagation(),x.preventDefault())};
_.K.onInformationButtonContainerClick=function(x){x.target.id!=="information-button-container"&&(x.stopPropagation(),x.preventDefault())};
_.K.computeStyle=function(x){return x};
_.K.computeIsThumbnailStyle=function(x){return x==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.K.computeThumbnailWidth=function(x){switch(x){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}};
_.K.computeThumbnailObjectFit=function(x){switch(x){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.J3.Object.defineProperties(b5.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?0:x.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
b5.prototype.onYtNavigate=b5.prototype.onYtNavigate;b5.prototype.onClick=b5.prototype.onClick;b5.prototype.onDataChanged=b5.prototype.onDataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],b5.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],b5.prototype,"componentBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],b5.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.F(),_.r("design:type",Object)],b5.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.r("design:type",String)],b5.prototype,"componentStyle",void 0);_.A([_.F({computed:"computeIsThumbnailStyle(data.style)"}),_.r("design:type",Boolean)],b5.prototype,"isThumbnailStyle",void 0);_.A([_.F({computed:"computeThumbnailObjectFit(data.style)"}),_.r("design:type",String)],b5.prototype,"thumbnailObjectFit",void 0);
_.A([_.F({computed:"computeThumbnailWidth(data.style)"}),_.r("design:type",Number)],b5.prototype,"thumbnailWidth",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],b5.prototype,"rounded",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],b5.prototype,"fixie",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],b5.prototype,"fullWidth",void 0);_.A([_.F1("#endpoint-link"),_.r("design:type",HTMLAnchorElement)],b5.prototype,"endpointLink",void 0);
_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],b5.prototype,"onDataChanged",null);_.A([_.Y("data.endpoint"),_.r("design:type",Object),_.r("design:paramtypes",[])],b5.prototype,"endpointHref",null);_.A([_.mX("click"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],b5.prototype,"onClick",null);
_.A([_.mX("yt-navigate"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],b5.prototype,"onYtNavigate",null);_.A([_.w({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],b5);
_.q(b5,"ytd-rich-metadata-renderer",function(){if(Y7e!==void 0)return Y7e;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Y7e=x},{mode:_.Vm("kevlar_poly_si_batch_j075")?1:2});var Fgi;var Y4=function(){var x=_.e.apply(this,arguments)||this;x.fixie=!1;x.fullWidth=!1;return x};
_.p(Y4,_.e);Y4.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
Y4.prototype.computeHasDividerLine=function(x){return x};
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Y4.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Y4.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.r("design:type",Boolean)],Y4.prototype,"hasDividerLine",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Y4.prototype,"fixie",void 0);_.A([_.F(),_.r("design:type",Object)],Y4.prototype,"fullWidth",void 0);
_.A([_.w({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],Y4);
_.q(Y4,"ytd-rich-metadata-row-renderer",function(){if(Fgi!==void 0)return Fgi;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return Fgi=x},{mode:1});var Fw=function(){var x=_.e.apply(this,arguments)||this;x.engagementPanelContent=!1;x.fixie=!1;x.fullWidth=!1;return x};
_.p(Fw,_.e);
Fw.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"}}}};
Fw.prototype.computeCollapsibleItems=function(x,L,D){return x===void 0||L===void 0||D===void 0||D?[]:x.slice(L)};
Fw.prototype.computeAlwaysShownItems=function(x,L){return x&&x.length?x.slice(0,L):[]};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Fw.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Fw.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Fw.prototype,"data",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],Fw.prototype,"collapsed",void 0);
_.A([_.F({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.r("design:type",Array)],Fw.prototype,"alwaysShownItems",void 0);_.A([_.F({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.r("design:type",Array)],Fw.prototype,"collapsibleItems",void 0);_.A([_.F(),_.r("design:type",Object)],Fw.prototype,"engagementPanelContent",void 0);_.A([_.F(),_.r("design:type",Object)],Fw.prototype,"fixie",void 0);
_.A([_.F(),_.r("design:type",Object)],Fw.prototype,"fullWidth",void 0);_.A([_.w({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],Fw);
_.q(Fw,"ytd-metadata-row-container-renderer",function(){if(gaz!==void 0)return gaz;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return gaz=x},{mode:1});var smQ;var sb=function(){var x=_.e.apply(this,arguments)||this;x.currentPageUrl="";x.baseUrl="";x.isHiddenByUser=null;x.hidden=!1;x.showAboveScrim=!1;x.watchNextGrid=_.u("kevlar_watch_grid");x.modernButtons=_.u("web_modern_buttons");x.roundedContainer=!0;x.noBorder=!1;x.roundBackground=!_.u("live_chat_round_background_killswitch");x.overflowHideChat=_.u("live_chat_overflow_hide_chat");x.forceDarkTheme=!1;x.theaterWatchWhile=!1;x.isListeningForPlayerProgress=!1;x.JSC$22643_playerEvents=new Map;x.isFrameReady=
!1;x.player=null;x.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 x};
_.p(sb,_.e);_.K=sb.prototype;_.K.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.P$(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.K.created=function(){var x=this;this.handleIframeEventListener=function(L){x.handleIframeEvent(L)};
this.handleKeyboardEventListener=function(L){x.handleKeyboardEvent(L)};
this.JSC$22643_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$22643_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22643_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$22643_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$22643_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.K.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()};
_.K.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};
_.K.computeBaseUrl=function(x){var L="/live_chat";this.isChatReplay()&&(L="/live_chat_replay");return _.HZ(_.hm(_.VH(_.ze(x),L),null),"").toString()};
_.K.dataChanged=function(){_.u("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.K.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var x=this.url;if(this.isChatReplay()&&this.player){var L=Math.floor(this.player.getProgressState().current*1E3);x=_.xV(_.ze(x),"playerOffsetMs",L.toString()).toString()}L=this.chatframe;try{var D=x==="about:blank"?_.QiH:_.$z(x),S=L.contentDocument.location,Q=_.iQ(D);Q!==void 0&&S.replace(Q)}catch(J){L.src=x}}};
_.K.collapsedChanged=function(){_.MF(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.K.handleIframeEvent=function(x){if(x&&this.baseUrl.startsWith(x.origin)&&x.source===this.chatframe.contentWindow&&_.on(x.data))if(x.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(x);else if(x.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(x.data["yt-show-feedback-dialog"]){var L=_.yY().resolve(_.ZN(_.w4$));if(L){var D=x.ports,S;D&&D.length&&(S=function(){D[0].postMessage({})});
x=x.data["yt-show-feedback-dialog"];L.showFeedbackDialog(x.customProductData,x.feedbackContent,S,x.bucket)}}else if(x.data["yt-show-survey"])_.MF(this.hostElement,"yt-show-survey",x.data["yt-show-survey"]);else if(x.data["yt-purchase-membership"])_.yY().resolve(_.E2).resolveCommand(x.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(x.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(x.data["yt-tunnel-out-live-service-request"]);else if(x.data["yt-user-activity"])_.Oh();
else if(x.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(x.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(x.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(x.data["yt-open-popup"]);else if(x.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(x.data["yt-log-flow-logging-event-command"]);else if(x.data["yt-hide-live-chat"])this.onShowHideChat();else x.data["yt-report-moderation-state-log"]&&
this.player&&(L={cpn:this.player.getVideoData().cpn},_.Uh("liveChatBeingModerated",L))};
_.K.attachLiveChatResponseVeTrackingParams=function(x){x=_.CI(x);var L=_.A3(),D=_.o1("liveChatRenderer.trackingParams",this.data);L&&D&&_.XI(L,_.CI(D),x)};
_.K.handleBuyflowMessages=function(x){var L=x.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,D=x.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,S=x.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.Vh0(_.JK(_.QA),L.replace(/-/g,"+").replace(/_/g,"/"),function(Q){x.ports[0].postMessage({success:!0,buyFlowResponse:Q})},void 0,function(Q){x.ports[0].postMessage({success:!1,
error:Q&&Q.message||"Buyflow rejected without error."})},_.FI().get("hl"),void 0,function(){x.ports[0].postMessage({closed:!0})},D,S)};
_.K.setupPlayerProgressRelay=function(){var x=this;if(!this.isListeningForPlayerProgress){var L=_.yC();L!=null&&L.getPlayerPromise&&(L.getPlayerPromise().then(function(D){x.playerApiReady(D)}),this.isListeningForPlayerProgress=!0)}};
_.K.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.K.playerApiReady=function(x){this.setPlayer(x)};
_.K.playerProgressHandler=function(){if(this.player){var x=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":x.current})}};
_.K.playerAdStartHandler=function(x){this.postToContentWindow({"yt-player-ad-start":x})};
_.K.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.K.playerStateChangeHandler=function(x){this.postToContentWindow({"yt-player-state-change":x})};
_.K.setPlayer=function(x){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22643_playerEvents);x&&(this.player=x,this.ytPlayerListenerBehavior.listenToPlayerEvents(x,this.JSC$22643_playerEvents),_.MF(this.hostElement,"player-api-ready"))};
_.K.liveChatPageUrl=function(x,L,D,S){return!D||L?"about:blank":D.liveChatRenderer?(L=_.ze(this.currentPageUrl).JSC$10036_queryData_,QTs(L),x=_.ze(x),L.add("continuation",D.liveChatRenderer.continuations[0].reloadContinuationData.continuation),D=_.l1()==="USER_INTERFACE_THEME_DARK",(S||D)&&L.add("dark_theme","true"),_.hm(x,L),S=_.ze(x.toString()),D=S.JSC$10036_queryData_,"SESSION_INDEX"in _.q9&&(D.add("authuser",_.$6("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.q9&&D.add("pageId",_.$6("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.q9&&D.add("sdc",_.$6("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),S.toString()):""};
_.K.isCollapsed=function(x,L){return L!==null?L:this.isChatReplay()||x&&x.conversationBarRenderer&&x.conversationBarRenderer.availabilityMessage?!0:x?x.liveChatRenderer?x.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.u("live_chat_hide_premiere_replay_message")||x.conversationBarRenderer&&x.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.K.isHidden=function(x,L,D){var S=L&&L.conversationBarRenderer&&L.conversationBarRenderer.availabilityMessage,Q=L&&L.liveChatRenderer&&L.liveChatRenderer.showHideButton,J=L&&L.liveChatRenderer&&L.liveChatRenderer.showButton;return D&&x&&!S&&!J||!D&&x&&!S&&!Q?!0:L&&L.liveChatRenderer&&L.liveChatRenderer.initialDisplayState?L.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.K.computeButtonOverride=function(x,L){if(x&&L)return{type:"outline"}};
_.K.setCollapsedState=function(x){_.g(x,_.mcA)&&((this.isHiddenByUser=!!_.g(x,_.mcA).collapsed)||_.dg(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.K.forwardReduxActionToIframe=function(x){this.postToContentWindow({"yt-live-chat-forward-redux-action":x})};
_.K.onLoopRangeChange=function(x){this.showAboveScrim=!(x==null||!x.postId)};
_.K.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.K.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.K.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.K.sendDarkThemePostMessage=function(x){this.postToContentWindow({"yt-live-chat-set-dark-theme":x})};
_.K.onLiveChatBuyFlowCallback=function(x){this.postToContentWindow({"yt-live-chat-buy-flow-callback":x})};
_.K.handleKeyboardEvent=function(x){(0,_.wk.containsValue)(Jci,x.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:x.type,keyCode:x.keyCode}})};
_.K.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.K.postToContentWindow=function(x){if(this.isFrameReady)try{var L=window.location.protocol+"//"+window.location.host,D;(D=this.chatframe)!=null&&D.contentWindow?this.chatframe.contentWindow.postMessage(x,L):_.qy(new _.RZ("Tried posting a message to an iframe with no content window",x))}catch(S){_.BI(S)}};
_.K.shouldHideChatFrame=function(x){return x&&_.u("hide_live_chat_button_when_collapsed")};
_.J3.Object.defineProperties(sb.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.u("live_chat_overflow_hide_chat")||_.u("web_watch_chat_hide_button_killswitch"))return _.u("live_chat_overflow_hide_chat");var x,L,D,S;return!!((x=this.data)==null?0:(L=x.liveChatRenderer)==null?0:(D=L.header)==null?0:(S=D.liveChatHeaderRenderer)==null?0:S.collapseButton)}}});
sb.prototype.collapsedChanged=sb.prototype.collapsedChanged;sb.prototype.urlChanged=sb.prototype.urlChanged;sb.prototype.dataChanged=sb.prototype.dataChanged;sb.prototype.onShowHideChat=sb.prototype.onShowHideChat;_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],sb.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],sb.prototype,"ytRendererBehavior",void 0);
_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],sb.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.kj.YtPlayerListenerBehavior),_.r("design:type",_.pO)],sb.prototype,"ytPlayerListenerBehavior",void 0);_.A([_.b(_.rs.YtOpenPopupBehavior),_.r("design:type",Object)],sb.prototype,"ytOpenPopupBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],sb.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],sb.prototype,"currentPageUrl",void 0);
_.A([_.F({computed:"computeBaseUrl(currentPageUrl,data)"}),_.r("design:type",Object)],sb.prototype,"baseUrl",void 0);_.A([_.F({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.r("design:type",String)],sb.prototype,"url",void 0);_.A([_.F(),_.r("design:type",Object)],sb.prototype,"isHiddenByUser",void 0);_.A([_.F({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.r("design:type",Object)],sb.prototype,"hidden",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.r("design:type",Boolean)],sb.prototype,"collapsed",void 0);_.A([_.F({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.r("design:type",Boolean)],sb.prototype,"hideChatFrame",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],sb.prototype,"showAboveScrim",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],sb.prototype,"watchNextGrid",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],sb.prototype,"modernButtons",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],sb.prototype,"roundedContainer",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],sb.prototype,"noBorder",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],sb.prototype,"roundBackground",void 0);
_.A([_.F({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.r("design:type",Object)],sb.prototype,"toggleButtonOverride",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],sb.prototype,"overflowHideChat",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],sb.prototype,"forceDarkTheme",void 0);_.A([_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],sb.prototype,"enableShowWithoutHideChatButton",null);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],sb.prototype,"theaterWatchWhile",void 0);_.A([_.F1("#chatframe"),_.r("design:type",HTMLIFrameElement)],sb.prototype,"chatframe",void 0);_.A([_.mX("yt-toggle-button"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],sb.prototype,"onShowHideChat",null);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],sb.prototype,"dataChanged",null);
_.A([_.bN("url"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],sb.prototype,"urlChanged",null);_.A([_.bN("collapsed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],sb.prototype,"collapsedChanged",null);_.A([_.w({is:"ytd-live-chat-frame",disableElementRegistration:!0})],sb);
_.q(sb,"ytd-live-chat-frame",function(){if(smQ!==void 0)return smQ;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return smQ=x},{mode:1});var Tbe;var To=function(){var x=_.e.apply(this,arguments)||this;x.modern=_.u("web_modern_buttons");x.buttonOverrides={style:"call-to-action",type:"filled"};return x};
_.p(To,_.e);To.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=_.zF(this.data.backgroundColor)))};
To.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var x=this.getFormattedStringLoggingDirectives(this.data.headline);x&&this.rendererBehavior.logExplicitClick(x)}};
To.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var x=this.getFormattedStringLoggingDirectives(this.data.description);x&&this.rendererBehavior.logExplicitClick(x)}};
To.prototype.getFormattedStringLoggingDirectives=function(x){return x&&x.runs&&x.runs.length>0&&x.runs[0]&&x.runs[0].loggingDirectives?x.runs[0].loggingDirectives:null};
To.prototype.dataChanged=To.prototype.dataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],To.prototype,"rendererBehavior",void 0);_.A([_.b(PxR.YtMacroReplacementBehavior),_.r("design:type",Object)],To.prototype,"macroReplacementBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],To.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],To.prototype,"navigationEndpoint",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],To.prototype,"enableColors",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],To.prototype,"modern",void 0);_.A([_.F(),_.r("design:type",Object)],To.prototype,"buttonOverrides",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],To.prototype,"dataChanged",null);_.A([_.w({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],To);
_.q(To,"ytd-action-basic-immersive-content-renderer",function(){if(Tbe!==void 0)return Tbe;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return Tbe=x},{mode:1});var evU;var Rvi;var el=function(){return _.e.apply(this,arguments)||this};
_.p(el,_.e);el.prototype.dataChanged=function(){var x;((x=this.data)==null?void 0:x.backgroundColor)!==void 0&&_.uN(this.hostElement,{"--bgu-color":_.zF(this.data.backgroundColor)})};
el.prototype.onImageTileClick=function(){var x;((x=this.data)==null?0:x.navigationEndpoint)&&_.MF(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var L;((L=this.data)==null?0:L.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.J3.Object.defineProperties(el.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var x;if(((x=this.data)==null?void 0:x.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 x;return((x=this.data)==null?void 0:x.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var x,L,D;if(((x=this.data)==null?void 0:(L=x.detailsLine)==null?void 0:L.texts)!=null&&((D=this.data)==null?void 0:D.detailsLine.texts.length)>0){var S;return(S=this.data)==null?void 0:S.detailsLine.texts.map(function(Q){return Q.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var x,L,D;if(((x=this.data)==null?void 0:(L=x.optionalDetailsLine)==null?void 0:L.texts)!=null&&((D=this.data)==null?void 0:D.optionalDetailsLine.texts.length)>0){var S;return(S=this.data)==null?void 0:S.optionalDetailsLine.texts.map(function(Q){return Q.text}).join("")}return null}}});
el.prototype.dataChanged=el.prototype.dataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],el.prototype,"rendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],el.prototype,"componentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],el.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.Y("data.backgroundColor"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],el.prototype,"hasBackgroundColor",null);
_.A([_.Y("data.objectFit"),_.r("design:type",Object),_.r("design:paramtypes",[])],el.prototype,"getObjectFit",null);_.A([_.F({reflectToAttribute:!0}),_.Y("data.tileRenderingStyle"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],el.prototype,"hasTileMetadata",null);_.A([_.Y("data.detailsLine"),_.r("design:type",Object),_.r("design:paramtypes",[])],el.prototype,"getSecondaryDetails",null);
_.A([_.Y("data.optionalDetailsLine"),_.r("design:type",Object),_.r("design:paramtypes",[])],el.prototype,"getOptionalDetails",null);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],el.prototype,"dataChanged",null);_.A([_.w({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],el);
_.q(el,"ytd-image-tile-renderer",function(){if(Rvi!==void 0)return Rvi;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Rvi=x},{mode:1});var Gez;var RJ=function(){return _.e.apply(this,arguments)||this};
_.p(RJ,_.e);RJ.prototype.getOpenLinkIcon=function(){return _.u("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
RJ.prototype.onSitelinkTap=function(){_.MF(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.u("kevlar_command_handler_migration_killswitch"))_.v$(this.hostElement,this.data.clickCommands,this.hostElement);else for(var x=_.O(this.data.clickCommands),L=x.next();!L.done;L=x.next())this.ytComponentBehavior.resolveCommand(L.value)};
_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],RJ.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],RJ.prototype,"rendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],RJ.prototype,"data",void 0);_.A([_.w({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],RJ);
_.q(RJ,"ytd-sitelink-renderer",function(){if(Gez!==void 0)return Gez;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Gez=x},{mode:1});var Go=function(){var x=_.e.apply(this,arguments)||this;x.paddingFix=_.u("enable_ads_web_ep_buenos_aires_and_padding_fix");return x};
_.p(Go,_.e);Go.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"}}}};
Go.prototype.dataChanged=function(){var x=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(L){L.clickTrackingParams&&delete L.clickTrackingParams;x.ytMacroReplacementBehavior.sendServiceRequestAction([L])})};
Go.prototype.shouldHideFooter=function(x){return!(x&&_.u("use_ads_engagement_panel_desktop_footer_cta"))};
_.J3.Object.defineProperties(Go.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var x,L;return((x=this.data)==null?void 0:x.imageTileRenderers)===void 0||((L=this.data)==null?void 0:L.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(D){var S;return(S=_.g(D,E2N))==null?void 0:S.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var x,L;return((x=this.data)==null?void 0:x.imageTileRenderers)===void 0||((L=this.data)==null?void 0:L.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(D){var S;return((S=_.g(D,E2N))==null?void 0:S.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
Go.prototype.dataChanged=Go.prototype.dataChanged;_.A([_.b(PxR.YtMacroReplacementBehavior),_.r("design:type",Object)],Go.prototype,"ytMacroReplacementBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Go.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Go.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Go.prototype,"data",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Go.prototype,"paddingFix",void 0);_.A([_.F({reflectToAttribute:!0}),_.Y("data.imageTileRenderers"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Go.prototype,"removeBorderFromImageTiles",null);_.A([_.F({reflectToAttribute:!0}),_.Y("data.imageTileRenderers"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Go.prototype,"useFooteredMetadataRenderingStyle",null);
_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Go.prototype,"dataChanged",null);_.A([_.w({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],Go);
_.q(Go,"ytd-action-engagement-panel-content-renderer",function(){if(evU!==void 0)return evU;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return evU=x},{mode:1});var CxU;var lbR=_.B(function(x){var L=x.data;var D=x.customCommandResolver;return _.M("ad-grid-card-image-full-metadata-view-model",{class:function(){var S;return((S=L().interaction)==null?0:S.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:_.Zt(_.yB({visibilityCallback:function(S){var Q,J=(Q=L().interaction)==null?void 0:Q.onFirstVisible;S&&J&&_.Xf(J)},
showOption:_.T2}),_.ik(function(){return L().interaction},D)),
"aria-label":function(){var S,Q;return(S=L().interaction)==null?void 0:(Q=S.accessibility)==null?void 0:Q.label}},_.M("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.M(_.Fj,{data:function(){return L().adImage}},{adImageViewModel:function(S){return _.M(_.i0,{data:S.data,
customCommandResolver:D})}})),_.M("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.M(_.d,{cond:function(){return L().headline},
then:function(S){return _.M(_.kP,{text:S,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.M(_.d,{cond:function(){return L().detailsLine},
then:function(S){return _.M("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.M(_.Fj,{data:S},{adDetailsLineViewModel:function(Q){return _.M(_.BE,{data:Q.data,customCommandResolver:D,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.M(_.d,{cond:function(){return L().secondaryDetailsLine},
then:function(S){return _.M("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.M(_.Fj,{data:S},{adDetailsLineViewModel:function(Q){return _.M(_.BE,{data:Q.data,customCommandResolver:D,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"Qm");var U4Q=_.B(function(x){var L=x.data;var D=x.customCommandResolver;return _.M("ad-grid-card-image-view-model",{class:function(){var S;return((S=L().interaction)==null?0:S.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:_.Zt(_.yB({visibilityCallback:function(S){var Q,J=(Q=L().interaction)==null?void 0:Q.onFirstVisible;S&&J&&_.Xf(J)},
showOption:_.T2}),_.ik(function(){return L().interaction},D)),
"aria-label":function(){var S,Q;return(S=L().interaction)==null?void 0:(Q=S.accessibility)==null?void 0:Q.label}},_.M(_.Fj,{data:function(){return L().adImage}},{adImageViewModel:function(S){return _.M(_.i0,{data:S.data,
customCommandResolver:D})}}),_.M("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.M(_.Fj,{data:function(){return L().adCardBadge}},{adCardBadgeViewModel:_.obG})))},"Rm");var wfz=_.B(function(x){var L=x.data;var D=x.customCommandResolver;return _.M("ad-grid-card-text-view-model",{class:function(){var S;return((S=L().interaction)==null?0:S.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:_.Zt(_.yB({visibilityCallback:function(S){var Q,J=(Q=L().interaction)==null?void 0:Q.onFirstVisible;S&&J&&_.Xf(J)},
showOption:_.T2}),_.ik(function(){return L().interaction},D)),
"aria-label":function(){var S,Q;return(S=L().interaction)==null?void 0:(Q=S.accessibility)==null?void 0:Q.label}},_.M("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.M(_.d,{cond:function(){return L().title},
then:function(S){return _.M(_.kP,{text:S,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.M("div",{class:"ytwAdGridCardTextViewModelHostMetadataDescriptionInline"},_.M(_.R1,{each:function(){var S;
return((S=L())==null?void 0:S.descriptions)||[]},
keyBy:"INDEX"},function(S){return _.M(_.kP,{text:S,className:"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline"})}))),_.M("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.M(_.Fj,{data:function(){return L().moreInfoButton}},{adButtonViewModel:function(S){return _.M(_.Rd,{data:S.data,
customCommandResolver:D})}})))},"Sm");var Bbs=_.B(function(x){var L=x.data;var D=x.customCommandResolver;var S=x.adGridCardCollectionStyle;return _.M("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:_.Zt(_.yB({visibilityCallback:function(Q){var J,Z=(J=L().interaction)==null?void 0:J.onFirstVisible;Q&&Z&&_.Xf(Z)},
showOption:_.T2})),style:function(){return"grid-template-columns: repeat("+vzQ(S?S():L().style)+", minmax(0, 1fr));"}},_.M(_.Fj,{data:function(){var Q;
return(Q=L())==null?void 0:Q.gridCards}},{adGridCardImageViewModel:function(Q){return _.M(U4Q,{data:Q.data,
customCommandResolver:D})},
adGridCardImageFullMetadataViewModel:function(Q){return _.M(lbR,{data:Q.data,customCommandResolver:D})},
adGridCardTextViewModel:function(Q){return _.M(wfz,{data:Q.data,customCommandResolver:D})}}))},"Tm");_.dF(_.B(function(x){var L=x.data;return _.M("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:_.Zt(_.yB({visibilityCallback:function(D){var S,Q=(S=L().interaction)==null?void 0:S.onFirstVisible;D&&Q&&_.Xf(Q)},
showOption:_.T2}),_.ik(function(){return L().interaction},hUe))},_.M("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.M(_.d,{cond:_.zxc("(min-width: "+((0,_.ma)()+_.fc)+"px)"),
then:function(){return _.M(_.Fj,{data:function(){return L().adGridCardCollection}},{adGridCardCollectionViewModel:function(D){return _.M(Bbs,{data:D.data,
customCommandResolver:hUe})}})},
else:function(){return _.M(_.Fj,{data:function(){return L().adGridCardCollection}},{adGridCardCollectionViewModel:function(D){return _.M(Bbs,{data:D.data,
customCommandResolver:hUe,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.M("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.M(_.Fj,{data:function(){return L().adButton}},{adButtonViewModel:function(D){return _.M(_.Rd,{data:D.data,
customCommandResolver:hUe})}})))},"Um"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.pJ}});_.dF(_.B(function(x){var L=x.data;return _.M("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:_.Zt(_.yB({visibilityCallback:function(D){var S,Q=(S=L().interaction)==null?void 0:S.onFirstVisible;D&&Q&&_.Xf(Q)},
showOption:_.T2}),_.ik(function(){return L().interaction},HUw))},_.M("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.M(_.Fj,{data:function(){if(_.zxc("(min-width: "+((0,_.ma)()+_.fc)+"px)")())var D=L().adGridCardCollection;
else{D=Object.assign({},_.g(L().adGridCardCollection,Mfe));var S;D.gridCards!==void 0&&((S=D.gridCards)==null?void 0:S.length)>1?D.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":D.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";D={adGridCardCollectionViewModel:D}}return D}},{adGridCardCollectionViewModel:function(D){return _.M(Bbs,{data:D.data,
customCommandResolver:HUw})}})),_.M("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.M(_.Fj,{data:function(){return L().adButton}},{adButtonViewModel:function(D){return _.M(_.Rd,{data:D.data,
customCommandResolver:HUw})}})))},"Vm"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.pJ}});var CP=function(){var x=_.e.apply(this,arguments)||this;x.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return x};
_.p(CP,_.e);_.K=CP.prototype;_.K.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"}}}};
_.K.attached=function(){this.getDataFromPlayerAndRender()};
_.K.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.K.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.K.getDataFromPlayerAndRender=function(){var x=this,L=_.Zs(this.hostElement);L&&L.getPlayerPromise().then(function(D){x.getCachedDataAndListen(D)})};
_.K.getCachedDataAndListen=function(x){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(x,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(x,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=x)};
_.K.resolveCachedActions=function(){var x=_.o1("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(x=x&&x())&&!_.wk.isEmpty(x)&&this.sendUpdateEngagementPanelAction(x);(x=(x=_.o1("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&x())&&!_.wk.isEmpty(x)&&this.sendChangeEngagementPanelVisibilityAction(x);(x=(x=_.o1("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&x())&&!_.wk.isEmpty(x)&&this.sendScrollToEngagementPanelCommand(x)};
_.K.sendUpdateEngagementPanelAction=function(x){var L;_.dg(this.hostElement,"yt-update-engagement-panel-action",[(L=_.wk.get(x,"action"))!=null?L:x])};
_.K.sendChangeEngagementPanelVisibilityAction=function(x){_.dg(this.hostElement,"yt-change-engagement-panel-visibility-action",[x])};
_.K.sendScrollToEngagementPanelCommand=function(x){_.dg(this.hostElement,"yt-scroll-to-engagement-panel-command",[x])};
_.K.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.u("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.qy(Error("So"))};
CP.prototype.dataChanged=CP.prototype.dataChanged;_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],CP.prototype,"actionHandlerBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],CP.prototype,"componentBehavior",void 0);_.A([_.b(_.kj.YtPlayerListenerBehavior),_.r("design:type",_.pO)],CP.prototype,"ytPlayerListenerBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],CP.prototype,"ytRendererBehavior",void 0);
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],CP.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],CP.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],CP.prototype,"player",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],CP.prototype,"dataChanged",null);_.A([_.w({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],CP);
_.q(CP,"ytd-ads-engagement-panel-content-renderer",function(){if(CxU!==void 0)return CxU;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);
return CxU=x},{mode:1});var Wgz;var l5=function(){var x=_.e.apply(this,arguments)||this;x.player=null;x.JSC$22680_playerEvents=new Map;x.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return x};
_.p(l5,_.e);_.K=l5.prototype;_.K.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]]"}}}}}};
_.K.created=function(){this.player=null;this.JSC$22680_playerEvents=new Map;this.JSC$22680_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$22680_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22680_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22680_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.K.attached=function(){var x=this,L=_.Zs();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));L&&L.getPlayerPromise().then(function(D){x.setPlayer(D);x.set("isPageLoad",!1)})};
_.K.setPlayer=function(x){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22680_playerEvents);this.set("player",x);x&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(x,this.JSC$22680_playerEvents),x.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.K.onLoopRangeChange=function(x){var L=_.yY().resolve(_.ZN(_.KX));if((!L||L.isOnWatch())&&this.hostElement.clientHeight){var D;!x&&((D=this.data)==null?0:D.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.K.onVideoProgress=function(x){var L,D,S=((L=this.player)==null?void 0:(D=L.getPresentingPlayerType)==null?void 0:D.call(L))===2;this.isAdPlaying!==S&&this.set("isAdPlaying",S);var Q;if(!S&&(Q=this.player)!=null&&Q.getLoopRange()){D=this.player.getLoopRange();L=D.startTimeMs;D=D.endTimeMs;S=this.player.getProgressState(1).seekableStart;var J;L<S*1E3&&((J=this.data)==null?0:J.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
x=D<x*1E3;var Z;((Z=this.player)==null?0:Z.getLoopRange())&&x&&this.player.seekTo(L/1E3)}};
_.K.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.K.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.K.onYtDeleteClipEngagementPanelCommand=function(x){_.g(x,FWi).command&&this.ytComponentBehavior.resolveCommand(_.g(x,FWi).command)};
_.J3.Object.defineProperties(l5.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.voteCount)||_.Dv("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null?void 0:x.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],l5.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],l5.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],l5.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],l5.prototype,"ytRendererBehavior",void 0);
_.A([_.b(_.kj.YtPlayerListenerBehavior),_.r("design:type",_.pO)],l5.prototype,"ytPlayerListenerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],l5.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],l5.prototype,"isAdPlaying",void 0);_.A([_.F({reflectToAttribute:!0,value:!0}),_.r("design:type",Boolean)],l5.prototype,"isPageLoad",void 0);_.A([_.F({reflectToAttribute:!0,value:!0}),_.r("design:type",Boolean)],l5.prototype,"isDarkTheme",void 0);
_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],l5.prototype,"voteCount",null);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],l5.prototype,"channelEndpoint",null);_.A([_.Y("channelEndpoint"),_.r("design:type",Object),_.r("design:paramtypes",[])],l5.prototype,"channelHref",null);_.A([_.w({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],l5);
_.q(l5,"ytd-clip-attribution-renderer",function(){if(Wgz!==void 0)return Wgz;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return Wgz=x},{mode:1});var q7i;var Ub=function(){var x=_.e.apply(this,arguments)||this;x.player=null;x.JSC$22685_playerEvents=new Map;return x};
_.p(Ub,_.e);_.K=Ub.prototype;_.K.created=function(){this.player=null;this.JSC$22685_playerEvents=new Map;this.JSC$22685_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22685_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22685_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.K.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.K.attached=function(){var x=this,L=_.Zs();L&&L.getPlayerPromise().then(function(D){x.setPlayer(D);x.set("isPageLoad",!1)})};
_.K.setPlayer=function(x){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22685_playerEvents);this.set("player",x);if(x){this.ytPlayerListenerBehavior.listenToPlayerEvents(x,this.JSC$22685_playerEvents);var L;(x==null?void 0:(L=x.getPresentingPlayerType)==null?void 0:L.call(x))===2&&this.playerAdStartHandler()}};
_.K.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.K.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.K.onVideoProgress=function(){var x,L,D=((x=this.player)==null?void 0:(L=x.getPresentingPlayerType)==null?void 0:L.call(x))===2;this.isAdPlaying!==D&&this.set("isAdPlaying",D)};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Ub.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Ub.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.kj.YtPlayerListenerBehavior),_.r("design:type",_.pO)],Ub.prototype,"ytPlayerListenerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Ub.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],Ub.prototype,"isAdPlaying",void 0);
_.A([_.F({reflectToAttribute:!0,value:!0}),_.r("design:type",Boolean)],Ub.prototype,"isPageLoad",void 0);_.A([_.w({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],Ub);
_.q(Ub,"ytd-clip-section-footer-renderer",function(){if(q7i!==void 0)return q7i;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return q7i=x},{mode:1});var AxN;var $4e;var rxz=function(){return _.e.apply(this,arguments)||this};
_.p(rxz,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],rxz.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],rxz.prototype,"data",void 0);_.A([_.w({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],rxz);
_.q(rxz,"ytd-clip-ad-state-renderer",function(){if($4e!==void 0)return $4e;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return $4e=x},{mode:1});var Nbi;var wM=function(){var x=_.e.apply(this,arguments)||this;x.value="";x.valid=!1;x.userChangedValue=!1;x.disabled=!1;x.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return x};
_.p(wM,_.e);_.K=wM.prototype;_.K.detached=function(){this.userChangedValue=!1};
_.K.handleKeyDown=function(x){if(_.vN)var L=13;else _.QJw&&_.V6?L=13:L=13;x.keyCode===L&&x.preventDefault()};
_.K.handleInput=function(){var x=_.jr(this.hostElement).querySelector("#title");if(x){var L=(x.value||"").replace(/\r|\n/g," ");this.set("value",L);x.value=L;this.valid=x.validate();this.userChangedValue=!0}};
_.K.handleBlur=function(){this.valid=_.jr(this.hostElement).querySelector("#title").validate()};
_.K.onValueChanged=function(){_.MF(this.hostElement,"title-changed",{title:this.value})};
_.K.onValidChanged=function(){_.MF(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.K.setInput=function(x,L){var D=_.jr(this.hostElement).querySelector("#title");D&&(D.value=x,this.handleInput(),L&&(D.invalid=!1,this.valid=!0))};
_.K.onClipCreationDisable=function(){this.set("disabled",!0)};
_.K.onClipCreationEnable=function(){this.set("disabled",!1)};
_.K.onClipCreationVisibilityChange=function(x){var L=this;x.visible?requestAnimationFrame(function(){var D;((D=_.jr(L.hostElement).querySelector("#title"))==null?void 0:D.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
wM.prototype.onValidChanged=wM.prototype.onValidChanged;wM.prototype.onValueChanged=wM.prototype.onValueChanged;wM.prototype.handleBlur=wM.prototype.handleBlur;wM.prototype.handleInput=wM.prototype.handleInput;wM.prototype.handleKeyDown=wM.prototype.handleKeyDown;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],wM.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],wM.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.F(),_.r("design:type",Object)],wM.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],wM.prototype,"value",void 0);_.A([_.F(),_.r("design:type",Object)],wM.prototype,"valid",void 0);_.A([_.F(),_.r("design:type",Object)],wM.prototype,"userChangedValue",void 0);_.A([_.F(),_.r("design:type",Object)],wM.prototype,"disabled",void 0);_.A([_.mX("keydown"),_.r("design:type",Function),_.r("design:paramtypes",[KeyboardEvent]),_.r("design:returntype")],wM.prototype,"handleKeyDown",null);
_.A([_.mX("input"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],wM.prototype,"handleInput",null);_.A([_.mX("blur"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],wM.prototype,"handleBlur",null);_.A([_.bN("value"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],wM.prototype,"onValueChanged",null);
_.A([_.bN("valid"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],wM.prototype,"onValidChanged",null);_.A([_.w({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],wM);
_.q(wM,"ytd-clip-creation-text-input-renderer",function(){if(Nbi!==void 0)return Nbi;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Nbi=x},{mode:1});var iwR;var fb5;var oaU;var abR;var zvz;var BJ=function(){var x=_.e.apply(this,arguments)||this;x.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};x.pendingStoryboardImages_={};x.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];x.tickLabelInterval=30;x.mediumTickInterval=5;x.largeTickInterval=15;x.aboveRulerHeight=32;x.rulerHeight=50;x.smallTickHeight=4;x.mediumTickHeight=8;x.largeTickHeight=16;x.mediaListeners_=
{};return x};
_.p(BJ,_.e);_.K=BJ.prototype;_.K.attached=function(){var x=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(L){L=_.O(["screen and (min-resolution: "+L+")","screen and (max-resolution: "+L+")"]);for(var D=L.next();!D.done;D=L.next()){D=D.value;var S=window.matchMedia(D);S&&(x.mediaListeners_[D]=x.updatePixelRatio_.bind(x),S.addEventListener?S.addEventListener("change",x.mediaListeners_[D]):S.addListener?S.addListener(x.mediaListeners_[D]):delete x.mediaListeners_[D])}})};
_.K.detached=function(){this.setPlayer(null);for(var x=_.O(Object.keys(this.mediaListeners_)),L=x.next();!L.done;L=x.next()){var D=L.value;L=this.mediaListeners_[D];(D=window.matchMedia(D))&&(D.removeEventListener?D.removeEventListener("change",L):D.removeListener&&D.removeListener(L))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.K.onVisibilityChangedAction_=function(x){var L=this;x.visible&&!this.player_&&(x=_.Zs())&&x.getPlayerPromise().then(function(D){L.setPlayer(D)})};
_.K.setPlayer=function(x){x&&this.set("player_",x)};
_.K.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.K.setUpCanvas_=function(){var x=this.rulerWidth,L=this.devicePixelRatio_,D=this.visible;this.set("canvasReady_",!1);if(D&&L!==0){D=this.aboveRulerHeight+this.rulerHeight;var S=_.jr(this.hostElement).querySelector("#ticks");S.width=x*L;S.height=D*L;S.style.width=x+"px";S.style.height=D+"px";S.getContext("2d").scale(L,L);this.set("canvasReady_",!0)}};
_.K.drawRuler_=function(x,L,D,S,Q,J,Z,y,E,P,v,V){x&&D&&L&&(x=_.jr(this.hostElement).querySelector("#ticks"),L=x.getContext("2d"),L.clearRect(0,0,x.width,x.height),L.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),L.lineWidth=2,L.beginPath(),L.moveTo(0,this.aboveRulerHeight),L.lineTo(x.width,this.aboveRulerHeight),L.moveTo(0,x.height),L.lineTo(x.width,x.height),L.stroke(),this.drawRulerTicks_(x,J,Q,S),this.drawStoryboardImages_(x,D,J,Q,S),L.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
L.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(Z-J,S,!1),this.rulerHeight),D=this.timeToPixels_(y-J,S,!1),L.fillRect(D,this.aboveRulerHeight,x.width-D,this.rulerHeight),this.drawSpeedLines_(x,J,V))};
_.K.drawRulerTicks_=function(x,L,D,S){var Q=x.getContext("2d");Q.save();Q.lineWidth=1;for(var J=Math.floor(Math.max(0,L-this.tickLabelInterval));J<L+D;J++){Q.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var Z=(J-L)*S;Q.beginPath();Q.moveTo(Z,x.height);var y=this.smallTickHeight;J%this.largeTickInterval===0?y=this.largeTickHeight:J%this.mediumTickInterval===0&&(y=this.mediumTickHeight);Q.lineTo(Z,x.height-y);Q.stroke();J%this.tickLabelInterval===0&&(Q.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),Q.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),Q.fillText(A$(J),Z+4,12),Q.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),Q.moveTo(Z,0),Q.lineTo(Z,this.aboveRulerHeight),Q.stroke())}Q.restore()};
_.K.percentToHex_=function(x){x=Math.round(x*255).toString(16);x.length<2&&(x="0"+x);return x};
_.K.drawSpeedLines_=function(x,L,D){var S=x.getContext("2d");S.save();var Q=Math.min(25,Math.abs(D)-15)/25,J=x.width*.3*Q,Z=x.width*-.3,y=x.width*1.3,E=this.aboveRulerHeight;x=x.height;var P=Math.round(4*Q),v=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");v.length<7&&(v="#"+v.substring(1,4).repeat(2));var V=this.percentToHex_(.5+Q/2);V=v+V;v+="00";if(Q>0)for(Q=0;Q<P;Q++){var h=Z+Math.random()*(y-Z),H=E+Math.random()*(x-E),k=J+L%J,T=S.createLinearGradient(h,H,h+k,H);
D<0?(T.addColorStop(0,V),T.addColorStop(.4,V),T.addColorStop(.9,v)):(T.addColorStop(.1,v),T.addColorStop(.6,V),T.addColorStop(1,V));S.strokeStyle=T;S.lineWidth=1;S.beginPath();S.moveTo(h,H);S.lineTo(h+k,H);S.stroke()}S.restore()};
_.K.getStoryboardForTime_=function(x,L,D){D===void 0&&(D=L.getNumberOfStoryboardLevels()-1);x=L.getStoryboardFrameIndex(x,D);return L.getStoryboardFrame(x,D)};
_.K.drawStoryboardImages_=function(x,L,D,S,Q){if(!this.disabled){x=x.getContext("2d");var J=this.getStoryboardForTime_(0,L);if(J){var Z=J.width/J.columns;J=J.height/J.rows;var y=Z/J,E=this.rulerHeight*y;E=this.tickLabelInterval*(y<this.tickLabelInterval*Q/this.rulerHeight?1/Math.floor(this.tickLabelInterval*Q/E):Math.round(E/(this.tickLabelInterval*Q)));var P=E*Q,v=this.rulerHeight,V=P/this.rulerHeight,h=Math.floor(Math.max(0,D-E));for(h-=h%E;h<D+S;h+=E){var H=this.getStoryboardForTime_(h,L),k=this.getPreloadedStoryboard_(H.url);
if(k){var T=(h-D)*Q,G=this.aboveRulerHeight,U=H.column*Z,l=H.row*J;if(y<V){var X=v/(P/y);H=Z;X*=J;l+=(J-X)/2}else H=P/(v*y)*Z,X=J,U+=(Z-H)/2;x.drawImage(k,U,l,H,X,T,G,P,v)}else this.fetchStoryboardImage_(H)}}}};
_.K.getPreloadedStoryboard_=function(x){return this.storyboardImages_.find(function(L){if(L.src==x)return!0;var D=L.src.indexOf(x);return D!=-1&&D==L.src.length-x.length})};
_.K.fetchStoryboardImage_=function(x){var L=this,D=this.getPreloadedStoryboard_(x.url),S=this.pendingStoryboardImages_[x.url];D||S!==void 0||(D=new Promise(function(Q){var J=new Image(x.width,x.height);J.src=x.url;J.onload=function(){Q(J)};
J.onerror=function(){Q(null)}}),this.pendingStoryboardImages_[x.url]=D,D.then(function(Q){Q&&L.push("storyboardImages_",Q);
return Q}).finally(function(){delete L.pendingStoryboardImages_[x.url]}))};
_.K.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.K.timeToPixels_=function(x,L,D){x*=L;return D===void 0||D?x+"px":x};
_.K.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
BJ.prototype.drawRuler_=BJ.prototype.drawRuler_;BJ.prototype.setUpCanvas_=BJ.prototype.setUpCanvas_;_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],BJ.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],BJ.prototype,"ytRendererBehavior",void 0);_.A([_.F({value:0}),_.r("design:type",Number)],BJ.prototype,"start",void 0);_.A([_.F({value:30}),_.r("design:type",Number)],BJ.prototype,"end",void 0);
_.A([_.F({value:!1}),_.r("design:type",Boolean)],BJ.prototype,"visible",void 0);_.A([_.F(),_.r("design:type",Object)],BJ.prototype,"player_",void 0);_.A([_.F(),_.r("design:type",Number)],BJ.prototype,"tickSpacing",void 0);_.A([_.F(),_.r("design:type",Number)],BJ.prototype,"windowSizeSec",void 0);_.A([_.F({value:0}),_.r("design:type",Number)],BJ.prototype,"rulerWidth",void 0);_.A([_.F({value:0}),_.r("design:type",Number)],BJ.prototype,"rulerShift",void 0);
_.A([_.F({value:!1}),_.r("design:type",Boolean)],BJ.prototype,"canvasReady_",void 0);_.A([_.F({value:function(){return[]}}),
_.r("design:type",Array)],BJ.prototype,"storyboardImages_",void 0);_.A([_.F({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],BJ.prototype,"disabled",void 0);_.A([_.F({value:0}),_.r("design:type",Number)],BJ.prototype,"forceRender_",void 0);_.A([_.F({value:1}),_.r("design:type",Number)],BJ.prototype,"devicePixelRatio_",void 0);_.A([_.F({value:0}),_.r("design:type",Number)],BJ.prototype,"windowSpeed",void 0);
_.A([_.bN("visible","devicePixelRatio_","rulerWidth"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],BJ.prototype,"setUpCanvas_",null);
_.A([_.bN("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.r("design:type",Function),_.r("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.r("design:returntype")],BJ.prototype,"drawRuler_",null);_.A([_.oW({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],BJ);
_.q(BJ,"yt-clip-creation-scrubber-canvas",function(){if(zvz===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);zvz=x}x=zvz;return x},
{mode:2});var XfR;var cxU;var WJ=function(){var x=_.e.apply(this,arguments)||this;x.start=0;x.end=30;x.visible=!1;x.draggingLeft_=!1;x.draggingRight_=!1;x.draggingRuler_=!1;x.draggingWindow_=!1;x.seekableStart=0;x.seekableEnd=0;x.rulerWidth_=0;x.rulerShift_=0;x.windowSlideSpeed=0;x.disabled=!1;x.initialized=!1;x.durationAccessibilityLabel="";x.activeLoopRange_=!1;x.rulerDragMouseStart_=0;x.rulerDragRulerStart_=0;x.rulerDragStartTime_=0;x.rulerDragEndTime_=0;x.dragMouseLastX_=0;x.scrollInterval_=null;x.scrubberVe_=null;x.boundHandlers_=
{};x.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return x};
_.p(WJ,_.e);_.K=WJ.prototype;
_.K.created=function(){var x=this;this.JSC$22698_playerEvents=new Map;this.JSC$22698_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$22698_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$22698_playerEvents.set("onStateChange",this.onStateChange_);var L={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(L).forEach(function(D){x.boundHandlers_[D]=L[D].bind(x)})};
_.K.attached=function(){this.activeLoopRange_=!1;_.jr(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.jr(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.VC(156731)};
_.K.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.jr(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.jr(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.K.onVisibilityChangedAction_=function(x){var L=this;x.visible&&!this.player_&&(x=_.Zs())&&x.getPlayerPromise().then(function(D){L.setPlayer(D)})};
_.K.setPlayer=function(x){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22698_playerEvents);x&&(this.set("player_",x),this.ytPlayerListenerBehavior.listenToPlayerEvents(x,this.JSC$22698_playerEvents))};
_.K.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.K.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.K.beginHandleDrag_=function(x){this.disabled||(x.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=x.clientX,x.target===_.jr(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():x.target===_.jr(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.K.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.K.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.K.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.K.beginRulerDrag_=function(x){this.disabled||(x.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=x.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.K.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.K.beginWindowScroll_=function(){var x=this;this.scrollInterval_=setInterval(function(){var L=x.windowSlideSpeed;if(L=_.kBs(x.start,x.boundedRulerStartLimit_())?L-.1:_.kBs(x.end,x.boundedRulerEndLimit_())?L+.1:0){var D=x.capRulerOffset_(x.rulerShift_+L);D==x.rulerShift_?L=0:(x.set("rulerShift_",D),_.MF(x.hostElement,"set-fixed-length-range",{start:x.start+L,duration:x.end-x.start}))}x.set("windowSlideSpeed",L)},33)};
_.K.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.K.endDrag_=function(){this.logClick();var x=void 0;this.draggingRight_?x=this.end-1:this.draggingLeft_&&(x=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,x);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))};
_.K.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.K.updateRulerSize_=function(){this.set("rulerWidth_",_.jr(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.K.handleMouseDrag_=function(x){x.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(x):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(x):this.draggingWindow_&&this.handleWindowDrag_(x))};
_.K.handleRulerDrag_=function(x){x=this.pixelsToTime_(x.clientX-this.rulerDragMouseStart_);x=this.capRulerOffset_(this.rulerDragRulerStart_-x);this.set("rulerShift_",x);var L=this.rulerDragStartTime_-(this.rulerDragRulerStart_-x);_.MF(this.hostElement,"set-fixed-length-range",{start:L,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-x)-L})};
_.K.handleWindowDrag_=function(x){var L=x.clientX-this.dragMouseLastX_;this.dragMouseLastX_=x.clientX;x=this.pixelsToTime_(L);_.MF(this.hostElement,"set-fixed-length-range",{start:this.start+x,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.K.capRulerOffset_=function(x){var L=this.seekableStart-this.pixelsToTime_(16),D=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(L,x),D)};
_.K.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.K.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.K.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.K.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.K.handleWindowHandleDrag_=function(x){var L=x.clientX-this.dragMouseLastX_;this.dragMouseLastX_=x.clientX;x=this.pixelsToTime_(L);if(this.draggingLeft_){var D=this.start+x;var S=this.end}else this.draggingRight_&&(D=this.start,S=this.end+x);_.MF(this.hostElement,"set-range",{start:D,end:S,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.K.onVideoProgress_=function(x){this.disabled||(x=this.timeToPixels_(x-this.rulerShift_,this.tickSpacing_),_.jr(this.hostElement).querySelector("#playhead").style.transform="translateX("+x+")")};
_.K.onClipCreationDisable_=function(){this.endDrag_()};
_.K.timeToPixels_=function(x,L,D){x*=L;return D===void 0||D?x+"px":x};
_.K.pixelsToTime_=function(x){return x/this.tickSpacing_};
_.K.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.K.centerRuler_=function(x,L,D){this.set("rulerShift_",this.capRulerOffset_(x+(L-x)/2-D/2))};
_.K.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.K.updateLoopRange_=function(x,L,D,S,Q,J,Z){x&&(L&&S&&!D?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(x.pauseVideo(),x.seekTo(Q,!1,void 0,void 0,50)):this.draggingRight_?(x.pauseVideo(),x.seekTo(J-.1,!1,void 0,void 0,50)):(Z!==void 0?x.seekTo(Z,!0,void 0,void 0,50):(L=x.getCurrentTime(),L<Q||L>J?x.seekTo(Q,!0,void 0,void 0,50):x.seekTo(L,!0,void 0,void 0,50)),x.playVideo()),x.setLoopRange({startTimeMs:Q*1E3,endTimeMs:J*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(x.getCurrentTime())):
this.activeLoopRange_&&(x.setLoopRange(null),this.activeLoopRange_=!1))};
_.K.updateHandles_=function(){_.jr(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.jr(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.K.updateRuler_=function(){var x=this.end,L=this.start,D=this.draggableStartLimit_(),S=this.draggableEndLimit_();(L<D-.001||x>S+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.K.computeDurationLabel_=function(x,L){return x?x.replace("$clip_length",parseFloat(L).toFixed(1)):""};
_.K.computeDuration_=function(x,L){return this.isValidTime_(x)&&this.isValidTime_(L)&&x<L?L-x:0};
_.K.isValidTime_=function(x){return isNaN(parseFloat(x))||x<0?!1:this.player_?x>=this.seekableStart&&x<=this.seekableEnd:!0};
_.K.computeWindowSizeSec_=function(x,L,D){return Math.min((x||12E4)/1E3,D-L)};
_.K.computeTickSpacing_=function(x,L){return L?L/x:1};
_.K.onDragStateChanged_=function(){_.MF(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.K.centerRangeOnTime_=function(x){var L=this.duration;x=gzU(x-L/2,L,this.seekableStart,this.seekableEnd);_.MF(this.hostElement,"set-fixed-length-range",{start:x.start,duration:x.end-x.start})};
_.K.nearlyLessThan_=function(x,L,D){return x+(D===void 0?1E-6:D)<L};
_.K.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var x=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(x,this.start)||this.nearlyLessThan_(this.end,x))&&this.centerRangeOnTime_(x)}};
_.K.onStateChange_=function(x){this.visible&&!this.disabled&&x==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.K.computeDragState_=function(x,L,D,S){return x?"left":L?"right":D?"ruler":S?"window":"none"};
_.K.logClick=function(){var x=_.A3(),L=_.qu();x&&L&&this.scrubberVe_&&(_.u("combine_ve_grafts")?_.B5(_.sk(),this.scrubberVe_,L):_.XI(x,L,this.scrubberVe_),_.L7(x,this.scrubberVe_))};
WJ.prototype.onDragStateChanged_=WJ.prototype.onDragStateChanged_;WJ.prototype.updateRuler_=WJ.prototype.updateRuler_;WJ.prototype.updateHandles_=WJ.prototype.updateHandles_;WJ.prototype.onUpdateLoopRange=WJ.prototype.onUpdateLoopRange;WJ.prototype.onInitializedChanged_=WJ.prototype.onInitializedChanged_;WJ.prototype.onVisibleChanged_=WJ.prototype.onVisibleChanged_;_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],WJ.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.b(_.kj.YtPlayerListenerBehavior),_.r("design:type",Object)],WJ.prototype,"ytPlayerListenerBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],WJ.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],WJ.prototype,"start",void 0);_.A([_.F(),_.r("design:type",Object)],WJ.prototype,"end",void 0);_.A([_.F({computed:"computeDuration_(start, end)"}),_.r("design:type",Number)],WJ.prototype,"duration",void 0);
_.A([_.F(),_.r("design:type",String)],WJ.prototype,"lengthTemplate",void 0);_.A([_.F({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.r("design:type",String)],WJ.prototype,"durationLabel",void 0);_.A([_.F(),_.r("design:type",Object)],WJ.prototype,"visible",void 0);_.A([_.F(),_.r("design:type",Object)],WJ.prototype,"player_",void 0);_.A([_.F(),_.r("design:type",Object)],WJ.prototype,"draggingLeft_",void 0);_.A([_.F(),_.r("design:type",Object)],WJ.prototype,"draggingRight_",void 0);
_.A([_.F(),_.r("design:type",Object)],WJ.prototype,"draggingRuler_",void 0);_.A([_.F({value:!1}),_.r("design:type",Object)],WJ.prototype,"draggingWindow_",void 0);_.A([_.F({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.r("design:type",Number)],WJ.prototype,"tickSpacing_",void 0);_.A([_.F(),_.r("design:type",Object)],WJ.prototype,"seekableStart",void 0);_.A([_.F(),_.r("design:type",Object)],WJ.prototype,"seekableEnd",void 0);
_.A([_.F(),_.r("design:type",Number)],WJ.prototype,"windowSizeMs",void 0);_.A([_.F({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.r("design:type",Number)],WJ.prototype,"windowSizeSec_",void 0);_.A([_.F(),_.r("design:type",Object)],WJ.prototype,"rulerWidth_",void 0);_.A([_.F(),_.r("design:type",Object)],WJ.prototype,"rulerShift_",void 0);_.A([_.F(),_.r("design:type",Object)],WJ.prototype,"windowSlideSpeed",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],WJ.prototype,"disabled",void 0);_.A([_.F(),_.r("design:type",Object)],WJ.prototype,"initialized",void 0);_.A([_.F(),_.r("design:type",Object)],WJ.prototype,"durationAccessibilityLabel",void 0);_.A([_.F({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.r("design:type",String)],WJ.prototype,"dragState",void 0);
_.A([_.bN("visible"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],WJ.prototype,"onVisibleChanged_",null);_.A([_.bN("initialized"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],WJ.prototype,"onInitializedChanged_",null);_.A([_.bN("player_","visible","disabled","initialized","start","end"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],WJ.prototype,"onUpdateLoopRange",null);
_.A([_.bN("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],WJ.prototype,"updateHandles_",null);_.A([_.bN("start","end"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],WJ.prototype,"updateRuler_",null);
_.A([_.bN("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],WJ.prototype,"onDragStateChanged_",null);_.A([_.oW({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],WJ);
_.q(WJ,"yt-clip-creation-scrubber-view",function(){if(cxU===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;XfR===void 0&&(XfR=document.createElement("template"));var S=XfR;D.call(L,S.content.cloneNode(!0),x.content.firstChild);cxU=x}x=cxU;return x},{mode:2});var qR=function(){var x=_.e.apply(this,arguments)||this;x.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};x.startHighlightTimeout=0;x.endHighlightTimeout=0;return x};
_.p(qR,_.e);_.K=qR.prototype;_.K.attached=function(){var x=this;this.startInput.addEventListener("input",function(L){return x.handleStartInput_(L)});
this.endInput.addEventListener("input",function(L){return x.handleEndInput_(L)});
this.startInput.addEventListener("focusout",function(L){return x.handleStartBlur_(L)});
this.endInput.addEventListener("focusout",function(L){return x.handleEndBlur_(L)})};
_.K.setPlayer=function(x){this.set("player_",x)};
_.K.onSetFixedLengthRange_=function(x){var L=x.detail;x=L.start;var D=L.duration,S=L.startLimit;L=L.endLimit;S||(S=this.seekableStart_);L||(L=this.seekableEnd_);x=gzU(x,D,S,L);this.start=x.start;this.end=x.end};
_.K.onSetRange_=function(x){var L=x.detail;x=L.start;var D=L.end,S=L.startLimit;L=L.endLimit;S||(S=this.seekableStart_);L||(L=this.seekableEnd_);if(x=ki5(x,D,S,L,this.minLengthSec,this.maxLengthSec))this.start=x.start,this.end=x.end};
_.K.updateInputs_=function(){var x=this.end,L=this.start;this.startInput.focused||(this.startInput.value=A$(L,!0));this.endInput.focused||(this.endInput.value=A$(x,!0))};
_.K.handleStartInput_=function(x){x=usR(x.target.value);if(x===null)this.set("startValid",!1);else{var L=this.end,D=ki5(x,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);D?(this.set("endWillUpdate",D.end!==L),this.set("startValid",D.start===x)):this.set("startValid",!1)}};
_.K.handleEndInput_=function(x){x=usR(x.target.value);if(x===null)this.set("endValid",!1);else{var L=this.start,D=pii(this.start,x,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);D?(this.set("startWillUpdate",D.start!==L),this.set("endValid",D.end===x)):this.set("endValid",!1)}};
_.K.handleStartBlur_=function(x){x=usR(x.target.value);x===null?this.startInput.value=A$(this.start,!0):this.forceUpdateInputs_(ki5(x,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.K.handleEndBlur_=function(x){x=usR(x.target.value);x===null?this.endInput.value=A$(this.end,!0):this.forceUpdateInputs_(pii(this.start,x,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.K.forceUpdateInputs_=function(x){x&&(this.start=x.start,this.end=x.end);this.startInput.value=A$(this.start,!0);this.endInput.value=A$(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.K.initializeClipRange_=function(){var x=this.seekableEnd_,L=this.seekableStart_,D=this.visible_,S=this.player_;if(!S||!D||L===null||!x)this.set("initialized",!1);else if(!this.initialized){var Q=S.getCurrentTime(),J=this.getDefaultLengthSec_();D=S.getVideoData();var Z=S.getPlayerState()==1,y=D.isLive;J=Math.min(J,x-L);Q=Math.max(0,Q);x=y?pii(Q-J,Q,L,x,this.minLengthSec,this.maxLengthSec):Z?gzU(Q-J/2,J,L,x):gzU(Q,J,L,x);this.start=x.start;this.end=x.end;this.set("initialized",!0);D.isLive&&S.seekTo(x.start);
this.startInput.value=A$(this.start,!0);this.endInput.value=A$(this.end,!0)}};
_.K.onStartChanged_=function(){var x=this;_.MF(this.hostElement,"start-changed",{start:this.start});var L;isNaN((L=this.oldStart)!=null?L:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){x.set("highlightStart",!1);x.startHighlightTimeout=0;x.oldStart=x.start},3E3))};
_.K.onEndChanged_=function(){var x=this;_.MF(this.hostElement,"end-changed",{end:this.end});var L;isNaN((L=this.oldEnd)!=null?L:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){x.set("highlightEnd",!1);x.endHighlightTimeout=0;x.oldEnd=x.end},3E3))};
_.K.onVisibilityChangedAction_=function(x){var L=this;this.set("visible_",x.visible);this.visible_&&!this.player_&&(x=_.Zs())&&x.getPlayerPromise().then(function(D){L.setPlayer(D)})};
_.K.computeMinLengthSec_=function(x){return x/1E3||5};
_.K.computeMaxLengthSec_=function(x){return x/1E3||60};
_.K.computeDefaultLengthSec_=function(x){return x/1E3};
_.K.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.K.computeSeekableStart_=function(x,L){return x&&L?x.getProgressState(1).seekableStart:0};
_.K.computeSeekableEnd_=function(x,L){return x&&L?x.getProgressState(1).seekableEnd:0};
_.K.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.K.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.K.onDragState_=function(x){this.set("highlightStart",x.detail.startChanging);this.set("highlightEnd",x.detail.endChanging)};
qR.prototype.onDragState_=qR.prototype.onDragState_;qR.prototype.onEndChanged_=qR.prototype.onEndChanged_;qR.prototype.onStartChanged_=qR.prototype.onStartChanged_;qR.prototype.initializeClipRange_=qR.prototype.initializeClipRange_;qR.prototype.updateInputs_=qR.prototype.updateInputs_;qR.prototype.onSetRange_=qR.prototype.onSetRange_;qR.prototype.onSetFixedLengthRange_=qR.prototype.onSetFixedLengthRange_;
_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],qR.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],qR.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],qR.prototype,"data",void 0);_.A([_.F({value:0}),_.r("design:type",Number)],qR.prototype,"start",void 0);_.A([_.F({value:!0}),_.r("design:type",Boolean)],qR.prototype,"startValid",void 0);
_.A([_.F({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],qR.prototype,"startWillUpdate",void 0);_.A([_.F({value:30}),_.r("design:type",Number)],qR.prototype,"end",void 0);_.A([_.F({value:!0}),_.r("design:type",Boolean)],qR.prototype,"endValid",void 0);_.A([_.F({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],qR.prototype,"endWillUpdate",void 0);_.A([_.F({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.r("design:type",Number)],qR.prototype,"minLengthSec",void 0);
_.A([_.F({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.r("design:type",Number)],qR.prototype,"maxLengthSec",void 0);_.A([_.F({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.r("design:type",Number)],qR.prototype,"defaultLengthSec",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],qR.prototype,"visible_",void 0);_.A([_.F(),_.r("design:type",Object)],qR.prototype,"player_",void 0);
_.A([_.F({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.r("design:type",Number)],qR.prototype,"seekableStart_",void 0);_.A([_.F({computed:"computeSeekableEnd_(player_, visible_)"}),_.r("design:type",Number)],qR.prototype,"seekableEnd_",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],qR.prototype,"initialized",void 0);_.A([_.F({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],qR.prototype,"disabled",void 0);
_.A([_.F({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],qR.prototype,"highlightStart",void 0);_.A([_.F({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],qR.prototype,"highlightEnd",void 0);_.A([_.F1("#start"),_.r("design:type",HTMLInputElement)],qR.prototype,"startInput",void 0);_.A([_.F1("#end"),_.r("design:type",HTMLInputElement)],qR.prototype,"endInput",void 0);
_.A([_.mX("set-fixed-length-range"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],qR.prototype,"onSetFixedLengthRange_",null);_.A([_.mX("set-range"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],qR.prototype,"onSetRange_",null);_.A([_.bN("start","end"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],qR.prototype,"updateInputs_",null);
_.A([_.bN("player_","visible_","seekableStart_","seekableEnd_"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],qR.prototype,"initializeClipRange_",null);_.A([_.bN("start"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],qR.prototype,"onStartChanged_",null);_.A([_.bN("end"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],qR.prototype,"onEndChanged_",null);
_.A([_.mX("clips-drag-state"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],qR.prototype,"onDragState_",null);_.A([_.oW({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],qR);
_.q(qR,"yt-clip-creation-scrubber-renderer",function(){if(abR===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;oaU===void 0&&(oaU=document.createElement("template"));var S=oaU;D.call(L,S.content.cloneNode(!0),x.content.firstChild);abR=x}x=abR;return x},{mode:2});var Aj=function(){var x=_.e.apply(this,arguments)||this;x.player_=null;x.JSC$22712_playerEvents=new Map;x.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return x};
_.p(Aj,_.e);_.K=Aj.prototype;_.K.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"}}}};
_.K.created=function(){this.JSC$22712_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$22712_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$22712_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$22712_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.K.detached=function(){this.setPlayer(null)};
_.K.onVisibilityChangedAction_=function(x){var L=this,D;if((D=this.data)==null?0:D.externalVideoId){var S;this.videoId=(S=this.data)==null?void 0:S.externalVideoId}this.getPlayer().then(function(Q){if(x.visible)L.returnTime=Q.getCurrentTime(),L.isAtLiveHead=Q.getProgressState().isAtLiveHead;else{var J=L.returnTime;L.isAtLiveHead&&(J=Number.POSITIVE_INFINITY);Q.seekTo(J,void 0,void 0,void 0,51)}})};
_.K.getPlayer=function(){var x=this;if(!this.player_){var L=_.Zs();if(L)return L.getPlayerPromise().then(function(D){x.setPlayer(D);return D})}return Promise.resolve(this.player_)};
_.K.setPlayer=function(x){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22712_playerEvents);if(x){this.player_=x;var L;((L=this.data)==null?0:L.externalVideoId)||this.set("videoId",x.getVideoData().video_id||"");var D;(x==null?void 0:(D=x.getPresentingPlayerType)==null?void 0:D.call(x))===2&&(this.set("isAdPlaying",!0),_.dg(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(x,this.JSC$22712_playerEvents)}};
_.K.ready=function(){_.jr(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.K.onTitleChanged_=function(x){this.set("titleValue",x.detail.title)};
_.K.onStartChanged_=function(x){this.set("start",x.detail.start)};
_.K.onEndChanged_=function(x){this.set("end",x.detail.end)};
_.K.onTitleValidChanged_=function(x){this.set("titleValid",x.detail.valid)};
_.K.onStartValidChanged_=function(x){this.set("startValid",x.detail.valid)};
_.K.onEndValidChanged_=function(x){this.set("endValid",x.detail.valid)};
_.K.onVideoDataChange_=function(){var x;if((x=this.data)==null||!x.externalVideoId){var L;this.set("videoId",((L=this.player_)==null?void 0:L.getVideoData().video_id)||"")}};
_.K.computeFormValid_=function(x,L,D,S){return!!(x&&L&&D&&S)};
_.K.computeCancelButton_=function(x,L,D){return x&&_.g(x,_.y4)?{buttonRenderer:Object.assign({},_.g(x,_.y4),{isDisabled:L||D})}:null};
_.K.computeSubmitButton_=function(x,L,D){return x&&_.g(x,_.y4)?{buttonRenderer:Object.assign({},_.g(x,_.y4),{command:void 0,isDisabled:!this.formValid||L||D})}:null};
_.K.computeSubmitCommand_=function(x){return x||null};
_.K.onSubmit_=function(x){var L=this;x.stopPropagation();x.preventDefault();this.submitCommand_&&(x={},x.comment_text=this.titleValue,x.clip_external_video_id=this.videoId,x.clip_offset_ms=parseInt(this.start*1E3,10),x.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.jq(this.hostElement,[this.submitCommand_,x]).then(function(){L.set("isLoading_",!1)},function(){L.set("isLoading_",!1)}))};
_.K.playerAdStartHandler_=function(){_.dg(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.K.playerAdEndHandler_=function(){_.dg(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.K.onVideoProgress_=function(){var x=this;this.getPlayer().then(function(L){var D,S=(L==null?void 0:(D=L.getPresentingPlayerType)==null?void 0:D.call(L))===2;x.isAdPlaying!==S&&(S?x.playerAdStartHandler_():x.playerAdEndHandler_())})};
Aj.prototype.onEndValidChanged_=Aj.prototype.onEndValidChanged_;Aj.prototype.onStartValidChanged_=Aj.prototype.onStartValidChanged_;Aj.prototype.onTitleValidChanged_=Aj.prototype.onTitleValidChanged_;Aj.prototype.onEndChanged_=Aj.prototype.onEndChanged_;Aj.prototype.onStartChanged_=Aj.prototype.onStartChanged_;Aj.prototype.onTitleChanged_=Aj.prototype.onTitleChanged_;_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],Aj.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.b(_.kj.YtPlayerListenerBehavior),_.r("design:type",Object)],Aj.prototype,"ytPlayerListenerBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Aj.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Aj.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Aj.prototype,"data",void 0);_.A([_.F({value:""}),_.r("design:type",String)],Aj.prototype,"titleValue",void 0);
_.A([_.F({value:!1}),_.r("design:type",Boolean)],Aj.prototype,"titleValid",void 0);_.A([_.F({value:0}),_.r("design:type",Number)],Aj.prototype,"start",void 0);_.A([_.F({value:!0}),_.r("design:type",Boolean)],Aj.prototype,"startValid",void 0);_.A([_.F({value:0}),_.r("design:type",Number)],Aj.prototype,"end",void 0);_.A([_.F({value:!0}),_.r("design:type",Boolean)],Aj.prototype,"endValid",void 0);_.A([_.F({value:""}),_.r("design:type",String)],Aj.prototype,"videoId",void 0);
_.A([_.F({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.r("design:type",Boolean)],Aj.prototype,"formValid",void 0);_.A([_.F({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.r("design:type",Object)],Aj.prototype,"submitButton_",void 0);_.A([_.F({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.r("design:type",Object)],Aj.prototype,"submitCommand_",void 0);
_.A([_.F({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.r("design:type",Object)],Aj.prototype,"cancelButton_",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],Aj.prototype,"isLoading_",void 0);_.A([_.F({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],Aj.prototype,"isAdPlaying",void 0);_.A([_.F({value:0}),_.r("design:type",Number)],Aj.prototype,"returnTime",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],Aj.prototype,"isAtLiveHead",void 0);
_.A([_.mX("title-changed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Aj.prototype,"onTitleChanged_",null);_.A([_.mX("start-changed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Aj.prototype,"onStartChanged_",null);_.A([_.mX("end-changed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Aj.prototype,"onEndChanged_",null);
_.A([_.mX("title-valid-changed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Aj.prototype,"onTitleValidChanged_",null);_.A([_.mX("start-valid-changed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Aj.prototype,"onStartValidChanged_",null);_.A([_.mX("end-valid-changed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Aj.prototype,"onEndValidChanged_",null);
_.A([_.oW({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],Aj);
_.q(Aj,"yt-clip-creation-renderer",function(){if(fb5===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;iwR===void 0&&(iwR=document.createElement("template"));var S=iwR;D.call(L,S.content.cloneNode(!0),x.content.firstChild);fb5=x}x=fb5;return x},{mode:2});var $4=function(){return _.e.apply(this,arguments)||this};
_.p($4,_.e);$4.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"}}}};
$4.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(x){return x.hasOwnProperty("clipCreationRenderer")})&&_.dg(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
$4.prototype.onPanelContentVisibleChanged=$4.prototype.onPanelContentVisibleChanged;_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],$4.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],$4.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.hz.YtVisibilityBehavior),_.r("design:type",Object)],$4.prototype,"ytVisibilityBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],$4.prototype,"ytdReduxBehavior",void 0);
_.A([_.F(),_.r("design:type",Object)],$4.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],$4.prototype,"panelContentVisible",void 0);_.A([_.bN("panelContentVisible"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],$4.prototype,"onPanelContentVisibleChanged",null);_.A([_.w({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],$4);
_.q($4,"ytd-clip-section-renderer",function(){if(AxN!==void 0)return AxN;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return AxN=x},{mode:1});var nav;var rM=function(){return _.e.apply(this,arguments)||this};
_.p(rM,_.e);_.K=rM.prototype;
_.K.onKeyDown=function(x){if(this.snippetElements.length!==0&&(x=x.keyCode,x===38||x===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);x===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.BF(this.highlightedIndex,-1,this.snippetElements.length);x=this.snippetElements.length;var L=this.highlightedIndex%x;this.highlightedIndex=L*x<0?L+x:L;x=this.snippetElements[this.highlightedIndex];this.highlightSnippet(x);this.ensureVisible(x)}};
_.K.onKeyUp=function(x){var L=this;yBv(x)&&(x.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.WW.cancelJob(this.inputTimerId),this.inputTimerId=_.WW.addLowPriorityJob(function(){L.typedValue&&(L.fetchSnippets(L.typedValue),L.logInputGesture(L.data))},1E3))};
_.K.onClick=function(x){(x=_.zlA(x.target,null,"snippet-item"))&&this.selectSnippet(x)};
_.K.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.K.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.K.ready=function(){var x=this;this.inputElement.addEventListener("focus",function(){x.snippetsWrapper.style.removeProperty("display")})};
_.K.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.K.getSourceTimelines=function(){if(!this.data)return[];var x=[];if(this.data.searchInVideoSources)for(var L=_.O(this.data.searchInVideoSources),D=L.next();!D.done;D=L.next())D=D.value,D==="SEARCH_IN_VIDEO_SOURCE_ASR"?x.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):D==="SEARCH_IN_VIDEO_SOURCE_OCR"&&x.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return x};
_.K.fetchSnippets=function(x){var L=_.dg(this.hostElement,"yt-get-current-video-id-action")[0],D=this.getSourceTimelines();x={getSearchInVideoCommand:{externalVideoId:L,query:x!=null?x:"",sourceTimelines:D},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.yY().resolve(_.E2).resolveCommand(x,{form:{element:this.hostElement}})};
_.K.filterSnippets=function(x,L){var D=this;if(L){this.filteredSnippets=(0,_.wk.unsafeClone)(x);var S=RegExp(_.hQs(L),"i");this.filteredSnippets=this.filteredSnippets.filter(function(Z){return S.test(D.ytRendererBehavior.getSimpleString(Z.snippet))});
x=_.O(this.filteredSnippets);for(var Q=x.next();!Q.done;Q=x.next()){Q=Q.value;var J=this.ytRendererBehavior.getSimpleString(Q.snippet);Q.snippet={runs:[{text:J.substring(0,J.toLowerCase().indexOf(L))},{text:J.substring(J.toLowerCase().indexOf(L),J.toLowerCase().indexOf(L)+L.length),bold:!0},{text:J.substring(J.toLowerCase().indexOf(L)+L.length,J.length)}]}}}else this.filteredSnippets=x};
_.K.onUpdateSearchInVideoResults=function(x){if(!(this.snippets.length>0)){var L,D,S;if((S=(L=_.g(x,g2v))==null?void 0:(D=L.results)==null?void 0:D.length)!=null&&S){var Q;this.filteredSnippets=this.snippets=((Q=_.g(x,g2v))==null?void 0:Q.results).map(function(J){var Z,y,E;return{startMs:J==null?void 0:(Z=J.searchInVideoResultRenderer)==null?void 0:Z.startMs,startTimeText:J==null?void 0:(y=J.searchInVideoResultRenderer)==null?void 0:y.startTimeText,snippet:J==null?void 0:(E=J.searchInVideoResultRenderer)==
null?void 0:E.snippet}})}}};
_.K.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};
_.K.highlightSnippet=function(x){x.classList.add("highlighted")};
_.K.removeSnippetHighlight=function(x){x.classList.remove("highlighted")};
_.K.selectSnippet=function(x){this.typedValue=String(x.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(x);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.K.ensureVisible=function(x){var L=this.snippetsWrapper.scrollTop,D=L+this.snippetsWrapper.clientHeight,S=x.offsetTop-this.snippetsWrapper.offsetTop;x=S+x.clientHeight;S<L?this.snippetsWrapper.scrollTop-=L-S:x>D&&(this.snippetsWrapper.scrollTop+=x-D)};
_.K.seekPlayer=function(x){var L,D;return _.I(function(S){if(S.nextAddress==1){if(!x)return S.jumpTo(0);L=Number(x.dataset.startOffset);return S.yield(_.yC().getPlayerPromise(),3)}D=S.yieldResult;D.seekTo(L/1E3,!0);D.wakeUpControls();_.Y2(S)})};
_.K.logInputGesture=function(x){var L=_.A3();L&&(x==null?0:x.trackingParams)&&_.Do(L,_.CI(x.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.K.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.gU("typed-value-changed",this.typedValue))};
_.K.updateTypedValueFromBinding=function(x){this.typedValue=x.currentTarget.value};
rM.prototype.typedValueChangedForBinding=rM.prototype.typedValueChangedForBinding;rM.prototype.dataChanged=rM.prototype.dataChanged;rM.prototype.panelContentVisibleChanged=rM.prototype.panelContentVisibleChanged;rM.prototype.onClick=rM.prototype.onClick;rM.prototype.onKeyUp=rM.prototype.onKeyUp;rM.prototype.onKeyDown=rM.prototype.onKeyDown;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],rM.prototype,"ytRendererBehavior",void 0);
_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],rM.prototype,"ytActionHandlerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],rM.prototype,"data",void 0);_.A([_.F({value:[]}),_.r("design:type",Array)],rM.prototype,"snippets",void 0);_.A([_.F({value:[]}),_.r("design:type",Array)],rM.prototype,"filteredSnippets",void 0);_.A([_.F({value:[]}),_.r("design:type",Array)],rM.prototype,"snippetElements",void 0);
_.A([_.F1("#siv-input"),_.r("design:type",HTMLElement)],rM.prototype,"inputElement",void 0);_.A([_.F1("#siv-snippets-wrapper"),_.r("design:type",HTMLElement)],rM.prototype,"snippetsWrapper",void 0);_.A([_.F(),_.r("design:type",String)],rM.prototype,"typedValue",void 0);_.A([_.F({value:-1}),_.r("design:type",Number)],rM.prototype,"highlightedIndex",void 0);_.A([_.mX("keydown"),_.r("design:type",Function),_.r("design:paramtypes",[_.CW]),_.r("design:returntype")],rM.prototype,"onKeyDown",null);
_.A([_.mX("keyup"),_.r("design:type",Function),_.r("design:paramtypes",[_.CW]),_.r("design:returntype")],rM.prototype,"onKeyUp",null);_.A([_.mX("click"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],rM.prototype,"onClick",null);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],rM.prototype,"panelContentVisible",void 0);
_.A([_.bN("panelContentVisible"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],rM.prototype,"panelContentVisibleChanged",null);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],rM.prototype,"dataChanged",null);_.A([_.bN("typedValue"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],rM.prototype,"typedValueChangedForBinding",null);
_.A([_.w({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],rM);
_.q(rM,"ytd-search-in-video-renderer",function(){if(nav!==void 0)return nav;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return nav=x},{mode:1});var t1N;var NR=function(){return _.e.apply(this,arguments)||this};
_.p(NR,_.e);NR.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
NR.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]]"}}}}}};
NR.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var x,L,D,S,Q=(L=_.g((x=this.data)==null?void 0:x.onClickCommand,_.Aa))==null?void 0:(D=L.item)==null?void 0:(S=D.notificationTextRenderer)==null?void 0:S.successResponseText;Q&&_.LQf(this.hostElement,Q)}};
_.J3.Object.defineProperties(NR.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var x,L,D,S;return this.isProductPlaceholder&&((x=this.data)==null?void 0:(L=x.hiddenProductOptions)==null?void 0:L.showDropCountdown)&&!!((D=this.data)==null?0:(S=D.hiddenProductOptions)==null?0:S.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var x;return!this.isProductPlaceholder&&!((x=this.data)==null?0:x.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var x,L;return!((x=this.data)==null?0:x.priceReplacementText)&&!((L=this.data)==null||!L.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],NR.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],NR.prototype,"componentBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],NR.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],NR.prototype,"data",void 0);
_.A([_.F({reflectToAttribute:!0}),_.Y("isProductPlaceholder"),_.r("design:type",Object),_.r("design:paramtypes",[])],NR.prototype,"useCenterLayoutContainer",null);_.A([_.F({computed:"computeButtonOverride(data)"}),_.r("design:type",Object)],NR.prototype,"buttonOverride",void 0);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],NR.prototype,"isProductPlaceholder",null);
_.A([_.Y("isProductPlaceholder"),_.r("design:type",Object),_.r("design:paramtypes",[])],NR.prototype,"showDropCountdown",null);_.A([_.Y("isProductPlaceholder","data"),_.r("design:type",Object),_.r("design:paramtypes",[])],NR.prototype,"showBrandName",null);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],NR.prototype,"showPriceReplacementText",null);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],NR.prototype,"showPrice",null);
_.A([_.Y("isProductPlaceholder"),_.r("design:type",Object),_.r("design:paramtypes",[])],NR.prototype,"showMetadata",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],NR);
_.q(NR,"ytd-product-list-item-renderer",function(){if(t1N!==void 0)return t1N;var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return t1N=x},{mode:1});var xNU;var i5=function(){return _.e.apply(this,arguments)||this};
_.p(i5,_.e);i5.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
i5.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
i5.prototype.panelContentVisibleChanged=function(){var x=this,L;return _.I(function(D){if(D.nextAddress==1)return x.playerApi?D.jumpTo(2):D.yield(_.yC().getPlayerPromise(),3);D.nextAddress!=2&&(x.playerApi=D.yieldResult);(L=x.playerApi)==null||L.productsInVideoVisibilityUpdated(!!x.panelContentVisible);_.Y2(D)})};
i5.prototype.panelContentVisibleChanged=i5.prototype.panelContentVisibleChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],i5.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],i5.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],i5.prototype,"panelContentVisible",void 0);_.A([_.F(),_.r("design:type",Object)],i5.prototype,"data",void 0);
_.A([_.bN("panelContentVisible"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype",Promise)],i5.prototype,"panelContentVisibleChanged",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],i5);
_.q(i5,"ytd-product-list-renderer",function(){if(xNU!==void 0)return xNU;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return xNU=x},{mode:1});var L5R;var fP=function(){var x=_.e.apply(this,arguments)||this;x.hideTimestamps=!!_.Ad("hide-transcript-timestamps");x.currentCueIndex=-1;x.flatCues=[];x.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};x.TEST_ONLY={getFlatCues:function(){return x.flatCues}};
return x};
_.p(fP,_.e);_.K=fP.prototype;_.K.hideTimestampsChanged=function(){_.qB("hide-transcript-timestamps",this.hideTimestamps)};
_.K.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.K.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.K.dataChanged=function(){var x;if((x=this.data)!=null&&x.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;x=_.O(this.data.cueGroups);for(var L=x.next();!L.done;L=x.next()){L=_.O(_.g(L.value,k65).cues);for(var D=L.next();!D.done;D=L.next())this.flatCues.push(Number(_.g(D.value,pH8).startOffsetMs))}}};
_.K.onYtPlayerTimeChanged=function(x){if(!(x<0)){for(var L=this.currentCueIndex,D=L;;){var S=D>=0?this.flatCues[D]/1E3:-1;if(x+.5<S)--D;else if(S=D+1<this.flatCues.length?this.flatCues[D+1]/1E3:Infinity,x+.5>S)D+=1;else break}D!==L&&(L>=0&&((x=this.getCueElement(L))&&x.classList.remove("active"),(L=this.getCueGroupElement(L))&&L.classList.remove("active")),(L=this.getCueElement(D))&&L.classList.add("active"),(L=this.getCueGroupElement(D))&&L.classList.add("active"),this.currentCueIndex=D,this.isHovered||
this.scrollElementToTop(D))}};
_.K.scrollElementToTop=function(x){x=this.getCueElement(x>=3?x-3:0);this.hostElement.scrollTop=Math.min(x.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.K.getCueElement=function(x){return _.jr(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[x]+'"]')};
_.K.getCueGroupElement=function(x){return(x=this.getCueElement(x))&&x.parentElement?x.parentElement.parentElement:null};
_.K.onTap=function(x){var L=_.K$(x);x.target.classList.contains("cue")&&this.seekCueElement(L)};
_.K.onKeyPress=function(x){x.keyCode==13&&(x=_.zlA(x.target,null,"cue"))&&this.seekCueElement(x)};
_.K.seekCueElement=function(x){x=Number(x.getAttribute("start-offset"));_.dg(this.hostElement,"yt-transcript-player-seek",[x/1E3])};
_.K.onMouseEnter=function(){this.isHovered=!0};
_.K.onMouseLeave=function(){this.isHovered=!1};
fP.prototype.onMouseLeave=fP.prototype.onMouseLeave;fP.prototype.onMouseEnter=fP.prototype.onMouseEnter;fP.prototype.onKeyPress=fP.prototype.onKeyPress;fP.prototype.onTap=fP.prototype.onTap;fP.prototype.dataChanged=fP.prototype.dataChanged;fP.prototype.hideTimestampsChanged=fP.prototype.hideTimestampsChanged;_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],fP.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],fP.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],fP.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],fP.prototype,"hideTimestamps",void 0);_.A([_.F(),_.r("design:type",Boolean)],fP.prototype,"isHovered",void 0);_.A([_.bN("hideTimestamps"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],fP.prototype,"hideTimestampsChanged",null);
_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],fP.prototype,"dataChanged",null);_.A([_.mX("tap"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],fP.prototype,"onTap",null);_.A([_.mX("keypress"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],fP.prototype,"onKeyPress",null);
_.A([_.mX("mouseenter"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],fP.prototype,"onMouseEnter",null);_.A([_.mX("mouseleave"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],fP.prototype,"onMouseLeave",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],fP);
_.q(fP,"ytd-transcript-body-renderer",function(){if(L5R!==void 0)return L5R;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return L5R=x},{mode:1});var DNf;var oJ=function(){var x=_.e.apply(this,arguments)||this;x.darkerPanels=_.u("web_watch_darker_panels");return x};
_.p(oJ,_.e);oJ.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],oJ.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],oJ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],oJ.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],oJ.prototype,"darkerPanels",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],oJ);
_.q(oJ,"ytd-transcript-footer-renderer",function(){if(DNf!==void 0)return DNf;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return DNf=x},{mode:1});var Ssi;var Quv;var aJ=function(){var x=_.e.apply(this,arguments)||this;x.systemIcons=_.u("kevlar_system_icons");x.showClearButton=!1;return x};
_.p(aJ,_.e);_.K=aJ.prototype;_.K.handleInput=function(x){var L=this;x.target.value.length?_.LI(this,"ytdTranscriptSearchBoxSearch",function(){L.emitSearchEvent(x)},500):(_.P$n(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=x.target.value.length>0};
_.K.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.K.handleClick=function(){var x,L=(x=this.data)==null?void 0:x.trackingParams;L&&_.AM(_.sk(),L)};
_.K.handleClear=function(){_.P$n(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var x,L,D=(L=_.g((x=this.data)==null?void 0:x.clearButton,_.y4))==null?void 0:L.trackingParams;D&&_.AM(_.sk(),D);this.clear()};
_.K.emitSearchEvent=function(x){_.MF(this.hostElement,"yt-transcript-search-box-search",{query:x.target.value});var L,D;(x=(D=_.g((L=this.data)==null?void 0:L.searchButton,_.y4))==null?void 0:D.trackingParams)&&_.AM(_.sk(),x)};
_.K.emitClearEvent=function(){_.MF(this.hostElement,"yt-transcript-search-box-clear")};
_.J3.Object.defineProperties(aJ.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.jr(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],aJ.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],aJ.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],aJ.prototype,"systemIcons",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],aJ);
_.q(aJ,"ytd-transcript-search-box-renderer",function(){if(Quv!==void 0)return Quv;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Quv=x},{mode:1});var JIi;var K5N;var zo=function(){return _.e.apply(this,arguments)||this};
_.p(zo,_.e);zo.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var x,L;this.sectionHeaderAriaLabel=(x=this.data)==null?void 0:(L=x.accessibility)==null?void 0:L.accessibilityData.label}};
zo.prototype.fireSelectedEvent=function(x){_.MF(this.hostElement,"ytd-transcript-section-header",{startMs:x})};
zo.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
zo.prototype.handleKeyPress=function(x){this.data&&x.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.J3.Object.defineProperties(zo.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var x,L;return(L=(x=this.data)==null?void 0:x.enableTappableTranscriptHeader)!=null?L:!1}}});
zo.prototype.dataChanged=zo.prototype.dataChanged;_.A([_.F(),_.r("design:type",Object)],zo.prototype,"data",void 0);_.A([_.F(),_.r("design:type",String)],zo.prototype,"sectionHeaderAriaLabel",void 0);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],zo.prototype,"enableTappableTranscriptHeader",null);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],zo.prototype,"dataChanged",null);
_.A([_.w({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],zo);
_.q(zo,"ytd-transcript-section-header-renderer",function(){if(K5N!==void 0)return K5N;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return K5N=x},{mode:1});var OqQ;var ZqR;var Xw=function(){var x=_.e.apply(this,arguments)||this;x.isEditMode=!1;x.touchCaptionsEnabled=!1;x.deleteCaptionCorrectionPopupCommand=null;x.voteCaptionCorrectionPopupCommand=null;x.roundedContainer=!0;x.mouseOver=!1;x.textChanged=!1;x.messages={suggest_correction:_.p6("suggest_correction",void 0,"Edit caption"),suggested_caption:_.p6("suggested_caption",void 0,"Suggested caption"),submit_correction:_.p6("submit_correction",void 0,"Submit for review"),cancel_correction:_.p6("cancel_correction",
void 0,"Cancel"),replay_segment:_.p6("replay_segment",void 0,"Re-play segment"),delete_correction:_.p6("delete_correction",void 0,"Delete correction")};x.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return x};
_.p(Xw,_.e);_.K=Xw.prototype;_.K.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)};
_.K.handleDelete=function(x){if(this.deleteCaptionCorrectionPopupCommand){var L=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);L&&this.ytdOpenPopupBehavior.openPopup(L);x.stopPropagation()}};
_.K.handleSubmit=function(x){if(this.data&&this.data.submitCaptionCorrectionCommand&&(x.stopPropagation(),this.textChanged)){var L;x=(L=_.g(this.data.submitCaptionCorrectionCommand,_.HfG))==null?void 0:L.params;L=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:x,correctionText:String(this.ironTextAreaElement.value),originalText:_.SR(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(L);this.isEditMode=!1}};
_.K.handleUpdateSegmentText=function(x){(x=_.g(x,ABi))&&x.targetId&&this.data&&x.targetId===this.data.targetId&&(x.userCorrection&&(this.editedText=x.userCorrection),x.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.SR(this.data.snippet)),x.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=x.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=x.voteCaptionCorrectionPopupCommand?
x.voteCaptionCorrectionPopupCommand:null,x.accessibility&&(this.segmentAriaLabel=x.accessibility.accessibilityData.label))};
_.K.handleCancel=function(x){this.isEditMode=!1;x.stopPropagation();this.logClientVe(159409)};
_.K.handleEditSegmentCommand=function(x){(x=_.g(x,qti))&&x.targetId&&this.data&&x.targetId===this.data.targetId&&this.handleEdit()};
_.K.handleEditButtonClick=function(x){this.data&&(this.handleEdit(),x.stopPropagation())};
_.K.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var x;(x=this.ironTextAreaElement.textarea)==null||x.focus();this.logClientVe(159407)}};
_.K.handleMouseEnter=function(){this.mouseOver=!0};
_.K.handleMouseLeave=function(){this.mouseOver=!1};
_.K.handleReplay=function(x){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),x.stopPropagation(),this.logClientVe(159408))};
_.K.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()))};
_.K.handleKeypress=function(x){this.data&&(this.isEditMode?x.stopPropagation():this.isEnterPress(x)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(x)&&this.logClientVe(138758))};
_.K.handleTextboxClick=function(x){x.stopPropagation()};
_.K.handleTextboxKeydown=function(x){this.isControlEnterPress(x)?this.handleSubmit(x):x.key==="Escape"&&this.handleCancel(x)};
_.K.handleTextboxKeyup=function(){this.textChanged=_.SR(this.latestText)!==String(this.ironTextAreaElement.value)};
_.K.fireSelectedEvent=function(x){_.MF(this.hostElement,"yt-transcript-segment-selected",{startMs:x})};
_.K.fireReplayEvent=function(x,L){_.MF(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(x-100,0),endMs:L})};
_.K.fireEditEvent=function(x,L){_.MF(this.hostElement,"yt-transcript-segment-edit",{startMs:x,endMs:L})};
_.K.isEnterPress=function(x){return x.key==="Enter"||x.code==="Enter"||x.code==="NumpadEnter"||x.keyCode===13?!0:!1};
_.K.isControlEnterPress=function(x){var L=x.key==="Enter"||x.code==="Enter"||x.code==="NumpadEnter"||x.keyCode===13;return(x.ctrlKey||x.metaKey)&&L};
_.K.isCopyPress=function(x){var L=x.ctrlKey;return x.key==="c"&&L};
_.K.logClick=function(){var x,L=(x=this.data)==null?void 0:x.trackingParams;L&&_.AM(_.sk(),L)};
_.K.logClientVe=function(x){_.qJ(_.sk(),_.VC(x))};
_.J3.Object.defineProperties(Xw.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}}});
Xw.prototype.handleMouseLeave=Xw.prototype.handleMouseLeave;Xw.prototype.handleMouseEnter=Xw.prototype.handleMouseEnter;Xw.prototype.dataChanged=Xw.prototype.dataChanged;_.A([_.b(_.ir.YtActionHandlerBehavior),_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],Xw.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.Fz),_.r("design:type",Object)],Xw.prototype,"ytdOpenPopupBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Xw.prototype,"ytRendererBehavior",void 0);
_.A([_.F(),_.r("design:type",Object)],Xw.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Xw.prototype,"isEditMode",void 0);_.A([_.F(),_.r("design:type",Object)],Xw.prototype,"touchCaptionsEnabled",void 0);_.A([_.F(),_.r("design:type",Object)],Xw.prototype,"editedText",void 0);_.A([_.F(),_.r("design:type",Object)],Xw.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.A([_.F(),_.r("design:type",Object)],Xw.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.A([_.F(),_.r("design:type",String)],Xw.prototype,"segmentAriaLabel",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Xw.prototype,"roundedContainer",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Xw.prototype,"mouseOver",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Xw.prototype,"textChanged",void 0);_.A([_.F(),_.r("design:type",Object)],Xw.prototype,"messages",void 0);
_.A([_.F1("#suggestion"),_.r("design:type",Object)],Xw.prototype,"ironTextAreaElement",void 0);_.A([_.Y("data","editedText"),_.r("design:type",Object),_.r("design:paramtypes",[])],Xw.prototype,"latestText",null);_.A([_.Y("touchCaptionsEnabled","isEditMode"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Xw.prototype,"enableEditButton",null);
_.A([_.Y("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Xw.prototype,"enableUndoButton",null);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Xw.prototype,"dataChanged",null);_.A([_.mX("mouseenter"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Xw.prototype,"handleMouseEnter",null);
_.A([_.mX("mouseleave"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Xw.prototype,"handleMouseLeave",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],Xw);
_.q(Xw,"ytd-transcript-segment-renderer",function(){if(ZqR!==void 0)return ZqR;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return ZqR=x},{mode:1});var cJ=function(){var x=_.e.apply(this,arguments)||this;x.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};x.isError=!1;x.darkerPanels=_.u("web_watch_darker_panels");x.useParentMaxHeight=_.u("web_watch_transscript_use_parent_max_height");x.segmentOffsets=[];x.segmentIndex=-1;return x};
_.p(cJ,_.e);_.K=cJ.prototype;_.K.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"}}}}};
_.K.segmentsChanged=function(){this.updateOffsets()};
_.K.onYtPlayerTimeChanged=function(x){for(var L=this.segmentIndex,D=L;;){if(D>=0){var S=this.segmentOffsets[D].start;var Q=this.segmentOffsets[D].isAutoScrollable}else S=-1,Q=!0;var J=x+.5;if(!Q){S=D+1<this.segmentOffsets.length?this.segmentOffsets[D+1].start:Infinity;if(J>=S){D+=1;continue}D=-1;break}if(J<S)S=D-1>=0&&this.segmentOffsets[D-1].isAutoScrollable,Q=D===0||S?1:2,D-=Q;else if(Q=D+1<this.segmentOffsets.length&&this.segmentOffsets[D+1].isAutoScrollable?1:2,S=D+Q<this.segmentOffsets.length?
this.segmentOffsets[D+Q].start:Infinity,J>S)D+=Q;else{if(D<0)break;D<this.segmentOffsets.length&&J>this.segmentOffsets[D].end&&(D=-1);break}}if(L!==D){if(L>=0){var Z;(Z=this.getSegmentElement(L))==null||Z.classList.remove("active")}this.segmentIndex=D;if(!(D<0)){var y;(y=this.getSegmentElement(D))==null||y.classList.add("active");this.isHovered||this.scrollElementToTop(D)}}};
_.K.handleSegmentEdit=function(x){x.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=x.target,_.dg(this.hostElement,"yt-transcript-player-edit",[x.detail.startMs/1E3,x.detail.endMs/1E3]))};
_.K.handleSegmentSelected=function(x){_.dg(this.hostElement,"yt-transcript-player-seek",[x.detail.startMs/1E3])};
_.K.handleSegmentReplay=function(x){_.dg(this.hostElement,"yt-transcript-player-replay",[x.detail.startMs/1E3,x.detail.endMs/1E3])};
_.K.handleSectionHeaderSelected=function(x){_.dg(this.hostElement,"yt-transcript-player-seek",[x.detail.startMs/1E3])};
_.K.onMouseEnter=function(){this.isHovered=!0};
_.K.onMouseLeave=function(){this.isHovered=!1};
_.K.onRetryButtonClick=function(){_.MF(this.hostElement,"transcript-retry-button-click")};
_.K.getSegmentElement=function(x){return _.jr(this.hostElement).querySelector(":nth-child("+(x+1)+")")};
_.K.scrollElementToTop=function(x){x=this.getSegmentElement(x>=2?x-2:0);this.hostElement.scrollTop=Math.min(x.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.K.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(x){var L,D=(L=x.transcriptSegmentRenderer)!=null?L:x.transcriptSectionHeaderRenderer;return{start:Number(D.startMs)/1E3,end:Number(D.endMs)/1E3,isAutoScrollable:x.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.K.clearHighlightedSegments=function(){var x=_.jr(this.hostElement);x=_.O(x.querySelectorAll("ytd-transcript-segment-renderer"));for(var L=x.next();!L.done;L=x.next())L.value.classList.remove("active")};
_.J3.Object.defineProperties(cJ.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var x,L;return((x=this.data)==null?void 0:x.searchResultSegments)||((L=this.data)==null?void 0:L.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
cJ.prototype.onMouseLeave=cJ.prototype.onMouseLeave;cJ.prototype.onMouseEnter=cJ.prototype.onMouseEnter;cJ.prototype.handleSectionHeaderSelected=cJ.prototype.handleSectionHeaderSelected;cJ.prototype.handleSegmentReplay=cJ.prototype.handleSegmentReplay;cJ.prototype.handleSegmentSelected=cJ.prototype.handleSegmentSelected;cJ.prototype.handleSegmentEdit=cJ.prototype.handleSegmentEdit;cJ.prototype.segmentsChanged=cJ.prototype.segmentsChanged;
_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],cJ.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],cJ.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],cJ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],cJ.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],cJ.prototype,"isError",void 0);
_.A([_.F(),_.r("design:type",Object)],cJ.prototype,"noResultLabel",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],cJ.prototype,"darkerPanels",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],cJ.prototype,"useParentMaxHeight",void 0);_.A([_.Y("data"),_.r("design:type",Array),_.r("design:paramtypes",[])],cJ.prototype,"segments",null);
_.A([_.Y("segments","noResultLabel"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],cJ.prototype,"displayNoResults",null);_.A([_.bN("segments"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],cJ.prototype,"segmentsChanged",null);_.A([_.mX("yt-transcript-segment-edit"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],cJ.prototype,"handleSegmentEdit",null);
_.A([_.mX("yt-transcript-segment-selected"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],cJ.prototype,"handleSegmentSelected",null);_.A([_.mX("yt-transcript-segment-replay"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],cJ.prototype,"handleSegmentReplay",null);
_.A([_.mX("ytd-transcript-section-header"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],cJ.prototype,"handleSectionHeaderSelected",null);_.A([_.mX("mouseenter"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],cJ.prototype,"onMouseEnter",null);_.A([_.mX("mouseleave"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],cJ.prototype,"onMouseLeave",null);
_.A([_.w({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],cJ);
_.q(cJ,"ytd-transcript-segment-list-renderer",function(){if(OqQ!==void 0)return OqQ;var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return OqQ=x},{mode:1});var nP=function(){var x=_.e.apply(this,arguments)||this;x.hideTimestamps=!!_.Ad("hide-transcript-timestamps");x.isLoadingTranscripts=!1;x.darkerPanels=_.u("web_watch_darker_panels");x.isError=!1;x.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return x};
_.p(nP,_.e);_.K=nP.prototype;_.K.headerChanged=function(){var x,L;this.baseGetTranscriptsCommand=(L=_.g((x=this.data)==null?void 0:x.header,$Ti))==null?void 0:L.onTextChangeCommand};
_.K.bodyChanged=function(){var x=this.getBodyRenderer();x&&(x.initialSegments&&(this.initialTranscriptsRenderer=x),x.noResultLabel&&(this.noResultLabel=x.noResultLabel),x.retryLabel&&(this.retryLabel=x.retryLabel))};
_.K.detached=function(){this.clearSearchBoxText()};
_.K.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.K.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"}}}};
_.K.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.K.fireSearch=function(x){var L=this;if(x){var D=x.detail.query;if(this.baseGetTranscriptsCommand){var S;x=(S=_.g(this.baseGetTranscriptsCommand,_.go2))==null?void 0:S.params;var Q;S=_.g((Q=this.data)==null?void 0:Q.footer,mTN);var J;if((Q=(J=_.g(S==null?void 0:S.languageMenu,wHN))==null?void 0:J.subMenuItems)&&Q.length>0&&(J=Q.find(function(E){return E.selected}))){var Z,y;
x=(Z=J.continuation)==null?void 0:(y=Z.reloadContinuationData)==null?void 0:y.continuation}Z=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:x,searchQuery:D}});this.ytComponentBehavior.resolveCommand(Z,{commandController:{onServerError:function(){L.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});JBU(this.ytContinuationHandlerBehavior,function(){return D===L.getCurrentSearchBoxText()})}}};
_.K.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.K.onRetryButtonClick=function(){this.isError=!1;var x={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:x}))};
_.K.hideTimestampsChanged=function(){_.qB("hide-transcript-timestamps",this.hideTimestamps)};
_.K.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.K.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.K.handleSignalActionCopyTranscript=function(){var x=this,L=this.getBodyRenderer();L&&(L=((L==null?void 0:L.searchResultSegments)||(L==null?void 0:L.initialSegments)||[]).map(function(D){return _.g(D,NPz)}).filter(function(D){return!!D}).map(function(D){return{snippet:D.snippet||{runs:[{text:""}]},
startTimeText:D.startTimeText||{simpleText:""}}}).map(function(D){var S=(D.snippet.runs||[]).reduce(function(Q,J){return Q+J.text},"");
return x.hideTimestamps?S:D.startTimeText.simpleText+" "+S}).join("\n"),this.copyToClipboard(L))};
_.K.copyToClipboard=function(x){navigator.clipboard&&navigator.clipboard.writeText(x)};
_.K.getCurrentSearchBoxText=function(){var x;return(x=this.searchBox)==null?void 0:x.value};
_.K.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.K.getBodyRenderer=function(){var x;return _.g((x=this.data)==null?void 0:x.body,rB8)};
_.K.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.J3.Object.defineProperties(nP.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.jr(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
nP.prototype.hideTimestampsChanged=nP.prototype.hideTimestampsChanged;nP.prototype.searchCleared=nP.prototype.searchCleared;nP.prototype.fireSearch=nP.prototype.fireSearch;nP.prototype.onReloadContinuationFinish=nP.prototype.onReloadContinuationFinish;nP.prototype.bodyChanged=nP.prototype.bodyChanged;nP.prototype.headerChanged=nP.prototype.headerChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],nP.prototype,"ytRendererBehavior",void 0);
_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],nP.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],nP.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.HS),_.r("design:type",Object)],nP.prototype,"ytContinuationHandlerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],nP.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],nP.prototype,"hideTimestamps",void 0);
_.A([_.F(),_.r("design:type",Object)],nP.prototype,"isLoadingTranscripts",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],nP.prototype,"darkerPanels",void 0);_.A([_.F(),_.r("design:type",Object)],nP.prototype,"isError",void 0);_.A([_.bN("data.header"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],nP.prototype,"headerChanged",null);
_.A([_.GV("data.body"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],nP.prototype,"bodyChanged",null);_.A([_.mX("yt-reload-continuation-finish"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],nP.prototype,"onReloadContinuationFinish",null);_.A([_.mX("yt-transcript-search-box-search"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],nP.prototype,"fireSearch",null);
_.A([_.mX("yt-transcript-search-box-clear"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],nP.prototype,"searchCleared",null);_.A([_.bN("hideTimestamps"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],nP.prototype,"hideTimestampsChanged",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],nP);
_.q(nP,"ytd-transcript-search-panel-renderer",function(){if(JIi!==void 0)return JIi;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return JIi=x},{mode:1});var tj=function(){var x=_.e.apply(this,arguments)||this;x.player=null;x.playerPollJobId=0;return x};
_.p(tj,_.e);_.K=tj.prototype;_.K.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.K.onLoadReloadContinuation=function(x){_.u("web_generate_att_data_for_get_transcript_request")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:x.target.data.continuation}}):(x={clickTrackingParams:x.target.data.clickTrackingParams,getTranscriptEndpoint:{params:x.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.yY().resolve(_.E2).resolveCommand(x,{form:{element:this.hostElement}}))};
_.K.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"}}}};
_.K.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.K.attached=function(){this.updatePlayerListening()};
_.K.detached=function(){this.updatePlayerListening()};
_.K.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.K.startPlayerListening=function(){var x=this,L;return _.I(function(D){if(D.nextAddress==1)return(L=_.Zs())?D.yield(L.getPlayerPromise(),2):D.return();x.player=D.yieldResult;x.playerPollJobId=_.WW.addLowPriorityJob(function(){x.getPlayerVideoProgress()},1E3);
x.player.addEventListener("onCueRangeEnter",function(S){x.onCueRangeEnter(S)});
x.player.addEventListener("onCueRangeExit",function(S){x.onCueRangeExit(S)});
x.player.addEventListener("onStateChange",function(S){x.onPlayerStateChange(S)});
x.player.addEventListener("SEEK_TO",function(S){x.onPlayerSeek(S)});
_.Y2(D)})};
_.K.getPlayerVideoProgress=function(){var x=this;_.WW.cancelJob(this.playerPollJobId);if(this.player){var L=this.player.getCurrentTime();_.dg(this.hostElement,"yt-player-time-changed",[L])}this.playerPollJobId=_.WW.addLowPriorityJob(function(){x.getPlayerVideoProgress()},1E3)};
_.K.stopPlayerListening=function(){this.player=null;_.WW.cancelJob(this.playerPollJobId)};
_.K.onPlayerStateChange=function(x){x===2&&this.removePendingCue()};
_.K.onPlayerSeek=function(x){var L;if(L=this.pendingReplayCueId)L=this.pendingReplayCueId,L=x===(_.u("web_transcript_cue_id_killswitch")?Number(L):Number(L.split("_")[1]));L||this.removePendingCue()};
_.K.onCueRangeEnter=function(x){bUN(x)&&(this.pendingReplayCueId=x)};
_.K.onCueRangeExit=function(x){bUN(x)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.K.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.K.onYtTranscriptPlayerSeek=function(x){this.player&&this.player.seekTo(x,!0)};
_.K.onYtTranscriptPlayerReplay=function(x,L){this.player&&(this.player.addCueRange(meN(x),x,L),this.player.seekTo(x,!0),this.player.playVideo())};
_.K.onYtTranscriptPlayerEdit=function(x,L){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(meN(x),x,L),this.player.seekTo(x,!0))};
tj.prototype.onLoadReloadContinuation=tj.prototype.onLoadReloadContinuation;tj.prototype.panelContentVisibleChanged=tj.prototype.panelContentVisibleChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],tj.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],tj.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],tj.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],tj.prototype,"ytActionHandlerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],tj.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],tj.prototype,"panelContentVisible",void 0);_.A([_.bN("panelContentVisible"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],tj.prototype,"panelContentVisibleChanged",null);
_.A([_.mX("yt-load-reload-continuation"),_.r("design:type",Function),_.r("design:paramtypes",[Object]),_.r("design:returntype")],tj.prototype,"onLoadReloadContinuation",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],tj);
_.q(tj,"ytd-transcript-renderer",function(){if(Ssi!==void 0)return Ssi;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Ssi=x},{mode:1});var yI8;var IKz;var xJ=function(){return _.e.apply(this,arguments)||this};
_.p(xJ,_.e);xJ.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.MF(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.v$(this.hostElement,[this.data.clickCommand],this.hostElement))};
xJ.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.ma)()+_.fc)+"px)"};
xJ.prototype.updateShouldHideFromBinding=function(x){this.shouldHide=x.detail.value};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],xJ.prototype,"rendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],xJ.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Boolean)],xJ.prototype,"shouldHide",void 0);_.A([_.w({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],xJ);
_.q(xJ,"ytd-ad-engagement-panel-banner-renderer",function(){if(IKz!==void 0)return IKz;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return IKz=x},{mode:_.Vm("kevlar_poly_si_batch_j070")?1:2});var EVi;var Ln=function(){var x=_.e.apply(this,arguments)||this;x.modernPanels=_.u("kevlar_watch_modern_panels");x.buttonUpdate=_.u("web_modern_buttons");x.adsSemanticText=_.u("enable_ads_web_ep_buenos_aires_and_padding_fix");return x};
_.p(Ln,_.e);Ln.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.A([_.F(),_.r("design:type",Object)],Ln.prototype,"data",void 0);_.A([_.F({computed:"computeHideDefaultAdBadge(data)"}),_.r("design:type",Boolean)],Ln.prototype,"hideDefaultAdBadge",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Ln.prototype,"modernPanels",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Ln.prototype,"buttonUpdate",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Ln.prototype,"adsSemanticText",void 0);
_.A([_.w({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],Ln);
_.q(Ln,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(EVi!==void 0)return EVi;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return EVi=x},{mode:1});var M$i;var D$=function(){var x=_.e.apply(this,arguments)||this;x.darkerPanels=_.u("web_watch_darker_panels");x.enableSqueezebackPanels=_.u("web_shorts_enable_squeezeback_panels");x.enableAnchoredPanel=_.u("desktop_shorts_v2_anchored_panel");x.modernPanels=_.u("kevlar_watch_modern_panels");x.headerClickListener=function(L){x.onHeaderClick(L)};
x.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return x};
_.p(D$,_.e);_.K=D$.prototype;_.K.computeAdsInfoButton=function(){if(_.u("web_modern_buttons")){var x,L;return(L=_.g((x=this.data)==null?void 0:x.subtitleComplex,bZ5))==null?void 0:L.adInfoRenderer}};
_.K.updateHeaderClickListener=function(){var x,L,D;((x=this.data)==null?0:x.navigationEndpoint)||((L=this.data)==null?0:L.onClickCommand)||_.g((D=this.data)==null?void 0:D.visibilityButton,_.IQ)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.K.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}}}}}};
_.K.collapsedChanged=function(){var x;(x=this.data)!=null&&x.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.u("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.K.focus=function(x){var L=this;this.titleElement&&_.WW.addJob(function(){_.xZ(L.titleElement,x)},0,500)};
_.K.computeTitleAriaLabel=function(x){var L=[];if(x.title){var D,S;L.push(this.ytRendererBehavior.getSimpleString(x.title)||((D=x.title.accessibility)==null?void 0:(S=D.accessibilityData)==null?void 0:S.label))}x.contextualInfo&&L.push(this.ytRendererBehavior.getSimpleString(x.contextualInfo));return L.join(" ")};
_.K.onHeaderClick=function(x){this.shouldTriggerHeaderClick(x)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.MF(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.v$(this.hostElement,[this.data.onClickCommand],this.hostElement)):(x=this.getVisibilityToggleButton())&&x.click())};
_.K.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var x=_.g(this.data.visibilityButton,_.y4)||_.g(this.data.visibilityButton,_.IQ);x&&this.ytRendererBehavior.logExplicitClick(x)}};
_.K.getVisibilityToggleButton=function(){var x=_.jr(this.hostElement).querySelector("#visibility-button").firstElementChild;return(x==null?void 0:x.is)==="ytd-toggle-button-renderer"?x:null};
_.K.shouldTriggerHeaderClick=function(x){return!_.QC(_.Jq(x),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.K.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(x){x=_.g(x,_.v2N);this.targetId&&(x==null?void 0:x.targetId)===this.targetId&&(x=x.navigationButton)&&this.set("data.navigationButton",x)};
_.J3.Object.defineProperties(D$.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.u("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var x;return!!(((x=this.entity)==null?0:x.isActionButtonHidden)||this.hideActionButton)}}});
D$.prototype.collapsedChanged=D$.prototype.collapsedChanged;D$.prototype.updateHeaderClickListener=D$.prototype.updateHeaderClickListener;_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],D$.prototype,"actionHandlerBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],D$.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],D$.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.b(_.EG),_.r("design:type",Object)],D$.prototype,"ytdReduxBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],D$.prototype,"data",void 0);_.A([_.F(),_.r("design:type",String)],D$.prototype,"targetId",void 0);_.A([_.F(),_.r("design:type",Boolean)],D$.prototype,"collapsed",void 0);_.A([_.F(),_.r("design:type",Boolean)],D$.prototype,"hideActionButton",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],D$.prototype,"shortsPanel",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],D$.prototype,"liveChatEngagementPanel",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],D$.prototype,"learningChatEngagementPanel",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],D$.prototype,"darkerPanels",void 0);_.A([_.F1("#title"),_.r("design:type",HTMLElement)],D$.prototype,"titleElement",void 0);_.A([_.F1("#header"),_.r("design:type",HTMLElement)],D$.prototype,"headerElement",void 0);
_.A([_.F({computed:"computeAdsInfoButton(data)"}),_.r("design:type",Object)],D$.prototype,"adsInfoButton",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],D$.prototype,"enableSqueezebackPanels",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],D$.prototype,"enableAnchoredPanel",void 0);_.A([_.F({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(x,L){return _.u6(x.entities,"engagementPanelTitleHeaderEntity",L)}}),
_.r("design:type",Object)],D$.prototype,"entity",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],D$.prototype,"modernPanels",void 0);_.A([_.F({reflectToAttribute:!0}),_.Y("targetId"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],D$.prototype,"adsSemanticText",null);_.A([_.bN("data","data.navigationEndpoint","data.onClickCommand"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],D$.prototype,"updateHeaderClickListener",null);
_.A([_.GV("collapsed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],D$.prototype,"collapsedChanged",null);_.A([_.Y("entity","hideActionButton"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],D$.prototype,"isActionButtonHidden",null);_.A([_.w({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],D$);
_.q(D$,"ytd-engagement-panel-title-header-renderer",function(){if(M$i!==void 0)return M$i;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return M$i=x},{mode:1});var dNs;var S5=function(){return _.e.apply(this,arguments)||this};
_.p(S5,_.e);S5.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],S5.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],S5.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],S5.prototype,"data",void 0);_.A([_.w({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],S5);
_.q(S5,"ytd-macro-markers-info-item-renderer",function(){if(dNs!==void 0)return dNs;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return dNs=x},{mode:1});var PmN;var Q7=function(x,L,D,S,Q,J){_.Te.call(this);var Z=this;this.JSC$22814_containerElement=x;this.hostElement=L;this.supportedSyncItems=D;this.syncEntityKey=S;this.options=Q;this.renderLazyListItems=J;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;juR(this);vVz(this);this.JSC$22814_scrollAnimation=new _.hh(function(y){x.scrollTop=y});
_.V1(this,this.JSC$22814_scrollAnimation);this.addOnDisposeCallback(function(){V$v(Z,!1);Z.activeItem&&Z.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.p(Q7,_.Te);var juR=function(x){var L=_.oQ(_.yY().resolve(_.MP),function(D){return D.entities.markersEngagementPanelSyncEntity||{}},function(D,S){var Q;
if(D[x.syncEntityKey]!==S[x.syncEntityKey]&&((Q=D[x.syncEntityKey])==null?void 0:Q.activeItemIndex)!==void 0)if(S=D[x.syncEntityKey].activeItemIndex,D=x.getItemByIndex(S)){if(hzv(x,D),x.contentVisible)if(x.browsingMode){var J;((J=x.options)==null?void 0:J.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(J=Hqs(x),D.offsetTop<x.JSC$22814_containerElement.clientHeight+x.JSC$22814_containerElement.scrollTop&&J&&!x.activeItemBelowSyncPosition&&V$v(x,!1));uUe(x)}else x.scrollToItem(D)}else _.qy(new _.RZ("Could not find "+
x.supportedSyncItems+" sync child to set active.",S,x.JSC$22814_containerElement.querySelectorAll(x.supportedSyncItems).length))});
x.unsubscribeFromTimedMarkersListSyncEntity=L;x.addOnDisposeCallback(L);gVs(x)},gVs=function(x){var L=_.yY().resolve(_.MP);
L=_.jKp(L.getState(),x.syncEntityKey);(L==null?void 0:L.activeItemIndex)!==void 0&&(L=x.getItemByIndex(L.activeItemIndex))&&hzv(x,L)},vVz=function(x){var L=new _.zR(x.onScroll,50,x);
_.V1(x,L);var D=function(){L.fire()};
x.JSC$22814_containerElement.addEventListener("scroll",D);x.addOnDisposeCallback(function(){x.JSC$22814_containerElement.removeEventListener("scroll",D)})};
Q7.prototype.getItemByIndex=function(x){var L;(L=this.renderLazyListItems)==null||L.call(this,x);L=this.JSC$22814_containerElement.querySelectorAll(this.supportedSyncItems);if(L.length>x)return L[x]};
var hzv=function(x,L){x.activeItem&&x.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));L.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));x.activeItem=L};
Q7.prototype.scrollToItem=function(x){x=this.getScrollPositionForItem(x);this.JSC$22814_containerElement.scrollTop!==x&&this.JSC$22814_scrollAnimation.start(this.JSC$22814_containerElement.scrollTop,x,300)};
Q7.prototype.getScrollPositionForItem=function(x){if(this.JSC$22814_containerElement.querySelectorAll(this.supportedSyncItems)[0]===x)return 0;var L,D=((L=this.options)==null?0:L.percentOffset)?this.JSC$22814_containerElement.clientHeight*this.options.percentOffset:0;x=_.$R(x).y+this.JSC$22814_containerElement.scrollTop-(_.$R(this.JSC$22814_containerElement).y+D);return Math.max(0,Math.min(x,this.JSC$22814_containerElement.scrollHeight-this.JSC$22814_containerElement.offsetHeight))};
Q7.prototype.onScroll=function(){this.activeItemBelowSyncPosition=Hqs(this);if(this.activeItem&&!this.JSC$22814_scrollAnimation.isAnimating()&&Math.abs(this.JSC$22814_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var x;switch((x=this.options)==null?void 0:x.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":kJe(this,!pBQ(this));uUe(this);break;default:kJe(this,!0)}}};
var kJe=function(x,L){var D,S;_.I(function(Q){if(Q.nextAddress==1){if(x.browsingMode)return Q.return();x.browsingMode=!0;L&&x.hostElement.classList.add("browsing-mode");x.playerExitBrowsingModeListener=function(){V$v(x,!1)};
return Q.yield(_.hL(),2)}D=Q.yieldResult;(S=D)==null||S.addEventListener("SEEK_TO",x.playerExitBrowsingModeListener);_.Y2(Q)})},V$v=function(x,L){L=L===void 0?!0:L;
x.browsingMode&&(x.browsingMode=!1,x.hostElement.classList.remove("browsing-mode"),L&&x.scrollToItem(x.activeItem),mN8(x))},mN8=function(x){var L,D;
_.I(function(S){if(S.nextAddress==1)return x.playerExitBrowsingModeListener?S.yield(_.hL(),3):S.jumpTo(0);L=S.yieldResult;(D=L)==null||D.removeEventListener("SEEK_TO",x.playerExitBrowsingModeListener);x.playerExitBrowsingModeListener=void 0;_.Y2(S)})},uUe=function(x){var L;
((L=x.options)==null?void 0:L.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(pBQ(x)?x.hostElement.classList.remove("browsing-mode"):x.activeItem&&x.hostElement.classList.add("browsing-mode"))},Hqs=function(x){if(!x.activeItem)return!1;
var L,D=((L=x.options)==null?0:L.percentOffset)?x.JSC$22814_containerElement.clientHeight*x.options.percentOffset:0;return x.activeItem.offsetTop>=x.JSC$22814_containerElement.scrollTop+D},pBQ=function(x){if(!x.activeItem)return!1;
var L=x.activeItem.offsetTop+14<=x.JSC$22814_containerElement.scrollTop+x.JSC$22814_containerElement.clientHeight;return x.activeItem.offsetTop+x.activeItem.clientHeight-14>=x.JSC$22814_containerElement.scrollTop&&L};
Q7.prototype.panelContentVisibleChanged=function(x){(this.contentVisible=x)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var bqN=function(x,L){x.syncEntityKey=L;var D;(D=x.unsubscribeFromTimedMarkersListSyncEntity)==null||D.call(x);juR(x)},YsU=function(x,L){x.options=L};var JC=function(){var x=_.e.apply(this,arguments)||this;x.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return x};
_.p(JC,_.e);_.K=JC.prototype;_.K.detached=function(){var x;(x=this.scrollController)==null||x.dispose();this.scrollController=void 0};
_.K.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"}}}};
_.K.dataChanged=function(){var x=this;_.So(this,function(){if(x.scrollController){var L;(L=x.scrollController)==null||V$v(L,!1);var D,S,Q;(S=x.scrollController)==null||bqN(S,(Q=(D=x.data)==null?void 0:D.syncModelEntityKey)!=null?Q:"default-macro-markers-list-renderer-entity-key");var J,Z,y;(y=x.scrollController)==null||YsU(y,{percentOffset:(J=x.data)==null?void 0:J.selectedItemAlignmentPercentOffset,floatingPillType:(Z=x.data)==null?void 0:Z.floatingPillType})}else{var E,P,v,V;x.scrollController=
new Q7(x.contents,x.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(V=(E=x.data)==null?void 0:E.syncModelEntityKey)!=null?V:"default-macro-markers-list-renderer-entity-key",{percentOffset:(P=x.data)==null?void 0:P.selectedItemAlignmentPercentOffset,floatingPillType:(v=x.data)==null?void 0:v.floatingPillType},function(h){x.renderLazyListItems(h)})}x.scrollController.panelContentVisibleChanged(!!x.panelContentVisible)})};
_.K.computeButtonShape=function(){var x=this;if(this.data&&this.data.syncButtonLabel)return{onTap:function(){x.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.K.renderLazyListItems=function(x){for(var L=this.contents.children,D=0,S=0;S<L.length;S++){var Q=void 0;(Q=L[S].ytLazyListBehavior)==null||Q.fillRemainingListItems();var J=void 0,Z=void 0;Q=_.g((J=this.data)==null?void 0:(Z=J.contents)==null?void 0:Z[S],_.xIC);Z=J=void 0;if((J=Q)==null?0:(Z=J.contents)==null?0:Z.length)D+=Q.contents.length;if(D>=x)break}};
_.K.handleSetActivePanelItemAction=function(x){if((x=_.g(x,h0i))&&this.panelTargetId===x.panelTargetId){x=x.itemIndex;var L,D,S=(D=(L=this.data)==null?void 0:L.syncModelEntityKey)!=null?D:"default-macro-markers-list-renderer-entity-key",Q;((Q=this.syncEntity)==null?void 0:Q.activeItemIndex)!==x&&this.ytdReduxBehavior.dispatch(_.TR("markersEngagementPanelSyncEntity",S,{key:S,activeItemIndex:x}))}};
_.K.onSyncClick=function(){var x;(x=this.scrollController)==null||V$v(x)};
_.K.panelContentVisibleChanged=function(){var x;(x=this.scrollController)==null||x.panelContentVisibleChanged(!!this.panelContentVisible)};
JC.prototype.panelContentVisibleChanged=JC.prototype.panelContentVisibleChanged;JC.prototype.dataChanged=JC.prototype.dataChanged;_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],JC.prototype,"actionHandlerBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],JC.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],JC.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.b(_.EG),_.r("design:type",Object)],JC.prototype,"ytdReduxBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],JC.prototype,"data",void 0);_.A([_.F({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],JC.prototype,"useCustomColors",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",String)],JC.prototype,"panelTargetId",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],JC.prototype,"panelContentVisible",void 0);
_.A([_.F1("#contents"),_.r("design:type",HTMLElement)],JC.prototype,"contents",void 0);_.A([_.F({selectorArgs:["data.syncModelEntityKey"],selector:_.jKp}),_.r("design:type",Object)],JC.prototype,"syncEntity",void 0);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],JC.prototype,"dataChanged",null);
_.A([_.bN("panelContentVisible"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],JC.prototype,"panelContentVisibleChanged",null);_.A([_.w({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],JC);
_.q(JC,"ytd-macro-markers-list-renderer",function(){if(PmN!==void 0)return PmN;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return PmN=x},{mode:1});var F5w;var Kn=function(){return _.e.apply(this,arguments)||this};
_.p(Kn,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Kn.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],Kn.prototype,"ytComponentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Kn.prototype,"data",void 0);_.A([_.w({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],Kn);
_.q(Kn,"ytd-error-corrections-section-item-renderer",function(){if(F5w!==void 0)return F5w;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return F5w=x},{mode:1});var suN;var OS=function(){return _.e.apply(this,arguments)||this};
_.p(OS,_.e);OS.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],OS.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],OS.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],OS.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],OS.prototype,"data",void 0);_.A([_.w({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],OS);
_.q(OS,"ytd-error-corrections-section-renderer",function(){if(suN!==void 0)return suN;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return suN=x},{mode:1});var THf;var Z$=function(){return _.e.apply(this,arguments)||this};
_.p(Z$,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Z$.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],Z$.prototype,"componentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Z$.prototype,"data",void 0);_.A([_.w({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],Z$);
_.q(Z$,"ytd-topic-link-renderer",function(){if(THf!==void 0)return THf;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return THf=x},{mode:1});var ez5;var y7=function(){var x=_.e.apply(this,arguments)||this;x.modern=_.u("kevlar_modern_sd_v2");x.modernLockupV2=_.u("modernize_structured_description_playlist_lockups_v2");return x};
_.p(y7,_.e);y7.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"}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],y7.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],y7.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],y7.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],y7.prototype,"modern",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],y7.prototype,"modernLockupV2",void 0);
_.A([_.w({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],y7);
_.q(y7,"ytd-video-description-course-section-renderer",function(){if(ez5!==void 0)return ez5;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return ez5=x},{mode:1});var Rz5;var IC=function(){var x=_.e.apply(this,arguments)||this;x.modern=_.u("kevlar_modern_sd_v2");return x};
_.p(IC,_.e);IC.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"}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],IC.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],IC.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],IC.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],IC.prototype,"modern",void 0);_.A([_.w({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],IC);
_.q(IC,"ytd-video-description-files-section-renderer",function(){if(Rz5!==void 0)return Rz5;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return Rz5=x},{mode:1});var GJe;var ES=function(){return _.e.apply(this,arguments)||this};
_.p(ES,_.e);ES.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"}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],ES.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],ES.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],ES.prototype,"data",void 0);_.A([_.w({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],ES);
_.q(ES,"ytd-video-description-gaming-section-renderer",function(){if(GJe!==void 0)return GJe;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return GJe=x},{mode:1});var Cme;var Mz=function(){var x=_.e.apply(this,arguments)||this;x.isExpanded=!1;return x};
_.p(Mz,_.e);Mz.prototype.computeHasDefaultMetadataEndpoint=function(x){var L;x=x==null?void 0:(L=x.defaultMetadata)==null?void 0:L.runs;return!(!x||x.length!==1||!x[0].navigationEndpoint)};
Mz.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.J3.Object.defineProperties(Mz.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Mz.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Mz.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Mz.prototype,"isExpanded",void 0);_.A([_.F({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],Mz.prototype,"hasDefaultMetadataEndpoint",void 0);
_.A([_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Mz.prototype,"isExpandable",null);_.A([_.Y("data","isExpandable","isExpanded"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Mz.prototype,"showExpandedMetadata",null);_.A([_.w({is:"ytd-info-row-renderer",disableElementRegistration:!0})],Mz);
_.q(Mz,"ytd-info-row-renderer",function(){if(Cme!==void 0)return Cme;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Cme=x},{mode:1});var lK8;var d9=function(){var x=_.e.apply(this,arguments)||this;x.currentIndex=0;x.supportComponentResize=!0;x.modern=_.u("kevlar_modern_sd_v2");x.JSC$22844_lastScrollContainerWidth=NaN;return x};
_.p(d9,_.e);_.K=d9.prototype;
_.K.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"}}}};
_.K.getItemsPath=function(){return"videoLockups"};
_.K.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.K.onIronResize=function(){this.updateVideoLockupStyles()};
_.K.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.K.updateVideoLockupStyles=function(){var x;this.JSC$22844_scrollContainer!==void 0&&(x=this.videoLockups)!=null&&x.length&&(x=this.JSC$22844_scrollContainer.clientWidth,x!==this.JSC$22844_lastScrollContainerWidth&&(this.JSC$22844_lastScrollContainerWidth=x,_.uN(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(x*.8,415)+"px"}),_.MF(this.hostElement,"iron-resize")))};
_.J3.Object.defineProperties(d9.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var x=[],L;if((L=this.data)==null||!L.carouselLockups)return x;L=_.O(this.data.carouselLockups);for(var D=L.next();!D.done;D=L.next()){D=D.value;var S=void 0;((S=_.g(D,aE5))==null?0:S.videoLockup)&&x.push(_.g(D,aE5).videoLockup)}return x}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.videoLockups)==null||!x.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var x=[],L;if((L=this.data)==null||!L.carouselLockups)return x;var D;return(D=_.g(this.data.carouselLockups[this.scrollCount],aE5))==null?void 0:D.infoRows}}});
d9.prototype.dataChanged=d9.prototype.dataChanged;d9.prototype.onIronResize=d9.prototype.onIronResize;d9.prototype.hiddenChanged=d9.prototype.hiddenChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],d9.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],d9.prototype,"componentBehavior",void 0);_.A([_.b(_.CO.YtdHorizontalListBehavior),_.r("design:type",Object)],d9.prototype,"ytdHorizontalListBehavior",void 0);
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],d9.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],d9.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],d9.prototype,"inlineStructuredDescription",void 0);_.A([_.F({value:2}),_.r("design:type",Number)],d9.prototype,"initialCount",void 0);_.A([_.F(),_.r("design:type",Object)],d9.prototype,"currentIndex",void 0);
_.A([_.F(),_.r("design:type",Number)],d9.prototype,"scrollCount",void 0);_.A([_.F(),_.r("design:type",Object)],d9.prototype,"supportComponentResize",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],d9.prototype,"contentHidden",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],d9.prototype,"modern",void 0);_.A([_.F1("#scroll-container"),_.r("design:type",HTMLDivElement)],d9.prototype,"JSC$22844_scrollContainer",void 0);
_.A([_.bN("contentHidden"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],d9.prototype,"hiddenChanged",null);_.A([_.Y("data"),_.r("design:type",Array),_.r("design:paramtypes",[])],d9.prototype,"videoLockups",null);_.A([_.Y("videoLockups"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],d9.prototype,"hasVideoLockups",null);
_.A([_.mX("iron-resize"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],d9.prototype,"onIronResize",null);_.A([_.Y("data","scrollCount"),_.r("design:type",Object),_.r("design:paramtypes",[])],d9.prototype,"infoRows",null);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],d9.prototype,"dataChanged",null);_.A([_.w({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],d9);
_.q(d9,"ytd-video-description-music-section-renderer",function(){if(lK8!==void 0)return lK8;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return lK8=x},{mode:_.Vm("kevlar_poly_si_batch_j081")?1:2});var UNs;var PA=function(){var x=_.e.apply(this,arguments)||this;x.modern=_.u("kevlar_modern_sd_v2");return x};
_.p(PA,_.e);PA.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],PA.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],PA.prototype,"ytRendererBehavior",void 0);_.A([_.F({}),_.r("design:type",Object)],PA.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],PA.prototype,"modern",void 0);_.A([_.w({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],PA);
_.q(PA,"ytd-video-description-transcript-section-renderer",function(){if(UNs!==void 0)return UNs;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return UNs=x},{mode:1});var wBQ;_.dF(_.B(function(x){var L=_.mF(_.Jgw,function(){return x.data().firstProviderLinkStatusEntityKey}),D=_.mF(_.Jgw,function(){return x.data().secondProviderLinkStatusEntityKey}),S=function(){var Q,J;
return((Q=L())==null?void 0:Q.linked)||((J=D())==null?void 0:J.linked)};
return _.M("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.M(_.kP,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return x.data().sectionTitle}}),_.M(_.kP,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return S()?x.data().connectedMessage:x.data().notConnectedMessage}}),_.M(_.d,{cond:S,
then:function(){return _.M(_.Fj,{data:function(){return x.data().connectedButton}},{buttonViewModel:function(Q){return _.M(_.qP,{data:Q.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.M(_.d,{cond:function(){return!S()},
then:function(){return _.M(_.Fj,{data:function(){return x.data().notConnectedButton}},{buttonViewModel:function(Q){return _.M(_.qP,{data:Q.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"Wm"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.pJ}});_.dF(_.B(function(x){var L=x.data;return _.M("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.M("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.M(_.kP,{text:function(){return L().sectionTitle}})),_.M("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.M(_.kP,{text:function(){return L().bodyHeader}})),_.M("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.M(_.kP,{text:function(){return L().bodyText}})),_.M(_.d,{cond:function(){return L().attributionText},
then:function(){return _.M("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.M(_.kP,{text:function(){return L().attributionText}}))}}))},"Xm"),"how-this-was-made-section-view-model",{props:{data:_.pJ}});_.dF(_.B(function(x){return _.M("yt-video-description-youchat-section-view-model",{class:_.gF("ytVideoDescriptionYouchatSectionViewModelHost")},_.M("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.M(_.kP,{text:function(){return x.data().sectionTitle}})),_.M("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.M(_.kP,{text:function(){return x.data().subHeaderText}})),_.M("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.M(_.qP,{data:function(){return _.g(x.data().primaryButton,
_.de)}})))},"Ym"),"yt-video-description-youchat-section-view-model",{props:{data:_.pJ}});var j5=function(){var x=_.e.apply(this,arguments)||this;x.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return x};
_.p(j5,_.e);_.K=j5.prototype;
_.K.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}}}}}};
_.K.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.K.dataChanged=function(){var x,L;this.hasDescriptionOnly=!(((x=this.data)==null?void 0:(L=x.items)==null?void 0:L.length)!==1||!_.g(this.data.items[0],ND))};
_.K.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.K.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.K.autoFocusDescription=function(){var x;((x=_.yY().resolve(_.ZN(_.CJ)))==null?0:x.isKeyBoardInUse())&&this.description&&_.LV(this.description)};
_.K.resize=function(){if(_.u("kevlar_disable_sd_resize"))this.JSC$22853_cardList&&_.MF(this.JSC$22853_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.MF(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.MF(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.K.scrollToSection=function(x){if(x=this.getSectionElement(x))_.dg(this.hostElement,"yt-scroll-to-watch-element",[x]),x.focus()};
_.K.getSectionElement=function(x){switch(x){case "infocards-item-section":var L;return(L=this.infocardsSection)!=null?L:null;case "transcript-item-section":var D;return(D=this.transcriptSection)!=null?D:null;case "how-this-was-made-section-item-section":var S;return(S=this.howThisWasMadeSection)!=null?S:null;case "files-item-section":var Q;return(Q=this.filesSection)!=null?Q:null;default:return null}};
_.K.handleSetActiveItemAction=function(x){var L=_.g(x,h0i),D=L&&(L==null?void 0:L.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$22853_cardList;if(L&&D){x=this.currentActiveChapter;var S=this.currentActiveProblem;L=D==null?void 0:D.getItemByIndex(L.itemIndex);var Q=D=!0;L&&(L.active=!0,L.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(D=x!==L,Q=!1,this.currentActiveChapter=L):(L==null?void 0:L.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(D=!1,Q=S!==L,this.currentActiveProblem=L));x&&D&&(x.active=!1);S&&Q&&(S.active=!1)}};
_.J3.Object.defineProperties(j5.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.u("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
j5.prototype.onYtExpanderMoreTapped=j5.prototype.onYtExpanderMoreTapped;j5.prototype.onHiddenChanged=j5.prototype.onHiddenChanged;j5.prototype.dataChanged=j5.prototype.dataChanged;j5.prototype.panelContentVisibleChanged=j5.prototype.panelContentVisibleChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],j5.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],j5.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],j5.prototype,"actionHandlerBehavior",void 0);_.A([_.b(_.XO),_.r("design:type",Object)],j5.prototype,"ironResizableBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],j5.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Boolean)],j5.prototype,"panelContentVisible",void 0);_.A([_.F(),_.r("design:type",Boolean)],j5.prototype,"hasDescriptionOnly",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],j5.prototype,"inlineStructuredDescription",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],j5.prototype,"hidden",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],j5.prototype,"shortsPanel",void 0);_.A([_.F(),_.r("design:type",Object)],j5.prototype,"videoSummary",void 0);_.A([_.F(),_.r("design:type",Object)],j5.prototype,"merchShelf",void 0);
_.A([_.Y("videoSummary"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],j5.prototype,"showVideoSummary",null);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],j5.prototype,"engagementPanel",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],j5.prototype,"watchWhileSdp",void 0);_.A([_.F1("ytd-expandable-video-description-body-renderer"),_.r("design:type",Object)],j5.prototype,"description",void 0);
_.A([_.F1("ytd-horizontal-card-list-renderer"),_.r("design:type",Object)],j5.prototype,"JSC$22853_cardList",void 0);_.A([_.F1("ytd-horizontal-card-list-renderer[center-items]"),_.r("design:type",Object)],j5.prototype,"problemWalkthroughCardList",void 0);_.A([_.F1("ytd-shelf-renderer"),_.r("design:type",Object)],j5.prototype,"shelfSection",void 0);_.A([_.F1("ytd-video-description-music-section-renderer"),_.r("design:type",Object)],j5.prototype,"musicMetadataSection",void 0);
_.A([_.F1("ytd-video-description-infocards-section-renderer"),_.r("design:type",Object)],j5.prototype,"infocardsSection",void 0);_.A([_.F1("ytd-video-description-transcript-section-renderer"),_.r("design:type",Object)],j5.prototype,"transcriptSection",void 0);_.A([_.F1("how-this-was-made-section-view-model"),_.r("design:type",Object)],j5.prototype,"howThisWasMadeSection",void 0);_.A([_.F1("ytd-video-description-files-section-renderer"),_.r("design:type",Object)],j5.prototype,"filesSection",void 0);
_.A([_.bN("panelContentVisible"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],j5.prototype,"panelContentVisibleChanged",null);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],j5.prototype,"dataChanged",null);_.A([_.bN("hidden"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],j5.prototype,"onHiddenChanged",null);
_.A([_.mX("yt-expander-more-tapped"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],j5.prototype,"onYtExpanderMoreTapped",null);_.A([_.w({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],j5);
_.q(j5,"ytd-structured-description-content-renderer",function(){if(wBQ!==void 0)return wBQ;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return wBQ=x},{mode:2});var BHs;var W5f;var vA=function(){return _.e.apply(this,arguments)||this};
_.p(vA,_.e);vA.prototype.computeAriaLabel=function(x){var L,D;return(x==null?void 0:(L=x.accessibility)==null?void 0:(D=L.accessibilityData)==null?void 0:D.label)||_.p6("LOADING",void 0,"Loading")};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],vA.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],vA.prototype,"data",void 0);_.A([_.F({computed:"computeAriaLabel(data)"}),_.r("design:type",String)],vA.prototype,"ariaLabel",void 0);_.A([_.oW({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],vA);
_.q(vA,"yt-content-loading-renderer",function(){if(W5f===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;BHs===void 0&&(BHs=document.createElement("template"));var S=BHs;D.call(L,S.content.cloneNode(!0),x.content.firstChild);W5f=x}x=W5f;return x},{mode:_.Vm("kevlar_poly_si_batch_j043")?1:2});_.dF(_.B(function(x){var L=_.O(_.HB(!1,void 0,"OZMtVb")),D=L.next().value,S=L.next().value;L=_.O(_.HB(!1,void 0,"qWERsf"));var Q=L.next().value,J=L.next().value;_.wO(function(){var E=_.g(x.data().collaboratePlaylistCollaborationSetting,BPR);E&&S(E.switchedOnByDefault);var P=_.g(x.data().allowNewCollaboratorsPlaylistCollaborationSetting,BPR);P&&J(P.switchedOnByDefault);if(!E&&!P||!E&&x.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")S(!0),J(!0)});
var Z=function(E){S(E);J(E);var P=x.data().playlistCollaborationEntityKey||"";var v=_.KI().getState();(v=_.u6(v.entities,"playlistCollaborationEntity",P))&&(v==null?void 0:v.isCollaborative)===E||_.KI().dispatch(_.TR("playlistCollaborationEntity",P,Object.assign({},v,{isCollaborative:E})))},y=function(E){J(E)};
return _.M("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.M("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.M(_.Fj,{data:function(){return x.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(E){return _.M(_.uFH,{data:E.data,
onSwitch:Z})}})),_.M(_.d,{cond:D,
then:function(){return _.M(_.I1,null,_.M("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.M(_.Fj,{data:function(){return x.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(E){return _.M(_.uFH,{data:E.data,
onSwitch:y,overrideDisabled:!1})}})),_.M(_.d,{cond:Q,
then:function(){return _.M("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.M(_.Fj,{data:function(){return x.data().copyLinkButton}},{buttonViewModel:_.qP}))}}),_.M("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.M(_.Fj,{data:function(){return x.data().playlistCollaborators}},{contentListItemViewModel:_.g4W})))}}))},"Zm"),"playlist-collaboration-view-model",{props:{data:_.pJ}});var qsN=_.B(function(x){var L=x.data;var D=x.customCommandResolver;return _.M(_.I1,null,_.M("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.M(_.Fj,{data:function(){return L().adAvatar}},{adAvatarViewModel:function(S){return _.M(_.fUB,{data:S.data,
customCommandResolver:D})}})),_.M("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.M(_.d,{cond:function(){return L().headline},
then:function(S){return _.M(_.kP,{text:S,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.M("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.M(_.Fj,{data:function(){return L().adBadge}},{adBadgeViewModel:function(S){return _.M(_.wN,{data:S.data,
hasDot:function(){return L().primaryDetailsLine!==void 0},
customCommandResolver:D,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.M(_.Fj,{data:function(){return L().primaryDetailsLine}},{adDetailsLineViewModel:function(S){return _.M(_.BE,{data:S.data,
customCommandResolver:D,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"$m"),AIU=_.B(function(x){var L=x.data;
var D=x.customCommandResolver;return _.M("ad-avatar-lockup-view-model",{class:function(){var S;return((S=L().interaction)==null?0:S.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:_.Zt(_.yB({visibilityCallback:function(S){var Q,J=(Q=L().interaction)==null?void 0:Q.onFirstVisible;S&&J&&_.Xf(J)},
showOption:_.T2}),_.ik(function(){return L().interaction},D)),
"aria-label":function(){var S,Q;return(S=L().interaction)==null?void 0:(Q=S.accessibility)==null?void 0:Q.label}},_.M(_.GS,null,_.M(_.TS,{when:function(){return L().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.M(qsN,{data:L,
customCommandResolver:D})}),_.M(_.eF,null,function(){return null})))},"an");_.dF(_.B(function(x){var L=x.data;var D=x.panelContentVisibility;x=_.yB({visibilityCallback:function(J){var Z,y=(Z=L().interaction)==null?void 0:Z.onFirstVisible;J&&y&&_.Xf(y)},
showOption:_.T2});var S=_.ik(function(){return L().interaction},Y5i);
_.qN(function(){var J,Z;if(Z=_.o1("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var y;Z=(y=Z())==null?void 0:y.onLayoutVisibleCallback}else Z=null;(J=Z)==null||J()},"bn");
var Q=function(){return D()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.M("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:_.Zt(x,S)},_.M("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.M("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.M(_.d,{cond:_.zxc("(min-width: "+((0,_.ma)()+_.fc)+"px) or (max-width: 600px)"),then:function(){return _.M(_.Fj,{data:function(){return L().adImage}},{adImageViewModel:function(J){return _.M(_.i0,{data:J.data,
targetHeight:80,customCommandResolver:Y5i})}})}})),_.M("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.M("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.M(_.Fj,{data:function(){return L().adAvatarLockup}},{adAvatarLockupViewModel:function(J){return _.M(AIU,{data:J.data,
customCommandResolver:Y5i})}})),_.M(_.d,{cond:Q,
then:function(){return _.M(_.Fj,{data:function(){return L().adButton}},{adButtonViewModel:function(J){return _.M(_.Rd,{data:J.data,
customCommandResolver:Y5i})}})},
else:function(){return _.M(_.Fj,{data:function(){return L().menu}},{buttonViewModel:_.qP})}}),_.M("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.M(_.Fj,{data:function(){var J=_.g(L().toggleButton,_.j3);
return{toggleButtonViewModel:Object.assign({},J,{isTogglingDisabled:!0,isToggled:Q()})}}},{toggleButtonViewModel:_.JT})))))},"cn"),"panel-ad-header-image-lockup-view-model",{props:{data:_.pJ,
panelContentVisibility:_.pJ}});_.dF(_.B(function(x){var L=function(){return _.g(x.data().inputComposerViewModel,WW8)},D=_.ic(_.aB.currentPageSubTypeSelector),S=_.O(_.HB(!1,void 0,"tZvFae")),Q=S.next().value,J=S.next().value;
S=_.O(_.HB(!1,void 0,"yUp6Be"));var Z=S.next().value,y=S.next().value,E=function(){if(!Z()){var xf;(xf=_.HX())==null||xf.removeCueRange("aic-proactive");J(!1);y(!0);xf={continuationCommand:{token:L().endOfVideoContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};var K3={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),pageContext:N()}};_.o6(xf,{form:{formData:K3}})}},P=function(){var xf=_.HX();
if(xf&&!Q()&&!Z()){var K3=xf.getDuration();K3>60&&(xf.addCueRange("aic-proactive",K3-60,K3-20),J(!0))}},v=function(){var xf;
return((xf=L())==null?void 0:xf.youchatPendingResponseEntityKey)||""},V=_.mF(_.ic$,v),h=function(){var xf;
return!((xf=V())==null||!xf.isPendingResponse)};
S=_.O(_.HB(!0,void 0,"Uj99ef"));var H=S.next().value,k=S.next().value,T=function(){return L().sectionTargetId||"youchat_messages_section"};
S=_.Sc("yt-chat-input-view-model");var G=_.x3("textarea"),U=_.mF(PQ8,"chat_input_view_model_state"),l=jNv(),X=function(){var xf;return!((xf=U())==null||!xf.value)},f=function(){return x.data().environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"},N=function(){if(_.u("enable_ai_companion")){var xf=_.yY().resolve(_.ZN(_.cws));
switch(D()){case "watch":var K3,P4;return{pageSurface:"PAGE_SURFACE_WATCH",entityId:(K3=_.HX())==null?void 0:(P4=K3.getVideoData())==null?void 0:P4.video_id};case "search":var kf,H4;return{pageSurface:"PAGE_SURFACE_SEARCH",videoIds:(kf=xf==null?void 0:OZv())!=null?kf:[],entityId:(H4=(new URLSearchParams(window.location.search)).get("search_query"))!=null?H4:void 0};case "companion-canvas":var p3;return{pageSurface:"PAGE_SURFACE_CANVAS",videoIds:(p3=xf==null?void 0:OZv())!=null?p3:[]}}}};
_.wO(function(){var xf;if(!X()&&((xf=L())==null?0:xf.welcomeFeatureContinuation)){var K3;((K3=L())==null?0:K3.setPendingResponseOnWelcome)&&_.fCu(v())(!0);xf={continuationCommand:{token:L().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};K3={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),playerOffsetMs:T8s(),pageContext:N()}};_.o6(xf,{form:{formData:K3}});l(!0)}var P4=T(),kf=_.yY().resolve(_.ZN(_.np)),H4=function(){_.Ye.remove(P4);l(!1)},p3=function(){_.hI(function(){if(f()){var w0;
(w0=_.HX())==null||w0.removeCueRange("aic-proactive");J(!1);y(!1);var Rn;if((Rn=L())==null?0:Rn.welcomeFeatureContinuation){var lG;((lG=L())==null?0:lG.setPendingResponseOnWelcome)&&_.fCu(v())(!0);w0={continuationCommand:{token:L().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};Rn={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),playerOffsetMs:T8s(),pageContext:N()}};_.o6(w0,{form:{formData:Rn}})}D()==="watch"&&(w0=_.HX())&&(w0.addEventListener("onStateChange",
P),w0.addEventListener("onCueRangeEnter",E))}})};
xf=_.u("enable_ai_companion")?!f():!0;kf==null||kf.addEventListener("yt-navigate-start",H4,{once:xf});kf==null||kf.addEventListener("yt-navigate-finish",p3,{once:xf});_.wH(function(){kf==null||kf.removeEventListener("yt-navigate-start",H4);kf==null||kf.removeEventListener("yt-navigate-finish",p3);var w0=_.HX();w0&&(w0.removeEventListener("onCueRangeEnter",E),w0.removeEventListener("onStateChange",P),w0.removeCueRange("aic-proactive"))})});
var z=function(){var xf=G.value.value;G.value.value="";FRe(G.value);var K3,P4=((K3=L())==null?void 0:K3.enableGradientColorBg)||!1;K3=sNi(T(),xf,P4);_.o6(K3);var kf=_.fCu(v()),H4;_.Xf(((H4=L())==null?void 0:H4.onSubmitCommand)||{});kf(!0);var p3;H4={continuationCommand:{token:(p3=L())==null?void 0:p3.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};xf={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:xf,playerOffsetMs:T8s(),pageContext:N()}};_.o6(H4,{form:{formData:xf},
commandController:{onSuccess:function(){kf(!1)},
onServerError:function(){var w0=T();_.o6({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:w0}}]}}});kf(!1)}}})};
return _.M("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:S},_.M("div",{class:"chatInputViewModelChatInputWrapper"},_.M("form",{class:"chatInputViewModelChatInputForm"},_.M("textarea",{class:"chatInputViewModelChatInput",el:G,"on:keydown":_.kO(function(xf){var K3=h()||!1;FRe(G.value);K3||xf.key!=="Enter"||xf.shiftKey||(xf.preventDefault(),z());return!1}),
"on:keyup":_.kO(function(){k(G.value.value.length===0);return!1}),
placeholder:function(){var xf,K3;var P4=_.g((K3=L())==null?void 0:K3.inputFormField,jTR);return P4==null?void 0:(xf=P4.contentProperties)==null?void 0:xf.placeholderText},
rows:1}),_.M(_.qP,{data:function(){return _.g(x.data().sendButton,_.de)},
onClick:function(xf){xf.preventDefault();z();k(G.value.value.length===0)},
buttonOverrides:function(){return{disabled:H()||h()}}})),_.M(_.kP,{className:"chatInputViewModelChatDisclaimer",
text:function(){var xf;return(xf=_.g(x.data().disclaimer,_.L$H))==null?void 0:xf.text}})))},"dn"),"yt-chat-input-view-model",{props:{data:_.pJ}});var $Nv=["engagement-panel-clip-create","engagement-panel-clip-view"],rIf=0,V7=function(){var x=_.e.apply(this,arguments)||this;var L;x.headerData=(L=x.data)==null?void 0:L.header;x.darkerPanels=_.u("web_watch_darker_panels");x.matchContentTheme=_.u("web_watch_panel_content_match_theme");x.disableAutoFill=!1;x.isFullscreen=!1;x.isTheaterMode=!1;x.modernPanels=_.u("kevlar_watch_modern_panels");x.liveChatReplyPanel=!1;x.enableAnchoredPanel=_.u("desktop_shorts_v2_anchored_panel");x.disableBackdropFilter=
_.u("web_disable_backdrop_filter");x.isPersistentPanel=!1;x.trackEngagementPanelVisibility=_.u("web_watch_track_engagement_panel_visibility");x.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 x};
_.p(V7,_.e);_.K=V7.prototype;
_.K.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(x){var L;return(x==null?void 0:(L=x.webComponentHint)==null?void 0:L.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":"ytd-section-list-renderer"},
params:{engagementPanel:!0},properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",inReplyPanel:"[[liveChatReplyPanel]]",engagementPanelDropdown:"[[dropdown]]",engagementPanelDialog:"[[dialog]]",disableAutoFill:"[[disableAutoFill]]"}},continuationItemRenderer:"ytd-continuation-item-renderer",richGridRenderer:"ytd-rich-grid-renderer",transcriptRenderer:"ytd-transcript-renderer",clipSectionRenderer:"ytd-clip-section-renderer",adsEngagementPanelContentRenderer:"ytd-ads-engagement-panel-content-renderer",
macroMarkersListRenderer:"ytd-macro-markers-list-renderer",searchInVideoRenderer:"ytd-search-in-video-renderer",structuredDescriptionContentRenderer:{component:"ytd-structured-description-content-renderer",params:{engagementPanel:!0},properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[isWatchWhilePanel]]"}},mediaUpsellRenderer:"ytd-media-upsell-renderer",productListRenderer:"ytd-product-list-renderer",contentLoadingRenderer:"yt-content-loading-renderer",flowRootRenderer:"ytd-flow-root-renderer",
sponsorshipsGiftingOptInRenderer:"ytd-sponsorships-gifting-opt-in-renderer",playlistCollaborationViewModel:"playlist-collaboration-view-model"},events:!0},"data.footer":{id:"footer",mapping:{commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",params:{fullWidth:!0}},cardItemRenderer:"yt-card-item-renderer",chatInputViewModel:"yt-chat-input-view-model",liveChatEngagementPanelInputRenderer:{component:"yt-live-chat-engagement-panel-input-renderer",properties:{inReplyPanel:"[[liveChatReplyPanel]]",
hideBorder:"[[hideFooterBorder]]"}},liveLeaderboardItemViewModel:"ytvl-live-leaderboard-item-view-model",disableableButtonViewModel:"yt-disableable-button-view-model"}}}};
_.K.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var x;if((x=this.hostElement.parentElement)==null?0:x.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.K.detached=function(){this.updateTheaterDisablement()};
_.K.showPanel=function(){var x=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.WW.addJob(function(){x.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.K.maybeScrollToItemSection=function(x){var L=this,D,S=x==null?void 0:(D=x.sectionListEngagementPanelExtras)==null?void 0:D.scrollToItemSectionIdentifier;S&&_.WW.addJob(function(){var Q;(Q=L.sectionListRendererElement)==null||Q.scrollToItemSection(S)},8)};
_.K.hidePanel=function(){var x=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.WW.addJob(function(){x.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.K.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.K.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.K.updatePanel=function(x,L,D,S){var Q=this;if((x=x==null?void 0:x.engagementPanelSectionListRenderer)||S){if(x){S=x.header;var J=x.content,Z=x.footer;(x=x.targetId)&&this.set("data.targetId",x);S&&this.set("data.header",S);J&&this.set("data.content",J);Z&&this.set("data.footer",Z)}else S&&(x=S.content,J=S.secondaryHeaderContent,(S=S.targetId)&&this.set("data.targetId",S),x&&this.set("data.content",x),J&&(this.secondaryHeaderData=J));this.updateChildVisibilityProperties();if(L){var y;_.u("kevlar_update_panel_focus_scroll_killswitch")||
(y={preventScroll:!0});this.focus(y)}_.So(this,function(){_.MF(Q.hostElement,"yt-refit");Q.maybeScrollToItemSection(D)})}};
_.K.computeHeaderData=function(){var x,L=(0,_.wk.unsafeClone)((x=this.data)==null?void 0:x.header);if(L){x=new _.jp(Object.keys(L)[0]);var D=_.g(L,x),S=_.g(this.secondaryHeaderData,x);S&&_.AH(L,x,Object.assign({},S,D))}return L};
_.K.getReloadContinuation=function(){var x,L,D,S=_.O(((x=this.data)==null?void 0:(L=x.content)==null?void 0:(D=L.sectionListRenderer)==null?void 0:D.continuations)||[]);for(x=S.next();!x.done;x=S.next())if(x=x.value,x.reloadContinuationData)return x.reloadContinuationData.continuation};
_.K.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var x;((x=this.data)==null?0:x.targetId)&&(x=this.contentElement.firstElementChild)&&x.setAttribute("panel-target-id",this.data.targetId)};
_.K.forwardPopupClosedToFlowRootRenderer=function(){var x=_.jr(this.hostElement).querySelector("ytd-flow-root-renderer");if(x)x.onPopupClosed()};
_.K.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var x;if(!$Nv.includes((x=this.theaterDisablementPanelIdentifier)!=null?x:""))if(x=_.u("web_watch_imax_theater_mode")&&this.isTheaterMode,x=_.u("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||x,_.u("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||x){var L;this.visibility=(L=this.data)==null?void 0:L.visibility;var D;this.trackEngagementPanelVisibility&&((D=this.data)==null?void 0:D.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var S,Q,J,Z;this.contentEmpty=!!(((S=this.data)==null?0:(Q=S.content)==null?0:Q.structuredDescriptionContentRenderer)&&Object.keys((J=this.data)==null?void 0:(Z=J.content)==null?void 0:
Z.structuredDescriptionContentRenderer).length===0);(L=_.yY().resolve(_.Dk))&&L.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.K.isTheaterModeChanged=function(){_.u("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.K.isFullscreenChanged=function(){_.u("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.K.focus=function(x){if(this.header)this.header.focus(x);else{var L;(L=_.jr(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||L.focus(x)}};
_.K.visibilityChanged=function(){if(!_.u("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var x=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",L=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",D=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",S=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",Q=S||!this.lastVisibility,J,Z,y,E=((J=this.data)==null?void 0:(Z=J.identifier)==null?void 0:
Z.tag)||((y=this.data)==null?void 0:y.panelIdentifier);if(x&&Q){var P;((P=this.data)==null?0:P.onShowCommands)&&_.v$(this.hostElement,this.data.onShowCommands,this.hostElement);E&&_.Jd().dispatch(_.MU({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:E}}))}else if(L&&D){var v;((v=this.data)==null?0:v.onHideCommands)&&_.v$(this.hostElement,this.data.onHideCommands,this.hostElement);E&&_.Jd().dispatch(_.MU({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:E}}))}x&&this.lastVisibility!==
void 0&&(this.hostElement.style.order=String(-1*rIf++));_.u("kevlar_watch_focus_on_engagement_panels")&&x&&S&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.K.notifyVisibilityChanged=function(x){var L;_.P$(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,x,(L=this.data)==null?void 0:L.targetId])};
_.K.updateTheaterDisablement=function(){if(!_.u("kevlar_watch_theater_disablement_killswitch")){var x=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&$Nv.includes(x)&&!_.u("watch_next_grid_ignore_disallowed_panels")){var L=_.$O(_.Jd().getState()),D=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";x!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():D?(this.originalTheaterState===void 0&&(this.originalTheaterState=L,this.theaterDisablementPanelIdentifier=
x),L&&_.dg(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.K.clearTheaterDisablement=function(){_.dg(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.K.updateChildVisibilityProperties=function(){this.hostElement||_.u("kevlar_panel_property_init_killswitch")||this._enableProperties();var x=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=x);var L,D=(L=this.headerElement)==null?void 0:L.firstElementChild;if(D&&!this.adHeaderImageLockupViewModel){L=x==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";D.collapsed=L;D=_.jr(D).querySelector("#visibility-button");if(!D)return;(D=D.firstElementChild)&&
D.polymerController.is==="ytd-toggle-button-renderer"&&D.polymerController.data.isToggled!==L&&D.polymerController.set("data.isToggled",L)}var S;if(L=(S=this.contentElement)==null?void 0:S.firstElementChild)if(x&&x!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")L.removeAttribute("panel-content-visible");else{L.setAttribute("panel-content-visible","");var Q;(Q=L.markDirty)==null||Q.call(L)}};
_.K.onYtChangeEngagementPanelVisibilityAction=function(x){var L=this,D,S=(D=this.data)==null?void 0:D.targetId,Q,J,Z;D=((Q=this.data)==null?void 0:(J=Q.identifier)==null?void 0:J.tag)||((Z=this.data)==null?void 0:Z.panelIdentifier);var y=_.g(x,_.Fs2),E;x=S&&(y==null?void 0:y.targetId)===S||D&&(y==null?void 0:(E=y.panelIdentifier)==null?void 0:E.tag)===D;this.dialog&&x&&(y==null?void 0:y.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(S==="engagement-panel-comments-section"?_.dg(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.dg(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",D]));!_.u("kevlar_use_engagement_panel_management_component")&&x&&(S=y.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!S?_.WW.addJob(function(){L.visibility=y.visibility},2,this.hideDelayMs):this.visibility=y.visibility,y.visibility&&this.notifyVisibilityChanged(y.visibility))};
_.K.onYtScrollToEngagementPanelCommand=function(x){var L,D=(L=this.data)==null?void 0:L.targetId,S,Q,J;L=((S=this.data)==null?void 0:(Q=S.identifier)==null?void 0:Q.tag)||((J=this.data)==null?void 0:J.panelIdentifier);x=_.g(x,_.qx2);var Z;(D&&(x==null?void 0:x.targetId)===D||L&&(x==null?void 0:(Z=x.panelIdentifier)==null?void 0:Z.tag)===L)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.dg(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.K.attachVEs=function(x){var L,D;(x==null?0:(L=x.content)==null?0:(D=L.productListRenderer)==null?0:D.trackingParams)&&_.sk().graftServerVe(x.content.productListRenderer.trackingParams);var S,Q;(x==null?0:(S=x.content)==null?0:(Q=S.transcriptRenderer)==null?0:Q.trackingParams)&&_.sk().graftServerVe(x.content.transcriptRenderer.trackingParams)};
_.K.onYtUpdateEngagementPanelAction=function(x){var L,D=(L=this.data)==null?void 0:L.targetId;x=_.g(x,u5U);D&&(x==null?void 0:x.targetId)===D&&(this.updatePanel({engagementPanelSectionListRenderer:{header:x==null?void 0:x.header,content:x==null?void 0:x.content}},!1),this.attachVEs(x))};
_.K.onYtShowEngagementPanelScrimAction=function(x){var L,D=(L=this.data)==null?void 0:L.targetId;x=_.g(x,HZs);D&&(x==null?void 0:x.engagementPanelTargetId)===D&&(this.scrimmed=!0)};
_.K.onYtHideEngagementPanelScrimAction=function(x){var L,D=(L=this.data)==null?void 0:L.targetId;x=_.g(x,Vfw);D&&(x==null?void 0:x.engagementPanelTargetId)===D&&(this.scrimmed=!1)};
_.K.getIdentifier=function(){var x,L,D;return((x=this.data)==null?void 0:x.panelIdentifier)||((L=this.data)==null?void 0:(D=L.identifier)==null?void 0:D.tag)};
_.K.getSurface=function(){var x,L;return(x=this.data)==null?void 0:(L=x.identifier)==null?void 0:L.surface};
_.J3.Object.defineProperties(V7.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null?void 0:x.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null?void 0:x.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var x=this.getIdentifier();return x==="engagement-panel-youchat"||x==="PAyouchat"}}});
V7.prototype.visibilityChanged=V7.prototype.visibilityChanged;V7.prototype.isFullscreenChanged=V7.prototype.isFullscreenChanged;V7.prototype.isTheaterModeChanged=V7.prototype.isTheaterModeChanged;V7.prototype.dataChanged=V7.prototype.dataChanged;V7.prototype.forwardPopupClosedToFlowRootRenderer=V7.prototype.forwardPopupClosedToFlowRootRenderer;V7.prototype.onYtRendererstamperFinished=V7.prototype.onYtRendererstamperFinished;
_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],V7.prototype,"actionHandlerBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],V7.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],V7.prototype,"ytdReduxBehavior",void 0);_.A([_.b(_.nE.YtEventForwardingBehavior),_.r("design:type",Object)],V7.prototype,"ytEventForwardingBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],V7.prototype,"data",void 0);
_.A([_.F({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.r("design:type",Object)],V7.prototype,"headerData",void 0);_.A([_.F(),_.r("design:type",Object)],V7.prototype,"secondaryHeaderData",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],V7.prototype,"visibility",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],V7.prototype,"contentEmpty",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],V7.prototype,"scrimmed",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],V7.prototype,"dialog",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],V7.prototype,"dropdown",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],V7.prototype,"darkerPanels",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],V7.prototype,"matchContentTheme",void 0);_.A([_.F(),_.r("design:type",Object)],V7.prototype,"disableAutoFill",void 0);
_.A([_.F({reflectToAttribute:!0,value:_.u("optimal_reading_width_comments_ep")}),_.r("design:type",Boolean)],V7.prototype,"optimalReadingWidthComments",void 0);_.A([_.F(),_.r("design:type",Number)],V7.prototype,"hideDelayMs",void 0);_.A([_.F({selector:_.rF,reflectToAttribute:!0}),_.r("design:type",Object)],V7.prototype,"isFullscreen",void 0);_.A([_.F({selector:_.$O,reflectToAttribute:!0}),_.r("design:type",Object)],V7.prototype,"isTheaterMode",void 0);
_.A([_.F(),_.r("design:type",Number)],V7.prototype,"showDelayMs",void 0);_.A([_.F({reflectToAttribute:!0}),_.Y("data.targetId"),_.r("design:type",Object),_.r("design:paramtypes",[])],V7.prototype,"targetId",null);_.A([_.F({reflectToAttribute:!0}),_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],V7.prototype,"webSize",null);_.A([_.F(),_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],V7.prototype,"hideFooterBorder",null);
_.A([_.F(),_.r("design:type",Object)],V7.prototype,"isWatch",void 0);_.A([_.F(),_.r("design:type",Object)],V7.prototype,"originalTheaterState",void 0);_.A([_.F(),_.r("design:type",Object)],V7.prototype,"theaterDisablementPanelIdentifier",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],V7.prototype,"modernPanels",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],V7.prototype,"isWatchWhilePanel",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],V7.prototype,"shortsPanel",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],V7.prototype,"liveChatEngagementPanel",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],V7.prototype,"learningChatEngagementPanel",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],V7.prototype,"liveChatReplyPanel",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],V7.prototype,"enableAnchoredPanel",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],V7.prototype,"disableBackdropFilter",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],V7.prototype,"isPersistentPanel",void 0);_.A([_.F(),_.r("design:type",Object)],V7.prototype,"trackEngagementPanelVisibility",void 0);_.A([_.F1("#header"),_.r("design:type",HTMLElement)],V7.prototype,"headerElement",void 0);
_.A([_.F1("#header > *"),_.r("design:type",HTMLElement)],V7.prototype,"header",void 0);_.A([_.F1("ytd-section-list-renderer"),_.r("design:type",Object)],V7.prototype,"sectionListRendererElement",void 0);_.A([_.F1("panel-ad-header-image-lockup-view-model"),_.r("design:type",HTMLElement)],V7.prototype,"adHeaderImageLockupViewModel",void 0);_.A([_.F1("#content"),_.r("design:type",HTMLElement)],V7.prototype,"contentElement",void 0);
_.A([_.mX("yt-rendererstamper-finished"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],V7.prototype,"onYtRendererstamperFinished",null);_.A([_.mX("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],V7.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.A([_.GV("data","isFullscreen","isTheaterMode"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],V7.prototype,"dataChanged",null);
_.A([_.bN("isTheaterMode"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],V7.prototype,"isTheaterModeChanged",null);_.A([_.bN("isFullscreen"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],V7.prototype,"isFullscreenChanged",null);_.A([_.bN("visibility"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],V7.prototype,"visibilityChanged",null);
_.A([_.w({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],V7);
_.q(V7,"ytd-engagement-panel-section-list-renderer",function(){if(yI8!==void 0)return yI8;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return yI8=x},{mode:_.Vm("kevlar_poly_si_batch_j028")?1:2});var NHN;var hC=function(){var x=_.e.apply(this,arguments)||this;x.lastRenderedPanelIds=new Set;x.visiblePanels=[];x.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return x};
_.p(hC,_.e);_.K=hC.prototype;_.K.dataChanged=function(){if(this.data){for(var x=[],L=_.O(this.data),D=L.next();!D.done;D=L.next()){D=D.value;var S=void 0,Q=void 0,J=(S=D)==null?void 0:(Q=S.engagementPanelSectionListRenderer)==null?void 0:Q.visibility;Q=S=void 0;((S=D)==null?0:(Q=S.engagementPanelSectionListRenderer)==null?0:Q.targetId)&&J!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&x.push(D)}this.visiblePanels=x}else this.visiblePanels=[]};
_.K.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}}};
_.K.withoutVisiblePanelById=function(x){return this.visiblePanels.filter(function(L){var D;return((D=L.engagementPanelSectionListRenderer)==null?void 0:D.targetId)!==x})};
_.K.onYtChangeEngagementPanelVisibilityAction=function(x){var L=this,D=_.g(x,_.Fs2);if(this.data&&(D==null?0:D.targetId)&&(D==null?0:D.visibility)){var S,Q=(S=this.data.find(function(Z){var y;return((y=Z.engagementPanelSectionListRenderer)==null?void 0:y.targetId)===D.targetId}))==null?void 0:S.engagementPanelSectionListRenderer;
if(Q){var J=this.withoutVisiblePanelById(D.targetId);D.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(x=this.data.find(function(Z){var y;return((y=Z.engagementPanelSectionListRenderer)==null?void 0:y.targetId)===D.targetId}))&&(J=[x].concat(_.lP(J)));
this.hideDelayMs&&D.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&J.length===0?_.WW.addJob(function(){Q.visibility=D.visibility;L.visiblePanels=J},10,this.hideDelayMs):(Q.visibility=D.visibility,this.visiblePanels=J);
_.P$(this.hostElement,"yt-engagement-panels-visible-changed",[J])}}};
_.K.onRendererstamperFinished=function(){var x=new Set(this.visiblePanels.map(function(L){var D;return(D=L.engagementPanelSectionListRenderer)==null?void 0:D.targetId}));
this.handlePanelVisibilityChange(x,this.lastRenderedPanelIds);this.lastRenderedPanelIds=x};
_.K.handlePanelVisibilityChange=function(x,L){x=x===void 0?new Set:x;L=L===void 0?new Set:L;if(this.data)for(var D=_.O(this.data),S=D.next();!S.done;S=D.next()){S=S.value;var Q=void 0,J=void 0,Z=(Q=S)==null?void 0:(J=Q.engagementPanelSectionListRenderer)==null?void 0:J.targetId;if(Z&&(Q=L.has(Z),J=x.has(Z),Z=void 0,!Q&&J?(J=Q=void 0,Z=(Q=S)==null?void 0:(J=Q.engagementPanelSectionListRenderer)==null?void 0:J.onShowCommands):Q&&!J&&(J=Q=void 0,Z=(Q=S)==null?void 0:(J=Q.engagementPanelSectionListRenderer)==
null?void 0:J.onHideCommands),Z))for(S=_.O(Z),Z=S.next();!Z.done;Z=S.next())this.ytComponentBehavior.resolveCommand(Z.value)}};
hC.prototype.onRendererstamperFinished=hC.prototype.onRendererstamperFinished;hC.prototype.dataChanged=hC.prototype.dataChanged;_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],hC.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],hC.prototype,"actionHandlerBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],hC.prototype,"ytRendererBehavior",void 0);
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],hC.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],hC.prototype,"lastRenderedPanelIds",void 0);_.A([_.F(),_.r("design:type",Number)],hC.prototype,"hideDelayMs",void 0);_.A([_.F(),_.r("design:type",Array)],hC.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Array)],hC.prototype,"visiblePanels",void 0);_.A([_.F(),_.r("design:type",Boolean)],hC.prototype,"isWatchWhilePanel",void 0);
_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],hC.prototype,"dataChanged",null);_.A([_.mX("yt-rendererstamper-finished"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],hC.prototype,"onRendererstamperFinished",null);_.A([_.w({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],hC);
_.q(hC,"ytd-watch-engagement-panels",function(){if(NHN!==void 0)return NHN;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return NHN=x},{mode:1});var iqU;var HA=function(){return _.e.apply(this,arguments)||this};
_.p(HA,_.e);HA.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.JB(_.jr(this.hostElement).querySelector("#text"),_.EX2(_.Pq2,this.data.companionLegalText))};
HA.prototype.computeAutoScrollEnabled=function(x,L){return x&&!L};
HA.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
HA.prototype.onToggleTap=function(){this.expanded=!this.expanded};
HA.prototype.expandedChanged=HA.prototype.expandedChanged;HA.prototype.dataChanged=HA.prototype.dataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],HA.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.K0$),_.r("design:type",Object)],HA.prototype,"ytdAutoScrollBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],HA.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],HA.prototype,"expanded",void 0);
_.A([_.F({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.r("design:type",Boolean)],HA.prototype,"autoScrollEnabled",void 0);_.A([_.F(),_.r("design:type",String)],HA.prototype,"expanderIcon",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],HA.prototype,"dataChanged",null);
_.A([_.bN("expanded"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],HA.prototype,"expandedChanged",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],HA);
_.q(HA,"ytd-companion-legal-text-renderer",function(){if(iqU!==void 0)return iqU;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return iqU=x},{mode:1});var fKe;var u4=function(){var x=_.e.apply(this,arguments)||this;x.buttonUpdate=_.u("web_modern_buttons");x.kevlarWatchGrid=_.u("kevlar_watch_grid");x.centerAlignDescription=_.u("action_companion_center_align_description");x.truncateDomain=_.u("action_companion_truncate_domain");x.enableMonoStyle=_.u("enable_default_mono_cta_migration_web_client");return x};
_.p(u4,_.e);_.K=u4.prototype;_.K.computeButtonOverride=function(){if(this.buttonUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:"filled"}};
_.K.getOnLayoutVisibleCallback=function(){var x=_.o1("yt.www.ads.eventcache.getLastCompanionData");return x?(x=x())&&x.onLayoutVisibleCallback:null};
_.K.getLayoutId=function(){var x=_.o1("yt.www.ads.eventcache.getLastCompanionData");return x?(x=x())&&x.layoutId:null};
_.K.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",u4.JSC$22904_DEFAULT_AD_BADGE_RENDERER);var x=this.getOnLayoutVisibleCallback();x&&x()}};
_.K.getButtonRenderer=function(x){return x.actionButton&&_.g(x.actionButton,_.y4)?(delete _.g(x.actionButton,_.y4).navigationEndpoint,_.g(x.actionButton,_.y4)):{}};
_.K.onClick=function(x){var L=this;if((!_.u("web_modern_buttons")||!_.QC(_.Jq(x),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){x=_.Zs();var D=this.getLayoutId();x&&D&&_.u("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?x.getPlayerPromise().then(function(S){(new _.DO(S)).executeCommand(L.data.navigationEndpoint,D)}):_.u("kevlar_companion_resolve_command_killswitch")?_.MF(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.dg(this.hostElement,"yt-companion-ad-clicked",["action-companion",D])}};
_.J3.Object.defineProperties(u4.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var x,L,D;return((x=this.data)==null?0:(L=x.detailsLine)==null?0:(D=L.adRating)==null?0:D.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 x,L,D,S;return((x=this.data)==null?0:(L=x.detailsLine)==null?0:(D=L.adRating)==null?0:(S=D.ratingIcon)==null?0:S.iconType)?_.gB(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var x,L,D,S;return((x=this.data)==null?0:(L=x.detailsLine)==null?0:(D=L.texts)==null?0:(S=D[0])==null?0:S.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 x,L;return((x=this.data)==null?0:(L=x.description)==null?0:L.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var x=_.o1("yt.www.ads.eventcache.getLastCompanionData");return x?(x=x())&&x.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var x=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return x?x.indexOf("/default_banner")!==-1:!0}}});
u4.prototype.onClick=u4.prototype.onClick;u4.prototype.dataChanged=u4.prototype.dataChanged;u4.JSC$22904_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.p6("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],u4.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],u4.prototype,"rendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],u4.prototype,"data",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],u4.prototype,"buttonUpdate",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],u4.prototype,"kevlarWatchGrid",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],u4.prototype,"centerAlignDescription",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],u4.prototype,"truncateDomain",void 0);
_.A([_.F({computed:"computeButtonOverride(buttonUpdate)"}),_.r("design:type",Object)],u4.prototype,"buttonOverride",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],u4.prototype,"enableMonoStyle",void 0);_.A([_.Y("data.detailsLine.adRating.ratingText"),_.r("design:type",Object),_.r("design:paramtypes",[])],u4.prototype,"getRating",null);_.A([_.Y("getRating"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],u4.prototype,"computeRatingHidden",null);
_.A([_.Y("data.detailsLine.adRating.ratingIcon.iconType"),_.r("design:type",Object),_.r("design:paramtypes",[])],u4.prototype,"iconType",null);_.A([_.Y("data.detailsLine.texts.0.text"),_.r("design:type",Object),_.r("design:paramtypes",[])],u4.prototype,"getDetailsLine",null);_.A([_.Y("getDetailsLine"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],u4.prototype,"computeDetailsLineHidden",null);
_.A([_.Y("data.description.text"),_.r("design:type",Object),_.r("design:paramtypes",[])],u4.prototype,"getDescriptionText",null);_.A([_.Y("getDescriptionText"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],u4.prototype,"computeDescriptionTextHidden",null);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],u4.prototype,"interactionLoggingClientData",null);
_.A([_.F({reflectToAttribute:!0}),_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],u4.prototype,"hideBanner",null);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],u4.prototype,"dataChanged",null);_.A([_.mX("click"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],u4.prototype,"onClick",null);_.A([_.w({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],u4);
_.q(u4,"ytd-action-companion-ad-renderer",function(){if(fKe!==void 0)return fKe;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return fKe=x},{mode:_.Vm("kevlar_poly_si_batch_j067")?1:2});var oVz;var aKN;var g9=function(){var x=_.e.apply(this,arguments)||this;x.buttonUpdate=_.u("web_modern_buttons");x.hideLegacyBanner=_.u("enable_dsa_one_click_ata_translators_infeed_elements");x.adInfoButtonStyle="mono";x.adInfoButtonType="text";x.noDotAdBadge=!0;return x};
_.p(g9,_.e);_.K=g9.prototype;_.K.getOnLayoutVisibleCallback=function(){var x=_.o1("yt.www.ads.eventcache.getLastCompanionData");return x?(x=x())&&x.onLayoutVisibleCallback:null};
_.K.getLayoutId=function(){var x=_.o1("yt.www.ads.eventcache.getLastCompanionData");return x?(x=x())&&x.layoutId:null};
_.K.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 x=this.data.image.thumbnail.thumbnails[0];this.imageSrc=x.url?_.$z(x.url):void 0;this.imageWidth=x.width||0;this.imageHeight=x.height||0}this.data.clickthroughEndpoint&&_.g(this.data.clickthroughEndpoint,_.oR)&&(x=_.g(this.data.clickthroughEndpoint,_.oR).url,_.u("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
x||"":x?(x=_.$z(x),this.clickThroughUrl=_.w8(x)):this.clickThroughUrl=void 0);(x=this.getOnLayoutVisibleCallback())&&x()}};
_.K.onClick=function(x){_.QC(_.Jq(x),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(x)};
_.K.handleClick=function(){var x=this;this.data&&this.data.clickthroughEndpoint&&(_.MF(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(L){x.macroReplacementBehavior.sendServiceRequestAction([L])}),_.dg(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.K.onLoad=function(){_.P$(this.hostElement,"yt-refit-popups-action")};
_.J3.Object.defineProperties(g9.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var x=_.o1("yt.www.ads.eventcache.getLastCompanionData");return x?(x=x())&&x.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var x=_.o1("yt.www.ads.eventcache.getLastCompanionData");return x?(x=x())&&x.interactionLoggingClientData:null}}});
g9.prototype.onLoad=g9.prototype.onLoad;g9.prototype.onClick=g9.prototype.onClick;g9.prototype.dataChanged=g9.prototype.dataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],g9.prototype,"rendererBehavior",void 0);_.A([_.b(PxR.YtMacroReplacementBehavior),_.r("design:type",Object)],g9.prototype,"macroReplacementBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],g9.prototype,"data",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],g9.prototype,"buttonUpdate",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],g9.prototype,"hideLegacyBanner",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],g9.prototype,"adInfoButtonStyle",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],g9.prototype,"adInfoButtonType",void 0);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],g9.prototype,"macros",null);
_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],g9.prototype,"interactionLoggingClientData",null);_.A([_.F(),_.r("design:type",String)],g9.prototype,"clickThroughUrl",void 0);_.A([_.F(),_.r("design:type",_.CU)],g9.prototype,"imageSrc",void 0);_.A([_.F(),_.r("design:type",Number)],g9.prototype,"imageWidth",void 0);_.A([_.F(),_.r("design:type",Number)],g9.prototype,"imageHeight",void 0);_.A([_.F(),_.r("design:type",Object)],g9.prototype,"noDotAdBadge",void 0);
_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],g9.prototype,"dataChanged",null);_.A([_.mX("click"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],g9.prototype,"onClick",null);_.A([_.mX("load"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],g9.prototype,"onLoad",null);_.A([_.w({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],g9);
_.q(g9,"ytd-image-companion-renderer",function(){if(aKN!==void 0)return aKN;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return aKN=x},{mode:_.Vm("kevlar_poly_si_batch_j067")?1:2});var zzw;var kJ=function(){return _.e.apply(this,arguments)||this};
_.p(kJ,_.e);_.K=kJ.prototype;_.K.dataChanged=function(){this.set("data.adBadge",kJ.JSC$22913_DEFAULT_AD_BADGE_RENDERER);if(this.data){var x=this.getOnLayoutVisibleCallback();x&&x()}};
_.K.getOnLayoutVisibleCallback=function(){var x=_.o1("yt.www.ads.eventcache.getLastCompanionData");return x?(x=x())&&x.onLayoutVisibleCallback:null};
_.K.getLayoutId=function(){var x=_.o1("yt.www.ads.eventcache.getLastCompanionData");return x?(x=x())&&x.layoutId:null};
_.K.onCompanionClicked=function(x){this.data&&(x.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.dg(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.K.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var x=_.Zs(),L=this.getLayoutId(),D=this.data.clickToAdvSiteEndpoint;x&&L&&_.u("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?x.getPlayerPromise().then(function(S){(new _.DO(S)).executeCommand(D,L)}):_.MF(this.hostElement,"yt-navigate",{endpoint:D})}};
_.K.sendTrackingPings=function(x){if(x&&x.length!==0&&x[0].loggingUrls&&(x=x[0].loggingUrls.map(this.getBaseUrl)))for(var L=0;L<x.length;L++)_.z3(x[L])};
_.K.getBaseUrl=function(x){return x.baseUrl||""};
_.J3.Object.defineProperties(kJ.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var x=_.o1("yt.www.ads.eventcache.getLastCompanionData");return x?(x=x())&&x.interactionLoggingClientData:null}}});
kJ.prototype.onCompanionClicked=kJ.prototype.onCompanionClicked;kJ.prototype.dataChanged=kJ.prototype.dataChanged;kJ.JSC$22913_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.p6("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],kJ.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],kJ.prototype,"data",void 0);_.A([_.F1("#title"),_.r("design:type",HTMLElement)],kJ.prototype,"shopTitle",void 0);
_.A([_.GV("data.impressionEndpoints"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],kJ.prototype,"dataChanged",null);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],kJ.prototype,"interactionLoggingClientData",null);_.A([_.mX("yt-navigate"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],kJ.prototype,"onCompanionClicked",null);
_.A([_.w({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],kJ);
_.q(kJ,"ytd-shopping-companion-renderer",function(){if(zzw!==void 0)return zzw;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return zzw=x},{mode:1});_.dF(_.B(function(x){var L=x.data;x=_.yB({visibilityCallback:function(S){var Q,J=(Q=L().interaction)==null?void 0:Q.onFirstVisible;S&&J&&_.Xf(J)},
showOption:_.T2});var D=_.ik(function(){return L().interaction},eUN);
_.qN(function(){var S,Q;Q=(Q=_.o1("yt.www.ads.eventcache.getLastCompanionData"))?(Q=Q())&&Q.onLayoutVisibleCallback:null;(S=Q)==null||S()},"en");
return _.M("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.kO(function(S){_.P$(S.currentTarget,"yt-refit-popups-action")}),
el:_.Zt(x,D),"aria-label":function(){var S,Q;return(S=L().interaction)==null?void 0:(Q=S.accessibility)==null?void 0:Q.label}},_.M("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.M(_.Fj,{data:function(){return L().adImage}},{adImageViewModel:function(S){return _.M(_.i0,{data:S.data,
targetHeight:80,customCommandResolver:eUN})}})),_.M("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.M("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.M(_.Fj,{data:function(){return L().adBadge}},{adBadgeViewModel:function(S){return _.M(_.wN,{data:S.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.M("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.M(_.Fj,{data:function(){return L().menu}},{buttonViewModel:_.qP}))))},"fn"),"banner-image-layout-view-model",{props:{data:_.pJ}});_.dF(_.B(function(x){var L=x.data;x=_.yB({visibilityCallback:function(S){var Q,J=(Q=L().interaction)==null?void 0:Q.onFirstVisible;S&&J&&_.Xf(J)},
showOption:_.T2});var D=_.ik(function(){return L().interaction},RUw);
_.qN(function(){var S,Q;Q=(Q=_.o1("yt.www.ads.eventcache.getLastCompanionData"))?(Q=Q())&&Q.onLayoutVisibleCallback:null;(S=Q)==null||S()},"gn");
return _.M("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:_.Zt(x,D)},_.M("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.M(_.Fj,{data:function(){return L().adImage}},{adImageViewModel:function(S){return _.M(_.i0,{data:S.data,
targetHeight:80,customCommandResolver:RUw})}})),_.M("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.M("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.M(_.Fj,{data:function(){return L().adAvatarLockup}},{adAvatarLockupViewModel:function(S){return _.M(AIU,{data:S.data,
customCommandResolver:RUw})}})),_.M(_.Fj,{data:function(){return L().adButton}},{adButtonViewModel:function(S){return _.M(_.Rd,{data:S.data,
customCommandResolver:RUw})}}),_.M("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.M(_.Fj,{data:function(){return L().menu}},{buttonViewModel:_.qP}))))},"hn"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.pJ}});var XB5={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"},pn=function(){var x=_.e.apply(this,arguments)||this;x.updateCompanionDataJobId=0;x.contentVideoId=null;x.player=null;x.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return x};
_.p(pn,_.e);_.K=pn.prototype;_.K.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:XB5}}};
_.K.attached=function(){var x=this,L=_.Zs();L&&L.getPlayerPromise().then(function(D){x.getCachedDataAndListen(D)})};
_.K.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.K.updateRendererStamper=function(){var x={};if(this.data)for(var L in XB5)if(this.data[L]){x[L]=this.data[L];break}if(this.oneofRenderer!=void 0||Object.keys(x).length)this.oneofRenderer=x};
_.K.getCachedDataAndListen=function(x){var L=this.retrieveCachedCompanionData();L&&Object.keys(L).length&&this.receiveCompanionData(L);this.ytPlayerListenerBehavior.listenToPlayerEvent(x,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=x};
_.K.retrieveCachedCompanionData=function(){return _.Qb.yt&&_.Qb.yt.www&&_.Qb.yt.www.ads&&_.Qb.yt.www.ads.eventcache&&_.Qb.yt.www.ads.eventcache.getLastCompanionData?_.Qb.yt.www.ads.eventcache.getLastCompanionData():null};
_.K.receiveCompanionData=function(x){x&&Object.keys(x).length?(this.contentVideoId=x.contentVideoId,this.setCompanionData(x)):this.setCompanionData(x)};
_.K.setCompanionData=function(x){this.cancelPendingCompanionAdJobs();if(x){this.updateCompanionDataJobId=0;for(var L in XB5)XB5.hasOwnProperty(L)&&(this.data[L]=void 0);x.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",x.shoppingCompanionCarouselRenderer):x.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",x.imageCompanionAdRenderer):x.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",x.actionCompanionAdRenderer),_.P$(this.hostElement,
"yt-hide-unlimited-offer-module"),_.P$(this.hostElement,"yt-hide-tvfilm-offer-module")):x.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",x.bannerImageLayoutViewModel):x.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",x.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.K.dataChanged=function(){var x=this,L=_.Zs();L?L.getPlayerPromise().then(function(D){x.contentVideoId&&D.getVideoUrl().includes("v="+x.contentVideoId)||(x.cancelPendingCompanionAdJobs(),x.updateRendererStamper())}):_.X0(Error("To"))};
_.K.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.WW.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.K.handleCompanionAdClicked=function(x,L){this.player.onAdUxClicked(x,L);this.player.pauseVideo()};
pn.prototype.dataChanged=pn.prototype.dataChanged;_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],pn.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],pn.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],pn.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],pn.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.b(_.kj.YtPlayerListenerBehavior),_.r("design:type",_.pO)],pn.prototype,"ytPlayerListenerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],pn.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],pn.prototype,"oneofRenderer",void 0);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],pn.prototype,"dataChanged",null);_.A([_.w({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],pn);
_.q(pn,"ytd-companion-slot-renderer",function(){if(oVz!==void 0)return oVz;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return oVz=x},{mode:_.Vm("kevlar_poly_si_batch_j067")?
1:2});var cIv;var mC=function(){return _.e.apply(this,arguments)||this};
_.p(mC,_.e);mC.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
mC.prototype.dataChanged=mC.prototype.dataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],mC.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],mC.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],mC.prototype,"companionSlotData",void 0);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],mC.prototype,"dataChanged",null);
_.A([_.w({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],mC);
_.q(mC,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(cIv!==void 0)return cIv;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return cIv=x},{mode:1});var nV8;var b4=function(){var x=_.e.apply(this,arguments)||this;x.skinnyMode=!1;x.COMPACT_EVENT_COUNT=4;x.onShelfToggleButtonTap=function(){x.logTap(x.data);x.showingMore=!x.showingMore};
x.onShelfToggleButtonFocus=function(){x.showingMore||(x.logTap(x.data),x.showingMore=!0,_.So(x,function(){var L=x.COMPACT_EVENT_COUNT-1,D;(D=_.jr(x.hostElement).querySelector("#event-"+L))==null||D.focus()}))};
return x};
_.p(b4,_.e);_.K=b4.prototype;_.K.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.K.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.K.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.p$(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.p$(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.p$(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.p$(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.p$(this.infoTooltip,this.infoTooltip.hide))};
_.K.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.p$(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.p$(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.p$(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.p$(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.p$(this.infoTooltip,this.infoTooltip.hide))};
_.K.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)};
_.K.onShowingMoreChanged=function(){var x;this.showingMoreChanged((x=this.showingMore)!=null?x:!1)};
_.K.showingMoreChanged=function(x){var L=this.get("data.events")||[];this.set("restEvents",L.slice(1,x?L.length:this.COMPACT_EVENT_COUNT).map(function(D){return D.ticketEventRenderer}));
L.slice(0,x?L.length:this.COMPACT_EVENT_COUNT).forEach(function(D){var S=_.A3();D=D.ticketEventRenderer.trackingParams;_.qu()&&S&&D&&(D=_.CI(D),S&&_.n6(S,D))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.K.computeAriaLabel=function(x){return x.subtitle1+", "+x.subtitle2};
_.K.logTap=function(x){_.qu()&&this.ytRendererBehavior.logExplicitClick(x)};
_.K.isKeyboardAction=function(x){return this.get("detail.x",x)===0&&this.get("detail.y",x)===0};
_.K.onFirstEventTap=function(x){x.target&&this.handleTap(x.target,this.firstEvent,this.isKeyboardAction(x))};
_.K.onTicketLinkTap=function(x){x.target&&this.handleTap(x.target,x.model.item,this.isKeyboardAction(x))};
_.K.handleTap=function(x,L,D){if(L.buttonCommand)if(L.hasMultipleOffers)Object.assign(_.g(L.buttonCommand,_.fS),{properties:{source:D?"keyboard":"tap"}}),this.logTap(L),this.popupPositionTarget=x,_.v$(this.hostElement,[L.buttonCommand],this.hostElement);else{var S;if((S=_.g(L.buttonCommand,_.oR))==null?0:S.url)this.logTap(L),_.nU(window,_.g(L.buttonCommand,_.oR).url)}};
b4.prototype.onShowingMoreChanged=b4.prototype.onShowingMoreChanged;b4.prototype.dataChanged=b4.prototype.dataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],b4.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],b4.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],b4.prototype,"firstEvent",void 0);_.A([_.F(),_.r("design:type",Object)],b4.prototype,"restEvents",void 0);_.A([_.F(),_.r("design:type",String)],b4.prototype,"imageUrl",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],b4.prototype,"showingMore",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],b4.prototype,"canShowMore",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],b4.prototype,"skinnyMode",void 0);_.A([_.F(),_.r("design:type",HTMLElement)],b4.prototype,"popupPositionTarget",void 0);_.A([_.F1("#banner-info-tooltip"),_.r("design:type",Object)],b4.prototype,"infoTooltip",void 0);
_.A([_.F1("#info-container"),_.r("design:type",HTMLElement)],b4.prototype,"infoContainer",void 0);_.A([_.F1("#shelf-toggler"),_.r("design:type",HTMLElement)],b4.prototype,"shelfToggleButton",void 0);_.A([_.F1("#separator"),_.r("design:type",HTMLDivElement)],b4.prototype,"separator",void 0);_.A([_.F(),_.r("design:type",String)],b4.prototype,"shelfTogglerLabelText",void 0);_.A([_.F(),_.r("design:type",String)],b4.prototype,"shelfTogglerIcon",void 0);
_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],b4.prototype,"dataChanged",null);_.A([_.GV("showingMore"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],b4.prototype,"onShowingMoreChanged",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],b4);
_.q(b4,"ytd-ticket-shelf-renderer",function(){if(nV8!==void 0)return nV8;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return nV8=x},{mode:1});var t$i;var x9v;var Lrf=function(){return _.e.apply(this,arguments)||this};
_.p(Lrf,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Lrf.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Lrf.prototype,"data",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],Lrf);
_.q(Lrf,"ytd-comments-entry-point-message-renderer",function(){if(x9v!==void 0)return x9v;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return x9v=x},{mode:1});var D95;var YJ=function(){return _.e.apply(this,arguments)||this};
_.p(YJ,_.e);_.J3.Object.defineProperties(YJ.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.teaserAvatar)}}});
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],YJ.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],YJ.prototype,"data",void 0);_.A([_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],YJ.prototype,"hasAvatar",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],YJ);
_.q(YJ,"ytd-comments-entry-point-teaser-renderer",function(){if(D95!==void 0)return D95;var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return D95=x},{mode:1});var SX5;var Q15=function(){return _.e.apply(this,arguments)||this};
_.p(Q15,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Q15.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Q15.prototype,"data",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],Q15);
_.q(Q15,"ytd-comments-simplebox-renderer",function(){if(SX5!==void 0)return SX5;var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return SX5=x},{mode:1});var FB=function(){var x=_.e.apply(this,arguments)||this;x.fullHeight=!_.u("comment_teaser_full_height_kill_switch")&&_.u("kevlar_watch_grid");return x};
_.p(FB,_.e);FB.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"}}}};
FB.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
FB.prototype.onTap=function(){var x=this.tapCommand;x&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(x))};
FB.prototype.onKeyUp=function(x){if(x.keyCode===13)this.onTap()};
_.J3.Object.defineProperties(FB.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var x;if((x=this.data)==null?0:x.onTap)return this.data.onTap;var L,D;if(((L=this.data)==null?0:L.teaserContent)||((D=this.data)==null?0:D.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null?void 0:x.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null?void 0:x.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null?void 0:x.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null?void 0:x.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null?void 0:x.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null?void 0:x.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)!=null&&x.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
FB.prototype.onKeyUp=FB.prototype.onKeyUp;FB.prototype.onTap=FB.prototype.onTap;_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],FB.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],FB.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],FB.prototype,"ytComponentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],FB.prototype,"data",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],FB.prototype,"fullHeight",void 0);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],FB.prototype,"tapCommand",null);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],FB.prototype,"simpleboxPlaceholder",null);_.A([_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],FB.prototype,"hasSimpleboxPlaceholder",null);
_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],FB.prototype,"simpleboxAvatar",null);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],FB.prototype,"teaserContent",null);_.A([_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],FB.prototype,"hasTeaserContent",null);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],FB.prototype,"teaserAvatar",null);
_.A([_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],FB.prototype,"hasTeaserAvatar",null);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],FB.prototype,"messageText",null);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],FB.prototype,"contentRenderer",null);_.A([_.Y("data"),_.F({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],FB.prototype,"hasContents",null);
_.A([_.Y("data"),_.F({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],FB.prototype,"hasContentRenderer",null);_.A([_.mX("click"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],FB.prototype,"onTap",null);_.A([_.mX("keypress"),_.r("design:type",Function),_.r("design:paramtypes",[_.CW]),_.r("design:returntype")],FB.prototype,"onKeyUp",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],FB);
_.q(FB,"ytd-comments-entry-point-header-renderer",function(){if(t$i!==void 0)return t$i;var x=document.createElement("template");_.m(x,'\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>');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return t$i=x},{mode:1});var JuQ;_.dF(_.f_G,"yt-animated-rolling-number",{props:{numberText:_.pJ,numberValue:_.pJ,heightPx:_.pJ,fontSizeMultiplier:_.pJ,shouldAnimate:_.pJ,forceRollUp:_.pJ}});var Kri=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),Omz={numberText:"",heightPx:2*Kri,shouldAnimate:!1},sS=function(){var x=_.e.apply(this,arguments)||this;x.usingAnimatedComponents=!0;x.wasDetailed=!1;x.JSC$22950_browserSupportsAnimation=_.u("web_supports_animations_api");x.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};x.detailed=!1;x.shouldAnimate=!1;x.viewCountProps=Omz;x.dateTextProps=
Omz;x.metadataBadgesInDescription=_.u("web_metadata_badges_in_description");return x};
_.p(sS,_.e);_.K=sS.prototype;_.K.attached=function(){var x=this;_.yY().resolve(_.H_).subtitleChangeCallbackMap.set("ytd-watch-info-text",function(L){x.set("videoPrimaryInfoRenderer.subtitle",L)})};
_.K.detached=function(){_.yY().resolve(_.H_).subtitleChangeCallbackMap.delete("ytd-watch-info-text")};
_.K.resetAnimationState=function(){this.shouldAnimate=!1};
_.K.updateDynamicMetadata=function(){if(this.JSC$22950_browserSupportsAnimation){if(!this.detailed){var x,L,D,S;var Q=(x=this.videoPrimaryInfoRenderer)==null?void 0:(L=x.viewCount)==null?void 0:(D=L.videoViewCountRenderer)==null?void 0:(S=D.extraShortViewCount)==null?void 0:S.simpleText;var J,Z,y,E;var P=(J=this.videoPrimaryInfoRenderer)==null?void 0:(Z=J.viewCount)==null?void 0:(y=Z.videoViewCountRenderer)==null?void 0:(E=y.shortViewCount)==null?void 0:E.simpleText}if(!P){var v,V,h,H;Q=(v=this.videoPrimaryInfoRenderer)==
null?void 0:(V=v.viewCount)==null?void 0:(h=V.videoViewCountRenderer)==null?void 0:(H=h.unlabeledViewCountValue)==null?void 0:H.simpleText;var k,T,G,U;P=(k=this.videoPrimaryInfoRenderer)==null?void 0:(T=k.viewCount)==null?void 0:(G=T.videoViewCountRenderer)==null?void 0:(U=G.viewCount)==null?void 0:U.simpleText}var l,X,f;x=Number((l=this.videoPrimaryInfoRenderer)==null?void 0:(X=l.viewCount)==null?void 0:(f=X.videoViewCountRenderer)==null?void 0:f.originalViewCount);var N,z;l=(N=this.videoPrimaryInfoRenderer)==
null?void 0:(z=N.relativeDateText)==null?void 0:z.simpleText;var xf;N=!((xf=this.videoPrimaryInfoRenderer)==null||!xf.relativeDateText);if(Q&&P&&x&&(l||!N)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;xf=P.split(new RegExp("("+Q+")"));Q=_.Dv(xf[0]);var K3;P={numberText:(K3=xf[1])!=null?K3:"",numberValue:x,heightPx:2*Kri,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var P4;K3=((P4=xf[2])!=null?P4:"")+"  ";this.setViewCount(P,Q,_.Dv(K3));
if(!this.detailed&&N){Q=l.split(/(\d+)/);P4=_.Dv(Q[0]);var kf;K3={numberText:(kf=Q[1])!=null?kf:"",heightPx:2*Kri,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var H4;kf=((H4=Q[2])!=null?H4:"")+"  ";this.setDateText(K3,P4,_.Dv(kf))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.K.setViewCount=function(x,L,D){_.SR(L)!==_.SR(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=L);this.viewCountProps.numberText!==(x==null?void 0:x.numberText)&&(this.viewCountProps=x||Omz);_.SR(D)!==_.SR(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=D)};
_.K.setDateText=function(x,L,D){_.SR(L)!==_.SR(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=L);this.dateTextProps.numberText!==(x==null?void 0:x.numberText)&&(this.dateTextProps=x||Omz);_.SR(D)!==_.SR(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=D)};
_.K.onYtUpdateViewershipAction=function(x){this.videoPrimaryInfoRenderer&&(_.g(x,o2v).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.g(x,o2v).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.g(x,o2v).viewCount)))};
_.K.onYtUpdateDateTextAction=function(x){if(this.videoPrimaryInfoRenderer){x=_.g(x,_.iZQ).dateText;this.shouldAnimate=!0;var L;((L=this.videoPrimaryInfoRenderer)==null?0:L.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",x):this.set("videoPrimaryInfoRenderer.dateText",x)}};
_.J3.Object.defineProperties(sS.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return wiz(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.SR(wiz(this.videoPrimaryInfoRenderer,!0,!0,"\u2022",!0))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.SR(this.viewCountPreNumberText),this.viewCountProps.numberText,_.SR(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.SR(this.dateTextPreNumberText),this.dateTextProps.numberText,_.SR(this.dateTextPostNumberText)].join("")}}});
sS.prototype.updateDynamicMetadata=sS.prototype.updateDynamicMetadata;sS.prototype.resetAnimationState=sS.prototype.resetAnimationState;_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],sS.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],sS.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],sS.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],sS.prototype,"ytActionHandlerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],sS.prototype,"videoPrimaryInfoRenderer",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],sS.prototype,"detailed",void 0);_.A([_.F(),_.r("design:type",Object)],sS.prototype,"shouldAnimate",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],sS.prototype,"viewCountPreNumberText",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],sS.prototype,"viewCountProps",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],sS.prototype,"viewCountPostNumberText",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],sS.prototype,"dateTextPreNumberText",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],sS.prototype,"dateTextProps",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],sS.prototype,"dateTextPostNumberText",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],sS.prototype,"metadataBadgesInDescription",void 0);_.A([_.Y("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.r("design:type",Object),_.r("design:paramtypes",[])],sS.prototype,"infoText",null);
_.A([_.Y("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.r("design:type",String),_.r("design:paramtypes",[])],sS.prototype,"descriptionInfoTooltipText",null);_.A([_.Y("detailed"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],sS.prototype,"showDescriptionInfoTooltip",null);
_.A([_.Y("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.r("design:type",String),_.r("design:paramtypes",[])],sS.prototype,"animatedViewCountAccessibilityLabel",null);_.A([_.Y("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.r("design:type",String),_.r("design:paramtypes",[])],sS.prototype,"animatedDateTextAccessibilityLabel",null);
_.A([_.bN("videoPrimaryInfoRenderer"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],sS.prototype,"resetAnimationState",null);_.A([_.bN("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],sS.prototype,"updateDynamicMetadata",null);
_.A([_.w({disableElementRegistration:!0,is:"ytd-watch-info-text"})],sS);
_.q(sS,"ytd-watch-info-text",function(){if(JuQ!==void 0)return JuQ;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return JuQ=x},{mode:1});var Zms;var yuw="baseBackground raisedBackground additiveBackground textPrimary textSecondary outline keyLight collectionStack invertedBackground textPrimaryInverse textDisabled dropShadow cardOutline overlayBackground overlayTextPrimary".split(" ");var Iaz=_.B(function(x){var L=x.data;var D=x.setTapCommand;_.Us(function(){var S=_.fI(L().onTap);D(S)},"Hj6Srd");
return _.M("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.M(_.Fj,{data:function(){return L().avatar}},{avatarViewModel:_.O0}),_.M("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.M("span",null,function(){return L().simpleboxText})))},"kn");var E6w=_.B(function(x){return _.M("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.M(_.d,{cond:function(){return _.g(x.data().avatar,_.$e)},
then:function(L){return _.M(_.O0,{data:L,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.M("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.M(_.kP,{text:function(){return x.data().teaserText}})))},"ln");var MFQ=_.B(function(x){var L=x.data;var D=x.setTapCommand;_.Us(function(){var S=_.fI(L().onTap);D(S)},"IlZFqc");
return _.M("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.M(_.Fj,{data:function(){return L().teasers}},{commentsEntryPointTeaserViewModel:E6w}))},"nn");var d9U=_.B(function(x){var L=x.data;var D=x.setTapCommand;_.Us(function(){var S=_.fI(L().onTap);D(S)},"sYe8ye");
return _.M("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.M(_.kP,{text:function(){return L().messageText}}))},"pn");var Pfz=_.B(function(x){var L=x.data;var D=x.setTapCommand;var S=x.isDisabled;_.Us(function(){var Q=(S==null?0:S())?void 0:_.fI(L().onTap);D(Q)},"GZxRqd");
return _.M("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.M(_.YO,{icon:function(){return L().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.M(_.d,{cond:function(){return L().image},
then:function(Q){return _.M(_.Ku,{data:Q,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.M(_.kP,{text:function(){return L().text},
className:function(){return L().image||L().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.M(_.Fj,{data:function(){return L().button}},{buttonViewModel:function(Q){return _.M(_.qP,{data:Q.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:S==null?void 0:S()}}})}}))},"rn");var j1w=_.B(function(x){var L=x.data;var D=x.itemIndex;var S=x.selectedIndex;var Q=x.indexUpdatedCallback;var J=x.observer;x=x.title;var Z=_.x3("yt-carousel-item-view-model",function(V){J&&J().observe(V)}),y=function(V){D()===S()&&Q(V)},E=_.ic(Ezw),P=_.ic(_.zwO),v=function(){var V,h,H;
return((V=L())==null?void 0:V.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!E()||((h=L())==null?void 0:h.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&P().includes("PAposts_by_host")||((H=L())==null?void 0:H.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&P().includes("PAyouchat")};
return _.M("yt-carousel-item-view-model",{el:Z,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":x},_.M(_.Fj,{data:function(){var V,h;return(h=(V=_.g(L().carouselItem,PPf))==null?void 0:V.textCarousel)!=null?h:L().carouselItem}},{textCarouselItemViewModel:function(V){return _.M(Pfz,{data:V.data,
setTapCommand:y,isDisabled:v})},
commentTeaserCarouselItemViewModel:function(V){return _.M(MFQ,{data:V.data,setTapCommand:y})},
commentInputBoxCarouselItemViewModel:function(V){return _.M(Iaz,{data:V.data,setTapCommand:y})},
commentsEntryPointMessageViewModel:function(V){return _.M(d9U,{data:V.data,setTapCommand:y})}}))},"sn");var v6R=_.B(function(x){var L=x.numDots;var D=x.activeIndex;return _.M("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.M(_.R1,{each:function(){return Array.from({length:L()})},
keyBy:"INDEX"},function(S,Q){return _.M("div",{class:function(){var J={};return _.Uv("ytCarouselDotsShapeDot",(J.ytCarouselDotsShapeDotActive=Q===D(),J))}})}))},"tn");var VFR=_.B(function(x){var L=x.data;var D=x.handleCarouselNavigation;var S=x.numItems;var Q=x.selectedIndex;var J=function(){return{disabled:Q()===0}},Z=function(){return{disabled:Q()===S()-1}};
return _.M("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.M("div",null,_.M("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return L().title}),_.M(_.d,{cond:function(){return L().subtitle},
then:function(y){return _.M("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return L().subtitleAccessibilityText}},y)}})),_.M(_.d,{cond:function(){return S()>1},
then:function(){return _.M("div",{class:"ytCarouselTitleViewModelNavigation"},_.M(v6R,{numDots:S,activeIndex:Q}),_.M(_.d,{cond:function(){return L().previousButton},
then:function(y){return _.M(_.Fj,{data:y},{buttonViewModel:function(E){return _.M(_.qP,{data:E.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return D(-1)},
buttonOverrides:J})}})}}),_.M(_.d,{cond:function(){return L().nextButton},
then:function(y){return _.M(_.Fj,{data:y},{buttonViewModel:function(E){return _.M(_.qP,{data:E.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return D(1)},
buttonOverrides:Z})}})}}))}}))},"un");_.dF(_.B(function(x){var L=x.data;var D,S=_.x3("yt-video-metadata-carousel-view-model"),Q=_.x3("div",function(N){var z=function(){var xf=N.offsetWidth*T(),K3=24*(T()-1);h(xf+K3)};
z();window.ResizeObserver&&(D=new ResizeObserver(z),D.observe(N))}),J=_.$6("HTML_DIR")==="rtl",Z=!1,y=0,E=0;
x=_.O(_.HB(0,void 0,"M49TDf"));var P=x.next().value,v=x.next().value;x=_.O(_.HB(0,void 0,"zLIok"));var V=x.next().value,h=x.next().value;x=_.O(_.HB(!1,void 0,"bhelhc"));var H=x.next().value,k=x.next().value,T=function(){var N,z,xf;return(xf=(N=L())==null?void 0:(z=N.carouselTitles)==null?void 0:z.length)!=null?xf:0},G=function(){Q.value&&Q.value.scrollLeft!==y&&v((J?Q.value.scrollLeft<y:Q.value.scrollLeft>y)?Math.min(P()+1,T()-1):Math.max(P()-1,0))},U;
window.IntersectionObserver&&(U=new IntersectionObserver(function(N){N=_.O(N);for(var z=N.next();!z.done;z=N.next())if(z.value.isIntersecting){if(Z){Z=!1;break}G()}else v(E)},{threshold:.2}));
_.Us(function(){if(Q.value){var N=(J?-1:1)*(V()/T()+12)*(H()&&U?E:P());typeof Q.value.scrollTo==="function"?Q.value.scrollTo({left:N,behavior:"smooth"}):Q.value.scrollLeft=N;y=N;E=H()&&U?E:P()}},"s9rbgc");
var l,X=function(N){l=N};
_.wH(function(){var N;(N=D)==null||N.disconnect();var z;(z=U)==null||z.disconnect()});
var f=function(N){N=P()+N;N>=0&&N<T()&&(Z=!0,v(N))};
return _.M("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:S,"on:click":_.kO(function(N){if(_.BX(_.w4(N),S.value,["BUTTON".toString()])||!l)return!1;_.yY().resolve(_.E2).resolveCommand(l,{forceClickLogging:!0});return!1}),
"on:touchstart":_.kO(function(){k(!0);return!1}),
"on:touchend":_.kO(function(){U||G();k(!1);return!1}),
hidden:function(){var N,z;return!((N=L())==null?0:(z=N.carouselItems)==null?0:z.length)}},_.M("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.M(_.d,{cond:function(){return L().carouselTitles},
then:function(N){return _.M(_.Fj,{data:function(){return N()[H()&&U?E:P()]}},{carouselTitleViewModel:function(z){return _.M(VFR,{data:z.data,
handleCarouselNavigation:f,numItems:T,selectedIndex:P})}})}})),_.M("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:Q},_.M("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+V()+"px;"}},_.M(_.d,{cond:function(){return L().carouselItems},
then:function(N){return _.M(_.R1,{each:N},function(z,xf){return _.M(_.Fj,{data:function(){return z}},{carouselItemViewModel:function(K3){return _.M(j1w,{data:K3.data,
itemIndex:xf,selectedIndex:P,indexUpdatedCallback:X,observer:U,title:function(){a:{var P4=xf();var kf,H4=(kf=L())==null?void 0:kf.carouselTitles;if(H4&&(P4=H4[P4])){var p3;P4=(p3=_.g(P4,dTQ))==null?void 0:p3.title;break a}P4=void 0}return P4}})}})})}}))))},"wn"),"yt-video-metadata-carousel-view-model",{props:{data:_.pJ}});var h1Q=_.u("web_action_buttons_update_owner_width")?32:12,Th=function(){var x=_.e.apply(this,arguments)||this;x.isHovering=!1;x.enableColorSampling=_.u("web_delhi_colorful_sd");x.metadataBadgesInDescription=_.u("web_metadata_badges_in_description");x.descriptionCollapsed=!0;x.useFadedScrimDescription=_.u("kevlar_enable_faded_scrim_on_description");x.skinnyMode=!1;x.playlist=!1;x.isDark=document.documentElement.hasAttribute("dark");x.disableVideoOwnerOnTap=_.u("swatchie_video_owner_on_tap_ks");x.swatcherooDelayLoad=
_.u("swatcheroo_enable_ghost_cards");x.primaryMenuWidth=0;x.videoId="";x.titleHeadlineXs=_.u("web_watch_typography_title_headline_xs");x.titleHeadlineS=_.u("web_watch_typography_title_headline_s");x.titleHeadlineM=_.u("web_watch_typography_title_headline_m");x.titleHashtagBlackLinkified=_.u("web_title_hashtag_black_linkified");x.titleHashtagGreyLinkified=_.u("web_title_hashtag_grey_linkified");x.actionButtonsUpdateOwnerWidth=_.u("web_action_buttons_update_owner_width");x.shouldForceIconOnly=!1;x.actionMap=
{"yt-update-title-action":"onYtUpdateTitleAction","yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};x.isFullscreen=!1;x.isTheaterMode=!1;return x};
_.p(Th,_.e);_.K=Th.prototype;_.K.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.K.updateOwnerAndDescriptionPosition=function(){_.u("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.r3(this.bottomRowElement,this.ownerElement)):(_.r3(this.bottomRowElement,this.descriptionElement),_.r3(this.topRowElement,this.ownerElement)))};
_.K.titleOnTap=function(x){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.QC(_.Jq(x)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var L;((L=window.getSelection())==null?0:L.toString().length)||this.handleExpandDescriptionCommands()}};
_.K.videoOwnerOnTap=function(x){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.QC(_.Jq(x)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.K.detached=function(){var x=this,L;return _.I(function(D){(L=x.resizeObserver)==null||L.disconnect();_.Y2(D)})};
_.K.maybeAttachResizeObserver=function(){var x=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.zR(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){x.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.K.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var x=this.hostElement.clientWidth,L=Math.max(this.largerItemWrap?400:350,x/2-h1Q);_.u("web_action_buttons_update_owner_width")&&(L=this.ownerElement.clientWidth+h1Q);this.actionsOnSeparateLine=this.primaryMenuWidth>x-L?!0:!1}};
_.K.stripAttributedDescription=function(x){return{content:x.content.replace(/[\r\n]{2,}/g,"\n")}};
_.K.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.u("web_modern_buttons"),forceIconButton:!_.u("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:_.u("web_action_buttons_minimize_subscribe")},properties:{forceIconOnly:"[[shouldForceIconOnly]]"}},subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},commentsEntryPointHeaderRenderer:{id:"comment-teaser",mapping:{commentsEntryPointHeaderRenderer:"ytd-comments-entry-point-header-renderer"}},videoMetadataCarousel:{id:"teaser-carousel",mapping:{videoMetadataCarouselViewModel:"yt-video-metadata-carousel-view-model"}},
infoPanelBelowMetadata:{id:"middle-row",mapping:{infoPanelContentRenderer:"ytd-info-panel-content-renderer"}}}};
_.K.videoPrimaryInfoRendererChanged=function(){var x;if((x=this.videoPrimaryInfoRenderer)==null?0:x.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.K.videoSecondaryInfoRendererChanged=function(){var x,L;(L=(x=this.descriptionInlineExpander).collapse)==null||L.call(x);this.descriptionExpandClientVe=_.VC(110509);this.descriptionCollapseClientVe=_.VC(110510);x=_.A3();L=_.qu();x&&L&&(_.u("combine_ve_grafts")?(_.B5(_.sk(),this.descriptionExpandClientVe,L),_.B5(_.sk(),this.descriptionCollapseClientVe,L)):_.c$(x,L,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.K.structuredDescriptionContentRendererChanged=function(){this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed)};
_.K.updateTopLevelIconsOnly=function(){var x=this;_.u("top_level_update_killswitch")||this.menu&&_.WW.addLowPriorityJob(function(){x.menu.topLevelIconsOnly=x.skinnyMode},_.dE("swathceroo_delay_flexible_menu_update",100))};
_.K.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.u("web_action_buttons_minimize_subscribe")};
_.K.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.K.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.K.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.K.onYtTextInlineExpanderExpandedChanged=function(){if(!_.u("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var x,L;(L=(x=this.structuredDescriptionContentRendererElement).resize)==null||L.call(x)}};
_.K.onRenderStamperFinished=function(x){(x==null?void 0:x.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.K.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.K.onYtExpanderLessTapped=function(){var x,L=(x=this.videoSecondaryInfoRenderer)==null?void 0:x.showLessCommand;L&&this.ytComponentBehavior.resolveCommand(L)};
_.K.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.K.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.K.onDescriptionClick=function(x){if(!_.QC(_.Jq(x)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var L;((L=window.getSelection())==null?0:L.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.u("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.K.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.K.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.K.logCollapseClick=function(){var x=_.A3();x&&this.descriptionCollapseClientVe&&_.L7(x,this.descriptionCollapseClientVe)};
_.K.logExpandClick=function(){var x=_.A3();x&&this.descriptionExpandClientVe&&_.L7(x,this.descriptionExpandClientVe)};
_.K.collapseDescription=function(){this.descriptionCollapsed=!0};
_.K.scrollToTopOfContainer=function(){_.dg(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.K.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.K.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRendererComputed&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.K.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.K.resize=function(){if(this.descriptionInlineExpander){var x,L;(L=(x=this.descriptionInlineExpander).resize)==null||L.call(x)}else _.qy(new _.RZ("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var D;(D=this.menu)==null||D.maybeFlushDebouncer();this.updatePrimaryMenuWidth();this.primaryMenuWidth!==0&&this.maybeUpdateActionsOnSeparateLine()}};
_.K.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var x,L,D,S,Q=_.u("web_action_buttons_update_owner_width")?(D=(x=_.jr(this.menu).querySelector("#button-shape"))==null?void 0:x.clientWidth)!=null?D:0:(S=(L=_.jr(this.menu).querySelector("#button"))==null?void 0:L.clientWidth)!=null?S:0,J,Z;x=((Z=(J=_.jr(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:J.clientWidth)!=null?Z:0)+8+Q;var y,E;Q=(E=(y=_.jr(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:y.children.length)!=null?E:2;x<=8*Q||(this.primaryMenuWidth=x)}};
_.K.onYtUpdateTitleAction=function(x){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.g(x,fER).title)};
_.K.onYtUpdateDescriptionAction=function(x){if(x=_.g(x,_.mKd)){var L,D=!((L=this.videoSecondaryInfoRenderer)==null||!L.attributedDescription);x.isEmpty||!x.description&&!x.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):x.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",x.attributedDescription):x.description&&(D?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.$i(x.description)):this.set("videoSecondaryInfoRenderer.description",x.description))}};
_.K.onYtDarkModeToggledAction=function(x){this.isDark=x};
_.K.registerPanel=function(){if(!_.u("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var x=_.u("web_watch_imax_theater_mode")&&this.isTheaterMode;x=_.u("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||x;var L=_.yY().resolve(_.Dk);L&&!x&&L.registerPanel("engagement-panel-structured-description",this)}};
_.K.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.K.parseColorSamplingData=function(){var x;if(_.u("web_delhi_colorful_sd")&&((x=this.structuredDescriptionContentRenderer)==null?0:x.items)&&(x=this.structuredDescriptionContentRenderer.items.find(function(Q){return!!_.g(Q,ND)}))){var L,D;
this.hoverColor={lightTheme:(L=_.g(x,ND))==null?void 0:L.lightThemeColorPalette,darkTheme:(D=_.g(x,ND))==null?void 0:D.darkThemeColorPalette};var S;this.hoverText=(S=_.g(x,ND))==null?void 0:S.colorSampledDescriptionBodyText}};
_.K.updateHoverColor=function(){if(_.u("web_delhi_colorful_sd")){var x=this.hoverColor,L={},D;x=(D=this.isDark?x==null?void 0:x.darkTheme:x==null?void 0:x.lightTheme)!=null?D:{};D=_.O(yuw);for(var S=D.next();!S.done;S=D.next()){S=S.value;var Q=x[S];L["--yt-saturated-"+_.mz(S)]=Q?_.XA(Q):"initial"}_.uN(this.hostElement,L)}};
_.K.onDescriptionMouseEnter=function(){this.isHovering=!0};
_.K.onDescriptionMouseLeave=function(){this.isHovering=!1};
_.K.showPanel=function(x){this.expandDescription();var L=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;L.resize();var D,S=x==null?void 0:(D=x.sectionListEngagementPanelExtras)==null?void 0:D.scrollToItemSectionIdentifier;S?_.WW.addJob(function(){L==null||L.scrollToSection(S)},8):this.scrollToTopOfContainer()};
_.K.isVisible=function(){return!this.descriptionCollapsed};
_.K.getReloadContinuation=function(){};
_.K.hidePanel=function(){};
_.K.updatePanel=function(){};
_.J3.Object.defineProperties(Th.prototype,{structuredDescriptionContentRendererComputed:{configurable:!0,enumerable:!0,get:function(){var x;return _.u("web_delhi_colorful_sd")&&(x=this.structuredDescriptionContentRenderer)!=null&&x.items?Object.assign({},this.structuredDescriptionContentRenderer,{items:this.structuredDescriptionContentRenderer.items.filter(function(L){return!_.g(L,ND)&&!_.g(L,z0e)})}):this.structuredDescriptionContentRenderer}},
productShelf:{configurable:!0,enumerable:!0,get:function(){var x;if((x=this.structuredDescriptionContentRendererComputed)!=null&&x.items){var L;x=_.O((L=this.structuredDescriptionContentRendererComputed)==null?void 0:L.items);for(L=x.next();!L.done;L=x.next())if(L=_.g(L.value,_.Vv2))return L}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.videoPrimaryInfoRenderer)==null?0:x.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var x,L,D;return!!((x=this.videoSecondaryInfoRenderer)==null?0:(L=x.owner)==null?0:(D=L.videoOwnerRenderer)==null?0:D.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode){var x,L;if((x=this.videoSecondaryInfoRenderer)==null?0:(L=x.attributedDescription)==null?0:L.content){var D,S;return(S=this.stripAttributedDescription((D=this.videoSecondaryInfoRenderer)==null?void 0:D.attributedDescription))!=null?S:{runs:[]}}}if(_.u("web_delhi_colorful_sd")&&this.isHovering&&this.descriptionCollapsed&&this.hoverText)return this.hoverText;var Q,J,Z,y;return(y=(Z=(Q=this.videoSecondaryInfoRenderer)==
null?void 0:Q.description)!=null?Z:(J=this.videoSecondaryInfoRenderer)==null?void 0:J.attributedDescription)!=null?y:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var x,L;return(L=(x=this.videoSecondaryInfoRenderer)==null?void 0:x.headerRuns)!=null?L:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.commentsEntryPointHeaderRenderer)==null||!x.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.videoMetadataCarousel)==null||!x.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.dE("swatchie_desc_lines",3):this.hasTeaserCarousel?2:3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var x,L,D=Object.assign({},(x=this.videoSecondaryInfoRenderer)==null?void 0:(L=x.metadataRowContainer)==null?void 0:L.metadataRowContainerRenderer);if(D&&D.rows&&D.collapsedItemCount!==void 0&&!(D.rows.length<=D.collapsedItemCount))return D.rows=D.rows.slice(D.collapsedItemCount),D.collapsedItemCount=0,D}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var x,L,D=Object.assign({},(x=this.videoSecondaryInfoRenderer)==null?void 0:(L=x.metadataRowContainer)==null?void 0:L.metadataRowContainerRenderer);if(D&&D.rows&&D.collapsedItemCount!==void 0)return D.rows=D.rows.slice(0,D.collapsedItemCount),D.collapsedItemCount=D.rows.length,D}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var x,L;return!!((x=this.structuredDescriptionContentRendererComputed)==null?0:(L=x.items)==null?0:L.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 x;return(x=this.videoSecondaryInfoRenderer)==null?void 0:x.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var x,L,D;return((x=this.videoSecondaryInfoRenderer)==null?0:(L=x.owner)==null?0:(D=L.videoOwnerRenderer)==null?0:D.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var x,L,D,S;return!!((x=this.videoPrimaryInfoRenderer)==null?0:(L=x.videoActions)==null?0:(D=L.menuRenderer)==null?0:(S=D.flexibleItems)==null?0:S.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.Sn(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.Sn(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var x=this;if(_.u("web_title_hashtag_grey_delinkified")){var L,D=_.wk.unsafeClone((L=this.videoPrimaryInfoRenderer)==null?void 0:L.title);(L=D==null?void 0:D.runs)&&L.forEach(function(S){if(S==null?0:S.navigationEndpoint)S.textColor=4284506208,x.isDark&&(S.textColor=4289374890)});
return D}return(D=this.videoPrimaryInfoRenderer)==null?void 0:D.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.u("web_title_hashtag_black_delinkified")||_.u("web_title_hashtag_grey_delinkified")}}});
Th.prototype.updateHoverColor=Th.prototype.updateHoverColor;Th.prototype.parseColorSamplingData=Th.prototype.parseColorSamplingData;Th.prototype.resetDescriptionState=Th.prototype.resetDescriptionState;Th.prototype.registerPanel=Th.prototype.registerPanel;Th.prototype.onYtExpanderLessTapped=Th.prototype.onYtExpanderLessTapped;Th.prototype.onYtExpanderMoreTapped=Th.prototype.onYtExpanderMoreTapped;Th.prototype.onRenderStamperFinished=Th.prototype.onRenderStamperFinished;
Th.prototype.onYtTextInlineExpanderExpandedChanged=Th.prototype.onYtTextInlineExpanderExpandedChanged;Th.prototype.onYtTextInlineExpanderCollapseClicked=Th.prototype.onYtTextInlineExpanderCollapseClicked;Th.prototype.onYtTextInlineExpanderExpandClicked=Th.prototype.onYtTextInlineExpanderExpandClicked;Th.prototype.moveActionsElement=Th.prototype.moveActionsElement;Th.prototype.updateShouldForceIconOnly=Th.prototype.updateShouldForceIconOnly;Th.prototype.updateTopLevelIconsOnly=Th.prototype.updateTopLevelIconsOnly;
Th.prototype.structuredDescriptionContentRendererChanged=Th.prototype.structuredDescriptionContentRendererChanged;Th.prototype.videoSecondaryInfoRendererChanged=Th.prototype.videoSecondaryInfoRendererChanged;Th.prototype.videoPrimaryInfoRendererChanged=Th.prototype.videoPrimaryInfoRendererChanged;Th.prototype.maybeUpdateActionsOnSeparateLine=Th.prototype.maybeUpdateActionsOnSeparateLine;Th.prototype.updateOwnerAndDescriptionPosition=Th.prototype.updateOwnerAndDescriptionPosition;
_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],Th.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],Th.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Th.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Th.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.b(_.EG),_.r("design:type",Object)],Th.prototype,"ytdReduxBehavior",void 0);_.A([_.F1("#above-the-fold"),_.r("design:type",HTMLElement)],Th.prototype,"aboveTheFoldContainer",void 0);_.A([_.F1("#menu ytd-menu-renderer"),_.r("design:type",Object)],Th.prototype,"menu",void 0);_.A([_.F1("#description-inline-expander"),_.r("design:type",Object)],Th.prototype,"descriptionInlineExpander",void 0);
_.A([_.F1("#faded-structured-description"),_.r("design:type",Object)],Th.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.A([_.F1("#structured-description"),_.r("design:type",Object)],Th.prototype,"structuredDescriptionContentRendererElement",void 0);_.A([_.F1("#title"),_.r("design:type",HTMLElement)],Th.prototype,"titleElement",void 0);_.A([_.F1("#description"),_.r("design:type",HTMLElement)],Th.prototype,"descriptionElement",void 0);
_.A([_.F1("#description-interaction"),_.r("design:type",Object)],Th.prototype,"descriptionInteraction",void 0);_.A([_.F1("#owner"),_.r("design:type",HTMLElement)],Th.prototype,"ownerElement",void 0);_.A([_.F1("#top-row"),_.r("design:type",HTMLElement)],Th.prototype,"topRowElement",void 0);_.A([_.F1("#bottom-row"),_.r("design:type",HTMLElement)],Th.prototype,"bottomRowElement",void 0);_.A([_.F1("#actions"),_.r("design:type",HTMLElement)],Th.prototype,"actionsElement",void 0);
_.A([_.F1("#bottom-actions"),_.r("design:type",HTMLElement)],Th.prototype,"bottomActionsElement",void 0);_.A([_.F1("#ytd-watch-info-text"),_.r("design:type",Object)],Th.prototype,"watchInfoTextElement",void 0);_.A([_.F(),_.r("design:type",Object)],Th.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],Th.prototype,"videoPrimaryInfoRenderer",void 0);_.A([_.F(),_.r("design:type",Object)],Th.prototype,"videoSecondaryInfoRenderer",void 0);
_.A([_.F(),_.r("design:type",Object)],Th.prototype,"commentsEntryPointHeaderRenderer",void 0);_.A([_.F(),_.r("design:type",Object)],Th.prototype,"videoMetadataCarousel",void 0);_.A([_.F(),_.r("design:type",Object)],Th.prototype,"structuredDescriptionContentRenderer",void 0);_.A([_.Y("structuredDescriptionContentRenderer"),_.r("design:type",Object),_.r("design:paramtypes",[])],Th.prototype,"structuredDescriptionContentRendererComputed",null);
_.A([_.F(),_.r("design:type",Object)],Th.prototype,"videoSummary",void 0);_.A([_.F(),_.r("design:type",Object)],Th.prototype,"merchShelf",void 0);_.A([_.F(),_.r("design:type",Object)],Th.prototype,"infoPanelBelowMetadata",void 0);_.A([_.F(),_.r("design:type",Object)],Th.prototype,"hoverColor",void 0);_.A([_.F(),_.r("design:type",Object)],Th.prototype,"hoverText",void 0);_.A([_.F(),_.r("design:type",Object)],Th.prototype,"isHovering",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Th.prototype,"enableColorSampling",void 0);_.A([_.Y("structuredDescriptionContentRendererComputed"),_.r("design:type",Object),_.r("design:paramtypes",[])],Th.prototype,"productShelf",null);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Th.prototype,"metadataBadgesInDescription",void 0);_.A([_.Y("videoPrimaryInfoRenderer"),_.r("design:type",Object),_.r("design:paramtypes",[])],Th.prototype,"shouldHideBadges",null);
_.A([_.Y("productShelf","descriptionCollapsed"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Th.prototype,"shouldShowProductShelf",null);_.A([_.F(),_.r("design:type",Boolean)],Th.prototype,"isWatchFlexy",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Th.prototype,"descriptionCollapsed",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],Th.prototype,"useFadedScrimDescription",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Th.prototype,"skinnyMode",void 0);_.A([_.F({reflectToAttribute:!0}),_.Y("videoSecondaryInfoRenderer"),_.r("design:type",Object),_.r("design:paramtypes",[])],Th.prototype,"largerItemWrap",null);_.A([_.F(),_.r("design:type",Object)],Th.prototype,"playlist",void 0);_.A([_.F(),_.r("design:type",Object)],Th.prototype,"clarifyBox",void 0);_.A([_.F(),_.r("design:type",Object)],Th.prototype,"playerAds",void 0);
_.A([_.F(),_.r("design:type",Boolean)],Th.prototype,"isDark",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],Th.prototype,"actionsOnSeparateLine",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Th.prototype,"disableVideoOwnerOnTap",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Th.prototype,"swatcherooDelayLoad",void 0);_.A([_.F(),_.r("design:type",Boolean)],Th.prototype,"suppressTopLevelMetadataRows",void 0);
_.A([_.F(),_.r("design:type",Object)],Th.prototype,"primaryMenuWidth",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Th.prototype,"videoId",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Th.prototype,"titleHeadlineXs",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Th.prototype,"titleHeadlineS",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Th.prototype,"titleHeadlineM",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Th.prototype,"titleHashtagBlackLinkified",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Th.prototype,"titleHashtagGreyLinkified",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Th.prototype,"actionButtonsUpdateOwnerWidth",void 0);_.A([_.F(),_.r("design:type",Object)],Th.prototype,"shouldForceIconOnly",void 0);
_.A([_.GV("skinnyMode"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Th.prototype,"updateOwnerAndDescriptionPosition",null);_.A([_.GV("skinnyMode"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Th.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.A([_.Y("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription","isHovering","hoverText","descriptionCollapsed"),_.r("design:type",Object),_.r("design:paramtypes",[])],Th.prototype,"descriptionText",null);_.A([_.Y("videoSecondaryInfoRenderer.headerRuns"),_.r("design:type",Array),_.r("design:paramtypes",[])],Th.prototype,"headerRuns",null);
_.A([_.F({value:!1}),_.Y("commentsEntryPointHeaderRenderer"),_.r("design:type",Object),_.r("design:paramtypes",[])],Th.prototype,"hasTeaser",null);_.A([_.F({value:!1,reflectToAttribute:!0}),_.Y("videoMetadataCarousel"),_.r("design:type",Object),_.r("design:paramtypes",[])],Th.prototype,"hasTeaserCarousel",null);_.A([_.F({value:3}),_.Y("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.r("design:type",Object),_.r("design:paramtypes",[])],Th.prototype,"descriptionMaxLines",null);
_.A([_.Y("videoSecondaryInfoRenderer.metadataRowContainer"),_.r("design:type",Object),_.r("design:paramtypes",[])],Th.prototype,"collapsibleMetadataRows",null);_.A([_.Y("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.r("design:type",Object),_.r("design:paramtypes",[])],Th.prototype,"alwaysVisibleMetadataRows",null);
_.A([_.Y("videoSecondaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Th.prototype,"hasInlineStructuredDescription",null);_.A([_.Y("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Th.prototype,"showInlineStructuredDescription",null);
_.A([_.Y("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.r("design:type",Object),_.r("design:paramtypes",[])],Th.prototype,"descriptionExpandCommand",null);_.A([_.Y("videoSecondaryInfoRenderer.owner"),_.r("design:type",Object),_.r("design:paramtypes",[])],Th.prototype,"videoOwnerCommand",null);_.A([_.F({reflectToAttribute:!0}),_.Y("videoPrimaryInfoRenderer.videoActions"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Th.prototype,"flexMenuEnabled",null);
_.A([_.F({selector:_.rF,reflectToAttribute:!0}),_.r("design:type",Object)],Th.prototype,"isFullscreen",void 0);_.A([_.F({selector:_.$O,reflectToAttribute:!0}),_.r("design:type",Object)],Th.prototype,"isTheaterMode",void 0);_.A([_.Y("descriptionText","useFadedScrimDescription"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Th.prototype,"showAttributedStringDescription",null);
_.A([_.Y("descriptionText","useFadedScrimDescription"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Th.prototype,"showFormattedStringDescription",null);_.A([_.Y("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Th.prototype,"showFadedStructuredDescription",null);
_.A([_.GV("videoPrimaryInfoRenderer"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Th.prototype,"videoPrimaryInfoRendererChanged",null);_.A([_.Y("videoPrimaryInfoRenderer.title"),_.r("design:type",Object),_.r("design:paramtypes",[])],Th.prototype,"videoTitle",null);_.A([_.Y("videoPrimaryInfoRenderer"),_.r("design:type",Object),_.r("design:paramtypes",[])],Th.prototype,"noEndpoints",null);
_.A([_.GV("videoSecondaryInfoRenderer"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Th.prototype,"videoSecondaryInfoRendererChanged",null);_.A([_.bN("videoPrimaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Th.prototype,"structuredDescriptionContentRendererChanged",null);
_.A([_.bN("skinnyMode"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Th.prototype,"updateTopLevelIconsOnly",null);_.A([_.bN("skinnyMode"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Th.prototype,"updateShouldForceIconOnly",null);_.A([_.bN("skinnyMode"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Th.prototype,"moveActionsElement",null);
_.A([_.mX("yt-text-inline-expander-expand-clicked"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Th.prototype,"onYtTextInlineExpanderExpandClicked",null);_.A([_.mX("yt-text-inline-expander-collapse-clicked"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Th.prototype,"onYtTextInlineExpanderCollapseClicked",null);
_.A([_.mX("yt-text-inline-expander-expanded-changed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Th.prototype,"onYtTextInlineExpanderExpandedChanged",null);_.A([_.mX("yt-rendererstamper-finished"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],Th.prototype,"onRenderStamperFinished",null);
_.A([_.mX("yt-expander-more-tapped"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Th.prototype,"onYtExpanderMoreTapped",null);_.A([_.mX("yt-expander-less-tapped"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Th.prototype,"onYtExpanderLessTapped",null);
_.A([_.bN("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Th.prototype,"registerPanel",null);_.A([_.bN("videoSecondaryInfoRenderer"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Th.prototype,"resetDescriptionState",null);
_.A([_.bN("structuredDescriptionContentRenderer"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Th.prototype,"parseColorSamplingData",null);_.A([_.bN("hoverColor","isDark"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Th.prototype,"updateHoverColor",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-watch-metadata"})],Th);
_.q(Th,"ytd-watch-metadata",function(){if(Zms!==void 0)return Zms;var x=document.createElement("template");_.m(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-metadata--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="above-the-fold" class="style-scope ytd-watch-metadata">\n  <div id="title" on-click="titleOnTap" class="style-scope ytd-watch-metadata">\n    <ytd-badge-supported-renderer hidden="[[!videoPrimaryInfoRenderer.topStandaloneBadge]]" top-standalone-badge="[[videoPrimaryInfoRenderer.topStandaloneBadge]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n    <h1 class="style-scope ytd-watch-metadata">\n      <yt-formatted-string force-default-style="" no-endpoints="[[noEndpoints]]" text="[[videoTitle]]" title="[[getSimpleString(videoPrimaryInfoRenderer.title)]]" class="style-scope ytd-watch-metadata">\n      </yt-formatted-string>\n    </h1>\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[shouldHideBadges]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n  </div>\n\n  <div id="top-row" class="style-scope ytd-watch-metadata">\n    <div id="owner" class="item style-scope ytd-watch-metadata" hidden="[[!videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" on-click="videoOwnerOnTap">\n      <ytd-video-owner-renderer data="[[videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" subscribe-key="[[videoSecondaryInfoRenderer.subscribeButton.subscribeButtonRenderer.subscribedEntityKey]]" watch-metadata-refresh="" class="style-scope ytd-watch-metadata">\n      </ytd-video-owner-renderer>\n      <div id="subscribe-button" class="style-scope ytd-watch-metadata"></div>\n    </div>\n    <div id="actions" class="item style-scope ytd-watch-metadata">\n      <div id="actions-inner" class="style-scope ytd-watch-metadata">\n        <div id="menu" class="style-scope ytd-watch-metadata"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="middle-row" class="style-scope ytd-watch-metadata"></div>\n\n  <div id="bottom-row" class="style-scope ytd-watch-metadata">\n    <div id="description" class="item style-scope ytd-watch-metadata" on-down="onDescriptionDown" on-up="onDescriptionUp" on-click="onDescriptionClick" on-mouseenter="onDescriptionMouseEnter" on-mouseleave="onDescriptionMouseLeave">\n      <div id="description-inner" class="style-scope ytd-watch-metadata">\n        <ytd-watch-info-text id="ytd-watch-info-text" detailed="[[!descriptionCollapsed]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" class="style-scope ytd-watch-metadata"></ytd-watch-info-text>\n        \n        <template is="dom-if" if="[[shouldShowProductShelf]]" restamp="" id="product-shelf" class="style-scope ytd-watch-metadata">\n          <ytd-merch-shelf-renderer data="[[productShelf]]" class="style-scope ytd-watch-metadata"> </ytd-merch-shelf-renderer>\n        </template>\n        <yt-formatted-string id="description-placeholder" hidden="[[!videoSecondaryInfoRenderer.descriptionPlaceholder]]" text="[[videoSecondaryInfoRenderer.descriptionPlaceholder]]" class="style-scope ytd-watch-metadata">\n        </yt-formatted-string>\n        <div id="description-text-container" hidden="[[!useFadedScrimDescription]]" class="style-scope ytd-watch-metadata">\n          <yt-attributed-string id="attributed-description-text" data="[[descriptionText]]" disable-upgrade$="[[!showAttributedStringDescription]]" header-runs="[[headerRuns]]" hidden$="[[!showAttributedStringDescription]]" user-input="" class="style-scope ytd-watch-metadata">\n          </yt-attributed-string>\n          \n          <yt-formatted-string id="formatted-description-text" disable-upgrade$="[[!showFormattedStringDescription]]" hidden="[[!showFormattedStringDescription]]" split-lines="[[showFormattedStringDescription]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          </yt-formatted-string>\n          <ytd-structured-description-content-renderer id="faded-structured-description" data="[[structuredDescriptionContentRendererComputed]]" disable-upgrade$="[[!showFadedStructuredDescription]]" hidden="[[!showFadedStructuredDescription]]" inline-structured-description="" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n          </ytd-structured-description-content-renderer>\n          <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n          </ytd-metadata-row-container-renderer>\n          <tp-yt-paper-button id="collapse-button" class="button style-scope ytd-watch-metadata" hidden="[[descriptionCollapsed]]" on-click="handleCollapseDescriptionClick">[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]</tp-yt-paper-button>\n        </div>\n        <ytd-text-inline-expander id="description-inline-expander" always-show-expand-button="" collapse-label="[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]" disable-upgrade$="[[useFadedScrimDescription]]" expand-command="[[descriptionExpandCommand]]" expand-label="[[getSimpleString(videoSecondaryInfoRenderer.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[useFadedScrimDescription]]" max-lines="[[descriptionMaxLines]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          <div slot="extra-content" class="style-scope ytd-watch-metadata">\n            <ytd-structured-description-content-renderer id="structured-description" data="[[structuredDescriptionContentRendererComputed]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="" merch-shelf="[[merchShelf]]" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n            </ytd-structured-description-content-renderer>\n            <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n            </ytd-metadata-row-container-renderer>\n          </div>\n        </ytd-text-inline-expander>\n      </div>\n      <yt-interaction id="description-interaction" class="rounded-large style-scope ytd-watch-metadata" hidden="[[skinnyMode]]"></yt-interaction>\n    </div>\n    <div id="bottom-actions" class="style-scope ytd-watch-metadata"></div>\n    <div id="comment-teaser" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaser]]"></div>\n    <div id="teaser-carousel" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaserCarousel]]"></div>\n  </div>\n</div>\n\n<ytd-metadata-row-container-renderer data="[[alwaysVisibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n</ytd-metadata-row-container-renderer>\n');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return Zms=x},{mode:2});_.YXU=function(x){_.Te.call(this);this.JSC$22975_watchApi=x;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;HmR(this);u0U(this);g6N(this);kSv(this);pd5(this);m9Q(this);bms(this)};
_.p(_.YXU,_.Te);var g6N=function(x){var L=function(){_.u("kevlar_is_pupi_enabled")||e5(x)};
x.JSC$22975_watchApi.getRoot().addEventListener("yt-player-updated",L);x.addOnDisposeCallback(function(){x.JSC$22975_watchApi.getRoot().removeEventListener("yt-player-updated",L)})},pd5=function(x){if(_.u("kevlar_endscreen_auto_theater_mode")){var L=x.JSC$22975_watchApi.subscribeToActiveChanged(function(){FrU(x)},!1);
x.addOnDisposeCallback(L)}},HmR=function(x){var L,D,S,Q,J;
_.I(function(Z){if(Z.nextAddress==1)return Z.yield(x.JSC$22975_watchApi.playerApi,2);L=Z.yieldResult;D=function(y){y=!!y;s18(x)&&(y=y?2:1,_.Yh.getInstance().setState(y,!0,!1))};
S=function(y){y&&_.IfN(_.Jd().getState())&&(_.dg(x.JSC$22975_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),x.temporaryTheaterMode=!0)};
Q=function(y){_.u("kevlar_player_update_autonav_on_new_data")&&y.type==="newdata"&&(_.u("kevlar_is_pupi_enabled")||e5(x))};
J=function(y){x.onPlayerStateChange(y)};
_.u("kevlar_endscreen_auto_theater_mode")&&L.addEventListener("onAutonavCancelled",S);L.addEventListener("onAutonavChangeRequest",D);L.addEventListener("onVideoDataChange",Q);L.addEventListener("onStateChange",J);x.addOnDisposeCallback(function(){L.removeEventListener("onAutonavChangeRequest",D);L.removeEventListener("onVideoDataChange",Q);L.removeEventListener("onStateChange",J);_.u("kevlar_endscreen_auto_theater_mode")&&L.removeEventListener("onAutonavCancelled",S)});
_.Y2(Z)})},u0U=function(x){x.JSC$22975_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){x.autonavCancelledBySignal=!0;
_.u("kevlar_is_pupi_enabled")||e5(x)});
x.JSC$22975_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(L,D,S){D&&e5(x,S)});
x.JSC$22975_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){s18(x)&&_.Yh.getInstance().setState(2,!0,!0)});
x.JSC$22975_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){s18(x)&&_.Yh.getInstance().setState(1,!0,!0)});
x.addOnDisposeCallback(function(){x.JSC$22975_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");x.JSC$22975_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");x.JSC$22975_watchApi.unregisterActionHandler("yt-enable-autoplay-command");x.JSC$22975_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},kSv=function(x){var L=x.JSC$22975_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){bms(x)}),D=x.JSC$22975_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){m9Q(x)});
x.addOnDisposeCallback(function(){x.JSC$22975_watchApi.unsubscribeByKey(L);x.JSC$22975_watchApi.unsubscribeByKey(D)})},bms=function(x){x.autonavCancelledBySignal=!1;
_.u("kevlar_is_pupi_enabled")||e5(x)},m9Q=function(x){var L=x.JSC$22975_watchApi.getWatchNextResponse(),D,S;
var Q=(L=(S=_.g(L==null?void 0:(Q=L.playerOverlays)==null?void 0:(D=Q.playerOverlayRenderer)==null?void 0:D.autonavToggle,_.FwW))==null?void 0:S.enabled)?2:1;_.u("kevlar_is_pupi_enabled")?_.Yh.getInstance().setState(Q,!1,!1):e5(x);_.u("web_persist_server_autonav_state_on_client")&&typeof L==="boolean"&&_.L9s(Q===2)},s18=function(x){if(x.autonavCancelledBySignal)return!1;
var L,D,S,Q;return!!((L=x.JSC$22975_watchApi.getWatchNextResponse())==null?0:(D=L.contents)==null?0:(S=D.twoColumnWatchNextResults)==null?0:(Q=S.autoplay)==null?0:Q.autoplay)};
_.YXU.prototype.onPlayerStateChange=function(x){if(x===0){x=!_.Yh.getInstance().isAutoplaySetExplicitly();var L=this.JSC$22975_watchApi.getWatchNextResponse(),D,S,Q,J;L=_.g(L==null?void 0:(D=L.contents)==null?void 0:(S=D.twoColumnWatchNextResults)==null?void 0:(Q=S.autoplay)==null?void 0:(J=Q.autoplay)==null?void 0:J.autoplayExplicitChoiceDialogRenderer,_.ivh);s18(this)&&x&&L&&_.pI.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:L},popupType:"DIALOG"}})}else FrU(this)};
var FrU=function(x){x.temporaryTheaterMode&&(x.temporaryTheaterMode=!1,_.dg(x.JSC$22975_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},e5=function(x,L){L=L===void 0?!1:L;
var D;_.I(function(S){if(S.nextAddress==1)return S.yield(x.JSC$22975_watchApi.playerApi,2);D=S.yieldResult;s18(x)?D.setAutonavState(_.Yh.getInstance().getState(),L):D.setAutonavState(1,L);_.Y2(S)})};var TO5={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"};_.R1i=function(x){_.Te.call(this);var L=this;this.JSC$22980_watchApi=x;var D=this.JSC$22980_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){e1N(L)});
this.addOnDisposeCallback(function(){L.JSC$22980_watchApi.unsubscribeByKey(D)});
e1N(this)};
_.p(_.R1i,_.Te);var e1N=function(x){var L=x.JSC$22980_watchApi.getPlayerResponse(),D=x.JSC$22980_watchApi.getWatchNextResponse();if(!_.M60(L==null?void 0:L.playabilityStatus,D==null?void 0:D.playerOverlays)){var S;var Q=L==null?void 0:(S=L.playabilityStatus)==null?void 0:S.errorScreen}x.JSC$22980_watchApi.provideRenderingData("ERROR_SCREEN",Q)};var GS5=_.B(function(x){var L=x.data;x=_.u("web_watch_video_details_hide_subtitle");var D=_.u("web_watch_video_details_single_line_title"),S=_.kO(function(){var y=L().onTap;y&&_.yY().resolve(_.E2).resolveCommand(y)}),Q={},J={},Z={};
return _.M("yt-player-overlay-video-details-renderer",{class:_.gF("ytPlayerOverlayVideoDetailsRendererHost",(Q.ytPlayerOverlayVideoDetailsRendererFrostedGlass=!_.u("web_watch_video_details_transparent_background"),Q)),"on:click":S,role:"button"},_.M("h2",{class:_.gF("ytPlayerOverlayVideoDetailsRendererTitle",(J.ytPlayerOverlayVideoDetailsRendererSingleLineTitle=function(){return D},J))},_.M(_.kP,{text:function(){return L().title}})),_.M("div",{class:_.gF("ytPlayerOverlayVideoDetailsRendererSubtitle",
(Z.ytPlayerOverlayVideoDetailsRendererHideSubtitle=x,Z))},_.M(_.kP,{text:function(){return L().subtitle}})))},"xn");var RC={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},Cff=_.B(function(x){var L=x.data;var D=_.ic(_.rF),S=_.u("web_watch_action_bar_resize_buttons"),Q=_.u("web_watch_video_action_dsdvb"),J=_.u("delhi_modern_web_player_icons")&&!_.u("enable_web_delhi_icons");x=_.u("delhi_modern_web_player_disable_frosted_glass");var Z=_.u("delhi_modern_web_player_compact_video_actions_controls"),
y=_.u("web_player_quick_action_buttons_icon_only"),E=function(){var v=S&&!D(),V={};Z?V.size="S":v&&(V.size="M");y&&(V.iconPosition="icon-only");if(Object.keys(V).length!==0)return V},P={};
return _.M("yt-player-quick-action-buttons",{class:_.gF("ytPlayerQuickActionButtonsHost",(P.ytPlayerQuickActionButtonsHostCompactControls=function(){return!D()||Z},P.ytPlayerQuickActionButtonsHostDisableBackdropFilter=x,P))},_.M(_.R1,{each:function(){var v=L();
if(J){v=JSON.parse(JSON.stringify(v));for(var V=_.O(v),h=V.next();!h.done;h=V.next()){var H=h.value,k=void 0;h=_.g((k=_.g(H,_.Q4))==null?void 0:k.toggleButtonViewModel,_.j3);var T=void 0;k=_.g((T=_.g(H,_.S3))==null?void 0:T.toggleButtonViewModel,_.j3);T=_.g(H,_.de);H=_.g(H,_.j3);if(h)k=_.g(h.defaultButtonViewModel,_.de),h=_.g(h.toggledButtonViewModel,_.de),k&&k.iconName&&(k.iconName=RC[k.iconName]),h&&h.iconName&&(h.iconName=RC[h.iconName]);else if(k)h=_.g(k.defaultButtonViewModel,_.de),k=_.g(k.toggledButtonViewModel,
_.de),h&&h.iconName&&(h.iconName=RC[h.iconName]),k&&k.iconName&&(k.iconName=RC[k.iconName]);else if(T)T.iconName&&(T.iconName=RC[T.iconName]);else if(H){h=_.g(H.defaultButtonViewModel,_.de);k=_.g(H.toggledButtonViewModel,_.de);H=void 0;if((H=h)==null?0:H.iconName)h.iconName=RC[h.iconName];h=void 0;if((h=k)==null?0:h.iconName)k.iconName=RC[k.iconName]}}}Q&&(v=B8e(v));return v}},function(v){return _.M(_.Fj,{data:function(){return v}},{buttonViewModel:function(V){return _.M(_.qP,{data:V.data,
buttonOverrides:E})},
likeButtonViewModel:function(V){return _.M(_.Ea,{data:V.data,buttonShapeOverrideables:E})},
dislikeButtonViewModel:function(V){return _.M(_.Ib,{data:V.data,buttonShapeOverrideables:E})},
toggleButtonViewModel:function(V){return _.M(_.JT,{data:V.data,buttonShapeOverrides:E})}})}))},"yn");_.U9R=function(x){_.Te.call(this);var L=this;this.JSC$22984_watchApi=x;x=_.O(_.HB({},void 0,"n9wCVe"));this.quickActionsViewModel=x.next().value;this.setQuickActionsViewModel=x.next().value;x=_.O(_.HB({},void 0,"JD2YUd"));this.playerOverlayVideoDetailsRenderer=x.next().value;this.setPlayerOverlayVideoDetailsRenderer=x.next().value;var D=this.JSC$22984_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){laR(L)});
this.addOnDisposeCallback(function(){L.JSC$22984_watchApi.unsubscribeByKey(D)});
laR(this)};
_.p(_.U9R,_.Te);
var laR=function(x){var L,D,S,Q,J,Z,y,E,P,v,V,h,H,k;_.I(function(T){if(T.nextAddress==1)return T.yield(x.JSC$22984_watchApi.playerApi,2);L=T.yieldResult;D=x.JSC$22984_watchApi.getWatchNextResponse();J=(S=D)==null?void 0:(Q=S.playerOverlays)==null?void 0:Q.playerOverlayRenderer;y=_.g((Z=J)==null?void 0:Z.fullscreenQuickActionsBar,_.bvQ);(P=(E=x).setQuickActionsViewModel)==null||P.call(E,y||{});y&&wdf(x,L);h=(v=J)==null?void 0:(V=v.videoDetails)==null?void 0:V.playerOverlayVideoDetailsRenderer;(k=(H=
x).setPlayerOverlayVideoDetailsRenderer)==null||k.call(H,h||{});h&&BO8(x,L);_.Y2(T)})},wdf=function(x,L){if(!x.quickActionButtonsContainer)if(L.setFullscreenQuickActions){x.quickActionButtonsContainer=document.createElement("div");
L.setFullscreenQuickActions(x.quickActionButtonsContainer);var D=function(){return x.quickActionsViewModel().quickActionButtons||[]},S=_.lf(x.quickActionButtonsContainer,function(){return _.M(Cff,{data:D})},"zn");
x.addOnDisposeCallback(function(){L.setFullscreenQuickActions(void 0);S()})}else _.qy(new _.RZ("setFullscreenQuickActions not defined",{playerApi:Object.keys(L),
isReady:L.isReady(),appState:L.getAppState()}))},BO8=function(x,L){if(!x.playerOverlayVideoDetailsRendererContainer)if(L.setPlayerOverlayVideoDetailsRenderer){x.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
L.setPlayerOverlayVideoDetailsRenderer(x.playerOverlayVideoDetailsRendererContainer);var D=_.lf(x.playerOverlayVideoDetailsRendererContainer,function(){return _.M(GS5,{data:x.playerOverlayVideoDetailsRenderer})},"An");
x.addOnDisposeCallback(function(){L.setPlayerOverlayVideoDetailsRenderer(void 0);D()})}else _.qy(new _.RZ("setPlayerOverlayVideoDetailsRenderer not defined",{playerApi:Object.keys(L),
isReady:L.isReady(),appState:L.getAppState()}))};_.Gh=function(x){_.Te.call(this);var L=this;this.JSC$22990_watchApi=x;this.JSC$22990_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;x=_.oQ(_.Jd(),_.rF,function(D){L.onFullscreenChanged(D)});
this.addOnDisposeCallback(x);x=_.oQ(_.Jd(),_.qD,function(D){L.onWatchScroll(D)});
this.addOnDisposeCallback(x);_.u("kevlar_watch_while_v2")&&(x=_.oQ(_.Jd(),_.$N,function(D){Wrs(L,D)}),this.addOnDisposeCallback(x));
qXR(this);AuR(this);$9v();this.onWatchScroll(_.qD(_.Jd().getState()));_.rO("START_IN_FULL_WINDOW_MODE")&&this.JSC$22990_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.p(_.Gh,_.Te);var qXR=function(x){x.JSC$22990_watchApi.registerActionHandler("yt-fullscreen-change-action",function(L){var D=x.JSC$22990_watchApi.isActive();L&&!D||_.Jd().dispatch(_.MU({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!L}}))});
x.addOnDisposeCallback(function(){x.JSC$22990_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},AuR=function(x){var L,D;
_.I(function(S){if(S.nextAddress==1)return S.yield(x.JSC$22990_watchApi.playerApi,2);L=S.yieldResult;D=function(){x.onFullerscreenEduClicked()};
L.addEventListener("onFullerscreenEduClicked",D);x.addOnDisposeCallback(function(){L.removeEventListener("onFullerscreenEduClicked",D)});
_.Y2(S)})};
_.Gh.prototype.onFullscreenChanged=function(x){var L=this,D;return _.I(function(S){if(S.nextAddress==1)return L.isFullscreen=!!_.O8(),S.yield(L.JSC$22990_watchApi.playerApi,2);D=S.yieldResult;L.JSC$22990_miniplayerActive||D.setFauxFullscreen(L.isFullscreen);if(x&&(L.JSC$22990_watchApi.focusOnPlayer(),!L.fullerscreenEduButtonShownThisPlayback)){L.fullerscreenEduButtonShownThisPlayback=!0;var Q=_.Ad("yt-fullerscreen-edu-button-shown-count")||0;_.qB("yt-fullerscreen-edu-button-shown-count",Q+1,31536E3);
L.updateFullerscreenEduButtonSubtleModeState()}_.Y2(S)})};
var Wrs=function(x,L){var D;_.I(function(S){if(S.nextAddress==1)return x.JSC$22990_miniplayerActive=L,S.yield(x.JSC$22990_watchApi.playerApi,2);D=S.yieldResult;D.setFauxFullscreen(!x.JSC$22990_miniplayerActive&&x.isFullscreen);_.Y2(S)})};
_.Gh.prototype.onWatchScroll=function(x){var L=this,D,S;return _.I(function(Q){if(Q.nextAddress==1)return _.u("external_fullscreen_with_edu")?Q.yield(L.JSC$22990_watchApi.playerApi,2):Q.return();D=Q.yieldResult;S=x<=0;L.shouldShowFullerscreenEdu!==S&&(L.shouldShowFullerscreenEdu=S,D.updateFullerscreenEduButtonVisibility(!L.shouldShowFullerscreenEdu));_.Y2(Q)})};
_.Gh.prototype.onFullerscreenEduClicked=function(){this.JSC$22990_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var x=_.Ad("yt-fullerscreen-edu-button-click-count")||0;_.qB("yt-fullerscreen-edu-button-click-count",x+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.Gh.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var x=this,L,D,S,Q,J,Z;return _.I(function(y){if(y.nextAddress==1)return L=_.Ad("yt-fullerscreen-edu-button-click-count")||0,D=_.Ad("yt-fullerscreen-edu-button-shown-count")||0,S=_.dE("external_fullscreen_button_click_threshold"),Q=_.dE("external_fullscreen_button_shown_threshold"),J=L>=S||D>=Q,y.yield(x.JSC$22990_watchApi.playerApi,2);Z=y.yieldResult;Z.updateFullerscreenEduButtonSubtleModeState(J);_.Y2(y)})};
_.Gh.prototype.disposeInternal=function(){_.Te.prototype.disposeInternal.call(this);var x=_.O8();_.u("kevlar_exit_fullscreen_leaving_watch")&&x&&_.Zg(x)};
var $9v=function(){if(_.u("web_watch_add_viewport_meta_tag")){var x=document.querySelector("meta[name=viewport]"),L=document.head;L&&!x&&(x=document.createElement("meta"),x.name="viewport",x.content="width=device-width, initial-scale=1.0, viewport-fit=cover",L.appendChild(x))}};_.NOz=function(x){_.Te.call(this);var L=this;this.JSC$22993_watchApi=x;this.jobId=0;this.pendingRequestId=void 0;var D=this.JSC$22993_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){rue(L)});
this.addOnDisposeCallback(function(){L.JSC$22993_watchApi.unsubscribeByKey(D)});
rue(this)};
_.p(_.NOz,_.Te);var im8=function(x){_.WW.cancelJob(x.jobId);x.pendingRequestId=void 0},rue=function(x){im8(x);
var L=WRQ(x.JSC$22993_watchApi.getWatchNextResponse());if(L){var D=250,S,Q=(S=_.g(L,_.mIB))==null?void 0:S.initialDelayMs;_.u("web_watch_updated_metadata_server_initial_delay")&&Q&&(D=Q);x.jobId=_.WW.addLowPriorityJob(function(){return x.fetchUpdatedMetadata(L)},D)}};
_.NOz.prototype.fetchUpdatedMetadata=function(x,L){var D=this,S,Q,J,Z,y,E,P,v,V,h,H,k,T,G,U;return _.I(function(l){switch(l.nextAddress){case 1:L&&(S={continuation:L});if(!_.u("web_get_updated_metadata_fantasy_panel_continuation_params")){l.jumpTo(2);break}Q=_.yY().resolve(_.Dk);J="PAsports_fantasy";return l.yield(Q.isVisible(J,!0),3);case 3:l.yieldResult&&(P=(y=(Z=Q).getUpdatePanelContinuationData)==null?void 0:(E=y.call(Z,J))==null?void 0:E.updatePanelContinuationRequest)&&(S||(S={}),S.clientParams=
{panelContinuationParams:{panelContinuation:P}});case 2:v=_.yY().resolve(_.i1);if(!v)return _.BI(Error("Uo")),l.return();V={};D.pendingRequestId=V;return l.yield(_.tD(v,x,S),4);case 4:h=l.yieldResult;if(V!==D.pendingRequestId)return l.return();T=(H=h)==null?void 0:(k=H.continuation)==null?void 0:k.timedContinuationData;((G=T)==null?0:G.continuation)&&((U=T)==null?0:U.timeoutMs)&&(D.jobId=_.WW.addLowPriorityJob(function(){return D.fetchUpdatedMetadata(x,T.continuation)},T.timeoutMs));
_.Y2(l)}})};
_.NOz.prototype.disposeInternal=function(){_.Te.prototype.disposeInternal.call(this);im8(this)};var faw=_.B(function(x){var L=_.kO(function(){var S=x.data().videoId;if(x.active())S=_.Zo(S),_.yY().resolve(_.E2).resolveCommand(S);else{var Q=x.playerApi(),J=Q.getAvailableAudioTracks(),Z,y,E=(Z=x.sourceVideoConfig().audioTracks)==null?void 0:(y=Z.find(function(P){return P.isDefaultForSource}))==null?void 0:y.id;
if(J=J.find(function(P){return P.getLanguageInfo().getId()===E}))Q.setAudioTrack(J,!0),Q.setCompositeParam({activeVideoId:S}),x.setActiveSourceId(S)}}),D={};
return _.M("ytw-composite-source-video-overlay",{class:_.gF("ytwCompositeSourceVideoOverlayHost",(D.ytwCompositeSourceVideoOverlayActive=x.active,D.ytwCompositeSourceVideoOverlayInteracting=x.interacting,D)),style:_.bc({left:function(){var S;return((S=x.data().topLeftCornerX)!=null?S:0)*100+"%"},
top:function(){var S;return((S=x.data().topLeftCornerY)!=null?S:0)*100+"%"},
width:function(){var S;return((S=x.data().width)!=null?S:0)*100+"%"},
height:function(){var S;return((S=x.data().height)!=null?S:0)*100+"%"}}),
"on:click":L},_.M("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"Bn");var o65=_.B(function(x){var L=_.O(_.mU(function(){var Z,y=(Z=x.data().sources)==null?void 0:Z.find(function(E){return E.isActive});
if(y)return y.videoId})),D=L.next().value,S=L.next().value;
L=_.O(_.HB(!1,void 0,"yNRzwd"));var Q=L.next().value,J=L.next().value;return _.M("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.kO(function(){J(!0)}),
"on:mouseout":_.kO(function(){J(!1)})},_.M(_.d,{cond:function(){return x.data().sources},
then:function(Z){return _.M(_.R1,{each:Z},function(y){return _.M(faw,{data:y,active:function(){return y.videoId===D()},
setActiveSourceId:S,interacting:Q,playerApi:x.playerApi,sourceVideoConfig:function(){return q5f(x.compositeVideoConfig(),y.videoId)}})})}}))},"Cn");_.Xdz=function(x){_.Te.call(this);this.JSC$23009_watchApi=x;x=_.O(_.HB({},void 0,"RgF9Ae"));this.compositeVideoOverlayRenderer=x.next().value;this.setCompositeVideoOverlayRenderer=x.next().value;x=_.O(_.HB({},void 0,"OlaJpc"));this.compositeVideoConfig=x.next().value;this.setCompositeVideoConfig=x.next().value;aaQ(this);z1U(this)};
_.p(_.Xdz,_.Te);var aaQ=function(x){var L=x.JSC$23009_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){z1U(x)});
x.addOnDisposeCallback(function(){x.JSC$23009_watchApi.unsubscribeByKey(L)})},cuQ=function(x){var L;
return _.I(function(D){if(D.nextAddress==1)return D.yield(x.JSC$23009_watchApi.playerApi,2);L=D.yieldResult;L.setCompositeVideoOverlayRendererComponent(x.container);_.Y2(D)})},n6s=function(x){var L;
return _.I(function(D){if(D.nextAddress==1)return D.yield(x.JSC$23009_watchApi.playerApi,2);L=D.yieldResult;L.setCompositeVideoOverlayRendererComponent(void 0);_.Y2(D)})},tFQ=function(x){var L,D;
return _.I(function(S){if(S.nextAddress==1)return S.yield(x.JSC$23009_watchApi.playerApi,2);L=S.yieldResult;x.container=document.createElement("div");D=_.lf(x.container,function(){return _.M(o65,{data:x.compositeVideoOverlayRenderer,compositeVideoConfig:x.compositeVideoConfig,playerApi:L})},"Dn");
x.addOnDisposeCallback(D);_.Y2(S)})},z1U=function(x){var L,D,S,Q,J,Z,y,E;
_.I(function(P){return P.nextAddress==1?(L=x.JSC$23009_watchApi.getPlayerResponse(),J=_.g((D=L)==null?void 0:(S=D.overlay)==null?void 0:(Q=S.playerControlsOverlayRenderer)==null?void 0:Q.compositeVideoOverlay,UT5),E=(Z=L)==null?void 0:(y=Z.playerConfig)==null?void 0:y.compositeVideoConfig,J&&x.setCompositeVideoOverlayRenderer(J),E&&x.setCompositeVideoConfig(E),J&&E?x.container?P.jumpTo(6):P.yield(tFQ(x),6):xwz(x)?P.yield(n6s(x),0):P.jumpTo(0)):xwz(x)?P.jumpTo(0):P.yield(cuQ(x),0)})},xwz=function(x){var L;
return!((L=x.container)==null||!L.parentElement)};
_.Xdz.prototype.disposeInternal=function(){xwz(this)&&n6s(this);_.Te.prototype.disposeInternal.call(this)};_.J8v=function(x){_.Te.call(this);var L=this;this.JSC$23015_watchApi=x;var D=this.JSC$23015_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var S=L.JSC$23015_watchApi.getPlayerResponse();if(S){var Q,J;if(S=_.g((Q=S.endscreen)==null?void 0:(J=Q.endscreenRenderer)==null?void 0:J.hideButton,_.j3)){var Z;(Z=L.setEndscreenHideButton)==null||Z.call(L,S);LvU(L)}}});
this.addOnDisposeCallback(function(){L.JSC$23015_watchApi.unsubscribeByKey(D)});
x=_.O(_.HB({},void 0,"ER3tqb"));this.endscreenHideButton=x.next().value;this.setEndscreenHideButton=x.next().value;DwN(this);S2i(this);QZs(this)};
_.p(_.J8v,_.Te);
var LvU=function(x){var L,D;_.I(function(S){if(S.nextAddress==1)return x.creatorEndscreenHideButtonContainer?S.return():S.yield(x.JSC$23015_watchApi.playerApi,2);L=S.yieldResult;x.creatorEndscreenHideButtonContainer=document.createElement("div");_.Lq(x.creatorEndscreenHideButtonContainer,!1);L.setCreatorEndscreenHideButton(x.creatorEndscreenHideButtonContainer);D=_.lf(x.creatorEndscreenHideButtonContainer,function(){return _.M(_.JT,{data:x.endscreenHideButton,useOutlinedIcon:!0})},"En");
x.addOnDisposeCallback(function(){D();var Q;(Q=L)==null||Q.setCreatorEndscreenHideButton(void 0)});
_.Y2(S)})},DwN=function(x){var L,D;
_.I(function(S){if(S.nextAddress==1)return S.yield(x.JSC$23015_watchApi.playerApi,2);L=S.yieldResult;D=function(){x.creatorEndscreenHideButtonContainer&&_.Lq(x.creatorEndscreenHideButtonContainer,!0)};
L.addEventListener("endscreenelementshown",D);x.addOnDisposeCallback(function(){var Q;(Q=L)==null||Q.removeEventListener("endscreenelementshown",D)});
_.Y2(S)})},S2i=function(x){var L=function(){x.creatorEndscreenHideButtonContainer&&_.Lq(x.creatorEndscreenHideButtonContainer,!1)},D=x.JSC$23015_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",L),S=x.JSC$23015_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",L);
x.addOnDisposeCallback(function(){x.JSC$23015_watchApi.unsubscribeByKey(D);x.JSC$23015_watchApi.unsubscribeByKey(S)})},QZs=function(x){x.JSC$23015_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(L){var D=_.g(L,TPN);
x.JSC$23015_watchApi.playerApi.then(function(S){S==null||S.setCreatorEndscreenVisibility(!!D.hide)})});
x.addOnDisposeCallback(function(){x.JSC$23015_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.OH5=function(x){_.Te.call(this);this.JSC$23021_watchApi=x;KvQ(this)};
_.p(_.OH5,_.Te);var KvQ=function(x){var L,D;_.I(function(S){if(S.nextAddress==1)return S.yield(x.JSC$23021_watchApi.playerApi,2);L=S.yieldResult;D=function(Q){_.Jd().dispatch(_.MU({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:Q}}))};
L.addEventListener("onRetroModeChanged",D);x.addOnDisposeCallback(function(){L.removeEventListener("onRetroModeChanged",D)});
_.Y2(S)})};var afU=0,$L=0,Xiw=0;var ZHi;ZHi=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.Cn=function(x){_.Te.call(this);this.JSC$23026_watchApi=x;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;y85(this)};
_.p(_.Cn,_.Te);
var y85=function(x){var L,D,S;_.I(function(Q){if(Q.nextAddress==1)return Q.yield(x.JSC$23026_watchApi.playerApi,2);L=Q.yieldResult;if(x.isDisposed())return Q.return();x.sessionStorage=_.Tku("yt-sleep-timer");x.sessionStorage||_.qy(new _.RZ("SessionStorage for Sleep Timer is undefined."));((D=x.sessionStorage)==null?void 0:D.get("yt-sleep-timer"))==="true"&&(tNv(),(S=x.sessionStorage)==null||S.remove("yt-sleep-timer"),L.syncVolume());INR(x,L);EQU(x,L);MTQ(x,L);_.Y2(Q)})},INR=function(x,L){var D=function(P){x.onSleepTimerSettingsChanged(P,
L)},S=function(P){x.onPlayerStateChange(P,L)},Q=function(){x.onLoopChange(L)},J=function(){x.onCloseMiniplayer(L)},Z=function(){ozU(L,(0,_.y5)(),xT8(L),x.selectedOption==="End of video",L.getPlayerState()!==1)},y=function(){x.onSeekComplete(L)},E=function(){_.WW.cancelJob($L);
var P=L.getCurrentTime()>=L.getDuration(),v=x.selectedOption==="End of video"||x.selectedOption==="End of playlist"&&!N8i(x.playlistId);P&&v&&dwU(x,L)};
L.addEventListener("onSleepTimerSettingsChanged",D);L.addEventListener("onLoopChange",Q);L.addEventListener("onLoopRangeChange",Q);L.addEventListener("onStateChange",S);L.addEventListener("onCloseMiniplayer",J);L.addEventListener("onSleepTimerFeatureAvailable",Z);L.addEventListener("SEEK_COMPLETE",y);L.addEventListener("onAdStart",E);x.addOnDisposeCallback(function(){L.removeEventListener("onSleepTimerSettingsChanged",D);L.removeEventListener("onLoopChange",Q);L.removeEventListener("onLoopRangeChange",
Q);L.removeEventListener("onStateChange",S);L.removeEventListener("onCloseMiniplayer",J);L.removeEventListener("onSleepTimerFeatureAvailable",Z);L.removeEventListener("SEEK_COMPLETE",y);L.removeEventListener("onAdStart",E)})},EQU=function(x,L){var D=x.JSC$23026_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var S=L.getVideoData().video_id,Q,J=(Q=$eN(x.JSC$23026_watchApi))==null?void 0:Q.playlistId;
x.pauseAutonavPlayback&&(L.pauseVideo(),L.syncVolume(),x.pauseAutonavPlayback=!1);if(x.selectedOption==="End of video"&&S!==x.videoId)l4(x,L);else{if(x.selectedOption==="End of playlist"){Q=N8i(x.playlistId);if(J!==x.playlistId){l4(x,L);break a}Q?Q&&PjN(x,L):jZv(x,L)}x.videoId=S;x.playlistId=J}}});
x.addOnDisposeCallback(function(){x.JSC$23026_watchApi.unsubscribeByKey(D)})},MTQ=function(x,L){var D=_.yY().resolve(_.MP),S=_.oQ(D,_.HpG,function(J){J&&x.selectedOption!=="Off"&&l4(x,L)}),Q=x.JSC$23026_watchApi.subscribeToActiveChanged(function(J){var Z,y;
return _.I(function(E){if(E.nextAddress==1)return E.yield(_.ie().navigationFinishPromise,2);Z=!_.iD_();y=_.yY().resolve(_.iy).isMiniplayerActive();J||!AwN(x.selectedOption)||y||Z||l4(x,L);_.Y2(E)})},!1);
D=_.oQ(D,function(J){return J.entities.playlistLoopStateEntity||{}},function(J){J=J===void 0?{}:J;
var Z=rwN(x.JSC$23026_watchApi);if(Z){var y;((y=J[Z])==null?void 0:y.state)==="PLAYLIST_LOOP_STATE_ALL"&&AwN(x.selectedOption)&&l4(x,L)}});
x.addOnDisposeCallback(S);x.addOnDisposeCallback(D);x.addOnDisposeCallback(Q)};
_.Cn.prototype.onSleepTimerSettingsChanged=function(x,L){switch(x){case "Off":this.selectedOption!=="Off"&&l4(this,L);break;case "End of video":case "End of playlist":vQN(this,x,L);break;default:vQN(this,x,L,ZHi.get(x))}};
_.Cn.prototype.onLoopChange=function(x){(x.getLoopVideo()||x.getLoopRange())&&AwN(this.selectedOption)&&l4(this,x)};
_.Cn.prototype.onCloseMiniplayer=function(x){AwN(this.selectedOption)&&l4(this,x)};
var vQN=function(x,L,D,S){VTN(x,D);x.selectedOption=L;x.videoId=D.getVideoData().video_id;x.playlistId="";var Q;(Q=x.sessionStorage)==null||Q.set("yt-sleep-timer","true");x.adjustmentsCount++;ozU(D,(0,_.y5)(),xT8(D),x.selectedOption==="End of video");if(x.selectedOption==="End of video")jZv(x,D),hhi(x,D);else if(x.selectedOption==="End of playlist"){hhi(x,D);var J,Z;x.playlistId=(Z=(J=$eN(x.JSC$23026_watchApi))==null?void 0:J.playlistId)!=null?Z:"";N8i(x.playlistId)||jZv(x,D)}else S&&(x.presetFadeSchedulerId=
_.GR(_.WW,function(){cwi(D,15E3)},S-15E3),x.presetPauseSchedulerId=_.GR(_.WW,function(){dwU(x,D)},S),zUs(D,(0,_.y5)(),S))},dwU=function(x,L){if(x.JSC$23026_watchApi.isActive()){var D={dismissDialogEndpoint:{}};
var S={commandExecutorCommand:{commands:[D,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};D={buttonViewModel:{title:_.p6("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:D}}};S={buttonViewModel:{title:_.p6("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:S}}};var Q={dialogHeaderViewModel:{headline:{content:_.p6("SLEEP_TIMER_ENDED_TITLE")}}},
J={basicContentViewModel:{paragraphs:[{text:{content:_.p6("SLEEP_TIMER_ENDED_TEXT")}}]}};D={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:Q,content:J,footer:{panelFooterViewModel:{primaryButton:D,secondaryButton:S,shouldHideDivider:!0}}}}}}};_.yY().resolve(_.E2).resolveCommand(D,{form:{element:x}})}else tNv();HHi(x,!1);uDQ(x,L);L.pauseVideo();_.Yh.getInstance().getState()===2&&L.getPlayerState()===5&&(x.pauseAutonavPlayback=!0)},l4=function(x,L){HHi(x,!0);
uDQ(x,L);tNv()},uDQ=function(x,L){VTN(x,L);
x.selectedOption="Off";x.videoId="";x.playlistId="";x.adjustmentsCount=0;var D;(D=x.sessionStorage)==null||D.remove("yt-sleep-timer");_.WW.cancelJob(afU);L.resetSleepTimerMenuSettings()},HHi=function(x,L){L={timer_length_adjustment_times_during_session:x.adjustmentsCount-1,
is_session_cancelled:L};switch(x.selectedOption){case "Off":L.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":L.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":L.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:L.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",L.option_duration_in_minutes=ZHi.get(x.selectedOption)/6E4}_.Uh("sleepTimerSessionFinishEvent",L)};
_.Cn.prototype.onPlayerStateChange=function(x,L){x===1?ozU(L,(0,_.y5)(),xT8(L),this.selectedOption==="End of video"):x===0?(_.WW.cancelJob($L),L.setVideoTimeLeft(ffN(0,0))):x===2&&_.WW.cancelJob($L);this.selectedOption==="End of video"?x===0?dwU(this,L):x===2&&nzi(L):this.selectedOption!=="End of playlist"||N8i(this.playlistId)||(x===0?dwU(this,L):x===2&&nzi(L))};
_.Cn.prototype.onSeekComplete=function(x){x.getPlayerState()===2&&ozU(x,(0,_.y5)(),xT8(x),this.selectedOption==="End of video",!0)};
_.Cn.prototype.onCueRangeEnter=function(x,L){x==="sleep-timer-fade-audio"&&cwi(L,(L.getDuration()-L.getProgressState().current)*1E3)};
_.Cn.prototype.onCueRangeExit=function(x,L){x==="sleep-timer-fade-audio"&&L.getPlayerState()!==0&&nzi(L,!0)};
var jZv=function(x,L){L.addCueRange("sleep-timer-fade-audio",L.getDuration()-15,L.getDuration());L.addEventListener("onCueRangeEnter",function(D){x.onCueRangeEnter(D,L)});
L.addEventListener("onCueRangeExit",function(D){x.onCueRangeExit(D,L)})},PjN=function(x,L){L.removeCueRange("sleep-timer-fade-audio");
L.removeEventListener("onCueRangeEnter",function(D){x.onCueRangeEnter(D,L)});
L.removeEventListener("onCueRangeExit",function(D){x.onCueRangeExit(D,L)})},VTN=function(x,L){AwN(x.selectedOption)?PjN(x,L):(_.WW.cancelJob(x.presetPauseSchedulerId),_.WW.cancelJob(x.presetFadeSchedulerId),x.presetPauseSchedulerId=0,x.presetFadeSchedulerId=0);
nzi(L,!0)},hhi=function(x,L){L.setLoop(!1);
L.setLoopVideo(!1);L.setLoopRange(null);(x=rwN(x.JSC$23026_watchApi))&&_.yY().resolve(_.MP).dispatch(_.TR("playlistLoopStateEntity",x,{key:x,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.mw8=function(x){_.Te.call(this);this.JSC$23029_watchApi=x;gQ5(this);kUw(this);pYi(this);x=x.getRoot();if(x.is==="ytd-watch-flexy"||x.is==="ytd-watch-grid")x.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.MNe();_.u("web_watch_log_theater_mode_cookie_state")&&_.YQ.get("wide","0")==="1"&&_.dQ4("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.p(_.mw8,_.Te);var gQ5=function(x){var L,D;_.I(function(S){if(S.nextAddress==1)return S.yield(x.JSC$23029_watchApi.playerApi,2);L=S.yieldResult;D=function(Q){bHw(x,!!Q)};
L.addEventListener("SIZE_CLICKED",D);x.addOnDisposeCallback(function(){L.removeEventListener("SIZE_CLICKED",D)});
_.Y2(S)})},kUw=function(x){x.JSC$23029_watchApi.registerActionHandler("yt-toggle-theater-mode",function(L,D){bHw(x,L,D===void 0?!0:D)});
x.addOnDisposeCallback(function(){x.JSC$23029_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.mw8.prototype.getState=function(){return _.$O(_.Jd().getState())};
var bHw=function(x,L,D){D=D===void 0?!0:D;var S,Q,J,Z=_.u("enable_player_resize_transition")&&!!x.JSC$23029_watchApi.getWatchNextResponse()&&!((S=x.JSC$23029_watchApi.getWatchNextResponse())==null?0:(Q=S.contents)==null?0:(J=Q.twoColumnWatchNextResults)==null?0:J.conversationBar);_.s1$(function(){_.Jd().dispatch(_.MU({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:L}}));_.u("theater_mode_scroll_to_top_killswitch")||x.JSC$23029_watchApi.scrollWatchTo(0,!1);_.O8()&&_.u("external_fullscreen")&&_.Zg(document.documentElement);
pYi(x);D&&_.FD("wide",L?"1":"0",-1);_.dg(x.JSC$23029_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);x.JSC$23029_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:L});L&&_.MNe()},{shouldWrap:Z})},pYi=function(x){var L;
_.I(function(D){if(D.nextAddress==1)return D.yield(x.JSC$23029_watchApi.playerApi,2);L=D.yieldResult;L.setSizeStyle(!0,x.getState());_.Y2(D)})};var sZQ=function(x){_.Te.call(this);var L=this;this.playerApi=x;this.timeToPanelSyncKeyMap={};var D;if(x==null?0:(D=x.isReady)==null?0:D.call(x)){D=_.oQ(_.yY().resolve(_.MP),function(Q){return Q.entities.timedMarkersListSyncEntity||{}},function(Q,J){Q=Q===void 0?{}:Q;
J=J===void 0?{}:J;for(var Z=_.O(Object.keys(J)),y=Z.next();!y.done;y=Z.next())y=y.value,Q[y]!==J[y]&&Y2R(L,J[y]);J=_.O(Object.keys(Q));for(Z=J.next();!Z.done;Z=J.next())Z=Z.value,y=Q[Z],L.timeToPanelSyncKeyMap[Z]&&FvQ(L,y)});
this.addOnDisposeCallback(D);var S=function(Q){L.onCueRangeEnter(Q)};
x.addEventListener("onCueRangeEnter",S);this.addOnDisposeCallback(function(){var Q;(Q=x.removeEventListener)==null||Q.call(x,"onCueRangeEnter",S)})}};
_.p(sZQ,_.Te);
var FvQ=function(x,L){var D,S;if((D=x.playerApi)==null?0:(S=D.isReady)==null?0:S.call(D)){var Q;if((D=L==null?void 0:(Q=L.timedListData)==null?void 0:Q.sections)&&L!=null&&L.key)for(Q=_.O(D),D=Q.next();!D.done;D=Q.next())if(D=D.value,D.timedSyncDataList&&D.sectionId)for(S=0;S<D.timedSyncDataList.length;S++){var J=D.timedSyncDataList[S];J.syncItemId&&x.playerApi.addCueRange(D.sectionId+"_"+L.key+"_"+J.syncItemId,Number(J.videoTimeMs)/1E3,S===D.timedSyncDataList.length-1?0x8000000000000:Number(D.timedSyncDataList[S+
1].videoTimeMs)/1E3)}}},Y2R=function(x,L){var D,S;
if((D=x.playerApi)==null?0:(S=D.isReady)==null?0:S.call(D)){var Q;if((D=L==null?void 0:(Q=L.timedListData)==null?void 0:Q.sections)&&L!=null&&L.key)for(Q=_.O(D),D=Q.next();!D.done;D=Q.next())if(D=D.value,D.timedSyncDataList&&D.sectionId){S=_.O(D.timedSyncDataList);for(var J=S.next();!J.done;J=S.next())J=J.value,J.syncItemId&&x.playerApi.removeCueRange(D.sectionId+"_"+L.key+"_"+J.syncItemId)}}};
sZQ.prototype.onCueRangeEnter=function(x){for(var L=_.O(Object.keys(this.timeToPanelSyncKeyMap)),D=L.next();!D.done;D=L.next()){D=D.value;var S=_.O(x.split("_"+D+"_")),Q=S.next().value;S=S.next().value;if(Q&&S){x=_.yY().resolve(_.MP);L=this.timeToPanelSyncKeyMap[D];var J=_.jKp(x.getState(),L);D=TEz(D,Q,S);if(D===-1)break;D={activeSyncId:S,activeItemIndex:D,activeSectionInfo:{sectionIdentifier:Q}};J?x.dispatch(_.B2("markersEngagementPanelSyncEntity",L,D)):x.dispatch(_.TR("markersEngagementPanelSyncEntity",
L,Object.assign({},{key:L},D)));break}}};
var TEz=function(x,L,D){var S=_.yY().resolve(_.MP),Q,J;x=(Q=OUs(S.getState(),x))==null?void 0:(J=Q.timedListData)==null?void 0:J.sections;if(!x)return-1;Q=0;J=_.O(x);for(x=J.next();!x.done;x=J.next()){x=x.value;S=x.timedSyncDataList||[];if(x.sectionId===L)return L=S.findIndex(function(Z){return Z.syncItemId===D}),L===-1?L:Q+L;
Q+=S.length}return-1};_.GUf=function(x){_.Te.call(this);var L=this;this.JSC$23042_watchApi=x;this.unresolvedCommands=[];this.JSC$23042_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(D){ehe(L,D)});
this.addOnDisposeCallback(function(){L.JSC$23042_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
RhU(this)};
_.p(_.GUf,_.Te);var RhU=function(x){var L;_.I(function(D){if(D.nextAddress==1)return D.yield(x.JSC$23042_watchApi.playerApi,2);L=D.yieldResult;if(x.isDisposed())return D.return();x.timedSyncObserver=new sZQ(L);x.unresolvedCommands.length&&(x.unresolvedCommands.forEach(function(S){return ehe(x,S)}),x.unresolvedCommands=[]);
_.V1(x,x.timedSyncObserver);_.Y2(D)})},ehe=function(x,L){if(x.timedSyncObserver){var D=_.g(L,R0e);
if(D&&D.timedSyncEntityKey&&D.panelSyncEntityKey){x=x.timedSyncObserver;L=D.timedSyncEntityKey;var S=D.panelSyncEntityKey;D=!!D.isEnabled;D=D===void 0?!0:D;var Q=_.yY().resolve(_.MP);Q=OUs(Q.getState(),L);D?x.timeToPanelSyncKeyMap[L]||(x.timeToPanelSyncKeyMap[L]=S,FvQ(x,Q)):(delete x.timeToPanelSyncKeyMap[L],Y2R(x,Q))}}else x.unresolvedCommands.push(L)};var Cjz=_.B(function(x){var L=x.data,D=x.maybeLogSmartSkipClientData,S=null,Q=null,J=_.u("web_enable_auto_focus_for_timely_action_button"),Z=function(){S=document.activeElement},y=function(){L().smartSkipMetadata&&(S=document.activeElement,_.mD9(function(){return Q}))},E=function(v){if(L().smartSkipMetadata&&(!v||v.key!=="Enter")){S&&S.isConnected&&(_.mD9(function(){return S}),S=null);
var V;(V=Q)==null||V.blur()}};
x=_.kO(function(){D==null||D(!0,L());return!1});
var P=_.Zt(_.AL(function(){return L().rendererContext},{onTap:function(v,V){V({disableClickTracking:!0})}}),_.yB({visibilityCallback:function(v){if(J)v?Q&&L().smartSkipMetadata&&(y(),document.addEventListener("focusin",Z)):(document.removeEventListener("focusin",Z),E());
else if(v){v=_.WX(L().rendererContext);var V=Number(L().maxVisibleDurationMilliseconds),h,H=(h=_.g(L().rendererContext,_.Fm))==null?void 0:h.label;v&&V&&H&&(h={label:H,command:v,durationMs:V},_.yY().resolve(_.Op).enqueue(h))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));_.UX(function(){if(J){var v;if((Q=(v=P.value)==null?void 0:v.querySelector("button"))&&L().smartSkipMetadata){var V;(V=P.value)==null||V.addEventListener("keydown",E)}}});
_.wH(function(){J&&(Q&&L().smartSkipMetadata&&Q.removeEventListener("keydown",E),document.removeEventListener("focusin",Z),E())});
return _.M("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:P,"on:click":x},_.M(_.Fj,{data:function(){return L().content}},{buttonViewModel:_.qP}))},"Gn");var lNQ=_.B(function(x){var L=x.data,D=x.playerApi,S=_.yY().resolve(_.hl5);x=_.O(_.mU(function(){L()}));
var Q=x.next().value,J=x.next().value,Z=function(){return StU(L(),Q())},y=function(P,v){var V,h,H=(V=_.g(v==null?void 0:v.rendererContext,_.T$))==null?void 0:(h=V.loggingDirectives)==null?void 0:h.trackingParams;
if((v=v==null?void 0:v.smartSkipMetadata)&&v.loggingData&&(h=v.loggingData,v=h.algorithmId,V=h.startMilliseconds,h=h.endMilliseconds,v&&V!==void 0&&h!==void 0)){var k,T;P={smartSkipData:Object.assign({},{versionName:v,startMediaTimeMs:V,endMediaTimeMs:h},P&&{userInteractionMediaTimeMs:(Math.floor(((k=_.Zs())==null?void 0:(T=k.getPlayer())==null?void 0:T.getCurrentTime())||0)*1E3).toString()})};k=_.A3();var G;H&&(G=_.CI(H));k&&G&&_.Sm(k,G,P)}},E=function(P,v){var V=StU(L(),P);
if(V){var h=_.g(V,DTz),H;if(H=v)H=D(),V=_.g(V,DTz),H=V!=null&&V.smartSkipMetadata?!(H==null?0:H.isSameMarkerTypeVisible((V==null?void 0:V.smartSkipMetadata.markerKey)||"")):!0;if(H){var k,T;(h==null?0:(k=h.smartSkipMetadata)==null?0:(T=k.loggingData)==null?0:T.isCounterfactual)||(y(!1,h),J(P))}else v||Q()!==P||J(void 0)}};
_.Us(function(){var P=L().timelyActions;if(P){P=_.O(P);for(var v=P.next();!v.done;v=P.next()){v=_.g(v.value,DTz);var V=void 0;(V=v)!=null&&V.cueRangeId&&S.timelyActionsMap.set(v.cueRangeId,E)}_.wH(function(){S.timelyActionsMap.clear()})}},"PSaw4c");
return _.M("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.M(_.Fj,{data:Z},{timelyActionViewModel:function(P){return _.M(Cjz,{data:P.data,maybeLogSmartSkipClientData:function(){y(!0,_.g(Z(),DTz))}})}}))},"In");_.wYi=function(x){_.Te.call(this);this.JSC$23054_watchApi=x;x=_.O(_.HB({},void 0,"UN7k5e"));this.timelyActionsOverlay=x.next().value;this.setTimelyActionsOverlay=x.next().value;Uwi(this)};
_.p(_.wYi,_.Te);var Uwi=function(x){var L,D,S,Q;_.I(function(J){if(J.nextAddress==1)return BEi(x),Wv8(x),x.timelyActionsContainer=document.createElement("div"),J.yield(x.JSC$23054_watchApi.playerApi,2);L=J.yieldResult;(S=(D=L).insertTimelyActionUi)==null||S.call(D,x.timelyActionsContainer);Q=_.lf(x.timelyActionsContainer,function(){return _.M(lNQ,{data:x.timelyActionsOverlay,playerApi:L})},"Jn");
x.addOnDisposeCallback(Q);_.Y2(J)})},Wv8=function(x){var L=x.JSC$23054_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){BEi(x)});
x.addOnDisposeCallback(function(){x.JSC$23054_watchApi.unsubscribeByKey(L)})},BEi=function(x){var L=x.JSC$23054_watchApi.getWatchNextResponse();
if(L){var D,S;if(L=_.g((D=L.playerOverlays)==null?void 0:(S=D.playerOverlayRenderer)==null?void 0:S.timelyActionsOverlayViewModel,G6z)){var Q;(Q=x.setTimelyActionsOverlay)==null||Q.call(x,L)}}};_.A8N=function(x){_.Te.call(this);this.JSC$23058_watchApi=x;q2N(this)};
_.p(_.A8N,_.Te);var q2N=function(x){var L,D;_.I(function(S){if(S.nextAddress==1)return S.yield(x.JSC$23058_watchApi.playerApi,2);L=S.yieldResult;D=function(Q){_.pI.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.g(Q,_.mh5)},popupType:"TOAST"}})};
L.addEventListener("onYtShowToast",D);x.addOnDisposeCallback(function(){L.removeEventListener("onYtShowToast",D)});
_.Y2(S)})};var $wv,iHw,XYs,r8U,NE8,zhw,oQz,aNi,c8R,tT5;$wv=!1;_.fNz=function(x){_.Te.call(this);this.JSC$23061_watchApi=x;this.fullscreen=this.theater=!1;r8U(this);NE8(this);iHw(this)};
_.p(_.fNz,_.Te);iHw=function(x){var L,D,S;_.I(function(Q){if(Q.nextAddress==1)return Q.yield(x.JSC$23061_watchApi.playerApi,2);L=Q.yieldResult;if(x.isDisposed())return Q.return();D=x.JSC$23061_watchApi.getElement("CINEMATICS");if(!D)return Q.return();x.JSC$23061_cinematicController=new _.kL(D,L);_.V1(x,x.JSC$23061_cinematicController);_.oHi(x.JSC$23061_cinematicController);oQz(x,_.SaO());S=x.JSC$23061_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(J){aNi(x,J)});
x.addOnDisposeCallback(function(){x.JSC$23061_watchApi.unsubscribeByKey(S)});
zhw(x);aNi(x,x.JSC$23061_cinematicController.isAllowed());XYs(x);c8R(x);_.Y2(Q)})};
XYs=function(x){x.fullscreen=_.rF(_.Jd().getState());x.theater=_.$O(_.Jd().getState());_.nQ5(x,x.fullscreen,x.theater);var L=_.oQ(_.Jd(),_.rF,function(S){x.fullscreen=S;_.nQ5(x,x.fullscreen,x.theater)}),D=_.oQ(_.Jd(),_.$O,function(S){x.theater=S;
_.nQ5(x,x.fullscreen,x.theater)});
x.addOnDisposeCallback(L);x.addOnDisposeCallback(D)};
r8U=function(x){var L=x.JSC$23061_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){zhw(x)});
x.addOnDisposeCallback(function(){x.JSC$23061_watchApi.unsubscribeByKey(L)})};
NE8=function(x){var L,D;_.I(function(S){if(S.nextAddress==1)return S.yield(x.JSC$23061_watchApi.playerApi,2);L=S.yieldResult;D=function(Q){oQz(x,Q)};
L.addEventListener("cinematicSettingsToggleChange",D);x.addOnDisposeCallback(function(){L.removeEventListener("cinematicSettingsToggleChange",D)});
_.Y2(S)})};
zhw=function(x){var L=x.JSC$23061_watchApi.getWatchNextResponse(),D;L=_.g(L==null?void 0:(D=L.pageVisualEffects)==null?void 0:D[0],_.SX);var S;(S=x.JSC$23061_cinematicController)==null||_.zdN(S,L)};
oQz=function(x,L){var D;(D=x.JSC$23061_cinematicController)==null||_.ahz(D,L);tT5(x)};
aNi=function(x,L){var D;_.I(function(S){if(S.nextAddress==1)return _.u("kevlar_watch_cinematics_invisible")&&(L=!1),S.yield(x.JSC$23061_watchApi.playerApi,2);D=S.yieldResult;D.updateCinematicSettings(L);tT5(x);_.Y2(S)})};
c8R=function(x){var L=_.FI();if(_.u("kevlar_measure_ambient_mode_idle")&&!L.getFlag(192)&&!$wv){$wv=!0;var D=_.TG(_.WW,function(){_.yY().resolve(_.Foq).start(1E4)},5E3);
x.addOnDisposeCallback(function(){_.WW.cancelJob(D);_.yY().resolve(_.Foq).stop()})}};
_.nQ5=function(x,L,D){x.fullscreen=L;x.theater=D;var S;(S=x.JSC$23061_cinematicController)==null||S.setFullscreen(x.fullscreen,x.theater);if(_.u("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(x.theater||x.fullscreen){var Q;(Q=x.JSC$23061_cinematicController)==null||_.XCR(Q)}else if((x=x.JSC$23061_cinematicController)!=null){var J;(J=x.currentCinematicEffect)==null||J.pause()}};
tT5=function(x){if(_.u("web_cinematic_theater_mode")||_.u("web_cinematic_fullscreen")){var L;x.JSC$23061_watchApi.getRoot().toggleCinematicsActive(!((L=x.JSC$23061_cinematicController)==null||!L.isEnabled()))}};_.SDR=function(x){_.Te.call(this);var L=this;this.JSC$23064_watchApi=x;this.commentsReady=!1;this.setCommentsJobId=0;x=_.oQ(_.Jd(),_.qD,function(){xgi(L)});
this.addOnDisposeCallback(x);var D=this.JSC$23064_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){LNN(L)}),S=this.JSC$23064_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){LNN(L)});
this.addOnDisposeCallback(function(){L.JSC$23064_watchApi.unsubscribeByKey(D);L.JSC$23064_watchApi.unsubscribeByKey(S)});
var Q=function(){_.u("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&DgN(L,"false")};
this.JSC$23064_watchApi.getRoot().addEventListener("yt-page-data-will-update",Q);this.addOnDisposeCallback(function(){L.JSC$23064_watchApi.getRoot().removeEventListener("yt-page-data-will-update",Q)});
LNN(this)};
_.p(_.SDR,_.Te);var LNN=function(x){x.commentsReady=!1;_.WW.cancelJob(x.setCommentsJobId);x.setCommentsJobId=_.TG(_.WW,function(){xgi(x)},1E3)},xgi=function(x){if(!x.commentsReady){_.$T("cmi");
_.WW.cancelJob(x.setCommentsJobId);var L,D,S,Q,J=(L=x.JSC$23064_watchApi.getWatchNextResponse())==null?void 0:(D=L.contents)==null?void 0:(S=D.twoColumnWatchNextResults)==null?void 0:(Q=S.results)==null?void 0:Q.results.contents;L=void 0;if(J&&J.length)for(J=_.O(J),D=J.next();!D.done;D=J.next())if(D=D.value,Q=S=void 0,((S=D)==null?void 0:(Q=S.itemSectionRenderer)==null?void 0:Q.sectionIdentifier)==="comment-item-section"){_.u("web_watch_provide_undefined_comments")?L=D.itemSectionRenderer:x.JSC$23064_watchApi.provideRenderingData("COMMENTS",
D.itemSectionRenderer);DgN(x,"true");break}_.u("web_watch_provide_undefined_comments")&&x.JSC$23064_watchApi.provideRenderingData("COMMENTS",L);x.commentsReady=!0;x.JSC$23064_watchApi.dispatchEvent("yt-watch-comments-ready")}},DgN=function(x,L){var D;
(D=x.JSC$23064_watchApi.getElement("COMMENTS"))==null||D.setAttribute("canScheduleJobs",L)};_.ZKi=function(x){_.Te.call(this);var L=this;this.JSC$23067_watchApi=x;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.u("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.u("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.u("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.dE("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)QE5(this);
else{var D=this.JSC$23067_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){JEi(L);US(L)}),S=this.JSC$23067_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){w9(L);
US(L)});
this.JSC$23067_watchApi.getRoot().is==="ytd-watch-grid"&&_.u("swatcheroo_pbs_load_grid")&&(KNU(this),OKU(this));this.addOnDisposeCallback(function(){L.JSC$23067_watchApi.unsubscribeByKey(D);L.JSC$23067_watchApi.unsubscribeByKey(S);_.WW.cancelJob(L.provideRichGridJobId)});
JEi(this);w9(this)}};
_.p(_.ZKi,_.Te);var QE5=function(x){var L=x.JSC$23067_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){x.providePlayerJobId=_.VG(_.WW,function(){JEi(x);US(x)},x.provideAllDataDelayMs)}),D=x.JSC$23067_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){x.provideWatchNextJobId=_.VG(_.WW,function(){w9(x);
US(x)},x.provideAllDataDelayMs)}),S=x.JSC$23067_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){x.provideWatchNextJobId=_.VG(_.WW,function(){w9(x);
US(x)},x.provideAllDataDelayMs)});
x.JSC$23067_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.TG(_.WW,function(){JEi(x);w9(x);US(x)},100)});
x.JSC$23067_watchApi.addPageDisposeJob(function(){_.WW.cancelJob(x.provideWatchNextJobId);_.WW.cancelJob(x.providePlayerJobId)});
x.addOnDisposeCallback(function(){x.JSC$23067_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");x.JSC$23067_watchApi.unsubscribeByKey(L);x.JSC$23067_watchApi.unsubscribeByKey(D);x.JSC$23067_watchApi.unsubscribeByKey(S);_.WW.cancelJob(x.providePlayerJobId);_.WW.cancelJob(x.provideWatchNextJobId)});
JEi(x);w9(x)},JEi=function(x){var L=x.JSC$23067_watchApi.getPlayerResponse(),D,S,Q=(S=L==null?void 0:(D=L.playabilityStatus)==null?void 0:D.messageRenderers)!=null?S:[],J,Z;
L=(Z=L==null?void 0:(J=L.playabilityStatus)==null?void 0:J.messages)!=null?Z:[];J=_.O(L);for(Z=J.next();!Z.done;Z=J.next())Q.push({alertRenderer:{text:_.Dv(Z.value),type:"WARNING"}});x.JSC$23067_watchApi.provideRenderingData("ALERTS",Q)},w9=function(x){var L=[],D,S,Q,J=x.JSC$23067_watchApi.getWatchNextResponse(),Z,y,E,P,v=J==null?void 0:(Z=J.contents)==null?void 0:(y=Z.twoColumnWatchNextResults)==null?void 0:(E=y.results)==null?void 0:(P=E.results)==null?void 0:P.contents;
if(v)for(Z=_.O(v),y=Z.next();!y.done;y=Z.next())if(y=y.value,y.videoPrimaryInfoRenderer)var V=y;else if(y.videoSecondaryInfoRenderer){var h=y;P=E=void 0;y=Object.assign({},(E=y.videoSecondaryInfoRenderer)==null?void 0:(P=E.metadataRowContainer)==null?void 0:P.metadataRowContainerRenderer);if(y.rows&&y.collapsedItemCount!==void 0){y.rows=y.rows.slice(0,y.collapsedItemCount).filter(function(J5){return!!J5.richMetadataRowRenderer});
y.collapsedItemCount=y.rows.length;var H={metadataRowContainerRenderer:y}}}else if(y.merchandiseShelfRenderer)var k=y;else if(y.ticketShelfRenderer)var T=y;else if(y.expandableMetadataRenderer)var G=y;else if(y.itemSectionRenderer)if(E=y.itemSectionRenderer.contents,P=void 0,x.directlyProvideComments&&((P=y.itemSectionRenderer)==null?void 0:P.sectionIdentifier)==="comment-item-section")_.$T("cmi"),x.JSC$23067_watchApi.provideRenderingData("COMMENTS",y.itemSectionRenderer);else if(E)for(y=_.O(E),E=
y.next();!E.done;E=y.next())if(E=E.value,E.commentsEntryPointHeaderRenderer)var U=E;else if(E.clarificationRenderer||E.infoPanelContainerRenderer||E.infoPanelContentRenderer||E.emergencyOneboxRenderer){L.push(E);var l=l||!!h}else E.limitedStateMessageRenderer?S=E:E.videoMetadataCarouselViewModel&&(Q=E);if(_.u("web_watch_merch_in_sd_when_ticket_shelf_present")&&k&&T){var X=k;k=void 0}if(x.provideWatchNextSecondaryResults){var f,N,z;x.JSC$23067_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
J==null?void 0:(f=J.contents)==null?void 0:(N=f.twoColumnWatchNextResults)==null?void 0:(z=N.secondaryResults)==null?void 0:z.secondaryResults)}if(x.JSC$23067_watchApi.getRoot().is==="ytd-watch-grid"){var xf,K3;x.JSC$23067_watchApi.provideRenderingData("LIVE_CHAT",J==null?void 0:(xf=J.contents)==null?void 0:(K3=xf.twoColumnWatchNextResults)==null?void 0:K3.conversationBar)}var P4,kf,H4,p3;(f=J==null?void 0:(P4=J.contents)==null?void 0:(kf=P4.twoColumnWatchNextResults)==null?void 0:(H4=kf.secondaryResults)==
null?void 0:(p3=H4.secondaryResults)==null?void 0:p3.offerModule)&&(f.donationShelfRenderer||f.donationUnavailableRenderer)&&x.JSC$23067_watchApi.getRoot().is!=="ytd-watch-grid"&&(D=f);P4=x.JSC$23067_watchApi.getPlayerResponse();if(!P4||!_.M60(P4.playabilityStatus,J==null?void 0:J.playerOverlays)){var w0;if(J==null?0:(w0=J.contents)==null?0:w0.singleColumnWatchNextResults){var Rn,lG;var xX=J==null?void 0:(Rn=J.contents.singleColumnWatchNextResults.results)==null?void 0:(lG=Rn.results)==null?void 0:
lG.contents}else{var UR,c4,hr,GB;w0=!!(v==null?0:(UR=v[0])==null?0:(c4=UR.itemSectionRenderer)==null?0:(hr=c4.contents)==null?0:(GB=hr[0])==null?0:GB.backgroundPromoRenderer);var C2,X9;UR=!!(J==null?0:(C2=J.contents)==null?0:(X9=C2.twoColumnWatchNextResults)==null?0:X9.secondaryResults);w0&&!UR&&(xX=v)}}v=L[0];C2=L[1];l&&L.length===1&&(C2=v,v=void 0);x.JSC$23067_watchApi.provideRenderingData("PRIMARY_INFO",V);x.JSC$23067_watchApi.provideRenderingData("SECONDARY_INFO",h);x.JSC$23067_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
U);x.JSC$23067_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",Q);x.JSC$23067_watchApi.provideRenderingData("CLARIFICATION",v);x.JSC$23067_watchApi.provideRenderingData("RICH_METADATA",H);x.JSC$23067_watchApi.provideRenderingData("MERCH_SHELF",k);_.u("web_watch_merch_in_sd_when_ticket_shelf_present")&&x.JSC$23067_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",X);x.JSC$23067_watchApi.provideRenderingData("TICKET_SHELF",T);x.JSC$23067_watchApi.provideRenderingData("LIMITED_STATE",S);x.JSC$23067_watchApi.getRoot().is!==
"ytd-watch-grid"&&x.JSC$23067_watchApi.provideRenderingData("DONATION_SHELF",D);x.JSC$23067_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",xX);x.JSC$23067_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",C2);x.JSC$23067_watchApi.provideRenderingData("EXPANDABLE_METADATA",G);if(x.swatcherooProvideAllDataOnScheduledJob){var vs,Zp,K2,F2,II,jW;V=J==null?void 0:(vs=J.contents)==null?void 0:(Zp=vs.twoColumnWatchNextResults)==null?void 0:(K2=Zp.secondaryResults)==null?void 0:(F2=K2.secondaryResults)==
null?void 0:(II=F2.results)==null?void 0:(jW=II[0])==null?void 0:jW.richGridRenderer;x.JSC$23067_watchApi.provideRenderingData("RICH_GRID_RENDERER",V)}};
_.ZKi.prototype.hasCompanionAds=function(x){var L,D;return(D=x==null?void 0:(L=x.adPlacements)==null?void 0:L.some(function(S){var Q,J,Z,y;return(S==null?void 0:(Q=S.adPlacementRenderer)==null?void 0:(J=Q.renderer)==null?void 0:J.actionCompanionAdRenderer)||(S==null?void 0:(Z=S.adPlacementRenderer)==null?void 0:(y=Z.renderer)==null?void 0:y.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?D:!1};
var US=function(x){if(!_.u("swaterdoo_ps_wn_handle_ks")){x.swatcherooProvideAllDataOnScheduledJob||OKU(x,3E3);var L=x.JSC$23067_watchApi.getPlayerResponse(),D,S,Q,J,Z,y=(D=x.JSC$23067_watchApi.getWatchNextResponse())==null?void 0:(S=D.contents)==null?void 0:(Q=S.twoColumnWatchNextResults)==null?void 0:(J=Q.secondaryResults)==null?void 0:(Z=J.secondaryResults)==null?void 0:Z.offerModule;L=x.hasCompanionAds(L);var E,P;D=(y==null?void 0:(E=y.tvfilmOfferModuleRenderer)==null?void 0:E.clientShouldSuppressIfCompanionAdDisplayed)||
(y==null?void 0:(P=y.unlimitedOfferModuleRenderer)==null?void 0:P.suppressIfCompanionAds);E=L&&D;x.JSC$23067_watchApi.getRoot().is==="ytd-watch-grid"&&x.JSC$23067_watchApi.provideRenderingData("OFFER_MODULE",E?void 0:y)}},OKU=function(x,L){_.u("swatcheroo_pbs_load_grid")&&(x.provideRichGridJobId&&_.WW.cancelJob(x.provideRichGridJobId),x.provideRichGridJobId=_.VG(_.WW,function(){x.provideRichGridJobId=0;
var D,S,Q,J,Z,y,E,P=(D=x.JSC$23067_watchApi.getWatchNextResponse())==null?void 0:(S=D.contents)==null?void 0:(Q=S.twoColumnWatchNextResults)==null?void 0:(J=Q.secondaryResults)==null?void 0:(Z=J.secondaryResults)==null?void 0:(y=Z.results)==null?void 0:(E=y[0])==null?void 0:E.richGridRenderer;P&&x.JSC$23067_watchApi.provideRenderingData("RICH_GRID_RENDERER",P)},L))},KNU=function(x){var L,D;
_.I(function(S){if(S.nextAddress==1)return S.yield(x.JSC$23067_watchApi.playerApi,2);L=S.yieldResult;D=function(){x.onPlaybackStart()};
L.addEventListener("onPlaybackStartExternal",D);x.addOnDisposeCallback(function(){L.removeEventListener("onPlaybackStartExternal",D)});
_.Y2(S)})};
_.ZKi.prototype.onPlaybackStart=function(){OKU(this)};_.IAs=function(x){_.Te.call(this);var L=this;this.JSC$23080_watchApi=x;x.playerApi.then(function(D){L.player=D});
this.gestures=new _.hj(this.JSC$23080_watchApi.getRoot(),x.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.ZU8(_.Jd().getState())&&_.qD(_.Jd().getState())<=0)if(_.rF(_.Jd().getState())){var D;(D=L.player)==null||D.toggleFullscreen()}else _.dg(L.JSC$23080_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
yEz(this)};
_.p(_.IAs,_.Te);var yEz=function(x){var L=_.oQ(_.Jd(),_.rF,function(D){x.onFullscreenChanged(D)});
x.addOnDisposeCallback(L);L=_.oQ(_.Jd(),_.qD,function(D){x.gestures&&(D>0?x.gestures.detach():x.gestures.attach())});
x.addOnDisposeCallback(L)};
_.IAs.prototype.onFullscreenChanged=function(x){this.gestures&&this.gestures.update(x)};_.MVs=function(x){_.Te.call(this);var L=this;this.JSC$23083_watchApi=x;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(x.subscribeToActiveChanged(function(D){L.onActiveChanged(D)}));
Egi(this)};
_.p(_.MVs,_.Te);var dg5=function(x){if(_.u("swatcheroo_page_dispose_all_watch_data"))x.pageDisposalDataTypes=Object.values(TO5).filter(function(D){return D!=="PLAYLIST"});
else if(_.u("swatcheroo_page_dispose_rich_grid")){var L;(L=x.pageDisposalDataTypes)==null||L.push("RICH_GRID_RENDERER")}},Egi=function(x){_.u("swatcheroo_enable_ghost_cards")&&(dg5(x),x.JSC$23083_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.WW.cancelJob(x.clearDataJobId);
x.clearDataJobId=0}),x.runPageDisposeJob=function(){var L=_.yY().resolve(_.KX).getDestinationPageType()==="watch";
x.clearDataJobId=_.VG(_.WW,x.runClearDataJob,L?0:_.dE("web_watch_delay_page_dispose_ms",1E4))},x.runClearDataJob=function(){P75(x)},x.runOnYtNavigateAwayFinish=function(){x.clearDataJobId&&(_.WW.cancelJob(x.clearDataJobId),x.clearDataJobId=0,P75(x))},document.addEventListener("yt-navigate-finish",x.runOnYtNavigateAwayFinish),x.JSC$23083_watchApi.addPageDisposeJob(x.runPageDisposeJob),x.addOnDisposeCallback(function(){x.JSC$23083_watchApi.removePageDisposeJob(x.runPageDisposeJob);
x.JSC$23083_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",x.runOnYtNavigateAwayFinish)}))},P75=function(x){x.pageDisposalDataTypes.forEach(function(L){x.JSC$23083_watchApi.provideRenderingData(L,void 0)});
x.clearDataJobId=0};
_.MVs.prototype.onActiveChanged=function(x){x&&((x=document.querySelector("#watch-page-skeleton"))&&_.mg(x),jEU(this),document.body.removeAttribute("no-y-overflow"),_.rO("IS_SHELL_LOAD")&&_.iP3())};
var jEU=function(x){_.I(function(L){if(L.nextAddress==1)return L.yield(x.JSC$23083_watchApi.playerApi,2);_.aS();_.Y2(L)})};var vg5;vg5=_.u("kevlar_watch_while_counterfactual")?0:.25;_.ugU=function(x){_.Te.call(this);this.JSC$23086_watchApi=x;this.JSC$23086_watchWhileEnabled=_.u("kevlar_watch_while_v2");this.pipEnabled=_.u("web_enable_pip_on_miniplayer");VVs(this);h3v(this);HKw(this)};
_.p(_.ugU,_.Te);var VVs=function(x){x.JSC$23086_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){ggf(x)});
x.addOnDisposeCallback(function(){x.JSC$23086_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},h3v=function(x){var L,D;
_.I(function(S){if(S.nextAddress==1)return S.yield(x.JSC$23086_watchApi.playerApi,2);L=S.yieldResult;D=function(){ggf(x)};
L.addEventListener("onCollapseMiniplayer",D);x.addOnDisposeCallback(function(){L.removeEventListener("onCollapseMiniplayer",D)});
_.Y2(S)})},HKw=function(x){var L=x.JSC$23086_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&L&&x.JSC$23086_watchWhileEnabled&&(x.playerIntersectionObserver=new IntersectionObserver(function(D){x.handleIntersect(D)},{threshold:[vg5]}),x.playerIntersectionObserver.observe(L),x.addOnDisposeCallback(function(){var D;
(D=x.playerIntersectionObserver)==null||D.disconnect()}))},ggf=function(x){var L,D,S;
_.I(function(Q){if(Q.nextAddress==1){L=_.yY().resolve(_.KX);D=L.data;S=_.wV(D.response,!1,D.playerResponse);_.ie().miniplayerButtonActivation=!0;if(x.pipEnabled)return _.ie().watchPipActivation=!0,Q.jumpTo(2);_.yY().resolve(_.iy).collapse();return Q.yield(_.ie().navigationFinishPromise,2)}if(Q.nextAddress!=4)return _.ie().currentEndpoint=S.watchEndpoint||null,Q.yield(_.yY().resolve(_.iy).activate(x.JSC$23086_watchApi.getElement("PLAYER"),S,D),4);_.ie().userActivation=!0;_.Y2(Q)})};
_.ugU.prototype.handleIntersect=function(x){k38(this,x[x.length-1])};
var k38=function(x,L){x.watchWhileJobId&&_.WW.cancelJob(x.watchWhileJobId);x.watchWhileJobId=_.WW.addLowPriorityJob(function(){var D,S;return _.I(function(Q){if(Q.nextAddress==1)return x.watchWhileJobId=void 0,D=_.yY().resolve(_.iy),L.intersectionRatio>vg5?D.isMiniplayerActive()?Q.yield(D.deactivate(),0):Q.jumpTo(0):(S=!D.isMiniplayerActive())?Q.yield(pWU(x),5):Q.jumpTo(4);Q.nextAddress!=4&&(S=Q.yieldResult);if(!S)return Q.jumpTo(0);_.ie().watchWhileActivation=!0;return Q.yield(mgs(x),0)})},100)},
pWU=function(x){return _.I(function(L){return L.nextAddress==1?_.u("kevlar_watch_while_paused")?L.return(!0):L.yield(x.isPlayerPlaying(),2):L.return(L.yieldResult)})};
_.ugU.prototype.isPlayerPlaying=function(){var x=this,L;return _.I(function(D){if(D.nextAddress==1)return D.yield(x.JSC$23086_watchApi.playerApi,2);L=D.yieldResult;return D.return(L.getPlayerStateObject().isPlaying)})};
var mgs=function(x){var L,D;return _.I(function(S){L=_.yY().resolve(_.KX).data;D=_.wV(L.response,!1,L.playerResponse);_.ie().currentEndpoint=D.watchEndpoint||null;return S.yield(_.yY().resolve(_.iy).activate(x.JSC$23086_watchApi.getElement("PLAYER"),D,L),0)})};_.FNQ=function(x){_.Te.call(this);this.JSC$23090_watchApi=x;bKi(this);YDi(this)};
_.p(_.FNQ,_.Te);var YDi=function(x){var L,D;_.I(function(S){if(S.nextAddress==1)return S.yield(x.JSC$23090_watchApi.playerApi,2);L=S.yieldResult;D=function(Q){var J;Q.sessionData&&Q.sessionData.itct&&(J=Q.sessionData.itct);var Z=Q.watchEndpoint;if(Z&&Q.sessionData&&Q.sessionData.autonav)Z=_.RIO(Z,J);else{var y;Z=_.Zo(Q.videoId,(y=Q.listId)!=null?y:void 0,J)}J={endpoint:Z};Q.sessionData&&(J.tempData=Q.sessionData);x.JSC$23090_watchApi.dispatchEvent("yt-navigate",J)};
L.addEventListener("onPlayVideo",D);x.addOnDisposeCallback(function(){L.removeEventListener("onPlayVideo",D)});
_.Y2(S)})},bKi=function(x){var L=function(D){x.onYtNavigate(D)};
x.JSC$23090_watchApi.getRoot().addEventListener("yt-navigate",L);x.addOnDisposeCallback(function(){x.JSC$23090_watchApi.getRoot().removeEventListener("yt-navigate",L)})};
_.FNQ.prototype.onYtNavigate=function(x){var L=this,D,S,Q,J,Z,y,E,P,v;return _.I(function(V){if(V.nextAddress==1){if(!((D=x.detail)==null?0:(S=D.endpoint)==null?0:S.watchEndpoint))return V.return();Q=x.detail.endpoint.watchEndpoint;J=L.JSC$23090_watchApi.getWatchNextResponse();y=_.g((Z=J)==null?void 0:Z.currentVideoEndpoint,_.L6);if(!y)return V.return();if(Q.videoId!==y.videoId||Q.playlistId&&Q.playlistId!==y.playlistId||typeof Q.startTimeSeconds!=="number")return V.jumpTo(0);x.stopPropagation();
(E=_.u("kevlar_watch_while_v2")&&!_.u("kevlar_watch_while_counterfactual"))&&_.yY().resolve(_.iy).isMiniplayerActive()||L.JSC$23090_watchApi.scrollWatchTo(0,!0);return V.yield(L.JSC$23090_watchApi.playerApi,3)}P=V.yieldResult;v=Q.startTimeSeconds;P.seekTo(v,void 0,void 0,void 0,84);P.wakeUpControls();v<P.getDuration()&&P.playVideo();_.Y2(V)})};_.Ttw=function(x){_.Te.call(this);var L=this;this.JSC$23093_watchApi=x;var D=this.JSC$23093_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){sEi(L)});
this.addOnDisposeCallback(function(){L.JSC$23093_watchApi.unsubscribeByKey(D)});
sEi(this);_.u("enable_ai_companion")&&(x=this.JSC$23093_watchApi.getElement("PERSISTENT_PANEL_CONTAINER"))&&_.TOu(_.yY().resolve(_.Jy),x,"WATCH")};
_.p(_.Ttw,_.Te);var sEi=function(x){var L=x.JSC$23093_watchApi.getWatchNextResponse();if(L){var D,S=[].concat(_.lP((D=L==null?void 0:L.engagementPanels)!=null?D:[]));S.unshift.apply(S,_.lP(e38(L)));x.JSC$23093_watchApi.provideRenderingData("ENGAGEMENT_PANELS",S)}},R3i=function(x){var L,D,S,Q=(L=x.engagementPanels)==null?void 0:(D=L.find(function(H){var k;
return((k=H.engagementPanelSectionListRenderer)==null?void 0:k.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(S=D.engagementPanelSectionListRenderer.content)==null?void 0:S.structuredDescriptionContentRenderer,J;
if(_.g(Q==null?void 0:(J=Q.items)==null?void 0:J.find(function(H){return!!_.g(H,XH5)}),XH5))return!0;
var Z,y,E,P;if(x=(((Z=x.contents)==null?void 0:(y=Z.twoColumnWatchNextResults)==null?void 0:(E=y.results)==null?void 0:(P=E.results)==null?void 0:P.contents)||[]).find(function(H){return H.videoPrimaryInfoRenderer})){var v,V,h;
return(((v=x.videoPrimaryInfoRenderer)==null?void 0:(V=v.videoActions)==null?void 0:(h=V.menuRenderer)==null?void 0:h.flexibleItems)||[]).some(function(H){H=_.g(H,_.ohB);if(!H)return!1;var k,T;H=(k=H.topLevelButton)==null?void 0:(T=k.buttonViewModel)==null?void 0:T.onTap;if(!H)return!1;k=_.fI(H);if(!k)return!1;var G;return((G=_.g(k,_.ly))==null?void 0:G.panelIdentifier)==="PAyouchat"})}return!1},e38=function(x){var L=[];
if(!_.u("web_watch_inject_placeholder_fantasy_panel_killswitch")){var D,S,Q,J=(D=x.engagementPanels)==null?void 0:(S=D.find(function(y){var E;return((E=y.engagementPanelSectionListRenderer)==null?void 0:E.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(Q=S.engagementPanelSectionListRenderer.content)==null?void 0:Q.structuredDescriptionContentRenderer,Z;
_.g(J==null?void 0:(Z=J.items)==null?void 0:Z.find(function(y){return!!_.g(y,Yt8)}),Yt8)&&(D=_.tz3("PAsports_fantasy"),D.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",L.push(D))}R3i(x)&&(x=_.tz3("PAyouchat"),x.engagementPanelSectionListRenderer.targetId="PAyouchat",x.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",L.push(x));
return L};_.C7U=function(x){_.Te.call(this);this.JSC$23096_watchApi=x;G3N(this)};
_.p(_.C7U,_.Te);var G3N=function(x){x.JSC$23096_watchApi.registerActionHandler("yt-loop-command",function(L){lAU(x,L)});
x.JSC$23096_watchApi.registerActionHandler("yt-repeat-chapter-command",function(L){Ugz(x,L)});
x.addOnDisposeCallback(function(){x.JSC$23096_watchApi.unregisterActionHandler("yt-loop-command");x.JSC$23096_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},lAU=function(x,L){var D;
_.I(function(S){if(S.nextAddress==1)return S.yield(x.JSC$23096_watchApi.playerApi,2);D=S.yieldResult;_.g(L,sTi).loop?(D.setLoopRange({startTimeMs:Number(_.g(L,sTi).startTimeMs),endTimeMs:Number(_.g(L,sTi).endTimeMs),postId:_.g(L,sTi).postId,type:"clips"}),D.playVideo()):D.setLoopRange(null);_.Y2(S)})},Ugz=function(x,L){var D,S;
_.I(function(Q){if(Q.nextAddress==1)return Q.yield(x.JSC$23096_watchApi.playerApi,2);D=Q.yieldResult;S=_.g(L,CP5).repeat;S==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(D.setLoopRange({startTimeMs:Number(_.g(L,CP5).startTimeMs),endTimeMs:Number(_.g(L,CP5).endTimeMs),type:"repeatChapter"}),D.playVideo()):S==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&D.setLoopRange(null);_.Y2(Q)})};_.Bte=function(x){_.Te.call(this);this.JSC$23101_watchApi=x;wWv(this)};
_.p(_.Bte,_.Te);var wWv=function(x){x.JSC$23101_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(L){WNN(x,L)});
x.addOnDisposeCallback(function(){x.JSC$23101_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},WNN=function(x,L){var D,S,Q,J,Z,y,E,P,v,V,h;
_.I(function(H){if(H.nextAddress==1)return H.yield(x.JSC$23101_watchApi.playerApi,2);D=H.yieldResult;if(J=(Q=(S=_.g(L,lEi))==null?void 0:S.highlightedMenuItemKey)!=null?Q:"")(y=(Z=D).highlightSettingsMenuItem)==null||y.call(Z,J);if(v=(P=(E=_.g(L,lEi))==null?void 0:E.openMenuItemKey)!=null?P:"")(h=(V=D).openSettingsMenuItem)==null||h.call(V,v);_.Y2(H)})};var qDR=_.Ha("/youtube/app/watch/player_state","playerStateEntity");_.BA=function(x){_.Te.call(this);this.JSC$23104_watchApi=x;AEe(this)};
_.p(_.BA,_.Te);var $gN=function(x){switch(x){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"}},AEe=function(x){var L,D,S,Q;
_.I(function(J){if(J.nextAddress==1)return J.yield(x.JSC$23104_watchApi.playerApi,2);L=J.yieldResult;if(x.isDisposed())return J.return();D=function(Z){x.onPlayerStateChange(Z)};
S=function(Z){x.onAdStateChange(Z)};
Q=function(){x.onAdSkip()};
L.addEventListener("onStateChange",D);L.addEventListener("onAdStateChange",S);L.addEventListener("onAdSkip",Q);x.addOnDisposeCallback(function(){L.removeEventListener("onStateChange",D);L.removeEventListener("onAdStateChange",S);L.removeEventListener("onAdSkip",Q)});
_.Y2(J)})},rER=function(x){var L=_.KI(),D=L.dispatch;
a:switch(x.adsState){case -1:case 0:var S="ADS_STATE_NONE";break a;case 1:case 2:case 3:S="ADS_STATE_PLAYING";break a;default:S="ADS_STATE_UNKNOWN"}D.call(L,_.TR("playerStateEntity",qDR,{key:qDR,playerState:$gN(x.playerState),adsState:S,videoId:x.videoId}))};
_.BA.prototype.onPlayerStateChange=function(x){var L=this,D;return _.I(function(S){if(S.nextAddress==1)return S.yield(L.JSC$23104_watchApi.playerApi,2);D=S.yieldResult;if(L.isDisposed())return S.return();L.playerState=x;L.videoId=D.getVideoData().video_id;rER(L);_.Y2(S)})};
_.BA.prototype.onAdStateChange=function(x){this.adsState=x;rER(this)};
_.BA.prototype.onAdSkip=function(){this.adsState=0;rER(this)};_.iKN=function(x){_.Te.call(this);var L=this;this.JSC$23108_watchApi=x;this.enableExternalPlaylistPanelInPlayer=_.u("delhi_web_player_use_external_playlist_panel");_.yY().resolve(_.d6).setPlayer(this.JSC$23108_watchApi.getElement("PLAYER"));x=this.JSC$23108_watchApi.subscribeToActiveChanged(function(D){L.onActiveChanged(D)});
this.addOnDisposeCallback(x);NtU(this)};
_.p(_.iKN,_.Te);var NtU=function(x){var L,D;_.I(function(S){if(S.nextAddress==1)return x.enableExternalPlaylistPanelInPlayer?S.yield(x.JSC$23108_watchApi.playerApi,2):S.return();L=S.yieldResult;D=function(){if(x.playlistPanelElement)x.playlistPanelElement.onToggleExpanded()};
L.addEventListener("onToggleExternalPlaylistPanel",D);x.addOnDisposeCallback(function(){L.removeEventListener("onToggleExternalPlaylistPanel",D)});
_.Y2(S)})};
_.iKN.prototype.onActiveChanged=function(x){var L=this,D=_.yY().resolve(_.d6),S=function(){fAU(L)};
x?(this.playlistPanelElement=this.JSC$23108_watchApi.getElement("PLAYLIST_PANEL"))?(D.setPlaylistComponent(this.playlistPanelElement),D.addEventListener("yt-playlist-data-updated",S),this.addOnDisposeCallback(function(){D.removeEventListener("yt-playlist-data-updated",S)}),fAU(this)):_.X0(Error("Vo")):(D.removeEventListener("yt-playlist-data-updated",S),D.cancelVideoSkip())};
var fAU=function(x){var L=_.yY().resolve(_.d6);x.JSC$23108_watchApi.provideRenderingData("PLAYLIST",L.getPlaylistData())};_.WA=function(x){_.Te.call(this);var L=this;this.JSC$23111_watchApi=x;this.onPageScroll=function(){L.scrollThrottle.fire();L.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.zR(this.onThrottledScroll,200,this);_.V1(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.zR(this.onMastheadThrottledScroll,50,this);_.V1(this,this.mastheadScrollThrottle);this.animation=new _.hh(function(D){L.JSC$23111_watchApi.getRoot().setScrollTop(D)});
x=_.oQ(_.Jd(),_.rF,function(){L.onFullscreenChanged()});
this.addOnDisposeCallback(x);ogz(this);aA5(this);this.onThrottledScroll()};
_.p(_.WA,_.Te);
_.WA.prototype.onFullscreenChanged=function(){var x=this,L=this.JSC$23111_watchApi.getRoot();!this.pageScrollElement&&L.pageScrollElement?(this.pageScrollElement=L.pageScrollElement,L.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){x.pageScrollElement&&x.pageScrollElement.removeEventListener("scroll",x.onPageScroll)})):this.pageScrollElement&&!L.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var ogz=function(x){window.addEventListener("scroll",x.onPageScroll);x.addOnDisposeCallback(function(){window.removeEventListener("scroll",x.onPageScroll)})},aA5=function(x){x.JSC$23111_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(L){a:{var D;
if(D=x.JSC$23111_watchApi.getRoot().contains(L)&&!x.animation.isAnimating()){D=L.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var S,Q,J=(L==null?void 0:(S=L.parentElement)==null?void 0:(Q=S.parentElement)==null?void 0:Q.id)==="fixed-secondary";D=!(D&&J)}if(D){if(_.u("kevlar_watch_scroll_manager_absolute_offset_killswitch"))S=L.offsetTop;else for(S=0,Q=L;Q!==null;)S+=Q.offsetTop,S-=Q.scrollTop,Q=Q.offsetParent;Q=S;S=Q-24;L=Q+L.offsetHeight+24;Q=x.JSC$23111_watchApi.getRoot().getPageScrollingElement();
D=x.JSC$23111_watchApi.getRoot().getScrollTop();J=D+Q.clientHeight-56;if(S<D+56)L=S-56;else if(L>J)L-=Q.clientHeight;else break a;x.scrollWatchTo(Math.max(0,L),!0)}}});
x.addOnDisposeCallback(function(){x.JSC$23111_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.WA.prototype.onThrottledScroll=function(){var x=_.Jd(),L=x.dispatch,D=this.JSC$23111_watchApi.getRoot().getScrollTop();L.call(x,_.MU({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:D}}))};
_.WA.prototype.onMastheadThrottledScroll=function(){this.JSC$23111_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$23111_watchApi.getRoot().getScrollTop())};
_.WA.prototype.scrollWatchTo=function(x,L){(L===void 0?0:L)?this.animation.start(this.JSC$23111_watchApi.getRoot().getScrollTop(),Math.max(0,x),500):this.JSC$23111_watchApi.getRoot().setScrollTop(x)};_.cE8=function(x){_.Te.call(this);var L=this;this.JSC$23114_watchApi=x;var D=this.JSC$23114_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){z3U(L)}),S=this.JSC$23114_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){XWv(L)});
this.addOnDisposeCallback(function(){L.JSC$23114_watchApi.unsubscribeByKey(D);L.JSC$23114_watchApi.unsubscribeByKey(S)});
z3U(this);XWv(this)};
_.p(_.cE8,_.Te);
var z3U=function(x){var L,D,S,Q=(S=(L=x.JSC$23114_watchApi.getPlayerResponse())==null?void 0:(D=L.videoDetails)==null?void 0:D.title)!=null?S:"";x.JSC$23114_watchApi.dispatchEvent("yt-update-title",Q)},XWv=function(x){var L,D,S,Q,J,Z,y,E=(y=((Z=(L=x.JSC$23114_watchApi.getWatchNextResponse())==null?void 0:(D=L.contents)==null?void 0:(S=D.twoColumnWatchNextResults)==null?void 0:(Q=S.results)==null?void 0:(J=Q.results)==null?void 0:J.contents)!=null?Z:[]).find(function(P){return!!P.videoPrimaryInfoRenderer}))==null?
void 0:y.videoPrimaryInfoRenderer;
(L=_.SR(E==null?void 0:E.title))&&x.JSC$23114_watchApi.dispatchEvent("yt-update-title",L)};_.tVU=function(x){_.Te.call(this);this.JSC$23117_watchApi=x;ngs(this)};
_.p(_.tVU,_.Te);var ngs=function(x){var L,D;_.I(function(S){if(S.nextAddress==1)return S.yield(x.JSC$23117_watchApi.playerApi,2);L=S.yieldResult;D=function(){x.onYpcContentRequest()};
L.addEventListener("onYpcContentRequest",D);x.addOnDisposeCallback(function(){L.removeEventListener("onYpcContentRequest",D)});
_.Y2(S)})};
_.tVU.prototype.onYpcContentRequest=function(){var x,L,D,S,Q,J=(x=this.JSC$23117_watchApi.getWatchNextResponse())==null?void 0:(L=x.contents)==null?void 0:(D=L.twoColumnWatchNextResults)==null?void 0:(S=D.secondaryResults)==null?void 0:(Q=S.secondaryResults)==null?void 0:Q.offerModule,Z,y,E,P;x=(P=(E=(y=(Z=J==null?void 0:J.episodeOfferModuleRenderer)!=null?Z:J==null?void 0:J.movieOfferModuleRenderer)!=null?y:J==null?void 0:J.unlimitedOfferModuleRenderer)!=null?E:J==null?void 0:J.liveOfferModuleRenderer)!=
null?P:J==null?void 0:J.tvfilmOfferModuleRenderer;var v,V,h;J=(h=J==null?void 0:(v=J.tvfilmOfferModuleRenderer)==null?void 0:(V=v.actionButtons)==null?void 0:V.length)!=null?h:0;V=Math.max(J-1,0);var H,k,T;v=(T=x==null?void 0:(H=x.offerButton)==null?void 0:H.buttonRenderer)!=null?T:x==null?void 0:(k=x.actionButtons)==null?void 0:k[V].buttonRenderer;var G,U;(H=(U=(G=v==null?void 0:v.navigationEndpoint)!=null?G:v==null?void 0:v.serviceEndpoint)!=null?U:v==null?void 0:v.command)&&_.pI.instance.resolveCommand(H)};
}catch(e){_._DumpException(e)}
try{
var gTI,hDY,vTs;_.Vql=function(){var x=_.wk.clone(j8X),L;return(new _.HI(function(D,S){x.onSuccess=function(Q){_.S4n(Q)?D(new vTs(Q)):S(new _.fA("Request failed, status="+_.vY(Q),"net.badstatus",Q))};
x.onError=function(Q){S(new _.fA("Unknown request error","net.unknown",Q))};
x.onTimeout=function(Q){S(new _.fA("Request timed out","net.timeout",Q))};
L=_.kQ("//googleads.g.doubleclick.net/pagead/id",x)})).thenCatch(function(D){if(D instanceof _.iS){var S;
(S=L)==null||S.abort()}return _.Bp(D)})};
_.H6l=function(x){a:{var L="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(L="EMBEDDED_PLAYER_MODE_PFL");var D=x.raw_embedded_player_response;if(!D&&(x=x.embedded_player_response))try{D=JSON.parse(x)}catch(Q){break a}if(D)b:for(var S in hDY)if(hDY[S]==D.embeddedPlayerMode){L=hDY[S];break b}}return L==="EMBEDDED_PLAYER_MODE_PFL"};
_.uI9=function(){if(_.u("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("tf");if(!_.UcG())return Error("uf");var x=_.$6("PLAYER_VARS",{});if(_.wk.get(x,"privembed",!1)=="1")return Error("vf");if(_.H6l(x))return Error("wf")};
gTI=function(x){switch(x){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:_.Nh(x,"unknown result type")}};
_.k8q=function(x,L,D){L=_.AQG[L];D={detected:x===0,source:L.aYE,detectionResult:gTI(x),contentCpn:D};_.Uh("biscottiBasedDetection",D);_.l1H.increment(L.aYE,x);L.fV1!==void 0&&_.Au("CATSTAT",_.WPn(x,L))};
_.o3=function(x,L){var D={};D.key=x;D.value=L;return _.g5h().then(function(S){return new Promise(function(Q,J){try{var Z=S.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(D);Z.onsuccess=function(){Q()};
Z.onerror=function(){J()}}catch(y){J(y)}})})};
_.mF$=function(){var x=_.dE("user_engagement_experiments_rate_limit_ms"),L=p$G.get("last-user-engagement-exp-trigger-timestamp");return!L||(0,_.y5)()>=L+x?(p$G.set("last-user-engagement-exp-trigger-timestamp",(0,_.y5)()),!0):!1};
_.a3=function(x,L,D,S,Q){L=L===void 0?null:L;D=D===void 0?null:D;S=S===void 0?null:S;Q=Q===void 0?null:Q;x={youThereEventType:x};D&&(x.lactThresholdMs=D.lactThresholdMs,x.mediaPosSec=D.promptDelaySec,x.lactServerRequestMs=D.lactServerRequestMs,x.triggerReason=D.triggerReason);Q!=null&&(x.renderingMediaPosSec=Math.round(Q));L||(L=_.A3());L&&(x.clientScreenNonce=L);S&&(x.clientPlaybackNonce=S);_.Uh("youThere",x)};
hDY={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"};vTs=function(x){this.xhr=x};
_.fA=function(x,L,D){_.Dp.call(this,x+", errorCode="+L);this.errorCode=L;this.xhr=D;this.name="PromiseAjaxError"};
_.p(_.fA,_.Dp);var j8X={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var p$G=new _.Ng("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.Plg=function(x){return _.MU({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:x})};
}catch(e){_._DumpException(e)}
try{
var r9,bVe,FSz,sRN,Tz8,eFN,GGQ,$yR,r7s,Nz8,RFU,Yhe,wIf,Uyi,oZs;_.myU=function(){var x=window.location.hash;x.charAt(0)==="#"&&(x=x.charAt(1)==="!"?x.substring(2):x.substring(1));return _.tu(x)};
r9=function(x,L,D){var S;return _.I(function(Q){if(Q.nextAddress==1)return Q.yield(L(),2);S=Q.yieldResult;D(S,x);_.Y2(Q)})};
bVe=function(){return _.I(function(x){return x.nextAddress==1?x.yield((_.uI9()!==void 0?_.Bp(Error("xf")):_.Vql()).then(function(){return 1},function(L){if(L.message==="Biscotti id is disabled")return 3;
_.qy("Failed fetching bid");return 0}),2):x.return(x.yieldResult)})};
FSz=function(){var x=_.Iq("bGF5ZXIjbTg0NXBtYnpiNjhxeXQtaGF2ZW4tZW1iZWQtcA=="),L=_.Iq("ZnJhbWUjaXR4MGowcWtjcDBoaQ==");return document.querySelector(L+Yhe+x)?0:1};
sRN=function(){return _.bOn(_.g6)};
Tz8=function(){return _.YGf()===0?0:_.FP4()};
eFN=function(){return _.Gzh(_.osG([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
GGQ=function(){return _.VCf(RFU)};
_.CYw=function(x){_.I(function(L){switch(L.nextAddress){case 1:return L.yield(r9("b.f_",bVe,x),2);case 2:return L.yield(r9("j.s_",_.jFO,x),3);case 3:return L.yield(r9("r.s_",_.MCN,x),4);case 4:return L.yield(r9("e.h_",GGQ,x),5);case 5:if(!_.u("ab_det_sc_inj")){L.jumpTo(6);break}return L.yield(r9("s.i_",_.pVO,x),6);case 6:if(_.u("ab_deg_unex_thr")){L.jumpTo(8);break}return L.yield(r9("a.o_",_.gjp,x),8);case 8:if(_.u("ks_get_o_pp")){L.jumpTo(10);break}return L.yield(r9("g.o_",_.u6c,x),10);case 10:if(_.u("ks_det_gpbl")){L.jumpTo(12);
break}return L.yield(r9("p.i_",_.HO0,x),12);case 12:return L.yield(r9("f.i_",_.LP4,x),14);case 14:return L.yield(r9("a.b_",_.IQp,x),15);case 15:return L.yield(r9("p.m_",_.QFw,x),16);case 16:if(!_.u("ab_det_el_h_v2")){L.jumpTo(17);break}return L.yield(r9("n.h_",eFN,x),17);case 17:return L.yield(r9("o.p_",sRN,x),19);case 19:return L.yield(r9("e.i_",FSz,x),20);case 20:if(_.u("ab_det_apm"))return L.yield(r9("o.a_",Tz8,x),0);L.jumpTo(0)}})};
_.l8U=function(x,L){x={videoId:x};L&&(x.playlistId=L);return x};
_.Bzw=function(){if(_.UcG()){var x=_.$6("PLAYER_VARS",{});if(_.wk.get(x,"privembed",!1)!="1"&&!_.H6l(x)){var L=function(){Uyi=!0;"google_ad_status"in window?_.Au("DCLKSTAT",1):_.Au("DCLKSTAT",2)};
try{_.ac(_.cGl,L)}catch(D){}wIf.push(_.WW.addLowPriorityJob(function(){if(!(Uyi||"google_ad_status"in window)){try{_.FDN(_.cGl.toString(),L)}catch(D){}Uyi=!0;_.Au("DCLKSTAT",3)}},5E3))}}};
_.WSN=function(x,L,D){D=D===void 0?!1:D;var S=Math.max(x.width,_.n25);if(_.u("kevlar_watch_feed_big_thumbs")&&x.width>=1550-_.ma()&&x.height>=800)S-=_.QDR;else if(x.width>=_.fc){var Q=_.tfe+_.xp5+_.id;_.u("kevlar_watch_feed_big_thumbs")&&(Q=_.SqU);S-=Q}else S-=_.tfe;S=Math.min(S,_.LoR);Q=240;D&&(Q=380);L<.5624||(!_.u("kevlar_watch_flexy_disable_small_window_sizing")&&(x.height<630&&x.width>=657||x.height>=630&&x.width>=_.fc&&x.width<1327)?Q=360:!_.u("kevlar_watch_flexy_disable_large_window_sizing")&&
x.height>=630&&x.width>=1327&&(Q=480));var J=Math.min(S*L,x.height-(56+_.cBe+_.Dpi));J=Math.max(J,Q);L<1?S=J/L:x.width>=_.fc&&(S=_.WSN(x,.5625,D).width);return new _.b8(Math.round(S),Math.round(J))};
_.qhR=function(x){var L=0;x.indexOf("h")!=-1&&(x=x.split("h"),L=x[0]*60*60,x=x[1]);x.indexOf("m")!=-1&&(x=x.split("m"),L=x[0]*60+L,x=x[1]);x.indexOf("s")!=-1?(x=x.split("s"),L=x[0]*1+L):L=x*1+L;return L};
_.A7Q=function(){_.dE("service_worker_push_logged_out_prompt_watches")!=-1&&_.a5("WatchCount").then(function(x){x>=100||_.o3("WatchCount",x+1)})};
$yR=function(x){var L=x.externalVideoId||"";return L?x.isShortsEligible?"https://www.youtube.com/shorts/"+L:"https://www.youtube.com/watch?v="+L:""};
r7s=function(x){var L=[];x.viewCount&&L.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:x.viewCount});x.likeCount&&L.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:x.likeCount});return L};
Nz8=function(x){var L,D,S={"@context":"https://schema.org","@type":"VideoObject",description:_.SR(x.description),duration:"PT"+(x.lengthSeconds||"0")+"S",embedUrl:x.embed?x.embed.iframeUrl:"",name:_.SR(x.title),thumbnailUrl:((L=x.thumbnail)==null?void 0:(D=L.thumbnails)==null?void 0:D.map(function(v){return v&&v.url||""}))||[],
uploadDate:x.publishDate};_.u("mweb_video_schema_id_killswitch")||(S["@id"]=$yR(x));L=r7s(x);L.length&&(S.interactionStatistic=L);x.category&&(S.genre=x.category);x.ownerChannelName&&(S.author=x.ownerChannelName);x.liveBroadcastDetails&&(S.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:x.liveBroadcastDetails.startTimestamp,endDate:x.liveBroadcastDetails.endTimestamp}]);if(x.learningResource){x=x.learningResource;S["@type"]=["VideoObject","LearningResource"];var Q;if((Q=x.learningResourceType)==
null?0:Q.length)S.learningResourceType=x.learningResourceType[0];var J;if((J=x.educationalAlignment)==null?0:J.length)S.educationalAlignment={"@type":"AlignmentObject",targetName:x.educationalAlignment[0]};var Z;if((Z=x.educationalLevel)==null?0:Z.length){Q=x.educationalLevel[0];var y;if((y=x.educationalLevelCountry)==null?0:y.length)Q+=" ("+x.educationalLevelCountry+")";S.educationalLevel=Q}var E,P;if(((E=x.learningResourceType)==null?0:E.length)&&x.learningResourceType[0]==="Problem walkthrough"&&
((P=x.problemDescriptions)==null?0:P.length))for(S.hasPart=[],y=_.O(x.problemDescriptions),E=y.next();!E.done;E=y.next())Q=E.value,E=Q.problemDescriptionText,P=Q.startOffset,Q=Q.url,E&&P!==void 0&&Q&&S.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:E,text:E,startOffset:P,url:Q})}return S};
_.iVz=function(x){return _.MU({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:x}})};
RFU=[[["aW1hcnkjeWtkM2pqYXYwOTFzcHI=",null,null],[null,["ZGVyZXIjZW42aHFiY3JnNzMweXRkLXR3by1jb2x1bW4tYnJvd3NlLXJlc3VsdHMtcmVu","c2NvcGUjOWh4Z3g3d3ZvcHh1c3R5bGUt"],null],["YWQtYWQja3A3cmZsbG9tZXlzbWFzdGhl",["ZGVyZXIjb3VyaDlqbGZsa2lkeXRkLXJpY2gtZ3JpZC1yZW4="],null],[null,["ZGVyZXIjbTdtbjEwc2JyczV5eXRkLXJpY2gtZ3JpZC1yZW4=","c2NvcGUjcG93cTRvYzRscGo2c3R5bGUt"],null],[null,["ZGVyZXIjN2d3bnllNTh5MHZieXRkLWJhbm5lci1wcm9tby1yZW4=","LXNjb3BlI21maWJ0bjN5cTA3c3R5bGU="],null],[null,["ZGVyZXIjbmpmZWwyanA4NDY5eXRkLWFkLXNsb3QtcmVu"],
null]],[["ci1hZHMjamFuc3E5azJnNHo5cGxheWU=",null,null]],[["aW5uZXIjcmJncGx1ejZ1cHQxZGVzY3JpcHRpb24t",null,null],[null,null,"ZGVyZXIjMnRpcncwMjBrMWZyeXRkLW1lcmNoLXNoZWxmLXJlbg=="],["cG1haW4jNnh0eG81b2tnMmw=",["ZGVyZXIjM2QwdmV1anNrNW12eXRkLW1lcmNoLXNoZWxmLXJlbg=="],null]]];Yhe="#";wIf=[];Uyi=!1;_.f8N=["engagement-panel-ads"];oZs=new _.jp("updateSentimentBarStateCommand");_.a8z=new _.jp("showSurveyCommand");_.Nz=new _.jp("changeMarkersVisibilityCommand");var XIi,c78,Luf,x65,t7R,i4;_.zFw=function(x,L){this.playerProvider_=x;this.actionSenderElement_=L;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.zFw.prototype.reset=function(){XIi(this);this.isUserPredictedAbsent_=!1};
XIi=function(x,L){!x.youThereData_||x.showWarningJob_||L!==void 0&&L||(_.a3("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.A3(),x.youThereData_,x.clientPlaybackNonce_),_.wz());_.WW.cancelJob(x.showWarningJob_);x.showWarningJob_=0;_.WW.cancelJob(x.showBlockingWarningJob_);x.showBlockingWarningJob_=0;_.WW.cancelJob(x.pausePlaybackJob_);x.pausePlaybackJob_=0;x.youThereData_=null;x.clientPlaybackNonce_=void 0;x.inYouThereFlow_=!1};
_.nZs=function(x,L){var D,S,Q;_.I(function(J){if(J.nextAddress==1)return x.reset(),J.yield(x.playerProvider_().getPlayerPromise(),2);D=J.yieldResult;x.clientPlaybackNonce_=D.getVideoData().cpn;x.youThereData_=L.configData.youThereData;if(!x.youThereData_)return J.return();if(x.youThereData_.triggerReason&&x.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.mF$())return _.a3("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.A3(),x.youThereData_,x.clientPlaybackNonce_),J.return();S=x.youThereData_.promptDelaySec;
Q=D.getCurrentTime();x.showWarningJob_=_.WW.addLowPriorityJob(function(){return _.I(function(Z){x.showWarningJob_=0;return Z.yield(c78(x),0)})},Math.max(S-Q,0)*1E3);
_.Y2(J)})};
c78=function(x){var L,D,S,Q,J,Z;return _.I(function(y){if(y.nextAddress==1)return y.yield(x.playerProvider_().getPlayerPromise(),2);if(y.nextAddress!=3)return L=y.yieldResult,D=L.getCurrentTime(),y.yield(t7R(x),3);S=y.yieldResult;if(!S||!x.youThereData_)return y.return();if(_.u("check_user_lact_at_prompt_shown_time_on_web")&&(Q=parseInt(x.youThereData_.lactThresholdMs,10),_.Z8()<Q))return _.a3("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.A3(),x.youThereData_,x.clientPlaybackNonce_),y.return();if(x.youThereData_.playbackPauseDelayMs<=
0)return x65(x),y.return();!_.u("external_fullscreen")&&(J=_.O8())&&(x.ignoreFullscreenExitUserActivity_=!0,_.WW.addLowPriorityJob(function(){x.ignoreFullscreenExitUserActivity_=!1},2E3),_.Zg(J));
x.youThereData_.showToastWarningPrompt&&(i4(x,x.youThereData_.showWarningActions),x.inYouThereFlow_=!0,_.a3("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.A3(),x.youThereData_,x.clientPlaybackNonce_,D),_.a3("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.A3(),x.youThereData_,x.clientPlaybackNonce_,D));Z=0;x.youThereData_.blockingPromptDelayMs&&(Z=x.youThereData_.blockingPromptDelayMs);x.showBlockingWarningJob_=_.WW.addLowPriorityJob(function(){return _.I(function(E){x.showBlockingWarningJob_=0;return E.yield(Luf(x),
0)})},Z);
_.Y2(y)})};
Luf=function(x){var L,D,S;return _.I(function(Q){if(Q.nextAddress==1)return Q.yield(t7R(x),2);L=Q.yieldResult;if(!x.youThereData_)return Q.return();L&&(x.youThereData_.showBlockingWarningAction&&(_.a3("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.A3(),x.youThereData_,x.clientPlaybackNonce_),(D=_.g(x.youThereData_.showBlockingWarningAction,_.h_))?i4(x,D.commands):i4(x,[x.youThereData_.showBlockingWarningAction]),x.inYouThereFlow_=!0),S=x.youThereData_.playbackPauseDelayMs,x.pausePlaybackJob_=
_.WW.addLowPriorityJob(function(){return _.I(function(J){x.pausePlaybackJob_=0;return J.yield(x65(x),0)})},S));
_.Y2(Q)})};
x65=function(x){var L;return _.I(function(D){if(D.nextAddress==1)return D.yield(t7R(x),2);L=D.yieldResult;if(!x.youThereData_)return D.return();L&&(_.a3("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.A3(),x.youThereData_,x.clientPlaybackNonce_),i4(x,x.youThereData_.showPausedActions),x.inYouThereFlow_=!0);_.Y2(D)})};
_.zFw.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var x=_.g(this.youThereData_.userActiveDuringFlowAction,_.h_);x?i4(this,x.commands):i4(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.a3("YOU_THERE_EVENT_TYPE_LACT_RESET",_.A3(),this.youThereData_,this.clientPlaybackNonce_),_.wz());XIi(this,!0)}_.D6Q(this,!1)};
_.SUN=function(x){_.a3("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.A3(),x.youThereData_,x.clientPlaybackNonce_)};
t7R=function(x){var L,D;return _.I(function(S){if(S.nextAddress==1)return S.yield(x.playerProvider_().getPlayerPromise(),2);L=S.yieldResult;D=L.getPlayerState();return S.return(D==-1||D==1||D==3)})};
_.D6Q=function(x,L){var D;_.I(function(S){if(S.nextAddress==1){if(x.isUserPredictedAbsent_==L)return S.jumpTo(0);x.isUserPredictedAbsent_=L;return S.yield(x.playerProvider_().getPlayerPromise(),3)}D=S.yieldResult;D.setUserEngagement(L);L&&_.a3("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.A3(),x.youThereData_,x.clientPlaybackNonce_);_.Y2(S)})};
i4=function(x,L){if(_.u("handle_service_request_actions")||_.u("kevlar_youthere_service_endpoint_actions_killswitch"))_.v$(x.actionSenderElement_,L,x.actionSenderElement_);else{L=_.O(L);for(var D=L.next();!D.done;D=L.next())D=D.value,D.commandMetadata&&D.commandMetadata.webCommandMetadata&&D.commandMetadata.webCommandMetadata.sendPost?_.jq(x.actionSenderElement_,[D]):_.v$(x.actionSenderElement_,[D],x.actionSenderElement_)}};var QHs;var J68;var fn=function(){var x=_.e.apply(this,arguments)||this;x.systemIcons=_.u("kevlar_system_icons");x.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return x};
_.p(fn,_.e);fn.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var x=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(x=this.data.percentIfLiked||0,this.activated=!0):(x=this.data.percentIfIndifferent||0,this.activated=!1);_.jr(this.hostElement).querySelector("#like-bar").style.width=x+"%"}};
fn.prototype.handleUpdateSentimentBarStateCommand=function(x){this.data&&this.set("data.likeStatus",_.g(x,oZs).likeStatus)};
fn.prototype.observeLikeStatus=fn.prototype.observeLikeStatus;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],fn.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],fn.prototype,"ytActionHandlerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],fn.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],fn.prototype,"activated",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],fn.prototype,"systemIcons",void 0);_.A([_.bN("data.likeStatus"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],fn.prototype,"observeLikeStatus",null);_.A([_.w({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],fn);
_.q(fn,"ytd-sentiment-bar-renderer",function(){if(J68!==void 0)return J68;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return J68=x},{mode:1});var Kuv;var oC=function(){var x=_.e.apply(this,arguments)||this;x.small=!0;return x};
_.p(oC,_.e);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],oC.prototype,"ytComponentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],oC.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],oC.prototype,"small",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],oC);
_.q(oC,"ytd-video-view-count-renderer",function(){if(Kuv!==void 0)return Kuv;var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Kuv=x},{mode:_.Vm("kevlar_poly_si_batch_j080")?1:2});var aC=function(){var x=_.e.apply(this,arguments)||this;x.infoFormattedStrings=[];x.wrapVideoActions=_.u("kevar_watch_wrap_video_actions");x.hideSentimentBar=_.u("kevlar_watch_hide_sentiment_bar");x.actionMap={};return x};
_.p(aC,_.e);_.K=aC.prototype;_.K.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.u("web_modern_buttons"),forceIconButton:!_.u("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.K.dataChanged=function(){_.u("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.K.computeInfoFormattedStrings=function(x){if(!x)return[];var L=[];x.dateText&&L.push(x.dateText);x.stationName&&L.push(x.stationName);x.rating&&L.push(x.rating);x.startEndTimeTemplate&&x.startTimeUtcMillis&&x.endTimeUtcMillis&&L.push(_.Dv(_.deQ(_.SR(x.startEndTimeTemplate),Number(x.startTimeUtcMillis),Number(x.endTimeUtcMillis))));x.upNextProgramText&&L.push(x.upNextProgramText);return L};
_.K.scheduleInitialUpdatedMetadataRequest=function(){var x,L=(x=this.data)==null?void 0:x.updatedMetadataEndpoint;if(L){var D;x=Number((D=_.g(L,_.mIB))==null?void 0:D.initialDelayMs);D=isNaN(x)?250:x;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),D)}};
_.K.setSentimentBarWidth=function(){var x=this;_.So(this,function(){var L=_.jr(x.hostElement).querySelector("ytd-menu-renderer");if(L){L=L.topLevelButtons;for(var D=0,S=0;S<L.length;S++){var Q=L[S],J=x.get("toggleButtonSupportedData.toggleButtonIdData.id",Q.data);if(J==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||J==="TOGGLE_BUTTON_ID_TYPE_LIKE")D+=Q.clientWidth+8;else break}D&&(x.sentiment.style.width=D-8+" px")}})};
_.K.fetchUpdatedMetadata=function(x){var L;x&&(L={continuation:x});var D;(x=(D=this.data)==null?void 0:D.updatedMetadataEndpoint)&&_.yY().resolve(_.E2).resolveCommand(x,{form:Object.assign({},L,{element:this.hostElement})})};
_.K.onYtServiceRequestSent=function(x,L){L.endpoint&&_.g(L.endpoint,_.N1)&&(this.hasUpdateSentimentBarStateCommands()&&!_.u("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.g(L.endpoint,_.N1).status),this.setSentimentBarWidth())};
_.K.hasUpdateSentimentBarStateCommands=function(){var x,L,D,S,Q=(S=(x=this.data)==null?void 0:(L=x.videoActions)==null?void 0:(D=L.menuRenderer)==null?void 0:D.topLevelButtons)!=null?S:[];x=_.O(Q);for(L=x.next();!L.done;L=x.next()){L=L.value;Q=S=D=void 0;var J=(D=L.toggleButtonRenderer)==null?void 0:(S=D.toggleButtonSupportedData)==null?void 0:(Q=S.toggleButtonIdData)==null?void 0:Q.id;if(J==="TOGGLE_BUTTON_ID_TYPE_LIKE"||J==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){S=D=void 0;L=(S=_.g((D=L.toggleButtonRenderer)==
null?void 0:D.defaultServiceEndpoint,_.h_))==null?void 0:S.commands;if(!L)break;L=_.O(L);for(D=L.next();!D.done;D=L.next())if(_.g(D.value,oZs))return!0}}return!1};
_.K.onYtServiceRequestCompleted=function(x,L){var D;(x=(D=L.data)==null?void 0:D.loggingDirectives)&&_.E_0(_.sk(),x);this.get("continuation.timedContinuationData",L.data)&&this.data&&this.data.updatedMetadataEndpoint&&(L=L.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,L.continuation),L.timeoutMs))};
_.K.computeHasDateText=function(x){return!!x&&!!x.dateText};
_.J3.Object.defineProperties(aC.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var x,L,D,S;return!((S=(x=this.data)==null?void 0:(L=x.videoActions)==null?void 0:(D=L.menuRenderer)==null?void 0:D.flexibleItems)==null||!S.length)}}});
aC.prototype.onYtServiceRequestCompleted=aC.prototype.onYtServiceRequestCompleted;aC.prototype.onYtServiceRequestSent=aC.prototype.onYtServiceRequestSent;aC.prototype.dataChanged=aC.prototype.dataChanged;_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],aC.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],aC.prototype,"ytRendererBehavior",void 0);
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],aC.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.sB.YtTaskEmitterBehavior),_.r("design:type",Object)],aC.prototype,"ytTaskEmitterBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],aC.prototype,"data",void 0);_.A([_.F({computed:"computeInfoFormattedStrings(data)"}),_.r("design:type",Array)],aC.prototype,"infoFormattedStrings",void 0);
_.A([_.F({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],aC.prototype,"hasDateText",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],aC.prototype,"wrapVideoActions",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],aC.prototype,"hideSentimentBar",void 0);_.A([_.F({reflectToAttribute:!0}),_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],aC.prototype,"flexMenuEnabled",null);
_.A([_.F1("#sentiment"),_.r("design:type",Object)],aC.prototype,"sentiment",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],aC.prototype,"dataChanged",null);_.A([_.mX("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.zQ]),_.r("design:returntype")],aC.prototype,"onYtServiceRequestSent",null);
_.A([_.mX("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.S2]),_.r("design:returntype")],aC.prototype,"onYtServiceRequestCompleted",null);
_.q(aC,"ytd-video-primary-info-renderer",function(){if(QHs===void 0){var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);QHs=x}x=QHs;return x},{mode:1});var Oh8;var zh=function(){var x=_.e.apply(this,arguments)||this;x.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return x};
_.p(zh,_.e);_.K=zh.prototype;_.K.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"}}}};
_.K.dataChanged=function(){var x;this.descriptionToggled=!((x=this.data)==null||!x.defaultExpanded);var L;this.collapsed=this.descriptionAlwaysCollapsed||!((L=this.data)==null?0:L.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.VC(110509);this.showLessClientVe=_.VC(110510);x=_.A3();L=_.qu();x&&L&&_.c$(x,L,[this.showMoreClientVe,this.showLessClientVe])};
_.K.onYtExpanderMoreTapped=function(){var x,L=(x=this.data)==null?void 0:x.showMoreCommand;L&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(L);(x=_.A3())&&this.showMoreClientVe&&_.L7(x,this.showMoreClientVe)};
_.K.onYtExpanderLessTapped=function(){var x=_.A3();x&&this.showLessClientVe&&_.L7(x,this.showLessClientVe);var L;(x=(L=this.data)==null?void 0:L.showLessCommand)&&this.componentBehavior.resolveCommand(x)};
_.K.handleUpdateDateTextAction=function(x){this.data&&this.data.dateText&&this.set("data.dateText",_.g(x,_.iZQ).dateText)};
_.K.handleUpdateDescriptionAction=function(x){if(x=_.g(x,_.mKd))x.isEmpty||!x.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.$i(x.description)):this.set("data.description",x.description)};
_.K.onYtChangeEngagementPanelVisibilityAction=function(x){if(_.u("web_structured_description_show_more")||_.u("web_engagement_panel_open_description")){var L,D=(L=_.g(x,_.Fs2))==null?void 0:L.targetId,S;x=((S=_.g(x,_.Fs2))==null?void 0:S.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";D==="engagement-panel-structured-description"&&x&&(this.descriptionToggled=!0)}};
_.K.updateCollapsedFromBinding=function(x){this.collapsed=x.detail.value};
_.K.updateDescriptionToggledFromBinding=function(x){this.descriptionToggled=x.detail.value};
_.K.updateCanCollapseFromBinding=function(x){this.canCollapse=x.detail.value};
_.J3.Object.defineProperties(zh.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var x,L,D=(x=this.data)==null?void 0:(L=x.metadataRowContainer)==null?void 0:L.metadataRowContainerRenderer;return!!D&&!!D.rows&&D.rows.length>D.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.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}}});
zh.prototype.onYtExpanderLessTapped=zh.prototype.onYtExpanderLessTapped;zh.prototype.onYtExpanderMoreTapped=zh.prototype.onYtExpanderMoreTapped;zh.prototype.dataChanged=zh.prototype.dataChanged;_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],zh.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],zh.prototype,"ytRendererBehavior",void 0);
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],zh.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],zh.prototype,"componentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],zh.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Boolean)],zh.prototype,"collapsed",void 0);_.A([_.F(),_.r("design:type",Boolean)],zh.prototype,"descriptionToggled",void 0);
_.A([_.F(),_.r("design:type",Boolean)],zh.prototype,"canCollapse",void 0);_.A([_.F(),_.r("design:type",Object)],zh.prototype,"subscribeButtonData",void 0);_.A([_.F(),_.r("design:type",Number)],zh.prototype,"descriptionCollapsedHeight",void 0);_.A([_.F(),_.r("design:type",Object)],zh.prototype,"structuredDescriptionContentRenderer",void 0);_.A([_.F({value:function(){return _.u("web_watch_description_always_collapsed")}}),
_.r("design:type",Boolean)],zh.prototype,"descriptionAlwaysCollapsed",void 0);_.A([_.F1("#description"),_.r("design:type",HTMLDivElement)],zh.prototype,"description",void 0);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],zh.prototype,"dataChanged",null);_.A([_.mX("yt-expander-more-tapped"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],zh.prototype,"onYtExpanderMoreTapped",null);
_.A([_.mX("yt-expander-less-tapped"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],zh.prototype,"onYtExpanderLessTapped",null);_.A([_.Y("data.metadataRowContainer"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],zh.prototype,"metadataCollapsible",null);_.A([_.Y("data","structuredDescriptionContentRenderer"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],zh.prototype,"hasInlineStructuredDescription",null);
_.A([_.Y("data.attributedDescription"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],zh.prototype,"hasAttributedDescription",null);_.A([_.Y("hasInlineStructuredDescription","collapsed"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],zh.prototype,"loadStructuredDescription",null);_.A([_.Y("data","structuredDescriptionContentRenderer","collapsed"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],zh.prototype,"showInlineStructuredDescription",null);
_.A([_.Y("data","hasInlineStructuredDescription","metadataCollapsible"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],zh.prototype,"descriptionAlwaysCollapsible",null);
_.q(zh,"ytd-video-secondary-info-renderer",function(){if(Oh8===void 0){var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);Oh8=x}x=Oh8;return x},{mode:2});var ZhU;var XB=function(){return _.e.apply(this,arguments)||this};
_.p(XB,_.e);XB.prototype.configureRendererStamper=function(){return{"data.scrollUpButton":{id:"scroll-up",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.u("web_modern_buttons"),forceIconButton:!_.u("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
XB.prototype.activate=function(x){x.appendTo(this.player);x.getPlayerPromise().then(function(L){L.setMinimized(!0)});
this.active=!0};
XB.prototype.deactivate=function(){var x=this.player.firstElementChild;x.getPlayerPromise().then(function(L){L.setMinimized(!1)});
this.active=!1;return x};
XB.prototype.onScrollUpTap=function(){var x=_.yY().resolve(_.KX).getCurrentPage();x&&x.setScrollTop(0)};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],XB.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],XB.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],XB.prototype,"componentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],XB.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],XB.prototype,"active",void 0);
_.A([_.F({reflectToAttribute:!0,value:function(){return _.u("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.r("design:type",Boolean)],XB.prototype,"darkLaunch",void 0);_.A([_.F1("#player"),_.r("design:type",HTMLDivElement)],XB.prototype,"player",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],XB);
_.q(XB,"ytd-miniplayer-bar-renderer",function(){if(ZhU!==void 0)return ZhU;var x=document.createElement("template");_.m(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-miniplayer-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="player" class="style-scope ytd-miniplayer-bar-renderer"></div>\n<div id="meta" class="style-scope ytd-miniplayer-bar-renderer">\n  <div id="title-row" class="style-scope ytd-miniplayer-bar-renderer">\n    <h1 id="title" class="style-scope ytd-miniplayer-bar-renderer">[[getSimpleString(data.title)]]</h1>\n    <div id="scroll-up" on-tap="onScrollUpTap" class="style-scope ytd-miniplayer-bar-renderer"></div>\n  </div>\n  <yt-formatted-string id="owner" link-inherit-color="" text="[[data.owner]]" class="style-scope ytd-miniplayer-bar-renderer"></yt-formatted-string>\n  <div id="buttons" class="style-scope ytd-miniplayer-bar-renderer">\n    <div id="menu" class="style-scope ytd-miniplayer-bar-renderer"></div>\n    <div id="subscribe" class="style-scope ytd-miniplayer-bar-renderer"></div>\n  </div>\n</div>\n');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return ZhU=x},{mode:1});_.dF(_.B(function(x){var L=_.x3("script");_.Us(function(){var D;if(D=JSON)D=Nz8(x.data()),D=_.DE(JSON.stringify(D).replace(/</g,"\\u003C"));var S=x.data(),Q=_.SR(S.title).trim().length===0,J=!S.publishDate||S.publishDate.trim().length===0,Z,y,E,P,v=!((Z=S.thumbnail)==null?0:(y=Z.thumbnails)==null?0:y.length)||!((E=S.thumbnail)==null?0:E.thumbnails[0].url)||((P=S.thumbnail)==null?void 0:P.thumbnails[0].url.trim().length)===0;L.value&&D&&!(Q||J||v)&&_.Sf(L.value,D)},"Vy9K7b");
return _.M("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.M("script",{el:L,type:"application/ld+json"}))},"Ln"),"player-microformat-renderer",{props:{data:_.Il}});
}catch(e){_._DumpException(e)}
try{
var LSf,Dyw,QRU;_.xyN=function(x){return x.watch.watchWindowSize};
LSf=function(x,L){var D=document.querySelector(x);D?L(D):setTimeout(function(){LSf(x,L)},1E3)};
Dyw=function(x,L,D,S){if(x.isLockupToWatchTransitionEnabled){if(L){var Q={};Q=(Q["watch-next-appears"]="player-watch-next-loaded",Q);Q["lockup-to-watch"]=x.lockupToWatchPlayerTransitionType==="fade-in"?"player-lockup-to-watch-fade-in":"player-lockup-to-watch-fade-in-and-zoom";x.viewTransitionCoordinator.registerElement(L,Q)}D&&(L={},x.viewTransitionCoordinator.registerElement(D,(L["lockup-to-watch"]="below-lockup-to-watch",L["watch-next-appears"]="below-watch-next-loaded",L)));S&&(D={},x.viewTransitionCoordinator.registerElement(S,
(D["watch-next-appears"]="secondary-watch-next-loaded",D)))}};
_.ShN=function(x){return _.MU({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:x}})};
QRU=new _.jp("webWatchNextResponseExtensionData");var KSf=function(x){_.Te.call(this);var L=this;this.JSC$23121_watchApi=x;this.observer=null;var D=this.JSC$23121_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){J7e(L)});
this.addOnDisposeCallback(function(){L.JSC$23121_watchApi.unsubscribeByKey(D);L.observer&&(L.observer.disconnect(),L.observer=null)});
J7e(this)};
_.p(KSf,_.Te);
var J7e=function(x){var L,D,S,Q;_.I(function(J){if(J.nextAddress==1){x.observer&&(x.observer.disconnect(),x.observer=null);L=x.JSC$23121_watchApi.getWatchNextResponse();if(!L)return J.return();D=_.g(L,QRU);return((S=D)==null?0:S.enableCreatorChatbot)&&D.creatorChannelId?J.yield((0,_.ci0)("NSzT5"),3):J.jumpTo(0)}Q=_.lgg;Q(D.creatorChannelId);LSf("ytd-watch-metadata",function(Z){x.observer=new MutationObserver(function(){var y,E;(y=document.querySelector('ytd-watch-metadata #flexible-item-buttons button[aria-label="Ask"]'))==null||
(E=y.closest("yt-button-view-model.ytd-menu-renderer"))==null||E.remove()});
x.observer.observe(Z,{childList:!0,subtree:!0})});
_.Y2(J)})};var ZVw=function(x){_.Te.call(this);this.JSC$23125_watchApi=x;OVQ(this)};
_.p(ZVw,_.Te);var OVQ=function(x){_.I(function(L){if(L.nextAddress==1)return L.yield(y7w(x),2);I8v(x);_.Y2(L)})},y7w=function(x){var L,D,S,Q;
return _.I(function(J){if(J.nextAddress==1)return J.yield(x.JSC$23125_watchApi.playerApi,2);L=J.yieldResult;x.JSC$23125_watchApi.registerActionHandler("yt-dismiss-shopping-timely-shelf-action",function(){EZv(x)});
D=x.JSC$23125_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){I8v(x)});
S=function(Z){x.onCueRangeEnter(Z)};
L.addEventListener("onCueRangeEnter",S);Q=function(Z){x.onCueRangeExit(Z)};
L.addEventListener("onCueRangeExit",Q);x.addOnDisposeCallback(function(){x.JSC$23125_watchApi.unsubscribeByKey(D);L.removeEventListener("onCueRangeEnter",S);L.removeEventListener("onCueRangeExit",Q)});
_.Y2(J)})},M7U=function(x){var L,D,S,Q,J,Z,y,E,P;
return(J=(L=x.contents)==null?void 0:(D=L.twoColumnWatchNextResults)==null?void 0:(S=D.results)==null?void 0:(Q=S.results)==null?void 0:Q.contents)==null?void 0:(Z=J.find(function(v){var V,h,H;return(V=v.itemSectionRenderer)==null?void 0:(h=V.contents)==null?void 0:(H=h[0])==null?void 0:H.shoppingTimelyShelfViewModel}))==null?void 0:(y=Z.itemSectionRenderer)==null?void 0:(E=y.contents)==null?void 0:(P=E[0])==null?void 0:P.shoppingTimelyShelfViewModel},I8v=function(x){var L;
_.I(function(D){if(D.nextAddress==1)return(L=x.JSC$23125_watchApi.getWatchNextResponse())?D.yield(EZv(x),2):D.return();x.shoppingTimelyShelfViewModel=M7U(L);dye(x);PYN(x);_.Y2(D)})},dye=function(x){var L,D=(L=x.shoppingTimelyShelfViewModel)==null?void 0:L.offerIdToVariants;
D&&(L=D.filter(function(S){return S.key&&S.value}).map(function(S){return[S.key,
S.value]}),x.variantsMap=new Map(L))},PYN=function(x){var L,D,S,Q,J,Z;
_.I(function(y){if(y.nextAddress==1)return(D=(L=x.shoppingTimelyShelfViewModel)==null?void 0:L.cueRanges)?y.yield(x.JSC$23125_watchApi.playerApi,2):y.return();S=y.yieldResult;x.cueRanges=D;Q=_.O(D);for(J=Q.next();!J.done;J=Q.next())Z=J.value,Z.startTime!==void 0&&Z.endTime!==void 0&&Z.id!==void 0&&S.addCueRange("shopping_timely_shelf"+Z.id,jRi(Z.startTime),jRi(Z.endTime));_.Y2(y)})},jRi=function(x){return Number(x.seconds||0)+(x.nanos||0)/1E9};
ZVw.prototype.onCueRangeEnter=function(x){if(x.startsWith("shopping_timely_shelf")){var L=x.substring(21),D,S;x=(D=this.variantsMap)==null?void 0:(S=D.get(L))==null?void 0:S.shelf;if(_.u("web_enable_shopping_timely_shelf_client_overwrite")){var Q,J,Z,y,E;D=x==null?void 0:(Q=x.shoppingTimelyShelfContentViewModel)==null?void 0:(J=Q.button)==null?void 0:(Z=J[1])==null?void 0:(y=Z.buttonViewModel)==null?void 0:(E=y.onTap)==null?void 0:E.innertubeCommand;var P,v;if(D==null?0:(P=D.menuEndpoint)==null?0:
(v=P.menu)==null?0:v.menuRenderer)D.openPopupAction=D.menuEndpoint,D.openPopupAction.popup=D.openPopupAction.menu,D.openPopupAction.popup.menuPopupRenderer=D.openPopupAction.popup.menuRenderer,D.openPopupAction.popupType="DROPDOWN",delete D.menuEndpoint,delete D.openPopupAction.menu,delete D.openPopupAction.popup.menuRenderer;Q=x==null?void 0:x.shoppingTimelyShelfContentViewModel;if(Q!=null&&Q.button)for(J=_.O(Q.button),y=J.next();!y.done;y=J.next())Z=void 0,(y=(Z=y.value)==null?void 0:Z.buttonViewModel)&&
!y.onTap&&(Z=void 0,y.onTap=(Z=Q.rendererContext)==null?void 0:Z.commandContext.onTap)}x&&this.JSC$23125_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",x)}};
ZVw.prototype.onCueRangeExit=function(x){x.startsWith("shopping_timely_shelf")&&this.JSC$23125_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{})};
var EZv=function(x){var L,D,S,Q,J;return _.I(function(Z){if(Z.nextAddress==1)return Z.yield(x.JSC$23125_watchApi.playerApi,2);L=Z.yieldResult;if(x.cueRanges)for(D=_.O(x.cueRanges),S=D.next();!S.done;S=D.next())Q=S.value,Q.id&&(J="shopping_timely_shelf"+Q.id,L.removeCueRange(J));x.JSC$23125_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{});x.shoppingTimelyShelfViewModel=void 0;x.cueRanges=void 0;x.variantsMap=void 0;_.Y2(Z)})};var udi=function(x){_.Te.call(this);var L=this;this.JSC$23132_watchApi=x;x=_.oQ(_.Jd(),_.aZs,function(){vZU(L)});
this.addOnDisposeCallback(x);x=_.oQ(_.Jd(),_.xyN,function(){vZU(L)});
this.addOnDisposeCallback(x);V7R(this);hFv(this);HVQ()};
_.p(udi,_.Te);var V7R=function(x){var L=function(S){_.Jd().dispatch(_.IEU(S.matches))},D=window.matchMedia("(max-width: "+(999+_.ma())+"px)");
D.addListener(L);x.addOnDisposeCallback(function(){D.removeListener(L)});
L(D)},hFv=function(x){x.JSC$23132_watchApi.registerActionHandler("yt-window-resized",function(){HVQ()});
x.addOnDisposeCallback(function(){x.JSC$23132_watchApi.unregisterActionHandler("yt-window-resized")})},HVQ=function(){var x=_.sO();
_.Jd().dispatch(_.MU({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:x.width,height:x.height}}}))},vZU=function(x){var L;
_.I(function(D){if(D.nextAddress==1)return D.yield(x.JSC$23132_watchApi.playerApi,2);L=D.yieldResult;L.setSize(NaN,NaN);_.Y2(D)})};var gZ8=function(x){_.Te.call(this);var L=_.yY().resolve(_.og);Dyw(L,x.getElement("PLAYER_CONTAINER"),x.getElement("BELOW_THE_PLAYER"),x.getElement("SECONDARY"));this.addOnDisposeCallback(function(){var D=x.getElement("PLAYER_CONTAINER"),S=x.getElement("BELOW_THE_PLAYER"),Q=x.getElement("SECONDARY");L.isLockupToWatchTransitionEnabled&&(D&&_.Nb(L.viewTransitionCoordinator,D),S&&_.Nb(L.viewTransitionCoordinator,S),Q&&_.Nb(L.viewTransitionCoordinator,Q))})};
_.p(gZ8,_.Te);_.qz=function(x){_.Xx.call(this);var L=this;this.rootElement=x;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return L.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(D){L.initOrDisposeActiveModules(D)}));
this.onAttached()};
_.p(_.qz,_.Xx);_.K=_.qz.prototype;_.K.getRoot=function(){return this.rootElement};
_.K.getElement=function(x){return this.rootElement.getElement(x)};
_.K.setPlayerResponse=function(x){this.playerResponse=x;this.publish("PLAYER_RESPONSE_UPDATED",x)};
_.K.getPlayerResponse=function(){return this.playerResponse};
_.K.setWatchNextResponse=function(x){this.watchNextResponse===x?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=x,this.publish("WATCH_NEXT_RESPONSE_UPDATED",x))};
_.K.getWatchNextResponse=function(){return this.watchNextResponse};
_.K.registerActionHandler=function(x,L){var D=this;if(_.u("web_watch_controller_reg_multiple_handlers_killswitch")){var S={};_.cI(_.aR.getInstance(),(S[x]=L,S),this.getRoot())}else this.actionHandlers.has(x)||(this.actionHandlers.set(x,[]),S={},_.cI(_.aR.getInstance(),(S[x]=function(){var Q=_.Ne.apply(0,arguments);return(D.actionHandlers.get(x)||[]).map(function(J){return J.apply(null,_.lP(Q))})},S),this.getRoot())),this.actionHandlers.get(x).push(L)};
_.K.unregisterActionHandler=function(x){if(_.u("web_watch_controller_reg_multiple_handlers_killswitch")){var L={};_.nV(_.aR.getInstance(),(L[x]=!0,L),this.getRoot())}else(L=this.actionHandlers.get(x))?(L.pop(),L.length===0&&(L={},_.nV(_.aR.getInstance(),(L[x]=!0,L),this.getRoot()),this.actionHandlers.delete(x))):_.qy(new _.RZ("Attempted to unregister an action handler which is not registered.",x))};
_.K.addPageDisposeJob=function(x){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.eO0(this.rootElement.pageDisposeJobs,x)};
_.K.removePageDisposeJob=function(x){this.rootElement.pageDisposeJobs&&_.$f(this.rootElement.pageDisposeJobs,x)};
_.K.dispatchEvent=function(x,L){_.MF(this.rootElement,x,L)};
_.K.provideRenderingData=function(x,L){this.rootElement.provideRenderingData(x,L)};
_.K.scrollWatchTo=function(x,L){var D;(D=this.watchScrollManager)==null||D.scrollWatchTo(x,L)};
_.K.focusOnPlayer=function(){var x=this.getElement("PLAYER");_.So(x,function(){if(x&&x.firstElementChild){var L=x.querySelector(".html5-video-player");L&&(_.Tz(_.yY().resolve(_.Rl)),L.focus())}else _.qy(Error("Wo"))})};
_.K.subscribeToActiveChanged=function(x,L){L=L===void 0?!0:L;var D=_.oQ(_.Jd(),_.ZU8,function(S){x(S)});
L&&x(_.ZU8(_.Jd().getState()));return D};
_.K.isActive=function(){return _.ZU8(_.Jd().getState())};
_.K.onAttached=function(){var x=_.u("external_fullscreen");_.u("use_unified_flag_accessor")&&(x=_.yY().resolve(_.Z8Y).retriever.getFlag(_.W5h));(x||_.rO("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var kGs=function(x){return x.getRoot().is==="ytd-watch-flexy"||x.getRoot().is==="ytd-watch-grid"},AC=function(x){return x.getRoot().is==="ytd-watch-fixie"};
_.qz.prototype.initPersistentModules=function(){if(AC(this)||kGs(this)&&_.u("kevlar_watch_flexy_theater_manager")){var x=new _.mw8(this);_.V1(this,x)}x=new _.MVs(this);_.V1(this,x);x=new _.Gh(this);_.V1(this,x);x=new _.ZKi(this);_.V1(this,x);x=new _.BA(this);_.V1(this,x);x=new _.Cn(this);_.V1(this,x);if(AC(this)||kGs(this)&&_.u("kevlar_watch_flexy_playlist_manager"))x=new _.iKN(this),_.V1(this,x);_.u("web_thumbnail_to_watch_transition")&&(x=new gZ8(this),_.V1(this,x))};
_.qz.prototype.initOrDisposeActiveModules=function(x){x?(this.watchScrollManager=new _.WA(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.FNQ(this)),_.u("web_enable_shopping_timely_shelf_client")&&this.activeModules.push(new ZVw(this)),this.activeModules.push(new _.YXU(this)),AC(this)&&this.activeModules.push(new udi(this)),this.activeModules.push(new _.cE8(this)),this.activeModules.push(new _.ugU(this)),(AC(this)||_.u("kevlar_watch_flexy_error_screen_data_provider"))&&
this.activeModules.push(new _.R1i(this)),this.activeModules.push(new _.C7U(this)),(AC(this)||_.u("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.tVU(this)),(AC(this)||_.u("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.A8N(this)),_.u("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.fNz(this),this.activeModules.push(this.watchCinematicManager)),_.u("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.Bte(this)),_.u("kevlar_watch_flexy_gestures_manager")&&
this.activeModules.push(new _.IAs(this)),x=_.u("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.u("kevlar_watch_flexy_comments_manager")&&!x&&this.activeModules.push(new _.SDR(this)),_.u("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.NOz(this)),this.activeModules.push(new _.GUf(this)),this.activeModules.push(new _.Ttw(this)),_.u("web_enable_timely_actions")&&this.activeModules.push(new _.wYi(this)),_.u("web_enable_player_creator_endscreen_manager")&&
this.activeModules.push(new _.J8v(this)),_.u("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.Xdz(this)),_.u("web_fullscreen_components")&&this.activeModules.push(new _.U9R(this)),_.u("web_player_rtr_ctrls")&&this.activeModules.push(new _.OH5(this)),_.u("enable_creator_chatbot")&&this.activeModules.push(new KSf(this))):(_.Jx(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.qz.prototype.disposeInternal=function(){_.Xx.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.J3.Object.defineProperties(_.qz.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var o43,Jv,a3u,zkG,cjq,n4l,XJ5,tlY;o43=function(){var x=_.T8();x.info||(x.info={});return x.info};
Jv=function(x){return Math.round(_.C6()+x)};
a3u=function(){var x;if(_.u("csi_use_performance_navigation_timing")){var L,D,S,Q=_.G8==null?void 0:(x=_.G8.getEntriesByType)==null?void 0:(L=x.call(_.G8,"navigation"))==null?void 0:(D=L[0])==null?void 0:(S=D.toJSON)==null?void 0:S.call(D);Q?(Q.requestStart=Jv(Q.requestStart),Q.responseEnd=Jv(Q.responseEnd),Q.redirectStart=Jv(Q.redirectStart),Q.redirectEnd=Jv(Q.redirectEnd),Q.domainLookupEnd=Jv(Q.domainLookupEnd),Q.connectStart=Jv(Q.connectStart),Q.connectEnd=Jv(Q.connectEnd),Q.responseStart=Jv(Q.responseStart),
Q.secureConnectionStart=Jv(Q.secureConnectionStart),Q.domainLookupStart=Jv(Q.domainLookupStart),Q.isPerformanceNavigationTiming=!0,x=Q):x=_.G8.timing}else x=_.u("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.G8.timing)):_.G8.timing;return x};
zkG=function(){if(_.G8.getEntriesByType){var x=_.G8.getEntriesByType("paint");if(x=_.Uw(x,function(D){return D.name==="first-paint"}))return Jv(x.startTime)}var L;
_.u("csi_use_performance_navigation_timing")?L=_.G8.getEntriesByType("first-paint")[0].startTime:L=_.G8.timing.msFirstPaint;return L?Math.max(0,L):0};
cjq=function(){var x=window.location.protocol,L=_.G8.getEntriesByType("resource");L=_.dy(L,function(D){return D.name.indexOf(x+"//fonts.gstatic.com/s/")===0});
(L=XJ5(L,function(D,S){return S.duration>D.duration?S:D}))&&L.startTime>0&&L.responseEnd>0&&(_.ll("wffs",Jv(L.startTime)),_.ll("wffe",Jv(L.responseEnd)))};
n4l=function(x,L){x=document.querySelector(x);if(!x)return!1;var D="",S=x.nodeName;S==="SCRIPT"?(D=x.src,D||(D=x.getAttribute("data-timing-href"))&&(D=window.location.protocol+D)):S==="LINK"&&(D=x.href);_.tw(document)&&x.setAttribute("nonce",_.tw(document));return D?(x=_.G8.getEntriesByName(D))&&x[0]&&(x=x[0],D=_.C6(),_.ll("rsf_"+L,D+Math.round(x.fetchStart)),_.ll("rse_"+L,D+Math.round(x.responseEnd)),x.transferSize!==void 0&&x.transferSize===0)?!0:!1:!1};
_.xz$=function(x,L){_.fm(function(){_.R8("").info.actionType=x;L&&_.Au("TIMING_AFT_KEYS",L);_.Au("TIMING_ACTION",x);var D=_.YF0(_.$6("TIMING_INFO",{}));Object.keys(D).length>0&&_.U8(D);D={isNavigation:!0,actionType:_.dYO(_.$6("TIMING_ACTION"))};var S=_.$6("PREVIOUS_ACTION");S&&(D.previousAction=_.dYO(S));if(S=_.$6("CLIENT_PROTOCOL"))D.httpProtocol=S;if(S=_.$6("CLIENT_TRANSPORT"))D.transportProtocol=S;(S=_.A3())&&S!=="UNDEFINED_CSN"&&(D.clientScreenNonce=S);S=_.b1N();if(S===1||S===-1)D.isVisible=!0;
S=_.J40().loadType==="cold";var Q=o43();S||(S=Q.yt_lt==="cold");if(S){D.loadType="cold";S=o43();Q=a3u();var J=_.C6(),Z=_.$6("CSI_START_TIMESTAMP_MILLIS",0);Z>0&&!_.u("embeds_web_enable_csi_start_override_killswitch")&&(J=Z);J&&(_.ll("srt",Q.responseStart),S.prerender!==1&&_.h_s(J));S=zkG();S>0&&_.ll("fpt",S);S=a3u();S.isPerformanceNavigationTiming&&_.U8({performanceNavigationTiming:!0},void 0);_.ll("nreqs",S.requestStart,void 0);_.ll("nress",S.responseStart,void 0);_.ll("nrese",S.responseEnd,void 0);
S.redirectEnd-S.redirectStart>0&&(_.ll("nrs",S.redirectStart,void 0),_.ll("nre",S.redirectEnd,void 0));S.domainLookupEnd-S.domainLookupStart>0&&(_.ll("ndnss",S.domainLookupStart,void 0),_.ll("ndnse",S.domainLookupEnd,void 0));S.connectEnd-S.connectStart>0&&(_.ll("ntcps",S.connectStart,void 0),_.ll("ntcpe",S.connectEnd,void 0));S.secureConnectionStart>=_.C6()&&S.connectEnd-S.secureConnectionStart>0&&(_.ll("nstcps",S.secureConnectionStart,void 0),_.ll("ntcpe",S.connectEnd,void 0));_.G8&&"getEntriesByType"in
_.G8&&cjq();S=[];if(document.querySelector&&_.G8&&_.G8.getEntriesByName)for(var y in tlY)tlY.hasOwnProperty(y)&&(Q=tlY[y],n4l(y,Q)&&S.push(Q));if(S.length>0)for(D.resourceInfo=[],y=_.O(S),S=y.next();!S.done;S=y.next())D.resourceInfo.push({resourceCache:S.value})}_.U8(D);D=_.eq();D.preLoggedGelInfos||(D.preLoggedGelInfos=[]);y=D.preLoggedGelInfos;D=_.O1G();S=void 0;for(Q=0;Q<y.length;Q++)if(J=y[Q],J.loadType){S=J.loadType;break}if(_.J40().loadType==="cold"&&(D.loadType==="cold"||S==="cold")){S=_.K90();
Q=_.eq();Q=Q.gelTicks?Q.gelTicks:Q.gelTicks={};for(var E in S)if(!(E in Q))if(typeof S[E]==="number")_.ll(E,_.wg(E));else if(_.u("log_repeated_ytcsi_ticks"))for(J=_.O(S[E]),Z=J.next();!Z.done;Z=J.next())Z=Z.value,_.ll(E.slice(1),Z);E={};S=!1;y=_.O(y);for(Q=y.next();!Q.done;Q=y.next())S=Q.value,_.iz(D,S),_.iz(E,S),S=!0;S&&_.U8(E)}_.e_w(!0);E=_.$6("TIMING_ACTION");_.o1("ytglobal.timingready_")&&E&&_.qFf()&&_.ThG()&&_.pub()})()};
XJ5=function(x,L){return Array.prototype.reduce.call(x,L,{duration:0})};
tlY={'script[name="scheduler/scheduler"]':"sj",'script[name="player/base"]':"pj",'link[rel="preload"][name="player/embed"]':"pej",'link[rel="stylesheet"][name="www-player"]':"pc",'link[rel="stylesheet"][name="player/www-player"]':"pc",'script[name="desktop_polymer/desktop_polymer"]':"dpj",'link[rel="import"][name="desktop_polymer"]':"dph",'script[name="mobile-c3"]':"mcj",'link[rel="stylesheet"][name="mobile-c3"]':"mcc",'script[name="player-plasma-ias-phone/base"]':"mcppj",'script[name="player-plasma-ias-tablet/base"]':"mcptj",
'link[rel="stylesheet"][name="mobile-polymer-player-ias"]':"mcpc",'link[rel="stylesheet"][name="mobile-polymer-player-svg-ias"]':"mcpsc",'script[name="mobile_blazer_core_mod"]':"mbcj",'link[rel="stylesheet"][name="mobile_blazer_css"]':"mbc",'script[name="mobile_blazer_logged_in_users_mod"]':"mbliuj",'script[name="mobile_blazer_logged_out_users_mod"]':"mblouj",'script[name="mobile_blazer_noncore_mod"]':"mbnj","#player_css":"mbpc",'script[name="mobile_blazer_desktopplayer_mod"]':"mbpj",'link[rel="stylesheet"][name="mobile_blazer_tablet_css"]':"mbtc",
'script[name="mobile_blazer_watch_mod"]':"mbwj",'script[name="embed_client"]':"ecj",'link[rel="stylesheet"][name="embed-ui"]':"ecc"};var LCu={};LCu.YtVisibilityRootBehavior=[_.bTR.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.Q1(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.$6("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var x=_.$6("INNERTUBE_CLIENT_NAME")!=="WEB";_.u("kevlar_use_vimio_behavior")&&x&&_.mrQ()}}];_.KQ={};_.KQ.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(x){x.detail.contextProvider=this;x.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
LCu.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.xe();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(x){var L=this;this.pageCount+=1;_.u("kevlar_use_vimio_behavior")&&(_.$6("INNERTUBE_CLIENT_NAME")==="WEB"?_.WW.addJob(function(){L.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(x)},
loadPage_:function(x){this.data=x},
ytPageBehaviorActiveObserver_:function(x){var L=this;_.u("kevlar_use_vimio_behavior")&&(x?_.$6("INNERTUBE_CLIENT_NAME")==="WEB"?_.WW.addJob(function(){L.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(x){if(!this.setScrollTopJobId_){var L=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){L.setScrollTopJobId_=0;var D=_.yY().resolve(_.ZN(_.Rl));D&&_.Tz(D);this.getPageScrollingElement().scrollTop=x}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.qC(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var f3u;var Qg=function(){var x=_.e.apply(this,arguments)||this;x.playerListenerConfig=null;x.actionMap={"yt-show-watch-page-survey":"openSurvey"};return x};
_.p(Qg,_.e);_.K=Qg.prototype;_.K.dataChanged=function(){var x=this,L=_.Zs();L&&L.getPlayerPromise().then(function(S){x.maybeRemovePlayerListeners(S)});
var D=this.data&&this.data.survey;D&&((D=(D=D.singleOptionSurveyRenderer||D.checkboxSurveyRenderer||D.multiStageSurveyRenderer)&&D.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(L,D):this.openSurvey())};
_.K.triggerWatchPageSurvey=function(x,L){var D=this,S,Q,J,Z,y,E,P,v,V;return _.I(function(h){if(h.nextAddress==1)return x?h.yield(x.getPlayerPromise(),2):h.return();D.player=h.yieldResult;if(!D.player)return h.return();S={};Q=_.O(L);for(J=Q.next();!J.done;J=Q.next())Z=J.value,y=_.O(D.createEventListenerPair(Z)),E=y.next().value,P=y.next().value,v=E,V=P,v&&V&&(S[v]=V,D.ytPlayerListenerBehavior.listenToPlayerEvent(D.player,v,V));D.playerListenerConfig=S;_.Y2(h)})};
_.K.createEventListenerPair=function(x){var L=x.playbackEventTrigger;return L?this.handlePlaybackTrigger(L):(x=x.watchTimeTrigger)?this.handleWatchTimeTrigger(x):[void 0,void 0]};
_.K.handleWatchTimeTrigger=function(x){var L=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var D=x.videoWatchFraction,S=x.watchTimeSec;return S&&D?["onVideoProgress",function(){L.player&&L.isWatchTimeConditionMet(L.player,D,S)&&L.showSurvey()}]:[void 0,
void 0]};
_.K.isWatchTimeConditionMet=function(x,L,D){var S=x.getProgressState(),Q=S.current-this.lastKnownPlaybackPosition;Q<5&&(this.accumulatedMediaTime+=Q);this.lastKnownPlaybackPosition=S.current;S=Math.round(this.accumulatedMediaTime/S.duration*1E3)/1E3;return x.getPresentingPlayerType&&x.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>D||S>L)};
_.K.handlePlaybackTrigger=function(x){var L=this;x=x.playbackEvent;if(x==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var D="onStateChange";var S=function(Q){Q===0&&L.showSurvey()}}else x==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(D="onVideoProgress",S=function(Q){L.player&&L.player.getPresentingPlayerType&&L.player.getPresentingPlayerType()===1&&Q&&L.showSurvey()}):x==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(D="onAdEnd",S=this.showSurvey);
return[D,S]};
_.K.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.K.openSurvey=function(){var x=this,L=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.Plg(!!L));_.WW.addJob(function(){x.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:L}})},0,0)};
_.K.maybeRemovePlayerListeners=function(x){if(this.playerListenerConfig){for(var L=_.O(Object.keys(this.playerListenerConfig)),D=L.next();!D.done;D=L.next())D=D.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(x,D,this.playerListenerConfig[D]);this.playerListenerConfig=null}};
Qg.prototype.dataChanged=Qg.prototype.dataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Qg.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.Fz),_.r("design:type",Object)],Qg.prototype,"ytdOpenPopupBehavior",void 0);_.A([_.b(_.kj.YtPlayerListenerBehavior),_.r("design:type",_.pO)],Qg.prototype,"ytPlayerListenerBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],Qg.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.b(_.EG),_.r("design:type",Object)],Qg.prototype,"ytdReduxBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Qg.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],Qg.prototype,"playerListenerConfig",void 0);_.A([_.F({value:0}),_.r("design:type",Number)],Qg.prototype,"lastKnownPlaybackPosition",void 0);_.A([_.F({value:0}),_.r("design:type",Number)],Qg.prototype,"accumulatedMediaTime",void 0);_.A([_.F(),_.r("design:type",Object)],Qg.prototype,"player",void 0);
_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Qg.prototype,"dataChanged",null);_.A([_.w({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],Qg);
_.q(Qg,"ytd-survey-trigger-renderer",function(){if(f3u!==void 0)return f3u;var x=document.createElement("template");_.m(x,"\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");x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return f3u=x},{mode:1});
}catch(e){_._DumpException(e)}
try{
var r5Q=new _.jp("promotedSparklesWebRenderer");var N$5=new _.jp("relatedChipCommand");var ilw;var fYs;var G4=function(){return _.e.apply(this,arguments)||this};
_.p(G4,_.e);G4.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],G4.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],G4.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],G4.prototype,"data",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],G4);
_.q(G4,"ytd-compact-tvfilm-entry-point-renderer",function(){if(fYs!==void 0)return fYs;var x=document.createElement("template");_.m(x,'\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>');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return fYs=x},{mode:1});var oXs;var aYQ;var zl8;var Cc=function(){return _.e.apply(this,arguments)||this};
_.p(Cc,_.e);Cc.prototype.ready=function(){this.initializeDefs()};
Cc.prototype.initializeDefs=function(){var x=this.meta.byKey("yt-icons"),L=_.jr(x).querySelector("#star"),D=_.jr(x).querySelector("#star_half");x=_.jr(x).querySelector("#star_border");L&&this.defs.appendChild(L.cloneNode(!0));D&&this.defs.appendChild(D.cloneNode(!0));x&&this.defs.appendChild(x.cloneNode(!0))};
Cc.prototype.percentChanged=function(){for(var x=this.rating;x.firstChild;)x.removeChild(x.firstChild);var L=Math.round(this.percent/10);x=Math.floor(L/2);L%=2;var D=5-x-L;this.appendStars("star",x,0);this.appendStars("star_half",L,x);this.appendStars("star_border",D,x+L)};
Cc.prototype.appendStars=function(x,L,D){for(var S=0;S<L;S++){var Q=(18+this.spacing)*(S+D),J=document.createElementNS("http://www.w3.org/2000/svg","use");_.TEX(J,"#"+x);J.setAttribute("x",""+Q);J.setAttribute("y","0");this.rating.appendChild(J)}};
Cc.prototype.percentChanged=Cc.prototype.percentChanged;_.A([_.F1("#defs"),_.r("design:type",HTMLElement)],Cc.prototype,"defs",void 0);_.A([_.F1("#rating"),_.r("design:type",HTMLElement)],Cc.prototype,"rating",void 0);_.A([_.F(),_.r("design:type",Number)],Cc.prototype,"percent",void 0);_.A([_.F({value:6}),_.r("design:type",Number)],Cc.prototype,"spacing",void 0);_.A([_.F({value:_.$t.create("iron-meta",{type:"iconset"})}),_.r("design:type",_.f1)],Cc.prototype,"meta",void 0);
_.A([_.bN("percent"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Cc.prototype,"percentChanged",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-ratings"})],Cc);
_.q(Cc,"ytd-ratings",function(){if(zl8!==void 0)return zl8;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return zl8=x},{mode:1});var Xse=function(){return _.e.apply(this,arguments)||this};
_.p(Xse,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Xse.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Xse.prototype,"data",void 0);_.A([_.w({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],Xse);
_.q(Xse,"ytd-offer-review-renderer",function(){if(aYQ!==void 0)return aYQ;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return aYQ=x},{mode:1});var ld=function(){var x=_.e.apply(this,arguments)||this;x.badges=[{textBadge:{label:_.Dv("CC")}}];return x};
_.p(ld,_.e);_.K=ld.prototype;_.K.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.K.dataChanged=function(){var x=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(x&&x.commandMetadata&&_.g(x.commandMetadata,_.of)&&_.g(x.commandMetadata,_.of).fireAutomatically)_.yY().resolve(_.E2).resolveCommand(x,{form:{element:this.hostElement}});else{var L;x&&((L=_.g(x,_.of))==null?0:L.fireAutomatically)&&_.yY().resolve(_.E2).resolveCommand(x,{form:{element:this.hostElement}})}};
_.K.isEmptyContent=function(x){return this.isStorefrontEntryPointEmpty(x)&&this.shouldHideOfferModule(x)};
_.K.isStorefrontEntryPointEmpty=function(x){return!x||!x.storefrontEntryPoint};
_.K.shouldHideOfferModule=function(x){return!!x.hideVideoDetails};
_.K.isOfferModuleNavigationInactive=function(x){return!x.navigationEndpoint&&!x.serviceEndpoint};
_.K.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.yY().resolve(_.E2).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
ld.prototype.dataChanged=ld.prototype.dataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],ld.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],ld.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],ld.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.r("design:type",Boolean)],ld.prototype,"hidden",void 0);
_.A([_.F(),_.r("design:type",Object)],ld.prototype,"badges",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ld.prototype,"dataChanged",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],ld);
_.q(ld,"ytd-movie-offer-module-renderer",function(){if(oXs!==void 0)return oXs;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return oXs=x},{mode:1});var c5i;var nXN=function(){return _.e.apply(this,arguments)||this};
_.p(nXN,_.e);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],nXN.prototype,"componentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],nXN.prototype,"data",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],nXN);
_.q(nXN,"ytd-media-masthead-renderer",function(){if(c5i!==void 0)return c5i;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return c5i=x},{mode:1});var tGU;_.dF(_.L6d,"course-metadata-view-model",{props:{data:_.Il,isOverlay:_.Il}});var UP=function(){var x=_.e.apply(this,arguments)||this;x.isMetadataVisible=!1;x.modernPanels=_.u("kevlar_watch_modern_panels");x.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return x};
_.p(UP,_.e);_.K=UP.prototype;
_.K.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"}}}}};
_.K.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.K.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.K.expanderChanged=function(){var x;if((x=this.data)==null?0:x.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.K.isExpandButtonToggled=function(){var x,L;return(L=_.g((x=this.data)==null?void 0:x.expandMetadataButton,_.j3))==null?void 0:L.isToggled};
_.K.onVisibilityButtonClick=function(){var x;if((x=this.data)==null?0:x.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.K.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
UP.prototype.expanderChanged=UP.prototype.expanderChanged;UP.prototype.dataChanged=UP.prototype.dataChanged;UP.prototype.descriptionChanged=UP.prototype.descriptionChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],UP.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],UP.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b([_.ir.YtActionHandlerBehavior]),_.r("design:type",Object)],UP.prototype,"actionHandlerBehavior",void 0);
_.A([_.F(),_.r("design:type",Object)],UP.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],UP.prototype,"isMetadataVisible",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],UP.prototype,"modernPanels",void 0);_.A([_.F1("#expander"),_.r("design:type",Object)],UP.prototype,"expander",void 0);_.A([_.bN("data.description"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],UP.prototype,"descriptionChanged",null);
_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],UP.prototype,"dataChanged",null);_.A([_.bN("isMetadataVisible"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],UP.prototype,"expanderChanged",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],UP);
_.q(UP,"ytd-tvfilm-offer-module-renderer",function(){if(tGU!==void 0)return tGU;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return tGU=x},{mode:2});var xe8;var w3=function(){var x=_.e.apply(this,arguments)||this;x.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return x};
_.p(w3,_.e);w3.prototype.dataChanged=function(){this.hostElement.hidden=!1};
w3.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
w3.prototype.onThumbnailTap=function(x){this.data&&this.data.serviceEndpoint&&(_.yY().resolve(_.E2).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),x.stopPropagation())};
w3.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
w3.prototype.dataChanged=w3.prototype.dataChanged;_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],w3.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],w3.prototype,"rendererBehaviors",void 0);_.A([_.b([_.ir.YtActionHandlerBehavior]),_.r("design:type",Object)],w3.prototype,"actionHandlerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],w3.prototype,"data",void 0);
_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],w3.prototype,"dataChanged",null);_.A([_.w({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],w3);
_.q(w3,"ytd-unlimited-offer-module-renderer",function(){if(xe8!==void 0)return xe8;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return xe8=x},{mode:1});var LRz;var Dei;var Br=function(){var x=_.e.apply(this,arguments)||this;x.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return x};
_.p(Br,_.e);Br.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
Br.prototype.handleRelatedChipCommand=function(x){x=_.g(x,N$5);var L=x.contents;L?_.P$(this.hostElement,"yt-item-section-replace-action",[L,x.targetSectionIdentifier]):_.P$(this.hostElement,"yt-item-section-continuation-action",[x.continuationData,x.targetSectionIdentifier])};
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Br.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Br.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],Br.prototype,"actionHandlerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Br.prototype,"data",void 0);_.A([_.oW({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],Br);
_.q(Br,"yt-related-chip-cloud-renderer",function(){if(Dei===void 0){var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;LRz===void 0&&(LRz=document.createElement("template"));var S=LRz;D.call(L,S.content.cloneNode(!0),x.content.firstChild);Dei=x}x=Dei;return x},{mode:2});var Wr=function(){var x=_.e.apply(this,arguments)||this;x.isTwoColumns=!0;x.watchFeedBigThumbs=_.u("kevlar_watch_feed_big_thumbs");x.watchFeedBigThumbsOnLockup=_.u("web_watch_next_big_thumbs");x.watchNextGridHideChips=_.u("kevlar_watch_grid_hide_chips");x.eligibleToSwitchToGrid=_.u("web_watch_eligible_to_switch_to_grid");x.disableShortsShelfHeightOverride=_.u("web_shorts_wn_shelf_ratio_tuning");x.isWatchNextGrid=!1;x.reuseComponents=!_.u("kevlar_watch_grid");x.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",
contentsArray:"data.results",continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return x};
_.p(Wr,_.e);_.K=Wr.prototype;
_.K.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:!_.u("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}}};
_.K.getItemsPath=function(){return"data.results"};
_.K.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.K.created=function(){this.ytLazyListBehavior.initialCount=1};
_.K.ready=function(){_.uN(this.hostElement,{"--yt-img-shadow-placeholder-color":"var(--yt-spec-10-percent-layer)","--yt-img-shadow-min-height":"100%","--yt-img-shadow-min-width":"100%"})};
_.K.resultsChanged=function(){if(this.data&&this.data.results){for(var x=this.data.results,L=null,D=null,S=0;S<x.length;S++)x[S].relatedChipCloudRenderer?L=x[S].relatedChipCloudRenderer:x[S].itemSectionRenderer&&(D=x[S].itemSectionRenderer);if(L&&D)for(this.set("data.continuations",[]),x=_.g(L.content,_.X52).chips,L=0;L<x.length;L++)if(S=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",x[L]),S.loadCached||!S.contents){S.contents=D.contents;break}}};
_.K.dataChanged=function(){var x=this,L;if((L=this.data)!=null&&L.results&&this.hasAllowedInstreamAd(this.playerData)){if(L=this.data.results.filter(function(y){return!!y.promotedSparklesWebRenderer})){for(var D=0;D<L.length;D++){var S=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",L[D]);
if(S)for(var Q=0;Q<S.length;Q++)S[Q]&&S[Q].baseUrl&&_.z3(S[Q].baseUrl)}this.set("data.results",this.data.results.filter(function(y){return!y.promotedSparklesWebRenderer}))}if(L=this.data.results.filter(function(y){return!!x.getSparklesAd(y)})){L=_.O(L);
for(Q=L.next();!Q.done;Q=L.next())if(S=D=void 0,Q=(D=this.getSparklesAd(Q.value))==null?void 0:(S=D.errorCommand)==null?void 0:S.loggingUrls)for(D=_.O(Q),S=D.next();!S.done;S=D.next())(S=S.value)&&S.baseUrl&&_.z3(S.baseUrl);var J,Z;this.set("data.results",(J=this.data)==null?void 0:(Z=J.results)==null?void 0:Z.filter(function(y){return!y.adSlotRenderer}))}}};
_.K.getSparklesAd=function(x){var L,D;x=_.g((L=x.adSlotRenderer)==null?void 0:(D=L.fulfillmentContent)==null?void 0:D.fulfilledLayout,_.Y1W);return _.g(x==null?void 0:x.renderingContent,r5Q)};
_.K.hasAllowedInstreamAd=function(x){x=this.get("adPlacements",x)||[];for(var L=0;L<x.length;L++){var D=this.get("adPlacementRenderer.config.adPlacementConfig",x[L]);if(D&&D.suppressDisplayAd)return!0}return!1};
_.K.computeHideUnlimitedOfferModule=function(x,L){return x&&x.offerModule&&L&&x.offerModule.unlimitedOfferModuleRenderer&&x.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(L)?!0:!1};
_.K.hideUnlimitedOfferModuleChanged=function(){var x=_.jr(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");x&&(x.hidden=this.hideUnlimitedOfferModule)};
_.K.updateLockupContainerTypes=function(x){if(this.eligibleToSwitchToGrid){var L;(L=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||L.forEach(function(D){D.containerType=x})}};
_.K.computeHideTvfilmOfferModule=function(x,L){var D,S;return!!((x==null?0:(D=x.offerModule)==null?0:(S=D.tvfilmOfferModuleRenderer)==null?0:S.clientShouldSuppressIfCompanionAdDisplayed)&&L&&this.hasCompanionAds(L))};
_.K.hideTvfilmOfferModuleChanged=function(){var x=_.jr(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");x&&(x.hidden=this.hideTvfilmOfferModule)};
_.K.hasCompanionAds=function(x){x=this.get("adPlacements",x)||[];for(var L=0;L<x.length;L++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",x[L]))return!0;var D=void 0,S=void 0,Q=void 0;if(!_.u("web_watch_top_banner_companion_check_killswitch")&&((D=x[L])==null?0:(S=D.adPlacementRenderer)==null?0:(Q=S.renderer)==null?0:Q.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.K.hasSuppressedResults=function(x){return x==null?!0:x.filter(function(L){return!L.continuationItemRenderer&&!L.compactPromotedVideoRenderer&&!L.promotedSparklesWebRenderer}).length===0};
_.K.computeShowButton=function(x,L){return this.isWatchNextGrid?x:x||this.hasSuppressedResults(L)};
_.K.showButtonChanged=function(){if(this.isWatchNextGrid){var x=_.jr(this.hostElement).querySelector("ytd-rich-grid-renderer");x&&this.showButton!==null&&(x.continuationShowButton=this.showButton)}else{x=_.jr(this.hostElement).querySelector("yt-next-continuation");var L=_.jr(this.hostElement).querySelector("ytd-continuation-item-renderer"),D=_.jr(this.hostElement).querySelector("ytd-item-section-renderer");x&&(x.showButton=this.showButton);L&&(L.showButton=this.showButton);D&&(D.continuationShowButton=
this.showButton)}};
_.K.continuationTap=function(x){var L;if(((L=this.data)==null?void 0:L.continuations)!=null&&x.target.tagName==="TP-YT-PAPER-BUTTON")for(x=this.data.continuations,L=0;L<x.length;L++)x[L].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(x[L].nextContinuationData||{})};
_.K.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.gU("shown-items-changed",this.shownItems))};
_.J3.Object.defineProperties(Wr.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 x;return!((x=this.shownItems)==null||!x.some(function(L){return!!L.lockupViewModel||L.compactVideoRenderer}))}}});
Wr.prototype.shownItemsChangedForBinding=Wr.prototype.shownItemsChangedForBinding;Wr.prototype.showButtonChanged=Wr.prototype.showButtonChanged;Wr.prototype.hideTvfilmOfferModuleChanged=Wr.prototype.hideTvfilmOfferModuleChanged;Wr.prototype.updateLockupContainerTypes=Wr.prototype.updateLockupContainerTypes;Wr.prototype.hideUnlimitedOfferModuleChanged=Wr.prototype.hideUnlimitedOfferModuleChanged;Wr.prototype.dataChanged=Wr.prototype.dataChanged;Wr.prototype.resultsChanged=Wr.prototype.resultsChanged;
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Wr.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Wr.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.Gz.YtLazyListBehavior),_.r("design:type",Object)],Wr.prototype,"ytLazyListBehavior",void 0);_.A([_.b(_.u0.YtNextContinuationBehavior),_.r("design:type",Object)],Wr.prototype,"ytNextContinuationBehavior",void 0);
_.A([_.b(_.HS),_.r("design:type",Object)],Wr.prototype,"ytContinuationHandlerBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],Wr.prototype,"ytdReduxBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Wr.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],Wr.prototype,"playerData",void 0);_.A([_.F({value:!0}),_.r("design:type",Boolean)],Wr.prototype,"autoFill",void 0);_.A([_.F({value:60}),_.r("design:type",Number)],Wr.prototype,"targetFramerate",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Wr.prototype,"isTwoColumns",void 0);_.A([_.F(),_.r("design:type",Object)],Wr.prototype,"shownItems",void 0);_.A([_.F({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.r("design:type",Boolean)],Wr.prototype,"hideUnlimitedOfferModule",void 0);_.A([_.F({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.r("design:type",Boolean)],Wr.prototype,"hideTvfilmOfferModule",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Wr.prototype,"watchFeedBigThumbs",void 0);_.A([_.F(),_.r("design:type",Object)],Wr.prototype,"watchFeedBigThumbsOnLockup",void 0);_.A([_.F(),_.r("design:type",Object)],Wr.prototype,"watchNextGridHideChips",void 0);_.A([_.F(),_.r("design:type",Object)],Wr.prototype,"eligibleToSwitchToGrid",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Wr.prototype,"disableShortsShelfHeightOverride",void 0);
_.A([_.F({selector:_.Nj,reflectToAttribute:!0}),_.r("design:type",Object)],Wr.prototype,"isGridViewEnabled",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],Wr.prototype,"showMoreButton",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Wr.prototype,"isWatchNextGrid",void 0);_.A([_.F({computed:"computeShowButton(showMoreButton, data.results)"}),_.r("design:type",Boolean)],Wr.prototype,"showButton",void 0);
_.A([_.GV("data.results.*"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Wr.prototype,"resultsChanged",null);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Wr.prototype,"dataChanged",null);_.A([_.bN("hideUnlimitedOfferModule"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Wr.prototype,"hideUnlimitedOfferModuleChanged",null);
_.A([_.Y("isGridViewEnabled","containsLockups","data"),_.F({reflectToAttribute:!0}),_.r("design:type",Number),_.r("design:paramtypes",[])],Wr.prototype,"lockupContainerType",null);_.A([_.bN("lockupContainerType","data"),_.r("design:type",Function),_.r("design:paramtypes",[Number]),_.r("design:returntype")],Wr.prototype,"updateLockupContainerTypes",null);
_.A([_.bN("hideTvfilmOfferModule"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Wr.prototype,"hideTvfilmOfferModuleChanged",null);_.A([_.bN("showButton"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Wr.prototype,"showButtonChanged",null);_.A([_.bN("shownItems"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Wr.prototype,"shownItemsChangedForBinding",null);
_.A([_.Y("shownItems"),_.F({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Wr.prototype,"containsLockups",null);
_.q(Wr,"ytd-watch-next-secondary-results-renderer",function(){if(ilw===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);ilw=x}x=ilw;return x},{mode:1});
}catch(e){_._DumpException(e)}
try{
var l3X=new _.jp("replaceFeedContentAction");var URs;var wJq;var BMs=function(){return _.e.apply(this,arguments)||this};
_.p(BMs,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],BMs.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],BMs.prototype,"data",void 0);_.A([_.w({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],BMs);
_.q(BMs,"ytd-sub-feed-option-renderer",function(){if(wJq!==void 0)return wJq;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return wJq=x},{mode:1});var W0Y;var cw=function(){return _.e.apply(this,arguments)||this};
_.p(cw,_.e);cw.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],cw.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],cw.prototype,"ytRendererStamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],cw.prototype,"data",void 0);_.A([_.w({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],cw);
_.q(cw,"ytd-sub-feed-selector-renderer",function(){if(W0Y!==void 0)return W0Y;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return W0Y=x},{mode:1});var nM=function(){return _.e.apply(this,arguments)||this};
_.p(nM,_.e);
nM.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}}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],nM.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],nM.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],nM.prototype,"data",void 0);_.A([_.w({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],nM);
_.q(nM,"ytd-browse-feed-actions-renderer",function(){if(URs!==void 0)return URs;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return URs=x},{mode:1});var qbI;var Ajl;var tW=function(){return _.e.apply(this,arguments)||this};
_.p(tW,_.e);tW.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],tW.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],tW.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],tW.prototype,"data",void 0);_.A([_.w({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],tW);
_.q(tW,"ytd-mini-channel-renderer",function(){if(Ajl!==void 0)return Ajl;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Ajl=x},{mode:1});var $R5;var xd=function(){return _.e.apply(this,arguments)||this};
_.p(xd,_.e);xd.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],xd.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],xd.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],xd.prototype,"data",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],xd);
_.q(xd,"ytd-vertical-channel-section-renderer",function(){if($R5!==void 0)return $R5;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return $R5=x},{mode:1});var LQ=function(){return _.e.apply(this,arguments)||this};
_.p(LQ,_.e);LQ.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],LQ.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],LQ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],LQ.prototype,"data",void 0);_.A([_.w({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],LQ);
_.q(LQ,"ytd-browse-secondary-contents-renderer",function(){if(qbI!==void 0)return qbI;var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);
return qbI=x},{mode:1});var rjW;var DD=function(){var x=_.e.apply(this,arguments)||this;x.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};x.notActive=!1;x.isConstrainedList=!1;return x};
_.p(DD,_.e);_.K=DD.prototype;
_.K.configureRendererStamper=function(){return{content:{id:"primary",mapping:{richGridRenderer:{component:"ytd-rich-grid-renderer"},sectionListRenderer:{component:"ytd-section-list-renderer",properties:{initialCount:"[[initialCount]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"},matcher:function(x){var L;return(x==null?void 0:(L=x.webComponentHint)==null?void 0:L.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}}}}};
_.K.getPath=function(x,L){var D="data.tabs.#"+L+".";x.tabs[L].tabRenderer?D+="tabRenderer.":x.tabs[L].expandableTabRenderer&&(D+="expandableTabRenderer.");return D+"content.sectionListRenderer"};
_.K.computeDisplayedContent=function(x){this.unlinkPaths("content");if(x&&x.tabs)for(var L=x.tabs.length,D=0;D<L;D++){var S=x.tabs[D].tabRenderer||x.tabs[D].expandableTabRenderer;if(S.selected&&S.content)return this.linkPaths("content",this.getPath(x,D)),S.content}return null};
_.K.computeHasSecondaryColumnData=function(x){return!!x&&!!x.secondaryContents};
_.K.onRetrieveLocation=function(x,L){L.locationRetrieved(L.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);x.stopPropagation()};
_.K.onYtServiceRequestSent=function(x,L){_.u("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(L)};
_.K.onYtServiceRequestCompleted=function(x,L){_.u("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(L)};
_.K.onReplaceFeedContentAction=function(x){if(!_.u("replace_feed_content_action_killswitch")&&!this.notActive){var L;(x=(L=_.g(x,l3X))==null?void 0:L.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(x)}};
_.K.handleServiceRequestActions=function(x){if(x=x.actions){x=_.O(x);for(var L=x.next();!L.done;L=x.next()){L=L.value;var D=void 0;((D=_.g(L,l3X))==null?0:D.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.g(L,l3X).items)}}};
DD.prototype.onYtServiceRequestCompleted=DD.prototype.onYtServiceRequestCompleted;DD.prototype.onYtServiceRequestSent=DD.prototype.onYtServiceRequestSent;DD.prototype.onRetrieveLocation=DD.prototype.onRetrieveLocation;_.A([_.b(_.jC),_.r("design:type",Object)],DD.prototype,"ytdGridStateAwareBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],DD.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],DD.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],DD.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],DD.prototype,"data",void 0);_.A([_.F({computed:"computeDisplayedContent(data)"}),_.r("design:type",Object)],DD.prototype,"content",void 0);
_.A([_.F({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],DD.prototype,"hasSecondaryColumnData",void 0);_.A([_.F({value:function(){return window.outerHeight>1024?3:2}}),
_.r("design:type",Number)],DD.prototype,"initialCount",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",String)],DD.prototype,"pageSubtype",void 0);_.A([_.F1("ytd-section-list-renderer"),_.r("design:type",Object)],DD.prototype,"listRenderer",void 0);_.A([_.F(),_.r("design:type",Object)],DD.prototype,"notActive",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],DD.prototype,"isConstrainedList",void 0);
_.A([_.F(),_.r("design:type",String)],DD.prototype,"responsiveSizing",void 0);_.A([_.mX("yt-retrieve-location"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],DD.prototype,"onRetrieveLocation",null);_.A([_.mX("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.zQ]),_.r("design:returntype")],DD.prototype,"onYtServiceRequestSent",null);
_.A([_.mX("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.S2]),_.r("design:returntype")],DD.prototype,"onYtServiceRequestCompleted",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],DD);
_.q(DD,"ytd-two-column-browse-results-renderer",function(){if(rjW!==void 0)return rjW;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return rjW=x},{mode:2});
}catch(e){_._DumpException(e)}
try{
var y6i=function(x){if((x==null?void 0:x.value)===void 0||x==null||!x.unit)return"initial";a:{switch(x.unit){case "SHOPPING_DIMENSION_UNIT_POINT":var L="px";break a;case "SHOPPING_DIMENSION_UNIT_FRACTION":L="%";break a}L=void 0}return L?""+x.value+L:"initial"};_.dF(_.B(function(x){var L=_.ym(x,{}).data,D=function(){var S;return((S=L().image)==null?void 0:S.height)||40};
return _.M("yt-shopping-timely-shelf-content-view-model",{el:_.Zt(_.AL(function(){var S;return(S=L())==null?void 0:S.rendererContext},void 0,void 0,["BUTTON".toString(),
"A".toString()])),class:_.gF("ytShoppingTimelyShelfContentViewModelHost"),style:_.bc({"--shopping-timely-shelf-content-padding-top":function(){var S;return y6i((S=L().padding)==null?void 0:S.top)},
"--shopping-timely-shelf-content-padding-bottom":function(){var S;return y6i((S=L().padding)==null?void 0:S.bottom)},
"--shopping-timely-shelf-content-padding-start":function(){var S;return y6i((S=L().padding)==null?void 0:S.start)},
"--shopping-timely-shelf-content-padding-end":function(){var S;return y6i((S=L().padding)==null?void 0:S.end)},
"--yt-shopping-timely-shelf-background-color":function(){return L().backgroundColor!==void 0?_.XA(L().backgroundColor):"initial"}})},_.M(_.d,{cond:function(){var S;
return(S=L().image)==null?void 0:S.image},
then:function(S){return _.M(_.Ku,{preserveHeight:!0,preserveWidth:!0,height:D,data:S,alt:"",className:"ytShoppingTimelyShelfContentViewModelImage"})}}),_.M(_.Fj,{data:function(){return L().avatar}},{avatarViewModel:_.O0}),_.M("div",{class:"ytShoppingTimelyShelfContentViewModelText"},_.M(_.Fj,{data:function(){return L().line1}},{shoppingContentLineViewModel:function(S){return _.M(_.v6,{data:S.data})}}),_.M(_.Fj,{data:function(){return L().line2}},{shoppingContentLineViewModel:function(S){return _.M(_.v6,
{data:S.data})}})),_.M("div",{class:"ytShoppingTimelyShelfContentViewModelButtons"},_.M(_.R1,{each:function(){var S;
return(S=L().button)!=null?S:[]}},function(S){return _.M(_.Fj,{data:function(){return S}},{buttonViewModel:_.qP})})))},"Mn"),"yt-shopping-timely-shelf-content-view-model",{props:{data:_.pJ}});_.I5z={};
_.I5z.YtdWatchBehavior=[_.c.YtRendererBehavior,_.kj.YtPlayerListenerBehavior,_.GZ.YtRendererstamperBehavior,_.ir.YtActionHandlerBehavior,_.KQ.YtPageBehavior,_.NP.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 _.rO("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.u("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 _.rO("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 _.u("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.u("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 _.dE("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.dE("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},showRichGridContinuationButton:{type:Boolean,value:!1,computed:"computeShowRichGridContinuationButton(isTwoColumns_, commentsEntryPointHeaderRenderer)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,
computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},
newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.u("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.u("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.u("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.u("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.u("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.u("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 _.u("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.u("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.u("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.u("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.u("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.u("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 _.u("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.u("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 _.u("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 _.u("enable_ai_companion")}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);updatePanelsLocation(liveChatPresentAndExpanded);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);swatcherooRichGridRendererDataChanged(data);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var x={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:_.Fl(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.Fl(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},
"data.contents.twoColumnWatchNextResults.miniplayerBar":{id:"miniplayer-bar",mapping:{miniplayerBarRenderer:"ytd-miniplayer-bar-renderer"}},microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}};this.is!=="ytd-watch-grid"||_.u("swa_prov_panels_ks")?x.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}}:(x.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},x.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return x},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-set-playlist-collapsed":"onSetPlaylistCollapsed","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var x=this;this.watchController=void 0;this.pageDisposeJobs=[function(){x.showMetadataPlaceholder_()},
function(){_.u("web_watch_dont_clear_comments")||x.clearComments_()},
function(){x.clearPlayerAds_()},
function(){x.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setRichGridJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.is==="ytd-watch-grid"&&(this.visiblePanelIdentifiers_=new Set);this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.u("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.u("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.zFw(function(){return _.Ov(x)},this.hostElement);
this.pageDisposeJobs.push(function(){x.youThereManager_.reset()});
_.u("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){x.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.sF;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;_.u("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));_.u("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.p$(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(x){x&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:x}),x.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(x){_.u("kevlar_watch_flexy_theater_manager")&&(this.theater=x,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(x){!_.u("kevlar_watch_while_v2")&&!_.u("web_watch_pip")||x||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(x){this.active!==void 0&&(this.fullscreen=x,_.u("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(x){this.active!==void 0&&(_.MF(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.u("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.u("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(x>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(x){this.initCsi_();this.updatePageData_(x)},
updatePageData_:function(x){var L=this;if(x)if(this.data===x){this.onPageLoadWithSameData_();var D;(D=this.watchController)==null||D.setWatchNextResponse(this.data)}else this.data=x;this.playlist&&_.W$({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.$T("nw");this.loading=!1;_.TG(_.WW,function(){L.initDclkstatus_();var S,Q=((S=L.player)==null?void 0:S.getVideoData().cpn)||"";_.CYw(function(J,Z){_.k8q(J,Z,Q)})})},
onPageLoadWithSameData_:function(){_.u("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 x=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!x);this.set("loadingData.playlistLoading",x&&x!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),x=this.watchNextSkeletonEl_.firstElementChild;x;)x.classList.remove("hidden"),x=x.nextElementSibling;if(_.u("kevlar_watch_frame0_loading_state")){var L,D,S;x=(L=this.loadingData)==null?void 0:(D=L.endpoint)==null?void 0:(S=D.watchEndpoint)==null?void 0:S.videoId;var Q;x&&(Q="https://i.ytimg.com/vi/"+x+"/frame0.jpg");_.jr(this.hostElement).querySelector("#player").style.backgroundImage=Q?"url("+Q+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var x=_.jr(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&x&&(x.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var L,D;(D=(L=this.watchMetadata).updateSentimentBarWidth)==
null||D.call(L);var S,Q;(Q=(S=this.watchMetadata).resize)==null||Q.call(S)}_.u("kevlar_watch_frame0_loading_state")&&(_.jr(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(x){var L=_.jr(this.hostElement).querySelector(x);L?_.y0(L,!1):_.qy(new _.RZ("Overscroll monitor not found for component: ",x))},
removeSplitScrollMouseTrap:function(x){var L=_.jr(this.hostElement).querySelector(x);L?_.I8(L):_.qy(new _.RZ("Disposal component for  overscroll monitoring not found: ",x))},
onLoadingChanged_:function(x){x?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,_.u("web_thumbnail_to_watch_transition")&&!_.Tbq||this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,_.u("web_thumbnail_to_watch_transition")&&!_.Tbq||this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(x){var L=this;x?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.WW.addLowPriorityJob(function(){L.onWindowResized_(_.sO(!0))})},
updateTheaterModeState_:function(x){if(!_.u("kevlar_watch_flexy_theater_manager")){x=x||this.fullWindowMode_;if(this.theater!==void 0||x)this.theater=x;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();x&&_.MNe()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation();this.updateErrorScreenLocation()},
updatePlayerLocation:function(){var x=this.fullBleedPlayer?_.jr(this.hostElement).querySelector("#player-full-bleed-container"):_.jr(this.hostElement).querySelector("#player-container-inner");var L=this.getPlayerContainer(),D=_.u("kevlar_watch_while_v2")||_.u("web_watch_pip");L.parentElement!==x&&(D&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():_.Ov(this).appendTo(x,L))},
updateErrorScreenLocation:function(){var x=_.jr(this.hostElement).querySelector("#error-screen"),L=this.fullBleedPlayer?_.jr(this.hostElement).querySelector("#player-full-bleed-container"):_.jr(this.hostElement).querySelector("#player");x.parentElement!==L&&L.appendChild(x)},
deactivateMiniplayerAndResetPlayer:function(){var x=this;return _.I(function(L){if(L.nextAddress==1)return L.yield(_.yY().resolve(_.iy).deactivate(),2);x.updatePlayerLocation();_.Y2(L)})},
updateCinematicsLocation:function(){var x=this.getElement("CINEMATICS");if(x){var L=this.getCinematicsLocationContainer();x.parentElement!==L&&L.appendChild(x)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInFullBleedContainer(this.theater&&!this.fullscreen,this.fullscreen,this.isSingleColumn)?_.jr(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.jr(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInFullBleedContainer:function(x,L,D){var S=document.documentElement.hasAttribute("dark"),Q=S&&_.u("web_cinematic_theater_mode"),J=S&&_.u("web_cinematic_fullscreen");S=!S&&this.cinematicLightTheme;return D||x&&Q||L&&J||(L||x)&&S},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var x=this,L;(L=this.watchController)==null||L.setWatchNextResponse(this.data);_.u("kevlar_watch_flexy_comments_manager")||this.initComments_();_.u("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.yY().resolve(_.d6).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());if(this.is==="ytd-watch-grid")if(this.liveChatCollapsed=!0,this.visiblePanelIdentifiers_.clear(),
this.engagementPanelExpanded=!1,_.u("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.WW.addLowPriorityJob(function(){_.P$(x.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.u("web_watch_start_chat_in_theater_mode")){var D,S,Q;if((D=this.data)==null?0:(S=D.contents)==null?0:(Q=S.twoColumnWatchNextResults)==null?0:Q.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var J,Z;((J=this.data)==null?0:(Z=J.contents)==null?0:Z.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(x){var L;(L=this.watchController)==null||L.setPlayerResponse(this.playerData);x&&x.playabilityStatus&&(L=this.isVideoPlayable_(x.playabilityStatus,this.getPlayerOverlays_(this.data)),x=this.isLiveStreamOffline_(x.playabilityStatus),L&&!x||_.So(this,function(){_.$T("pbu")}));
this.setPlayerAds_();_.P$(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(x,L){if((_.u("kevlar_watch_while_v2")||_.u("web_watch_pip"))&&this.playerData&&L)return this.playerData.videoDetails},
watchPageActiveChanged_:function(x){_.Jd().dispatch(_.ShN(this.active));x?this.activate_():this.deactivate_()},
attached:function(){var x=this;this.watchController=new _.qz(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);_.u("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var L=_.Ov(this);_.u("kevlar_disable_prepare_player")||
L.preparePlayer();_.u("kevlar_watch_flexy_playlist_manager")||_.yY().resolve(_.d6).setPlayer(L);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();L={"--ytd-watch-flexy-scrollbar-width":_.ma()+"px"};this.is==="ytd-watch-grid"&&(L["--ytd-watch-flexy-sidebar-width"]=_.xp5+"px",L["--ytd-watch-grid-horizontal-page-margins"]=_.id+"px",L["--ytd-watch-grid-columns-top-margins"]=_.cBe+"px",L["--ytd-watch-grid-min-player-height-medium"]="360px");!_.dE("kv_pl_mx_sz_ks")&&
_.dE("kevlar_watch_max_player_width")&&(L["--ytd-watch-flexy-max-player-width-wide-screen"]=_.LoR+"px");_.dE("kevlar_watch_flexy_metadata_height")&&(L["--ytd-watch-flexy-space-below-player"]=_.Dpi+"px");this.safeUpdateStyles(L);_.u("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.hj(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return x.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.jr(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var x=_.ma(),L=_.fc+x,D=L;this.fixedPanels&&(L+=_.xp5);var S=657+x;x=1327+x;_.jr(this.hostElement).querySelector("#two-column-query").query="(min-width: "+L+"px)";_.jr(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(S+"px), (min-height: 630px) and (min-width: ")+(L+"px) and (max-width: ")+(x+"px)");_.jr(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(x+"px)");
_.jr(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+D+"px)";this.isTwoColumnsInitialized=!0},
calculateCurrentPlayerSize_:function(){var x=_.jr(this.hostElement).querySelector("#miniplayer-bar").firstChild,L=this.squeezeback&&!_.u("web_watch_squeezeback_player_size_killswitch");return x&&x.active||this.theater||_.u("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||L||!this.active||!this.windowSize_||this.fullBleedPlayer?new _.b8(NaN,NaN):_.WSN(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.WSN(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.Q1(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var x=this;this.onWindowResized_(_.sO());_.u("browse_skeleton_removal_on_watch_killswitch")||_.rO("IS_SHELL_LOAD")&&_.iP3();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var L=_.Ov(this);L.addEventListener("yt-player-updated",_.p$(this,this.onPlayerUpdated_));L.getPlayerPromise().then(function(D){x.playerApiReady_(D)});
_.u("kevlar_watch_flexy_playlist_manager")||(L=_.yY().resolve(_.d6),_.u("kevlar_watch_observe_playlist_navigations_killswitch")&&L.addEventListener("yt-navigate",_.p$(this,this.onYtNavigate_)),L.setPlaylistComponent(_.jr(this.hostElement).querySelector("#playlist")),L.addEventListener("yt-playlist-data-updated",_.p$(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.WW.addLowPriorityJob(function(){_.MF(x.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.Ov(this).removeEventListener("yt-player-updated",_.p$(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.u("kevlar_watch_flexy_playlist_manager")){var x=_.yY().resolve(_.d6);_.u("kevlar_watch_observe_playlist_navigations_killswitch")&&x.removeEventListener("yt-navigate",_.p$(this,this.onYtNavigate_));
x.cancelVideoSkip();x.removeEventListener("yt-playlist-data-updated",_.p$(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.u("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.MF(this.hostElement,"yt-autonav-pause-player",!1);x=_.O8();_.u("kevlar_exit_fullscreen_leaving_watch")&&x&&_.Zg(x)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(x){this.player&&this.player.updateVideoData({rvs:x.rvs})},
getPageContents:function(x){return x&&x.contents&&x.contents.twoColumnWatchNextResults&&x.contents.twoColumnWatchNextResults.results&&x.contents.twoColumnWatchNextResults.results.results.contents},
getClarifyBox:function(){return this.clarifyBoxValue},
getShoppingTimelyShelf:function(){return this.shoppingTimelyShelfValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(x){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",x)},
onRetrieveLocation_:function(x,L){L.hasComments?L.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):L.locationRetrieved("/related_ajax",void 0);x.stopPropagation()},
onSubscriptionChanged_:function(x,L){this.player&&(L?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.xz$("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.jr(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.jr(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(x){this.player=x;this.setPlayerState(x.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.u("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.u("kevlar_unified_player")||_.u("kevlar_player_new_bootstrap_adoption"))&&_.aS()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(x,L){L=L===void 0?!0:L;_.O8()&&_.u("external_fullscreen")&&_.Zg(document.documentElement);this.theaterRequested_=x;L&&_.FD("wide",x?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.dg(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.MF(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(x){_.A7(x,typeof this.player),this.player&&_.A7(x,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var x;((x=this.player)==null?0:x.isFullscreen())?this.player.toggleFullscreen():_.dg(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(x,L){return this.loading?L:!!Object.keys(x).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(x){if(x){x=_.O(x);for(var L=x.next();!L.done;L=x.next())L=L.value,L.youThereRenderer&&_.nZs(this.youThereManager_,L.youThereRenderer)}},
setPlaylistData_:function(x){return x||{}},
userEngagementConfigDataChanged_:function(x){if(x)if(x.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var L=this.youThereManager_;_.Z8()<x.lowEngagementThresholdMs||_.D6Q(L,!0)}else x.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.dg(this.hostElement,"yt-autonav-pause-user-engagement",[x])},
isPlayerUnavailable_:function(x,L,D){return!!x&&!this.isVideoPlayable_(x,D)&&!L},
getPlayerOverlays_:function(x){return(x==null?void 0:x.playerOverlays)||null},
isVideoPlayable_:function(x,L){if(!x)return!1;var D=x.status==="OK"||x.status==="LIVE_STREAM_OFFLINE",S=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",x)||this.get("errorScreen.ypcTrailerRenderer",x);x=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",x);var Q;L=L==null?void 0:(Q=L.playerOverlayRenderer)==null?void 0:Q.gatedActionsOverlayRenderer;return!!D||!!S||!!x||!!L},
hasWatchNextResponseErrorRenderer:function(x){var L=this.getPageContents(x),D,S,Q,J,Z;return!(x==null?0:(D=x.contents)==null?0:(S=D.twoColumnWatchNextResults)==null?0:S.secondaryResults)&&!!((Q=L[0])==null?0:(J=Q.itemSectionRenderer)==null?0:(Z=J.contents[0])==null?0:Z.backgroundPromoRenderer)},
isLiveStreamOffline_:function(x){return x?x.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(x,L,D){var S=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",L),Q=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];Q=_.u("web_no_skip_video_on_verification_checks")?(x==null?void 0:x.status)&&Q.includes(x.status):x&&x.status==="AGE_CHECK_REQUIRED";var J=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",x);J==void 0&&(J=!0);!D||this.isVideoPlayable_(x,this.getPlayerOverlays_(L))||
S||Q||!J||_.yY().resolve(_.d6).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.A7Q()},
onPlayerFeedbackStartRequest_:function(x){_.dg(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:x}])},
onPlayerFeedbackArticleRequest_:function(x){_.dg(this.hostElement,"yt-help-dialog-requested",[x])},
onPlayerYpcContentRequest_:function(){var x,L,D,S,Q,J,Z,y,E=((x=this.data)==null?NaN:(L=x.contents)==null?NaN:(D=L.twoColumnWatchNextResults)==null?NaN:(S=D.secondaryResults)==null?NaN:(Q=S.secondaryResults)==null?NaN:(J=Q.offerModule)==null?NaN:(Z=J.tvfilmOfferModuleRenderer)==null?NaN:(y=Z.actionButtons)==null?NaN:y.length)-1;x=[".offerButton.buttonRenderer.",".actionButtons."+(E>=0?E:0)+".buttonRenderer."];L=_.O(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(D=L.next();!D.done;D=L.next())for(D=D.value,S=_.O(x),Q=S.next();!Q.done;Q=S.next())if(Q="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+D+Q.value,Q=this.get(Q+"navigationEndpoint",this.data)||this.get(Q+"serviceEndpoint",this.data)||this.get(Q+"command",this.data)){_.mA(Q,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(x){_.MF(this.hostElement,"yt-autonav-pause-player",x)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(x){x()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(x){switch(x){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(x){switch(x){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.MF(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(x)},
setPlayerState:function(x){_.Jd().dispatch(_.re_(x))},
onPlayerSubscribe_:function(x){_.dg(this.hostElement,"yt-player-subscribe",[x])},
onPlayerUnsubscribe_:function(x){_.dg(this.hostElement,"yt-player-unsubscribe",[x])},
onPlayerAdYtShowToast_:function(x){_.dg(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:x.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(x){if(x)return x},
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(x){return!_.u("web_watch_move_summary_to_sd")&&!!x},
computeWatchMetadataRefresh:function(){return _.u("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.u("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var x,L,D,S;this.watchNextSecondaryResults=(x=this.data)==null?void 0:(L=x.contents)==null?void 0:(D=L.twoColumnWatchNextResults)==null?void 0:(S=D.secondaryResults)==null?void 0:S.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.u("swatcheroo_pbs_load_grid")&&!_.u("swatcheroo_provide_all_data_on_scheduled_job")){_.WW.cancelJob(this.setRichGridJobId_);var x,L,D,S,Q,J,Z;this.setRichGridRendererData((x=this.data)==null?void 0:(L=x.contents)==null?void 0:(D=L.twoColumnWatchNextResults)==null?void 0:(S=D.secondaryResults)==null?void 0:(Q=S.secondaryResults)==null?void 0:(J=Q.results)==null?void 0:(Z=J[0])==null?
void 0:Z.richGridRenderer)}},
setRichGridRendererData:function(x){this.richGridRendererData=x},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var x,L=(x=this.data)==null?void 0:x.engagementPanels;if(L==null?0:L.length){x=null;L=_.O(L);for(var D=L.next();!D.done;D=L.next()){D=D.value;var S=void 0;if(((S=D.engagementPanelSectionListRenderer)==null?void 0:S.targetId)==="engagement-panel-structured-description"){x=D;break}}var Q,J,Z;x=(Q=x)==null?void 0:(J=Q.engagementPanelSectionListRenderer)==null?void 0:(Z=J.content)==null?void 0:Z.structuredDescriptionContentRenderer;if(x==null?0:x.items){Q=
[];J=_.O(x.items);for(Z=J.next();!Z.done;Z=J.next()){Z=Z.value;if(!_.u("sd_horizontal_list_show_nav_killswitch")){var y=S=D=L=x=void 0,E=void 0,P=(x=Z.horizontalCardListRenderer)==null?void 0:(L=x.header)==null?void 0:(D=L.richListHeaderRenderer)==null?void 0:(S=D.navigationButton)==null?void 0:(y=S.buttonRenderer)==null?void 0:(E=y.command)==null?void 0:E.commandExecutorCommand;P&&P.commands&&(P.commands=P.commands.filter(function(v){return!_.g(v,_.v2N)}))}(!Z.expandableVideoDescriptionBodyRenderer&&
!Z.videoDescriptionHeaderRenderer||_.u("web_delhi_colorful_sd"))&&Q.push(Z)}return{items:Q}}}},
constructWarning_:function(x){return{text:_.Dv(x),type:"WARNING"}},
isPlaShelfEnabled_:function(x){if((this.get("adPlacements",x)||[]).length)return!0;x=this.get("playerAds",x)||[];return!(!x.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",x[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var x=this;_.MF(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.u("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var L=this.getScrollTop()>0;this.gestures_&&(L?this.gestures_.detach():this.gestures_.attach());L!==this.showFullerscreenEdu_&&_.u("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=L,_.Ov(this).getPlayerPromise().then(function(D){D.updateFullerscreenEduButtonVisibility(x.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.MF(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var x=this;this.commentsReady=!1;_.WW.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.TG(_.WW,function(){x.setComments_()},1E3)},
setComments_:function(){if(!_.u("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.$T("cmi");_.WW.cancelJob(this.setCommentsJobId_);var x=this.getPageContents(this.data);if(x&&x.length){x=_.O(x);for(var L=x.next();!L.done;L=x.next())if(L=L.value,this.get("itemSectionRenderer.sectionIdentifier",L)==="comment-item-section"){this.comments=L.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.MF(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.u("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.u("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.$T("cmc")},
doRemoveComments_:function(){this.comments={};_.u("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.WW.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.WW.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(x,L){var D=_.g(L.endpoint,_.L6);D&&(!(L=this.get("data.currentVideoEndpoint.watchEndpoint"))||D.videoId!==L.videoId||D.playlistId&&D.playlistId!==L.playlistId||D.index!==void 0&&D.index!==L.index||typeof D.startTimeSeconds!=="number"||(x.stopPropagation(),this.setScrollTop(0),_.Ov(this).getPlayerPromise().then(function(S){var Q=D.startTimeSeconds;S.seekTo(Q);S.wakeUpControls();Q<S.getDuration()&&S.playVideo()})))},
updatePlayerStartTime_:function(){var x=_.myU();"t"in x&&(x=_.qhR(x.t),this.player.seekTo(x,!0))},
updateTitleFromWatchNext:function(x){x=this.getPageContents(x);var L,D;(x=_.SR(x==null?void 0:(L=x[0])==null?void 0:(D=L.videoPrimaryInfoRenderer)==null?void 0:D.title))&&_.MF(this.hostElement,"yt-update-title",x)},
updateTitle_:function(x){x=this.get("videoDetails.title",x)||"";_.MF(this.hostElement,"yt-update-title",x)},
syncWithRemoteVideo_:function(x,L,D){if(this.active&&this.player){var S=this.player.getVideoData();if(S.video_id===D&&(D=S.list,_.u("polymer_enable_mdx_queue")&&D&&D.startsWith("RQ")&&(D=void 0),S.video_id!==x||D!=L)){var Q;_.u("kevlar_player_watch_endpoint_navigation")?Q=_.RIO(_.l8U(x,L)):Q=this.buildWatchEndpoint_(x,L);_.MF(this.hostElement,"yt-navigate",{endpoint:Q,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(x,L,D){return _.Zo(x,L,D)},
initDclkstatus_:function(){_.Bzw()},
attachWatchPageSkeleton_:function(){var x=document.querySelector("#watch-page-skeleton");if(x){var L=x.querySelector("#primary-info"),D=x.querySelector("#secondary-info"),S=x.querySelector("#related");L&&_.jr(this.hostElement).querySelector("#info-skeleton").appendChild(L);D&&_.jr(this.hostElement).querySelector("#meta-skeleton").appendChild(D);S&&(_.jr(this.hostElement).querySelector("#related-skeleton").appendChild(S),this.watchNextSkeletonEl_=S);_.mg(x)}},
handlePlayerUpdated_:function(){_.Ov(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(x,L){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof L!=="undefined"){var D=this.watchNextSkeletonEl_.children,S=x&&x.indexSplices.length?x.indexSplices[0].index:0;x=Math.min(this.watchNextShownItems.length,D.length);L||(S=0,x=D.length);for(L=S;L<x;L++)D[L].classList.add("hidden")}},
onPlayerFullscreenChange_:function(x){_.u("external_fullscreen")||_.dg(this.hostElement,"yt-player-fullscreen",[x.fullscreen])},
onFullscreenChange_:function(x){this.fullscreen=x;this.gestures_&&this.gestures_.update(this.fullscreen);var L=_.Ov(this);L.getPlayerPromise().then(function(D){D.setFauxFullscreen(!!_.O8())});
this.updateFullBleedElementLocations();x&&(L.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(x,L){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!L},
computeIsDonationShelfCollapsed_:function(x){return x},
computeShouldShowMerchShelf:function(x,L){return L&&!!x},
computeResponseHasComments:function(x){var L,D,S,Q,J;return!!(x==null?0:(L=x.contents)==null?0:(D=L.twoColumnWatchNextResults)==null?0:(S=D.results)==null?0:(Q=S.results)==null?0:(J=Q.contents)==null?0:J.some(function(Z){var y;return(Z==null?void 0:(y=Z.itemSectionRenderer)==null?void 0:y.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(x,L,D,S){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&S?!1:!!x&&!!Object.keys(x).length&&!L},
identity:_.B4,onWindowResized_:function(x){this.windowSize_=x;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.u("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(x){var L=this;x&&x.type!=="dataloaded"&&x.type!=="dataupdated"||_.Ov(this).getPlayerPromise().then(function(D){var S=D.getPlayerState();S!==5&&S!==0&&(D=1/D.getVideoAspectRatio(),L.videoHeightToWidthRatio_!==D&&(L.videoHeightToWidthRatio_=D))})},
schedulePlayerSizeUpdate_:function(x){var L=this,D=_.u("kevlar_watch_while_v2")||_.u("web_watch_pip"),S=function(){if(L.watchMetadata){var Q,J;(J=(Q=L.watchMetadata).resize)==null||J.call(Q)}_.Ov(L).getPlayerPromise().then(function(Z){if(_.u("kevlar_set_internal_player_size")){if(!D||!L.isMiniplayerActive()){var y=L.calculateCurrentPlayerSize_();Z.setInternalSize(y.width,y.height)}}else Z.setSize(NaN,NaN);_.u("kevlar_watch_while")&&L.updateWatchWhileScrollThreshold_()})};
x?S():_.VG(_.WW,S)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(x){this.set("data.survey",x.detail)},
onYtShowSurveyCommand_:function(x){this.set("data.survey",_.g(x,_.a8z).survey)},
onDownloadedVideoDeleted:function(x){var L=this,D,S;return _.I(function(Q){if(Q.nextAddress==1){if(!L.active||(D=L.playerData)==null||!D.offlineState||L.videoId!==x)return Q.return();(S=L.player)==null||S.stopVideo();_.ie().navigatingAwayFromWatchDeletedVideo=!0;_.mA(_.ea0,L.hostElement);return Q.yield(_.ie().navigationFinishPromise,2)}_.ie().navigatingAwayFromWatchDeletedVideo=!1;_.Y2(Q)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var x;this.theater?x=_.BF(.5625*this.windowSize_.width,480,this.windowSize_.height-185):x=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==x&&(this.watchWhileScrollThreshold_=x,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var x=_.jr(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&x){var L=this.windowSize_.height>=624,D=this.active?this.getScrollTop():0;!x.active&&L&&D>=this.watchWhileScrollThreshold_?(x.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):x.active&&(!L||D<this.watchWhileScrollThreshold_&&!_.O8())&&(x.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var x=_.jr(this.hostElement).querySelector("#secondary-inner");if(x){var L=_.jr(this.hostElement).querySelector("#below"),D=_.jr(this.hostElement).querySelector("#secondary"),S=_.jr(this.hostElement).querySelector("#comments");S&&D&&L&&(this.defaultTwoColumnLayout?(x.appendChild(S),D.appendChild(x)):(L.appendChild(S),_.r3(L,x)))}}},
isTwoColumnsChanged_:function(x,L){if(x!==!0||L!==void 0)if(this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(x=_.jr(this.hostElement).querySelector("#secondary-inner"))){L=_.jr(this.hostElement).querySelector("#below");var D=_.jr(this.hostElement).querySelector("#secondary"),S=_.jr(this.hostElement).querySelector("#comments");S&&D&&L&&(this.isTwoColumns_?(x.appendChild(S),D.appendChild(x)):(L.appendChild(S),_.r3(L,x)))}}else{x=!_.u("web_watch_enable_fs_squeezeback_panels")||
!(this.fullscreen||this.iMaxTheaterMode&&this.theater);L=_.jr(this.hostElement).querySelector("#panels");var Q=_.jr(this.hostElement).querySelector("#alerts"),J=_.jr(this.hostElement).querySelector("#shopping-timely-shelf");D=_.jr(this.hostElement).querySelector("#playlist");S=_.jr(this.hostElement).querySelector("#related");var Z=_.jr(this.hostElement).querySelector("#donation-shelf"),y=_.jr(this.hostElement).querySelector("#comments"),E=_.jr(this.hostElement).querySelector("#persistent-panel-container");
this.isTwoColumns_?(Q=_.jr(this.hostElement).querySelector("#secondary-inner"),x&&(Q.appendChild(L),Q.appendChild(D),this.aiCompanionEnabled&&E&&Q.appendChild(E)),Q.appendChild(Z),Q.appendChild(S)):(x&&(_.iW(L,Q),_.iW(D,Q),this.aiCompanionEnabled&&E&&_.iW(E,Q),_.iW(J,D)),_.iW(Z,Q),y&&_.iW(S,y));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.u("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.u("web_watch_enable_fs_squeezeback_panels")&&_.u("web_watch_theater_chat")){var x=_.jr(this.hostElement).querySelector("#chat-container"),L=this.theater&&!this.fullscreen||_.u("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&L?(L=_.jr(this.hostElement).querySelector("#columns"),(x==null?void 0:x.parentElement)!==L&&L.append(x),this.fixedPanels=!0):(this.fixedPanels=
!1,L=_.jr(this.hostElement).querySelector("#playlist"),x&&L?_.ft(x,L):_.qy(new _.RZ("Missing element when updating chat location",{"chatContainer defined":!!x,"playlist defined":!!L})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(x,L){return _.u("sw_metadata_vis_toggle_ks")?!0:!!x||!!L},
computeForceDarkPanelTheme:function(x){return _.u("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&x:!1},
safeUpdateStyles:function(x){try{_.uN(this.hostElement,x)}catch(L){_.qy(L)}},
videoHeightToWidthRatioChanged_:function(x,L){L&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(x){this.videoHeightToWidthRatio_=1/x},
computeIsVerticalVideo_:function(x){return x>=1},
computeIsFourThreeToSixteenNineVideo_:function(x){return x<=.7501&&x>=.5624},
computeIsExtraWideVideo_:function(x){return x<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.Ov(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.Ov(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.SUN(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(x){var L=_.Ad(x)||0;_.qB(x,L+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var x=_.Ad("yt-fullerscreen-edu-button-click-count")||0,L=_.Ad("yt-fullerscreen-edu-button-shown-count")||0,D=_.dE("external_fullscreen_button_shown_threshold"),S=x>=_.dE("external_fullscreen_button_click_threshold")||L>=D;_.Ov(this).getPlayerPromise().then(function(Q){Q.updateFullerscreenEduButtonSubtleModeState(S)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(x,L){return L},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.yY().resolve(_.d6).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var x=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.WW.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.WW.addLowPriorityJob(function(){x.fullHeightPanelPositionUpdateJobId=0;var L=_.jr(x.hostElement).querySelector("#secondary"),D=_.jr(x.hostElement).querySelector("#fixed-secondary");L=L.getBoundingClientRect();var S=L.width;x.swatcherooSqueezeback&&
(S+=_.id);if(x.swatcherooSqueezeback){var Q=_.jr(x.hostElement).querySelector("#squeezeback-constraining-container");Q.style.width=S+"px";Q.style.flex="0 0 "+S+"px"}D.style.width=S+"px";D.style.left=L.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var x=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.WW.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.WW.addLowPriorityJob(function(){x.panelMaxHeightUpdateJob_=0;var L;!x.isTwoColumns_||x.theater||x.fullscreen?L=460:L=x.calculateNormalPlayerSize_().height;var D=L+"px";_.u("live_chat_taller_height")&&!x.theater&&(D="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.u("live_chat_medium_height")&&!x.theater&&(D="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.u("live_chat_scaled_height")&&!x.theater&&(D="calc(100vh - var(--ytd-toolbar-height) - 238px)");x.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":L+"px","--ytd-watch-flexy-chat-max-height":D,"--ytd-watch-flexy-structured-description-max-height":L+"px","--ytd-watch-flexy-comments-panel-max-height":L+"px","--ytd-comments-engagement-panel-content-height":L+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(x){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",x)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.v$(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(x){var L=_.jr(this.hostElement).querySelector("#engagement-panel-scrim");x?L.addEventListener("tap",_.p$(this,this.onEngagementPanelScrimClick_)):L.removeEventListener("tap",_.p$(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(x){if(this.hostElement.contains(x)&&!this.scrollToAnimation_.isAnimating()){var L=x.offsetTop-24;x=x.offsetTop+x.offsetHeight+24;var D=this.getPageScrollingElement(),S=this.getScrollTop(),Q=S+D.clientHeight-56;if(L<S+56)L-=56;else if(x>Q)L=x-D.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,L),500)}},
onYtSignalActionScrollToComments:function(){var x=this.hostElement.querySelector("#comments");if(x&&!this.scrollToAnimation_.isAnimating()){x=x.offsetTop-56-24;if(_.u("kevlar_comment_teaser_scroll_to_midpoint")&&(x-=_.YR().height/3,x<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,x),500)}},
onYtEngagementPanelVisibleChanged:function(x,L,D){if(this.active&&this.trackEngagementPanelVisibility&&!_.f8N.includes(D)){if(L==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.P$(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var S=_.yY().resolve(_.Dk);this.visiblePanelIdentifiers_.forEach(function(Q){Q!==D&&S.hidePanel(Q)})}this.visiblePanelIdentifiers_.add(D)}L!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&L!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(D);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(x){return x?"":"watch-active-metadata"},
computeNewMetadataClass:function(x){return x?"watch-active-metadata":""},
computeIsSingleColumn:function(x,L){return L&&!x},
computeFullBleedPlayer:function(x,L,D){return _.u("external_fullscreen")&&x||L||D},
computeDefaultLayout:function(x){return!x},
computeDefaultTwoColumnLayout:function(x,L){return!x&&L},
updatePanelsLocation:function(){if(_.u("web_watch_enable_fs_squeezeback_panels")){var x=_.jr(this.hostElement).querySelector("#below"),L=_.jr(this.hostElement).querySelector("#panels"),D=_.jr(this.hostElement).querySelector("#playlist"),S=_.jr(this.hostElement).querySelector("#chat-container"),Q=_.jr(this.hostElement).querySelector("#panels-full-bleed-container"),J=_.jr(this.hostElement).querySelector("#secondary-inner"),Z=_.jr(this.hostElement).querySelector("#shopping-timely-shelf"),y=_.jr(this.hostElement).querySelector("#persistent-panel-container");
if(x&&L&&D&&S&&Q&&J&&Z&&(this.aiCompanionEnabled?y:1)){var E=this.fullscreen||this.theater&&this.iMaxTheaterMode,P=this.theater&&!this.iMaxTheaterMode&&this.liveChatPresentAndExpanded;this.fixedPanels=!1;E?(Q.appendChild(L),Q.appendChild(S),Q.appendChild(D),this.aiCompanionEnabled&&y&&Q.appendChild(y)):this.isTwoColumns_?(P?(x=_.jr(this.hostElement).querySelector("#columns"),(S==null?void 0:S.parentElement)!==x&&x.append(S),this.fixedPanels=!0,this.updatePageMediaQueries(),this.schedulePlayerSizeUpdate_()):
_.r3(J,S),_.r3(J,L),_.r3(J,D),this.aiCompanionEnabled&&y&&_.r3(J,y)):(x.appendChild(L),x.appendChild(Z),x.appendChild(S),x.appendChild(D),this.aiCompanionEnabled&&y&&x.appendChild(y))}}},
swatcherooUpdatePanelsLocation:function(x,L,D,S,Q,J){if(this.is==="ytd-watch-grid"){L=x&&!L;this.swatcherooSplitScroll&&(L?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));D=_.jr(this.hostElement).querySelector("#panels");var Z=_.jr(this.hostElement).querySelector("#playlist"),y=_.jr(this.hostElement).querySelector("#persistent-panel-container"),
E=_.jr(this.hostElement).querySelector("#fixed-secondary"),P=_.jr(this.hostElement).querySelector("#fixed-below"),v=_.jr(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),V=_.jr(this.hostElement).querySelector("#chat-container");J&&(x?(E.appendChild(D),this.aiCompanionEnabled&&y&&E.appendChild(y)):(P.appendChild(D),this.aiCompanionEnabled&&y&&P.appendChild(y)));Q?x?E.appendChild(V):P.appendChild(V):_.ft(V,v);S?x?E.appendChild(Z):P.appendChild(Z):_.ft(Z,
v);this.swatcherooSplitScroll&&(x=_.jr(this.hostElement).querySelector("#secondary"),S=_.jr(this.hostElement).querySelector("#columns"),Q=_.jr(this.hostElement).querySelector("#fixed-columns-secondary"),L?Q.appendChild(x):S.appendChild(x))}},
computeMetadataSkinnyMode:function(x,L,D){return this.is!=="ytd-watch-grid"?!1:x?D:L},
computeWatchWhilePanelsActive:function(x,L){return x||L},
computeNoBorderOnChat:function(x){return _.u("web_watch_theater_chat_no_border")&&x},
computeLiveChatPresentAndExpanded:function(x,L){return x&&!L},
computePanelExpanded:function(x,L,D){return x||L||D},
computeSqueezeback:function(x,L,D,S){if(_.u("web_watch_enable_fs_squeezeback_panels")){var Q=this.iMaxTheaterMode&&this.theater,J=this.theater&&!this.iMaxTheaterMode;return(x||L||D)&&(Q||S)||L&&J}},
computeSwatcherooSqueezeback:function(x,L,D){return this.is!=="ytd-watch-grid"||_.u("ww_squeezeback_killswitch")?!1:x&&L&&D},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(x){_.Ov(this).getPlayerPromise().then(function(L){var D;(D=L.changeMarkerVisibility)==null||D.call(L,_.g(x,_.Nz).isVisible||!1,_.g(x,_.Nz).entityKeys||[],_.g(x,_.Nz).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(x){this.liveChatCollapsed=x.detail;_.Jd().dispatch(_.iVz(x.detail));if(!this.liveChatCollapsed&&this.squeezeback){var L=_.yY().resolve(_.Dk);this.visiblePanelIdentifiers_.forEach(function(D){L.hidePanel(D)})}},
onSetPlaylistCollapsed:function(x){_.u("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!x)},
provideRenderingData:function(x,L){switch(x){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=L;break;case "PRIMARY_INFO":_.u("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=L);this.videoPrimaryInfoRendererValue=L==null?void 0:L.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.u("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=L);this.videoSecondaryInfoRendererValue=L==null?void 0:L.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
L;break;case "CLARIFICATION":this.clarifyBoxValue=L;break;case "LIVE_CHAT":this.conversationBar=L;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=L;break;case "PLAYLIST":this.externalPlaylistData_=L!=null?L:{};break;case "MERCH_SHELF":this.merchShelfValue=L==null?void 0:L.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=L;break;case "TICKET_SHELF":this.ticket=L;break;case "OFFER_MODULE":this.offerModule=L;break;case "LIMITED_STATE":this.limitedStateValue=
L;break;case "DONATION_SHELF":this.donation=L;break;case "ALERTS":this.alertsValue=L;break;case "COMMENTS":this.comments=L;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=L;break;case "ENGAGEMENT_PANELS":this.engagementPanels=L;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=L;break;case "RICH_GRID_RENDERER":this.richGridRendererData=L;break;case "EXPANDABLE_METADATA":this.expandableMetadata=L;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
L;break;case "SHOPPING_TIMELY_SHELF":this.shoppingTimelyShelfValue=L}},
toggleCinematicsActive:function(x){this.cinematicsActive=x},
isMiniplayerActive:function(){return _.yY().resolve(_.iy).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var Y8X;_.b6s=function(x){if(!(0,_.Rk4)(x))throw Error("K``"+String(x));};
_.Fm3=function(x){return x.findIndex(function(L){return Y8X.indexOf(L.tagName)>-1})>-1};
_.s8$=function(){var x=_.yY().resolve(_.aO);_.JD0(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(x.isFullscreenEnabled()?_.Zg(document.documentElement):_.rsw(document.documentElement))};
Y8X=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.cb=new Map;_.cb.set(32,59972);_.cb.set(27,50765);_.cb.set(70,60102);_.cb.set(76,60221);_.cb.set(77,60222);_.cb.set(74,60223);_.cb.set(84,60224);_.cb.set(38,61941);_.cb.set(40,61942);_.cb.set(73,62521);_.cb.set(67,62522);_.cb.set(80,63390);_.cb.set(78,63397);_.cb.set(75,59972);_.cb.set(188,63385);_.cb.set(190,63384);_.cb.set(36,63387);
_.cb.set(35,63386);_.cb.set(37,63388);_.cb.set(39,63389);_.cb.set(79,63423);_.cb.set(87,63424);_.cb.set(107,63426);_.cb.set(109,63425);_.cb.set(65,63428);_.cb.set(83,63430);_.cb.set(68,63429);_.cb.set(221,63431);_.cb.set(219,63432);_.cb.set(97,63439);_.cb.set(98,63440);_.cb.set(99,63441);_.cb.set(100,63442);_.cb.set(101,63443);_.cb.set(102,63444);_.cb.set(103,63445);_.cb.set(104,63446);_.cb.set(105,63447);_.nA=new Map;_.nA.set(80,63390);_.nA.set(78,63397);_.nA.set(188,63400);_.nA.set(190,63401);
_.nA.set(191,60765);_.nA.set(13,247917);_.tX=new Map;_.xU=new Map;
}catch(e){_._DumpException(e)}
try{
var J8W,ZHg,y8u,IN3;_.Lvl=function(x){return x.ui.guideIsVisibleButNotPersistent};
_.DwG=function(x){return x.ui.tabGesturesIsActive};
_.S2g=function(){var x=_.PY("service_worker_scope");try{return navigator.serviceWorker.getRegistration(x)}catch(L){return Promise.reject(L)}};
_.QZ9=function(x){return!(!x||!x.pushManager)};
J8W=function(){return _.S2g().then(_.QZ9).catch(function(){return!1})};
_.Kvq=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?J8W():Promise.resolve(!1)};
_.OHu=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
ZHg=function(){var x,L,D;return _.I(function(S){switch(S.nextAddress){case 1:return S.yield(_.xr.getInstance(),2);case 2:x=S.yieldResult;if(!x){L=void 0;S.jumpTo(3);break}return S.yield(x.get("lmqf"),4);case 4:L=S.yieldResult;case 3:switch((D=L)||(D="SD"),D){case "HD":return S.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return S.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return S.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return S.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return S.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
y8u=function(x){var L,D,S;return _.I(function(Q){if(Q.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.u("disable_av1_setting")){var J=window.localStorage["yt-player-av1-pref"];J=J==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":J==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else J="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(L=x===J)return Q.jumpTo(2);S=D=x;return Q.yield(ZHg(),3)}Q.nextAddress!=2&&(L=S===Q.yieldResult);return Q.return(L)})};var EQl;var MTq=_.NY.IronButtonState,dwl=(0,_.As)(HTMLElement);
_.q$({_template:function(){if(EQl!==void 0)return EQl;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;IN3===void 0&&(IN3=document.createElement("template"));var S=IN3;D.call(L,S.content.cloneNode(!0),x.content.firstChild);return EQl=x},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[MTq,_.$E,_.ih,_.a_],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(x){var L=(0,_.bv)(this);L.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:x});L.shadowRoot.appendChild(x);return dwl.prototype._attachDom.call(this,x)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var x=this.contentElement;x&&x.selectedItem&&this._setSelectedItem(x.selectedItem)},
get contentElement(){for(var x=_.G0(this.$.content).getDistributedNodes(),L=0,D=x.length;L<D;L++)if(x[L].nodeType===Node.ELEMENT_NODE)return x[L]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(x){this._setSelectedItem(x.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(x){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(x)===this&&this.open()},
_selectedItemChanged:function(x){var L="";x?L=x.label||x.getAttribute("label")||x.textContent.trim():L="";this.value=L;this._setSelectedItemLabel(L)},
_computeMenuVerticalOffset:function(x,L){return L?L:x?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var x=this.opened?"true":"false",L=this.contentElement;L&&L.setAttribute("aria-expanded",x)}});_.Be=new _.jp("navigateAction");var PjG=new _.jp("formRenderer");var We=function(){var x=_.er.apply(this,arguments)||this;x.showInput=!1;return x};
_.p(We,_.er);_.K=We.prototype;_.K.detached=function(){this.showInput&&window.removeEventListener("click",_.p$(this,this.closeOnOutsideClick_))};
_.K.stopPropagation_=function(x){this.showInput&&x.stopPropagation()};
_.K.closeOnOutsideClick_=function(x){this.closeOnOutsideClickCondition(x)&&(this.showInput=!1,window.removeEventListener("click",_.p$(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.K.closeOnOutsideClickCondition=function(){return!0};
_.K.closeOnOutsideClickHandler=function(){};
_.K.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.p$(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.K.openOnClickHandler=function(){};
_.K.showInputChanged=function(){};
_.K.setShowInput=function(x){this.showInput=x};
We.prototype.setShowInput=We.prototype.setShowInput;We.prototype.showInputChanged=We.prototype.showInputChanged;We.prototype.openOnClickHandler=We.prototype.openOnClickHandler;We.prototype.openOnClick_=We.prototype.openOnClick_;We.prototype.closeOnOutsideClickHandler=We.prototype.closeOnOutsideClickHandler;We.prototype.closeOnOutsideClickCondition=We.prototype.closeOnOutsideClickCondition;We.prototype.closeOnOutsideClick_=We.prototype.closeOnOutsideClick_;We.prototype.stopPropagation_=We.prototype.stopPropagation_;
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],We.prototype,"showInput",void 0);_.A([_.mX("click"),_.mX("keydown"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],We.prototype,"stopPropagation_",null);_.A([_.bN("showInput"),_.r("design:type",Function),_.r("design:paramtypes",[Boolean]),_.r("design:returntype")],We.prototype,"showInputChanged",null);_.A([_.RW()],We);_.jZW=[We.prototype];var vQI;var VTI;var qv=function(){return _.e.apply(this,arguments)||this};
_.p(qv,_.e);_.K=qv.prototype;_.K.computePreselectedOption=function(x,L){return L===this.itemSelected_?x:void 0};
_.K.dataChanged_=function(){var x=this;this.preselectedSubreason=this.itemSelected_=-1;var L;(L=this.data)!=null&&L.key&&_.So(this,function(){var D,S=Number((D=x.data)==null?void 0:D.key);!Number.isNaN(S)&&(x.itemSelected_=S,D=(D=(x.data.items||[])[S])&&D.optionSelectableItemRenderer&&D.optionSelectableItemRenderer.preselectedIndex)&&(x.preselectedSubreason=D)})};
_.K.isSubReasonHidden_=function(x,L){return x!=L};
_.K.onTopItemSelected_=function(x,L){for(var D=_.jr(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),S=0,Q=D.length;S<Q;S++)D[S].select(0);_.dg(this.hostElement,"yt-report-form-update",[L.item.value]);x.stopPropagation()};
_.K.onItemSelected_=function(x,L){_.dg(this.hostElement,"yt-report-form-update",[L.item.value]);x.stopPropagation()};
_.K.getItem_=function(x){return x.serviceItem?x.serviceItem:x.navigationItem?x.navigationItem:x.optionSelectableItemRenderer?x.optionSelectableItemRenderer:null};
_.K.computeText_=function(x){return(x=this.getItem_(x))?this.ytRendererBehavior.getSimpleString(x.text):null};
_.K.validate=function(){return this.itemSelected_!==-1};
_.K.computeAriaLabel_=function(x){var L=_.SR(x.text);(x=x.accessibility&&x.accessibility.accessibilityData&&x.accessibility.accessibilityData.label)&&(L+=". "+x);return L};
_.K.computeItemSelected_=function(x){return x};
_.K.preventSelection_=function(x){x.stopPropagation();this.tooltipTapped=!0};
_.K.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.K.updateItemSelectedFromBinding=function(x){this.itemSelected_=x.detail.value};
_.K.save=function(){var x;this.validate()&&(x=this.data)!=null&&x.items&&(x=this.data.items[this.itemSelected_],x!=null&&x.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(x.optionSelectableItemRenderer.submitEndpoint)||_.jq(this.hostElement,[x.optionSelectableItemRenderer.submitEndpoint])))};
qv.prototype.onPaperRippleTransitionEnd_=qv.prototype.onPaperRippleTransitionEnd_;qv.prototype.dataChanged_=qv.prototype.dataChanged_;_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],qv.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],qv.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],qv.prototype,"data",void 0);_.A([_.F({value:-1}),_.r("design:type",Number)],qv.prototype,"itemSelected_",void 0);
_.A([_.F({computed:"computeItemSelected_(itemSelected_)"}),_.r("design:type",Number)],qv.prototype,"value",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],qv.prototype,"restoreFocusOnClose",void 0);_.A([_.F({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],qv.prototype,"tooltipTapped",void 0);_.A([_.F({value:-1}),_.r("design:type",Number)],qv.prototype,"preselectedSubreason",void 0);
_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],qv.prototype,"dataChanged_",null);_.A([_.mX("transitionend"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],qv.prototype,"onPaperRippleTransitionEnd_",null);_.A([_.oW({is:"yt-options-renderer",disableElementRegistration:!0})],qv);
_.q(qv,"yt-options-renderer",function(){if(VTI===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;vQI===void 0&&(vQI=document.createElement("template"));var S=vQI;D.call(L,S.content.cloneNode(!0),x.content.firstChild);VTI=x}x=VTI;return x},{mode:2});var hhg;var HHg;var uDq;var gQu;var kU5;var pYs;var At=function(){return _.e.apply(this,arguments)||this};
_.p(At,_.e);At.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
At.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
At.prototype.onTap=function(x){if(this.hostElement.classList.contains("selected")||_.dg(this.hostElement,"yt-share-panel-can-select-contact-action")[0])x&&x.detail&&(x.detail.x||x.detail.y)&&_.jr(this.hostElement).querySelector("#target").blur(),(x=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),x={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:x?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.dg(this.hostElement,"yt-share-panel-select-contact-action",[x])};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],At.prototype,"ytRendererBehavior",void 0);_.A([_.F({observer:"onDataChanged"}),_.r("design:type",Object)],At.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.r("design:type",String)],At.prototype,"componentTitle",void 0);_.A([_.F1("#thumbnail"),_.r("design:type",Object)],At.prototype,"thumbnail",void 0);_.A([_.oW({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],At);
_.q(At,"yt-enrolled-contact-renderer",function(){if(pYs===void 0){var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;kU5===void 0&&(kU5=document.createElement("template"));var S=kU5;D.call(L,S.content.cloneNode(!0),x.content.firstChild);pYs=x}x=pYs;return x},{mode:2});var mw$;var bH5;var $C=function(){return _.e.apply(this,arguments)||this};
_.p($C,_.e);$C.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
$C.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
$C.prototype.onTap=function(x){if(this.hostElement.classList.contains("selected")||_.dg(this.hostElement,"yt-share-panel-can-select-contact-action")[0])x&&x.detail&&(x.detail.x||x.detail.y)&&_.jr(this.hostElement).querySelector("#target").blur(),(x=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),x={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:x?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.dg(this.hostElement,"yt-share-panel-select-contact-action",[x])};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],$C.prototype,"ytRendererBehavior",void 0);_.A([_.F({observer:"onDataChanged"}),_.r("design:type",Object)],$C.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.r("design:type",String)],$C.prototype,"componentTitle",void 0);_.A([_.F1("#thumbnail"),_.r("design:type",Object)],$C.prototype,"thumbnail",void 0);_.A([_.oW({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],$C);
_.q($C,"yt-suggested-contact-renderer",function(){if(bH5===void 0){var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;mw$===void 0&&(mw$=document.createElement("template"));var S=mw$;D.call(L,S.content.cloneNode(!0),x.content.firstChild);bH5=x}x=bH5;return x},{mode:2});var ro=function(){var x=_.e.apply(this,arguments)||this;x.actionMap={"yt-share-panel-reset-action":"onReset"};return x};
_.p(ro,_.e);ro.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"}}}}}};
ro.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.dg(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
ro.prototype.onReset=function(){for(var x=_.jr(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),L=x.length-1;L>=0;L--)x[L].classList.toggle("selected")};
_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],ro.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],ro.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],ro.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F({observer:"onDataChanged"}),_.r("design:type",Object)],ro.prototype,"data",void 0);
_.A([_.oW({is:"yt-contact-section-renderer",disableElementRegistration:!0})],ro);
_.q(ro,"yt-contact-section-renderer",function(){if(gQu===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;uDq===void 0&&(uDq=document.createElement("template"));var S=uDq;D.call(L,S.content.cloneNode(!0),x.content.firstChild);gQu=x}x=gQu;return x},{mode:2});var Nv=function(){var x=_.e.apply(this,arguments)||this;x.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return x};
_.p(Nv,_.e);_.K=Nv.prototype;_.K.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"}}}};
_.K.onYtRefreshFormCommand=function(x){var L;(x=_.g((L=_.g(x,_.BfH))==null?void 0:L.formRenderer,PjG))&&this.set("data",x)};
_.K.reset=function(){var x=_.jr(this.hostElement).querySelector("#fields").children;x=_.O(x);for(var L=x.next();!L.done;L=x.next())L=L.value,L.reset&&L.reset()};
_.K.getForm=function(){var x={},L=_.jr(this.hostElement).querySelector("#fields").children;L=_.O(L);for(var D=L.next();!D.done;D=L.next()){D=D.value;if(!D.validate())return null;x[D.data.key]=D.value}return x};
_.K.submitFormFields=function(){if(this.fields)for(var x=_.O(this.fields),L=x.next();!L.done;L=x.next())L=L.value,L.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?L.save():L.nodeName==="YT-OPTIONS-RENDERER"&&L.save()};
_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],Nv.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Nv.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Nv.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Nv.prototype,"data",void 0);_.A([_.sY("#fields > *"),_.r("design:type",Array)],Nv.prototype,"fields",void 0);
_.A([_.oW({is:"yt-form-renderer",disableElementRegistration:!0})],Nv);
_.q(Nv,"yt-form-renderer",function(){if(HHg===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;hhg===void 0&&(hhg=document.createElement("template"));var S=hhg;D.call(L,S.content.cloneNode(!0),x.content.firstChild);HHg=x}x=HHg;return x},{mode:2});var Y23;var i3=function(){var x=_.e.apply(this,arguments)||this;x.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return x};
_.p(i3,_.e);i3.prototype.onCheckboxChange=function(x){this.data&&(x=(this.checked=_.K$(x).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.yY().resolve(_.E2).resolveCommand(x,{form:{element:this.hostElement}})};
i3.prototype.handleUpdateCheckboxCommand=function(x){(x=_.g(x,_.Lki))&&this.data&&this.data.id===x.id&&(this.set("data.disabled",x.disabled),this.set("data.title",x.title))};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],i3.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],i3.prototype,"ytActionHandlerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],i3.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Boolean)],i3.prototype,"checked",void 0);_.A([_.w({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],i3);
_.q(i3,"ytd-settings-checkbox-renderer",function(){if(Y23!==void 0)return Y23;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return Y23=x},{mode:1});var Fvq;var fN=function(){var x=_.e.apply(this,arguments)||this;x.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return x};
_.p(fN,_.e);fN.prototype.dataChanged=function(){var x=this,L;return _.I(function(D){if(D.nextAddress==1)return x.radio.removeAttribute("checked"),!x.data||!x.data.id||x.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.OHu()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(L=x.data&&x.data.id)?D.yield(y8u(x.data.id),4):D.jumpTo(3):(x.set("data.hidden",!0),D.jumpTo(0));D.nextAddress!=3&&(L=D.yieldResult);L&&_.dg(x.hostElement,"yt-select-settings-radio-option",[x.data.id]);_.Y2(D)})};
fN.prototype.onButtonChanged=function(x){_.K$(x).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.yY().resolve(_.E2).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.dg(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
fN.prototype.onSelectOption=function(x){this.data&&this.data.id&&(this.data.id===x?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
fN.prototype.dataChanged=fN.prototype.dataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],fN.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],fN.prototype,"ytActionHandlerBehavior",void 0);_.A([_.F1("#radio"),_.r("design:type",Object)],fN.prototype,"radio",void 0);_.A([_.F(),_.r("design:type",Object)],fN.prototype,"data",void 0);
_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype",Promise)],fN.prototype,"dataChanged",null);_.A([_.w({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],fN);
_.q(fN,"ytd-settings-radio-option-renderer",function(){if(Fvq!==void 0)return Fvq;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Fvq=x},{mode:1});var sZq;var o5=function(){var x=_.e.apply(this,arguments)||this;x.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return x};
_.p(o5,_.e);
o5.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"}}}};
o5.prototype.handleUpdateTextCommand=function(x){(x=_.g(x,_.DlW))&&this.data&&this.data.id===x.id&&this.set("data",x)};
o5.prototype.handleUpdateConnectedAppRendererCommand=function(x){if(_.g(x,_.JSA)&&this.data){var L,D;if(x=(L=_.g(x,_.JSA))==null?void 0:(D=L.newConnectedAppRenderer)==null?void 0:D.connectedAppRenderer)this.data=x}};
o5.prototype.computeConnectedAppStyle=function(x){return x.style?x.style.toLowerCase().replace(/_/g,"-"):""};
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],o5.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],o5.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],o5.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],o5.prototype,"data",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.r("design:type",String)],o5.prototype,"connectedAppStyle",void 0);_.A([_.w({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],o5);
_.q(o5,"ytd-connected-app-renderer",function(){if(sZq!==void 0)return sZq;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return sZq=x},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.Bf("iuT5Oc");

_.Wf();
}catch(e){_._DumpException(e)}
try{
_.Bf("L3n37");
var Vcf=function(x){return x.watch.isLearningJourneyActive},hoi=_.VC(115994),Hh5=_.VC(115993),uE5=function(x,L,D){var S=this;
var Q=D.dragDownAction;this.layer=0;this.JSC$23200_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return S.dragDownAction()}}}};
this.JSC$23200_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return S.dragDownAction()}}}};
this.fullscreen=!1;var J=_.sk();_.W5(J,hoi,this.layer);_.W5(J,Hh5,this.layer);this.dragDownAction=function(){Q();_.XT(J,{visualElement:S.fullscreen?hoi:Hh5})};
this.gesture=new _.qd(x,L,this.getConfig(!1),"pandown");this.attach()};
uE5.prototype.attach=function(){this.gesture.attach()};
uE5.prototype.detach=function(){this.gesture.detach()};
uE5.prototype.update=function(x){this.fullscreen=x;var L=this.gesture;x=this.getConfig(x);L.config=x};
uE5.prototype.getConfig=function(x){return x?this.JSC$23200_watchFullScreenConfig:this.JSC$23200_watchConfig};var g3N=function(x){_.Xx.call(this);var L=this;this.rootElement=x;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return L.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(D){L.initOrDisposeActiveModules(D)}));
this.onAttached()};
_.p(g3N,_.Xx);_.K=g3N.prototype;_.K.getRoot=function(){return this.rootElement};
_.K.getElement=function(x){return this.rootElement.getElement(x)};
_.K.setPlayerResponse=function(x){this.playerResponse=x;this.publish("PLAYER_RESPONSE_UPDATED",x)};
_.K.getPlayerResponse=function(){return this.playerResponse};
_.K.setWatchNextResponse=function(x){this.watchNextResponse===x?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=x,this.publish("WATCH_NEXT_RESPONSE_UPDATED",x))};
_.K.getWatchNextResponse=function(){return this.watchNextResponse};
_.K.registerActionHandler=function(x,L){var D=this;if(_.u("web_watch_controller_reg_multiple_handlers_killswitch")){var S={};_.cI(_.aR.getInstance(),(S[x]=L,S),this.getRoot())}else this.actionHandlers.has(x)||(this.actionHandlers.set(x,[]),S={},_.cI(_.aR.getInstance(),(S[x]=function(){var Q=_.Ne.apply(0,arguments);return(D.actionHandlers.get(x)||[]).map(function(J){return J.apply(null,_.lP(Q))})},S),this.getRoot())),this.actionHandlers.get(x).push(L)};
_.K.unregisterActionHandler=function(x){if(_.u("web_watch_controller_reg_multiple_handlers_killswitch")){var L={};_.nV(_.aR.getInstance(),(L[x]=!0,L),this.getRoot())}else(L=this.actionHandlers.get(x))?(L.pop(),L.length===0&&(L={},_.nV(_.aR.getInstance(),(L[x]=!0,L),this.getRoot()),this.actionHandlers.delete(x))):_.qy(new _.RZ("Attempted to unregister an action handler which is not registered.",x))};
_.K.addPageDisposeJob=function(x){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.eO0(this.rootElement.pageDisposeJobs,x)};
_.K.removePageDisposeJob=function(x){this.rootElement.pageDisposeJobs&&_.$f(this.rootElement.pageDisposeJobs,x)};
_.K.dispatchEvent=function(x,L){_.MF(this.rootElement,x,L)};
_.K.provideRenderingData=function(x,L){this.rootElement.provideRenderingData(x,L)};
_.K.scrollWatchTo=function(x,L){var D;(D=this.watchScrollManager)==null||D.scrollWatchTo(x,L)};
_.K.focusOnPlayer=function(){var x=this.getElement("PLAYER");_.So(x,function(){if(x&&x.firstElementChild){var L=x.querySelector(".html5-video-player");L&&(_.Tz(_.yY().resolve(_.Rl)),L.focus())}else _.qy(Error("Wo"))})};
var kLN=function(x){var L=!!x.rootElement.theater,D=!!x.rootElement.fullscreen,S;(S=x.watchCinematicManager)==null||_.nQ5(S,D,L)};
_.K=g3N.prototype;_.K.subscribeToActiveChanged=function(x,L){L=L===void 0?!0:L;var D=_.oQ(_.Jd(),Vcf,function(S){x(S)});
L&&x(Vcf(_.Jd().getState()));return D};
_.K.isActive=function(){return Vcf(_.Jd().getState())};
_.K.onAttached=function(){var x=_.u("external_fullscreen");_.u("use_unified_flag_accessor")&&(x=_.yY().resolve(_.Z8Y).retriever.getFlag(_.W5h));(x||_.rO("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.K.initPersistentModules=function(){if(_.u("kevlar_watch_flexy_theater_manager")){var x=new _.mw8(this);_.V1(this,x)}x=new _.MVs(this);_.V1(this,x);x=new _.Gh(this);_.V1(this,x);x=new _.ZKi(this);_.V1(this,x);x=new _.BA(this);_.V1(this,x);x=new _.Cn(this);_.V1(this,x);_.u("kevlar_watch_flexy_playlist_manager")&&(x=new _.iKN(this),_.V1(this,x))};
_.K.initOrDisposeActiveModules=function(x){x?(this.watchScrollManager=new _.WA(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.FNQ(this)),this.activeModules.push(new _.YXU(this)),this.activeModules.push(new _.cE8(this)),this.activeModules.push(new _.ugU(this)),_.u("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.R1i(this)),this.activeModules.push(new _.C7U(this)),_.u("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.tVU(this)),
_.u("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.A8N(this)),_.u("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.fNz(this),this.activeModules.push(this.watchCinematicManager),kLN(this)),_.u("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.Bte(this)),_.u("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.IAs(this)),x=_.u("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.u("kevlar_watch_flexy_comments_manager")&&
!x&&this.activeModules.push(new _.SDR(this)),_.u("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.NOz(this)),this.activeModules.push(new _.GUf(this)),this.activeModules.push(new _.Ttw(this)),_.u("web_enable_timely_actions")&&this.activeModules.push(new _.wYi(this)),_.u("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.J8v(this)),_.u("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.Xdz(this)),_.u("web_fullscreen_components")&&
this.activeModules.push(new _.U9R(this)),_.u("web_player_rtr_ctrls")&&this.activeModules.push(new _.OH5(this))):(_.Jx(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.K.disposeInternal=function(){_.Xx.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.J3.Object.defineProperties(g3N.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var pve={},m65=["learning-journey-engagement-panel","PAlearning_chat"];
pve.YtdLearningJourneyWatchBehavior=[_.c.YtRendererBehavior,_.kj.YtPlayerListenerBehavior,_.GZ.YtRendererstamperBehavior,_.ir.YtActionHandlerBehavior,_.KQ.YtPageBehavior,_.NP.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 _.rO("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.u("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 _.rO("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 _.u("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.u("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.u("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 _.dE("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.dE("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 _.u("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 _.u("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.u("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 _.u("web_watch_rounded_player_large")||_.u("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 _.u("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.u("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.u("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 _.u("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.u("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:_.Fl(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.Fl(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},"data.contents.twoColumnWatchNextResults.miniplayerBar":{id:"miniplayer-bar",mapping:{miniplayerBarRenderer:"ytd-miniplayer-bar-renderer"}},microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},
singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}},learningJourneyEngagementPanels:{id:"plj-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0,learningChatEngagementPanel:!0}}}},nonLearningJourneyEngagementPanels:{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}}},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var x=this;this.watchController=void 0;this.pageDisposeJobs=[function(){x.showMetadataPlaceholder_()},
function(){_.u("web_watch_dont_clear_comments")||x.clearComments_()},
function(){x.clearPlayerAds_()},
function(){x.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setRichGridJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.u("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.u("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=
new _.zFw(function(){return _.Ov(x)},this.hostElement);
this.pageDisposeJobs.push(function(){x.youThereManager_.reset()});
_.u("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){x.resetFullerscreenEduButtonForNewPlayback_()}));
_.u("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.sF;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;_.u("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.u("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));_.u("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.p$(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(x){x&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:x}),x.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(x){_.u("kevlar_watch_flexy_theater_manager")&&(this.theater=x,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.u("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(x){!_.u("kevlar_watch_while_v2")&&!_.u("web_watch_pip")||x||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(x){this.active!==void 0&&(this.fullscreen=x,_.u("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(x){this.active!==void 0&&(_.MF(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.u("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.u("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(x>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(x){this.initCsi_();this.updatePageData_(x)},
updatePageData_:function(x){var L=this;if(x)if(this.data===x){this.onPageLoadWithSameData_();var D;(D=this.watchController)==null||D.setWatchNextResponse(this.data)}else this.data=x;this.playlist&&_.W$({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.$T("nw");this.loading=!1;_.TG(_.WW,function(){L.initDclkstatus_();var S,Q=((S=L.player)==null?void 0:S.getVideoData().cpn)||"";_.CYw(function(J,Z){_.k8q(J,Z,Q)})})},
onPageLoadWithSameData_:function(){_.u("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 x=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!x);this.set("loadingData.playlistLoading",x&&x!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),x=this.watchNextSkeletonEl_.firstElementChild;x;)x.classList.remove("hidden"),x=x.nextElementSibling;var L,D,S;x=(L=this.loadingData)==null?void 0:(D=L.endpoint)==null?void 0:(S=D.watchEndpoint)==null?void 0:S.videoId;var Q;x&&(Q="https://i.ytimg.com/vi/"+x+"/frame0.jpg");_.jr(this.hostElement).querySelector("#player").style.backgroundImage=Q?"url("+Q+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var x=_.jr(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&x&&(x.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var L,D;(D=(L=this.watchMetadata).updateSentimentBarWidth)==
null||D.call(L);var S,Q;(Q=(S=this.watchMetadata).resize)==null||Q.call(S)}_.jr(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(x){var L=_.jr(this.hostElement).querySelector(x);L?_.y0(L,!1):_.qy(new _.RZ("Overscroll monitor not found for component: ",x))},
removeSplitScrollMouseTrap:function(x){var L=_.jr(this.hostElement).querySelector(x);L?_.I8(L):_.qy(new _.RZ("Disposal component for  overscroll monitoring not found: ",x))},
onLoadingChanged_:function(x){x?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(x){var L=this;x?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.WW.addLowPriorityJob(function(){L.onWindowResized_(_.sO(!0))})},
updateTheaterModeState_:function(x){if(!_.u("kevlar_watch_flexy_theater_manager")){x=x||this.fullWindowMode_;if(this.theater!==void 0||x)this.theater=x;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();x&&_.MNe()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var x=this.theater;_.u("external_fullscreen")&&this.fullscreen&&(x=!0);x=x?_.jr(this.hostElement).querySelector("#player-full-bleed-container"):_.jr(this.hostElement).querySelector("#player-container-inner");var L=this.getPlayerContainer(),D=_.u("kevlar_watch_while_v2")||_.u("web_watch_pip");L.parentElement!==x&&(D&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.Ov(this).appendTo(x,L),x.appendChild(_.jr(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var x=this;return _.I(function(L){if(L.nextAddress==1)return L.yield(_.yY().resolve(_.iy).deactivate(),2);x.updatePlayerLocation();_.Y2(L)})},
updateCinematicsLocation:function(){var x=this.getElement("CINEMATICS");if(x){var L=this.getCinematicsLocationContainer();x.parentElement!==L&&L.appendChild(x);var D;(D=this.watchController)==null||kLN(D)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.jr(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.jr(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(x,L){var D=document.documentElement.hasAttribute("dark"),S=D&&_.u("web_cinematic_theater_mode"),Q=D&&_.u("web_cinematic_fullscreen");D=!D&&this.cinematicLightTheme;return x&&S||L&&Q||(L||x)&&D},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var x;(x=this.watchController)==null||x.setWatchNextResponse(this.data);_.u("kevlar_watch_flexy_comments_manager")||this.initComments_();_.u("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.yY().resolve(_.d6).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.u("web_watch_start_chat_in_theater_mode")){var L,
D,S;if((L=this.data)==null?0:(D=L.contents)==null?0:(S=D.twoColumnWatchNextResults)==null?0:S.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var Q,J;((Q=this.data)==null?0:(J=Q.contents)==null?0:J.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(x){var L;(L=this.watchController)==null||L.setPlayerResponse(this.playerData);x&&x.playabilityStatus&&(L=this.isVideoPlayable_(x.playabilityStatus,this.getPlayerOverlays_(this.data)),x=this.isLiveStreamOffline_(x.playabilityStatus),L&&!x||_.So(this,function(){_.$T("pbu")}));
this.setPlayerAds_();_.P$(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(x){_.Jd().dispatch(_.MU({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));x?this.activate_():this.deactivate_()},
attached:function(){var x=this;this.watchController=new g3N(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.u("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var L=_.Ov(this);_.u("kevlar_disable_prepare_player")||L.preparePlayer();_.u("kevlar_watch_flexy_playlist_manager")||_.yY().resolve(_.d6).setPlayer(L);this.updatePageMediaQueries();L={"--ytd-watch-flexy-scrollbar-width":_.ma()+
"px"};!_.dE("kv_pl_mx_sz_ks")&&_.dE("kevlar_watch_max_player_width")&&(L["--ytd-watch-flexy-max-player-width-wide-screen"]=_.LoR+"px");_.dE("kevlar_watch_flexy_metadata_height")&&(L["--ytd-watch-flexy-space-below-player"]=_.Dpi+"px");this.safeUpdateStyles(L);_.u("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new uE5(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return x.onPlayerTouchPanDown_()}}));
_.u("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.jr(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var x=_.ma(),L=_.fc+x,D=L;this.fixedPanels&&(L+=_.xp5);var S=657+x;x=1327+x;_.jr(this.hostElement).querySelector("#two-column-query").query="(min-width: "+L+"px)";_.jr(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(S+"px), (min-height: 630px) and (min-width: ")+(L+"px) and (max-width: ")+(x+"px)");_.jr(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(x+"px)");
_.jr(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+D+"px)"},
calculateCurrentPlayerSize_:function(){var x=_.jr(this.hostElement).querySelector("#miniplayer-bar").firstChild;return x&&x.active||this.theater||_.u("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.b8(NaN,NaN):_.WSN(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.WSN(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.Q1(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var x=this;this.onWindowResized_(_.sO());_.u("browse_skeleton_removal_on_watch_killswitch")||_.rO("IS_SHELL_LOAD")&&_.iP3();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var L=_.Ov(this);L.addEventListener("yt-player-updated",_.p$(this,this.onPlayerUpdated_));L.getPlayerPromise().then(function(D){x.playerApiReady_(D)});
_.u("kevlar_watch_flexy_playlist_manager")||(L=_.yY().resolve(_.d6),_.u("kevlar_watch_observe_playlist_navigations_killswitch")&&L.addEventListener("yt-navigate",_.p$(this,this.onYtNavigate_)),L.setPlaylistComponent(_.jr(this.hostElement).querySelector("#playlist")),L.addEventListener("yt-playlist-data-updated",_.p$(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.WW.addLowPriorityJob(function(){_.MF(x.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.Ov(this).removeEventListener("yt-player-updated",_.p$(this,this.onPlayerUpdated_));if(!_.u("kevlar_watch_flexy_playlist_manager")){var x=_.yY().resolve(_.d6);_.u("kevlar_watch_observe_playlist_navigations_killswitch")&&x.removeEventListener("yt-navigate",_.p$(this,this.onYtNavigate_));x.cancelVideoSkip();x.removeEventListener("yt-playlist-data-updated",_.p$(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.u("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.MF(this.hostElement,"yt-autonav-pause-player",!1);x=_.O8();_.u("kevlar_exit_fullscreen_leaving_watch")&&x&&_.Zg(x)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(x){this.player&&this.player.updateVideoData({rvs:x.rvs})},
getPageContents:function(x){return x&&x.contents&&x.contents.twoColumnWatchNextResults&&x.contents.twoColumnWatchNextResults.results&&x.contents.twoColumnWatchNextResults.results.results.contents},
getClarifyBox:function(){return this.clarifyBoxValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(x){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",x)},
onRetrieveLocation_:function(x,L){L.hasComments?L.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):L.locationRetrieved("/related_ajax",void 0);x.stopPropagation()},
onSubscriptionChanged_:function(x,L){this.player&&(L?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.xz$("learning_journey_watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.jr(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.jr(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(x){this.player=x;this.setPlayerState(x.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.u("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.u("kevlar_unified_player")||_.u("kevlar_player_new_bootstrap_adoption"))&&_.aS()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(x,L){L=L===void 0?!0:L;_.O8()&&_.u("external_fullscreen")&&_.Zg(document.documentElement);this.theaterRequested_=x;L&&_.FD("wide",x?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.u("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.dg(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.MF(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(x){_.A7(x,typeof this.player),this.player&&_.A7(x,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var x;((x=this.player)==null?0:x.isFullscreen())?this.player.toggleFullscreen():_.dg(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(x,L){return this.loading?L:!!Object.keys(x).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(x){if(x){x=_.O(x);for(var L=x.next();!L.done;L=x.next())L=L.value,L.youThereRenderer&&_.nZs(this.youThereManager_,L.youThereRenderer)}},
setPlaylistData_:function(x){return x||{}},
userEngagementConfigDataChanged_:function(x){if(x)if(x.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var L=this.youThereManager_;_.Z8()<x.lowEngagementThresholdMs||_.D6Q(L,!0)}else x.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.dg(this.hostElement,"yt-autonav-pause-user-engagement",[x])},
isPlayerUnavailable_:function(x,L,D){return!!x&&!this.isVideoPlayable_(x,D)&&!L},
getPlayerOverlays_:function(x){return(x==null?void 0:x.playerOverlays)||null},
isVideoPlayable_:function(x,L){if(!x)return!1;var D=x.status==="OK"||x.status==="LIVE_STREAM_OFFLINE",S=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",x)||this.get("errorScreen.ypcTrailerRenderer",x);x=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",x);var Q;L=L==null?void 0:(Q=L.playerOverlayRenderer)==null?void 0:Q.gatedActionsOverlayRenderer;return!!D||!!S||!!x||!!L},
hasWatchNextResponseErrorRenderer:function(x){var L=this.getPageContents(x),D,S,Q,J,Z;return!(x==null?0:(D=x.contents)==null?0:(S=D.twoColumnWatchNextResults)==null?0:S.secondaryResults)&&!!((Q=L[0])==null?0:(J=Q.itemSectionRenderer)==null?0:(Z=J.contents[0])==null?0:Z.backgroundPromoRenderer)},
isLiveStreamOffline_:function(x){return x?x.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(x,L,D){var S=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",L),Q=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];Q=_.u("web_no_skip_video_on_verification_checks")?(x==null?void 0:x.status)&&Q.includes(x.status):x&&x.status==="AGE_CHECK_REQUIRED";var J=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",x);J==void 0&&(J=!0);!D||this.isVideoPlayable_(x,this.getPlayerOverlays_(L))||
S||Q||!J||_.yY().resolve(_.d6).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.A7Q()},
onPlayerFeedbackStartRequest_:function(x){_.dg(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:x}])},
onPlayerFeedbackArticleRequest_:function(x){_.dg(this.hostElement,"yt-help-dialog-requested",[x])},
onPlayerYpcContentRequest_:function(){var x,L,D,S,Q,J,Z,y,E=((x=this.data)==null?NaN:(L=x.contents)==null?NaN:(D=L.twoColumnWatchNextResults)==null?NaN:(S=D.secondaryResults)==null?NaN:(Q=S.secondaryResults)==null?NaN:(J=Q.offerModule)==null?NaN:(Z=J.tvfilmOfferModuleRenderer)==null?NaN:(y=Z.actionButtons)==null?NaN:y.length)-1;x=[".offerButton.buttonRenderer.",".actionButtons."+(E>=0?E:0)+".buttonRenderer."];L=_.O(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(D=L.next();!D.done;D=L.next())for(D=D.value,S=_.O(x),Q=S.next();!Q.done;Q=S.next())if(Q="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+D+Q.value,Q=this.get(Q+"navigationEndpoint",this.data)||this.get(Q+"serviceEndpoint",this.data)||this.get(Q+"command",this.data)){_.mA(Q,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(x){_.MF(this.hostElement,"yt-autonav-pause-player",x)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(x){x()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(x){switch(x){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(x){switch(x){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.MF(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(x)},
setPlayerState:function(x){_.Jd().dispatch(_.re_(x))},
onPlayerSubscribe_:function(x){_.dg(this.hostElement,"yt-player-subscribe",[x])},
onPlayerUnsubscribe_:function(x){_.dg(this.hostElement,"yt-player-unsubscribe",[x])},
onPlayerAdYtShowToast_:function(x){_.dg(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:x.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(x){if(x)return x},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(x){return!_.u("web_watch_move_summary_to_sd")&&!!x},
computeWatchMetadataRefresh:function(){return _.u("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var x,L,D,S;this.watchNextSecondaryResults=(x=this.data)==null?void 0:(L=x.contents)==null?void 0:(D=L.twoColumnWatchNextResults)==null?void 0:(S=D.secondaryResults)==null?void 0:S.secondaryResults}},
setRichGridRendererData:function(x){this.richGridRendererData=x},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var x,L=(x=this.data)==null?void 0:x.engagementPanels;if(L==null?0:L.length){x=null;L=_.O(L);for(var D=L.next();!D.done;D=L.next()){D=D.value;var S=void 0;if(((S=D.engagementPanelSectionListRenderer)==null?void 0:S.targetId)==="engagement-panel-structured-description"){x=D;break}}var Q,J,Z;x=(Q=x)==null?void 0:(J=Q.engagementPanelSectionListRenderer)==null?void 0:(Z=J.content)==null?void 0:Z.structuredDescriptionContentRenderer;if(x==null?0:x.items){Q=
[];J=_.O(x.items);for(Z=J.next();!Z.done;Z=J.next()){Z=Z.value;if(!_.u("sd_horizontal_list_show_nav_killswitch")){var y=S=D=L=x=void 0,E=void 0,P=(x=Z.horizontalCardListRenderer)==null?void 0:(L=x.header)==null?void 0:(D=L.richListHeaderRenderer)==null?void 0:(S=D.navigationButton)==null?void 0:(y=S.buttonRenderer)==null?void 0:(E=y.command)==null?void 0:E.commandExecutorCommand;P&&P.commands&&(P.commands=P.commands.filter(function(v){return!_.g(v,_.v2N)}))}Z.expandableVideoDescriptionBodyRenderer||
Z.videoDescriptionHeaderRenderer||Q.push(Z)}return{items:Q}}}},
constructWarning_:function(x){return{text:_.Dv(x),type:"WARNING"}},
isPlaShelfEnabled_:function(x){if((this.get("adPlacements",x)||[]).length)return!0;x=this.get("playerAds",x)||[];return!(!x.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",x[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var x=this;_.MF(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.u("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var L=this.getScrollTop()>0;this.gestures_&&(L?this.gestures_.detach():this.gestures_.attach());L!==this.showFullerscreenEdu_&&_.u("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=L,_.Ov(this).getPlayerPromise().then(function(D){D.updateFullerscreenEduButtonVisibility(x.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.MF(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var x=this;this.commentsReady=!1;_.WW.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.TG(_.WW,function(){x.setComments_()},1E3)},
setComments_:function(){if(!_.u("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.$T("cmi");_.WW.cancelJob(this.setCommentsJobId_);var x=this.getPageContents(this.data);if(x&&x.length){x=_.O(x);for(var L=x.next();!L.done;L=x.next())if(L=L.value,this.get("itemSectionRenderer.sectionIdentifier",L)==="comment-item-section"){this.comments=L.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.MF(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.u("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.u("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.$T("cmc")},
doRemoveComments_:function(){this.comments={};_.u("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.WW.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.WW.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(x,L){var D=_.g(L.endpoint,_.L6);D&&(!(L=this.get("data.currentVideoEndpoint.watchEndpoint"))||D.videoId!==L.videoId||D.playlistId&&D.playlistId!==L.playlistId||D.index!==void 0&&D.index!==L.index||typeof D.startTimeSeconds!=="number"||(x.stopPropagation(),this.setScrollTop(0),_.Ov(this).getPlayerPromise().then(function(S){var Q=D.startTimeSeconds;S.seekTo(Q);S.wakeUpControls();Q<S.getDuration()&&S.playVideo()})))},
updatePlayerStartTime_:function(){var x=_.myU();"t"in x&&(x=_.qhR(x.t),this.player.seekTo(x,!0))},
updateTitleFromWatchNext:function(x){x=this.getPageContents(x);var L,D;(x=_.SR(x==null?void 0:(L=x[0])==null?void 0:(D=L.videoPrimaryInfoRenderer)==null?void 0:D.title))&&_.MF(this.hostElement,"yt-update-title",x)},
updateTitle_:function(x){x=this.get("videoDetails.title",x)||"";_.MF(this.hostElement,"yt-update-title",x)},
syncWithRemoteVideo_:function(x,L,D){if(this.active&&this.player){var S=this.player.getVideoData();if(S.video_id===D&&(D=S.list,_.u("polymer_enable_mdx_queue")&&D&&D.startsWith("RQ")&&(D=void 0),S.video_id!==x||D!=L)){var Q;_.u("kevlar_player_watch_endpoint_navigation")?Q=_.RIO(_.l8U(x,L)):Q=this.buildWatchEndpoint_(x,L);_.MF(this.hostElement,"yt-navigate",{endpoint:Q,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(x,L,D){return _.Zo(x,L,D)},
initDclkstatus_:function(){_.Bzw()},
attachWatchPageSkeleton_:function(){var x=document.querySelector("#watch-page-skeleton");if(x){var L=x.querySelector("#primary-info"),D=x.querySelector("#secondary-info"),S=x.querySelector("#related");L&&_.jr(this.hostElement).querySelector("#info-skeleton").appendChild(L);D&&_.jr(this.hostElement).querySelector("#meta-skeleton").appendChild(D);S&&(_.jr(this.hostElement).querySelector("#related-skeleton").appendChild(S),this.watchNextSkeletonEl_=S);_.mg(x)}},
handlePlayerUpdated_:function(){_.Ov(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(x,L){if(this.watchNextSkeletonEl_&&typeof L!=="undefined"){var D=this.watchNextSkeletonEl_.children,S=x&&x.indexSplices.length?x.indexSplices[0].index:0;x=Math.min(this.watchNextShownItems.length,D.length);L||(S=0,x=D.length);for(L=S;L<x;L++)D[L].classList.add("hidden")}},
onPlayerFullscreenChange_:function(x){_.u("external_fullscreen")||_.dg(this.hostElement,"yt-player-fullscreen",[x.fullscreen])},
onFullscreenChange_:function(x){this.fullscreen=x;this.gestures_&&this.gestures_.update(this.fullscreen);var L=_.Ov(this);L.getPlayerPromise().then(function(D){D.setFauxFullscreen(!!_.O8())});
this.updateFullBleedElementLocations();x&&(L.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(x,L){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!L},
computeIsDonationShelfCollapsed_:function(x){return x},
computeShouldShowMerchShelf:function(x,L){return L&&!!x},
computeResponseHasComments:function(x){var L,D,S,Q,J;return!!(x==null?0:(L=x.contents)==null?0:(D=L.twoColumnWatchNextResults)==null?0:(S=D.results)==null?0:(Q=S.results)==null?0:(J=Q.contents)==null?0:J.some(function(Z){var y;return(Z==null?void 0:(y=Z.itemSectionRenderer)==null?void 0:y.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(x,L){this.responseHasComments=this.computeResponseHasComments(this.data);return!!x&&!!Object.keys(x).length&&!L},
identity:_.B4,onWindowResized_:function(x){this.windowSize_=x;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.u("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.u("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(x){var L=this;x&&x.type!=="dataloaded"&&x.type!=="dataupdated"||_.Ov(this).getPlayerPromise().then(function(D){var S=D.getPlayerState();S!==5&&S!==0&&(D=1/D.getVideoAspectRatio(),L.videoHeightToWidthRatio_!==D&&(L.videoHeightToWidthRatio_=D))})},
schedulePlayerSizeUpdate_:function(x){var L=this,D=_.u("kevlar_watch_while_v2")||_.u("web_watch_pip"),S=function(){if(L.watchMetadata){var Q,J;(J=(Q=L.watchMetadata).resize)==null||J.call(Q)}_.Ov(L).getPlayerPromise().then(function(Z){if(_.u("kevlar_set_internal_player_size")){if(!D||!L.isMiniplayerActive()){var y=L.calculateCurrentPlayerSize_();Z.setInternalSize(y.width,y.height)}}else Z.setSize(NaN,NaN);_.u("kevlar_watch_while")&&L.updateWatchWhileScrollThreshold_()})};
x?S():_.VG(_.WW,S)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(x){this.set("data.survey",x.detail)},
onYtShowSurveyCommand_:function(x){this.set("data.survey",_.g(x,_.a8z).survey)},
onDownloadedVideoDeleted:function(x){var L=this,D,S;return _.I(function(Q){if(Q.nextAddress==1){if(!L.active||(D=L.playerData)==null||!D.offlineState||L.videoId!==x)return Q.return();(S=L.player)==null||S.stopVideo();_.ie().navigatingAwayFromWatchDeletedVideo=!0;_.mA(_.ea0,L.hostElement);return Q.yield(_.ie().navigationFinishPromise,2)}_.ie().navigatingAwayFromWatchDeletedVideo=!1;_.Y2(Q)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var x;this.theater?x=_.BF(.5625*this.windowSize_.width,480,this.windowSize_.height-185):x=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==x&&(this.watchWhileScrollThreshold_=x,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var x=_.jr(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&x){var L=this.windowSize_.height>=624,D=this.active?this.getScrollTop():0;!x.active&&L&&D>=this.watchWhileScrollThreshold_?(x.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):x.active&&(!L||D<this.watchWhileScrollThreshold_&&!_.O8())&&(x.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(x,L){if(x!==!0||L!==void 0){x=!_.u("live_chat_over_engagement_panels");L=_.jr(this.hostElement).querySelector("#chat-container");var D=_.jr(this.hostElement).querySelector("#plj-sidebar"),S=_.jr(this.hostElement).querySelector("#panels"),Q=_.jr(this.hostElement).querySelector("#plj-panels"),J=_.jr(this.hostElement).querySelector("#plj-playlist"),Z=_.jr(this.hostElement).querySelector("#alerts"),y=_.jr(this.hostElement).querySelector("#playlist"),E=_.jr(this.hostElement).querySelector("#related"),
P=_.jr(this.hostElement).querySelector("#donation-shelf"),v=_.jr(this.hostElement).querySelector("#comments");this.isTwoColumns_?(Z=_.jr(this.hostElement).querySelector("#secondary-inner"),Z.appendChild(D),D.appendChild(J),J.appendChild(y),D.appendChild(Q),x&&Z.appendChild(S),_.u("web_watch_theater_chat")||Z.appendChild(L),x||Z.appendChild(S),Z.appendChild(P),Z.appendChild(E)):(x&&_.iW(S,Z),_.iW(y,Z),_.u("web_watch_theater_chat")||_.iW(L,Z),x||_.iW(S,Z),_.iW(P,Z),v&&(Q&&_.iW(Q,v),_.iW(E,v)));_.u("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.u("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.u("web_watch_theater_chat")){var x=_.jr(this.hostElement).querySelector("#chat-container"),L=this.theater&&!this.fullscreen||_.u("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&L?_.u("web_watch_theater_chat_beside_player")?(L=_.jr(this.hostElement).querySelector("#panels-full-bleed-container"),(x==null?void 0:x.parentElement)!==L&&L.append(x),this.panelsBesidePlayer=!0):_.u("web_watch_theater_fixed_chat")&&
(L=_.jr(this.hostElement).querySelector("#columns"),(x==null?void 0:x.parentElement)!==L&&L.append(x),this.fixedPanels=!0):(_.u("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.u("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),L=_.jr(this.hostElement).querySelector("#playlist"),x&&L?_.ft(x,L):_.qy(new _.RZ("Missing element when updating chat location",{"chatContainer defined":!!x,"playlist defined":!!L})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(x,L){return _.u("sw_metadata_vis_toggle_ks")?!0:!!x||!!L},
computeForceDarkPanelTheme:function(x){return _.u("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&x:!1},
safeUpdateStyles:function(x){try{_.uN(this.hostElement,x)}catch(L){_.qy(L)}},
videoHeightToWidthRatioChanged_:function(x,L){L&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.u("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(x){this.videoHeightToWidthRatio_=1/x},
computeIsVerticalVideo_:function(x){return x>=1},
computeIsFourThreeToSixteenNineVideo_:function(x){return x<=.7501&&x>=.5624},
computeIsExtraWideVideo_:function(x){return x<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.Ov(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.Ov(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.SUN(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(x){var L=_.Ad(x)||0;_.qB(x,L+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var x=_.Ad("yt-fullerscreen-edu-button-click-count")||0,L=_.Ad("yt-fullerscreen-edu-button-shown-count")||0,D=_.dE("external_fullscreen_button_shown_threshold"),S=x>=_.dE("external_fullscreen_button_click_threshold")||L>=D;_.Ov(this).getPlayerPromise().then(function(Q){Q.updateFullerscreenEduButtonSubtleModeState(S)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(x,L){return L},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.yY().resolve(_.d6).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var x=this;this.panelMaxHeightUpdateJob_&&_.WW.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.WW.addLowPriorityJob(function(){x.panelMaxHeightUpdateJob_=0;var L;!x.isTwoColumns_||x.theater||x.fullscreen?L=460:L=x.calculateNormalPlayerSize_().height;var D=L+"px";_.u("live_chat_taller_height")&&!x.theater&&(D="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.u("live_chat_medium_height")&&
!x.theater&&(D="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.u("live_chat_scaled_height")&&!x.theater&&(D="calc(100vh - var(--ytd-toolbar-height) - 238px)");x.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":L+"px","--ytd-watch-flexy-chat-max-height":D,"--ytd-watch-flexy-structured-description-max-height":L+"px","--ytd-watch-flexy-comments-panel-max-height":L+"px","--ytd-comments-engagement-panel-content-height":L+"px"})})},
onYtShowEngagementPanelScrimAction_:function(x){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",x)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.v$(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(x){var L=_.jr(this.hostElement).querySelector("#engagement-panel-scrim");x?L.addEventListener("tap",_.p$(this,this.onEngagementPanelScrimClick_)):L.removeEventListener("tap",_.p$(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(x){if(this.hostElement.contains(x)&&!this.scrollToAnimation_.isAnimating()){var L=x.offsetTop-24;x=x.offsetTop+x.offsetHeight+24;var D=this.getPageScrollingElement(),S=this.getScrollTop(),Q=S+D.clientHeight-56;if(L<S+56)L-=56;else if(x>Q)L=x-D.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,L),500)}},
onYtSignalActionScrollToComments:function(){var x=this.hostElement.querySelector("#comments");if(x&&!this.scrollToAnimation_.isAnimating()){x=x.offsetTop-56-24;if(_.u("kevlar_comment_teaser_scroll_to_midpoint")&&(x-=_.YR().height/3,x<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,x),500)}},
onYtEngagementPanelVisibleChanged:function(x,L,D){this.active&&this.trackEngagementPanelVisibility&&!_.f8N.includes(D)&&(L==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(D),L!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&L!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(D),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(x){return x?"":"watch-active-metadata"},
computeNewMetadataClass:function(x){return x?"watch-active-metadata":""},
computeFullBleedPlayer:function(x,L){return x||L},
computeDefaultLayout:function(x){return!x},
computeDefaultTwoColumnLayout:function(x,L){return!x&&L},
computeWatchWhilePanelsActive:function(x,L){return x||L},
computeNoBorderOnChat:function(x){return _.u("web_watch_theater_chat_no_border")&&x},
computeLiveChatPresentAndExpanded:function(x,L){return x&&!L},
computePanelExpanded:function(x,L,D){return x||L||D},
onChangeMarkersVisibility:function(x){_.Ov(this).getPlayerPromise().then(function(L){var D;(D=L.changeMarkerVisibility)==null||D.call(L,_.g(x,_.Nz).isVisible||!1,_.g(x,_.Nz).entityKeys||[],_.g(x,_.Nz).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(x){this.liveChatCollapsed=x.detail;_.Jd().dispatch(_.iVz(x.detail))},
provideRenderingData:function(x,L){switch(x){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=L;break;case "PRIMARY_INFO":_.u("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=L);this.videoPrimaryInfoRendererValue=L==null?void 0:L.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.u("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=L);this.videoSecondaryInfoRendererValue=L==null?void 0:L.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
L;break;case "CLARIFICATION":this.clarifyBoxValue=L;break;case "LIVE_CHAT":this.conversationBar=L;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=L;break;case "PLAYLIST":this.externalPlaylistData_=L!=null?L:{};break;case "MERCH_SHELF":this.merchShelfValue=L==null?void 0:L.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=L;break;case "OFFER_MODULE":this.offerModule=L;break;case "LIMITED_STATE":this.limitedStateValue=L;break;case "DONATION_SHELF":this.donation=L;break;
case "ALERTS":this.alertsValue=L;break;case "COMMENTS":this.comments=L;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=L;break;case "ENGAGEMENT_PANELS":this.engagementPanels=L;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=L;break;case "RICH_GRID_RENDERER":this.richGridRendererData=L;break;case "EXPANDABLE_METADATA":this.expandableMetadata=L;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=L}},
toggleCinematicsActive:function(x){this.cinematicsActive=x},
isMiniplayerActive:function(){return _.yY().resolve(_.iy).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(x){return m65.map(function(L){return x.find(function(D){var S;return(D==null?void 0:(S=D.engagementPanelSectionListRenderer)==null?void 0:S.targetId)===L})}).filter(function(L){return L!==void 0})},
getNonLearningJourneyEngagementPanels:function(x){return x.filter(function(L){var D;return!m65.includes((L==null?void 0:(D=L.engagementPanelSectionListRenderer)==null?void 0:D.targetId)||"")})}}];var bhf;var tC=function(){var x=_.e.apply(this,arguments)||this;x.flexy=!0;x.learningJourney=!0;x.viewTransitionEnabled=_.u("enable_player_resize_transition");x.smallerChatMinHeight=_.u("live_chat_smaller_min_height");x.cinematicTheaterMode=_.u("web_cinematic_theater_mode");x.transparentTheaterMode=_.u("web_transparent_theater_mode");x.cinematicFullscreen=_.u("web_cinematic_fullscreen");x.cinematicFullscreenV2=_.u("web_cinematic_fullscreen_v2");x.isDarkTheme=document.documentElement.hasAttribute("dark");
x.theaterLargerPlayer=_.u("web_watch_theater_larger_player");x.defaultCollapsePlaylist=_.u("web_watch_default_collapse_playlist");x.enableCanvasLayout=_.u("web_enable_canvas_on_learning_journey");return x};
_.p(tC,_.e);_.K=tC.prototype;_.K.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.K.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.K.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.K.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.K.ready=function(){var x=this,L=function(){x.onColumnScroll()};
this.primary.addEventListener("scroll",L);this.secondary.addEventListener("scroll",L)};
_.K.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.K.updateIsTwoColumnsFromBinding=function(x){_.u("web_watch_update_narrow_width_killswitch")||_.Jd().dispatch(_.IEU(!x.detail.value));this.ytdWatchBehavior.isTwoColumns_=x.detail.value};
_.K.updateFlexySmallWindowFromBinding=function(x){this.ytdWatchBehavior.flexySmallWindow_=x.detail.value};
_.K.updateFlexyLargeWindowFromBinding=function(x){this.ytdWatchBehavior.flexyLargeWindow_=x.detail.value};
_.K.updateWatchWhileWindowSizeSufficientFromBinding=function(x){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=x.detail.value};
_.K.updateWatchNextCanShowMoreFromBinding=function(x){this.ytdWatchBehavior.watchNextCanShowMore=x.detail.value};
_.K.updateShownItemsFromBinding=function(x){x.detail.path?this.set(x.detail.path,x.detail.value):this.ytdWatchBehavior.watchNextShownItems=x.detail.value};
_.K.getElement=function(x){switch(x){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23209_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23209_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.J3.Object.defineProperties(tC.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 x;if((x=this.data)==null||!x.pageVisualEffects)return!1;for(var L=0;L<this.data.pageVisualEffects.length;L++)if(x=_.g(this.data.pageVisualEffects[L],_.SX))return L=void 0,(L=x.config)==null?void 0:L.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.learningJourneyEngagementPanels)==null?void 0:x.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var x,L=(x=this.learningJourneyEngagementPanels)==null?void 0:x.find(function(h){var H;return(h==null?void 0:(H=h.engagementPanelSectionListRenderer)==null?void 0:H.panelIdentifier)==="learning-journey-engagement-panel"});
if(L){var D,S,Q,J,Z,y,E,P,v;if(x=(P=((E=(Z=((J=L==null?void 0:(D=L.engagementPanelSectionListRenderer)==null?void 0:(S=D.content)==null?void 0:(Q=S.sectionListRenderer)==null?void 0:Q.contents)!=null?J:[])[0])==null?void 0:(y=Z.itemSectionRenderer)==null?void 0:y.contents)!=null?E:[])[0])==null?void 0:(v=P.accordionViewModel)==null?void 0:v.onTitleTap){var V=_.fI(x);if(V)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.pI.instance.resolveCommand(V)}}}}}}});
_.J3.Object.defineProperties(tC,{template:{configurable:!0,enumerable:!0,get:function(){if(bhf===void 0){var x=document.createElement("template");_.m(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-learning-journey--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-learning-journey">\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-learning-journey"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="secondary" class="style-scope ytd-watch-learning-journey">\n    <div id="secondary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="plj-sidebar" class="style-scope ytd-watch-learning-journey">\n        <div id="plj-playlist" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="plj-panels" class="style-scope ytd-watch-learning-journey"></div>\n      </div>\n      <div id="panels" class="style-scope ytd-watch-learning-journey">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-learning-journey">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-learning-journey"></div>\n      <div id="chat-container" class="style-scope ytd-watch-learning-journey">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-learning-journey">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-learning-journey">\n        <div id="player-ads" class="style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="primary" class="style-scope ytd-watch-learning-journey">\n    <div id="primary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="watch-content" hidden="[[!showWatchResponse]]" class="style-scope ytd-watch-learning-journey">\n        <div id="player" class="style-scope ytd-watch-learning-journey">\n          <div id="cinematics-container" class="style-scope ytd-watch-learning-journey">\n            <div id="cinematics" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n          <div id="player-container-outer" class="style-scope ytd-watch-learning-journey">\n            <div id="player-container-inner" class="style-scope ytd-watch-learning-journey">\n              <div id="player-container" role="complementary" class="style-scope ytd-watch-learning-journey">\n                <ytd-player id="ytd-plj-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_LEARNING_JOURNEY_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\n                </ytd-player>\n              </div>\n            </div>\n            <div id="player-button-overlays" class="style-scope ytd-watch-learning-journey">\n              <yt-button-shape data="[[backButtonData]]" hidden$="[[!backButtonData]]" icon-name="x_cairo" class="style-scope ytd-watch-learning-journey">\n            </yt-button-shape></div>\n          </div>\n          <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-learning-journey">\n          </yt-playability-error-supported-renderers>\n        </div>\n        <div id="below" class="style-scope ytd-watch-learning-journey">\n          <div id="alerts" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="messages" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="clarify-box" class="attached-message style-scope ytd-watch-learning-journey"></div>\n          <div id="limited-state" class="attached-message style-scope ytd-watch-learning-journey"></div>\n          <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-learning-journey" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-learning-journey="" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n          </ytd-watch-metadata>\n          <div class$="[[legacyMetadataClass]] style-scope ytd-watch-learning-journey">\n            <div id="info" class="style-scope ytd-watch-learning-journey">\n              <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n              <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n            </div>\n            <div id="meta" class="style-scope ytd-watch-learning-journey">\n              <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n              <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n            </div>\n          </div>\n          <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-learning-journey"></div>\n          \n          <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-learning-journey">\n            <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey">\n            </ytd-merch-shelf-renderer>\n          </template>\n          <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-comments>\n        </div>\n      </div>\n      <div id="browse-content" hidden="[[!showBrowseResponse]]" class="style-scope ytd-watch-learning-journey">\n        <ytd-two-column-browse-results-renderer id="ytd-plj-browse" data="[[browseData.contents.twoColumnBrowseResultsRenderer]]" class="style-scope ytd-watch-learning-journey"></ytd-two-column-browse-results-renderer>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-learning-journey"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-learning-journey"></div>\n');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);bhf=x}x=bhf;return x}}});
tC.prototype.updateMiniplayerIsActiveValue=tC.prototype.updateMiniplayerIsActiveValue;tC.prototype.updateScrollTopValue=tC.prototype.updateScrollTopValue;tC.prototype.updateFullscreenValue=tC.prototype.updateFullscreenValue;tC.prototype.updateTheaterValue=tC.prototype.updateTheaterValue;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],tC.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],tC.prototype,"ytComponentBehavior",void 0);
_.A([_.b(pve.YtdLearningJourneyWatchBehavior),_.r("design:type",Object)],tC.prototype,"ytdWatchBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],tC.prototype,"ytdReduxBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],tC.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],tC.prototype,"playerData",void 0);_.A([_.F(),_.r("design:type",Object)],tC.prototype,"browseData",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],tC.prototype,"flexy",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],tC.prototype,"learningJourney",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],tC.prototype,"viewTransitionEnabled",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],tC.prototype,"smallerChatMinHeight",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],tC.prototype,"cinematicTheaterMode",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],tC.prototype,"transparentTheaterMode",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],tC.prototype,"cinematicFullscreen",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],tC.prototype,"cinematicFullscreenV2",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],tC.prototype,"isDarkTheme",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],tC.prototype,"theaterLargerPlayer",void 0);_.A([_.F(),_.r("design:type",Object)],tC.prototype,"defaultCollapsePlaylist",void 0);_.A([_.F(),_.r("design:type",Object)],tC.prototype,"enableCanvasLayout",void 0);_.A([_.F({reflectToAttribute:!0}),_.Y("playerData","browseData","enableCanvasLayout"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],tC.prototype,"showBrowseResponse",null);
_.A([_.F({reflectToAttribute:!0}),_.Y("playerData","enableCanvasLayout"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],tC.prototype,"showWatchResponse",null);_.A([_.F({selector:_.$O}),_.r("design:type",Object)],tC.prototype,"theaterValue",void 0);_.A([_.F({selector:_.rF}),_.r("design:type",Object)],tC.prototype,"fullscreenValue",void 0);_.A([_.F({selector:_.qD}),_.r("design:type",Object)],tC.prototype,"scrollTopValue",void 0);
_.A([_.F({selector:_.$N}),_.r("design:type",Object)],tC.prototype,"miniplayerIsActiveValue",void 0);_.A([_.F1("#ytd-plj-player"),_.r("design:type",HTMLElement)],tC.prototype,"ytdPlayer",void 0);_.A([_.F1("#playlist"),_.r("design:type",HTMLElement)],tC.prototype,"JSC$23209_ytdPlaylistPanelRenderer",void 0);_.A([_.zt("ytd-comments"),_.r("design:type",HTMLElement)],tC.prototype,"ytdComments",void 0);_.A([_.F1("#primary"),_.r("design:type",HTMLElement)],tC.prototype,"primary",void 0);
_.A([_.F1("#secondary"),_.r("design:type",HTMLElement)],tC.prototype,"secondary",void 0);_.A([_.F1("#player-container"),_.r("design:type",HTMLElement)],tC.prototype,"playerContainer",void 0);_.A([_.F1("#cinematics"),_.r("design:type",HTMLElement)],tC.prototype,"JSC$23209_cinematics",void 0);_.A([_.bN("theaterValue"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],tC.prototype,"updateTheaterValue",null);
_.A([_.bN("fullscreenValue"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],tC.prototype,"updateFullscreenValue",null);_.A([_.bN("scrollTopValue"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],tC.prototype,"updateScrollTopValue",null);_.A([_.bN("miniplayerIsActiveValue"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],tC.prototype,"updateMiniplayerIsActiveValue",null);
_.A([_.F({reflectToAttribute:!0}),_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],tC.prototype,"cinematicLightTheme",null);_.A([_.F({reflectToAttribute:!0}),_.Y("learningJourneyEngagementPanels"),_.r("design:type",Object),_.r("design:paramtypes",[])],tC.prototype,"hasLearningJourneyPanels",null);_.A([_.Y("learningJourneyEngagementPanels"),_.r("design:type",Object),_.r("design:paramtypes",[])],tC.prototype,"backButtonData",null);_.A([_.w({is:"ytd-watch-learning-journey"})],tC);_.Wy.registerService(_.CRG,tC);
_.Wf();
}catch(e){_._DumpException(e)}
try{
_.Bf("Tm0L3c");
var McN;var d68;var PvU=function(){return _.e.apply(this,arguments)||this};
_.p(PvU,_.e);_.A([_.w({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],PvU);
_.q(PvU,"ytd-ghost-comments-renderer",function(){if(d68===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);d68=x}x=d68;return x},{mode:1});var jHw;var v3w=function(){return _.e.apply(this,arguments)||this};
_.p(v3w,_.e);_.A([_.w({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],v3w);
_.q(v3w,"ytd-ghost-watch-metadata-renderer",function(){if(jHw===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);jHw=x}x=jHw;return x},{mode:1});var nn=function(){var x=_.e.apply(this,arguments)||this;x.ghostGridRenderer={rows:6};x.smallerChatMinHeight=_.u("live_chat_smaller_min_height");x.cinematicTheaterMode=_.u("web_cinematic_theater_mode");x.transparentTheaterMode=_.u("web_transparent_theater_mode");x.darkerPanels=_.u("web_watch_darker_panels");x.cinematicFullscreen=_.u("web_cinematic_fullscreen");x.cinematicFullscreenV2=_.u("web_cinematic_fullscreen_v2");x.isDarkTheme=document.documentElement.hasAttribute("dark");return x};
_.p(nn,_.e);_.K=nn.prototype;_.K.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.K.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.K.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.K.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.K.ready=function(){var x=this,L=function(){x.onColumnScroll()};
this.primary.addEventListener("scroll",L);this.secondary.addEventListener("scroll",L)};
_.K.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.K.updateIsTwoColumnsFromBinding=function(x){this.ytdWatchBehavior.isTwoColumns_=x.detail.value};
_.K.updateFlexySmallWindowFromBinding=function(x){this.ytdWatchBehavior.flexySmallWindow_=x.detail.value};
_.K.updateFlexyLargeWindowFromBinding=function(x){this.ytdWatchBehavior.flexyLargeWindow_=x.detail.value};
_.K.updateWatchWhileWindowSizeSufficientFromBinding=function(x){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=x.detail.value};
_.K.updateWatchNextCanShowMoreFromBinding=function(x){this.ytdWatchBehavior.watchNextCanShowMore=x.detail.value};
_.K.updateShownItemsFromBinding=function(x){_.u("swatcheroo_direct_use_rich_grid")||(x.detail.path?this.set(x.detail.path,x.detail.value):this.ytdWatchBehavior.watchNextShownItems=x.detail.value)};
_.K.getElement=function(x){switch(x){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23197_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23197_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.J3.Object.defineProperties(nn.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var x;if((x=this.data)==null||!x.pageVisualEffects)return!1;for(var L=0;L<this.data.pageVisualEffects.length;L++)if(x=_.g(this.data.pageVisualEffects[L],_.SX))return L=void 0,(L=x.config)==null?void 0:L.enableInLightTheme;return!1}}});
nn.prototype.updateMiniplayerIsActiveValue=nn.prototype.updateMiniplayerIsActiveValue;nn.prototype.updateScrollTopValue=nn.prototype.updateScrollTopValue;nn.prototype.updateFullscreenValue=nn.prototype.updateFullscreenValue;nn.prototype.updateTheaterValue=nn.prototype.updateTheaterValue;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],nn.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],nn.prototype,"ytComponentBehavior",void 0);
_.A([_.b(_.I5z.YtdWatchBehavior),_.r("design:type",Object)],nn.prototype,"ytdWatchBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],nn.prototype,"ytdReduxBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],nn.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],nn.prototype,"ghostGridRenderer",void 0);_.A([_.F(),_.r("design:type",Object)],nn.prototype,"playerData",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],nn.prototype,"smallerChatMinHeight",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],nn.prototype,"cinematicTheaterMode",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],nn.prototype,"transparentTheaterMode",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],nn.prototype,"darkerPanels",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],nn.prototype,"cinematicFullscreen",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],nn.prototype,"cinematicFullscreenV2",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],nn.prototype,"isDarkTheme",void 0);_.A([_.F({selector:_.$O}),_.r("design:type",Object)],nn.prototype,"theaterValue",void 0);_.A([_.F({selector:_.rF}),_.r("design:type",Object)],nn.prototype,"fullscreenValue",void 0);_.A([_.F({selector:_.qD}),_.r("design:type",Object)],nn.prototype,"scrollTopValue",void 0);
_.A([_.F({selector:_.$N}),_.r("design:type",Object)],nn.prototype,"miniplayerIsActiveValue",void 0);_.A([_.F1("#ytd-player"),_.r("design:type",HTMLElement)],nn.prototype,"ytdPlayer",void 0);_.A([_.F1("#playlist"),_.r("design:type",HTMLElement)],nn.prototype,"JSC$23197_ytdPlaylistPanelRenderer",void 0);_.A([_.F1("#ytd-comments"),_.r("design:type",HTMLElement)],nn.prototype,"ytdComments",void 0);_.A([_.F1("#primary"),_.r("design:type",HTMLElement)],nn.prototype,"primary",void 0);
_.A([_.F1("#secondary"),_.r("design:type",HTMLElement)],nn.prototype,"secondary",void 0);_.A([_.F1("#player-container"),_.r("design:type",HTMLElement)],nn.prototype,"playerContainer",void 0);_.A([_.F1("#cinematics"),_.r("design:type",HTMLElement)],nn.prototype,"JSC$23197_cinematics",void 0);_.A([_.bN("theaterValue"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],nn.prototype,"updateTheaterValue",null);
_.A([_.bN("fullscreenValue"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],nn.prototype,"updateFullscreenValue",null);_.A([_.bN("scrollTopValue"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],nn.prototype,"updateScrollTopValue",null);_.A([_.bN("miniplayerIsActiveValue"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],nn.prototype,"updateMiniplayerIsActiveValue",null);
_.A([_.F({reflectToAttribute:!0}),_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],nn.prototype,"cinematicLightTheme",null);
_.q(nn,"ytd-watch-grid",function(){if(McN===void 0){var x=document.createElement("template");_.m(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-grid--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-grid"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-grid"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-grid"></div>\n\n<div id="player-full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-grid">\n  </div>\n  <div id="squeezeback-constraining-container" hidden="[[!squeezeback]]" class="style-scope ytd-watch-grid"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-grid"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="primary" class="style-scope ytd-watch-grid">\n    <div id="primary-inner" class="style-scope ytd-watch-grid">\n      <div id="player" class="style-scope ytd-watch-grid">\n        <div id="cinematics-container" class="style-scope ytd-watch-grid">\n          <div id="cinematics" class="style-scope ytd-watch-grid"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-grid">\n          <div id="player-container-inner" class="style-scope ytd-watch-grid">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-grid">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-grid">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-grid">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-grid">\n        <div id="fixed-below" class="style-scope ytd-watch-grid"></div>\n        <div id="bottom-grid" class="style-scope ytd-watch-grid">\n          <ytd-rich-grid-renderer continuation-show-button="[[showRichGridContinuationButton]]" data="[[richGridRendererData]]" disable-upgrade$="[[!richGridRendererData]]" hidden="[[!richGridRendererData]]" hide-chips-bar="" is-watch-default-layout="[[defaultTwoColumnLayout]]" item-max-width="[[richItemMaxWidth]]" item-min-width="[[richItemMinWidth]]" reduced-bottom-margin="" row-reduced-horizontal-margin="" transparent-background-chips-bar="" class="style-scope ytd-watch-grid">\n          </ytd-rich-grid-renderer>\n          <ytd-ghost-grid-renderer data="[[ghostGridRenderer]]" hidden="[[richGridRendererData]]" is-watch-next="" rich-item-min-width="[[richItemMinWidth]]" class="style-scope ytd-watch-grid"></ytd-ghost-grid-renderer>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="secondary" class="style-scope ytd-watch-grid">\n    <div id="fixed-secondary" class="style-scope ytd-watch-grid">\n      <div id="panels" class="style-scope ytd-watch-grid">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-engagement-panels>\n      </div>\n      <div id="chat-container" class="style-scope ytd-watch-grid">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-grid">\n          <ytd-live-chat-frame id="chat" data="[[conversationBar]]" class="style-scope ytd-watch-grid">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n    </div>\n    <div id="secondary-inner" class="style-scope ytd-watch-grid">\n        <ytd-watch-metadata clarify-box="[[clarifyBox]]" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" hidden="[[!videoPrimaryInfoRenderer]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" player-ads="[[playerAds]]" playlist="[[playlist]]" skinny-mode="[[metadataSkinnyMode]]" swatcheroo-enable-double-metadata="[[swatcherooUseDoubleMetadata]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-metadata>\n        <ytd-ghost-watch-metadata-renderer hidden="[[hasMetadata]]" class="style-scope ytd-watch-grid"></ytd-ghost-watch-metadata-renderer>\n        <div id="inline-panels" class="style-scope ytd-watch-grid"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-grid"></div>\n        <div id="alerts" class="style-scope ytd-watch-grid"></div>\n        <div id="messages" class="style-scope ytd-watch-grid"></div>\n        <div id="related" class="style-scope ytd-watch-grid">\n          <div id="player-ads" class="style-scope ytd-watch-grid"></div>\n          <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n        </div>\n        <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[!playlistPanelExpanded]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" meta-panel="[[swatcherooSplitScroll]]" class="style-scope ytd-watch-grid">\n        </ytd-playlist-panel-renderer>\n        <div id="expandable-metadata" hidden="[[!expandableMetadata]]" class="style-scope ytd-watch-grid"></div>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-grid" hidden="">\n          <div id="info" class="style-scope ytd-watch-grid">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-grid">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n        </div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-grid"></div>\n      <div id="offer-module" class="style-scope ytd-watch-grid"></div>\n      <div id="donation-shelf" class="style-scope ytd-watch-grid"></div>\n      <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-grid"></div>\n      \n      <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-grid">\n        <ytd-merch-shelf-renderer data="[[merchShelf]]" meta-panel="[[swatcherooSplitScroll]]" skinny-mode="[[isTwoColumns_]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid">\n        </ytd-merch-shelf-renderer>\n      </template>\n      <ytd-ghost-comments-renderer hidden="[[comments]]" class="style-scope ytd-watch-grid"></ytd-ghost-comments-renderer>\n      <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat, commentsEntryPointHeaderRenderer)]]" hide-panel-button="[[!defaultTwoColumnLayout]]" is-watch-grid="" class="style-scope ytd-watch-grid">\n      </ytd-comments>\n    </div>\n  </div>\n</div>\n<div id="fixed-columns-secondary" hidden="[[!swatcherooSplitScroll]]" class="style-scope ytd-watch-grid"> </div>\n\n<div id="survey" class="style-scope ytd-watch-grid"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-grid"></div>\n');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);McN=x}x=McN;return x},{mode:2});_.Wy.registerService(_.G5h,nn);
_.Wf();
}catch(e){_._DumpException(e)}
try{
_.Bf("CF909");
var E3U;var cA=function(){var x=_.e.apply(this,arguments)||this;x.viewTransitionEnabled=_.u("enable_player_resize_transition");x.smallerChatMinHeight=_.u("live_chat_smaller_min_height");x.cinematicTheaterMode=_.u("web_cinematic_theater_mode");x.transparentTheaterMode=_.u("web_transparent_theater_mode");x.cinematicFullscreen=_.u("web_cinematic_fullscreen");x.isDarkTheme=document.documentElement.hasAttribute("dark");x.defaultCollapsePlaylist=_.u("web_watch_default_collapse_playlist");x.retroModeReduxValue=
!1;x.persistentPanelVisibleValue=!1;return x};
_.p(cA,_.e);_.K=cA.prototype;_.K.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.K.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.K.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.K.updateRetroModeReduxValue=function(){_.u("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.K.updatePersistentPanelVisibleValue=function(){_.u("enable_ai_companion")&&(this.ytdWatchBehavior.persistentPanelVisible=this.persistentPanelVisibleValue)};
_.K.ready=function(){var x=this,L=function(){x.onColumnScroll()};
this.primary.addEventListener("scroll",L);this.secondary.addEventListener("scroll",L)};
_.K.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.K.updateIsTwoColumnsFromBinding=function(x){_.u("web_watch_update_narrow_width_killswitch")||_.Jd().dispatch(_.IEU(!x.detail.value));this.ytdWatchBehavior.isTwoColumns_=x.detail.value};
_.K.updateFlexySmallWindowFromBinding=function(x){this.ytdWatchBehavior.flexySmallWindow_=x.detail.value};
_.K.updateFlexyLargeWindowFromBinding=function(x){this.ytdWatchBehavior.flexyLargeWindow_=x.detail.value};
_.K.updateWatchWhileWindowSizeSufficientFromBinding=function(x){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=x.detail.value};
_.K.updateWatchNextCanShowMoreFromBinding=function(x){this.ytdWatchBehavior.watchNextCanShowMore=x.detail.value};
_.K.updateShownItemsFromBinding=function(x){x.detail.path?this.set(x.detail.path,x.detail.value):this.ytdWatchBehavior.watchNextShownItems=x.detail.value};
_.K.getElement=function(x){switch(x){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23192_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23192_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}};
_.J3.Object.defineProperties(cA.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var x;if((x=this.data)==null||!x.pageVisualEffects)return!1;for(var L=0;L<this.data.pageVisualEffects.length;L++)if(x=_.g(this.data.pageVisualEffects[L],_.SX))return L=void 0,(L=x.config)==null?void 0:L.enableInLightTheme;return!1}}});
_.J3.Object.defineProperties(cA,{template:{configurable:!0,enumerable:!0,get:function(){if(E3U===void 0){var x=document.createElement("template");_.m(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-flexy--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-flexy"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-flexy"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-flexy">\n    <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n      <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n    </div>\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-flexy"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="primary" class="style-scope ytd-watch-flexy">\n    <div id="primary-inner" class="style-scope ytd-watch-flexy">\n      <div id="player" class="style-scope ytd-watch-flexy">\n        <div id="cinematics-container" class="style-scope ytd-watch-flexy">\n          <div id="cinematics" class="style-scope ytd-watch-flexy"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-flexy">\n          <div id="player-container-inner" class="style-scope ytd-watch-flexy">\n            <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n              <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n            </div>\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-flexy">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-flexy">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-flexy">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-flexy">\n        <div id="alerts" class="style-scope ytd-watch-flexy"></div>\n        <div id="messages" class="style-scope ytd-watch-flexy"></div>\n        <div id="shopping-timely-shelf" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-flexy"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-flexy" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-flexy="" merch-shelf="[[merchShelfInSd]]" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-flexy">\n          <div id="info" class="style-scope ytd-watch-flexy">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-flexy">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-flexy"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-flexy"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-flexy">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-flexy">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n\n  <div id="secondary" class="style-scope ytd-watch-flexy">\n    <div id="secondary-inner" class="style-scope ytd-watch-flexy">\n      <div id="panels" class="style-scope ytd-watch-flexy">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-flexy">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-flexy">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-flexy"></div>\n      <div id="chat-container" class="style-scope ytd-watch-flexy">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-flexy">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-flexy">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-flexy">\n        <div id="player-ads" class="style-scope ytd-watch-flexy"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-flexy">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n      </div>\n      <div id="persistent-panel-container" class="style-scope ytd-watch-flexy"></div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-flexy"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-flexy"></div>\n');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);E3U=x}x=E3U;return x}}});
cA.prototype.updatePersistentPanelVisibleValue=cA.prototype.updatePersistentPanelVisibleValue;cA.prototype.updateRetroModeReduxValue=cA.prototype.updateRetroModeReduxValue;cA.prototype.updateScrollTopValue=cA.prototype.updateScrollTopValue;cA.prototype.updateFullscreenValue=cA.prototype.updateFullscreenValue;cA.prototype.updateTheaterValue=cA.prototype.updateTheaterValue;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],cA.prototype,"ytRendererBehavior",void 0);
_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],cA.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.I5z.YtdWatchBehavior),_.r("design:type",Object)],cA.prototype,"ytdWatchBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],cA.prototype,"ytdReduxBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],cA.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],cA.prototype,"playerData",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],cA.prototype,"viewTransitionEnabled",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],cA.prototype,"smallerChatMinHeight",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],cA.prototype,"cinematicTheaterMode",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],cA.prototype,"transparentTheaterMode",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],cA.prototype,"cinematicFullscreen",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],cA.prototype,"isDarkTheme",void 0);_.A([_.F(),_.r("design:type",Object)],cA.prototype,"defaultCollapsePlaylist",void 0);_.A([_.F({selector:_.$O}),_.r("design:type",Object)],cA.prototype,"theaterValue",void 0);_.A([_.F({selector:_.rF}),_.r("design:type",Object)],cA.prototype,"fullscreenValue",void 0);
_.A([_.F({selector:_.qD}),_.r("design:type",Object)],cA.prototype,"scrollTopValue",void 0);_.A([_.F({selector:_.$N}),_.r("design:type",Object)],cA.prototype,"miniplayerIsActive",void 0);_.A([_.F({selector:function(x){return x.watch.isWatchRetroMode}}),
_.r("design:type",Object)],cA.prototype,"retroModeReduxValue",void 0);_.A([_.F({selector:_.aB.persistentPanelVisibleSelector}),_.r("design:type",Object)],cA.prototype,"persistentPanelVisibleValue",void 0);_.A([_.zt("ytd-player"),_.r("design:type",HTMLElement)],cA.prototype,"ytdPlayer",void 0);_.A([_.F1("#playlist"),_.r("design:type",HTMLElement)],cA.prototype,"JSC$23192_ytdPlaylistPanelRenderer",void 0);_.A([_.zt("ytd-comments"),_.r("design:type",HTMLElement)],cA.prototype,"ytdComments",void 0);
_.A([_.F1("#primary"),_.r("design:type",HTMLElement)],cA.prototype,"primary",void 0);_.A([_.F1("#secondary"),_.r("design:type",HTMLElement)],cA.prototype,"secondary",void 0);_.A([_.F1("#player-container"),_.r("design:type",HTMLElement)],cA.prototype,"playerContainer",void 0);_.A([_.F1("#below"),_.r("design:type",HTMLElement)],cA.prototype,"below",void 0);_.A([_.F1("#cinematics"),_.r("design:type",HTMLElement)],cA.prototype,"JSC$23192_cinematics",void 0);
_.A([_.F1("#persistent-panel-container"),_.r("design:type",HTMLElement)],cA.prototype,"persistentPanelContainer",void 0);_.A([_.bN("theaterValue"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],cA.prototype,"updateTheaterValue",null);_.A([_.bN("fullscreenValue"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],cA.prototype,"updateFullscreenValue",null);
_.A([_.bN("scrollTopValue"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],cA.prototype,"updateScrollTopValue",null);_.A([_.bN("retroModeReduxValue"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],cA.prototype,"updateRetroModeReduxValue",null);_.A([_.bN("persistentPanelVisibleValue"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],cA.prototype,"updatePersistentPanelVisibleValue",null);
_.A([_.F({reflectToAttribute:!0}),_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],cA.prototype,"cinematicLightTheme",null);_.A([_.w({is:"ytd-watch-flexy"})],cA);_.Wy.registerService(_.RHG,cA);
_.Wf();
}catch(e){_._DumpException(e)}
try{
_.Bf("nmfa2d");
var pIz;var $J=function(){var x=_.e.apply(this,arguments)||this;x.hidden=!1;x.errorScreen=null;x.playlistData={};return x};
_.p($J,_.e);_.K=$J.prototype;_.K.getPlayer=function(){return this.ytdPlayer};
_.K.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:_.Fl(["aa","eocs"])}}};
_.K.onActiveChanged=function(){_.Jd().dispatch(_.ShN(this.ytPageBehavior.active))};
_.K.playerDataChanged=function(){var x;(x=this.watchController)==null||x.setPlayerResponse(this.playerData)};
_.K.dataChanged=function(){var x;(x=this.watchController)==null||x.setWatchNextResponse(this.data)};
_.K.sizeChanged=function(){var x,L;(L=(x=this.metadata).resize)==null||L.call(x)};
_.K.attached=function(){this.watchController=new _.qz(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.K.detached=function(){_.Q1(this.watchController);this.watchController=void 0};
_.K.getPlayerContainer=function(){return this.playerContainer};
_.K.getElement=function(x){switch(x){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.playlistPanel}};
_.K.provideRenderingData=function(x,L){switch(x){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=L;break;case "ERROR_SCREEN":this.errorScreen=L!=null?L:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=L;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=L;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=L;break;case "RICH_METADATA":this.richMetadataRowContainer=L;break;case "CLARIFICATION":this.clarificationData=L;break;case "PLAYLIST":this.playlistData=
L!=null?L:{};break;case "MERCH_SHELF":this.merchShelf=L;break;case "TICKET_SHELF":this.ticketShelf=L;break;case "LIMITED_STATE":this.limitedState=L;break;case "DONATION_SHELF":this.donationShelf=L;break;case "ALERTS":this.alerts=L}};
_.J3.Object.defineProperties($J.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var x,L,D;return!this.hidden&&!!((x=this.data)==null?0:(L=x.contents)==null?0:(D=L.twoColumnWatchNextResults)==null?0:D.conversationBar)}}});
$J.prototype.sizeChanged=$J.prototype.sizeChanged;$J.prototype.dataChanged=$J.prototype.dataChanged;$J.prototype.playerDataChanged=$J.prototype.playerDataChanged;$J.prototype.onActiveChanged=$J.prototype.onActiveChanged;_.A([_.b(_.KQ.YtPageBehavior),_.r("design:type",Object)],$J.prototype,"ytPageBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],$J.prototype,"ytComponentBehavior",void 0);
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],$J.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],$J.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],$J.prototype,"ytdReduxBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],$J.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],$J.prototype,"playerData",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],$J.prototype,"hidden",void 0);_.A([_.F1("#ytd-player"),_.r("design:type",HTMLElement)],$J.prototype,"ytdPlayer",void 0);_.A([_.F1("#player-container"),_.r("design:type",HTMLElement)],$J.prototype,"playerContainer",void 0);_.A([_.F1("#metadata"),_.r("design:type",Object)],$J.prototype,"metadata",void 0);_.A([_.F1("#playlist"),_.r("design:type",HTMLElement)],$J.prototype,"playlistPanel",void 0);
_.A([_.F({selector:_.IfN,reflectToAttribute:!0}),_.r("design:type",Object)],$J.prototype,"fixie",void 0);_.A([_.F({selector:_.ywR,reflectToAttribute:!0}),_.r("design:type",Object)],$J.prototype,"singleColumn",void 0);_.A([_.F({selector:function(x){return _.$O(x)&&!_.rF(x)},
reflectToAttribute:!0}),_.r("design:type",Object)],$J.prototype,"theater",void 0);_.A([_.F({selector:_.rF,reflectToAttribute:!0}),_.r("design:type",Object)],$J.prototype,"fullscreen",void 0);_.A([_.F({selector:_.xyN}),_.r("design:type",Object)],$J.prototype,"windowSize",void 0);_.A([_.F(),_.r("design:type",Object)],$J.prototype,"singleColumnContents",void 0);_.A([_.F(),_.r("design:type",Object)],$J.prototype,"errorScreen",void 0);_.A([_.F(),_.r("design:type",Object)],$J.prototype,"playlistData",void 0);
_.A([_.F(),_.r("design:type",Object)],$J.prototype,"videoPrimaryInfoRenderer",void 0);_.A([_.F(),_.r("design:type",Object)],$J.prototype,"videoSecondaryInfoRenderer",void 0);_.A([_.F(),_.r("design:type",Object)],$J.prototype,"richMetadataRowContainer",void 0);_.A([_.F(),_.r("design:type",Object)],$J.prototype,"clarificationData",void 0);_.A([_.F(),_.r("design:type",Object)],$J.prototype,"commentsEntryPointHeaderRenderer",void 0);_.A([_.F(),_.r("design:type",Object)],$J.prototype,"ticketShelf",void 0);
_.A([_.F(),_.r("design:type",Object)],$J.prototype,"merchShelf",void 0);_.A([_.F(),_.r("design:type",Object)],$J.prototype,"donationShelf",void 0);_.A([_.F(),_.r("design:type",Object)],$J.prototype,"limitedState",void 0);_.A([_.F(),_.r("design:type",Object)],$J.prototype,"alerts",void 0);_.A([_.Y("playlistData"),_.r("design:type",Object),_.r("design:paramtypes",[])],$J.prototype,"hasPlaylistData",null);
_.A([_.Y("data","hidden"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],$J.prototype,"hasChat",null);_.A([_.bN("active"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],$J.prototype,"onActiveChanged",null);_.A([_.bN("playerData"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],$J.prototype,"playerDataChanged",null);
_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],$J.prototype,"dataChanged",null);_.A([_.bN("windowSize","singleColumn"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],$J.prototype,"sizeChanged",null);
_.q($J,"ytd-watch-fixie",function(){if(pIz===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);pIz=x}x=pIz;return x},{mode:1});_.Wy.registerService(_.eHh,$J);
_.Wf();
}catch(e){_._DumpException(e)}
try{
_.Bf("xwEKAe");
var crs=function(x){return _.D8(x)?x.getAttribute("jsname")==="coFSxe":!1},nHQ=function(x,L){L.id||(L.id="ow"+_.zN(L));
x.setAttribute("jsowner",L.id);x.__owner=L;var D=_.rk(L,crs);D&&(_.t7_.has(D)||_.t7_.set(D,[]),_.t7_.get(D).push(x));(D=_.nZ2.get(L))||_.nZ2.set(L,D=[]);D.includes(x)||D.push(x);L.setAttribute("__IS_OWNER",!0)},tW5=function(){var x=_.Ugf(1);
x=_.Os(x,_.$gn);if(!(_.lA3(x)||x[_.vT4]&&!x.__hasBeenSet))return x.value},xqw=function(x){var L=_.FI();
if(L.getFlag(202))L=L.getFlag(201);else{var D;L=(x==null?void 0:(D=x.config)==null?void 0:D.settingOnByDefault)!==void 0?x.config.settingOnByDefault:!_.u("web_shorts_cinematics_disabled_by_default")}return L},L3Q=function(x){var L=_.FI();
_.s8(0,201,x);_.s8(0,202,!0);L.save()},DqN=function(x){return(x=_.XQs(x))?_.nmh(x):0},SuQ=function(x){return x.shorts.isSmallScreenSqueezeback},QIR=function(x){return x.shorts.isPlaybackStarted},OlU=function(x){var L=_.Ugf(2),D=new Set;
_.wH(function(){return void D.forEach(function(S){return void S()})});
return function(S){var Q=_.Kq(L);try{var J=J5i(K3N(x),S);D.add(J);return function(){J();D.delete(J)}}finally{_.Kq(Q)}}},Zlw=function(x){var L=x.children;
var D=x.root;_.UX(function(){var S=OlU(D)(L);_.wH(S)});
return document.createTextNode("")},J5i=function(x,L){var D=y5U(x);
(x=tW5())&&nHQ(D,x);_.VN.setUp();L=_.O(_.q34(L,!0));x=L.next().value;var S=L.next().value;L=_.O(x);for(x=L.next();!x.done;x=L.next())D.appendChild(x.value);_.VN.log(D);_.VN.tearDown();return function(){S();D.remove()}},K3N=function(x){if(typeof x==="string")return x=document.querySelector(x),_.b6s(x),x;
if(_.M9(x)&&x.nodeType===Node.ELEMENT_NODE)return x;if(!x.__value&&!x.__optional){var L=_.hDp.USE_ELEMENT_NOT_ASSIGNED(x.__expectedTagName);x.__hasErrored=!0;throw L;}return x.value},y5U=function(x){var L=document.createElementNS(x.namespaceURI,x.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");
return x.appendChild(L)},IYw=function(x,L,D,S){x=L-x;
D=S-D;return Math.sqrt(x*x+D*D)},EXs=function(x,L){x&&_.yY().resolve(_.E2).resolveCommand(x,{forceClickLogging:!0,
form:{element:L}})},MGR=function(x,L,D,S){x=L-x;
D=S-D;return Math.sqrt(x*x+D*D)},dqU=function(x,L){x&&_.yY().resolve(_.E2).resolveCommand(x,{forceClickLogging:!0,
form:{element:L}})},Pqs=function(){return _.yY().resolve(_.aO).dismissedIndices},jIv=function(x,L){var D,S,Q,J,Z,y,E,P,v;
return _.I(function(V){if(V.nextAddress==1){D=_.yY().resolve(_.W3s);J=(S=D)==null?void 0:(Q=S.reelWatchEndpointMap)==null?void 0:Q.reelWatchSequence;y=(Z=x.innertubeTransportService)!=null?Z:_.yY().resolve(_.i1);if(!J)return V.jumpTo(2);E=J();return(P=E.JSC$13119_getRequest(L,{}))?V.yield(_.MI(y,P.innerTubeRequest,P.input,L.clickTrackingParams,P.config),4):V.jumpTo(2)}return V.nextAddress!=2?(v=V.yieldResult,V.return(v)):V.return(void 0)})},vXv=function(x){return _.MU({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:x}})},VGs=function(x){return _.MU({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:x}})},hlw=function(x){return _.MU({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:x}})};var pc=function(x,L){if(x instanceof pc)this.array_=x.array_;else{var D;if(D=_.Nf(x))a:{for(var S=D=0;S<x.length;S++){if(!_.Nf(x[S])||D>0&&x[S].length!=D){D=!1;break a}for(var Q=0;Q<x[S].length;Q++)if(typeof x[S][Q]!=="number"){D=!1;break a}D==0&&(D=x[S].length)}D=D!=0}if(D)this.array_=_.r0(x);else if(x instanceof _.b8)this.array_=HlN(x.height,x.width);else if(typeof x==="number"&&typeof L==="number"&&x>0&&L>0)this.array_=HlN(x,L);else throw Error("Jo");}this.size_=new _.b8(this.array_[0].length,
this.array_.length)},u9N=function(x,L,D){for(var S=0;S<x.getSize().height;S++)for(var Q=0;Q<x.getSize().width;Q++)L.call(D,x.array_[S][Q],S,Q,x)},gXN=function(x,L){var D=new pc(x.getSize());
u9N(x,function(S,Q,J){D.array_[Q][J]=L.call(void 0,S,Q,J,x)});
return D},HlN=function(x,L){for(var D=[],S=0;S<x;S++){D[S]=[];
for(var Q=0;Q<L;Q++)D[S][Q]=0}return D};
pc.prototype.add=function(x){if(!_.pCi(this.size_,x.getSize()))throw Error("Ko");return gXN(this,function(L,D,S){return L+x.array_[D][S]})};
pc.prototype.equals=function(x,L){if(this.size_.width!=x.size_.width||this.size_.height!=x.size_.height)return!1;L=L||0;for(var D=0;D<this.size_.height;D++)for(var S=0;S<this.size_.width;S++)if(!_.kBs(this.array_[D][S],x.array_[D][S],L))return!1;return!0};
pc.prototype.getSize=function(){return this.size_};
var m6=function(x,L,D){return L>=0&&L<x.size_.height&&D>=0&&D<x.size_.width?x.array_[L][D]:null};
pc.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var kgi=function(x,L,D,S){if(!(L>=0&&L<x.size_.height&&D>=0&&D<x.size_.width))throw Error("Lo`"+L+"`"+D+"`"+x.size_.height+"`"+x.size_.width);x.array_[L][D]=S};
pc.prototype.multiply=function(x){if(x instanceof pc){if(this.size_.width!=x.getSize().height)throw Error("Mo");return ps8(this,x)}if(typeof x==="number")return mqz(this,x);throw Error("No");};
var ps8=function(x,L){var D=new pc(x.size_.height,L.getSize().width);u9N(D,function(S,Q,J){for(var Z=S=0;Z<this.size_.width;Z++)S+=m6(this,Q,Z)*m6(L,Z,J);kgi(D,Q,J,S)},x);
return D},mqz=function(x,L){return gXN(x,function(D){return D*L})};var bli=new _.jp("inlineSurveyRenderer");var Yus=new _.jp("interstitialViewModel");var F3i=new _.jp("reelNavigateCommand");var sIU=new _.jp("reelNonVideoContentDismissalCommand");var T$i=new _.jp("showReelsCommentsOverlayCommand");var elv=new _.jp("shortsSuggestedActionViewModel");var Rlw=new _.jp("videoInteractionPopUpRenderer");var GgU;var Cqs;var lYs;var bd=function(){var x=_.e.apply(this,arguments)||this;x.ctaVisualElement=null;x.currentCsn=null;return x};
_.p(bd,_.e);_.K=bd.prototype;_.K.onDataChanged=function(){this.maybeLogShows()};
_.K.computeButtonShape=function(){var x=this;if(this.data)return{buttonText:_.SR(this.data.text),state:"active",onTap:function(){x.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.K.maybeCreateCtaVe=function(){var x;if((x=this.data)!=null&&x.badgeInteractionLogging){var L;if(x=(L=this.data.badgeInteractionLogging)==null?void 0:L.trackingParams)this.ctaVisualElement=_.CI(x)}};
_.K.maybeLogClicks=function(){this.currentCsn=_.A3(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.L7(this.currentCsn,this.ctaVisualElement)};
_.K.maybeLogShows=function(){this.currentCsn=_.A3(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.t_(this.currentCsn,[this.ctaVisualElement])};
_.K.onTap=function(){var x;if((x=this.data)!=null&&x.onClickCommand){var L;this.ytComponentBehavior.resolveCommand((L=this.data)==null?void 0:L.onClickCommand);this.maybeLogClicks()}};
bd.prototype.onDataChanged=bd.prototype.onDataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],bd.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],bd.prototype,"ytComponentBehavior",void 0);_.A([_.F({}),_.r("design:type",Object)],bd.prototype,"data",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],bd.prototype,"onDataChanged",null);
_.A([_.w({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],bd);
_.q(bd,"ytd-shopping-overlay-badge-renderer",function(){if(lYs!==void 0)return lYs;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return lYs=x},{mode:1});_.dF(_.FWs,"reel-sound-metadata-view-model",{props:{data:_.Il,overlayDensity:_.Il}});_.dF(_.bqG,"player-disclosure-view-model",{props:{data:_.pJ,extractOverlay:_.pJ}});_.dF(_.nbG,"pivot-button-view-model",{props:{data:_.Il,className:_.Il}});_.dF(_.tsd,"reel-action-bar-view-model",{props:{data:_.pJ,buttonShapeOverrideables:_.pJ}});_.dF(_.B(function(x){function L(){var K3,P4,kf,H4,p3=(P4=_.g((K3=X())==null?void 0:K3.command,_.Aa))==null?void 0:(kf=P4.item)==null?void 0:(H4=kf.notificationTextRenderer)==null?void 0:H4.successResponseText;if(p3)K3=_.Zv(p3),_.dg(S.value,"yt-open-popup-action",[K3,S.value]);else if(f())EXs(f(),k.value);else{var w0;EXs((w0=X())==null?void 0:w0.command,k.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var D=x.data;var S=_.x3("yt-player-overlay-video-interactions");x=_.O(_.HB("0px",void 0,"O3ow6c"));var Q=x.next().value,J=x.next().value;x=_.O(_.HB("0px",void 0,"V0TSYd"));var Z=x.next().value,y=x.next().value;x=_.O(_.HB(0,void 0,"ipRdDf"));var E=x.next().value,P=x.next().value;x=_.O(_.HB(0,void 0,"ztYEKb"));var v=x.next().value,V=x.next().value,h=function(){var K3;if(((K3=_.HX())==null?void 0:K3.getPlayerState())!==-1){S.value.style.display="inherit";var P4;(P4=_.HX())==null||P4.removeEventListener("onStateChange",
h)}H()},H=function(){var K3=document.querySelector("video");
if(K3){P(K3.getBoundingClientRect().width);V(K3.getBoundingClientRect().height);var P4;J((K3==null?void 0:(P4=K3.style)==null?void 0:P4.left)||"0px");var kf;y((K3==null?void 0:(kf=K3.style)==null?void 0:kf.top)||"0px")}};
_.Us(function(){var K3,P4,kf;if(((K3=_.HX())==null?void 0:K3.getPlayerState())===-1&&Math.round(((kf=(P4=_.HX())==null?void 0:P4.getVideoAspectRatio())!=null?kf:0)*100)!==Math.round(E()/v()*100)){S.value.style.display="none";var H4,p3;V(E()/((p3=(H4=_.HX())==null?void 0:H4.getVideoAspectRatio())!=null?p3:1))}},"ikzYW");
_.UX(function(){var K3;(K3=_.HX())==null||K3.addEventListener("onStateChange",h);window.addEventListener("resize",H);H();var P4,kf,H4;if((H4=(P4=D())==null?void 0:(kf=P4.regions)==null?void 0:kf[0])==null||!H4.transformationMatrix)throw Error("Ro");var p3;if((p3=D())==null?0:p3.trackingParams){var w0;_.sk().graftServerVe((w0=D().trackingParams)!=null?w0:"")}_.wH(function(){var Rn;(Rn=_.HX())==null||Rn.removeEventListener("onStateChange",h);window.removeEventListener("resize",H)})});
var k=_.x3("svg"),T=_.O(_.HB(!1,void 0,"Thzfnf"));x=T.next().value;var G=T.next().value,U=_.O(_.HB(!1,void 0,"nsniPd"));T=U.next().value;var l=U.next().value,X=function(){var K3;return _.g((K3=D())==null?void 0:K3.popUp,Rlw)},f=function(){var K3;
return(K3=D())==null?void 0:K3.command},N=function(){return _.g(f(),_.e2)!==void 0};
U=_.kO(function(){L();return!1});
var z={},xf={};return _.M("yt-player-overlay-video-interactions",{el:S},_.M("svg",{"on:mouseover":_.kO(function(){N()&&G(!0);l(!0);return!1}),
"on:mouseout":_.kO(function(){G(!1);l(!1);return!1}),
"on:keydown":_.kO(function(K3){K3.key==="Enter"&&L();return!1}),
"on:focus":_.kO(function(){N()&&G(!0);return!1}),
"on:blur":_.kO(function(){N()&&G(!1);return!1}),
el:k,tabindex:0,"aria-label":function(){var K3;return(K3=D())==null?void 0:K3.a11yString},
id:"player-overlay-video-interaction-svg",class:_.gF("ytPlayerOverlayVideoInteractionsInteractionsSvg",(z.ytPlayerOverlayVideoInteractionsInteractionsSvgHover=x,z),(xf.ytPlayerOverlayVideoInteractionsInteractionsSvgHideOutline=T,xf)),role:"button",style:function(){var K3,P4,kf,H4=(kf=(K3=D())==null?void 0:(P4=K3.regions)==null?void 0:P4[0].transformationMatrix)!=null?kf:[];K3=E();P4=v();kf=[];for(var p3=0,w0=-1;p3<H4.length;p3++)p3%3===0&&(w0++,kf[w0]=[]),kf[w0].push(H4[p3]);H4=new pc(kf);kf=new pc([[0,
1,1,0],[0,0,1,1],[1,1,1,1]]);kf=H4.multiply(kf);H4=new pc([[0,0],[0,0],[0,0],[0,0]]);for(p3=0;p3<kf.getSize().width;p3++){w0=m6(kf,0,p3);var Rn=m6(kf,1,p3);if(w0===null||Rn===null)throw Error("Qo`"+(p3+1).toString());kgi(H4,p3,0,w0*K3);kgi(H4,p3,1,Rn*P4)}K3=m6(H4,0,0);p3=m6(H4,1,0);P4=m6(H4,0,1);w0=m6(H4,1,1);if(K3===null||p3===null||P4===null||w0===null)throw Error("Oo");kf=IYw(K3,p3,P4,w0);Rn=m6(H4,3,0);H4=m6(H4,3,1);if(Rn===null||H4===null)throw Error("Po");H4=IYw(K3,Rn,P4,H4);w0=(Number((w0*-1).toFixed(2))-
Number((P4*-1).toFixed(2)))/(Number(p3.toFixed(2))-Number(K3.toFixed(2)));Rn=Math.atan(w0)*180/Math.PI;p3=w0===Number.POSITIVE_INFINITY?-90:w0===Number.NEGATIVE_INFINITY?90:Object.is(w0,-0)?180:w0===0?0:w0>0?Rn*-1:K3<p3?Rn*-1:Math.abs(Rn)+180;return"left:calc("+K3+"px + "+Q()+"); top:calc("+(P4+"px + "+Z()+"); width:")+(kf+"px; height:")+(H4+"px; transform:rotate(")+(p3+"deg);")},
"on:click":U}))},"Im"),"yt-player-overlay-video-interactions",{props:{data:_.pJ}});_.dF(_.ezu,"yt-reel-metapanel-view-model",{props:{data:_.pJ,overlayDensity:_.pJ,extractOverlay:_.pJ}});var Uqw=_.B(function(x){var L=x.children;var D=x.region;x=_.O(_.HB(void 0,void 0,"MsSyte"));var S=x.next().value,Q=x.next().value;x=_.O(_.HB("0px",void 0,"U9Yihd"));var J=x.next().value,Z=x.next().value;x=_.O(_.HB("0px",void 0,"UO1H6d"));var y=x.next().value,E=x.next().value;x=_.O(_.HB(0,void 0,"sMVTKb"));var P=x.next().value,v=x.next().value;x=_.O(_.HB(0,void 0,"kZZV8b"));var V=x.next().value,h=x.next().value,H=function(){var X=S();if(X){var f;if(((f=_.HX())==null?void 0:f.getPlayerState())!==-1){X.style.display=
"inherit";var N;(N=_.HX())==null||N.removeEventListener("onStateChange",H)}T()}},k=function(){var X=document.querySelectorAll("video");
return Array.from(X).find(function(f){var N;return f==null?void 0:(N=f.style)==null?void 0:N.width})},T=function(){var X=k();
if(X){v(X.getBoundingClientRect().width);h(X.getBoundingClientRect().height);var f;Z((X==null?void 0:(f=X.style)==null?void 0:f.left)||"0px");var N;E((X==null?void 0:(N=X.style)==null?void 0:N.top)||"0px")}};
_.Us(function(){var X=S();if(X){var f,N,z;if(((f=_.HX())==null?void 0:f.getPlayerState())===-1&&Math.round(((z=(N=_.HX())==null?void 0:N.getVideoAspectRatio())!=null?z:0)*100)!==Math.round(P()/V()*100)){X.style.display="none";var xf,K3;h(P()/((K3=(xf=_.HX())==null?void 0:xf.getVideoAspectRatio())!=null?K3:1))}}},"jJLfwe");
var G=function(){T()},U;
_.UX(function(){T();var X;if(!(D==null?0:(X=D())==null?0:X.transformationMatrix))throw Error("Ro");var f;(f=_.HX())==null||f.addEventListener("onStateChange",H);if(window.ResizeObserver){if(X=k())U=new ResizeObserver(G),U.observe(X)}else window.addEventListener("resize",T);_.wH(function(){var N;(N=_.HX())==null||N.removeEventListener("onStateChange",H);U?U.disconnect():window.removeEventListener("resize",T)})});
var l=function(){var X,f,N=(f=D==null?void 0:(X=D())==null?void 0:X.transformationMatrix)!=null?f:[];X=P();f=V();for(var z=[],xf=0,K3=-1;xf<N.length;xf++)xf%3===0&&(K3++,z[K3]=[]),z[K3].push(N[xf]);N=new pc(z);z=new pc([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);z=N.multiply(z);N=new pc([[0,0],[0,0],[0,0],[0,0]]);for(xf=0;xf<z.getSize().width;xf++){K3=m6(z,0,xf);var P4=m6(z,1,xf);if(K3===null||P4===null)throw Error("Qo`"+(xf+1).toString());kgi(N,xf,0,K3*X);kgi(N,xf,1,P4*f)}X=m6(N,0,0);xf=m6(N,1,0);f=m6(N,0,
1);K3=m6(N,1,1);if(X===null||xf===null||f===null||K3===null)throw Error("Oo");z=MGR(X,xf,f,K3);P4=m6(N,3,0);N=m6(N,3,1);if(P4===null||N===null)throw Error("Po");N=MGR(X,P4,f,N);K3=(Number((K3*-1).toFixed(2))-Number((f*-1).toFixed(2)))/(Number(xf.toFixed(2))-Number(X.toFixed(2)));P4=Math.atan(K3)*180/Math.PI;xf=K3===Number.POSITIVE_INFINITY?-90:K3===Number.NEGATIVE_INFINITY?90:Object.is(K3,-0)?180:K3===0?0:K3>0?P4*-1:X<xf?P4*-1:Math.abs(P4)+180;return"left:calc("+X+"px + "+J()+"); top:calc("+(f+"px + "+
y()+"); width:")+(z+"px; height:")+(N+"px; transform:rotate(")+(xf+"deg);")};
return _.M(Zlw,{root:"#sticker-layer"},function(){return _.M("yt-overlay-sticker",{el:_.Zt(Q),style:l,class:"ytOverlayStickerHost"},L)})},"Lm");var wsw=_.B(function(x){function L(){var H,k,T,G,U=(k=_.g((H=E())==null?void 0:H.command,_.Aa))==null?void 0:(T=k.item)==null?void 0:(G=T.notificationTextRenderer)==null?void 0:G.successResponseText;if(U)H=_.Zv(U),_.dg(S.value,"yt-open-popup-action",[H,S.value]);else if(P())dqU(P(),S.value);else{var l;dqU((l=E())==null?void 0:l.command,S.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var D=x.data;var S=_.x3("svg"),Q=_.O(_.HB(!1,void 0,"i4BL1"));x=Q.next().value;var J=Q.next().value,Z=_.O(_.HB(!1,void 0,"FzRJKd"));Q=Z.next().value;var y=Z.next().value,E=function(){var H;return _.g((H=D())==null?void 0:H.popUp,Rlw)},P=function(){var H;
return(H=D())==null?void 0:H.command},v=function(){return _.g(P(),_.e2)!==void 0};
Z=_.kO(function(){L();return!1});
var V={},h={};return _.M("svg",{"on:mouseover":_.kO(function(){v()&&J(!0);y(!0);return!1}),
"on:mouseout":_.kO(function(){J(!1);y(!1);return!1}),
"on:keydown":_.kO(function(H){H.key==="Enter"&&L();return!1}),
"on:focus":_.kO(function(){v()&&J(!0);return!1}),
"on:blur":_.kO(function(){v()&&J(!1);return!1}),
el:S,tabindex:0,"aria-label":function(){var H;return(H=D())==null?void 0:H.a11yString},
id:"player-overlay-video-interaction-svg",class:_.gF("ytPlayerOverlayInteractionInteractionsSvg",(V.ytPlayerOverlayInteractionInteractionsSvgHover=x,V),(h.ytPlayerOverlayInteractionInteractionsSvgHideOutline=Q,h)),role:"button","on:click":Z})},"Om");_.dF(_.B(function(x){var L=x.data;_.UX(function(){var D;if((D=L())==null?0:D.trackingParams){var S;_.sk().graftServerVe((S=L().trackingParams)!=null?S:"")}});
return _.M("yt-player-overlay-interaction",null,_.M(Uqw,{region:function(){var D,S;return(D=L())==null?void 0:(S=D.regions)==null?void 0:S[0]}},_.M(wsw,Object.assign({},x))))},"Nm"),"yt-player-overlay-interaction",{props:{data:_.pJ}});var YL=function(){var x=_.e.apply(this,arguments)||this;x.showScrubber=!1;x.isWatchWhileMode=!1;x.enableAnchoredPanel=_.u("desktop_shorts_v2_anchored_panel");x.enableNewStickers=_.u("use_shorts_sticker_overlay_web");x.enableShortsModernControls=_.u("web_shorts_modern_controls");x.anchoredPanelActive=!1;x.enableLivingroomLayout=_.u("reels_enable_livingroom_layout");x.enablePlayerMetadataContainer=_.u("reels_web_enable_metadata_container");x.enableSqueezebackPanels=_.u("web_shorts_enable_squeezeback_panels");
x.useAspectRatio=_.u("web_use_aspect_ratio");x.isSqueezebackActive=!1;x.smallScreenSqueezeback=!1;x.isPlayerStarted=!1;x.overlayDensity=0;x.extractOverlay=!1;x.extractActionBar=!1;x.isOverlay=!1;x.isImmersive=!1;x.isImmersiveHorizontal=!1;x.isFullscreen=!1;x.onWindowResized=function(){var L;x.set("isImmersive",((L=window.getComputedStyle(x.hostElement))==null?void 0:L.getPropertyValue("--immersive-mode-on"))==="1");x.set("isImmersiveHorizontal",x.isImmersive&&x.enableLivingroomLayout&&!x.isWatchWhileMode)};
return x};
_.p(YL,_.e);_.K=YL.prototype;_.K.updateIsOverlay=function(x){this.isOverlay=x.detail.value};
_.K.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.K.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.K.computeActionBarButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",iconPosition:"icon-with-label",size:"L"}};
_.K.computeButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.K.onOverlayDensityChange=function(){var x=_.jr(this.hostElement).querySelector("ytd-info-panel-container-renderer");x&&(x.set("extractOverlay",this.extractOverlay),x.set("roundedContainer",this.extractOverlay))};
_.K.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.K.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.K.ready=function(){(_.u("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"))&&(!_.u("enable_reel_action_bar_view_model")||this.get("data.buttonBar")||this.get("data.menu"))||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.PY("reels_metadata_justified_content")||"flex-start");
this.hostElement.style.setProperty("--action-justify-content",_.PY("reels_action_justified_content")||"flex-start")};
_.K.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}}};
_.K.setFakeLoadingButtons=function(){_.u("enable_reel_action_bar_view_model")?this.set("data.buttonBar",{}):(this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.p6("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.p6("DISLIKE_LABEL",void 0,"Dislike")}}}),this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.p6("COMMENT_LABEL",void 0,"Comment")}}}),this.set("data.shareButton",
{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.p6("SHARE_LABEL",void 0,"Share")}}}),this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.p6("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()};
_.K.setEmptyOverlayMetadata=function(){_.u("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}))};
_.J3.Object.defineProperties(YL.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.infoPanel)}}});
YL.prototype.onOverlayDensityChange=YL.prototype.onOverlayDensityChange;YL.prototype.onIsActiveChanged=YL.prototype.onIsActiveChanged;_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],YL.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],YL.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],YL.prototype,"ytdReduxBehavior",void 0);
_.A([_.b(_.Vi.YtdGuideStateAwareBehavior),_.r("design:type",Object)],YL.prototype,"ytdGuideStateAwareBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],YL.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Boolean)],YL.prototype,"isActive",void 0);_.A([_.F({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],YL.prototype,"hidden",void 0);_.A([_.F({value:!0}),_.r("design:type",Boolean)],YL.prototype,"useShortsIcon",void 0);
_.A([_.F({value:"left"}),_.r("design:type",String)],YL.prototype,"buttonTooltipPosition",void 0);_.A([_.F({value:_.u("reels_enable_livingroom_layout")?"top":"left"}),_.r("design:type",String)],YL.prototype,"likeButtonTooltipPosition",void 0);_.A([_.F({value:"none"}),_.r("design:type",String)],YL.prototype,"textTransform",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],YL.prototype,"showScrubber",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],YL.prototype,"isWatchWhileMode",void 0);_.A([_.F({reflectToAttribute:!0}),_.Y("data.infoPanel"),_.r("design:type",Object),_.r("design:paramtypes",[])],YL.prototype,"hasInfoPanel",null);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],YL.prototype,"enableAnchoredPanel",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],YL.prototype,"enableNewStickers",void 0);
_.A([_.F(),_.r("design:type",Object)],YL.prototype,"enableShortsModernControls",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],YL.prototype,"anchoredPanelActive",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],YL.prototype,"enableLivingroomLayout",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],YL.prototype,"enablePlayerMetadataContainer",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],YL.prototype,"enableSqueezebackPanels",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],YL.prototype,"useAspectRatio",void 0);_.A([_.F({selector:_.Ca0,reflectToAttribute:!0}),_.r("design:type",Object)],YL.prototype,"isSqueezebackActive",void 0);_.A([_.F({selector:SuQ,reflectToAttribute:!0}),_.r("design:type",Object)],YL.prototype,"smallScreenSqueezeback",void 0);
_.A([_.F({selector:QIR}),_.r("design:type",Object)],YL.prototype,"isPlayerStarted",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],YL.prototype,"overlayDensity",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],YL.prototype,"extractOverlay",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],YL.prototype,"extractActionBar",void 0);_.A([_.F(),_.r("design:type",Object)],YL.prototype,"isOverlay",void 0);
_.A([_.F(),_.r("design:type",Object)],YL.prototype,"isImmersive",void 0);_.A([_.F(),_.r("design:type",Object)],YL.prototype,"isImmersiveHorizontal",void 0);_.A([_.F({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.r("design:type",Boolean)],YL.prototype,"isShortsImmersive",void 0);_.A([_.F({computed:"computeButtonOverride(extractActionBar)"}),_.r("design:type",Object)],YL.prototype,"buttonOverride",void 0);
_.A([_.F({computed:"computeActionBarButtonOverride(extractActionBar)"}),_.r("design:type",Object)],YL.prototype,"actionBarButtonOverride",void 0);_.A([_.F({selector:_.IS,reflectToAttribute:!0}),_.r("design:type",Object)],YL.prototype,"isFullscreen",void 0);_.A([_.bN("isActive"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],YL.prototype,"onIsActiveChanged",null);
_.A([_.bN("extractOverlay"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],YL.prototype,"onOverlayDensityChange",null);_.A([_.w({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],YL);
_.q(YL,"ytd-reel-player-overlay-renderer",function(){if(Cqs!==void 0)return Cqs;var x=document.createElement("template");_.m(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-player-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-container style-scope ytd-reel-player-overlay-renderer" role="heading" aria-level="1">\n  <div id="overlay" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[!enableNewStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-video-interactions data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-video-interactions>\n      </template>\n    </template>\n    <template is="dom-if" if="[[enableNewStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-interaction data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-interaction>\n      </template>\n    </template>\n    <template is="dom-if" if="[[data.metapanel]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="metapanel" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-reel-metapanel-view-model data="[[data.metapanel.reelMetapanelViewModel]]" extract-overlay="[[extractOverlay]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[!enableShortsModernControls]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="menu-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-menu-renderer data="[[data.menu.menuRenderer]]" is-overlay="[[!extractActionBar]]" overrides="[[actionBarButtonOverride]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-menu-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.buttonBar]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="button-bar" class="style-scope ytd-reel-player-overlay-renderer">\n        <reel-action-bar-view-model button-shape-overrideables="[[actionBarButtonOverride]]" data="[[data.buttonBar.reelActionBarViewModel]]" class="style-scope ytd-reel-player-overlay-renderer"></reel-action-bar-view-model>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.likeButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="like-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-like-button-renderer button-tooltip-position="[[likeButtonTooltipPosition]]" data="[[data.likeButton.likeButtonRenderer]]" overrides="[[buttonOverride]]" text-transform="[[textTransform]]" use-shorts-icon="[[useShortsIcon]]" vertical="[[!isImmersiveHorizontal]]" class="style-scope ytd-reel-player-overlay-renderer"></ytd-like-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.viewCommentsButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="comments-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.viewCommentsButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.shareButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="share-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.shareButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.remixButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="remix-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.remixButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <div id="pivot-button" class="button-container style-scope ytd-reel-player-overlay-renderer" tabindex="0"></div>\n  </div>\n</div>\n<iron-media-query id="overlay-query" query="(max-width: 599px)" query-matches="[[isOverlay]]" on-query-matches-changed="updateIsOverlay" class="style-scope ytd-reel-player-overlay-renderer"></iron-media-query>\n');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Cqs=x},{mode:1});var B$Q;var Fi=function(){var x=_.e.apply(this,arguments)||this;x.videoDuration=0;x.playedTime=0;x.isActive=!1;x.JSC$22385_playerEvents=new Map;return x};
_.p(Fi,_.e);_.K=Fi.prototype;_.K.created=function(){this.JSC$22385_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$22385_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.K.attached=function(){this.getPlayerAndInitializeListeners()};
_.K.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22385_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.p$(this,this.onPageChanged))};
_.K.getPlayerAndInitializeListeners=function(){var x=this,L;return _.I(function(D){if(D.nextAddress==1)return L=_.Zs(),L?D.yield(L.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.p$(x,x.onPageChanged)),D.jumpTo(0));x.player=D.yieldResult;x.initializePlayerListeners();_.Y2(D)})};
_.K.onPageChanged=function(x){var L=this;return _.I(function(D){if(D.nextAddress==1)return x.detail.newPageType!=="ytd-shorts"?D.return():D.yield(_.yC().getPlayerPromise(),2);L.player=D.yieldResult;L.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.p$(L,L.onPageChanged));_.Y2(D)})};
_.K.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22385_playerEvents)};
_.K.onVideoDataChange=function(x){var L=this;return _.I(function(D){if(!L.player||x.type!=="newdata")return D.return();L.videoDuration=_.u("web_shorts_use_progress_state_for_gapless")?L.player.getProgressState(x.playertype).seekableEnd:L.player.getDuration(x.playertype);L.playedTime=0;_.Y2(D)})};
_.K.onVideoProgress=function(x){var L=this,D,S;return _.I(function(Q){if(!L.player)return Q.return();D=L.player.getPresentingPlayerType();S=L.player.getPlayerState();L.videoDuration=_.u("web_shorts_use_progress_state_for_gapless")?L.player.getProgressState(D).seekableEnd:L.player.getDuration(D);L.playedTime=S===0?L.videoDuration:x;_.Y2(Q)})};
_.K.getPercentPlayed=function(x,L){return x?_.BF(L/x,0,1):0};
_.J3.Object.defineProperties(Fi.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 x="";return x=this.videoDuration&&this.playedTime?x+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):x+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],Fi.prototype,"componentBehavior",void 0);_.A([_.b(_.kj.YtPlayerListenerBehavior),_.r("design:type",_.pO)],Fi.prototype,"ytPlayerListenerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Fi.prototype,"player",void 0);_.A([_.F(),_.r("design:type",Object)],Fi.prototype,"videoDuration",void 0);_.A([_.F(),_.r("design:type",Object)],Fi.prototype,"playedTime",void 0);_.A([_.F(),_.r("design:type",Object)],Fi.prototype,"isActive",void 0);
_.A([_.Y("videoDuration","playedTime"),_.r("design:type",Number),_.r("design:paramtypes",[])],Fi.prototype,"percentPlayed",null);_.A([_.Y("videoDuration","playedTime"),_.r("design:type",Object),_.r("design:paramtypes",[])],Fi.prototype,"percentPlayedStyle",null);_.A([_.Y("videoDuration","isActive"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Fi.prototype,"hideProgressBar",null);
_.q(Fi,"ytd-progress-bar-line",function(){if(B$Q===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);B$Q=x}x=B$Q;return x},{mode:_.Vm("kevlar_poly_si_batch_j028")?1:2});var W3i;_.dF(_.xwX,"ytm-closed-captioning-button",{props:{captionIconType:_.pJ,onClick:_.Il,ariaLabel:_.pJ,ariaPressed:_.pJ,isOverlay:_.Il,isModern:_.Il}});_.dF(_.mN$,"desktop-shorts-volume-controls",{props:{orientation:_.pJ}});var sP=function(){var x=_.e.apply(this,arguments)||this;x.playerState=null;x.isMuted=!1;x.shortsModernControlsEnabled=_.u("web_shorts_modern_controls");x.volumeControlsOrientationState="horizontal_right";x.isVolumeControlsExpanded=!1;x.isOverlay=!0;x.captionIconType=-1;x.ariaLabel="";x.overlayDensity=0;x.JSC$22388_playerEvents=new Map;x.onClosedCaptionsButtonClick=function(){x.player&&_.ea(x.player)&&(x.player.toggleSubtitles(),x.updateCaptionIconType())};
return x};
_.p(sP,_.e);_.K=sP.prototype;_.K.created=function(){this.JSC$22388_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$22388_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$22388_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.K.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.VC(28662);this.playPauseButtonClientVE=_.VC(36842);this.fullscreenButtonToggleOffClientVE=_.VC(222256);this.fullscreenButtonToggleOnClientVE=_.VC(222257);var x=_.A3(),L=_.qu();x&&L&&(_.u("combine_ve_grafts")?(_.B5(_.sk(),this.muteButtonClientVE,L),_.B5(_.sk(),this.playPauseButtonClientVE,L)):_.c$(x,L,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.K.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22388_playerEvents),this.player=null)};
_.K.updateCaptionIconType=function(){var x=-1,L=void 0,D=_.p6("CLOSED_CAPTIONS_DISABLED");this.player&&_.ea(this.player)&&(_.$9W(this.player)?(L=!0,D=_.p6("CLOSED_CAPTIONS_ON"),x=1):(L=!1,D=_.p6("CLOSED_CAPTIONS_OFF"),x=0));this.captionIconType=x;this.ariaPressedState=L;this.ariaLabel=D};
_.K.computeActionBarButtonOverride=function(){return{style:"overlay-dark",iconPosition:"icon-with-label",size:"L",disableBackdropFilter:!0,customColors:{backgroundColor:"transparent",color:"var(--yt-spec-static-overlay-icon-active-other)"}}};
_.K.getPlayerAndInitializeListeners=function(){var x=this,L;return _.I(function(D){if(D.nextAddress==1)return L=_.Zs(),L?D.yield(L.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.p$(x,x.onPageChanged)),D.jumpTo(0));x.player=D.yieldResult;x.initializePlayerListeners();_.Y2(D)})};
_.K.onPageChanged=function(x){var L=this;return _.I(function(D){if(D.nextAddress==1)return x.detail.newPageType!=="ytd-shorts"?D.return():D.yield(_.yC().getPlayerPromise(),2);L.player=D.yieldResult;L.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.p$(L,L.onPageChanged));_.Y2(D)})};
_.K.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22388_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.K.onPlayerStateChange=function(x){this.playerState=x};
_.K.onPlayerVolumeChange=function(x){this.isMuted=x.muted};
_.K.onPlayPauseButtonClick=function(){var x=this,L,D;return _.I(function(S){if(S.nextAddress==1)return S.yield(_.yC().getPlayerPromise(),2);L=S.yieldResult;(D=_.A3())&&x.playPauseButtonClientVE&&_.L7(D,x.playPauseButtonClientVE);L.getPlayerState()!==1?L.playVideo():L.pauseVideo();_.Y2(S)})};
_.K.computePlayPauseIcon=function(x){return x===2||x===-1||x===5?_.u("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.u("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.u("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.K.computeFullscreenLabel=function(x){return x?_.p6("FULLSCREEN_EXIT_LABEL"):_.p6("FULLSCREEN_ENTER_LABEL")};
_.K.computePlayPauseLabel=function(x){return x===1||x===3?_.p6("PLAYER_LABEL_PAUSE"):_.p6("PLAYER_LABEL_PLAY")};
_.K.onMuteButtonClick=function(){var x=this,L,D;return _.I(function(S){if(S.nextAddress==1)return S.yield(_.yC().getPlayerPromise(),2);L=S.yieldResult;(D=_.A3())&&x.muteButtonClientVE&&_.L7(D,x.muteButtonClientVE);L.isMuted()?L.unMute(!0):L.mute(!0);_.Y2(S)})};
_.K.computeMuteIcon=function(x){return x?"miniplayer:volume-off":"miniplayer:volume-up"};
_.K.computeMuteLabel=function(x){return x?_.p6("PLAYER_LABEL_UNMUTE"):_.p6("PLAYER_LABEL_MUTE")};
_.K.onVolumeControlsEnter=function(){this.shortsModernControlsEnabled&&(this.isVolumeControlsExpanded=!0)};
_.K.onVolumeControlsLeave=function(){this.shortsModernControlsEnabled&&(this.isVolumeControlsExpanded=!1)};
_.K.onFullscreenButtonClick=function(){var x=_.A3();x&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.L7(x,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.L7(x,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.s8$()};
_.J3.Object.defineProperties(sP.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var x=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(){x.onPlayPauseButtonClick()},
disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"var(--yt-spec-static-overlay-additive-background)"}:{}}}},
fullscreenButtonData:{configurable:!0,enumerable:!0,get:function(){return{disabled:!1,accessibilityLabel:this.computeFullscreenLabel(this.isFullscreen),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computeFullscreenLabel(this.isFullscreen),disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"transparent"}:{}}}},
fullscreenIcon:{configurable:!0,enumerable:!0,get:function(){return this.isFullscreen?_.u("web_shorts_modern_controls")?"player_full_exit_alt":_.u("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.u("web_shorts_modern_controls")?"player_full_enter_alt":_.u("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],sP.prototype,"componentBehavior",void 0);_.A([_.b(_.kj.YtPlayerListenerBehavior),_.r("design:type",_.pO)],sP.prototype,"ytPlayerListenerBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],sP.prototype,"ytdReduxBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],sP.prototype,"player",void 0);_.A([_.F(),_.r("design:type",Object)],sP.prototype,"playerState",void 0);_.A([_.F(),_.r("design:type",Object)],sP.prototype,"isMuted",void 0);
_.A([_.F({computed:"computePlayPauseIcon(playerState)"}),_.r("design:type",String)],sP.prototype,"playPauseIcon",void 0);_.A([_.F({computed:"computeMuteIcon(isMuted)"}),_.r("design:type",String)],sP.prototype,"muteIcon",void 0);_.A([_.F({selector:_.IS}),_.r("design:type",Boolean)],sP.prototype,"isFullscreen",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],sP.prototype,"shortsModernControlsEnabled",void 0);
_.A([_.F(),_.r("design:type",Object)],sP.prototype,"volumeControlsOrientationState",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],sP.prototype,"isVolumeControlsExpanded",void 0);_.A([_.F(),_.r("design:type",Object)],sP.prototype,"isOverlay",void 0);_.A([_.F(),_.r("design:type",Object)],sP.prototype,"captionIconType",void 0);_.A([_.F(),_.r("design:type",Object)],sP.prototype,"ariaLabel",void 0);_.A([_.F(),_.r("design:type",Object)],sP.prototype,"ariaPressedState",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],sP.prototype,"overlayDensity",void 0);_.A([_.F(),_.r("design:type",Object)],sP.prototype,"data",void 0);_.A([_.F({computed:"computeActionBarButtonOverride()"}),_.r("design:type",Object)],sP.prototype,"actionBarButtonOverride",void 0);_.A([_.Y("playerState"),_.r("design:type",Object),_.r("design:paramtypes",[])],sP.prototype,"playPauseButtonData",null);
_.A([_.Y("isFullscreen"),_.r("design:type",Object),_.r("design:paramtypes",[])],sP.prototype,"fullscreenButtonData",null);_.A([_.F(),_.r("design:type",Object)],sP.prototype,"onClosedCaptionsButtonClick",void 0);_.A([_.Y("isFullscreen"),_.r("design:type",String),_.r("design:paramtypes",[])],sP.prototype,"fullscreenIcon",null);
_.q(sP,"ytd-shorts-player-controls",function(){if(W3i===void 0){var x=document.createElement("template");_.m(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts-player-controls--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <div id="left-controls" class="style-scope ytd-shorts-player-controls">\n    <yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n    </yt-button-shape>\n    <desktop-shorts-volume-controls orientation="[[volumeControlsOrientationState]]" on-mouseenter="onVolumeControlsEnter" on-mouseleave="onVolumeControlsLeave" class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  </div>\n  <div id="right-controls" class="style-scope ytd-shorts-player-controls">\n    <div id="closed-captioning-button-container" class="style-scope ytd-shorts-player-controls">\n      <ytm-closed-captioning-button aria-label="[[ariaLabel]]" aria-pressed="[[ariaPressedState]]" caption-icon-type="[[captionIconType]]" is-modern="[[shortsModernControlsEnabled]]" is-overlay="[[isOverlay]]" on-click="[[onClosedCaptionsButtonClick]]" class="style-scope ytd-shorts-player-controls">\n      </ytm-closed-captioning-button>\n    </div>\n    <div id="menu-button" class="button-container style-scope ytd-shorts-player-controls">\n      <ytd-menu-renderer data="[[data]]" is-overlay="[[isOverlay]]" overrides="[[actionBarButtonOverride]]" three-dot-size="L" use-overlay-dark="" class="style-scope ytd-shorts-player-controls"></ytd-menu-renderer>\n    </div>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</div>\n</template>\n<template is="dom-if" if="[[!shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n  <desktop-shorts-volume-controls class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</template>\n');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);W3i=x}x=W3i;return x},{mode:1});var quv;_.dF(_.N03,"yt-interstitial-view-model",{props:{data:_.pJ}});var A5Q=_.B(function(x){var L=x.data;return _.M("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.M("h1",{class:"reelWatchBreakViewModelHostTitle"},_.M(_.kP,{text:function(){return L().title}})),_.M("h2",{class:"reelWatchBreakViewModelHostBody"},_.M(_.kP,{text:function(){return L().body},
isOverlay:!0})),_.M(_.Fj,{data:function(){return L().buttons}},{buttonViewModel:function(D,S){return _.M("div",{class:function(){return S()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.M(_.qP,{data:D.data}))}}))},"Pm");
A5Q.idomCompat=!0;_.dF(A5Q,"reel-watch-break-view-model",{props:{data:_.pJ}});var T4=function(){return _.e.apply(this,arguments)||this};
_.p(T4,_.e);T4.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}}};
_.J3.Object.defineProperties(T4.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var x;return!!_.g((x=this.data)==null?void 0:x.renderer,bli)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var x;return!!_.g((x=this.data)==null?void 0:x.renderer,Yus)}}});
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],T4.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],T4.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],T4.prototype,"ytdReduxBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],T4.prototype,"data",void 0);
_.A([_.F({reflectToAttribute:!0}),_.Y("data.renderer"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],T4.prototype,"isSurvey",null);_.A([_.F({reflectToAttribute:!0}),_.Y("data.renderer"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],T4.prototype,"isInterstitialViewModel",null);_.A([_.w({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],T4);
_.q(T4,"ytd-reel-non-video-content-renderer",function(){if(quv!==void 0)return quv;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);
return quv=x},{mode:_.Vm("kevlar_poly_si_batch_j028")?1:2});var $qN;_.dF(_.pBq,"desktop-shorts-player-controls",{});var ej=function(){var x=_.e.apply(this,arguments)||this;x.isPlayerPaused=!1;x.isPlayerStarted=!1;x.showPlayerControls=!1;x.showScrubber=!1;x.autoHideJobId=0;x.modern=_.u("web_button_rework");x.overlayType=_.PY("web_shorts_expanded_overlay_type");x.panelData=void 0;x.isWatchWhileMode=!1;x.hasError=!1;x.panelShowDelayMs=1;x.scrubberComponent={};x.isFullscreen=!1;x.shouldHideOverlay=!1;x.enableAnchoredPanel=_.u("desktop_shorts_v2_anchored_panel");x.enablePersistentAnchoredPanel=_.u("desktop_shorts_v2_persistent_anchored_panel");
x.hideWatchWhilePanel=_.u("web_shorts_hide_watch_while_panel");x.useAspectRatio=_.u("web_use_aspect_ratio");x.enableShortsModernControls=_.u("web_shorts_modern_controls");x.isPersistentPanelActive=!1;x.anchoredPanelActive=!1;x.isShortsPipActive=!1;x.smallScreenSqueezeback=!1;x.enableFlexibleOverlay=_.u("web_enable_flexible_overlay");x.overlayDensity=0;x.extractOverlay=!1;x.extractActionBar=!1;x.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};
x.onWindowResized=function(){_.LI(x,"calculateOverlayDensity",function(){x.calculateOverlayDensity()},100)};
return x};
_.p(ej,_.e);_.K=ej.prototype;_.K.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.K.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.K.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var x=_.yY().resolve(_.Dk);this.isWatchWhileMode&&_.WW.addJob(function(){x.showPanel({identifier:"shorts-comments-panel",target:null})},0)}}else this.panelData=void 0};
_.K.handleShowReelsCommentsOverlayCommand=function(x){x=_.g(x,T$i);this.isActive&&(x==null?0:x.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))};
_.K.updateEngagementPanelVisibility=function(x,L){x&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:L?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:x}})};
_.K.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.K.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.yY().resolve(_.aO).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.K.handleWatchWhilePanelScrimClick=function(){var x=_.yY().resolve(_.Dk);this.activeWatchWhilePanel&&(x.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.K.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.K.configureRendererStamper=function(){return{scrubberComponent:{id:"scrubber",mapping:{desktopShortsPlayerControls:{component:"desktop-shorts-player-controls"}},initialRenderPriority:2},overlayComponent:{id:"experiment-overlay",mapping:{reelPlayerOverlayRenderer:{component:"ytd-reel-player-overlay-renderer",properties:{anchoredPanelActive:"[[anchoredPanelActive]]",disableUpgrade:"[[shouldHideOverlay]]",hidden:"[[shouldHideOverlay]]",isActive:"[[isActive]]",isWatchWhileMode:"[[watchWhileOrPersistentActive]]",
overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]",showScrubber:"[[showScrubber]]"}},adsOverlay:{component:"ytd-ad-slot-renderer",properties:{overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}},renderPriority:0}}};
_.K.handlePlayerClick=function(x){var L=this,D,S;if((S=(D=window).matchMedia)!=null&&S.call(D,"(any-pointer: coarse)").matches||!x)this.showPlayerControls=!0,_.WW.cancelJob(this.autoHideJobId),this.autoHideJobId=_.TG(_.WW,function(){L.showPlayerControls=!1},4E3)};
_.K.isFirstReel=function(){return this.index===0};
_.K.handleMouseenter=function(){_.WW.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.K.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.K.handleScrubberEnter=function(){this.showScrubber=!0};
_.K.handleScrubberLeave=function(){this.showScrubber=!1};
_.K.maybeLogNonDefaultAspectRatio=function(){var x;(x=this.data)!=null&&x.thumbnail&&this.isActive&&.5625!==DqN(this.data.thumbnail)&&_.dQ4("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.K.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var x=document.querySelector("#shorts-container");if(x){var L=!1,D,S=this.playerContainer.offsetWidth;x=x.offsetWidth/2-S/2;x>=368?(x=1,L=D=!0):x>=72?(x=0,D=!0):(x=2,D=!1);S>=600?x=1:window.innerWidth<=599&&(x=2,D=L=!1);this.isPersistentPanelActive&&(x=0,L=!1);this.extractActionBar=D;_.u("web_enable_flexible_overlay")&&(this.overlayDensity=x,this.extractOverlay=L);var Q;(Q=this.onOverlayDensityChanged)==
null||Q.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar)}}};
_.K.onOverlayDensityChange=function(){var x;(x=this.onOverlayDensityChanged)==null||x.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar);if(x=_.jr(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))x.set("overlayDensity",this.overlayDensity),x.set("extractOverlay",this.extractOverlay),x.set("extractActionBar",this.extractActionBar);if(x=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))x.overlayDensity=this.overlayDensity,x.extractOverlay=
this.extractOverlay,x.extractActionBar=this.extractActionBar};
_.K.isVideoContent=function(x){_.yY().resolve(_.aO);return!!_.g(x,_.TF)};
_.K.isNonVideoContent=function(x){_.yY().resolve(_.aO);return!!_.g(x,_.O6)};
_.K.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.J3.Object.defineProperties(ej.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var x,L;return _.u("web_enable_format_first")||((x=this.data)==null?void 0:x.adsOverlay)&&_.u("web_enable_format_first_ads_only")||((L=this.data)==null?void 0:L.reelPlayerOverlayRenderer)&&_.u("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError&&(this.isPlayerStarted||!_.u("web_shorts_modern_controls"))}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var x;return!this.isActive||!this.isPlayerStarted||(x=this.data)!=null&&x.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var x;if(((x=this.data)==null?0:x.command)&&this.isVideoContent(this.data.command)){var L,D;if(((L=this.data)==null?0:L.adsOverlay)&&Object.keys((D=this.data)==null?void 0:D.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var S,Q;if(((S=this.data)==null?0:S.reelPlayerOverlayRenderer)&&Object.keys((Q=this.data)==null?void 0:Q.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
ej.prototype.onOverlayDensityChange=ej.prototype.onOverlayDensityChange;ej.prototype.calculateOverlayDensity=ej.prototype.calculateOverlayDensity;ej.prototype.maybeLogNonDefaultAspectRatio=ej.prototype.maybeLogNonDefaultAspectRatio;ej.prototype.onEngagementPanelsChanged=ej.prototype.onEngagementPanelsChanged;ej.prototype.onScrubberDataChange=ej.prototype.onScrubberDataChange;ej.prototype.updateShouldHideOverlay=ej.prototype.updateShouldHideOverlay;
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],ej.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],ej.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.Vi.YtdGuideStateAwareBehavior),_.r("design:type",Object)],ej.prototype,"ytdGuideStateAwareBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],ej.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Number)],ej.prototype,"index",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],ej.prototype,"isActive",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],ej.prototype,"isHiddenInDom",void 0);_.A([_.F(),_.r("design:type",Object)],ej.prototype,"isPlayerPaused",void 0);_.A([_.F({selector:QIR}),_.r("design:type",Object)],ej.prototype,"isPlayerStarted",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],ej.prototype,"showPlayerControls",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],ej.prototype,"showScrubber",void 0);_.A([_.F(),_.r("design:type",Object)],ej.prototype,"autoHideJobId",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],ej.prototype,"modern",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],ej.prototype,"overlayType",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],ej.prototype,"ytdReduxBehavior",void 0);
_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],ej.prototype,"ytActionHandlerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],ej.prototype,"watchWhileEngagementPanels",void 0);_.A([_.F(),_.r("design:type",Object)],ej.prototype,"panelData",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],ej.prototype,"isWatchWhileMode",void 0);_.A([_.F(),_.r("design:type",String)],ej.prototype,"activeWatchWhilePanel",void 0);
_.A([_.F(),_.r("design:type",Object)],ej.prototype,"hasError",void 0);_.A([_.F(),_.r("design:type",Object)],ej.prototype,"panelShowDelayMs",void 0);_.A([_.F(),_.r("design:type",Object)],ej.prototype,"scrubberComponent",void 0);_.A([_.F({selector:_.IS,reflectToAttribute:!0}),_.r("design:type",Object)],ej.prototype,"isFullscreen",void 0);_.A([_.F(),_.r("design:type",Object)],ej.prototype,"shouldHideOverlay",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],ej.prototype,"enableAnchoredPanel",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],ej.prototype,"enablePersistentAnchoredPanel",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],ej.prototype,"hideWatchWhilePanel",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],ej.prototype,"useAspectRatio",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],ej.prototype,"enableShortsModernControls",void 0);_.A([_.F({selector:_.Ca0,reflectToAttribute:!0}),_.r("design:type",Object)],ej.prototype,"isPersistentPanelActive",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],ej.prototype,"anchoredPanelActive",void 0);_.A([_.F({selector:_.E3,reflectToAttribute:!0}),_.r("design:type",Object)],ej.prototype,"isShortsPipActive",void 0);
_.A([_.F({selector:SuQ,reflectToAttribute:!0}),_.r("design:type",Object)],ej.prototype,"smallScreenSqueezeback",void 0);_.A([_.F({reflectToAttribute:!0}),_.Y("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.r("design:type",Object),_.r("design:paramtypes",[])],ej.prototype,"enableFormatFirst",null);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],ej.prototype,"enableFlexibleOverlay",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],ej.prototype,"overlayDensity",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],ej.prototype,"extractOverlay",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],ej.prototype,"extractActionBar",void 0);_.A([_.F(),_.r("design:type",Function)],ej.prototype,"onOverlayDensityChanged",void 0);
_.A([_.F(),_.Y("isActive","hasError","isPlayerStarted"),_.r("design:type",Object),_.r("design:paramtypes",[])],ej.prototype,"shouldRenderPlayerElements",null);_.A([_.F(),_.Y("isActive","isWatchWhileMode"),_.r("design:type",Object),_.r("design:paramtypes",[])],ej.prototype,"watchWhileOrPersistentActive",null);_.A([_.bN("isActive","hasError","showingExpandedOverlay"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ej.prototype,"updateShouldHideOverlay",null);
_.A([_.F({reflectToAttribute:!0}),_.Y("isActive","isPlayerStarted","data"),_.r("design:type",Object),_.r("design:paramtypes",[])],ej.prototype,"shouldRenderScrubber",null);_.A([_.bN("shouldRenderScrubber"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ej.prototype,"onScrubberDataChange",null);_.A([_.Y("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.r("design:type",Object),_.r("design:paramtypes",[])],ej.prototype,"overlayComponent",null);
_.A([_.bN("watchWhileEngagementPanels"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ej.prototype,"onEngagementPanelsChanged",null);_.A([_.F1("#player-container"),_.r("design:type",HTMLElement)],ej.prototype,"playerContainer",void 0);_.A([_.F1("#cinematic-container"),_.r("design:type",HTMLElement)],ej.prototype,"cinematicContainer",void 0);
_.A([_.bN("isPersistentPanelActive","data.thumbnail"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ej.prototype,"maybeLogNonDefaultAspectRatio",null);_.A([_.bN("isPersistentPanelActive"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ej.prototype,"calculateOverlayDensity",null);
_.A([_.bN("overlayDensity","extractOverlay","extractActionBar"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ej.prototype,"onOverlayDensityChange",null);_.A([_.w({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],ej);
_.q(ej,"ytd-reel-video-renderer",function(){if($qN!==void 0)return $qN;var x=document.createElement("template");_.m(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="sticker-layer" class="sticker-layer style-scope ytd-reel-video-renderer"></div>\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n            <div class="player-controls style-scope ytd-reel-video-renderer">\n              <ytd-shorts-player-controls data="[[data.reelPlayerOverlayRenderer.menu.menuRenderer]]" disable-upgrade="[[!isActive]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n            </div>\n          </template>\n    </div>\n    <div id="scrubber" on-mouseenter="handleScrubberEnter" on-mouseleave="handleScrubberLeave" class="style-scope ytd-reel-video-renderer">\n    </div>\n  </div>\n</div>\n<div id="experiment-overlay" class="overlay style-scope ytd-reel-video-renderer"></div>\n<template is="dom-if" if="[[isNonVideoContent(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <ytd-reel-non-video-content-renderer data="[[data.reelNonVideoContentRenderer]]" class="style-scope ytd-reel-video-renderer">\n  </ytd-reel-non-video-content-renderer>\n</template>\n');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return $qN=x},{mode:_.Vm("kevlar_poly_si_batch_j028")?1:2});var Rz=function(){var x=_.e.apply(this,arguments)||this;x.isPreviousPageShorts=!1;x.index=0;x.delayedActiveIndex=0;x.playablePreviousIndex=null;x.isPlayerPaused=!1;x.isPlayerStarted=!1;x.intersectionObserverThreshold=.6;x.fitToVisibleBounds=!1;x.pageSubtype="shorts";x.enablePreviousContinuation=_.u("shorts_in_playlists_web");x.shortsPipEnabled=_.u("web_shorts_pip");x.isDark=document.documentElement.hasAttribute("dark");x.shortsViewTransitions=_.u("web_shorts_view_transitions");x.isFullscreen=!1;x.isShortsPipActive=
!1;x.buttonOverride={iconPosition:"icon-only",size:"XL"};x.anchoredPanelActive=!1;x.isActive=!1;x.smallScreenPersistentPanel=!1;x.isPersistentPanelActive=!1;x.smallScreenSqueezeBack=!1;x.enableScrollIntoViewCenter=_.u("web_scroll_into_view_center");x.formatFirst=_.u("web_enable_format_first")||_.u("web_enable_format_first_ads_only")||_.u("web_enable_format_first_organic_only");x.enableFlexibleOverlay=_.u("web_enable_flexible_overlay");x.extractOverlay=!1;x.useAspectRatio=_.u("web_use_aspect_ratio");
x.isShortsInitialized=!1;x.hidePreviousButtonImmediately=!1;x.showPreviousButtonImmediately=!1;x.endOfNextContinuation=!1;x.currentPlayerIndex=0;x.nextReelVe=_.VC(56921);x.prevReelVe=_.VC(56922);x.loopToggleOffVe=_.VC(198013);x.loopToggleOnVe=_.VC(198014);x.ambientModeToggleVe=_.VC(227860);x.reelPlayerPausedStateRendererVe=_.VC(141313);x.storedPlaybackSpeed=null;x.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"};x.onOverlayDensityChanged=function(L,D,S,Q){L=x.getActiveReelVideo(L);x.extractOverlay=!!S;L==null||L.setAttribute("overlay-density",String(D));S===void 0||L!=null&&L.toggleAttribute("extract-overlay",S);Q===void 0||L!=null&&L.toggleAttribute("extract-action-bar",Q)};
return x};
_.p(Rz,_.e);_.K=Rz.prototype;_.K.setFirstShortsData=function(){!this.firstShortsData&&this.data&&(this.firstShortsData=this.getCurrentShort())};
_.K.deflateInactivePreviousSlides=function(){var x=_.dE("web_shorts_deflate_inactive_slides_aggressive_distance");if(x>0&&this.shortsProcessedSequence&&this.activeIndex){x=this.activeIndex-x;for(var L=0;L<=x;L++){var D=void 0;((D=this.shortsProcessedSequence[L].reelPlayerOverlayRenderer)==null?0:D.metapanel)&&this.set("shortsProcessedSequence."+L+".reelPlayerOverlayRenderer",{});D=void 0;((D=this.shortsProcessedSequence[L].adsOverlay)==null?0:D.adSlotMetadata)&&this.set("shortsProcessedSequence."+
L+".adsOverlay",{})}}};
_.K.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.K.onResize=function(){var x=_.Jd(),L=x.dispatch,D=this.calculateIsSmallWidth();L.call(x,_.MU({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:D}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.K.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}}};
_.K.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var x=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,L=x,D=0;x<250&&(L=x+this.shortsInnerContainer.clientWidth,D=24);_.uN(this.hostElement,{"--ytd-shorts-header-width":L+"px","--ytd-shorts-top-spacing":D+"px"})}};
_.K.isFirstShorts=function(x){return x?this.index===-x.length:this.index===0};
_.K.isActiveReel=function(x,L,D){D&&(L=this.calculatePrevIndex(L,D));return x===L};
_.K.onFullscreenChange=function(){if(_.u("web_fullscreen_shorts")){var x;(x=this.getActiveReelVideo(this.activeIndex))==null||x.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.yY().resolve(_.iy).close(!0)}};
_.K.engagementPanelsChanged=function(){var x;this.watchWhileEngagementPanels=(x=this.data)==null?void 0:x.engagementPanels};
_.K.unregisterPanels=function(){var x=_.yY().resolve(_.Dk);if(this.watchWhileEngagementPanels)for(var L=_.O(this.watchWhileEngagementPanels),D=L.next();!D.done;D=L.next()){var S=D.value,Q=void 0,J=void 0;D=(Q=S.engagementPanelSectionListRenderer)==null?void 0:(J=Q.identifier)==null?void 0:J.tag;S=this.getPanelContentIdentifier(S.engagementPanelSectionListRenderer);x&&(D&&x.panelMap.delete(D),S&&_.u("web_shorts_panel_caching_bugfix")&&(Q=D=void 0,(Q=(D=x).unregisterPanelContent)==null||Q.call(D,S)))}};
_.K.isVideoContent=function(x){return this.isVideoContentCommand(x==null?void 0:x.command)};
_.K.getActiveReelVideo=function(x){return _.jr(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+x+'"]')};
_.K.calculatePrevIndex=function(x,L){return L?x-((L==null?void 0:L.length)||0):-1};
_.K.onKeydown=function(x){var L=_.Jq(x)||[];if(!_.Fm3(L))if(x.code==="ArrowUp")x.preventDefault(),this.handlePrevButtonClick();else if(x.code==="ArrowDown")x.preventDefault(),this.handleNextButtonClick();else if(x.code==="KeyM")this.toggleMuteUnmuteVideo();else if(x.code==="KeyK"||x.code==="Space")this.togglePlayPauseVideo();else if((x.code==="KeyA"||x.code==="ArrowLeft")&&_.u("web_shorts_keyboard_enable_seek_shortcuts")){var D;(D=this.player)==null||D.seekBy(-5)}else if((x.code==="KeyD"||x.code===
"ArrowRight")&&_.u("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var S;(S=this.player)==null||S.seekBy(5)}};
_.K.onServiceRequestCompleted=function(x,L){x=L.data;x.continuationEndpoint&&x.entries?(this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:x.entries,continuationEndpoint:x.continuationEndpoint}}),_.u("web_enable_shorts_sequence_cache_fix")&&(this.cachedReelWatchSequenceResponse=x)):x.prevContinuationEndpoint&&x.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:x.prevEntries,
prevContinuationEndpoint:x.prevContinuationEndpoint}}):this.shortsProcessedSequence&&this.index>0&&(this.endOfNextContinuation=!0)};
_.K.handleEngagementPanelVisibilityChanged=function(x,L){var D=_.yY().resolve(_.Dk);if(x&&D){var S=this.getPanelIdentifier(x);if(L==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==S){D.hidePanel(this.activePanel);var Q;this.activePanel=((Q=x.identifier)==null?void 0:Q.tag)||x.panelIdentifier}else this.isPersistentPanelActive=!0,_.Jd().dispatch(vXv(!0)),this.anchoredPanelActive=!0,this.activePanel=S;else L==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&this.activePanel===
S&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.Jd().dispatch(vXv(!1)))}};
_.K.handlePanelScrimClick=function(){var x=_.yY().resolve(_.Dk);this.activePanel&&(x.hidePanel(this.activePanel),_.Jd().dispatch(vXv(!1)))};
_.K.getShortsLoopSetting=function(){var x,L,D,S,Q;return _.I(function(J){switch(J.nextAddress){case 1:return _.u("kevlar_shorts_auto_advance")?J.yield(_.xr.getInstance(),2):J.return(!0);case 2:return(x=J.yieldResult)?J.yield(x.get("sfvles"),3):J.return(!0);case 3:return D=(L=J.yieldResult)!=null?L:!1,J.yield(x.get("sfvle"),4);case 4:return Q=(S=J.yieldResult)!=null?S:!0,D?J.return(Q):J.return(!0)}})};
_.K.handleSignalActionToggleLoopShortsOff=function(){var x=this,L,D,S;return _.I(function(Q){switch(Q.nextAddress){case 1:if(!x.player)return Q.return();x.player.setLoopVideo(!1);L=_.sk();_.qJ(L,x.loopToggleOffVe);return Q.yield(_.xr.getInstance(),2);case 2:return(D=Q.yieldResult)?Q.yield(D.set("sfvle",!1),3):Q.return();case 3:return Q.yield(D.set("sfvles",!0),4);case 4:S=_.FI(),_.s8(0,203,!1),_.s8(0,204,!0),S.save(),_.Y2(Q)}})};
_.K.handleSignalActionToggleLoopShortsOn=function(){var x=this,L,D,S;return _.I(function(Q){switch(Q.nextAddress){case 1:if(!x.player)return Q.return();x.player.setLoopVideo(!0);L=_.sk();_.qJ(L,x.loopToggleOnVe);return Q.yield(_.xr.getInstance(),2);case 2:return(D=Q.yieldResult)?Q.yield(D.set("sfvle",!0),3):Q.return();case 3:return Q.yield(D.set("sfvles",!0),4);case 4:S=_.FI(),_.s8(0,203,!0),_.s8(0,204,!0),S.save(),_.Y2(Q)}})};
_.K.handleSignalActionToggleCinematicShortsOn=function(){L3Q(!0);var x;(x=this.JSC$22414_cinematicController)==null||_.ahz(x,!0);_.qJ(_.sk(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.K.handleSignalActionToggleCinematicShortsOff=function(){L3Q(!1);var x;(x=this.JSC$22414_cinematicController)==null||_.ahz(x,!1);_.qJ(_.sk(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.K.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.K.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.K.unhideCurrentOverlay=function(){if(this.overlayContainer){var x=this.overlayContainer.querySelector("#experiment-overlay");x&&_.WW.addLowPriorityJob(function(){x.style.display="unset"},100)}};
_.K.getCurrentShort=function(){if(this.currentEndpoint){var x=this.currentEndpoint;if(this.isNonVideoContentCommand(x)){var L=_.g(x,_.O6);return{reelNonVideoContentRenderer:_.g(L==null?void 0:L.renderer,_.W1r),command:x}}if(this.data){var D;L=(D=_.g(this.currentEndpoint,_.TF))==null?void 0:D.thumbnail;var S;D=(S=this.data.overlay)==null?void 0:S.reelPlayerOverlayRenderer;_.yY().resolve(_.aO);x=this.data;var Q,J;S=(Q=x.overlay)==null?void 0:(J=Q.shortsAdsRenderer)==null?void 0:J.adSlots;if(S!==void 0)S.length===
0?(_.Xj("Shorts ads returned no ad slots."),x=void 0):(S.length>1&&_.Xj("Shorts ads has more than one ad slots."),x=_.g(S[0],_.swh));else{var Z,y;x=_.g((Z=x.overlay)==null?void 0:(y=Z.shortsAdsRenderer)==null?void 0:y.overlay,_.swh)}Z=x;x=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.g(this.currentEndpoint,_.TF),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:D,thumbnail:L,command:x,adsOverlay:Z}}}};
_.K.created=function(){var x=this;this.scrollToVideoThrottle=new _.zR(function(L){var D;(D=x.getActiveReelVideo(L))==null||D.scrollIntoView({behavior:"smooth",block:"nearest",inline:x.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.zR(function(L){var D;(D=x.getActiveReelVideo(L))==null||D.scrollIntoView({behavior:"auto",block:"nearest",inline:x.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.K.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.K.attached=function(){var x=this;_.yY().resolve(_.aO).registerRootElement(this);this.pageScrollElement=_.jr(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.p$(this,this.processResetAction));_.u("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var L=x.getActiveReelVideo(x.activeIndex);x.maybeCreateIntersectionObserver();L==null||L.scrollIntoView({behavior:"instant",
block:"nearest",inline:x.enableScrollIntoViewCenter?"center":"start"});x.shortsContainer.style.overflowY="scroll"}))};
_.K.updateReelWatchSequenceResponse=function(){var x=this,L;_.u("web_enable_delay_shorts_sequence_call_new")&&this.currentEndpoint&&((L=_.g(this.currentEndpoint,_.TF))==null?0:L.sequenceParams)&&!this.reelWatchSequenceResponse&&(L=_.yY().resolve(_.aO))&&jIv(L,this.currentEndpoint).then(function(D){D&&(x.reelWatchSequenceResponse=D,_.WW.addLowPriorityJob(function(){x.observeShorts()}))})};
_.K.calculateSqueezebackPanelSize=function(){var x=this,L=window.innerWidth-456-(window.innerHeight-106)*.5625;_.WW.addLowPriorityJob(function(){L<360?_.Jd().dispatch(VGs(!0)):(x.hostElement.style.setProperty("--anchored-panel-width",Math.min(L,480)+"px"),_.Jd().dispatch(VGs(!1)))})};
_.K.detached=function(){var x=_.yY().resolve(_.aO);x.rootElement=void 0;var L;(L=x.unsubscribeFromStore)==null||L.call(x);x.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.p$(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.K.onResizeFinished=function(x,L){var D=this,S=new ResizeObserver(function(){D.shortsContainer.style.overflowY="hidden";_.WW.addLowPriorityJob(function(){L()},100)});
S.observe(x);return S};
_.K.resetDocumentScrollTop=function(){var x,L;if((x=document)==null?0:(L=x.scrollingElement)==null?0:L.scrollTop)document.scrollingElement.scrollTop=0};
_.K.loadPage_=function(x){var L=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),x){var D;!_.u("web_enable_delay_shorts_sequence_call")&&((D=_.g(this.currentEndpoint,_.TF))==null?0:D.sequenceParams)&&(this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index));this.data=x;this.isPlayerStarted?this.handleOnPlaybackCommand():
this.afterPlayerStarted=function(){L.isPlayerStarted&&(L.handleOnPlaybackCommand(),L.afterPlayerStarted=function(){})};
this.registerPanel(x)}};
_.K.afterPlayerStarted=function(){};
_.K.handleOnPlaybackCommand=function(){if(_.u("web_shorts_comment_stickers")&&this.isPlayerStarted){var x,L=(x=_.g(this.currentEndpoint,_.TF))==null?void 0:x.onPlaybackCommand;L&&this.ytComponentBehavior.resolveCommand(L)}};
_.K.maybeCreateIntersectionObserver=function(){var x=this,L=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==L){this.intersectionObserverThreshold=L;var D={rootMargin:"0px",threshold:L},S;(S=this.intersectionObserver)==null||S.disconnect();this.intersectionObserver=new IntersectionObserver(function(Q){Q=_.O(Q);for(var J=Q.next();!J.done;J=Q.next())if(J=J.value,J.intersectionRatio>L){J=Number(J.target.id);if(isNaN(J))break;if(J===x.index)break;
_.wus();x.loadVideo(J);_.NF("r_vtc")}},D);
this.observeShorts()}};
_.K.observeShorts=function(){var x=[].concat(_.lP(_.jr(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));x=_.O(x);for(var L=x.next();!L.done;L=x.next()){L=L.value;var D=void 0;(D=this.intersectionObserver)==null||D.observe(L)}};
_.K.initCsi=function(){_.xz$("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var x={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"}},L,D;if((L=this.playerData)==null?0:(D=L.cacheMetadata)==null?0:D.isCacheHit)x.isCacheHit=!0;var S;if(L=(S=_.g(this.currentEndpoint,_.TF))==null?void 0:
S.prefetchTaskId)x.prefetchInfo={taskId:L};_.W$(x)};
_.K.isAd=function(){var x,L;return!!((x=_.g(this.currentEndpoint,_.TF))==null?0:(L=x.adClientParams)==null?0:L.isAd)};
_.K.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.K.getPlayerContainer=function(){var x;return(x=_.jr(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:x.playerContainer};
_.K.onPlayerStateChange=function(x){var L=this;this.isPlayerPaused=x===2;x!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?x===1&&this.index===0&&(this.isPlayerStarted||_.Jd().dispatch(hlw(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.Jd().dispatch(hlw(!0)));this.player&&!this.player.getLoopVideo()&&_.WW.addLowPriorityJob(function(){L.getShortsLoopSetting().then(function(D){var S;(S=L.player)==null||S.setLoopVideo(D)})});
this.isPlayerPaused&&_.u("web_shorts_paused_state_logging")&&_.t_(_.A3(),[this.reelPlayerPausedStateRendererVe])};
_.K.isInBackground=function(){var x=window.document.visibilityState;return!(!x||x==="visible")};
_.K.isShortPlayable=function(){if(_.u("kevlar_playable_short_killswitch"))return!0;var x;return(x=this.playerData)!=null&&x.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.K.setNormalPlaybackSpeed=function(){var x=this,L,D;return _.I(function(S){if(S.nextAddress==1)return S.yield(x.getPlayer().getPlayerPromise(),2);L=S.yieldResult;D=L.getPlaybackRate();D!==1&&(x.storedPlaybackSpeed=D,L.setPlaybackRate(1));_.Y2(S)})};
_.K.restorePlaybackSpeed=function(){var x=this,L;return _.I(function(D){if(D.nextAddress==1)return x.storedPlaybackSpeed===null?D.jumpTo(0):D.yield(x.getPlayer().getPlayerPromise(),3);L=D.yieldResult;L.setPlaybackRate(x.storedPlaybackSpeed);x.storedPlaybackSpeed=null;_.Y2(D)})};
_.K.playerDataChanged=function(){var x=this,L,D,S,Q,J,Z,y,E,P;return _.I(function(v){if(v.nextAddress==1){L=x.getPlayer();(D=x.intersectionObserver)==null||D.disconnect();if(x.playerData){if(((S=x.playerData.videoDetails)==null?void 0:S.videoId)!==((Q=L.getPlayer())==null?void 0:Q.getVideoData().video_id)){J={};if(Z=_.g(x.currentEndpoint,_.TF))J.watch_endpoint=Z,Z.endTimeSeconds&&(J.end=Z.endTimeSeconds);L.loadVideoWithPlayerResponse(x.playerData,J)}}else return v.return();return x.player?v.jumpTo(2):
v.yield(L.getPlayerPromise(),3)}v.nextAddress!=2&&(x.player=v.yieldResult,x.JSC$22414_playerStateChangeListener=x.onPlayerStateChange.bind(x),x.player.addEventListener("onStateChange",x.JSC$22414_playerStateChangeListener),_.u("kevlar_client_enable_shorts_player_bootstrap")&&_.aS(),x.scrollToVideoThrottle.fire(x.index),x.movePlayerToVideo(x.index),_.WW.addLowPriorityJob(function(){x.getShortsLoopSetting().then(function(V){var h;(h=x.player)==null||h.setLoopVideo(V)})}),_.GWB.resolve(x.player),x.player.syncVolume(),
x.getPlayer().focusOnPlayer());
_.WW.addLowPriorityJob(function(){x.observeShorts()},100);
y=x.player.getPlayerState(x.player.getPresentingPlayerType());y!==1||x.isPlayerStarted||_.Jd().dispatch(hlw(!0));x.updateBackNavContainerWidth();E=_.g(x.currentEndpoint,_.TF);((P=E)==null?0:P.startTimeSeconds)&&x.player.seekTo(E.startTimeSeconds);if(x.JSC$22414_cinematicController||x.cinematicsInitializeJobId)return v.return();x.cinematicsInitializeJobId=_.WW.addLowPriorityJob(function(){x.initCinematicController();x.cinematicsInitializeJobId=void 0});
_.Y2(v)})};
_.K.onShortUndoDismiss=function(){var x=this,L=Pqs().pop();L!==void 0&&(_.So(this,function(){x.showCardWithIndex(L)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.K.onShortsDismiss=function(x){if(x=x.detail.reelDismissalActionRenderer)(x=_.g(x.onDismissalCompletionRenderer,_.mh5))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:x}}}),this.scrollAndDismissCard()};
_.K.processReelNonVideoContentDismissalCommand=function(x){var L=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);x=_.g(x,sIU);this.activeDimissalTimeout=setTimeout(function(){L.scrollAndDismissCard()},Number(x==null?void 0:x.delayMs))};
_.K.scrollAndDismissCard=function(){var x=this,L=this.index;Pqs().push(L);_.So(this,function(){var D=x.getPlayableNextIndex();D!==null&&(D=x.getActiveReelVideo(D),x.hideCardWithIndex(L),D==null||D.scrollIntoView({behavior:"smooth",block:"nearest",inline:x.enableScrollIntoViewCenter?"center":"start"}))})};
_.K.hideCardWithIndex=function(x){if(x=this.getActiveReelVideo(x))x.hidden=!0};
_.K.showCardWithIndex=function(x){if(x=this.getActiveReelVideo(x))x.hidden=!1};
_.K.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.K.activeChanged=function(x){_.Jd().dispatch(_.MU({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:x}}));if(x)document.addEventListener("keydown",_.p$(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var L;(L=this.player)==null||L.sendAbandonmentPing()}var D;(D=this.player)==null||D.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.p$(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.K.graftClientVisualElements=function(){if(this.data){var x=_.sk();_.sdr(x,_.V0({response:this.reelWatchSequenceResponse}));_.B5(x,this.nextReelVe);_.B5(x,this.prevReelVe);_.u("kevlar_shorts_auto_advance")&&(_.B5(x,this.loopToggleOffVe),_.B5(x,this.loopToggleOnVe));_.B5(x,this.ambientModeToggleVe);_.t_(_.A3(),[this.nextReelVe,this.prevReelVe]);_.u("web_shorts_paused_state_logging")&&_.B5(x,this.reelPlayerPausedStateRendererVe)}};
_.K.graftNvcRenderer=function(){var x,L,D,S,Q=this.index<0?(x=this.shortsProcessedPrevSequence)==null?void 0:(L=x[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:L.command:(D=this.shortsProcessedSequence)==null?void 0:(S=D[this.index])==null?void 0:S.command;if(Q&&this.isNonVideoContentCommand(Q)){x=_.g(Q,_.O6);var J,Z;(x=(J=_.g(x==null?void 0:x.renderer,_.W1r))==null?void 0:(Z=J.loggingDirectives)==null?void 0:Z.trackingParams)&&_.sk().graftServerVe(x)}};
_.K.setActiveIndex=function(){_.yY().resolve(_.aO).setActiveIndex(this.index)};
_.K.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.K.lazyUpdateMiniplayerData=function(){var x=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.WW.addLowPriorityJob(function(){x.updateMiniplayerData();x.updateMiniplayerDataJobId=void 0}))};
_.K.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.WW.cancelJob(this.updateMiniplayerDataJobId)};
_.K.updateMiniplayerData=function(){var x,L,D,S=_.yY().resolve(_.iy),Q={shortsData:this.getCurrentShort(),previousButtonDisabled:!((x=this.prevButtonData)==null||!x.isDisabled),nextButtonDisabled:!((L=this.nextButtonData)==null||!L.isDisabled),playabilityStatus:(D=this.playerData)==null?void 0:D.playabilityStatus};_.kC(S,Q)};
_.K.resetPlayerLocation=function(){var x=this.getPlayer();this.initialPlayerContainer&&x.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.K.movePlayerToVideo=function(x,L){var D=this;L=L===void 0?!0:L;var S=this.getActiveReelVideo(x),Q=this.getPlayer();if(S){this.overlayContainer?S.appendChild(this.overlayContainer):(this.overlayContainer=_.jr(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,S.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||Q.appendTo(this.overlayContainer.playerContainer,void 0,!0));var J;(J=this.player)==null||J.setSize(NaN,NaN);this.isActive||_.TG(_.WW,function(){D.isActive=
!0});
Q.style.visibility="visible";_.u("reels_web_disable_rtr_tick")||_.u("reels_web_use_pbs_first_shorts")&&x===0||_.$T("r_tr");this.currentPlayerIndex=x;S.appendChild(this.errorScreenContainer);var Z;(Z=this.JSC$22414_cinematicController)==null||_.XCR(Z)}else L?_.WW.addLowPriorityJob(function(){D.movePlayerToVideo(D.index,!1)}):Math.random()<=_.dE("web_shorts_error_logging_threshold")&&_.WI(new _.RZ("Trying to movePlayerToVideo with undefined container.",{firstAttempt:L,
index:x}))};
_.K.enableFormatFirst=function(x){return _.u("web_enable_format_first")||x.adsOverlay&&_.u("web_enable_format_first_ads_only")||x.reelPlayerOverlayRenderer&&_.u("web_enable_format_first_organic_only")};
_.K.getAspectRatio=function(x){if(this.enableFormatFirst(x))return(x==null?0:x.thumbnail)&&DqN(x.thumbnail)?"--ytd-shorts-player-ratio: "+DqN(x.thumbnail):"--ytd-shorts-player-ratio: 0.5625"};
_.K.getBackgroundImage=function(x){if(x!=null&&x.thumbnail)return(x=_.jn(x.thumbnail.thumbnails))?'background-image:url("'+x+'");':"background-color:black;"};
_.K.onPersistentPanelActiveChanged=function(){var x=this.getCurrentShort();if(x&&this.enableFormatFirst(x)&&(x==null?0:x.thumbnail)&&DqN(x.thumbnail)!==.5625){var L;(L=this.player)==null||L.setSize(NaN,NaN)}};
_.K.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.K.moveCinematicsToVideo=function(){var x=_.jr(this.hostElement).querySelector("ytd-reel-video-renderer");(x==null?0:x.cinematicContainer)&&x.cinematicContainer!==this.shortsCinematicContainer.parentElement&&x.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.K.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.K.updatePrevButtonData=function(){var x=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(x){var L;this.prevButtonData=x=Object.assign({},x,{accessibility:{label:_.p6("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:x.isDisabled||this.index===-(((L=this.shortsProcessedPrevSequence)==null?void 0:L.length)||0),tooltip:this.isUpArrowHidden?"":_.p6("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=x=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.K.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.K.updateNextButtonData=function(){var x=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(x){var L;this.nextButtonData=x=Object.assign({},x,{accessibility:{label:_.p6("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:x.isDisabled||this.index===((L=this.shortsProcessedSequence)==null?void 0:L.length),tooltip:_.p6("NEXT_VIDEO_LABEL")||""})}};
_.K.getPlayablePreviousIndex=function(){for(var x,L=this.index-1;L>=-(((x=this.prevShortsSequence)==null?void 0:x.length)||0);L--)if(!Pqs().includes(L))return L;return null};
_.K.getIndexInSequence=function(x,L){return x.findIndex(function(D){var S;return((S=_.g(D.command,_.TF))==null?void 0:S.videoId)===L})};
_.K.handlePrevButtonClick=function(x){var L=this,D,S;return _.I(function(Q){D=L.getPlayablePreviousIndex();if(D===null)return Q.return();L.gestureType=((S=x)==null?void 0:S.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";D===0&&(L.hidePreviousButtonImmediately=!0);if(L.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){L.transitionToVideoThrottle.fire(D)}),Q.return();
L.scrollToVideoThrottle.fire(D);_.Y2(Q)})};
_.K.getPlayableNextIndex=function(){for(var x,L=this.index+1;L<(((x=this.shortsProcessedSequence)==null?void 0:x.length)||0);L++)if(!Pqs().includes(L))return L;return null};
_.K.handleNextButtonClick=function(x,L){var D=this,S,Q;return _.I(function(J){S=D.getPlayableNextIndex();if(S===null)return J.return();S===1&&(D.showPreviousButtonImmediately=!0);D.gestureType=((Q=x)==null?void 0:Q.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";L&&(D.gestureType=L);if(D.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){D.transitionToVideoThrottle.fire(S)}),J.return();
D.scrollToVideoThrottle.fire(S);_.Y2(J)})};
_.K.handleReelNavigateCommand=function(x,L,D){(x=_.g(x,F3i))&&L&&x.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(D)};
_.K.loadVideo=function(x,L){L=L===void 0?!1:L;if(x!==this.currentPlayerIndex){_.Jd().dispatch(hlw(!1));if(this.isAd()&&!L){var D;(D=this.player)==null||D.notifyShortsAdSwipeEvent()}if((L=this.JSC$22414_cinematicController)!=null){var S;(S=L.currentCinematicEffect)==null||S.pause()}if((S=this.JSC$22414_cinematicController)!=null){var Q;(Q=S.currentCinematicEffect)==null||Q.clear()}S=x>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(S));
this.getPlayer().style.visibility="hidden";this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var J,Z,y,E;Q=x<0?(J=this.shortsProcessedPrevSequence)==null?void 0:(Z=J[this.shortsProcessedPrevSequence.length+x])==null?void 0:Z.command:(y=this.shortsProcessedSequence)==null?void 0:(E=y[x])==null?void 0:E.command;this.index=x;this.gestureType||(this.gestureType=S?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");
Q&&this.isVideoContentCommand(Q)&&(this.ytComponentBehavior.resolveCommand(Q,{form:{createScreenConfig:{clickedVisualElement:S?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(Q&&this.isNonVideoContentCommand(Q)){this.currentEndpoint=Q;this.data=void 0;J=_.sk();Z=_.g(Q,_.O6);var P,v;(Z=(P=_.g(Z==null?void 0:Z.renderer,_.W1r))==null?void 0:(v=P.screenLoggingData)==null?void 0:v.screenVeType)&&_.we(J,Z);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&
this.player.pauseVideo();(P=this.getActiveReelVideo(x))&&P.appendChild(this.overlayContainer)}var V,h;if(((V=this.reelWatchSequenceResponse)==null?0:V.continuationEndpoint)&&((h=this.reelWatchSequenceResponse)==null?0:h.entries)&&x===this.reelWatchSequenceResponse.entries.length-1){var H,k;V={contentPlaybackContext:_.GF({},(k=_.g((H=this.currentEndpoint)==null?void 0:H.commandMetadata,_.gg))==null?void 0:k.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,
{form:V})}var T,G,U;((T=this.reelWatchSequenceResponse)==null?0:T.prevContinuationEndpoint)&&x===-(((G=this.reelWatchSequenceResponse)==null?void 0:(U=G.prevEntries)==null?void 0:U.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.K.setMiniplayerPreview=function(x){x=(x===void 0?0:x)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var L,D,S=_.yY().resolve(_.iy),Q={shortsData:void 0,shortsPreviewThumbnail:x?(L=this.shortsProcessedSequence)==null?void 0:(D=L[x])==null?void 0:D.thumbnail:void 0};_.kC(S,Q)};
_.K.updateTitle=function(x){var L,D;x=(x==null?0:x.adSlots)?"":(D=x==null?void 0:(L=x.videoDetails)==null?void 0:L.title)!=null?D:"";_.MF(this.hostElement,"yt-update-title",x)};
_.K.registerPanel=function(x){var L=_.yY().resolve(_.Dk);if(L){x=_.O(x.engagementPanels||[]);for(var D=x.next();!D.done;D=x.next()){D=D.value;var S=this.getPanelContentIdentifier(D.engagementPanelSectionListRenderer),Q=void 0,J=void 0;(J=(Q=L).registerPanelContent)==null||J.call(Q,S,D)}}};
_.K.getPanelIdentifier=function(x){var L;return(x==null?void 0:(L=x.identifier)==null?void 0:L.tag)||(x==null?void 0:x.panelIdentifier)||(x==null?void 0:x.targetId)};
_.K.getPanelContentIdentifier=function(x){var L;return(x==null?void 0:x.targetId)||(x==null?void 0:x.panelIdentifier)||(x==null?void 0:(L=x.identifier)==null?void 0:L.tag)};
_.K.processResetAction=function(){this.currentPlayerIndex=this.index=0;this.playerData=this.player=void 0;this.unregisterPanels();this.currentEndpoint=this.reelWatchSequenceResponse=this.data=void 0;this.endOfNextContinuation=this.isPersistentPanelActive=this.anchoredPanelActive=!1;_.Jd().dispatch(hlw(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();this.shortsContainer.scrollTop=0;this.firstShortsData=void 0;_.Jd().dispatch(vXv(!1));var x=_.yY().resolve(_.aO);x.dismissedIndices=[];x.watchWhileIndices.clear();
this.isShortsMiniplayerActive()&&_.yY().resolve(_.iy).close(!0)};
_.K.processAppendReelWatchSequenceContinuationEntriesAction=function(x){var L=this,D;(D=this.intersectionObserver)==null||D.disconnect();x=x.appendReelWatchSequenceContinuationEntriesAction;if(x==null?0:x.entries){var S;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.lP(((S=this.reelWatchSequenceResponse)==null?void 0:S.entries)||[]),_.lP(x.entries)),continuationEndpoint:x.continuationEndpoint})}else if(x==null?0:x.prevEntries){var Q;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.lP(((Q=this.reelWatchSequenceResponse)==null?void 0:Q.prevEntries)||[]),_.lP(x.prevEntries)),prevContinuationEndpoint:x.prevContinuationEndpoint});_.WW.addLowPriorityJob(function(){L.movePlayerToVideo(L.index);var J;(J=L.getActiveReelVideo(L.index))==null||J.scrollIntoView({block:"nearest",inline:L.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.WW.addLowPriorityJob(function(){L.observeShorts()},100)};
_.K.processWatchSequence=function(x){var L=this;return x.map(function(D){D=D.command;if(L.isVideoContentCommand(D)){var S=_.g(D,_.TF);return{reelPlayerOverlayRenderer:_.g(S==null?void 0:S.overlay,_.q6G),thumbnail:S.thumbnail,command:D}}return L.isNonVideoContentCommand(D)?(S=_.g(D,_.O6),{reelNonVideoContentRenderer:_.g(S==null?void 0:S.renderer,_.W1r),command:D}):{command:D}})};
_.K.calculateIntersectionObserverThreshold=function(){var x=_.jr(this.hostElement).querySelector("ytd-reel-video-renderer"),L=1;(x==null?0:x.offsetHeight)&&(x==null?0:x.offsetWidth)&&(L=Math.min(x.offsetHeight,this.shortsContainer.offsetHeight)/x.offsetHeight*(Math.min(x.offsetWidth,this.shortsContainer.offsetWidth)/x.offsetWidth));return Math.round(L*.6*10)/10};
_.K.isVideoContentCommand=function(x){_.yY().resolve(_.aO);return!!_.g(x,_.TF)};
_.K.isNonVideoContentCommand=function(x){_.yY().resolve(_.aO);return!!_.g(x,_.O6)};
_.K.initCinematicController=function(){var x=this;if(this.player&&this.shortsCinematicContainer){this.JSC$22414_cinematicController=new _.kL(this.shortsCinematicContainer,this.player);var L,D=_.g((L=this.data)==null?void 0:L.background,_.SX);_.zdN(this.JSC$22414_cinematicController,D);_.ahz(this.JSC$22414_cinematicController,xqw(D));_.oHi(this.JSC$22414_cinematicController);_.WW.addLowPriorityJob(function(){x.moveCinematicsToVideo()})}};
_.K.handleMiniplayerNavigateShorts=function(x){x==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():x==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.K.handleSignalActionToggleShortsPictureInPicture=function(){if(_.yY().resolve(_.iy).pictureInPictureSupported()){var x=_.yY().resolve(_.aO);if(_.u("web_shorts_pip")){var L=_.yY().resolve(_.iy);x.isShortsPipActive()?L.deactivate():L.isMiniplayerActive()||(_.ie().shortsPipActivation=!0,_.lK$(L))}}else(x=this.player)==null||x.togglePictureInPicture()};
_.J3.Object.defineProperties(Rz.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var x;if((x=this.reelWatchSequenceResponse)!=null&&x.prevEntries)return this.processWatchSequence([].concat(_.lP(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){if(_.u("web_enable_shorts_sequence_refactor"))return this.index>0?this.shortsProcessedPrevSequence:this.shortsProcessedPrevSequence&&this.prevShortsSequence&&this.shortsProcessedPrevSequence.length===this.prevShortsSequence.length?this.shortsProcessedPrevSequence:[].concat(_.lP(this.prevShortsSequence));var x=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!x)return this.shortsProcessedPrevSequence;
if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var L=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.lP(this.prevShortsSequence.slice(0,L)),[x],_.lP(this.prevShortsSequence.slice(L+1)))}L=this.index+this.shortsProcessedPrevSequence.length;x.thumbnail=this.shortsProcessedPrevSequence[L].thumbnail;return[].concat(_.lP(this.shortsProcessedPrevSequence.slice(0,L)),[x],_.lP(this.shortsProcessedPrevSequence.slice(L+
1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var x;if((x=this.reelWatchSequenceResponse)!=null&&x.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){var x=this;if(_.u("web_enable_shorts_sequence_refactor")){if(this.firstShortsData){if(!this.shortsSequence)return[this.firstShortsData];var L;if(this.index<0||this.shortsProcessedSequence&&this.shortsSequence&&((L=this.shortsProcessedSequence)==null?void 0:L.length)>this.shortsSequence.length)return this.shortsProcessedSequence;var D,S=_.g((D=this.firstShortsData)==null?void 0:D.command,_.TF);if(S==null||!S.videoId)return this.shortsProcessedSequence;
S=this.getIndexInSequence(this.shortsSequence,S.videoId);if(S!==-1){if(this.shortsProcessedSequence&&this.shortsSequence&&this.shortsProcessedSequence.length===this.shortsSequence.length)return this.shortsProcessedSequence;this.index===0&&(this.currentPlayerIndex=this.index=S,_.WW.addLowPriorityJob(function(){x.transitionToVideoThrottle.fire(x.index);x.movePlayerToVideo(x.index)}));
return[].concat(_.lP(this.shortsSequence))}return[this.firstShortsData].concat(_.lP(this.shortsSequence))}}else if(this.data||this.shortsSequence){D=this.getCurrentShort();if(!D||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[D];if(D==null||!D.reelNonVideoContentRenderer)if(L=this.getIndexInSequence(this.shortsSequence,_.g(this.currentEndpoint,_.TF).videoId),this.index===0&&L!==-1)return this.currentPlayerIndex=this.index=L,this.scrollToVideoThrottle.fire(this.index),
this.movePlayerToVideo(this.index),[].concat(_.lP(this.shortsSequence.slice(0,this.index)),[D],_.lP(this.shortsSequence.slice(this.index+1)));if(this.shortsProcessedSequence){D.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var Q,J,Z;L=((Q=_.g((S=this.shortsProcessedSequence[0])==null?void 0:S.command,_.TF))==null?void 0:Q.videoId)===((Z=_.g((J=this.shortsSequence[0])==null?void 0:J.command,_.TF))==null?void 0:Z.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.lP(this.shortsProcessedSequence.slice(0,
this.index)),[D],_.lP(this.shortsSequence.slice(L)))}return[D].concat(_.lP(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var x=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;x&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(x)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 x,L;return this.index===((x=this.reelWatchSequenceResponse)==null?void 0:(L=x.entries)==null?void 0:L.length)}var D;return!((D=this.reelWatchSequenceResponse)==null?0:D.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var x;(x=this.delayedActiveIndexUpdateDebouncer)==null||x.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var x,L,D;return this.isShortPlayable()||((L=_.g((x=this.data)==null?void 0:x.watchStatus,_.zeG))==null?void 0:(D=L.style)==null?void 0:D.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var x=this,L=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),D;if((this.data||L)&&(((D=this.data)==null?0:D.engagementPanels)||this.isAd()||L)){L=!1;this.activePanel="shorts-comments-panel";var S;D=_.O(((S=this.data)==null?void 0:S.engagementPanels)||[]);for(S=D.next();!S.done;S=D.next())if(this.getPanelIdentifier(S.value.engagementPanelSectionListRenderer)===this.activePanel){L=!0;break}if(this.isPersistentPanelActive){var Q=
_.yY().resolve(_.Dk);_.TG(_.WW,function(){Q.showPanel({identifier:x.activePanel,target:null})},100)}var J;
S=[].concat(_.lP(Object.values(((J=this.data)==null?void 0:J.engagementPanels)||{})));if(_.u("enable_preview_panel_for_shorts_search_suggested_action")){var Z,y,E,P,v;((P=_.g((Z=this.data)==null?void 0:(y=Z.overlay)==null?void 0:(E=y.reelPlayerOverlayRenderer)==null?void 0:E.metapanel,_.Be_))==null?void 0:(v=P.metadataItems)==null?void 0:v.find(function(V){var h,H;return((h=_.g(V,elv))==null?void 0:(H=h.icon)==null?void 0:H.iconType)==="SEARCH"}))!==void 0&&S.push({engagementPanelSectionListRenderer:{identifier:{tag:"PAsearch_preview"},
targetId:"PAsearch_preview"}})}J=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);Z=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return J===void 0&&Z===void 0||(J==null?0:J.isDisabled)||(Z==null?void 0:Z.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!L?(L=S==null?void 0:S.findIndex(function(V){var h,
H;return((h=V.engagementPanelSectionListRenderer)==null?void 0:(H=h.identifier)==null?void 0:H.tag)==="shorts-comments-panel"}),L===-1||L===void 0||S!=null&&S.splice(L,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.p6("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.p6("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:_.p6("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.p6("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(_.lP(Object.values(S||
{})))):S}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.shortsProcessedSequence)==null?void 0:x[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var x=this,L,D,S;if((L=this.playerData)==null?0:(D=L.playabilityStatus)==null?0:(S=D.errorScreen)==null?0:S.playerInterstitialRenderer)return _.WW.addLowPriorityJob(function(){x.movePlayerToVideo(x.index)}),this.playerData.playabilityStatus.errorScreen;
var Q,J;return((Q=this.data)==null?void 0:Q.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((J=this.data)==null?0:J.watchStatus)&&_.g(this.data.watchStatus,_.hj2)?(_.WW.addLowPriorityJob(function(){x.movePlayerToVideo(x.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.J3.Object.defineProperties(Rz,{template:{configurable:!0,enumerable:!0,get:function(){if(GgU===void 0){var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);GgU=x}x=GgU;return x}}});
Rz.prototype.onNextButtonDataChange=Rz.prototype.onNextButtonDataChange;Rz.prototype.onPrevButtonDataChange=Rz.prototype.onPrevButtonDataChange;Rz.prototype.onPersistentPanelActiveChanged=Rz.prototype.onPersistentPanelActiveChanged;Rz.prototype.lazyUpdateMiniplayerData=Rz.prototype.lazyUpdateMiniplayerData;Rz.prototype.onShortsPipActiveChanged=Rz.prototype.onShortsPipActiveChanged;Rz.prototype.setActiveIndex=Rz.prototype.setActiveIndex;Rz.prototype.graftNvcRenderer=Rz.prototype.graftNvcRenderer;
Rz.prototype.graftClientVisualElements=Rz.prototype.graftClientVisualElements;Rz.prototype.onActiveChanged=Rz.prototype.onActiveChanged;Rz.prototype.onShortsDismiss=Rz.prototype.onShortsDismiss;Rz.prototype.onShortUndoDismiss=Rz.prototype.onShortUndoDismiss;Rz.prototype.playerDataChanged=Rz.prototype.playerDataChanged;Rz.prototype.afterPlayerStarted=Rz.prototype.afterPlayerStarted;Rz.prototype.updateReelWatchSequenceResponse=Rz.prototype.updateReelWatchSequenceResponse;
Rz.prototype.unhideCurrentOverlay=Rz.prototype.unhideCurrentOverlay;Rz.prototype.onServiceRequestCompleted=Rz.prototype.onServiceRequestCompleted;Rz.prototype.engagementPanelsChanged=Rz.prototype.engagementPanelsChanged;Rz.prototype.onFullscreenChange=Rz.prototype.onFullscreenChange;Rz.prototype.onResize=Rz.prototype.onResize;Rz.prototype.setFirstShortsData=Rz.prototype.setFirstShortsData;_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],Rz.prototype,"ytComponentBehavior",void 0);
_.A([_.b(_.KQ.YtPageBehavior),_.r("design:type",Object)],Rz.prototype,"ytPageBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],Rz.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.XO),_.r("design:type",Object)],Rz.prototype,"ironResizableBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Rz.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.dK),_.r("design:type",Object)],Rz.prototype,"ytdDismissibleItemBehavior",void 0);
_.A([_.b(_.Vi.YtdGuideStateAwareBehavior),_.r("design:type",Object)],Rz.prototype,"ytdGuideStateAwareBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],Rz.prototype,"ytdReduxBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Rz.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],Rz.prototype,"playerData",void 0);_.A([_.F(),_.r("design:type",Object)],Rz.prototype,"reelWatchSequenceResponse",void 0);
_.A([_.F(),_.r("design:type",Object)],Rz.prototype,"cachedReelWatchSequenceResponse",void 0);_.A([_.F(),_.r("design:type",Object)],Rz.prototype,"cachedSequenceParams",void 0);_.A([_.F(),_.r("design:type",Object)],Rz.prototype,"cachedSequenceProvider",void 0);_.A([_.F(),_.r("design:type",Object)],Rz.prototype,"currentEndpoint",void 0);_.A([_.F(),_.r("design:type",Object)],Rz.prototype,"nextButtonData",void 0);_.A([_.F(),_.r("design:type",Object)],Rz.prototype,"prevButtonData",void 0);
_.A([_.F(),_.r("design:type",Object)],Rz.prototype,"isPreviousPageShorts",void 0);_.A([_.F(),_.r("design:type",Object)],Rz.prototype,"index",void 0);_.A([_.F(),_.r("design:type",Object)],Rz.prototype,"delayedActiveIndex",void 0);_.A([_.F(),_.r("design:type",Object)],Rz.prototype,"playablePreviousIndex",void 0);_.A([_.F(),_.r("design:type",Object)],Rz.prototype,"player",void 0);_.A([_.F(),_.r("design:type",Object)],Rz.prototype,"isPlayerPaused",void 0);
_.A([_.F({selector:QIR}),_.r("design:type",Object)],Rz.prototype,"isPlayerStarted",void 0);_.A([_.F(),_.r("design:type",Object)],Rz.prototype,"intersectionObserver",void 0);_.A([_.F(),_.r("design:type",Number)],Rz.prototype,"cinematicsInitializeJobId",void 0);_.A([_.F(),_.r("design:type",Number)],Rz.prototype,"updateMiniplayerDataJobId",void 0);_.A([_.F(),_.r("design:type",Object)],Rz.prototype,"fitToVisibleBounds",void 0);_.A([_.F(),_.r("design:type",Object)],Rz.prototype,"pageSubtype",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],Rz.prototype,"enablePreviousContinuation",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Rz.prototype,"shortsPipEnabled",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Rz.prototype,"isDark",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Rz.prototype,"shortsViewTransitions",void 0);
_.A([_.F({selector:_.IS,reflectToAttribute:!0}),_.r("design:type",Object)],Rz.prototype,"isFullscreen",void 0);_.A([_.F({selector:_.E3,reflectToAttribute:!0}),_.r("design:type",Object)],Rz.prototype,"isShortsPipActive",void 0);_.A([_.F1("#shorts-inner-container"),_.r("design:type",HTMLElement)],Rz.prototype,"shortsInnerContainer",void 0);_.A([_.F1("#back-nav-button ytd-button-renderer"),_.r("design:type",_.TM)],Rz.prototype,"backNavButton",void 0);
_.A([_.F1("#shorts-container"),_.r("design:type",HTMLElement)],Rz.prototype,"shortsContainer",void 0);_.A([_.zt("error-screen"),_.r("design:type",HTMLElement)],Rz.prototype,"errorScreenContainer",void 0);_.A([_.zt("player"),_.r("design:type",Object)],Rz.prototype,"playerElement",void 0);_.A([_.zt("shorts-cinematic-container"),_.r("design:type",HTMLElement)],Rz.prototype,"shortsCinematicContainer",void 0);
_.A([_.zt("initial-player-container"),_.r("design:type",HTMLElement)],Rz.prototype,"initialPlayerContainer",void 0);_.A([_.F(),_.r("design:type",Object)],Rz.prototype,"buttonOverride",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Rz.prototype,"anchoredPanelActive",void 0);_.A([_.F(),_.r("design:type",String)],Rz.prototype,"activePanel",void 0);_.A([_.F(),_.r("design:type",Object)],Rz.prototype,"isActive",void 0);
_.A([_.F({selector:SuQ,reflectToAttribute:!0}),_.r("design:type",Object)],Rz.prototype,"smallScreenPersistentPanel",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Rz.prototype,"isPersistentPanelActive",void 0);_.A([_.F(),_.r("design:type",Object)],Rz.prototype,"smallScreenSqueezeBack",void 0);_.A([_.F(),_.r("design:type",Object)],Rz.prototype,"enableScrollIntoViewCenter",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Rz.prototype,"formatFirst",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Rz.prototype,"enableFlexibleOverlay",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Rz.prototype,"extractOverlay",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Rz.prototype,"useAspectRatio",void 0);_.A([_.F(),_.r("design:type",Object)],Rz.prototype,"panelContainer",void 0);_.A([_.F(),_.r("design:type",Object)],Rz.prototype,"overlayContainer",void 0);
_.A([_.F(),_.r("design:type",Object)],Rz.prototype,"isShortsInitialized",void 0);_.A([_.F(),_.r("design:type",Object)],Rz.prototype,"firstShortsData",void 0);_.A([_.Y("reelWatchSequenceResponse"),_.r("design:type",Object),_.r("design:paramtypes",[])],Rz.prototype,"prevShortsSequence",null);_.A([_.Y("data","prevShortsSequence"),_.r("design:type",Object),_.r("design:paramtypes",[])],Rz.prototype,"shortsProcessedPrevSequence",null);
_.A([_.Y("reelWatchSequenceResponse"),_.r("design:type",Object),_.r("design:paramtypes",[])],Rz.prototype,"shortsSequence",null);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Rz.prototype,"setFirstShortsData",null);_.A([_.Y("data","shortsSequence","firstShortsData"),_.r("design:type",Object),_.r("design:paramtypes",[])],Rz.prototype,"shortsProcessedSequence",null);
_.A([_.F({reflectToAttribute:!0}),_.Y("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Rz.prototype,"isUpArrowHidden",null);_.A([_.F({reflectToAttribute:!0}),_.Y("reelWatchSequenceResponse","index","endOfNextContinuation"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Rz.prototype,"isDownArrowHidden",null);
_.A([_.F(),_.Y("index"),_.r("design:type",Number),_.r("design:paramtypes",[])],Rz.prototype,"activeIndex",null);_.A([_.Y("isShortPlayable","data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Rz.prototype,"shouldRenderOfflineContent",null);_.A([_.mX("iron-resize"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Rz.prototype,"onResize",null);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Rz.prototype,"anchoredEngagementPanels",null);
_.A([_.F(),_.r("design:type",Object)],Rz.prototype,"watchWhileEngagementPanels",void 0);_.A([_.bN("isFullscreen"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Rz.prototype,"onFullscreenChange",null);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Rz.prototype,"engagementPanelsChanged",null);
_.A([_.mX("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.S2]),_.r("design:returntype")],Rz.prototype,"onServiceRequestCompleted",null);_.A([_.Y("data","shortsSequence","index"),_.r("design:type",Object),_.r("design:paramtypes",[])],Rz.prototype,"activeReel",null);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Rz.prototype,"unhideCurrentOverlay",null);
_.A([_.bN("currentEndpoint"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Rz.prototype,"updateReelWatchSequenceResponse",null);_.A([_.bN("isPlayerStarted"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Rz.prototype,"afterPlayerStarted",null);_.A([_.Y("playerData","reelWatchSequenceResponse","data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Rz.prototype,"errorScreen",null);
_.A([_.Y("errorScreen"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Rz.prototype,"hasError",null);_.A([_.bN("playerData"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype",Promise)],Rz.prototype,"playerDataChanged",null);_.A([_.mX("yt-dismissible-item-undo-feedback"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Rz.prototype,"onShortUndoDismiss",null);
_.A([_.mX("yt-disable-lockup-interaction"),_.r("design:type",Function),_.r("design:paramtypes",[Object]),_.r("design:returntype")],Rz.prototype,"onShortsDismiss",null);_.A([_.GV("active"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Rz.prototype,"onActiveChanged",null);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Rz.prototype,"graftClientVisualElements",null);
_.A([_.bN("currentPlayerIndex"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Rz.prototype,"graftNvcRenderer",null);_.A([_.bN("index"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Rz.prototype,"setActiveIndex",null);_.A([_.bN("isShortsPipActive"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Rz.prototype,"onShortsPipActiveChanged",null);
_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Rz.prototype,"lazyUpdateMiniplayerData",null);_.A([_.F(),_.r("design:type",Object)],Rz.prototype,"onOverlayDensityChanged",void 0);_.A([_.bN("isPersistentPanelActive"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Rz.prototype,"onPersistentPanelActiveChanged",null);
_.A([_.bN("index","data","isUpArrowHidden"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Rz.prototype,"onPrevButtonDataChange",null);_.A([_.bN("index","data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Rz.prototype,"onNextButtonDataChange",null);_.A([_.w({is:"ytd-shorts"})],Rz);_.Wy.registerService(_.TR3,Rz);
_.Wf();
}catch(e){_._DumpException(e)}
try{
_.Bf("JzFVk");
var apQ;var zO5;var DC=function(){return _.e.apply(this,arguments)||this};
_.p(DC,_.e);DC.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
DC.prototype.computeBlueBottomLink=function(x){return x};
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],DC.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],DC.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],DC.prototype,"data",void 0);_.A([_.F({computed:"computeIcon_(data.bottomIcon)"}),_.r("design:type",String)],DC.prototype,"bottomIcon",void 0);
_.A([_.F({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.r("design:type",Boolean)],DC.prototype,"enableBlueBottomLink",void 0);_.A([_.w({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],DC);
_.q(DC,"ytd-web-answer-renderer",function(){if(zO5!==void 0)return zO5;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return zO5=x},{mode:_.Vm("kevlar_poly_si_batch_j035")?1:2});var X4i;var Sj=function(){var x=_.e.apply(this,arguments)||this;x.hasChipBar=!1;return x};
_.p(Sj,_.e);Sj.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}}};
Sj.prototype.computeHasChipBar=function(x){return!(x==null||!x.chipBar)};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Sj.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Sj.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Sj.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.r("design:type",Object)],Sj.prototype,"hasChipBar",void 0);_.A([_.w({is:"ytd-search-header-renderer",disableElementRegistration:!0})],Sj);
_.q(Sj,"ytd-search-header-renderer",function(){if(X4i!==void 0)return X4i;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return X4i=x},{mode:1});var cGU;var Q2=function(){return _.e.apply(this,arguments)||this};
_.p(Q2,_.e);Q2.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Q2.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Q2.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Q2.prototype,"data",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-page-continuation"})],Q2);
_.q(Q2,"ytd-page-continuation",function(){if(cGU!==void 0)return cGU;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return cGU=x},{mode:1});var nfQ;var t0R;var xhi;var L_e=function(){return _.e.apply(this,arguments)||this};
_.p(L_e,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],L_e.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],L_e.prototype,"data",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],L_e);
_.q(L_e,"ytd-watch-card-one-vs-one-event",function(){if(xhi!==void 0)return xhi;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return xhi=x},{mode:1});var DhQ=function(){return _.e.apply(this,arguments)||this};
_.p(DhQ,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],DhQ.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],DhQ.prototype,"data",void 0);_.A([_.w({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],DhQ);
_.q(DhQ,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(t0R!==void 0)return t0R;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return t0R=x},{mode:1});var SRU;var Qiz=function(){return _.e.apply(this,arguments)||this};
_.p(Qiz,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Qiz.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Qiz.prototype,"data",void 0);_.A([_.w({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],Qiz);
_.q(Qiz,"ytd-banner-and-box-hero-image-renderer",function(){if(SRU!==void 0)return SRU;var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return SRU=x},{mode:1});var Jr5;var J$=function(){var x=_.e.apply(this,arguments)||this;x.modern=_.u("web_modern_buttons");return x};
_.p(J$,_.e);J$.prototype.computeIcon=function(){var x,L,D=(x=this.data)==null?void 0:(L=x.icon)==null?void 0:L.iconType;if(D)return _.gB(D)};
J$.prototype.computeButtonShape=function(){var x;return{buttonText:_.SR((x=this.data)==null?void 0:x.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.J3.Object.defineProperties(J$.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"}}});
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],J$.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],J$.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],J$.prototype,"modern",void 0);_.A([_.F({type:_.u("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.Y("data.style"),_.r("design:type",Object),_.r("design:paramtypes",[])],J$.prototype,"buttonColor",null);
_.A([_.w({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],J$);
_.q(J$,"ytd-call-to-action-button-renderer",function(){if(Jr5!==void 0)return Jr5;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Jr5=x},{mode:1});var K_z;var Kc=function(){return _.e.apply(this,arguments)||this};
_.p(Kc,_.e);Kc.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.jr(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.PD(this.data.leftThumbnail.thumbnails,216)+")")};
Kc.prototype.onLeftThumbnailChanged=Kc.prototype.onLeftThumbnailChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Kc.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Kc.prototype,"data",void 0);_.A([_.bN("data.leftThumbnail"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Kc.prototype,"onLeftThumbnailChanged",null);_.A([_.w({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],Kc);
_.q(Kc,"ytd-collage-hero-image-renderer",function(){if(K_z!==void 0)return K_z;var x=document.createElement("template");_.m(x,'\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>');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return K_z=x},{mode:1});var O2U;var OP=function(){return _.e.apply(this,arguments)||this};
_.p(OP,_.e);OP.prototype.computeStyle=function(x){return x};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],OP.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],OP.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.r("design:type",String)],OP.prototype,"componentStyle",void 0);_.A([_.w({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],OP);
_.q(OP,"ytd-single-hero-image-renderer",function(){if(O2U!==void 0)return O2U;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return O2U=x},{mode:1});var Z25;var ZC=function(){return _.e.apply(this,arguments)||this};
_.p(ZC,_.e);_.K=ZC.prototype;
_.K.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:_.u("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.K.computeSubtitle=function(x){if(this.data){var L;if(this.data.upcomingEventData){x=_.SR(x.subtitle);var D=Number(this.data.upcomingEventData.startTime);isNaN(D)||(L=_.Dv(_.CX(x,D)))}else L=x.subtitle;return L}};
_.K.onHeroTap=function(x){x.preventDefault();var L=this.data&&this.data.navigationEndpoint;!L||!_.QC(_.Jq(x),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.QC(_.Jq(x),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.u("kevlar_watchcard_hero_video_renderer_killswitch")?_.MF(this.hostElement,"yt-navigate",{navigationEndpoint:L}):this.ytComponentBehavior.resolveCommand(L))};
_.K.computeHeroTabIndex=function(x){return x&&x.simpleText?-1:0};
_.K.computeHeroRole=function(x){return x&&x.simpleText?"":"link"};
_.K.computeIsReminderButtonPresent=function(x){return!(!x||!x.reminderButton)};
_.K.computeHideBottomItems=function(x){return!(this.computeIsReminderButtonPresent(x)||x.subtitle)};
_.K.dataChanged=function(){var x=this.get("data.buttons.buttonRenderer.serviceEndpoint"),L;((L=_.g(x==null?void 0:x.commandMetadata,_.of))==null?0:L.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(x)};
ZC.prototype.dataChanged=ZC.prototype.dataChanged;_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],ZC.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],ZC.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],ZC.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],ZC.prototype,"data",void 0);
_.A([_.F({computed:"computeSubtitle(data)"}),_.r("design:type",String)],ZC.prototype,"subtitle",void 0);_.A([_.F({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],ZC.prototype,"isReminderButtonPresent",void 0);_.A([_.F({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],ZC.prototype,"hideBottomItems",void 0);
_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ZC.prototype,"dataChanged",null);_.A([_.w({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],ZC);
_.q(ZC,"ytd-watch-card-hero-video-renderer",function(){if(Z25!==void 0)return Z25;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Z25=x},{mode:1});var yrs;var y2=function(){return _.e.apply(this,arguments)||this};
_.p(y2,_.e);_.K=y2.prototype;_.K.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"}}}};
_.K.computeTitleBadges=function(x){return x?[x]:[]};
_.K.computeHeaderStyle=function(x){return x?x.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.K.computeAvatarAriaLabel=function(x){if(x){var L,D,S,Q;return(Q=(L=x.avatar)==null?void 0:(D=L.accessibility)==null?void 0:(S=D.accessibilityData)==null?void 0:S.label)!=null?Q:_.SR(x==null?void 0:x.title)}};
_.K.computeAvatarHeight=function(x){return x==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.K.computeBadgeRowClass=function(x){return(x==null?0:x[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],y2.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],y2.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],y2.prototype,"data",void 0);_.A([_.F({computed:"computeTitleBadges(data.titleBadge)"}),_.r("design:type",Array)],y2.prototype,"titleBadges",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.r("design:type",String)],y2.prototype,"headerStyle",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.r("design:type",String)],y2.prototype,"badgeRowClass",void 0);_.A([_.w({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],y2);
_.q(y2,"ytd-watch-card-rich-header-renderer",function(){if(yrs!==void 0)return yrs;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return yrs=x},{mode:1});var IhR;var EHs;var Iz=function(){return _.e.apply(this,arguments)||this};
_.p(Iz,_.e);Iz.prototype.onMetadataTap=function(x){var L=this.data&&this.data.navigationEndpoint;L&&!_.QC(_.Jq(x),this.hostElement,["A".toString()])&&_.MF(this.hostElement,"yt-navigate",{endpoint:L})};
_.J3.Object.defineProperties(Iz.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 x;if(this.data.upcomingEventData){var L=_.SR(this.data.subtitle),D=Number(this.data.upcomingEventData.startTime);isNaN(D)||(x=_.Dv(_.CX(L,D)))}else x=this.data.subtitle;return x}}}});
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Iz.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Iz.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.Y("data.style"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Iz.prototype,"isCondensed",null);_.A([_.F({reflectToAttribute:!0}),_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Iz.prototype,"subtitle",null);
_.A([_.w({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],Iz);
_.q(Iz,"ytd-watch-card-compact-video-renderer",function(){if(EHs!==void 0)return EHs;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return EHs=x},{mode:1});var MW5;var dhi=function(){return _.e.apply(this,arguments)||this};
_.p(dhi,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],dhi.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],dhi.prototype,"data",void 0);_.A([_.w({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],dhi);
_.q(dhi,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(MW5!==void 0)return MW5;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return MW5=x},{mode:1});var EP=function(){return _.e.apply(this,arguments)||this};
_.p(EP,_.e);EP.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}}}}};
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],EP.prototype,"ytRendererStamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],EP.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],EP.prototype,"data",void 0);_.A([_.w({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],EP);
_.q(EP,"ytd-vertical-watch-card-list-renderer",function(){if(IhR!==void 0)return IhR;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return IhR=x},{mode:1});var PGQ;var MD=function(){var x=_.e.apply(this,arguments)||this;x.ariaExpanded="false";return x};
_.p(MD,_.e);_.K=MD.prototype;_.K.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.K.dataChanged=function(){var x;this.currentSeasonIndex=((x=this.data)==null?void 0:x.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.K.computeEpisodesInfo=function(x,L,D){if(x!==void 0&&L.length===x.length)return x[D]};
_.K.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.K.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.K.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.K.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.K.getUppercaseSimpleString=function(x){return this.ytRendererBehavior.getSimpleString(x).toUpperCase()};
_.K.updateCurrentSeasonIndexFromBinding=function(x){this.currentSeasonIndex=x.detail.value};
MD.prototype.onIronOverlayClosed=MD.prototype.onIronOverlayClosed;MD.prototype.currentSeasonIndexChanged=MD.prototype.currentSeasonIndexChanged;MD.prototype.dataChanged=MD.prototype.dataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],MD.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],MD.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],MD.prototype,"data",void 0);
_.A([_.F(),_.r("design:type",String)],MD.prototype,"label",void 0);_.A([_.F({value:0}),_.r("design:type",Number)],MD.prototype,"currentSeasonIndex",void 0);_.A([_.F({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.r("design:type",Object)],MD.prototype,"episodesInfo",void 0);_.A([_.F({value:"false"}),_.r("design:type",Object)],MD.prototype,"ariaExpanded",void 0);_.A([_.F1("#lists"),_.r("design:type",Object)],MD.prototype,"lists",void 0);
_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],MD.prototype,"dataChanged",null);_.A([_.GV("currentSeasonIndex"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],MD.prototype,"currentSeasonIndexChanged",null);_.A([_.mX("iron-overlay-closed"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],MD.prototype,"onIronOverlayClosed",null);
_.A([_.w({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],MD);
_.q(MD,"ytd-watch-card-section-dropdown-renderer",function(){if(PGQ!==void 0)return PGQ;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return PGQ=x},{mode:1});var jiN;var d3=function(){var x=_.e.apply(this,arguments)||this;x.isSearch=!1;return x};
_.p(d3,_.e);d3.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}}}}};
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],d3.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],d3.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],d3.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],d3.prototype,"isSearch",void 0);_.A([_.w({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],d3);
_.q(d3,"ytd-watch-card-section-sequence-renderer",function(){if(jiN!==void 0)return jiN;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);
return jiN=x},{mode:1});var vHi=_.B(function(x){return _.M("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},_.M(_.Fj,{data:function(){return x.data().ctaButton}},{buttonViewModel:_.qP}),_.M(_.kP,{text:function(){return x.data().subtext},
className:"ytwYtdButtonBannerViewModelSubtext"}))},"Dm");
vHi.idomCompat=!0;_.dF(vHi,"ytd-button-banner-view-model",{props:{data:_.pJ}});var Pr=function(){var x=_.e.apply(this,arguments)||this;x.isSearch=!1;return x};
_.p(Pr,_.e);
Pr.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"}}}};
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Pr.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Pr.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Pr.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0,value:!0}),_.r("design:type",Boolean)],Pr.prototype,"rounded",void 0);_.A([_.F(),_.r("design:type",Object)],Pr.prototype,"isSearch",void 0);
_.A([_.w({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],Pr);
_.q(Pr,"ytd-universal-watch-card-renderer",function(){if(nfQ!==void 0)return nfQ;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return nfQ=x},{mode:1});var VWQ;_.dF(_.B(function(x){var L=x.data;var D;x=!((D=_.yY().resolve(_.ZN(_.Dt)))==null||!D());D={};return _.M("overview-message-view-model",{class:_.gF("ytwOverviewMessageViewModelHost",(D.ytwOverviewMessageViewModelDarkBackground=x,D.ytwOverviewMessageViewModelLightBackground=!x,D))},_.M(_.d,{cond:function(){return L().primaryImage},
then:function(S){return _.M(_.Ku,{data:S,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.M(_.d,{cond:function(){return L().primaryText},
then:function(){return _.M("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.M(_.kP,{text:function(){return L().primaryText}}))}}),_.M(_.d,{cond:function(){return L().secondaryText},
then:function(){return _.M("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.M(_.kP,{text:function(){return L().secondaryText}}))}}))},"Em"),"overview-message-view-model",{props:{data:_.pJ}});_.dF(_.EL2,"ytd-overview-answer-view-model",{props:{data:_.pJ}});var jj=function(){return _.e.apply(this,arguments)||this};
_.p(jj,_.e);jj.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"}}}};
jj.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],jj.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],jj.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.HS),_.r("design:type",Object)],jj.prototype,"ytContinuationHandlerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],jj.prototype,"data",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],jj.prototype,"isSearch",void 0);
_.A([_.w({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],jj);
_.q(jj,"ytd-secondary-search-container-renderer",function(){if(VWQ!==void 0)return VWQ;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);
return VWQ=x},{mode:1});var hdf;var vr=function(){var x=_.e.apply(this,arguments)||this;x.renderSecondarySearchContainer=!1;x.isSearch=!1;return x};
_.p(vr,_.e);_.K=vr.prototype;_.K.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"}}}};
_.K.created=function(){var x=this;this.boundStampSecondarySearchContainerIfFits=function(){x.stampSecondarySearchContainerIfFits()};
_.Au("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.K.computeIsSearchFrictionPage=function(x){var L,D,S,Q,J;x=x==null?void 0:(L=x.primaryContents)==null?void 0:(D=L.sectionListRenderer)==null?void 0:(S=D.contents)==null?void 0:(Q=S[0])==null?void 0:(J=Q.itemSectionRenderer)==null?void 0:J.contents;if(!x)return!1;L=_.O(x);for(D=L.next();!D.done;D=L.next())if(S=void 0,(S=D.value)==null?0:S.searchFrictionViewModel)return!0;return!1};
_.K.computeShowSecondaryColumn=function(x,L){return!!(L&&L.secondaryContents&&x)};
_.K.activeChanged=function(){var x=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.p$(this,this.debounceStampSecondarySearchContainerIfFits)),_.xi(function(){x.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.p$(this,this.debounceStampSecondarySearchContainerIfFits))};
_.K.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.K.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.K.debounceStampSecondarySearchContainerIfFits=function(){_.LI(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.K.onRetrieveLocation=function(x,L){L.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);x.stopPropagation()};
_.K.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
vr.prototype.dataChanged=vr.prototype.dataChanged;vr.prototype.onRetrieveLocation=vr.prototype.onRetrieveLocation;vr.prototype.persistentGuideChanged=vr.prototype.persistentGuideChanged;vr.prototype.activeChanged=vr.prototype.activeChanged;_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],vr.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],vr.prototype,"ytRendererBehavior",void 0);
_.A([_.b(_.Vi.YtdGuideStateAwareBehavior),_.r("design:type",Object)],vr.prototype,"ytdGuideStateAwareBehavior",void 0);_.A([_.b(_.XO),_.r("design:type",Object)],vr.prototype,"ironResizableBehavior",void 0);_.A([_.F(),_.r("design:type",Boolean)],vr.prototype,"active",void 0);_.A([_.F(),_.r("design:type",Object)],vr.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0,value:function(){return _.u("enable_desktop_search_bigger_thumbs")}}),
_.r("design:type",Boolean)],vr.prototype,"useBiggerThumbs",void 0);_.A([_.F({reflectToAttribute:!0,value:function(){return _.PY("desktop_search_bigger_thumbs_style")}}),
_.r("design:type",String)],vr.prototype,"biggerThumbsStyle",void 0);_.A([_.F(),_.r("design:type",Object)],vr.prototype,"renderSecondarySearchContainer",void 0);_.A([_.F({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.r("design:type",Boolean)],vr.prototype,"showSecondaryColumn",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.r("design:type",Boolean)],vr.prototype,"isSearchFrictionPage",void 0);
_.A([_.F(),_.r("design:type",Object)],vr.prototype,"isSearch",void 0);_.A([_.bN("active"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],vr.prototype,"activeChanged",null);_.A([_.bN("guidePersistentAndVisible"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],vr.prototype,"persistentGuideChanged",null);
_.A([_.mX("yt-retrieve-location"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],vr.prototype,"onRetrieveLocation",null);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],vr.prototype,"dataChanged",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],vr);
_.q(vr,"ytd-two-column-search-results-renderer",function(){if(hdf!==void 0)return hdf;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return hdf=x},{mode:1});var V2=function(){var x=_.e.apply(this,arguments)||this;x.hasSearchHeader=!1;x.hasSecondaryContent=!1;x.hasBiggerThumbs=_.u("enable_desktop_search_bigger_thumbs");x.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return x};
_.p(V2,_.e);_.K=V2.prototype;_.K.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:_.Fl(["aa","eocs"])}}};
_.K.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.K.loadPage_=function(x){this.initCsi();x&&(this.data=x,_.Au("REFINEMENTS_TUPLE",["FromSearchResponse",x.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.LV(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.K.initCsi=function(){_.xz$("results",["ol","cpt"])};
_.K.updateTitle=function(){var x=_.om(window.location.href,"q");x||(x=_.om(window.location.href,"search_query"));_.MF(this.hostElement,"yt-update-title",x||"")};
_.K.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.K.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.u("web_srp_data_changed_terminate_imp_killswitch")||_.dg(this.hostElement,"yt-terminate-video-preview-action")};
_.K.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.K.computeHasSearchHeader=function(x){var L;x=x==null?void 0:(L=x.header)==null?void 0:L.searchHeaderRenderer;return!!x&&(!!x.searchFilterButton||!!x.chipBar)};
_.K.computeHasSecondaryContent=function(x){var L,D;return!!(x==null?0:(L=x.contents)==null?0:(D=L.twoColumnSearchResultsRenderer)==null?0:D.secondaryContents)};
_.J3.Object.defineProperties(V2,{template:{configurable:!0,enumerable:!0,get:function(){if(apQ===void 0){var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);apQ=x}x=apQ;return x}}});
V2.prototype.onReloadContinuationFinish=V2.prototype.onReloadContinuationFinish;V2.prototype.dataChanged=V2.prototype.dataChanged;_.A([_.b(_.KQ.YtPageBehavior),_.r("design:type",Object)],V2.prototype,"ytPageBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],V2.prototype,"actionHandlerBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],V2.prototype,"ytRendererBehavior",void 0);
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],V2.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.HS),_.r("design:type",Object)],V2.prototype,"ytContinuationHandlerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],V2.prototype,"data",void 0);_.A([_.F({value:!0}),_.r("design:type",Boolean)],V2.prototype,"monitorScroll",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],V2.prototype,"hasSearchHeader",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],V2.prototype,"hasSecondaryContent",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],V2.prototype,"hasBiggerThumbs",void 0);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],V2.prototype,"dataChanged",null);
_.A([_.mX("yt-reload-continuation-finish"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],V2.prototype,"onReloadContinuationFinish",null);_.A([_.w({is:"ytd-search"})],V2);_.Wy.registerService(_.sx0,V2);
_.Wf();
}catch(e){_._DumpException(e)}
try{
_.Bf("h8y2qb");
var DzY=function(x){if(x=_.XQs(x)){var L;(L=x.sources)!=null&&L[0]?(L=_.nmh(x),L=L<1?"VERTICAL":L>1?"HORIZONTAL":"SQUARE"):L=void 0;return L}},On=function(x){_.WZ.call(this,"upload");
this.opts.query=x},QCq=function(x,L){return _.M(SS9,{data:x,
onYtNavigate:L})},JC9=function(x,L){return _.u6(x.entities,"pageHeaderEntity",L)},Onl=function(x,L){return x.map(function(D){if(D.tabRenderer)return KCY(D.tabRenderer);
if(D.expandableTabRenderer&&L){var S=D.expandableTabRenderer;return{customTabRenderable:function(){return L(S)}}}return{}})},KCY=function(x){return{identifier:x.tabIdentifier,
aTagConfig:_.a6({innertubeCommand:x.endpoint,forceNewState:!0}),title:x.title,selected:x.selected,disabled:x.unselectable,icon:x.icon}},Znq=function(x){return _.MU({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:x})},yC9=function(x){if(!_.IB(document,"gtm-noscript")){var L=document.createElement("noscript");
L.id="gtm-noscript";L.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+x+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(L)}};_.E9(On,_.WZ);On.prototype.JSC$10078_setLabel=function(x){On.superClass_.JSC$10078_setLabel.call(this,x);return this};
On.prototype.addUploadMetadata=function(x,L){On.superClass_.addUploadMetadata.call(this,x,L);return this};var I$u=function(x){if(x!=="youtubebanner"&&x!=="youtube-channel-banner")throw Error("Fo");On.call(this,x)};
_.p(I$u,On);I$u.prototype.JSC$10078_setLabel=function(x){On.prototype.JSC$10078_setLabel.call(this,x);return this};
I$u.prototype.addUploadMetadata=function(x,L){On.prototype.addUploadMetadata.call(this,x,L);return this};var EJl=[_.XO,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(x){_.G0(x).path[0]!==this&&(this.resetLayout(),x.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var x=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.Yt(this._layoutDebouncer,_.wB,x);_.F4(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var x=this;requestAnimationFrame(function(){x.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(x){this.resizerShouldNotify(x)&&this._notifyDescendant(x)},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 M5q=[_.d1H,{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(x,L){var D=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[x];if(!D)throw new ReferenceError(this._getUndefinedMsg(x));x=this._boundEffect(D,L||{});x.setUp();return x},
_effectsChanged:function(x,L,D){this._tearDownEffects();x&&D&&(x.split(" ").forEach(function(S){var Q;S!==""&&((Q=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[S])?this._effects.push(this._boundEffect(Q,L[S])):console.warn(this._getUndefinedMsg(S)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(x,L){L=L||{};var D=parseFloat(L.startsAt||0),S=parseFloat(L.endsAt||1),Q=S-D,J=function(){};
S=D===0&&S===1?x.run:function(Z,y){x.run.call(this,Math.max(0,(Z-D)/Q),y)};
return{setUp:x.setUp?x.setUp.bind(this,L):J,run:x.run?S.bind(this):J,tearDown:x.tearDown?x.tearDown.bind(this):J}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(x){x.setUp()!==!1&&this._effectsRunFn.push(x.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(x){x.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(x,L){this._effectsRunFn&&this._effectsRunFn.forEach(function(D){D(x,L)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var x=this._clampedScrollTop;this._updateScrollState(x);this.threshold>0&&this._setThresholdTriggered(x>=this.threshold)}},
_getDOMRef:function(x){console.warn("_getDOMRef","`"+x+"` is undefined")},
_getUndefinedMsg:function(x){return"Scroll effect `"+x+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+x+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Go`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(x){var L={};x=parseFloat(x.scalar);L.background=this._getDOMRef("background");L.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");L.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");L.deltaBg=L.backgroundFrontLayer.offsetHeight-L.background.offsetHeight;L.deltaBg===0?(isNaN(x)&&(x=.8),L.deltaBg=(this._dHeight||0)*x):(isNaN(x)&&(x=
1),L.deltaBg*=x);this._fxParallaxBackground=L},
run:function(x){var L=this._fxParallaxBackground;this.transform("translate3d(0px, "+L.deltaBg*Math.min(1,x)+"px, 0px)",L.backgroundFrontLayer);L.backgroundRearLayer&&this.transform("translate3d(0px, "+L.deltaBg*Math.min(1,x)+"px, 0px)",L.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var dz5;var P4l;var jC9=function(){};
_.K=jC9.prototype;_.K._scrollTargetChanged=function(){};
_.K.scroll=function(){};
_.K._isValidScrollTarget=function(){};
_.K._toggleScrollListener=function(){};
_.K.toggleScrollListener=function(){};
_.K.createEffect=function(){};
_.K._effectsChanged=function(){};
_.K._layoutIfDirty=function(){};
_.K._boundEffect=function(){};
_.K._setUpEffect=function(){};
_.K._tearDownEffects=function(){};
_.K._runEffects=function(){};
_.K._scrollHandler=function(){};
_.K._scrollStateChanged=function(){};
_.K._getUndefinedMsg=function(){};
_.K.notifyResize=function(){};
_.K.assignParentResizable=function(){};
_.K.stopResizeNotificationsFor=function(){};
_.K._subscribeIronResize=function(){};
_.K._unsubscribeIronResize=function(){};
_.K.resizerShouldNotify=function(){};
_.K._onDescendantIronResize=function(){};
_.K._fireResize=function(){};
_.K._onIronRequestResizeNotifications=function(){};
_.K._parentResizableChanged=function(){};
_.K._notifyDescendant=function(){};
_.K._requestResizeNotifications=function(){};
_.K._findParent=function(){};
_.K._appResetLayoutHandler=function(){};
_.K.resetLayout=function(){};
_.K._notifyLayoutChanged=function(){};
_.K._notifyDescendantResize=function(){};
_.K._setThresholdTriggered=function(){};
jC9=_.q$({_template:function(){if(P4l!==void 0)return P4l;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;dz5===void 0&&(dz5=document.createElement("template"));var S=dz5;D.call(L,S.content.cloneNode(!0),x.content.firstChild);return P4l=x},
is:"tp-yt-app-header",behaviors:[M5q,EJl],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 x=_.G0(this.$.slot).getDistributedNodes(),L=0,D;D=x[L];L++)if(D.nodeType===Node.ELEMENT_NODE)if(D.hasAttribute("sticky")){this._stickyElRef=D;break}else this._stickyElRef||(this._stickyElRef=D);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var x=this._clampedScrollTop,L=this._height===0||x===0,D=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;L||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();L?this._updateScrollState(x,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=D}},
_updateScrollState:function(x,L){if(this._height!==0){var D=0,S=this._top;var Q=this._maxHeaderTop;var J=x-this._lastScrollTop,Z=Math.abs(J),y=x>this._lastScrollTop,E=performance.now();this._mayMove()&&(D=this._clamp(this.reveals?S+J:x,0,Q));x>=this._dHeight&&(D=this.condenses&&!this.fixed?Math.max(this._dHeight,D):D,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&Z<100){if(E-this._initTimestamp>300||this._wasScrollingDown!==y)this._initScrollTop=x,this._initTimestamp=E;x>=Q&&
(Math.abs(this._initScrollTop-x)>30||Z>10?(y&&x>=Q?D=Q:!y&&x>=this._dHeight&&(D=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((D-S)/(J/(E-this._lastTimestamp)),0,300)+"ms"):D=this._top)}Q=this._dHeight===0?x>0?1:0:D/this._dHeight;L||(this._lastScrollTop=x,this._top=D,this._wasScrollingDown=y,this._lastTimestamp=E);if(L||Q!==this._progress||S!==D||x===0)this._progress=Q,this._runEffects(Q,D),this._transformHeader(D)}},
_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(x){this.translate3d(0,-x+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&x>=this._stickyElTop?Math.min(x,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(x,L,D){return Math.min(D,Math.max(L,x))},
_ensureBgContainers:function(){this._bgContainer||(this._bgContainer=document.createElement("div"),this._bgContainer.id="background",this._bgRear=document.createElement("div"),this._bgRear.id="backgroundRearLayer",this._bgContainer.appendChild(this._bgRear),this._bgFront=document.createElement("div"),this._bgFront.id="backgroundFrontLayer",this._bgContainer.appendChild(this._bgFront),_.G0(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(x){switch(x){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.G0(this).querySelector("[main-title]");case "condensedTitle":return _.G0(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var vJI;var V59;_.q$({_template:function(){if(V59!==void 0)return V59;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;vJI===void 0&&(vJI=document.createElement("template"));var S=vJI;D.call(L,S.content.cloneNode(!0),x.content.firstChild);return V59=x},
is:"tp-yt-app-header-layout",behaviors:[EJl],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.G0(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var x=this.header;if(this.isAttached&&x){this.$.wrapper.classList.remove("initializing");x.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)x.style.left=
"",x.style.right="";else{var L=this.getBoundingClientRect(),D=document.documentElement.clientWidth-L.right;x.style.left=L.left+"px";x.style.right=D+"px"}L=this.$.contentContainer.style;D=x.offsetHeight;x.fixed&&!x.condenses&&this.hasScrollingRegion?(L.marginTop=D+"px",L.paddingTop=""):(L.paddingTop=D+"px",L.marginTop="")}}});var hXu=new _.jp("alertCommand");var Hn$=new _.jp("manageLabsStateCommand");var uB5=new _.jp("inlineFormRenderer");var gJY=new _.jp("playlistSidebarPrimaryInfoRenderer");var kh3=new _.jp("productDetailsThumbnailRenderer"),pAl=new _.jp("productDetailsVariantRenderer"),mzg=new _.jp("productDetailsVariantOptionRenderer"),bnX=new _.jp("productDetailsOffersContainerRenderer"),YSg=new _.jp("productDetailsOfferRenderer");var FCq=new _.jp("shoppingFlaggingRenderer");var sC9=new _.jp("playlistBylineRenderer");var T9u=new _.jp("insertChannelTabCommand");var ZD=function(){return _.er.apply(this,arguments)||this};
_.p(ZD,_.er);_.K=ZD.prototype;_.K.activeChanged=function(){if(this.active){var x=_.jr(this.hostElement).querySelector("#header");x&&_.MF(x,"iron-resize");window.addEventListener("scroll",_.p$(this,this.onScroll))}else window.removeEventListener("scroll",_.p$(this,this.onScroll)),_.MF(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.K.guideVisibleChanged=function(){var x=_.jr(this.hostElement).querySelector("#header");x&&_.MF(x,"iron-resize")};
_.K.onScroll=function(){var x=this;_.LI(this,"onScroll",function(){var L=_.jr(x.hostElement).querySelector("#header");L&&L.polymerController&&(L=L.polymerController.getScrollState().progress===1?"standard":"seamed",_.MF(x.hostElement,"yt-request-panel-mode-change",{mode:L}))},10)};
_.K.tabsChanged=function(){if(this.tabs){for(var x=null,L=0,D=this.tabs.length;L<D;++L){var S=this.tabs[L].tabRenderer;if(S&&S.selected){x=L;break}}this.selected=x}};
_.K.onTabsActivate=function(x){_.MF(this.hostElement,"yt-navigate",{endpoint:this.tabs[x.detail.selected].tabRenderer.endpoint})};
ZD.prototype.tabsChanged=ZD.prototype.tabsChanged;ZD.prototype.guideVisibleChanged=ZD.prototype.guideVisibleChanged;ZD.prototype.activeChanged=ZD.prototype.activeChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],ZD.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.Vi.YtdGuideStateAwareBehavior),_.r("design:type",Object)],ZD.prototype,"ytdGuideStateAwareBehavior",void 0);_.A([_.F(),_.r("design:type",Array)],ZD.prototype,"tabs",void 0);
_.A([_.F(),_.r("design:type",Object)],ZD.prototype,"selected",void 0);_.A([_.F(),_.r("design:type",Boolean)],ZD.prototype,"active",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],ZD.prototype,"disableHeaderFluidWidth",void 0);_.A([_.bN("active"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ZD.prototype,"activeChanged",null);
_.A([_.bN("guidePersistentAndVisible"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ZD.prototype,"guideVisibleChanged",null);_.A([_.bN("tabs"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ZD.prototype,"tabsChanged",null);_.A([_.RW()],ZD);var eXs=[_.c.YtRendererBehavior,_.Vi.YtdGuideStateAwareBehavior,ZD.prototype];var RX$=2/3,Ghq=_.VC(130749),C4u=function(x,L){var D=this;this.element=x;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){D.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:RX$,moveAction:function(S){D.moveAction(S)},
triggerAction:function(){D.element.isReloading=!0;_.XT(_.sk(),{visualElement:Ghq});_.pI.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:D.element}})}}}};
_.W5(_.sk(),Ghq,this.layer);this.gesture=new _.qd(x,L,this.refreshConfig,"pan-down");this.attach()};
_.K=C4u.prototype;_.K.attach=function(){this.gesture.attach()};
_.K.detach=function(){this.gesture.detach()};
_.K.reset=function(){this.element.close()};
_.K.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.K.moveAction=function(x){this.element.rotation=x*360};var l$G=_.VC(130750),wAq=function(x,L,D,S,Q){var J=this;this.element=x;this.parent=D;this.channelHeader=S;this.ytdReduxDispatch=Q;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){J.tabsStartAtInPx=J.channelHeader.clientHeight-48;var Z;(Z=J.selectedTab)!=null&&Z.title&&(Z=_.yY().resolve(_.ZN(_.KX)))&&(Z=Z.getCurrentPage(),J.lastVisitedTabScrollPosition=Z.getScrollTop(),J.previousTab&&
((J.lastVisitedTabScrollPosition===void 0?0:J.lastVisitedTabScrollPosition<J.channelHeader.clientHeight-48)?J.scrollPositionForTabs.has(J.selectedTab.title)&&J.scrollPositionForTabs.delete(J.selectedTab.title):J.scrollPositionForTabs.set(J.selectedTab.title,Z.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:Uzq(),triggerAction:function(){J.navigate(J.previousTab)},
moveAction:function(Z,y){J.moveAction(Z,y)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-Uzq(),triggerAction:function(){J.navigate(J.nextTab)},
moveAction:function(Z,y){J.moveAction(Z,y)}}}};
_.W5(_.sk(),l$G,this.layer);this.gesture=new _.qd(x,L,this.tabConfig);this.attach()};
_.K=wAq.prototype;_.K.attach=function(){this.gesture.attach()};
_.K.detach=function(){this.gesture.detach()};
_.K.tabsChanged=function(x){if(x){var L=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;x=_.O(x);for(var D=x.next();!D.done;D=x.next()){D=D.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=D);var S=void 0;if((S=D)==null?0:S.selected)this.previousTab=L,this.selectedTab=D;L=D}L=this.gesture;x=this.getConfig();L.config=x;this.scrollPositionNeedsUpdate=!0}};
_.K.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}})};
_.K.moveAction=function(x,L){if(!this.tabsElement){var D;this.tabsElement=(D=this.parent.header)==null?void 0:D.tabsElement;L==="right"&&this.previousTab?_.mA_(_.Xe.instance,this.previousTab.endpoint,{},""):L==="left"&&this.nextTab&&_.mA_(_.Xe.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}D=this.tabsElement._pos;L==="right"&&(x*=-1);this.tabsElement._positionBar(D.width,D.left*1+D.width*x)};
var Uzq=function(){var x,L;return(L=(x=_.yY().resolve(_.KX).getCurrentPage())==null?void 0:x.clientWidth)!=null?L:0};
wAq.prototype.navigate=function(x){this.element.data=void 0;if(x=x==null?void 0:x.endpoint)this.ytdReduxDispatch(Znq(!0)),_.XT(_.sk(),{visualElement:l$G}),_.pI.instance.resolveCommand({navigateAction:{endpoint:x}},{form:{element:this.element}})};var B9g;var WCY;var yg=function(){return _.e.apply(this,arguments)||this};
_.p(yg,_.e);yg.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],yg.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],yg.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],yg.prototype,"data",void 0);_.A([_.w({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],yg);
_.q(yg,"ytd-labs-edit-renderer",function(){if(WCY!==void 0)return WCY;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return WCY=x},{mode:1});var qSu;var Ix=function(){var x=_.e.apply(this,arguments)||this;x.dark=!1;x.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";x.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";x.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return x};
_.p(Ix,_.e);Ix.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Ix.prototype.ready=function(){var x=document.documentElement.hasAttribute("dark");this.setBackgroundImage(x);this.dark=x};
Ix.prototype.onDarkModeToggledAction=function(x){this.setBackgroundImage(x);this.dark=x};
Ix.prototype.setBackgroundImage=function(x){_.uN(this.hostElement,{"--yt-labs-header-background":"url("+(x?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Ix.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Ix.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],Ix.prototype,"ytActionHandlerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Ix.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Ix.prototype,"dark",void 0);
_.A([_.w({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],Ix);
_.q(Ix,"ytd-labs-header-renderer",function(){if(qSu!==void 0)return qSu;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return qSu=x},{mode:1});var ACG;var En=function(){var x=_.e.apply(this,arguments)||this;x.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return x};
_.p(En,_.e);En.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"}}}}}};
En.prototype.onYtToggleButton=function(x){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",x.detail.toggled)};
En.prototype.onManageLabsState=function(x){if(x=_.g(x,Hn$))x.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?x.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&x.labsItemId===this.data.labsItemId&&(x.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.dg(this.hostElement,"yt-check-labs-opted-in-state").some(function(L){return L})&&this.data.confirmationDialogCommand?_.v$(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.yY().resolve(_.E2).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&x.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.yY().resolve(_.E2).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
En.prototype.onCheckLabsOptedInState=function(){var x=this.get("data.primaryButton.toggleButtonRenderer");return x?x.isToggled:!1};
_.J3.Object.defineProperties(En.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
En.prototype.onYtToggleButton=En.prototype.onYtToggleButton;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],En.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],En.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],En.prototype,"ytActionHandlerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],En.prototype,"data",void 0);
_.A([_.F({reflectToAttribute:!0}),_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],En.prototype,"itemStyle",null);_.A([_.mX("yt-toggle-button"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],En.prototype,"onYtToggleButton",null);_.A([_.w({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],En);
_.q(En,"ytd-labs-item-renderer",function(){if(ACG!==void 0)return ACG;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return ACG=x},{mode:1});var $zX;var rC3;var N9I=function(){return _.e.apply(this,arguments)||this};
_.p(N9I,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],N9I.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],N9I.prototype,"data",void 0);_.A([_.w({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],N9I);
_.q(N9I,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(rC3!==void 0)return rC3;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return rC3=x},{mode:1});var inu;var M2=function(){return _.e.apply(this,arguments)||this};
_.p(M2,_.e);M2.prototype.observeSuperchatChip=function(){if(this.data){var x={"--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)};_.uN(this.hostElement,x)}};
M2.prototype.colorFromDecimal=function(x){return _.XA(Number(x||0))};
M2.prototype.observeSuperchatChip=M2.prototype.observeSuperchatChip;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],M2.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],M2.prototype,"data",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],M2.prototype,"observeSuperchatChip",null);_.A([_.w({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],M2);
_.q(M2,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(inu!==void 0)return inu;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return inu=x},{mode:1});var dR=function(){return _.e.apply(this,arguments)||this};
_.p(dR,_.e);dR.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"}}}};
_.J3.Object.defineProperties(dR.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],dR.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],dR.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.dK),_.r("design:type",Object)],dR.prototype,"ytdDismissibleItemBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],dR.prototype,"data",void 0);_.A([_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],dR.prototype,"hideMessageBlock",null);
_.A([_.w({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],dR);
_.q(dR,"ytd-live-chat-history-entry-renderer",function(){if($zX!==void 0)return $zX;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return $zX=x},{mode:1});var f$$;var oJG=function(){return _.e.apply(this,arguments)||this};
_.p(oJG,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],oJG.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],oJG.prototype,"data",void 0);_.A([_.w({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],oJG);
_.q(oJG,"ytd-channel-options-renderer",function(){if(f$$!==void 0)return f$$;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return f$$=x},{mode:1});var a$q;var Pt=function(){return _.e.apply(this,arguments)||this};
_.p(Pt,_.e);Pt.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Pt.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Pt.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Pt.prototype,"data",void 0);_.A([_.w({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],Pt);
_.q(Pt,"ytd-settings-email-item-renderer",function(){if(a$q!==void 0)return a$q;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return a$q=x},{mode:1});var zX9;var jX=function(){return _.e.apply(this,arguments)||this};
_.p(jX,_.e);jX.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"}}}};
jX.prototype.getExpansionIcon=function(x){return x?"COLLAPSE":"EXPAND"};
jX.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.J3.Object.defineProperties(jX.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],jX.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],jX.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],jX.prototype,"data",void 0);_.A([_.F({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],jX.prototype,"expanded",void 0);_.A([_.Y("expanded"),_.r("design:type",String),_.r("design:paramtypes",[])],jX.prototype,"emailListExpanded",null);
_.A([_.F1("#options"),_.r("design:type",Object)],jX.prototype,"options",void 0);_.A([_.w({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],jX);
_.q(jX,"ytd-settings-email-list-renderer",function(){if(zX9!==void 0)return zX9;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return zX9=x},{mode:1});var XAl;var vt=function(){var x=_.e.apply(this,arguments)||this;x.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return x};
_.p(vt,_.e);vt.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"}}}};
vt.prototype.handleSignalActionSubmitForm=function(){var x,L=(x=this.formRenderer)==null?void 0:x.getForm();L&&this.data.serviceEndpoint&&_.yY().resolve(_.E2).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},L,{element:this.hostElement})})};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],vt.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],vt.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],vt.prototype,"ytActionHandlerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],vt.prototype,"data",void 0);_.A([_.F1("yt-form-renderer"),_.r("design:type",Object)],vt.prototype,"formRenderer",void 0);
_.A([_.w({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],vt);
_.q(vt,"ytd-settings-gaia-link-renderer",function(){if(XAl!==void 0)return XAl;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return XAl=x},{mode:1});var cC3;var Vg=function(){var x=_.e.apply(this,arguments)||this;x.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return x};
_.p(Vg,_.e);Vg.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.OHu()&&this.set("data.hidden",!1)};
Vg.prototype.onSwitchReady=function(){var x=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.u("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.Kvq().then(function(L){L&&(Notification.permission==="default"?x.set("data.hidden",!1):Notification.permission==="granted"&&_.a5("NotificationsDisabled").then(function(D){D||_.dg(x.hostElement,"yt-toggle-settings-switch",[x.data.id,!D]);x.set("data.hidden",!1)}).catch(function(){}))})})};
Vg.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}}}}};
Vg.prototype.handleUpdateOptionsCommand=function(x){(x=_.g(x,_.SHh))&&this.data&&this.data.id===x.id&&(this.set("data.hidden",x.hidden),x.text!==void 0&&this.set("data.text",x.text),x.clearOptions&&this.set("data.options",[]))};
Vg.prototype.onSwitchReady=Vg.prototype.onSwitchReady;Vg.prototype.dataChanged=Vg.prototype.dataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Vg.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Vg.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],Vg.prototype,"ytActionHandlerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Vg.prototype,"data",void 0);
_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Vg.prototype,"dataChanged",null);_.A([_.mX("yt-settings-switch-ready"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Vg.prototype,"onSwitchReady",null);_.A([_.w({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],Vg);
_.q(Vg,"ytd-settings-options-renderer",function(){if(cC3!==void 0)return cC3;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return cC3=x},{mode:1});var nJ5;var hv=function(){return _.e.apply(this,arguments)||this};
_.p(hv,_.e);hv.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
hv.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
hv.prototype.onYtExpanderMoreTapped=hv.prototype.onYtExpanderMoreTapped;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],hv.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],hv.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],hv.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],hv.prototype,"data",void 0);
_.A([_.mX("yt-expander-more-tapped"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],hv.prototype,"onYtExpanderMoreTapped",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],hv);
_.q(hv,"ytd-product-details-description-renderer",function(){if(nJ5!==void 0)return nJ5;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return nJ5=x},{mode:1});var t5q;var Ht=function(){var x=_.e.apply(this,arguments)||this;x.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";x.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";x.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";x.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return x};
_.p(Ht,_.e);Ht.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.J3.Object.defineProperties(Ht.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var x,L;return((x=this.data)==null?void 0:(L=x.offerData)==null?void 0:L.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var x,L;return((x=this.data)==null?void 0:x.purchaseButtonRenderers)!==void 0&&((L=this.data)==null?void 0:L.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var x,L;return!((x=this.data)==null||!x.formattedFromMerchantText)&&(!((L=this.data)==null||!L.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Ht.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Ht.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],Ht.prototype,"ytComponentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Ht.prototype,"data",void 0);
_.A([_.F({type:_.u("kevlar_property_type_migration_killswitch")?String:void 0}),_.r("design:type",Object)],Ht.prototype,"shippingIcon",void 0);_.A([_.F({type:_.u("kevlar_property_type_migration_killswitch")?String:void 0}),_.r("design:type",Object)],Ht.prototype,"shippingAddressIcon",void 0);_.A([_.F({type:_.u("kevlar_property_type_migration_killswitch")?String:void 0}),_.r("design:type",Object)],Ht.prototype,"googleGuaranteeIcon",void 0);
_.A([_.F({type:_.u("kevlar_property_type_migration_killswitch")?String:void 0}),_.r("design:type",Object)],Ht.prototype,"returnPolicyIcon",void 0);_.A([_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Ht.prototype,"showAdditionalFees",null);_.A([_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Ht.prototype,"showMultiPurchaseButtons",null);
_.A([_.Y("data","showMultiPurchaseButtons"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Ht.prototype,"showPurchaseData",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],Ht);
_.q(Ht,"ytd-product-details-hero-offer-renderer",function(){if(t5q!==void 0)return t5q;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return t5q=x},{mode:1});var xfR;var LcU;var uR=function(){return _.e.apply(this,arguments)||this};
_.p(uR,_.e);_.K=uR.prototype;_.K.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.K.onKeyDown=function(x){x=x.keyCode;x!==13&&x!==32||this.handleSelection()};
_.K.onMouseEnterImage=function(){var x;((x=this.data)==null?void 0:x.thumbnailDetails)!==void 0&&_.P$(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.K.onMouseLeaveImage=function(){_.P$(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.K.handleSelection=function(){this.data&&_.MF(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.J3.Object.defineProperties(uR.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.isSelected)}}});
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],uR.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],uR.prototype,"data",void 0);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],uR.prototype,"isSelected",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],uR);
_.q(uR,"ytd-product-details-thumbnail-renderer",function(){if(LcU!==void 0)return LcU;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return LcU=x},{mode:1});var gR=function(){var x=_.e.apply(this,arguments)||this;var L={};x.actionMap=(L["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",L["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",L);x.selectedThumbnailIndex=0;x.selectItem=function(D){D.target.onKeyDown(D)};
return x};
_.p(gR,_.e);_.K=gR.prototype;_.K.handlePreviewImageSelect=function(x){this.hoverThumbnail=x};
_.K.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.K.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.K.onThumbnailSelected=function(x,L){this.selectedThumbnailIndex=L};
_.K.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.K.updateOffset=function(){var x=_.jr(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-x));this.ytdHorizontalListBehavior.reposition_()};
_.J3.Object.defineProperties(gR.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var x;if((x=this.data)==null?0:x.imageRenderer){var L,D;return((L=this.data)==null?void 0:(D=L.imageRenderer)==null?void 0:D.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var x;if((x=this.data)==null?0:x.imageRenderer){var L;return(L=_.g(this.data.imageRenderer[this.selectedThumbnailIndex],kh3))==null?void 0:L.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var x=this,L,D,S,Q=(S=(L=this.data)==null?void 0:(D=L.imageRenderer)==null?void 0:D.map(function(J,Z){return{productDetailsThumbnailRenderer:Object.assign({},_.g(J,kh3),{index:Z,isSelected:Z===x.selectedThumbnailIndex})}}))!=null?S:[];
return Object.assign({},this.data,{imageRenderer:Q})}}});
gR.prototype.updateOffset=gR.prototype.updateOffset;gR.prototype.dataChanged=gR.prototype.dataChanged;gR.prototype.onThumbnailSelected=gR.prototype.onThumbnailSelected;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],gR.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],gR.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.CO.YtdHorizontalListBehavior),_.r("design:type",Object)],gR.prototype,"ytdHorizontalListBehavior",void 0);
_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],gR.prototype,"componentBehavior",void 0);_.A([_.b([_.ir.YtActionHandlerBehavior]),_.r("design:type",Object)],gR.prototype,"actionHandlerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],gR.prototype,"data",void 0);_.A([_.F({value:"$.items.children"}),_.r("design:type",String)],gR.prototype,"itemsPath",void 0);_.A([_.F({value:3}),_.r("design:type",Number)],gR.prototype,"initialCount",void 0);
_.A([_.F1("#items"),_.r("design:type",Object)],gR.prototype,"items",void 0);_.A([_.F(),_.r("design:type",Object)],gR.prototype,"selectedThumbnailIndex",void 0);_.A([_.F(),_.r("design:type",Object)],gR.prototype,"hoverThumbnail",void 0);_.A([_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],gR.prototype,"showThumbnails",null);
_.A([_.mX("ytd-product-details-thumbnail-renderer-selected"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Number]),_.r("design:returntype")],gR.prototype,"onThumbnailSelected",null);_.A([_.Y("data","selectedThumbnailIndex","hoverThumbnail"),_.r("design:type",Object),_.r("design:paramtypes",[])],gR.prototype,"thumbnailDetails",null);_.A([_.Y("data","selectedThumbnailIndex"),_.r("design:type",Object),_.r("design:paramtypes",[])],gR.prototype,"populatedData",null);
_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],gR.prototype,"dataChanged",null);_.A([_.mX("iron-resize"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],gR.prototype,"updateOffset",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],gR);
_.q(gR,"ytd-product-details-image-carousel-renderer",function(){if(xfR!==void 0)return xfR;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return xfR=x},{mode:_.Vm("kevlar_poly_si_batch_j079")?1:2});var DfR;var kd=function(){return _.e.apply(this,arguments)||this};
_.p(kd,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],kd.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],kd.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],kd.prototype,"componentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],kd.prototype,"data",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],kd);
_.q(kd,"ytd-product-details-offer-renderer",function(){if(DfR!==void 0)return DfR;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return DfR=x},{mode:1});var Sws;var pQ=function(){var x=_.e.apply(this,arguments)||this;x.isOffersHidden=!0;return x};
_.p(pQ,_.e);pQ.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var x,L=_.g((x=this.data)==null?void 0:x.viewOffersButton,_.y4);L&&this.ytRendererBehavior.logExplicitClick(L)};
pQ.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.J3.Object.defineProperties(pQ.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var x,L,D,S;return(D=_.g((x=this.data)==null?void 0:(L=x.offers)==null?void 0:L[0],YSg))==null?void 0:(S=D.offerData)==null?void 0:S.vendorLogoUrl}}});
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],pQ.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],pQ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],pQ.prototype,"componentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],pQ.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],pQ.prototype,"isOffersHidden",void 0);
_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],pQ.prototype,"firstOfferVendorLogoUrl",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],pQ);
_.q(pQ,"ytd-product-details-offers-container-renderer",function(){if(Sws!==void 0)return Sws;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Sws=x},{mode:1});var Qns;var JGQ;var my=function(){return _.e.apply(this,arguments)||this};
_.p(my,_.e);my.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
my.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.P$(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
my.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.P$(this,"ytd-product-details-variant-image-unselect")};
_.J3.Object.defineProperties(my.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 x;return((x=this.data)==null?void 0:x.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var x,L,D;return((x=this.data)==null?void 0:x.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((L=this.data)==null?void 0:L.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((D=this.data)==null?void 0:D.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var x;if(((x=this.data)==null?void 0:x.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var x,L;return this.isUnavailable?(x=this.data)==null?void 0:x.variantOptionUnavailableAccessibilityLabel:(L=this.data)==null?void 0:L.variantOptionAccessibilityLabel}}});
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],my.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],my.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],my.prototype,"componentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],my.prototype,"data",void 0);_.A([_.F(),_.r("design:type",String)],my.prototype,"displayType",void 0);
_.A([_.Y("displayType","data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],my.prototype,"isImageButton",null);_.A([_.Y("displayType","data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],my.prototype,"isPillButton",null);_.A([_.Y("data"),_.F({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],my.prototype,"isActive",null);
_.A([_.Y("data"),_.F({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],my.prototype,"isUnavailable",null);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],my.prototype,"thumbnailDetails",null);_.A([_.Y("isUnavailable","data"),_.r("design:type",Object),_.r("design:paramtypes",[])],my.prototype,"accessibilityLabel",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],my);
_.q(my,"ytd-product-details-variant-option-renderer",function(){if(JGQ!==void 0)return JGQ;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return JGQ=x},{mode:1});var Kcs;var bR=function(){var x=_.e.apply(this,arguments)||this;x.variantsExpanded=!1;x.hideShowMoreLessVariantButton=!0;x.initialized=!1;x.computeVariantsDebouncer=null;x.computeVariants=function(L){L=L===void 0?!1:L;x.variantsExpanded||x.showOptions()||!L||(x.variantsExpanded=!0);if(x.variantsExpanded){L=_.O(x.items.children);for(var D=L.next();!D.done;D=L.next())D.value.hidden=!1}x.initialized=!0};
return x};
_.p(bR,_.e);_.K=bR.prototype;_.K.ready=function(){var x=this;setTimeout(function(){x.computeVariants(!0)})};
_.K.showOptions=function(){for(var x=_.O(this.items.children),L=x.next();!L.done;L=x.next())L.value.hidden=!0;var D=this.container.getBoundingClientRect().width,S=0,Q=x=0;L=!1;for(var J=_.O(this.items.children),Z=J.next();!Z.done;Z=J.next()){Z=Z.value;Z.hidden=!1;var y=Z.getBoundingClientRect().width;if(S+y<D)S+=y;else if(++Q<2)S=y;else break;x+=1;Z.hasAttribute("is-active")&&(L=!0)}for(D=x;D<this.items.children.length;D++)this.items.children[D].hidden=!0;this.hideShowMoreLessVariantButton=x===this.items.children.length;
return L};
_.K.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.Yt(this.computeVariantsDebouncer,_.PO.after(100),this.computeVariants)};
_.K.onShowMoreLessVariantsButtonClick=function(){var x;(x=this.data)!=null&&x.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.K.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.J3.Object.defineProperties(bR.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var x,L,D=(x=this.data)==null?void 0:(L=x.variantOptionRenderers)==null?void 0:L.find(function(J){return _.g(J,mzg).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),S,Q;
return(Q=(S=_.g(D,mzg))==null?void 0:S.name)!=null?Q:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.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"}}}});
bR.prototype.debouncedComputeVariants=bR.prototype.debouncedComputeVariants;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],bR.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],bR.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],bR.prototype,"componentBehavior",void 0);_.A([_.b(_.XO),_.r("design:type",Object)],bR.prototype,"ironResizableBehavior",void 0);
_.A([_.F(),_.r("design:type",Object)],bR.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],bR.prototype,"variantsExpanded",void 0);_.A([_.F(),_.r("design:type",Object)],bR.prototype,"hideShowMoreLessVariantButton",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],bR.prototype,"initialized",void 0);_.A([_.F1("#items"),_.r("design:type",HTMLDivElement)],bR.prototype,"items",void 0);_.A([_.F1("#container"),_.r("design:type",HTMLDivElement)],bR.prototype,"container",void 0);
_.A([_.F1("#more-variants-button"),_.r("design:type",HTMLElement)],bR.prototype,"moreVariantsButton",void 0);_.A([_.Y("data"),_.r("design:type",String),_.r("design:paramtypes",[])],bR.prototype,"selectedOptionName",null);_.A([_.bN("data","variantsExpanded"),_.mX("iron-resize"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],bR.prototype,"debouncedComputeVariants",null);
_.A([_.Y("data"),_.r("design:type",String),_.r("design:paramtypes",[])],bR.prototype,"displayType",null);_.A([_.Y("displayType"),_.r("design:type",Object),_.r("design:paramtypes",[])],bR.prototype,"variantItemsClassname",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],bR);
_.q(bR,"ytd-product-details-variant-renderer",function(){if(Kcs!==void 0)return Kcs;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Kcs=x},{mode:1});var Yd=function(){return _.e.apply(this,arguments)||this};
_.p(Yd,_.e);
Yd.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"}}}};
_.J3.Object.defineProperties(Yd.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var x,L,D=(L=_.g((x=this.data)==null?void 0:x.offersContainerRenderer,bnX))==null?void 0:L.offers;return D!==void 0&&(D==null?void 0:D.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 x,L,D;return((D=(x=this.data)==null?void 0:(L=x.variants)==null?void 0:L.map(function(S){var Q,J;S=(J=(Q=_.g(S,pAl))==null?void 0:Q.variantOptionRenderers)==null?void 0:J.find(function(y){var E;return((E=_.g(y,mzg))==null?void 0:E.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var Z;return(Z=_.g(S,mzg))==null?void 0:Z.name}).filter(function(S){return typeof S==="string"}))!=null?D:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var x,L,D,S=(L=_.g((x=this.data)==null?void 0:x.shoppingFlaggingRenderer,FCq))==null?void 0:(D=L.reportButton)==null?void 0:D.buttonRenderer;if(S)return{text:S.text,command:S.command,icon:{iconType:"FLAG"},accessibilityData:S.accessibilityData,trackingParams:S.trackingParams,loggingDirectives:S.loggingDirectives}}}});
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Yd.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Yd.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],Yd.prototype,"componentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Yd.prototype,"data",void 0);_.A([_.F1("#image-carousel-renderer"),_.r("design:type",Object)],Yd.prototype,"imageCarouselRenderer",void 0);
_.A([_.F1("#hero-offer-renderer"),_.r("design:type",Object)],Yd.prototype,"productDetailsHeroOfferRenderer",void 0);_.A([_.F1("#variants"),_.r("design:type",Object)],Yd.prototype,"productDetailsVariantRenderer",void 0);_.A([_.F1("#offers"),_.r("design:type",Object)],Yd.prototype,"productDetailsOffersContainerRenderer",void 0);_.A([_.F1("#description-renderer"),_.r("design:type",Object)],Yd.prototype,"productDetailsDescriptionRenderer",void 0);
_.A([_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Yd.prototype,"showPurchaseData",null);_.A([_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Yd.prototype,"showHeroOfferRenderer",null);_.A([_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Yd.prototype,"showBrandText",null);_.A([_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Yd.prototype,"showOffers",null);
_.A([_.Y("showOffers","showPurchaseData"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Yd.prototype,"showBuySeparator",null);_.A([_.Y("showOffers","showPurchaseData"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Yd.prototype,"showBuyCard",null);_.A([_.Y("data"),_.r("design:type",String),_.r("design:paramtypes",[])],Yd.prototype,"selectedVariantsText",null);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Yd.prototype,"shoppingReportingButtonData",null);
_.A([_.w({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],Yd);
_.q(Yd,"ytd-product-details-renderer",function(){if(Qns!==void 0)return Qns;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Qns=x},{mode:1});var O3U;var Z3w;var yGN;var FF=function(){return _.e.apply(this,arguments)||this};
_.p(FF,_.e);FF.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.J3.Object.defineProperties(FF.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],FF.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],FF.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],FF.prototype,"data",void 0);_.A([_.F(),_.r("design:type",String)],FF.prototype,"formattedAmount",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],FF.prototype,"ariaLabel",void 0);
_.A([_.F({reflectToAttribute:!0}),_.Y("data.style"),_.r("design:type",String),_.r("design:paramtypes",[])],FF.prototype,"vcBalanceWidgetStyle",null);_.A([_.oW({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],FF);
_.q(FF,"yt-vc-balance-renderer",function(){if(yGN===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;Z3w===void 0&&(Z3w=document.createElement("template"));var S=Z3w;D.call(L,S.content.cloneNode(!0),x.content.firstChild);yGN=x}x=yGN;return x},{mode:2});_.BD("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var sn=function(){return _.e.apply(this,arguments)||this};
_.p(sn,_.e);_.J3.Object.defineProperties(sn.prototype,{formattedAmount:{configurable:!0,enumerable:!0,get:function(){return this.vcBalanceEntity&&this.vcBalanceEntity.formattedAmount?this.vcBalanceEntity.formattedAmount:""}},
vcBalanceAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.vcBalanceEntity&&this.vcBalanceEntity.accessibilityFormattedAmount?this.vcBalanceEntity.accessibilityFormattedAmount:""}}});
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],sn.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],sn.prototype,"ytdReduxBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],sn.prototype,"data",void 0);_.A([_.F({selectorArgs:["data.vcBalanceEntityKey"],selector:function(x,L){return _.u6(x.entities,"vcBalanceEntity",L)}}),
_.r("design:type",Object)],sn.prototype,"vcBalanceEntity",void 0);_.A([_.Y("vcBalanceEntity"),_.r("design:type",String),_.r("design:paramtypes",[])],sn.prototype,"formattedAmount",null);_.A([_.Y("vcBalanceEntity"),_.r("design:type",String),_.r("design:paramtypes",[])],sn.prototype,"vcBalanceAriaLabel",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],sn);
_.q(sn,"ytd-vc-balance-renderer",function(){if(O3U!==void 0)return O3U;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return O3U=x},{mode:1});var IpN;var T5=function(){var x=_.e.apply(this,arguments)||this;x.rotation=0;x.isReloading=!1;return x};
_.p(T5,_.e);T5.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
T5.prototype.reset=function(){this.hostElement.style.opacity=""};
T5.prototype.close=function(){var x=this;return _.I(function(L){if(L.nextAddress==1)return L.yield(x.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);x.hostElement.style.opacity="0";_.Y2(L)})};
T5.prototype.rotationChanged=T5.prototype.rotationChanged;_.A([_.F(),_.r("design:type",Object)],T5.prototype,"rotation",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],T5.prototype,"isReloading",void 0);_.A([_.F1("#icon"),_.r("design:type",HTMLElement)],T5.prototype,"icon",void 0);_.A([_.bN("rotation"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],T5.prototype,"rotationChanged",null);
_.A([_.w({disableElementRegistration:!0,is:"ytd-refresh"})],T5);
_.q(T5,"ytd-refresh",function(){if(IpN!==void 0)return IpN;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return IpN=x},{mode:1});var Ef5;var eX=function(){return _.e.apply(this,arguments)||this};
_.p(eX,_.e);eX.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"}}}};
eX.prototype.dataChanged=function(){if(this.data){var x=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var L=_.PD(this.data.banner.thumbnails,this.hostElement.clientWidth);L&&(L.indexOf("//")===0&&(L="https:"+L),this.hasBannerArt=!0,_.uN(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+L+")"}))}this.hasBannerArt!==x&&_.jr(this.hostElement).querySelector("#header").fire("iron-resize")}};
eX.prototype.updateSelectedFromBinding=function(x){this.selected=x.detail.value};
eX.prototype.dataChanged=eX.prototype.dataChanged;_.A([_.b(eXs),_.r("design:type",Object)],eX.prototype,"ytdTabbedHeaderBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],eX.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.jC),_.r("design:type",Object)],eX.prototype,"ytdGridStateAwareBehavior",void 0);_.A([_.b(_.Vi.YtdGuideStateAwareBehavior),_.r("design:type",Object)],eX.prototype,"ytdGuideStateAwareBehavior",void 0);
_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],eX.prototype,"componentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],eX.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Number)],eX.prototype,"selected",void 0);_.A([_.F(),_.r("design:type",Boolean)],eX.prototype,"active",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],eX.prototype,"hasBannerArt",void 0);
_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],eX.prototype,"dataChanged",null);_.A([_.w({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],eX);
_.q(eX,"ytd-interactive-tabbed-header-renderer",function(){if(Ef5!==void 0)return Ef5;var x=document.createElement("template");_.m(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-interactive-tabbed-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-app-header-layout class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-app-header id="header" slot="header" condenses="" disabled="[[!active]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-interactive-tabbed-header-renderer"><svg id="bg" viewBox="0 0 1439 304" preserveAspectRatio="xMinYMid slice" class="style-scope ytd-interactive-tabbed-header-renderer"><path opacity="0.5" d="M 0,304 V 0 H 963 L 1439,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.5" d="M 0,0 l 0,304 580,0 L 1055,0 0,0 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.9" d="M 0,304 V 0 H 780 L 1247,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path></svg><div id="content-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="content" class="style-scope ytd-interactive-tabbed-header-renderer"><yt-img-shadow id="box-art" object-fit="COVER" thumbnail="[[data.boxArt]]" class="style-scope ytd-interactive-tabbed-header-renderer"></yt-img-shadow><div id="details" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="title" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.title)]]</div><div id="auto-generated" hidden="[[!data.autoGenerated]]" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.autoGenerated)]]</div><div id="description" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.description)]]</div><div id="metadata" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.metadata)]]</div><ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-interactive-tabbed-header-renderer"></ytd-badge-supported-renderer><div id="buttons" class="style-scope ytd-interactive-tabbed-header-renderer"></div></div></div></div><tp-yt-app-toolbar sticky="" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-inner-container" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tabs noink="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-interactive-tabbed-header-renderer"><template is="dom-repeat" items="[[tabs]]" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tab hidden="[[!item.tabRenderer]]" class="style-scope ytd-interactive-tabbed-header-renderer">\n                [[item.tabRenderer.title]]\n              </tp-yt-paper-tab></template></tp-yt-paper-tabs></div></div></tp-yt-app-toolbar></tp-yt-app-header></tp-yt-app-header-layout>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Ef5=x},{mode:1});var M0f;var Rx=function(){return _.e.apply(this,arguments)||this};
_.p(Rx,_.e);Rx.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Rx.prototype.computeActionsAlignment=function(x){return(x==null?void 0:x.actionsAlignment)||""};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Rx.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Rx.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Rx.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.r("design:type",String)],Rx.prototype,"actionsAlignment",void 0);_.A([_.w({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],Rx);
_.q(Rx,"ytd-page-footer-renderer",function(){if(M0f!==void 0)return M0f;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return M0f=x},{mode:1});var dfz;var PsU;var G5=function(){var x=_.e.apply(this,arguments)||this;x.isEditing=!1;x.useSlot=!1;x.isMultiline=!1;return x};
_.p(G5,_.e);_.K=G5.prototype;_.K.onKeydown=function(x){if(x.keyCode===13&&!this.isMultiline)this.onSave();else if(x.keyCode===27)this.onCancel()};
_.K.computeComponentStyle=function(x){return(x==null?0:x.style)?x.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.K.computeisMultiline=function(x){if(this.multilineOverride!==void 0)return this.multilineOverride;var L,D;return!!(x==null?0:(L=x.formField)==null?0:(D=L.textInputFormFieldRenderer)==null?0:D.isMultiline)};
_.K.computeTextDisplayed=function(x,L){if(x)return x;if(L)return L};
_.K.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.K.onSave=function(){if(this.textForm.validate()){this.textForm.save();var x=this.textForm.value;if(x)this.set("data.textDisplayed",_.Dv(x));else{var L;((L=this.data)==null?0:L.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.gU("inline-form-changed",this.data));this.isEditing=!1}};
_.K.onCancel=function(){var x=_.SR(this.data.textDisplayed);x===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(x);this.isEditing=!1};
G5.prototype.onKeydown=G5.prototype.onKeydown;_.A([_.b(_.nE.YtEventForwardingBehavior),_.r("design:type",Object)],G5.prototype,"ytEventForwardingBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],G5.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],G5.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],G5.prototype,"data",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],G5.prototype,"isEditing",void 0);_.A([_.F(),_.r("design:type",Object)],G5.prototype,"useSlot",void 0);_.A([_.F(),_.r("design:type",Boolean)],G5.prototype,"multilineOverride",void 0);_.A([_.F(),_.r("design:type",Boolean)],G5.prototype,"enableOverlayTheme",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.r("design:type",String)],G5.prototype,"componentStyle",void 0);
_.A([_.F({computed:"computeisMultiline(data)"}),_.r("design:type",Object)],G5.prototype,"isMultiline",void 0);_.A([_.F1("#text-form"),_.r("design:type",Object)],G5.prototype,"textForm",void 0);_.A([_.mX("keydown"),_.r("design:type",Function),_.r("design:paramtypes",[KeyboardEvent]),_.r("design:returntype")],G5.prototype,"onKeydown",null);_.A([_.w({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],G5);
_.q(G5,"ytd-inline-form-renderer",function(){if(PsU!==void 0)return PsU;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return PsU=x},{mode:1});var jn8;var CQ=function(){var x=_.e.apply(this,arguments)||this;x.previousSelectValue=void 0;x.selectedItemMessage=void 0;return x};
_.p(CQ,_.e);CQ.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
CQ.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var x,L,D,S,Q=(x=this.data)==null?void 0:(L=x.dropdown)==null?void 0:(D=L.dropdownRenderer)==null?void 0:(S=D.entries)==null?void 0:S.map(function(y){return y.privacyDropdownItemRenderer});
x=_.O(Q!=null?Q:[]);for(L=x.next();!L.done;L=x.next())if((L=L.value)&&L.int32Value===this.selectedValue){this.selectedItemMessage=L.itemMessage;break}}else this.selectedItemMessage=void 0;var J;(J=this.onValueChanged)==null||J.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var Z;(Z=this.data)!=null&&Z.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
CQ.prototype.onValueChangedForSelectedValue=function(x){this.selectedValue=x.detail.value};
CQ.prototype.selectedValueChanged=CQ.prototype.selectedValueChanged;_.A([_.b(_.nE.YtEventForwardingBehavior),_.r("design:type",Object)],CQ.prototype,"ytEventForwardingBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],CQ.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],CQ.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],CQ.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],CQ.prototype,"data",void 0);_.A([_.F(),_.r("design:type",String)],CQ.prototype,"theme",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Number)],CQ.prototype,"selectedValue",void 0);_.A([_.F(),_.r("design:type",Function)],CQ.prototype,"onValueChanged",void 0);
_.A([_.GV("selectedValue"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],CQ.prototype,"selectedValueChanged",null);_.A([_.w({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],CQ);
_.q(CQ,"ytd-dropdown-form-field-renderer",function(){if(jn8!==void 0)return jn8;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return jn8=x},{mode:_.Vm("kevlar_poly_si_batch_j025")?1:2});var vfU;var lR=function(){return _.e.apply(this,arguments)||this};
_.p(lR,_.e);_.J3.Object.defineProperties(lR.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var x=[],L=_.O(this.data||[]),D=L.next();!D.done;D=L.next())(D=_.g(D.value,sC9))&&x.push(D);return x}}});
_.A([_.F(),_.r("design:type",Array)],lR.prototype,"data",void 0);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],lR.prototype,"byline",null);_.A([_.w({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],lR);
_.q(lR,"ytd-playlist-byline-renderer",function(){if(vfU!==void 0)return vfU;var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return vfU=x},{mode:1});var V0N;var Un=function(){var x=_.e.apply(this,arguments)||this;x.rtlBullet=_.u("web_playlist_stats_rtl_bullet_icon_killswitch");x.modern=_.u("web_modern_buttons");x.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return x};
_.p(Un,_.e);_.K=Un.prototype;_.K.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"}}}}};
_.K.attached=function(){};
_.K.computeIsCustomThumbnail=function(x){return x?!!x.playlistCustomThumbnailRenderer:!1};
_.K.onYtNavigate=function(x,L){if(L&&L.actions&&L.actions.indexOf("shuffle")>-1){x=_.yY().resolve(_.d6);var D=L.tempData||{};D.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);L.tempData=D;x.isShuffleNextPlaylist=!0}};
_.K.onUpdatePlaylistAction=function(x){var L;x=(L=_.g(x,_.GpB))==null?void 0:L.updatedRenderer;if(L=_.g(x,gJY))this.data=L};
_.K.computeStyleType=function(x){return x?x.toLowerCase().replace(/_/g,"-"):""};
_.K.computeThumbnailWidth=function(x){return x==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.K.computeHideThumbnailAria=function(x){if(x==null?0:x.thumbnailOverlays)for(var L=0;L<x.thumbnailOverlays.length;L++){var D=void 0;if((D=x.thumbnailOverlays[L])==null?0:D.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
Un.prototype.onYtNavigate=Un.prototype.onYtNavigate;_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Un.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],Un.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Un.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],Un.prototype,"ytComponentBehavior",void 0);
_.A([_.F(),_.r("design:type",Object)],Un.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Un.prototype,"rtlBullet",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.r("design:type",String)],Un.prototype,"styleType",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.r("design:type",Number)],Un.prototype,"thumbnailWidth",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Un.prototype,"modern",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.r("design:type",Boolean)],Un.prototype,"isCustomThumbnail",void 0);_.A([_.mX("yt-navigate"),_.r("design:type",Function),_.r("design:paramtypes",[Event,Object]),_.r("design:returntype")],Un.prototype,"onYtNavigate",null);_.A([_.w({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],Un);
_.q(Un,"ytd-playlist-sidebar-primary-info-renderer",function(){if(V0N!==void 0)return V0N;var x=document.createElement("template");_.m(x,'\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>');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return V0N=x},{mode:1});var hOU;var wR=function(){return _.e.apply(this,arguments)||this};
_.p(wR,_.e);wR.prototype.computeOwnerVisibility=function(x){return!(!x.videoOwner&&!x.button)};
wR.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"}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],wR.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],wR.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],wR.prototype,"data",void 0);_.A([_.w({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],wR);
_.q(wR,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(hOU!==void 0)return hOU;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return hOU=x},{mode:1});var H3N;var Bt=function(){var x=_.e.apply(this,arguments)||this;x.expanded=!1;x.isCompact=!1;return x};
_.p(Bt,_.e);_.K=Bt.prototype;_.K.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.K.dataChanged=function(){this.data&&_.JB(_.jr(this.text),_.EX2(_.Pq2,_.SR(this.data.text||null)))};
_.K.computeAutoScrollEnabled=function(x,L){return x&&!L};
_.K.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.K.toggleOnTap=function(){this.expanded=!this.expanded};
Bt.prototype.expandedChanged=Bt.prototype.expandedChanged;Bt.prototype.dataChanged=Bt.prototype.dataChanged;_.A([_.b(_.K0$),_.r("design:type",Object)],Bt.prototype,"ytdAutoScrollBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Bt.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Bt.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Bt.prototype,"expanded",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Bt.prototype,"isCompact",void 0);_.A([_.F({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.r("design:type",Boolean)],Bt.prototype,"autoScrollEnabled",void 0);_.A([_.F1("#text"),_.r("design:type",Object)],Bt.prototype,"text",void 0);_.A([_.F1("#expander-icon"),_.r("design:type",Object)],Bt.prototype,"expanderIcon",void 0);
_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Bt.prototype,"dataChanged",null);_.A([_.bN("expanded"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Bt.prototype,"expandedChanged",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],Bt);
_.q(Bt,"ytd-channel-legal-info-renderer",function(){if(H3N!==void 0)return H3N;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return H3N=x},{mode:1});var uhs;var gfi=_.p6("DOWNLOAD",{},"Download"),kNv=_.p6("DOWNLOADING",{},"Downloading"),p4w=_.p6("DOWNLOADED",{},"Downloaded"),Wt=function(){var x=_.e.apply(this,arguments)||this;x.downloadProgress=0;x.isDownloadComplete=!1;x.transferState="TRANSFER_STATE_UNKNOWN";return x};
_.p(Wt,_.e);_.K=Wt.prototype;_.K.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.K.dataChanged=function(){var x;(x=this.data)!=null&&x.tooltip||(x=_.f7(_.Jd().getState(),this.playlistId),this.updateButtonState(x))};
_.K.computePlaylistId=function(x){return x};
_.K.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.K.updateButtonState=function(x){if(this.data&&(this.data.tooltip!==kNv||!_.TD(x))){this.isDownloadComplete=!1;switch(x){case "TRANSFER_STATE_UNKNOWN":x=gfi;var L="OFFLINE_DOWNLOAD";var D="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":x=p4w;L="OFFLINE_PIN";D="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":x=kNv;L="OFFLINE_DOWNLOADING_ZERO";D="ACTION_REMOVE_WITH_PROMPT";
break;default:x=gfi,L="OFFLINE_DOWNLOAD",D="ACTION_ADD"}var S=Object.assign({},this.data);S.tooltip=x;S.accessibilityData={accessibilityData:{label:x}};S.icon={iconType:L};S.size="SIZE_DEFAULT";_.g(S.command,_.pX)&&(_.g(S.command,_.pX).action=D);this.set("data",S)}};
_.K.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var x="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?x="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?x="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?x="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?x="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?x="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(x="OFFLINE_PIN",this.isDownloadComplete=!0);var L;x!==((L=this.data.icon)==null?void 0:L.iconType)&&(L=Object.assign({},this.data),L.tooltip=kNv,L.accessibilityData={accessibilityData:{label:kNv}},L.icon={iconType:x},_.g(L.command,_.pX)&&(_.g(L.command,_.pX).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",L))}};
Wt.prototype.updateProgress=Wt.prototype.updateProgress;Wt.prototype.onTransferStateChanged=Wt.prototype.onTransferStateChanged;Wt.prototype.dataChanged=Wt.prototype.dataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Wt.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],Wt.prototype,"ytdReduxBehavior",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],Wt.prototype,"forceIconButton",void 0);
_.A([_.F({value:!0}),_.r("design:type",Boolean)],Wt.prototype,"forceIconOnly",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],Wt.prototype,"overrides",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],Wt.prototype,"buttonTooltipPosition",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],Wt.prototype,"styleActionButton",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],Wt.prototype,"disableTextTransform",void 0);
_.A([_.F({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.r("design:type",String)],Wt.prototype,"playlistId",void 0);_.A([_.F(),_.r("design:type",Object)],Wt.prototype,"data",void 0);_.A([_.F({selector:_.T6p,selectorArgs:["playlistId"]}),_.r("design:type",Object)],Wt.prototype,"downloadProgress",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Wt.prototype,"isDownloadComplete",void 0);
_.A([_.F({selector:_.f7,selectorArgs:["playlistId"]}),_.r("design:type",String)],Wt.prototype,"transferState",void 0);_.A([_.F({value:!0}),_.r("design:type",Boolean)],Wt.prototype,"showTooltips",void 0);_.A([_.F({value:!0}),_.r("design:type",Boolean)],Wt.prototype,"sendCommandWhenDisabled",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],Wt.prototype,"disabled",void 0);
_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Wt.prototype,"dataChanged",null);_.A([_.GV("transferState"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Wt.prototype,"onTransferStateChanged",null);_.A([_.GV("downloadProgress"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Wt.prototype,"updateProgress",null);
_.A([_.w({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],Wt);
_.q(Wt,"ytd-download-playlist-button-renderer",function(){if(uhs!==void 0)return uhs;var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return uhs=x},{mode:1});var mfR;_.dF(_.k1r,"thumbnail-overlay-button-view-model",{props:{data:_.pJ,lockupExperiments:_.pJ}});var q2=function(){var x=_.e.apply(this,arguments)||this;x.isSquare=!1;x.isVertical=!1;return x};
_.p(q2,_.e);q2.prototype.computeIsSquare=function(x){return x!=null&&x.thumbnail?DzY(x.thumbnail)==="SQUARE":!1};
q2.prototype.computeIsVertical=function(x){return x!=null&&x.thumbnail?DzY(x.thumbnail)==="VERTICAL":!1};
q2.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],q2.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],q2.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.r("design:type",Object)],q2.prototype,"isSquare",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.r("design:type",Object)],q2.prototype,"isVertical",void 0);
_.A([_.F(),_.r("design:type",Object)],q2.prototype,"data",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],q2);
_.q(q2,"ytd-hero-playlist-thumbnail-renderer",function(){if(mfR!==void 0)return mfR;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return mfR=x},{mode:1});var Av=function(){var x=_.e.apply(this,arguments)||this;x.isDarkTheme=!1;x.isUltraWide=!1;x.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return x};
_.p(Av,_.e);_.K=Av.prototype;_.K.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.yY();var x;(x=_.yY().resolve(_.ZN(_.W1)))!=null&&(x.headerElement=this.hostElement)};
_.K.detached=function(){var x;(x=_.yY().resolve(_.ZN(_.W1)))!=null&&(x.headerElement=void 0)};
_.K.onUpdateHeader=function(x){(x=x.detail)&&this.set("data",x)};
_.K.computeTextDisplayed=function(x){if(x)return x.textDisplayed?x.textDisplayed:x.placeholder};
_.K.gradientColorToLinearGradientStop=function(x){var L=this.isDarkTheme?x.darkThemeColor:x.lightThemeColor;return L?_.XA(L)+" "+((x==null?void 0:x.startLocation)||0)*100+"%":"transparent"};
_.K.onWindowResize=function(){var x;((x=this.data)==null?0:x.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.K.onIronResize=function(x){this.isUltraWide=!x.detail.value};
_.K.onDarkModeToggledAction=function(x){this.isDarkTheme=x};
_.K.onUpdatePlaylistName=function(x){var L=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},x.detail.value));_.So(this,function(){var D;(D=L.editableTitle)==null||D.resize()})};
_.K.onUpdatePlaylistDescription=function(x){var L=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},x.detail.value));_.So(this,function(){var D;(D=L.editableDescriptionInlineExpander)==null||D.resize()})};
_.K.getCinematicData=function(x){return _.g(x==null?void 0:x.cinematicContainer,_.SX)};
_.J3.Object.defineProperties(Av.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 x,L=(x=this.getCinematicData(this.data))==null?void 0:x.config;return(x=this.isDarkTheme?L==null?void 0:L.darkThemeBackgroundColor:L==null?void 0:L.lightThemeBackgroundColor)?"background-color:"+_.zF(x)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var x;return _.g((x=this.data)==null?void 0:x.descriptionForm,uB5)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var x=this,L,D,S;return"background:linear-gradient(to bottom, "+(((S=(L=this.getCinematicData(this.data))==null?void 0:(D=L.gradientColorConfig)==null?void 0:D.map(function(Q){return x.gradientColorToLinearGradientStop(Q)}))==null?void 0:S.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var x;return _.SR((x=this.data)==null?void 0:x.descriptionTapText)}}});
Av.prototype.onUpdateHeader=Av.prototype.onUpdateHeader;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Av.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],Av.prototype,"actionHandlerBehavior",void 0);_.A([_.F1("#description-inline-expander"),_.r("design:type",Object)],Av.prototype,"descriptionInlineExpander",void 0);
_.A([_.F1("#editable-description-inline-expander"),_.r("design:type",Object)],Av.prototype,"editableDescriptionInlineExpander",void 0);_.A([_.F(),_.r("design:type",Object)],Av.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],Av.prototype,"isUltraWide",void 0);_.A([_.F1("#editable-title-display"),_.r("design:type",Object)],Av.prototype,"editableTitle",void 0);_.A([_.Y("isUltraWide"),_.r("design:type",Object),_.r("design:paramtypes",[])],Av.prototype,"maxDescriptionLines",null);
_.A([_.F({reflectToAttribute:!0}),_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Av.prototype,"noCinematicData",null);_.A([_.mX("yt-new-playlist-header"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Av.prototype,"onUpdateHeader",null);_.A([_.Y("data","isDarkTheme"),_.r("design:type",Object),_.r("design:paramtypes",[])],Av.prototype,"backgroundStyle",null);
_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Av.prototype,"descriptionFormData",null);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Av.prototype,"getDropdownTheme",null);_.A([_.Y("data","isDarkTheme"),_.r("design:type",String),_.r("design:paramtypes",[])],Av.prototype,"gradientStyle",null);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Av.prototype,"descriptionTapText",null);
_.A([_.w({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],Av);
_.q(Av,"ytd-playlist-header-renderer",function(){if(dfz!==void 0)return dfz;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return dfz=x},{mode:_.Vm("kevlar_poly_si_batch_j078")?1:2});var b3U;var Ywe;var $d=function(){return _.e.apply(this,arguments)||this};
_.p($d,_.e);$d.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],$d.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],$d.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],$d.prototype,"data",void 0);_.A([_.w({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],$d);
_.q($d,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(Ywe!==void 0)return Ywe;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return Ywe=x},{mode:1});var rR=function(){return _.e.apply(this,arguments)||this};
_.p(rR,_.e);
rR.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}}}}};
rR.prototype.computeUsePremiumShowStyle=function(x){if(!x||!x.items)return!1;for(var L=0;L<x.items.length;L++)if(_.g(x.items[L],gJY)){var D=void 0;return((D=_.g(x.items[L],gJY))==null?void 0:D.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],rR.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],rR.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],rR.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.r("design:type",Boolean)],rR.prototype,"usePremiumShowStyle",void 0);
_.A([_.w({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],rR);
_.q(rR,"ytd-playlist-sidebar-renderer",function(){if(b3U!==void 0)return b3U;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return b3U=x},{mode:1});var Fci;var snN;var T0N=function(x,L,D,S,Q,J,Z,y){this.minWidth=x;this.minHeight=L;this.recommendedWidth=D;this.recommendedHeight=S;this.JSC$22194_maxFileSize=Q;this.title=J;this.bannerGalleryTitle=Z;this.channelId=y;this.picker_=null;x=_.MEw("yt-banner");L=x.addView;D=(new I$u("youtubebanner")).addUploadMetadata("silo_id","19");D.opts.ytMaxFileSize=this.JSC$22194_maxFileSize;S=this.recommendedHeight;D.opts.ytRecWidth=this.recommendedWidth;D.opts.ytRecHeight=S;L.call(x,D);x.addView(new _.$0);L=x.addView;D=new _.$0;
D.opts.type="ytbanner";L.call(x,D.JSC$10078_setLabel(this.bannerGalleryTitle));L=x.setTitle(this.title).setSize(1E3);L.urlParamMap_.set("thumbs","orig");D=this.minWidth;S=this.minHeight;if(isNaN(D)||isNaN(S))throw Error("gb`"+D+"`"+S);L.urlParamMap_.set("minSize",D+"x"+S);L.urlParamMap_.set("cropMode","ytcb");this.builder_=x};
T0N.prototype.open=function(){var x=this;return new _.HI(function(L,D){_.c8_(x.builder_,function(S){S.action=="picked"?L(S):S.action=="cancel"&&D(Error("Ho"))});
x.picker_&&x.picker_.dispose();x.picker_=x.builder_.build();x.picker_.setVisible(!0)})};
T0N.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var eO8=function(x){this.channelId=x};
eO8.prototype.upload=function(x){var L="";x.viewToken&&(L=x.viewToken[2].type);var D=x.docs[0];x=D.crop;L={channel_id:this.channelId,fife_url:D.thumbnails[0].url,photo_id:D.id,is_gallery_image:L=="ytbanner"};x&&(L.crop_top=x.top,L.crop_right=x.right,L.crop_bottom=x.bottom,L.crop_left=x.left);return _.oF4("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:L})};var N2=function(){var x=_.e.apply(this,arguments)||this;x.ariaLabel=null;return x};
_.p(N2,_.e);_.K=N2.prototype;_.K.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.K.detached=function(){this.picker&&this.picker.dispose()};
_.K.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.K.computeAriaLabel=function(x){return x};
_.K.onTap=function(){var x=this,L;if((L=this.data)==null||!L.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new T0N(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 D;(D=this.picker)==null||D.open().then(function(S){x.handleBannerPicked(S)},function(){})}};
_.K.handleBannerPicked=function(x){var L=this;this.uploader||(this.uploader=new eO8(this.data.channelId||""));this.message=this.data.uploadingText;this.uploader.upload(x).then(function(D){L.handleBannerUploadSucceeded(D)},function(D){L.handleBannerUploadFailed(D)})};
_.K.handleBannerUploadSucceeded=function(x){x&&x.errors?this.handleBannerUploadFailed(x):(_.MF(this.hostElement,"yt-banner-updated",x),this.message=null)};
_.K.handleBannerUploadFailed=function(x){this.message=x&&x.errors&&x.errors.length?x.errors[0]:null};
N2.prototype.dataChanged=N2.prototype.dataChanged;_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],N2.prototype,"componentBehavior",void 0);_.A([_.b(_.n1),_.r("design:type",Object)],N2.prototype,"ironButtonState",void 0);_.A([_.F(),_.r("design:type",Object)],N2.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.r("design:type",Object)],N2.prototype,"ariaLabel",void 0);
_.A([_.F(),_.r("design:type",Object)],N2.prototype,"message",void 0);_.A([_.F(),_.r("design:type",Object)],N2.prototype,"picker",void 0);_.A([_.F(),_.r("design:type",Object)],N2.prototype,"uploader",void 0);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],N2.prototype,"dataChanged",null);_.A([_.w({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],N2);
_.q(N2,"ytd-channel-banner-editor-renderer",function(){if(snN!==void 0)return snN;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return snN=x},{mode:1});var ROf;var GNs=_.xI(["#"]),iR=function(){return _.e.apply(this,arguments)||this};
_.p(iR,_.e);iR.prototype.computeHrefWithDefault=function(x){return this.ytComponentBehavior.computeHref_(x,!0)||_.KW0(GNs)};
iR.prototype.dataChanged=function(){var x=this.data;x&&x.targetId&&_.Af_(_.tY(),x.targetId,this.moreIcon)};
iR.prototype.dataChanged=iR.prototype.dataChanged;_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],iR.prototype,"ytComponentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],iR.prototype,"data",void 0);_.A([_.F1("#more-icon"),_.r("design:type",Object)],iR.prototype,"moreIcon",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],iR.prototype,"dataChanged",null);
_.A([_.w({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],iR);
_.q(iR,"ytd-channel-tagline-renderer",function(){if(ROf!==void 0)return ROf;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return ROf=x},{mode:1});var CsN;var fQ=function(){return _.e.apply(this,arguments)||this};
_.p(fQ,_.e);_.K=fQ.prototype;_.K.ready=function(){var x=this;_.jr(this.hostElement).querySelector("#form").addEventListener("submit",function(L){x.onSubmit(L)})};
_.K.onDataChanged=function(){var x;((x=this.data)==null?0:x.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.K.onIconButtonKeydown=function(x){x.keyCode===13&&this.iconButton.click()};
_.K.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.K.openOnClickHandler=function(){this.input.focus()};
_.K.onSubmit=function(x){x.preventDefault();return!1};
_.K.submitOnEnterKeyUp=function(x){var L;if(x.keyCode===13&&((L=this.data)==null?0:L.expandedText)){x=this.data.endpoint;L=_.wk.unsafeClone(x);var D;((D=_.g(L==null?void 0:L.commandMetadata,_.gg))==null?0:D.url)?(_.g(L.commandMetadata,_.gg).url=_.rz(_.g(L.commandMetadata,_.gg).url,"query",this.data.expandedText),_.g(L,_.mt)&&(_.g(L,_.mt).query=this.data.expandedText),_.MF(this.hostElement,"yt-navigate",{endpoint:L,tempData:{disableCache:!0}})):(D=new _.RZ("Error: Trying to navigate to an endpoint without url",
x),_.BI(D))}};
_.K.updateDataExpandedTextFromBinding=function(x){this.set("data.expandedText",x.detail.value)};
_.J3.Object.defineProperties(fQ.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.u("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
fQ.prototype.onDataChanged=fQ.prototype.onDataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],fQ.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZW),_.r("design:type",Object)],fQ.prototype,"ytdExpandableInputBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],fQ.prototype,"data",void 0);_.A([_.F1("#input"),_.r("design:type",Object)],fQ.prototype,"input",void 0);_.A([_.F1("#icon-button"),_.r("design:type",HTMLElement)],fQ.prototype,"iconButton",void 0);
_.A([_.F(),_.r("design:type",String),_.r("design:paramtypes",[])],fQ.prototype,"searchIcon",null);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],fQ.prototype,"onDataChanged",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],fQ);
var SS9=_.vp()(fQ,"ytd-expandable-tab-renderer",function(){if(CsN===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);CsN=x}x=CsN;return x},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var lpz;var ox=function(){var x=_.e.apply(this,arguments)||this;x.avatarSize=80;x.ariaLabel=_.p6("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return x};
_.p(ox,_.e);ox.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
ox.prototype.computeHref=function(x){var L;return((L=_.g(x,_.oR))==null?0:L.url)?this.componentBehavior.computeHref_(x):null};
ox.prototype.onTap=function(){var x,L;(x=this.data)==null||!x.editAvatarServiceEndpoint||((L=_.g(this.data.editAvatarServiceEndpoint,_.oR))==null?0:L.url)||_.yY().resolve(_.E2).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.A([_.b(_.n1),_.r("design:type",Object)],ox.prototype,"ironButtonState",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],ox.prototype,"componentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],ox.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],ox.prototype,"avatarSize",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",String)],ox.prototype,"ariaLabel",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],ox);
_.q(ox,"ytd-channel-avatar-editor",function(){if(lpz!==void 0)return lpz;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return lpz=x},{mode:1});var Ufi=_.B(function(x){var L=x.data;var D=x.noPadding;var S=x.enableBanner;var Q=x.cinematicContainerTopbarOffset;var J=x.allowCinematicContainerOverflow;var Z=x.displayAsSidebar;x=x.className;_.Us(function(){L().tagManagerId&&(_.SZ(L().tagManagerId,_.$6("GL")),yC9(L().tagManagerId))},"vUc8md");
var y=_.mF(JC9,function(){return L().pageHeaderEntityKey});
return _.M("yt-page-header-renderer",{class:_.gF("pageHeaderRendererHost",x)},_.M(_.Fj,{data:function(){var E;return((E=y())==null?0:E.header)?y().header:(Z==null?0:Z())&&L().sidebarContent?L().sidebarContent:L().content}},{pageHeaderViewModel:function(E){return _.M(_.J$W,{data:E.data,
noPadding:D,enableBanner:S,cinematicContainerTopbarOffset:Q,allowCinematicContainerOverflow:J,displayAsSidebar:function(){return(Z==null?void 0:Z())&&L().enableSidebarView}})}}))},"Bm");
Ufi.idomCompat=!0;_.dF(Ufi,"yt-page-header-renderer",{props:{data:_.pJ,noPadding:_.pJ,enableBanner:_.pJ,cinematicContainerTopbarOffset:_.pJ,allowCinematicContainerOverflow:_.pJ,displayAsSidebar:_.pJ,className:_.pJ}});_.dF(_.dC,"yt-image-banner-view-model",{props:{data:_.pJ,isPositionRelative:_.pJ}});_.dF(_.mD2,"yt-tab-group-shape",{props:{shape:_.pJ}});var w48=_.aB.persistentPanelVisibleSelector,ax=function(){var x=_.e.apply(this,arguments)||this;x.expandableCustomTabRenderable=function(L){return QCq(L,function(){return void x.onSearchNavigate()})};
x.isRichGrid=!1;x.isConstrainedList=!1;x.richGridMiniMode=!1;x.richGridStyle="RICH_GRID_STYLE_UNKNOWN";x.isRichGridShorts=!1;x.responsiveSizing="COMPACT";x.disableGridStateAware=!1;x.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return x};
_.p(ax,_.e);_.K=ax.prototype;_.K.computeHeaderDisabled=function(x,L){return L||!x||this.tabsHidden};
_.K.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.K.computeIsRichGridShorts=function(x){return x==="RICH_GRID_STYLE_SHORTS_GRID"||x==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.K.computeImageBannerViewModel=function(){var x,L;return _.g((L=_.g((x=this.data)==null?void 0:x.content,_.ZfR))==null?void 0:L.banner,_.LwC)};
_.K.computeHasCinematicContainer=function(){var x,L;return!((L=_.g((x=this.data)==null?void 0:x.content,_.ZfR))==null||!L.background)};
_.K.handleHeaderResize=function(){var x=_.jr(this.hostElement).querySelector("#header");x&&_.MF(x,"iron-resize")};
_.K.handleInsertTabCommand=function(x){var L=_.g(x,T9u);L&&(L.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(D){return D.tabRenderer&&D.tabRenderer.tabIdentifier===L.tabIdentifier})||this.splice("tabs",L.tabIndex||-1,0,L.tab))};
_.K.handleRefreshChannelTabAction=function(x){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===x&&_.MF(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.K.persistentPanelVisibleChanged=function(){this.handleHeaderResize()};
_.K.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.uN(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.K.observerRichGridSlimItemsPerRow=function(){_.uN(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.K.updateCssVars=function(){this.richGridItemsPerRow&&_.uN(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.dE("rich_grid_max_item_width",500))+16)-16+"px"})};
_.K.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.uN(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.K.onDataChanged=function(){this.handleHeaderResize()};
_.K.onWindowResize=function(){this.handleHeaderResize()};
_.K.onFocusedChanged=function(x){(x=_.K$(x))&&x.is==="tp-yt-paper-tab"&&x.hasRipple()&&(x.getRipple().holdDown=!x.pointerDown&&x.focused)};
_.K.updateSelectedFromBinding=function(x){this.ytdTabbedHeaderBehavior.selected=x.detail.value};
_.K.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.J3.Object.defineProperties(ax.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:Onl(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.imageBannerViewModel)==null?void 0:x.style)==="IMAGE_BANNER_STYLE_INSET"}}});
ax.prototype.onDataChanged=ax.prototype.onDataChanged;ax.prototype.updateCssVarsForResponsiveGrid=ax.prototype.updateCssVarsForResponsiveGrid;ax.prototype.updateCssVars=ax.prototype.updateCssVars;ax.prototype.observerRichGridSlimItemsPerRow=ax.prototype.observerRichGridSlimItemsPerRow;ax.prototype.observerRichGridItemsPerRow=ax.prototype.observerRichGridItemsPerRow;ax.prototype.persistentPanelVisibleChanged=ax.prototype.persistentPanelVisibleChanged;
_.A([_.b(_.jC),_.r("design:type",Object)],ax.prototype,"ytdGridStateAwareBehavior",void 0);_.A([_.b(eXs),_.r("design:type",Object)],ax.prototype,"ytdTabbedHeaderBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],ax.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],ax.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.b(_.Vi.YtdGuideStateAwareBehavior),_.r("design:type",Object)],ax.prototype,"ytdGuideStateAwareBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],ax.prototype,"ytdReduxBehavior",void 0);_.A([_.F1("#tabs"),_.r("design:type",Object)],ax.prototype,"tabsElement",void 0);_.A([_.F(),_.r("design:type",Array)],ax.prototype,"tabs",void 0);_.A([_.F(),_.r("design:type",Object)],ax.prototype,"expandableCustomTabRenderable",void 0);
_.A([_.Y("tabs.*"),_.r("design:type",Object),_.r("design:paramtypes",[])],ax.prototype,"tabGroupShape",null);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],ax.prototype,"isRichGrid",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],ax.prototype,"isConstrainedList",void 0);_.A([_.F({reflectToAttribute:!0,selector:_.qU}),_.r("design:type",Object)],ax.prototype,"richGridMiniMode",void 0);_.A([_.F({selector:function(x){return x.ui.richGridStyle}}),
_.r("design:type",Object)],ax.prototype,"richGridStyle",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.r("design:type",Object)],ax.prototype,"isRichGridShorts",void 0);_.A([_.F({selector:_.A2}),_.r("design:type",Number)],ax.prototype,"richGridItemsPerRow",void 0);_.A([_.F({selector:function(x){return x.ui.richGridContainerWidth}}),
_.r("design:type",Number)],ax.prototype,"richGridContainerWidth",void 0);_.A([_.F({selector:_.jOG}),_.r("design:type",Number)],ax.prototype,"richGridSlimItemsPerRow",void 0);_.A([_.F(),_.r("design:type",Object)],ax.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],ax.prototype,"responsiveSizing",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],ax.prototype,"disableGridStateAware",void 0);
_.A([_.F({computed:"computeImageBannerViewModel(data)"}),_.r("design:type",Object)],ax.prototype,"imageBannerViewModel",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.r("design:type",Boolean)],ax.prototype,"hasCinematicContainer",void 0);_.A([_.F({selector:_.Lvl,reflectToAttribute:!0}),_.r("design:type",Boolean)],ax.prototype,"guideIsVisibleButNotPersistent",void 0);
_.A([_.F({selector:w48}),_.r("design:type",Boolean)],ax.prototype,"persistentPanelVisible",void 0);_.A([_.F({reflectToAttribute:!0}),_.Y("imageBannerViewModel"),_.r("design:type",Object),_.r("design:paramtypes",[])],ax.prototype,"hasBanner",null);_.A([_.F({reflectToAttribute:!0}),_.Y("imageBannerViewModel"),_.r("design:type",Object),_.r("design:paramtypes",[])],ax.prototype,"hasInsetBanner",null);
_.A([_.F({computed:"computeTabsHidden(tabs)",value:!0}),_.r("design:type",Boolean)],ax.prototype,"tabsHidden",void 0);_.A([_.bN("persistentPanelVisible"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ax.prototype,"persistentPanelVisibleChanged",null);_.A([_.bN("richGridItemsPerRow","isRichGrid"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ax.prototype,"observerRichGridItemsPerRow",null);
_.A([_.bN("richGridSlimItemsPerRow"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ax.prototype,"observerRichGridSlimItemsPerRow",null);_.A([_.bN("richGridItemsPerRow","richGridMiniMode"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ax.prototype,"updateCssVars",null);
_.A([_.bN("richGridContainerWidth"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ax.prototype,"updateCssVarsForResponsiveGrid",null);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ax.prototype,"onDataChanged",null);_.A([_.w({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],ax);
_.q(ax,"ytd-tabbed-page-header",function(){if(Fci!==void 0)return Fci;var x=document.createElement("template");_.m(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tabbed-page-header--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <tp-yt-app-header-layout class="style-scope ytd-tabbed-page-header">\n    <tp-yt-app-header id="header" slot="header" condenses="" disabled="[[computeHeaderDisabled(active, guideIsVisibleButNotPersistent, tabs)]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n        <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n          <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n            <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n              <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header">\n              </yt-image-banner-view-model>\n            </div>\n          </div>\n        </template>\n        <div id="page-header" class="style-scope ytd-tabbed-page-header">\n          <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[tabsHidden]]" no-padding="" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n        </div>\n      </div>\n      <tp-yt-app-toolbar disable-upgrade$="[[tabsHidden]]" sticky="" class="style-scope ytd-tabbed-page-header">\n        <div id="tabs-container" class="style-scope ytd-tabbed-page-header">\n          \n          <div id="tabs-inner-container" class="style-scope ytd-tabbed-page-header">\n            <div id="tabs-divider" class="style-scope ytd-tabbed-page-header"></div>\n            <tp-yt-paper-tabs id="tabs" disable-upgrade$="[[tabsHidden]]" noink="" remove-idle-scroll-buttons="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-tabbed-page-header">\n              <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-tabbed-page-header"> </yt-tab-group-shape>\n            </tp-yt-paper-tabs>\n          </div>\n        </div>\n      </tp-yt-app-toolbar>\n    </tp-yt-app-header>\n  </tp-yt-app-header-layout>\n</template>\n<template is="dom-if" if="[[tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n    <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n        <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n          <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header"> </yt-image-banner-view-model>\n        </div>\n      </div>\n    </template>\n    <div id="page-header" class="style-scope ytd-tabbed-page-header">\n      <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[!tabsHidden]]" no-padding="true" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n    </div>\n  </div>\n</template>\n');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Fci=x},{mode:1});var B0v;var z5=function(){return _.e.apply(this,arguments)||this};
_.p(z5,_.e);z5.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.uN(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.J3.Object.defineProperties(z5.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var x,L;return this.componentBehavior.computeIcon_(((L=_.g((x=this.data)==null?void 0:x.badge,_.jsC))==null?void 0:L.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var x,L;return(L=_.g((x=this.data)==null?void 0:x.badge,_.jsC))==null?void 0:L.label}}});
z5.prototype.observerRichGridItemsPerRow=z5.prototype.observerRichGridItemsPerRow;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],z5.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],z5.prototype,"componentBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],z5.prototype,"ytdReduxBehavior",void 0);_.A([_.F({reflectToAttribute:!0,selector:_.qU}),_.r("design:type",Boolean)],z5.prototype,"richGridMiniMode",void 0);
_.A([_.F({selector:_.A2}),_.r("design:type",Number)],z5.prototype,"richGridItemsPerRow",void 0);_.A([_.F(),_.r("design:type",Object)],z5.prototype,"data",void 0);_.A([_.bN("richGridItemsPerRow"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],z5.prototype,"observerRichGridItemsPerRow",null);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],z5.prototype,"badgeIconName",null);
_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],z5.prototype,"badgeLabel",null);_.A([_.w({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],z5);
_.q(z5,"ytd-member-hub-profile-renderer",function(){if(B0v!==void 0)return B0v;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return B0v=x},{mode:1});var Wc8;var XF=function(){return _.e.apply(this,arguments)||this};
_.p(XF,_.e);XF.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],XF.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],XF.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],XF.prototype,"data",void 0);_.A([_.w({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],XF);
_.q(XF,"ytd-settings-sidebar-renderer",function(){if(Wc8!==void 0)return Wc8;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Wc8=x},{mode:1});var qwU;var ct=function(){var x=_.e.apply(this,arguments)||this;x.expandableCustomTabRenderable=function(L){return QCq(L,function(){return void x.onSearchNavigate()})};
return x};
_.p(ct,_.e);ct.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
ct.prototype.onSearchNavigate=function(){this.selected=void 0};
ct.prototype.onTabsChange=function(){var x,L=(x=this.tabs)==null?void 0:x.findIndex(function(D){var S;return D==null?void 0:(S=D.tabRenderer)==null?void 0:S.selected});
L!==void 0&&(this.selected=L)};
ct.prototype.onTabsActive=function(x){if(this.tabs!==void 0){var L,D;(x=(L=this.tabs[x.detail.selected])==null?void 0:(D=L.tabRenderer)==null?void 0:D.endpoint)&&_.MF(this.hostElement,"yt-navigate",{endpoint:x})}};
_.J3.Object.defineProperties(ct.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:Onl(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
ct.prototype.onTabsChange=ct.prototype.onTabsChange;_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],ct.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.jC),_.r("design:type",Object)],ct.prototype,"ytdGridStateAwareBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],ct.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.Vi.YtdGuideStateAwareBehavior),_.r("design:type",Object)],ct.prototype,"ytdGuideStateAwareBehavior",void 0);
_.A([_.F(),_.r("design:type",Object)],ct.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Array)],ct.prototype,"tabs",void 0);_.A([_.F(),_.r("design:type",Number)],ct.prototype,"selected",void 0);_.A([_.Y("tabs.*"),_.r("design:type",Object),_.r("design:paramtypes",[])],ct.prototype,"tabGroupShape",null);_.A([_.F(),_.r("design:type",Object)],ct.prototype,"expandableCustomTabRenderable",void 0);
_.A([_.Y("tabs"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],ct.prototype,"tabsEnabled",null);_.A([_.GV("tabs"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ct.prototype,"onTabsChange",null);_.A([_.w({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],ct);
_.q(ct,"ytd-topic-channel-details-renderer",function(){if(qwU!==void 0)return qwU;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return qwU=x},{mode:1});var AGs;var nQ=function(){var x=_.e.apply(this,arguments)||this;x.disableGridStateAware=!1;return x};
_.p(nQ,_.e);nQ.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]]"}}}}}};
nQ.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
nQ.prototype.updateCssVars=function(){_.uN(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.dE("rich_grid_max_item_width",500))+16)-16+"px"})};
nQ.prototype.updateCssVars=nQ.prototype.updateCssVars;nQ.prototype.activeChanged=nQ.prototype.activeChanged;_.A([_.b(_.Vi.YtdGuideStateAwareBehavior),_.r("design:type",Object)],nQ.prototype,"ytdGuideStateAwareBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],nQ.prototype,"ytdReduxBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],nQ.prototype,"ytRendererBehavior",void 0);
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],nQ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],nQ.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Array)],nQ.prototype,"tabs",void 0);_.A([_.F(),_.r("design:type",Boolean)],nQ.prototype,"active",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],nQ.prototype,"disableGridStateAware",void 0);
_.A([_.F({selector:_.A2}),_.r("design:type",Number)],nQ.prototype,"richGridItemsPerRow",void 0);_.A([_.F({selector:_.qU}),_.r("design:type",Boolean)],nQ.prototype,"richGridMiniMode",void 0);_.A([_.F1("ytd-carousel-item-renderer"),_.r("design:type",Object)],nQ.prototype,"carousel",void 0);_.A([_.bN("active"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],nQ.prototype,"activeChanged",null);
_.A([_.bN("richGridItemsPerRow","richGridMiniMode"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],nQ.prototype,"updateCssVars",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],nQ);
_.q(nQ,"ytd-carousel-header-renderer",function(){if(AGs!==void 0)return AGs;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return AGs=x},{mode:1});var $fw;var rGz=_.xI(["https://www.google-analytics.com/analytics.js"]),tv=function(){var x=_.e.apply(this,arguments)||this;x.scriptAnalyticsAdded=!1;return x};
_.p(tv,_.e);tv.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var x,L=(x=this.data)==null?void 0:x.tagManagerId;L&&(_.SZ(L,_.$6("GL")),yC9(L))};
tv.prototype.sendGoogleAnalyticsPageview=function(x){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var D=_.Ne.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(D)};
var L=window.ga;L("set","page",window.location.pathname);L.l=+new Date;L("set","forceSSL",!0);L("create",x,"'auto'");L("send","pageview")};
tv.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var x=_.pw("SCRIPT");x.name="ga-analytics";var L=_.Pn(rGz);_.QD(x,L);x.async=!0;_.jr(this.hostElement).appendChild(x)};
tv.prototype.dataChanged=tv.prototype.dataChanged;_.A([_.F(),_.r("design:type",Object)],tv.prototype,"data",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],tv.prototype,"dataChanged",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],tv);
_.q(tv,"ytd-channel-metadata-renderer",function(){if($fw!==void 0)return $fw;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return $fw=x},{mode:1});var N0R;var i3i;var xL=function(){var x=_.e.apply(this,arguments)||this;x.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"]);x.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"]);x.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return x};
_.p(xL,_.e);_.K=xL.prototype;_.K.attached=function(){this.requestElementsPerRow()};
_.K.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_]]"}}}}}};
_.K.onUpdateElementsPerRowAction=function(x){x&&this.elementsPerRow!==x&&(this.elementsPerRow=x)};
_.K.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.K.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.K.computeAlertStyle_=function(x){return x};
_.K.observerElementsPerRow=function(){this.elementsPerRow&&_.uN(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.K.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.K.requestElementsPerRow=function(){_.MF(this.hostElement,"yt-request-elements-per-row")};
xL.prototype.onIsVisibleChanged_=xL.prototype.onIsVisibleChanged_;xL.prototype.observerElementsPerRow=xL.prototype.observerElementsPerRow;_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],xL.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],xL.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],xL.prototype,"actionHandlerBehavior",void 0);
_.A([_.F(),_.r("design:type",Object)],xL.prototype,"data",void 0);_.A([_.F({value:6,reflectToAttribute:!0}),_.r("design:type",Number)],xL.prototype,"elementsPerRow",void 0);_.A([_.F({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],xL.prototype,"wrapButtons",void 0);_.A([_.F({value:_.$6("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.r("design:type",Boolean)],xL.prototype,"isMusic",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.r("design:type",String)],xL.prototype,"alertStyle",void 0);_.A([_.F({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.r("design:type",Function)],xL.prototype,"dismissBoundButtonTap_",void 0);_.A([_.F({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.r("design:type",Function)],xL.prototype,"acceptBoundButtonTap_",void 0);_.A([_.bN("elementsPerRow"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],xL.prototype,"observerElementsPerRow",null);_.A([_.bN("data.isVisible"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],xL.prototype,"onIsVisibleChanged_",null);_.A([_.oW({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],xL);
_.q(xL,"yt-alert-with-actions-renderer",function(){if(i3i===void 0){var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;N0R===void 0&&(N0R=document.createElement("template"));var S=N0R;D.call(L,S.content.cloneNode(!0),x.content.firstChild);i3i=x}x=i3i;return x},{mode:2});_.dF(_.B(function(x){function L(h){var H={};return _.M(_.kP,{text:h,className:_.gF("ytPersonalGreetingViewModelHeadline",(H.ytPersonalGreetingViewModelHeadlineSmall=function(){return y()===48},H))})}
function D(h,H){return _.M("span",{el:h,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},L(H))}
var S=_.Zt(_.AL(function(){var h;return(h=x.data())==null?void 0:h.rendererContext},void 0,void 0,void 0,!0)),Q=_.x3("span"),J=_.x3("span"),Z=function(){return x.data().canvasPromoData},y=function(){var h;
return(h=x.data().bannerHeight)!=null?h:56},E=_.gb0(S,{throttleMs:100}),P=_.gb0(Q,{throttleMs:100}),v=_.gb0(J,{throttleMs:100}),V=function(){return P.width()-E.width()>1};
return _.M("yt-personal-greeting-view-model",{el:S,"aria-hidden":V,class:_.gF(x.className,"ytPersonalGreetingViewModelHost"),style:_.bc({height:(0,_.ON)(function(){return V()?0:y()})})},_.M(_.d,{cond:function(){return x.data().avatar&&!(v.width()+(x.data().avatar?48:0)-E.width()>1)},
then:function(){return _.M(_.Fj,{data:function(){return x.data().avatar}},{decoratedAvatarViewModel:function(h){return _.M(_.Z6,{data:h.data,
className:_.gF("ytPersonalGreetingViewModelAvatar")})}})}}),_.M("h1",null,L(function(){var h;
return(Z==null?void 0:(h=Z())==null?void 0:h.headline)||(v.width()+(x.data().avatar?48:0)-E.width()>1?x.data().shorterGreeting:x.data().greeting)})),D(J,function(){return x.data().greeting}),D(Q,function(){return x.data().shorterGreeting}))},"Cm"),"yt-personal-greeting-view-model",{props:{data:_.pJ,
className:_.pJ}});var Lc=function(){var x=_.e.apply(this,arguments)||this;x.hidden=!1;x.isConstrainedList=!1;x.darkerDarkTheme=_.u("web_darker_dark_theme");x.responsiveSizing="COMPACT";x.attachedPlayers=_.u("kevlar_channel_trailer_multi_attach")?[]:void 0;x.player=null;x.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return x};
_.p(Lc,_.e);_.K=Lc.prototype;
_.K.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}}}}};
_.K.created=function(){var x=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){x.disposeMastheadAd()}]};
_.K.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new C4u(this.refresh,this.contents))};
_.K.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.K.activeChanged=function(){var x=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=x)};
_.K.tabsChanged=function(){var x=this,L,D;if(this.pageSubtype==="channels"||_.u("kevlar_tab_gestures_for_tabbed_header_data")&&((L=this.data)==null?0:(D=L.header)==null?0:D.carouselHeaderRenderer))this.tabGestures=new wAq(this.contents,this.contents,this.hostElement,this.header,function(Z){x.ytdReduxBehavior.dispatch(Z)});
var S,Q,J;L=(S=this.data)==null?void 0:(Q=S.contents)==null?void 0:(J=Q.twoColumnBrowseResultsRenderer)==null?void 0:J.tabs;this.tabGestures&&this.tabGestures.tabsChanged(L)};
_.K.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.K.engagementPanelsChanged=function(){var x=_.yY().resolve(_.Dk);if(x){if(this.engagementPanels)for(var L=_.O(this.engagementPanels),D=L.next();!D.done;D=L.next()){var S=void 0;(D=(S=D.value.identifier)==null?void 0:S.tag)&&x.panelMap.delete(D)}this.engagementPanels=[];var Q;L=_.O(((Q=this.data)==null?void 0:Q.panels)||[]);for(Q=L.next();!Q.done;Q=L.next()){Q=_.g(Q.value,_.tjG);var J=D=void 0,Z=void 0,y=void 0;if(S=((D=Q)==null?void 0:D.targetId)||((J=Q)==null?void 0:J.panelIdentifier)||((Z=Q)==
null?void 0:(y=Z.identifier)==null?void 0:y.tag))J=D=void 0,(J=(D=x).registerPanelContent)==null||J.call(D,S,{engagementPanelSectionListRenderer:Q}),this.engagementPanels.push(Q)}}};
_.K.onStampFinished=function(){var x=this;_.So(this,function(){if(x.tabGestures){var L=x.tabGestures;if(L.scrollPositionNeedsUpdate){var D=_.yY().resolve(_.ZN(_.KX)),S;if((S=L.selectedTab)!=null&&S.title&&D&&(S=D.getCurrentPage())){if(L.scrollPositionForTabs.has(L.selectedTab.title)){var Q,J;D=(J=(Q=D.getCurrentPage())==null?void 0:Q.clientHeight)!=null?J:0;Q=L.scrollPositionForTabs.get(L.selectedTab.title);S.setScrollTop(Q);D>Q+100&&(L.scrollPositionNeedsUpdate=!1)}else S.setScrollTop(Math.min(L.lastVisitedTabScrollPosition!==
void 0?L.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,L.tabsStartAtInPx)),L.scrollPositionNeedsUpdate=!1;L.ytdReduxDispatch(Znq(!1))}}}})};
_.K.loadPage_=function(x){this.initCsi();x&&(this.data=x);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.K.getTitle=function(x){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",x))return this.get("microformat.microformatDataRenderer.title",x);if(this.get("header.feedTabbedHeaderRenderer.title",x))return _.SR(this.get("header.feedTabbedHeaderRenderer.title",x));if(this.get("header.interactiveTabbedHeaderRenderer.title",x))return this.get("header.interactiveTabbedHeaderRenderer.title",x);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
x))return _.SR(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",x));var L,D;return(x==null?0:(L=x.header)==null?0:(D=L.pageHeaderRenderer)==null?0:D.pageTitle)?x.header.pageHeaderRenderer.pageTitle:""};
_.K.updateTitle=function(x){_.MF(this.hostElement,"yt-update-title",this.getTitle(x))};
_.K.initCsi=function(){_.xz$(this.pageSubtype||"browse",["ol","cpt"])};
_.K.getPlayer=function(){if(_.u("kevlar_channel_trailer_multi_attach")){for(var x=_.O(this.attachedPlayers),L=x.next();!L.done;L=x.next())if(L=L.value,L.isConnected||_.fw(this.hostElement,L))return L;return null}return this.player};
_.K.getPlayerContainer=function(){return null};
_.K.onPlayerAttached=function(x,L){_.u("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(L):this.player=L};
_.K.onPlayerDetached=function(x,L){_.u("kevlar_channel_trailer_multi_attach")?(x=this.attachedPlayers.indexOf(L),x<0||this.attachedPlayers.splice(x,1)):this.player=null};
_.K.getServiceTrackingParams=function(){var x,L;return((x=this.data)==null?void 0:(L=x.responseContext)==null?void 0:L.serviceTrackingParams)||[]};
_.K.setMastheadAd=function(x){x&&x.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=x&&x.mastheadAd};
_.K.dataChanged=function(){var x=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.iP3();_.So(this,function(){_.P$(x.hostElement,"ytd-update-grid-state-action")})};
_.K.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.K.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var x=this.data.alerts;return x&&x.find(function(L){return!!L.alertWithActionsRenderer})}};
_.K.computeGreetingData=function(){if(this.data&&this.data.alerts){var x=this.data.alerts;return x&&x.find(function(L){return!!L.personalGreetingViewModel})}};
_.K.computeHasMemberHubProfileRenderer=function(x){var L;return!!(x==null?0:(L=x.header)==null?0:L.memberHubProfileRenderer)};
_.K.handleAlertCommand=function(x){this.get("alertCommand.alert.alertWithActionsRenderer",x)&&(x=_.g(x,hXu),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",x.alert))};
_.K.handleYtPlaylistDeletionRedirect=function(x){x=this.get("playlistDeletionRedirectCommand.redirectEndpoint",x);_.MF(this.hostElement,"yt-navigate",{endpoint:x})};
_.K.computeFluidWidth=function(x,L,D){if(L==="mini_app"||D)return!0;var S,Q,J;x=x==null?void 0:(S=x.contents)==null?void 0:(Q=S.twoColumnBrowseResultsRenderer)==null?void 0:(J=Q.tabs)==null?void 0:J.find(function(E){var P;return E==null?void 0:(P=E.tabRenderer)==null?void 0:P.selected});
if(!x)return!1;var Z,y;return!!((Z=x.tabRenderer)==null?0:(y=Z.content)==null?0:y.richGridRenderer)&&!["channel","channels","playables"].includes(L)};
_.K.computeHeaderFluidWidth=function(x){return x==="hashtag-landing-page"};
_.K.computeHasSidebar=function(x){var L;return!!(x.sidebar||((L=x.header)==null?0:L.playlistHeaderRenderer))};
_.K.computeHasPageHeaderSidebar=function(x){var L,D;return!!((L=x.header)==null?0:(D=L.pageHeaderRenderer)==null?0:D.enableSidebarView)};
_.K.computeUseUnifiedShowPageLayout=function(x){if(!x||this.pageSubtype!=="show"||!x.sidebar||!x.sidebar.playlistSidebarRenderer)return!1;x=x.sidebar.playlistSidebarRenderer;if(!x.items)return!1;for(var L=0;L<x.items.length;L++)if(_.g(x.items[L],gJY)){var D=void 0;return((D=_.g(x.items[L],gJY))==null?void 0:D.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.K.computeIsConstrainedList=function(x){return _.u("web_enable_constrained_list_subscriptions_channels")&&x==="subscriptions-channels"};
_.K.computeResponsiveSizing=function(x){return x==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.J3.Object.defineProperties(Lc.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var x,L;return((x=this.data)==null?0:(L=x.header)==null?0:L.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var x,L;if(!((x=this.data)==null?0:(L=x.sidebar)==null?0:L.playlistSidebarRenderer))return!1;var D;return(D=this.data)!=null&&D.header?!1:!0}}});
_.J3.Object.defineProperties(Lc,{template:{configurable:!0,enumerable:!0,get:function(){if(B9g===void 0){var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);B9g=x}x=B9g;return x}}});
Lc.prototype.dataChanged=Lc.prototype.dataChanged;Lc.prototype.onPlayerDetached=Lc.prototype.onPlayerDetached;Lc.prototype.onPlayerAttached=Lc.prototype.onPlayerAttached;Lc.prototype.onStampFinished=Lc.prototype.onStampFinished;Lc.prototype.engagementPanelsChanged=Lc.prototype.engagementPanelsChanged;Lc.prototype.scrollAtTopChanged=Lc.prototype.scrollAtTopChanged;Lc.prototype.tabsChanged=Lc.prototype.tabsChanged;Lc.prototype.activeChanged=Lc.prototype.activeChanged;
_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],Lc.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.Fz),_.r("design:type",Object)],Lc.prototype,"ytdOpenPopupBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Lc.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],Lc.prototype,"ytdReduxBehavior",void 0);_.A([_.b(_.KQ.YtPageBehavior),_.r("design:type",Object)],Lc.prototype,"ytPageBehavior",void 0);
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Lc.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.Vi.YtdGuideStateAwareBehavior),_.r("design:type",Object)],Lc.prototype,"ytdGuideStateAwareBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],Lc.prototype,"ytComponentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Lc.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Lc.prototype,"hidden",void 0);
_.A([_.F(),_.r("design:type",Object)],Lc.prototype,"mastheadAdData",void 0);_.A([_.F({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.r("design:type",Object)],Lc.prototype,"alertBannerData",void 0);_.A([_.F({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.r("design:type",Object)],Lc.prototype,"greetingData",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",String)],Lc.prototype,"pageSubtype",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.r("design:type",Boolean)],Lc.prototype,"hasMemberHubProfileRenderer",void 0);_.A([_.F({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],Lc.prototype,"hasSidebar",void 0);_.A([_.F({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],Lc.prototype,"hasPageHeaderSidebar",void 0);
_.A([_.F({reflectToAttribute:!0,value:!0}),_.r("design:type",Boolean)],Lc.prototype,"roundedContainer",void 0);_.A([_.F({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],Lc.prototype,"useUnifiedShowPageLayout",void 0);_.A([_.F({computed:"computeIsConstrainedList(pageSubtype)"}),_.r("design:type",Object)],Lc.prototype,"isConstrainedList",void 0);
_.A([_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Lc.prototype,"usePlaylistHeaderRenderer",null);_.A([_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Lc.prototype,"useOldPlaylistSidebarRenderer",null);_.A([_.F({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.r("design:type",Boolean)],Lc.prototype,"fluidWidth",void 0);_.A([_.F({selector:function(x){return x.ui.scrollAtTop}}),
_.r("design:type",Boolean)],Lc.prototype,"scrollAtTop",void 0);_.A([_.F({selector:_.DwG}),_.r("design:type",Boolean)],Lc.prototype,"tabGesturesIsActive",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Lc.prototype,"darkerDarkTheme",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.r("design:type",Boolean)],Lc.prototype,"disableHeaderFluidWidth",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.r("design:type",String)],Lc.prototype,"responsiveSizing",void 0);_.A([_.F1("ytd-two-column-browse-results-renderer"),_.r("design:type",HTMLElement)],Lc.prototype,"contents",void 0);_.A([_.F1("#header"),_.r("design:type",HTMLElement)],Lc.prototype,"header",void 0);_.A([_.F1("ytd-refresh"),_.r("design:type",Object)],Lc.prototype,"refresh",void 0);
_.A([_.bN("active"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Lc.prototype,"activeChanged",null);_.A([_.bN("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Lc.prototype,"tabsChanged",null);_.A([_.bN("scrollAtTop"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Lc.prototype,"scrollAtTopChanged",null);
_.A([_.F(),_.r("design:type",Object)],Lc.prototype,"engagementPanels",void 0);_.A([_.bN("data.panels"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Lc.prototype,"engagementPanelsChanged",null);_.A([_.mX("yt-rendererstamper-finished"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Lc.prototype,"onStampFinished",null);
_.A([_.mX("yt-player-attached"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Element]),_.r("design:returntype")],Lc.prototype,"onPlayerAttached",null);_.A([_.mX("yt-player-detached"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Element]),_.r("design:returntype")],Lc.prototype,"onPlayerDetached",null);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Lc.prototype,"dataChanged",null);
_.A([_.w({is:"ytd-browse"})],Lc);_.Wy.registerService(_.Fyh,Lc);
_.Wf();
}catch(e){_._DumpException(e)}
try{
_.Bf("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 OC,Ngu,i69,fgs,oTW,agX,zDs,X$X,c_s,nTu,tql,xUW,LH$,S4I,Qtg,KH3,O7Y,Z7G,Iog,ENq,MmI,dU$,ZT,jtq,yE,vNl,Vml,h$3,H7W,utX,kDq,mUu,gN$,DU5,b7q,Y4I,FHu,stq,TDY,e$q,R$I,GDg,C6G,UUg,wa3,WH3,A2$,r2q,ND3,i7I,oNq,z$3,Xa3,c2G,nNX,tml,xB9,Ltu,DBq,SOX,Qql,Jdg,Ktq,OBl,ZBW,ydg,Iv9,E8g,MRl,dB9,jqs,v8s,VRW,hNl,HBu,uAl,g8G,kFu,pql,mBg,bBq,YOq,Ft9,sqG,TY5,eNl,RNg,GFI,C1s,lvu,UBg,wqq,BYq,Wt$,hg,qOq,AdG,NYX,tRg,SYu,QWl,yqY,I43,Z$5,KXs,PNG,Vr3,pPW,Jqs,H$9,jW3,mp,b$I,sWg,RKu,Tc5,eKl,GVq,wPY,l4W,BcY,WX9,U$G,CNq,qY3,sC,
Tx,f4X,o9W,ex,a4W,zKg,XP5,DLg,Skl,R7,Gx,JH$,Q63,KAq,OIW,ZIs,yH$,Cj,lp,UC,VO$,hZ$,HI3,Bj,mLX,ufl,pp3,bIG,gil,FAu,k$g,eZl,s6X,TBq,Wj,G$W,RZ9,wpY,AH3,ru,NQ,WAg,rH5,qk$,$LI,fj,a7,zx,Xk,Itq,xjW,dj$,Pc$,jll,vOX,huu,zZW,Xp9,tg,nil,cj,nj,tOs,Vnq,EO9,cHW,Lb,YIY,slX,TF$,FUW,kQu,Rul,ltg,Kb,QJ,JV,BFl,gOI,Ze,Cc9,pDW,GQg,buW,uT5,mjl,qIu,ADI,$js,NFG,fts,oOq,atl,zuq,cDu,XDq,tn$,xbW,DbW,Svs,JLu,KF$,OXX,ZX9,yLY,Is$,Ee5,db3,M23,PkI,veq,V2q,Ee,h6q,HXX,ME,ujq,ge9,kR3,pX$,mbl,bXl,Yvl,FFq,T4X,dn,e6q,R6q,lsl,wXl,B4G,qvI,
WF3,ALI,$bs,rLu,iX3,fsu,oel,ass,z6u,XX9,cLq,ne3,t29,x1G,LBG,D1l,KBl,OFI,QSq,Jis,S3Y,ZFl,Ecl,yil,InI,PSX,M8u,d1X,jSs,vc3,V83,hMq,uml,gcl,kku,m1G,bFW,FBG,Tqs,RMg,CSW,U1q,Bq$,q3s,$1I,iFG,fnW,ocG,zMX,anq,ciG,ncW,t89,xkl,jL,LII,Dks,Sy$,dkl,jPI,vv5,uos,gn,gvu,kn$,pF5,bGI,mk9,Yyq,FIY,sPX,TV9,erY,Hj,Rr5,kS,Gkq,Gnu,Cys,$Ul,lS5,Uk$,wFs,BVG,WIl,qyW;
OC=function(x){if(!x)return"browse";var L=x.page,D=x.url,S,Q,J,Z=(S=x.response)==null?void 0:(Q=S.responseContext)==null?void 0:(J=Q.webResponseContextExtensionData)==null?void 0:J.pageTheme;if(Z)L=Z.toLowerCase().replace(/_/g,"-");else if(L!=="watch"&&L!=="learning_journey_watch"){var y,E;if((L==="browse"||L==="settings")&&((y=x.response)==null?0:(E=y.sidebar)==null?0:E.settingsSidebarRenderer))L="WEB_PAGE_TYPE_SETTINGS";else{var P,v;L==="browse"&&((P=x.response)==null?0:(v=P.metadata)==null?0:v.channelMetadataRenderer)?
L="channel":D&&(L=_.ojw(D)||L)}}return L};
Ngu=function(){var x=_.o1("yt.aba.att");return x?x:_.BQ.instance!==void 0?_.BQ.instance.wMR.bind(_.BQ.instance):null};
i69=function(x,L){var D;return _.I(function(S){return(D=Ngu())?S.return(D(x,L,6E4)):S.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
fgs=function(x,L,D,S,Q){L=L===void 0?[]:L;Q=Q?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:Q}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.ya(x),dialogMessages:L.map(function(J){return _.ya(J)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.ya(D),serviceEndpoint:Q}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.ya(S)}}}}}};
oTW=function(x){var L=!!_.hY().queueProxy;var D,S,Q;x=x==null?void 0:(D=x.response)==null?void 0:(S=D.currentVideoEndpoint)==null?void 0:(Q=S.watchEndpoint)==null?void 0:Q.playlistId;return!(!L&&!x)};
agX=function(x,L){var D=_.ie();if(oTW(x)&&!_.u("web_watch_disable_playlist_auto_miniplayer"))return D.playlistWatchPageActivation=!0;switch(OC(L)){case "yts-products":return D.productDetailsPageActivation=!0;case "mini_app":return D.miniAppPageActivation=!0;case "playables":return D.playablesDestPageActivation=!0;case "companion-canvas":return D.companionCanvasActivation=!0;default:return!1}};
zDs=function(x){x=_.O3O(x);x.length>0&&x[0].focus()};
X$X=function(x,L,D){for(var S=typeof x==="string"?x.split(""):x,Q=x.length-1;Q>=0;--Q)Q in S&&L.call(D,S[Q],Q,x)};
c_s=function(x,L){L=_.snn(x,L);L>=0&&_.ROp(x,L)};
nTu=function(x){return Array.prototype.concat.apply([],arguments)};
tql=function(x){var L=0;L=L===void 0?0:L;if(!_.tr(x))throw _.xH("uint64");var D=typeof x;switch(L){case 512:switch(D){case "string":return _.GBN(x);case "bigint":return String((0,_.jG)(64,x));default:return _.edc(x)}case 1024:switch(D){case "string":return _.CGN(x);case "bigint":return _.eW((0,_.jG)(64,x));default:return _.RdN(x)}case 0:switch(D){case "string":return _.GBN(x);case "bigint":return _.eW((0,_.jG)(64,x));default:return _.TAp(x)}default:return _.Nh(L,"Unknown format requested type for int64")}};
xUW=function(x){x!=null&&(x=x.JSC$8825_value_||"",x=typeof x==="string"?x:new Uint8Array(x));return x};
LH$=function(x,L){if(/-[a-z]/.test(L))return null;if(_.FRh&&x.dataset){if(_.H3n()&&!(L in x.dataset))return null;x=x.dataset[L];return x===void 0?null:x}return x.getAttribute("data-"+_.mz(L))};
S4I=function(){var x=DU5;_.o1("yt.ads.biscotti.getId_")||_.KK("yt.ads.biscotti.getId_",x)};
Qtg=function(x){_.KK("yt.ads.biscotti.lastId_",x)};
KH3=function(){var x={};for(_.wE=new J2u(x.handleError===void 0?_.WI:x.handleError,x.logEvent===void 0?_.Uh:x.logEvent);_.BY.length>0;)switch(x=_.BY.shift(),x.type){case "ERROR":_.wE.logError(x.payload);break;case "EVENT":_.wE.logEvent(x.eventType,x.payload)}};
O7Y=function(x,L,D){return _.Kts(function(S){return D?S.userIdentifier!==void 0&&!x.includes(S.userIdentifier)&&D.includes(S.publicName):S.userIdentifier!==void 0&&!x.includes(S.userIdentifier)},L)};
Z7G=function(x){var L,D;return _.I(function(S){if(S.nextAddress==1)return L=_.TU("YtIdbMeta hasAnyMeta other"),S.yield(_.Kts(function(Q){return Q.userIdentifier!==void 0&&Q.userIdentifier!==L},x),2);
D=S.yieldResult;return S.return(D.length>0)})};
Iog=function(x,L){y2g||(y2g=_.WW.addLowPriorityJob(function(){var D,S,Q,J,Z;return _.I(function(y){switch(y.nextAddress){case 1:return y.yield(_.OD(),2);case 2:D=y.yieldResult;if(!D)return y.return();S=!0;_.HH(y,3);return y.yield(O7Y(x,D,L),5);case 5:Q=y.yieldResult;if(!Q.length){S=!1;y.jumpTo(6);break}J=Q[0];return y.yield(_.t8(J.actualName),7);case 7:return y.yield(_.DA(J.actualName,D),6);case 6:_.nH(y,4);break;case 3:Z=_.mW(y),_.WY(Z),S=!1;case 4:_.WW.cancelJob(y2g),y2g=0,S&&Iog(x,L),_.Y2(y)}})}))};
ENq=function(){var x;return _.I(function(L){return L.nextAddress==1?L.yield(_.OD(),2):(x=L.yieldResult)?L.return(Z7G(x)):L.return(!1)})};
MmI=function(x){var L=100;L=L===void 0?500:L;var D,S,Q,J,Z,y;return _.I(function(E){return E.nextAddress==1?(D=_.$6("INNERTUBE_CONTEXT_CLIENT_NAME",0),S=[D,(0,_.y5)()-2592E6],Q=[D,(0,_.y5)()],J=IDBKeyRange.bound(S,Q),E.yield(_.G$b(x),2)):E.nextAddress!=3?(Z=E.yieldResult,y=[],E.yield(_.LK(Z,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(P){y.length=0;return _.IE(P.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:J,direction:"prev"},function(v){if(v.getValue()&&y.length<
L)return y.push(v.getValue()),v.delete().then(function(){return v.continue()})})}),3)):E.return(y)})};
dU$=function(){var x;return _.I(function(L){if(L.nextAddress==1)return L.yield(_.OD(),2);x=L.yieldResult;if(!x||!_.eT()&&!_.u("nwl_init_require_datasync_id_killswitch")||!_.ni3())return L.jumpTo(0);_.xjb=!0;_.tO4.isNwlInitialized=_.xjb;return L.yield(_.Nr2().awaitInitialization(),0)})};
ZT=function(x,L){_.Vnf[x]=!0;var D=_.yF();D&&D.publish.apply(D,arguments);_.Vnf[x]=!1};
jtq=function(){if(_.a4b()&&!P63){var x=function(D){D=D.data;if(D.op==="serializedGelBatch"){var S=_.h6s.get(D.key);S&&(_.ujs(D.serializedBatch,S.client,S.resolve,S.networklessOptions,S.isIsolated,S.useVSSEndpoint,S.dangerousLogToVisitorSession,S.requestsOutstanding),_.h6s.delete(D.key))}},L=_.o9b();
L&&(L.addEventListener("message",x),L.onerror=function(){_.h6s.clear()});
P63=!0}};
yE=function(){this.relativeTimeStart_=_.IM()};
vNl=function(x,L){x!=null&&this.append.apply(this,arguments)};
Vml=function(){return _.fL("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")};
h$3=function(x,L,D){D=D===void 0?!1:D;var S,Q,J,Z,y;return _.I(function(E){switch(E.nextAddress){case 1:_.FD("SOCS",x,34128E3,"youtube.com",!0);if(_.HN)return Q=fetch(L,{method:"POST",mode:_.nL(L),credentials:_.co(L),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),J=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.nL("/upgrade_visitor_cookie?eom=1"),credentials:_.co("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),E.yield(Promise.all([Q,J]).then(function(P){return P[1]}),5);
fetch(L,{method:"POST",mode:_.nL(L),credentials:_.co(L),cache:"no-store",headers:{"Content-Type":"text/plain"}});return E.yield(fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.nL("/upgrade_visitor_cookie?eom=1"),credentials:_.co("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:S=E.yieldResult;E.jumpTo(3);break;case 5:S=Z=E.yieldResult;case 3:if(!S.ok)throw Error("sf");return E.yield(S.text(),7);case 7:y=E.yieldResult,
!y.includes('"state_switch":true')&&!D||y.includes("skip_reload_for_test")||window.location.reload(),_.Y2(E)}})};
H7W=function(x){return _.I(function(L){return L.nextAddress==1?L.yield(h$3(x.socsCookie,x.savePreferenceUrl,!0),2):L.return()})};
utX=function(x){return _.I(function(L){return L.nextAddress==1?L.yield(h$3(x.socsCookie,x.savePreferenceUrl),2):L.return()})};
kDq=function(x){x=x.xhr.responseText;if(!_.Ow(x,")]}'"))throw new I7;x=JSON.parse(x.substr(4));if((x.type||1)>1)throw new I7;x=x.id;Qtg(x);EC=_.ue(x);gN$(18E5,2);return x};
mUu=function(x,L){L=new pal(L);Qtg("");EC=_.u6_(L);x>0&&gN$(12E4,x-1);throw L;};
gN$=function(x,L){_.VY(function(){_.Vql().then(kDq,function(D){return mUu(L,D)}).thenCatch(_.GC)},x)};
DU5=function(){var x=_.uI9();if(x!==void 0)return _.Bp(x);EC||(EC=_.Vql().then(kDq).thenCatch(function(L){return mUu(2,L)}));
return EC};
b7q=function(){var x=document;return _.Uw(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(L){return"on"+L.toLowerCase()in x})};
Y4I=function(x){x.addEventListener("click",function(L){var D=L.target;D&&D.getAttribute("href")&&(D=D.getAttribute("href"),_.nU(window,D,"_blank"),L.preventDefault(),L.stopImmediatePropagation())})};
FHu=function(x){var L,D,S,Q=(S=(D=((L=x.mainDownloadsListEntity)!=null?L:{})[_.Opf])==null?void 0:D.refresh)!=null?S:"",J;x=(J=x.refresh)==null?void 0:J[Q];Q=x!=null?x:{};return(Q==null?0:Q.refreshTime)?Number(Q==null?void 0:Q.refreshTime):0};
stq=function(x,L){var D=_.l6(x);return L.every(function(S){var Q;S=S==null?void 0:(Q=S.playbackDataEntity)==null?void 0:Q.key;if(!S)return!1;Q=_.Ha(_.va(S).entityId,"mainVideoEntity");return!!D[Q]})};
TDY=function(x){x=_.Rt(x.entities);return _.gh4(x).length};
e$q=function(x,L){if(L){var D;x=(D=_.u6(x.entities,"downloadQualityPickerEntity",L))!=null?D:void 0}else x=void 0;return x};
R$I=function(x){var L=document.getElementsByTagName("ytd-enforcement-message-view-model");L.length===0||getComputedStyle(L[0]).display==="none"?x(0,"p.h_"):x(1,"p.h_")};
GDg=function(){MQ=0;var x=[_.sO(!0)];du&&_.P$(du,"yt-window-resized",x)};
C6G=function(){MQ||(MQ=_.WW.addLowPriorityJob(GDg,200))};
UUg=function(){Pj=0;loW=_.sId(document);var x=[loW];du&&_.P$(du,"yt-window-scrolled",x)};
wa3=function(){Pj||(Pj=_.WW.addLowPriorityJob(UUg,200))};
WH3=function(x){x=x===void 0?null:x;BDW.push(_.J7(window,"resize",C6G));BDW.push(_.J7(window,"scroll",wa3));x&&(du=x)};
A2$=function(){var x={isWide:_.YQ.get("wide","0")==="1"},L=_.FI();if(L=L.getFlag(165)||L.getFlag(174))x.theme=_.l1(!0);if(_.KJs()){var D=_.CB()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";x.systemTheme=D}!L&&_.u("parent_tools_enable_app_settings")&&_.xQ(window.location.href).theme!==void 0&&(x.theme=_.l1());if((L=jx)?!_.wk.equals(L,x):x)L={currentValue:x},q4$&&(L.timeSinceLastSnapshotSecs=Math.round(((0,_.y5)()-q4$)/1E3)),jx&&(L.previousValue=jx),_.Uh("appSettingsCaptured",L),jx=x,q4$=
(0,_.y5)()};
r2q=function(){var x=_.Wq.getLocalStorage();x&&$Ul(x,x.mechanism.__iterator__(!0))};
ND3=function(x){_.I(function(L){if(L.nextAddress==1)return L.yield(x.delete("yt-appshell-assets"),2);_.Y2(L)})};
i7I=function(x){return _.xg((0,_.XkB)(),x)};
oNq=function(){var x;_.I(function(L){return L.nextAddress==1?L.yield(vj.getInstance(),2):(x=L.yieldResult)?L.yield(fo5(x),0):L.jumpTo(0)})};
z$3=function(){var x;_.I(function(L){return L.nextAddress==1?L.yield(VE.getInstance(),2):(x=L.yieldResult)?L.yield(aoG(x),0):L.jumpTo(0)})};
Xa3=function(x){ND3(x);oNq();z$3()};
c2G=function(x){var L,D;return _.I(function(S){if(S.nextAddress==1)return S.yield(_.sb0(x),2);if(L=S.yieldResult){var Q;a:{if(L.headers&&(Q=L.headers.get("date"))&&(Q=Date.parse(Q),!isNaN(Q))){Q=Math.round((0,_.y5)()-Q);break a}Q=-1}D=Q;if(D>-1)return S.return(D)}return S.return(-1)})};
nNX=function(){var x=_.Qb.caches,L=_.rO("IS_SHELL_LOAD"),D,S;_.I(function(Q){if(Q.nextAddress==1)return D=-1,L?Q.yield(c2G(x),3):(S=_.C6(),D=Math.round((0,_.y5)()-S),Q.jumpTo(2));Q.nextAddress!=2&&(D=Q.yieldResult);D>=0&&D<2147483648&&_.W$({appInstallDataAgeMs:D});_.Y2(Q)})};
tml=function(x){var L=_.ze(_.Qb.location.href),D={};"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(S){var Q=L.JSC$10036_queryData_.getValues(S);if(Q==null?0:Q.length)D[S]=Q});
return _.vn(x,new Map(Object.entries(D)))};
xB9=function(x){x=x.match(/(.*)::.*::.*/);if(x!==null)return x[1]};
Ltu=function(x){if(_.o5w()){var L=Object.keys(window.localStorage);L=_.O(L);for(var D=L.next();!D.done;D=L.next()){D=D.value;var S=xB9(D);S===void 0||x.includes(S)||self.localStorage.removeItem(D)}}};
DBq=function(){if(!_.o5w())return!1;var x=_.TU(),L=Object.keys(window.localStorage);L=_.O(L);for(var D=L.next();!D.done;D=L.next())if(D=xB9(D.value),D!==void 0&&D!==x)return!0;return!1};
SOX=function(x){return _.o3("NotificationsDisabled",x)};
Qql=function(){return Notification.permission!="granted"?Promise.resolve():_.S2g().then(function(x){return x?x.pushManager.getSubscription().then(function(L){if(L)return Promise.resolve();L={userVisibleOnly:!0,applicationServerKey:_.tG("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return x.pushManager.subscribe(L).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})};
Jdg=function(x){return _.S2g().then(function(L){if(!L||!L.active)return Promise.reject(new _.RZ("serviceworker.postMessage",x,L));try{return L.active.postMessage(x),Promise.resolve()}catch(D){return Promise.reject(D)}})};
Ktq=function(){Jdg({type:"notifications_register",data:_.$6("ID_TOKEN")})};
OBl=function(){if(!_.rO("LOGGED_IN"))return Promise.resolve(!1);var x=_.PY("service_worker_push_force_notification_prompt_tag");return x?_.a5("PromptTags").then(function(L){if(!L)return!0;var D=[];try{D=JSON.parse(L)}catch(S){return!1}return D&&D.indexOf(x)==-1}):Promise.resolve(!1)};
ZBW=function(){var x=_.dE("service_worker_push_prompt_delay_microseconds");return x?_.a5("PromptTime").then(function(L){return Promise.resolve(Date.now()-x>(L||0))}):Promise.resolve(!0)};
ydg=function(){var x=_.dE("service_worker_push_logged_out_prompt_watches");return x==-1?Promise.resolve(!1):_.a5("WatchCount").then(function(L){return L>=x})};
Iv9=function(){var x=_.IB(document,"yt-push-prompt-modal-bg");x&&_.mg(x)};
E8g=function(){return _.dE("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.a5("PromptCount").then(function(x){x||(x=0);return Promise.resolve(x<_.dE("service_worker_push_prompt_cap"))})};
MRl=function(x){return _.rO("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.rO("LOGGED_IN")&&(x===void 0?0:x)?OBl().then(function(L){if(L)return!0;L=[E8g(),ZBW()];_.rO("LOGGED_IN")||L.push(ydg());return Promise.all(L).then(function(D){return D.every(function(S){return S})})}):Promise.resolve(!1)};
dB9=function(){_.a5("PromptCount").then(function(x){return _.o3("PromptCount",x+1)}).then(function(){return _.o3("PromptTime",Date.now())}).then(function(){var x=_.PY("service_worker_push_force_notification_prompt_tag");
if(x)return _.a5("PromptTags").then(function(L){var D=[];if(L)try{D=JSON.parse(L)}catch(S){return!1}D||(D=[]);D.push(x);return _.o3("PromptTags",JSON.stringify(D))})})};
jqs=function(){P1q||Iv9()};
v8s=function(x){x.style.zIndex=2147483648;x.style.pointerEvents="auto";x.style.backgroundColor="rgba(0, 0, 0, 0.6)";x.style.width="100%";x.style.height="100vh";x.style.position="absolute";x.style.top="0";x.style.left="0";x.style.border="none"};
VRW=function(){var x=_.IB(document,"yt-push-prompt-modal-bg");P1q=_.u("service_worker_push_prompt_modal_ignore_click");x?v8s(x):(x=_.Ao("div",{id:"yt-push-prompt-modal-bg"}),v8s(x),document.body.appendChild(x),_.Mnh(document,"click",jqs))};
hNl=function(){var x=arguments;_.u("service_worker_push_prompt_modal_enable")&&VRW();return Notification.requestPermission().then(function(L){Iv9();var D=document.getElementById("ticker");D&&(D.className=D.classList.remove("show"));if(L=="granted")return Qql().then(function(){SOX(!1);Ktq();return Promise.resolve(!0)});
L=="denied"&&Ktq();return Promise.resolve(!1)}).catch(function(){Iv9();
return Promise.reject.apply(Promise,_.lP(x))})};
HBu=function(x){x=x===void 0?!1:x;var L=_.E50().client;if(L&&L.browserVersion){var D=L.browserVersion,S=L.browserName=="CHROME"&&_.v4(D,"50.0.0")<0;L=L.browserName=="OPERA"&&_.v4(D,"42.0.0")<0;if(S||L)return Promise.resolve()}return _.Kvq().then(function(Q){if(!Q)return Promise.resolve();Q=Qql().then(function(){return Jdg({type:"notifications_check_registration",data:_.$6("ID_TOKEN")})});
return Notification.permission!="default"?Q.catch(function(){}):Q.then(function(){return MRl(x)}).then(function(J){if(J)return dB9(),hNl().then(function(){})}).catch(function(){})})};
uAl=function(x){return _.QZ9(x)?HBu():Promise.resolve()};
g8G=function(x){var L=x.installing||x.waiting;return x.active||!L?Promise.resolve(x):new Promise(function(D){var S=function(Q){Q=Q.target;if(Q.state==="activated"||Q.state==="redundant")L.removeEventListener("statechange",S),D(x)};
L.addEventListener("statechange",S)})};
kFu=function(){var x=new _.P_G("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");_.PF(x,{mainAppWeb:_.L$()});var L=_.dZh;_.u("service_worker_forward_exp_params")&&(L=tml(L));try{var D=_.MgO(L).catch(function(){_.jK(x,"FAILURE");return new Promise(function(){})});
_.u("service_worker_push_enabled")&&D.then(function(S){_.jK(x,"SUCCESS");return S}).then(g8G).then(uAl)}catch(S){if(_.jK(x,"FAILURE"),S.name!=="SecurityError")throw S;
}};
pql=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&kFu()};
mBg=function(x,L){var D={};L&&(D.serializedYpcFamilyCreateLoggingParams=L);_.Uh(x,D);_.wz()};
bBq=function(x,L){var D={};D.serializedYpcRefundFlowLoggingParams=L;x&&(D.eventType=x);_.Uh("ypcRefundFlowEvent",D);_.wz()};
YOq=function(x){x&&_.Pun("transactionFlowSucceeded",x)};
Ft9=function(x){x&&_.YC("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",x,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")};
sqG=function(x){var L,D,S,Q,J,Z,y;_.I(function(E){if(E.nextAddress==1)return E.yield(_.zWp(),2);if(E.nextAddress!=3){if(!E.yieldResult)return E.return(!1);L=[];return E.yield(_.HD.keys(),3)}D=E.yieldResult;S=_.O(D);for(Q=S.next();!Q.done;Q=S.next())J=Q.value,Z=_.oyh(J),y=Z.datasyncId,!y||x.includes(y)||L.push(_.HD.delete(J));return E.return(Promise.all(L).then(function(P){return P.some(function(v){return v})}))})};
TY5=function(){var x,L,D,S,Q,J,Z;return _.I(function(y){if(y.nextAddress==1)return y.yield(_.zWp(),2);if(y.nextAddress!=3){if(!y.yieldResult)return y.return(!1);x=_.TU("cache contains other");return y.yield(_.HD.keys(),3)}L=y.yieldResult;D=_.O(L);for(S=D.next();!S.done;S=D.next())if(Q=S.value,J=_.oyh(Q),(Z=J.datasyncId)&&Z!==x)return y.return(!0);return y.return(!1)})};
eNl=function(){var x=_.yY().resolve(_.ZN(_.yt2));return x?x.getCurrentTime():0};
RNg=function(){var x,L,D,S,Q,J,Z,y,E,P,v,V,h,H;return _.I(function(k){switch(k.nextAddress){case 1:x={},L=_.X3c(),D=_.O(Object.entries(L)),S=D.next();case 4:if(S.done){k.jumpTo(3);break}Q=S.value;J=_.O(Q);Z=J.next().value;y=J.next().value;E=Z;P=y;if(!P){k.jumpTo(5);break}return k.yield(P(),8);case 8:x[E]=k.yieldResult;case 5:S=D.next();k.jumpTo(4);break;case 2:v=_.O(),V=v.next();case 9:if(V.done){k.jumpTo(3);break}h=V.value;H=L[h];if(!H){k.jumpTo(10);break}return k.yield(H(),13);case 13:x[h]=k.yieldResult;
case 10:V=v.next();k.jumpTo(9);break;case 3:return k.return(x)}})};
GFI=function(){var x;_.I(function(L){if(L.nextAddress==1)return L.yield(RNg(),2);x=L.yieldResult;return L.yield(navigator.clipboard.writeText(JSON.stringify(x,null,2)),0)})};
C1s=function(x,L){return _.u6(x.entities,"superThanksSelectedTierEntity",L)};
lvu=function(x,L){return{popup:{searchSuggestionReportDialog:{searchQuery:x,title:_.p6("SBOX_INAPPROPRIATE_TITLE"),suggestions:L,categoryLabel:_.p6("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.p6("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.p6("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.p6("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.p6("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.p6("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.p6("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.p6("SBOX_INAPPROPRIATE_ADDITIONAL"),
cancelButtonLabel:_.p6("SBOX_INAPPROPRIATE_CANCEL"),submitButtonLabel:_.p6("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}};
UBg=function(x){var L,D,S,Q,J,Z,y,E,P,v,V,h,H,k,T,G,U,l,X;return _.I(function(f){switch(f.nextAddress){case 1:return f.yield(_.p7(),2);case 2:return(L=f.yieldResult)?f.yield(_.qfc(L),3):f.return();case 3:D=f.yieldResult;if(!D)return f.return();Q=((S=D.offlineVideos)==null?void 0:S.length)||0;Z=((J=D.offlinePlaylists)==null?void 0:J.length)||0;if(Q===0&&Z===0)return f.return();y=0;if(D.offlineVideos)for(E=_.O(D.offlineVideos),P=E.next();!P.done;P=E.next())v=P.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===
v.videoState&&(y+=1);x.offline_videos_count=Q.toString();_.u("kevlar_log_offline_current_network_type_ks")||(x.offline_current_network_type=(V=_.lob())!=null?V:"CONN_INVALID");_.u("kevlar_log_updated_time_for_smart_downloads")&&(h=_.Jd().getState().entities,H=_.Wa(h),k=FHu(h),x.offline_smart_downloads_last_sync_time_ms=H.toString(),x.offline_smart_downloads_next_sync_time_ms=k.toString());x.offline_videos_playable=y.toString();x.offline_playlists_count=Z.toString();D.offlineVideos&&(T=D.offlineVideos.reduce(function(N,
z){z.downloadedBytes&&(N+=Number(z.downloadedBytes));return N},0).toString())&&(x.offline_used_disk_space_bytes=T);
if(!((G=navigator)==null?0:(U=G.storage)==null?0:U.estimate)){f.jumpTo(4);break}return f.yield(navigator.storage.estimate(),5);case 5:l=f.yieldResult,x.offline_free_disk_space_bytes=(((X=l)==null?void 0:X.quota)||0).toString();case 4:x.offline_client_state=JSON.stringify(D),_.Y2(f)}})};
wqq=function(x){x=x.match(/(.*)::.*::.*/);if(x!==null)return x[1]};
BYq=function(x){if(_.nWf()){var L=Object.keys(window.sessionStorage);L=_.O(L);for(var D=L.next();!D.done;D=L.next()){D=D.value;var S=wqq(D);S===void 0||x.includes(S)||self.sessionStorage.removeItem(D)}}};
Wt$=function(){if(!_.nWf())return!1;var x=_.TU(),L=Object.keys(window.sessionStorage);L=_.O(L);for(var D=L.next();!D.done;D=L.next())if(D=wqq(D.value),D!==void 0&&D!==x)return!0;return!1};
hg=function(x,L,D){(_.u("desktop_keyboard_shortcut_usage_log")||D&&_.u("web_shorts_keyboard_shortcut_usage_log"))&&(L?_.nA.get(x):_.cb.get(x))&&(x=L?_.xU.get(x):_.tX.get(x))&&_.L7(_.A3(),x)};
qOq=function(x,L){return x.findIndex(function(D){return D.tagName==="INPUT".toString()})>-1?[9,
38,40,37,39].includes(L.keyCode):!1};
AdG=function(x,L){L.stack&&(x.stack+="\n"+L.stack);return x};
NYX=function(x){var L=Hj(x,"Content-Type");if(!L)return null;L=L.toLowerCase();if(L.startsWith("application/json"))return L.startsWith("application/json+protobuf")?new $B5:new _.bh;if(L.startsWith("application/x-protobuf")){x=Hj(x,"Content-Transfer-Encoding");if(!x)return new up;if(x.toLowerCase()=="base64")return new rd$}return null};
tRg=function(x,L,D,S){var Q=new iB3(function(y,E){return fv5.has(E)?y.sentinel==="gal"&&y.event!==void 0:!1},function(y){y.event?(y=o8q(y.event),y=!y||avs(S,y)?!0:_.YI(x.lastEvent,gu,2,kU)?!_.YI(y,pj,1,kU)&&!_.YI(y,gu,2,kU):!_.YI(y,pj,1,kU)&&!_.YI(y,gu,3,kU)):y=!0;
return y});
D=_.vn(x.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",zNg(D)]]));if(x.nestedOrigins!==void 0)for(var J=_.O(x.nestedOrigins),Z=J.next();!Z.done;Z=J.next())D=_.vn(D,new Map([["origin",Z.value]]));return XqX(Q,D,L).then(function(y){y=cdq(y.event);if(_.YI(y,pj,1,kU)){var E,P=(E=_.A9(y,pj,1,kU))==null?void 0:_.BN(E,2);P&&S.JSC$19457_logErrorEvent(n8X(P));E=_.A9(y,pj,1,kU);_.BN(E,2)===4?(y=_.A9(y,pj,1,kU),y={statusCode:11,statusMessage:_.wy(y,
3)}):(y=_.A9(y,pj,1,kU),y={statusCode:12,statusMessage:_.wy(y,3)});return y}_.YI(y,gu,3,kU)?(y=_.A9(y,gu,3,kU),y={statusCode:1,consentLanguageKeys:_.wy(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"}})};
SYu=function(x){var L={};if(x===void 0||x===null)return L;x.getToken()!==void 0&&x$s(x.getToken())&&x$s(x.getToken()).length>0&&(L.scopes=new Set(x$s(x.getToken())));x.getToken()!==void 0&&LX$(x.getToken())&&LX$(x.getToken()).length>0&&(L.capabilities=new Set(LX$(x.getToken())));_.wy(x,3)!==void 0&&(L.consistencyKey=_.wy(x,3));x.getName()!==void 0&&x.getName()!==""&&(L.linkName=x.getName());_.bV(x,D$$,4)&&(x=_.Mg(x,D$$,4),x=Object.assign({},_.wy(x,1)&&{userId:_.wy(x,1)},_.wy(x,2)&&{displayName:_.wy(x,
2)},_.wy(x,3)&&{email:_.wy(x,3)},_.wy(x,5)&&{username:_.wy(x,5)},_.wy(x,4)&&{profilePicture:_.wy(x,4)}),L.profile=x);return L};
QWl=function(x,L){var D=x.flowParams,S;return{serviceId:D.serviceId,sessionId:D.sessionId,currentFlow:x.currentFlow,googleScopesString:L,linkingSessionSerialized:x.session.serialize(),consentLanguageKeys:D.consentLanguageKeys,callerState:x.callerState,dynamicUrlParameters:D.dynamicUrlParameters,partnerConfigMinReadTimestampSerialized:(S=D.partnerConfigMinReadTimestamp)==null?void 0:S.serialize()}};
yqY=function(x){var L=x.googleScopes!==void 0?Array.from(x.googleScopes).join(","):"";Jqs(QWl(x,L));L=KXs(x);return L===null?Promise.resolve(O$q):L.start().then(function(D){var S,Q=(S=D.link)==null?void 0:S.consistencyKey;return D.statusCode===1&&x.googleScopes!==void 0&&x.googleScopes.size>0&&Q!==void 0?(S=x.flowParams,Z$5(S.serviceId,S.sessionId,x.googleScopes,Q,S.galService,x.config,D)):D})};
I43=function(x){var L=KXs(x);return L===null?Promise.resolve(mp({statusCode:7,statusMessage:"Failed to create flow object"},x.callerState)):L.complete().then(function(D){var S,Q=(S=D.link)==null?void 0:S.consistencyKey;return D.statusCode===1&&x.googleScopes!==void 0&&x.googleScopes.size>0&&Q!==void 0?(S=x.flowParams,Z$5(S.serviceId,S.sessionId,x.googleScopes,Q,S.galService,x.config,D)):mp(D,x.callerState)},function(D){return mp({statusCode:12,
statusMessage:"Failed to complete the flow: "+D.message},x.callerState)})};
Z$5=function(x,L,D,S,Q,J,Z){return E9g(Q,{serviceId:x,sessionId:L,googleScopes:D,consistencyKey:S}).then(function(){return Z},function(y){return Q.deleteLink({serviceId:x,
sessionId:L,accountLinkingEntryPoint:J.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+y.message}},function(E){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+E.message}})})};
KXs=function(x){switch(x.currentFlow){case 1:var L=x.flowParams;x=_.Mg(x.session,Mrq,1);return bp.createOAuthFlow(L,x);case 2:case 3:return L=x.flowParams,x=_.Mg(x.session,d$3,6),YU.createStreamlinedFlow(L,x);default:return null}};
PNG=function(x,L){x===2&&(x=3);var D=0;Fk.indexOf(x)!==-1&&(D=Fk.indexOf(x)+1);for(x=D;x<Fk.length;x++)if(L.has(Fk[x]))return Fk[x]};
Vr3=function(x){var L=x.serviceId;var D=x.sessionId;var S=x.config;var Q=x.galService;var J=x.capabilities;var Z=x.scopes;var y=x.loginHint;var E=x.callerState;var P=x.consentLanguageKeys;var v=x.linkName;var V=x.dynamicUrlParameters;var h=x.partnerConfigMinReadTimestamp;x=S.dataUsageNoticeConfig?S.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return Q.startLinkingSession({serviceId:L,sessionId:D,capabilities:J,scopes:Z,loginHint:y,callerState:E,supportedFlows:jW3(S.supportedFlows),completionUrl:S.completionUrl,
accountLinkingEntryPoint:S.accountLinkingEntryPoint,consentLanguageKeys:P,dataUsageNoticeConfig:x,linkName:v,dynamicUrlParameters:V,partnerConfigMinReadTimestamp:h}).then(function(H){return new v9X(L,D,S,Q,H,void 0,E,P,V,h)})};
pPW=function(x,L,D){var S=(new hK$).getSession(x);if(S===null)return Promise.resolve({statusCode:2});H$9(x);var Q=u1$(S.linkingSessionSerialized),J=S.googleScopesString!==""&&S.googleScopesString!==void 0?new Set(S.googleScopesString.split(",")):void 0,Z=S.partnerConfigMinReadTimestampSerialized?g95(S.partnerConfigMinReadTimestampSerialized):void 0;return kV9(new v9X(x,S.sessionId,L,D,Q,J,S.callerState,S.consentLanguageKeys,S.dynamicUrlParameters,Z),S.currentFlow,S.consentLanguageKeys)};
Jqs=function(x){var L=new hK$;L.storage!==null&&L.storage.set("SAVED_SESSION",x)};
H$9=function(x){var L=new hK$;if(L.storage!==null){var D=L.storage.get("SAVED_SESSION");D!==void 0&&D.serviceId===x&&L.storage.remove("SAVED_SESSION")}};
jW3=function(x){var L=new Set;x=_.O(x);for(var D=x.next();!D.done;D=x.next())D=D.value,D!==1&&m$3.has(D)&&L.add(m$3.get(D));return L};
mp=function(x,L){L!==void 0&&(x.callerState=L);return x};
b$I=function(x){switch(x){case 5:return 3;case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}};
sWg=function(x){return new YY$(x,new FXX(x))};
RKu=function(x,L){L=L===void 0?!1:L;var D=document.createElement("div");x&&(D.style.transform="scaleX(-1)");D.style.backgroundColor=L?"rgba(138,180,248,.24)":"#e8f0fe";D.style.height="4px";D.style.overflow="hidden";D.style.position="absolute";D.style.top="0";D.style.width="100%";D.style.zIndex="1500";D.setAttribute("aria-label","Loading");D.setAttribute("aria-live","polite");x=document.createElement("style");x.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  }";
D.appendChild(x);x=Tc5();x.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";x.style.left="-145.166611%";var S=eKl(L);S.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";x.appendChild(S);D.appendChild(x);x=Tc5();x.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";x.style.left="-54.888891%";L=eKl(L);L.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
x.appendChild(L);D.appendChild(x);return D};
Tc5=function(){var x=document.createElement("div");x.style.height="100%";x.style.position="absolute";x.style.transformOrigin="top left";x.style.width="100%";return x};
eKl=function(x){var L=document.createElement("span");L.style.borderTop=x?"4px solid #669df6":"4px solid #4285f4";L.style.display="inline-block";L.style.position="absolute";L.style.width="100%";return L};
GVq=function(x){return x==null?void 0:_.UeQ(x).valueOf()};
wPY=function(x){var L=document.body,D=!1,S=function(){D||(D=!0,CNq(Q,J),setTimeout(function(){L.removeChild(J);L.removeChild(Q)},150))},Q=l4W(x,getComputedStyle(L).direction==="rtl",S),J=U$G(S);
CNq(Q,J);L.appendChild(J);L.appendChild(Q);window.requestAnimationFrame(function(){J.style.opacity="1";Q.style.opacity="1";Q.style.transform="translate(-50%, -50%) scale(1)";Q.children[0].focus()})};
l4W=function(x,L,D){var S=document.createElement("div");S.style.position="fixed";S.style.alignItems="center";S.style.backgroundColor=x?"rgb(32, 33, 36)":"white";S.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";S.style.display="flex";S.style.flexDirection="column";S.style.justifyContent="center";S.style.left="50%";S.style.top="50%";S.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";S.style.zIndex="2002";document.body.clientWidth>=
660?(S.style.borderRadius="8px",S.style.minHeight="220px",S.style.maxHeight="90%",S.style.maxWidth="90%",S.style.minWidth="540px"):(S.style.height="100%",S.style.width="100%");S.setAttribute("aria-label","Error");S.setAttribute("aria-modal","true");S.setAttribute("role","alertdialog");S.addEventListener("keydown",function(J){J.key==="Escape"&&D()});
L=BcY(x,L,D);S.appendChild(WX9(L));S.appendChild(L);var Q=document.createElement("img");Q.src=x?"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";Q.style.height="72px";Q.style.width="72px";Q.style.color="#9aa0a6";Q.setAttribute("alt","");S.appendChild(Q);Q=document.createElement("h1");Q.textContent="Something went wrong.  Try again.";
Q.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";Q.style.lineHeight="24px";Q.style.fontSize="16px";Q.style.textAlign="center";Q.style.letterSpacing="0.1px";Q.style.color=x?"rgb(232,234,237)":"#3c4043";S.appendChild(Q);S.appendChild(WX9(L));return S};
BcY=function(x,L,D){var S=document.createElement("button");S.style.backgroundColor="transparent";S.style.border="none";S.style.borderRadius="50%";S.style.cursor="pointer";S.style.outline="none";S.style.padding="12px";S.setAttribute("aria-label","Close dialog");S.style.position="absolute";S.style.top="0";L?S.style.right="0":S.style.left="0";S.addEventListener("focus",function(){S.style.backgroundColor=x?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
S.addEventListener("blur",function(){S.style.backgroundColor="transparent"});
S.addEventListener("mouseenter",function(){S.style.backgroundColor=x?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
S.addEventListener("mouseleave",function(){S.style.backgroundColor="transparent"});
S.addEventListener("click",D);S.addEventListener("keydown",function(Q){Q.key!=="Enter"&&Q.key!=="Space"||D()});
L=document.createElement("img");L.src=x?"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";L.style.display="block";L.style.height="24px";L.style.width="24px";L.setAttribute("alt","");S.appendChild(L);return S};
WX9=function(x){var L=document.createElement("div");L.setAttribute("tabindex","0");L.setAttribute("aria-hidden","true");L.addEventListener("focus",function(){return void x.focus()});
return L};
U$G=function(x){var L=document.createElement("div");L.style.backgroundColor="rgba(32,33,36,0.6)";L.style.bottom="0";L.style.left="0";L.style.position="fixed";L.style.right="0";L.style.top="0";L.style.transition=" opacity 150 ms linear";L.style.zIndex="2001";L.addEventListener("click",x);return L};
CNq=function(x,L){L.style.opacity="0";x.style.opacity="0";x.style.transform="translate(-50%, -50%) scale(0.8)"};
qY3=function(x,L){x.sandbox&&x.sandbox.add&&(x.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),x.sandbox.add("allow-downloads"));x.src=L};
sC=function(x){AqY.call(this,x)};
Tx=function(x,L){L=L===void 0?!1:L;this.parsedImageUrl_=null;x instanceof $$X||(rqs==void 0&&(rqs=new Ncl),x=rqs.parse(x.toString(),L));x=this.parsedImageUrl_=x;x.JSC$19669_parsedOptions_==void 0&&((L=x.getOptions())||(L=""),x.JSC$19669_parsedOptions_=(new i$3).parse(L));AqY.call(this,x.JSC$19669_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;x=this.parsedImageUrl_;L=x.uri_.JSC$10036_port_;this.JSC$19671_domain_=x.uri_.JSC$10036_domain_+(L?":"+L:"");this.JSC$19671_query_=
this.parsedImageUrl_.uri_.JSC$10036_queryData_.toString()};
f4X=function(x){this.mode=4;this.data=x;this.parsedData=[];x=0;for(var L=this.data.length;x<L;x++){var D=[],S=this.data.charCodeAt(x);S>65536?(D[0]=240|(S&1835008)>>>18,D[1]=128|(S&258048)>>>12,D[2]=128|(S&4032)>>>6,D[3]=128|S&63):S>2048?(D[0]=224|(S&61440)>>>12,D[1]=128|(S&4032)>>>6,D[2]=128|S&63):S>128?(D[0]=192|(S&1984)>>>6,D[1]=128|S&63):D[0]=S;this.parsedData.push(D)}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))};
o9W=function(x){this.typeNumber=0;this.errorCorrectLevel=x===void 0?2:x;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]};
ex=function(x,L){if(x.length==void 0)throw Error("Jk`"+x.length+"`"+L);for(var D=0;D<x.length&&x[D]==0;)D++;this.num=Array(x.length-D+L);for(L=0;L<x.length-D;L++)this.num[L]=x[L+D]};
a4W=function(x,L){this.totalCount=x;this.dataCount=L};
zKg=function(){this.buffer=[];this.length=0};
XP5=function(){var x=!1;if(_.p4G()){x=_.hG();var L="";_.Ywf()?(L=/Windows (?:NT|Phone) ([0-9.]+)/,L=(x=L.exec(x))?x[1]:"0.0"):_.GN()?(L=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,L=(x=L.exec(x))&&x[1].replace(/_/g,".")):_.b3O()?(L=/Mac OS X ([0-9_.]+)/,L=(x=L.exec(x))?x[1].replace(/_/g,"."):"10"):_.d0(_.hG(),"KaiOS")?(L=/(?:KaiOS)\/(\S+)/i,L=(x=L.exec(x))&&x[1]):_.p4G()?(L=/Android\s+([^\);]+)(\)|;)/,L=(x=L.exec(x))&&x[1]):_.FcN()&&(L=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,L=(x=L.exec(x))&&x[1]);x=
L||""}return x};
DLg=function(x,L){this.JSC$19694__htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(L)for(var D in L)this.JSC$19694__htOption[D]=L[D];this.JSC$19694__htOption.useSVG&&(cqq=n9u);this.JSC$19694__android=XP5();this.JSC$19694__el=x;this._oQRCode=null;this._oDrawing=new cqq(this.JSC$19694__el,this.JSC$19694__htOption);this.JSC$19694__htOption.text&&(x=this.JSC$19694__htOption.text,this._oQRCode=new o9W(this.JSC$19694__htOption.correctLevel),trI(this._oQRCode,
x),L=this._oQRCode,xLl(L,!1,LAs(L)),this.JSC$19694__el.title=x,this._oDrawing.draw(this._oQRCode),this.makeImage())};
Skl=function(x,L,D,S,Q){x.save();var J=new Path2D;J.roundRect(L,D,S*7,S*7,S*2);J.roundRect(L+S,D+S,S*5,S*5,S*1.3);J.roundRect(L+2*S,D+2*S,S*3,S*3,S);x.clip(J,"evenodd");x.fillStyle=Q;x.fillRect(0,0,x.canvas.width,x.canvas.height);x.restore()};
R7=function(x,L){if(typeof x!=="function")throw Error("Mk");return _.Qb.setTimeout(function(){x()},L)};
Gx=function(){};
JH$=function(x,L,D,S,Q){(new Gx).debug("TestLoadImageWithRetries: "+Q);if(S==0)D(!1);else{var J=Q||0;S--;Q63(x,L,function(Z){Z?D(!0):_.Qb.setTimeout(function(){JH$(x,L,D,S,J)},J)})}};
Q63=function(x,L,D){var S=new Gx;S.debug("TestLoadImage: loading "+x);var Q=new Image;Q.onload=function(){try{S.debug("TestLoadImage: loaded"),KAq(Q),D(!0)}catch(J){}};
Q.onerror=function(){try{S.debug("TestLoadImage: error"),KAq(Q),D(!1)}catch(J){}};
Q.onabort=function(){try{S.debug("TestLoadImage: abort"),KAq(Q),D(!1)}catch(J){}};
Q.ontimeout=function(){try{S.debug("TestLoadImage: timeout"),KAq(Q),D(!1)}catch(J){}};
_.Qb.setTimeout(function(){if(Q.ontimeout)Q.ontimeout()},L);
Q.src=x};
KAq=function(x){x.onload=null;x.onerror=null;x.onabort=null;x.ontimeout=null};
OIW=function(){this.front_=[];this.back_=[]};
ZIs=function(x,L){this.action=x;this.params=L||{}};
yH$=function(x,L){_.Te.call(this);this.delay_=new _.Rm(this.JSC$19820_onTick_,0,this);_.V1(this,this.delay_);this.JSC$19818_interval_=5E3;this.nextTickTime_=0;if(typeof x==="function")L&&(x=(0,_.e1)(x,L));else if(x&&typeof x.handleEvent==="function")x=(0,_.e1)(x.handleEvent,x);else throw Error("ya");this.JSC$19820_listener_=x};
Cj=function(x,L,D,S,Q,J,Z,y,E,P,v,V,h,H){D=D===void 0?!1:D;S=S===void 0?function(){return""}:S;
Q=Q===void 0?!1:Q;J=J===void 0?!1:J;Z=Z===void 0?!1:Z;y=y===void 0?function(){return _.V0({})}:y;
E=E===void 0?!1:E;v=v===void 0?!1:v;V=V===void 0?!1:V;h=h===void 0?!1:h;H=H===void 0?!1:H;this.JSC$19821_pathPrefix_=x;this.defaultQueryParams_=L;this.pubsub_=new _.mv;this.reconnectTimer_=new yH$(this.safeReconnect_,this);this.JSC$19821_channel_=null;this.JSC$19821_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$19821_pendingMessages_=[];this.enableAsyncTest_=D;this.JSC$19821_getXsrfToken_=S;this.useAsyncBrowserChannelHandler_=J;this.getAuthorizationHeader_=
y;this.getAuthorizationHeaderSync_=P;this.enableCachedUpdateAuthorizationHeader_=Z;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.V0();this.enableLoungeTokenRefresh_=Q;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=E;this.disableMdxAuthForNonPlaybackMessages_=v;this.disableMdxAuthForAdMessages_=V;this.enableMdxAuthForConnectionOnly_=h;this.disableMdxAuthForShortsMessages_=H;this.JSC$19821_channelOpenedCounter=new IH5;this.JSC$19821_channelClosedCounter=new Eis;this.channelMessageSentCounter=
new MOq;this.JSC$19821_channelMessageReceivedCounter=new dL5;this.JSC$19821_channelErrorCounter=new PiY;this.pendingMapsOnClosedCounter=new j6q;this.undeliveredMapsOnClosedCounter=new vi$};
lp=function(x){this.scheme="https";this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;x=x||document.location.href;var L=Number(_.ST(x)[4]||null)||"";L&&(this.port=":"+L);this.domain=_.QY(x)||"";x=_.hG();x.search("MSIE")>=0&&_.v4(x.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)};
UC=function(x){x=x||{};this.name=x.name||"";this.id=x.id||x.screenId||"";this.token=x.token||x.loungeToken||"";this.uuid=x.uuid||x.dialId||"";this.idType=x.screenIdType||"normal"};
VO$=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(x){var L=Math.random()*16|0;return(x=="x"?L:L&3|8).toString(16)})};
hZ$=function(x){return _.Bn(x,function(L){return{key:L.id,name:L.name}})};
HI3=function(x,L){return _.Uw(x,function(D){return D||L?!D!=!L?!1:D.id==L.id:!0})};
Bj=function(x,L){return _.Uw(x,function(D){return wu(D,L)})};
mLX=function(){var x=ufl(),L=gil();if(k$g()){var D=x,S=_.w40(D,L);S<0&&_.Csn(D,-(S+1),0,L)}x=pp3(x);if(x.length==0)try{_.e$s("remote_sid")}catch(Q){}else try{_.FD("remote_sid",x.join(","),-1)}catch(Q){}};
ufl=function(){var x=_.Ad("yt-remote-connected-devices")||[];x.sort(_.Uf4);return x};
pp3=function(x){if(x.length==0)return[];var L=x[0].indexOf("#"),D=L==-1?x[0]:x[0].substring(0,L);return _.Bn(x,function(S,Q){return Q==0?S:S.substring(D.length)})};
bIG=function(x){_.qB("yt-remote-connected-devices",x,86400)};
gil=function(){if(Yk3)return Yk3;var x=_.Ad("yt-remote-device-id");x||(x=VO$(),_.qB("yt-remote-device-id",x,31536E3));for(var L=ufl(),D=1,S=x;_.AG(L,S);)D++,S=x+"#"+D;return Yk3=S};
FAu=function(){return _.Ad("yt-remote-session-browser-channel")};
k$g=function(){return _.Ad("yt-remote-session-screen-id")};
eZl=function(x){x.length>5&&(x=x.slice(x.length-5));var L=_.Bn(s6X(),function(S){return S.loungeToken}),D=_.Bn(x,function(S){return S.loungeToken});
_.Ndc(D,function(S){return!_.AG(L,S)})&&TBq();
_.qB("yt-remote-local-screens",x,31536E3)};
s6X=function(){return _.Ad("yt-remote-local-screens")||[]};
TBq=function(){_.qB("yt-remote-lounge-token-expiration",!0,86400)};
Wj=function(x){x||(_.$8("yt-remote-session-screen-id"),_.$8("yt-remote-session-video-id"));mLX();x=ufl();_.$f(x,gil());bIG(x)};
G$W=function(){RZ9();return qQ?!!qQ.get("yt-remote-use-staging-server"):!1};
RZ9=function(){if(!qQ){var x=_.q40();x&&(qQ=new _.GU(x))}};
wpY=function(x,L,D,S,Q){D=D===void 0?function(){return""}:D;
var J=function(){return new Cj(Ag(x,"/bc"),L,!1,D,S)};
return _.u("enable_mdx_web_channel_desktop")?new Cig(function(){return new lH9(Ag(x,"/wc"),L,D)}):new ULX(J,Q)};
AH3=function(){var x=BBl;WAg();$U.push(x);qk$()};
ru=function(x,L){WAg();var D=$LI(x,String(L));$U.length==0?rH5(D):(qk$(),_.nm($U,function(S){S(D)}))};
NQ=function(x){ru("CP",x)};
WAg=function(){$U||($U=_.o1("yt.mdx.remote.debug.handlers_")||[],_.KK("yt.mdx.remote.debug.handlers_",$U))};
rH5=function(x){var L=(ip+1)%50;ip=L;NB9[L]=x;iIl||(iIl=L==49)};
qk$=function(){var x=$U;if(NB9[0]){var L=iIl?ip:-1,D={};do D={record$jscomp$15:void 0},L=(L+1)%50,D.record$jscomp$15=NB9[L],_.nm(x,function(S){return function(Q){Q(S.record$jscomp$15)}}(D));
while(L!=ip);NB9=Array(50);ip=-1;iIl=!1}};
$LI=function(x,L){var D=(Date.now()-fHg)/1E3;D.toFixed&&(D=D.toFixed(3));var S=[];S.push("[",D+"s","] ");S.push("[","yt.mdx.remote","] ");S.push(x+": "+L,"\n");return S.join("")};
fj=function(x){_.Xx.call(this);this.JSC$19845_logName_=x;this.screens=[]};
a7=function(x){fj.call(this,"LocalScreenService");this.JSC$19852_http_=x;this.loungeTokenRefreshTimer_=NaN;o7(this);this.info("Initializing with "+oiq(this.screens))};
zx=function(x,L){L=L===void 0?!1:L;fj.call(this,"ScreenService");this.JSC$19858_http_=x;this.disableAutomaticScreenCache_=L;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};aHG(this)};
Xk=function(x,L,D){_.Xx.call(this);this.JSC$19862_logName_=D;this.JSC$19862_screenService_=x;this.receiver_=L;this.screen_=null};
Itq=function(x,L,D){D.disableCastApi?cj("Cannot initialize because disabled by Mdx config."):zZW()?Xp9(x,D)&&(cHW(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?nil(L):(window.__onGCastApiAvailable=function(S,Q){S?nil(L):(nj("Failed to load cast API: "+Q),tOs(!1),cHW(!1),_.$8("yt-remote-cast-available"),_.$8("yt-remote-cast-receiver"),xjW(),L(!1))},D.loadCastApiSetupScript?_.ac(LU$):window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?
DjX()>=60&&SIs():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?Qlu():DjX()>=89?JDG():(KUI(),Ou$(Zul.map(yDl))))):cj("Cannot initialize because not running Chrome")};
xjW=function(){cj("dispose");var x=tg();x&&x.dispose();_.KK("yt.mdx.remote.cloudview.instance_",null);EO9(!1);_.huw(Mn9);Mn9.length=0};
dj$=function(){return!!_.Ad("yt-remote-cast-installed")};
Pc$=function(){var x=_.Ad("yt-remote-cast-receiver");return x?x.friendlyName:null};
jll=function(){cj("clearCurrentReceiver");_.$8("yt-remote-cast-receiver")};
vOX=function(){return dj$()?tg()?tg().getCastSession():(nj("getCastSelector: Cast is not initialized."),null):(nj("getCastSelector: Cast API is not installed!"),null)};
huu=function(x,L){Vnq()?tg().setConnectedScreenStatus(x,L):nj("setConnectedScreenStatus called before ready.")};
zZW=function(){var x=_.hG().search(/ (CrMo|Chrome|CriOS)\//)>=0;return _.uV||x};
Xp9=function(x,L){var D=!1;tg()||(x=new xS(x,L),x.subscribe("yt-remote-cast2-availability-change",function(S){_.qB("yt-remote-cast-available",S);ZT("yt-remote-cast2-availability-change",S)}),x.subscribe("yt-remote-cast2-receiver-selected",function(S){cj("onReceiverSelected: "+S.friendlyName);
_.qB("yt-remote-cast-receiver",S);ZT("yt-remote-cast2-receiver-selected",S)}),x.subscribe("yt-remote-cast2-receiver-resumed",function(S){cj("onReceiverResumed: "+S.friendlyName);
_.qB("yt-remote-cast-receiver",S);ZT("yt-remote-cast2-receiver-resumed",S)}),x.subscribe("yt-remote-cast2-session-change",function(S){cj("onSessionChange: "+Hug(S));
S||_.$8("yt-remote-cast-receiver");ZT("yt-remote-cast2-session-change",S)}),_.KK("yt.mdx.remote.cloudview.instance_",x),D=!0);
cj("cloudview.createSingleton_: "+D);return D};
tg=function(){return _.o1("yt.mdx.remote.cloudview.instance_")};
nil=function(x){tOs(!0);cHW(!1);tg().init(!1,function(L){L?(EO9(!0),_.HuN("yt-remote-cast2-api-ready")):(nj("Failed to initialize cast API."),tOs(!1),_.$8("yt-remote-cast-available"),_.$8("yt-remote-cast-receiver"),xjW());x(L)})};
cj=function(x){ru("cloudview",x)};
nj=function(x){ru("cloudview",x)};
tOs=function(x){cj("setCastInstalled_ "+x);_.qB("yt-remote-cast-installed",x)};
Vnq=function(){return!!_.o1("yt.mdx.remote.cloudview.apiReady_")};
EO9=function(x){cj("setApiReady_ "+x);_.KK("yt.mdx.remote.cloudview.apiReady_",x)};
cHW=function(x){_.KK("yt.mdx.remote.cloudview.initializing_",x)};
Lb=function(x){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(x)};
YIY=function(x){RZ9();if(!qQ||!qQ.get("yt-remote-disable-remote-module-for-dev")){x=_.$6("MDX_CONFIG")||x;r2q();mLX();De||(De=new lp(x?x.loungeApiHost:void 0),G$W()&&(De.basePath="/api/loungedev"));SL||(SL=_.o1("yt.mdx.remote.deferredProxies_")||[],_.KK("yt.mdx.remote.deferredProxies_",SL));uT5();var L=QJ();if(!L){var D=new zx(De,x?x.disableAutomaticScreenCache||!1:!1);_.KK("yt.mdx.remote.screenService_",D);L=QJ();var S={};x&&(S={appId:x.appId,disableDial:x.disableDial,theme:x.theme,loadCastApiSetupScript:x.loadCastApiSetupScript,
disableCastApi:x.disableCastApi,enableDialLoungeToken:x.enableDialLoungeToken,enableCastLoungeToken:x.enableCastLoungeToken,forceMirroring:x.forceMirroring});_.KK("yt.mdx.remote.enableConnectWithInitialState_",x?x.enableConnectWithInitialState||!1:!1);Itq(D,function(J){J?JV()&&huu(JV(),"YouTube TV"):D.subscribe("onlineScreenChange",function(){ZT("yt-remote-receiver-availability-change")})},S)}if(x&&!_.o1("yt.mdx.remote.initialized_")){_.KK("yt.mdx.remote.initialized_",!0);
Kb("Initializing: "+(0,_.iO)(x));Oe.push(_.My("yt-remote-cast2-api-ready",function(){ZT("yt-remote-api-ready")}));
Oe.push(_.My("yt-remote-cast2-availability-change",function(){ZT("yt-remote-receiver-availability-change")}));
Oe.push(_.My("yt-remote-cast2-receiver-selected",function(){gOI();ZT("yt-remote-auto-connect","cast-selector-receiver")}));
Oe.push(_.My("yt-remote-cast2-receiver-resumed",function(){ZT("yt-remote-receiver-resumed","cast-selector-receiver")}));
Oe.push(_.My("yt-remote-cast2-session-change",kQu));Oe.push(_.My("yt-remote-connection-change",function(J){J?huu(JV(),"YouTube TV"):pDW()||(huu(null,null),jll())}));
Oe.push(_.My("yt-remote-cast2-session-failed",function(){ZT("yt-remote-connection-failed")}));
S=mjl();x.isAuto&&(S.id+="#dial");var Q=x.capabilities||[];Q.length>0&&(S.capabilities=Q);S.name=x.device;S.app=x.app;(x=x.theme)&&(S.theme=x);Kb(" -- with channel params: "+(0,_.iO)(S));S?(_.qB("yt-remote-session-app",S.app),_.qB("yt-remote-session-name",S.name)):(_.$8("yt-remote-session-app"),_.$8("yt-remote-session-name"));_.KK("yt.mdx.remote.channelParams_",S);L.start();JV()||buW()}}};
slX=function(){var x=QJ().instance_.$_gos();var L=FUW();L&&Ze()&&(HI3(x,L)||x.push(L));return hZ$(x)};
TF$=function(){var x=slX(),L=FUW();L||(L=pDW());return _.Uw(x,function(D){return L&&wu(L,D.key)?!0:!1})};
FUW=function(){var x=JV();if(!x)return null;var L=QJ().getScreens();return Bj(L,x)};
kQu=function(x){Kb("remote.onCastSessionChange_: "+Hug(x));if(x){var L=FUW();if(L&&L.id==x.id){if(huu(L.id,"YouTube TV"),x.idType=="shortLived"&&(x=x.token))euX&&(euX.token=x),(L=Ze())&&L.setLoungeToken(x)}else L&&Rul(),GQg(x,1)}else Ze()&&Rul()};
Rul=function(){Vnq()?tg().stopSession():nj("stopSession called before API ready.");var x=Ze();x&&(x.disconnect(1),Cc9(null))};
ltg=function(){var x=Ze();return x&&x.getProxyState()!=3?new yJ(Ze(),void 0):null};
Kb=function(x){ru("remote",x)};
QJ=function(){if(!Uju){var x=_.o1("yt.mdx.remote.screenService_");Uju=x?new wDq(x):null}return Uju};
JV=function(){return _.o1("yt.mdx.remote.currentScreenId_")};
BFl=function(x){_.KK("yt.mdx.remote.currentScreenId_",x)};
gOI=function(){_.KK("yt.mdx.remote.connectData_",null)};
Ze=function(){return _.o1("yt.mdx.remote.connection_")};
Cc9=function(x){var L=Ze();gOI();x||BFl("");_.KK("yt.mdx.remote.connection_",x);SL&&(_.nm(SL,function(D){D(x)}),SL.length=0);
L&&!x?ZT("yt-remote-connection-change",!1):!L&&x&&ZT("yt-remote-connection-change",!0)};
pDW=function(){var x=k$g();if(!x)return null;var L=QJ();if(!L)return null;L=L.getScreens();return Bj(L,x)};
GQg=function(x,L){WUs?euX=x:(BFl(x.id),x=new IA(De,x,mjl(),_.o1("yt.mdx.remote.enableConnectWithInitialState_")||!1),x.connect(L,_.o1("yt.mdx.remote.connectData_")),x.subscribe("beforeDisconnect",function(D){ZT("yt-remote-before-disconnect",D)}),x.subscribe("beforeDispose",function(){Ze()&&Cc9(null)}),x.subscribe("browserChannelAuthError",function(){var D=FUW();
D&&D.idType=="shortLived"&&(Vnq()?tg().handleBrowserChannelAuthError():nj("refreshLoungeToken called before API ready."))}),Cc9(x))};
buW=function(){var x=pDW();x?(Kb("Resume connection to: "+Hug(x)),GQg(x,0)):(Wj(),jll(),Kb("Skipping connecting because no session screen found."))};
uT5=function(){var x=mjl();if(_.wk.isEmpty(x)){x=gil();var L=_.Ad("yt-remote-session-name")||"",D=_.Ad("yt-remote-session-app")||"";x={device:"REMOTE_CONTROL",id:x,name:L,app:D,mdxVersion:3};x.authuser=String(_.$6("SESSION_INDEX","0"));(L=_.$6("DELEGATED_SESSION_ID"))&&(x.pageId=String(L));_.KK("yt.mdx.remote.channelParams_",x)}};
mjl=function(){return _.o1("yt.mdx.remote.channelParams_")||{}};
qIu=function(){var x,L;return _.I(function(D){if(D.nextAddress==1)return(_.LU0()||_.u("use_new_nwl"))&&_.cHb().isNetworkAvailable()?D.yield(_.OD(),2):D.return();if(D.nextAddress!=3)return(x=D.yieldResult)?D.yield(MmI(x),3):D.return();L=D.yieldResult;if(!L.length)return D.return();L.forEach(function(S){var Q={timestamp:S.timestamp};S=S.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:S.appShellAssetLoadReport,options:Q}:S.clientError?{payloadName:"clientError",payload:S.clientError,
options:Q}:void 0;S&&_.Uh(S.payloadName,S.payload,S.options)});
L.length===100&&_.WW.addLowPriorityJob(qIu);_.Y2(D)})};
ADI=function(x){if(x.playerResponse){if(x=x.playerResponse,x.messages&&x.messages.length>0&&(x=x.messages.find(function(L){return!(!L||!L.mealbarPromoRenderer)}))&&x.mealbarPromoRenderer)return x.mealbarPromoRenderer}else if(x.response&&(x=x.response)&&x.overlay&&x.overlay.mealbarPromoRenderer)return x.overlay.mealbarPromoRenderer};
$js=function(x){if(x.response){var L=x.response;if(L&&L.overlay&&L.overlay.tooltipRenderer)return L.overlay.tooltipRenderer}if(x.playerResponse&&(x=x.playerResponse,x.messages&&x.messages.length>0&&(x=x.messages.find(function(D){return!(!D||!D.tooltipRenderer)}))&&x.tooltipRenderer))return x.tooltipRenderer};
NFG=function(x){if(!rDs&&(x=x||_.$6("ZWIEBACK_PING_URLS"))&&x.length){rDs=!0;for(var L=0;L<x.length;L++)_.z3(x[L])}};
fts=function(x){if(_.wk.get(_.$6("PLAYER_VARS",{}),"privembed",!1)!="1"){x&&S4I();try{iug().then(function(){},function(){}),_.VY(fts,18E5)}catch(L){_.N9(L)}}};
oOq=function(){var x=_.FI(),L=x.getFlag(119),D=window.devicePixelRatio>1;document.body&&_.QH(document.body,"exp-invert-logo")&&(D&&!_.QH(document.body,"inverted-hdpi")?_.OI(document.body,"inverted-hdpi"):!D&&_.QH(document.body,"inverted-hdpi")&&_.JD(document.body,"inverted-hdpi"));L!=D&&(_.s8(0,119,D),x.save())};
atl=function(x){return x.filter(function(L){return"ypcGetCartEndpoint"in L||"ypcFixInstrumentEndpoint"in L})};
zuq=function(x){return x.filter(function(L){return!_.g(L,_.JQh)})};
cDu=function(x,L){var D,S,Q,J,Z,y,E;_.I(function(P){switch(P.nextAddress){case 1:D=_.Bq.getInstance();S=_.pI.instance;Q=_.cD.instance;if(!Q)return XDq(x,S,L),P.return();_.HH(P,2);x.onLoadingCommand&&S.resolveCommand(x.onLoadingCommand);return P.yield(D.getCurrentPositionFromGeolocation(),4);case 4:J=P.yieldResult;if(!x.resolveLocationCommand){P.jumpTo(5);break}Z=D.createLocationInfo(J);return P.yield(_.tD(Q,x.resolveLocationCommand,{locationInfo:Z}),6);case 6:y=P.yieldResult;if(!y||"error"in y&&y.error||
y.errorMetadata)return XDq(x,S,L),P.return();var v;if(y==null?0:(v=y.onResponseReceivedActions)==null?0:v.length){v=_.O(y.onResponseReceivedActions);for(var V=v.next();!V.done;V=v.next())S.resolveCommand(V.value)}(_.g(x.onSuccessCommand,_.L6)||_.g(x.onSuccessCommand,_.mt))&&_.MF(L.hostElement,"yt-navigate",{endpoint:x.onSuccessCommand,reload:!0});case 5:_.nH(P,0);break;case 2:E=_.mW(P);if(E instanceof GeolocationPositionError&&E.code===GeolocationPositionError.PERMISSION_DENIED)return x.onDeniedCommand&&
S.resolveCommand(x.onDeniedCommand),P.return();XDq(x,S,L);_.Y2(P)}})};
XDq=function(x,L,D){x.onFailureCommand&&(L.resolveCommand(x.onFailureCommand),_.dg(D.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))};
tn$=function(x,L){var D=_.g(x,_.CJr);if(D&&L){x=D.videoIds||[D.videoId];var S;L=(S=_.MF(L,"yt-lockup-requested",{videoIds:x}).detail)==null?void 0:S.returnValue;var Q;D.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?Q=L?L:x.map(function(J){return{videoId:J,navigationEndpoint:D.videoCommand}}):L&&(Q=L);
Q&&(S=Q.map(function(J){var Z=Object,y=Z.assign;var E=J.navigationEndpoint;if(!_.g(E,_.TF)){var P=_.g(E,_.L6);if(P){if(delete P.index,delete P.playlistId,P=_.g(E==null?void 0:E.commandMetadata,_.gg),P==null?0:P.url){var v=P.url;v=_.K6(v,"list");v=_.K6(v,"index");P.url=v}}else E=void 0}return y.call(Z,{},J,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:E})}),nOl(S,D))}};
xbW=function(x){var L=_.hY();if(x=_.g(x,_.l7A))x.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&L.clearQueue(),x.closeMiniplayer&&_.yY().resolve(_.iy).close(!0)};
DbW=function(x){LFq(_.hY(),x)};
Svs=function(x){var L;(x=(L=_.g(x,_.RQW))==null?void 0:L.setVideoIds)&&x.forEach(function(D){_.Hzr(_.hY(),D)})};
JLu=function(x){QB$(_.hY(),x)};
KF$=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(x){return!1}};
OXX=function(x){var L=["h","m","s"],D=_.r0(L);D.reverse();var S={};x=(x.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(Z){var y=(Z.match(/[hms]/)||[""])[0];return y?(S[y]=parseInt(Z.match(/\d+/)[0],10),!1):!0});
for(x.reverse();x.length&&D.length;){var Q=D.shift();Q in S||(S[Q]=parseInt(x.shift(),10))}if(x.length||S.s>59||S.m>59||S.h>9)return null;var J="";L.forEach(function(Z){S[Z]&&(J+=""+S[Z]+Z)});
return J||null};
ZX9=function(x,L){var D=_.Qwh(L,{},x,!0);return new Promise(function(S,Q){D.listenOnce("n",function(){Q(Error("xl`"+D.JSC$29513_getErrorDescription()))});
D.listenOnce("l",function(){var J=D.getResponseCode();if(J!==200)Q(Error("yl`"+L+"`"+x.type+"`"+x.size+"`"+J));else try{S(JSON.parse(D.getResponseText()).encryptedBlobId)}catch(Z){Q(Z)}});
D.run()})};
yLY=function(x){return x.substring(x.indexOf(":")+1,x.indexOf(";"))};
Is$=function(x){return new Promise(function(L,D){var S=new FileReader;S.onloadend=function(){try{var Q=new Uint8Array(S.result);Q.length<8&&D(void 0);var J=Q.subarray(0,8);Q="";for(var Z=0;Z<J.length;Z++)Q+=("0"+J[Z].toString(16)).substr(-2);Q.startsWith("ffd8ff")?L("image/jpeg"):Q.startsWith("47494638")?L("image/gif"):Q.startsWith("89504e470d0a1a0a")?L("image/png"):Q.startsWith("424d")?L("image/bmp"):L(void 0)}catch(y){D(y)}};
S.onerror=D;S.readAsArrayBuffer(x)})};
Ee5=function(x){return new Promise(function(L,D){var S=new Image;S.crossOrigin="anonymous";S.onload=function(){var Q=document.createElement("canvas");Q.width=S.naturalWidth;Q.height=S.naturalHeight;var J=Q.getContext("2d");if(!J)throw Error("zl");J.drawImage(S,0,0);J=yLY(x);Q.toBlob(function(Z){Z?L(Z):D()},J)};
S.src=x})};
db3=function(x,L){var D;if(((D=_.g(x,_.TF))==null?void 0:D.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var S;_.MF((S=L.hostElement)!=null?S:L,"yt-shorts-reset");_.upH(_.yY().resolve(_.aO),x).then(function(J){M23(J,L,x)})}else{var Q;
_.jq((Q=L.hostElement)!=null?Q:L,[x]).then(function(J){J&&M23(J.data,L,x)})}};
M23=function(x,L,D){if(x){var S=_.g(x.replacementEndpoint,_.TF);if(S){x.sequenceContinuation&&(S.sequenceParams=x.sequenceContinuation);var Q;_.MF((Q=L.hostElement)!=null?Q:L,"yt-navigate",{endpoint:x.replacementEndpoint})}else if((x==null?void 0:x.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(x==null?0:x.watchStatus)&&_.g(x.watchStatus,_.hj2)){var J;_.MF((J=L.hostElement)!=null?J:L,"yt-navigate",{endpoint:D})}}};
PkI=function(x){var L=_.yY().resolve(_.MP),D=_.aB.currentPageTypeSelector(L.getState())||"";L=_.aB.currentPageSubTypeSelector(L.getState())||"";D=D==="ytd-browse"&&L==="home";return _.u("web_guide_entry_enable_cache_for_non_home_pages")?(x=(x==null?void 0:x.navigationEndpoint)&&_.pB(x.navigationEndpoint)==="home",{disableCache:D&&x}):{disableCache:D}};
veq=function(x,L,D){if(L!=null&&L.isPrimary){a:{if(D&&D.length){var S=L.formattedTitle;var Q={};S&&(Q.header={panelHeaderViewModel:{title:_.$i(S)}});S=[];D=_.O(D);for(var J=D.next();!J.done;J=D.next()){J=_.g(J.value,jB5);var Z=void 0,y=void 0,E=((Z=J)==null?0:Z.formattedTitle)?_.$i((y=J)==null?void 0:y.formattedTitle):void 0;Z=void 0;y=(Z=J)==null?void 0:Z.isPrimary;if(J&&E&&!y){E={title:E};J.navigationEndpoint&&(E.rendererContext={commandContext:{onTap:{innertubeCommand:J.navigationEndpoint}}});
Z=[];var P=y=void 0;if(((y=J)==null?0:(P=y.thumbnail)==null?0:P.thumbnails)&&J.thumbnail.thumbnails.length>0){y=_.O(J.thumbnail.thumbnails);for(P=y.next();!P.done;P=y.next())Z.push({url:P.value.url});E.leadingAccessory={avatarViewModel:{image:{sources:Z},avatarImageSize:"AVATAR_SIZE_XS"}}}else if(y=void 0,(y=J.icon)==null?0:y.iconType)Z.push({clientResource:{imageName:J.icon.iconType||""}}),E.leadingImage={sources:Z};y=Z=void 0;((Z=J)==null?0:(y=Z.badges)==null?0:y.liveBroadcasting)?E.trailingImage=
{sources:[{clientResource:{imageName:"live"}}]}:J.count&&(E.trailingLabel={content:J.count.toString()});S.push({listItemViewModel:E})}}S.length!==0?Q.content={listViewModel:{listItems:S}}:Q=void 0;if(Q){Q={showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:Q}}}};break a}}Q=void 0}Q&&(L.mouseEnterEndpoint=Q,L.mouseLeaveEndpoint={hideSheetCommand:{}});x.push({guideEntryRenderer:L})}};
V2q=function(x){if(!x)return!1;try{if(x.host&&x.host.tagName==="YT-FORMATTED-STRING"&&x.host.id==="contenteditable-textarea"||x.nodeType===Node.ELEMENT_NODE&&x.tagName==="YTD-COMMENT-INPUT")return!0}catch(L){return!1}return V2q(x.parentNode)};
Ee=function(x){return x?x.tagName==="A"&&x.href&&x.classList.contains("yt-simple-endpoint"):!1};
h6q=function(x){return x?x.tagName==="IMG"&&x.classList.contains("emoji"):!1};
HXX=function(x,L,D){if(!x)return null;var S=Ee(x);if(S&&D)return L=x.pathname.substring(x.pathname.indexOf("/channel/")+9),document.createTextNode("@"+L);if(S&&!D)return document.createTextNode("");if(h6q(x))return D=x.alt,x=x.dataset.emojiId,!x&&L&&(L=_.dq(L,D))&&L.isCustomEmoji&&(x=L.emojiId),x?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+x+">"):document.createTextNode(D);S=x.cloneNode(!1);for(var Q=0;Q<x.childNodes.length;++Q){var J=HXX(x.childNodes[Q],L,D);J&&S.appendChild(J)}return S};
ME=function(x){return x?Ee(x)?x:ME(x.lastChild):null};
ujq=function(x){return x?Ee(x)?x:ujq(x.firstChild):null};
ge9=function(x){if(!x)return null;for(var L=x.previousSibling;L;)if(L.nodeType===Node.ELEMENT_NODE&&L.nodeName==="BR")L=L.previousSibling;else if(L.nodeType===Node.TEXT_NODE&&/\s+/.test(L.textContent))L=L.previousSibling;else break;(L=ME(L))?x=L:x=(x=x.parentNode)?ME(x.previousElementSibling):null;return x};
kR3=function(x){if(!x)return null;for(var L=x.nextSibling;L;)if(L.nodeType===Node.ELEMENT_NODE&&L.nodeName==="BR")L=L.nextSibling;else if(L.nodeType===Node.TEXT_NODE&&/\s+/.test(L.textContent))L=L.nextSibling;else break;return(L=ujq(L))?L:kR3(x.parentNode)};
pX$=function(x){var L=_.j8(),D=L.JSC$11351_getStartNode();if(!V2q(D.parentNode))return null;L=L.JSC$11351_getStartOffset();if(D.nodeType===Node.TEXT_NODE){var S=_.rk(D,Ee);if(S){if(x&&L===0||!x&&L===D.length)return S}else{if(x&&L===D.length)return!D||D.nodeName==="BR"||D.nextElementSibling&&_.v2(D.nextElementSibling,"display")==="block"?null:ujq(D.nextElementSibling);if(!x&&L===0)return D?ME(D.previousElementSibling):null}}if(D.nodeType===Node.ELEMENT_NODE)if(x){if(0<=L&&L<D.childNodes.length)return ujq(D.childNodes[L])}else if(0<
L&&L<=D.childNodes.length)return ME(D.childNodes[L-1]);return null};
mbl=function(x,L,D){if(!x)return null;if(x.nodeType===Node.TEXT_NODE)if(D){var S=ge9(x);if(S&&!/^\s+\S/.test(x.wholeText.substr(0,L)))return S}else if((S=kR3(x))&&!/\S\s+/.test(x.wholeText.substr(L,x.wholeText.length)))return S;return x.nodeType===Node.ELEMENT_NODE?D?ge9(x.childNodes[L]):kR3(x.childNodes[L]):mbl(x.parentNode,L,D)};
bXl=function(x){if(x.hasChildNodes())switch(x.tagName){case "DIV":case "A":case "SPAN":var L="";for(x=x.firstChild;x;x=x.nextSibling)L+=bXl(x);return L;default:return""}else switch(x.nodeType){case 3:return x.textContent;default:return""}};
Yvl=function(x){switch(x){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"}};
FFq=function(x){return x.map(function(L){return{settingsRadioOptionRenderer:{title:_.E4(L.name),asideText:_.E4(L.approximateSize),id:Yvl(L.format)}}})};
T4X=function(x){if(x&&x.length!==0)return x.filter(sBq()).map(function(L){return{settingsRadioOptionRenderer:{title:L.name,asideText:L.approximateSize,id:Yvl(L.formatType)}}})};
dn=function(x){if(x)return x.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")};
e6q=function(x,L){x=new Set(x!=null?x:[]);if(x.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(x.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(x.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(x.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(x.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(L)return"YOUTUBE_ENTITY_TYPE_DEFAULT"};
R6q=function(x){var L=x.indexOf("(");return L!==-1?x.substring(L+1,x.length-1):x};
_.Ckq=function(x,L,D,S,Q){D||(D=GRI);var J;(J=_.g(D.commandMetadata,_.gg))!=null&&J.url||(D=Error("El`"+JSON.stringify(D)),_.BI(D),D=GRI);D=_.wk.unsafeClone(D);J=_.rz(_.g(D.commandMetadata,_.gg).url,"search_query",x);_.om(location.href,"sv")==="1"&&(_.g(D,_.b1).params="EgOAAgE%3D",J=_.rz(J,"sv","1"));_.g(D,_.b1)&&(_.g(D,_.b1).query=x);J=J.replace(/%20/g,"+");_.g(D.commandMetadata,_.gg).url=J;Q=_.u("desktop_enable_entity_suggest")?{entityMid:Q}:{};_.yY().resolve(_.E2).resolveCommand(D,{form:{tempData:Object.assign({},
{gs_l:L,oq:S!=null?S:x},Q)}})};
lsl=function(x){switch(x){case 38:return-1;case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}};
wXl=function(x,L,D,S,Q,J){var Z=_.wk.clone(Ub3);Z.locale=_.$6("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;Z.report={description:Q||"<empty>"};Q=_.$6("SBOX_SETTINGS",{});L=L.join(",");var y=Date.now();x={choice_cc:S,choice_id_cc:D,choices_sc:L,gl:Q.REQUEST_DOMAIN,hl:Q.REQUEST_LANGUAGE,query:x,time:y};J&&(x.choice_additional_comment_cc=J);_.I9H(Z,x)};
B4G=function(x){var L=new Map;L.set("authuser",_.$6("SESSION_INDEX","0"));return _.vn(x,L)};
qvI=function(x){var L;return _.I(function(D){switch(D.nextAddress){case 1:if(!x||!WF3(x))return D.return(null);L=null;switch(_.$6("INNERTUBE_CLIENT_NAME")){case "WEB":return D.jumpTo(2);case "WEB_REMIX":L=x.getPlayer()}D.jumpTo(3);break;case 2:return D.yield(x.getPlayerPromise(),4);case 4:L=D.yieldResult;D.jumpTo(3);break;case 3:return D.return(L)}})};
WF3=function(x){return["ytd-player","ytmusic-player"].includes(String(x.tagName||"").toLowerCase())};
ALI=function(x){x=Math.round(x);return x%2?x-1:x};
$bs=function(x){x=Math.round(x);return x%2===0?x-1:x};
rLu=function(x){var L,D,S;if(x=(L=x.createPlaylistDialogFormSchema)==null?void 0:(D=L.fieldSchemas)==null?void 0:(S=D.title)==null?void 0:S.validationSchema)for(L=[x.syncStep,x.asyncStep].filter(function(Q){return Q!==void 0}),L=_.O(L),D=L.next();!D.done;D=L.next()){D=D.value.rules;
if(!D)break;D=_.O(D);for(D=D.next();!D.done;D=D.next())return _.g(D.value,_.pWl)}};
iX3=function(x){var L,D,S;if(x=(L=x.createPlaylistDialogFormSchema)==null?void 0:(D=L.fieldSchemas)==null?void 0:(S=D.visibility)==null?void 0:S.validationSchema)for(L=[x.syncStep,x.asyncStep].filter(function(Q){return Q!==void 0}),L=_.O(L),D=L.next();!D.done;D=L.next()){D=D.value.rules;
if(!D)break;D=_.O(D);for(S=D.next();!S.done;S=D.next())if(S=_.g(S.value,N49))return L=void 0,(L=S.translations)==null?void 0:L.visibilityNotValidErrorMessage}};
fsu=function(){var x,L;return(L=(x=_.yY().resolve(_.ZN(_.Dt)))==null?void 0:x())!=null?L:!1};
oel=function(x){var L=21;if(!x)return L;L+=x.headerTitle?27:0;L+=x.headerTitle&&x.hasHeaderActionHeader?4:0;return L+=x.headerTitle&&x.headerSubtitle?16:0};
ass=function(x){var L=0;if(!x)return L;L+=x.hasFooterPrimaryButton||x.hasFooterSecondaryButton?48:0;L+=x.footerTrailingLabel||x.footerLeadingLabel?30:0;return L+=x.hasFooterPrimaryButton||x.hasFooterSecondaryButton||!x.footerTrailingLabel&&!x.footerLeadingLabel?0:12};
z6u=function(x){var L=new _.mv,D=x;return{subscribe:function(S){L.subscribe("changed",S)},
dispatch:function(S,Q){var J=D;S==="Touch Start"?D=Object.assign({},J,{isAnimating:!1,initialY:Q.event.touches[0].clientY}):S==="Touch Move"?(S=Math.min(Q.fullContentWrapperHeight,Q.contentHeightMap[Q.contentWrapperId]+oel(Q.header)-ass(Q.footer)),D=Object.assign({},J,{currentY:Math.max(Q.contentScrollable?-1*(J.initialY-24):0,Q.event.touches[0].clientY-J.initialY),maxHeightForContentWrapper:Math.min(S,Math.max(0,(J.isFullScreen?S:Q.contentWrapperHeight)-J.currentY))})):D=S==="Snap To Full Screen"?
Object.assign({},J,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:Q.maxHeight}):S==="Snap To Neutral Position"?Object.assign({},J,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:Q.maxHeight}):S==="Close Sheet"?Object.assign({},J,{isAnimating:!0,currentY:Q.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:Q.maxHeight}):J;L.publish("changed",D)}}};
XX9=function(x){return _.kO(function(L){x(L);return!1})};
cLq=function(){_.yY().resolve(_.SE).closeSheet()};
ne3=function(x){var L,D,S,Q,J,Z,y,E,P,v,V;return{headerTitle:(L=x.headerTitle)==null?void 0:L.call(x),headerSubtitle:(D=x.headerSubtitle)==null?void 0:D.call(x),headerActionHeader:x.headerActionHeader,footerPrimaryButton:x.footerPrimaryButton,footerSecondaryButton:x.footerSecondaryButton,footerButtonType:(S=x.footerButtonType)==null?void 0:S.call(x),footerLeadingLabel:(Q=x.footerLeadingLabel)==null?void 0:Q.call(x),footerTrailingLabel:(J=x.footerTrailingLabel)==null?void 0:J.call(x),shouldShowIcons:(Z=
x.shouldShowIcons)==null?void 0:Z.call(x),skipContentClick:(y=x.skipContentClick)==null?void 0:y.call(x),additionalClassName:(E=x.additionalClassName)==null?void 0:E.call(x),onClosedCallback:x.onClosedCallback,focusOnClose:(P=x.focusOnClose)==null?void 0:P.call(x),isDisabled:(v=x.isDisabled)==null?void 0:v.call(x),disabledCommand:(V=x.disabledCommand)==null?void 0:V.call(x),headerFn:x.headerFn,contentFn:x.contentFn,footerFn:x.footerFn,hasHeaderFn:x.hasHeaderFn(),hasContentFn:x.hasContentFn(),hasFooterFn:x.hasFooterFn(),
hasFooterPrimaryButton:x.hasFooterPrimaryButton(),hasFooterSecondaryButton:x.hasFooterSecondaryButton(),hasHeaderActionHeader:x.hasHeaderActionHeader()}};
t29=function(x){switch(x){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""}};
x1G=function(x){switch(x){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""}};
LBG=function(x){switch(x){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""}};
D1l=function(x,L,D){L.forEach(function(S){_.AM(_.yY().resolve(_.QT),S)});
_.dg(x,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",D])};
KBl=function(x,L,D,S){var Q=_.g(D,_.v5).commandLifeCycleConfig;Q&&Q.onStartCommand&&_.v$(x,[Q.onStartCommand],L);_.fF(L);var J=_.cD.instance;J&&_.nu(J,D)?_.tD(J,D,S).then(function(Z){if(!Z||(Z==null?0:Z.error))return Z=_.g(D,_.v5).serializedTransactionFlowLoggingParams,_.oS(L),_.Bp(new Pm("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",Z));_.oS(L);return{data:Z}}).then(function(Z){_.oS(L);
S3Y(Z.data);var y=Z.data.command;y&&_.v$(x,[y],L);y=QSq(D,Z.data);if(!y){var E=Z.data;Z=!1;if(E&&E.command&&_.g(E.command,_.h_)){var P;E=((P=_.g(E.command,_.h_))==null?void 0:P.commands)||[];for(P=0;P<E.length;P++)if(_.g(E[P],_.$KH)){Z=!0;break}}Z||_.Q$('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!y&&Q&&Q.onSuccessCommand?_.v$(x,[Q.onSuccessCommand],L):y&&Q&&Q.onFailureCommand&&_.v$(x,[Q.onFailureCommand],L)},function(){_.oS(L);
Q&&Q.onFailureCommand&&_.v$(x,[Q.onFailureCommand],L);Jis(D)}):_.BI(Error("Ql"),"ERROR")};
OFI=function(x,L,D){var S=[L];D&&S.push(D);return _.jq(x,S).then(function(Q){var J=_.g(L,_.v5).serializedTransactionFlowLoggingParams,Z=Q.data,y=QSq(L,Z);y?Q=_.Bp(new Pm(y,J)):S3Y(Z);return Q},function(){var Q=_.g(L,_.v5).serializedTransactionFlowLoggingParams;
Jis(L);return _.Bp(new Pm("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",Q))})};
QSq=function(x,L){x=_.g(x,_.v5).serializedTransactionFlowLoggingParams;var D=null;switch(L.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":D="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":D="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":D="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}D?_.Sr(D,x):YOq(x);return D};
Jis=function(x){_.Sr("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.g(x,_.v5).serializedTransactionFlowLoggingParams)};
S3Y=function(x){if(x.trackingParams){var L=_.A3(),D=_.qu();L&&D&&_.XI(L,D,_.CI(x.trackingParams))}};
ZFl=function(x,L,D){var S=_.cD.instance,Q=_.PL0(_.$6("YPC_MB_URL")),J=(new _.Mhn).init(),Z=_.dxf(),y=_.g(D,_.BUA).languageCode;y===void 0?_.BI(Error("Ni"),"ERROR"):_.AR([J,Q]).then(function(){var E={ctk:_.QG.payments.business.integration.ClientTokenFactory.createClientToken(y,Z)};S&&_.nu(S,D)?_.tD(S,D,E).then(function(P){return{data:P}}).then(function(P){_.MF(L,"yt-service-request-completed",P);
P.code!=="ERROR"&&(P=P.data.command)&&_.v$(x,[P],L)}):_.BI(Error("Ql"),"ERROR")})};
Ecl=function(x,L,D,S){var Q=_.cD.instance;Q&&_.nu(Q,D)?_.tD(Q,D,S).then(function(J){return{data:J}}).then(function(J){yil(x,L,D,J)},function(){InI(D)}):(Q=_.yY().resolve(_.ZN(_.NB)))&&Q.requestDataForServiceEndpoint(D,S).then(function(J){yil(x,L,D,J)},function(){InI(D)})};
yil=function(x,L,D,S){_.MF(L,"yt-service-request-completed",S);if(S.code&&S.code=="ERROR")InI(D);else{(S=S.data.commands)&&_.v$(x,S,L);var Q;(x=(Q=_.g(D,_.NUW))==null?void 0:Q.serializedYpcPauseFlowLoggingParams)&&x&&_.YC("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",x)}};
InI=function(x){var L;(x=(L=_.g(x,_.NUW))==null?void 0:L.serializedYpcPauseFlowLoggingParams)&&x&&_.YC("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",x,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
PSX=function(x,L,D){var S=_.cD.instance;S&&_.nu(S,D)?_.tD(S,D).then(function(Q){return{data:Q}}).then(function(Q){M8u(x,L,D,Q)},function(){d1X(D)}):(S=_.yY().resolve(_.ZN(_.NB)))&&S.requestDataForServiceEndpoint(D).then(function(Q){M8u(x,L,D,Q)},function(){d1X(D)})};
M8u=function(x,L,D,S){_.MF(L,"yt-service-request-completed",S);S.code&&S.code=="ERROR"?d1X(D):((S=S.data.commands)&&_.v$(x,S,L),(x=_.g(D,_.ifi).serializedYpcResumeFlowLoggingParams)&&x&&_.YC("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",x))};
d1X=function(x){(x=_.g(x,_.ifi).serializedYpcResumeFlowLoggingParams)&&x&&_.YC("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",x,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
jSs=function(x){x=x===void 0?{}:x;_.yY().resolve(_.w4$).showFeedbackDialog(x.customProductData,x.feedbackContent,x.onFeedbackSubmitted,x.bucket)};
vc3=function(x){x=x===void 0?{}:x;_.yY().resolve(_.w4$).showHelpDialog(x.helpContext,x.articleId,x.productData)};
V83=function(){vc3()};
hMq=function(){jSs()};
uml=function(x,L,D){var S,Q,J,Z,y,E,P;return _.I(function(v){switch(v.nextAddress){case 1:S=_.g(x,HFs);if((Q=S)==null?0:Q.productId){E={productId:S.productId,bucket:S.bucket,enableAnonymousFeedback:(y=S.enableAnonymousFeedback)!=null?y:!0,allowNonLoggedInFeedback:!0};P={feedbackChoice:D.feedbackChoice};if(!_.u("web_collect_offline_state")){v.jumpTo(8);break}_.HH(v,9);return v.yield(UBg(P),11)}Z={bucket:(J=S)==null?void 0:J.bucket};if(!_.u("web_collect_offline_state")){v.jumpTo(4);break}Z.customProductData=
{};_.HH(v,5);return v.yield(UBg(Z.customProductData),7);case 7:_.nH(v,4);break;case 5:_.mW(v);case 4:jSs(Z);v.jumpTo(0);break;case 11:_.nH(v,8);break;case 9:_.mW(v);case 8:_.xmf(P),_.ttw("GFEEDBACK",P),S.productId==="5295751"&&(P.client_attestation=Number(_.$6("CATSTAT",0))),S.productId==="5295751"&&(P.client_time=Date.now()/1E3/3600),S.productId==="5295751"&&(P.original_playback_id=_.ei2||""),_.I9H(E,P),_.Y2(v)}})};
gcl=function(x){if(x=_.g(x,_.IZN)){var L={bucket:x.bucketIdentifier};x.additionalDatas&&(L.customProductData={},x.additionalDatas.forEach(function(D){if(D=D.userFeedbackEndpointProductSpecificValueData)L.customProductData[D.key]=D.value}));
jSs(L)}};
kku=function(x){var L=_.aR.getInstance();var D=_.p6("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var S=_.p6("DELETE",void 0,"Delete"),Q=_.p6("CANCEL",void 0,"Cancel");D=fgs(D,void 0,S,Q,{signal:"DELETE_ALL_DOWNLOADS"});_.tS(L,[{openPopupAction:D}],x)};
m1G=function(){return _.I(function(x){return x.nextAddress==1?x.yield(_.yY().resolve(_.aV),2):x.yield(p2W(),0)})};
bFW=function(x){var L,D;return _.I(function(S){return S.nextAddress==1?(D=(L=_.g(x,_.iY))==null?void 0:L.targetId)?S.yield(_.yY().resolve(_.aV),3):S.jumpTo(0):S.yield(_.yY().resolve(_.oV).deleteVideo(D),0)})};
FBG=function(x){var L,D;return _.I(function(S){return S.nextAddress==1?(D=(L=_.g(x,_.iY))==null?void 0:L.targetId)?S.yield(_.yY().resolve(_.aV),3):S.jumpTo(0):S.yield(Y3I(_.yY().resolve(_.oV),D),0)})};
Tqs=function(x){var L,D;return _.I(function(S){return(D=(L=_.g(x,_.iY))==null?void 0:L.targetId)?S.yield(sSu(D),0):S.jumpTo(0)})};
RMg=function(){_.u("kevlar_woffle_refresh_dl_load_killswitch")||eM$()};
CSW=function(){_.u("kevlar_woffle")&&_.wY.instance&&Gkq()};
U1q=function(x){var L;if((L=_.g(x,_.ke))==null||!L.videoId)return!1;lnl(_.yY().resolve(_.oV),_.g(x,_.ke),x.clickTrackingParams);return!0};
Bq$=function(x){var L;if((L=_.g(x,_.pX))==null||!L.playlistId)return!1;w2X(_.yY().resolve(_.oV),_.g(x,_.pX),x.clickTrackingParams);return!0};
q3s=function(x){var L=_.g(x,_.YjC);(L==null?void 0:L.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(L==null?void 0:L.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||WBW(_.yY().resolve(_.oV),_.g(x,_.YjC))};
$1I=function(x){x=_.g(x,_.S6W);var L;(x==null?0:(L=x.actions)==null?0:L.length)&&Ai$(x)};
iFG=function(x){var L,D;return _.I(function(S){L=_.g(x,rig);return(D=L)!=null&&D.localWatchHistoryCommandType?S.yield(NqI(L),0):S.return()})};
fnW=function(x){setTimeout(function(){requestAnimationFrame(x)},80)};
ocG=function(x){return Object.entries(x).map(function(L){return L.join(":")}).join(";")};
zMX=function(x){var L,D,S;_.I(function(Q){if(Q.nextAddress==1)return Q.yield(anq(),2);L=Q.yieldResult;D=_.pI.instance;switch(L){case "granted":S=x.getLocationCommand;break;case "denied":S=x.openDeniedDialogAction;break;case "prompt":S=x.openCollectionDialogAction;break;default:S=x.openCollectionDialogAction}S&&D.resolveCommand(S);_.Y2(Q)})};
anq=function(){var x,L;return _.I(function(D){if(D.nextAddress==1)return x="prompt",navigator.permissions?D.yield(navigator.permissions.query({name:"geolocation"}),3):D.jumpTo(2);D.nextAddress!=2&&(L=D.yieldResult,x=L.state);return D.return(x)})};
ciG=function(){_.I(function(x){return x.yield(_.X2$(),0)})};
ncW=function(){var x,L,D;return _.I(function(S){if(S.nextAddress==1)return x=_.yY().resolve(_.i1),x?S.yield(_.tD(x,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.qy(Error("Tl")),S.return(void 0));if(L=S.yieldResult){if(L.errorMetadata)return _.qy(Error("Ul`"+L.errorMetadata.status+"`"+L.error)),S.return(void 0);D=L.datasyncIds;_.fhs=D.length;return S.return(D)}_.qy(Error("Vl"));return S.return(void 0)})};
t89=function(){ncW().then(function(x){x&&(Iog(x),sqG(x),Ltu(x),BYq(x))})};
xkl=function(x){_.WW.addLowPriorityJob(function(){var L,D,S,Q,J;return _.I(function(Z){switch(Z.nextAddress){case 1:if(_.u("ytidb_clear_optimizations_killswitch")){Z.jumpTo(2);break}L=_.TU("clear");if(L.startsWith("V")&&L.endsWith("||")){var y=[L];Iog(y);sqG(y);Ltu(y);BYq(y);return Z.return()}D=DBq();S=Wt$();return Z.yield(TY5(),3);case 3:return Q=Z.yieldResult,Z.yield(ENq(),4);case 4:if(J=Z.yieldResult,!(D||S||Q||J))return Z.return();case 2:x.isNetworkAvailable()?t89():x.listenOnce("publicytnetworkstatus-online",
t89),_.Y2(Z)}})})};
jL=function(x){x={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:_.Dv(x)}}}};_.pI.instance&&_.pI.instance.resolveCommand(x)};
LII=function(x){if(x){var L=_.sk();_.we(L,3854,void 0,{layer:0,parentLayer:4});switch(x){case 1:var D=238708;break;case 2:D=238715;break;case 3:D=238710;break;case 6:D=238709}D&&(x=_.Ff(L,{veType:D}))&&_.qJ(L,x)}};
Dks=function(x){if(x){var L=_.sk();_.we(L,3854,void 0,{layer:0,parentLayer:4});switch(x){case 1:var D=238714;break;case 2:D=238711;break;case 8:D=238709;break;case 7:D=238713;break;case 3:case 4:case 5:D=238712}D&&(x=_.Ff(L,{veType:D}))&&_.qJ(L,x)}};
Sy$=function(x){switch(x.latencyType){case 0:_.A_("consent_primitive_flow");_.$T("cpit",x.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.$T("cpist",x.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.$T("cprtif",x.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.$T("cprtli",x.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.$T("cprt",x.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.$T("cpdt",x.timestampEpochMillis,"consent_primitive_flow");
break;case 8:_.$T("cpjct",x.timestampEpochMillis,"consent_primitive_flow")}};
dkl=function(x,L){var D,S,Q,J,Z,y,E,P,v,V,h,H,k,T,G,U,l,X,f,N;return _.I(function(z){switch(z.nextAddress){case 1:_.HH(z,2);(S=(D=_.g(x,QP3))==null?void 0:D.serializedConsentRequest)||(S=(Q=_.g(x,JKW))==null?void 0:Q.serializedConsentRequest);S&&(J=KIY(_.tG(S)));if(J===void 0)return z.return();Z=OGq(J);Z.latencyCallback=Sy$;L&&ZGs(Z,function(){L.then(function(xf){xf.pauseVideo();(new yKI).increment()})});
return((y=_.g(x,QP3))==null?void 0:y.consentAction)==="CONSENT_ACTION_PREWARM"||((E=_.g(x,JKW))==null?void 0:E.consentAction)==="CONSENT_ACTION_PREWARM"?z.yield(ISX(Z),5):z.yield(EvI(Z),6);case 6:P=z.yieldResult;v=_.TE(P,VJ);if(v===1){if(((V=_.A9(P,hV,1,VJ))==null?void 0:_.BN(V,1))===1||((h=_.A9(P,hV,1,VJ))==null?void 0:_.BN(h,1))===2||((H=_.A9(P,hV,1,VJ))==null?void 0:_.BN(H,1))===3)_.g(x,JKW)?jL(_.p6("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
jL(_.p6("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));LII((k=_.A9(P,hV,1,VJ))==null?void 0:_.BN(k,1),_.O7(P,MKW,3,_.Zb()))}else v===2?(((T=Hm(P))==null?void 0:_.BN(T,1))===5?_.g(x,JKW)?jL(_.p6("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):jL(_.p6("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((G=Hm(P))==null?void 0:_.BN(G,1))===1||((U=Hm(P))==null?void 0:_.BN(U,1))===4?jL(_.p6("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((l=Hm(P))==null?void 0:_.BN(l,1))===7&&((X=J)==null?void 0:(f=_.Mg(X,uF,4))==null?void 0:_.BN(f,4))!==1&&jL(_.p6("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),Dks((N=Hm(P))==null?void 0:_.BN(N,1))):jL(_.p6("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));z.jumpTo(5);break;case 5:_.nH(z,0);break;case 2:_.mW(z),jL(_.p6("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.Y2(z)}})};
jPI=function(){if(!PyI.has("Worker")){PyI.set("Worker",!0);var x={api:"BROWSER_API_WEB_WORKER"};x.available="Worker"in window?!0:!1;_.Uh("apiTest",x)}};
vv5=function(x){return typeof x==="undefined"?"-1":String(Math.ceil(x/1048576))};
uos=function(x,L){VK$(new hrX(_.g(L,HGl).addToken,_.g(L,HGl).commonToken)).then(function(){_.MF(x,"yt-invoke-instrument-manager-action-completed")},function(D){_.MF(x,"yt-invoke-instrument-manager-action-error",D)})};
gn=function(){return _.$6("HTML_DIR")==="rtl"};
gvu=function(){var x,L;return(L=(x=window).matchMedia)==null?void 0:L.call(x,"(prefers-reduced-motion: reduce)").matches};
kn$=function(x){var L=_.yY().resolve(_.ZN(_.og));if(L&&L.isAnyTransitionEnabled){var D={};L.viewTransitionCoordinator.registerElement(x,(D.slide="miniplayer-page-transition",D["lockup-to-watch"]="miniplayer-page-transition",D["learning-journey"]="miniplayer-page-transition",D))}};
pF5=function(x,L,D){return{horizontalAlignment:x.x+D.width/2<L.width/2?"west":"east",verticalAlignment:x.y+D.height/2<L.height/2?"north":"south"}};
bGI=function(x,L,D,S,Q){Q=Q===void 0?new _.Wn(0,0):Q;x=mk9(x,L,D,S,!1);return new _.Wn(x.x+Q.x,x.y+Q.y)};
mk9=function(x,L,D,S,Q){Q=(Q===void 0?0:Q)?400:0;return new _.Wn(x==="west"?16+(gn()?Q:0):D.width-S.width-16-(gn()?0:Q),L==="north"?16:D.height-S.height-16)};
Yyq=function(x,L){var D=0;x&&(D+=76);L&&(D+=285);return D};
FIY=function(x){return _.fi(x)};
sPX=function(x){var L=1;x=x.split(":");for(var D=[];L>0&&x.length;)D.push(x.shift()),L--;x.length&&D.push(x.join(":"));return D};
TV9=function(x){var L=new _.bO;return _.$I(L,11,x)};
erY=function(x){var L={};x=x.getAllResponseHeaders().split("\r\n");for(var D=0;D<x.length;D++)if(!_.Ew(x[D])){var S=sPX(x[D]),Q=S[0];S=S[1];if(typeof S==="string"){S=S.trim();var J=L[Q]||[];L[Q]=J;J.push(S)}}return _.wk.map(L,function(Z){return Z.join(", ")})};
Hj=function(x,L){return x.JSC$9800_xhr_?x.JSC$9800_xhr_.getResponseHeader(L):null};
Rr5=function(x,L){if(x.isDisposed())throw Error("Ea");x.iN.kW("n");var D=_.zm(x.iN,function(){return x.yF3([L.o2,L.cT7,L.afX,L.tTq])},"n");
x.iN.aRR(D.length);x.iN.gs();return D};
kS=function(x,L,D){Array.isArray(D)||(D=[String(D)]);_.Cfh(x.JSC$10036_queryData_,L,D);return x};
Gkq=function(){var x=_.wY.instance;_.I(function(L){return x.deferredInstallPrompt?L.yield(x.deferredInstallPrompt.prompt(),0):L.jumpTo(0)})};
Gnu=function(x,L,D){if(_.Nf(x))_.nm(x,L,D);else for(x=_.r6R(x);;){var S=x.next();if(S.done)break;L.call(D,S.value,void 0,x)}};
Cys=function(x,L){var D=[];Gnu(L,function(S){try{var Q=_.Po.prototype.getWrapper.call(this,S,!0)}catch(J){if(J=="Storage: Invalid value was encountered")return;throw J;}Q===void 0?D.push(S):_.$62(Q)&&D.push(S)},x);
return D};
$Ul=function(x,L){Cys(x,L).forEach(function(D){_.Po.prototype.remove.call(this,D)},x)};
lS5=function(x){var L=_.yj;L._minimumZ=Math.max(L._minimumZ,x)};
Uk$=["www.youtube-nocookie.com","www.youtubeeducation.com","youtube.googleapis.com"];wFs=function(x,L){_.Q1(x.vm);x.vm=L};
BVG=function(x,L,D,S){x.setState(5);var Q=!!x.eSW&&Uk$.includes(_.QY(x.eSW)||"");try{var J=new _.XC({program:L,globalName:D,e1C:{disable:!_.u("att_web_record_metrics")||!_.u("att_skip_metrics_for_cookieless_domains_ks")&&Q,iV:"aGIf"}});J.d17.then(function(){x.setState(6);S&&S(L)});
wFs(x,J)}catch(Z){x.setState(7),Z instanceof Error&&_.qy(Z)}};
WIl=function(x,L,D,S,Q,J){var Z=Z===void 0?"trayride":Z;D?(x.setState(2),_.ac(_.Cw(D),function(){if(window[Z])BVG(x,S,Z,Q);else{x.setState(3);var y=_.s43(D),E=document.getElementById(y);E&&(_.gOn(y),E.parentNode.removeChild(E));_.qy(new _.RZ("BL:ULB",D))}},J)):L?(J=_.pw("SCRIPT"),L instanceof _.LZ?_.Sf(J,L):J.textContent=L,J.nonce=_.tw(document),document.head.appendChild(J),document.head.removeChild(J),window[Z]?BVG(x,S,Z,Q):(x.setState(4),_.qy(new _.RZ("BL:ULBJ")))):_.qy(new _.RZ("BL:ULV"))};
qyW=function(){this.state=1;this.vm=null;this.eSW=void 0};
_.K=qyW.prototype;_.K.initialize=function(x,L,D,S){this.eSW=S;if(x.program){var Q;S=(Q=x.interpreterUrl)!=null?Q:null;if(x.interpreterSafeScript)Q=_.rq4(x.interpreterSafeScript);else{var J;Q=(J=x.interpreterScript)!=null?J:null}x.interpreterSafeUrl&&(S=_.qg(x.interpreterSafeUrl).toString());WIl(this,Q,S,x.program,L,D)}else _.qy(Error("qf"))};
_.K.isInitialized=function(){return!!this.vm};
_.K.getState=function(){return this.state};
_.K.isLoading=function(){return this.state===2};
_.K.invoke=function(x){x=x===void 0?{}:x;var L;this.vm?L=Rr5(this.vm,{o2:x}):L=null;return L};
_.K.dispose=function(){wFs(this,null);this.setState(8)};
_.K.setState=function(x){this.state=x};
var AK$=function(x,L){return x.vm.snapshot(L)},$kg=function(x,L){var D=_.dE("botguard_async_snapshot_timeout_ms",3E3);
L=L===void 0?{}:L;D=D===void 0?3E3:D;return x.vm?new Promise(function(S,Q){var J=!1,Z=_.WW.addJob(function(){J=!0;Q(Error("rf"))},1,D);
x.vm?AK$(x,{o2:L}).then(function(y){_.WW.cancelJob(Z);J||S(y)}).catch(function(y){_.WW.cancelJob(Z);
J||Q(y)}):(_.WW.cancelJob(Z),S(null))}):Promise.resolve(null)},rK$=["att/log"],GRI;
GRI={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var NVY={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},iGW=function(x,L){return _.YN(x,{mode:"readwrite",enableRetries:!0},function(D){return _.K10(D,L,"settingEntity")})},fSY=function(x,L,D){return _.YN(x,{mode:"readonly",
enableRetries:!0},function(S){return _.P02(S,L,D)})},ovl=function(x){if(!x.storage)return!1;
a:{if(x.storage){try{var L=x.storage.get("TLPQtimestamp")}catch(D){}x=Number(L);if(!isNaN(x))break a}x=void 0}return x?Date.now()-x<864E5:!1},aSl=function(x){if(x.storage){try{var L=x.storage.get("TLPQindex")}catch(D){}x=Number(L);
if(!isNaN(x))return x}},zr9=function(x,L){x.queueProxy&&L.forEach(function(D){if(D.videoId&&D.trackingParams&&x.queueProxy instanceof _.IO){var S=_.A3();
x.queueProxy.attributionData.set(D.videoId,{enqueueingVe:_.CI(D.trackingParams).getAsJson(),enqueueingCsn:S?S:void 0,clientEnqueueingTimeMs:Math.floor((0,_.y5)()).toString()})}})},XFl=function(x){var L=_.zii(x);
L!=x.currentSnapState_&&(x.currentSnapState_=L,x.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},pb=function(x){this.JSC$13172_networkManager_=x;
this.partCallbacks_=[]};
pb.prototype.getCacheKeyForEndpoint=function(x){return _.njp(x,!1)};
pb.prototype.onPartsCallback_=function(x){this.partCallbacks_.forEach(function(L){x&&L(x)})};
var mV=function(x,L,D){pb.call(this,x);this.player_=L;this.autoplayData_=D};
_.p(mV,pb);mV.prototype.getCacheKeyForEndpoint=function(x){return _.njp(x,!!this.autoplayData_)};
mV.prototype.getTempData=function(x,L){L=L.timeBeforeNextVideo;x={itct:x.clickTrackingParams,lact:_.Z8(),pbis:L,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(x.autonav=1);return x};
mV.prototype.getXhrParams=function(x){return Object.assign({pbj:"prefetch"},x)};
mV.prototype.getParams=function(x){x={frags:x.fragmentsRequested.join(",")};_.u("kevlar_droppable_prefetchable_requests")&&(x.prefetch=1);return x};
var cKl=function(x){x.playerEvents_.forEach(function(L){x.player.removeEventListener(L.eventName,L.callback)});
x.playerEvents_.length=0},bF=function(x,L,D){this.player=x;
this.JSC$13182_taskManager=L;this.prefetchDelay=D;this.completionResolver_=null;this.playerEvents_=[]};
bF.prototype.start=function(){var x=this;this.completionResolver_=_.xe();_.$x(this.completionResolver_.promise,function(){cKl(x);x.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var nvX=function(x,L,D){x.player.addEventListener(L,D);x.playerEvents_.push({eventName:L,callback:D})},tKl={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},xa5={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},LiG=function(x,L,D){bF.call(this,x,L,D);this.cueId_="playbackTrigger-"+Math.random()};
_.p(LiG,bF);
LiG.prototype.prepareTrigger=function(x){var L=this,D=this.player.getDuration(),S=this.player.getVideoData(),Q=S.isLive&&S.hasProgressBarBoundaries;if(Q&&S.progressBarEndPositionUtcTimeMillis){var J=S.progressBarEndPositionUtcTimeMillis/1E3;isNaN(J)||(D=J)}var Z=0;this.prefetchDelay>=0?Q?S.progressBarStartPositionUtcTimeMillis&&(S=S.progressBarStartPositionUtcTimeMillis/1E3,isNaN(S)||(Z=S+this.prefetchDelay)):Z=this.prefetchDelay:Z=D+this.prefetchDelay;Q?this.player.addUtcCueRange(this.cueId_,Z,D):
this.player.addCueRange(this.cueId_,Z,D);_.$x(x.promise,function(){L.player.removeCueRange(L.cueId_)});
nvX(this,"onCueRangeEnter",function(y){y==L.cueId_&&x.resolve(D-Z)})};
var Da$=function(x,L){x.fragmentConfiguration_[L].requiredKeys.every(function(D){return!!x.prefetchedData_[D]})&&(x.validatedFragments_.push(L),L=x.missingFragments_.indexOf(L),L!==-1&&x.missingFragments_.splice(L,1))},S9g=function(x){x.prefetchedFragments_.forEach(function(L){Da$(x,L)})},QMG=function(x,L,D){this.pageFragments_=x;
this.prefetchedFragments_=L;this.fragmentConfiguration_=xa5;this.prefetchedData_=D;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;S9g(this)},J9g=function(){},KiW=function(x){this.JSC$13196_playlistManager_=x};
_.p(KiW,J9g);KiW.prototype.getPrefetchEndpoint=function(){return this.JSC$13196_playlistManager_.getAutoplayEndpoint()};
var Oiq=function(x){this.autonavEndpoints_=x};
_.p(Oiq,J9g);Oiq.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var Ziq=function(x,L,D,S,Q){this.autonavEndpoints=x;this.foregroundTrigger=L;this.backgroundTrigger=D;this.pageType=S;this.isInPlaylist=Q},y9l=function(x,L){if(x.webPrefetchData&&x.webPrefetchData.navigationEndpoints&&x.webPrefetchData.navigationEndpoints.length){x=x.webPrefetchData.navigationEndpoints;
var D=_.g(x[0],_.L6);if(D.watchEndpointSupportedPrefetchConfig&&D.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var S=D.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;D=S.playbackRelativeSecondsPrefetchCondition;D=typeof D==="number"&&Math.abs(D)<L.videoDuration?D:void 0;S=S.countdownUiRelativeSecondsPrefetchCondition;S=typeof S!=="number"||_.u("prefetch_job_config_cleanup_ks")&&L.inPlaylist?void 0:S;if(typeof S==="number")return new Ziq(x,L.makeUpNextTrigger(S),L.makePlaybackTrigger(S),
"watch",L.inPlaylist);if(typeof D==="number")return new Ziq(x,L.makePlaybackTrigger(D),null,"watch",L.inPlaylist)}}},Ic5=function(x){return x.prefetchJobConfig_.backgroundTrigger?_.fm(_.b1N)()==0?x.prefetchJobConfig_.backgroundTrigger:x.prefetchJobConfig_.foregroundTrigger:x.prefetchJobConfig_.foregroundTrigger},EIu=function(x){_.wG(document,"visibilitychange",x.onVisibilityChange_,!1,x)},YS=function(x){pb.call(this,x)};
_.p(YS,pb);YS.prototype.getCacheKeyForEndpoint=function(x){return pb.prototype.getCacheKeyForEndpoint.call(this,x)};
YS.prototype.getTempData=function(){return{}};
YS.prototype.getXhrParams=function(x){return x};
YS.prototype.getParams=function(){return{}};
var M_u=function(x,L,D){var S=x.prefetchDelay*1E3;if(Math.abs(S)>L)D.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var Q=S,J=L-S;S<0&&(Q=L+S,J=Math.abs(S));var Z=x.JSC$13182_taskManager.addJob(function(){D.resolve(J/1E3)},10,Q);
D.promise.thenCatch(function(){x.JSC$13182_taskManager.cancelJob(Z)})}},dal=function(x,L,D){bF.call(this,x,L,D)};
_.p(dal,bF);dal.prototype.prepareTrigger=function(x){var L=this;nvX(this,"onAutonavCoundownStarted",function(D){M_u(L,D,x)})};
var PVu=function(x){x.pendingPrefetchJob_&&(x.pendingPrefetchJob_.cancel(),x.pendingPrefetchJob_=null)},jM9=function(x,L,D){if(!x.triggeredTargets.has(L)){var S=_.qdi(x,L);
S.action=D;_.BX2(x,L,S)}},vIg=function(x){_.bRR();
_.W94("cpt")&&_.qy(Error("qh"));_.Qb.requestAnimationFrame(function(){_.Qb.setTimeout(function(){_.$T("cpt");var L=_.il("vpl"),D=_.il("cpt");L&&D&&_.$T("ol",Math.max(L,D))})});
try{_.$T("fr_s"),x()}catch(L){_.BI(L)}_.Qb.requestAnimationFrame(function(){_.$T("bcp")})},V_X=function(x,L){x.serviceEndpointHandlers.push(L)},hE3=function(x,L){L=x.pendingPages_.indexOf(L);
L>-1&&x.pendingPages_.splice(L,1)},Hiu=function(x,L){var D=_.zIh.indexOf(L);
D>-1&&_.zIh.splice(D,1);x.targetPage_==L?(x.abort(),_.ckQ(x)):hE3(x,L)},uK5=function(x,L,D,S){L={challenge:L};
D&&(L.webResponse=D);return _.MI(x.innertubeTransportService,L,_.KB(rK$),S)},gIX=function(x,L,D){if(!L.challenge)throw Error("vi");
if(L.botguardData&&L.botguardData.program){var S=new qyW;S.initialize(L.botguardData,function(){$kg(S,{atr_challenge:L.challenge}).then(function(Q){if(!Q)throw Error("wi");return uK5(x,L.challenge,Q,D)}).catch(function(Q){_.qy(Q);
return uK5(x,L.challenge,void 0,D)})},void 0)}else uK5(x,L.challenge,void 0,D)},kE5=function(x,L,D){var S={};
L.ids&&(S.ids=[].concat(_.lP(L.ids)));L.engagementType&&(S.engagementType=L.engagementType);return _.MI(x.innertubeTransportService,S,_.KB(_.TKR),D).then(function(Q){if(!Q)throw new _.RZ("GetAttestationChallenge returned falsy");gIX(x,Q,D)}).thenCatch(function(Q){_.BI(Q)})},pNl=function(x,L,D){return new _.HI(function(S,Q){var J;
return _.I(function(Z){if(Z.nextAddress==1){var y=Z.yield,E=L.engagementType,P=L.ids,v={};P=_.O(P!=null?P:[]);for(var V=P.next();!V.done;V=P.next())V=V.value,V.encryptedVideoId?v.encryptedVideoId=V.encryptedVideoId:V.externalChannelId?v.externalChannelId=V.externalChannelId:V.commentId?v.commentId=V.commentId:V.externalOwnerId?v.externalOwnerId=V.externalOwnerId:V.artistId?v.artistId=V.artistId:V.playlistId?v.playlistId=V.playlistId:V.externalPostId?v.externalPostId=V.externalPostId:V.shareId&&(v.shareId=
V.shareId);return y.call(Z,i69(E,v),2)}J=Z.yieldResult;if(!J.challenge)return _.qy(Error("xi")),kE5(x,L,D).then(S,Q),Z.return();y=J;E={challenge:y.challenge};E.webResponse=y.webResponse;E.engagementType=L.engagementType;E.ids=L.ids;_.MI(x.innertubeTransportService,E,_.KB(rK$),D).then(S,Q);_.Y2(Z)})})},QB$=function(x,L){var D,S,Q,J;
_.I(function(Z){if(Z.nextAddress==1){D=_.g(L,_.wZi);if(!(D&&D.listId&&x.response&&x.response.playingVideoId)||x.listId!==D.listId)return Z.return();x.index===void 0&&(x.index=0);return Z.yield(_.ceB(x.JSC$12929_playlistNetworkManager,D.listId,x.index,x.response.playingVideoId),2)}S=Z.yieldResult;if(!S)return Z.return();Q=S.playlistId;J=S.playlistPanelRenderer;x.setPlaylistData(Q,J,S.autoplayRenderer);_.Y2(Z)})},maG=function(x,L,D){var S=x.getParams(D),Q=_.t2h(L,S),J=x.getTempData(L,D);
J.endpoint=JSON.stringify(L);_.u("enable_unknown_lact_fix_on_html5")&&(_.yY().resolve(_.Rl),J.lact=_.Z8());var Z={headers:{"X-YouTube-STS":_.$6("STS"),"x-youtube-csoc":1}};_.J_(Q,J);return new _.HI(function(y,E){var P=x.getXhrParams(S),v;_.u("kevlar_cache_on_ttl_player")&&(v=_.Xe.instance);v&&_.vM_(v,L)?_.mA_(v,L,J,window.location.href).then(function(V){V?y(V):E()},E):_.iyh(x.JSC$13172_networkManager_,L,P,x.onPartsCallback_.bind(x),Z).then(function(V){V?y(V):E()},E)})},biG=function(x,L){x.triggerPromise_=
L.start();
x.triggerPromise_.then(function(D){var S=x.prefetchEndpointProvider_.getPrefetchEndpoint();if(S){var Q=tKl[x.prefetchJobConfig_.pageType].prefetchedFragments;x.prefetchRequestPromise_=maG(x.JSC$13208_networkPrefetchRequest_,S,{fragmentsRequested:Q,timeBeforeNextVideo:D});x.prefetchResponseCacheKey_=x.JSC$13208_networkPrefetchRequest_.getCacheKeyForEndpoint(S);EIu(x);x.prefetchRequestPromise_.then(function(J){x.storePrefetchedDataCallback_(x.prefetchResponseCacheKey_,J);if(_.u("web_prefetch_preload_video")&&
Q.length===1&&Q[0]==="pl"&&J&&!J.playerAds&&!J.adPlacements){var Z=_.g(S,_.TF),y=Z!=null,E={raw_player_response:J,watch_endpoint:Z};(J=_.yY().resolve(y?_.C0G:_.d4))&&S&&J.then(function(P){y&&_.u("web_queue_preload_video")?(E.prefer_gapless=!0,P.queueNextVideo(E)):P.preloadVideoByPlayerVars(E)})}})}})},FV=function(x,L,D,S){this.prefetchEndpointProvider_=x;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=L;this.prefetchJobConfig_=D;this.JSC$13208_networkPrefetchRequest_=S;this.prefetchResponseCacheKey_=null};
FV.prototype.enqueue=function(){this.triggerPromise_||(biG(this,Ic5(this)),_.Uk(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
FV.prototype.resolve=function(){this.cancel()};
FV.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.");EIu(this)};
FV.prototype.onVisibilityChange_=function(){var x=this;_.fm(_.b1N)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){x.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||biG(this,Ic5(this))};
var Y93=function(x,L,D,S,Q){L&&(L==null?0:L.videoId)&&D&&D.entries&&_.u("kevlar_enable_shorts_prefetch_in_sequence")&&(PVu(x),L=D.entries.map(function(J){var Z;return(Z=_.g(J.command,_.TF))==null?void 0:Z.videoId}).indexOf(L.videoId),D=D.entries[L+1],D!=null&&D.command&&!_.g(D==null?void 0:D.command,_.O6)&&(S=new Ziq([D.command],new LiG(S,_.WW,1),null,"shorts",!1),x.pendingPrefetchJob_=new FV(new Oiq(S.autonavEndpoints),function(){return!1},S,new YS(Q)),x.pendingPrefetchJob_.enqueue()))},FiW=function(x,
L,D,S,Q,J){var Z=_.Yh.getInstance();
if(!_.u("block_all_player_prefetch_requests")){PVu(x);var y=!!D.getPlaylistId(),E=D.getVideoData().isLive&&D.getVideoData().hasProgressBarBoundaries;if((Z.getState()==2||y||E)&&(!D.getVideoData().isLive||E)){Z={inPlaylist:y,videoDuration:D.getDuration(),makeUpNextTrigger:function(v){return new dal(D,_.WW,v)},
makePlaybackTrigger:function(v){return new LiG(D,_.WW,v)}};
var P=y9l(L,Z);P&&(x.pendingPrefetchJob_=new FV(P.isInPlaylist?new KiW(Q):new Oiq(P.autonavEndpoints),function(v,V){V=new QMG(tKl[P.pageType].pageFragments,tKl[P.pageType].prefetchedFragments,V);return _.sgR(V)?(x.prefetchCache_.set(v,V),!0):!1},P,new mV(S,D,J,Q)),x.pendingPrefetchJob_.enqueue())}}},sMX=function(){var x=_.hY();
x.signals.parkOrScheduleJob(function(){var L=x.storage;if(L.storage)if(ovl(L)){var D=L.getPlaylistId();L=aSl(L);D=!!D&&L!==void 0}else L.clear(),D=!1;else D=!1;if(D){D=x.pageManager.isOnWatch();a:{var S=x.storage;if(S.storage&&ovl(S)&&(L=S.getPlaylistId(),S=aSl(S),L&&S!==void 0)){D={recoverPlaylistCommand:{listId:L,index:S,openMiniplayer:!D,openListPanel:D,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}D=void 0}D&&_.tS(x.JSC$12929_actionRouter,[D],null)}},0,"ma")},Tyu=function(x,L,D,S,Q,J){var Z=
_.VC(7111);
_.B5(x.JSC$18383_screenManager,Z,J?_.CI(J):void 0);_.qJ(x.JSC$18383_screenManager,Z,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:S,offlineId:L,offlineabilityFormatType:D,isDefaultFormatType:Q==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:Q}})},eEq=function(x,L,D,S,Q){var J,Z,y,E,P;
return _.I(function(v){if(v.nextAddress==1)return v.yield(x.JSC$18383_playerApiPromise,2);J=v.yieldResult;Tyu(x,L,D,"OFFLINE_OBJECT_TYPE_PLAYLIST",S,Q);if(y=_.gAh[x.entityTypeMap.listEntityType])P={},Z=(P[y]={maximumDownloadQuality:(E=D)!=null?E:void 0},P);return v.yield(J.queueOfflineAction(L,x.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",Z),0)})},RE5=function(x,L){var D,S,Q,J;
return _.I(function(Z){if(Z.nextAddress==1)return Z.yield(x.JSC$18383_persistentStorePromiseAccessor(),2);if(Z.nextAddress!=3){D=Z.yieldResult;if(!D)return _.qy(new _.RZ("PES is undefined")),Z.return();S=_.Ha(L,"downloadStatusEntity");return Z.yield(fSY(D,S,"downloadStatusEntity"),3)}Q=Z.yieldResult;return Z.return((J=Q)==null?void 0:J.downloadState)})},GEX=function(x,L,D,S,Q){var J,Z,y,E,P,v;
return _.I(function(V){switch(V.nextAddress){case 1:return V.yield(x.JSC$18383_playerApiPromise,2);case 2:J=V.yieldResult;Tyu(x,L,D,"OFFLINE_OBJECT_TYPE_VIDEO",S,Q);if(y=_.gAh[x.entityTypeMap.singleEntityType])P={},Z=(P[y]={maximumDownloadQuality:(E=D)!=null?E:void 0},P);return V.yield(RE5(x,L),3);case 3:v=V.yieldResult;if(v!=="DOWNLOAD_STATE_USER_DELETED"){V.jumpTo(4);break}return V.yield(x.deleteVideo(L),4);case 4:return V.yield(J.queueOfflineAction(L,x.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",
Z),0)}})},CVs=function(x,L,D,S,Q){return _.I(function(J){return J.nextAddress==1?J.yield(x.deleteVideo(L,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):J.yield(GEX(x,L,D,S,Q),0)})},lc$=function(x,L,D){var S,Q;
return _.I(function(J){if(J.nextAddress==1)return J.yield(x.JSC$18383_playerApiPromise,2);S=J.yieldResult;Q=_.Ha(L,"mainVideoDownloadStateEntity");return J.yield(S.updateDownloadState(Q,D),0)})},sSu=function(x){var L=_.yY().resolve(_.oV);
return _.I(function(D){if(D.nextAddress==1)return L.previousDownloadStateForVideo[x]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&L.previousDownloadStateForVideo[x]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?D.jumpTo(2):D.yield(L.resumeVideoDownload(x),2);if(D.nextAddress!=4)return D.yield(lc$(L,x,L.previousDownloadStateForVideo[x]),4);delete L.previousDownloadStateForVideo[x];_.Y2(D)})},Y3I=function(x,L){var D;
return _.I(function(S){if(S.nextAddress==1)return S.yield(x.JSC$18383_playerApiPromise,2);D=S.yieldResult;return S.yield(D.queueOfflineAction(L,x.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})},p2W=function(){var x=_.yY().resolve(_.oV),L,D;
return _.I(function(S){if(S.nextAddress==1)return S.yield(x.JSC$18383_playerApiPromise,2);if(S.nextAddress!=3)return L=S.yieldResult,D={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},S.yield(L.queueOfflineAction("!*$_ALL_ENTITIES_!*$",x.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",D),3);var Q=x.JSC$18383_commandHandler,J=Q.resolveCommand,Z=_.p6("DELETING_ALL",void 0,"Downloads are being deleted");J.call(Q,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.ya(Z)}},
popupType:"TOAST"}});_.Y2(S)})},Ua9=function(x,L){var D,S,Q,J,Z,y;
return _.I(function(E){if(E.nextAddress==1)return E.yield(x.JSC$18383_persistentStorePromiseAccessor(),2);if(E.nextAddress!=3)return D=E.yieldResult,D?E.yield(fSY(D,_.U4,"downloadsPageViewConfigurationEntity"),3):(_.qy(new _.RZ("PES is undefined")),E.return());Q=(S=E.yieldResult)!=null?S:{};y=(Z=(J=Q)==null?void 0:J.downloadsUpsellBannerVisibility)!=null?Z:{};return y.visibleWithConnection?E.yield(L.refreshAllStaleEntities(0),0):E.jumpTo(0)})},wNX=function(x){var L,D;
return _.I(function(S){if(S.nextAddress==1)return S.yield(x.JSC$18383_prefStorage,2);L=S.yieldResult;return S.return((D=L)==null?void 0:D.get("sdois"))})},By5=function(x){var L,D,S,Q,J,Z;
return _.I(function(y){if(y.nextAddress==1)return y.yield(x.JSC$18383_persistentStorePromiseAccessor(),2);if(y.nextAddress!=3){L=y.yieldResult;if(!L)return _.qy(new _.RZ("PES is undefined")),y.return();D=_.Ha("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return y.yield(fSY(L,D,"settingEntity"),3)}S=y.yieldResult;return y.return((Z=(Q=S)==null?void 0:(J=Q.settingOptionValue)==null?void 0:J.boolValue)!=null?Z:!1)})},Wis=function(x,L){var D,S,Q,J;
return _.I(function(Z){switch(Z.nextAddress){case 1:return((D=L)==null?void 0:D.formatType)===void 0?Z.return():Z.yield(x.JSC$18383_prefStorage,2);case 2:S=Z.yieldResult;if(S===void 0)return Z.return();if(((Q=L)==null?void 0:Q.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return Z.yield(S.set("lmqf",L.formatType),8);if(((J=L)==null?void 0:J.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){Z.jumpTo(0);break}return Z.yield(S.set("lmqf",L.formatType),6);case 6:return Z.yield(S.set("lmqflst",
Math.floor((0,_.y5)())),0);case 8:return Z.yield(S.remove("lmqflst"),0)}})},q9Y=function(x){var L,D;
return _.I(function(S){switch(S.nextAddress){case 1:return S.yield(x.JSC$18383_prefStorage,2);case 2:L=S.yieldResult;if(!L){S.jumpTo(3);break}return S.yield(L.get("lmqflst"),4);case 4:if(D=S.yieldResult,D!==void 0)return S.return(D);case 3:return S.return(0)}})},A93=function(x){var L,D;
return _.I(function(S){switch(S.nextAddress){case 1:return S.yield(x.JSC$18383_prefStorage,2);case 2:L=S.yieldResult;if(L===void 0){S.jumpTo(3);break}return S.yield(L.get("lmqf"),4);case 4:if(D=S.yieldResult,D!==void 0)return S.return(D);case 3:return S.return("SD")}})},w2X=function(x,L,D){var S,Q,J,Z,y,E,P,v;
_.I(function(V){switch(V.nextAddress){case 1:return V.yield(Wis(x,(S=L)==null?void 0:S.actionParams),2);case 2:Q=L.playlistId;if(!Q)return V.return();if(L.action==="ACTION_ADD")return((Z=L.actionParams)==null?0:Z.formatType)?V.yield(eEq(x,Q,L.actionParams.formatType,(v=L.actionParams)==null?void 0:v.settingsAction,D),0):V.yield(x.offlineWebClientEligibility,14);if(L.action==="ACTION_REMOVE_WITH_PROMPT"){var h=x.JSC$18383_commandHandler,H=h.resolveCommand,k=_.$6("INNERTUBE_CLIENT_NAME");var T=k===
"WEB_REMIX"?_.p6("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.p6("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var G=k==="WEB_REMIX"?[_.p6("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];k=k==="WEB_REMIX"?_.p6("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.p6("DELETE",void 0,"Delete");var U=_.p6("CANCEL",void 0,"Cancel");T=fgs(T,G,k,U,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:Q});H.call(h,{openPopupAction:T});return V.return()}if(L.action===
"ACTION_REMOVE")return V.yield(Y3I(x,Q),0);if(L.action!=="ACTION_SYNC"){V.jumpTo(0);break}return V.yield(x.JSC$18383_playerApiPromise,9);case 9:return J=V.yieldResult,V.yield(J.queueOfflineAction(Q,x.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return y=V.yieldResult,V.yield(A93(x),15);case 15:return E=V.yieldResult,V.yield(q9Y(x),16);case 16:P=V.yieldResult,L.onAddCommand&&x.JSC$18383_commandHandler.resolveCommand(L.onAddCommand,{form:{preferredFormatType:E,
offlineWebClientEligibility:y,lastOfflineQualitySettingsSavedMs:P.toString()}}),V.jumpTo(0)}})},lnl=function(x,L,D){var S,Q,J,Z,y,E,P,v,V,h,H,k,T,G;
_.I(function(U){switch(U.nextAddress){case 1:return U.yield(Wis(x,(S=L)==null?void 0:S.actionParams),2);case 2:Q=L.videoId;if(!Q)return U.return();if(L.action==="ACTION_REMOVE_WITH_PROMPT"){var l=x.JSC$18383_commandHandler,X=l.resolveCommand,f=_.$6("INNERTUBE_CLIENT_NAME");var N=f==="WEB_REMIX"?_.p6("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.p6("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var z=f==="WEB_REMIX"?[_.p6("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",void 0,"This track won't be available to listen offline.")]:
[];f=f==="WEB_REMIX"?_.p6("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.p6("DELETE",void 0,"Delete");var xf=_.p6("CANCEL",void 0,"Cancel");N=fgs(N,z,f,xf,{signal:"DELETE_DOWNLOAD",targetId:Q});X.call(l,{openPopupAction:N});return U.return()}if(L.action==="ACTION_ADD")return((h=L.actionParams)==null?0:h.formatType)?U.yield(GEX(x,Q,L.actionParams.formatType,(G=L.actionParams)==null?void 0:G.settingsAction,D),0):U.yield(x.offlineWebClientEligibility,23);if(L.action==="ACTION_RETRY")return U.yield(A93(x),
19);if(L.action==="ACTION_PAUSE")return U.yield(x.pauseVideoDownload(Q),0);if(L.action==="ACTION_RESUME")return U.yield(x.resumeVideoDownload(Q),0);if(L.action!=="ACTION_REMOVE"){U.jumpTo(0);break}return U.yield(RE5(x,Q),13);case 13:return J=U.yieldResult,x.previousDownloadStateForVideo[Q]=(Z=J)!=null?Z:"DOWNLOAD_STATE_UNKNOWN",U.yield(lc$(x,Q,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(x.previousDownloadStateForVideo[Q]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&x.previousDownloadStateForVideo[Q]!==
"DOWNLOAD_STATE_PENDING_DOWNLOAD"){U.jumpTo(15);break}return U.yield(x.pauseVideoDownload(Q),15);case 15:l=_.p6("DELETED_VIDEO",void 0,"Video deleted from downloads.");X=_.p6("UNDO_ACTION",void 0,"Undo");N=_.p6("CLOSE",void 0,"Close");y={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.ya(l),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.ya(X),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:Q}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:l+" "+X}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:Q}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:N}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};x.JSC$18383_commandHandler.resolveCommand(y);
U.jumpTo(0);break;case 19:E=U.yieldResult;E==="UNKNOWN_FORMAT_TYPE"&&(E="SD");P="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((v=L.actionParams)==null?0:v.formatType)E=L.actionParams.formatType,P=(V=L.actionParams)==null?void 0:V.settingsAction;return U.yield(CVs(x,Q,E,P,D),20);case 20:return U.return();case 23:return H=U.yieldResult,U.yield(A93(x),24);case 24:return k=U.yieldResult,U.yield(q9Y(x),25);case 25:T=U.yieldResult,L.onAddCommand&&x.JSC$18383_commandHandler.resolveCommand(L.onAddCommand,
{form:{preferredFormatType:k,offlineWebClientEligibility:H,lastOfflineQualitySettingsSavedMs:T.toString()}}),U.jumpTo(0)}})},$a$=function(x,L){var D,S,Q,J,Z,y,E;
return _.I(function(P){if(P.nextAddress==1)return P.yield(x.JSC$18383_persistentStorePromiseAccessor(),2);D=P.yieldResult;if(!D)return _.qy(new _.RZ("PES is undefined")),P.return();if((S=L)==null||!S.settingItemId)return P.return();Q=L;J=Q.settingItemId;Z=Q.boolValue;y=_.Ha(J,"settingEntity");E={key:y,settingOptionValue:{boolValue:Z}};return P.yield(iGW(D,E),0)})},r93=function(x,L){var D,S,Q,J,Z,y,E;
return _.I(function(P){switch(P.nextAddress){case 1:return P.yield(x.JSC$18383_prefStorage,2);case 2:return D=P.yieldResult,S=_.FI(),P.yield(x.JSC$18383_persistentStorePromiseAccessor(),3);case 3:return Q=P.yieldResult,D?Q?P.yield(D.get("sdois"),4):(_.qy(new _.RZ("PES is undefined")),P.return()):(_.qy(new _.RZ("prefStorage is undefined")),P.return());case 4:J=P.yieldResult;y=(Z=L)==null?void 0:Z.boolValue;y===void 0||_.u("kevlar_set_sd_enabled_flag_killswitch")||_.s8(0,197,!0);J===void 0&&y===void 0&&
(y=!1);if(y===void 0){P.jumpTo(0);break}return P.yield(D.set("sdois",y),6);case 6:return _.u("kevlar_set_sd_enabled_flag_killswitch")||(_.s8(0,196,y),S.save()),E={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:y},P.yield($a$(x,E),0)}})},NyY=function(x,L,D){var S,Q,J,Z,y;
return _.I(function(E){switch(E.nextAddress){case 1:return E.yield(wNX(x),2);case 2:return S=E.yieldResult,E.yield(r93(x,D),3);case 3:return E.yield(wNX(x),4);case 4:return Q=E.yieldResult,J=Q!==S,E.yield(By5(x),5);case 5:Z=E.yieldResult&&!_.u("kevlar_modern_downloads_page");if((y=!Q&&!Z)||J)return E.yield(L.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);E.jumpTo(0)}})},eM$=function(){var x=_.yY().resolve(_.oV),
L;
_.I(function(D){switch(D.nextAddress){case 1:return D.yield(x.JSC$18383_playerApiPromise,2);case 2:L=D.yieldResult;if(!_.u("kevlar_force_refresh_smart_downloads")){D.jumpTo(3);break}return D.yield(L.refreshAllStaleEntities(0),4);case 4:return D.return();case 3:return D.yield(L.refreshAllStaleEntities(),5);case 5:return D.yield(NyY(x,L),6);case 6:if(_.u("enable_download_pep_for_premium_countries_web"))return D.yield(Ua9(x,L),0);D.jumpTo(0)}})},WBW=function(x,L){var D,S;
_.I(function(Q){switch(Q.nextAddress){case 1:return Q.yield(x.JSC$18383_playerApiPromise,2);case 2:D=Q.yieldResult;switch((S=L)==null?void 0:S.settingItemId){case "SMART_DOWNLOADS_ENABLED":return Q.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return Q.jumpTo(4)}Q.jumpTo(0);break;case 3:return Q.yield(NyY(x,D,L),6);case 6:Q.jumpTo(0);break;case 4:return Q.yield($a$(x,L),7);case 7:Q.jumpTo(0)}})},iiq=function(x,L){var D,S,Q;
return _.I(function(J){if(J.nextAddress==1)return J.yield(x.JSC$18383_persistentStorePromiseAccessor(),2);if(J.nextAddress!=3){D=J.yieldResult;if(!D)return _.qy(new _.RZ("PES is undefined")),J.return(!1);if(!L)return J.return(!1);S=_.Ha(L,"mainVideoEntity");return J.yield(fSY(D,S,"mainVideoEntity"),3)}Q=J.yieldResult;return J.return(Q!==void 0)})},Ai$=function(x){var L=_.yY().resolve(_.oV),D,S,Q,J,Z,y,E,P,v,V,h;
_.I(function(H){switch(H.nextAddress){case 1:return H.yield(L.JSC$18383_playerApiPromise,2);case 2:D=H.yieldResult;Q=(S=x)==null?void 0:S.actions;if(!Q)return H.return();J=_.O(Q);Z=J.next();case 3:if(Z.done){H.jumpTo(0);break}y=Z.value;P=E=void 0;if(!(((E=y)==null?0:E.entityKey)&&((P=y)==null?0:P.actionType))){H.jumpTo(4);break}v=_.va(y.entityKey);V=v.entityId;h=v.entityType;return H.yield(D.queueOfflineAction(V,h,y.actionType),4);case 4:Z=J.next(),H.jumpTo(3)}})},fcl=function(x,L){var D,S,Q,J,Z;
return _.I(function(y){if(y.nextAddress==1)return y.yield(x.JSC$18383_prefStorage,2);if(y.nextAddress!=3)return(D=y.yieldResult)?y.yield(D.get("psi"),3):y.return();S=y.yieldResult;Z={isPaused:L,lastSyncTimestamp:(J=(Q=S)==null?void 0:Q.lastSyncTimestamp)!=null?J:"0"};return y.yield(D.set("psi",Z),0)})},NqI=function(x){var L=_.yY().resolve(_.oV),D,S,Q,J,Z,y,E,P;
return _.I(function(v){switch(v.nextAddress){case 1:return v.yield(L.JSC$18383_playerApiPromise,2);case 2:D=v.yieldResult;Q=((S=x)==null?void 0:S.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((y=x)==null?void 0:y.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":J="!*$_ALL_ENTITIES_!*$";Z="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return v.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return v.jumpTo(4)}v.jumpTo(5);break;case 3:return v.yield(fcl(L,Q),6);case 6:v.jumpTo(5);break;case 4:return v.yield(iiq(L,(E=x)==null?void 0:E.videoId),7);case 7:v.yieldResult&&(J=(P=x)==null?void 0:P.videoId,Z="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");v.jumpTo(5);break;case 5:if(J&&Z)return v.yield(D.queueOfflineAction(J,"videoPlaybackPositionEntity",Z),0);v.jumpTo(0)}})},oIq=function(x,L){var D;
L!==1||((D=x.currentPersistentToast)==null?0:D.isOpened())?x.openToast():x.currentPersistentToast=void 0},acI=function(x,L){var D;
return(D=x.transitionTasksMap.get(L))!=null?D:[]},zEg=function(x,L){var D=[];
x.elementTasksMap.forEach(function(S){(S=S.get(L))&&D.push(S)});
return D},XN5=function(x,L,D,S,Q){Q=Q===void 0?{}:Q;
var J=L.defaultViewTransitionOptions;return Object.assign({},J,Q,{beforeTransition:function(){S.forEach(function(P){P.beforeTransition()});
var Z;(Z=J.beforeTransition)==null||Z.call(J);var y,E;(E=(y=Q).beforeTransition)==null||E.call(y);D.forEach(function(P){P.beforeTransition()})},
afterTransition:function(){S.forEach(function(P){P.afterTransition()});
var Z;(Z=J.afterTransition)==null||Z.call(J);var y,E;(E=(y=Q).afterTransition)==null||E.call(y);D.forEach(function(P){P.afterTransition()})},
ignoredErrors:x.config.ignoredErrors})},c9l=function(x,L,D){x.transitionTasksMap.has(L)?x.transitionTasksMap.get(L).push(D):(x=new _.RZ("Transition task registered for unknown transition type",L),_.BI(x))},nIG=function(x,L,D){if(x.transitionTasksMap.has(L)){var S=x.transitionTasksMap.get(L).filter(function(Q){return Q!==D});
x.transitionTasksMap.set(L,S)}},t_9=function(x,L){var D=acI(x,L);
D=_.O(D);for(var S=D.next();!S.done;S=D.next())S=S.value,S.runOnce&&nIG(x,L,S);x.elementTasksMap.forEach(function(Q,J){Q.forEach(function(Z,y){Z.runOnce&&L===y&&(Q.delete(y),Q.size===0&&x.elementTasksMap.delete(J))})})},xCq=function(x,L,D){var S,Q,J,Z,y,E,P,v,V;
_.I(function(h){if(h.nextAddress==1){if(x.config.disableAllTransitions)return h.return(L());if((S=D)==null||!S.transitionType)return h.return(_.s1$(L,Object.assign({},(Q=D)==null?void 0:Q.viewTransitionOptions,{ignoredErrors:x.config.ignoredErrors})));J=D;Z=J.transitionType;y=J.viewTransitionOptions;E=x.config.transitionConfigs.get(Z);if(!E)return h.return(L());P=acI(x,Z);v=zEg(x,Z);V=_.s1$(L,XN5(x,E,P,v,y));return h.yield(V,2)}t_9(x,Z);_.Y2(h)})},L8X=function(){var x,L,D,S;
return _.I(function(Q){if(Q.nextAddress==1)return x=navigator,(L=x.storage)!=null&&L.persisted?Q.yield((D=x.storage)==null?void 0:D.persisted(),2):Q.return("PERSISTED_STATE_NOT_SUPPORTED");S=Q.yieldResult;return Q.return(S?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},DC9=function(){var x,L,D,S;
return _.I(function(Q){if(Q.nextAddress==1)return x=navigator,(L=x.storage)!=null&&L.persist?Q.yield((D=x.storage)==null?void 0:D.persist(),2):Q.return("PERSISTED_STATE_NOT_SUPPORTED");S=Q.yieldResult;return Q.return(S?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},Scl=function(){var x,L;
return _.I(function(D){switch(D.nextAddress){case 1:return x="PERSISTED_STATE_NOT_SUPPORTED",_.HH(D,2),D.yield(L8X(),4);case 4:x=D.yieldResult;if(x!=="PERSISTED_STATE_NOT_GRANTED"){D.jumpTo(5);break}return D.yield(DC9(),6);case 6:x=D.yieldResult;case 5:_.nH(D,3);break;case 2:L=_.mW(D),L instanceof Error&&_.BI(L);case 3:return _.Uh("persistentStorageStateChecked",{persistedState:x}),D.return(x)}})},Qaq=function(x,L){var D=[],S=!1;
L=_.O(L);for(var Q=L.next();!Q.done;Q=L.next()){Q=x.moduleRegistry[Q.value];var J=void 0,Z=void 0;((J=Q)==null?0:J.isFetching)&&((Z=Q)==null?0:Z.resolver)?(D.push(Q.resolver.promise),S=!0):(Q=new _.Hq,Q.resolve(void 0),D.push(Q.promise))}return S?Promise.all(D):void 0},JoY=function(x,L,D){if(x.isAnyTransitionEnabled){var S={beforeTransition:function(){D(!0);
L.style.viewTransitionName="masthead-page-transition"},
afterTransition:function(){L.style.viewTransitionName&&(L.style.viewTransitionName="",D(!1))}};
c9l(x.viewTransitionCoordinator,"slide",S);c9l(x.viewTransitionCoordinator,"lockup-to-watch",S);c9l(x.viewTransitionCoordinator,"watch-next-appears",S);c9l(x.viewTransitionCoordinator,"learning-journey",S)}},K8u=function(x,L){x.isBrowseTransitionEnabled?xCq(x.viewTransitionCoordinator,L,{transitionType:"slide"}):(L(),Promise.resolve())},Otq=function(x,L){x.isLockupToWatchTransitionEnabled?xCq(x.viewTransitionCoordinator,L,{transitionType:"lockup-to-watch",
viewTransitionOptions:{afterTransition:function(){x.registeredLockupThumbnail=void 0;x.lockupThumbnailRegisteredFromWatchEndpoint=!1}}}):(L(),Promise.resolve())},Zts=function(x,L){x.isLockupToWatchTransitionEnabled?xCq(x.viewTransitionCoordinator,L,{transitionType:"watch-next-appears"}):(L(),Promise.resolve())},yol=function(x,L){x.isLearningJourneyTransitionEnabled?xCq(x.viewTransitionCoordinator,L,{transitionType:"learning-journey"}):(L(),Promise.resolve())},IVu=function(x,L,D){if(x.isInitialized()){var S=
OC(D),Q=S==="watch";
S=S==="shorts";var J=OC(L)==="watch";if(Q)J||(x.backgroundPageData=L),x.watchPipMode&&J||x.deactivate(D.endpoint);else if(S){if(OC(L)!=="shorts"){var Z;(Z=x.getPlayerElement())==null||Z.pause()}}else J&&!x.watchPipMode&&(agX(L,D)?(x.watchWhileMode&&_.qsG(x,!1),_.Cmq(x,L)):x.isMiniplayerActive()&&x.watchWhileMode&&x.deactivate());J&&_.$NW(x);x.shortsPipMode&&!S&&(window.focus(),x.deactivate());if(x.pictureInPictureEnabled())if(S&&x.shortsPipEnabled||Q&&x.watchPipEnabled)_.aXn(x.handleMediaSessionPipActivation);
else if(!x.isMiniplayerActive()&&(x.shortsPipEnabled||x.watchPipEnabled)&&window.documentPictureInPicture&&_.TN()&&_.kNb("Chromium")>=120){x=_.oGw().mediaSession;try{x.setActionHandler("enterpictureinpicture",null)}catch(y){}}}},El5=function(x,L){var D,S;
_.I(function(Q){if(Q.nextAddress==1){if(!x||!x.navigationEndpoint)return Q.return();_.ie().lockupActivation=!0;var J;L?J=_.Dv(_.p6("QUEUE",void 0,"Queue")):J=x.longBylineText;S=(D=J)&&x.title?{miniplayerTitle:x.title,miniplayerSubtitle:D,playlistData:null}:void 0;return Q.yield(_.rUG(_.yY().resolve(_.iy),x.navigationEndpoint,!0,S),2)}_.ie().userActivation=!0;_.Y2(Q)})},LFq=function(x,L){var D,S,Q,J,Z,y;
_.I(function(E){if(E.nextAddress==1){D=_.g(L,_.Uoh);if(!D||!D.listId)return E.return();x.index=D.index||x.index||0;S=x.response&&x.response.playingVideoId||void 0;return E.yield(_.ceB(x.JSC$12929_playlistNetworkManager,D.listId,x.index,S),2)}Q=E.yieldResult;if(!Q)return E.return();J=Q.playlistId;Z=Q.playlistPanelRenderer;!x.queueProxy&&J&&Z&&J.startsWith("TLPQ")&&(x.queueProxy=new _.IO(x.JSC$12929_playlistNetworkManager,J,x.setPlaylistData.bind(x),x.clearQueue.bind(x),_.$Kf(Z),x.storage));if(D.openMiniplayer&&
(y=_.rTb(Z))&&!x.pageManager.isOnWatch()){var P=y,v=D.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";x.isMiniplayerActive()?x.openToast(P):El5(P,v)}x.setPlaylistData(J,Z,Q.autoplayRenderer);_.Y2(E)})},nOl=function(x,L){var D=_.hY();
D.index===void 0&&(D.index=0);D.temporaryItems.push.apply(D.temporaryItems,_.lP(x));if((L.videoId||L.videoIds)&&D.index!==void 0&&L.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!D.queueProxy){var S=[];if(D.response){var Q=_.yY().resolve(_.iy).isMiniplayerActive();if(D.response.playlistPanelRenderer&&D.response.playlistId&&!D.response.playlistId.startsWith("TLPQ")){if(D.pageManager.isOnWatch()||Q)S=_.$Kf(D.response.playlistPanelRenderer)}else D.response.playingVideoId&&!L.openMiniplayer?S.push(D.response.playingVideoId):
Q&&D.response.playingVideoId&&L.openMiniplayer&&S.push(D.response.playingVideoId)}D.queueProxy=new _.IO(D.JSC$12929_playlistNetworkManager,"",D.setPlaylistData.bind(D),D.clearQueue.bind(D),S,D.storage);D.queueProxy.JSC$12875_setCurrentIndex(D.index)}D.queueProxy.addVideos(L.videoIds||[L.videoId],L)}zr9(D,x);D.response&&_.Hy(D,_.uo(D,D.response.autoplayRenderer));D.pageManager.isOnWatch()?D.isMiniplayerActive()&&D.openToast(x[0]):(x=x[0],L=L.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE",D.isMiniplayerActive()?
D.openToast(x):El5(x,L))},M9g=function(x){var L=_.X2(x);
if(L=="object"||L=="array"){if(typeof x.clone==="function")return x.clone();if(typeof Map!=="undefined"&&x instanceof Map)return new Map(x);if(typeof Set!=="undefined"&&x instanceof Set)return new Set(x);L=L=="array"?[]:{};for(var D in x)L[D]=M9g(x[D]);return L}return x},se=function(x,L){return _.H20(_.mi(x,L,void 0,_.pi))},Tc=function(x,L){return _.QW(_.mi(x,L,void 0,_.pi))},eL=function(x,L){return _.BA0(_.mi(x,L,void 0,_.pi))},RA=function(x,L){return _.mi(x,L,void 0,_.pi,_.f2)},dCI=_.IN(function(x,
L,D){if(x.nextWireType_!==0)return!1;
_.E5(L,D,_.iV(x.decoder_,_.VWs));return!0},_.jN,_.XK),PWY=_.IN(function(x,L,D,S){if(x.nextWireType_!==0)return!1;
_.s9(L,D,S,_.iV(x.decoder_,_.VWs));return!0},_.jN,_.XK),jaY=_.IN(function(x,L,D){if(x.nextWireType_!==1)return!1;
var S=x.decoder_;x=_.oM(S);S=_.oM(S);x=_.WC(x,S);_.E5(L,D,x);return!0},_.Ueb,_.uBG),vl$=_.IN(function(x,L,D){if(x.nextWireType_!==5)return!1;
_.E5(L,D,_.oM(x.decoder_));return!0},function(x,L,D){L=_.kBh(L);
L!=null&&(_.Me(x,D,5),_.d8(x.encoder_,L))},_.V5h),V95=_.IN(function(x,L,D){if(x.nextWireType_!==2)return!1;
x=_.SSh(x);_.E5(L,D,x===_.m_()?void 0:x);return!0},_.Aw0,_.pA3),hsu=_.sN4(function(x,L,D){if(x.nextWireType_!==0&&x.nextWireType_!==2)return!1;
L=_.LU(L,L[_.Jr]|0,D);x.nextWireType_==2?_.QCf(x,FIY,L):L.push(_.fi(x.decoder_));return!0},function(x,L,D){L=_.FRf(_.QW,L,!0);
if(L!=null&&L.length){D=_.EJO(x,D);for(var S=0;S<L.length;S++)_.GiO(x.encoder_,L[S]);_.M5f(x,D)}},_.mzN),HtG=_.IN(function(x,L,D,S){if(x.nextWireType_!==0)return!1;
_.s9(L,D,S,_.fi(x.decoder_));return!0},_.rwn,_.mzN),uql=function(x){return x.previousElementSibling!==void 0?x.previousElementSibling:_.Uqr(x.previousSibling,!1)},gl9=function(x,L){var D=[];
for(L=L||0;L<x.length;L+=2)_.meW(x[L],x[L+1],D);return D.join("&")},kCq=function(x,L){var D=arguments.length==2?gl9(arguments[1],0):gl9(arguments,1);
return _.piC(x,D)},g95=_.uQ(_.W2),pMq=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(pMq,_.O5);pMq.prototype.getTypeName=function(){return _.wy(this,1).split("/").pop()};
pMq.prototype.getValue=function(){var x=_.mi(this,2);if(Array.isArray(x)||x instanceof _.O5)throw Error("W");return _.FK(this,2)};
var IH5=function(){var x=_.jR();this.JSC$9921_streamzService=x;x.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.M4("channel_type"))};
IH5.prototype.increment=function(x){this.JSC$9921_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",x)};
var Eis=function(){var x=_.jR();this.JSC$9924_streamzService=x;x.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.M4("channel_type"))};
Eis.prototype.increment=function(x){this.JSC$9924_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",x)};
var dL5=function(){var x=_.jR();this.JSC$9927_streamzService=x;x.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.M4("channel_type"))};
dL5.prototype.increment=function(x){this.JSC$9927_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",x)};
var MOq=function(){var x=_.jR();this.JSC$9930_streamzService=x;x.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
MOq.prototype.increment=function(){this.JSC$9930_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var PiY=function(){var x=_.jR();this.JSC$9933_streamzService=x;x.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.M4("channel_type"),_.M4("error_type"))};
PiY.prototype.increment=function(x,L){this.JSC$9933_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",x,L)};
var j6q=function(){var x=_.jR();this.JSC$9936_streamzService=x;x.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
j6q.prototype.increment=function(){this.JSC$9936_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var vi$=function(){var x=_.jR();this.JSC$9939_streamzService=x;x.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
vi$.prototype.increment=function(){this.JSC$9939_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var yKI=function(){var x=_.jR();this.JSC$9945_streamzService=x;x.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
yKI.prototype.increment=function(){this.JSC$9945_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var mCq=function(x){return x.getCount&&typeof x.getCount=="function"?x.getCount():_.Nf(x)||typeof x==="string"?x.length:_.wk.getCount(x)},bt3=function(x,L){if(typeof x.every=="function")return x.every(L,void 0);
if(_.Nf(x)||typeof x==="string")return Array.prototype.every.call(x,L,void 0);for(var D=_.m9G(x),S=_.df(x),Q=S.length,J=0;J<Q;J++)if(!L.call(void 0,S[J],D&&D[J],x))return!1;return!0},YcY=function(x,L,D,S){var Q=new _.Dg(null);
x&&_.PZ(Q,x);L&&_.ju(Q,L);D&&_.vZ(Q,D);S&&_.VH(Q,S);return Q},F8G=function(){var x=_.ij&&_.v4(_.WNW,10)>=0,L;
if(L=_.I30)L=_.v4(_.Bth,10)>=0;var D=_.uV&&_.v4(_.WNW,85)>=0;return _.vN||x||L||D},sa5=function(x){var L=_.QNi(x);
return L&&F8G()?-x.scrollLeft:L&&_.ix(x,"overflowX")!="visible"?x.scrollWidth-x.clientWidth-x.scrollLeft:x.scrollLeft},TT$=function(x,L){L=Math.max(L,0);
_.QNi(x)?F8G()?x.scrollLeft=-L:x.scrollLeft=x.scrollWidth-L-x.clientWidth:x.scrollLeft=L},y2g=0,P63=!1;
yE.prototype.set=function(x){this.relativeTimeStart_=x};
yE.prototype.reset=function(){this.set(_.IM())};
yE.prototype.get=function(){return this.relativeTimeStart_};
var esW=null,Rsq=function(){esW||(esW=new yE)},GCX=function(){esW||(esW=new yE)};
_.E9(GCX,Rsq);_.K=vNl.prototype;_.K.JSC$11360_buffer_="";_.K.set=function(x){this.JSC$11360_buffer_=""+x};
_.K.append=function(x,L,D){this.JSC$11360_buffer_+=String(x);if(L!=null)for(var S=1;S<arguments.length;S++)this.JSC$11360_buffer_+=arguments[S];return this};
_.K.clear=function(){this.JSC$11360_buffer_=""};
_.K.getLength=function(){return this.JSC$11360_buffer_.length};
_.K.toString=function(){return this.JSC$11360_buffer_};
var CW5=!1,pal=function(x){_.Dp.call(this,x.message||x.description||x.name);this.isMissing=x instanceof I7;this.isTimeout=x instanceof _.fA&&x.errorCode=="net.timeout";this.isCanceled=x instanceof _.iS};
_.p(pal,_.Dp);pal.prototype.name="BiscottiError";var I7=function(){_.Dp.call(this,"Biscotti ID is missing from server")};
_.p(I7,_.Dp);I7.prototype.name="BiscottiMissingError";var EC=null,iug=function(){try{var x=_.o1("yt.ads.biscotti.getId_");return x?x():DU5()}catch(L){return _.Bp(L)}},lVu=function(x,L){return _.MU({type:"SET_COMMAND_FOR_GROUP_ID",
payload:{groupId:x,command:L}})},UCl=function(x){return _.MU({type:"SET_GUIDE_IS_EXPANDED",
payload:x})},wM3=function(x){return _.MU({type:"SET_ONLINE_STATUS",
payload:x})},BTl=function(x,L){return _.MU({type:"SET_TRANSCRIPTION_STATE",
payload:{high:x,low:L}})},W8$=function(x){return _.MU({type:"SET_OVERLAY_STATE",
payload:x})},qcG=0,Aol=function(x,L,D){var S=this;
this.priority=L;this.delay=D;this.jobId=0;this.completionCallback=_.GC;this.wrappedJob=function(){x();S.completionCallback()};
this.id=++qcG};
Aol.prototype.enqueue=function(x){this.completionCallback=x;this.jobId=_.WW.addJob(this.wrappedJob,this.priority,this.delay)};
var Gc=function(){_.Hx.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.p(Gc,_.Hx);Gc.prototype.addJob=function(x,L,D){x=new Aol(x,L,D);this.taskIdToTask.set(x.id,x);this.isActive?$C5(this,x):this.suspendedTasks.add(x);return x.id};
var $C5=function(x,L){x.scheduledTasks.add(L);L.enqueue(function(){x.scheduledTasks.delete(L)})};
Gc.prototype.cancelJob=function(x){(x=this.taskIdToTask.get(x))&&(this.scheduledTasks.delete(x)?_.WW.cancelJob(x.jobId):this.suspendedTasks.delete(x))};
Gc.prototype.pause=function(){var x=this;this.isActive=!1;this.scheduledTasks.forEach(function(L){_.WW.cancelJob(L.jobId);x.suspendedTasks.add(L)});
this.scheduledTasks.clear()};
Gc.prototype.start=function(){var x=this;this.isActive=!0;this.suspendedTasks.forEach(function(L){$C5(x,L)});
this.suspendedTasks.clear()};
Gc.prototype.reset=function(){this.scheduledTasks.forEach(function(x){_.WW.cancelJob(x.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var Cb=function(x,L){this.JSC$13055_networkService_=x;this.pageRequestPromise=L};
Cb.prototype.fetchData=function(x){ro$(this,this.JSC$13055_networkService_.fetchData(x))};
Cb.prototype.postData=function(x,L){ro$(this,this.JSC$13055_networkService_.postData(x,L))};
Cb.prototype.requestDataForServiceEndpoint=function(x,L){ro$(this,this.JSC$13055_networkService_.requestDataForServiceEndpoint(x,L))};
var ro$=function(x,L){L.then(x.pageRequestPromise.onSuccess,x.pageRequestPromise.onFailure,x.pageRequestPromise)};
Cb.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var lF=function(x){this.buildNetworkRequest_=x;this.pendingRequests_=new Set};
lF.prototype.reset=function(){this.pendingRequests_.forEach(function(x){x.cancel()});
this.pendingRequests_.clear()};
lF.prototype.fetchData=function(x){var L=NTl(this);L.fetchData(x);return L.pageRequestPromise};
lF.prototype.postData=function(x,L){var D=NTl(this);D.postData(x,L);return D.pageRequestPromise};
lF.prototype.requestDataForServiceEndpoint=function(x,L){var D=NTl(this);D.requestDataForServiceEndpoint(x,L);return D.pageRequestPromise};
var NTl=function(x){var L=x.buildNetworkRequest_();x.pendingRequests_.add(L);var D=function(){x.pendingRequests_.delete(L)};
L.pageRequestPromise.then(D,D);return L},itq=function(x){var L=new Gc;
this.JSC$13062_networkService_=x;this.JSC$13062_taskManager_=L;this.JSC$13062_networkManager_=new lF(this.networkRequestFactory_.bind(this))};
_.K=itq.prototype;_.K.networkRequestFactory_=function(){return new Cb(this.JSC$13062_networkService_,new _.Uj(this.JSC$13062_taskManager_))};
_.K.reset=function(){this.JSC$13062_taskManager_.reset();this.JSC$13062_networkManager_.reset()};
_.K.start=function(){this.JSC$13062_taskManager_.start()};
_.K.pause=function(){this.JSC$13062_taskManager_.pause()};
_.K.getTaskManager=function(){return this.JSC$13062_taskManager_};
_.K.getNetworkManager=function(){return this.JSC$13062_networkManager_};
var loW=null,BDW=[],MQ=0,Pj=0,du=null,fVl=!1,jx=null,q4$=void 0,VE=function(x){this.token=x};
VE.getInstance=function(){var x;return _.I(function(L){if(L.nextAddress==1)return L.yield(_.OD(),2);x=L.yieldResult;if(!x)return L.return();VE.instance||(VE.instance=new VE(x));return L.return(VE.instance)})};
var aoG=function(x){var L;return _.I(function(D){if(D.nextAddress==1)return D.yield(i7I(x.token),2);L=D.yieldResult;return D.return(L.clear("resource-manifest-assets"))})},vj=function(x){this.token=x};
vj.getInstance=function(){var x;return _.I(function(L){if(L.nextAddress==1)return L.yield(_.OD(),2);x=L.yieldResult;if(!x)return L.return();vj.instance||(vj.instance=new vj(x));return L.return(vj.instance)})};
var fo5=function(x){var L;return _.I(function(D){if(D.nextAddress==1)return D.yield(i7I(x.token),2);L=D.yieldResult;return D.yield(L.clear("auth"),0)})},P1q=!1,olu=function(x){_.Dp.call(this,x)};
_.p(olu,_.$8G);var DjX=function(){var x=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return x?parseInt(x[1],10):0},aVl=function(x){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+x)!=-1||document.currentScript.src.indexOf("&"+x)!=-1)},zsY=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},Ou$=function(x){x.length?XM5(x.shift(),function(){Ou$(x)}):Qlu()},yDl=function(x){return"chrome-extension://"+x+"/cast_sender.js"},XM5=function(x,
L,D){var S=document.createElement("script");
S.onerror=L;D&&(S.onload=D);_.QD(S,_.Cw(x));(document.head||document.documentElement).appendChild(S)},cos=function(){var x=DjX(),L=[];
if(x>1){var D=x-1;L.push("//www.gstatic.com/eureka/clank/"+x+"/cast_sender.js");L.push("//www.gstatic.com/eureka/clank/"+D+"/cast_sender.js")}return L},Qlu=function(){var x=zsY();
x&&x(!1,"No cast extension found")},KUI=function(){if(nlY){var x=2,L=zsY(),D=function(){x--;
x==0&&L&&L(!0)};
window.__onGCastApiAvailable=D;XM5("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",Qlu,D)}},SIs=function(){KUI();
var x=cos();x.push("//www.gstatic.com/eureka/clank/cast_sender.js");Ou$(x)},JDG=function(){KUI();
var x=cos();x.push.apply(x,_.lP(Zul.map(yDl)));x.push("//www.gstatic.com/eureka/clank/cast_sender.js");Ou$(x)},nlY=aVl("loadCastFramework")||aVl("loadCastApplicationFramework"),Zul=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var t99=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(t99,_.O5);var x_I=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(x_I,_.O5);var LeG=function(){var x=new x_I;return _.ry(x,1,3)};var Ue=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(Ue,_.O5);var D$$=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(D$$,_.O5);var D_u=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(D_u,_.O5);D_u.prototype.getToken=function(){return _.wy(this,1)};
D_u.prototype.setToken=function(x){return _.Xm(this,1,x)};
var x$s=function(x){return _.zg(x,3,_.uq,_.Zb())},LX$=function(x){return _.zg(x,6,_.uq,_.Zb())};var wn=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(wn,_.O5);wn.prototype.getToken=function(){return _.Mg(this,D_u,2)};
wn.prototype.setToken=function(x){return _.mR(this,2,x)};
wn.prototype.getName=function(){return _.wy(this,6)};
var S1l=_.uQ(wn);var Qwq=function(x,L,D){this.requestMessage=x;this.methodDescriptor=L;this.metadata=D};
Qwq.prototype.getMetadata=function(){return this.metadata};var JRY=function(x,L){L=L===void 0?{}:L;this.responseMessage=x;this.metadata=L;this.status=null};
JRY.prototype.getMetadata=function(){return this.metadata};
JRY.prototype.getStatus=function(){return this.status};var Bm=function(x,L,D,S,Q){this.name=x;this.methodType="unary";this.requestType=L;this.responseType=D;this.requestSerializeFn=S;this.responseDeserializeFn=Q},KeI=function(x,L,D){D=D===void 0?{}:D;
return new Qwq(L,x,D)};
Bm.prototype.getName=function(){return this.name};var Wm=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(Wm,_.O5);Wm.prototype.getHeader=function(){return _.Mg(this,Ue,1)};
Wm.prototype.setHeader=function(x){return _.mR(this,1,x)};
Wm.prototype.hasHeader=function(){return _.bV(this,Ue,1)};var OWl=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(OWl,_.O5);var ZW3=new Bm("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",Wm,OWl,function(x){return x.serialize()},_.uQ(OWl));var qE=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(qE,_.O5);qE.prototype.getHeader=function(){return _.Mg(this,Ue,1)};
qE.prototype.setHeader=function(x){return _.mR(this,1,x)};
qE.prototype.hasHeader=function(){return _.bV(this,Ue,1)};var yRY=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(yRY,_.O5);var I9X=new Bm("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",qE,yRY,function(x){return x.serialize()},_.uQ(yRY));var AV=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(AV,_.O5);AV.prototype.getHeader=function(){return _.Mg(this,Ue,1)};
AV.prototype.setHeader=function(x){return _.mR(this,1,x)};
AV.prototype.hasHeader=function(){return _.bV(this,Ue,1)};var Ex5=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(Ex5,_.O5);Ex5.prototype.getLink=function(){return _.Mg(this,wn,1)};var MSl=new Bm("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",AV,Ex5,function(x){return x.serialize()},_.uQ(Ex5));var $S=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p($S,_.O5);$S.prototype.getHeader=function(){return _.Mg(this,Ue,1)};
$S.prototype.setHeader=function(x){return _.mR(this,1,x)};
$S.prototype.hasHeader=function(){return _.bV(this,Ue,1)};var d_l=new Bm("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",$S,wn,function(x){return x.serialize()},S1l);var POl=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(POl,_.O5);var jwW=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(jwW,_.O5);jwW.prototype.getUrl=function(){return _.wy(this,2)};
jwW.prototype.setUrl=function(x){return _.Xm(this,2,x)};var vxq=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(vxq,_.O5);var VS9=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(VS9,_.O5);var hSY=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(hSY,_.O5);var d$3=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(d$3,_.O5);var Mrq=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(Mrq,_.O5);var HWl=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(HWl,_.O5);var u1$=_.uQ(HWl);var uC3=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(uC3,_.O5);var gxl=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(gxl,_.O5);_.K=gxl.prototype;_.K.getHeader=function(){return _.Mg(this,Ue,1)};
_.K.setHeader=function(x){return _.mR(this,1,x)};
_.K.hasHeader=function(){return _.bV(this,Ue,1)};
_.K.getCompletionUrl=function(){return _.wy(this,6)};
_.K.getDeviceId=function(){return _.wy(this,11)};var kmW=new Bm("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",gxl,HWl,function(x){return x.serialize()},u1$);var pc$=new Set(["SAPISIDHASH","APISIDHASH"]);var m_5=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(m_5,_.O5);m_5.prototype.getMessage=function(){return _.wy(this,2)};
var bWs=_.uQ(m_5);var Feq=function(x,L){this.onDataCallbacks=[];this.onMetadataCallbacks=[];this.onStatusCallbacks=[];this.onEndCallbacks=[];this.onErrorCallbacks=[];this.xhrNodeReadableStream=x.nodeReadableStream;this.grpcResponseDeserializeFn=L;this.xhr=x.xhr;this.xhrNodeReadableStream&&Y1G(this)},COW=function(x,L){var D=new swq;
_.Uk(x.xhr,"complete",function(){if(x.xhr.isSuccess()){var S=x.xhr.getResponseText();var Q;if(Q=L)Q=x.xhr,Q.JSC$9800_xhr_&&Q.isComplete()?(Q=Q.JSC$9800_xhr_.getResponseHeader("Content-Type"),Q=Q===null?void 0:Q):Q=void 0,Q=Q==="text/plain";if(Q){if(!atob)throw Error("ck");S=atob(S)}try{var J=x.grpcResponseDeserializeFn(S)}catch(y){rn(x,AdG(new _.N_(13,"Error when deserializing response data; error: "+y+(", response: "+S)),D));return}S=_.ZHN(x.xhr.getStatus());TG9(x,eSW(x));S===0?RSI(x,J):rn(x,AdG(new _.N_(S,
"Xhr succeeded but the status code is not 200"),D))}else{S=x.xhr.getResponseText();J=eSW(x);if(S){var Z=GmW(x,S);S=Z.code;Q=Z.details;Z=Z.metadata}else S=2,Q="Rpc failed due to xhr error. uri: "+String(x.xhr.JSC$9800_lastUri_)+", error code: "+(x.xhr.JSC$9800_lastErrorCode_+", error: ")+x.xhr.getLastError(),Z=J;TG9(x,J);rn(x,AdG(new _.N_(S,Q,Z),D))}})},Y1G=function(x){x.xhrNodeReadableStream.on("data",function(L){if("1"in L){var D=L["1"];
try{var S=x.grpcResponseDeserializeFn(D)}catch(Q){rn(x,new _.N_(13,"Error when deserializing response data; error: "+Q+(", response: "+D)))}S&&RSI(x,S)}if("2"in L)for(L=GmW(x,L["2"]),D=0;D<x.onStatusCallbacks.length;D++)x.onStatusCallbacks[D](L)});
x.xhrNodeReadableStream.on("end",function(){TG9(x,eSW(x));for(var L=0;L<x.onEndCallbacks.length;L++)x.onEndCallbacks[L]()});
x.xhrNodeReadableStream.on("error",function(){if(x.onErrorCallbacks.length!==0){var L=x.xhr.JSC$9800_lastErrorCode_;L!==0||x.xhr.isSuccess()||(L=6);var D=-1;switch(L){case 0:var S=2;break;case 7:S=10;break;case 8:S=4;break;case 6:D=x.xhr.getStatus();S=_.ZHN(D);break;default:S=14}TG9(x,eSW(x));L=_.D4r(L)+", error: "+x.xhr.getLastError();D!==-1&&(L+=", http status code: "+D);rn(x,new _.N_(S,L))}})},eSW=function(x){var L={},D=erY(x.xhr);
Object.keys(D).forEach(function(S){L[S]=D[S]});
return L},GmW=function(x,L){var D=2,S={};
try{var Q=bWs(L);D=_.y1(Q,1);var J=Q.getMessage();_.O7(Q,pMq,3,_.Zb()).length&&(S["grpc-web-status-details-bin"]=L)}catch(Z){x.xhr&&x.xhr.getStatus()===404?(D=5,J="Not Found: "+String(x.xhr.JSC$9800_lastUri_)):(D=14,J="Unable to parse RpcStatus: "+Z)}return{code:D,details:J,metadata:S}};
Feq.prototype.on=function(x,L){x==="data"?this.onDataCallbacks.push(L):x==="metadata"?this.onMetadataCallbacks.push(L):x==="status"?this.onStatusCallbacks.push(L):x==="end"?this.onEndCallbacks.push(L):x==="error"&&this.onErrorCallbacks.push(L);return this};
var NE=function(x,L){L=x.indexOf(L);L>-1&&x.splice(L,1)};
Feq.prototype.removeListener=function(x,L){x==="data"?NE(this.onDataCallbacks,L):x==="metadata"?NE(this.onMetadataCallbacks,L):x==="status"?NE(this.onStatusCallbacks,L):x==="end"?NE(this.onEndCallbacks,L):x==="error"&&NE(this.onErrorCallbacks,L);return this};
Feq.prototype.cancel=function(){this.xhr.abort()};
var RSI=function(x,L){for(var D=0;D<x.onDataCallbacks.length;D++)x.onDataCallbacks[D](L)},TG9=function(x,L){for(var D=0;D<x.onMetadataCallbacks.length;D++)x.onMetadataCallbacks[D](L)},rn=function(x,L){for(var D=0;D<x.onErrorCallbacks.length;D++)x.onErrorCallbacks[D](L)},swq=function(){var x=Error.call(this);
this.message=x.message;"stack"in x&&(this.stack=x.stack);this.name="AsyncStack";Object.setPrototypeOf(this,this.constructor.prototype)};
_.p(swq,Error);var iF=function(x){this.JSC$19392_worker_=x.worker||null;this.JSC$19392_streamBinaryChunks_=x.streamBinaryChunks||!1;this.JSC$19392_credentialsMode_=void 0};
_.E9(iF,_.INc);iF.prototype.createInstance=function(){var x=new fb(this.JSC$19392_worker_,this.JSC$19392_streamBinaryChunks_);this.JSC$19392_credentialsMode_&&x.setCredentialsMode(this.JSC$19392_credentialsMode_);return x};
iF.prototype.setCredentialsMode=function(x){this.JSC$19392_credentialsMode_=x};
var fb=function(x,L){_.Bc.call(this);this.JSC$19396_worker_=x;this.JSC$19396_streamBinaryChunks_=L;this.JSC$19396_credentialsMode_=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=null;this.requestHeaders_=new Headers;this.JSC$19396_responseHeaders_=null;this.JSC$19396_method_="GET";this.JSC$19396_url_="";this.inProgress_=!1;this.JSC$19396_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.E9(fb,_.Bc);fb.prototype.open=function(x,L){if(this.readyState!=0)throw this.abort(),Error("dk");this.JSC$19396_method_=x;this.JSC$19396_url_=L;this.readyState=1;oA(this)};
fb.prototype.send=function(x){if(this.readyState!=1)throw this.abort(),Error("ek");if(this.abortController_.signal.aborted)throw this.abort(),Error("fk");this.inProgress_=!0;var L={headers:this.requestHeaders_,method:this.JSC$19396_method_,credentials:this.JSC$19396_credentialsMode_,cache:void 0,signal:this.abortController_.signal};x&&(L.body=x);(this.JSC$19396_worker_||_.Qb).fetch(new Request(this.JSC$19396_url_,L)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
fb.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,aA(this));this.readyState=0};
fb.prototype.handleResponse_=function(x){if(this.inProgress_&&(this.fetchResponse_=x,this.JSC$19396_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$19396_responseHeaders_=x.headers,this.readyState=2,oA(this)),this.inProgress_&&(this.readyState=3,oA(this),this.inProgress_)))if(this.responseType==="arraybuffer")x.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.Qb.ReadableStream!==
"undefined"&&"body"in x){this.currentReader_=x.body.getReader();if(this.JSC$19396_streamBinaryChunks_){if(this.responseType)throw Error("gk");this.response=[]}else this.response=this.responseText="",this.JSC$19396_textDecoder_=new TextDecoder;l9q(this)}else x.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var l9q=function(x){x.currentReader_.read().then(x.handleDataFromStream_.bind(x)).catch(x.handleSendFailure_.bind(x))};
fb.prototype.handleDataFromStream_=function(x){if(this.inProgress_){if(this.JSC$19396_streamBinaryChunks_&&x.value)this.response.push(x.value);else if(!this.JSC$19396_streamBinaryChunks_){var L=x.value?x.value:new Uint8Array(0);if(L=this.JSC$19396_textDecoder_.decode(L,{stream:!x.done}))this.response=this.responseText+=L}x.done?aA(this):oA(this);this.readyState==3&&l9q(this)}};
fb.prototype.handleResponseText_=function(x){this.inProgress_&&(this.response=this.responseText=x,aA(this))};
fb.prototype.handleResponseArrayBuffer_=function(x){this.inProgress_&&(this.response=x,aA(this))};
fb.prototype.handleSendFailure_=function(){this.inProgress_&&aA(this)};
var aA=function(x){x.readyState=4;x.fetchResponse_=null;x.currentReader_=null;x.JSC$19396_textDecoder_=null;oA(x)};
fb.prototype.setRequestHeader=function(x,L){this.requestHeaders_.append(x,L)};
fb.prototype.getResponseHeader=function(x){return this.JSC$19396_responseHeaders_?this.JSC$19396_responseHeaders_.get(x.toLowerCase())||"":""};
fb.prototype.getAllResponseHeaders=function(){if(!this.JSC$19396_responseHeaders_)return"";for(var x=[],L=this.JSC$19396_responseHeaders_.entries(),D=L.next();!D.done;)D=D.value,x.push(D[0]+": "+D[1]),D=L.next();return x.join("\r\n")};
fb.prototype.setCredentialsMode=function(x){this.JSC$19396_credentialsMode_=x};
var oA=function(x){x.onreadystatechange&&x.onreadystatechange.call(x)};
Object.defineProperty(fb.prototype,"withCredentials",{get:function(){return this.JSC$19396_credentialsMode_==="include"},
set:function(x){this.setCredentialsMode(x?"include":"same-origin")}});var U_q=function(x){var L="";_.wk.forEach(x,function(D,S){L+=S;L+=":";L+=D;L+="\r\n"});
return L},wcI=function(x,L,D){if(_.wk.isEmpty(D))return x;
D=U_q(D);if(typeof x==="string")return _.D9(x,_.cd(L),D);_.xV(x,L,D);return x};var BGl=function(){this.isInputValid_=!0;this.JSC$19402_streamPos_=0;this.leftoverInput_=""};
BGl.prototype.isInputValid=function(){return this.isInputValid_};
BGl.prototype.decode=function(x){if(!this.isInputValid_)throw this.isInputValid_=!1,Error("hk`"+this.JSC$19402_streamPos_+"`stream already broken`"+x);this.leftoverInput_+=x;x=Math.floor(this.leftoverInput_.length/4);if(x==0)return null;try{var L=_.jrf(this.leftoverInput_.slice(0,x*4))}catch(D){throw L=this.leftoverInput_,x=D.message,this.isInputValid_=!1,Error("hk`"+this.JSC$19402_streamPos_+"`"+x+"`"+L);}this.JSC$19402_streamPos_+=x*4;this.leftoverInput_=this.leftoverInput_.slice(x*4);return L};var up=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$19405_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
up.prototype.isInputValid=function(){return this.state_!=3};
var zc=function(x,L,D,S){x.state_=3;x.errorMessage_="The stream is broken @"+x.JSC$19405_streamPos_+"/"+D+". Error: "+S+". With input:\n"+L;throw Error(x.errorMessage_);};
up.prototype.acceptsBinaryInput=function(){return!0};
up.prototype.parse=function(x){function L(E){E&128&&zc(J,Z,y,"invalid tag");(E&7)!=2&&zc(J,Z,y,"invalid wire type");J.tag_=E>>>3;J.tag_!=1&&J.tag_!=2&&J.tag_!=15&&zc(J,Z,y,"unexpected tag");J.state_=1;J.length_=0;J.countLengthBytes_=0}
function D(E){J.countLengthBytes_++;J.countLengthBytes_==5&&E&240&&zc(J,Z,y,"message length too long");J.length_|=(E&127)<<(J.countLengthBytes_-1)*7;E&128||(J.state_=2,J.countMessageBytes_=0,typeof Uint8Array!=="undefined"?J.messageBuffer_=new Uint8Array(J.length_):J.messageBuffer_=Array(J.length_),J.length_==0&&Q())}
function S(E){J.messageBuffer_[J.countMessageBytes_++]=E;J.countMessageBytes_==J.length_&&Q()}
function Q(){if(J.tag_<15){var E={};E[J.tag_]=J.messageBuffer_;J.result_.push(E)}J.state_=0}
for(var J=this,Z=x instanceof Array?x:new Uint8Array(x),y=0;y<Z.length;){switch(J.state_){case 3:zc(J,Z,y,"stream already broken");break;case 0:L(Z[y]);break;case 1:D(Z[y]);break;case 2:S(Z[y]);break;default:throw Error("ik`"+J.state_);}J.JSC$19405_streamPos_++;y++}x=J.result_;J.result_=[];return x.length>0?x:null};var rd$=function(){this.errorMessage_=null;this.JSC$19408_streamPos_=0;this.base64Decoder_=new BGl;this.pbParser_=new up};
rd$.prototype.isInputValid=function(){return this.errorMessage_===null};
var WeY=function(x,L,D){x.errorMessage_="The stream is broken @"+x.JSC$19408_streamPos_+". Error: "+D+". With input:\n"+L;throw Error(x.errorMessage_);};
rd$.prototype.acceptsBinaryInput=function(){return!1};
rd$.prototype.parse=function(x){this.errorMessage_!==null&&WeY(this,x,"stream already broken");var L=null;try{var D=this.base64Decoder_.decode(x);L=D===null?null:this.pbParser_.parse(D)}catch(S){WeY(this,x,S.message)}this.JSC$19408_streamPos_+=x.length;return L};var $B5=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$19411_streamPos_=0;this.result_=[];this.statusParsed_=!1};
$B5.prototype.isInputValid=function(){return this.errorMessage_===null};
$B5.prototype.acceptsBinaryInput=function(){return!1};
$B5.prototype.parse=function(x){function L(E){J.state_=6;J.errorMessage_="The stream is broken @"+J.JSC$19411_streamPos_+"/"+Z+". Error: "+E+". With input:\n";throw Error(J.errorMessage_);}
function D(){J.jsonStreamParser_=new _.bh({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function S(E){if(E)for(var P=0;P<E.length;P++){var v={};v[1]=E[P];J.result_.push(v)}}
function Q(E){if(E){(J.statusParsed_||E.length>1)&&L("extra status: "+E);J.statusParsed_=!0;var P={};P[2]=E[0];J.result_.push(P)}}
for(var J=this,Z=0;Z<x.length;){var y;if(y=J.state_!==2){a:{for(;Z<x.length;){if(!_.m9(x[Z])){y=!0;break a}Z++;J.JSC$19411_streamPos_++}y=!1}y=!y}if(y)return null;switch(J.state_){case 6:L("stream already broken");break;case 0:x[Z]==="["?(J.state_=1,Z++,J.JSC$19411_streamPos_++):L("unexpected input token");break;case 1:x[Z]==="["?(J.state_=2,D()):x[Z]===","||x.slice(Z,Z+5)=="null,"?J.state_=3:x[Z]==="]"?(J.state_=5,Z++,J.JSC$19411_streamPos_++):L("unexpected input token");break;case 2:y=J.jsonStreamParser_.parse(x.substring(Z));
S(y);J.jsonStreamParser_.done()?(J.state_=3,y=J.jsonStreamParser_.JSC$11487_buffer_,J.JSC$19411_streamPos_+=x.length-Z-y.length,x=y,Z=0):(J.JSC$19411_streamPos_+=x.length-Z,Z=x.length);break;case 3:x[Z]===","||x.slice(Z,Z+5)=="null,"?(J.state_=4,D(),J.jsonStreamParser_.parse("["),Z+=x[Z]===","?1:5,J.JSC$19411_streamPos_++):x[Z]==="]"&&(J.state_=5,Z++,J.JSC$19411_streamPos_++);break;case 4:y=J.jsonStreamParser_.parse(x.substring(Z));Q(y);J.jsonStreamParser_.done()?(J.state_=5,y=J.jsonStreamParser_.JSC$11487_buffer_,
J.JSC$19411_streamPos_+=x.length-Z-y.length,x=y,Z=0):(J.JSC$19411_streamPos_+=x.length-Z,Z=x.length);break;case 5:L("extra input after stream end")}}return J.result_.length>0?(x=J.result_,J.result_=[],x):null};var q1G=function(x){this.JSC$19414_xhr_=x;this.JSC$19414_parser_=null;this.status_=this.JSC$19414_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$19414_textDecoder_=null;this.JSC$19414_eventHandler_=new _.Mu(this);this.JSC$19414_eventHandler_.listen(this.JSC$19414_xhr_,"readystatechange",this.JSC$19416_readyStateChangeHandler_)},XV=function(x,L){x.status_!=L&&(x.status_=L,x.statusHandler_&&x.statusHandler_())},cm=function(x){x.JSC$19414_eventHandler_.removeAll();
if(x.JSC$19414_xhr_){var L=x.JSC$19414_xhr_;x.JSC$19414_xhr_=null;L.abort();L.dispose()}};
q1G.prototype.getStatus=function(){return this.status_};
q1G.prototype.JSC$19416_readyStateChangeHandler_=function(x){x=x.target;try{if(x==this.JSC$19414_xhr_)a:{var L=_.ow(this.JSC$19414_xhr_),D=this.JSC$19414_xhr_.JSC$9800_lastErrorCode_,S=this.JSC$19414_xhr_.getStatus(),Q=this.JSC$19414_xhr_.getResponseText();x=[];if(this.JSC$19414_xhr_.getResponse()instanceof Array){var J=this.JSC$19414_xhr_.getResponse();J.length>0&&J[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,x=J)}if(!(L<3||L==3&&!Q&&x.length==0))if(S=S==200||S==206,L==4&&(D==8?XV(this,
7):D==7?XV(this,8):S||XV(this,3)),this.JSC$19414_parser_||(this.JSC$19414_parser_=NYX(this.JSC$19414_xhr_),this.JSC$19414_parser_==null&&XV(this,5)),this.status_>2)cm(this);else{if(x.length>this.JSC$19414_pos_){var Z=x.length;D=[];try{if(this.JSC$19414_parser_.acceptsBinaryInput())for(var y=0;y<Z;y++){var E=this.JSC$19414_parser_.parse(Array.from(x[y]));E&&(D=D.concat(E))}else{E="";if(!this.JSC$19414_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("jk");this.JSC$19414_textDecoder_=new TextDecoder}for(y=
0;y<Z;y++)E+=this.JSC$19414_textDecoder_.decode(x[y],{stream:L==4&&y==Z-1});D=this.JSC$19414_parser_.parse(E)}x.splice(0,Z);D&&this.dataHandler_(D)}catch(v){XV(this,5);cm(this);break a}}else if(Q.length>this.JSC$19414_pos_){y=Q.slice(this.JSC$19414_pos_);this.JSC$19414_pos_=Q.length;try{var P=this.JSC$19414_parser_.parse(y);P!=null&&this.dataHandler_&&this.dataHandler_(P)}catch(v){XV(this,5);cm(this);break a}}L==4?(Q.length!=0||this.hasStreamingResponseData_?XV(this,2):XV(this,4),cm(this)):XV(this,
1)}}}catch(v){XV(this,6),cm(this)}};var ARl=function(x){x=this.xhrReader_=x;var L=(0,_.e1)(this.onData_,this);x.dataHandler_=L;x=this.xhrReader_;L=(0,_.e1)(this.onStatusChange_,this);x.statusHandler_=L;this.JSC$19418_callbackMap_={};this.callbackOnceMap_={}};
_.K=ARl.prototype;_.K.on=function(x,L){var D=this.JSC$19418_callbackMap_[x];D||(D=[],this.JSC$19418_callbackMap_[x]=D);D.push(L);return this};
_.K.addListener=function(x,L){this.on(x,L);return this};
_.K.removeListener=function(x,L){var D=this.JSC$19418_callbackMap_[x];D&&_.$f(D,L);(x=this.callbackOnceMap_[x])&&_.$f(x,L);return this};
_.K.once=function(x,L){var D=this.callbackOnceMap_[x];D||(D=[],this.callbackOnceMap_[x]=D);D.push(L);return this};
_.K.onData_=function(x){var L=this.JSC$19418_callbackMap_.data;L&&$_l(x,L);(L=this.callbackOnceMap_.data)&&$_l(x,L);this.callbackOnceMap_.data=[]};
var $_l=function(x,L){for(var D={},S=0;S<x.length;D={message$jscomp$1005:void 0},S++)D.message$jscomp$1005=x[S],L.forEach(function(Q){return function(J){try{J(Q.message$jscomp$1005)}catch(Z){}}}(D))};
ARl.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:rR5(this,"readable");break;case 5:case 6:case 4:case 7:case 3:rR5(this,"error");break;case 8:rR5(this,"close");break;case 2:rR5(this,"end")}};
var rR5=function(x,L){var D=x.JSC$19418_callbackMap_[L];D&&D.forEach(function(S){try{S()}catch(Q){}});
(D=x.callbackOnceMap_[L])&&D.forEach(function(S){S()});
x.callbackOnceMap_[L]=[]};var NGu=function(){var x={format:"jspb"};x=x===void 0?{}:x;this.suppressCorsPreflight=x.suppressCorsPreflight||_.o1("suppressCorsPreflight",x)||!1;this.withCredentials=x.withCredentials||_.o1("withCredentials",x)||!1;this.streamInterceptors=x.streamInterceptors||[];this.unaryInterceptors=x.unaryInterceptors||[];this.workerScope=x.workerScope;this.chunkedServerStreaming=x.useFetchDownloadStreams||!1},ox9=function(x,L,D,S,Q,J){J=J===void 0?{}:J;
var Z=L.substring(0,L.length-Q.name.length),y,E=(y=J)==null?void 0:y.signal;return iW3(function(P){return new Promise(function(v,V){if(E==null?0:E.aborted){var h=new _.N_(1,"Aborted");h.cause=E.reason;V(h)}else{var H={},k=f95(x,P,Z);k.on("error",function(T){return void V(T)});
k.on("metadata",function(T){H=T});
k.on("data",function(T){var G=H;G=G===void 0?{}:G;v(new JRY(T,G))});
E&&E.addEventListener("abort",function(){k.cancel();var T=new _.N_(1,"Aborted");T.cause=E.reason;V(T)})}})},x.unaryInterceptors).call(x,KeI(Q,D,S)).then(function(P){return P.responseMessage})},nb=function(x,L,D,S,Q,J){J=J===void 0?{}:J;
return ox9(x,L,D,S,Q,J)};
NGu.prototype.serverStreaming=function(x,L,D,S){var Q=this,J=x.substring(0,x.length-S.name.length);return a9$(function(Z){var y=Z.methodDescriptor,E=Z.getMetadata(),P=zSX(Q,!1);E=Xcl(Q,E,P,J+y.getName());var v=cRg(P,y.responseDeserializeFn,!0);Z=y.requestSerializeFn(Z.requestMessage);P.send(E,"POST",Z);return v},this.streamInterceptors).call(this,KeI(S,L,D))};
var f95=function(x,L,D){var S=L.methodDescriptor,Q=L.getMetadata(),J=zSX(x,!0);x=Xcl(x,Q,J,D+S.getName());D=cRg(J,S.responseDeserializeFn,!1);COW(D,Q["X-Goog-Encode-Response-If-Executable"]==="base64");L=S.requestSerializeFn(L.requestMessage);J.send(x,"POST",L);return D},zSX=function(x,L){L=x.chunkedServerStreaming&&!L;
return x.workerScope||L?new _.fW(new iF({worker:x.workerScope,streamBinaryChunks:L})):new _.fW},Xcl=function(x,L,D,S){L["Content-Type"]="application/json+protobuf";
L["X-User-Agent"]="grpc-web-javascript/0.1";var Q=L.Authorization;if(Q&&pc$.has(Q.split(" ")[0])||x.withCredentials)D.JSC$9800_withCredentials_=!0;if(x.suppressCorsPreflight)S=wcI(S,"$httpHeaders",L);else for(x=_.O(Object.keys(L)),Q=x.next();!Q.done;Q=x.next())Q=Q.value,D.headers.set(Q,L[Q]);return S},cRg=function(x,L,D){if(D){D=new q1G(x);
var S=new ARl(D)}return new Feq({xhr:x,nodeReadableStream:S},L)},a9$=function(x,L){return L.reduce(function(D,S){return function(Q){return S.intercept(Q,D)}},x)},iW3=function(x,L){return L.reduce(function(D,S){return function(Q){return S.intercept(Q,D)}},x)};var nxq=function(x){this.client_=new NGu;this.hostname_=x==void 0?x:x.replace(/\/+$/,"")};
_.K=nxq.prototype;_.K.JSC$19436_depositGoogleCredential=function(x,L,D){return nb(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",x,L||{},I9X,D)};
_.K.deleteLink=function(x,L,D){return nb(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",x,L||{},ZW3,D)};
_.K.JSC$19436_finishOAuth=function(x,L,D){return nb(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",x,L||{},MSl,D)};
_.K.getLink=function(x,L,D){return nb(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",x,L||{},d_l,D)};
_.K.startLinkingSession=function(x,L,D){return nb(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",x,L||{},kmW,D)};var tSX=[0,_.S9,1,hsu,[0,_.Oc,[0,_.Jo,-1]],[0,V95],[0,_.Ia,-1]];var xo3=function(){this.storage=new Map},DoX=function(x,L,D,S,Q){if(!x.storage.has(L))return null;
x=_.O(x.storage.get(L));for(L=x.next();!L.done;L=x.next())if(L=L.value,!Q||L.linkName===Q)if(D&&L.scopes&&Ls9(L.scopes,D)||S&&L.capabilities&&Ls9(L.capabilities,S))return L;return null},Sxq=function(x,L,D){if(!D)x.storage.delete(L);
else if(x.storage.has(L)){var S=x.storage.get(L).filter(function(Q){return Q.linkName!==D});
S.length>0?x.storage.set(L,S):x.storage.delete(L)}},Ls9=function(x,L){L=_.O(L);
for(var D=L.next();!D.done;D=L.next())if(!x.has(D.value))return!1;return!0};var Q25=function(){var x=_.$6("LINK_GAL_DOMAIN");this.alsDomain1p=_.$6("LINK_GAL_DOMAIN");this.alsDomain3p=x;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},Jmq=function(x,L){x.apiKey=L;
return x};
Q25.prototype.build=function(){var x={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("kk");x.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("lk");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("mk");x.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(x.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)x.apiKey=
this.apiKey,x.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("nk");x.oauthToken=this.oauthToken;x.alsDomain=this.alsDomain3p}x.clientXd3=this.clientXd3;x.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(x.authUser=this.authUser);this.bucket!==void 0&&(x.bucket=this.bucket);this.completionUrl!==void 0&&(x.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(x.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(x.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(x.locale=this.locale);x.loggerType=this.loggerType;x.clientEnvironment=this.clientEnvironment;x.colorScheme=this.colorScheme;x.showCloseOption=this.showCloseOption;return x};var gu=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(gu,_.O5);var Ksg=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(Ksg,_.O5);var Orq=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(Orq,_.O5);var pj=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(pj,_.O5);var Zr3=function(x){return _.BN(x,1)};var ymq=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(ymq,_.O5);var cdq=_.uQ(ymq),kU=[1,2,3,4,5];var o8q=function(x){try{return cdq(x)}catch(L){return null}},I7X=function(){},avs=function(x,L){switch(_.TE(L,kU)){case 4:return(L=_.A9(L,Orq,4,kU))&&x.logStateTransition(_.BN(L,1)),!0;
case 5:return(L=_.A9(L,Ksg,5,kU))&&x.logInternalEvent(_.BN(L,1)),!0}return!1},n8X=function(x){switch(x){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.Nh(x)}};var iB3=function(x,L){var D=this;this.validator=x;this.messageListener=L;this.dismissCallback=function(){E09(D,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$19465_receiveMessage=function(S){S.type==="message"&&(S=S.event_,S!==null&&(new URL(D.iframe.src)).origin===S.origin&&D.validator(S.data,S.origin)&&!D.messageListener(S.data)&&(D.JSC$19465_resolveCb!==void 0&&D.JSC$19465_resolveCb(S.data),MuI(D)))}},XqX=function(x,L,D){x.uiHandler!==void 0&&E09(x,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(S,Q){x.JSC$19465_resolveCb=S;x.JSC$19465_rejectCb=Q;x.iframe=document.createElement("iframe");_.ci(x.iframe,L);x.uiHandler=D.displayContent(x.iframe,x.dismissCallback);_.Uk(window,"message",x.JSC$19465_receiveMessage,!1,x)})},E09=function(x,L){x.JSC$19465_rejectCb!==void 0&&x.JSC$19465_rejectCb(L);
MuI(x)},MuI=function(x){x.uiHandler!==void 0&&x.uiHandler.hideContent();
_.wG(window,"message",x.JSC$19465_receiveMessage,!1,x);x.JSC$19465_resolveCb=void 0;x.JSC$19465_rejectCb=void 0;x.uiHandler=void 0;x.iframe=void 0};var dog=function(x){if(x===2){var L;x=((L=window)==null?0:L.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return x},zNg=function(x){x=dog(x);
switch(x){case 0:return"light";case 1:return"dark";default:_.Nh(x)}};var fv5=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),PJl=function(x,L){this.JSC$19477_linkingSession=x;this.noticeConfig=L;this.displayInfoMap=new Map;var D=new Map;if(_.bV(this.JSC$19477_linkingSession,vxq,7))for(x=_.Mg(this.JSC$19477_linkingSession,vxq,7),x=_.O7(x,jwW,1,_.Zb()),x=_.O(x),L=x.next();!L.done;L=x.next())L=L.value,D.set(_.BN(L,1),_.mw0(_.Mg(L,_.u_3,3)));if(D.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){L=this.noticeConfig.enabledDataUsageNoticeUis;x=L.has(0)?D.get(1):void 0;L=L.has(1)?D.get(2):void 0;D=x!==void 0&&L!==void 0?D.get(3):void 0;var S=this.noticeConfig.nestedOrigins;var Q=new ymq;var J=new gu;Q=_.bQ(Q,2,kU,J);J=new ymq;var Z=new gu;J=_.bQ(J,3,kU,Z);Z=[];x!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:x,lastEvent:Q,nestedOrigins:S}]),Z.push({trustedUrl:x,lastEvent:Q,nestedOrigins:S}));L!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:L,lastEvent:J,nestedOrigins:S}]),Z.push({trustedUrl:L,lastEvent:J,nestedOrigins:S}));D!==void 0?this.displayInfoMap.set(3,[{trustedUrl:D,lastEvent:J,nestedOrigins:S}]):this.displayInfoMap.set(3,Z)}};var j2s=function(x){var L=new xo3;this.galService=x;this.galCache=L};
j2s.prototype.getLink=function(x){var L=x.serviceId;var D=x.scopes;var S=x.capabilities;var Q=x.linkName;var J=this,Z;return _.I(function(y){if(S!==void 0&&D!==void 0)throw Error("ok");Z=DoX(J.galCache,L,D,S,Q);return Z!==null?y.return(Z):y.return(J.galService.getLink({serviceId:L,sessionId:Math.floor(Math.random()*2147483648),scopes:D,capabilities:S,linkName:Q}).then(function(E){E=SYu(E);var P=J.galCache;P.storage.has(L)?P.storage.get(L).push(E):P.storage.set(L,[E]);return E}))})};
j2s.prototype.deleteLink=function(x,L,D){var S=this;return _.I(function(Q){Sxq(S.galCache,x,D);return Q.return(S.galService.deleteLink({serviceId:x,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:L,linkName:D}).then(function(){return!0}))})};var Vug=function(x,L){var D=this;this.validator=x;this.msgHandler=L;this.closedPopupTimeout=this.JSC$19499_rejectCb=this.JSC$19499_resolveCb=this.popup=null;this.JSC$19499_receiveMessage=function(S){if(S!==null&&(S=S.event_,S.source===D.popup)){var Q=S.data;if(D.validator(Q,S.origin)){var J;(J=D.msgHandler)!=null&&J.call(D,Q)||(D.JSC$19499_resolveCb!==null&&D.JSC$19499_resolveCb(Q),v0Y(D))}}}};
Vug.prototype.open=function(x,L){var D=this;this.popup!==null&&hQq(this);return new Promise(function(S,Q){D.JSC$19499_resolveCb=S;D.JSC$19499_rejectCb=Q;D.popup=_.nU(window,x,"",L);_.Uk(window,"message",D.JSC$19499_receiveMessage,!1,D);HrW(D)})};
var hQq=function(x,L){x.JSC$19499_rejectCb!==null&&x.JSC$19499_rejectCb(L);v0Y(x)},v0Y=function(x){x.closedPopupTimeout&&(x.closedPopupTimeout.cancel(),x.closedPopupTimeout=null);
x.popup&&x.popup.close();_.wG(window,"message",x.JSC$19499_receiveMessage,!1,x);x.popup=null;x.JSC$19499_resolveCb=null;x.JSC$19499_rejectCb=null},HrW=function(x){x.closedPopupTimeout=_.ccC(100).then(function(){x.popup?x.popup.closed?uNg(x):HrW(x):hQq(x,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},uNg=function(x){x.closedPopupTimeout=_.ccC(100).then(function(){hQq(x,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var g09=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),kpq=function(x,L,D,S,Q,J,Z,y,E,P){var v=this;this.serviceId=x;this.sessionId=L;this.galService=D;this.oauthDetails=S;this.galLogger=Q;this.interactionMode=J;this.redirectServiceUrl=Z;this.consentLanguageKeys=y;this.dynamicUrlParameters=E;this.partnerConfigMinReadTimestamp=P;this.started=!1;this.JSC$19505_dataValidator=function(V,
h){var H=g09.has(h);H||v.redirectServiceUrl===void 0||(H=v.redirectServiceUrl===h);return H?V.sentinel==="gdi":!1}};
kpq.prototype.complete=function(){var x=this,L;return _.I(function(D){if(x.interactionMode!==1)return D.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));L=bp.getRedirectStateFromUri();return L===null?D.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):D.return(pZu(x,L))})};
kpq.prototype.start=function(){var x=this,L;return _.I(function(D){if(x.started)return D.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.wy(x.oauthDetails,1))return D.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(x.interactionMode===1)return bp.setLocation(_.wy(x.oauthDetails,1)),D.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));x.started=!0;x.galLogger.logStateTransition(5);
L=bp.getPostMessagePopup(x.JSC$19505_dataValidator);return D.return(L.open(_.wy(x.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(S){x.started=!1;var Q=x.galLogger;if((S==null?void 0:S.error)!==void 0)throw Q.logInternalEvent(59),Error("pk");if((S==null?void 0:S.redirect_state)===void 0)throw Q.logInternalEvent(131),Error("qk");return pZu(x,S.redirect_state)}).catch(function(S){x.started=
!1;
return S.errorCode!==void 0?{statusCode:S.errorCode,statusMessage:S.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var pZu=function(x,L){return _.I(function(D){return D.return(moI(x.galService,{serviceId:x.serviceId,sessionId:x.sessionId,dynamicUrlParameters:x.dynamicUrlParameters,redirectState:L,consentLanguageKeys:x.consentLanguageKeys,partnerConfigMinReadTimestamp:x.partnerConfigMinReadTimestamp}).then(function(S){var Q={statusCode:1,link:SYu(S.getLink())};xUW(_.FK(S,3))!==void 0&&(Q.callerState=xUW(_.FK(S,3)));x.galLogger.logInternalEvent(134);return Q}))})},bp={getPostMessagePopup:function(x){return new Vug(x)},
getRedirectStateFromUri:function(){var x=_.ze(bp.getLocation()).fragment_;return(new _.gf(x)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(x){_.h04(window.location,_.$z(x))},
createOAuthFlow:function(x,L){return new kpq(x.serviceId,x.sessionId,x.galService,L,x.galLogger,x.interactionMode,x.redirectServiceUrl,x.consentLanguageKeys,x.dynamicUrlParameters,x.partnerConfigMinReadTimestamp)}};var brl=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(brl,_.O5);var Yx$=_.uQ(brl);var Fs9=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),s2u=function(x,L,D,S,Q,J,Z,y,E){var P=this;this.serviceId=x;this.sessionId=L;this.galService=D;this.gsiWebFlowDetails=S;this.colorScheme=Q;this.showCloseOption=J;this.galLogger=Z;this.interactionMode=y;this.redirectServiceUrl=E;this.started=!1;this.JSC$19517_dataValidator=function(v,V){var h=Fs9.has(V);h||P.redirectServiceUrl===
void 0||(h=P.redirectServiceUrl===V);return h?v.sentinel==="gal":!1};
this.logEventProcessor=function(v){return v.result?(v=o8q(v.result))?avs(P.galLogger,v):!1:!1}};
s2u.prototype.complete=function(){var x=this,L,D;return _.I(function(S){if(x.interactionMode!==1)return S.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));L=YU.getRedirectStateFromUri();if(L===void 0)return x.galLogger.JSC$19457_logErrorEvent(131),S.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return D=TfI(x,L),S.return(eQW(x,D))}catch(Q){return S.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
s2u.prototype.start=function(){var x=this,L;return _.I(function(D){if(x.started)return D.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.wy(x.gsiWebFlowDetails,1))return D.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(x.interactionMode===1)return YU.setLocation(RQG(x,_.wy(x.gsiWebFlowDetails,1))),D.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
x.started=!0;L=YU.getPostMessagePopup(x.JSC$19517_dataValidator,x.logEventProcessor);return D.return(L.open(RQG(x,_.wy(x.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(S){x.started=!1;if((S==null?void 0:S.result)===void 0)throw x.galLogger.JSC$19457_logErrorEvent(131),Error("qk");S=TfI(x,S.result);return eQW(x,S)}).catch(function(S){x.started=!1;
return S.errorCode!==void 0?{statusCode:S.errorCode,statusMessage:S.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var RQG=function(x,L){x=["result_channel",x.interactionMode===1?"2":"1","color_scheme",zNg(x.colorScheme),"show_close_option",x.showCloseOption];return kCq(L,x)},eQW=function(x,L){if(L!==null&&_.bV(L,pj,2)){var D,S=L==null?void 0:(D=_.Mg(L,pj,2))==null?void 0:_.BN(D,2);
S&&x.galLogger.JSC$19457_logErrorEvent(n8X(S));return Zr3(_.Mg(L,pj,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 x.galService.getLink({serviceId:x.serviceId,sessionId:x.sessionId,consistencyKey:_.wy(L,1)}).then(function(Q){Q=SYu(Q);x.galLogger.logInternalEvent(134);return{statusCode:1,link:Q}})},TfI=function(x,L){L=Yx$(L);
if(!_.bV(L,pj,2)&&_.wy(L,1)==="")throw x.galLogger.JSC$19457_logErrorEvent(5),Error("rk");return L},YU={getPostMessagePopup:function(x,L){return new Vug(x,L)},
getRedirectStateFromUri:function(){return _.cf(_.ze(YU.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(x){_.h04(window.location,_.$z(x))},
createStreamlinedFlow:function(x,L){return new s2u(x.serviceId,x.sessionId,x.galService,L,x.colorScheme,x.showCloseOption,x.galLogger,x.interactionMode,x.redirectServiceUrl)}};var hK$=function(){var x=_.A20("GAL");this.storage=x?new _.GU(x):null};
hK$.prototype.getSession=function(x){if(this.storage!==null)try{var L=this.storage.get("SAVED_SESSION");if(L===void 0)return null;if(L.serviceId===x)return L}catch(D){}return null};var tV=function(){};
_.p(tV,I7X);tV.prototype.logStateTransition=function(){};
tV.prototype.logInternalEvent=function(){};
tV.prototype.JSC$19457_logErrorEvent=function(){};var Gpg=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(Gpg,_.O5);Gpg.prototype.getCompletionUrl=function(){return _.wy(this,15)};var xw=function(x,L,D,S,Q,J){this.serviceId=x;this.environment=L;this.sessionId=D;this.colorSchemeSelected=S;this.colorThemeDisplayed=Q;this.JSC$19530_transport=J;this.currentState=1};
_.p(xw,I7X);xw.prototype.logStateTransition=function(x){var L=CJ5(this);L=_.dt(L,3,this.currentState);L=_.dt(L,1,x);this.currentState=x;x=TV9(1);this.dispatch(L,x)};
xw.prototype.logInternalEvent=function(x){x=TV9(x);this.dispatch(CJ5(this),x)};
xw.prototype.JSC$19457_logErrorEvent=function(x){var L=CJ5(this);L=_.dt(L,1,10);x=TV9(x);this.dispatch(L,x)};
var CJ5=function(x){var L=new Gpg;L=_.dt(L,1,x.currentState);L=_.ei(L,7,x.serviceId);var D,S;var Q=((D=window)==null?0:(S=D.location)==null?0:S.href)?_.ze(window.location.href).JSC$10036_domain_:"NO_PACKAGE_NAME";D=_.ei(L,8,Q);D=_.dt(D,6,x.environment);D=_.ei(D,5,"100");D=_.dt(D,11,x.colorSchemeSelected);return _.dt(D,12,x.colorThemeDisplayed)};
xw.prototype.dispatch=function(x,L){L===void 0&&(L=new _.bO);var D=L;x=x.serialize();D=_.ei(D,8,x);_.Fd(D,12,this.sessionId);this.JSC$19530_transport.dispatch(L)};var l7$=function(x,L){this.loggerType=x;this.sessionIndex=L!=null?L:0},Uoq;
l7$.prototype.create=function(x,L,D,S,Q){switch(this.loggerType){case 0:return new tV;case 1:return Uoq||(Uoq=(new _.vf(555,this.sessionIndex.toString())).build()),new xw(x,L,D,S,Q,Uoq);default:_.Nh(this.loggerType,"unknown logger type")}};var Fk=[6,2,3,1],m$3=new Map([[4,1],[1,6],[2,2],[3,3]]),O$q={statusCode:7,statusMessage:"Failed to create flow object"},v9X=function(x,L,D,S,Q,J,Z,y,E,P){this.serviceId=x;this.sessionId=L;this.config=D;this.galService=S;this.JSC$19537_linkingSession=Q;this.googleScopes=J;this.callerState=Z;this.consentLanguageKeys=y;this.dynamicUrlParameters=E;this.partnerConfigMinReadTimestamp=P;this.currentFlow=0;S=this.JSC$19537_linkingSession;Q=new Set;_.bV(S,Mrq,1)&&Q.add(1);_.bV(S,hSY,2)&&_.bV(S,d$3,6)&&Q.add(2);
_.bV(S,VS9,3)&&_.bV(S,d$3,6)&&Q.add(3);_.bV(S,POl,4)&&Q.add(6);this.supportedFlows=Q;S=D.loggerType;Q=D.clientEnvironment;a:{J=D.colorScheme;switch(J){case 0:J=1;break a;case 1:J=2;break a;case 2:J=3;break a;default:_.Nh(J)}J=void 0}a:{Z=D.colorScheme;Z=dog(Z);switch(Z){case 0:Z=1;break a;case 1:Z=2;break a;default:_.Nh(Z)}Z=void 0}this.galLogger=(new l7$(S,D.authUser)).create(x,Q,L,J,Z)},BfX=function(x){return new Promise(function(L){var D,S,Q,J,Z,y,E,P,v,V;
return _.I(function(h){switch(h.nextAddress){case 1:D=PNG(x.currentFlow,x.supportedFlows),S=!1,Q=new PJl(x.JSC$19537_linkingSession,x.config.dataUsageNoticeConfig);case 2:if(D===void 0){h.jumpTo(4);break}_.HH(h,5);var H=Q,k=D,T=void 0;S?k===1&&(T=H.displayInfoMap.get(2)):k===2||k===3?T=H.displayInfoMap.get(1):k===1&&(T=H.displayInfoMap.get(3));J=T?T:[];Z=x.consentLanguageKeys;y=_.O(J);E=y.next();case 7:if(E.done)return x.currentFlow=D,h.yield(yqY(wZI(x,Z)),11);P=E.value;return h.yield(tRg(P,x.config.dataUsageNoticeConfig.uiAdapter,
x.config.colorScheme,x.galLogger),10);case 10:v=h.yieldResult;if(v.statusCode!==1)return H$9(x.serviceId),x.currentFlow=0,L(mp({statusCode:v.statusCode,statusMessage:v.statusMessage},x.callerState)),h.return();v.consentLanguageKeys!==void 0&&(Z=v.consentLanguageKeys);E=y.next();h.jumpTo(7);break;case 11:V=h.yieldResult;if(V.statusCode!==10)return V.statusCode!==6&&(H$9(x.serviceId),x.currentFlow=0),V.statusCode!==1&&x.callerState!==void 0&&(V.callerState=x.callerState),L(V),h.return();_.nH(h,6);break;
case 5:_.mW(h);case 6:D=PNG(x.currentFlow,x.supportedFlows);S=!0;h.jumpTo(2);break;case 4:H$9(x.serviceId),x.currentFlow=0,L(mp({statusCode:12,statusMessage:"Linking failed"},x.callerState)),_.Y2(h)}})})},kV9=function(x,L,D){x.currentFlow=L;
return I43(wZI(x,D)).then(function(S){return S.statusCode===10&&x.config.interactionMode===1&&PNG(x.currentFlow,x.supportedFlows)!==void 0?BfX(x):S})},wZI=function(x,L){return{flowParams:{serviceId:x.serviceId,
sessionId:x.sessionId,galService:x.galService,galLogger:x.galLogger,interactionMode:x.config.interactionMode,redirectServiceUrl:x.config.redirectServiceUrl,colorScheme:x.config.colorScheme,consentLanguageKeys:L,dynamicUrlParameters:x.dynamicUrlParameters,showCloseOption:x.config.showCloseOption,partnerConfigMinReadTimestamp:x.partnerConfigMinReadTimestamp},currentFlow:x.currentFlow,config:x.config,session:x.JSC$19537_linkingSession,googleScopes:x.googleScopes,callerState:x.callerState}};var YY$=function(x,L){this.config=x;this.galService=L.getService();this.JSC$19550_galRepository=L.JSC$19568_galRepository};
YY$.prototype.getLink=function(x,L){return Ws3(this,x,L)};
var Ws3=function(x,L,D){return x.JSC$19550_galRepository.getLink({serviceId:L,scopes:void 0,capabilities:void 0,linkName:D}).then(function(S){return{statusCode:1,link:S}}).catch(function(S){return{statusCode:b$I(S.code),
statusMessage:S.message}})};
YY$.prototype.deleteLink=function(x,L){return this.JSC$19550_galRepository.deleteLink(x,this.config.accountLinkingEntryPoint,L).then(function(){return{statusCode:1}}).catch(function(D){return{statusCode:b$I(D.code),
statusMessage:D.message}})};
YY$.prototype.startLinkingSession=function(x){var L=x.serviceId;var D=x.sessionId;return Vr3({serviceId:L,sessionId:D!==void 0?D:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:x.loginHint,callerState:x.callerState,consentLanguageKeys:x.consentLanguageKeys,linkName:x.linkName,dynamicUrlParameters:x.dynamicUrlParameters,partnerConfigMinReadTimestamp:x.partnerConfigMinReadTimestamp})};var Lk=function(x,L,D,S,Q,J,Z){this.apiKey=L;this.authUser=D;this.oauthToken=S;this.bucket=Q;this.locale=J;this.galSdkEventHandler=Z;if(S===void 0){if(L===void 0)throw Error("sk");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new nxq(x)};
Lk.prototype.deleteLink=function(x){var L=x.serviceId;var D=x.sessionId;var S=x.accountLinkingEntryPoint;var Q=x.linkName;var J=this,Z;return _.I(function(y){var E=(new Wm).setHeader(J.getHeader(D));var P=qx9({serviceId:L,linkName:Q});E=_.mR(E,2,P);Z=_.ry(E,3,S);return y.return(J.makeRequest(J.galServiceClient.deleteLink,Z,[1,3],[2,4]))})};
var moI=function(x,L){var D=L.serviceId;var S=L.sessionId;var Q=L.dynamicUrlParameters;var J=L.redirectState;var Z=L.consentLanguageKeys;var y=L.partnerConfigMinReadTimestamp;var E;return _.I(function(P){var v=(new AV).setHeader(x.getHeader(S,Q));v=_.Xm(v,2,D);E=_.Xm(v,4,J);Z!==void 0&&_.Xm(E,5,Z);y!==void 0&&_.mR(E,6,y);return P.return(x.makeRequest(x.galServiceClient.JSC$19436_finishOAuth,E,[1,3],[2,4]))})};
Lk.prototype.getLink=function(x){var L=x.serviceId;var D=x.sessionId;var S=x.scopes;var Q=x.capabilities;var J=x.consistencyKey;var Z=x.linkName;var y=this,E;return _.I(function(P){var v=(new $S).setHeader(y.getHeader(D)),V=qx9({serviceId:L,scopes:S,capabilities:Q,linkName:Z});E=_.mR(v,2,V);J!==void 0&&(v=LeG(),v=_.Xm(v,2,J),_.mR(E,3,v));return P.return(y.makeRequest(y.galServiceClient.getLink,E,[1,3],[2,4]))})};
var E9g=function(x,L){var D=L.serviceId;var S=L.sessionId;var Q=L.googleScopes;var J=L.consistencyKey;var Z;return _.I(function(y){var E=(new qE).setHeader(x.getHeader(S));E=_.Xm(E,2,D);var P=Array.from(Q.values());E=_.t5(E,3,P,_.VW);P=LeG();P=_.Xm(P,2,J);Z=_.mR(E,4,P);return y.return(x.makeRequest(x.galServiceClient.JSC$19436_depositGoogleCredential,Z,[1,3],[2,4]))})};
Lk.prototype.startLinkingSession=function(x){var L=x.serviceId;var D=x.sessionId;var S=x.scopes;var Q=x.capabilities;var J=x.loginHint;var Z=x.supportedFlows;var y=x.completionUrl;var E=x.usePingPong;var P=x.twoWayLinking;var v=x.accountLinkingEntryPoint;var V=x.callerState;var h=x.consentLanguageKeys;var H=x.googleScopes;var k=x.dataUsageNoticeConfig;var T=x.linkName;var G=x.dynamicUrlParameters;var U=x.partnerConfigMinReadTimestamp;var l=this,X,f;return _.I(function(N){if(Q!==void 0&&S!==void 0)throw Error("ok");
var z=(new gxl).setHeader(l.getHeader(D,G));X=_.Xm(z,2,L);T!==void 0&&_.Xm(X,14,T);if(Q!==void 0){z=X;var xf=Array.from(Q.values());_.t5(z,5,xf,_.VW)}else S!==void 0&&(z=X,xf=Array.from(S.values()),_.t5(z,3,xf,_.VW));y!==void 0&&_.Xm(X,6,y);E!==void 0&&_.wr(X,15,E);Z!==void 0&&(z=X,xf=Array.from(Z.values()),_.t5(z,4,xf,_.Ll));if(P!==void 0){if(P&&(!H||H.size===0))throw Error("tk");_.wr(X,8,P)}v!==void 0&&_.ry(X,9,v);J!==void 0&&_.Xm(X,13,J);V!==void 0&&(z=X,xf=(new TextEncoder).encode(V),_.xz(z,12,
_.bG(xf,!1),_.m_()));h!==void 0&&_.Xm(X,16,h);U!==void 0&&_.mR(X,18,U);if(k!==void 0&&k.size>0||H!==void 0&&H.size>0)f=new uC3,H!==void 0&&H.size>0&&(z=f,xf=Array.from(H.values()),_.t5(z,1,xf,_.VW)),k!==void 0&&(k.has(0)&&_.$q0(f,2,_.Ll,1,_.DY),k.has(1)&&_.$q0(f,2,_.Ll,2,_.DY)),_.mR(X,17,f);return N.return(l.makeRequest(l.galServiceClient.startLinkingSession,X,[1],[2]))})};
Lk.prototype.getMetadata=function(){var x=this,L,D;return _.I(function(S){L={};x.useFpa?(L["X-Goog-Api-Key"]=x.apiKey,L["X-Goog-AuthUser"]=x.authUser!==void 0?x.authUser.toString():"0",(D=_.MOf([]))&&(L.Authorization=D)):L.Authorization="Bearer "+x.oauthToken;x.locale&&(L["accept-language"]=x.locale);return S.return(L)})};
Lk.prototype.makeRequest=function(x,L,D,S){var Q=this,J;return _.I(function(Z){if(Z.nextAddress==1)return Z.yield(Q.getMetadata(),2);J=Z.yieldResult;Aml(Q,D);return Z.return(x.bind(Q.galServiceClient)(L,J).finally(function(){Aml(Q,S)}))})};
var Aml=function(x,L){x.galSdkEventHandler!==void 0&&L.forEach(function(D){x.galSdkEventHandler.onEvent(D)})};
Lk.prototype.getHeader=function(x,L){var D=new Ue;x=_.xz(D,2,_.SG(x),0);x=_.ry(x,5,3);L=_.t5(x,8,L,_.VW);this.bucket!==void 0&&_.Xm(L,1,this.bucket);return L};
var qx9=function(x){var L=x.serviceId;var D=x.scopes;var S=x.capabilities;x=x.linkName;if(S!==void 0&&D!==void 0)throw Error("ok");var Q=new t99;L=_.Xm(Q,1,L);S!==void 0?(D=Array.from(S.values()),_.t5(L,5,D,_.VW)):D!==void 0&&(D=Array.from(D.values()),_.t5(L,3,D,_.VW));x!==void 0&&_.Xm(L,6,x);return L};var FXX=function(x){this.galService=new Lk(x.alsDomain,x.apiKey,x.authUser,x.oauthToken,x.bucket,x.locale,x.galSdkEventHandler);this.JSC$19568_galRepository=new j2s(this.galService)};
FXX.prototype.getService=function(){return this.galService};var $ol=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p($ol,_.O5);var rml=function(x){var L=new $ol;return _.dt(L,1,x)};
$ol.prototype.setErrorMessage=function(x){return _.ei(this,2,x)};var Nf5=[0,_.y8,_.Q8,_.y8];var DU=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(DU,_.O5);var irG=[0,[1,2,3],_.ZV,[0,dCI,vl$,-1],_.ZV,[0,jaY,-1],_.Kt];var f7q=[0,_.Lt,1,_.y8,_.Q8,-1,1,_.WCp,_.ni,_.y8,-1,irG];var o05=[0,_.y8,[0,_.WCp,_.ni,[0,_.Q8]],_.DV,[0,_.y8,-1]];var uF=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(uF,_.O5);var a7l=[0,_.Q8,_.y8,-2,_.Lt,_.y8,_.Lt,_.y8,-2,1,_.DV];var zQ3=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(zQ3,_.O5);var XZq=[0,_.Lt];var cmg=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(cmg,_.O5);var n0q=[0,_.y8,o05,XZq,a7l,f7q];var KIY=_.Vv(cmg,n0q);var tuY=[0,tSX];var MKW=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(MKW,_.O5);var xll=[0,[1,3],HtG,_.y8,HtG];var hV=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(hV,_.O5);var LkI=[0,_.y8];var DlG=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(DlG,_.O5);var Hm=function(x){return _.A9(x,$ol,2,VJ)},SHq=function(x){var L=new DlG;
return _.bQ(L,2,VJ,x)},VJ=[1,
2];var Qs3=[0,VJ,_.ZV,LkI,_.ZV,Nf5,_.Oc,xll,1,_.y8,tuY];var JS$=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(JS$,_.O5);var OdY=function(x){var L=new JS$;return _.bQ(L,3,Kk5,x)},Kk5=[2,
3];var SB=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(SB,_.O5);var Zd$=function(x,L){return _.mR(x,2,L)},yS9=function(x,L){return _.mR(x,8,L)},IBq=function(x,L){return _.mR(x,3,L)};var Eoq=[0,_.y8,Qs3,n0q,_.jS,[0,[5,6,7],[0,_.y8,-2],[0,_.Lt,_.y8,_.Q8],[0,irG],[0,_.Q8,_.y8,-1,_.Pc,_.y8],_.ZV,[0,[0,_.Lt],_.y8,-1],_.ZV,[0,[3,4],_.y8,-1,_.ZV,[0,[0,_.y8,_.DV]],_.ZV,[0,[0,[0,[1,2],_.ZV,[0],_.ZV,[0]]]]],_.ZV,[0,_.y8]],_.jS,-1,[0,Kk5,_.y8,_.ZV,LkI,_.ZV,Nf5,_.Oc,xll,[0,tSX]]];var MpI=_.Vv(SB,Eoq),dls=_.hw(Eoq);var PB3=function(){_.Te.call(this)};
_.p(PB3,_.Te);PB3.prototype.init=function(){};
new PB3;var jss=_.xI(["data-"]),voW=_.xI(["aria-"]),VpI=_.xI(["aria-"]),QL=function(x,L){this.isLatencyMeasurementExperiment=x===void 0?!1:x;this.enableDialogA11yFix=L===void 0?!1:L;this.JSC$19597_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.HUr(_.Qb.location.href)},ZGs=function(x,L){x.onConsentPrimitiveShownCallback=L},h7X=function(x,L){return x.overriddenIframeLoadTimeout?x.overriddenIframeLoadTimeout:L!==void 0?L:5E3},ISX=function(x){if(x.prewarmPromise!==void 0)return x.prewarmPromise;
x.prewarmPromise=new Promise(function(L,D){JP(x,1);Hdq(x,uug(x,!0),go9(x));x.iframe?x.prewarmChannel||kTg(x,x.iframe,L):D(Error("uk"))});
x.prewarmPromise.finally(function(){x.prewarmPromise=void 0});
return x.prewarmPromise};
QL.prototype.showPrimitive=function(){var x=this;if(this.consentPromise!==void 0)return this.consentPromise;var L=Date.now();pxq(this,L);this.consentPromise=new Promise(function(D,S){JP(x,0,L);var Q=x.isDarkTheme();x.isLatencyMeasurementExperiment||x.initialLoadingStrategy===1||x.initialLoadingStrategy===2||(x.loadingBar||(x.loadingBar=RKu(getComputedStyle(document.body).direction==="rtl",Q),x.loadingBar.style.position="fixed",x.loadingBar.style.zIndex="15000"),document.body.appendChild(x.loadingBar));
Hdq(x,uug(x),go9(x));x.iframe?x.channel||mlq(x,x.iframe,D,S):(bdW(x),S(Error("uk")))});
this.consentPromise.finally(function(){x.consentPromise=void 0});
return this.consentPromise};
var mlq=function(x,L,D,S){var Q,J;_.I(function(Z){switch(Z.nextAddress){case 1:JP(x,3);Q=!1;setTimeout(function(){if(!Q){bdW(x);YHq(x);FkW(x);var y=rml(7).setErrorMessage("Timeout connecting to iframe");D(yS9(Zd$(new SB,SHq(y)),OdY(y)))}},h7X(x,ssI(x)));
if(!x.prewarmPromise){Z.jumpTo(2);break}_.HH(Z,3);return Z.yield(x.prewarmPromise,5);case 5:_.nH(Z,2);break;case 3:_.mW(Z),J=rml(4).setErrorMessage("Error while prewarming."),D(yS9(Zd$(new SB,SHq(J)),OdY(J)));case 2:x.prewarmChannel&&x.prewarmChannel.send(dls(IBq(new SB,x.consentPrimitiveRequest))),x.channel=_.dT({destination:x.JSC$19597_win,iframe:L,origin:TI9(x),channelName:"cpw",onEstablished:function(){Q=!0;bdW(x);x.isLatencyMeasurementExperiment||(x.JSC$19597_previousBodyOverflow=document.body.style.overflow,
x.JSC$19597_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,x.JSC$19597_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",x.enableDialogA11yFix&&window.addEventListener("blur",x.focusChangeListener));var y=x.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="";x.initialLoadingStrategy===2||x.initialLoadingStrategy===3?JP(x,4):JP(x,6);var E;(E=x.onConsentPrimitiveShownCallback)==null||E.call(x)},
onMessage:function(y){y=MpI(y.data);switch(_.BN(y,1)){case 1:YHq(x);var E=GVq(_.Mg(y,_.W2,7));E&&(x.initialLoadingStrategy!==2&&x.initialLoadingStrategy!==3||JP(x,6,E),JP(x,5,E));if(E=GVq(_.Mg(y,_.W2,6)))JP(x,7,E),JP(x,8);var P,v;((P=_.Mg(y,DlG,2))==null?void 0:_.TE(P,VJ))!==0&&((v=_.Mg(y,JS$,8))==null?void 0:_.TE(v,Kk5))!==0||S(Error("vk"));D(y);break;case 2:FkW(x)}}}),_.Y2(Z)}})},kTg=function(x,L,D){x.prewarmChannel=_.dT({destination:x.JSC$19597_win,
iframe:L,origin:TI9(x),channelName:"pwcp",onEstablished:function(){JP(x,2);D()}})},TI9=function(x){var L=_.RN(x.src).toString();
return L&&L.indexOf("://")<0&&L.indexOf("//")!==0?x.origin:_.HUr(L)},uug=function(x,L){L=L===void 0?!1:L;
var D,S=new Map([["origin",x.origin],["hl",(D=e7g(x))!=null?D:null]]);L&&S.set("pw","1");L=_.O([["cpr",x.consentPrimitiveRequest.serialize()]]);for(D=L.next();!D.done;D=L.next()){var Q=_.O(D.value);D=Q.next().value;Q=Q.next().value;S.set(D,Q)}x.isDarkTheme()&&S.set("color_scheme","dark");return _.vn(x.src,S)},bdW=function(x){x.isLatencyMeasurementExperiment||x.loadingBar&&document.body.removeChild(x.loadingBar)};
QL.prototype.getSrc=function(){var x=_.QY(this.origin),L;var D=(L=_.Mg(this.consentPrimitiveRequest,zQ3,3))==null?void 0:_.y1(L,1);L="consent.google.com";D=D?"/u/"+encodeURIComponent(D.toString()):"";(x==null?0:x.endsWith("youtube.com"))?L="consent.youtube.com":(x=x==null?void 0:x.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(L="consent.google."+((x[1]?"co.":"")+encodeURIComponent(x[2])));return _.Ti("https://"+L+"/signedin"+D+"/landing")};
var Hdq=function(x,L,D){x.iframe||(x.iframe=document.createElement("iframe"),x.iframe.style.width="100%",x.iframe.style.height="100%",D!==112496729&&(x.iframe.style.colorScheme="auto"),x.isLatencyMeasurementExperiment&&(x.iframe.style.display="none"),_.ci(x.iframe,L),x.iframe.setAttribute("jsname","C5o1O"),R7G(x.iframe),document.body.appendChild(x.iframe))},R7G=function(x){x.style.bottom="-200vh";
x.style.position="fixed";x.style.right="-200vw";x.style.border="";x.style.left="";x.style.top="";x.style.zIndex="";x.style.pointerEvents="none";x.style.visibility="hidden"},YHq=function(x){x.iframe&&(x.isLatencyMeasurementExperiment||(x.JSC$19597_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=x.JSC$19597_previousHtmlOverscroll),x.JSC$19597_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=x.JSC$19597_previousBodyOverscroll),x.JSC$19597_previousBodyOverflow!==
void 0&&(document.body.style.overflow=x.JSC$19597_previousBodyOverflow),x.enableDialogA11yFix&&GT3(x,!1)),R7G(x.iframe))};
QL.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(GT3(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var GT3=function(x,L){var D,S,Q=(D=x.iframe)==null?void 0:(S=D.parentElement)==null?void 0:S.children;if(Q)for(D=0;D<Q.length;D++)S=Q[D],S!==x.iframe&&(L?(S.hasAttribute("aria-hidden")&&_.KZ([_.ID(jss)],S,"data-old-aria-hidden",S.getAttribute("aria-hidden")),_.KZ([_.ID(voW)],S,"aria-hidden","true")):(S.removeAttribute("aria-hidden"),S.hasAttribute("data-old-aria-hidden")&&(_.KZ([_.ID(VpI)],S,"aria-hidden",S.getAttribute("data-old-aria-hidden")),S.removeAttribute("data-old-aria-hidden"))))},JP=function(x,
L,D){var S;
(S=x.latencyCallback)==null||S.call(x,{latencyType:L,timestampEpochMillis:D!=null?D:Date.now()})};var CB3=function(x,L,D){QL.call(this,L,D===void 0?!1:D);this.consentPrimitiveRequest=x;x=e7g(this);_.b6s(x);this.src=this.getSrc();var S;this.initialLoadingStrategy=(S=_.Mg(this.consentPrimitiveRequest,uF,4))==null?void 0:_.BN(S,4)},lB$;
_.p(CB3,QL);var OGq=function(x){var L=_.u("enable_primitive_dialog_aria_hide_siblings");x={request:x,enableDialogA11yFix:L===void 0?!1:L};lB$||(lB$=new CB3(x.request,x.isLatencyMeasurementExperiment||_.BN(x.request,1)===2,x.enableDialogA11yFix));return lB$},e7g=function(x){var L;
return(L=_.Mg(x.consentPrimitiveRequest,uF,4))==null?void 0:_.wy(L,1)},pxq=function(x,L){if(!_.bV(x.consentPrimitiveRequest,DU,5)){var D=x.consentPrimitiveRequest,S=new DU;
_.mR(D,5,S)}var Q;if((Q=_.Mg(x.consentPrimitiveRequest,DU,5))==null||_.Uhb(_.mi(Q,8))==null){var J;(J=_.Mg(x.consentPrimitiveRequest,DU,5))!=null&&_.Fd(J,8,L)}},go9=function(x){var L;
return(L=_.Mg(x.consentPrimitiveRequest,DU,5))==null?void 0:_.y1(L,1)};
CB3.prototype.isDarkTheme=function(){var x;return((x=_.Mg(this.consentPrimitiveRequest,uF,4))==null?void 0:_.BN(x,2))===2};
var ssI=function(x){var L;return((L=_.Mg(x.consentPrimitiveRequest,uF,4))==null?void 0:_.y1(L,5))||void 0},FkW=function(x){x.channel=void 0;
x.prewarmChannel=void 0;x.iframe&&(document.body.contains(x.iframe)&&document.body.removeChild(x.iframe),x.iframe=void 0);lB$=void 0},EvI=function(x){return QL.prototype.showPrimitive.call(x).then(function(L){return _.Mg(L,DlG,2)})};for(var Kk={},UlI=(Kk[64]="ma",Kk[73]="ogb",Kk[89]="cr",Kk[21]="test",Kk[0]="unkn",Kk[137]="con",Kk[155]="hl",Kk[78]="yt",Kk[171]="lp",Kk[172]="ap",Kk[177]="amo",Kk[178]="pqe",Kk[74]="gg",Kk[1]="gm",Kk[140]="am",Kk[193]="sc",Kk),wxs=_.O(Object.keys(UlI)),BIW=wxs.next();!BIW.done;BIW=wxs.next());var Wkl=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(Wkl,_.O5);var qHY=[0,[2,3,4],_.y8,PWY,HtG,_.Kt];var ASq=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(ASq,_.O5);var $lW=_.Vv(ASq,[0,_.Ia,_.Q8,_.y8,_.Q8,_.y8,qHY]);var rS9=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(rS9,_.O5);rS9.prototype.getCommand=function(){return _.BN(this,1)};
var NIW=function(){var x=new rS9;return _.ry(x,1,0)};var idl=_.hw([0,_.Ia,_.Q8,[0,_.y8,_.Q8,-1]]);var fBG=new _.Rw("s"),ooq=new _.Rw("t"),aB3=new _.Rw("u"),z7G=new _.Rw("v"),Xxl=function(x,L,D){_.Gm.call(this,fBG);this.mediaKey=x;this.photoUrl=L;this.photoSource=D};
_.p(Xxl,_.Gm);var cSX=function(){_.Gm.call(this,ooq)};
_.p(cSX,_.Gm);var no$=function(x){x=x===void 0?!1:x;_.Gm.call(this,aB3);this.isError=x};
_.p(no$,_.Gm);var tpg=function(){_.Gm.call(this,z7G)};
_.p(tpg,_.Gm);var xcg=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,Q4$=function(x){if(typeof x=="string"){if(x.charAt(0)==".")return LDs(x.substr(1));if(x.charAt(0)=="["){var L=xcg.exec(x);x=x.indexOf("=")==-1?void 0:L[3];return DcY(L[1],x)}return SLW(x)}return x},LDs=function(x){return function(L){return L.getAttribute&&_.QH(L,x)}},DcY=function(x,L){return function(D){return L!==void 0?D.getAttribute&&D.getAttribute(x)==L:D.hasAttribute&&D.hasAttribute(x)}},SLW=function(x){x=x.toUpperCase();
return function(L){return(L=L.tagName)&&L.toUpperCase()==x}},JsW=function(){return!0};var O$=function(x,L){this.JSC$19625_key_=x;this.JSC$19625_value_=L},ZU=function(x){throw Error("wk`"+x.JSC$19625_key_);
},KDY=function(x,L){return new TypeError("xk`"+L+"`"+x.JSC$19625_key_+"`"+x.JSC$19625_value_+"`"+typeof x.JSC$19625_value_)};
O$.prototype.string=function(x){return arguments.length==0?O05(this):Z0u(this,x)};
var Z0u=function(x,L){var D;return(D=ysq(x))!=null?D:L},O05=function(x){var L=ysq(x);
L===null&&ZU(x);return L},ysq=function(x){var L=x.JSC$19625_value_;
if(L==null)return null;if(typeof L==="string")return L;throw KDY(x,"string");};
O$.prototype.bool=function(x){if(arguments.length==0){var L=this.optionalBool();L===null&&ZU(this)}else{var D;L=(D=this.optionalBool())!=null?D:x}return L};
O$.prototype.optionalBool=function(){var x=this.JSC$19625_value_;if(x==null)return null;if(typeof x==="boolean")return x;if(typeof x==="string"){x=x.toLowerCase();if(x==="true"||x==="1")return!0;if(x==="false"||x==="0")return!1}throw KDY(this,"boolean");};
O$.prototype.number=function(x){if(arguments.length==0){var L=Iwq(this);L===null&&ZU(this)}else L=EtW(this,x);return L};
var EtW=function(x,L){var D;return(D=Iwq(x))!=null?D:L},Iwq=function(x){var L=x.JSC$19625_value_;
if(L==null)return null;if(typeof L==="number")return L;if(typeof L==="string"){var D=Number(L);if(!isNaN(D)&&(D!==0||L.trim().length!==0))return D}throw KDY(x,"number");};
O$.prototype.toString=function(){return O05(this)};
O$.prototype.enum=function(x,L){var D=!0,S=void 0,Q;for(Q in x){var J=x[Q];D&&(D=!1,S=typeof J==="number"?EtW(this,L):Z0u(this,L));if(J==S)return S}JSON.stringify(x);return S};
O$.prototype.array=function(x){if(arguments.length==0){var L=MHs(this);L===null&&ZU(this);return L}L=MHs(this);return L==null?x:L};
var MHs=function(x){var L=x.JSC$19625_value_;if(L==null)return null;Array.isArray(L)||(typeof L!=="string"?L=[L]:(L=L.trim(),L=L==""?[]:L.split(",").map(function(D){return D.trim()})));
return dcl(x,L)},dcl=function(x,L){var D=x.JSC$19625_key_+"[";
return Array.from(L,function(S,Q){return new O$(D+Q+"]",S)})};
O$.prototype.object=function(x){var L=this.JSC$19625_value_;if(L==null)return x===void 0&&ZU(this),x;if(typeof L==="object"&&L.constructor===Object){x={};var D=this.JSC$19625_key_+".",S;for(S in L)x[S]=new O$(D+S,L[S]);return x}throw KDY(this,"object");};var yL=function(x){this.list_=P_5(x)},P_5=function(x){if(x instanceof yL)x=x.list_;
else if(x[0]instanceof yL){for(var L=new Set,D=0;D<x.length;D++)for(var S=_.O(x[D].list_),Q=S.next();!Q.done;Q=S.next())L.add(Q.value);x=L}return[].concat(_.lP(x))};
_.K=yL.prototype;_.K.each=function(x,L,D){((D===void 0?0:D)?X$X:_.nm)(this.list_,x,L);return this};
_.K.size=function(){return this.list_.length};
_.K.isEmpty=function(){return this.list_.length===0};
_.K.get=function(x){return this.list_[x]||null};
_.K.el=function(){return this.list_[0]||null};
_.K.map=function(x,L){return _.Bn(this.list_,x,L)};
_.K.equals=function(x){return this===x||_.Xh(this.list_,x.list_)};
_.K.first=function(){return this.list_.length==0?null:new I9(this.list_[0])};
_.K.last=function(){return this.list_.length==0?null:new I9(this.list_[this.list_.length-1])};
_.K.find=function(x){var L=[];this.each(function(D){D=D.querySelectorAll(String(x));for(var S=0;S<D.length;S++)L.push(D[S])});
return new yL(L)};
_.K.parent=function(){var x=[];this.each(function(L){(L=L.parentElement||null)&&!_.AG(x,L)&&x.push(L)});
return new yL(x)};
_.K.children=function(){var x=[];this.each(function(L){L=_.oa(L);for(var D=0;D<L.length;D++)x.push(L[D])});
return new yL(x)};
_.K.filter=function(x){x=_.dy(this.list_,Q4$(x));return new yL(x)};
_.K.closest=function(x){var L=[],D=Q4$(x),S=function(Q){return _.D8(Q)&&D(Q)};
this.each(function(Q){(Q=_.rk(Q,S,!0))&&!_.AG(L,Q)&&L.push(Q)});
return new yL(L)};
_.K.next=function(x){return j4s(this,_.wsr,x)};
_.K.prev=function(x){return j4s(this,uql,x)};
var j4s=function(x,L,D){var S=[];var Q=D?Q4$(D):JsW;x.each(function(J){(J=L(J))&&Q(J)&&S.push(J)});
return new yL(S)};
yL.prototype.setClass=function(x){return this.each(function(L){_.Su(L,x)})};
var vtI=function(x,L){return x.each(function(D){_.OI(D,L)})},VHq=function(x,L){return x.each(function(D){_.JD(D,L)})};
yL.prototype.toggleClass=function(x,L){return L===!0?vtI(this,x):L===!1?VHq(this,x):this.each(function(D){_.QH(D,x)?_.JD(D,x):_.OI(D,x)})};
yL.prototype.setText=function(x){return this.each(function(L){_.aa(L,x)})};
var hjl=function(x){x.each(function(L){L.removeAttribute("aria-hidden")})};
yL.prototype.getStyle=function(x){if(this.list_.length>0){var L=this.list_[0],D=L.style[_.bz(x)];return typeof D!=="undefined"?D:L.style[_.Xsh(L,x)]||""}};
yL.prototype.getData=function(x){if(this.list_.length===0)return new O$(x,null);var L=LH$(this.list_[0],x);return new O$(x,L)};
yL.prototype.focus=function(x){try{x?this.el().focus(x):this.el().focus()}catch(L){}return this};
yL.prototype.click=function(){var x=_.Ac(this.el());if(x.createEvent){var L=x.createEvent("MouseEvents");L.initMouseEvent("click",!0,!0,x.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(L)}else x=x.createEventObject(),x.clientX=0,x.clientY=0,x.screenX=0,x.screenY=0,x.altKey=!1,x.ctrlKey=!1,x.shiftKey=!1,x.button=0,this.el().fireEvent("onclick",x)};
var E$=function(x,L,D,S){function Q(y,E,P){var v=E;E&&E.parentNode&&(v=E.cloneNode(!0));y(v,P)}
S=S===void 0?!1:S;if(x.list_.length==1){var J=x.list_[0],Z=function(y){return L(y,J)};
D instanceof yL?D.each(Z,void 0,S):Array.isArray(D)?(S?X$X:_.nm)(D,Z):Z(D);return x}return x.each(function(y){D instanceof yL?D.each(function(E){Q(L,E,y)}):Array.isArray(D)?_.nm(D,function(E){Q(L,E,y)}):Q(L,D,y)})};
_.K=yL.prototype;_.K.append=function(x){return E$(this,function(L,D){L&&D.appendChild(L)},x)};
_.K.appendTo=function(x){(new yL([x])).append(this);return this};
_.K.remove=function(){return E$(this,function(x,L){_.mg(L)},null)};
_.K.empty=function(){return E$(this,function(x,L){_.NC(L)},null)};
_.K.after=function(x,L){return E$(this,function(D,S){D&&_.ft(D,S)},x,!(L===void 0||L))};
_.K.before=function(x){return E$(this,function(L,D){L&&_.iW(L,D)},x)};
_.K.replaceWith=function(x){return E$(this,function(L,D){L&&_.Cq2(L,D)},x)};
_.K.toggle=function(x){return this.each(function(L){_.Lq(L,x)})};
_.K.show=function(){return this.toggle(!0)};
_.K.hide=function(){return this.toggle(!1)};
_.K.trigger=function(x,L,D,S){return H05(this,x,L,D,S)};
var H05=function(x,L,D,S,Q){return x.each(function(J){_.G3n(_.Ac(J)).triggerWizEventInternal(J,L,D,S,Q)})},I9=function(x,L){x instanceof yL&&(L=x.list_,x=null);
this.list_=P_5(x!=null?[x]:L)};
_.E9(I9,yL);_.K=I9.prototype;_.K.children=function(){return new yL(Array.prototype.slice.call(_.oa(this.list_[0])))};
_.K.each=function(x,L){x.call(L,this.list_[0],0);return this};
_.K.size=function(){return 1};
_.K.el=function(){return this.list_[0]};
_.K.first=function(){return this};var M3=function(x,L){L=L===void 0?window:L;this.hostId=x;this.JSC$19636_win=L;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$19636_previousHtmlOverscroll=this.JSC$19636_previousBodyOverscroll=this.JSC$19636_previousBodyOverflow="";this.eventTarget=new _.Bc;this.JSC$19636_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
kP$=function(x){var L=u4g(u4g(u4g(new gtW(78),"po"),"hppp"),"hhc");
L.authUser=Number(_.$6("SESSION_INDEX","0"));L.colorScheme=x;return L};
M3.prototype.getOrigin=function(){return this.origin?this.origin:_.vZ(_.ju(_.PZ(new _.Dg,this.JSC$19636_win.location.protocol),this.JSC$19636_win.location.hostname),this.JSC$19636_win.location.port).toString()};
M3.prototype.getTargetOrigin=function(){return _.vZ(_.ju(_.PZ(new _.Dg,this.scheme),this.domain),this.port)};
M3.prototype.preloadIframe=function(x){var L=this;if(this.iframeLoadPromise===void 0){var D=document.createElement("iframe");this.iframe=D;qY3(D,x);this.iframeLoadPromise=new Promise(function(S,Q){var J=!1,Z=function(y){y.stopPropagation();D.removeEventListener("error",Z);D.removeEventListener("securitypolicyviolation",Z);Q(Error("yk",{cause:y}))};
D.addEventListener("error",Z);D.addEventListener("securitypolicyviolation",Z);setTimeout(function(){J||Q(Error("zk"))},3E4);
pOq(L,D,function(){J=!0;D.removeEventListener("error",Z);D.removeEventListener("securitypolicyviolation",Z);S()})});
mc$(this);x=this.getTargetOrigin().toString();D.setAttribute("allow","camera "+x+"; display-capture "+x);this.parentElement.appendChild(D)}return this.iframeLoadPromise};
var FDg=function(x,L){var D,S;return _.I(function(Q){if(Q.nextAddress==1)return D=RKu(getComputedStyle(x.parentElement).direction==="rtl"),x.parentElement.appendChild(D),document.activeElement instanceof HTMLElement&&(x.elementToFocusAfterClose=document.activeElement),_.HH(Q,2),Q.yield(x.preloadIframe(L),4);if(Q.nextAddress!=2){x.parentElement.removeChild(D);x.JSC$19636_previousBodyOverflow=x.parentElement.style.overflow;x.JSC$19636_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
x.JSC$19636_previousBodyOverscroll=x.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";x.parentElement.style.overscrollBehavior="contain";x.parentElement.style.overflow="hidden";var J=x.iframe;J.style.bottom="0";J.style.border="none";J.style.height="100%";J.style.left="0";J.style.position=x.iframePosition;J.style.right="0";J.style.top="0";J.style.width="100%";J.style.zIndex="2202";J.setAttribute("aria-hidden","false");J.setAttribute("aria-modal","true");
x.opened=!0;b0q(x);return _.nH(Q,0)}S=_.mW(Q);x.parentElement.removeChild(D);wPY(x.isDarkTheme());YLW(x,!1);throw Error("Ak",{cause:S});})},YLW=function(x,L){L=L===void 0?!0:L;
x.iframe!==void 0&&(s4l(x),document.documentElement.style.overscrollBehavior=x.JSC$19636_previousHtmlOverscroll,x.parentElement.style.overscrollBehavior=x.JSC$19636_previousBodyOverscroll,x.parentElement.style.overflow=x.JSC$19636_previousBodyOverflow,x.elementToFocusAfterClose!==void 0&&(x.elementToFocusAfterClose.focus(),x.elementToFocusAfterClose=void 0),L?mc$(x):(x.parentElement.removeChild(x.iframe),x.iframe=void 0,x.iframeLoadPromise=void 0,x.mainChannel=void 0),x.opened=!1)},s4l=function(x){x.backgroundElementsAriaHiddenIsNull&&
(hjl(x.backgroundElementsAriaHiddenIsNull),x.backgroundElementsAriaHiddenIsNull=void 0);
x.backgroundElementsAriaHiddenIsFalse&&(x.backgroundElementsAriaHiddenIsFalse.each(function(L){L.setAttribute("aria-hidden","false")}),x.backgroundElementsAriaHiddenIsFalse=void 0);
x.backgroundElementsWithoutInert&&(x.backgroundElementsWithoutInert.each(function(L){L.removeAttribute("inert")}),x.backgroundElementsWithoutInert=void 0)},b0q=function(x){x.backgroundElementsAriaHiddenIsNull=(new I9(x.iframe.parentElement)).children().filter(function(L){return L.getAttribute("aria-hidden")===null&&L!==x.iframe});
x.backgroundElementsAriaHiddenIsNull.each(function(L){L.setAttribute("aria-hidden","true")});
x.backgroundElementsAriaHiddenIsFalse=(new I9(x.iframe.parentElement)).children().filter(function(L){return L.getAttribute("aria-hidden")==="false"&&L!==x.iframe});
x.backgroundElementsAriaHiddenIsFalse.each(function(L){L.setAttribute("aria-hidden","true")});
x.backgroundElementsWithoutInert=(new I9(x.iframe.parentElement)).children().filter(function(L){return!L.hasAttribute("inert")&&L!==x.iframe});
x.backgroundElementsWithoutInert.each(function(L){L.setAttribute("inert","true")})},mc$=function(x){x=x.iframe;
x.style.bottom="-1000px";x.style.position="fixed";x.style.right="-1000px";x.style.border="";x.style.height="";x.style.left="";x.style.top="";x.style.width="";x.style.zIndex="";x.setAttribute("aria-hidden","true");x.setAttribute("aria-modal","false")};
M3.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var gtW=function(x,L){M3.call(this,UlI[x],L);this.options=[];this.style=""};
_.p(gtW,M3);var T_I=function(x){x.style="youtube";return x},eju=function(x,L){x.eventTarget.listen(aB3,L);
return x},RjG=function(x,L){x.eventTarget.listen(fBG,L);
return x},u4g=function(x,L){x.options.push(L);
return x},GPl=function(x){var L=[x.getOrigin()];
x.ancestorOrigins&&L.push.apply(L,_.lP(x.ancestorOrigins));var D=new _.Dg(x.JSC$19636_win.location.href),S=x.startUrl?x.startUrl:x.options.includes("po")?"profile-picture/art":"profile-picture";L=kS(_.VH(x.getTargetOrigin(),S),"origin",L);x.startUrl&&_.xV(L,"startPath",x.startUrl);x.authUser>0&&_.xV(L,"authuser",x.authUser);x.pageId!==void 0&&_.xV(L,"pageId",x.pageId);_.xV(L,"hostId",x.hostId);x.jsMode!==void 0&&_.xV(L,"jsmode",x.jsMode);x.rectangleRatio!==void 0&&_.xV(L,"rectangleRatio",x.rectangleRatio);
x.options.length>0&&_.xV(L,"opts",x.options.join(","));try{for(var Q=_.O(["utm_source","utm_medium","utm_campaign","utm_content"]),J=Q.next();!J.done;J=Q.next()){var Z=J.value;_.cf(D,Z)&&_.xV(L,Z,_.cf(D,Z))}var y,E=(y=x.hl)!=null?y:_.cf(D,"hl");E!==void 0&&_.xV(L,"hl",E)}catch(P){if(!(P instanceof URIError))throw P;}x.colorScheme&&_.xV(L,"theme",x.colorScheme);x.style&&_.xV(L,"style",x.style);return L},C_Y=function(x,L){x.mainChannel=_.dT({destination:x.JSC$19636_win,
iframe:L,origin:x.getTargetOrigin().toString(),channelName:"ow",onMessage:function(D){D=$lW(D.data);if(L===x.iframe)switch(_.BN(D,1)){case 1:x.eventTarget.dispatchEvent(new no$);YLW(x);break;case 2:x.eventTarget.dispatchEvent(new Xxl(_.wy(D,4),_.wy(D,2),_.BN(D,5),_.Mg(D,Wkl,6)));break;case 0:var S;x.eventTarget.dispatchEvent(new cSX(_.wy(D,2),(S=_.BN(D,3))!=null?S:0));break;case 3:x.eventTarget.dispatchEvent(new no$(!0));YLW(x,!1);break;case 4:x.eventTarget.dispatchEvent(new tpg)}}})},pOq=function(x,
L,D){_.dT({destination:x.JSC$19636_win,
iframe:L,origin:_.vZ(_.ju(_.PZ(new _.Dg,x.scheme),x.domain),x.port).toString(),channelName:"owi",onMessage:function(S){L===x.iframe&&(D!==void 0&&D(),C_Y(x,L),x.opened&&x.mainChannel.send(idl(NIW())),S.reply(),pOq(x,L))}})};
gtW.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?M3.prototype.preloadIframe.call(this,GPl(this).toString()):this.iframeLoadPromise};
gtW.prototype.openPicker=function(x){var L=this;return _.I(function(D){if(D.nextAddress==1)return L.startUrl=x?x:L.options.includes("po")?"profile-picture/art":"profile-picture",D.yield(FDg(L,GPl(L).toString()),2);if(L.mainChannel){var S=L.mainChannel,Q=S.send;var J=NIW();J=_.ei(J,2,L.startUrl);Q.call(S,idl(J))}_.Y2(D)})};var lws=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(lws,_.O5);_.K=lws.prototype;_.K.getSize=function(){return Tc(this,1)};
_.K.setSize=function(x){return _.$I(this,1,x)};
_.K.getWidth=function(){return Tc(this,12)};
_.K.getHeight=function(){return Tc(this,13)};
_.K.setCenterCrop=function(x){return _.db(this,20,x)};
_.K.getHtml=function(){return _.Ci(this,4)};
_.K.getToken=function(){return _.ka(this,24)};
_.K.setToken=function(x){return _.ei(this,24,x)};
_.K.getBackgroundColor=function(){return Tc(this,87)};
_.K.hasBackgroundColor=function(){return _.QW(_.mi(this,87))!=null};
_.K.getStoryboardLevel=function(){return Tc(this,109)};var dj=function(x){this.JSC$19644_value_=void 0;this.childNodes_={};if(x){var L=_.m9G(x);x=_.df(x);for(var D=0;D<L.length;D++)this.set(L[D],x[D])}};
dj.prototype.set=function(x,L){Uc5(this,x,L,!1)};
dj.prototype.add=function(x,L){Uc5(this,x,L,!0)};
var Uc5=function(x,L,D,S){for(var Q=0;Q<L.length;Q++){var J=L.charAt(Q);x.childNodes_[J]||(x.childNodes_[J]=new dj);x=x.childNodes_[J]}if(S&&x.JSC$19644_value_!==void 0)throw Error("Bk`"+L);x.JSC$19644_value_=D},wOs=function(x,L){for(var D=0;D<L.length;D++)if(x=x.childNodes_[L.charAt(D)],!x)return;
return x};
dj.prototype.get=function(x){return(x=wOs(this,x))?x.JSC$19644_value_:void 0};
dj.prototype.getValues=function(){var x=[];B_I(this,x);return x};
var B_I=function(x,L){x.JSC$19644_value_!==void 0&&L.push(x.JSC$19644_value_);for(var D in x.childNodes_)B_I(x.childNodes_[D],L)};
dj.prototype.getKeys=function(x){var L=[];if(x){for(var D=this,S=0;S<x.length;S++){var Q=x.charAt(S);if(!D.childNodes_[Q])return[];D=D.childNodes_[Q]}WDI(D,x,L)}else WDI(this,"",L);return L};
var WDI=function(x,L,D){x.JSC$19644_value_!==void 0&&D.push(L);for(var S in x.childNodes_)WDI(x.childNodes_[S],L+S,D)};
_.K=dj.prototype;_.K.containsKey=function(x){return this.get(x)!==void 0};
_.K.containsValue=function(x){if(this.JSC$19644_value_===x)return!0;for(var L in this.childNodes_)if(this.childNodes_[L].containsValue(x))return!0;return!1};
_.K.clear=function(){this.childNodes_={};this.JSC$19644_value_=void 0};
_.K.remove=function(x){for(var L=this,D=[],S=0;S<x.length;S++){var Q=x.charAt(S);if(!L.childNodes_[Q])throw Error("Ck`"+x);D.push([L,Q]);L=L.childNodes_[Q]}x=L.JSC$19644_value_;for(delete L.JSC$19644_value_;D.length>0;)if(S=D.pop(),L=S[0],S=S[1],L.childNodes_[S].isEmpty())delete L.childNodes_[S];else break;return x};
_.K.clone=function(){return new dj(this)};
_.K.getCount=function(){return mCq(this.getValues())};
_.K.isEmpty=function(){return this.JSC$19644_value_===void 0&&_.wk.isEmpty(this.childNodes_)};var i$3=function(){if(!qLu){var x=qLu=new dj,L;for(L in AsG)x.add(L,AsG[L])}},qLu,PR=function(x,L){this.types=x;
this.setters=L},AsG={a:new PR([3,
0],[function(x,L){_.db(x,21,L)},
function(x,L){_.$I(x,56,L)}]),
al:new PR([3],[function(x,L){_.db(x,74,L)}]),
b:new PR([3,0],[function(x,L){_.db(x,23,L)},
function(x,L){_.$I(x,38,L)}]),
ba:new PR([0],[function(x,L){_.$I(x,85,L)}]),
bc:new PR([0],[function(x,L){_.$I(x,87,L)}]),
br:new PR([0],[function(x,L){_.$I(x,86,L)}]),
c:new PR([3,0],[function(x,L){_.db(x,2,L)},
function(x,L){_.$I(x,39,L)}]),
cc:new PR([3],[function(x,L){_.db(x,51,L)}]),
ci:new PR([3],[function(x,L){_.db(x,32,L)}]),
ckm:new PR([3],[function(x,L){_.db(x,104,L)}]),
cp:new PR([0],[function(x,L){_.$I(x,92,L)}]),
cr:new PR([3],[function(x,L){_.db(x,108,L)}]),
cv:new PR([0],[function(x,L){_.$I(x,94,L)}]),
d:new PR([3],[function(x,L){_.db(x,3,L)}]),
dc:new PR([5],[function(x,L){_.ei(x,99,L)}]),
df:new PR([3],[function(x,L){_.db(x,80,L)}]),
dv:new PR([3],[function(x,L){_.db(x,90,L)}]),
e:new PR([0],[function(x,L){_.$I(x,15,L)}]),
em:new PR([0],[function(x,L){_.$I(x,107,L)}]),
f:new PR([4],[function(x,L){_.ei(x,16,L)}]),
fg:new PR([3],[function(x,L){_.db(x,34,L)}]),
fh:new PR([3],[function(x,L){_.db(x,30,L)}]),
fm:new PR([3],[function(x,L){_.db(x,84,L)}]),
fo:new PR([2],[function(x,L){_.PW(x,79,_.iG(L))}]),
ft:new PR([3],[function(x,L){_.db(x,50,L)}]),
fv:new PR([3],[function(x,L){_.db(x,31,L)}]),
g:new PR([3],[function(x,L){_.db(x,14,L)}]),
gce:new PR([4],[function(x,L){_.ei(x,112,L)}]),
gd:new PR([3],[function(x,L){_.db(x,83,L)}]),
gm:new PR([3],[function(x,L){_.db(x,105,L)}]),
h:new PR([3,0],[function(x,L){_.db(x,4,L)},
function(x,L){_.$I(x,13,L)}]),
i:new PR([3],[function(x,L){_.db(x,22,L)}]),
ic:new PR([0],[function(x,L){_.$I(x,71,L)}]),
id:new PR([3],[function(x,L){_.db(x,70,L)}]),
il:new PR([3],[function(x,L){_.db(x,96,L)}]),
ip:new PR([3],[function(x,L){_.db(x,54,L)}]),
iv:new PR([0],[function(x,L){_.Fd(x,75,L)}]),
j:new PR([1],[function(x,L){L=L==null?L:tql(L);_.PW(x,29,L)}]),
k:new PR([3,0],[function(x,L){_.db(x,17,L)},
function(x,L){_.$I(x,42,L)}]),
l:new PR([0],[function(x,L){_.$I(x,44,L)}]),
lf:new PR([3],[function(x,L){_.db(x,65,L)}]),
lo:new PR([3],[function(x,L){_.db(x,97,L)}]),
m:new PR([0],[function(x,L){_.$I(x,63,L)}]),
md:new PR([3],[function(x,L){_.db(x,91,L)}]),
mm:new PR([4],[function(x,L){_.ei(x,81,L)}]),
mo:new PR([3],[function(x,L){_.db(x,73,L)}]),
mp:new PR([0],[function(x,L){_.$I(x,115,L)}]),
mv:new PR([3],[function(x,L){_.db(x,66,L)}]),
n:new PR([3],[function(x,L){x.setCenterCrop(L)}]),
nc:new PR([3],[function(x,L){_.db(x,55,L)}]),
nd:new PR([3],[function(x,L){_.db(x,53,L)}]),
ng:new PR([3],[function(x,L){_.db(x,95,L)}]),
ngm:new PR([3],[function(x,L){_.db(x,106,L)}]),
no:new PR([3],[function(x,L){_.db(x,37,L)}]),
ns:new PR([3],[function(x,L){_.db(x,40,L)}]),
nt0:new PR([4],[function(x,L){_.ei(x,36,L)}]),
ntm:new PR([3],[function(x,L){_.db(x,114,L)}]),
nu:new PR([3],[function(x,L){_.db(x,46,L)}]),
nw:new PR([3],[function(x,L){_.db(x,48,L)}]),
o:new PR([1,3],[function(x,L){L=L==null?L:tql(L);_.PW(x,7,L)},
function(x,L){_.db(x,27,L)}]),
p:new PR([3,0],[function(x,L){_.db(x,19,L)},
function(x,L){_.$I(x,43,L)}]),
pa:new PR([3],[function(x,L){_.db(x,61,L)}]),
pc:new PR([0],[function(x,L){_.$I(x,88,L)}]),
pd:new PR([3],[function(x,L){_.db(x,60,L)}]),
pf:new PR([3],[function(x,L){_.db(x,67,L)}]),
pg:new PR([3],[function(x,L){_.db(x,72,L)}]),
pi:new PR([2],[function(x,L){_.PW(x,76,_.iG(L))}]),
pp:new PR([3],[function(x,L){_.db(x,52,L)}]),
pt:new PR([4],[function(x,L){_.ei(x,111,L)}]),
q:new PR([4],[function(x,L){_.ei(x,28,L)}]),
r:new PR([3,0],[function(x,L){_.db(x,6,L)},
function(x,L){_.$I(x,26,L)}]),
ra:new PR([3],[function(x,L){_.db(x,103,L)}]),
rf:new PR([3],[function(x,L){_.db(x,100,L)}]),
rg:new PR([3],[function(x,L){_.db(x,59,L)}]),
rh:new PR([3],[function(x,L){_.db(x,49,L)}]),
rj:new PR([3],[function(x,L){_.db(x,57,L)}]),
ro:new PR([2],[function(x,L){_.PW(x,78,_.iG(L))}]),
rp:new PR([3],[function(x,L){_.db(x,58,L)}]),
rw:new PR([3],[function(x,L){_.db(x,35,L)}]),
rwa:new PR([3],[function(x,L){_.db(x,64,L)}]),
rwu:new PR([3],[function(x,L){_.db(x,41,L)}]),
s:new PR([3,0],[function(x,L){_.db(x,33,L)},
function(x,L){x.setSize(L)}]),
sb:new PR([0],[function(x,L){_.$I(x,110,L)}]),
sc:new PR([0],[function(x,L){_.$I(x,89,L)}]),
sg:new PR([3],[function(x,L){_.db(x,82,L)}]),
sl:new PR([0],[function(x,L){_.$I(x,109,L)}]),
sm:new PR([3],[function(x,L){_.db(x,93,L)}]),
t:new PR([4],[function(x,L){x.setToken(L)}]),
tm:new PR([3],[function(x,L){_.db(x,113,L)}]),
u:new PR([3],[function(x,L){_.db(x,18,L)}]),
ut:new PR([3],[function(x,L){_.db(x,45,L)}]),
v:new PR([0],[function(x,L){_.$I(x,62,L)}]),
vb:new PR([0],[function(x,L){_.Fd(x,68,L)}]),
vf:new PR([4],[function(x,L){_.ei(x,102,L)}]),
vl:new PR([0],[function(x,L){_.Fd(x,69,L)}]),
vm:new PR([3],[function(x,L){_.db(x,98,L)}]),
w:new PR([0],[function(x,L){_.$I(x,12,L)}]),
x:new PR([0],[function(x,L){_.$I(x,9,L)}]),
y:new PR([0],[function(x,L){_.$I(x,10,L)}]),
ya:new PR([2],[function(x,L){_.PW(x,77,_.iG(L))}]),
z:new PR([0],[function(x,L){_.$I(x,11,L)}])};
i$3.prototype.parse=function(x){var L=new lws,D=new lws;if(x=="")x=!0;else{x=x.split("-");for(var S=!0,Q=0;Q<x.length;Q++){var J=x[Q];if(J.length==0)S=!1;else{var Z=J,y=!1;var E=Z;var P=Z.charAt(0);P!=P.toLowerCase()&&(y=!0,E=Z.charAt(0).toLowerCase()+Z.substring(1));var v=qLu;for(P=1;P<=E.length;++P){var V=v,h=E.substring(0,P);if(h.length==0?V.isEmpty():!wOs(V,h))break}E=P==1?null:(E=v.get(E.substring(0,P-1)))?{option:Z.substring(0,P-1),value:Z.substring(P-1),signed:y,attributes:E}:null;if(E){Z=
[];y=[];P=!1;for(v=0;v<E.attributes.types.length;v++){V=E.attributes.types[v];var H=E.value;h=Q;if(E.signed&&V==1)for(var k=H.length;k<12&&h<x.length-1;)H+="-"+x[h+1],k=H.length,++h;else if(V==2)for(;h<x.length-1&&x[h+1].match(/^[\d\.]/);)H+="-"+x[h+1],++h;k=E.attributes.setters[v];H=$cq(this,V)(E.option,H,L,D,k);if(H===null){P=!0;Q=h;break}else Z.push(V),y.push(H)}if(!P)for(E=0;E<y.length;E++)v=Z[E],H=y[E],rsu(this,v)(J,H);S=S&&P}else S=!1}}x=S}return new N_9(L,D,x)};
var jB=function(x,L,D,S,Q,J){Q(D,L);x=x.charAt(0);J=J(x==x.toUpperCase());Q(S,J)};
_.K=i$3.prototype;_.K.parseAndSetIntOption_=function(x,L,D,S,Q){if(L=="")return 0;isFinite(L)&&(L=String(L));L=typeof L==="string"?/^\s*-?0x/i.test(L)?parseInt(L,16):parseInt(L,10):NaN;if(isNaN(L))return 1;jB(x,L,D,S,Q,Number);return null};
_.K.logIntParseError_=function(){};
_.K.parseAndSetFloatOption_=function(x,L,D,S,Q){if(L=="")return 0;var J=Number(L);L=J==0&&_.Ew(L)?NaN:J;if(isNaN(L))return 1;jB(x,L,D,S,Q,Number);return null};
_.K.logFloatParseError_=function(){};
_.K.parseAndSetBoolOption_=function(x,L,D,S,Q){if(L!="")return 2;jB(x,!0,D,S,Q,Boolean);return null};
_.K.logBoolParseError_=function(){};
_.K.parseAndSetStringOption_=function(x,L,D,S,Q){if(L=="")return 0;jB(x,L,D,S,Q,function(J){return J?"1":""});
return null};
_.K.logStringParseError_=function(){};
_.K.parseAndSetUint64Base64Option_=function(x,L,D,S,Q){if(L=="")return 0;jB(x,L,D,S,Q,function(J){return J?1:0});
return null};
var $cq=function(x,L){switch(L){case 0:return(0,_.e1)(x.parseAndSetIntOption_,x);case 2:return(0,_.e1)(x.parseAndSetFloatOption_,x);case 3:return(0,_.e1)(x.parseAndSetBoolOption_,x);case 4:return(0,_.e1)(x.parseAndSetStringOption_,x);case 1:return(0,_.e1)(x.parseAndSetUint64Base64Option_,x);default:return function(){}}},rsu=function(x,L){switch(L){case 0:return(0,_.e1)(x.logIntParseError_,x);
case 2:return(0,_.e1)(x.logFloatParseError_,x);case 3:return(0,_.e1)(x.logBoolParseError_,x);case 4:case 1:return(0,_.e1)(x.logStringParseError_,x);default:return function(){}}},N_9=function(x,L,D){this.valueProto_=x;
this.signatureFlagProto_=L;this.JSC$19656_valid_=D};
N_9.prototype.isValid=function(){return this.JSC$19656_valid_};var AqY=function(x){this.JSC$19657_parser_=null;this.JSC$19657_components_=[];this.JSC$19657_parsedOptions_=null;i0g(this,x)},fwW=function(x){x.JSC$19657_parser_==null&&(x.JSC$19657_parser_=new i$3);
return x.JSC$19657_parser_},i0g=function(x,L){x.JSC$19657_parsedOptions_=L?typeof L==="string"?fwW(x).parse(L):L:fwW(x).parse("")},vR=function(x,L){return x==L?!1:!0};
_.K=AqY.prototype;_.K.JSC$19659_setCrop=function(x){x=x||void 0;var L=this.JSC$19657_parsedOptions_,D=L.valueProto_;vR(x,_.Ci(D,2),_.Ci(L.signatureFlagProto_,2))&&_.db(D,2,x);return this};
_.K.JSC$19659_setCircleCrop=function(x){x=x||void 0;var L=this.JSC$19657_parsedOptions_,D=L.valueProto_;vR(x,se(D,51),se(L.signatureFlagProto_,51))&&_.db(D,51,x);return this};
_.K.JSC$19659_setImageCrop=function(x){x=x||void 0;var L=this.JSC$19657_parsedOptions_,D=L.valueProto_;vR(x,se(D,32),se(L.signatureFlagProto_,32))&&_.db(D,32,x);return this};
_.K.JSC$19659_setHeight=function(x){var L=this.JSC$19657_parsedOptions_,D=L.valueProto_;vR(x,D.getHeight(),L.signatureFlagProto_.getHeight())&&_.$I(D,13,x);return this};
_.K.setCenterCrop=function(x){x=x||void 0;var L=this.JSC$19657_parsedOptions_,D=L.valueProto_;vR(x,_.Ci(D,20),_.Ci(L.signatureFlagProto_,20))&&D.setCenterCrop(x);return this};
_.K.JSC$19659_setSmartCrop=function(x){x=x||void 0;var L=this.JSC$19657_parsedOptions_,D=L.valueProto_;vR(x,_.Ci(D,19),_.Ci(L.signatureFlagProto_,19))&&_.db(D,19,x);return this};
_.K.JSC$19659_setPad=function(x){x=x||void 0;var L=this.JSC$19657_parsedOptions_,D=L.valueProto_;vR(x,se(D,60),se(L.signatureFlagProto_,60))&&_.db(D,60,x);return this};
_.K.JSC$19659_setSmartCropUseFace=function(x){x=x||void 0;var L=this.JSC$19657_parsedOptions_,D=L.valueProto_;vR(x,_.Ci(D,67),_.Ci(L.signatureFlagProto_,67))&&_.db(D,67,x);return this};
_.K.JSC$19659_setSmartCropNoClip=function(x){x=x||void 0;var L=this.JSC$19657_parsedOptions_,D=L.valueProto_;vR(x,_.Ci(D,52),_.Ci(L.signatureFlagProto_,52))&&_.db(D,52,x);return this};
_.K.setSize=function(x){var L=this.JSC$19657_parsedOptions_,D=L.valueProto_;vR(x,D.getSize(),L.signatureFlagProto_.getSize())&&D.setSize(x);return this};
_.K.setToken=function(x){x=x||void 0;var L=this.JSC$19657_parsedOptions_,D=L.valueProto_;vR(x,D.getToken(),L.signatureFlagProto_.getToken())&&D.setToken(x);return this};
_.K.JSC$19659_setWidth=function(x){var L=this.JSC$19657_parsedOptions_,D=L.valueProto_;vR(x,D.getWidth(),L.signatureFlagProto_.getWidth())&&_.$I(D,12,x);return this};
_.K.clearOptions=function(){i0g(this,"");return this};
_.K.build=function(){this.JSC$19657_components_.length=0;var x=this.JSC$19657_parsedOptions_,L=x.valueProto_;x=x.signatureFlagProto_;VL(this,"s",L.getSize(),x.getSize());VL(this,"w",L.getWidth(),x.getWidth());hP(this,"c",_.Ci(L,2),_.Ci(x,2));hP(this,"d",_.Ci(L,3),_.Ci(x,3));VL(this,"h",L.getHeight(),x.getHeight());hP(this,"s",se(L,33),se(x,33));hP(this,"h",L.getHtml(),x.getHtml());hP(this,"p",_.Ci(L,19),_.Ci(x,19));hP(this,"pp",_.Ci(L,52),_.Ci(x,52));hP(this,"pf",_.Ci(L,67),_.Ci(x,67));hP(this,"n",
_.Ci(L,20),_.Ci(x,20));VL(this,"r",Tc(L,26),Tc(x,26));hP(this,"r",_.Ci(L,6),_.Ci(x,6));hP(this,"o",se(L,27),se(x,27));var D=_.GE(L,7,_.pi);HR(this,"o",D,_.GE(x,7,_.pi));D=_.GE(L,29,_.pi);HR(this,"j",D,_.GE(x,29,_.pi));VL(this,"x",Tc(L,9),Tc(x,9));VL(this,"y",Tc(L,10),Tc(x,10));VL(this,"z",Tc(L,11),Tc(x,11));hP(this,"g",_.Ci(L,14),_.Ci(x,14));VL(this,"e",Tc(L,15),Tc(x,15));HR(this,"f",_.ka(L,16),_.ka(x,16));hP(this,"k",se(L,17),se(x,17));hP(this,"u",se(L,18),!0);hP(this,"ut",se(L,45),!0);hP(this,"i",
se(L,22),!0);hP(this,"a",se(L,21),se(x,21));hP(this,"b",_.Ci(L,23),_.Ci(x,23));VL(this,"b",Tc(L,38),Tc(x,38));VL(this,"c",Tc(L,39),Tc(x,39),16,8);HR(this,"q",_.ka(L,28),_.ka(x,28));hP(this,"fh",se(L,30),se(x,30));hP(this,"fv",se(L,31),se(x,31));hP(this,"fg",_.Ci(L,34),_.Ci(x,34));hP(this,"ci",se(L,32),se(x,32));HR(this,"t",L.getToken(),x.getToken());HR(this,"nt0",_.ka(L,36),_.ka(x,36));hP(this,"rw",_.Ci(L,35),_.Ci(x,35));hP(this,"rwu",_.Ci(L,41),_.Ci(x,41));hP(this,"rwa",_.Ci(L,64),_.Ci(x,64));hP(this,
"nw",_.Ci(L,48),_.Ci(x,48));hP(this,"rh",_.Ci(L,49),_.Ci(x,49));hP(this,"no",_.Ci(L,37),_.Ci(x,37));hP(this,"ns",se(L,40),se(x,40));VL(this,"k",Tc(L,42),Tc(x,42));VL(this,"p",Tc(L,43),Tc(x,43));VL(this,"l",Tc(L,44),Tc(x,44));VL(this,"v",Tc(L,62),Tc(x,62));hP(this,"nu",se(L,46),se(x,46));hP(this,"ft",se(L,50),se(x,50));hP(this,"cc",se(L,51),se(x,51));hP(this,"nd",se(L,53),se(x,53));hP(this,"ip",se(L,54),se(x,54));hP(this,"nc",se(L,55),se(x,55));VL(this,"a",Tc(L,56),Tc(x,56));hP(this,"rj",se(L,57),
se(x,57));hP(this,"rp",se(L,58),se(x,58));hP(this,"rg",se(L,59),se(x,59));hP(this,"pd",se(L,60),se(x,60));hP(this,"pa",se(L,61),se(x,61));VL(this,"m",Tc(L,63),Tc(x,63));VL(this,"vb",eL(L,68),eL(x,68));VL(this,"vl",eL(L,69),eL(x,69));hP(this,"lf",se(L,65),se(x,65));hP(this,"mv",se(L,66),se(x,66));hP(this,"id",se(L,70),se(x,70));VL(this,"ic",Tc(L,71),!0);hP(this,"pg",_.Ci(L,72),_.Ci(x,72));hP(this,"mo",se(L,73),se(x,73));hP(this,"al",se(L,74),se(x,74));VL(this,"iv",eL(L,75),eL(x,75));VL(this,"pi",RA(L,
76),RA(x,76));VL(this,"ya",RA(L,77),RA(x,77));VL(this,"ro",RA(L,78),RA(x,78));VL(this,"fo",RA(L,79),RA(x,79));hP(this,"df",se(L,80),se(x,80));HR(this,"mm",_.ka(L,81),_.ka(x,81));hP(this,"sg",se(L,82),se(x,82));hP(this,"gd",se(L,83),se(x,83));hP(this,"fm",se(L,84),se(x,84));VL(this,"ba",Tc(L,85),Tc(x,85));VL(this,"br",Tc(L,86),Tc(x,86));VL(this,"bc",L.getBackgroundColor(),x.getBackgroundColor(),16,8);VL(this,"pc",Tc(L,88),Tc(x,88),16,8);VL(this,"sc",Tc(L,89),Tc(x,89),16,8);hP(this,"dv",se(L,90),se(x,
90));hP(this,"md",se(L,91),se(x,91));VL(this,"cp",Tc(L,92),Tc(x,92));hP(this,"sm",se(L,93),se(x,93));VL(this,"cv",Tc(L,94),Tc(x,94));hP(this,"ng",se(L,95),se(x,95));hP(this,"il",se(L,96),se(x,96));hP(this,"lo",se(L,97),se(x,97));hP(this,"vm",se(L,98),se(x,98));HR(this,"dc",_.ka(L,99),_.ka(x,99));hP(this,"rf",se(L,100),se(x,100));HR(this,"vf",_.ka(L,102),_.ka(x,102));hP(this,"ra",_.Ci(L,103),_.Ci(x,103));hP(this,"ckm",se(L,104),se(x,104));hP(this,"gm",se(L,105),se(x,105));hP(this,"ngm",se(L,106),se(x,
106));VL(this,"em",Tc(L,107),Tc(x,107));hP(this,"cr",se(L,108),se(x,108));VL(this,"sl",L.getStoryboardLevel(),x.getStoryboardLevel());VL(this,"sb",Tc(L,110),Tc(x,110));HR(this,"pt",_.ka(L,111),_.ka(x,111));HR(this,"gce",_.ka(L,112),_.ka(x,112));hP(this,"tm",se(L,113),se(x,113));hP(this,"ntm",se(L,114),se(x,114));VL(this,"mp",Tc(L,115),Tc(x,115));return this.JSC$19657_components_.join("-")};
var VL=function(x,L,D,S,Q,J){if(D!=null){var Z=Q==void 0||Q!=10&&Q!=16?10:Q;D=Number(D).toString(Z);Q=new vNl;Q.append(Z==16?"0x":"");Z=Q.append;J==void 0?J="":(J-=D.length,J=J<=0?"":(0,_.gH2)("0",J));Z.call(Q,J);Q.append(D);otl(x,L,Q.toString(),!!Number(S))}},hP=function(x,L,D,S){D&&otl(x,L,"",!!S)},HR=function(x,L,D,S){D&&otl(x,L,String(D),!!Number(S))},otl=function(x,L,D,S){S&&(L=L.charAt(0).toUpperCase()+L.substring(1));
x.JSC$19657_components_.push(L+D)};_.E9(sC,AqY);_.K=sC.prototype;_.K.JSC$19659_setCrop=function(x){x&&ua(this);return sC.superClass_.JSC$19659_setCrop.call(this,x)};
_.K.JSC$19659_setHeight=function(x){x=x==null||x<0?void 0:x;x!=null&&this.setSize();return sC.superClass_.JSC$19659_setHeight.call(this,x)};
_.K.JSC$19659_setImageCrop=function(x){x&&ua(this);return sC.superClass_.JSC$19659_setImageCrop.call(this,x)};
_.K.JSC$19659_setCircleCrop=function(x){x&&ua(this);return sC.superClass_.JSC$19659_setCircleCrop.call(this,x)};
_.K.setSize=function(x){_.on(x)&&(x=Math.max(x.width,x.height));x=x==null||x<0?void 0:x;x!=null&&(this.JSC$19659_setWidth(),this.JSC$19659_setHeight());return sC.superClass_.setSize.call(this,x)};
_.K.JSC$19659_setSmartCrop=function(x){x&&ua(this);return sC.superClass_.JSC$19659_setSmartCrop.call(this,x)};
_.K.JSC$19659_setSmartCropNoClip=function(x){x&&ua(this);return sC.superClass_.JSC$19659_setSmartCropNoClip.call(this,x)};
_.K.JSC$19659_setSmartCropUseFace=function(x){x&&ua(this);return sC.superClass_.JSC$19659_setSmartCropUseFace.call(this,x)};
_.K.setCenterCrop=function(x){x&&ua(this);return sC.superClass_.setCenterCrop.call(this,x)};
_.K.JSC$19659_setPad=function(x){x&&ua(this);return sC.superClass_.JSC$19659_setPad.call(this,x)};
_.K.JSC$19659_setWidth=function(x){x=x==null||x<0?void 0:x;x!=null&&this.setSize();return sC.superClass_.JSC$19659_setWidth.call(this,x)};
var aw3=function(x){x.clearOptions();var L=x.JSC$19657_parsedOptions_,D=L.valueProto_;vR(!0,_.Ci(D,3),_.Ci(L.signatureFlagProto_,3))&&_.db(D,3,!0);return x},ua=function(x){x.setCenterCrop();
x.JSC$19659_setCircleCrop();x.JSC$19659_setCrop();x.JSC$19659_setImageCrop();x.JSC$19659_setPad();x.JSC$19659_setSmartCrop();x.JSC$19659_setSmartCropNoClip();x.JSC$19659_setSmartCropUseFace()};
sC.prototype.build=function(){var x=this.JSC$19657_parsedOptions_.valueProto_;se(x,18)||se(x,45)?x.getSize()||this.setSize(0):(x=this.JSC$19657_parsedOptions_.valueProto_,x.getSize()||x.getWidth()||x.getHeight()||(this.setSize(),this.JSC$19659_setHeight(),this.JSC$19659_setWidth(),ua(this)));return sC.superClass_.build.call(this)};var zjY=/^[^\/]*\/\//,gj=function(x,L){L=L===void 0?!1:L;this.original_=x;this.originalPrefix_="";(x=this.original_.match(zjY))&&x[0]?(this.originalPrefix_=x[0],x=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):x="http://"+this.original_;this.uri_=_.ze(x,!0);this.isFreeformUrl_=L;this.JSC$19663_valid_=!0;this.obfuscated_=!1},XOg=function(x,L){x.JSC$19665_pathPrefix_=x.JSC$19665_pathPrefix_?x.JSC$19665_pathPrefix_+("/"+L):L},kw=function(x){if(x.JSC$19665_components_==
void 0){var L=x.uri_.getPath().substring(1);
x.JSC$19665_pathPrefix_=null;if(x.isFreeformUrl_){x.JSC$19665_components_=[];if((L.match(/=/g)||[]).length>1)return x.JSC$19663_valid_=!1,x.JSC$19665_components_;var D=L.indexOf("=");D!=-1?(x.JSC$19665_components_.push(L.substr(0,D)),x.JSC$19665_components_.push(L.substr(D+1))):x.JSC$19665_components_.push(L);return x.JSC$19665_components_}x.JSC$19665_components_=L.split("/");L=x.JSC$19665_components_.length;L>2&&x.JSC$19665_components_[0]=="u"&&(XOg(x,x.JSC$19665_components_[0]+"/"+x.JSC$19665_components_[1]),
x.JSC$19665_components_.shift(),x.JSC$19665_components_.shift(),L-=2);if(L==0||L==4||L>7)return x.JSC$19663_valid_=!1,x.JSC$19665_components_;if(L==2)XOg(x,x.JSC$19665_components_[0]);else if(x.JSC$19665_components_[0]=="image")XOg(x,x.JSC$19665_components_[0]);else if(L==7||L==3)return x.JSC$19663_valid_=!1,x.JSC$19665_components_;if(L<=3){x.obfuscated_=!0;L==3&&(XOg(x,x.JSC$19665_components_[1]),x.JSC$19665_components_.shift(),--L);--L;D=x.JSC$19665_components_[L];var S=D.indexOf("=");S!=-1&&(x.JSC$19665_components_[L]=
D.substr(0,S),x.JSC$19665_components_.push(D.substr(S+1)))}}return x.JSC$19665_components_};
gj.prototype.isValid=function(){kw(this);return this.JSC$19663_valid_};
gj.prototype.isObfuscated=function(){kw(this);return this.obfuscated_};
var cs$=function(x){kw(x);return x.isFreeformUrl_},pk=function(x){kw(x);
x.JSC$19665_pathPrefix_==void 0&&(x.JSC$19665_pathPrefix_=null);return x.JSC$19665_pathPrefix_},ntX=function(x){switch(kw(x).length){case 7:return!0;
case 6:return pk(x)==null;case 5:return!1;case 3:return!0;case 2:return pk(x)==null;case 1:return!1;default:return!1}},mQ=function(x,L){if(cs$(x))a:{switch(L){case 7:L=0;
break;case 4:if(!ntX(x)){x=null;break a}L=1;break;default:x=null;break a}x=kw(x)[L]}else if(x.isObfuscated())a:{var D=pk(x)!=null?1:0;switch(L){case 6:L=D;break;case 4:if(!ntX(x)){x=null;break a}L=1+D;break;default:x=null;break a}x=kw(x)[L]}else a:{D=pk(x)!=null?1:0;switch(L){case 0:L=D;break;case 1:L=1+D;break;case 2:L=2+D;break;case 3:L=3+D;break;case 4:if(!ntX(x)){x=null;break a}L=4+D;break;case 5:L=ntX(x)?1:0;L=4+D+L;break;default:x=null;break a}x=kw(x)[L]}return x};
gj.prototype.getOptions=function(){this.options_==void 0&&(this.options_=mQ(this,4));return this.options_};var Ncl=function(){};
Ncl.prototype.parse=function(x,L){return new $$X(x,L===void 0?!1:L)};
var $$X=function(x,L){gj.call(this,x,L===void 0?!1:L)};
_.p($$X,gj);_.E9(Tx,sC);var rqs;Tx.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
Tx.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var x=Tx.superClass_.build.call(this),L=[];pk(this.parsedImageUrl_)!=null&&L.push(pk(this.parsedImageUrl_));var D=cs$(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var S=this.parsedImageUrl_;S.obfuscatedData_==void 0&&(S.obfuscatedData_=mQ(S,6));L.push(S.obfuscatedData_+(x?"="+x:""))}else if(D){S=L.push;var Q=this.parsedImageUrl_;Q.freeformUrlPath_===void 0&&(Q.freeformUrlPath_=mQ(Q,
7));S.call(L,Q.freeformUrlPath_);x&&L.push(x)}else S=L.push,Q=this.parsedImageUrl_,Q.obfuscatedGaiaId_==void 0&&(Q.obfuscatedGaiaId_=mQ(Q,0)),S.call(L,Q.obfuscatedGaiaId_),S=L.push,Q=this.parsedImageUrl_,Q.photoId_==void 0&&(Q.photoId_=mQ(Q,1)),S.call(L,Q.photoId_),S=L.push,Q=this.parsedImageUrl_,Q.imageVersion_==void 0&&(Q.imageVersion_=mQ(Q,2)),S.call(L,Q.imageVersion_),S=L.push,Q=this.parsedImageUrl_,Q.signature_==void 0&&(Q.signature_=mQ(Q,3)),S.call(L,Q.signature_),x&&L.push(x),x=L.push,S=this.parsedImageUrl_,
S.filename_==void 0&&(S.filename_=mQ(S,5)),x.call(L,S.filename_);L=D?L.join("="):L.join("/");L=_.ze(this.protocolPrefix_+this.JSC$19671_domain_+"/"+L+(this.JSC$19671_query_?"?"+this.JSC$19671_query_:"")).toString();L.startsWith("%3a//")&&(L=L.replace("%3a//","://"));return L};var tH9=_.xI(["viewBox"]),xYg=_.xI(["width"]),L9q=_.xI(["height"]),DY$=_.xI(["fill"]),SFY=_.xI(["id"]),Q_Y=_.xI(["x"]),J4$=_.xI(["y"]);f4X.prototype.getLength=function(){return this.parsedData.length};
f4X.prototype.write=function(x){for(var L=0,D=this.parsedData.length;L<D;L++)x.put(this.parsedData[L],8)};
var trI=function(x,L){var D=new f4X(L);x.dataList.push(D);D=x.errorCorrectLevel;var S=1,Q=encodeURI(L).toString().replace(/%[0-9a-fA-F]{2}/g,"a");L=Q.length+(Q.length!=L?3:0);Q=0;for(var J=ba.length;Q<=J;Q++){var Z=0;switch(D){case 1:Z=ba[Q][0];break;case 0:Z=ba[Q][1];break;case 3:Z=ba[Q][2];break;case 2:Z=ba[Q][3]}if(L<=Z)break;else S++}if(S>ba.length)throw Error("Lk");x.typeNumber=S;x.dataCache=null};
o9W.prototype.isDark=function(x,L){if(x<0||this.moduleCount<=x||L<0||this.moduleCount<=L)throw Error("Dk`"+x+"`"+L);return this.modules[x][L]};
for(var xLl=function(x,L,D){x.moduleCount=x.typeNumber*4+17;x.modules=Array(x.moduleCount);for(var S=0;S<x.moduleCount;S++){x.modules[S]=Array(x.moduleCount);for(var Q=0;Q<x.moduleCount;Q++)x.modules[S][Q]=null}K9$(x,0,0);K9$(x,x.moduleCount-7,0);K9$(x,0,x.moduleCount-7);S=O15[x.typeNumber-1];for(Q=0;Q<S.length;Q++)for(var J=0;J<S.length;J++){var Z=S[Q],y=S[J];if(x.modules[Z][y]==null)for(var E=-2;E<=2;E++)for(var P=-2;P<=2;P++)x.modules[Z+E][y+P]=E==-2||E==2||P==-2||P==2||E==0&&P==0?!0:!1}for(S=
8;S<x.moduleCount-8;S++)x.modules[S][6]==null&&(x.modules[S][6]=S%2==0);for(S=8;S<x.moduleCount-8;S++)x.modules[6][S]==null&&(x.modules[6][S]=S%2==0);S=x.errorCorrectLevel<<3|D;for(Q=S<<10;Yw(Q)-Yw(1335)>=0;)Q^=1335<<Yw(Q)-Yw(1335);S=(S<<10|Q)^21522;for(Q=0;Q<15;Q++)J=!L&&(S>>Q&1)==1,Q<6?x.modules[Q][8]=J:Q<8?x.modules[Q+1][8]=J:x.modules[x.moduleCount-15+Q][8]=J;for(Q=0;Q<15;Q++)J=!L&&(S>>Q&1)==1,Q<8?x.modules[8][x.moduleCount-Q-1]=J:Q<9?x.modules[8][15-Q-1+1]=J:x.modules[8][15-Q-1]=J;x.modules[x.moduleCount-
8][8]=!L;if(x.typeNumber>=7){S=x.typeNumber;for(Q=S<<12;Yw(Q)-Yw(7973)>=0;)Q^=7973<<Yw(Q)-Yw(7973);S=S<<12|Q;for(Q=0;Q<18;Q++)J=!L&&(S>>Q&1)==1,x.modules[Math.floor(Q/3)][Q%3+x.moduleCount-8-3]=J;for(Q=0;Q<18;Q++)J=!L&&(S>>Q&1)==1,x.modules[Q%3+x.moduleCount-8-3][Math.floor(Q/3)]=J}if(x.dataCache==null){Q=x.typeNumber;J=x.dataList;L=x.errorCorrectLevel;S=Z1W(Q,L);if(S==void 0)throw Error("Kk`"+Q+"`"+L);Z=S.length/3;L=[];for(y=0;y<Z;y++){E=S[y*3];P=S[y*3+1];for(var v=S[y*3+2],V=0;V<E;V++)L.push(new a4W(P,
v))}S=new zKg;for(Z=0;Z<J.length;Z++)y=J[Z],S.put(y.mode,4),S.put(y.getLength(),y4X(y.mode,Q)),y.write(S);for(Z=Q=0;Z<L.length;Z++)Q+=L[Z].dataCount;if(S.length>Q*8)throw Error("Ek`"+S.length+"`"+Q*8);for(S.length+4<=Q*8&&S.put(0,4);S.length%8!=0;)Izg(S,!1);for(;!(S.length>=Q*8);){S.put(236,8);if(S.length>=Q*8)break;S.put(17,8)}J=Q=P=0;Z=Array(L.length);y=Array(L.length);for(E=0;E<L.length;E++){V=L[E].dataCount;var h=L[E].totalCount-V;Q=Math.max(Q,V);J=Math.max(J,h);Z[E]=Array(V);for(v=0;v<Z[E].length;v++)Z[E][v]=
255&S.buffer[v+P];P+=V;v=h;V=new ex([1],0);for(h=0;h<v;h++)V=V.multiply(new ex([1,EEs(h)],0));v=V;V=(new ex(Z[E],v.getLength()-1)).mod(v);y[E]=Array(v.getLength()-1);for(v=0;v<y[E].length;v++)h=v+V.getLength()-y[E].length,y[E][v]=h>=0?V.get(h):0}for(v=S=0;v<L.length;v++)S+=L[v].totalCount;S=Array(S);for(v=P=0;v<Q;v++)for(E=0;E<L.length;E++)v<Z[E].length&&(S[P++]=Z[E][v]);for(v=0;v<J;v++)for(E=0;E<L.length;E++)v<y[E].length&&(S[P++]=y[E][v]);x.dataCache=S}L=x.dataCache;S=-1;Q=x.moduleCount-1;J=7;Z=
0;for(y=x.moduleCount-1;y>0;y-=2)for(y==6&&y--;;){for(E=0;E<2;E++)x.modules[Q][y-E]==null&&(P=!1,Z<L.length&&(P=(L[Z]>>>J&1)==1),MdW(D,Q,y-E)&&(P=!P),x.modules[Q][y-E]=P,J--,J==-1&&(Z++,J=7));Q+=S;if(Q<0||x.moduleCount<=Q){Q-=S;S=-S;break}}},K9$=function(x,L,D){for(var S=-1;S<=7;S++)if(!(L+S<=-1||x.moduleCount<=L+S))for(var Q=-1;Q<=7;Q++)D+Q<=-1||x.moduleCount<=D+Q||(x.modules[L+S][D+Q]=0<=S&&S<=6&&(Q==0||Q==6)||0<=Q&&Q<=6&&(S==0||S==6)||2<=S&&S<=4&&2<=Q&&Q<=4?!0:!1)},LAs=function(x){for(var L=0,
D=0,S=0;S<8;S++){xLl(x,!0,S);
var Q=x;for(var J=Q.moduleCount,Z=0,y=0;y<J;y++)for(var E=0;E<J;E++){for(var P=0,v=Q.isDark(y,E),V=-1;V<=1;V++)if(!(y+V<0||J<=y+V))for(var h=-1;h<=1;h++)E+h<0||J<=E+h||(V!=0||h!=0)&&v==Q.isDark(y+V,E+h)&&P++;P>5&&(Z+=3+P-5)}for(y=0;y<J-1;y++)for(E=0;E<J-1;E++)if(P=0,Q.isDark(y,E)&&P++,Q.isDark(y+1,E)&&P++,Q.isDark(y,E+1)&&P++,Q.isDark(y+1,E+1)&&P++,P==0||P==4)Z+=3;for(y=0;y<J;y++)for(E=0;E<J-6;E++)Q.isDark(y,E)&&!Q.isDark(y,E+1)&&Q.isDark(y,E+2)&&Q.isDark(y,E+3)&&Q.isDark(y,E+4)&&!Q.isDark(y,E+5)&&
Q.isDark(y,E+6)&&(Z+=40);for(E=0;E<J;E++)for(y=0;y<J-6;y++)Q.isDark(y,E)&&!Q.isDark(y+1,E)&&Q.isDark(y+2,E)&&Q.isDark(y+3,E)&&Q.isDark(y+4,E)&&!Q.isDark(y+5,E)&&Q.isDark(y+6,E)&&(Z+=40);for(E=P=0;E<J;E++)for(y=0;y<J;y++)Q.isDark(y,E)&&P++;Q=Z+=Math.abs(100*P/J/J-50)/5*10;if(S==0||L>Q)L=Q,D=S}return D},O15=[[],
[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]],Yw=function(x){for(var L=0;x!=0;)L++,x>>>=1;return L},MdW=function(x,L,D){switch(x){case 0:return(L+D)%2==0;
case 1:return L%2==0;case 2:return D%3==0;case 3:return(L+D)%3==0;case 4:return(Math.floor(L/2)+Math.floor(D/3))%2==0;case 5:return L*D%2+L*D%3==0;case 6:return(L*D%2+L*D%3)%2==0;case 7:return(L*D%3+(L+D)%2)%2==0;default:throw Error("Fk`"+x);}},y4X=function(x,L){if(1<=L&&L<10)switch(x){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("Gk`"+x);}else if(L<27)switch(x){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("Gk`"+x);}else if(L<41)switch(x){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("Gk`"+x);}else throw Error("Hk`"+L);},Fv=function(x){if(x<1)throw Error("Ik`"+x);
return dYl[x]},EEs=function(x){for(;x<0;)x+=255;
for(;x>=256;)x-=255;return s$[x]},s$=Array(256),dYl=Array(256),PhW=0;PhW<8;PhW++)s$[PhW]=1<<PhW;
for(var T1=8;T1<256;T1++)s$[T1]=s$[T1-4]^s$[T1-5]^s$[T1-6]^s$[T1-8];for(var j_G=0;j_G<255;j_G++)dYl[s$[j_G]]=j_G;ex.prototype.get=function(x){return this.num[x]};
ex.prototype.getLength=function(){return this.num.length};
ex.prototype.multiply=function(x){for(var L=Array(this.getLength()+x.getLength()-1),D=0;D<this.getLength();D++)for(var S=0;S<x.getLength();S++)L[D+S]^=EEs(Fv(this.get(D))+Fv(x.get(S)));return new ex(L,0)};
ex.prototype.mod=function(x){if(this.getLength()-x.getLength()<0)return this;for(var L=Fv(this.get(0))-Fv(x.get(0)),D=Array(this.getLength()),S=0;S<this.getLength();S++)D[S]=this.get(S);for(S=0;S<x.getLength();S++)D[S]^=EEs(Fv(x.get(S))+L);return(new ex(D,0)).mod(x)};
var vE9=[[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]],Z1W=function(x,L){switch(L){case 1:return vE9[(x-1)*4];case 0:return vE9[(x-1)*4+1];case 3:return vE9[(x-1)*4+2];case 2:return vE9[(x-1)*4+3]}};
zKg.prototype.get=function(x){return(this.buffer[Math.floor(x/8)]>>>7-x%8&1)==1};
zKg.prototype.put=function(x,L){for(var D=0;D<L;D++)Izg(this,(x>>>L-D-1&1)==1)};
var Izg=function(x,L){var D=Math.floor(x.length/8);x.buffer.length<=D&&x.buffer.push(0);L&&(x.buffer[D]|=128>>>x.length%8);x.length++},ba=[[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]],n9u=function(){var x=function(L,D){this.JSC$19691__el=L;this.JSC$19691__htOption=D};
x.prototype.draw=function(L){function D(v,V){v=document.createElementNS("http://www.w3.org/2000/svg",v);for(var h in V)V.hasOwnProperty(h)&&(h==="href"?_.TEX(v,V[h]):_.KZ([_.ID(tH9),_.ID(xYg),_.ID(L9q),_.ID(DY$),_.ID(SFY),_.ID(Q_Y),_.ID(J4$)],v,h,V[h]));return v}
var S=this.JSC$19691__htOption,Q=this.JSC$19691__el,J=L.moduleCount;this.clear();var Z=D("svg",{viewBox:"0 0 "+String(J)+" "+String(J),width:"100%",height:"100%",fill:S.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});Q.appendChild(Z);Z.appendChild(D("rect",{fill:S.colorLight,width:"100%",height:"100%"}));Z.appendChild(D("rect",{fill:S.colorDark,width:"1",height:"1",id:"template"}));for(var y=0;y<J;y++)for(var E=0;E<J;E++)if(L.isDark(y,E)){var P=D("use",{x:String(y),y:String(E),href:"#template"});
Z.appendChild(P)}};
x.prototype.clear=function(){for(;this.JSC$19691__el.hasChildNodes();)this.JSC$19691__el.removeChild(this.JSC$19691__el.lastChild)};
return x}(),cqq=document.documentElement.tagName.toLowerCase()==="svg"?n9u:typeof CanvasRenderingContext2D!="undefined"?function(){var x=function(L,D){this._bIsPainted=!1;
XP5();this.JSC$19691__htOption=D;this._elCanvas=document.createElement("canvas");this._elCanvas.width=D.width;this._elCanvas.height=D.height;L.appendChild(this._elCanvas);this.JSC$19691__el=L;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$19691__el.appendChild(this._elImage);this._bSupportDataURI=null};
x.prototype._onMakeImage=function(){var L=this._elCanvas.toDataURL("image/png");this._elImage.src=L;this._elImage.style.display="block";this._elCanvas.style.display="none"};
x.prototype._safeSetDataURI=function(L,D){var S=this;S._fFail=D;S._fSuccess=L;S._bSupportDataURI===null?(L=_.pw("IMG"),D=function(){S._bSupportDataURI=!1;S._fFail&&S._fFail.call(S)},L.onabort=D,L.onerror=D,L.onload=function(){S._bSupportDataURI=!0;
S._fSuccess&&S._fSuccess.call(S)},L.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):S._bSupportDataURI===!0&&S._fSuccess?S._fSuccess.call(S):S._bSupportDataURI===!1&&S._fFail&&S._fFail.call(S)};
x.prototype.draw=function(L){var D=this._oContext,S=this.JSC$19691__htOption,Q=L.moduleCount,J=S.width/Q,Z=S.height/Q,y=Math.round(J),E=Math.round(Z);this._elImage.style.display="none";this.clear();for(var P=0;P<Q;P++)for(var v=0;v<Q;v++){var V=L.isDark(P,v),h=v*J,H=P*Z;D.strokeStyle=V?S.colorDark:S.colorLight;D.lineWidth=1;D.fillStyle=V?S.colorDark:S.colorLight;D.fillRect(h,H,J,Z);D.strokeRect(Math.floor(h)+.5,Math.floor(H)+.5,y,E);D.strokeRect(Math.ceil(h)-.5,Math.ceil(H)-.5,y,E)}this._bIsPainted=
!0};
x.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
x.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
x.prototype.round=function(L){return L?Math.floor(L*1E3)/1E3:L};
return x}():function(){var x=function(L,D){this.JSC$19691__el=L;
this.JSC$19691__htOption=D};
x.prototype.draw=function(L){for(var D=this.JSC$19691__htOption,S=this.JSC$19691__el,Q=L.moduleCount,J=Math.floor(D.width/Q),Z=Math.floor(D.height/Q),y=['<table style="border:0;border-collapse:collapse;">'],E=0;E<Q;E++){y.push("<tr>");for(var P=0;P<Q;P++)y.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+J+"px;height:"+Z+"px;background-color:"+(L.isDark(E,P)?D.colorDark:D.colorLight)+';"></td>');y.push("</tr>")}y.push("</table>");L=y.join("");L=_.EX2(_.dq2,L);_.JB(S,L);
L=S.childNodes[0];Q=(D.width-L.offsetWidth)/2;J=(D.height-L.offsetHeight)/2;Q>0&&J>0&&(L.style.margin=J+"px "+Q+"px")};
x.prototype.clear=function(){this.JSC$19691__el.textContent=""};
return x}();
DLg.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$19694__android||this.JSC$19694__android>=3)&&this._oDrawing.makeImage()};
DLg.prototype.clear=function(){this._oDrawing.clear()};
_.Qb.QRCode=DLg;var Vdl={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var eB=function(){};
eB.prototype.stringify=function(x){return _.Qb.JSON.stringify(x,void 0)};
eB.prototype.parse=function(x){return _.Qb.JSON.parse(x,void 0)};var h_q=function(){_.Gm.call(this,"z")};
_.E9(h_q,_.Gm);var H1I=function(){_.Gm.call(this,"y")};
_.E9(H1I,_.Gm);var uOX=null,gEu=function(){return uOX=uOX||new _.Bc},kXs=function(x){_.Gm.call(this,"serverreachability",x)};
_.E9(kXs,_.Gm);var R9=function(x){var L=gEu();L.dispatchEvent(new kXs(L,x))},puW=function(x,L){_.Gm.call(this,"statevent",x);
this.stat=L};
_.E9(puW,_.Gm);var G1=function(x){var L=gEu();L.dispatchEvent(new puW(L,x))},mYu=function(x,L,D,S){_.Gm.call(this,"timingevent",x);
this.size=L;this.rtt=D;this.retries=S};
_.E9(mYu,_.Gm);var b1g=function(x,L,D){var S=gEu();S.dispatchEvent(new mYu(S,x,L,D))},Ck=function(x,L){if(typeof x!=="function")throw Error("Mk");
return _.Qb.setTimeout(function(){x()},L)};var la=function(){this.redactEnabled_=!0};
la.prototype.disableRedact=function(){this.redactEnabled_=!1};
var YFG=function(x,L,D,S,Q,J){x.info(function(){if(x.redactEnabled_)if(J){var Z="";for(var y=J.split("&"),E=0;E<y.length;E++){var P=y[E].split("=");if(P.length>1){var v=P[0];P=P[1];var V=v.split("_");Z=V.length>=2&&V[1]=="type"?Z+(v+"="+P+"&"):Z+(v+"=redacted&")}}}else Z=null;else Z=J;return"XMLHTTP REQ ("+S+") [attempt "+Q+"]: "+L+"\n"+D+"\n"+Z})},F9G=function(x,L,D,S,Q,J,Z){x.info(function(){return"XMLHTTP RESP ("+S+") [ attempt "+Q+"]: "+L+"\n"+D+"\n"+J+" "+Z})},U$=function(x,L,D,S){x.info(function(){return"XMLHTTP TEXT ("+
L+"): "+s_X(x,D)+(S?" "+S:"")})},Th5=function(x,L){x.info(function(){return"TIMEOUT: "+L})};
la.prototype.debug=function(){};
la.prototype.info=function(){};
la.prototype.warning=function(){};
var s_X=function(x,L){if(!x.redactEnabled_)return L;if(!L)return null;try{var D=JSON.parse(L);if(D)for(var S=0;S<D.length;S++)if(Array.isArray(D[S])){var Q=D[S];if(!(Q.length<2)){var J=Q[1];if(Array.isArray(J)&&!(J.length<1)){var Z=J[0];if(Z!="noop"&&Z!="stop"&&Z!="close")for(var y=1;y<J.length;y++)J[y]=""}}}return(0,_.iO)(D)}catch(E){return x.debug("Exception parsing expected JS array - probably was not JS"),L}};var wj=function(x,L,D,S,Q){this.JSC$19716_channel_=x;this.JSC$19716_channelDebug_=L;this.sid_=D;this.JSC$19716_rid_=S;this.JSC$19716_retryId_=Q||1;this.JSC$19716_eventHandler_=new _.Mu(this);this.timeout_=45E3;this.JSC$19716_extraHeaders_=null;this.JSC$19716_successful_=!1;this.JSC$19716_postData_=this.JSC$19716_requestUri_=this.JSC$19716_baseUri_=this.JSC$19716_type_=this.JSC$19716_requestStartTime_=this.JSC$19716_watchDogTimeoutTime_=this.JSC$19716_watchDogTimerId_=null;this.JSC$19716_pendingMessages_=
[];this.JSC$19716_xmlHttp_=null;this.JSC$19716_xmlHttpChunkStart_=0;this.JSC$19716_lastError_=this.JSC$19716_verb_=null;this.JSC$19716_lastStatusCode_=-1;this.JSC$19716_cancelled_=!1;this.JSC$19716_readyStateChangeThrottleMs_=0;this.JSC$19716_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new e_u},e_u=function(){this.JSC$19718_textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},R_l=function(x,L){switch(x){case 0:return"Non-200 return code ("+L+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},GXG={},ChY={};
wj.prototype.setTimeout=function(x){this.timeout_=x};
var UY9=function(x,L,D){x.JSC$19716_type_=1;x.JSC$19716_baseUri_=_.pr(L.clone());x.JSC$19716_postData_=D;x.decodeChunks_=!0;lzg(x,null)},lzg=function(x,L){x.JSC$19716_requestStartTime_=Date.now();
wuq(x);x.JSC$19716_requestUri_=x.JSC$19716_baseUri_.clone();kS(x.JSC$19716_requestUri_,"t",x.JSC$19716_retryId_);x.JSC$19716_xmlHttpChunkStart_=0;var D=x.JSC$19716_channel_.JSC$19735_supportsCrossDomainXhrs_;x.fetchResponseState_=new e_u;x.JSC$19716_xmlHttp_=Bh9(x.JSC$19716_channel_,D?L:null,!x.JSC$19716_postData_);x.JSC$19716_readyStateChangeThrottleMs_>0&&(x.JSC$19716_readyStateChangeThrottle_=new _.zR((0,_.e1)(x.JSC$19720_xmlHttpHandler_,x,x.JSC$19716_xmlHttp_),x.JSC$19716_readyStateChangeThrottleMs_));
x.JSC$19716_eventHandler_.listen(x.JSC$19716_xmlHttp_,"readystatechange",x.JSC$19720_readyStateChangeHandler_);L=x.JSC$19716_extraHeaders_?_.wk.clone(x.JSC$19716_extraHeaders_):{};x.JSC$19716_postData_?(x.JSC$19716_verb_||(x.JSC$19716_verb_="POST"),L["Content-Type"]="application/x-www-form-urlencoded",x.JSC$19716_xmlHttp_.send(x.JSC$19716_requestUri_,x.JSC$19716_verb_,x.JSC$19716_postData_,L)):(x.JSC$19716_verb_="GET",x.JSC$19716_xmlHttp_.send(x.JSC$19716_requestUri_,x.JSC$19716_verb_,null,L));R9(1);
YFG(x.JSC$19716_channelDebug_,x.JSC$19716_verb_,x.JSC$19716_requestUri_,x.JSC$19716_rid_,x.JSC$19716_retryId_,x.JSC$19716_postData_)};
wj.prototype.JSC$19720_readyStateChangeHandler_=function(x){x=x.target;var L=this.JSC$19716_readyStateChangeThrottle_;L&&_.ow(x)==3?(this.JSC$19716_channelDebug_.debug("Throttling readystatechange."),L.fire()):this.JSC$19720_xmlHttpHandler_(x)};
wj.prototype.JSC$19720_xmlHttpHandler_=function(x){try{x==this.JSC$19716_xmlHttp_?W9s(this):this.JSC$19716_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(L){this.JSC$19716_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),qFq(this)}finally{}};
var W9s=function(x){var L=_.ow(x.JSC$19716_xmlHttp_),D=x.JSC$19716_xmlHttp_.JSC$9800_lastErrorCode_,S=x.JSC$19716_xmlHttp_.getStatus();if(!(L<3||L==3&&!qFq(x))){x.JSC$19716_cancelled_||L!=4||D==7||(D==8||S<=0?R9(3):R9(2));A4q(x);var Q=x.JSC$19716_xmlHttp_.getStatus();x.JSC$19716_lastStatusCode_=Q;D=$YW(x);qFq(x)||x.JSC$19716_channelDebug_.debug(function(){return"No response text for uri "+x.JSC$19716_requestUri_+" status "+Q});
x.JSC$19716_successful_=Q==200;F9G(x.JSC$19716_channelDebug_,x.JSC$19716_verb_,x.JSC$19716_requestUri_,x.JSC$19716_rid_,x.JSC$19716_retryId_,L,Q);if(x.JSC$19716_successful_){if(x.decodeInitialResponse_&&!x.initialResponseDecoded_)if(S=r4X(x))U$(x.JSC$19716_channelDebug_,x.JSC$19716_rid_,S,"Initial handshake response via X-HTTP-Initial-Response"),x.initialResponseDecoded_=!0,NhY(x,S);else{x.JSC$19716_successful_=!1;x.JSC$19716_lastError_=3;G1(12);x.JSC$19716_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
x.JSC$19716_rid_+")");BR(x);WR(x);return}x.decodeChunks_?i15(x,L,D):(U$(x.JSC$19716_channelDebug_,x.JSC$19716_rid_,D,null),NhY(x,D));L==4&&BR(x);x.JSC$19716_successful_&&!x.JSC$19716_cancelled_&&(L==4?fzI(x.JSC$19716_channel_,x):(x.JSC$19716_successful_=!1,wuq(x)))}else erY(x.JSC$19716_xmlHttp_),Q==400&&D.indexOf("Unknown SID")>0?(x.JSC$19716_lastError_=3,G1(12),x.JSC$19716_channelDebug_.warning("XMLHTTP Unknown SID ("+x.JSC$19716_rid_+")")):(x.JSC$19716_lastError_=0,G1(13),x.JSC$19716_channelDebug_.warning("XMLHTTP Bad status "+
Q+" ("+x.JSC$19716_rid_+")")),BR(x),WR(x)}},r4X=function(x){return x.JSC$19716_xmlHttp_&&(x=Hj(x.JSC$19716_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.Ew(x)?x:null},$YW=function(x){if(!oE5(x))return x.JSC$19716_xmlHttp_.getResponseText();
var L=x.JSC$19716_xmlHttp_.getResponse();if(L==="")return"";var D="",S=L.length,Q=_.ow(x.JSC$19716_xmlHttp_)==4;if(!x.fetchResponseState_.JSC$19718_textDecoder){if(typeof TextDecoder==="undefined")return BR(x),WR(x),"";x.fetchResponseState_.JSC$19718_textDecoder=new _.Qb.TextDecoder}for(var J=0;J<S;J++)x.fetchResponseState_.responseArrivedForFetch=!0,D+=x.fetchResponseState_.JSC$19718_textDecoder.decode(L[J],{stream:!(Q&&J==S-1)});L.length=0;x.fetchResponseState_.responseBuffer+=D;x.JSC$19716_xmlHttpChunkStart_=
0;return x.fetchResponseState_.responseBuffer},qFq=function(x){return x.JSC$19716_xmlHttp_?x.fetchResponseState_.responseArrivedForFetch?!0:!(!x.JSC$19716_xmlHttp_.getResponseText()&&!x.JSC$19716_xmlHttp_.getResponse()):!1},oE5=function(x){return x.JSC$19716_xmlHttp_?x.JSC$19716_verb_=="GET"&&x.JSC$19716_type_!=2&&x.JSC$19716_channel_.usesFetchStreams_:!1},i15=function(x,L,D){for(var S=!0,Q;!x.JSC$19716_cancelled_&&x.JSC$19716_xmlHttpChunkStart_<D.length;)if(Q=azI(x,D),Q==ChY){L==4&&(x.JSC$19716_lastError_=
4,G1(14),S=!1);
U$(x.JSC$19716_channelDebug_,x.JSC$19716_rid_,null,"[Incomplete Response]");break}else if(Q==GXG){x.JSC$19716_lastError_=4;G1(15);U$(x.JSC$19716_channelDebug_,x.JSC$19716_rid_,D,"[Invalid Chunk]");S=!1;break}else U$(x.JSC$19716_channelDebug_,x.JSC$19716_rid_,Q,null),NhY(x,Q);oE5(x)&&x.JSC$19716_xmlHttpChunkStart_!=0&&(x.fetchResponseState_.responseBuffer=x.fetchResponseState_.responseBuffer.slice(x.JSC$19716_xmlHttpChunkStart_),x.JSC$19716_xmlHttpChunkStart_=0);L!=4||D.length!=0||x.fetchResponseState_.responseArrivedForFetch||
(x.JSC$19716_lastError_=1,G1(16),S=!1);x.JSC$19716_successful_=x.JSC$19716_successful_&&S;S?D.length>0&&!x.firstByteReceived_&&(x.firstByteReceived_=!0,L=x.JSC$19716_channel_,L.JSC$19735_backChannelRequest_==x&&L.detectBufferingProxy_&&!L.bpDetectionDone_&&(L.JSC$19735_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+D.length),z_l(L),L.bpDetectionDone_=!0,G1(11))):(U$(x.JSC$19716_channelDebug_,x.JSC$19716_rid_,D,"[Invalid Chunked Response]"),BR(x),WR(x))},azI=function(x,L){var D=
x.JSC$19716_xmlHttpChunkStart_,S=L.indexOf("\n",D);
if(S==-1)return ChY;D=Number(L.substring(D,S));if(isNaN(D))return GXG;S+=1;if(S+D>L.length)return ChY;L=L.slice(S,S+D);x.JSC$19716_xmlHttpChunkStart_=S+D;return L};
wj.prototype.cancel=function(){this.JSC$19716_cancelled_=!0;BR(this)};
var wuq=function(x){x.JSC$19716_watchDogTimeoutTime_=Date.now()+x.timeout_;XuW(x,x.timeout_)},XuW=function(x,L){if(x.JSC$19716_watchDogTimerId_!=null)throw Error("Nk");
x.JSC$19716_watchDogTimerId_=Ck((0,_.e1)(x.JSC$19720_onWatchDogTimeout_,x),L)},A4q=function(x){x.JSC$19716_watchDogTimerId_&&(_.Qb.clearTimeout(x.JSC$19716_watchDogTimerId_),x.JSC$19716_watchDogTimerId_=null)};
wj.prototype.JSC$19720_onWatchDogTimeout_=function(){this.JSC$19716_watchDogTimerId_=null;var x=Date.now();x-this.JSC$19716_watchDogTimeoutTime_>=0?(Th5(this.JSC$19716_channelDebug_,this.JSC$19716_requestUri_),this.JSC$19716_type_!=2&&(R9(3),G1(17)),BR(this),this.JSC$19716_lastError_=2,WR(this)):(this.JSC$19716_channelDebug_.warning("WatchDog timer called too early"),XuW(this,this.JSC$19716_watchDogTimeoutTime_-x))};
var WR=function(x){x.JSC$19716_channel_.state_==0||x.JSC$19716_cancelled_||fzI(x.JSC$19716_channel_,x)},BR=function(x){A4q(x);
_.Q1(x.JSC$19716_readyStateChangeThrottle_);x.JSC$19716_readyStateChangeThrottle_=null;x.JSC$19716_eventHandler_.removeAll();if(x.JSC$19716_xmlHttp_){var L=x.JSC$19716_xmlHttp_;x.JSC$19716_xmlHttp_=null;L.abort();L.dispose()}};
wj.prototype.getLastError=function(){return this.JSC$19716_lastError_};
var NhY=function(x,L){try{var D=x.JSC$19716_channel_;if(D.state_!=0&&(D.JSC$19735_backChannelRequest_==x||c4G(D.forwardChannelRequestPool_,x)))if(!x.initialResponseDecoded_&&c4G(D.forwardChannelRequestPool_,x)&&D.state_==3){try{var S=D.wireCodec_.JSC$19730_parser_.parse(L)}catch(y){S=null}if(Array.isArray(S)&&S.length==3){L=S;if(L[0]==0)a:if(D.JSC$19735_channelDebug_.debug("Server claims our backchannel is missing."),D.JSC$19735_backChannelTimerId_)D.JSC$19735_channelDebug_.debug("But we are currently starting the request.");
else{if(D.JSC$19735_backChannelRequest_)if(D.JSC$19735_backChannelRequest_.JSC$19716_requestStartTime_+3E3<x.JSC$19716_requestStartTime_)nEu(D),tdW(D);else break a;else D.JSC$19735_channelDebug_.warning("We do not have a BackChannel established");xV5(D);G1(18)}else{D.JSC$19735_lastPostResponseArrayId_=L[1];var Q=D.JSC$19735_lastPostResponseArrayId_-D.JSC$19735_lastArrayId_;if(0<Q){var J=L[2];D.JSC$19735_channelDebug_.debug(J+" bytes (in "+Q+" arrays) are outstanding on the BackChannel");J<37500&&
D.enableStreaming_&&D.JSC$19735_backChannelRetryCount_==0&&!D.JSC$19735_deadBackChannelTimerId_&&(D.JSC$19735_deadBackChannelTimerId_=Ck((0,_.e1)(D.JSC$19737_onBackChannelDead_,D),6E3))}}if(LGY(D.forwardChannelRequestPool_)<=1&&D.forwardChannelFlushedCallback_){try{D.forwardChannelFlushedCallback_()}catch(y){}D.forwardChannelFlushedCallback_=void 0}}else D.JSC$19735_channelDebug_.debug("Bad POST response data returned"),q3(D,11)}else if((x.initialResponseDecoded_||D.JSC$19735_backChannelRequest_==
x)&&nEu(D),!_.Ew(L)){var Z=D.wireCodec_.JSC$19730_parser_.parse(L);D.onInput_(Z,x)}R9(4)}catch(y){}};var DVq=function(x,L){this.JSC$19723_mapId=x;this.map=L;this.context=null};var SW9=function(x){this.maxPoolSizeConfigured_=x||10;_.Qb.PerformanceNavigationTiming?(x=_.Qb.performance.getEntriesByType("navigation"),x=x.length>0&&(x[0].nextHopProtocol=="hq"||x[0].nextHopProtocol=="h2")):x=!!(_.Qb.chrome&&_.Qb.chrome.loadTimes&&_.Qb.chrome.loadTimes()&&_.Qb.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$19726_maxSize_=x?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$19726_maxSize_>1&&(this.requestPool_=new Set);this.JSC$19726_request_=null;this.JSC$19726_pendingMessages_=
[]},QfY=function(x){return x.JSC$19726_request_?!0:x.requestPool_?x.requestPool_.size>=x.JSC$19726_maxSize_:!1},LGY=function(x){return x.JSC$19726_request_?1:x.requestPool_?x.requestPool_.size:0},c4G=function(x,L){return x.JSC$19726_request_?x.JSC$19726_request_==L:x.requestPool_?x.requestPool_.has(L):!1},Ja5=function(x,L){x.requestPool_?x.requestPool_.add(L):x.JSC$19726_request_=L},KGl=function(x,L){x.JSC$19726_request_&&x.JSC$19726_request_==L?x.JSC$19726_request_=null:x.requestPool_&&x.requestPool_.has(L)&&
x.requestPool_.delete(L)};
SW9.prototype.cancel=function(){this.JSC$19726_pendingMessages_=OSu(this);if(this.JSC$19726_request_)this.JSC$19726_request_.cancel(),this.JSC$19726_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var x=_.O(this.requestPool_.values()),L=x.next();!L.done;L=x.next())L.value.cancel();this.requestPool_.clear()}};
var OSu=function(x){if(x.JSC$19726_request_!=null)return x.JSC$19726_pendingMessages_.concat(x.JSC$19726_request_.JSC$19716_pendingMessages_);if(x.requestPool_!=null&&x.requestPool_.size!==0){var L=x.JSC$19726_pendingMessages_;x=_.O(x.requestPool_.values());for(var D=x.next();!D.done;D=x.next())L=L.concat(D.value.JSC$19716_pendingMessages_);return L}return _.r0(x.JSC$19726_pendingMessages_)},ZSg=function(x,L){x.JSC$19726_pendingMessages_=x.JSC$19726_pendingMessages_.concat(L)};var yaW=function(x,L){var D=new la;D.debug("TestLoadImage: loading "+x);if(_.Qb.Image){var S=new Image;S.onload=_.bl(AP,D,"TestLoadImage: loaded",!0,L,S);S.onerror=_.bl(AP,D,"TestLoadImage: error",!1,L,S);S.onabort=_.bl(AP,D,"TestLoadImage: abort",!1,L,S);S.ontimeout=_.bl(AP,D,"TestLoadImage: timeout",!1,L,S);_.Qb.setTimeout(function(){if(S.ontimeout)S.ontimeout()},1E4);
S.src=x}else L(!1)},IFu=function(x,L){var D=new la,S=new AbortController,Q=setTimeout(function(){S.abort();
AP(D,"TestPingServer: timeout",!1,L)},1E4);
fetch(x,{signal:S.signal}).then(function(J){clearTimeout(Q);J.ok?AP(D,"TestPingServer: ok",!0,L):AP(D,"TestPingServer: server error",!1,L)}).catch(function(){clearTimeout(Q);
AP(D,"TestPingServer: error",!1,L)})},AP=function(x,L,D,S,Q){try{x.debug(L),Q&&(Q.onload=null,Q.onerror=null,Q.onabort=null,Q.ontimeout=null),S(D)}catch(J){}};var EKI=function(){this.JSC$19730_parser_=new eB};var $w=function(x,L,D){return D&&D.internalChannelParams?D.internalChannelParams[x]||L:L},rj=function(x){this.serverVersion_=0;
this.JSC$19735_outgoingMaps_=[];this.JSC$19735_channelDebug_=new la;this.JSC$19735_hostPrefix_=this.JSC$19735_backChannelUri_=this.JSC$19735_forwardChannelUri_=this.JSC$19735_path_=this.JSC$19735_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$19735_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$19735_extraHeaders_=null;this.JSC$19735_nextMapId_=this.JSC$19735_nextRid_=0;this.JSC$19735_failFast_=$w("failFast",!1,x);this.enableStreaming_=this.JSC$19735_deadBackChannelTimerId_=
this.JSC$19735_backChannelTimerId_=this.JSC$19735_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$19735_lastPostResponseArrayId_=this.JSC$19735_lastArrayId_=-1;this.JSC$19735_backChannelAttemptId_=this.JSC$19735_backChannelRetryCount_=this.JSC$19735_forwardChannelRetryCount_=0;this.JSC$19735_baseRetryDelayMs_=$w("baseRetryDelayMs",5E3,x);this.JSC$19735_retryDelaySeedMs_=$w("retryDelaySeedMs",1E4,x);this.JSC$19735_forwardChannelMaxRetries_=
$w("forwardChannelMaxRetries",2,x);this.JSC$19735_forwardChannelRequestTimeoutMs_=$w("forwardChannelRequestTimeoutMs",2E4,x);this.JSC$19735_xmlHttpFactory_=x&&x.xmlHttpFactory||void 0;this.networkTestUrl_=x&&x.networkTestUrl||void 0;this.usesFetchStreams_=x&&x.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$19735_supportsCrossDomainXhrs_=x&&x.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new SW9(x&&x.concurrentRequestLimit);this.wireCodec_=new EKI;this.fastHandshake_=
x&&x.fastHandshake||!1;this.encodeInitMessageHeaders_=x&&x.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$19735_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=x&&x.blockingHandshake||!1;x&&x.disableRedact&&this.JSC$19735_channelDebug_.disableRedact();x&&x.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
x&&x.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;x&&x.longPollingTimeout&&x.longPollingTimeout>0&&(this.longPollingTimeout_=x.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
rj.prototype.JSC$19737_channelVersion_=8;rj.prototype.state_=1;
rj.prototype.connect=function(x,L,D,S){this.JSC$19735_channelDebug_.debug("connect()");G1(0);this.JSC$19735_path_=x;this.JSC$19735_extraParams_=L||{};D&&S!==void 0&&(this.JSC$19735_extraParams_.OSID=D,this.JSC$19735_extraParams_.OAID=S);this.enableStreaming_=this.allowStreamingMode_;this.JSC$19735_channelDebug_.debug("connectChannel_()");x=Mv3(this,null,this.JSC$19735_path_);this.JSC$19735_channelDebug_.debug("GetForwardChannelUri: "+x);this.JSC$19735_forwardChannelUri_=x;dV3(this)};
rj.prototype.disconnect=function(){this.JSC$19735_channelDebug_.debug("disconnect()");PZ9(this);if(this.state_==3){var x=this.JSC$19735_nextRid_++,L=this.JSC$19735_forwardChannelUri_.clone();_.xV(L,"SID",this.sid_);_.xV(L,"RID",x);_.xV(L,"TYPE","terminate");N3(this,L);x=new wj(this,this.JSC$19735_channelDebug_,this.sid_,x);x.JSC$19716_type_=2;x.JSC$19716_baseUri_=_.pr(L.clone());L=!1;if(_.Qb.navigator&&_.Qb.navigator.sendBeacon)try{L=_.Qb.navigator.sendBeacon(x.JSC$19716_baseUri_.toString(),"")}catch(D){}!L&&
_.Qb.Image&&((new Image).src=x.JSC$19716_baseUri_,L=!0);L||(x.JSC$19716_xmlHttp_=Bh9(x.JSC$19716_channel_,null),x.JSC$19716_xmlHttp_.send(x.JSC$19716_baseUri_));x.JSC$19716_requestStartTime_=Date.now();wuq(x)}jfu(this)};
var tdW=function(x){x.JSC$19735_backChannelRequest_&&(z_l(x),x.JSC$19735_backChannelRequest_.cancel(),x.JSC$19735_backChannelRequest_=null)},PZ9=function(x){tdW(x);
x.JSC$19735_backChannelTimerId_&&(_.Qb.clearTimeout(x.JSC$19735_backChannelTimerId_),x.JSC$19735_backChannelTimerId_=null);nEu(x);x.forwardChannelRequestPool_.cancel();x.JSC$19735_forwardChannelTimerId_&&(typeof x.JSC$19735_forwardChannelTimerId_==="number"&&_.Qb.clearTimeout(x.JSC$19735_forwardChannelTimerId_),x.JSC$19735_forwardChannelTimerId_=null)};
rj.prototype.getState=function(){return this.state_};
var dV3=function(x){QfY(x.forwardChannelRequestPool_)||x.JSC$19735_forwardChannelTimerId_||(x.JSC$19735_forwardChannelTimerId_=!0,_.q_(x.JSC$19737_onStartForwardChannelTimer_,x),x.JSC$19735_forwardChannelRetryCount_=0)},Vvl=function(x,L){if(LGY(x.forwardChannelRequestPool_)>=x.forwardChannelRequestPool_.JSC$19726_maxSize_-(x.JSC$19735_forwardChannelTimerId_?1:0))return!1;
if(x.JSC$19735_forwardChannelTimerId_)return x.JSC$19735_channelDebug_.debug("Use the retry request that is already scheduled."),x.JSC$19735_outgoingMaps_=L.JSC$19716_pendingMessages_.concat(x.JSC$19735_outgoingMaps_),!0;if(x.state_==1||x.state_==2||x.JSC$19735_forwardChannelRetryCount_>=(x.JSC$19735_failFast_?0:x.JSC$19735_forwardChannelMaxRetries_))return!1;x.JSC$19735_channelDebug_.debug("Going to retry POST");x.JSC$19735_forwardChannelTimerId_=Ck((0,_.e1)(x.JSC$19737_onStartForwardChannelTimer_,
x,L),vKg(x,x.JSC$19735_forwardChannelRetryCount_));x.JSC$19735_forwardChannelRetryCount_++;return!0};
rj.prototype.JSC$19737_onStartForwardChannelTimer_=function(x){if(this.JSC$19735_forwardChannelTimerId_)if(this.JSC$19735_forwardChannelTimerId_=null,this.JSC$19735_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!x){this.JSC$19735_channelDebug_.debug("open_()");this.JSC$19735_nextRid_=Math.floor(Math.random()*1E5);x=this.JSC$19735_nextRid_++;var L=new wj(this,this.JSC$19735_channelDebug_,"",x),D=this.JSC$19735_extraHeaders_;this.initHeaders_&&(D?(D=_.wk.clone(D),_.wk.extend(D,this.initHeaders_)):
D=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(L.JSC$19716_extraHeaders_=D,D=null);var S;if(this.fastHandshake_)a:{for(var Q=S=0;Q<this.JSC$19735_outgoingMaps_.length;Q++){b:{var J=this.JSC$19735_outgoingMaps_[Q];if("__data__"in J.map&&(J=J.map.__data__,typeof J==="string")){J=J.length;break b}J=void 0}if(J===void 0)break;S+=J;if(S>4096){S=Q;break a}if(S===4096||Q===this.JSC$19735_outgoingMaps_.length-1){S=Q+1;break a}}S=1E3}else S=1E3;S=hB3(this,L,S);
Q=this.JSC$19735_forwardChannelUri_.clone();_.xV(Q,"RID",x);_.xV(Q,"CVER",22);this.httpSessionIdParam_&&_.xV(Q,"X-HTTP-Session-Id",this.httpSessionIdParam_);N3(this,Q);D&&(this.encodeInitMessageHeaders_?S="headers="+_.cd(U_q(D))+"&"+S:this.httpHeadersOverwriteParam_&&wcI(Q,this.httpHeadersOverwriteParam_,D));Ja5(this.forwardChannelRequestPool_,L);this.blockingHandshake_&&_.xV(Q,"TYPE","init");this.fastHandshake_?(_.xV(Q,"$req",S),_.xV(Q,"SID","null"),L.decodeInitialResponse_=!0,UY9(L,Q,null)):UY9(L,
Q,S);this.state_=2}}else this.state_==3&&(x?HSI(this,x):this.JSC$19735_outgoingMaps_.length==0?this.JSC$19735_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):QfY(this.forwardChannelRequestPool_)||(HSI(this),this.JSC$19735_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var HSI=function(x,L){var D;L?D=L.JSC$19716_rid_:D=x.JSC$19735_nextRid_++;var S=x.JSC$19735_forwardChannelUri_.clone();_.xV(S,"SID",x.sid_);_.xV(S,"RID",D);_.xV(S,"AID",x.JSC$19735_lastArrayId_);N3(x,S);x.httpHeadersOverwriteParam_&&x.JSC$19735_extraHeaders_&&wcI(S,x.httpHeadersOverwriteParam_,x.JSC$19735_extraHeaders_);D=new wj(x,x.JSC$19735_channelDebug_,x.sid_,D,x.JSC$19735_forwardChannelRetryCount_+1);x.httpHeadersOverwriteParam_===null&&(D.JSC$19716_extraHeaders_=x.JSC$19735_extraHeaders_);L&&
(x.JSC$19735_outgoingMaps_=L.JSC$19716_pendingMessages_.concat(x.JSC$19735_outgoingMaps_));L=hB3(x,D,1E3);D.setTimeout(Math.round(x.JSC$19735_forwardChannelRequestTimeoutMs_*.5)+Math.round(x.JSC$19735_forwardChannelRequestTimeoutMs_*.5*Math.random()));Ja5(x.forwardChannelRequestPool_,D);UY9(D,S,L)},N3=function(x,L){x.JSC$19735_extraParams_&&_.wk.forEach(x.JSC$19735_extraParams_,function(D,S){_.xV(L,S,D)});
x.handler_&&_.wk.forEach({},function(D,S){_.xV(L,S,D)})},hB3=function(x,L,D){D=Math.min(x.JSC$19735_outgoingMaps_.length,D);
var S=x.handler_?(0,_.e1)(x.handler_.JSC$19741_badMapError,x.handler_,x):null;a:{for(var Q=x.JSC$19735_outgoingMaps_,J=-1;;){var Z=["count="+D];J==-1?D>0?(J=Q[0].JSC$19723_mapId,Z.push("ofs="+J)):J=0:Z.push("ofs="+J);for(var y=!0,E=0;E<D;E++){var P=Q[E].JSC$19723_mapId,v=Q[E].map;P-=J;if(P<0)J=Math.max(0,Q[E].JSC$19723_mapId-100),y=!1;else try{P="req"+P+"_"||"";try{var V=v instanceof Map?v:Object.entries(v);for(var h=_.O(V),H=h.next();!H.done;H=h.next()){var k=_.O(H.value),T=k.next().value,G=k.next().value,
U=G;_.on(G)&&(U=(0,_.iO)(G));Z.push(P+T+"="+encodeURIComponent(U))}}catch(l){throw Z.push(P+"type="+encodeURIComponent("_badmap")),l;}}catch(l){S&&S(v)}}if(y){V=Z.join("&");break a}}V=void 0}x=x.JSC$19735_outgoingMaps_.splice(0,D);L.JSC$19716_pendingMessages_=x;return V},unG=function(x){x.JSC$19735_backChannelRequest_||x.JSC$19735_backChannelTimerId_||(x.JSC$19735_backChannelAttemptId_=1,_.q_(x.JSC$19737_onStartBackChannelTimer_,x),x.JSC$19735_backChannelRetryCount_=0)},xV5=function(x){if(x.JSC$19735_backChannelRequest_||
x.JSC$19735_backChannelTimerId_||x.JSC$19735_backChannelRetryCount_>=3)return!1;
x.JSC$19735_channelDebug_.debug("Going to retry GET");x.JSC$19735_backChannelAttemptId_++;x.JSC$19735_backChannelTimerId_=Ck((0,_.e1)(x.JSC$19737_onStartBackChannelTimer_,x),vKg(x,x.JSC$19735_backChannelRetryCount_));x.JSC$19735_backChannelRetryCount_++;return!0};
rj.prototype.JSC$19737_onStartBackChannelTimer_=function(){this.JSC$19735_backChannelTimerId_=null;gKl(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$19735_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$19735_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$19735_backChannelRequest_+" "+this.handshakeRttMs_);else{var x=4*this.handshakeRttMs_;this.JSC$19735_channelDebug_.info("BP detection timer enabled: "+x);this.bpDetectionTimerId_=Ck((0,_.e1)(this.onBpDetectionTimer_,
this),x)}};
rj.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$19735_channelDebug_.info("BP detection timeout reached.");if(this.JSC$19735_backChannelRequest_.JSC$19716_xmlHttp_!=null){var x=this.JSC$19735_backChannelRequest_.JSC$19716_xmlHttp_.getResponseText();x&&this.JSC$19735_channelDebug_.warning("Timer should have been cancelled : "+x)}this.JSC$19735_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;G1(10);tdW(this);gKl(this)}else this.JSC$19735_channelDebug_.warning("Invalid operation.")};
var z_l=function(x){x.bpDetectionTimerId_!=null&&(x.JSC$19735_channelDebug_.debug("Cancel the BP detection timer."),_.Qb.clearTimeout(x.bpDetectionTimerId_),x.bpDetectionTimerId_=null)},gKl=function(x){x.JSC$19735_channelDebug_.debug("Creating new HttpRequest");
x.JSC$19735_backChannelRequest_=new wj(x,x.JSC$19735_channelDebug_,x.sid_,"rpc",x.JSC$19735_backChannelAttemptId_);x.httpHeadersOverwriteParam_===null&&(x.JSC$19735_backChannelRequest_.JSC$19716_extraHeaders_=x.JSC$19735_extraHeaders_);x.JSC$19735_backChannelRequest_.JSC$19716_readyStateChangeThrottleMs_=0;var L=x.JSC$19735_backChannelUri_.clone();_.xV(L,"RID","rpc");_.xV(L,"SID",x.sid_);_.xV(L,"AID",x.JSC$19735_lastArrayId_);_.xV(L,"CI",x.enableStreaming_?"0":"1");!x.enableStreaming_&&x.longPollingTimeout_&&
_.xV(L,"TO",x.longPollingTimeout_);_.xV(L,"TYPE","xmlhttp");N3(x,L);x.httpHeadersOverwriteParam_&&x.JSC$19735_extraHeaders_&&wcI(L,x.httpHeadersOverwriteParam_,x.JSC$19735_extraHeaders_);x.backChannelRequestTimeoutMs_&&x.JSC$19735_backChannelRequest_.setTimeout(x.backChannelRequestTimeoutMs_);var D=x.JSC$19735_backChannelRequest_,S=x.JSC$19735_hostPrefix_;D.JSC$19716_type_=1;D.JSC$19716_baseUri_=_.pr(L.clone());D.JSC$19716_postData_=null;D.decodeChunks_=!0;lzg(D,S);x.JSC$19735_channelDebug_.debug("New Request created")};
rj.prototype.JSC$19737_onBackChannelDead_=function(){this.JSC$19735_deadBackChannelTimerId_!=null&&(this.JSC$19735_deadBackChannelTimerId_=null,tdW(this),xV5(this),G1(19))};
var nEu=function(x){x.JSC$19735_deadBackChannelTimerId_!=null&&(_.Qb.clearTimeout(x.JSC$19735_deadBackChannelTimerId_),x.JSC$19735_deadBackChannelTimerId_=null)},fzI=function(x,L){x.JSC$19735_channelDebug_.debug("Request complete");
var D=null;if(x.JSC$19735_backChannelRequest_==L){nEu(x);z_l(x);x.JSC$19735_backChannelRequest_=null;var S=2}else if(c4G(x.forwardChannelRequestPool_,L))D=L.JSC$19716_pendingMessages_,KGl(x.forwardChannelRequestPool_,L),S=1;else return;if(x.state_!=0)if(L.JSC$19716_successful_)S==1?(b1g(L.JSC$19716_postData_?L.JSC$19716_postData_.length:0,Date.now()-L.JSC$19716_requestStartTime_,x.JSC$19735_forwardChannelRetryCount_),dV3(x)):unG(x);else{var Q=L.JSC$19716_lastStatusCode_,J=L.getLastError();if(J==3||
J==0&&Q>0)x.JSC$19735_channelDebug_.debug("Not retrying due to error type"),Q>200&&(x.errorResponseStatusCode_=L.JSC$19716_lastStatusCode_);else{x.JSC$19735_channelDebug_.debug(function(){return"Maybe retrying, last error: "+R_l(J,x.errorResponseStatusCode_)});
if(S==1&&Vvl(x,L)||S==2&&xV5(x))return;x.JSC$19735_channelDebug_.debug("Exceeded max number of retries")}D&&D.length>0&&ZSg(x.forwardChannelRequestPool_,D);x.JSC$19735_channelDebug_.debug("Error: HTTP request failed");switch(J){case 1:q3(x,5);break;case 4:q3(x,10);break;case 3:q3(x,6);break;default:q3(x,2)}}},vKg=function(x,L){var D=x.JSC$19735_baseRetryDelayMs_+Math.floor(Math.random()*x.JSC$19735_retryDelaySeedMs_);
x.isActive()||(x.JSC$19735_channelDebug_.debug("Inactive channel"),D*=2);return D*L};
rj.prototype.onInput_=function(x,L){for(var D=0;D<x.length;D++){var S=x[D],Q=S[0];if(Q<=this.JSC$19735_lastArrayId_)this.JSC$19735_channelDebug_.warning("Ignoring out-of-order or duplicate message with arrayId: "+Q+", lastArrayId: "+this.JSC$19735_lastArrayId_);else if(Q>this.JSC$19735_lastArrayId_+1&&this.JSC$19735_lastArrayId_>-1&&this.JSC$19735_channelDebug_.warning("Received non-consecutive message with arrayId: "+Q+", lastArrayId: "+this.JSC$19735_lastArrayId_),this.JSC$19735_lastArrayId_=Q,
S=S[1],this.state_==2)if(S[0]=="c"){this.sid_=S[1];this.JSC$19735_hostPrefix_=S[2];Q=S[3];Q!=null&&(this.JSC$19737_channelVersion_=Q,this.JSC$19735_channelDebug_.info("VER="+this.JSC$19737_channelVersion_));Q=S[4];Q!=null&&(this.serverVersion_=Q,this.JSC$19735_channelDebug_.info("SVER="+this.serverVersion_));S=S[5];S!=null&&typeof S==="number"&&S>0&&(this.backChannelRequestTimeoutMs_=S*=1.5,this.JSC$19735_channelDebug_.info("backChannelRequestTimeoutMs_="+S));if(S=L.JSC$19716_xmlHttp_){var J=Hj(S,
"X-Client-Wire-Protocol");J&&(Q=this.forwardChannelRequestPool_,!Q.requestPool_&&(_.Mf(J,"spdy")||_.Mf(J,"quic")||_.Mf(J,"h2"))&&(Q.JSC$19726_maxSize_=Q.maxPoolSizeConfigured_,Q.requestPool_=new Set,Q.JSC$19726_request_&&(Ja5(Q,Q.JSC$19726_request_),Q.JSC$19726_request_=null)));this.httpSessionIdParam_&&((S=Hj(S,"X-HTTP-Session-Id"))?(this.httpSessionId_=S,_.xV(this.JSC$19735_forwardChannelUri_,this.httpSessionIdParam_,S)):this.JSC$19735_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=
3;this.handler_&&this.handler_.JSC$19741_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-L.JSC$19716_requestStartTime_,this.JSC$19735_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));S=L;Q=Mv3(this,this.JSC$19735_supportsCrossDomainXhrs_?this.JSC$19735_hostPrefix_:null,this.JSC$19735_path_);this.JSC$19735_channelDebug_.debug("GetBackChannelUri: "+Q);this.JSC$19735_backChannelUri_=Q;S.initialResponseDecoded_?(this.JSC$19735_channelDebug_.debug("Upgrade the handshake request to a backchannel."),
KGl(this.forwardChannelRequestPool_,S),Q=S,(J=this.backChannelRequestTimeoutMs_)&&Q.setTimeout(J),Q.JSC$19716_watchDogTimerId_&&(A4q(Q),wuq(Q)),this.JSC$19735_backChannelRequest_=S):unG(this);this.JSC$19735_outgoingMaps_.length>0&&dV3(this)}else S[0]!="stop"&&S[0]!="close"||q3(this,7);else this.state_==3&&(S[0]=="stop"||S[0]=="close"?S[0]=="stop"?q3(this,7):this.disconnect():S[0]!="noop"&&this.handler_&&this.handler_.JSC$19741_channelHandleArray(S),this.JSC$19735_backChannelRetryCount_=0)}};
var q3=function(x,L){x.JSC$19735_channelDebug_.info("Error code "+L);if(L==2){var D=(0,_.e1)(x.testNetworkCallback_,x),S=x.networkTestUrl_,Q=!S;S=new _.Dg(S||"//www.google.com/images/cleardot.gif");_.Qb.location&&_.Qb.location.protocol=="http"||_.PZ(S,"https");_.pr(S);Q?yaW(S.toString(),D):IFu(S.toString(),D)}else G1(2);x.onError_(L)};
rj.prototype.testNetworkCallback_=function(x){x?(this.JSC$19735_channelDebug_.info("Successfully pinged google.com"),G1(2)):(this.JSC$19735_channelDebug_.info("Failed to ping google.com"),G1(1))};
rj.prototype.onError_=function(x){this.JSC$19735_channelDebug_.debug("HttpChannel: error - "+x);this.state_=0;this.handler_&&this.handler_.JSC$19741_channelError(x);jfu(this);PZ9(this)};
var jfu=function(x){x.state_=0;x.nonAckedMapsAtChannelClose_=[];if(x.handler_){var L=OSu(x.forwardChannelRequestPool_);if(L.length!=0||x.JSC$19735_outgoingMaps_.length!=0)x.JSC$19735_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+L.length+", outgoing: "+x.JSC$19735_outgoingMaps_.length}),_.is(x.nonAckedMapsAtChannelClose_,L),_.is(x.nonAckedMapsAtChannelClose_,x.JSC$19735_outgoingMaps_),x.forwardChannelRequestPool_.JSC$19726_pendingMessages_.length=0,_.r0(x.JSC$19735_outgoingMaps_),
x.JSC$19735_outgoingMaps_.length=0;
x.handler_.JSC$19741_channelClosed()}},kdG=function(x){if(x.state_==0)return x.nonAckedMapsAtChannelClose_;
var L=[];_.is(L,OSu(x.forwardChannelRequestPool_));_.is(L,x.JSC$19735_outgoingMaps_);return L},Mv3=function(x,L,D){var S=_.ze(D);
S.JSC$10036_domain_!=""?(L&&_.ju(S,L+"."+S.JSC$10036_domain_),_.vZ(S,S.JSC$10036_port_)):(S=_.Qb.location,S=YcY(S.protocol,L?L+"."+S.hostname:S.hostname,+S.port,D));L=x.httpSessionIdParam_;D=x.httpSessionId_;L&&D&&_.xV(S,L,D);_.xV(S,"VER",x.JSC$19737_channelVersion_);N3(x,S);return S},Bh9=function(x,L,D){if(L&&!x.JSC$19735_supportsCrossDomainXhrs_)throw Error("Ok");
L=x.usesFetchStreams_&&!x.JSC$19735_xmlHttpFactory_?new _.fW(new iF({streamBinaryChunks:D})):new _.fW(x.JSC$19735_xmlHttpFactory_);L.JSC$9800_withCredentials_=x.JSC$19735_supportsCrossDomainXhrs_;return L};
rj.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var pgI=function(){};
_.K=pgI.prototype;_.K.JSC$19741_channelOpened=function(){};
_.K.JSC$19741_channelHandleArray=function(){};
_.K.JSC$19741_channelError=function(){};
_.K.JSC$19741_channelClosed=function(){};
_.K.isActive=function(){return!0};
_.K.JSC$19741_badMapError=function(){};var mV3=function(){},fk=function(x,L){_.Bc.call(this);
this.JSC$19744_channel_=new rj(L);this.JSC$19744_url_=x;this.messageUrlParams_=L&&L.messageUrlParams||null;x=L&&L.messageHeaders||null;L&&L.clientProtocolHeaderRequired&&(x?_.wk.set(x,"X-Client-Protocol","webchannel"):x=_.wk.create("X-Client-Protocol","webchannel"));this.JSC$19744_channel_.JSC$19735_extraHeaders_=x;x=L&&L.initMessageHeaders||null;L&&L.messageContentType&&(x?_.wk.set(x,"X-WebChannel-Content-Type",L.messageContentType):x=_.wk.create("X-WebChannel-Content-Type",L.messageContentType));
L&&L.clientProfile&&(x?_.wk.set(x,"X-WebChannel-Client-Profile",L.clientProfile):x=_.wk.create("X-WebChannel-Client-Profile",L.clientProfile));this.JSC$19744_channel_.initHeaders_=x;(x=L&&L.httpHeadersOverwriteParam)&&!_.Ew(x)&&(this.JSC$19744_channel_.httpHeadersOverwriteParam_=x);this.supportsCrossDomainXhr_=L&&L.supportsCrossDomainXhr||!1;this.sendRawJson_=L&&L.sendRawJson||!1;(L=L&&L.httpSessionIdParam)&&!_.Ew(L)&&(this.JSC$19744_channel_.httpSessionIdParam_=L,_.wk.containsKey(this.messageUrlParams_,
L)&&_.wk.remove(this.messageUrlParams_,L));this.channelHandler_=new ia(this)};
_.E9(fk,_.Bc);fk.prototype.open=function(){this.JSC$19744_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$19744_channel_.JSC$19735_supportsCrossDomainXhrs_=!0);this.JSC$19744_channel_.connect(this.JSC$19744_url_,this.messageUrlParams_||void 0)};
fk.prototype.close=function(){this.JSC$19744_channel_.disconnect()};
fk.prototype.send=function(x){var L=this.JSC$19744_channel_;if(typeof x==="string"){var D={};D.__data__=x;x=D}else this.sendRawJson_&&(D={},D.__data__=(0,_.iO)(x),x=D);L.JSC$19735_outgoingMaps_.push(new DVq(L.JSC$19735_nextMapId_++,x));L.state_==3&&dV3(L)};
fk.prototype.disposeInternal=function(){this.JSC$19744_channel_.handler_=null;delete this.channelHandler_;this.JSC$19744_channel_.disconnect();delete this.JSC$19744_channel_;fk.superClass_.disposeInternal.call(this)};
var bS3=function(x){h_q.call(this);x.__headers__&&(this.headers=x.__headers__,this.statusCode=x.__status__,delete x.__headers__,delete x.__status__);var L=x.__sm__;L?this.data=(this.metadataKey=_.wk.getAnyKey(L))?_.wk.get(L,this.metadataKey):L:this.data=x};
_.E9(bS3,h_q);var YWI=function(x){H1I.call(this);this.status=1;this.errorCode=x};
_.E9(YWI,H1I);var ia=function(x){this.JSC$19751_channel_=x};
_.E9(ia,pgI);ia.prototype.JSC$19741_channelOpened=function(){this.JSC$19751_channel_.dispatchEvent("w")};
ia.prototype.JSC$19741_channelHandleArray=function(x){this.JSC$19751_channel_.dispatchEvent(new bS3(x))};
ia.prototype.JSC$19741_channelError=function(x){this.JSC$19751_channel_.dispatchEvent(new YWI(x))};
ia.prototype.JSC$19741_channelClosed=function(){this.JSC$19751_channel_.dispatchEvent("x")};
var FGq=function(x,L){this.transportChannel_=x;this.JSC$19754_channel_=L},sfX=function(x){return kdG(x.JSC$19754_channel_).map(function(L){var D=x.transportChannel_;
L=L.map;"__data__"in L?(L=L.__data__,D=D.sendRawJson_?(0,_.LgR)(L):L):D=L;return D})};
FGq.prototype.commit=function(x){this.JSC$19754_channel_.forwardChannelFlushedCallback_=x};var o9=function(x){T1s.dispatchEvent(new eBl(T1s,x))},T1s=new _.Bc,eBl=function(x,L){_.Gm.call(this,"statevent",x);
this.stat=L};
_.p(eBl,_.Gm);var a9=function(x,L,D,S,Q){this.JSC$19759_channel_=x;this.JSC$19759_channelDebug_=L;this.sid_=D;this.JSC$19759_rid_=S;this.JSC$19759_retryId_=Q||1;this.timeout_=45E3;this.JSC$19759_eventHandler_=new _.Mu(this);this.pollingTimer_=new _.EK;this.pollingTimer_.setInterval(250)};
_.K=a9.prototype;_.K.JSC$19761_extraHeaders_=null;_.K.JSC$19761_successful_=!1;_.K.JSC$19761_watchDogTimerId_=null;_.K.JSC$19761_watchDogTimeoutTime_=null;_.K.JSC$19761_requestStartTime_=null;_.K.JSC$19761_type_=null;_.K.JSC$19761_baseUri_=null;_.K.JSC$19761_requestUri_=null;_.K.JSC$19761_postData_=null;_.K.JSC$19761_xmlHttp_=null;_.K.JSC$19761_xmlHttpChunkStart_=0;_.K.trident_=null;_.K.JSC$19761_verb_=null;_.K.JSC$19761_lastError_=null;_.K.JSC$19761_lastStatusCode_=-1;_.K.sendClose_=!0;
_.K.JSC$19761_cancelled_=!1;_.K.JSC$19761_readyStateChangeThrottleMs_=0;_.K.JSC$19761_readyStateChangeThrottle_=null;var RBg=function(x,L){switch(x){case 0:return"Non-200 return code ("+L+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},Gds={},CZ9={};
a9.prototype.setTimeout=function(x){this.timeout_=x};
var UVI=function(x,L,D){x.JSC$19761_type_=1;x.JSC$19761_baseUri_=_.pr(L.clone());x.JSC$19761_postData_=D;x.decodeChunks_=!0;lFW(x,null)},wgl=function(x,L,D,S,Q){x.JSC$19761_type_=1;
x.JSC$19761_baseUri_=_.pr(L.clone());x.JSC$19761_postData_=null;x.decodeChunks_=D;Q&&(x.sendClose_=!1);lFW(x,S)},lFW=function(x,L){x.JSC$19761_requestStartTime_=Date.now();
B1X(x);x.JSC$19761_requestUri_=x.JSC$19761_baseUri_.clone();kS(x.JSC$19761_requestUri_,"t",x.JSC$19759_retryId_);x.JSC$19761_xmlHttpChunkStart_=0;x.JSC$19761_xmlHttp_=x.JSC$19759_channel_.JSC$19768_createXhrIo(x.JSC$19759_channel_.JSC$19768_shouldUseSecondaryDomains()?L:null);x.JSC$19761_readyStateChangeThrottleMs_>0&&(x.JSC$19761_readyStateChangeThrottle_=new _.zR((0,_.e1)(x.JSC$19761_xmlHttpHandler_,x,x.JSC$19761_xmlHttp_),x.JSC$19761_readyStateChangeThrottleMs_));x.JSC$19759_eventHandler_.listen(x.JSC$19761_xmlHttp_,
"readystatechange",x.JSC$19761_readyStateChangeHandler_);L=x.JSC$19761_extraHeaders_?_.wk.clone(x.JSC$19761_extraHeaders_):{};x.JSC$19761_postData_?(x.JSC$19761_verb_="POST",L["Content-Type"]="application/x-www-form-urlencoded",x.JSC$19761_xmlHttp_.send(x.JSC$19761_requestUri_,x.JSC$19761_verb_,x.JSC$19761_postData_,L)):(x.JSC$19761_verb_="GET",x.sendClose_&&!_.V6&&(L.Connection="close"),x.JSC$19761_xmlHttp_.send(x.JSC$19761_requestUri_,x.JSC$19761_verb_,null,L));x.JSC$19759_channel_.notifyServerReachabilityEvent(1);
L=x.JSC$19759_channelDebug_;var D=x.JSC$19761_postData_;if(D){var S="";D=D.split("&");for(var Q=0;Q<D.length;Q++){var J=D[Q].split("=");if(J.length>1){var Z=J[0];J=J[1];var y=Z.split("_");S=y.length>=2&&y[1]=="type"?S+(Z+"="+J+"&"):S+(Z+"=redacted&")}}}else S=null;L.info("XMLHTTP REQ ("+x.JSC$19759_rid_+") [attempt "+x.JSC$19759_retryId_+"]: "+x.JSC$19761_verb_+"\n"+x.JSC$19761_requestUri_+"\n"+S)};
a9.prototype.JSC$19761_readyStateChangeHandler_=function(x){x=x.target;var L=this.JSC$19761_readyStateChangeThrottle_;L&&_.ow(x)==3?(this.JSC$19759_channelDebug_.debug("Throttling readystatechange."),L.fire()):this.JSC$19761_xmlHttpHandler_(x)};
a9.prototype.JSC$19761_xmlHttpHandler_=function(x){try{if(x==this.JSC$19761_xmlHttp_)a:{var L=_.ow(this.JSC$19761_xmlHttp_),D=this.JSC$19761_xmlHttp_.JSC$9800_lastErrorCode_,S=this.JSC$19761_xmlHttp_.getStatus();if(_.V6&&!_.h9("420+")){if(L<4)break a}else if(L<3||L==3&&!this.JSC$19761_xmlHttp_.getResponseText())break a;this.JSC$19761_cancelled_||L!=4||D==7||(D==8||S<=0?this.JSC$19759_channel_.notifyServerReachabilityEvent(3):this.JSC$19759_channel_.notifyServerReachabilityEvent(2));WG5(this);var Q=
this.JSC$19761_xmlHttp_.getStatus();this.JSC$19761_lastStatusCode_=Q;var J=this.JSC$19761_xmlHttp_.getResponseText();J||this.JSC$19759_channelDebug_.debug("No response text for uri "+this.JSC$19761_requestUri_+" status "+Q);this.JSC$19761_successful_=Q==200;this.JSC$19759_channelDebug_.info("XMLHTTP RESP ("+this.JSC$19759_rid_+") [ attempt "+this.JSC$19759_retryId_+"]: "+this.JSC$19761_verb_+"\n"+this.JSC$19761_requestUri_+"\n"+L+" "+Q);if(this.JSC$19761_successful_){L==4&&z1(this);if(this.decodeChunks_){for(x=
!0;!this.JSC$19761_cancelled_&&this.JSC$19761_xmlHttpChunkStart_<J.length;){var Z=qWG(this,J);if(Z==CZ9){L==4&&(this.JSC$19761_lastError_=4,o9(15),x=!1);Xv(this.JSC$19759_channelDebug_,this.JSC$19759_rid_,null,"[Incomplete Response]");break}else if(Z==Gds){this.JSC$19761_lastError_=4;o9(16);Xv(this.JSC$19759_channelDebug_,this.JSC$19759_rid_,J,"[Invalid Chunk]");x=!1;break}else Xv(this.JSC$19759_channelDebug_,this.JSC$19759_rid_,Z,null),AaX(this,Z)}L==4&&J.length==0&&(this.JSC$19761_lastError_=1,
o9(17),x=!1);this.JSC$19761_successful_=this.JSC$19761_successful_&&x;x||(Xv(this.JSC$19759_channelDebug_,this.JSC$19759_rid_,J,"[Invalid Chunked Response]"),z1(this),$Vl(this))}else Xv(this.JSC$19759_channelDebug_,this.JSC$19759_rid_,J,null),AaX(this,J);this.JSC$19761_successful_&&!this.JSC$19761_cancelled_&&(L==4?this.JSC$19759_channel_.JSC$19768_onRequestComplete(this):(this.JSC$19761_successful_=!1,B1X(this)))}else Q==400&&J.indexOf("Unknown SID")>0?(this.JSC$19761_lastError_=3,o9(13),this.JSC$19759_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$19759_rid_+")")):(this.JSC$19761_lastError_=0,o9(14),this.JSC$19759_channelDebug_.warning("XMLHTTP Bad status "+Q+" ("+this.JSC$19759_rid_+")")),z1(this),$Vl(this)}else this.JSC$19759_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(y){this.JSC$19759_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var qWG=function(x,L){var D=x.JSC$19761_xmlHttpChunkStart_,S=L.indexOf("\n",D);if(S==-1)return CZ9;D=Number(L.substring(D,S));if(isNaN(D))return Gds;S+=1;if(S+D>L.length)return CZ9;L=L.slice(S,S+D);x.JSC$19761_xmlHttpChunkStart_=S+D;return L};
a9.prototype.cancel=function(){this.JSC$19761_cancelled_=!0;z1(this)};
var B1X=function(x){x.JSC$19761_watchDogTimeoutTime_=Date.now()+x.timeout_;raG(x,x.timeout_)},raG=function(x,L){if(x.JSC$19761_watchDogTimerId_!=null)throw Error("Nk");
x.JSC$19761_watchDogTimerId_=R7((0,_.e1)(x.JSC$19761_onWatchDogTimeout_,x),L)},WG5=function(x){x.JSC$19761_watchDogTimerId_&&(_.Qb.clearTimeout(x.JSC$19761_watchDogTimerId_),x.JSC$19761_watchDogTimerId_=null)};
a9.prototype.JSC$19761_onWatchDogTimeout_=function(){this.JSC$19761_watchDogTimerId_=null;var x=Date.now();x-this.JSC$19761_watchDogTimeoutTime_>=0?(this.JSC$19759_channelDebug_.info("TIMEOUT: "+this.JSC$19761_requestUri_),this.JSC$19761_type_!=2&&this.JSC$19759_channel_.notifyServerReachabilityEvent(3),z1(this),this.JSC$19761_lastError_=2,o9(18),$Vl(this)):(this.JSC$19759_channelDebug_.warning("WatchDog timer called too early"),raG(this,this.JSC$19761_watchDogTimeoutTime_-x))};
var $Vl=function(x){x.JSC$19759_channel_.JSC$19768_isClosed()||x.JSC$19761_cancelled_||x.JSC$19759_channel_.JSC$19768_onRequestComplete(x)},z1=function(x){WG5(x);
_.Q1(x.JSC$19761_readyStateChangeThrottle_);x.JSC$19761_readyStateChangeThrottle_=null;x.pollingTimer_.stop();x.JSC$19759_eventHandler_.removeAll();if(x.JSC$19761_xmlHttp_){var L=x.JSC$19761_xmlHttp_;x.JSC$19761_xmlHttp_=null;L.abort();L.dispose()}x.trident_&&(x.trident_=null)};
a9.prototype.getLastError=function(){return this.JSC$19761_lastError_};
var AaX=function(x,L){try{x.JSC$19759_channel_.JSC$19768_onRequestData(x,L),x.JSC$19759_channel_.notifyServerReachabilityEvent(4)}catch(D){}};var Xv=function(x,L,D,S){var Q=x.info;a:if(D&&D!="y2f%"){try{var J=JSON.parse(D);if(J)for(var Z=0;Z<J.length;Z++)if(Array.isArray(J[Z])){var y=J[Z];if(!(y.length<2)){var E=y[1];if(Array.isArray(E)&&!(E.length<1)){var P=E[0];if(P!="noop"&&P!="stop")for(var v=1;v<E.length;v++)E[v]=""}}}var V=(0,_.iO)(J);break a}catch(h){x.debug("Exception parsing expected JS array - probably was not JS");V=D;break a}V=void 0}else V=D;Q.call(x,"XMLHTTP TEXT ("+L+"): "+V+(S?" "+S:""))};
Gx.prototype.debug=function(x){this.info(x)};
Gx.prototype.info=function(){};
Gx.prototype.warning=function(){};var N1g=function(x,L){this.JSC$19766_channel_=x;this.JSC$19766_channelDebug_=L;this.JSC$19766_parser_=new eB};
_.K=N1g.prototype;_.K.JSC$19768_extraHeaders_=null;_.K.JSC$19768_request_=null;_.K.receivedIntermediateResult_=!1;_.K.JSC$19768_path_=null;_.K.state_=null;_.K.JSC$19768_lastStatusCode_=-1;_.K.JSC$19768_hostPrefix_=null;_.K.blockedPrefix_=null;
_.K.connect=function(x){this.JSC$19768_path_=x;x=iS5(this.JSC$19766_channel_,this.JSC$19768_path_);o9(3);Date.now();var L=this.JSC$19766_channel_.firstTestResults_;L!=null?(this.JSC$19768_hostPrefix_=L[0],(this.blockedPrefix_=L[1])?(this.state_=1,fFq(this)):(this.state_=2,oKq(this))):(kS(x,"MODE","init"),this.JSC$19768_request_=new a9(this,this.JSC$19766_channelDebug_),this.JSC$19768_request_.JSC$19761_extraHeaders_=this.JSC$19768_extraHeaders_,wgl(this.JSC$19768_request_,x,!1,null,!0),this.state_=
0)};
var fFq=function(x){var L=aFg(x.JSC$19766_channel_,x.blockedPrefix_,"/mail/images/cleardot.gif");_.pr(L);JH$(L.toString(),5E3,(0,_.e1)(x.checkBlockedCallback_,x),3,2E3);x.notifyServerReachabilityEvent(1)};
N1g.prototype.checkBlockedCallback_=function(x){if(x)this.state_=2,oKq(this);else{o9(4);var L=this.JSC$19766_channel_;L.JSC$19769_channelDebug_.debug("Test Connection Blocked");L.JSC$19773_lastStatusCode_=L.connectionTest_.JSC$19768_lastStatusCode_;cR(L,9)}x&&this.notifyServerReachabilityEvent(2)};
var oKq=function(x){x.JSC$19766_channelDebug_.debug("TestConnection: starting stage 2");var L=x.JSC$19766_channel_.secondTestResults_;L!=null?(x.JSC$19766_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+L?"Buffered":"Unbuffered"),o9(5),L?(o9(11),nk(x.JSC$19766_channel_,x,!1)):(o9(12),nk(x.JSC$19766_channel_,x,!0))):(x.JSC$19768_request_=new a9(x,x.JSC$19766_channelDebug_),x.JSC$19768_request_.JSC$19761_extraHeaders_=x.JSC$19768_extraHeaders_,L=zBl(x.JSC$19766_channel_,
x.JSC$19768_hostPrefix_,x.JSC$19768_path_),o9(5),kS(L,"TYPE","xmlhttp"),wgl(x.JSC$19768_request_,L,!1,x.JSC$19768_hostPrefix_,!1))};
_.K=N1g.prototype;_.K.JSC$19768_createXhrIo=function(x){return this.JSC$19766_channel_.JSC$19768_createXhrIo(x)};
_.K.abort=function(){this.JSC$19768_request_&&(this.JSC$19768_request_.cancel(),this.JSC$19768_request_=null);this.JSC$19768_lastStatusCode_=-1};
_.K.JSC$19768_isClosed=function(){return!1};
_.K.JSC$19768_onRequestData=function(x,L){this.JSC$19768_lastStatusCode_=x.JSC$19761_lastStatusCode_;if(this.state_==0)if(this.JSC$19766_channelDebug_.debug("TestConnection: Got data for stage 1"),L){try{var D=this.JSC$19766_parser_.parse(L)}catch(S){Xg9(this.JSC$19766_channel_,this);return}this.JSC$19768_hostPrefix_=D[0];this.blockedPrefix_=D[1]}else this.JSC$19766_channelDebug_.debug("TestConnection: Null responseText"),Xg9(this.JSC$19766_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(o9(7),Date.now()):L=="11111"?(o9(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$19768_lastStatusCode_=200,this.JSC$19768_request_.cancel(),this.JSC$19766_channelDebug_.debug("Test connection succeeded; using streaming connection"),o9(12),nk(this.JSC$19766_channel_,this,!0)):(o9(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.K.JSC$19768_onRequestComplete=function(){this.JSC$19768_lastStatusCode_=this.JSC$19768_request_.JSC$19761_lastStatusCode_;this.JSC$19768_request_.JSC$19761_successful_?this.state_==0?(this.JSC$19766_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,fFq(this)):(this.state_=2,oKq(this))):this.state_==2&&(this.JSC$19766_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$19766_channelDebug_.debug("Test connection succeeded; using streaming connection"),
o9(12),nk(this.JSC$19766_channel_,this,!0)):(this.JSC$19766_channelDebug_.debug("Test connection failed; not using streaming"),o9(11),nk(this.JSC$19766_channel_,this,!1))):(this.JSC$19766_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?o9(9):this.state_==2&&o9(10),Xg9(this.JSC$19766_channel_,this,this.JSC$19768_request_.getLastError()))};
_.K.JSC$19768_shouldUseSecondaryDomains=function(){return this.JSC$19766_channel_.JSC$19768_shouldUseSecondaryDomains()};
_.K.isActive=function(){return this.JSC$19766_channel_.isActive()};
_.K.notifyServerReachabilityEvent=function(x){this.JSC$19766_channel_.notifyServerReachabilityEvent(x)};var tP=function(x,L,D){this.state_=1;this.JSC$19769_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$19769_channelDebug_=new Gx;this.JSC$19769_parser_=new eB;this.firstTestResults_=x||null;this.secondTestResults_=L!=null?L:null;this.asyncTest_=D||!1},cal=function(x,L){this.JSC$19771_mapId=x;
this.map=L;this.context=null};
_.K=tP.prototype;_.K.JSC$19773_extraHeaders_=null;_.K.JSC$19773_extraParams_=null;_.K.forwardChannelRequest_=null;_.K.JSC$19773_backChannelRequest_=null;_.K.JSC$19773_path_=null;_.K.JSC$19773_forwardChannelUri_=null;_.K.JSC$19773_backChannelUri_=null;_.K.JSC$19773_hostPrefix_=null;_.K.JSC$19773_nextRid_=0;_.K.JSC$19773_nextMapId_=0;_.K.handler_=null;_.K.JSC$19773_forwardChannelTimerId_=null;_.K.JSC$19773_backChannelTimerId_=null;_.K.JSC$19773_deadBackChannelTimerId_=null;_.K.connectionTest_=null;
_.K.useChunked_=null;_.K.JSC$19773_lastArrayId_=-1;_.K.JSC$19773_lastPostResponseArrayId_=-1;_.K.JSC$19773_lastStatusCode_=-1;_.K.JSC$19773_forwardChannelRetryCount_=0;_.K.JSC$19773_backChannelRetryCount_=0;_.K.JSC$19773_channelVersion_=8;var nKq={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},tv5=function(x,L,D,S){_.Gm.call(this,"timingevent",x);this.size=L;this.rtt=D;this.retries=S};
_.E9(tv5,_.Gm);var xJg=function(x){_.Gm.call(this,"serverreachability",x)};
_.E9(xJg,_.Gm);tP.prototype.connect=function(x,L,D,S,Q){this.JSC$19769_channelDebug_.debug("connect()");o9(0);this.JSC$19773_path_=L;this.JSC$19773_extraParams_=D||{};S&&Q!==void 0&&(this.JSC$19773_extraParams_.OSID=S,this.JSC$19773_extraParams_.OAID=Q);this.asyncTest_?(R7((0,_.e1)(this.connectTest_,this,x),100),L1g(this)):this.connectTest_(x)};
tP.prototype.disconnect=function(){this.JSC$19769_channelDebug_.debug("disconnect()");DJu(this);if(this.state_==3){var x=this.JSC$19773_nextRid_++,L=this.JSC$19773_forwardChannelUri_.clone();_.xV(L,"SID",this.sid_);_.xV(L,"RID",x);_.xV(L,"TYPE","terminate");xu(this,L);x=new a9(this,this.JSC$19769_channelDebug_,this.sid_,x);x.JSC$19761_type_=2;x.JSC$19761_baseUri_=_.pr(L.clone());(new Image).src=x.JSC$19761_baseUri_.toString();x.JSC$19761_requestStartTime_=Date.now();B1X(x)}S6G(this)};
tP.prototype.connectTest_=function(x){this.JSC$19769_channelDebug_.debug("connectTest_()");this.connectionTest_=new N1g(this,this.JSC$19769_channelDebug_);this.connectionTest_.JSC$19768_extraHeaders_=this.JSC$19773_extraHeaders_;this.connectionTest_.JSC$19766_parser_=this.JSC$19769_parser_;this.connectionTest_.connect(x)};
var L1g=function(x){x.JSC$19769_channelDebug_.debug("connectChannel_()");x.JSC$19773_ensureInState_(1,0);x.JSC$19773_forwardChannelUri_=iS5(x,x.JSC$19773_path_);QQ5(x)},DJu=function(x){x.connectionTest_&&(x.connectionTest_.abort(),x.connectionTest_=null);
x.JSC$19773_backChannelRequest_&&(x.JSC$19773_backChannelRequest_.cancel(),x.JSC$19773_backChannelRequest_=null);x.JSC$19773_backChannelTimerId_&&(_.Qb.clearTimeout(x.JSC$19773_backChannelTimerId_),x.JSC$19773_backChannelTimerId_=null);JMX(x);x.forwardChannelRequest_&&(x.forwardChannelRequest_.cancel(),x.forwardChannelRequest_=null);x.JSC$19773_forwardChannelTimerId_&&(_.Qb.clearTimeout(x.JSC$19773_forwardChannelTimerId_),x.JSC$19773_forwardChannelTimerId_=null)},K1G=function(x,L){if(x.state_==0)throw Error("Qk");
x.JSC$19769_outgoingMaps_.length==1E3&&x.JSC$19769_parser_.stringify(L);x.JSC$19769_outgoingMaps_.push(new cal(x.JSC$19773_nextMapId_++,L));x.state_!=2&&x.state_!=3||QQ5(x)};
tP.prototype.JSC$19768_isClosed=function(){return this.state_==0};
tP.prototype.getState=function(){return this.state_};
var QQ5=function(x){x.forwardChannelRequest_||x.JSC$19773_forwardChannelTimerId_||(x.JSC$19773_forwardChannelTimerId_=R7((0,_.e1)(x.JSC$19773_onStartForwardChannelTimer_,x),0),x.JSC$19773_forwardChannelRetryCount_=0)};
tP.prototype.JSC$19773_onStartForwardChannelTimer_=function(x){this.JSC$19773_forwardChannelTimerId_=null;OvW(this,x)};
var OvW=function(x,L){x.JSC$19769_channelDebug_.debug("startForwardChannel_");if(x.state_==1){if(!L){x.JSC$19769_channelDebug_.debug("open_()");x.JSC$19773_nextRid_=Math.floor(Math.random()*1E5);L=x.JSC$19773_nextRid_++;var D=new a9(x,x.JSC$19769_channelDebug_,"",L);D.JSC$19761_extraHeaders_=x.JSC$19773_extraHeaders_;var S=Zv9(x),Q=x.JSC$19773_forwardChannelUri_.clone();_.xV(Q,"RID",L);_.xV(Q,"CVER","1");xu(x,Q);UVI(D,Q,S);x.forwardChannelRequest_=D;x.state_=2}}else x.state_==3&&(L?yM3(x,L):x.JSC$19769_outgoingMaps_.length==
0?x.JSC$19769_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):x.forwardChannelRequest_||(yM3(x),x.JSC$19769_channelDebug_.debug("startForwardChannel_ finished, sent request")))},yM3=function(x,L){if(L)if(x.JSC$19773_channelVersion_>6){x.JSC$19769_outgoingMaps_=x.pendingMaps_.concat(x.JSC$19769_outgoingMaps_);
x.pendingMaps_.length=0;var D=x.JSC$19773_nextRid_-1;L=Zv9(x)}else D=L.JSC$19759_rid_,L=L.JSC$19761_postData_;else D=x.JSC$19773_nextRid_++,L=Zv9(x);var S=x.JSC$19773_forwardChannelUri_.clone();_.xV(S,"SID",x.sid_);_.xV(S,"RID",D);_.xV(S,"AID",x.JSC$19773_lastArrayId_);xu(x,S);D=new a9(x,x.JSC$19769_channelDebug_,x.sid_,D,x.JSC$19773_forwardChannelRetryCount_+1);D.JSC$19761_extraHeaders_=x.JSC$19773_extraHeaders_;D.setTimeout(1E4+Math.round(1E4*Math.random()));x.forwardChannelRequest_=D;UVI(D,S,L)},
xu=function(x,L){x.handler_&&(x=x.handler_.JSC$19780_getAdditionalParams())&&_.wk.forEach(x,function(D,S){_.xV(L,S,D)})},Zv9=function(x){var L=Math.min(x.JSC$19769_outgoingMaps_.length,1E3),D=["count="+L];
if(x.JSC$19773_channelVersion_>6&&L>0){var S=x.JSC$19769_outgoingMaps_[0].JSC$19771_mapId;D.push("ofs="+S)}else S=0;for(var Q={},J=0;J<L;Q={mapId$jscomp$3:void 0},J++){Q.mapId$jscomp$3=x.JSC$19769_outgoingMaps_[J].JSC$19771_mapId;var Z=x.JSC$19769_outgoingMaps_[J].map;Q.mapId$jscomp$3=x.JSC$19773_channelVersion_<=6?J:Q.mapId$jscomp$3-S;try{_.wk.forEach(Z,function(y){return function(E,P){D.push("req"+y.mapId$jscomp$3+"_"+P+"="+encodeURIComponent(E))}}(Q))}catch(y){D.push("req"+Q.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}x.pendingMaps_=x.pendingMaps_.concat(x.JSC$19769_outgoingMaps_.splice(0,L));
return D.join("&")},IqW=function(x){x.JSC$19773_backChannelRequest_||x.JSC$19773_backChannelTimerId_||(x.JSC$19773_backChannelAttemptId_=1,x.JSC$19773_backChannelTimerId_=R7((0,_.e1)(x.JSC$19773_onStartBackChannelTimer_,x),0),x.JSC$19773_backChannelRetryCount_=0)},M3q=function(x){if(x.JSC$19773_backChannelRequest_||x.JSC$19773_backChannelTimerId_||x.JSC$19773_backChannelRetryCount_>=3)return!1;
x.JSC$19769_channelDebug_.debug("Going to retry GET");x.JSC$19773_backChannelAttemptId_++;x.JSC$19773_backChannelTimerId_=R7((0,_.e1)(x.JSC$19773_onStartBackChannelTimer_,x),Ehl(x,x.JSC$19773_backChannelRetryCount_));x.JSC$19773_backChannelRetryCount_++;return!0};
tP.prototype.JSC$19773_onStartBackChannelTimer_=function(){this.JSC$19773_backChannelTimerId_=null;this.JSC$19769_channelDebug_.debug("Creating new HttpRequest");this.JSC$19773_backChannelRequest_=new a9(this,this.JSC$19769_channelDebug_,this.sid_,"rpc",this.JSC$19773_backChannelAttemptId_);this.JSC$19773_backChannelRequest_.JSC$19761_extraHeaders_=this.JSC$19773_extraHeaders_;this.JSC$19773_backChannelRequest_.JSC$19761_readyStateChangeThrottleMs_=0;var x=this.JSC$19773_backChannelUri_.clone();_.xV(x,
"RID","rpc");_.xV(x,"SID",this.sid_);_.xV(x,"CI",this.useChunked_?"0":"1");_.xV(x,"AID",this.JSC$19773_lastArrayId_);xu(this,x);_.xV(x,"TYPE","xmlhttp");wgl(this.JSC$19773_backChannelRequest_,x,!0,this.JSC$19773_hostPrefix_,!1);this.JSC$19769_channelDebug_.debug("New Request created")};
var nk=function(x,L,D){x.JSC$19769_channelDebug_.debug("Test Connection Finished");x.useChunked_=x.secondTestResults_==null?D:!x.secondTestResults_;x.JSC$19773_lastStatusCode_=L.JSC$19768_lastStatusCode_;x.asyncTest_||L1g(x)},Xg9=function(x,L){x.JSC$19769_channelDebug_.debug("Test Connection Failed");
x.JSC$19773_lastStatusCode_=L.JSC$19768_lastStatusCode_;cR(x,2)};
tP.prototype.JSC$19768_onRequestData=function(x,L){if(this.state_!=0&&(this.JSC$19773_backChannelRequest_==x||this.forwardChannelRequest_==x))if(this.JSC$19773_lastStatusCode_=x.JSC$19761_lastStatusCode_,this.forwardChannelRequest_==x&&this.state_==3)if(this.JSC$19773_channelVersion_>7){try{var D=this.JSC$19769_parser_.parse(L)}catch(S){D=null}if(Array.isArray(D)&&D.length==3)if(L=D,L[0]==0)a:if(this.JSC$19769_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$19773_backChannelTimerId_)this.JSC$19769_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$19773_backChannelRequest_)if(this.JSC$19773_backChannelRequest_.JSC$19761_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$19761_requestStartTime_)JMX(this),this.JSC$19773_backChannelRequest_.cancel(),this.JSC$19773_backChannelRequest_=null;else break a;else this.JSC$19769_channelDebug_.warning("We do not have a BackChannel established");M3q(this);o9(19)}else this.JSC$19773_lastPostResponseArrayId_=L[1],x=this.JSC$19773_lastPostResponseArrayId_-this.JSC$19773_lastArrayId_,0<
x&&(L=L[2],this.JSC$19769_channelDebug_.debug(L+" bytes (in "+x+" arrays) are outstanding on the BackChannel"),L<37500&&this.useChunked_&&this.JSC$19773_backChannelRetryCount_==0&&!this.JSC$19773_deadBackChannelTimerId_&&(this.JSC$19773_deadBackChannelTimerId_=R7((0,_.e1)(this.JSC$19773_onBackChannelDead_,this),6E3)));else this.JSC$19769_channelDebug_.debug("Bad POST response data returned"),cR(this,11)}else L!="y2f%"&&(this.JSC$19769_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
cR(this,11));else this.JSC$19773_backChannelRequest_==x&&JMX(this),_.Ew(L)||(x=this.JSC$19769_parser_.parse(L),this.onInput_(x))};
tP.prototype.JSC$19773_onBackChannelDead_=function(){this.JSC$19773_deadBackChannelTimerId_!=null&&(this.JSC$19773_deadBackChannelTimerId_=null,this.JSC$19773_backChannelRequest_.cancel(),this.JSC$19773_backChannelRequest_=null,M3q(this),o9(20))};
var JMX=function(x){x.JSC$19773_deadBackChannelTimerId_!=null&&(_.Qb.clearTimeout(x.JSC$19773_deadBackChannelTimerId_),x.JSC$19773_deadBackChannelTimerId_=null)};
tP.prototype.JSC$19768_onRequestComplete=function(x){this.JSC$19769_channelDebug_.debug("Request complete");if(this.JSC$19773_backChannelRequest_==x){JMX(this);this.JSC$19773_backChannelRequest_=null;var L=2}else if(this.forwardChannelRequest_==x)this.forwardChannelRequest_=null,L=1;else return;this.JSC$19773_lastStatusCode_=x.JSC$19761_lastStatusCode_;if(this.state_!=0)if(x.JSC$19761_successful_)if(L==1){L=x.JSC$19761_postData_?x.JSC$19761_postData_.length:0;x=Date.now()-x.JSC$19761_requestStartTime_;
var D=T1s;D.dispatchEvent(new tv5(D,L,x,this.JSC$19773_forwardChannelRetryCount_));QQ5(this);this.handler_&&this.handler_.JSC$19780_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else IqW(this);else{D=x.getLastError();if(D==3||D==7||D==0&&this.JSC$19773_lastStatusCode_>0)this.JSC$19769_channelDebug_.debug("Not retrying due to error type");else{this.JSC$19769_channelDebug_.debug("Maybe retrying, last error: "+RBg(D,this.JSC$19773_lastStatusCode_));var S;if(S=L==1)this.forwardChannelRequest_||
this.JSC$19773_forwardChannelTimerId_||this.state_==1||this.JSC$19773_forwardChannelRetryCount_>=2?S=!1:(this.JSC$19769_channelDebug_.debug("Going to retry POST"),this.JSC$19773_forwardChannelTimerId_=R7((0,_.e1)(this.JSC$19773_onStartForwardChannelTimer_,this,x),Ehl(this,this.JSC$19773_forwardChannelRetryCount_)),this.JSC$19773_forwardChannelRetryCount_++,S=!0);if(S||L==2&&M3q(this))return;this.JSC$19769_channelDebug_.debug("Exceeded max number of retries")}this.JSC$19769_channelDebug_.debug("Error: HTTP request failed");
switch(D){case 1:cR(this,5);break;case 4:cR(this,10);break;case 3:cR(this,6);break;case 7:cR(this,12);break;default:cR(this,2)}}};
var Ehl=function(x,L){var D=5E3+Math.floor(Math.random()*1E4);x.isActive()||(x.JSC$19769_channelDebug_.debug("Inactive channel"),D*=2);return D*L};
tP.prototype.onInput_=function(x){for(var L=0;L<x.length;L++){var D=x[L];this.JSC$19773_lastArrayId_=D[0];D=D[1];this.state_==2?D[0]=="c"?(this.sid_=D[1],this.JSC$19773_hostPrefix_=D[2],D=D[3],D!=null?this.JSC$19773_channelVersion_=D:this.JSC$19773_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$19780_channelOpened(),this.JSC$19773_backChannelUri_=zBl(this,this.JSC$19773_hostPrefix_,this.JSC$19773_path_),IqW(this)):D[0]=="stop"&&cR(this,7):this.state_==3&&(D[0]=="stop"?cR(this,7):
D[0]!="noop"&&this.handler_&&this.handler_.JSC$19780_channelHandleArray(D),this.JSC$19773_backChannelRetryCount_=0)}};
tP.prototype.JSC$19773_ensureInState_=function(x){if(!_.AG(arguments,this.state_))throw Error("Rk`"+this.state_);};
var cR=function(x,L){x.JSC$19769_channelDebug_.info("Error code "+L);if(L==2||L==9){var D=null;x.handler_&&(D=null);var S=(0,_.e1)(x.testGoogleComCallback_,x);D||(D=new _.Dg("//www.google.com/images/cleardot.gif"),_.pr(D));Q63(D.toString(),1E4,S)}else o9(2);x.onError_(L)};
tP.prototype.testGoogleComCallback_=function(x){x?(this.JSC$19769_channelDebug_.info("Successfully pinged google.com"),o9(2)):(this.JSC$19769_channelDebug_.info("Failed to ping google.com"),o9(1),this.onError_(8))};
tP.prototype.onError_=function(x){this.JSC$19769_channelDebug_.debug("HttpChannel: error - "+x);this.state_=0;this.handler_&&this.handler_.JSC$19780_channelError(x);S6G(this);DJu(this)};
var S6G=function(x){x.state_=0;x.JSC$19773_lastStatusCode_=-1;if(x.handler_)if(x.pendingMaps_.length==0&&x.JSC$19769_outgoingMaps_.length==0)x.handler_.JSC$19780_channelClosed();else{x.JSC$19769_channelDebug_.debug("Number of undelivered maps, pending: "+x.pendingMaps_.length+", outgoing: "+x.JSC$19769_outgoingMaps_.length);var L=_.r0(x.pendingMaps_),D=_.r0(x.JSC$19769_outgoingMaps_);x.pendingMaps_.length=0;x.JSC$19769_outgoingMaps_.length=0;x.handler_.JSC$19780_channelClosed(L,D)}},iS5=function(x,
L){L=aFg(x,null,L);
x.JSC$19769_channelDebug_.debug("GetForwardChannelUri: "+L);return L},zBl=function(x,L,D){L=aFg(x,x.JSC$19768_shouldUseSecondaryDomains()?L:null,D);
x.JSC$19769_channelDebug_.debug("GetBackChannelUri: "+L);return L},aFg=function(x,L,D){var S=_.ze(D);
if(S.JSC$10036_domain_!="")L&&_.ju(S,L+"."+S.JSC$10036_domain_),_.vZ(S,S.JSC$10036_port_);else{var Q=window.location;S=YcY(Q.protocol,L?L+"."+Q.hostname:Q.hostname,+Q.port,D)}x.JSC$19773_extraParams_&&_.wk.forEach(x.JSC$19773_extraParams_,function(J,Z){_.xV(S,Z,J)});
_.xV(S,"VER",x.JSC$19773_channelVersion_);xu(x,S);return S};
tP.prototype.JSC$19768_createXhrIo=function(x){if(x)throw Error("Ok");x=new _.fW;x.JSC$9800_withCredentials_=!1;return x};
tP.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
tP.prototype.notifyServerReachabilityEvent=function(x){var L=T1s;L.dispatchEvent(new xJg(L,x))};
tP.prototype.JSC$19768_shouldUseSecondaryDomains=function(){return!1};
new GCX;var dJG=function(){};
_.K=dJG.prototype;_.K.JSC$19780_channelOpened=function(){};
_.K.JSC$19780_channelHandleArray=function(){};
_.K.JSC$19780_channelSuccess=function(){};
_.K.JSC$19780_channelError=function(){};
_.K.JSC$19780_channelClosed=function(){};
_.K.JSC$19780_getAdditionalParams=function(){return{}};
_.K.isActive=function(){return!0};var Pel=function(x){x.front_.length===0&&(x.front_=x.back_,x.front_.reverse(),x.back_=[])};
_.K=OIW.prototype;_.K.enqueue=function(x){this.back_.push(x)};
_.K.peek=function(){Pel(this);return _.ls(this.front_)};
_.K.getCount=function(){return this.front_.length+this.back_.length};
_.K.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.K.clear=function(){this.front_=[];this.back_=[]};
_.K.contains=function(x){return _.AG(this.front_,x)||_.AG(this.back_,x)};
_.K.remove=function(x){var L=this.front_;var D=Array.prototype.lastIndexOf.call(L,x,L.length-1);D>=0?(_.ROp(L,D),L=!0):L=!1;return L||_.$f(this.back_,x)};
_.K.getValues=function(){for(var x=[],L=this.front_.length-1;L>=0;--L)x.push(this.front_[L]);L=this.back_.length;for(var D=0;D<L;++D)x.push(this.back_[D]);return x};var Lo=function(x){this.JSC$19784_map_=new _.sF;this.size=0;x&&this.addAll(x)},jQg=function(x){var L=typeof x;
return L=="object"&&x||L=="function"?"o"+_.zN(x):L.charAt(0)+x};
_.K=Lo.prototype;_.K.getCount=function(){return this.JSC$19784_map_.size};
_.K.add=function(x){this.JSC$19784_map_.set(jQg(x),x);this.size=this.JSC$19784_map_.size};
_.K.addAll=function(x){x=_.df(x);for(var L=x.length,D=0;D<L;D++)this.add(x[D]);this.size=this.JSC$19784_map_.size};
_.K.removeAll=function(x){x=_.df(x);for(var L=x.length,D=0;D<L;D++)this.remove(x[D]);this.size=this.JSC$19784_map_.size};
_.K.delete=function(x){x=this.JSC$19784_map_.remove(jQg(x));this.size=this.JSC$19784_map_.size;return x};
_.K.remove=function(x){return this.delete(x)};
_.K.clear=function(){this.JSC$19784_map_.clear();this.size=0};
_.K.isEmpty=function(){return this.JSC$19784_map_.size===0};
_.K.has=function(x){return this.JSC$19784_map_.containsKey(jQg(x))};
_.K.contains=function(x){return this.JSC$19784_map_.containsKey(jQg(x))};
_.K.getValues=function(){return this.JSC$19784_map_.getValues()};
_.K.values=function(){return this.JSC$19784_map_.values()};
_.K.clone=function(){return new Lo(this)};
_.K.equals=function(x){return this.getCount()==mCq(x)&&Kwu(this,x)};
var Kwu=function(x,L){var D=mCq(L);if(x.getCount()>D)return!1;!(L instanceof Lo)&&D>5&&(L=new Lo(L));return bt3(x,function(S){var Q=L;return Q.contains&&typeof Q.contains=="function"?Q.contains(S):Q.containsValue&&typeof Q.containsValue=="function"?Q.containsValue(S):_.Nf(Q)||typeof Q==="string"?_.AG(Q,S):_.wk.containsValue(Q,S)})};
Lo.prototype.__iterator__=function(){return this.JSC$19784_map_.__iterator__(!1)};
Lo.prototype[Symbol.iterator]=function(){return this.values()};var Ofl={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(x){return(this._clampValue(x)-this.min)/(this.max-this.min)},
_clampValue:function(x){return Math.min(this.max,Math.max(this.min,this._calcStep(x)))},
_calcStep:function(x){x=parseFloat(x);if(!this.step)return x;x=Math.round((x-this.min)/this.step);return this.step<1?x/(1/this.step)+this.min:x*this.step+this.min},
_validateValue:function(){var x=this._clampValue(this.value);this.value=this.oldValue=isNaN(x)?this.oldValue:x;return this.value!==x},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var Zfu;var yTX;_.q$({_template:function(){if(yTX!==void 0)return yTX;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;Zfu===void 0&&(Zfu=document.createElement("template"));var S=Zfu;D.call(L,S.content.cloneNode(!0),x.content.firstChild);return yTX=x},
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(){_.So(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(x){x.keyCode===27&&(x.preventDefault(),this.close())},
_track:function(x){if(!this.persistent&&!this.disableSwipe)switch(x.preventDefault(),x.detail.state){case "start":this._trackStart(x);break;case "track":this._trackMove(x);break;case "end":this._trackEnd(x)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var x=this.$.contentContainer.getBoundingClientRect();this._savedWidth=x.width;this._translateOffset=this.position==="left"?x.left:x.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(x){this._trackDetails&&(this._translateDrawer(x.detail.dx+this._translateOffset),this._trackDetails.push({dx:x.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(x){if(this._trackDetails){var L=x.detail.dx+this._translateOffset,D=this.getWidth();L=this.position==="left"?L>=0||L<=-D:L<=0||L>=D;if(!L){var S=this._trackDetails;this._trackDetails=null;this._flingDrawer(x,S);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}D/=2;x.detail.dx<-D?this.opened=this.position==="right":x.detail.dx>D&&(this.opened=this.position==="left");L?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(x,L){for(var D=Date.now(),S=D-100,Q,J=0,Z=L.length-1;J<=Z;){var y=J+Z>>1,E=L[y];E.timeStamp>=S?(Q=E,Z=y-1):J=y+1}return Q?(x.detail.dx-Q.dx)/(D-Q.timeStamp||1):0},
_flingDrawer:function(x,L){L=this._calculateVelocity(x,L);if(!(Math.abs(L)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;x=x.detail.dx+this._translateOffset;var D=this.getWidth(),S=this.position==="left",Q=L>0;Q?(L=Math.max(L,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(L=Math.min(L,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");L=this._FLING_INITIAL_SLOPE*(!Q&&S?-(x+D):Q&&!S?D-x:-x)/L;this._styleTransitionDuration(L);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,L)}},
_styleTransitionDuration:function(x){this.style.transitionDuration=x+"ms";this.$.contentContainer.style.transitionDuration=x+"ms";this.$.scrim.style.transitionDuration=x+"ms"},
_styleTransitionTimingFunction:function(x){this.$.contentContainer.style.transitionTimingFunction=x;this.$.scrim.style.transitionTimingFunction=x},
_translateDrawer:function(x){var L=this.getWidth();this.position==="left"?(x=Math.max(-L,Math.min(x,0)),this.$.scrim.style.opacity=1+x/L):(x=Math.max(0,Math.min(x,L)),this.$.scrim.style.opacity=1-x/L);this.translate3d(x+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var x=this._drawerState;x===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;x!==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=""),x!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var x=_.G0(this).querySelectorAll('a[href]:not([tabindex="-1"]),area[href]:not([tabindex="-1"]),input:not([disabled]):not([tabindex="-1"]),select:not([disabled]):not([tabindex="-1"]),textarea:not([disabled]):not([tabindex="-1"]),button:not([disabled]):not([tabindex="-1"]),iframe:not([tabindex="-1"]),[tabindex]:not([tabindex="-1"]),[contentEditable=true]:not([tabindex="-1"])');x.length>0?(this._firstTabStop=x[0],this._lastTabStop=x[x.length-1]):
this._lastTabStop=this._firstTabStop=null;(x=this.getAttribute("tabindex"))&&parseInt(x,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(x){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||x.keyCode!==9||(x.shiftKey?this._firstTabStop&&_.G0(x).localTarget===this._firstTabStop&&(x.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.G0(x).localTarget===this._lastTabStop&&(x.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(x,L){this.toggleClass("visible",x&&!L,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 IdX;var Ess;_.q$({_template:function(){if(Ess!==void 0)return Ess;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;IdX===void 0&&(IdX=document.createElement("template"));var S=IdX;D.call(L,S.content.cloneNode(!0),x.content.firstChild);return Ess=x},
is:"tp-yt-paper-progress",behaviors:[Ofl],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(x){this.toggleClass("indeterminate",x,this.$.primaryProgress)},
_transformProgress:function(x,L){x.style.transform=x.style.webkitTransform="scaleX("+L/100+")"},
_mainRatioChanged:function(x){this._transformProgress(this.$.primaryProgress,x)},
_progressChanged:function(x,L,D,S,Q){x=this._clampValue(x);L=this._clampValue(L);var J=this._calcRatio(x)*100,Z=this._calcRatio(L)*100;this._setSecondaryRatio(J);this._transformProgress(this.$.secondaryProgress,J);this._transformProgress(this.$.primaryProgress,Z);this.secondaryProgress=x;Q?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",L);this.setAttribute("aria-valuemin",D);this.setAttribute("aria-valuemax",S)},
_disabledChanged:function(x){this.setAttribute("aria-disabled",x?"true":"false")},
_hideSecondaryProgress:function(x){return x===0}});var MQu;var dKg;var PHW=function(){};
_.K=PHW.prototype;_.K.registered=function(){};
_.K.addOwnKeyBinding=function(){};
_.K.removeOwnKeyBindings=function(){};
_.K.keyboardEventMatchesKeys=function(){};
_.K._collectKeyBindings=function(){};
_.K._prepKeyBindings=function(){};
_.K._addKeyBinding=function(){};
_.K._resetKeyEventListeners=function(){};
_.K._listenKeyEventListeners=function(){};
_.K._unlistenKeyEventListeners=function(){};
_.K._onKeyBindingEvent=function(){};
_.K._triggerKeyHandler=function(){};
_.K._tapHandler=function(){};
_.K._focusChanged=function(){};
_.K._detectKeyboardFocus=function(){};
_.K._userActivate=function(){};
_.K._upHandler=function(){};
_.K._spaceKeyDownHandler=function(){};
_.K._spaceKeyUpHandler=function(){};
_.K._asyncClick=function(){};
_.K._pressedChanged=function(){};
_.K._ariaActiveAttributeChanged=function(){};
_.K._activeChanged=function(){};
_.K._controlStateChanged=function(){};
_.K._changedButtonState=function(){};
_.K._focusBlurHandler=function(){};
_.K._disabledChanged=function(){};
_.K._changedControlState=function(){};
_.K._buttonStateChanged=function(){};
_.K._downHandler=function(){};
_.K.ensureRipple=function(){};
_.K.getRipple=function(){};
_.K.hasRipple=function(){};
_.K._noinkChanged=function(){};
_.K._calcRatio=function(){};
_.K._clampValue=function(){};
_.K._calcStep=function(){};
_.K._validateValue=function(){};
_.K._update=function(){};
_.K._setImmediateValue=function(){};
_.K._setExpand=function(){};
_.K._setDragging=function(){};
_.K._setTransiting=function(){};
_.K._setMarkers=function(){};
_.K._setPressed=function(){};
_.K._setPointerDown=function(){};
_.K._setReceivedFocusFromKeyboard=function(){};
_.K._setFocused=function(){};
_.K._setRatio=function(){};
PHW=_.q$({_template:function(){if(dKg!==void 0)return dKg;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;MQu===void 0&&(MQu=document.createElement("template"));var S=MQu;D.call(L,S.content.cloneNode(!0),x.content.firstChild);return dKg=x},
is:"tp-yt-paper-slider",behaviors:[_.A4,_.ih,_.cKd,Ofl],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&&_.q6(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(x,L,D){this.setAttribute("aria-valuemin",L);this.setAttribute("aria-valuemax",D);this.setAttribute("aria-valuenow",x);this._positionKnob(this._calcRatio(x)*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(x){this._setImmediateValue(this._calcStep(this._calcKnobPosition(x)));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(x){return(this.max-this.min)*x/100+this.min},
_onTrack:function(x){x.stopPropagation();switch(x.detail.state){case "start":this._trackStart(x);break;case "track":this._trackX(x);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(x){this.dragging||this._trackStart(x);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,x.detail.dx*(this._isRTL?-1:1)));x=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(x);x=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(x+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var x=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;x.transform=x.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(x){this._expandKnob();x.preventDefault();this.focus()},
_bartrack:function(x){this._allowBarEvent(x)&&this._onTrack(x)},
_barclick:function(x){this._w=this.$.sliderBar.offsetWidth;var L=this.$.sliderBar.getBoundingClientRect();L=(x.detail.x-L.left)/this._w*100;this._isRTL&&(L=100-L);var D=this.ratio;this._setTransiting(!0);this._positionKnob(L);D===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
x.preventDefault();this.focus()},
_bardown:function(x){this._allowBarEvent(x)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(x))},
_knobTransitionEnd:function(x){x.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(x,L,D,S){S||this._setMarkers([]);L=Math.round((D-L)/this.step);L>x&&(L=x);if(L<0||!isFinite(L))L=0;this._setMarkers(Array(L))},
_mergeClasses:function(x){return Object.keys(x).filter(function(L){return x[L]}).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(x){return!this.ignoreBarTouch||x.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(x){this._isRTL?this._incrementKey(x):this._decrementKey(x)},
_rightKey:function(x){this._isRTL?this._decrementKey(x):this._incrementKey(x)},
_incrementKey:function(x){this.disabled||(x.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),x.preventDefault())},
_decrementKey:function(x){this.disabled||(x.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),x.preventDefault())},
_changeValue:function(x){this.value=x.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(x){x.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.XF2._createRipple.call(this)},
_focusedChanged:function(x){x&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=x?"":"none",this._ripple.holdDown=x)}});var jk9;var vsW;var Dl=null,VQs=function(){};
_.K=VQs.prototype;_.K.fit=function(){};
_.K._discoverInfo=function(){};
_.K.resetFit=function(){};
_.K.refit=function(){};
_.K.position=function(){};
_.K.constrain=function(){};
_.K._sizeDimension=function(){};
_.K.__sizeDimension=function(){};
_.K.center=function(){};
_.K.__getNormalizedRect=function(){};
_.K.__getOffscreenArea=function(){};
_.K.__getPosition=function(){};
_.K.notifyResize=function(){};
_.K.assignParentResizable=function(){};
_.K.stopResizeNotificationsFor=function(){};
_.K._subscribeIronResize=function(){};
_.K._unsubscribeIronResize=function(){};
_.K.resizerShouldNotify=function(){};
_.K._onDescendantIronResize=function(){};
_.K._fireResize=function(){};
_.K._onIronRequestResizeNotifications=function(){};
_.K._parentResizableChanged=function(){};
_.K._notifyDescendant=function(){};
_.K._requestResizeNotifications=function(){};
_.K._findParent=function(){};
_.K.toggle=function(){};
_.K.open=function(){};
_.K.close=function(){};
_.K.cancel=function(){};
_.K.invalidateTabbables=function(){};
_.K._ensureSetup=function(){};
_.K._canceledChanged=function(){};
_.K._withBackdropChanged=function(){};
_.K._prepareRenderOpened=function(){};
_.K._finishRenderOpened=function(){};
_.K._finishRenderClosed=function(){};
_.K._preparePositioning=function(){};
_.K._finishPositioning=function(){};
_.K._applyFocus=function(){};
_.K._onCaptureClick=function(){};
_.K._onCaptureFocus=function(){};
_.K._onCaptureEsc=function(){};
_.K._onCaptureTab=function(){};
_.K._onIronResize=function(){};
_.K._onNodesChange=function(){};
_.K.__ensureFirstLastFocusables=function(){};
_.K.__openedChanged=function(){};
_.K.__deraf=function(){};
_.K.__updateScrollObservers=function(){};
_.K.__addScrollListeners=function(){};
_.K.__removeScrollListeners=function(){};
_.K.__isValidScrollAction=function(){};
_.K.__onCaptureScroll=function(){};
_.K.__saveScrollPosition=function(){};
_.K.__restoreScrollPosition=function(){};
_.K._setCanceled=function(){};
VQs=_.q$({_template:function(){if(vsW!==void 0)return vsW;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;jk9===void 0&&(jk9=document.createElement("template"));var S=jk9;D.call(L,S.content.cloneNode(!0),x.content.firstChild);return vsW=x},
is:"tp-yt-paper-toast",behaviors:[_.EW],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(){_.$t._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.KS.requestAvailability()},
show:function(x){typeof x=="string"&&(x={text:x});for(var L in x)L.indexOf("_")===0?_.$t._warn('The property "'+L+'" is private and was not set.'):L in this?this[L]=x[L]:_.$t._warn('The property "'+L+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(x){x&&x.target===this&&x.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(Dl&&Dl!==this&&Dl.close(),Dl=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):Dl===this&&(Dl=null);_.If._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(x){this.positionTarget=x},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var hT3=new _.jp("disablePersonalizationAction");var QP3=new _.jp("showDmaConsentFlowCommand");var JKW=new _.jp("showMmgNoticeCommand");var Hfq=new _.jp("saveConsentAction");var uzq=function(x){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ws(x)};
_.p(uzq,_.O5);var gs3=_.ff0(uzq);var kMl=new _.jp("updateTopbarAvatarAction");var pGY=new _.jp("channelHandleValidationResultRenderer");var mKl=new _.jp("generateHandleFromNameResultRenderer");var bfq=new _.jp("channelHandleInputRenderer");var YV3=new _.jp("copyLinkRenderer");var FwG=new _.jp("timedCommand");var sku=new _.jp("clearCookieAction");var TUG=new _.jp("getMultiPageMenuAction");var eT9=new _.jp("addToGuideSectionAction"),RT9=new _.jp("removeFromGuideSectionAction");var GMl=new _.jp("updateNotificationsUnseenCountAction");var CH9=new _.jp("resetChannelUnreadCountCommand");var ldg=new _.jp("resetSubscriptionsUnreadDotCommand");var UKq=new _.jp("selectLanguageCommand");var HFs=new _.jp("sendFeedbackAction");var wGY=new _.jp("uploadImageToScottyCommand");var BU$=new _.jp("registerPromoCommand");var WwY=new _.jp("setPushNotificationsEnabledCommand");var qVs=new _.jp("desktopTopbarRenderer");var ATs=new _.jp("surveyFollowUpRenderer");var $KX=new _.jp("handlesClaimingRadioOptionRenderer");var rTW=new _.jp("hotkeyDialogRenderer");var NUG=new _.jp("modifyReportFormCommand");var ifI=new _.jp("accountLinkCommand");var fdg=new _.jp("accountUnlinkCommand");var os5=new _.jp("logAccountLinkingEventCommand");var adY=new _.jp("guideCollapsibleEntryRenderer");var zTW=new _.jp("guideDownloadsEntryRenderer");var jB5=new _.jp("guideEntryRenderer");var XGG=new _.jp("getLocationCommand");var cTX=new _.jp("locationCollectionCommand");var nsg=new _.jp("storiesItemViewModel");var tQ5=new _.jp("addToRemoteQueueAction");var xXI=new _.jp("insertInRemoteQueueAction");var LPs=new _.jp("removeFromRemoteQueueAction");var DXX=new _.jp("notificationRenderer");var rig=new _.jp("localWatchHistoryCommand");var SGY=new _.jp("pdgBuyFlowHeaderRenderer");var QFu=new _.jp("pdgColorSliderRenderer");var JQY=new _.jp("pdgCommentOptionRenderer");var KPu=new _.jp("pdgCommentPreviewRenderer");var OOl=new _.jp("superVodSelectableItemButtonRenderer");var ZOY=new _.jp("switchButtonRenderer");var yQY=new _.jp("upsellDialogRenderer");var IQY=new _.jp("feedbackQuestionRenderer"),Ejs=new _.jp("feedbackOptionRenderer");var MCg=new _.jp("sponsorshipsTierRenderer"),dXl=new _.jp("sponsorshipsPromotionChannelRenderer");var PMW=new _.jp("simpleSurveyMessageRenderer");var HGl=new _.jp("invokeInstrumentManagerAction");var jFl=new _.jp("logYpcFlowDismissCommand");var vju=new _.jp("logYpcFlowStartCommand");var VCX=new _.jp("unlimitedCreateFamilyEndpoint");var h8l=new _.jp("iconBadgeRenderer");var N49=new _.jp("collaborativePlaylistVisibilityValidationRule");var HO$=function(x){_.Gm.call(this,"channelMessage");this.message=x};
_.p(HO$,_.Gm);var u63=function(x){_.Gm.call(this,"channelError");this.error=x};
_.p(u63,_.Gm);var gjY={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"},kz5={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},pVl={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},mXg={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},bOI={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var Sw=function(x){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 _.sF;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;x&&(this.id=x.id||x.name,this.name=x.name,this.clientName=x.clientName?x.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=x.app,this.type=x.type||"REMOTE_CONTROL",this.username=x.user||"",this.avatar=x.userAvatarUri||"",this.obfuscatedGaiaId=x.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=x.ownerObfuscatedGaiaId||"",this.castUserId=x.castUserId||"",this.theme=x.theme||"u",YGX(this,x.capabilities||""),FPs(this,
x.compatibleSenderThemes||""),sFl(this,x.experiments||""),this.remoteControllerUrl=x.remoteControllerUrl||"",this.localChannelEncryptionKey=x.localChannelEncryptionKey||"",this.deviceContext=x.deviceContext,this.brand=x.brand||"",this.model=x.model||"",this.year=x.year||0,this.os=x.os||"",this.osVersion=x.osVersion||"",this.chipset=x.chipset||"",this.mdxDialServerType=x.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=x.pairingType||"unknown",x=x.deviceInfo)&&(x=JSON.parse(x),this.brand=
x.brand||"",this.model=x.model||"",this.year=x.year||0,this.os=x.os||"",this.osVersion=x.osVersion||"",this.chipset=x.chipset||"",this.clientName=x.clientName?x.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=x.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
Sw.prototype.copy=function(){var x={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&&(x.brand=this.brand);
this.model&&(x.model=this.model);this.year&&(x.year=this.year);this.os&&(x.os=this.os);this.osVersion&&(x.osVersion=this.osVersion);this.chipset&&(x.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(x.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(x.mdxDialServerType=this.mdxDialServerType);x=new Sw(x);x.connected=this.connected;x.remoteControllerUrl=this.remoteControllerUrl;x.localChannelEncryptionKey=this.localChannelEncryptionKey;x.deviceContext=
this.deviceContext;x.castUserId=this.castUserId;return x};
Sw.prototype.equals=function(x){return x?this.id==x.id:!1};
var YGX=function(x,L){x.capabilities.clear();_.dy(L.split(","),_.bl(_.wk.contains,gjY)).forEach(function(D){x.capabilities.add(D)})},FPs=function(x,L){x.compatibleSenderThemes.clear();
_.dy(L.split(","),_.bl(_.wk.contains,kz5)).forEach(function(D){x.compatibleSenderThemes.add(D)})},sFl=function(x,L){x.experiments.clear();
L.split(",").forEach(function(D){x.experiments.add(D)})};_.E9(yH$,_.Te);_.K=yH$.prototype;_.K.JSC$19820_onTick_=function(){this.JSC$19818_interval_=Math.min(3E5,this.JSC$19818_interval_*2);this.JSC$19820_listener_();this.nextTickTime_&&this.start()};
_.K.start=function(){var x=this.JSC$19818_interval_+15E3*Math.random(),L=this.delay_;L.isActive()||L.start(x);this.nextTickTime_=Date.now()+x};
_.K.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.K.isActive=function(){return this.delay_.isActive()};
_.K.reset=function(){this.delay_.stop();this.JSC$19818_interval_=5E3};_.E9(Cj,dJG);_.K=Cj.prototype;_.K.subscribe=function(x,L,D){return this.pubsub_.subscribe(x,L,D)};
_.K.unsubscribe=function(x,L,D){return this.pubsub_.unsubscribe(x,L,D)};
_.K.unsubscribeByKey=function(x){return this.pubsub_.unsubscribeByKey(x)};
_.K.publish=function(x,L){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.K.dispose=function(){this.JSC$19821_disposed_||(this.JSC$19821_disposed_=!0,_.Q1(this.pubsub_),this.disconnect(),_.Q1(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$19821_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.V0({})})};
_.K.isDisposed=function(){return this.JSC$19821_disposed_};
_.K.connect=function(x,L,D){var S=this,Q,J,Z,y;return _.I(function(E){if(E.nextAddress==1)return _.k2(E,2),S.useAsyncBrowserChannelHandler_?E.yield(S.connectPromise_,2):E.jumpTo(2);_.gP(E);if(S.JSC$19821_disposed_||S.JSC$19821_channel_&&S.JSC$19821_channel_.getState()==2)return E.return();S.sCookie_="";S.reconnectTimer_.stop();S.connectionParams_=x||null;S.connectUi_=L||0;Q=S.JSC$19821_pathPrefix_+"/test";J=S.JSC$19821_pathPrefix_+"/bind";Z=new tP(D?D.firstTestResults:null,D?D.secondTestResults:null,
S.enableAsyncTest_);if(y=S.JSC$19821_channel_)y.handler_=null;Z.handler_=S;S.JSC$19821_channel_=Z;if(S.useAsyncBrowserChannelHandler_)return S.connectPromise_=TKu(S).then(function(){return e8u(S,Q,J,y,D)}),E.return(S.connectPromise_.then(function(){S.connectPromise_=_.V0()}));
e8u(S,Q,J,y,D);return _.pZ(E,0)})};
var e8u=function(x,L,D,S,Q){R8I(x);if(x.JSC$19821_channel_){var J=_.$6("ID_TOKEN"),Z=x.JSC$19821_channel_.JSC$19773_extraHeaders_||{};J?Z["x-youtube-identity-token"]=J:delete Z["x-youtube-identity-token"];x.JSC$19821_channel_.JSC$19773_extraHeaders_=Z}Gz9(x);S?(S.getState(),x.JSC$19821_channel_.connect(L,D,x.defaultQueryParams_,S.sid_,S.JSC$19773_lastArrayId_)):Q?x.JSC$19821_channel_.connect(L,D,x.defaultQueryParams_,Q.sessionId,Q.arrayId):x.JSC$19821_channel_.connect(L,D,x.defaultQueryParams_)};
Cj.prototype.disconnect=function(x){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.V0())}finally{this.disconnectUi_=x||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),R8I(this),this.JSC$19821_channel_&&(this.JSC$19821_channel_.getState()==3&&OvW(this.JSC$19821_channel_),this.JSC$19821_channel_.disconnect()),this.disconnectUi_=0}};
Cj.prototype.sendMessage=function(x,L){var D=this,S;return _.I(function(Q){switch(Q.nextAddress){case 1:_.k2(Q,2);if(!D.useAsyncBrowserChannelHandler_){Q.jumpTo(2);break}return Q.yield(D.connectPromise_,2);case 2:_.gP(Q);if(D.JSC$19821_disposed_)return Q.return();S={_sc:x};L&&_.wk.extend(S,L);if(D.reconnectTimer_.isActive()||(D.JSC$19821_channel_?D.JSC$19821_channel_.getState():0)==2){D.JSC$19821_pendingMessages_.push(S);Q.jumpTo(6);break}if(!D.isChannelOpened()){Q.jumpTo(6);break}_.k2(Q,8);if(!D.useAsyncBrowserChannelHandler_||
CMq(D,x)){Q.jumpTo(8);break}return Q.yield(TKu(D),8);case 8:_.gP(Q,0,0,1);D.isChannelOpened()&&(CMq(D,x)||Gz9(D),R8I(D),K1G(D.JSC$19821_channel_,S));_.pZ(Q,6,1);break;case 6:_.pZ(Q,0)}})};
var CMq=function(x,L){return x.enableMdxAuthForConnectionOnly_?!0:x.disableMdxAuthForAdMessages_?Object.values(pVl).includes(L):x.disableMdxAuthForNonPlaybackMessages_?!Object.values(mXg).includes(L):x.disableMdxAuthForShortsMessages_?Object.values(bOI).includes(L):!1};
Cj.prototype.JSC$19780_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$19821_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)lQ9(this);else{var x=this.JSC$19821_pendingMessages_;this.JSC$19821_pendingMessages_=[];var L=x.length;Gz9(this);UXs(this,x,L);wVs(this)}else wVs(this)};
var lQ9=function(x){var L,D;_.I(function(S){if(S.nextAddress==1)return _.k2(S,2),S.yield(TKu(x),2);_.gP(S);L=x.JSC$19821_pendingMessages_;x.JSC$19821_pendingMessages_=[];D=L.length;UXs(x,L,D);wVs(x);return _.pZ(S,0)})},UXs=function(x,L,D){for(var S=0;S<D;++S)K1G(x.JSC$19821_channel_,L[S]);
wVs(x)},wVs=function(x){x.publish("handlerOpened");
x.JSC$19821_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.K=Cj.prototype;_.K.JSC$19780_channelError=function(x){var L=x==2&&this.JSC$19821_channel_.JSC$19773_lastStatusCode_==401;x==4||L||this.reconnectTimer_.start();this.publish("handlerError",x,L);L=Object.keys(nKq).find(function(D){return nKq[D]===x});
this.JSC$19821_channelErrorCounter.increment("BROWSER_CHANNEL",L!=null?L:"UNKNOWN")};
_.K.JSC$19780_channelClosed=function(x,L){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(L)for(var D=L.length,S=0;S<D;++S){var Q=L[S].map;Q&&this.JSC$19821_pendingMessages_.push(Q)}this.JSC$19821_channelClosedCounter.increment("BROWSER_CHANNEL");x&&this.pendingMapsOnClosedCounter.JSC$9936_streamzService.JSC$9791_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",x.length);L&&this.undeliveredMapsOnClosedCounter.JSC$9939_streamzService.JSC$9791_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
L.length)};
_.K.JSC$19780_channelSuccess=function(x,L){L!=null&&x!=null&&this.channelMessageSentCounter.increment()};
_.K.JSC$19780_getAdditionalParams=function(){var x={v:2};this.sCookie_&&(x.gsessionid=this.sCookie_);this.connectUi_!=0&&(x.ui=""+this.connectUi_);this.disconnectUi_!=0&&(x.ui=""+this.disconnectUi_);this.connectionParams_&&_.wk.extend(x,this.connectionParams_);return x};
_.K.JSC$19780_channelHandleArray=function(x){x[0]=="S"?this.sCookie_=x[1]:x[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$19821_channel_.disconnect()):this.publish("handlerMessage",new ZIs(x[0],x[1]));this.JSC$19821_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.K.isChannelOpened=function(){return!!this.JSC$19821_channel_&&this.JSC$19821_channel_.getState()==3};
var R8I=function(x){if(x.JSC$19821_channel_){var L=x.JSC$19821_getXsrfToken_(),D=x.JSC$19821_channel_.JSC$19773_extraHeaders_||{};L?D["x-youtube-lounge-xsrf-token"]=L:delete D["x-youtube-lounge-xsrf-token"];x.JSC$19821_channel_.JSC$19773_extraHeaders_=D}},TKu=function(x){if(x.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.V0();
if(!x.enableCachedUpdateAuthorizationHeader_)return BKI(x);x.updateAuthorizationHeaderPromise_===null&&(x.updateAuthorizationHeaderPromise_=BKI(x));return x.updateAuthorizationHeaderPromise_},BKI=function(x){return _.$x(x.getAuthorizationHeader_().then(function(L){WPI(x,L)}).thenCatch(function(){}),function(){x.updateAuthorizationHeaderPromise_=null})},WPI=function(x,L){if(x.JSC$19821_channel_){var D=x.JSC$19821_channel_.JSC$19773_extraHeaders_||{};
L&&Object.keys(L).length>0?D=Object.assign({},D,L):delete D.Authorization;x.JSC$19821_channel_.JSC$19773_extraHeaders_=D}},Gz9=function(x){x.getAuthorizationHeaderSync_&&!x.useAsyncBrowserChannelHandler_&&WPI(x,x.getAuthorizationHeaderSync_())};
_.K=Cj.prototype;_.K.setLoungeToken=function(x){(this.defaultQueryParams_.loungeIdToken=x)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$19821_channel_){var L=this.JSC$19821_channel_.JSC$19773_extraHeaders_||{};x?L["X-YouTube-LoungeId-Token"]=x:delete L["X-YouTube-LoungeId-Token"];this.JSC$19821_channel_.JSC$19773_extraHeaders_=L}};
_.K.getDeviceId=function(){return this.defaultQueryParams_.id};
_.K.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.K.reconnect=function(){var x=this.reconnectTimer_;x.delay_.fire();x.start()};
_.K.safeReconnect_=function(){var x=this.JSC$19821_channel_,L=0;x.JSC$19773_backChannelRequest_&&L++;x.forwardChannelRequest_&&L++;L==0&&this.connect(this.connectionParams_,this.connectUi_)};var Ag=function(x,L){var D=x.basePath;x.supportCors&&(D=x.scheme+"://"+x.domain+x.port+x.basePath);return _.DN(D+L,{})};
lp.prototype.sendRequest=function(x,L,D,S,Q,J,Z){x={format:J?"RAW":"JSON",method:x,context:this,timeout:5E3,withCredentials:!!Z,onSuccess:_.bl(this.JSC$19826_onSuccess_,S,!J),onError:_.bl(this.onError_,Q),onTimeout:_.bl(this.JSC$19826_onTimeout_,Q)};D&&(x.postParams=D,x.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.kQ(L,x)};
lp.prototype.JSC$19826_onSuccess_=function(x,L,D,S){L?x(S):x({text:D.responseText})};
lp.prototype.onError_=function(x,L){x(Error("Sk`"+L.status))};
lp.prototype.JSC$19826_onTimeout_=function(x){x(Error("Tk"))};var wu=function(x,L){return!!L&&(x.id==L||x.uuid==L)},qGG=function(x){return{name:x.name,
screenId:x.id,loungeToken:x.token,dialId:x.uuid,screenIdType:x.idType}},AQ5=function(x){return new UC(x)},$XY=function(x){return Array.isArray(x)?_.Bn(x,AQ5):[]},Hug=function(x){if(!x)return"null";
var L=x.token?".."+x.token.slice(-6):"-",D=x.uuid?".."+x.uuid.slice(-6):"-";return'{name:"'+x.name+'",id:'+x.id.substr(0,6)+"..,token:"+(L+",uuid:"+D+",idType:"+x.idType+"}")},oiq=function(x){return Array.isArray(x)?"["+_.Bn(x,Hug).join(",")+"]":"null"};var Yk3="",qQ=null;var ULX=function(x,L){_.Bc.call(this);var D=this;this.handler=x();this.handler.subscribe("handlerOpened",this.JSC$19833_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(S,Q){D.onError(Q)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=L};
_.p(ULX,_.Bc);_.K=ULX.prototype;_.K.connect=function(x,L,D){this.handler.connect(x,L,D)};
_.K.disconnect=function(x){this.handler.disconnect(x)};
_.K.reconnect=function(){this.handler.reconnect()};
_.K.getDeviceId=function(){return this.handler.getDeviceId()};
_.K.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.K.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.K.JSC$19833_onOpened=function(){this.dispatchEvent("channelOpened");var x=this.handler,L=this.currentScreenId;_.qB("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!x.JSC$19821_channel_.useChunked_,sessionId:x.JSC$19821_channel_.sid_,arrayId:x.JSC$19821_channel_.JSC$19773_lastArrayId_});_.qB("yt-remote-session-screen-id",L);x=ufl();L=gil();_.AG(x,L)||x.push(L);bIG(x);mLX()};
_.K.onClosed=function(){this.dispatchEvent("channelClosed")};
_.K.onMessage=function(x){this.dispatchEvent(new HO$(x))};
_.K.onError=function(x){this.dispatchEvent(new u63(x?1:0))};
_.K.sendMessage=function(x,L){this.handler.sendMessage(x,L)};
_.K.setLoungeToken=function(x){this.handler.setLoungeToken(x)};
_.K.dispose=function(){this.handler.dispose()};var lH9=function(x,L,D){var S=this;D=D===void 0?function(){return""}:D;
var Q=Q===void 0?new mV3:Q;var J=J===void 0?new _.mv:J;this.pathPrefix=x;this.defaultQueryParams=L;this.getXsrfToken=D;this.JSC$19836_pubsub=J;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new yH$(function(){var Z;((Z=S.channel)==null?void 0:LGY((new FGq(Z,Z.JSC$19744_channel_)).JSC$19754_channel_.forwardChannelRequestPool_))===0&&S.connect(S.connectionParams,S.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$19836_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$19836_channelOpenedCounter=new IH5;this.JSC$19836_channelClosedCounter=new Eis;this.JSC$19836_channelMessageReceivedCounter=new dL5;this.JSC$19836_channelErrorCounter=new PiY};
lH9.prototype.connect=function(x,L){x=x===void 0?{}:x;L=L===void 0?0:L;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=x,this.connectUi=L,rQG(this),(x=_.$6("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=x: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 fk(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,NKq(this))};
var NKq=function(x){_.Uk(x.channel,"w",function(){x.channelState=3;x.reconnectTimer.reset();x.connectionParams=null;x.connectUi=0;for(var L=_.O(x.nonAckedMessagesOnChannelClosed),D=L.next();!D.done;D=L.next())D=D.value,x.channel&&x.channel.send(D);x.nonAckedMessagesOnChannelClosed=[];x.publish("webChannelOpened");x.JSC$19836_channelOpenedCounter.increment("WEB_CHANNEL")});
_.Uk(x.channel,"x",function(){x.channelState=0;x.reconnectTimer.isActive()||x.publish("webChannelClosed");var L,D=(L=x.channel)==null?void 0:sfX(new FGq(L,L.JSC$19744_channel_));D&&(x.nonAckedMessagesOnChannelClosed=[].concat(_.lP(D)));x.JSC$19836_channelClosedCounter.increment("WEB_CHANNEL")});
_.Uk(x.channel,"z",function(L){var D=L.data;D[0]==="gracefulReconnect"?(x.reconnectTimer.start(),x.channel&&x.channel.close()):x.publish("webChannelMessage",new ZIs(D[0],D[1]));x.lastStatusCode=L.statusCode;x.JSC$19836_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.Uk(x.channel,"y",function(){x.lastStatusCode===401||x.reconnectTimer.start();x.publish("webChannelError");x.JSC$19836_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.K=lH9.prototype;_.K.disconnect=function(x){this.disconnectUi=x===void 0?0:x;this.reconnectTimer.stop();rQG(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.K.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.K.reconnect=function(){var x=this.reconnectTimer;x.delay_.fire();x.start()};
_.K.sendMessage=function(x,L){this.channel&&(rQG(this),x=Object.assign({},{_sc:x},L),this.channel.send(x))};
_.K.setLoungeToken=function(x){x||this.reconnectTimer.stop();x?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=x:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var rQG=function(x){var L=x.getXsrfToken();L?x.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=L:delete x.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.K=lH9.prototype;_.K.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.K.publish=function(x){return this.JSC$19836_pubsub.publish.apply(this.JSC$19836_pubsub,[x].concat(_.lP(_.Ne.apply(1,arguments))))};
_.K.subscribe=function(x,L,D){return this.JSC$19836_pubsub.subscribe(x,L,D)};
_.K.unsubscribe=function(x,L,D){return this.JSC$19836_pubsub.unsubscribe(x,L,D)};
_.K.unsubscribeByKey=function(x){return this.JSC$19836_pubsub.unsubscribeByKey(x)};
_.K.dispose=function(){this.JSC$19836_disposed||(this.JSC$19836_disposed=!0,_.Q1(this.JSC$19836_pubsub),this.disconnect(),_.Q1(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.K.isDisposed=function(){return this.JSC$19836_disposed};var Cig=function(x){_.Bc.call(this);this.webChannelService=x();this.webChannelService.subscribe("webChannelOpened",this.JSC$19844_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.p(Cig,_.Bc);_.K=Cig.prototype;_.K.connect=function(x,L){this.webChannelService.connect(x,L)};
_.K.disconnect=function(x){this.webChannelService.disconnect(x)};
_.K.reconnect=function(){this.webChannelService.reconnect()};
_.K.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.K.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.K.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.K.JSC$19844_onOpened=function(){this.dispatchEvent("channelOpened")};
_.K.onClosed=function(){this.dispatchEvent("channelClosed")};
_.K.onMessage=function(x){this.dispatchEvent(new HO$(x))};
_.K.onError=function(){this.dispatchEvent(new u63(this.webChannelService.lastStatusCode===401?1:0))};
_.K.sendMessage=function(x,L){this.webChannelService.sendMessage(x,L)};
_.K.setLoungeToken=function(x){this.webChannelService.setLoungeToken(x)};
_.K.dispose=function(){this.webChannelService.dispose()};var fHg=Date.now(),$U=null,NB9=Array(50),ip=-1,iIl=!1;_.E9(fj,_.Xx);fj.prototype.getScreens=function(){return this.screens};
fj.prototype.contains=function(x){return!!HI3(this.screens,x)};
fj.prototype.get=function(x){return x?Bj(this.screens,x):null};
var iOY=function(x,L){var D=x.get(L.uuid)||x.get(L.id);if(D)return x=D.name,D.id=L.id||D.id,D.name=L.name,D.token=L.token,D.uuid=L.uuid||D.uuid,D.name!=x;x.screens.push(L);return!0},fQ9=function(x,L){var D=x.screens.length!=L.length;
x.screens=_.dy(x.screens,function(J){return!!HI3(L,J)});
for(var S=L.length,Q=0;Q<S;Q++)D=iOY(x,L[Q])||D;return D},oju=function(x,L){var D=x.screens.length;
x.screens=_.dy(x.screens,function(S){return!(S||L?!S!=!L?0:S.id==L.id:1)});
return x.screens.length<D};
fj.prototype.info=function(x){ru(this.JSC$19845_logName_,x)};var aQ3=function(x,L,D,S,Q){_.Xx.call(this);this.JSC$19848_http_=x;this.pairingCode_=L;this.deviceId_=D;this.friendlyName_=S;this.enableShortLivedLoungeToken_=Q;this.pollIndex_=0;this.JSC$19848_xhr_=null;this.JSC$19848_timer_=NaN};
_.p(aQ3,_.Xx);_.K=aQ3.prototype;_.K.start=function(){!this.JSC$19848_xhr_&&isNaN(this.JSC$19848_timer_)&&this.poll_()};
_.K.stop=function(){this.JSC$19848_xhr_&&(this.JSC$19848_xhr_.abort(),this.JSC$19848_xhr_=null);isNaN(this.JSC$19848_timer_)||(_.uj(this.JSC$19848_timer_),this.JSC$19848_timer_=NaN)};
_.K.disposeInternal=function(){this.stop();_.Xx.prototype.disposeInternal.call(this)};
_.K.poll_=function(){this.JSC$19848_timer_=NaN;this.JSC$19848_xhr_=_.kQ(Ag(this.JSC$19848_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.e1)(this.JSC$19850_onSuccess_,this),onError:(0,_.e1)(this.onError_,this),onTimeout:(0,_.e1)(this.JSC$19850_onTimeout_,this)})};
_.K.JSC$19850_onSuccess_=function(x,L){this.JSC$19848_xhr_=null;x=L.screen||{};x.dialId=this.deviceId_;x.name=this.friendlyName_;L=-1;this.enableShortLivedLoungeToken_&&x.shortLivedLoungeToken&&x.shortLivedLoungeToken.value&&x.shortLivedLoungeToken.refreshIntervalMs&&(x.screenIdType="shortLived",x.loungeToken=x.shortLivedLoungeToken.value,L=x.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new UC(x),L)};
_.K.onError_=function(x){this.JSC$19848_xhr_=null;x.status&&x.status==404?this.pollIndex_>=z8X.length?this.publish("pairingFailed",Error("Uk")):(x=z8X[this.pollIndex_],this.JSC$19848_timer_=_.VY((0,_.e1)(this.poll_,this),x),this.pollIndex_++):this.publish("pairingFailed",Error("Vk`"+x.status))};
_.K.JSC$19850_onTimeout_=function(){this.JSC$19848_xhr_=null;this.publish("pairingFailed",Error("Wk"))};
var z8X=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.E9(a7,fj);_.K=a7.prototype;_.K.start=function(){o7(this)&&this.publish("screenChange");!_.Ad("yt-remote-lounge-token-expiration")&&XVY(this);_.uj(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.VY((0,_.e1)(this.start,this),1E4)};
_.K.add=function(x,L){o7(this);iOY(this,x);cQ9(this,!1);this.publish("screenChange");L(x);x.token||XVY(this)};
_.K.remove=function(x,L){var D=o7(this);oju(this,x)&&(cQ9(this,!1),D=!0);L(x);D&&this.publish("screenChange")};
_.K.updateName=function(x,L,D,S){var Q=o7(this),J=this.get(x.id);J?(J.name!=L&&(J.name=L,cQ9(this,!1),Q=!0),D(x)):S(Error("Xk"));Q&&this.publish("screenChange")};
_.K.disposeInternal=function(){_.uj(this.loungeTokenRefreshTimer_);a7.superClass_.disposeInternal.call(this)};
var XVY=function(x){if(x.screens.length){var L=_.Bn(x.screens,function(S){return S.id}),D=Ag(x.JSC$19852_http_,"/pairing/get_lounge_token_batch");
x.JSC$19852_http_.sendRequest("POST",D,{screen_ids:L.join(",")},(0,_.e1)(x.handleLoungeTokens_,x),(0,_.e1)(x.handleLoungeTokenError_,x))}};
a7.prototype.handleLoungeTokens_=function(x){o7(this);var L=this.screens.length;x=x&&x.screens||[];for(var D=x.length,S=0;S<D;++S){var Q=x[S],J=this.get(Q.screenId);J&&(J.token=Q.loungeToken,--L)}cQ9(this,!L);L&&ru(this.JSC$19845_logName_,"Missed "+L+" lounge tokens.")};
a7.prototype.handleLoungeTokenError_=function(x){ru(this.JSC$19845_logName_,"Requesting lounge tokens failed: "+x)};
var o7=function(x){if(_.u("deprecate_pair_servlet_enabled"))return fQ9(x,[]);var L=$XY(s6X());L=_.dy(L,function(D){return!D.uuid});
return fQ9(x,L)},cQ9=function(x,L){eZl(_.Bn(x.screens,qGG));
L&&TBq()};var Qe=function(x,L){_.Xx.call(this);this.getScreensToCheck_=L;L=(L=_.Ad("yt-remote-online-screen-ids")||"")?L.split(","):[];for(var D={},S=this.getScreensToCheck_(),Q=S.length,J=0;J<Q;++J){var Z=S[J].id;D[Z]=_.AG(L,Z)}this.screenIdSet_=D;this.JSC$19855_http_=x;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;njY("Initialized with "+(0,_.iO)(this.screenIdSet_))};
_.p(Qe,_.Xx);Qe.prototype.isOnline=function(x){return!!this.screenIdSet_[x]};
Qe.prototype.start=function(){var x=parseInt(_.Ad("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.IM()-144E5<x?0:x)?tC9(this):(this.fastCheckEndTime_=_.IM()+3E5,_.qB("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
Qe.prototype.isEmpty=function(){return _.wk.isEmpty(this.screenIdSet_)};
Qe.prototype.update=function(){njY("Updating availability on schedule.");var x=this.getScreensToCheck_(),L=_.wk.filter(this.screenIdSet_,function(D,S){return D&&!!Bj(x,S)},this);
xSG(this,L)};
var LJl=function(x,L,D){var S=Ag(x.JSC$19855_http_,"/pairing/get_screen_availability");x.JSC$19855_http_.sendRequest("POST",S,{lounge_token:L.token},(0,_.e1)(function(Q){Q=Q.screens||[];for(var J=Q.length,Z=0;Z<J;++Z)if(Q[Z].loungeToken==L.token){D(Q[Z].status=="online");return}D(!1)},x),(0,_.e1)(function(){D(!1)},x))};
Qe.prototype.disposeInternal=function(){_.uj(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.Xx.prototype.disposeInternal.call(this)};
var xSG=function(x,L){a:if(_.wk.getCount(L)!=_.wk.getCount(x.screenIdSet_))var D=!1;else{D=_.wk.getKeys(L);for(var S=D.length,Q=0;Q<S;++Q)if(!x.screenIdSet_[D[Q]]){D=!1;break a}D=!0}D||(njY("Updated online screens: "+(0,_.iO)(x.screenIdSet_)),x.screenIdSet_=L,x.publish("screenChange"));DSq(x)},tC9=function(x){isNaN(x.refreshTimer_)||_.uj(x.refreshTimer_);
x.refreshTimer_=_.VY((0,_.e1)(x.requestScreenAvailability_,x),x.fastCheckEndTime_>0&&x.fastCheckEndTime_<_.IM()?2E4:1E4)};
Qe.prototype.requestScreenAvailability_=function(){_.uj(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var x=Sal(this);if(_.wk.getCount(x)){var L=Ag(this.JSC$19855_http_,"/pairing/get_screen_availability"),D={lounge_token:_.wk.getKeys(x).join(",")};this.currentRequest_=this.JSC$19855_http_.sendRequest("POST",L,D,(0,_.e1)(this.onScreenAvailability_,this,x),(0,_.e1)(this.onScreenAvailabilityError_,this))}else xSG(this,{}),tC9(this)};
Qe.prototype.onScreenAvailability_=function(x,L){this.currentRequest_=null;var D=_.wk.getKeys(Sal(this));if(_.Xh(D,_.wk.getKeys(x))){L=L.screens||[];D={};for(var S=L.length,Q=0;Q<S;++Q)D[x[L[Q].loungeToken]]=L[Q].status=="online";xSG(this,D);tC9(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
Qe.prototype.onScreenAvailabilityError_=function(x){this.warn_("Screen availability failed: "+x);this.currentRequest_=null;tC9(this)};
var njY=function(x){ru("OnlineScreenService",x)};
Qe.prototype.warn_=function(x){ru("OnlineScreenService",x)};
var Sal=function(x){var L={};_.nm(x.getScreensToCheck_(),function(D){D.token?L[D.token]=D.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return L},DSq=function(x){x=_.wk.getKeys(_.wk.filter(x.screenIdSet_,function(L){return L}));
x.sort(_.Uf4);x.length?_.qB("yt-remote-online-screen-ids",x.join(","),60):_.$8("yt-remote-online-screen-ids")};_.E9(zx,fj);_.K=zx.prototype;_.K.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.K.add=function(x,L,D){this.localScreenService_.add(x,L,D)};
_.K.remove=function(x,L,D){this.localScreenService_.remove(x,L,D);this.onlineScreenService_.update()};
_.K.updateName=function(x,L,D,S){this.localScreenService_.contains(x)?this.localScreenService_.updateName(x,L,D,S):(x="Updating name of unknown screen: "+x.name,ru(this.JSC$19845_logName_,x),S(Error(x)))};
_.K.getScreens=function(x){return x?this.screens:nTu(this.screens,_.dy(this.automaticScreens_,function(L){return!this.contains(L)},this))};
_.K.JSC$19860_getOnlineScreens=function(){return _.dy(this.getScreens(!0),function(x){return this.onlineScreenService_.isOnline(x.id)},this)};
var Jyq=function(x,L,D,S,Q,J){x.info("getAutomaticScreenByIds "+D+" / "+L);D||(D=x.deviceToScreenId_[L]);var Z=x.getScreens(),y=D?Bj(Z,D):null;D&&(x.disableAutomaticScreenCache_||y)||(y=Bj(Z,L));if(y){y.uuid=L;var E=JZ(x,y);LJl(x.onlineScreenService_,E,function(P){Q(P?E:null)})}else D?Qbu(x,D,(0,_.e1)(function(P){var v=JZ(this,new UC({name:S,
screenId:D,loungeToken:P,dialId:L||""}));LJl(this.onlineScreenService_,v,function(V){Q(V?v:null)})},x),J):Q(null)};
zx.prototype.JSC$19860_getScreenByPollingPairingCode=function(x,L,D,S,Q,J){var Z=this;this.info("getDialScreenByPairingCode "+x+" / "+L);var y=new aQ3(this.JSC$19858_http_,x,L,D,S);y.subscribe("pairingComplete",function(E,P){_.Q1(y);Q(JZ(Z,E),P)});
y.subscribe("pairingFailed",function(E){_.Q1(y);J(E)});
y.start();return(0,_.e1)(y.stop,y)};
var KJq=function(x,L){for(var D=x.screens.length,S=0;S<D;++S)if(x.screens[S].name==L)return x.screens[S];return null};
zx.prototype.JSC$19860_getScreenByPairingCode=function(x,L,D,S){_.kQ(Ag(this.JSC$19858_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:x},timeout:5E3,onSuccess:(0,_.e1)(function(Q,J){Q=new UC(J.screen||{});if(!Q.name||KJq(this,Q.name)){a:{J=Q.name;for(var Z=2,y=L(J,Z);KJq(this,y);){Z++;if(Z>20)break a;y=L(J,Z)}J=y}Q.name=J}D(JZ(this,Q))},this),
onError:(0,_.e1)(function(Q){S(Error("Yk`"+Q.status))},this),
onTimeout:(0,_.e1)(function(){S(Error("Zk"))},this)})};
var OE$=function(x,L,D){LJl(x.onlineScreenService_,L,D)};
zx.prototype.disposeInternal=function(){_.Q1(this.localScreenService_);_.Q1(this.onlineScreenService_);zx.superClass_.disposeInternal.call(this)};
var Qbu=function(x,L,D,S){x.info("requestLoungeToken_ for "+L);var Q={postParams:{screen_ids:L},method:"POST",context:x,onSuccess:function(J,Z){J=Z&&Z.screens||[];J[0]&&J[0].screenId==L?D(J[0].loungeToken):S(Error("$k"))},
onError:function(){S(Error("al"))}};
_.kQ(Ag(x.JSC$19858_http_,"/pairing/get_lounge_token_batch"),Q)},ZEY=function(x){x.screens=x.localScreenService_.getScreens();
for(var L=_.wk.transpose(x.deviceToScreenId_),D=x.screens.length,S=0;S<D;++S){var Q=x.screens[S];Q.uuid=L[Q.id]||""}x.info("Updated manual screens: "+oiq(x.screens))};
zx.prototype.handleScreenChange_=function(){ZEY(this);this.publish("screenChange");this.onlineScreenService_.update()};
var aHG=function(x){yyq(x);x.localScreenService_=new a7(x.JSC$19858_http_);x.localScreenService_.subscribe("screenChange",(0,_.e1)(x.handleScreenChange_,x));ZEY(x);x.disableAutomaticScreenCache_||(x.automaticScreens_=$XY(_.Ad("yt-remote-automatic-screen-cache")||[]));yyq(x);x.info("Initializing automatic screens: "+oiq(x.automaticScreens_));x.onlineScreenService_=new Qe(x.JSC$19858_http_,(0,_.e1)(x.getScreens,x,!0));x.onlineScreenService_.subscribe("screenChange",(0,_.e1)(function(){this.publish("onlineScreenChange")},
x))},JZ=function(x,L){var D=x.get(L.id);
D?(D.uuid=L.uuid,L=D):((D=Bj(x.automaticScreens_,L.uuid))?(D.id=L.id,D.token=L.token,L=D):x.automaticScreens_.push(L),x.disableAutomaticScreenCache_||IkX(x));yyq(x);x.deviceToScreenId_[L.uuid]=L.id;_.qB("yt-remote-device-id-map",x.deviceToScreenId_,31536E3);return L},IkX=function(x){x=_.dy(x.automaticScreens_,function(L){return L.idType!="shortLived"});
_.qB("yt-remote-automatic-screen-cache",_.Bn(x,qGG))},yyq=function(x){x.deviceToScreenId_=_.Ad("yt-remote-device-id-map")||{}};
zx.prototype.dispose=zx.prototype.dispose;_.E9(Xk,_.Xx);var Ko=function(x,L){x.screen_=L;x.publish("sessionScreen",x.screen_)},E5G=function(x,L){x.screen_&&(x.screen_.token=L,JZ(x.JSC$19862_screenService_,x.screen_));
x.publish("sessionScreen",x.screen_)};
Xk.prototype.onSessionStopped=function(x){this.isDisposed()||(x&&(Ol(this,""+x),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
Xk.prototype.info=function(x){ru(this.JSC$19862_logName_,x)};
var Ol=function(x,L){ru(x.JSC$19862_logName_,L)};
Xk.prototype.JSC$19864_getCastSession=function(){return null};
Xk.prototype.setDisplayStatus=function(x){var L=this.receiver_;x?(L.displayStatus=new chrome.cast.ReceiverDisplayStatus(x,[]),L.displayStatus.showStop=!0):L.displayStatus=null;chrome.cast.setReceiverDisplayStatus(L,(0,_.e1)(function(){this.info("Updated receiver status for "+L.friendlyName+": "+x)},this),(0,_.e1)(function(){Ol(this,"Failed to update receiver status for: "+L.friendlyName)},this))};
Xk.prototype.disposeInternal=function(){this.setDisplayStatus("");Xk.superClass_.disposeInternal.call(this)};var Zl=function(x,L,D){Xk.call(this,x,L,"CastSession");var S=this;this.config_=D;this.JSC$19867_session_=null;this.JSC$19867_boundSessionUpdate_=(0,_.e1)(this.JSC$19869_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.e1)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.VY(function(){MEu(S,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$19867_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$19867_isInitLoungeToken_=!1;this.JSC$19867_lastLoungeTokenRefreshError_="unknown"};
_.p(Zl,Xk);_.K=Zl.prototype;
_.K.setCastSession=function(x){if(this.JSC$19867_session_){if(this.JSC$19867_session_==x)return;Ol(this,"Overriding cast session with new session object");dSl(this);this.JSC$19867_isInitLoungeToken_=!1;this.JSC$19867_lastLoungeTokenRefreshError_="unknown";this.JSC$19867_session_.removeUpdateListener(this.JSC$19867_boundSessionUpdate_);this.JSC$19867_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$19867_session_=x;this.JSC$19867_session_.addUpdateListener(this.JSC$19867_boundSessionUpdate_);this.JSC$19867_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);PAl(this,"getMdxSessionStatus")};
_.K.launchWithParams=function(x){this.info("launchWithParams no-op for Cast: "+(0,_.iO)(x))};
_.K.stop=function(){if(this.JSC$19867_session_)this.JSC$19867_session_.stop((0,_.e1)(function(){this.onSessionStopped()},this),(0,_.e1)(function(){this.onSessionStopped(Error("bl"))},this));
else this.onSessionStopped(Error("cl"))};
_.K.setDisplayStatus=function(){};
_.K.disposeInternal=function(){this.info("disposeInternal");dSl(this);this.JSC$19867_session_&&(this.JSC$19867_session_.removeUpdateListener(this.JSC$19867_boundSessionUpdate_),this.JSC$19867_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$19867_session_=null;Xk.prototype.disposeInternal.call(this)};
var v5q=function(x,L){_.uj(x.getLoungeTokenTimeoutKey_);x.getLoungeTokenTimeoutKey_=0;L==0?jbX(x):x.getLoungeTokenTimeoutKey_=_.VY(function(){jbX(x)},L)},jbX=function(x){PAl(x,"getLoungeToken");
_.uj(x.onLoungeTokenTimeoutKey_);x.onLoungeTokenTimeoutKey_=_.VY(function(){VEX(x,null)},3E4)},PAl=function(x,L){x.info("sendYoutubeMessage_: "+L+" "+(0,_.iO)(void 0));
var D={};D.type=L;x.JSC$19867_session_?x.JSC$19867_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",D,function(){},(0,_.e1)(function(){Ol(this,"Failed to send message: "+L+".")},x)):Ol(x,"Sending yt message without session: "+(0,_.iO)(D))};
Zl.prototype.onYoutubeMessage_=function(x,L){if(!this.isDisposed())if(L)if(L=(0,_.UK)(L),_.on(L))switch(x=""+L.type,L=L.data||{},this.info("onYoutubeMessage_: "+x+" "+(0,_.iO)(L)),x){case "mdxSessionStatus":MEu(this,L);break;case "loungeToken":VEX(this,L);break;default:Ol(this,"Unknown youtube message: "+x)}else Ol(this,"Unable to parse message.");else Ol(this,"No data in message.")};
var hg3=function(x,L){if(L)x.info("onConnectedScreenId_: Received screenId: "+L),x.screen_&&x.screen_.id==L||x.getScreen_(L,function(D){Ko(x,D)},function(){return x.onSessionStopped()},5);
else x.onSessionStopped(Error("dl"))},uP$=function(x,L,D){x.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(L));
var S=new UC(L);HEW(x,S,function(Q){Q?(x.JSC$19867_isInitLoungeToken_=!0,JZ(x.JSC$19862_screenService_,S),Ko(x,S),x.JSC$19867_lastLoungeTokenRefreshError_="unknown",v5q(x,D)):(_.N9(Error("el`"+JSON.stringify(L))),x.onSessionStopped())},5)},MEu=function(x,L){_.uj(x.sessionStatusTimeoutKey_);
x.sessionStatusTimeoutKey_=0;if(L)x.config_.enableCastLoungeToken&&L.loungeToken?L.deviceId?x.screen_&&x.screen_.uuid==L.deviceId||(L.loungeTokenRefreshIntervalMs?uP$(x,{name:x.receiver_.friendlyName,screenId:L.screenId,loungeToken:L.loungeToken,dialId:L.deviceId,screenIdType:"shortLived"},L.loungeTokenRefreshIntervalMs):(_.N9(Error("gl`"+JSON.stringify(L))),hg3(x,L.screenId))):(_.N9(Error("fl`"+JSON.stringify(L))),hg3(x,L.screenId)):hg3(x,L.screenId);else x.onSessionStopped(Error("dl"))},VEX=function(x,
L){_.uj(x.onLoungeTokenTimeoutKey_);
x.onLoungeTokenTimeoutKey_=0;var D=null;if(L)if(L.loungeToken){var S;((S=x.screen_)==null?void 0:S.token)==L.loungeToken&&(D="staleLoungeToken")}else D="missingLoungeToken";else D="noLoungeTokenResponse";D?(x.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(L)+", error: "+D)),x.JSC$19867_lastLoungeTokenRefreshError_=D,v5q(x,3E4)):(E5G(x,L.loungeToken),x.JSC$19867_isInitLoungeToken_=!1,x.JSC$19867_lastLoungeTokenRefreshError_="unknown",v5q(x,L.loungeTokenRefreshIntervalMs))};
Zl.prototype.getScreen_=function(x,L,D,S){_.uj(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;Jyq(this.JSC$19862_screenService_,this.receiver_.label,x,this.receiver_.friendlyName,(0,_.e1)(function(Q){Q?L(Q):S>=0?(Ol(this,"Screen "+x+" appears to be offline. "+S+" retries left."),this.getScreenTimeoutKey_=_.VY((0,_.e1)(this.getScreen_,this,x,L,D,S-1),300)):D(Error("hl"))},this),D)};
var HEW=function(x,L,D,S){_.uj(x.JSC$19867_checkScreenAvailabilityTimeoutKey_);x.JSC$19867_checkScreenAvailabilityTimeoutKey_=0;OE$(x.JSC$19862_screenService_,L,function(Q){Q||S<0?D(Q):x.JSC$19867_checkScreenAvailabilityTimeoutKey_=_.VY(function(){HEW(x,L,D,S-1)},300)})};
Zl.prototype.JSC$19864_getCastSession=function(){return this.JSC$19867_session_};
Zl.prototype.JSC$19869_onSessionUpdate_=function(x){this.isDisposed()||x||(Ol(this,"Cast session died."),this.onSessionStopped())};
var dSl=function(x){_.uj(x.getScreenTimeoutKey_);x.getScreenTimeoutKey_=0;_.uj(x.JSC$19867_checkScreenAvailabilityTimeoutKey_);x.JSC$19867_checkScreenAvailabilityTimeoutKey_=0;_.uj(x.sessionStatusTimeoutKey_);x.sessionStatusTimeoutKey_=0;_.uj(x.onLoungeTokenTimeoutKey_);x.onLoungeTokenTimeoutKey_=0;_.uj(x.getLoungeTokenTimeoutKey_);x.getLoungeTokenTimeoutKey_=0};var ye=function(x,L,D,S){Xk.call(this,x,L,"DialSession");this.config_=S;this.JSC$19871_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$19871_theme_=D;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$19871_deferredLaunchDeadlineTimer_=NaN;this.JSC$19871_boundSessionUpdate_=(0,_.e1)(this.JSC$19873_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$19871_checkScreenAvailabilityTimeoutKey_=0;this.JSC$19871_isInitLoungeToken_=!1;this.JSC$19871_lastLoungeTokenRefreshError_="unknown"};
_.p(ye,Xk);ye.prototype.setCastSession=function(x){this.JSC$19871_session_=x;this.JSC$19871_session_.addUpdateListener(this.JSC$19871_boundSessionUpdate_)};
ye.prototype.launchWithParams=function(x){this.connectData_=x;this.deferredLaunch_()};
ye.prototype.stop=function(){g59(this);if(this.JSC$19871_session_)this.JSC$19871_session_.stop((0,_.e1)(this.onSessionStopped,this,null),(0,_.e1)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
ye.prototype.disposeInternal=function(){g59(this);this.JSC$19871_session_&&this.JSC$19871_session_.removeUpdateListener(this.JSC$19871_boundSessionUpdate_);this.JSC$19871_session_=null;Xk.prototype.disposeInternal.call(this)};
var ka5=function(x){var L;return!!(x.config_.enableDialLoungeToken&&((L=x.JSC$19871_session_)==null?0:L.getDialAppInfo))},pz9=function(x){x.cancelPolling_=x.JSC$19862_screenService_.JSC$19860_getScreenByPollingPairingCode(x.reversePairingCode_,x.receiver_.label,x.receiver_.friendlyName,ka5(x),function(L,D){x.cancelPolling_=function(){};
x.JSC$19871_isInitLoungeToken_=!0;Ko(x,L);L.idType=="shortLived"&&D>0&&Ie(x,D)},function(L){x.cancelPolling_=function(){};
x.onSessionStopped(L)})};
ye.prototype.JSC$19873_onSessionUpdate_=function(x){this.isDisposed()||x||(Ol(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var mSq=function(x){var L={};L.pairingCode=x.reversePairingCode_;L.theme=x.JSC$19871_theme_;G$W()&&(L.env_useStageMdx=1);return _.pH(L)},bEY=function(x){return new Promise(function(L){x.reversePairingCode_=VO$();
if(x.connectData_){var D=new chrome.cast.DialLaunchResponse(!0,mSq(x));L(D);pz9(x)}else x.deferredLaunch_=function(){_.uj(x.JSC$19871_deferredLaunchDeadlineTimer_);x.deferredLaunch_=function(){};
x.JSC$19871_deferredLaunchDeadlineTimer_=NaN;var S=new chrome.cast.DialLaunchResponse(!0,mSq(x));L(S);pz9(x)},x.JSC$19871_deferredLaunchDeadlineTimer_=_.VY(function(){x.deferredLaunch_()},100)})},FJu=function(x,L,D){x.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(L));
var S=new UC(L);return(new Promise(function(Q){YaG(x,S,function(J){J?(x.JSC$19871_isInitLoungeToken_=!0,JZ(x.JSC$19862_screenService_,S),Ko(x,S),Ie(x,D)):_.N9(Error("jl`"+JSON.stringify(L)));Q(J)},5)})).then(function(Q){return Q?new chrome.cast.DialLaunchResponse(!1):bEY(x)})},sb$=function(x,L){var D=x.launchData_.receiver.label,S=x.receiver_.friendlyName;
return(new Promise(function(Q){Jyq(x.JSC$19862_screenService_,D,L,S,function(J){J&&J.token&&Ko(x,J);Q(J)},function(J){Ol(x,"Failed to get DIAL screen: "+J);
Q(null)})})).then(function(Q){return Q&&Q.token?new chrome.cast.DialLaunchResponse(!1):bEY(x)})},YaG=function(x,L,D,S){_.uj(x.JSC$19871_checkScreenAvailabilityTimeoutKey_);
x.JSC$19871_checkScreenAvailabilityTimeoutKey_=0;OE$(x.JSC$19862_screenService_,L,function(Q){Q||S<0?D(Q):x.JSC$19871_checkScreenAvailabilityTimeoutKey_=_.VY(function(){YaG(x,L,D,S-1)},300)})},Ie=function(x,L){x.info("getDialAppInfoWithTimeout_ "+L);
ka5(x)&&(_.uj(x.getDialAppInfoTimeoutKey_),x.getDialAppInfoTimeoutKey_=0,L==0?TdW(x):x.getDialAppInfoTimeoutKey_=_.VY(function(){TdW(x)},L))},TdW=function(x){ka5(x)&&x.JSC$19871_session_.getDialAppInfo(function(L){x.info("getDialAppInfo dialLaunchData: "+JSON.stringify(L));
L=L.extraData||{};var D=null;if(L.loungeToken){var S;((S=x.screen_)==null?void 0:S.token)==L.loungeToken&&(D="staleLoungeToken")}else D="missingLoungeToken";D?(x.JSC$19871_lastLoungeTokenRefreshError_=D,Ie(x,3E4)):(x.JSC$19871_isInitLoungeToken_=!1,x.JSC$19871_lastLoungeTokenRefreshError_="unknown",E5G(x,L.loungeToken),Ie(x,L.loungeTokenRefreshIntervalMs))},function(L){x.info("getDialAppInfo error: "+L);
x.JSC$19871_lastLoungeTokenRefreshError_="noLoungeTokenResponse";Ie(x,3E4)})},g59=function(x){_.uj(x.JSC$19871_checkScreenAvailabilityTimeoutKey_);
x.JSC$19871_checkScreenAvailabilityTimeoutKey_=0;_.uj(x.getDialAppInfoTimeoutKey_);x.getDialAppInfoTimeoutKey_=0;x.cancelPolling_();x.cancelPolling_=function(){};
_.uj(x.JSC$19871_deferredLaunchDeadlineTimer_)};var El=function(x,L){Xk.call(this,x,L,"ManualSession");this.JSC$19875_deferredLaunchDeadlineTimer_=_.VY((0,_.e1)(this.launchWithParams,this,null),150)};
_.p(El,Xk);El.prototype.stop=function(){this.onSessionStopped()};
El.prototype.setCastSession=function(){};
El.prototype.launchWithParams=function(){_.uj(this.JSC$19875_deferredLaunchDeadlineTimer_);this.JSC$19875_deferredLaunchDeadlineTimer_=NaN;var x=Bj(this.JSC$19862_screenService_.getScreens(),this.receiver_.label);if(x)Ko(this,x);else this.onSessionStopped(Error("kl"))};
El.prototype.disposeInternal=function(){_.uj(this.JSC$19875_deferredLaunchDeadlineTimer_);this.JSC$19875_deferredLaunchDeadlineTimer_=NaN;Xk.prototype.disposeInternal.call(this)};var xS=function(x,L){_.Xx.call(this);this.config_=L;this.JSC$19878_screenService_=x;this.JSC$19878_appId_=L.appId||"233637DE";this.JSC$19878_theme_=L.theme||"cl";this.disableDial_=L.disableCastApi||!1;this.forceMirroring_=L.forceMirroring||!1;this.JSC$19878_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.e1)(this.onReceiverAction_,this)};
_.p(xS,_.Xx);
xS.prototype.init=function(x,L){chrome.cast.timeout.requestSession=3E4;var D=new chrome.cast.SessionRequest(this.JSC$19878_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.u("desktop_enable_cast_connect")&&(D.androidReceiverCompatible=!0);this.disableDial_||(D.dialRequest=new chrome.cast.DialRequest("YouTube"));var S=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;x=x||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var Q=(0,_.e1)(this.onReceiverUpdated_,
this);D=new chrome.cast.ApiConfig(D,(0,_.e1)(this.onSessionEstablished_,this),Q,S,x);D.customDialLaunchCallback=(0,_.e1)(this.onDialLaunchRequested_,this);chrome.cast.initialize(D,(0,_.e1)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),AH3(),this.JSC$19878_screenService_.subscribe("onlineScreenChange",(0,_.e1)(this.JSC$19880_onScreenChange_,this)),this.customReceivers_=egY(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.e1)(function(J){this.warn_("Failed to set initial custom receivers: "+(0,_.iO)(J))},this)),this.publish("yt-remote-cast2-availability-change",M8(this)),L(!0))},this),(0,_.e1)(function(J){this.warn_("Failed to initialize API: "+(0,_.iO)(J));
L(!1)},this))};
xS.prototype.setConnectedScreenStatus=function(x,L){dv("Setting connected screen ID: "+x+" -> "+L);if(this.JSC$19878_session_){var D=this.JSC$19878_session_.screen_;if(!x||D&&D.id!=x)dv("Unsetting old screen status: "+this.JSC$19878_session_.receiver_.friendlyName),PK(this,null)}if(x&&L){if(!this.JSC$19878_session_){x=Bj(this.JSC$19878_screenService_.getScreens(),x);if(!x){dv("setConnectedScreenStatus: Unknown screen.");return}if(x.idType=="shortLived"){dv("setConnectedScreenStatus: Screen with id type to be short lived.");
return}D=RgG(this,x);D||(dv("setConnectedScreenStatus: Connected receiver not custom..."),D=new chrome.cast.Receiver(x.uuid?x.uuid:x.id,x.name),D.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(D),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.e1)(function(S){this.warn_("Failed to set initial custom receivers: "+(0,_.iO)(S))},this)));
dv("setConnectedScreenStatus: new active receiver: "+D.friendlyName);PK(this,new El(this.JSC$19878_screenService_,D),!0)}this.JSC$19878_session_.setDisplayStatus(L)}else dv("setConnectedScreenStatus: no screen.")};
var RgG=function(x,L){return L?_.Uw(x.customReceivers_,function(D){return wu(L,D.label)},x):null};
xS.prototype.setLaunchParams=function(x){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$19878_session_?this.JSC$19878_session_.launchWithParams(x):this.warn_("Setting connection data without a session")};
xS.prototype.JSC$19880_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$19878_session_?(this.JSC$19878_session_.stop(),PK(this,null)):dv("Stopping non-existing session")};
xS.prototype.requestSession=function(){chrome.cast.requestSession((0,_.e1)(this.onSessionEstablished_,this),(0,_.e1)(this.onSessionRequestFailed_,this))};
xS.prototype.disposeInternal=function(){this.JSC$19878_screenService_.unsubscribe("onlineScreenChange",(0,_.e1)(this.JSC$19880_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.$f(_.o1("yt.mdx.remote.debug.handlers_")||[],BBl);_.Q1(this.JSC$19878_session_);_.Xx.prototype.disposeInternal.call(this)};
var dv=function(x){ru("Controller",x)};
xS.prototype.warn_=function(x){ru("Controller",x)};
var BBl=function(x){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(x)},M8=function(x){return x.hasCastReceiver_||!!x.customReceivers_.length||!!x.JSC$19878_session_},PK=function(x,L,D){L!=x.JSC$19878_session_&&(_.Q1(x.JSC$19878_session_),(x.JSC$19878_session_=L)?(D?x.publish("yt-remote-cast2-receiver-resumed",L.receiver_):x.publish("yt-remote-cast2-receiver-selected",L.receiver_),L.subscribe("sessionScreen",(0,_.e1)(x.onSessionScreen_,x,L)),L.subscribe("sessionFailed",
function(){return GaG(x,L)}),L.screen_?x.publish("yt-remote-cast2-session-change",L.screen_):D&&x.JSC$19878_session_.launchWithParams(null)):x.publish("yt-remote-cast2-session-change",null))},GaG=function(x,L){x.JSC$19878_session_==L&&x.publish("yt-remote-cast2-session-failed")};
_.K=xS.prototype;_.K.onSessionScreen_=function(x,L){this.JSC$19878_session_==x&&(L||PK(this,null),this.publish("yt-remote-cast2-session-change",L))};
_.K.onReceiverAction_=function(x,L){if(!this.isDisposed())if(x)switch(x.friendlyName=chrome.cast.unescape(x.friendlyName),dv("onReceiverAction_ "+x.label+" / "+x.friendlyName+"-- "+L),L){case chrome.cast.ReceiverAction.CAST:if(this.JSC$19878_session_)if(this.JSC$19878_session_.receiver_.label!=x.label)dv("onReceiverAction_: Stopping active receiver: "+this.JSC$19878_session_.receiver_.friendlyName),this.JSC$19878_session_.stop();else{dv("onReceiverAction_: Casting to active receiver.");this.JSC$19878_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$19878_session_.screen_);break}switch(x.receiverType){case chrome.cast.ReceiverType.CUSTOM:PK(this,new El(this.JSC$19878_screenService_,x));break;case chrome.cast.ReceiverType.DIAL:PK(this,new ye(this.JSC$19878_screenService_,x,this.JSC$19878_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:PK(this,new Zl(this.JSC$19878_screenService_,x,this.config_));break;default:this.warn_("Unknown receiver type: "+x.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$19878_session_&&
this.JSC$19878_session_.receiver_.label==x.label?this.JSC$19878_session_.stop():this.warn_("Stopping receiver w/o session: "+x.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.K.onDialLaunchRequested_=function(x){if(this.isDisposed())return Promise.reject(Error("ll"));var L=x.receiver;L.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+L.friendlyName),L.receiverType=chrome.cast.ReceiverType.DIAL);var D=this.JSC$19878_session_?this.JSC$19878_session_.receiver_:null;if(!D||D.label!=L.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+L.friendlyName),Promise.reject(Error("ml"));if(D&&D.label==L.label&&D.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$19878_session_.screen_)return dv("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$19878_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+D.receiverType+'" to "dial" for '+L.friendlyName);PK(this,new ye(this.JSC$19878_screenService_,L,this.JSC$19878_theme_,this.config_))}L=this.JSC$19878_session_;L.launchData_=x;L.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(x=L.launchData_.extraData||{},D=x.screenId||null,ka5(L)&&x.loungeToken?x.loungeTokenRefreshIntervalMs?x=FJu(L,{name:L.receiver_.friendlyName,screenId:x.screenId,loungeToken:x.loungeToken,dialId:L.launchData_.receiver.label,screenIdType:"shortLived"},x.loungeTokenRefreshIntervalMs):(_.N9(Error("il`"+JSON.stringify(x))),x=sb$(L,D)):x=sb$(L,D)):x=bEY(L);return x};
_.K.onSessionEstablished_=function(x){var L=this;if(!this.isDisposed()&&!this.forceMirroring_){dv("New cast session ID: "+x.sessionId);var D=x.receiver;if(D.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$19878_session_)if(D.receiverType==chrome.cast.ReceiverType.CAST)dv("Got resumed cast session before resumed mdx connection."),D.friendlyName=chrome.cast.unescape(D.friendlyName),PK(this,new Zl(this.JSC$19878_screenService_,D,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var S=this.JSC$19878_session_.receiver_,Q=Bj(this.JSC$19878_screenService_.getScreens(),S.label);Q&&wu(Q,D.label)&&S.receiverType!=chrome.cast.ReceiverType.CAST&&D.receiverType==chrome.cast.ReceiverType.CAST&&(dv("onSessionEstablished_: manual to cast session change "+D.friendlyName),_.Q1(this.JSC$19878_session_),this.JSC$19878_session_=new Zl(this.JSC$19878_screenService_,D,this.config_),this.JSC$19878_session_.subscribe("sessionScreen",(0,_.e1)(this.onSessionScreen_,this,this.JSC$19878_session_)),
this.JSC$19878_session_.subscribe("sessionFailed",function(){return GaG(L,L.JSC$19878_session_)}),this.JSC$19878_session_.launchWithParams(null));
this.JSC$19878_session_.setCastSession(x)}}};
_.K.JSC$19880_getCastSession=function(){return this.JSC$19878_session_?this.JSC$19878_session_.JSC$19864_getCastSession():null};
_.K.onSessionRequestFailed_=function(x){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.iO)(x)),x.code!=chrome.cast.ErrorCode.CANCEL&&PK(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.K.onReceiverUpdated_=function(x){dv("Receiver availability updated: "+x);if(!this.isDisposed()){var L=M8(this);this.hasCastReceiver_=x==chrome.cast.ReceiverAvailability.AVAILABLE;M8(this)!=L&&this.publish("yt-remote-cast2-availability-change",M8(this))}};
var egY=function(x){var L=x.JSC$19878_screenService_.JSC$19860_getOnlineScreens(),D=x.JSC$19878_session_&&x.JSC$19878_session_.receiver_;x=_.Bn(L,function(S){D&&wu(S,D.label)&&(D=null);var Q=S.uuid?S.uuid:S.id,J=RgG(this,S);J?(J.label=Q,J.friendlyName=S.name):(J=new chrome.cast.Receiver(Q,S.name),J.receiverType=chrome.cast.ReceiverType.CUSTOM);return J},x);
D&&(D.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(D=new chrome.cast.Receiver(D.label,D.friendlyName),D.receiverType=chrome.cast.ReceiverType.CUSTOM),x.push(D));return x};
xS.prototype.JSC$19880_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=egY(this),dv("Updating custom receivers: "+(0,_.iO)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.e1)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",M8(this)))};
xS.prototype.setLaunchParams=xS.prototype.setLaunchParams;xS.prototype.setConnectedScreenStatus=xS.prototype.setConnectedScreenStatus;xS.prototype.stopSession=xS.prototype.JSC$19880_stopSession;xS.prototype.getCastSession=xS.prototype.JSC$19880_getCastSession;xS.prototype.requestSession=xS.prototype.requestSession;xS.prototype.init=xS.prototype.init;xS.prototype.dispose=xS.prototype.dispose;var CAg=_.xI(["https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"]),Mn9=[],LU$=_.Pn(CAg);var lkX=function(x){x.audioTrackId=null;x.trackData=null;x.playerState=-1;x.hasPrevious=!1;x.hasNext=!1;x.playerTime_=0;x.playerTimeAt_=_.IM();x.seekableStart_=0;x.seekableEnd_=0;x.duration_=0;x.loadedTime=0;x.liveIngestionTime_=NaN;x.isLive_=!1};
_.K=Lb.prototype;
_.K.reset=function(x){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;x&&(this.index=x.index,this.listId=x.listId,this.videoId=x.videoId,this.playerState=x.playerState,this.volume=x.volume,this.muted=x.muted,this.audioTrackId=x.audioTrackId,this.trackData=x.trackData,this.hasPrevious=x.hasPrevious,this.hasNext=x.hasNext,this.playerTime_=x.playerTime,this.playerTimeAt_=x.playerTimeAt,this.seekableStart_=x.seekableStart,this.seekableEnd_=x.seekableEnd,this.duration_=x.duration,this.loadedTime=
x.loadedTime,this.liveIngestionTime_=x.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.K.stopPlayer=function(){this.index=-1;this.videoId="";lkX(this)};
_.K.isPlaying=function(){return this.playerState==1};
_.K.isBuffering=function(){return this.playerState==3};
_.K.isAdPlaying=function(){return this.playerState==1081};
var jw=function(x,L){x.playerTime_=L;x.playerTimeAt_=_.IM()},US9=function(x){switch(x.playerState){case 1:case 1081:return(_.IM()-x.playerTimeAt_)/1E3+x.playerTime_;
case -1E3:return 0}return x.playerTime_};
Lb.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.IM()-this.playerTimeAt_)/1E3:0):this.duration_};
var wz$=function(x,L,D){var S=x.videoId;x.videoId=L;x.index=D;L!=S&&lkX(x)},Bdl=function(x){var L={};
L.index=x.index;L.listId=x.listId;L.videoId=x.videoId;L.playerState=x.playerState;L.volume=x.volume;L.muted=x.muted;L.audioTrackId=x.audioTrackId;L.trackData=_.wk.unsafeClone(x.trackData);L.hasPrevious=x.hasPrevious;L.hasNext=x.hasNext;L.playerTime=x.playerTime_;L.playerTimeAt=x.playerTimeAt_;L.seekableStart=x.seekableStart_;L.seekableEnd=x.seekableEnd_;L.duration=x.duration_;L.loadedTime=x.loadedTime;L.liveIngestionTime=x.liveIngestionTime_;return L};
Lb.prototype.clone=function(){return new Lb(Bdl(this))};var yJ=function(x,L){_.Xx.call(this);var D=this;this.state_=0;this.connection_=x;this.contextSubscriptions_=[];this.actionQueue_=new OIW;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.e1)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.e1)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.e1)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.e1)(this.onCloudviewAvailabilityChange_,this);var S=0;x?(S=x.getProxyState(),
S!=3&&(x.subscribe("proxyStateChange",this.setState_,this),WJ3(this))):S=3;S!=0&&(L?this.setState_(S):_.VY(function(){D.setState_(S)},0));
(x=vOX())&&qaG(this,x);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.p(yJ,_.Xx);yJ.prototype.getState=function(){return this.state_};
yJ.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
yJ.prototype.reconnect=function(){this.connection_.reconnect()};
var vK=function(x){return new Lb(x.connection_.getPlayerContextData())};
_.K=yJ.prototype;_.K.play=function(){Ve(this)?(this.castMedia_?this.castMedia_.play(null,_.GC,Ays(this,"play")):hZ(this,"play"),$SI(this,1,US9(vK(this))),this.publish("remotePlayerChange")):HK(this,this.play)};
_.K.pause=function(){Ve(this)?(this.castMedia_?this.castMedia_.pause(null,_.GC,Ays(this,"pause")):hZ(this,"pause"),$SI(this,2,US9(vK(this))),this.publish("remotePlayerChange")):HK(this,this.pause)};
_.K.seekTo=function(x){if(Ve(this)){if(this.castMedia_){var L=vK(this),D=new chrome.cast.media.SeekRequest;D.currentTime=x;L.isPlaying()||L.isBuffering()?D.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:D.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(D,_.GC,Ays(this,"seekTo",{newTime:x}))}else hZ(this,"seekTo",{newTime:x});$SI(this,3,x);this.publish("remotePlayerChange")}else HK(this,_.bl(this.seekTo,x))};
_.K.stop=function(){if(Ve(this)){this.castMedia_?this.castMedia_.stop(null,_.GC,Ays(this,"stopVideo")):hZ(this,"stopVideo");var x=vK(this);x.stopPlayer();uI(this,x);this.publish("remotePlayerChange")}else HK(this,this.stop)};
_.K.setVolume=function(x,L){if(Ve(this)){var D=vK(this);if(this.castSession_){if(D.volume!=x){var S=Math.round(x)/100;this.castSession_.setReceiverVolumeLevel(S,(0,_.e1)(function(){NQ("set receiver volume: "+S)},this),(0,_.e1)(function(){this.warn_("failed to set receiver volume.")},this))}D.muted!=L&&this.castSession_.setReceiverMuted(L,(0,_.e1)(function(){NQ("set receiver muted: "+L)},this),(0,_.e1)(function(){this.warn_("failed to set receiver muted.")},this))}else{var Q={volume:x,
muted:L};D.volume!=-1&&(Q.delta=x-D.volume);hZ(this,"setVolume",Q)}D.muted=L;D.volume=x;uI(this,D)}else HK(this,_.bl(this.setVolume,x,L))};
_.K.setAudioTrack=function(x,L){Ve(this)?(L=L.getLanguageInfo().getId(),hZ(this,"setAudioTrack",{videoId:x,audioTrackId:L}),x=vK(this),x.audioTrackId=L,uI(this,x)):HK(this,_.bl(this.setAudioTrack,x,L))};
_.K.addVideo=function(x){Ve(this)?hZ(this,"addVideo",{videoId:x}):HK(this,_.bl(this.addVideo,x))};
_.K.addPlaylist=function(x){Ve(this)?hZ(this,"addVideos",{listId:x}):HK(this,_.bl(this.addPlaylist,x))};
_.K.addVideos=function(x){x.length==0?this.warn_("Ignore add videos request due to empty list"):Ve(this)?hZ(this,"addVideos",{videoIds:x.join(",")}):HK(this,_.bl(this.addVideos,x))};
_.K.JSC$19890_removeVideo=function(x){Ve(this)?hZ(this,"removeVideo",{videoId:x}):HK(this,_.bl(this.JSC$19890_removeVideo,x))};
_.K.JSC$19890_insertVideo=function(x){Ve(this)?hZ(this,"insertVideo",{videoId:x}):HK(this,_.bl(this.JSC$19890_insertVideo,x))};
_.K.playVideo=function(x,L,D,S,Q,J,Z){S=S===void 0?null:S;Q=Q===void 0?null:Q;J=J===void 0?null:J;Z=Z===void 0?null:Z;var y=vK(this),E={videoId:x};D!==void 0&&(E.currentIndex=D);wz$(y,x,D||0);L!==void 0&&(jw(y,L),E.currentTime=L);S&&(E.listId=S);Q&&(E.playerParams=Q);J&&(E.clickTrackingParams=J);Z&&(E.locationInfo=(0,_.iO)(Z));hZ(this,"setPlaylist",E);S||uI(this,y)};
_.K.nextVideo=function(x,L){if(Ve(this)){if(x&&L){var D=vK(this);wz$(D,x,L);uI(this,D)}hZ(this,"next")}else HK(this,_.bl(this.nextVideo,x,L))};
_.K.clearPlaylist=function(){if(Ve(this)){hZ(this,"clearPlaylist");var x=vK(this);x.reset();uI(this,x);this.publish("remotePlayerChange")}else HK(this,this.clearPlaylist)};
_.K.dispose=function(){if(this.state_!=3){var x=this.state_;this.state_=3;this.publish("proxyStateChange",x,this.state_)}_.Xx.prototype.dispose.call(this)};
_.K.disposeInternal=function(){ryI(this);this.connection_=null;this.actionQueue_.clear();qaG(this,null);_.Xx.prototype.disposeInternal.call(this)};
var WJ3=function(x){_.nm("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(L){this.contextSubscriptions_.push(this.connection_.subscribe(L,_.bl(this.onProxyEvent_,L),this))},x)},ryI=function(x){_.nm(x.contextSubscriptions_,function(L){this.connection_.unsubscribeByKey(L)},x);
x.contextSubscriptions_.length=0},Ve=function(x){return x.getState()==1},HK=function(x,L){x.actionQueue_.getCount()<50&&x.actionQueue_.enqueue(L)},$SI=function(x,L,D){var S=vK(x);
jw(S,D);S.playerState!=-1E3&&(S.playerState=L);uI(x,S)},hZ=function(x,L,D){x.connection_.sendMessage(L,D)},uI=function(x,L){ryI(x);
x.connection_.setPlayerContextData(Bdl(L));WJ3(x)};
yJ.prototype.setState_=function(x){if((x!=this.state_||x==2)&&this.state_!=3&&x!=0){var L=this.state_;this.state_=x;this.publish("proxyStateChange",L,x);if(x==1)for(;!this.actionQueue_.isEmpty();)x=this.actionQueue_,Pel(x),x.front_.pop().apply(this);else x==3&&this.dispose()}};
yJ.prototype.onProxyEvent_=function(x,L){this.publish(x,L)};
var qaG=function(x,L){x.castSession_&&(x.castSession_.removeUpdateListener(x.boundCastStatusListener_),x.castSession_.removeMediaListener(x.boundCastMediaListener_),x.onCastMediaChange_(null));x.castSession_=L;if(x.castSession_&&(NQ("Setting cast session: "+x.castSession_.sessionId),x.castSession_.addUpdateListener(x.boundCastStatusListener_),x.castSession_.addMediaListener(x.boundCastMediaListener_),x.castSession_.media.length))x.onCastMediaChange_(x.castSession_.media[0])};
yJ.prototype.onCastStatusUpdate_=function(x){if(!x)this.onCastMediaChange_(null),qaG(this,null);else if(this.castSession_.receiver.volume){x=this.castSession_.receiver.volume;var L=vK(this),D=Math.round(100*x.level||0);if(L.volume!=D||L.muted!=x.muted)NQ("Cast volume update: "+x.level+(x.muted?" muted":"")),L.volume=D,L.muted=!!x.muted,uI(this,L)}};
yJ.prototype.onCastMediaChange_=function(x){NQ("Cast media: "+!!x);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=x)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),Nd3(this),this.publish("remotePlayerChange")};
var Nd3=function(x){var L=x.castMedia_.media,D=x.castMedia_.customData;if(L&&D){var S=vK(x);L.contentId!=S.videoId&&NQ("Cast changing video to: "+L.contentId);S.videoId=L.contentId;S.playerState=D.playerState;jw(S,x.castMedia_.getEstimatedTime());uI(x,S)}else NQ("No cast media video. Ignoring state update.")};
yJ.prototype.onCastMediaUpdate_=function(x){if(x)Nd3(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
yJ.prototype.onCloudviewAvailabilityChange_=function(){var x=vOX();x&&qaG(this,x)};
yJ.prototype.warn_=function(x){ru("CP",x)};
var Ays=function(x,L,D){return(0,_.e1)(function(S){this.warn_("Failed to "+L+" with cast v2 channel. Error code: "+S.code);S.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+L+" using MDx browser channel."),hZ(this,L,D))},x)};var IA=function(x,L,D,S){S=S===void 0?!1:S;_.Xx.call(this);var Q=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$19895_http_=x;this.enableConnectWithInitialState_=S;this.listeners_.push(_.J7(window,"beforeunload",function(){Q.JSC$19898_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new Lb;this.currentScreenId_=L.id;this.currentScreenIdType_=L.idType;this.channelService=wpY(this.JSC$19895_http_,D,this.JSC$19898_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){iEI(Q)});
this.channelService.listen("channelClosed",function(){gv("Channel closed");isNaN(Q.connectTimerId_)?Wj(!0):Wj();Q.dispose()});
this.channelService.listen("channelError",function(J){Wj();isNaN(Q.getReconnectTimeout_())?(J==1&&Q.currentScreenIdType_=="shortLived"&&Q.publish("browserChannelAuthError",J),gv("Channel error: "+J+" without reconnection"),Q.dispose()):(Q.reconnecting_=!0,gv("Channel error: "+J+" with reconnection in "+Q.getReconnectTimeout_()+" ms"),fku(Q,2))});
this.channelService.listen("channelMessage",function(J){o5u(Q,J)});
this.channelService.setLoungeToken(L.token);this.subscribe("remoteQueueChange",function(){var J=Q.playerContext_.videoId;k$g()&&_.qB("yt-remote-session-video-id",J)})};
_.p(IA,_.Xx);
IA.prototype.connect=function(x,L){if(L){var D=L.listId,S=L.videoId,Q=L.videoIds,J=L.playerParams,Z=L.clickTrackingParams,y=L.index,E={videoId:S},P=L.currentTime,v=L.locationInfo;L=L.loopMode;P!==void 0&&(E.currentTime=P<=5?0:P);J&&(E.playerParams=J);v&&(E.locationInfo=v);Z&&(E.clickTrackingParams=Z);D&&(E.listId=D);Q&&Q.length>0&&(E.videoIds=Q.join(","));y!==void 0&&(E.currentIndex=y);this.enableConnectWithInitialState_&&(E.loopMode=L||"LOOP_MODE_OFF");D&&(this.playerContext_.listId=D);this.playerContext_.videoId=
S;this.playerContext_.index=y||0;this.playerContext_.state=3;jw(this.playerContext_,P);this.autoplayMode_="UNSUPPORTED";D=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";gv("Connecting with "+D+" and params: "+(0,_.iO)(E));this.channelService.connect({method:D,params:(0,_.iO)(E)},x,FAu())}else gv("Connecting without params"),this.channelService.connect({},x,FAu());ak$(this)};
IA.prototype.setLoungeToken=function(x){this.channelService.setLoungeToken(x)};
IA.prototype.dispose=function(){this.isDisposed()||(_.KK("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),fku(this,3));_.Xx.prototype.dispose.call(this)};
IA.prototype.disposeInternal=function(){zgX(this);Xz9(this);cys(this);_.uj(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.uj(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.EOh(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.Xx.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var n5W=function(x){return _.Uw(x.connectedDevices_,function(L){return L.type=="LOUNGE_SCREEN"})},gv=function(x){ru("conn",x)},fku=function(x,L){x.publish("proxyStateChange",L)},ak$=function(x){x.connectTimerId_=_.VY(function(){gv("Connecting timeout");
x.JSC$19898_disconnect_(1)},2E4)},zgX=function(x){_.uj(x.connectTimerId_);
x.connectTimerId_=NaN},cys=function(x){_.uj(x.reconnectedCheckScreenTimeout_);
x.reconnectedCheckScreenTimeout_=NaN},tEq=function(x){Xz9(x);
x.playingSyncTimerId_=_.VY(function(){ku(x,"getNowPlaying")},2E4)},Xz9=function(x){_.uj(x.playingSyncTimerId_);
x.playingSyncTimerId_=NaN},iEI=function(x){gv("Channel opened");
x.reconnecting_&&(x.reconnecting_=!1,cys(x),x.reconnectedCheckScreenTimeout_=_.VY(function(){gv("Timing out waiting for a screen.");x.JSC$19898_disconnect_(1)},15E3))},LOG=function(x,L){var D=null;
if(L){var S=n5W(x);S&&(D={clientName:S.clientName,deviceMake:S.brand,deviceModel:S.model,osVersion:S.osVersion})}_.KK("yt.mdx.remote.remoteClient_",D);L&&(zgX(x),cys(x));D=x.channelService.isChannelOpened()&&isNaN(x.connectTimerId_);L==D?L&&(fku(x,1),ku(x,"getSubtitlesTrack")):L?(x.getOtherConnectedRemoteId_()&&x.playerContext_.reset(),fku(x,1),ku(x,"getNowPlaying"),xrl(x)):x.JSC$19898_disconnect_(1)},Drs=function(x,L){var D=L.params.videoId;
delete L.params.videoId;D==x.playerContext_.videoId&&(_.wk.isEmpty(L.params)?x.playerContext_.trackData=null:x.playerContext_.trackData=L.params,x.publish("remotePlayerChange"))},S0u=function(x,L,D){var S=L.params.videoId||L.params.video_id,Q=parseInt(L.params.currentIndex,10);
x.playerContext_.listId=L.params.listId||x.playerContext_.listId;wz$(x.playerContext_,S,Q);x.publish("remoteQueueChange",D)},Qd3=function(x,L){L.params=L.params||{};
S0u(x,L,"NOW_PLAYING_MAY_CHANGE");x.onStateChange_(L);x.publish("autoplayDismissed")};
IA.prototype.onStateChange_=function(x){var L=parseInt(x.params.currentTime||x.params.current_time,10);jw(this.playerContext_,isNaN(L)?0:L);L=parseInt(x.params.state,10);L=isNaN(L)?-1:L;L==-1&&this.playerContext_.playerState==-1E3&&(L=-1E3);this.playerContext_.playerState=L;L=Number(x.params.loadedTime);this.playerContext_.loadedTime=isNaN(L)?0:L;L=Number(x.params.duration);this.playerContext_.duration_=isNaN(L)?0:L;L=this.playerContext_;var D=Number(x.params.liveIngestionTime);L.liveIngestionTime_=
D;L.isLive_=isNaN(D)?!1:!0;L=this.playerContext_;D=Number(x.params.seekableStartTime);x=Number(x.params.seekableEndTime);L.seekableStart_=isNaN(D)?0:D;L.seekableEnd_=isNaN(x)?0:x;this.playerContext_.playerState==1?tEq(this):Xz9(this);this.publish("remotePlayerChange")};
IA.prototype.onAdStateChange_=function(x){if(this.playerContext_.playerState!=-1E3){var L=1085;switch(parseInt(x.params.adState,10)){case 1:L=1081;break;case 2:L=1084;break;case 0:L=1083}this.playerContext_.playerState=L;x=parseInt(x.params.currentTime,10);jw(this.playerContext_,isNaN(x)?0:x);this.publish("remotePlayerChange")}};
var JAu=function(x,L){var D=L.params.muted=="true";x.playerContext_.volume=parseInt(L.params.volume,10);x.playerContext_.muted=D;x.publish("remotePlayerChange")},KOs=function(x,L){x.autoplayVideoId_=L.params.videoId;
x.publish("nowAutoplaying",parseInt(L.params.timeout,10))},ODq=function(x,L){x.autoplayVideoId_=L.params.videoId||null;
x.publish("autoplayUpNext",x.autoplayVideoId_)},ZDl=function(x,L){x.autoplayMode_=L.params.autoplayMode;
x.publish("autoplayModeChange",x.autoplayMode_);x.autoplayMode_=="DISABLED"&&x.publish("autoplayDismissed")},yAY=function(x,L){var D=L.params.hasNext=="true";
x.playerContext_.hasPrevious=L.params.hasPrevious=="true";x.playerContext_.hasNext=D;x.publish("previousNextChange")};
IA.prototype.isCapabilitySupportedOnConnectedDevices_=function(x){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var L=_.O(this.connectedDevices_),D=L.next();!D.done;D=L.next())if(!D.value.capabilities.has(x))return!1;return!0};
var o5u=function(x,L){L=L.message;L.params?gv("Received: action="+L.action+", params="+(0,_.iO)(L.params)):gv("Received: action="+L.action+" {}");switch(L.action){case "loungeStatus":L=(0,_.UK)(L.params.devices);x.connectedDevices_=_.Bn(L,function(S){return new Sw(S)});
L=!!_.Uw(x.connectedDevices_,function(S){return S.type=="LOUNGE_SCREEN"});
LOG(x,L);L=x.isCapabilitySupportedOnConnectedDevices_("mlm");x.publish("multiStateLoopEnabled",L);break;case "loungeScreenDisconnected":c_s(x.connectedDevices_,function(S){return S.type=="LOUNGE_SCREEN"});
LOG(x,!1);break;case "remoteConnected":var D=new Sw((0,_.UK)(L.params.device));_.Uw(x.connectedDevices_,function(S){return S.equals(D)})||_.eO0(x.connectedDevices_,D);
break;case "remoteDisconnected":D=new Sw((0,_.UK)(L.params.device));c_s(x.connectedDevices_,function(S){return S.equals(D)});
break;case "gracefulDisconnect":break;case "playlistModified":S0u(x,L,"QUEUE_MODIFIED");break;case "nowPlaying":Qd3(x,L);break;case "onStateChange":x.onStateChange_(L);break;case "onAdStateChange":x.onAdStateChange_(L);break;case "onVolumeChanged":JAu(x,L);break;case "onSubtitlesTrackChanged":Drs(x,L);break;case "nowAutoplaying":KOs(x,L);break;case "autoplayDismissed":x.publish("autoplayDismissed");break;case "autoplayUpNext":ODq(x,L);break;case "onAutoplayModeChanged":ZDl(x,L);break;case "onHasPreviousNextChanged":yAY(x,
L);break;case "requestAssistedSignIn":x.publish("assistedSignInRequested",L.params.authCode);break;case "onLoopModeChanged":x.publish("loopModeChange",L.params.loopMode);break;default:gv("Unrecognized action: "+L.action)}};
_.K=IA.prototype;_.K.getProxyState_=function(){var x=3;this.isDisposed()||(x=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(x=1):x=2);return x};
_.K.JSC$19898_disconnect_=function(x){gv("Disconnecting with "+x);_.KK("yt.mdx.remote.remoteClient_",null);zgX(this);this.publish("beforeDisconnect",x);x==1&&Wj();this.channelService.disconnect(x);this.dispose()};
_.K.getPlayerContextData_=function(){var x=this.playerContext_;this.clientVideoId_&&(x=this.playerContext_.clone(),wz$(x,this.clientVideoId_,x.index));return Bdl(x)};
_.K.setPlayerContextData_=function(x){var L=this,D=new Lb(x);D.videoId&&D.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=D.videoId,_.uj(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.VY(function(){if(L.clientVideoId_){var Q=L.clientVideoId_;L.clientVideoId_=null;L.playerContext_.videoId!=Q&&ku(L,"getNowPlaying")}},5E3));
var S=[];this.playerContext_.listId==D.listId&&this.playerContext_.videoId==D.videoId&&this.playerContext_.index==D.index||S.push("remoteQueueChange");this.playerContext_.playerState==D.playerState&&this.playerContext_.volume==D.volume&&this.playerContext_.muted==D.muted&&US9(this.playerContext_)==US9(D)&&(0,_.iO)(this.playerContext_.trackData)==(0,_.iO)(D.trackData)||S.push("remotePlayerChange");this.playerContext_.reset(x);_.nm(S,function(Q){this.publish(Q)},this)};
_.K.getOtherConnectedRemoteId_=function(){var x=this.channelService.getDeviceId(),L=_.Uw(this.connectedDevices_,function(D){return D.type=="REMOTE_CONTROL"&&D.id!=x});
return L?L.id:""};
_.K.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.K.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.K.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.K.JSC$19898_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var xrl=function(x){_.uj(x.idleDisconnectTimerId_);x.idleDisconnectTimerId_=_.VY(function(){x.JSC$19898_disconnect_(1)},864E5)},ku=function(x,L,D){D?gv("Sending: action="+L+", params="+(0,_.iO)(D)):gv("Sending: action="+L);
x.channelService.sendMessage(L,D)};
IA.prototype.sendMessageWithUserAction_=function(x,L){ku(this,x,L);xrl(this)};
IA.prototype.JSC$19898_getXsrfToken_=function(){var x=_.YQ.get("SAPISID","")||_.YQ.get("__Secure-1PAPISID",void 0)||"",L=_.YQ.get("__Secure-3PAPISID","")||"";if(!x&&!L)return"";x=_.Gg(_.s7(x),2);L=_.Gg(_.s7(L),2);return _.Gg(_.s7(","+x+","+L),2)};
IA.prototype.subscribe=IA.prototype.subscribe;IA.prototype.unsubscribeByKey=IA.prototype.unsubscribeByKey;IA.prototype.getProxyState=IA.prototype.getProxyState_;IA.prototype.disconnect=IA.prototype.JSC$19898_disconnect_;IA.prototype.getPlayerContextData=IA.prototype.getPlayerContextData_;IA.prototype.setPlayerContextData=IA.prototype.setPlayerContextData_;IA.prototype.getOtherConnectedRemoteId=IA.prototype.getOtherConnectedRemoteId_;IA.prototype.getReconnectTimeout=IA.prototype.getReconnectTimeout_;
IA.prototype.getAutoplayMode=IA.prototype.getAutoplayMode_;IA.prototype.getAutoplayVideoId=IA.prototype.getAutoplayVideoId_;IA.prototype.reconnect=IA.prototype.JSC$19898_reconnect_;IA.prototype.sendMessage=IA.prototype.sendMessageWithUserAction_;IA.prototype.getXsrfToken=IA.prototype.JSC$19898_getXsrfToken_;IA.prototype.isCapabilitySupportedOnConnectedDevices=IA.prototype.isCapabilitySupportedOnConnectedDevices_;var wDq=function(x){fj.call(this,"ScreenServiceProxy");this.instance_=x;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.e1)(this.JSC$19901_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.e1)(this.onOnlineScreenChange_,this)))};
_.p(wDq,fj);_.K=wDq.prototype;_.K.getScreens=function(x){return this.instance_.$_gs(x)};
_.K.contains=function(x){return!!this.instance_.$_c(x)};
_.K.get=function(x){return this.instance_.$_g(x)};
_.K.start=function(){this.instance_.$_st()};
_.K.add=function(x,L,D){this.instance_.$_a(x,L,D)};
_.K.remove=function(x,L,D){this.instance_.$_r(x,L,D)};
_.K.updateName=function(x,L,D,S){this.instance_.$_un(x,L,D,S)};
_.K.disposeInternal=function(){for(var x=this.subscriptionKeys_.length,L=0;L<x;++L)this.instance_.$_ubk(this.subscriptionKeys_[L]);this.subscriptionKeys_.length=0;this.instance_=null;fj.prototype.disposeInternal.call(this)};
_.K.JSC$19901_onScreenChange_=function(){this.publish("screenChange")};
_.K.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
zx.prototype.$_st=zx.prototype.start;zx.prototype.$_gspc=zx.prototype.JSC$19860_getScreenByPairingCode;zx.prototype.$_gsppc=zx.prototype.JSC$19860_getScreenByPollingPairingCode;zx.prototype.$_c=zx.prototype.contains;zx.prototype.$_g=zx.prototype.get;zx.prototype.$_a=zx.prototype.add;zx.prototype.$_un=zx.prototype.updateName;zx.prototype.$_r=zx.prototype.remove;zx.prototype.$_gs=zx.prototype.getScreens;zx.prototype.$_gos=zx.prototype.JSC$19860_getOnlineScreens;zx.prototype.$_s=zx.prototype.subscribe;
zx.prototype.$_ubk=zx.prototype.unsubscribeByKey;var euX=null,WUs=!1,De=null,SL=null,Uju=null,Oe=[];var I6s=new _.Ng("yt-menu"),Eq9=function(){},drl=function(x,L,D){x=L=="right-click"?D.rightClickMenuPopupHint:D.menuPopupHint;
if(!(Mgl(L)>10))return L=L||"default",I6s.set(L+"-impression",Mgl(L)+1),x},Mgl=function(x){return parseInt(I6s.get((x||"default")+"-impression")||0,10)};
_.y6(Eq9);var PuI=function(){this.contexts_=new WeakMap;this.JSC$19907_networkService_=this.activeContext_=null},jdq=function(x,L,D){var S=x.contexts_.get(L);
S||(S=new itq(x.JSC$19907_networkService_),x.contexts_.set(L,S));x.activeContext_=S;D&&x.activeContext_.reset();x.activeContext_.start();return x.activeContext_};var po=function(){};
po.prototype.enqueue=function(){var x=this,L;return _.I(function(D){if(x.isCounterfactual())return(L=x.getCounterfactualData())&&x.shouldLogCounterfactualImpression()&&x.sendImpressionEndpoints(L),D.return();x.doEnqueue();_.Y2(D)})};
po.prototype.sendImpressionEndpoints=function(x){_.aR.getInstance().triggerOptionalAction("yt-service-request",{},x[0])};var mh=function(x,L){this.renderer=x;this.page=L};
_.p(mh,po);mh.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
mh.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
mh.prototype.shouldLogCounterfactualImpression=function(){return!0};
mh.prototype.doEnqueue=function(){var x=_.Ov(this.page);x&&x.pause();this.renderer.impressionCommand&&_.aR.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.tS(_.aR.getInstance(),[this.renderer.promoCommand],this.page)};var vql=function(x,L){this.renderer=x;this.resolver=_.xe();this.JSC$19919_enforcementCounter=new _.kJh;L?this.JSC$19919_playerManager=_.Ov(L):this.JSC$19919_playerManager=null;_.k8(1,!0)};
_.p(vql,po);_.K=vql.prototype;_.K.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var x=[];this.renderer.impressionEndpoints.forEach(function(L){(L=_.fI(L))&&x.push(L)});
return x}};
_.K.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.K.shouldLogCounterfactualImpression=function(){var x=_.ypN();x?(this.JSC$19919_enforcementCounter.increment("POPUP"),_.k8(3)):_.k8(2);return x};
_.K.cancel=function(){this.resolver.promise.cancel()};
_.K.doEnqueue=function(){var x=this;_.ypN()?(this.JSC$19919_enforcementCounter.increment("POPUP"),_.k8(3),Vgq(this)):this.JSC$19919_playerManager?(this.resolver.promise.then(function(){Vgq(x)}),hp3(this.resolver,this.JSC$19919_playerManager)):_.k8(2)};
var hp3=function(x,L){var D=_.xe();L.getPlayerPromise().then(function(S){D.resolve(S)});
D.promise.then(function(S){S.addEventListener("onAbnormalityDetected",x.resolve);_.$x(x.promise,function(){S.removeEventListener("onAbnormalityDetected",x.resolve)})});
x.promise.thenCatch(function(){D.promise.cancel()})},Vgq=function(x){_.k8(3);
var L={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:x.renderer}};L=_.aR.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:L},{});Promise.all(L).then(function(){HD9();x.JSC$19919_playerManager&&x.JSC$19919_playerManager.pause()})},HD9=function(){R$I(function(x,L){_.k8q(x,L);
x===0?_.k8(7):_.k8(4)})};var ub5=function(x,L){this.renderer=x;this.page=L;this.resolver=_.xe()};
_.p(ub5,po);_.K=ub5.prototype;_.K.cancel=function(){this.resolver.promise.cancel()};
_.K.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.K.isCounterfactual=function(){return!this.renderer.isVisible};
_.K.shouldLogCounterfactualImpression=function(){return!0};
_.K.doEnqueue=function(){var x=this;this.resolver.promise.then(function(){var D={popup:{mealbarPromoRenderer:x.renderer},popupType:"MEALBAR"};_.aR.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:D},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var L=_.Ov(this.page);L&&gqs(this.resolver,L)}break;default:this.resolver.resolve()}};
var gqs=function(x,L){var D=_.xe();L.getPlayerPromise().then(function(S){D.resolve(S)});
D.promise.then(function(S){S.addEventListener("onAdEnd",x.resolve);_.$x(x.promise,function(){S.removeEventListener("onAdEnd",x.resolve)})});
x.promise.thenCatch(function(){D.promise.cancel()})};var k2u=function(x,L){this.renderer=x;this.page=L};
_.p(k2u,po);_.K=k2u.prototype;_.K.cancel=function(){this.JSC$19927_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$19927_downloadedVideosCountSelectorUnsubscriber(),this.JSC$19927_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.K.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.K.isCounterfactual=function(){return!this.renderer.isVisible};
_.K.shouldLogCounterfactualImpression=function(){return!0};
_.K.doEnqueue=function(){var x=this,L,D;((L=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(D=L.playbackUpsellDialogTriggerConditionData)==null?void 0:D.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$19927_downloadedVideosCountSelectorUnsubscriber=_.oQ(_.Jd(),TDY,function(S,Q){S>Q&&(pEI(x),x.cancel())}):pEI(this)};
var pEI=function(x){var L={popup:{upsellDialogRenderer:x.renderer},popupType:"MODAL"};_.aR.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:L},{});(x=_.Ov(x.page))&&x.pause()};var bI={},mrW=(bI.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",bI.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",bI.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",bI.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",bI.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",bI.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",bI.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",bI),bDI=function(x,L){this.renderer=x;this.targetManager=
L};
_.p(bDI,po);_.K=bDI.prototype;_.K.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$19934_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$19934_downloadedVideosCountSelectorUnsubscriber(),this.JSC$19934_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.K.getCounterfactualData=function(){if(this.isCounterfactual()){var x;return(x=this.renderer.promoConfig)==null?void 0:x.impressionEndpoints}};
_.K.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.K.shouldLogCounterfactualImpression=function(){return!0};
_.K.doEnqueue=function(){var x=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$19934_downloadedVideosCountSelectorUnsubscriber=_.oQ(_.Jd(),TDY,function(L,D){x.renderer.targetId&&L>D&&(jM9(x.targetManager,x.renderer.targetId,Y0G(x)),x.cancel())});
break;default:jM9(this.targetManager,this.renderer.targetId,Y0G(this))}};
var Y0G=function(x){var L;if((L=x.renderer.suggestedPosition)==null?0:L.type)var D=mrW[x.renderer.suggestedPosition.type];D||(D="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:x.renderer},popupType:"HINT",position:D}}};var FOl=function(){this.previousPage=null},sd5;
FOl.prototype.registerPromoCommand=function(x,L){TNI(this,void 0,void 0,_.g(x.roadblock,yQY),void 0,void 0,L)};
var TNI=function(x,L,D,S,Q,J,Z){x.previousPage!==Z&&x.pendingTooltipPromo&&x.pendingTooltipPromo.cancel();x.previousPage=Z;Q?(x.pendingEnforcementPromo&&x.pendingEnforcementPromo.cancel(),x.pendingEnforcementPromo=new vql(Q,Z),x.pendingEnforcementPromo.enqueue()):J?(x.pendingCommandWrapperPromo=new mh(J,Z),x.pendingCommandWrapperPromo.enqueue()):S?(x.pendingRoadblockPromo&&x.pendingRoadblockPromo.cancel(),x.pendingRoadblockPromo=new k2u(S,Z),x.pendingRoadblockPromo.enqueue()):L?(x.pendingMealbarPromo&&
x.pendingMealbarPromo.cancel(),x.pendingMealbarPromo=new ub5(L,Z),x.pendingMealbarPromo.enqueue()):D&&(x.pendingTooltipPromo&&x.pendingTooltipPromo.cancel(),x.pendingTooltipPromo=new bDI(D,_.tY()),x.pendingTooltipPromo.enqueue())},eps=function(){sd5||(sd5=new FOl);
return sd5};var rDs=!1;var hrX=function(x,L){var D=_.$6("SESSION_INDEX");this.actionToken_=x;this.commonToken_=L;this.sessionIndex_=D},VK$=function(x){var L=_.xe(),D=_.o1("payments.business.integration.bootstrap"),S=_.o1("payments.business.integration"),Q=S.Style.create().withMaterialDesignStyle(),J=S.mashupMode.popup("instrument-manager");
D.asMashupMode(J).usingUserIndex(x.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(Q).inStandaloneContext(S.standaloneContextAuthId.forUserId()).instrumentManager(x.actionToken_,x.commonToken_.length>0?x.commonToken_:void 0,function(Z){var y=Z.instrumentId;y?L.resolve(y):(y=_.o1("payments.business.integration.scenario.InstrumentManager"),L.reject(Z.errorCode&&Z.errorCode===y.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(Z){_.N9(Z);
L.reject("instrumentManagerLoadError")});
return L.promise};var Pm=function(x,L,D){this.payloadName="transactionFlowFailed";this.payload={errorType:x,serializedTransactionFlowLoggingParams:L,isUserDismiss:D===void 0?!1:D}};
_.KK("yt.ypc.shared.YpcTransactionFlowError",Pm);var Yu=function(){return _.er.apply(this,arguments)||this};
_.p(Yu,_.er);Yu.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
Yu.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
Yu.prototype.onErrorMessageDismiss=Yu.prototype.onErrorMessageDismiss;_.A([_.F({readOnly:!0,observer:"errorRendererChanged"}),_.r("design:type",Object)],Yu.prototype,"errorRenderer",void 0);_.A([_.mX("yt-live-chat-error-message-dismiss"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Yu.prototype,"onErrorMessageDismiss",null);_.A([_.RW()],Yu);var RpG=[Yu.prototype];var G2Y;var Cuu;var l6I=new _.Ng("yt-live-chat"),Uru=new Map;Uru.set("timestamp_toggle","show-timestamps");Uru.set("reactions_toggle","allow-reactions");var FM=function(){return _.e.apply(this,arguments)||this};
_.p(FM,_.e);_.K=FM.prototype;_.K.menuItemIdentifierChanged=function(){var x;(x=this.data)!=null&&x.menuItemIdentifier&&(x=Uru.get(this.data.menuItemIdentifier))&&(_.u("enable_lwe_web_mute")?(x=l6I.get(x),this.isToggled=!(x===void 0?!this.data.isToggled:!x)):this.isToggled=l6I.get(x))};
_.K.onFocus=function(){this.toggleButton.focus()};
_.K.onTap=function(){var x=this.data.command;x&&this.componentBehavior.resolveCommand(x)};
_.K.computeText=function(x,L,D){return this.componentBehavior.getSimpleString(x?D:L)};
_.K.computeIcon=function(x,L,D){return(x=x?D:L)&&x.iconType?_.gB(x.iconType):""};
FM.prototype.onTap=FM.prototype.onTap;FM.prototype.onFocus=FM.prototype.onFocus;FM.prototype.menuItemIdentifierChanged=FM.prototype.menuItemIdentifierChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],FM.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],FM.prototype,"componentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],FM.prototype,"data",void 0);
_.A([_.F({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.r("design:type",String)],FM.prototype,"icon",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],FM.prototype,"isToggled",void 0);_.A([_.F1("tp-yt-paper-toggle-button"),_.r("design:type",Object)],FM.prototype,"toggleButton",void 0);_.A([_.bN("data.menuItemIdentifier"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],FM.prototype,"menuItemIdentifierChanged",null);
_.A([_.mX("focus"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],FM.prototype,"onFocus",null);_.A([_.mX("tap"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],FM.prototype,"onTap",null);_.A([_.oW({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],FM);
_.q(FM,"yt-live-chat-toggle-renderer",function(){if(Cuu===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;G2Y===void 0&&(G2Y=document.createElement("template"));var S=G2Y;D.call(L,S.content.cloneNode(!0),x.content.firstChild);Cuu=x}x=Cuu;return x},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var wEl=new _.vx("NAVIGATION_PROGRESS_TOKEN");var BNg={},WOl={},q0g=(WOl[cTX.name]=!0,WOl),sl=function(){var x=_.er.apply(this,arguments)||this;x._noAccessors=!0;x.tabGesturesIsActive=!1;x.actionRouterIsRoot=!0;x.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"};x.pageTitle="";x.titleSuffix="YouTube";x.unseenNotificationCount=
0;x.hasNavigated=!1;x.hasSetScrollTopForNavigation=!1;x.pagePreparer=null;x.zwiebackInitJobId=0;x.dataUpdatePromise=null;x.loadDepsPromise=_.V0();x.hasPendingNavigation=!1;x.pendingPlayerOnResponseReceivedActions=[];return x};
_.p(sl,_.er);sl.prototype.attached=function(){AA3(this);document.addEventListener("yt-navigate-cache",_.p$(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var x=Tl();x.init();x.dispatchElement=this.hostElement};
var AA3=function(x,L){L=L===void 0?0:L;var D=_.yY().resolve(_.ZN(_.np));if(D)$rl(x,D);else{if(L>=5)throw Error("nl");setTimeout(function(){AA3(x,L+1)},0)}},$rl=function(x,L){L.addEventListener("yt-navigate-start",_.p$(x,x.onYtNavigateStart));
L.addEventListener("yt-navigate-finish",_.p$(x,x.onYtNavigateFinish));L.addEventListener("yt-navigate-error",_.p$(x,x.onYtNavigateError));L.addEventListener("yt-page-data-fetched",_.p$(x,x.onYtPageDataFetched))};
_.K=sl.prototype;_.K.detached=function(){var x=_.yY().resolve(_.np);x.removeEventListener("yt-navigate-start",_.p$(this,this.onYtNavigateStart));x.removeEventListener("yt-navigate-finish",_.p$(this,this.onYtNavigateFinish));x.removeEventListener("yt-navigate-error",_.p$(this,this.onYtNavigateError));x.removeEventListener("yt-page-data-fetched",_.p$(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.p$(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.K.setPageOffset=function(x,L){x?_.dg(this.hostElement,"yt-set-page-offset",[x,L]):_.BI(Error("ol"))};
_.K.setPageOffsetForNavigation=function(x,L){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(x,L))};
_.K.onYtNavigateSetPageOffset=function(x,L){this.setPageOffsetForNavigation(L.page,L.offset)};
_.K.getPageOffset=function(){var x=_.jr(this.hostElement).querySelector("#page-manager").getCurrentPage(),L=0;x&&(L=_.dg(this.hostElement,"yt-get-page-offset",[x])[0]);return L};
_.K.onYtHistoryPop=function(x,L){if(_.rO("DISABLE_WARM_LOADS"))x.preventDefault(),window.location.reload();else{var D=_.yY().resolve(_.np);D.hasPendingNavigation()&&x.preventDefault();D.cancelPendingNavigation();_.P$(this.hostElement,"yt-pending-navigation-cancelled");L.errorMsg&&(x=L.errorMsg.split(" - "),L=Error(x[0]),x.length==2&&x[1]&&(_.A7(L,x[1]),_.qy(L)),window.location.reload())}};
_.K.onYtHistoryLoad=function(x,L){var D=this;if(_.rO("DISABLE_WARM_LOADS"))window.location.reload();else{(x=L.endpoint)&&Object.keys(x).length||(x=null);var S=L.historyEntry,Q=_.yY().resolve(_.np),J=_.yY().resolve(_.KX),Z=null;S&&S.rootData&&(Z=S.rootData);var y=Z&&rAg(Z);!Z||y||Z.filler?x?(Q.navigate(x,!0),NNu(this,x)):(L.legacyBorder||y||(L.JSC$30220_savedComponentState==null&&Z==null?_.qy(new _.RZ("Incomplete history entry",L.forward)):_.WI(new _.RZ("Malformed history entry",L.JSC$30220_savedComponentState,
L.forward,Z))),window.location.reload()):(_.wus({isHot:!0}),_.W$({webInfo:{navigationReason:"h"}}),_.ZN0(),_.$T("srt"),_.$T("pdc"),this.cancelPendingTasks(),iD3(this,L.forward,Z),Z.player&&(Z.player.loaded=!1),NNu(this,x),_.lW2(Q,x||{},Z,2,{},!1,L).then(function(){D.setPageOffset(J.getCurrentPage(),S.scrollTop||0)}))}};
_.K.initHistoryManager=function(x){if(!this.hasNavigated){this.hasNavigated=!0;var L=_.jr(this.hostElement).querySelector("#page-manager").getCurrentData();x=isNaN(x)?this.getPageOffset():x;var D=_.yY().resolve(_.np).currentEndpoint;this.replaceState(D,L,x)}};
_.K.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.K.onYtNavigateStart=function(x,L){this.cancelPendingTasks();L.noProgressBar||(x=_.yY().resolve(_.ZN(wEl)))&&x.start();x=this.hasPendingNavigation?null:this.data;var D=_.yY().resolve(_.KX),S,Q,J;_.u("kevlar_use_vimio_behavior")&&!((S=L.endpoint)==null?0:(Q=S.commandMetadata)==null?0:(J=Q.webCommandMetadata)==null?0:J.ignoreNavigation)&&(S=D.getCurrentPage())&&S.disconnectVisibilityRoot();D.prepareForNavigation(L.pageType,L.endpoint);_.u("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.eZ(1,
"pcl"),_.RU(this.pagePreparer,D.preparePage.bind(D,L.pageType,L.endpoint)));S=this.getPageOffset();this.initHistoryManager(S);L.reload||this.hasPendingNavigation?((_.u("web_enable_delay_shorts_sequence_call")||_.u("web_enable_shorts_sequence_cache_fix"))&&L.pageType==="shorts"&&L.reload&&_.MF(this.hostElement,"yt-shorts-reset"),this.replaceState(L.endpoint,x,S)):(x==null?void 0:x.page)==="watch"&&L.pageType==="watch"&&_.u("kevlar_replace_watch_to_watch_history_state")?this.replaceState(L.endpoint,
x,S):(x==null?void 0:x.page)!=="shorts"||L.pageType!=="shorts"||L.endpoint.reelWatchEndpoint.sequenceParams||_.u("short_to_short_back_nav_killswitch")?L.type!="navigate-back"&&L.type!="navigate-forward"&&(L.pageType==="shorts"&&_.MF(this.hostElement,"yt-shorts-reset"),this.saveAndPush(L.url,L.endpoint,x,S)):(_.u("web_enable_delay_shorts_sequence_call")&&(L.endpoint.reelWatchEndpoint.sequenceParams=x==null?void 0:x.cachedSequenceParams,L.endpoint.reelWatchEndpoint.sequenceProvider=x==null?void 0:x.cachedSequenceProvider),
this.replaceState(L.endpoint,x,0));this.hasPendingNavigation=!0};
var f69=function(x){x.hasPendingNavigation=!1;(x=_.yY().resolve(_.ZN(wEl)))&&x.finish()};
sl.prototype.onYtNavigateError=function(x,L){f69(this);x=this.get("endpoint.commandMetadata.webCommandMetadata.url",L);var D=_.xQ(window.location.href);x&&!D.pbjreload&&(L=L.navigationErrorReason||"10",_.u("kevlar_parent_on_pbjreload")&&(D={csn:_.A3()},this.get("data.endpoint.clickTrackingParams")&&(D.itct=this.data.endpoint.clickTrackingParams),_.J_(x,D)),_.x9(_.LH(x,{pbjreload:L})))};
sl.prototype.onYtNavigateCache=function(x,L){var D=this,S=L.url,Q=L.endpoint,J=L.data;x=!!L.miniplayer;L=!!L.skipHistory;if(S&&Q&&J){var Z=this.getPageOffset(),y=this.data||null;L||this.saveAndPush(S,Q,y,Z);S=_.lW2(_.yY().resolve(_.np),Q,J,x?4:3,{},x);x&&S.then(function(){D.dataUpdatePromise&&D.dataUpdatePromise.then(function(){var E=_.yY().resolve(_.KX);D.setPageOffset(E.getCurrentPage(),0)})})}};
sl.prototype.onYtNavigateFinish=function(x,L){var D=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){oqY(D,L.fromHistory)})};
var oqY=function(x,L){f69(x);if(x.pendingPlayerOnResponseReceivedActions){for(var D=_.O(x.pendingPlayerOnResponseReceivedActions),S=D.next();!S.done;S=D.next())_.mA(S.value,x.hostElement);x.pendingPlayerOnResponseReceivedActions=[]}D=_.yY().resolve(_.KX);L||!x.hasNavigated||_.u("web_disable_scroll_on_navigate_finish")||((L=D.getCurrentPage())?L.is==="ytd-shorts"||x.tabGesturesIsActive||x.setPageOffsetForNavigation(L,0):_.qy(Error("pl")));_.xi(function(){_.xi(function(){_.$T("pda")})})};
sl.prototype.onYtNavigate=function(x){if(!x.detail.endpoint){var L=new _.RZ("Error: Missing yt-navigate endpoint from target:",x.target,x.target.nodeName);_.BI(L)}if(L=_.u("cold_missing_history"))L=Tl(),L.init(!1),L=!(L.browserHistory.boundHistoryReplaceState&&L.browserHistory.boundHistoryPushState);if(L){_.Au("DISABLE_WARM_LOADS",!0);L=new _.RZ("Failed to initialize history manager",this.getDebugString());var D=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
D?_.qy(L):_.BI(L)}L=x.detail.endpoint;var S,Q;_.u("debug_forward_web_query_parameters")&&((S=L.commandMetadata)==null?0:(Q=S.webCommandMetadata)==null?0:Q.url)&&(L=JSON.parse(JSON.stringify(L)),L.commandMetadata.webCommandMetadata.url=_.ENs(L.commandMetadata.webCommandMetadata.url,window.location.search));x={type:0,command:L,form:{params:x.detail.params,tempData:x.detail.tempData||{},requestType:x.detail.type,createScreenConfig:x.detail.createScreenConfig,reload:x.detail.reload?x.detail.reload:!1,
requestForm:x.detail}};_.u("kevlar_yt_navigate_command_handler")?(S=_.yY().resolve(_.E2),x.form.skipDefaultElement=!0,S.resolveCommand(L,{form:x.form})):this.handleNavigate(x)};
sl.prototype.handleNavigate=function(x){this.hasSetScrollTopForNavigation=!1;var L=_.yY().resolve(_.np),D=x.form||{};L.navigate(x.command,D.reload,D.params,D.tempData,D.requestType,D.createScreenConfig,D.ignoreConfirmation,D.requestForm)&&NNu(this,x.command,D.tempData)};
sl.prototype.onYtPageDataFetched=function(x,L){try{_.bRR().reset();this.data=L.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.yY().resolve(_.KX).updatePageData(this.data);var D=this.get("playerResponse.onResponseReceivedActions",this.data);D&&(D=a6u(this,D));D&&_.v$(this.hostElement,D,this.hostElement);var S=this.get("playerResponse.responseContext.consistencyTokenJar",
this.data),Q=this.get("response.responseContext.consistencyTokenJar",this.data);if(S||Q){var J=_.Ikf(),Z=(0,_.wk.getValues)(J.tokenJars);S&&J.replace(Z,S);Q&&J.replace(Z,Q)}}catch(y){_.BI(y)}};
var NNu=function(x,L,D){try{x.onYtEndpointChangeHandler(L,D)}catch(S){_.BI(S)}};
_.K=sl.prototype;_.K.onYtEndpointChangeHandler=function(){};
_.K.setPageTitle=function(x){x=(this.pageTitle=x)?x+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+x};
_.K.onYtUpdateTitle=function(x,L){this.setPageTitle(L)};
_.K.setUnseenNotificationCount=function(x){this.unseenNotificationCount=x;this.setPageTitle(this.pageTitle)};
_.K.handleUpdateNotificationsUnseenCountAction=function(x){_.g(x,GMl)&&((x=_.g(x,GMl).unseenCount)?this.setUnseenNotificationCount(x):this.setUnseenNotificationCount(0))};
_.K.handleClearCookieAction=function(x){var L;(x=(L=_.g(x,sku))==null?void 0:L.cookieName)&&_.e$s(x)};
_.K.onYtUpdateUnseenNotificationCount=function(x,L){this.setUnseenNotificationCount(L)};
_.K.loadData=function(x){var L=this;this.loadDepsPromise.then(function(){var D=_.yY().resolve(_.ZN(_.np));D||_.BI(Error("ql"));if(x&&x.response){if(!x.endpoint){var S=_.XY(window.document.location.href)||"/",Q="";if(S==="/"||S.startsWith("/?"))Q="WEB_PAGE_TYPE_BROWSE";x.endpoint={commandMetadata:{webCommandMetadata:{url:S,webPageType:Q,rootVe:3854}}}}_.lW2(D,x.endpoint,x,5,{})}else x.endpoint?D.navigate(x.endpoint):D.navigate(_.fv);_.WW.cancelJob(L.zwiebackInitJobId);L.zwiebackInitJobId=_.WW.addLowPriorityJob(NFG)})};
var Tl=function(){return _.yY().resolve(_.iM)};
sl.prototype.getDebugString=function(){return Tl().getDebugString()};
sl.prototype.getThirdPartyManipulationSuspected=function(){return Tl().getThirdPartyManipulationSuspected()};
sl.prototype.replaceState=function(x,L,D){Tl().saveAndReplace(x,L,D)};
sl.prototype.saveAndPush=function(x,L,D,S){Tl().saveAndPush(x,L,D,S)};
var rAg=function(x){return _.g(x.endpoint,_.L6)||_.g(x.endpoint,_.TF)?!0:!x||isNaN(x.expirationTime)?!1:(0,_.y5)()>x.expirationTime},iD3=function(x,L,D){var S=x.get("response.trackingParams",D),Q=_.qu(),J=_.A3();
if(S&&Q&&J&&(S=x.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",D),!S&&D.rootVe&&(S=D.rootVe),Q=L?"forwardButton":"backButton",L=x.get("playerResponse.topbar.desktopTopbarRenderer."+Q+".buttonRenderer.command.clickTrackingParams",x.data),x=x.get("response.topbar.desktopTopbarRenderer."+Q+".buttonRenderer.command.clickTrackingParams",x.data),L=(x=L||x)?_.CI(x):void 0,x=_.sk(),Q=[_.V0(D)],_.we(x,S,L,{dataPromises:Q,csnToClone:D.csn}),D.graftedVes))for(D=
_.O(D.graftedVes),S=D.next();!S.done;S=D.next())_.B5(x,S.value)};
sl.prototype.onStoreGraftedVeAction=function(x){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(x)):_.qy(Error("rl"))};
var a6u=function(x,L){return L.filter(function(D){for(var S in D)if(q0g[S])return x.pendingPlayerOnResponseReceivedActions.push(D),!0;return!1})};
_.J3.Object.defineProperties(sl.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
sl.prototype.onStoreGraftedVeAction=sl.prototype.onStoreGraftedVeAction;sl.prototype.loadData=sl.prototype.loadData;sl.prototype.onYtUpdateUnseenNotificationCount=sl.prototype.onYtUpdateUnseenNotificationCount;sl.prototype.handleClearCookieAction=sl.prototype.handleClearCookieAction;sl.prototype.handleUpdateNotificationsUnseenCountAction=sl.prototype.handleUpdateNotificationsUnseenCountAction;sl.prototype.setUnseenNotificationCount=sl.prototype.setUnseenNotificationCount;
sl.prototype.onYtUpdateTitle=sl.prototype.onYtUpdateTitle;sl.prototype.setPageTitle=sl.prototype.setPageTitle;sl.prototype.onYtEndpointChangeHandler=sl.prototype.onYtEndpointChangeHandler;sl.prototype.onYtPageDataFetched=sl.prototype.onYtPageDataFetched;sl.prototype.handleNavigate=sl.prototype.handleNavigate;sl.prototype.onYtNavigate=sl.prototype.onYtNavigate;sl.prototype.onYtNavigateFinish=sl.prototype.onYtNavigateFinish;sl.prototype.onYtNavigateCache=sl.prototype.onYtNavigateCache;
sl.prototype.onYtNavigateError=sl.prototype.onYtNavigateError;sl.prototype.onYtNavigateStart=sl.prototype.onYtNavigateStart;sl.prototype.cancelPendingTasks=sl.prototype.cancelPendingTasks;sl.prototype.initHistoryManager=sl.prototype.initHistoryManager;sl.prototype.onYtHistoryLoad=sl.prototype.onYtHistoryLoad;sl.prototype.onYtHistoryPop=sl.prototype.onYtHistoryPop;sl.prototype.onYtNavigateSetPageOffset=sl.prototype.onYtNavigateSetPageOffset;sl.prototype.setPageOffset=sl.prototype.setPageOffset;
_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],sl.prototype,"ytActionHandlerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],sl.prototype,"data",void 0);_.A([_.mX("yt-navigate-set-page-offset"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],sl.prototype,"onYtNavigateSetPageOffset",null);
_.A([_.mX("yt-history-pop"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],sl.prototype,"onYtHistoryPop",null);_.A([_.mX("yt-history-load"),_.r("design:type",Function),_.r("design:paramtypes",[Event,_.x5A]),_.r("design:returntype")],sl.prototype,"onYtHistoryLoad",null);_.A([_.mX("yt-navigate"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],sl.prototype,"onYtNavigate",null);
_.A([_.mX("yt-update-title"),_.r("design:type",Function),_.r("design:paramtypes",[Event,String]),_.r("design:returntype")],sl.prototype,"onYtUpdateTitle",null);_.A([_.mX("yt-update-unseen-notification-count"),_.r("design:type",Function),_.r("design:paramtypes",[Event,Number]),_.r("design:returntype")],sl.prototype,"onYtUpdateUnseenNotificationCount",null);_.A([_.RW()],sl);BNg.YtdAppBehavior=[_.ir.YtActionHandlerBehavior,sl.prototype];var ew=function(){var x=_.er.apply(this,arguments)||this;x._noAccessors=!0;return x};
_.p(ew,_.er);ew.prototype.ready=function(){var x=this;_.jr(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){x.onChange_()})};
ew.prototype.dataChanged_=function(){_.jr(this.hostElement).querySelector("#checkbox").checked=!1};
ew.prototype.onChange_=function(){var x=_.jr(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.MF(this.hostElement,"yt-dismissal-reason-"+x,this.data.feedbackToken)};
ew.prototype.dataChanged_=ew.prototype.dataChanged_;_.A([_.F(),_.r("design:type",Object)],ew.prototype,"data",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ew.prototype,"dataChanged_",null);_.A([_.RW()],ew);var zp5=[ew.prototype];var Re=function(){var x=_.er.apply(this,arguments)||this;x.timeoutJobId=0;x.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return x};
_.p(Re,_.er);Re.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
Re.prototype.startTimeout=function(){var x=this,L=this.data&&this.data.displayDurationSeconds;L&&!this.timeoutJobId&&(this.timeoutJobId=_.TG(_.WW,function(){_.dg(x.hostElement,"yt-close-popup-action",[x.is]);x.timeoutJobId=0},L*1E3))};
Re.prototype.cancelTimeout=function(){_.WW.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
Re.prototype.ytdHatsSurveyBehaviorDataChanged=Re.prototype.ytdHatsSurveyBehaviorDataChanged;_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],Re.prototype,"ytActionHandlerBehavior",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Re.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.A([_.RW()],Re);var XEg=[_.ir.YtActionHandlerBehavior,Re.prototype];var cAG=function(x,L){var D;return((D=x.prefixMapping)==null?0:D[L])?x.prefixMapping[L]:x.SHARED_RENDERERS_.hasOwnProperty(L)?"yt":x.prefix},Gl={DIALOG:{component:"tp-yt-paper-dialog",
properties:{withBackdrop:!0,modern:!0,modal:!1},preventAutonav:!0},FULLSCREEN_OVERLAY:{component:null,properties:{withBackdrop:!0}},DROPDOWN:{component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0},HINT:{component:"tp-yt-iron-dropdown",properties:{allowOutsideScroll:!0,dynamicAlign:!1,horizontalAlign:"center",noOverlap:!0,scrollAction:"refit",verticalAlign:"bottom",
verticalOffset:15,withBackdrop:!1},positionalProperties:{OPEN_POPUP_POSITION_TOP:{horizontalAlign:"center",horizontalOffset:0,verticalAlign:"bottom",verticalOffset:15},OPEN_POPUP_POSITION_TOPLEFT:{horizontalAlign:"right",horizontalOffset:-12,shiftedHorizontalOffset:24,verticalAlign:"bottom",verticalOffset:15},OPEN_POPUP_POSITION_TOPRIGHT:{horizontalAlign:"left",horizontalOffset:-12,shiftedHorizontalOffset:24,verticalAlign:"bottom",verticalOffset:15},OPEN_POPUP_POSITION_LEFT:{horizontalAlign:"right",
horizontalOffset:12,verticalAlign:"middle",verticalOffset:0},OPEN_POPUP_POSITION_RIGHT:{horizontalAlign:"left",horizontalOffset:12,verticalAlign:"middle",verticalOffset:0},OPEN_POPUP_POSITION_BOTTOM:{horizontalAlign:"center",horizontalOffset:0,verticalAlign:"top",verticalOffset:12},OPEN_POPUP_POSITION_BOTTOMLEFT:{horizontalAlign:"right",horizontalOffset:12,shiftedHorizontalOffset:24,verticalAlign:"top",verticalOffset:12},OPEN_POPUP_POSITION_BOTTOMRIGHT:{horizontalAlign:"left",horizontalOffset:-12,
shiftedHorizontalOffset:24,verticalAlign:"top",verticalOffset:12}},forceCloseOnOutsideClick:!0,forceFocus:!0,slotName:"dropdown-content"},HINT_PERSISTENT:{component:"tp-yt-iron-dropdown",properties:{allowOutsideScroll:!0,dynamicAlign:!1,horizontalAlign:"center",noOverlap:!0,scrollAction:"refit",verticalAlign:"bottom",verticalOffset:15,withBackdrop:!1,noAutoFocus:!0},positionalProperties:{OPEN_POPUP_POSITION_TOP:{horizontalAlign:"center",horizontalOffset:0,verticalAlign:"bottom",verticalOffset:15},
OPEN_POPUP_POSITION_TOPLEFT:{horizontalAlign:"right",horizontalOffset:-12,shiftedHorizontalOffset:24,verticalAlign:"bottom",verticalOffset:15},OPEN_POPUP_POSITION_TOPRIGHT:{horizontalAlign:"left",horizontalOffset:-12,shiftedHorizontalOffset:24,verticalAlign:"bottom",verticalOffset:15},OPEN_POPUP_POSITION_LEFT:{horizontalAlign:"right",horizontalOffset:12,verticalAlign:"middle",verticalOffset:0},OPEN_POPUP_POSITION_RIGHT:{horizontalAlign:"left",horizontalOffset:12,verticalAlign:"middle",verticalOffset:0},
OPEN_POPUP_POSITION_BOTTOM:{horizontalAlign:"center",horizontalOffset:0,verticalAlign:"top",verticalOffset:12},OPEN_POPUP_POSITION_BOTTOMLEFT:{horizontalAlign:"right",horizontalOffset:12,shiftedHorizontalOffset:24,verticalAlign:"top",verticalOffset:12},OPEN_POPUP_POSITION_BOTTOMRIGHT:{horizontalAlign:"left",horizontalOffset:-12,shiftedHorizontalOffset:24,verticalAlign:"top",verticalOffset:12}},slotName:"dropdown-content"},LOCKED_OVERLAY_DIALOG:{component:"tp-yt-paper-dialog",properties:{restoreFocusOnClose:!0,
scrollAction:"lock",withBackdrop:!0},preventAutonav:!0}};Gl.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.u("kevlar_mealbar_above_player"),modern:_.u("web_modern_dialogs"),noAutoFocus:!0,noCancelOnOutsideClick:!0,withBackdrop:!1,restoreFocusOnClose:!0},styles:{position:"fixed",top:"auto",left:"0",right:"auto",bottom:"0",margin:"16px"},rtlStyles:{position:"fixed",top:"auto",right:"0",left:"auto",bottom:"0",margin:"16px"}};
Gl.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};Gl.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};Gl.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
Gl.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)"}};
Gl.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};
Gl.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};
Gl.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};
Gl.CONTEXTUAL_SHEET={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1,avoidOuterEdge:!0},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0};Gl.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"}};
Gl.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};Gl.TOAST={component:null,properties:{}};var nql=new function(x,L,D){this.supportedPopups=x;this.navigationEndpointPopupMap=L;this.popupTypeMap=D;this.supportedPopups=x;this.navigationEndpointPopupMap=L;this.popupTypeMap=D}({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:_.u("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"}),tg9=new function(){this.prefix="ytd";this.prefixMapping=void 0;this.SHARED_RENDERERS_=
{aboutThisAdRenderer:!0,bubbleHintRenderer:!0,confirmDialogRenderer:!0,fancyDismissibleDialogRenderer:!0,mealbarPromoRenderer:!0,notificationActionRenderer:!0,reportDetailsFormRenderer:!0,reportFormModalRenderer:!0,sharingEmbedRenderer:!0,sharingRenderer:!0,showActionDialogRenderer:!0,sortFilterSubMenuPopupRenderer:!0,tooltipRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,upsellDialogRenderer:!0,ypcOffersModalRenderer:!0,
ypcUpgradeDialogRenderer:!0,loadingRenderer:!0,sheetViewModel:!0,miniAppGameInfoDialogViewModel:!0,profileCardViewModel:!0,genAiFeedbackFormViewModel:!0,dialogViewModel:!0,gulpTriggeringDialogViewModel:!0,imageEditorRenderer:!0,storiesViewerViewModel:!0};this.JSC$19985_popupConfig=Gl;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 xMG=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.ZQ.getInstance()},Co=function(x,L){var D=x.pageNameToElement.get(L);
if(!D){switch(L){case "watch":var S=_.u("web_watch_force_learning_journey_for_testing")?_.TZ("ytd-watch-learning-journey"):_.u("kevlar_watch_fixie")?_.TZ("ytd-watch-fixie"):_.u("kevlar_watch_grid")?_.TZ("ytd-watch-grid"):_.TZ("ytd-watch-flexy");break;case "learning_journey_watch":S=_.TZ("ytd-watch-learning-journey");break;case "shorts":S=_.TZ("ytd-shorts");break;case "search":S=_.TZ("ytd-search");break;case "channel":S=_.TZ("ytd-browse");S.pageSubtype="channels";break;case "trending":S=_.TZ("ytd-browse");
S.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":S=
_.TZ("ytd-browse");S.pageSubtype=L;break;case "browse":S=_.TZ("ytd-browse");break;default:_.qy(new _.RZ("Error getting page element for type",L))}D=S;x.pageNameToElement.set(L,D)}return D};
xMG.prototype.preparePage=function(x,L,D){D&&(x=_.pB(D)||x);if(x!=="watch"&&x!=="learning_journey_watch"){var S=this.elementPoolPopulator,Q=x;Q!=S.targetPage_&&S.pendingPages_.indexOf(Q)>-1&&(S.targetPage_&&(S.pendingPages_.unshift(S.targetPage_),S.abort()),hE3(S,Q),_.X3_(S,Q))}if((S=Co(this,x))||!_.g(D,_.oR)){S.isAttached||S===L||(S.hidden=!0);if(!S.data&&(x!=="watch"&&x!=="learning_journey_watch"||!_.u("swatcheroo_page_pool_dont_provide_filler_data"))){var J;if(x=(J=_.$6("FILLER_DATA",{})[x])==
null?void 0:J.response)S.data=x}return S}};var Lxq=function(x){this.JSC$32144_clientRoot=x;this.playlistHandlerActionMap={"yt-add-to-playlist-command":tn$,"yt-end-playlist-command":xbW,"yt-recover-playlist-command":DbW,"yt-refresh-playlist-command":JLu,"yt-playlist-remove-videos-action":Svs};_.cI(_.aR.getInstance(),this.playlistHandlerActionMap,this.JSC$32144_clientRoot);sMX()},DM$;var lI=function(x,L,D){this.apiKey=x;this.endpoint=L;this.confidenceThreshold=D===void 0?.5:D;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=L==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||L==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
L==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||L==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new mV3};
_.K=lI.prototype;
_.K.start=function(x){if(this.state===0)if(this.isOnline()){x.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=x.supportsHttpHeadersOverwriteParam);x.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=x.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.A_("voice_assistant");_.rg("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=x.languageCode||"en-US";this.supportsCrossDomainXhr=x.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=x.youtubeAssistantRequest||null;this.listeningHandler=x.listeningHandler||this.listeningHandler;this.audioDetectedHandler=x.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=x.stopHandler||this.stopHandler;this.completeHandler=x.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=x.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=x.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
x.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=x.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=x.accessToken;this.additionalHeaders=x.additionalHeaders||{};var L;this.prefetchResponseTimeoutMs=(L=x.prefetchResponseTimeoutMs)!=null?L:this.prefetchResponseTimeoutMs;S_s(this);this.startAudio();QYl(this)}else this.errorHandler("OFFLINE")};
_.K.stop=function(x){var L=x===void 0?{}:x;x=L.logCancel===void 0?!0:L.logCancel;var D=L.logMicClosed===void 0?!0:L.logMicClosed;var S=L.handleError===void 0?!0:L.handleError;L=L.handleStop===void 0?!0:L.handleStop;this.state!==0&&(x&&Ul("voz_cx"),wv(this,{logMicClosed:D,handleStop:L}),S&&this.errorHandler("ABORTED"))};
_.K.getState=function(){return this.state};
_.K.isSupported=function(){return!0};
_.K.stopAudio=function(x){(x===void 0||x)&&Ul("voz_mf")};
_.K.startAudio=function(){Ul("voz_vp");return _.V0(null)};
var JeY=function(x,L){x.channelOpen&&(x.state!==2&&(x.state=2,Ul("voz_ss"),x.listeningHandler()),L=new Uint8Array(L),L='{ "audioIn": "'+_.Gg(L)+'" }',x.channel.send(L))},wv=function(x,L){var D=L===void 0?{}:L;
L=D.logMicClosed===void 0?!0:D.logMicClosed;D=D.handleStop===void 0?!0:D.handleStop;x.vozEndOfDataTimeout>-1&&(clearTimeout(x.vozEndOfDataTimeout),x.vozEndOfDataTimeout=-1);KxG(x);x.stopAudio(L);x.channel&&(x.channelOpen=!1,x.manuallyClosedChannel=!0,x.channel.close(),x.channel=void 0);x.transcribedSpeechResults=[];x.state=0;D&&x.stopHandler()},S_s=function(x){var L={httpHeadersOverwriteParam:x.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},x.additionalHeaders,x.accessToken&&x.isUsingVoz?{Authorization:"Bearer "+x.accessToken}:{"x-goog-api-key":x.apiKey}),supportsCrossDomainXhr:x.supportsCrossDomainXhr};x.channel=new fk(x.endpoint,L);x.channel.open();_.Uk(x.channel,"w",function(){var D=x.channel,S=D.send,Q=x.isUsingVoz?"PLACEHOLDER":"example";Q={config:{dialogStateIn:{languageCode:x.languageCode},deviceConfig:{deviceId:Q,deviceModelId:Q},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!x.isUsingVoz)Q.config.requestType=4;else if(x.isUsingVoz&&x.youtubeAssistantRequest){var J=JSON.stringify(x.youtubeAssistantRequest);Q.config.internalIn={youtubeAssistantS3InputJson:J}}S.call(D,Q);x.channelOpen=!0;x.manuallyClosedChannel=!1});
_.Uk(x.channel,"x",function(){x.manuallyClosedChannel||(x.channelOpen=!1,x.channel=void 0,wv(x))});
_.Uk(x.channel,"z",function(D){if(D.data){KxG(x);for(var S=0;S<D.data.length;S++){var Q=x,J=D.data[S],Z=J.speechResults;if(Z)a:{var y=[];J=[];var E=!1;Z=_.O(Z);for(var P=Z.next();!P.done;P=Z.next()){P=P.value;if(P.noSpeech){wv(Q);Q.errorHandler("NO_SPEECH");break a}P.transcript!==void 0&&P.stability!==void 0&&(P.stability<Q.confidenceThreshold&&(E=!0),E?J.push(P.transcript):y.push(P.transcript))}if(y.length!==0||J.length!==0)y=y.join(" "),J=J.join(" "),Q.receivedEndOfUtterance&&!Q.isUsingVoz?Q.isUsingVoz||
Q.completeHandler([y,J]):(E=Q,Z=y,P=J,Ul("voz_sf"),E.transcriptionUpdateHandler(Z,P),E.transcribedSpeechResults=[Z,P]),Q.receivedEndOfUtterance&&(Ul("voz_eou"),Q.transcriptionCompleteHandler([y,J]),Q.isUsingVoz&&(Q.prefetchResponseTimeoutMs===0?wv(Q,{logMicClosed:!1,handleStop:!0}):Q.prefetchResponseTimeoutMs>0&&Oal(Q)))}else Q.isUsingVoz&&(J==null?0:J.internalOut)?(J=JSON.parse(J.internalOut.youtubeAssistantS3OutputJson),J.userHasOptedInToVaa||J.vaaConsent?Q.vaaConsentUpdateHandler(!!J.userHasOptedInToVaa,
!!J.vaaConsent):(Za$(Q),J&&(y=Q.transcribedSpeechResults,Ul("voz_rqf"),Q.completeHandler(y,J)))):J.eventType==="END_OF_UTTERANCE"?Q.receivedEndOfUtterance=!0:(Ul("voz_err"),Q.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.qy(Error("sl")))}}});
_.Uk(x.channel,"y",function(D){wv(x);switch(D.status){case 1:D="WEBCHANNEL_NETWORK_ERROR";break;case 2:D="WEBCHANNEL_SERVER_ERROR";break;default:D="WEBCHANNEL_UNKNOWN_ERROR"}x.errorHandler(D);x.logError(Error(D))})};
lI.prototype.logError=function(x){_.BI(x)};
lI.prototype.isOnline=function(){return!0};
var Oal=function(x){Za$(x);x.prefetchResponseSetTimeoutId=setTimeout(function(){wv(x,{logMicClosed:!1,handleStop:!0})},x.prefetchResponseTimeoutMs)},Za$=function(x){x.prefetchResponseSetTimeoutId>-1&&(clearTimeout(x.prefetchResponseSetTimeoutId),x.prefetchResponseSetTimeoutId=-1)},QYl=function(x){KxG(x);
x.noResponseReceivedTimeout=window.setTimeout(function(){wv(x);x.errorHandler("NO_SPEECH")},11E3)},KxG=function(x){x.noResponseReceivedTimeout>-1&&(window.clearTimeout(x.noResponseReceivedTimeout),x.noResponseReceivedTimeout=-1)},Ul=function(x){_.$T(x,void 0,"voice_assistant")};var BK=function(){lI.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.p(BK,lI);BK.prototype.isSupported=function(){return KF$()};
BK.prototype.startAudio=function(){var x=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.Bp(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(S){ye5(x,S)};
this.processor.connect(this.audioContext.destination);var L=function(S){x.stream=S;if(!x.audioContext)return _.V0(null);S=x.audioContext.createMediaStreamSource(S);x.processor&&S.connect(x.processor);return _.V0(null)},D={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?L(this.stream):(D=navigator.mediaDevices.getUserMedia(D))?D.then(L).catch(function(S){wv(x);S.name&&S.name==="NotAllowedError"?x.errorHandler("NO_MICROPHONE_PERMISSION"):(x.errorHandler("AUDIO_ERROR"),x.logError(S));return _.Bp(null)}):(wv(this),this.errorHandler("AUDIO_ERROR"),_.qy(Error("tl")));
return lI.prototype.startAudio.call(this)};
BK.prototype.stopAudio=function(x){x=x===void 0?!0:x;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(L){L.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;lI.prototype.stopAudio.call(this,x)};
BK.prototype.isOnline=function(){return navigator.onLine};
var ye5=function(x,L){if(x.audioContext)if(window.OfflineAudioContext){var D=x.audioContext.sampleRate,S=L.inputBuffer.getChannelData(0);L=new window.OfflineAudioContext(1,S.length,16E3);for(var Q=L.createBuffer(1,S.length,D),J=Q.getChannelData(0),Z=0,y=0;y<S.length;y++)J[y]=S[y],Z+=J[y]*J[y];!x.audioDetected&&Math.sqrt(Z/S.length)>.01&&(x.audioDetected=!0,x.audioDetectedHandler());S=L.createBufferSource();S.buffer=Q;S.connect(L.destination);S.start(0);L.oncomplete=function(E){E=E.renderedBuffer.getChannelData(0);
for(var P=Math.floor(16384E3/D),v=new Int16Array(P),V=0;V<P;++V)v[V]=Math.max(-1,Math.min(1,E[V]))*32767;JeY(x,v.buffer)};
L.startRendering()}else IOu(x,L)},IOu=function(x,L){var D=x.audioContext.sampleRate,S=L.inputBuffer.getChannelData(0),Q=Math.floor((D+8E3)/16E3);
D=S.length/Q;L=new Float32Array(D);for(var J=0;J<D;++J)L[J]=S[J*Q];S=new Int16Array(D);for(Q=0;Q<D;++Q)S[Q]=Math.max(-1,Math.min(1,L[Q]))*32767;JeY(x,S.buffer)};var EAI={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var MIq=function(){this.JSC$20050_audioEnabled=!0;this.audioFeedbackHolder={}};
MIq.prototype.isPlaying=function(x){return x.currentTime>0&&!x.paused&&!x.ended&&x.readyState>2};
var dMl=function(x){for(var L=_.O(Object.values(EAI)),D=L.next();!D.done;D=L.next())D=D.value,x.audioFeedbackHolder[D]=new Audio,x.audioFeedbackHolder[D].src="/s/search/audio/"+D+".mp3",x.audioFeedbackHolder[D].load()},WK=function(x,L){if(x.JSC$20050_audioEnabled!==!1&&L in x.audioFeedbackHolder){for(var D=_.O(Object.values(x.audioFeedbackHolder)),S=D.next();!S.done;S=D.next())S=S.value,x.isPlaying(S)&&S.pause();
x.audioFeedbackHolder[L].currentTime=0;x.audioFeedbackHolder[L].play().catch(function(){})}};var P0l=function(x,L){var D=this;this.store=x;this.service=L;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){D.setState("offline");D.stop()};
this.audioPlayer=new MIq;var S;(S=this.audioPlayer)==null||dMl(S)};
_.K=P0l.prototype;_.K.getService=function(){return this.service};
_.K.isEnabled=function(){return!!this.service};
_.K.isSupported=function(){var x;return(x=this.service)==null?void 0:x.isSupported()};
_.K.start=function(){var x=this,L,D,S,Q,J,Z,y,E,P,v,V,h,H;return _.I(function(k){switch(k.nextAddress){case 1:x.store.dispatch(BTl("",""));if(!navigator.onLine)return x.setState("offline"),k.return();window.addEventListener("offline",x.handleOfflineEvent);x.stream=null;if(!x.permissionsSupported){k.jumpTo(2);break}_.HH(k,3);return k.yield(jYY(x),5);case 5:L=k.yieldResult;if(!L)return(D=x.audioPlayer)==null||WK(D,"failure"),k.return();x.service.stream=x.stream;x.setState("listening");_.nH(k,2);break;
case 3:_.mW(k),x.permissionsSupported=!1;case 2:S={context:_.wqs(_.ED())},S.youtubeAssistantParams={searchParams:{inlineSearchResponse:x.enableInlineSearchResponse}},Q=function(T,G){x.store.dispatch(W8$("transcribing"));x.store.dispatch(BTl(T,G))},J=function(){var T;
(T=x.audioPlayer)==null||WK(T,"open");x.setState("listening")},Z=function(){x.setState("transcribing")},y=function(T){x.setErrorState(T)},E=function(T,G){var U;
(U=x.audioPlayer)==null||WK(U,"success");G&&(_.u("kevlar_voice_search_inline_search")&&(x.responseProcessor=_.yY().resolve(_.$2G),x.responseProcessor&&(U=G.navigationAction,T=G.prefetchedSearchResponse,U&&T&&(U=(new _.zl$).JSC$13126_getStoreKey(U),_.zn(x.responseProcessor,T,U)))),x.JSC$20068_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",G))},P=function(){window.removeEventListener("offline",x.handleOfflineEvent)},v=_.fvG(!1),V=v.Authorization!=null,h=x.enableFirstPartyAuth||
x.enableFPAForSignedInUsers&&V?v:{"X-Goog-Visitor-Id":v["X-Goog-Visitor-Id"]},H={completeHandler:E,
errorHandler:y,listeningHandler:J,audioDetectedHandler:Z,stopHandler:P,transcriptionUpdateHandler:Q,youtubeAssistantRequest:S,languageCode:vAW(),additionalHeaders:h,supportsCrossDomainXhr:x.enableFirstPartyAuth||x.enableFPAForSignedInUsers&&V,supportsHttpHeadersOverwriteParam:!x.disableHttpHeadersOverwrite},x.service.start(H),_.Y2(k)}})};
_.K.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.K.reset=function(){this.store.dispatch(_.MU({type:"RESET_VOICE_SEARCH_STATE"}))};
_.K.setState=function(x){this.store.dispatch(W8$(x))};
_.K.setErrorState=function(x){switch(x){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var L;(L=this.audioPlayer)==null||WK(L,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)jYY(this);else{var D;(D=this.audioPlayer)==null||WK(D,"failure");this.setState("permission-denied")}break;case "ABORTED":var S;(S=this.audioPlayer)==null||WK(S,"no_input");break;default:var Q;(Q=this.audioPlayer)==
null||WK(Q,"no_input");this.setState("timeout")}};
var jYY=function(x){var L,D;return _.I(function(S){switch(S.nextAddress){case 1:return S.yield(navigator.permissions.query({name:"microphone"}),2);case 2:L=S.yieldResult;if(L.state==="granted")return S.return(!0);if(L.state==="denied")return x.setState("permission-denied"),S.return(!1);x.setState("permission");D={audio:{sampleSize:16,channelCount:1},video:!1};_.HH(S,3);return S.yield(navigator.mediaDevices.getUserMedia(D),5);case 5:return x.stream=S.yieldResult,S.return(!0);case 3:return _.mW(S),
x.setState("permission-denied"),S.return(!1)}})},vAW=function(){var x=_.$6("INNERTUBE_CONTEXT_HL"),L=_.$6("INNERTUBE_CONTEXT_GL");
return x.indexOf("-")>-1?x:x+"-"+L};var VIW=function(x,L,D){P0l.call(this,L,D);this.JSC$20068_actionRouter=x;this.enableInlineSearchResponse=_.u("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.u("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.u("kevlar_voice_search_enable_fpa_signedin_users")},hfI;
_.p(VIW,P0l);
var Haq=function(){if(!hfI){var x="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.u("kevlar_voice_search_auth_enabled")||_.u("kevlar_voice_search_use_yt_endpoint")?x="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.u("kevlar_voice_search_use_fp_endpoint")&&(x="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");hfI=
new VIW(_.aR.getInstance(),_.Jd(),new BK(_.$6("VOZ_API_KEY"),x,.5))}return hfI};var uJ$=function(x){this.JSC$20072_clientRoot=x;this.autonavPauseReasons={scroll:!1,inputBoxFocus:!1,overlayOpen:!1,guideOpen:!1,backgroundAndMute:!1,requestedByPlayer:!1,longIdle:!1,youthereLactExperiment:!1,userEngagement:!1};this.autonavPauseActionMap={"ytd-log-youthere-nav":this.onYtEndpointChanged.bind(this),"yt-autonav-pause-user-engagement":this.onYtAutonavPauseUserEngagement.bind(this),"yt-user-activity":this.onYtUserActivity.bind(this),"yt-get-autonav-pause-debug-state":this.onYtGetAutonavPauseDebugState.bind(this)};
this.userEngagementCsn=null;this.eventListeners=new Map;this.eventListeners.set(document,new Map([["visibilitychange",this.onYtAutonavVisibilityChanged.bind(this)]]));this.eventListeners.set(this.JSC$20072_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)]]));x=_.O(this.eventListeners);for(var L=x.next();!L.done;L=x.next()){var D=_.O(L.value);L=D.next().value;D=D.next().value;D=_.O(D);for(var S=D.next();!S.done;S=D.next()){var Q=
_.O(S.value);S=Q.next().value;Q=Q.next().value;L.addEventListener(S,Q)}}_.cI(_.aR.getInstance(),this.autonavPauseActionMap,this.JSC$20072_clientRoot)},gAq,kWY=function(x){return _.u("kevlar_autonav_popup_filtering")?(x=_.K$(x))?x.hasAttribute("prevent-autonav"):!0:!0};
_.K=uJ$.prototype;_.K.onIronOverlayOpened=function(x){kWY(x)&&(this.autonavPauseReasons.overlayOpen=!0,q8(this))};
_.K.onIronOverlayClosed=function(x){kWY(x)&&(this.autonavPauseReasons.overlayOpen=!1,q8(this))};
_.K.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;q8(this)};
_.K.onYtAutonavPauseBlur=function(){var x=this;_.WW.addJob(function(){x.isInBackground()||(x.autonavPauseReasons.inputBoxFocus=!1,q8(x))},8,0)};
_.K.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;q8(this)};
_.K.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;q8(this)};
_.K.onYtAutonavPauseScroll=function(){var x=_.yY().resolve(_.KX);x.isOnWatch()&&(x=x.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=x.getBoundingClientRect().top<-200,q8(this))};
_.K.onYtAutonavPauseUserEngagement=function(x){var L=this;if(_.u("user_engagement_enable_autoplay_pause_feature")){var D=Number(x.lowEngagementThresholdMs);isNaN(D)||D<=0||x.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.a3("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.yY().resolve(_.Rl),_.Z8()<D?_.TG(_.WW,function(){_.a3("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.mF$()?(this.userEngagementCsn=_.A3(),_.TG(_.WW,function(){_.a3("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
L.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,q8(this)):_.a3("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.XXh(Error("ul`"+JSON.stringify(x)))};
_.K.onYtAutonavPausePlayer=function(x){this.autonavPauseReasons.requestedByPlayer=!!x.detail;q8(this)};
_.K.onYtAutonavVisibilityChanged=function(){var x=this,L,D,S;return _.I(function(Q){if(Q.nextAddress==1)return(L=_.Zs())?Q.yield(L.getPlayerPromise(),2):Q.return();D=Q.yieldResult;S=D.isMuted()||D.getVolume()===0;x.autonavPauseReasons.backgroundAndMute=x.isInBackground()&&S;q8(x);_.Y2(Q)})};
_.K.onYtAutonavPausePlayerEnded=function(){_.yY().resolve(_.Rl);var x=144E5;_.u("user_engagement_enable_autoplay_pause_feature")||_.u("is_part_of_any_user_engagement_experiment")||(x=45E5);this.autonavPauseReasons.longIdle=_.Z8()>x;pS3(this);q8(this)};
_.K.onYtUserActivity=function(){var x=this;this.autonavPauseReasons.userEngagement&&(_.TG(_.WW,function(){_.a3("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",x.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,q8(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.TG(_.WW,function(){_.a3("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",x.userEngagementCsn);_.wz()}),this.autonavPauseReasons.youthereLactExperiment=!1,q8(this));
this.autonavPauseReasons.longIdle&&!_.u("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,q8(this))};
_.K.isInBackground=function(){var x=window.document.visibilityState;return!(!x||x==="visible")};
var q8=function(x){for(var L=!1,D=_.O(Object.values(x.autonavPauseReasons)),S=D.next();!S.done;S=D.next())S=S.value,L=L||S;L?_.Yh.getInstance().pause(x.autonavPauseReasons):(x=_.Yh.getInstance(),x.autonavState_==3?(x.setState(2,!1,!1),x.autonavPauseReason_=void 0):x.autonavState_==1&&(x.disabledAutonavPauseReason_=void 0))},pS3=function(x){var L=!1;
if(_.u("enable_autoplay_pause_by_lact")){_.yY().resolve(_.Rl);L=_.dE("autoplay_pause_by_lact_sec")*1E3;var D=_.dE("autoplay_pause_by_lact_sampling_fraction");(L=_.Z8()>=L&&Math.random()<D)&&!_.mF$()&&(_.TG(_.WW,function(){_.a3("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),L=!1)}L!==x.autonavPauseReasons.youthereLactExperiment&&(x.autonavPauseReasons.youthereLactExperiment=L)&&(x.userEngagementCsn=_.A3(),_.TG(_.WW,function(){_.a3("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",x.userEngagementCsn)}));
x.autonavPauseReasons.userEngagement&&_.TG(_.WW,function(){_.a3("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",x.userEngagementCsn)})};
uJ$.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.a3("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.wz(),this.autonavPauseReasons.youthereLactExperiment=!1,q8(this));this.autonavPauseReasons.userEngagement&&(_.a3("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,q8(this))};
uJ$.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var mM5=_.aB.persistentPanelVisibleSelector,AZ=function(){var x=_.e.apply(this,arguments)||this;x.miniGuideVisible=!1;x.guideOpened=_.u("disable_initial_guide_state_fix")?!1:x.canFitPersistentGuide(x.initialBodyClientWidth);x.guideUserStateOpened=x.getInitialGuideUserStateOpened();x.isFullscreenShorts=!1;x.miniGuideWidthThreshold=_.dE("kevlar_mini_guide_width_threshold",791);x.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch /contribute-notes".split(" ");
x.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved). ^/contribute-notes(/|$)".split(" ");x.persistentGuideBlockedPagePathRegex=new RegExp(x.persistentGuideBlockedPagesPatterns.join("|"));x.animationTransitionDuration=0;x.lateDataResolver=_.xe();x.initialGuideDataFetchFailed=!1;x.initialLoad=!0;x.guideRenderers=new Set;x.isMouseOverGuide=!1;x.sessionUserManuallyExpandedGuideState=
!1;x.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-mini-guide-mouseentered":"handleMiniGuideMouseEnter","yt-guide-mouseleaved":"handleGuideMouseLeave"};return x};
_.p(AZ,_.e);_.K=AZ.prototype;_.K.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.K.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.K.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.K.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.K.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.K.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.K.ready=function(){_.yY().addProvider({provide:_.vV,useValue:this.hostElement})};
_.K.attached=function(){var x=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.p$(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.p$(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.p$(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.p$(this,this.onYtGuideShow));_.So(this,function(){x.animationTransitionDuration=200})};
_.K.detached=function(){document.removeEventListener("yt-navigate-finish",_.p$(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.p$(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.p$(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.p$(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.p$(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.p$(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.p$(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.K.getData=function(){return this.data};
_.K.load=function(){var x=this,L,D,S,Q;return _.I(function(J){switch(J.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=x.lateDataResolver.resolve.bind(x),J.return(x.lateDataResolver.promise);if(window.ytInitialGuideData)return L=_.xe(),L.resolve(window.ytInitialGuideData),J.return(L.promise);S=!1;_.HH(J,2);return J.yield(x.fetchGuideData(),4);case 4:D=J.yieldResult;_.nH(J,3);break;case 2:Q=_.mW(J),Q.message==="Returned error"&&(S=
!0);case 3:if(D)return J.return(D);x.onYtGuideClose();S||(x.initialGuideDataFetchFailed=!0);return J.return(x.lateDataResolver.promise)}})};
_.K.fetchGuideData=function(){var x=this,L,D,S,Q,J,Z,y;return _.I(function(E){if(E.nextAddress==1)return L=_.yY(),x.guidePromise||(D=L.resolve(_.i1),x.guidePromise=_.tD(D,NVY)),E.yield(x.guidePromise,2);if(E.nextAddress!=3)return S=E.yieldResult,Q=L.resolve(_.W3),E.yield(Q(),3);(J=E.yieldResult)&&((Z=S)==null?void 0:(y=Z.responseContext)==null?void 0:y.maxAgeSeconds)!==0&&J.put("service:guide:fallback",new _.qX({innertubeResponse:S}));return E.return(S)})};
_.K.initializeGuideDataIfEmpty=function(){var x=this,L,D;return _.I(function(S){if(S.nextAddress==1){if(!x.initialGuideDataFetchFailed||x.data)return S.return();_.HH(S,2);return S.yield(x.fetchGuideData(),4)}if(S.nextAddress!=2)return(L=S.yieldResult)&&x.lateDataResolver.resolve(L),_.nH(S,0);D=_.mW(S);_.qy(D);_.Y2(S)})};
_.K.initializeGuideData=function(){var x=this,L;return _.I(function(D){switch(D.nextAddress){case 1:return _.PF(Vml(),{mainAppWeb:_.L$()}),_.HH(D,2),D.yield(x.load(),4);case 4:x.data=D.yieldResult;_.nH(D,3);break;case 2:_.mW(D),_.jK(Vml(),"FAILURE");case 3:L=x.data&&x.data.items&&x.data.items.length>0?"SUCCESS":"FAILURE",_.jK(Vml(),L),_.Y2(D)}})};
_.K.setGuideData=function(x){var L=this,D,S;return _.I(function(Q){if(Q.nextAddress==1)return L.disabled?Q.return():L.data?(x.data=L.data,L.guideRenderers.add(x),Q.return()):Q.yield(L.initializeGuideData(),2);L.graftGuideToPage();D=_.rO("IS_HOMEPAGE_COLD")?"eop":void 0;_.u("disable_element_pool_populator")?L.setGuideDataAfterInit(x):(S=new _.eZ(1,D),_.RU(S,L.setGuideDataAfterInit.bind(L,x)));_.Y2(Q)})};
_.K.setGuideDataAfterInit=function(x){x.data=this.data;x.markDirty();this.guideRenderers.add(x);_.xi(function(){_.$T("gle")});
_.So(this,function(){_.$T("gpe")})};
_.K.graftGuideToPage=function(){if(this.data){var x=this.data&&this.data.trackingParams;x&&(x=_.CI(x),_.W5(_.sk(),x))}};
_.K.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.p$(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.K.onDrawerOpenedChanged=function(x,L){!L.value&&this.guideOpened&&(this.guideOpened=!1)};
_.K.onYtGuideToggle=function(x){var L=this.guideOpened;this.guideOpened=!L;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var D=_.FI();_.s8(0,109,!this.guideUserStateOpened);this.sessionUserManuallyExpandedGuideState=this.guideUserStateOpened;D.save()}this.updateGuideDrawerElementState();if(this.guideElement){var S;this.guideOpened&&((S=x.detail)==null?0:S.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.p$(this,this.onAppDrawerTransitionedFromKeyInput));
this.guideElement.addEventListener("app-drawer-transitioned",_.p$(this,this.onAppDrawerTransitioned))}L||this.initializeGuideDataIfEmpty()};
_.K.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.p$(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.LV(this.guideElement)};
_.K.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.p$(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(UCl(this.guideOpened))};
_.K.guidePersistentAndVisibleChanged=function(){_.P$(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.K.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.MU({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.K.miniGuideVisibleChanged=function(){_.P$(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.K.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(UCl(this.guideOpened)),this.initialLoad=!1);_.P$(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.K.activeEndpointChanged=function(){_.P$(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.K.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.K.onYtGuideShow=function(){this.forceMiniGuideClose=!1;this.guidePersistent=this.canFitPersistentGuide(this.cachedClientWidth);this.guideUserStateOpened&&this.guidePersistent?this.renderGuide=this.guideOpened=!0:this.guideOpened=!1;this.observeForMiniGuideVisible();this.updateGuideDrawerElementState()};
_.K.cachedClientWidthChanged=function(){this.updateGuideState()};
_.K.persistentPanelVisibleChanged=function(){this.updateGuideState()};
_.K.updateGuideState=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var x=this.canFitPersistentGuide(this.cachedClientWidth);x?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=x}this.updateGuideDrawerElementState()};
_.K.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.K.getGuideOpened=function(){return this.guideOpened};
_.K.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.K.getActiveEndpoint=function(){return this.activeEndpoint};
_.K.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.K.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&&_.MF(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.K.handleMiniGuideMouseEnter=function(){!this.sessionUserManuallyExpandedGuideState&&_.u("web_guide_hover_expansion")&&(this.isMouseOverGuide=!0,this.miniGuideVisible&&!this.guideOpened&&(this.renderGuide=this.guideOpened=!0,this.updateGuideDrawerElementState()))};
_.K.handleGuideMouseLeave=function(){var x=this;!this.sessionUserManuallyExpandedGuideState&&_.u("web_guide_hover_expansion")&&(this.isMouseOverGuide=!1,_.LI(this,"handleGuideMouseLeave",function(){x.isMouseOverGuide||!x.guideOpened||x.miniGuideVisible||(x.guideOpened=!1,x.updateGuideDrawerElementState())},100))};
_.K.computeGuidePersistentAndVisible=function(){var x=this;_.LI(this,"computeGuidePersistentAndVisible",function(){x.guidePersistentAndVisible=x.guideOpened&&x.guidePersistent;x.guideIsVisibleButNotPersistent=!(!x.guideOpened||x.guidePersistent)})};
_.K.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.K.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.K.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.K.startLoadingWatch=function(){this.closeGuide()};
_.K.startLoadingShorts=function(){_.u("web_hide_guide_on_shorts")&&this.closeGuide()};
_.K.onYtNavigateFinish=function(x,L){if(!_.j_||L){this.activeEndpoint=L.endpoint;this.pageType=L.pageType;this.pageUrl=L.response.url;var D,S;x=(S=_.g((D=L.endpoint)==null?void 0:D.commandMetadata,_.gg))==null?void 0:S.url;!this.pageUrl&&x&&(this.pageUrl=x);_.u("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.K.getVisibleGuideRenderer=function(){for(var x=_.O(this.guideRenderers),L=x.next();!L.done;L=x.next())if(L=L.value,this.miniGuideVisible&&L.is==="ytd-mini-guide-renderer"||this.guideOpened&&L.is==="ytd-guide-renderer")return L;return null};
_.K.markGuideRendererDirty=function(x){if(x){typeof x.markDirty==="function"&&x.markDirty();x=_.O([].concat(_.lP(_.jr(x).children)));for(var L=x.next();!L.done;L=x.next())this.markGuideRendererDirty(L.value)}};
_.K.persistentGuideEnabled=function(x,L){if(!L||x==="watch"||x==="settings"||x==="shorts"&&this.isFullscreenShorts||_.u("reels_web_disable_persistent_guide_shorts")&&x==="shorts")return!1;var D=_.gE(L)||"";return _.u("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(S){return D===S}):!this.persistentGuideBlockedPagePathRegex.test(D)};
_.K.canFitPersistentGuide=function(x){var L=_.dE("kevlar_persistent_guide_width_threshold",1312);return L===-1||_.u("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:x>this.calculateGuideThreshold(L)};
_.K.calculateGuideThreshold=function(x){return _.u("enable_ai_companion")?x+(this.persistentPanelVisible?400:0):x};
_.K.canFitMiniGuide=function(x){return this.miniGuideWidthThreshold===-1?!1:x>this.calculateGuideThreshold(this.miniGuideWidthThreshold)};
_.K.onResize=function(){var x=this;_.LI(this,"calculateGuideState",function(){x.onResizeDebounced()})};
_.K.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.K.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.K.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.K.getInitialGuideUserStateOpened=function(){return _.u("web_force_mini_guide_default")?!1:!_.FI().getFlag(109)};
_.J3.Object.defineProperties(AZ.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.$6("initialBodyClientWidth")||window.innerWidth}}});
AZ.prototype.onResize=AZ.prototype.onResize;AZ.prototype.observeForMiniGuideVisible=AZ.prototype.observeForMiniGuideVisible;AZ.prototype.computeGuidePersistentAndVisible=AZ.prototype.computeGuidePersistentAndVisible;AZ.prototype.persistentPanelVisibleChanged=AZ.prototype.persistentPanelVisibleChanged;AZ.prototype.cachedClientWidthChanged=AZ.prototype.cachedClientWidthChanged;AZ.prototype.resetGuide=AZ.prototype.resetGuide;AZ.prototype.activeEndpointChanged=AZ.prototype.activeEndpointChanged;
AZ.prototype.guideOpenedChanged=AZ.prototype.guideOpenedChanged;AZ.prototype.miniGuideVisibleChanged=AZ.prototype.miniGuideVisibleChanged;AZ.prototype.guideIsVisibleButNotPersistentChanged=AZ.prototype.guideIsVisibleButNotPersistentChanged;AZ.prototype.guidePersistentAndVisibleChanged=AZ.prototype.guidePersistentAndVisibleChanged;AZ.prototype.onGuideElementChanged=AZ.prototype.onGuideElementChanged;AZ.prototype.onGuidePersistentChanged=AZ.prototype.onGuidePersistentChanged;
AZ.prototype.onRenderGuideChanged=AZ.prototype.onRenderGuideChanged;AZ.prototype.onActiveEndpointChanged=AZ.prototype.onActiveEndpointChanged;AZ.prototype.onMiniGuideVisibleChanged=AZ.prototype.onMiniGuideVisibleChanged;AZ.prototype.onGuideIsVisibleButNotPersistentChanged=AZ.prototype.onGuideIsVisibleButNotPersistentChanged;AZ.prototype.onGuidePersistendAndVisibleChanged=AZ.prototype.onGuidePersistendAndVisibleChanged;
_.A([_.b(_.XO),_.r("design:type",Object)],AZ.prototype,"ironResizableBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],AZ.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],AZ.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],AZ.prototype,"ytdReduxBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],AZ.prototype,"data",void 0);
_.A([_.F(),_.r("design:type",Boolean)],AZ.prototype,"disabled",void 0);_.A([_.F(),_.r("design:type",Boolean)],AZ.prototype,"guidePersistentAndVisible",void 0);_.A([_.bN("guidePersistentAndVisible"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],AZ.prototype,"onGuidePersistendAndVisibleChanged",null);_.A([_.F(),_.r("design:type",Boolean)],AZ.prototype,"guideIsVisibleButNotPersistent",void 0);
_.A([_.bN("guideIsVisibleButNotPersistent"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],AZ.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.A([_.F(),_.r("design:type",Object)],AZ.prototype,"miniGuideVisible",void 0);_.A([_.bN("miniGuideVisible"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],AZ.prototype,"onMiniGuideVisibleChanged",null);_.A([_.F(),_.r("design:type",Boolean)],AZ.prototype,"forceMiniGuideClose",void 0);
_.A([_.F(),_.r("design:type",Object)],AZ.prototype,"activeEndpoint",void 0);_.A([_.bN("activeEndpoint"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],AZ.prototype,"onActiveEndpointChanged",null);_.A([_.F(),_.r("design:type",Boolean)],AZ.prototype,"renderGuide",void 0);_.A([_.bN("renderGuide"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],AZ.prototype,"onRenderGuideChanged",null);
_.A([_.F({selector:mM5}),_.r("design:type",Boolean)],AZ.prototype,"persistentPanelVisible",void 0);_.A([_.F(),_.r("design:type",Object)],AZ.prototype,"guideOpened",void 0);_.A([_.F(),_.r("design:type",Boolean)],AZ.prototype,"guidePersistent",void 0);_.A([_.bN("guidePersistent"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],AZ.prototype,"onGuidePersistentChanged",null);_.A([_.F(),_.r("design:type",Object)],AZ.prototype,"guideUserStateOpened",void 0);
_.A([_.F(),_.r("design:type",String)],AZ.prototype,"pageUrl",void 0);_.A([_.F(),_.r("design:type",String)],AZ.prototype,"pageType",void 0);_.A([_.F(),_.r("design:type",Number)],AZ.prototype,"cachedClientWidth",void 0);_.A([_.F(),_.r("design:type",Object)],AZ.prototype,"guideElement",void 0);_.A([_.F({selector:_.IS}),_.r("design:type",Object)],AZ.prototype,"isFullscreenShorts",void 0);
_.A([_.bN("guideElement"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],AZ.prototype,"onGuideElementChanged",null);_.A([_.bN("guidePersistentAndVisible"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],AZ.prototype,"guidePersistentAndVisibleChanged",null);
_.A([_.GV("guideIsVisibleButNotPersistent"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],AZ.prototype,"guideIsVisibleButNotPersistentChanged",null);_.A([_.bN("miniGuideVisible"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],AZ.prototype,"miniGuideVisibleChanged",null);_.A([_.GV("guideOpened"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],AZ.prototype,"guideOpenedChanged",null);
_.A([_.bN("activeEndpoint"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],AZ.prototype,"activeEndpointChanged",null);_.A([_.GV("pageUrl"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],AZ.prototype,"resetGuide",null);_.A([_.GV("cachedClientWidth"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],AZ.prototype,"cachedClientWidthChanged",null);
_.A([_.GV("persistentPanelVisible"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],AZ.prototype,"persistentPanelVisibleChanged",null);_.A([_.bN("guideOpened","guidePersistent"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],AZ.prototype,"computeGuidePersistentAndVisible",null);
_.A([_.GV("guidePersistentAndVisible","pageUrl","cachedClientWidth","persistentPanelVisible"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],AZ.prototype,"observeForMiniGuideVisible",null);_.A([_.mX("iron-resize"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],AZ.prototype,"onResize",null);_.A([_.w({disableElementRegistration:!0,is:"yt-guide-manager"})],AZ);
var ba3=_.q(AZ,"yt-guide-manager",void 0,{mode:_.Vm("kevlar_poly_si_batch_j081")?1:2});var $u=function(){var x=_.e.apply(this,arguments)||this;x.JSC$20082_keyboardInUse=!1;x.boundHandleCapturedKeydownEvent=function(L){x.handleCapturedKeydownEvent(L)};
return x};
_.p($u,_.e);_.K=$u.prototype;_.K.attached=function(){this.listenToDocument(document)};
_.K.listenToDocument=function(x){x.addEventListener("keydown",_.p$(this,this.onKeyDownEvent));x.addEventListener("keyup",_.p$(this,this.onKeyUpEvent));x.addEventListener("mousedown",_.p$(this,this.onMouseDownEvent));_.u("desktop_keyboard_capture_keydown_killswitch")||x.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);x.addEventListener("yt-page-data-updated",_.p$(this,this.onPageUpdate))};
_.K.detached=function(){this.unlistenFromDocument(document)};
_.K.unlistenFromDocument=function(x){x.removeEventListener("keydown",_.p$(this,this.onKeyDownEvent));x.removeEventListener("keyup",_.p$(this,this.onKeyUpEvent));x.removeEventListener("mousedown",_.p$(this,this.onMouseDownEvent));_.u("desktop_keyboard_capture_keydown_killswitch")||x.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);x.removeEventListener("yt-page-data-updated",_.p$(this,this.onPageUpdate))};
_.K.ready=function(){_.yY().addProvider({provide:_.CJ,useValue:this})};
_.K.isKeyBoardInUse=function(){return this.JSC$20082_keyboardInUse};
_.K.handleCapturedKeydownEvent=function(x){if(x.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(x)};
_.K.onMouseDownEvent=function(){this.JSC$20082_keyboardInUse=!1};
_.K.onPageUpdate=function(){if(_.u("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.u("web_shorts_keyboard_shortcut_usage_log")){_.tX.clear();for(var x=_.O(_.cb),L=x.next();!L.done;L=x.next()){var D=_.O(L.value);L=D.next().value;D=D.next().value;D=_.VC(D);_.tX.set(L,D);_.XI(_.A3(),_.qu(),D)}_.xU.clear();x=_.O(_.nA);for(L=x.next();!L.done;L=x.next())D=_.O(L.value),L=D.next().value,D=D.next().value,D=_.VC(D),_.xU.set(L,D),_.XI(_.A3(),_.qu(),D);_.c$(_.A3(),_.qu(),[].concat(_.lP(_.xU.values()),
_.lP(_.tX.values())));_.t_(_.A3(),[].concat(_.lP(_.xU.values()),_.lP(_.tX.values())))}};
_.K.onMiniplayerActiveChange=function(){var x;(x=_.yY().resolve(_.iy).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(x.document):this.unlistenFromDocument(x.document))};
_.K.ignoreKeyEvent=function(x){if(x.ctrlKey||x.altKey)if(_.u("kevlar_macro_markers_keyboard_shortcut")){if(x.keyCode!==37&&x.keyCode!==39)return!0}else return!0;var L=_.Jq(x)||[];return _.Fm3(L)?(_.u("web_button_or_anchor_list_item")&&qOq(L,x)&&(this.JSC$20082_keyboardInUse=!0),!0):x.defaultPrevented?(hg(x.keyCode,x.shiftKey,this.isShortsPage),!0):x.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(x):!1};
_.K.isSpacebarClick=function(x){var L=x||window.event;var D;L.composedPath&&typeof L.composedPath==="function"?D=L.composedPath():D=L.path;D&&D.length?L=D[0]:(L=L||window.event,L=L.target||L.srcElement,L.nodeType==3&&(L=L.parentNode));return L&&x.keyCode===32&&(x=L.tagName==="BUTTON"||L.tagName==="A"||L.tagName==="INPUT",L=(L=L.getAttribute("role"))&&(L==="option"||L==="button"||L.indexOf("menuitem")===0),x||L)?!0:!1};
_.K.onKeyDownEvent=function(x){if(!this.ignoreKeyEvent(x)&&(x.keyCode===191&&(x.shiftKey||x.metaKey?x.repeat!=null&&x.repeat||(this.openHotkeyDialog(),hg(x.keyCode,x.shiftKey,this.isShortsPage)):(this.focusSearchBox(),x.preventDefault())),!x.metaKey)){var L=_.yY().resolve(_.iy);switch(x.keyCode){case 9:this.JSC$20082_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(x);break;case 84:L.pipController.getWindow()&&window.focus();this.toggleTheaterMode(x.keyCode,x.shiftKey);break;case 73:L.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(x.keyCode,x.shiftKey);break;case 70:if(this.isShortsPage&&_.u("web_fullscreen_shorts")){_.s8$();break}this.isMiniplayerActive()?L.pipController.getWindow()&&(L.close(!0),window.focus()):this.passEventToPlayer(x);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(x.keyCode,x.shiftKey):this.closeMiniplayer(x.keyCode,x.shiftKey)||this.passEventToPlayer(x);break;case 13:x.shiftKey&&_.yY().resolve(_.Op).activate(x);break;default:this.passEventToPlayer(x)}}};
_.K.onKeyUpEvent=function(x){if(!this.ignoreKeyEvent(x))if(_.u("web_speedmaster_spacebar_control")&&x.keyCode===32)this.handlePlayerSpaceKey(x,!0);else{var L=this.getPlayerManager();L&&(L=L.getPlayer())&&L.handleGlobalKeyUp(x.keyCode,x.shiftKey,x.ctrlKey,x.altKey,x.metaKey,x.key,x.code)}};
_.K.getPlayerManager=function(){var x=_.Zs(),L=_.yY().resolve(_.ZN(_.KX));return x&&L&&L.isOnWatch()?x:null};
_.K.passEventToPlayer=function(x,L){var D=this,S,Q,J,Z;return _.I(function(y){if(y.nextAddress==1){if(!_.u("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&D.isMiniplayerActive())S=_.yY().resolve(_.iy).getPlayerElement();else if(D.inlinePreviewIsActive){if(Q=_.P$(D.hostElement,"yt-get-inline-preview-player-action"),(J=Q)==null?0:J[0])S=Q[0]}else S=_.Zs();return S?y.yield(S.getPlayerPromise(),3):y.jumpTo(0)}Z=y.yieldResult;L?Z.handleGlobalKeyUp(x.keyCode,x.shiftKey,x.ctrlKey,x.altKey,x.metaKey,
x.key,x.code):Z.handleGlobalKeyDown(x.keyCode,x.shiftKey,x.ctrlKey,x.altKey,x.metaKey,x.key,x.code,x.repeat);x.keyCode!==38&&x.keyCode!==40&&hg(x.keyCode,x.shiftKey,D.isShortsPage);_.Y2(y)})};
_.K.focusSearchBox=function(){_.MF(this.hostElement,"yt-focus-searchbox")};
_.K.openHotkeyDialog=function(){_.MF(this.hostElement,"yt-open-hotkey-dialog")};
_.K.isMiniplayerActive=function(){return _.yY().resolve(_.iy).isMiniplayerActive()};
_.K.closeMiniplayer=function(x,L){return this.isMiniplayerActive()?(_.yY().resolve(_.iy).close(),hg(x,L,this.isShortsPage),!0):!1};
_.K.toggleTheaterMode=function(x,L){var D=_.$O(_.Jd().getState()),S=this.getPlayerManager(),Q=_.u("disable_theater_mode_keyboard")||_.rO("START_IN_FULL_WINDOW_MODE");S&&!Q&&(D=!D,_.O8()&&_.u("external_fullscreen")&&(D=!0),_.dg(this.hostElement,"yt-toggle-theater-mode",[D]),hg(x,L,this.isShortsPage))};
_.K.toggleMiniplayer=function(x,L){var D=this.getPlayerManager();if(this.isMiniplayerActive()){var S;((S=_.yY().resolve(_.ZN(_.KX)))==null?0:S.isOnWatch())?_.yY().resolve(_.iy).close(!0):_.ht(_.yY().resolve(_.iy));hg(x,L,this.isShortsPage)}else D&&(_.dg(this.hostElement,"yt-activate-miniplayer-from-watch-action"),hg(x,L,this.isShortsPage))};
_.K.handlePlayerSpaceKey=function(x,L){var D=!!_.Zs()||this.isMiniplayerActive();D=_.u("disable_space_scroll_fix")||D;_.u("global_spacebar_pause")&&!this.isKeyBoardInUse()&&D&&(x.preventDefault(),this.passEventToPlayer(x,L))};
_.K.isPresentingTheaterMode=function(){return _.u("web_watch_enable_tm_esc_key")?_.$O(_.Jd().getState())&&!_.O8():!1};
$u.prototype.onMiniplayerActiveChange=$u.prototype.onMiniplayerActiveChange;_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],$u.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],$u.prototype,"ytdReduxBehavior",void 0);_.A([_.F({selector:_.uen}),_.r("design:type",Boolean)],$u.prototype,"inlinePreviewIsActive",void 0);_.A([_.F({selector:_.G1c}),_.r("design:type",Boolean)],$u.prototype,"isShortsPage",void 0);
_.A([_.F({selector:_.$N}),_.r("design:type",Boolean)],$u.prototype,"miniplayerIsActive",void 0);_.A([_.bN("miniplayerIsActive"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],$u.prototype,"onMiniplayerActiveChange",null);_.A([_.w({disableElementRegistration:!0,is:"yt-hotkey-manager"})],$u);_.q($u,"yt-hotkey-manager",void 0,{mode:_.Vm("kevlar_poly_si_batch_j081")?1:2});var rv=function(){var x=_.e.apply(this,arguments)||this;x.loopStateEntityKey_=null;x.playlistLoopStateEntity_=null;x.isShuffleNextPlaylist=!1;x.PLAYER_EVENTS_=new Map;x.playerListenersSetup_=!1;x.videoSkipJob_=0;x.canAutoAdvance_=!1;x.playerManager_=null;x.TEST_ONLY={};return x};
_.p(rv,_.e);_.K=rv.prototype;_.K.ready=function(){_.yY().addProvider({provide:_.d6,useValue:this.hostElement})};
_.K.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_)};
_.K.attached=function(){document.addEventListener("yt-navigate-start",_.p$(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.p$(this,this.onYtNavigateFinish_))};
_.K.detached=function(){document.removeEventListener("yt-navigate-start",_.p$(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.p$(this,this.onYtNavigateFinish_))};
_.K.updatePlaylistEventListeners=function(x,L){L&&!this.playerListenersSetup_?(this.playerManager_=x,this.registerPlaylistEventListeners_(x)):!L&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(x))};
_.K.setPlayer=function(x){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=x};
_.K.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.K.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.K.registerPlaylistEventListeners_=function(x){var L=this;x.getPlayerPromise().then(function(D){L.playerListenersSetup_||(L.ytPlayerListenerBehavior.listenToPlayerEvents(D,L.PLAYER_EVENTS_),L.playerListenersSetup_=!0)})};
_.K.removePlaylistEventListeners_=function(x){var L=this;x.getPlayerPromise().then(function(D){L.playerListenersSetup_&&(L.ytPlayerListenerBehavior.unlistenFromPlayerEvents(D,L.PLAYER_EVENTS_),L.playerListenersSetup_=!1)})};
_.K.setPlaylistComponent=function(x){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.p$(this,this.onPlaylistYtNavigate_)),x&&(x.data&&this.playlistComponent.data&&x.data.playlistId==this.playlistComponent.data.playlistId?(x.loopOn=this.playlistComponent.loopOn,x.shuffleOn=this.playlistComponent.shuffleOn):(x.loopOn=!1,x.shuffleOn=!1),this.isShuffleNextPlaylist&&(x.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=x;this.playlistComponent.addEventListener("yt-navigate",
_.p$(this,this.onPlaylistYtNavigate_))};
_.K.setAutoplayRenderer=function(x){this.autoplayData=x};
_.K.setPlaylistData=function(x){this.currentPlaylistData_=x;_.MF(this.hostElement,"yt-playlist-data-updated");_.wk.isEmpty(x)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(x)};
_.K.setPlayerPlaybackControlData=function(x){this.playerManager_&&this.playerManager_.updatePlayerComponents(x.playlistPanelRenderer)};
_.K.getPlaylistData=function(){return this.currentPlaylistData_};
_.K.getTempData_=function(x,L){if(this.playlistComponent==null)return null;x={};this.playlistComponent.shuffleOn&&(x.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(x.loop_on=this.playlistComponent.loopOn);L&&(x.autonav="1",_.yY().resolve(_.Rl),L=_.Z8(),L>0&&(x.lact=L),this.playerManager_&&(L=this.playerManager_.getPlayer())&&L.shouldSendVisibilityState()&&(L=L.getVisibilityState(),L!=0&&(x.vis=L)));_.u("enable_unknown_lact_fix_on_html5")&&(_.yY().resolve(_.Rl),x.lact=
_.Z8());return x};
_.K.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.K.setLoopStateEntityKey_=function(x){var L;this.loopStateEntityKey_=((L=this.getPlaylistLoopData_(x))==null?void 0:L.playlistLoopStateEntityKey)||null};
_.K.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.K.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.K.skipVideo=function(){var x=this,L=_.u("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||L)L=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.GR(_.WW,function(){x.onPlaylistNext();x.videoSkipJob_=0},L)};
_.K.cancelVideoSkip=function(){this.videoSkipJob_&&(_.WW.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.K.isInBackground_=function(){var x=window.document.visibilityState;return!(!x||x=="visible")};
_.K.onPlaylistIndex_=function(x){this.playlistComponent&&(x=this.playlistComponent.data.contents[x].playlistPanelVideoRenderer.navigationEndpoint,_.MF(this.hostElement,"yt-navigate",{endpoint:x,tempData:this.getTempData_(x)}))};
_.K.onPlayerStateChange_=function(x){if(x=x==0&&this.playlistComponent&&this.canAutoAdvance_)x=_.Yh.getInstance(),x=!(x.autonavState_===3?x.autonavPauseReason_&&x.autonavPauseReason_.inputBoxFocus===!0:x.autonavState_===1&&x.disabledAutonavPauseReason_&&x.disabledAutonavPauseReason_.inputBoxFocus===!0);x&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.K.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.K.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.K.navigateToAutoplayWatchEndpoint_=function(x,L,D){var S=this.playlistComponent.data.currentIndex,Q=this.getNumPlayableVideos_();x=="NORMAL"&&L=="autoplayVideo"&&S+1>=Q&&D||!(x=this.getVideoEndpoint_(x,L))||(D=this.getTempData_(x,D),_.MF(this.hostElement,"yt-navigate",{endpoint:x,tempData:D}))};
_.K.getNumPlayableVideos_=function(){for(var x=0,L=_.O(this.playlistComponent.data.contents||[]),D=L.next();!D.done;D=L.next())D.value.playlistPanelVideoRenderer&&(x+=1);return x};
_.K.getVideoEndpoint_=function(x,L){if(this.autoplayData&&this.autoplayData.sets)for(var D=0,S=this.autoplayData.sets.length;D<S;D++){var Q=this.autoplayData.sets[D];if(Q.mode==x){if(Q[L])return Q[L];break}}else x=new _.RZ("AutoplayData is undefined in playlist manager","Mode: "+x+" endpoint: "+L),_.qy(x)};
_.K.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.K.onPlaylistYtNavigate_=function(x){if(x.detail.endpoint){x.stopPropagation();var L=x.detail;L.tempData=this.getTempData_(x.detail.endpoint);_.MF(this.hostElement,"yt-navigate",L)}};
_.K.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.K.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.K.playlistLoopStateEntityChanged_=function(x){var L=this,D,S,Q;return _.I(function(J){if(J.nextAddress==1){if(!x)return J.return();D=x.state==="PLAYLIST_LOOP_STATE_ONE";return L.playerManager_?J.yield(L.playerManager_.getPlayerPromise(),3):J.jumpTo(2)}J.nextAddress!=2&&(S=J.yieldResult,S.setLoopVideo(D));Q=x.state==="PLAYLIST_LOOP_STATE_ALL";L.playlistComponent&&(L.playlistComponent.loopOn=Q);_.Y2(J)})};
_.K.getPlaylistLoopData_=function(x){var L,D;if(x=x==null?void 0:(L=x.playlistButtons)==null?void 0:(D=L.menuRenderer)==null?void 0:D.topLevelButtons)for(L=_.O(x),D=L.next();!D.done;D=L.next())if(D=D.value,D.playlistLoopButtonRenderer)return D.playlistLoopButtonRenderer};
_.K.getLoopStateCommand_=function(x){var L=this.getPlaylistData(),D;L=((D=this.getPlaylistLoopData_(L))==null?void 0:D.states)||[];var S;x=(S=_.g(L[x?1:2],_.Vpi))==null?void 0:S.button;var Q;return(Q=_.g(x,_.y4))==null?void 0:Q.command};
_.K.onPlayerLoopChange_=function(x){this.playlistLoopStateEntity_&&(x?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(x=this.getLoopStateCommand_(x))&&this.ytComponentBehavior.resolveCommand(x)};
_.K.onSleepTimerSettingsChanged_=function(x){this.canAutoAdvance_=x!=="End of video"};
rv.prototype.onPlaylistLoopStateEntityChanged=rv.prototype.onPlaylistLoopStateEntityChanged;_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],rv.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.kj.YtPlayerListenerBehavior),_.r("design:type",_.pO)],rv.prototype,"ytPlayerListenerBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],rv.prototype,"ytdReduxBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],rv.prototype,"loopStateEntityKey_",void 0);
_.A([_.F({selectorArgs:["loopStateEntityKey_"],selector:_.Ypw}),_.r("design:type",Object)],rv.prototype,"playlistLoopStateEntity_",void 0);_.A([_.bN("playlistLoopStateEntity_"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],rv.prototype,"onPlaylistLoopStateEntityChanged",null);_.A([_.w({disableElementRegistration:!0,is:"yt-playlist-manager"})],rv);_.q(rv,"yt-playlist-manager",void 0,{mode:_.Vm("kevlar_poly_si_batch_j081")?1:2});var Y_$,FxY=function(){if(Y_$!==void 0)return Y_$;var x=document.createElement("template");_.m(x,"\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");x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return Y_$=x};var N8=function(){var x=_.e.apply(this,arguments)||this;x.lastCallback=null;x.getAccountLinkPromises={};x.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);x.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return x};
_.p(N8,_.e);_.K=N8.prototype;_.K.getLocation=function(){return window.location.href};
_.K.getCompletionUrl=function(){return _.Q0(this.getLocation())};
_.K.containsRedirectState=function(x){return(x=_.eK(_.DvG(x)))?(new URLSearchParams(x)).get("redirect_state")!==null:!1};
_.K.createGalConfig=function(x,L){var D=new Q25;x=D=L?this.getPopupOrRedirectSetting(D,_.$6("LINK_API_KEY"),_.$6("LINK_API_KEY_REDIRECT"),x):Jmq(D,_.$6("LINK_API_KEY"));x.authUser=_.$6("SESSION_INDEX")||0;x.supportedFlows=new Set([4]);return x.build()};
_.K.getPopupOrRedirectSetting=function(x,L,D,S){this.isGalInteractionPopupMode(S)?(x.interactionMode=0,x=Jmq(x,L)):(x.interactionMode=1,L=this.getCompletionUrl(),x.completionUrl=L,x=Jmq(x,D));return x};
_.K.isGalInteractionPopupMode=function(x){if(this.redirectModeProviderAllowlist.has(x))switch(x){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.K.getStatusEntityKeyForProviderId=function(x){return _.Ha(x+":all","accountLinkStatusEntity")};
_.K.findNestedPropValue=function(x,L){var D=!1,S=null;JSON.stringify(x,function(Q,J){D||Q!==L||(D=!0,S=J);return D?null:J});
return S};
_.K.findAccountLinkButtonViewModel=function(x,L){var D=null,S=!1;JSON.stringify(x,function(Q,J){S||J.accountLinkStatusEntityKey!==L||J.accountLinkStatusSecondaryEntityKey||(S=!0,D=J);return S?null:J});
return D};
_.K.executeLinkingSuccessOrFailureCommands=function(x,L,D){var S=null,Q;(L==null?0:(Q=L.url)==null?0:Q.includes("account_sharing"))?S=L==null?void 0:L.response:S=L==null?void 0:L.response;(L=this.findAccountLinkButtonViewModel(S,x))?(x=D?this.findNestedPropValue(L,"onSuccessCommand"):this.findNestedPropValue(L,"onFailureCommand"))?_.H$([x],this.hostElement):_.X0(Error("vl")):_.X0(Error("wl`"+x))};
_.K.handleInitializeRequest=function(x,L){var D=this,S=sWg(this.createGalConfig(x,!0));this.containsRedirectState(this.getLocation())?pPW(x,S.config,S.galService).then(function(Q){var J=D.getStatusEntityKeyForProviderId(x);if(Q.statusCode===1)L&&D.executeLinkingSuccessOrFailureCommands(J,L,!0),Q=D.getLocation().indexOf("#"),Q!==-1&&window.history.pushState(null,"",D.getLocation().substring(0,Q));else return L&&D.executeLinkingSuccessOrFailureCommands(J,L,!1),Promise.reject(Error(Q.statusMessage))}).catch(function(Q){_.qy(Q);
_.Uh("gamingAccountLinkStatusChanged",{serviceId:x,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(Q)}):this.getAccountLinkPromises[x]=S.startLinkingSession({serviceId:x})};
_.K.handleAccountLinkCommand=function(x){_.g(x,ifI)&&this.handleLinkRequest(_.g(x,ifI))};
_.K.handleLinkRequest=function(x){var L=this,D=x.thirdPartyId;if(D)if(this.isGalInteractionPopupMode(D)){var S=function(){L.closeAndFire("ytd-gaming-account-link-setting-renderer",x.onFailureCommand)},Q=function(){L.closeAndFire("ytd-gaming-account-link-setting-renderer",x.onSuccessCommand)};
this.lastCallback=Q;this.getAccountLinkPromises[D].then(function(J){BfX(J).then(function(Z){Z.statusCode===1?Q():S()})}).catch(function(){S()})}else this.getAccountLinkPromises[D].then(function(J){BfX(J).then(function(Z){if(Z.statusCode!==1)return Promise.reject(Error(Z.statusMessage))})}).catch(function(J){_.qy(J);
_.Uh("gamingAccountLinkStatusChanged",{serviceId:D,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(J)})};
_.K.closeAndFire=function(x,L){_.dg(this.hostElement,"yt-close-popup-action",[x]);L&&_.H$([L],this.hostElement)};
_.K.handleAccountUnlinkCommand=function(x){_.g(x,fdg)&&this.handleUnlinkRequest(_.g(x,fdg))};
_.K.handleUnlinkRequest=function(x){var L=this,D=x.thirdPartyId;if(D){var S=function(){L.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",x.onFailureCommand)},Q=function(){L.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",x.onSuccessCommand)};
this.lastCallback=Q;var J=sWg(this.createGalConfig(D,!1));this.unlinkUserGal(J,D).then(function(Z){Z.statusCode===1?Q():S()}).catch(function(){S()})}};
_.K.unlinkUserGal=function(x,L){return x.deleteLink(L)};
_.K.handleLogAccountLinkingEventCommand=function(x){_.u("enable_gel_log_commands")&&_.g(x,os5)&&(x=_.g(x,os5).event)&&_.Uh("gamingAccountLinkStatusChanged",x)};
_.J3.Object.defineProperties(N8,{template:{configurable:!0,enumerable:!0,get:function(){return FxY()}}});
_.A([_.b(_.rs.YtOpenPopupBehavior),_.r("design:type",Object)],N8.prototype,"ytOpenPopupBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],N8.prototype,"ytActionHandlerBehavior",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-third-party-manager"})],N8);_.q(N8,"ytd-third-party-manager",function(){return FxY()},{mode:_.Vm("kevlar_poly_si_batch_j081")?1:2});var sYG,TWX=function(){if(sYG!==void 0)return sYG;var x=document.createElement("template");_.m(x,"\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");x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return sYG=x};var iI=function(){var x=_.e.apply(this,arguments)||this;x.currentPage=void 0;x.renderLoadingStateJobId=0;x.updatePageDataJobId=0;x.pageDisposeJobsets=new WeakMap;x.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"};x.shouldApplyLockupToWatchTransition=_.u("web_thumbnail_to_watch_transition");x.shouldApplySlideTransition=_.PY("web_page_transition_type")==="slide"||_.u("enable_plj_landing_page");x.shouldApplyLearningJourneyTransition=_.u("enable_plj_landing_page");x.TEST_ONLY=void 0;return x};
_.p(iI,_.e);_.K=iI.prototype;_.K.ready=function(){var x=_.yY();x.addProvider({provide:_.KX,useValue:this});x.addProvider({provide:_.nJr,useValue:this})};
_.K.created=function(){this.pagePool=new xMG;this.contextSwitcher=new PuI};
_.K.attached=function(){_.MF(this.hostElement,"attached");var x=_.yY().resolve(_.ZN(_.NB));x&&(this.contextSwitcher.JSC$19907_networkService_=x);this.viewTransitionManager=_.yY().resolve(_.og)};
_.K.getPageOffset=function(x){return x.getScrollTop()};
_.K.setPageOffset=function(x,L){try{x.setScrollTop(L)}catch(D){}};
_.K.setPageOffsetForNavigation=function(x,L){_.MF(this.hostElement,"yt-navigate-set-page-offset",{page:x,offset:L===void 0?0:L})};
_.K.pauseActiveContext=function(){var x=this.contextSwitcher;x.activeContext_&&x.activeContext_.pause()};
_.K.getModuleNameForType=function(x){return x==="watch"?_.u("kevlar_watch_fixie")?"watchFixie":_.u("kevlar_watch_grid")?"watchGrid":"watchFlexy":x==="shorts"||x==="search"?x:"browse"};
_.K.attachPage=function(x){var L,D=!_.u("pc_is_attached_ks")&&(x==null?void 0:(L=x.polymerController)==null?void 0:L.isAttached);if(!x.isAttached&&!D)try{_.jr(this.hostElement).appendChild(x)}catch(Q){var S;_.qy(new _.RZ("Error attaching page element for component",{origin:(S=this.currentPage)==null?void 0:S.is,component:x.is}))}};
_.K.setActivePage=function(x,L){var D=this,S=!1,Q=function(){var J=D.isOnWatch(),Z=D.currentPage;if(x)if(x!==D.currentPage){Z&&(Z.hidden=!0,Z.active=!1,Z.removeAttribute("role"));D.currentPage=x;var y,E=L!=null?L:_.pB((y=D.data)==null?void 0:y.endpoint);Z&&_.MF(D.hostElement,"yt-page-type-changed",{oldPageType:Z.is,newPageType:x.is,newPageSubtype:E});_.KI().dispatch(_.MU({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:x.is}));_.KI().dispatch(_.MU({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:E||""}));
x.hidden=!1;D.attachPage(x);x.active=!0;x.setAttribute("role","main");Z&&D.setPageOffsetForNavigation(x,0);_.u("kevlar_remove_page_dom_on_switch")&&!J&&Z&&_.jr(D.hostElement).removeChild(Z)}else S=!0;else D.handleMissingDestinationPage(Z)};
this.shouldRunBrowseTransition(this.currentPage,x)?K8u(this.viewTransitionManager,Q):this.shouldRunLearningJourneyTransition(this.currentPage,x)?yol(this.viewTransitionManager,Q):Q();return S};
_.K.handleMissingDestinationPage=function(x){if(this.isColdLoadForUnknownPage(x))_.qy(new _.RZ("Cold load for unknown page"));else{var L;x=new _.RZ("Unable to set active page",x?x.is:"unknown origin",(L=this.data)==null?void 0:L.endpoint);_.BI(x)}};
_.K.isColdLoadForUnknownPage=function(x){return!x&&OC(this.data)==="unknown"};
_.K.shouldRunBrowseTransition=function(x,L){return this.shouldApplySlideTransition&&(x==null?void 0:x.is)==="ytd-browse"&&(L==null?void 0:L.is)==="ytd-browse"&&x!==L};
_.K.shouldRunLearningJourneyTransition=function(x,L){return this.shouldApplyLearningJourneyTransition&&(x==null?void 0:x.is)==="ytd-browse"&&((L==null?void 0:L.is)==="ytd-watch-learning-journey"||(L==null?void 0:L.tagName.toLowerCase())==="ytd-watch-learning-journey")};
_.K.shouldRunWatchNextLoadedTransition=function(x,L){return this.viewTransitionManager&&x.is==="ytd-watch-flexy"&&L};
_.K.updatePageData=function(x){var L=this,D=this.data;this.updatePageDataJobId&&_.WW.cancelJob(this.updatePageDataJobId);this.data=x;return new _.HI(function(S){var Q=function(){x.filler?L.performDataUpdate(x,D):vIg(function(){L.performDataUpdate(x,D)});
var E=_.jP();_.vy(E,"cr")||E.processSignal("cr");S()},J=function(){x&&x.page==="watch"?L.updatePageDataJobId=_.GR(_.WW,Q):Q()};
if(_.u("kevlar_enable_mss_page_modules_client")&&x){var Z=_.yY().resolve(_.oP),y=L.getModuleNameForType(x.page);(Z=Qaq(Z,[y]))?Z.then(J):J()}else J()})};
_.K.isDownloadsPage=function(x){var L,D;return(x==null?void 0:(L=x.endpoint)==null?void 0:(D=L.browseEndpoint)==null?void 0:D.browseId)==="FEdownloads"};
_.K.setPlayerSyncInterval=function(x){var L;return _.I(function(D){if(D.nextAddress==1)return D.yield(_.yY().resolve(_.d4),2);L=D.yieldResult;L.setUpPositionSyncInterval(x);_.Y2(D)})};
_.K.performDataUpdate=function(x,L){_.u("kevlar_early_popup_close")||_.dg(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var D=!x.filler;D&&(_.$T("lps"),_.u("config_age_report_killswitch")||nNX());var S=OC(x),Q,J=!1;if(_.u("kevlar_remove_page_dom_on_switch")){var Z=L&&OC(L);S===Z&&(Q=this.getCurrentPage())}Q||(Q=Co(this.pagePool,S));D&&Hiu(this.pagePool.elementPoolPopulator,S);D&&!this.renderLoadingStateJobId&&(J=this.setActivePage(Q));if(Q){Z=S==="watch";var y=
S==="shorts",E=S==="learning_journey_watch";_.u("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(Q);if(Z||y||E)Q.playerData=x.playerResponse;if(y)if(_.u("web_enable_delay_shorts_sequence_call")){x.reelWatchSequenceResponse&&(x.reelWatchSequenceResponse.entries||x.reelWatchSequenceResponse.prevEntries)&&(Q.reelWatchSequenceResponse=x.reelWatchSequenceResponse);Q.currentEndpoint=x.endpoint;var P;Q.isPreviousPageShorts=!!(L==null?0:(P=L.endpoint)==null?0:P.reelWatchEndpoint);
var v,V;x.cachedSequenceParams=((v=x.endpoint)==null?void 0:(V=v.reelWatchEndpoint)==null?void 0:V.sequenceParams)||x.cachedSequenceParams||(L==null?void 0:L.cachedSequenceParams);var h,H;x.cachedSequenceProvider=((h=x.endpoint)==null?void 0:(H=h.reelWatchEndpoint)==null?void 0:H.sequenceProvider)||x.cachedSequenceProvider||(L==null?void 0:L.cachedSequenceProvider);Q.cachedSequenceParams=x.cachedSequenceParams;Q.cachedSequenceProvider=x.cachedSequenceProvider}else if(_.u("web_enable_shorts_sequence_cache_fix")){x.reelWatchSequenceResponse&&
(x.reelWatchSequenceResponse.entries||x.reelWatchSequenceResponse.prevEntries)?Q.reelWatchSequenceResponse=x.reelWatchSequenceResponse:Q.cachedReelWatchSequenceResponse&&!Q.reelWatchSequenceResponse&&(Q.reelWatchSequenceResponse=Q.cachedReelWatchSequenceResponse);x.reelWatchSequenceResponse&&(L==null?void 0:L.page)!=="shorts"&&(Q.cachedReelWatchSequenceResponse=x.reelWatchSequenceResponse);Q.currentEndpoint=x.endpoint;var k;Q.isPreviousPageShorts=!!(L==null?0:(k=L.endpoint)==null?0:k.reelWatchEndpoint)}else{x.reelWatchSequenceResponse&&
(x.reelWatchSequenceResponse.entries||x.reelWatchSequenceResponse.prevEntries)?Q.reelWatchSequenceResponse=x.reelWatchSequenceResponse:x.cachedReelWatchSequenceResponse?Q.reelWatchSequenceResponse=x.cachedReelWatchSequenceResponse:_.u("web_enable_cached_reel_sequence_fix")&&Q.cachedReelWatchSequenceResponse&&!Q.reelWatchSequenceResponse&&(Q.reelWatchSequenceResponse=Q.cachedReelWatchSequenceResponse);Q.currentEndpoint=x.endpoint;var T;Q.isPreviousPageShorts=!!(L==null?0:(T=L.endpoint)==null?0:T.reelWatchEndpoint);
x.cachedReelWatchSequenceResponse=x.reelWatchSequenceResponse||x.cachedReelWatchSequenceResponse||(L==null?void 0:L.cachedReelWatchSequenceResponse);Q.cachedReelWatchSequenceResponse=x.cachedReelWatchSequenceResponse}P=this.isDownloadsPage(x);v=this.isDownloadsPage(L);P&&!v?this.setPlayerSyncInterval(6E5):!P&&v&&this.setPlayerSyncInterval();_.u("block_all_player_prefetch_requests")||this.preparePrefetchRequest(x,Q,D,Z,y,E);IVu(_.yY().resolve(_.iy),L,x);var G;(G=_.yY().resolve(_.ZN(_.Jy)))==null||
_.DTX(G,this.getPersistentPanelSurface(S));_.Tz(_.yY().resolve(_.Rl));_.u("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(Q);D?(D=typeof Q.loadPage,D==="function"?(Q.pageContext=jdq(this.contextSwitcher,Q,Q.data!==x.response),D=function(){Q.loadPage(x.response)},this.shouldApplySlideTransition&&Q.is==="ytd-browse"&&J&&(S==="learning"||this.isDifferentBrowseId(x==null?void 0:x.endpoint,L==null?void 0:L.endpoint))?K8u(this.viewTransitionManager,D):this.shouldRunWatchNextLoadedTransition(Q,
J)?Zts(this.viewTransitionManager,D):D()):_.WI(new _.RZ("b/38014653 ",[S,
Q.is,Q.nodeName,D,Q.isAttached,L&&OC(L),this.hostElement.children.length])),_.$T("pdl")):(Q.hidden=!0,x.response.filler=!0,Q.data=x.response,this.attachPage(Q));_.MF(this.hostElement,"yt-page-data-updated",{pageType:S})}_.TG(_.WW,function(){_.u("logging_avoid_blocking_during_navigation")&&_.kRc().transition("none");var U=eps(),l=Q;if(x){var X=ADI(x),f=$js(x),N;a:{if(x.playerResponse){var z=x.playerResponse,xf;if((N=z.auxiliaryUi)==null?0:(xf=N.messageRenderers)==null?0:xf.upsellDialogRenderer){N=
z.auxiliaryUi.messageRenderers.upsellDialogRenderer;break a}}else if(x.response&&(N=x.response,(z=N.overlay)==null?0:z.upsellDialogRenderer)){N=N.overlay.upsellDialogRenderer;break a}N=void 0}var K3;var P4;xf=(K3=x.playerResponse)==null?void 0:(P4=K3.auxiliaryUi)==null?void 0:P4.messageRenderers;K3=(xf==null?void 0:xf.enforcementMessageViewModel)||(xf==null?void 0:xf.bkaEnforcementMessageViewModel);K3=(K3==null?void 0:K3.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?K3:void 0;
var kf;a:{if(x.response&&(P4=x.response,(kf=P4.overlay)==null?0:kf.commandWrapperPromoRenderer)){kf=P4.overlay.commandWrapperPromoRenderer;break a}kf=void 0}TNI(U,X,f,N,K3,kf,l)}})};
_.K.preparePrefetchRequest=function(x,L,D,S,Q,J){var Z,y,E,P,v,V,h,H,k,T,G,U,l,X,f;return _.I(function(N){if(N.nextAddress==1)return!D||!(S||Q||J)||_.u("kevlar_disable_background_prefetch")&&_.fm(_.b1N)()===0?N.return():(Z=_.Ov(L))?N.yield(Z.getPlayerPromise(),2):N.return();y=N.yieldResult;E=_.yY().resolve(_.ZN(_.NB));if(!E)return N.return();if(Q)return P=_.JK(_.cy),Y93(P,(v=x.endpoint)==null?void 0:v.reelWatchEndpoint,L.reelWatchSequenceResponse,y,E),N.return();H=(V=x.response)==null?void 0:(h=V.responseContext)==
null?void 0:h.webResponseContextExtensionData;if(!H)return N.return();l=(k=x.response)==null?void 0:(T=k.contents)==null?void 0:(G=T.twoColumnWatchNextResults)==null?void 0:(U=G.autoplay)==null?void 0:U.autoplay;X=_.yY().resolve(_.d6);f=_.JK(_.cy);FiW(f,H,y,E,X,l);_.Y2(N)})};
_.K.movePlayerToWatch=function(x){var L=this,D,S;return _.I(function(Q){D=Co(L.pagePool,"watch");S=D.getPlayerContainer();x.appendTo(S);_.Y2(Q)})};
_.K.movePlayerToShorts=function(x){var L=this,D,S,Q;return _.I(function(J){D=Co(L.pagePool,"shorts");S=D.getPlayerContainer();(Q=x)==null||Q.appendTo(S,void 0,!0);_.Y2(J)})};
_.K.getPlayerFromWatch=function(){var x=Co(this.pagePool,"watch");return _.Ov(x)};
_.K.getPlayerFromShorts=function(){var x=Co(this.pagePool,"shorts");return _.Ov(x)};
_.K.startLoadingWatch=function(){var x=this,L=Co(this.pagePool,"watch");this.renderLoadingStateJobId?(_.WW.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,_.u("web_watch_transition_enable_start_loading_watch_callsite")?Otq(this.viewTransitionManager,function(){x.renderPageLoadingState("watch")}):this.renderPageLoadingState("watch")):this.setActivePage(L,"watch")};
_.K.startLoadingShorts=function(){var x=Co(this.pagePool,"shorts");this.setActivePage(x,"shorts")};
_.K.startLoadingLearningJourney=function(){var x=Co(this.pagePool,"learning_journey_watch");this.setActivePage(x,"learning_journey_watch")};
_.K.getCurrentPage=function(){return this.currentPage};
_.K.getDestinationPageType=function(){return this.destinationPageType};
_.K.getCurrentData=function(){return this.data};
_.K.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.K.isOnShorts=function(){var x;return((x=this.currentPage)==null?void 0:x.is)==="ytd-shorts"};
_.K.isWatchPage=function(x){return!!x&&(x.is==="ytd-watch-flexy"||x.is==="ytd-watch-fixie"||x.is==="ytd-watch-grid")};
_.K.preparePage=function(x,L){var D=this,S=function(){var Z=D.pagePool.preparePage(x,D.currentPage,L);Z&&D.attachPage(Z)},Q=function(Z){_.A7(Z,L);
_.qy(Z)};
if(_.u("kevlar_enable_mss_page_modules_client")){var J=this.getModuleNameForType(x);if(J=Qaq(_.yY().resolve(_.oP),[J])){J.then(S.bind(this)).catch(Q.bind(this));return}}try{S()}catch(Z){Q(Z)}};
_.K.lazyPrepareCriticalPages=function(x,L){x=_.pB(L)||x;_.u("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(x).then(this.maybePrepareWatchPage.bind(this,x)):this.maybePrepareWatchPage(x)};
_.K.maybePrepareWatchPage=function(x){x==="watch"||x==="learning_journey_watch"&&_.u("web_watch_learning_journey_disable_lazy_pages")||_.TG(_.WW,this.preparePage.bind(this,"watch"))};
_.K.downloadPageModules=function(x){x=this.getModuleNameForType(x);var L=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);L.delete(x);var D=_.yY().resolve(_.oP);D.JSC$18631_loadModules(x);return D.JSC$18631_loadModules.apply(D,_.lP(L))};
_.K.renderPageLoadingState=function(x,L){this.preparePage(x,L);var D=Co(this.pagePool,x);D.loadingData&&(D.loadingData.endpoint=L);D.loading=!0;this.setActivePage(D,x);x!=="watch"&&x!=="learning_journey_watch"||_.MF(this.hostElement,"yt-guide-close")};
_.K.prepareForNavigation=function(x,L){var D=this;if(this.currentPage&&this.data){var S=_.pB(L)||x;this.destinationPageType=S;OC(this.data)==S&&_.MF(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((x==="watch"||x==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.WW.cancelJob(this.renderLoadingStateJobId);_.yY().resolve(_.iy).deactivate(L);_.VG(_.WW,function(){var J=D.viewTransitionManager,Z=D.currentPage;
if(J.isLockupToWatchTransitionEnabled&&J.isLockupThumbnailRegistrationEnabled&&Z)if(J.registeredLockupThumbnail)J.lockupThumbnailRegisteredFromWatchEndpoint&&_.qy(new _.RZ("Lockup thumbnail already registered from watch endpoint."));else{a:{var y=_.g(L,_.L6);if(y==null?0:y.videoId){var E="yt-lockup-view-model ."+_.Bnf(y.videoId)+" yt-thumbnail-view-model";Z=Z.querySelectorAll(E);if(Z.length===1){y=Z[0];break a}Z.length>1?_.qy(new _.RZ("Multiple LockupViewModel thumbnails found for videoId: "+y.videoId+
". Selector: "+E)):_.u("web_thumbnail_to_watch_transition_debug")&&_.qy(new _.RZ("No LockupViewModel thumbnail found for videoId: "+y.videoId+". Selector: "+E))}y=void 0}y&&(J.registeredLockupThumbnail=y,J.lockupThumbnailRegisteredFromWatchEndpoint=!0,_.lb3(J,y))}});
var Q=this.data;this.renderLoadingStateJobId=_.VG(_.WW,function(){Otq(D.viewTransitionManager,function(){if(D.data!=Q){var J=Co(D.pagePool,x);D.setActivePage(J)}else D.renderPageLoadingState(x,L);D.renderLoadingStateJobId=0})},150)}};
_.K.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var x=new _.eZ(1);this.currentPage.pageDisposeJobs.forEach(function(L){_.RU(x,L)});
this.pageDisposeJobsets.set(this.currentPage,x)}};
_.K.flushPageDisposeJobset=function(x){var L=this.pageDisposeJobsets.get(x);L&&(L.flushJobs(),this.pageDisposeJobsets.delete(x))};
_.K.onYtStopOldPlayer=function(x,L){L=L===void 0?!1:L;var D,S=_.jT("kevlar_new_stop_old_player_logic_pages");if(_.u("kevlar_check_current_page_on_stop_old_player")&&(S.length===0||this.currentPage&&S.includes(this.currentPage.is)))if(this.data&&(D=OC(this.data)),OC(x)===D&&this.currentPage&&OC(this.currentPage.data)!==D)var Q=_.Ov(this.currentPage);else D=OC(this.data),Q=Co(this.pagePool,D),Q=_.Ov(Q);else this.data&&(D=OC(this.data),Q=Co(this.pagePool,D),Q=_.Ov(Q));if(Q)if(x=OC(x),S=Co(this.pagePool,
x),S=_.Ov(S),Q==S)L&&!_.u("kevlar_disable_preemptive_player_reset")&&Q.resetForNewPlayback();else if(L=D==="watch"&&x!=="watch",!L||x==="shorts"||_.iD_()&&!oTW(this.data)&&x!=="yts-products"&&x!="mini_app"&&x!="playables"&&x!="companion-canvas")D=_.yY().resolve(_.iy),L&&D.isMiniplayerActive()&&D.pipController.getWindow()||Q.stop()};
_.K.isDifferentBrowseId=function(x,L){x=_.g(x,_.mt);L=_.g(L,_.mt);return(x==null?void 0:x.browseId)!==(L==null?void 0:L.browseId)};
_.K.getPersistentPanelSurface=function(x){switch(x){case "watch":return"WATCH";default:return"APP"}};
_.J3.Object.defineProperties(iI,{template:{configurable:!0,enumerable:!0,get:function(){return TWX()}}});
_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],iI.prototype,"ytActionHandlerBehavior",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-page-manager"})],iI);_.q(iI,"ytd-page-manager",function(){return TWX()},{mode:_.Vm("kevlar_poly_si_batch_j081")?1:2});var ef5;var fo=function(){var x=_.e.apply(this,arguments)||this;x.useListItemStyles=_.u("web_list_item_style_for_menu_items");x.systemIcons=_.u("kevlar_system_icons");return x};
_.p(fo,_.e);_.K=fo.prototype;_.K.ready=function(){this.hostElement.addEventListener("tap",_.p$(this,this.onEndpointTapExtra))};
_.K.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.K.onFocus=function(){var x;(x=_.jr(this.hostElement).querySelector("tp-yt-paper-item"))==null||x.focus()};
_.K.onEndpointTapExtra=function(x){_.MF(this.hostElement,"iron-activate");var L=this.data.navigationEndpoint;L&&_.g(L,_.IZN)&&(x.stopPropagation(),_.v$(this.hostElement,[L],this.hostElement))};
_.K.computeIcon=function(x){return x&&x.iconType?_.gB(x.iconType):""};
_.K.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.K.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.K.forceUpdateStylesOnLegacyBrowsers=function(){_.u("kevlar_legacy_browsers")&&_.uN(this.hostElement)};
fo.prototype.forceUpdateStylesOnLegacyBrowsers=fo.prototype.forceUpdateStylesOnLegacyBrowsers;fo.prototype.onFocus=fo.prototype.onFocus;_.A([_.b(_.Fz),_.r("design:type",Object)],fo.prototype,"ytdOpenPopupBehavior",void 0);_.A([_.b(_.b3l.YtConditionalRendererBehavior),_.r("design:type",Object)],fo.prototype,"ytConditionalRendererBehavior",void 0);_.A([_.b(_.NP.YtEndpointBehavior),_.r("design:type",Object)],fo.prototype,"ytEndpointBehavior",void 0);
_.A([_.F(),_.r("design:type",Object)],fo.prototype,"data",void 0);_.A([_.F({computed:"computeIcon(data.icon)",value:""}),_.r("design:type",String)],fo.prototype,"icon",void 0);_.A([_.F({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],fo.prototype,"useIcons",void 0);_.A([_.F({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.r("design:type",Boolean)],fo.prototype,"hasSeparator",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],fo.prototype,"useListItemStyles",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],fo.prototype,"systemIcons",void 0);_.A([_.mX("focus"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],fo.prototype,"onFocus",null);_.A([_.bN("useIcons","hasSeparator"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],fo.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.q(fo,"ytd-menu-navigation-item-renderer",function(){if(ef5===void 0){var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);ef5=x}x=ef5;return x},{mode:1});var RfI;var GWg=_.Dv(_.p6("DOWNLOAD",{},"Download")),C0q=_.Dv(_.p6("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),lOl=_.Dv(_.p6("RETRY",{},"Retry")),UMu=_.Dv(_.p6("PAUSE_DOWNLOADING",{},"Pause downloading")),wSG=_.Dv(_.p6("RESUME_DOWNLOAD",{},"Resume download")),oe=function(){var x=_.e.apply(this,arguments)||this;x.primaryText=GWg;x.primaryIconType="OFFLINE_DOWNLOAD";x.hasSecondaryContent=!1;x.hasSeparator=!1;x.transferState="TRANSFER_STATE_UNKNOWN";x.isVideoDeletedByUser=!1;x.isHidden=!1;x.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return x};
_.p(oe,_.e);_.K=oe.prototype;_.K.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.K.onFocus=function(){this.primaryEntry.focus()};
_.K.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.K.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.K.getRemoveAction=function(){return"ACTION_REMOVE"};
_.K.sendOfflineAction=function(x){var L=this.data.serviceEndpoint;if(L){var D=_.g(L,_.ke);D&&x&&(D.action=x);this.ytComponentBehavior.resolveCommand(L)}};
_.K.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=GWg,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=GWg;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=lOl;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=C0q;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=wSG;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=C0q;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
UMu;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=C0q;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=C0q;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=GWg,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.K.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.K.isSecondaryEntryHidden=function(x,L){return x?!0:!L};
_.K.computeHasSeparator=function(){var x;return!((x=this.data)==null||!x.hasSeparator)};
oe.prototype.showHideButton=oe.prototype.showHideButton;oe.prototype.onTransferStateChange=oe.prototype.onTransferStateChange;oe.prototype.onFocus=oe.prototype.onFocus;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],oe.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],oe.prototype,"ytdReduxBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],oe.prototype,"ytComponentBehavior",void 0);
_.A([_.F(),_.r("design:type",Object)],oe.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],oe.prototype,"primaryText",void 0);_.A([_.F(),_.r("design:type",String)],oe.prototype,"primaryIconType",void 0);_.A([_.F(),_.r("design:type",String)],oe.prototype,"primaryAction",void 0);_.A([_.F(),_.r("design:type",Object)],oe.prototype,"secondaryText",void 0);_.A([_.F(),_.r("design:type",String)],oe.prototype,"secondaryIconType",void 0);
_.A([_.F(),_.r("design:type",String)],oe.prototype,"secondaryAction",void 0);_.A([_.F(),_.r("design:type",Object)],oe.prototype,"hasSecondaryContent",void 0);_.A([_.F({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.r("design:type",Object)],oe.prototype,"hasSeparator",void 0);_.A([_.F({selector:_.i6,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.r("design:type",String)],oe.prototype,"transferState",void 0);
_.A([_.F({selector:_.W$b,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.r("design:type",Object)],oe.prototype,"isVideoDeletedByUser",void 0);_.A([_.F(),_.r("design:type",Object)],oe.prototype,"isHidden",void 0);_.A([_.F({selector:_.RyG,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.r("design:type",Object)],oe.prototype,"offlineabilityState",void 0);_.A([_.F1("#primary-entry"),_.r("design:type",Object)],oe.prototype,"primaryEntry",void 0);
_.A([_.mX("focus"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],oe.prototype,"onFocus",null);_.A([_.GV("transferState","isVideoDeletedByUser"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],oe.prototype,"onTransferStateChange",null);_.A([_.GV("offlineabilityState"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],oe.prototype,"showHideButton",null);
_.q(oe,"ytd-menu-service-item-download-renderer",function(){if(RfI===void 0){var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);RfI=x}x=RfI;return x},{mode:1});var BWW;var ae=function(){var x=_.e.apply(this,arguments)||this;x.useIcons=!1;x.systemIcons=_.u("kevlar_system_icons");x.useListItemStyles=_.u("web_list_item_style_for_menu_items");return x};
_.p(ae,_.e);_.K=ae.prototype;_.K.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.K.onFocus=function(){var x;(x=_.jr(this.hostElement).querySelector("tp-yt-paper-item"))==null||x.focus()};
_.K.onTap=function(){_.P$(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var x=this.data.serviceEndpoint,L=this.data.command;if(x){var D,S=(D=this.data)==null?void 0:D.trackingParams;D=!!_.g(x,_.nKh);S&&D&&_.Jd().dispatch(_.MU({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:S}}));this.ytComponentBehavior.resolveCommand(x)||_.yY().resolve(_.E2).resolveCommand(x,{form:{element:this.hostElement}})}L&&(this.ytComponentBehavior.resolveCommand(L)||_.v$(this.hostElement,
[L],this.hostElement))};
_.K.computeIcon=function(x){return x&&x.iconType?_.gB(x.iconType):""};
_.K.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.K.computeHasSeparator=function(){var x;return!((x=this.data)==null||!x.hasSeparator)};
_.K.forceUpdateStylesOnLegacyBrowsers=function(){_.u("kevlar_legacy_browsers")&&_.uN(this.hostElement)};
_.K.computeIsSelected=function(){var x;return!((x=this.data)==null||!x.isSelected)};
ae.prototype.forceUpdateStylesOnLegacyBrowsers=ae.prototype.forceUpdateStylesOnLegacyBrowsers;ae.prototype.onTap=ae.prototype.onTap;ae.prototype.onFocus=ae.prototype.onFocus;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],ae.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.Fz),_.r("design:type",Object)],ae.prototype,"ytdOpenPopupBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],ae.prototype,"ytComponentBehavior",void 0);
_.A([_.b(_.b3l.YtConditionalRendererBehavior),_.r("design:type",Object)],ae.prototype,"ytConditionalRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],ae.prototype,"data",void 0);_.A([_.F({computed:"computeIcon(data.icon)",value:""}),_.r("design:type",String)],ae.prototype,"icon",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],ae.prototype,"useIcons",void 0);
_.A([_.F({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.r("design:type",Boolean)],ae.prototype,"hasSeparator",void 0);_.A([_.F({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.r("design:type",Boolean)],ae.prototype,"isSelected",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],ae.prototype,"systemIcons",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],ae.prototype,"useListItemStyles",void 0);
_.A([_.mX("focus"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ae.prototype,"onFocus",null);_.A([_.mX("tap"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],ae.prototype,"onTap",null);_.A([_.bN("useIcons","hasSeparator"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ae.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.q(ae,"ytd-menu-service-item-renderer",function(){if(BWW===void 0){var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);BWW=x}x=BWW;return x},{mode:2});var Wx9;var zl=function(){return _.e.apply(this,arguments)||this};
_.p(zl,_.e);_.K=zl.prototype;_.K.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.K.onDataChanged=function(){var x=this;_.So(this,function(){x.postbox.openDialog();x.focus();_.MF(x.hostElement,"yt-refit")})};
_.K.focus=function(){this.postbox.focus()};
_.K.closePopup=function(){_.dg(this.hostElement,"yt-close-popup-action")};
_.K.onYtCommentboxDismiss=function(){this.closePopup()};
zl.prototype.onYtCommentboxDismiss=zl.prototype.onYtCommentboxDismiss;zl.prototype.onDataChanged=zl.prototype.onDataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],zl.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],zl.prototype,"data",void 0);_.A([_.F({value:function(){return _.p6("SBOX_INAPPROPRIATE_CANCEL")}}),
_.r("design:type",String)],zl.prototype,"closeButtonAriaLabel",void 0);_.A([_.F1("#postbox"),_.r("design:type",Object)],zl.prototype,"postbox",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],zl.prototype,"onDataChanged",null);_.A([_.mX("yt-commentbox-dismiss"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],zl.prototype,"onYtCommentboxDismiss",null);
_.A([_.w({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],zl);
_.q(zl,"ytd-backstage-post-dialog-popup-renderer",function(){if(Wx9!==void 0)return Wx9;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Wx9=x},{mode:1});var q_X;var XM=function(){return _.e.apply(this,arguments)||this};
_.p(XM,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],XM.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],XM.prototype,"data",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],XM);
_.q(XM,"ytd-sender-id-section-renderer",function(){if(q_X!==void 0)return q_X;var x=document.createElement("template");_.m(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sender-id-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text" class="style-scope ytd-sender-id-section-renderer">[[getSimpleString(data.text)]]</div>\n');x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);
return q_X=x},{mode:1});var Ael;var $Mg;var re3;var cK=function(){return _.e.apply(this,arguments)||this};
_.p(cK,_.e);cK.prototype.closePopup=function(){_.dg(this.hostElement,"yt-close-popup-action")};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],cK.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],cK.prototype,"data",void 0);_.A([_.oW({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],cK);
_.q(cK,"yt-community-post-section-renderer",function(){if(re3===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;$Mg===void 0&&($Mg=document.createElement("template"));var S=$Mg;D.call(L,S.content.cloneNode(!0),x.content.firstChild);re3=x}x=re3;return x},{mode:2});var NW9;var ia$;var fOX;var oAl;var aOY;var zf5;var no=function(){return _.e.apply(this,arguments)||this};
_.p(no,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],no.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],no.prototype,"data",void 0);_.A([_.oW({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],no);
_.q(no,"yt-share-start-time-with-context-renderer",function(){if(zf5===void 0){var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;aOY===void 0&&(aOY=document.createElement("template"));var S=aOY;D.call(L,S.content.cloneNode(!0),x.content.firstChild);zf5=x}x=zf5;return x},{mode:2});var tZ=function(){return _.e.apply(this,arguments)||this};
_.p(tZ,_.e);tZ.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],tZ.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],tZ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],tZ.prototype,"data",void 0);_.A([_.oW({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],tZ);
_.q(tZ,"yt-share-panel-title-v15-renderer",function(){if(oAl===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;fOX===void 0&&(fOX=document.createElement("template"));var S=fOX;D.call(L,S.content.cloneNode(!0),x.content.firstChild);oAl=x}x=oAl;return x},{mode:2});var xb=function(){return _.e.apply(this,arguments)||this};
_.p(xb,_.e);xb.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"}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],xb.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],xb.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],xb.prototype,"data",void 0);_.A([_.oW({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],xb);
_.q(xb,"yt-share-panel-header-renderer",function(){if(ia$===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;NW9===void 0&&(NW9=document.createElement("template"));var S=NW9;D.call(L,S.content.cloneNode(!0),x.content.firstChild);ia$=x}x=ia$;return x},{mode:2});var XS9;var ceg;var Ls=function(){var x=_.e.apply(this,arguments)||this;x.actionMap={"yt-open-popup-action":"onOpen"};return x};
_.p(Ls,_.e);_.K=Ls.prototype;_.K.attached=function(){this.onOpen()};
_.K.updateTimeSecs=function(x){this.currentTimeSecs=x};
_.K.computeTimeString=function(x){x=x.toString();var L=Math.floor(Number(x)/3600),D=Math.floor(Number(x)%3600%60);return(L>0?L+":":"")+_.vM(Math.floor(Number(x)%3600/60),L>0?2:1)+":"+_.vM(D,2)};
_.K.computeTimeStringA11y=function(x){return _.fJ0({seconds:x})};
_.K.getTimeParam=function(){return OXX(this.timeString)};
_.K.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var x={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},L;_.AM(_.sk(),(L=this.data)==null?void 0:L.trackingParams,x,7)};
_.K.onChangeStartAtTimestamp=function(){for(var x=this.startAtTimestamp.value.split(":"),L=0,D=1,S=x.length-1;S>=0;S--)L+=Number(x[S])*D,D*=60;this.updateTimeSecs(L);this.setTimestamp()};
_.K.onOpen=function(){var x=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var L=_.Zs();L?L.getPlayerPromise().then(function(D){D=D.getCurrentTime();x.updateTimeSecs(D)}):eNl()&&this.updateTimeSecs(eNl())};
_.K.setTimestamp=function(){var x=Math.floor(this.currentTimeSecs);_.dg(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!x,timestamp:x||""}])};
_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],Ls.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Ls.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Ls.prototype,"data",void 0);_.A([_.F({value:!1,notify:!0}),_.r("design:type",Boolean)],Ls.prototype,"isStartAtChecked",void 0);_.A([_.F(),_.r("design:type",Number)],Ls.prototype,"currentTimeSecs",void 0);
_.A([_.F({computed:"computeTimeString(currentTimeSecs)"}),_.r("design:type",String)],Ls.prototype,"timeString",void 0);_.A([_.F({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.r("design:type",String)],Ls.prototype,"timeStringA11y",void 0);_.A([_.F1("#start-at-timestamp"),_.r("design:type",Object)],Ls.prototype,"startAtTimestamp",void 0);_.A([_.oW({is:"yt-start-at-renderer",disableElementRegistration:!0})],Ls);
_.q(Ls,"yt-start-at-renderer",function(){if(ceg===void 0){var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;XS9===void 0&&(XS9=document.createElement("template"));var S=XS9;D.call(L,S.content.cloneNode(!0),x.content.firstChild);ceg=x}x=ceg;return x},{mode:2});var nAq;var tIl;var x0I=new Map([["ADD_TO_PLAYLIST","playlist_add"],["ADD_TO_REMOTE_QUEUE","add_to_queue"],["CAST_ICON","chromecast-filled"],["CAST_OUTLINE","chromecast"],["DISLIKE","dislike_outline"],["DISLIKE_SELECTED","dislike"],["ERROR_WHITE","error"],["FAVORITE","like_outline"],["LIKE","like_outline"],["LIKE_SELECTED","like"],["LOOP","music_repeat_all"],["LOOP_ONE","music_repeat_one"],["PLAYLIST_PLAY","playlists"],["QUEUE_PLAY_NEXT","playlists"],["REMOVE","delete"],["REMOVE_FROM_HISTORY","delete"],["REMOVE_FROM_PLAYLIST",
"delete"],["SHUFFLE","music_shuffle"],["SUBSCRIPTIONS","subscriptions"],["TAB_EXPLORE","explore"],["TAB_MUSIC_PREMIUM","youtube_music_monochrome"],["UNFAVORITE","like"]]),LqI=new Map([["BOOKMARK","bookmark-filled"],["CLOUD_UPLOAD","cloud_arrow_up"],["DISLIKE","dislike"],["DISLIKE_SELECTED","dislike-filled"],["ERROR_WHITE","error-filled"],["FAVORITE","like"],["INSERT_CHART_OUTLINED","bar_graph_box_vertical"],["LIKE","like"],["LIKE_SELECTED","like-filled"],["MUSIC_EXPLICIT_BADGE","music_explicit_badge-filled"],
["MUSIC_SHUFFLE","shuffle"],["PAUSE","offline_pause"],["REMOVE","delete"],["REMOVE_FROM_HISTORY","delete"],["REMOVE_FROM_PLAYLIST","delete"],["TAB_MUSIC_PREMIUM","youtube_music_monochrome"],["UNFAVORITE","like-filled"],["VOLUME_UP","volume_up"],["DISMISS_QUEUE","list_remove"]]),D0$=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var SM3={};SM3.YtBindingExpressionsBehavior={identity:_.B4,msg:function(x,L){L=L===void 0?{}:L;return _.p6(x,L,x)},
msgPlural:function(x,L){return _.mm(x,L)},
getMusicIconFromType:function(x){if(_.u("music_web_enable_icon_wil"))x=_.gB(x);else if(LqI.has(x))x="yt-sys-icons:"+LqI.get(x);else{var L=x0I.get(x)||_.gB(x).split(":")[1];L=_.uXN(L);var D;x=((D=D0$.get(x))!=null?D:"yt-sys-icons:")+L}return x}};var Q03;var Jbq;var Kq$;var Oz5=document.head,Zzq=Oz5.appendChild,ybu;if(Kq$===void 0){var I15=document.createElement("template");_.m(I15,'\x3c!--css-build:shady--\x3e<iron-iconset-svg name="socialNetworks" size="48"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="socialNetworksRound" size="60"><svg><defs></defs></svg></iron-iconset-svg>');Kq$=I15}ybu=Kq$;Zzq.call(Oz5,ybu.content);var Dm=function(){var x=_.e.apply(this,arguments)||this;x.screenLayer=7;return x};
_.p(Dm,_.e);Dm.prototype.getScreenLayer=function(){return this.screenLayer};
Dm.prototype.onTap=function(x){x&&x.detail&&(x.detail.x||x.detail.y)&&_.jr(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.jq(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(x=this.getScreenLayer(),_.MF(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:x}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.J3.Object.defineProperties(Dm.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()}}});
Dm.prototype.onTap=Dm.prototype.onTap;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Dm.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],Dm.prototype,"ytComponentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Dm.prototype,"data",void 0);_.A([_.Y("data.title"),_.r("design:type",Object),_.r("design:paramtypes",[])],Dm.prototype,"title",null);
_.A([_.Y("data.serviceName"),_.r("design:type",String),_.r("design:paramtypes",[])],Dm.prototype,"icon",null);_.A([_.mX("tap"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Dm.prototype,"onTap",null);_.A([_.oW({is:"yt-share-target-renderer",disableElementRegistration:!0})],Dm);
_.q(Dm,"yt-share-target-renderer",function(){if(Jbq===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;Q03===void 0&&(Q03=document.createElement("template"));var S=Q03;D.call(L,S.content.cloneNode(!0),x.content.firstChild);Jbq=x}x=Jbq;return x},{mode:2});var Epl;var MDW;var Ss=function(){var x=_.e.apply(this,arguments)||this;x.SHARE_TARGET_WIDTH=70;x.SHARE_TARGET_MARGIN_RIGHT=8;x.PAGE_SCROLL_SPEED=9;x.actionMap={"yt-share-panel-reset-action":"onReset_"};return x};
_.p(Ss,_.e);_.K=Ss.prototype;_.K.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.K.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.jr(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.jr(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.K.onReset_=function(){if(_.jr(this.hostElement).querySelector("#list")){var x=_.jr(this.hostElement).querySelector("#list");var L=_.jr(this.hostElement).querySelector("#list");var D=L.offsetLeft,S=L.offsetParent;S||_.nXi(L)!="fixed"||(S=_.Ac(L).documentElement);if(S){if(_.vN&&!_.h9(58)){var Q=_.KRi(S);D+=Q.left}else Number(_.uwO)>=8&&!(Number(_.uwO)>=9)&&(Q=_.KRi(S),D-=Q.left);L=_.QNi(S)?S.clientWidth-(D+L.offsetWidth):D}else L=D;TT$(x,L);this.updateScrollButtons_()}};
_.K.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.K.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.K.onScrollWheel_=function(x){x.stopPropagation();x.preventDefault();var L=sa5(_.jr(this.hostElement).querySelector("#list"));x=Math.abs(x.deltaX)>Math.abs(x.deltaY)?x.deltaX:x.deltaY;TT$(_.jr(this.hostElement).querySelector("#list"),L+x);this.updateScrollButtons_()};
_.K.smoothScrollByOnePage_=function(x){var L=_.jr(this.hostElement).querySelector("#list"),D=(Math.floor(L.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,S=sa5(L),Q=D*(x?1:-1),J=this.PAGE_SCROLL_SPEED,Z=this.updateScrollButtons_.bind(this),y=0,E;(function v(){y+=J;E=y/D*2;TT$(L,S+Q*(E<1?E*E:-E*E+4*E-2));y<D?window.requestAnimationFrame(v):Z()})()};
_.K.updateScrollButtons_=function(){var x=sa5(_.jr(this.hostElement).querySelector("#list")),L=_.jr(this.hostElement).querySelector("#list").scrollWidth-_.jr(this.hostElement).querySelector("#list").clientWidth;_.jr(this.hostElement).querySelector("#scroll-button-back").hidden=x<=0;_.jr(this.hostElement).querySelector("#scroll-button-forward").hidden=x>=L};
Ss.prototype.onScrollWheel_=Ss.prototype.onScrollWheel_;Ss.prototype.onDataChanged_=Ss.prototype.onDataChanged_;_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Ss.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],Ss.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(SM3.YtBindingExpressionsBehavior),_.r("design:type",Object)],Ss.prototype,"ytBindingExpressionsBehavior",void 0);
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Ss.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Ss.prototype,"data",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Ss.prototype,"onDataChanged_",null);_.A([_.mX("wheel"),_.r("design:type",Function),_.r("design:paramtypes",[WheelEvent]),_.r("design:returntype")],Ss.prototype,"onScrollWheel_",null);
_.A([_.oW({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],Ss);
_.q(Ss,"yt-third-party-share-target-section-renderer",function(){if(MDW===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;Epl===void 0&&(Epl=document.createElement("template"));var S=Epl;D.call(L,S.content.cloneNode(!0),x.content.firstChild);MDW=x}x=MDW;return x},{mode:2});var Qq=function(){return _.e.apply(this,arguments)||this};
_.p(Qq,_.e);Qq.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"}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Qq.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Qq.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Qq.prototype,"data",void 0);_.A([_.oW({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],Qq);
_.q(Qq,"yt-third-party-network-section-renderer",function(){if(tIl===void 0){var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;nAq===void 0&&(nAq=document.createElement("template"));var S=nAq;D.call(L,S.content.cloneNode(!0),x.content.firstChild);tIl=x}x=tIl;return x},{mode:2});_.dF(_.B(function(x){return _.M("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.M("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.M(_.Fj,{data:function(){return x.data().firstPartyItems}},{listItemViewModel:_.Ij})))},"Ki"),"first-party-network-section-view-model",{props:{data:_.pJ}});var d0g=(0,_.zF5)(_.ZW.share,{parentClickTrackingParamsSelector:function(x){return x.parentClickTrackingParams}});var Pgq=_.xI(["data:image/svg+xml;charset=UTF-8;base64,",""]),JJ=function(){var x=_.e.apply(this,arguments)||this;x.screenLayer=7;x.qrCodeEnabled=_.u("web_enable_sharing_qr_code");x.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return x};
_.p(JJ,_.e);_.K=JJ.prototype;_.K.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{senderIdSectionRenderer:"ytd-sender-id-section-renderer",thirdPartyNetworkSection:"yt-third-party-network-section-renderer",firstPartyNetworkSectionViewModel:"first-party-network-section-view-model"}}}};
_.K.attached=function(){this.JSC$20148_scroller&&(this.JSC$20148_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20148_scroller.attached&&typeof this.JSC$20148_scroller.attached==="function"&&this.JSC$20148_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.K.onDataChanged=function(){var x=this,L;(L=this.data)!=null&&L.contents&&(this.hostElement.setAttribute("links-only","true"),_.hq(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.So(this,function(){_.MF(x.hostElement,"yt-refit");x.focusSharePanelHeader()}))};
_.K.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.K.handleSetTimestamp=function(x){var L=this.shortUrl();x.isSet&&(L=_.D9(L,"t",x.timestamp));this.maybeRenderQrCode(L)};
_.K.shortUrl=function(){var x,L=(x=this.data)==null?void 0:x.contents;if(L)for(x=0;x<L.length;x++){var D=void 0,S=void 0;if((D=L[x])==null?0:(S=D.thirdPartyNetworkSection)==null?0:S.copyLinkContainer){var Q=S=D=void 0;return(Q=_.g((D=L[x])==null?void 0:(S=D.thirdPartyNetworkSection)==null?void 0:S.copyLinkContainer,YV3))==null?void 0:Q.shortUrl}}};
_.K.maybeRenderQrCode=function(x){var L=this,D,S,Q,J,Z,y,E,P,v;return _.I(function(V){if(V.nextAddress==1){D=_.jr(L.hostElement).querySelector("#qr-code");if(!L.qrCodeEnabled||!x)return D&&(D.style.display="none"),V.return();S=_.GK3(_.yY().resolve(_.ki),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});Q=document.createElement("div");return typeof S==="function"?(S(Q),V.jumpTo(2)):V.yield(S,3)}V.nextAddress!=2&&(J=V.yieldResult,J(Q));E=(Z=Q)==null?void 0:(y=Z.firstChild)==null?void 0:y.firstChild;
P=document.createElement("img");v=_.KW0(Pgq,btoa(E.outerHTML));P.onload=function(){var h={canvas:D,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:P},H=new o9W;trI(H,x);xLl(H,!1,LAs(H));var k=H.modules,T=Object.assign({},Vdl,h);k=structuredClone(k);h=k.length;var G,U=(G=T.canvas)!=null?G:document.createElement("canvas");G=T.cellSize;H=T.logo;var l,X=(l=T.logoSize)!=null?l:Math.floor(h/4);h%2!==X%2&&X++;var f=T.logoPadding,N=T.backgroundColor;l=h*G;var z=
T.width,xf=0;z&&(xf=T.padding,xf=Math.ceil(xf*l/(z-xf*2)),U.style.width=z+"px",U.style.height=z+"px");U.width!==l+xf*2&&(U.width=l+xf*2);U.height!==l+xf*2&&(U.height=l+xf*2);l=U.getContext("2d");T.autoClear&&l.clearRect(0,0,U.width,U.height);l.fillStyle=N;l.beginPath();l.roundRect(0,0,U.width,U.height,T.borderRadius);l.fill();l.save();l.translate(xf,xf);if(H)for(U=Math.floor(h-X)/2-f,f=Math.floor(h+X)/2+f,N=U;N<f;N++)for(z=U;z<f;z++)k[N][z]=!1;for(U=0;U<h;U++)for(f=0;f<h;f++)(U<7&&f<7||U<7&&f>=h-
7||U>=h-7&&f<7)&&(k[U][f]=!1);var K3;U=(K3=T.markerColor)!=null?K3:T.color;Skl(l,0,0,G,U);Skl(l,G*(h-7),0,G,U);Skl(l,0,G*(h-7),G,U);switch(T.cellStyle){case 0:K3=k;k=K3.length;U=T.cellSize;l.beginPath();for(f=0;f<k;f++)for(N=0;N<k;N++)K3[f][N]&&l.rect(f*U,N*U,U,U);l.fillStyle=T.color;l.fill();break;case 1:K3=k;k=K3.length;U=T.cellSize;f=U*T.relativeCircleSize;l.fillStyle=T.color;l.beginPath();for(T=0;T<k;T++)for(N=0;N<k;N++)K3[T][N]&&(l.beginPath(),l.ellipse((T+.5)*U,(N+.5)*U,f/2,f/2,0,0,2*Math.PI),
l.fill());l.fill();break;case 2:K3=k;k=K3.length;U=T.cellSize;l.fillStyle=T.color;T=[[1,1],[-1,1],[-1,-1],[1,-1]];l.beginPath();for(f=0;f<k;f++)for(N=0;N<k;N++)if(K3[f][N])l.roundRect(f*U,N*U,U,U,U/2),f+1<k&&K3[f+1][N]&&l.rect(f*U+U/2,N*U,U,U),N+1<k&&K3[f][N+1]&&l.rect(f*U,N*U+U/2,U,U);else{z=f*U+U/2;xf=N*U+U/2;for(var P4=0;P4<4;P4++){var kf=_.O(T[P4]),H4=kf.next().value;kf=kf.next().value;f+H4>=0&&f+H4<k&&N+kf>=0&&N+kf<k&&K3[f+H4][N]&&K3[f][N+kf]&&K3[f+H4][N+kf]&&(H4=P4*Math.PI/2,kf=U/2,l.moveTo(z+
kf*Math.cos(H4),xf+kf*Math.sin(H4)),l.arc(z,xf,U/2,H4,H4+Math.PI/2,!1),l.lineTo(z+kf*(Math.cos(H4)-Math.sin(H4)),xf+kf*(Math.cos(H4)+Math.sin(H4))),l.lineTo(z+kf*Math.cos(H4),xf+kf*Math.sin(H4)))}}l.fill()}H&&l.drawImage(H,(h-X)*G/2,(h-X)*G/2,X*G,X*G);l.restore();D.style.removeProperty("display")};
P.src=_.w8(v);_.Y2(V)})};
_.K.hasCommunityPostRenderer=function(){var x,L,D,S;return!!((x=this.data)==null?0:(L=x.header)==null?0:(D=L.sharePanelHeaderRenderer)==null?0:(S=D.communityPost)==null?0:S.communityPostSectionRenderer)};
_.K.onTapClose=function(){_.dg(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.K.getScreenLayer=function(){return this.screenLayer};
_.K.logSharePanelPage=function(){if(!_.u("enable_share_panel_navigation_logging_fix_on_web")){var x;if((x=this.data)!=null&&x.trackingParams){x=this.data.trackingParams;var L=this.parentClickTrackingParams;L=L?_.CI(L):void 0;var D=_.sk();_.we(D,21760,L,{layer:7,parentLayer:0});D.graftServerVe(x,void 0,7);_.Jd().dispatch(_.MU({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
JJ.prototype.onDataChanged=JJ.prototype.onDataChanged;_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],JJ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],JJ.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],JJ.prototype,"ytdReduxBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],JJ.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.F(),_.r("design:type",Object)],JJ.prototype,"data",void 0);_.A([_.F({value:_.p6("SBOX_INAPPROPRIATE_CANCEL")}),_.r("design:type",String)],JJ.prototype,"closeButtonAriaLabel",void 0);_.A([_.F1("yt-share-panel-header-renderer"),_.r("design:type",HTMLElement)],JJ.prototype,"header",void 0);_.A([_.F({selector:d0g.parentClickTrackingParamsSelector}),_.r("design:type",String)],JJ.prototype,"parentClickTrackingParams",void 0);_.A([_.F(),_.r("design:type",Object)],JJ.prototype,"qrCodeEnabled",void 0);
_.A([_.F1("#scroller"),_.r("design:type",Object)],JJ.prototype,"JSC$20148_scroller",void 0);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],JJ.prototype,"onDataChanged",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],JJ);
_.q(JJ,"ytd-unified-share-panel-renderer",function(){if(Ael!==void 0)return Ael;var x=document.createElement("template");_.m(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-unified-share-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-unified-share-panel-renderer">\n  <div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer">\n    <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer"></tp-yt-paper-spinner>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="onTapClose" class="style-scope ytd-unified-share-panel-renderer">\n    <yt-icon icon="close" class="style-scope ytd-unified-share-panel-renderer"></yt-icon>\n  </yt-icon-button>\n  <yt-share-panel-header-renderer id="share-panel-header" data="[[data.header.sharePanelHeaderRenderer]]" hidden="[[data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer">\n  </yt-share-panel-header-renderer>\n  <div id="contents" class="style-scope ytd-unified-share-panel-renderer"></div>\n  <canvas id="qr-code" alt="QR code" hidden="[[!qrCodeVisible]]" class="style-scope ytd-unified-share-panel-renderer">\n</canvas></tp-yt-paper-dialog-scrollable>\n');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Ael=x},{mode:1});var j0q;var Ks=function(){var x=_.e.apply(this,arguments)||this;x.modernModal=!0;return x};
_.p(Ks,_.e);Ks.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
Ks.prototype.computeShouldHideOldButtons=function(){var x;return!((x=this.data)==null?0:x.button)};
_.J3.Object.defineProperties(Ks.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var x,L;return(x=this.data)==null?void 0:(L=x.button)==null?void 0:L.buttonRenderer}}});
_.A([_.F(),_.r("design:type",Object)],Ks.prototype,"data",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Ks.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.nE.YtEventForwardingBehavior),_.r("design:type",Object)],Ks.prototype,"ytEventForwardingBehavior",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Ks.prototype,"modernModal",void 0);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Ks.prototype,"buttonRendererData",null);
_.A([_.w({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],Ks);
_.q(Ks,"ytd-modal-with-title-and-button-renderer",function(){if(j0q!==void 0)return j0q;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return j0q=x},{mode:1});var vpW;var Oi=function(){return _.e.apply(this,arguments)||this};
_.p(Oi,_.e);Oi.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.gU("page-changed",this.page))};
Oi.prototype.pageChangedForBinding=Oi.prototype.pageChangedForBinding;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Oi.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Oi.prototype,"data",void 0);_.A([_.F(),_.r("design:type",String)],Oi.prototype,"page",void 0);_.A([_.bN("page"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Oi.prototype,"pageChangedForBinding",null);
_.A([_.w({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],Oi);
_.q(Oi,"ytd-account-item-section-header-renderer",function(){if(vpW!==void 0)return vpW;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return vpW=x},{mode:1});var VDl;var Zm=function(){return _.e.apply(this,arguments)||this};
_.p(Zm,_.e);Zm.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"}}}};
Zm.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Zm.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Zm.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.HS),_.r("design:type",Object)],Zm.prototype,"ytContinuationHandlerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Zm.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!1}),_.r("design:type",Function)],Zm.prototype,"onAccountItemTap",void 0);
_.A([_.w({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],Zm);
_.q(Zm,"ytd-account-item-section-renderer",function(){if(VDl!==void 0)return VDl;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return VDl=x},{mode:1});var hi$;var Hz5;var yq=function(){return _.e.apply(this,arguments)||this};
_.p(yq,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],yq.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],yq.prototype,"data",void 0);_.A([_.w({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],yq);
_.q(yq,"ytd-accounts-dialog-header-renderer",function(){if(Hz5!==void 0)return Hz5;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Hz5=x},{mode:1});var uGg;var Ih=function(){return _.e.apply(this,arguments)||this};
_.p(Ih,_.e);Ih.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Ih.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Ih.prototype,"data",void 0);_.A([_.w({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],Ih);
_.q(Ih,"ytd-google-account-header-renderer",function(){if(uGg!==void 0)return uGg;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return uGg=x},{mode:1});var Ei=function(){return _.e.apply(this,arguments)||this};
_.p(Ei,_.e);Ei.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"}}}};
Ei.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.gU("page-changed",this.page))};
Ei.prototype.pageChangedForBinding=Ei.prototype.pageChangedForBinding;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Ei.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Ei.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Ei.prototype,"data",void 0);_.A([_.F(),_.r("design:type",String)],Ei.prototype,"page",void 0);
_.A([_.bN("page"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Ei.prototype,"pageChangedForBinding",null);_.A([_.w({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],Ei);
_.vp()(Ei,"ytd-account-section-list-renderer",function(){if(hi$===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);hi$=x}x=hi$;return x},{allowedProps:["data"],
mode:1});var gpu;var M7=function(){var x=_.e.apply(this,arguments)||this;x.enableHandlesAccountMenuSwitcher=_.u("enable_handles_account_menu_switcher");return x};
_.p(M7,_.e);M7.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
M7.prototype.dataChanged=M7.prototype.dataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],M7.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],M7.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],M7.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.A([_.F1("#avatar"),_.r("design:type",Object)],M7.prototype,"avatar",void 0);
_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],M7.prototype,"dataChanged",null);_.A([_.w({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],M7);
_.vp()(M7,"ytd-active-account-header-renderer",function(){if(gpu===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);gpu=x}x=gpu;return x},{allowedProps:["data"],
mode:1});var kfu;var pT9;var d7=function(){return _.e.apply(this,arguments)||this};
_.p(d7,_.e);d7.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
d7.prototype.onBackTap=function(){_.MF(this.hostElement,"yt-menu-back-tapped")};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],d7.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],d7.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],d7.prototype,"data",void 0);_.A([_.w({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],d7);
_.vp()(d7,"ytd-simple-menu-header-renderer",function(){if(pT9===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);pT9=x}x=pT9;return x},{allowedProps:["data"],
mode:2});var m0l;var Pl=function(){return _.e.apply(this,arguments)||this};
_.p(Pl,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Pl.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Pl.prototype,"data",void 0);_.A([_.w({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],Pl);
_.q(Pl,"ytd-comment-video-thumbnail-header-renderer",function(){if(m0l!==void 0)return m0l;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return m0l=x},{mode:1});var bzl;var js=function(){return _.e.apply(this,arguments)||this};
_.p(js,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],js.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],js.prototype,"data",void 0);_.A([_.w({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],js);
_.q(js,"ytd-abuse-type-selector-renderer",function(){if(bzl!==void 0)return bzl;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return bzl=x},{mode:1});var YMq;var Fql=(0,_.zF5)(_.ZW.reportChannelAbuse,{isVideoIdSelectedSelector:function(x,L){return L in x.selectedVideoIds},
additionalContextSelector:function(x){return x.additionalContext},
impersonatedChannelUrlSelector:function(x){return x.impersonatedChannelUrl},
reportChannelAbuseSelector:function(x){return x}});var vl=function(){return _.e.apply(this,arguments)||this};
_.p(vl,_.e);vl.prototype.attached=function(){var x=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){x.additionalContextInput.focusTextInput()})};
vl.prototype.handleAdditionalContextChanged=function(){var x=this;_.LI(this,"ytd-report-channel-additional-context-update",function(){x.ytdReduxBehavior.dispatch(_.MU({type:"ADDITIONAL_CONTEXT_UPDATED",payload:x.additionalContext}))},300)};
vl.prototype.updateAdditionalContextFromBinding=function(x){this.additionalContext=x.detail.value};
vl.prototype.handleAdditionalContextChanged=vl.prototype.handleAdditionalContextChanged;_.A([_.b(_.EG),_.r("design:type",Object)],vl.prototype,"ytdReduxBehavior",void 0);_.A([_.F(),_.r("design:type",String)],vl.prototype,"additionalContext",void 0);_.A([_.F({selector:Fql.additionalContextSelector}),_.r("design:type",String)],vl.prototype,"additionalContextRedux",void 0);_.A([_.F(),_.r("design:type",Object)],vl.prototype,"data",void 0);
_.A([_.F1("yt-text-input-form-field-renderer"),_.r("design:type",Object)],vl.prototype,"additionalContextInput",void 0);_.A([_.bN("additionalContext"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],vl.prototype,"handleAdditionalContextChanged",null);_.A([_.w({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],vl);
_.q(vl,"ytd-report-channel-modal-additional-context-renderer",function(){if(YMq!==void 0)return YMq;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return YMq=x},{mode:1});var s0$;var Vq=function(){var x=_.e.apply(this,arguments)||this;x.nextButtonDisabled=null;x.submitEndpoint=null;x.navigationEndpoint=null;x.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return x};
_.p(Vq,_.e);_.K=Vq.prototype;_.K.computeNextButtonData=function(x,L,D){var S={};L&&(S.navigationEndpoint=L);D&&(S.serviceEndpoint=D);x&&x.buttonRenderer&&_.wk.extend(S,x.buttonRenderer);return S};
_.K.handleReportChannelModalDisableNextButtonAction=function(x){this.setNextButtonIsDisabled(x)};
_.K.handleReportFormEndpointUpdateAction=function(x){this.setNextButtonIsDisabled(!!x.disableSubmitButton);this.resetEndpointData();x.submitEndpoint?this.submitEndpoint=x.submitEndpoint:x.submitNavigationEndpoint&&(this.navigationEndpoint=x.submitNavigationEndpoint)};
_.K.handleSignalActionSubmitForm=function(){var x,L=Object.keys(((x=this.reportChannelAbuseForm)==null?void 0:x.selectedVideoIds)||{}),D;x=((D=this.reportChannelAbuseForm)==null?void 0:D.additionalContext)||"";var S;D=((S=this.reportChannelAbuseForm)==null?void 0:S.impersonatedChannelUrl)||"";var Q;if((Q=this.data)==null?0:Q.submitEndpoint){L={impersonated_channel_url:D,text:x,video_ids:L};var J;_.yY().resolve(_.E2).resolveCommand((J=this.data)==null?void 0:J.submitEndpoint,{form:Object.assign({},
L,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.K.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.K.onYtServiceRequestError=function(x){this.setNextButtonIsDisabled(!1);_.nX(this.hostElement,x.detail.error.message)};
_.K.setNextButtonIsDisabled=function(x){this.set("data.nextButton.buttonRenderer.isDisabled",x)};
_.K.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
Vq.prototype.onYtServiceRequestError=Vq.prototype.onYtServiceRequestError;Vq.prototype.onYtServiceRequestCompleted=Vq.prototype.onYtServiceRequestCompleted;_.A([_.F(),_.r("design:type",Object)],Vq.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],Vq.prototype,"nextButtonDisabled",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],Vq.prototype,"ytdReduxBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],Vq.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Vq.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Vq.prototype,"submitEndpoint",void 0);_.A([_.F(),_.r("design:type",Object)],Vq.prototype,"navigationEndpoint",void 0);_.A([_.F({selector:Fql.reportChannelAbuseSelector}),_.r("design:type",Object)],Vq.prototype,"reportChannelAbuseForm",void 0);
_.A([_.mX("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Vq.prototype,"onYtServiceRequestCompleted",null);_.A([_.mX("yt-service-request-error"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Vq.prototype,"onYtServiceRequestError",null);_.A([_.w({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],Vq);
_.q(Vq,"ytd-report-channel-modal-footer-renderer",function(){if(s0$!==void 0)return s0$;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return s0$=x},{mode:1});var TJg;var hJ=function(){var x=_.e.apply(this,arguments)||this;x.boundOnTapDismissButton=function(){x.closePopup()};
return x};
_.p(hJ,_.e);hJ.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
hJ.prototype.handleDataChanged=function(){_.xZ(this.hostElement)};
hJ.prototype.closePopup=function(){_.dg(this.hostElement,"yt-close-popup-action")};
hJ.prototype.handleDataChanged=hJ.prototype.handleDataChanged;_.A([_.F(),_.r("design:type",Object)],hJ.prototype,"boundOnTapDismissButton",void 0);_.A([_.F(),_.r("design:type",Object)],hJ.prototype,"data",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],hJ.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],hJ.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],hJ.prototype,"handleDataChanged",null);_.A([_.w({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],hJ);
_.q(hJ,"ytd-report-channel-modal-header-renderer",function(){if(TJg!==void 0)return TJg;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return TJg=x},{mode:1});var eil;var Hl=function(){var x=_.e.apply(this,arguments)||this;x.autoValidate=!1;x.invalid=!1;x.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return x};
_.p(Hl,_.e);_.K=Hl.prototype;_.K.attached=function(){var x=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){x.channelUrlInput.focusTextInput()})};
_.K.disableNextButton=function(x){_.dg(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[x])};
_.K.handleImpersonatedChannelUrlChanged=function(){var x=this;this.disableNextButton(!0);this.invalid=!1;_.LI(this,"ytd-report-channel-impersonated-channel-update",function(){var L=x.impersonatedChannelUrl.trim();x.ytdReduxBehavior.dispatch(_.MU({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:L}));var D;((D=x.data)==null?0:D.submitEndpoint)&&L&&_.yY().resolve(_.E2).resolveCommand(x.data.submitEndpoint,{form:{impersonated_channel_url:L,element:x.hostElement}})},500)};
_.K.handleModifyReportFormCommand=function(x){this.invalid=this.get("modifyReportFormCommand.action",x)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.K.updateInvalidFromBinding=function(x){this.invalid=x.detail.value};
_.K.updateImpersonatedChannelUrlFromBinding=function(x){this.impersonatedChannelUrl=x.detail.value};
Hl.prototype.handleImpersonatedChannelUrlChanged=Hl.prototype.handleImpersonatedChannelUrlChanged;_.A([_.b(_.EG),_.r("design:type",Object)],Hl.prototype,"ytdReduxBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],Hl.prototype,"ytActionHandlerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Hl.prototype,"autoValidate",void 0);_.A([_.F(),_.r("design:type",Object)],Hl.prototype,"invalid",void 0);
_.A([_.F(),_.r("design:type",String)],Hl.prototype,"impersonatedChannelUrl",void 0);_.A([_.F({selector:Fql.impersonatedChannelUrlSelector}),_.r("design:type",String)],Hl.prototype,"impersonatedChannelUrlRedux",void 0);_.A([_.F(),_.r("design:type",Object)],Hl.prototype,"data",void 0);_.A([_.F1("#text-input"),_.r("design:type",Object)],Hl.prototype,"channelUrlInput",void 0);
_.A([_.bN("impersonatedChannelUrl"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Hl.prototype,"handleImpersonatedChannelUrlChanged",null);_.A([_.w({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],Hl);
_.q(Hl,"ytd-report-channel-modal-impersonation-renderer",function(){if(eil!==void 0)return eil;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return eil=x},{mode:1});var RiG;var GfG;var uU=function(){return _.e.apply(this,arguments)||this};
_.p(uU,_.e);uU.prototype.onCheckboxToggled=function(x){var L,D,S=(D=_.g((L=this.data)==null?void 0:L.video,_.E6))==null?void 0:D.videoId;S&&this.ytdReduxBehavior.dispatch(x.target.checked?_.MU({type:"VIDEO_SELECTED",payload:S}):_.MU({type:"VIDEO_UNSELECTED",payload:S}))};
uU.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.J3.Object.defineProperties(uU.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var x,L=(x=this.data)==null?void 0:x.video;if(!L)return{};var D;x=(D=_.g(L,_.E6))==null?void 0:D.navigationEndpoint;if(!x)return L;_.g(x==null?void 0:x.commandMetadata,_.gg)&&(_.g(x.commandMetadata,_.gg).ignoreNavigation=!0);return L}}});
_.A([_.F({reflectToAttribute:!0,selector:Fql.isVideoIdSelectedSelector,selectorArgs:["data.video.videoRenderer.videoId"]}),_.r("design:type",Boolean)],uU.prototype,"checked",void 0);_.A([_.F(),_.r("design:type",Object)],uU.prototype,"data",void 0);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],uU.prototype,"video",null);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],uU.prototype,"ytRendererBehavior",void 0);
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],uU.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],uU.prototype,"ytdReduxBehavior",void 0);_.A([_.w({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],uU);
_.q(uU,"ytd-selectable-video-renderer",function(){if(GfG!==void 0)return GfG;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return GfG=x},{mode:1});var g7=function(){var x=_.e.apply(this,arguments)||this;x.monitorScroll=!0;return x};
_.p(g7,_.e);g7.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],g7.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],g7.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],g7.prototype,"data",void 0);_.A([_.w({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],g7);
_.q(g7,"ytd-selectable-video-list-renderer",function(){if(RiG!==void 0)return RiG;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return RiG=x},{mode:1});var Cgl;_.BD("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var kb=function(){return _.e.apply(this,arguments)||this};
_.p(kb,_.e);kb.prototype.onChange=function(x){if(x=_.K$(x).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.u("kevlar_command_handler_migration_killswitch"))_.v$(this.hostElement,x,this.hostElement);else{x=_.O(x);for(var L=x.next();!L.done;L=x.next())this.ytComponentBehavior.resolveCommand(L.value)}};
kb.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
kb.prototype.updateDataToggledFromBinding=function(x){this.set("data.toggled",x.detail.value)};
_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],kb.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],kb.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],kb.prototype,"data",void 0);_.A([_.F({computed:"isEnabled(data)"}),_.r("design:type",Boolean)],kb.prototype,"enabled",void 0);_.A([_.w({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],kb);
_.q(kb,"ytd-toggle-item-renderer",function(){if(Cgl!==void 0)return Cgl;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return Cgl=x},{mode:1});var l1X;var U0s;var wTq;var ps=function(){var x=_.e.apply(this,arguments)||this;x.setVisible=!1;x.boundOnSubmitButtonClick=function(){x.onSubmitButtonClick()};
x.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return x};
_.p(ps,_.e);ps.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}}}}}};
ps.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
ps.prototype.onSubmitButtonClick=function(){var x;((x=this.data)==null?0:x.submitEndpoint)&&!_.u("enable_ytc_refunds_submit_form_signal_action")&&_.jq(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
ps.prototype.handleSignalActionSubmitForm=function(){var x;((x=this.data)==null?0:x.submitEndpoint)&&_.jq(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.J3.Object.defineProperties(ps.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.hiddenByDefault)&&!this.setVisible}}});
_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],ps.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],ps.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],ps.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],ps.prototype,"setVisible",void 0);_.A([_.F(),_.r("design:type",Object)],ps.prototype,"data",void 0);
_.A([_.F(),_.r("design:type",Object)],ps.prototype,"surveyFeedbackData",void 0);_.A([_.F(),_.r("design:type",Object)],ps.prototype,"boundOnSubmitButtonClick",void 0);_.A([_.F({reflectToAttribute:!0}),_.Y("data","setVisible"),_.r("design:type",Object),_.r("design:paramtypes",[])],ps.prototype,"visibilityHidden",null);_.A([_.oW({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],ps);
_.q(ps,"yt-flow-footer-renderer",function(){if(wTq===void 0){var x=document.createElement("template");_.m(x,'\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>');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;U0s===void 0&&(U0s=document.createElement("template"));var S=U0s;D.call(L,S.content.cloneNode(!0),x.content.firstChild);wTq=x}x=wTq;return x},{mode:2});var BJl=(0,_.zF5)(_.ZW.ypc,{surveyFeedbackDataSelector:function(x){return x.surveyFeedbackData}});var mY=function(){return _.e.apply(this,arguments)||this};
_.p(mY,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],mY.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],mY.prototype,"ytdReduxBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],mY.prototype,"data",void 0);_.A([_.F({selector:BJl.surveyFeedbackDataSelector}),_.r("design:type",Object)],mY.prototype,"surveyFeedbackData",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],mY);
_.q(mY,"ytd-flow-footer-renderer",function(){if(l1X!==void 0)return l1X;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return l1X=x},{mode:_.Vm("kevlar_poly_si_batch_j025")?1:2});var Wqq;var qMl;var bU=function(){var x=_.e.apply(this,arguments)||this;x.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return x};
_.p(bU,_.e);_.K=bU.prototype;_.K.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.WD("multiPageMenuSectionItems")}}};
_.K.handleHideEnclosingAction_=function(x){if(this.data&&this.data.items)for(var L=0;L<this.data.items.length;L++){var D=this.data.items[L].notificationRenderer;if(D&&D.notificationId==x.hideEnclosingAction.notificationId){this.splice("data.items",L,1);_.dg(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.K.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.hq(this.hostElement,"hidden",!0)};
_.K.updateMenu_=function(x){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&x&&!x.doNotRefreshInbox){x=this.data.continuations;for(var L=0;L<x.length;L++)if(x[L].invalidationContinuationData){var D=void 0;var S=(D=x[L].invalidationContinuationData)==null?void 0:D.continuation;break}x=_.wk.clone(this.data.continuationUpdateEndpoint||null);x.continuation=S;x.click_tracking_params=this.data.trackingParams;_.jq(this.hostElement,[x])}};
_.K.onServiceRequestCompleted_=function(x,L){if(this.data&&(x=L.actions)){L=0;for(var D=x.length;L<D;L++){var S=_.g(x[L],_.YxA);if(!S)break;if((S.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||S.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&S.continuationItems&&this.data.items){var Q=this.data.items.length-1;this.data.items[Q].continuationItemRenderer&&(S=["data.items",Q,1].concat(S.continuationItems),this.splice.apply(this,S))}}}};
bU.prototype.onServiceRequestCompleted_=bU.prototype.onServiceRequestCompleted_;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],bU.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],bU.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],bU.prototype,"ytActionHandlerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],bU.prototype,"data",void 0);
_.A([_.mX("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.S2]),_.r("design:returntype")],bU.prototype,"onServiceRequestCompleted_",null);_.A([_.oW({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],bU);
_.vp()(bU,"yt-multi-page-menu-section-renderer",function(){if(qMl===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;Wqq===void 0&&(Wqq=document.createElement("template"));var S=Wqq;D.call(L,S.content.cloneNode(!0),x.content.firstChild);qMl=x}x=qMl;return x},{allowedProps:["data"],
mode:2});var Ab3;var $0g;var Yb=function(){return _.e.apply(this,arguments)||this};
_.p(Yb,_.e);Yb.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.J3.Object.defineProperties(Yb.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.progress)==null?0:this.data.progress*100}}});
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Yb.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Yb.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Yb.prototype,"data",void 0);_.A([_.Y("data.progress"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Yb.prototype,"showProgressBar",null);
_.A([_.Y("data.progress"),_.r("design:type",Number),_.r("design:paramtypes",[])],Yb.prototype,"progress",null);_.A([_.oW({is:"yt-flow-header-renderer",disableElementRegistration:!0})],Yb);
_.q(Yb,"yt-flow-header-renderer",function(){if($0g===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;Ab3===void 0&&(Ab3=document.createElement("template"));var S=Ab3;D.call(L,S.content.cloneNode(!0),x.content.firstChild);$0g=x}x=$0g;return x},{mode:2});var rbq;var NJ5;var Fc=function(){return _.e.apply(this,arguments)||this};
_.p(Fc,_.e);Fc.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Fc.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Fc.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Fc.prototype,"data",void 0);_.A([_.oW({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],Fc);
_.q(Fc,"yt-post-confirmation-flow-step-renderer",function(){if(NJ5===void 0){var x=document.createElement("template");_.m(x,'\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>');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;rbq===void 0&&(rbq=document.createElement("template"));var S=rbq;D.call(L,S.content.cloneNode(!0),x.content.firstChild);NJ5=x}x=NJ5;return x},{mode:2});var iz3;var f13;var si=function(){return _.e.apply(this,arguments)||this};
_.p(si,_.e);
si.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"}}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],si.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],si.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],si.prototype,"data",void 0);_.A([_.oW({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],si);
_.q(si,"yt-refund-confirmation-flow-step-renderer",function(){if(f13===void 0){var x=document.createElement("template");_.m(x,'\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>');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;iz3===void 0&&(iz3=document.createElement("template"));var S=iz3;D.call(L,S.content.cloneNode(!0),x.content.firstChild);f13=x}x=f13;return x},{mode:2});var opG=_.B(function(x){var L=x.data;return _.M("yt-profile-badge-view-model",{class:"profileBadgeViewModelHost"},_.M("div",{class:"profileBadgeViewModelBadgeIconContainer"},_.M(_.Ku,{data:function(){return{thumbnails:[{url:L().badgeIconUrl}]}},
alt:"",targetWidth:36,targetHeight:36})),_.M("div",{class:"profileBadgeViewModelContent"},_.M("div",{class:"profileBadgeViewModelBadgeDescription"},function(){return L().badgeDesc}),_.M(_.d,{cond:function(){return L().badgeSubtitle},
then:function(){return _.M("div",{class:"profileBadgeViewModelBadgeSubtitle"},function(){return L().badgeSubtitle})}})))},"Li");
opG.idomCompat=!0;var a1G=_.B(function(x){var L=x.data;return _.M("yt-comment-interaction-view-model",{el:_.Zt(_.AL(function(){return L().rendererContext})),
class:"ytCommentInteractionViewModelHost"},_.M("div",{class:"ytCommentInteractionViewModelFrame",role:"button","aria-label":function(){return L().onTapA11yLabel},
"on:keydown":_.YCw(),tabindex:0},_.M("div",{class:"ytCommentInteractionViewModelHeader"},_.M("div",{class:"ytCommentInteractionViewModelVideoTitle"},function(){return L().headerPrefix},' "',function(){return L().videoTitle}),_.M("div",{class:"ytCommentInteractionViewModelVideoTitleQuote"},'"')),_.M("div",{class:"ytCommentInteractionViewModelContent"},_.M("div",{class:"ytCommentInteractionViewModelCommentContent"},function(){return L().commentContent}),_.M("div",{class:"ytCommentInteractionViewModelChevron"},
_.M(_.Ku,{data:function(){return{thumbnails:[{url:L().chevronUrl}]}},
alt:"",targetWidth:18,targetHeight:18})))))},"Mi");
a1G.idomCompat=!0;var ziI=_.B(function(x){var L=x.data;return _.M("yt-shared-subscription-view-model",{class:"ytSharedSubscriptionViewModelHost"},_.M(_.Fj,{data:function(){return L().avatar}},{avatarViewModel:_.O0}),_.M("div",{class:"ytSharedSubscriptionViewModelChannelName"},function(){return L().channelName}))},"Ni");
ziI.idomCompat=!0;var xA5=_.B(function(x){var L=x.data;x={};return _.M("yt-profile-info-view-model",{class:_.gF("ytProfileInfoViewModelHost",(x.ytProfileInfoViewModelWithVideoShelf=function(){return L().videosHorizontalShelf},x))},_.M(XTX,{profileInfo:L}),_.M(_.Fj,{data:function(){return L().videosHorizontalShelf}},{horizontalShelfViewModel:function(D){return _.M("div",{class:"ytProfileInfoViewModelVideoShelfContainer"},_.M(_.MG,{data:D.data}))}}),_.M(_.d,{cond:function(){return L().comments},
then:function(){return _.M(cbs,{profileInfo:L})}}),_.M(_.d,{cond:function(){return L().sharedSubscriptionsTitle},
then:function(){return _.M(_.d,{cond:function(){return L().subscriptionsAccessButtonCommand},
then:function(){return _.M(npX,{profileInfo:L})},
else:function(){return _.M(tDl,{profileInfo:L})}})}}))},"Oi");
xA5.idomCompat=!0;var cbs=_.B(function(x){var L=x.profileInfo;return _.M("div",{class:"ytProfileInfoViewModelActivity"},_.M("div",{class:"ytProfileInfoViewModelHeader"},_.M("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return L().commentsInteractionTitle})),_.M(_.Fj,{data:function(){return L().comments}},{commentInteractionViewModel:function(D){return _.M("div",{class:"ytProfileInfoViewModelActivity"},_.M(a1G,{data:D.data}))}}))},"Pi"),npX=_.B(function(x){var L=x.profileInfo;
return _.M("div",{class:"ytProfileInfoViewModelSubSection"},_.M("div",{class:"ytProfileInfoViewModelSubHeader"},_.M(_.lr,{command:function(){return L().subscriptionsAccessButtonCommand},
className:"ytProfileInfoViewModelAnotherHeader"},_.M("div",{class:"ytProfileInfoViewModelSectionTitleModern"},function(){return L().sharedSubscriptionsTitle}),_.M("div",null,_.M(_.Fj,{data:function(){return L().subscriptionsAccessButton}},{buttonViewModel:_.qP})))),_.M(L4s,{sharedSubscriptions:function(){var D;
return((D=L().sharedSubscriptions)==null?void 0:D.slice(0,5))||[]}}))},"Qi"),tDl=_.B(function(x){var L=x.profileInfo;
return _.M("div",{class:"ytProfileInfoViewModelSubSection"},_.M("div",{class:"ytProfileInfoViewModelSubHeader"},_.M("h2",{class:"ytProfileInfoViewModelSectionTitle"},function(){return L().sharedSubscriptionsTitle})),_.M(L4s,{sharedSubscriptions:function(){var D;
return((D=L().sharedSubscriptions)==null?void 0:D.slice(0,5))||[]}}))},"Ri"),L4s=_.B(function(x){return _.M("div",{class:"ytProfileInfoViewModelSubs"},_.M(_.Fj,{data:x.sharedSubscriptions},{sharedSubscriptionViewModel:function(L){return _.M("div",{class:"ytProfileInfoViewModelSub"},_.M(ziI,{data:L.data}))}}))},"Si"),XTX=_.B(function(x){var L=x.profileInfo;
return _.M("div",{class:"ytProfileInfoViewModelActivity"},_.M(_.R1,{each:function(){return[L().profileBadgeInfoYtWide,L().profileBadgeInfoChannelWide].filter(function(D){return!!D})},
keyBy:"INDEX"},function(D){return _.M(_.I1,null,_.M("div",{class:"ytProfileInfoViewModelHeader"},_.M("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return D().profileSectionTitle}),_.M("div",{class:"ytProfileInfoViewModelSectionDesc"},_.M("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var S;
return(S=D().commentBadge)==null?void 0:S.commentDesc}),_.M(_.d,{cond:function(){var S;
return(S=D().commentBadge)==null?void 0:S.blackHeartDesc},
then:function(){return _.M("div",{class:"ytProfileInfoViewModelSectionDivider"},"\u2022")}}),_.M("div",{class:"ytProfileInfoViewModelSectionHeartIcon"},_.M(_.Ku,{data:function(){var S;
return{thumbnails:[{url:(S=D().commentBadge)==null?void 0:S.blackHeartIconUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.M("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var S;return(S=D().commentBadge)==null?void 0:S.blackHeartDesc}))),_.M("div",{class:"ytProfileInfoViewModelBadge"},_.M(_.R1,{each:function(){return D().badges||[]}},function(S){return _.M(opG,{data:S})})))}))},"Ti");var DAY=_.B(function(x){var L=x.data;var D=function(){return L().profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD"};
return _.M("yt-profile-card-view-model",{class:"ytProfileCardViewModelHost",style:"overflow: hidden"},_.M(_.Fj,{data:function(){return L().profileIdentityInfo}},{profileIdentityInfoViewModel:function(S){return _.M(_.J6$,{data:S.data,
hideDivider:D,isChannelInfoCard:D})},
profileInfoViewModel:xA5}),_.M(_.Fj,{data:function(){return L().profileInfo}},{profileIdentityInfoViewModel:_.J6$,
profileInfoViewModel:xA5}))},"Ui");
DAY.idomCompat=!0;_.dF(DAY,"yt-profile-card-view-model",{props:{data:_.pJ}});var Ts=function(){var x=_.e.apply(this,arguments)||this;x.enableFocusFix=_.u("music_web_enable_focus_on_setting_menu_fix")&&_.rO("IS_MOBILE_WEB",!1);x.covered=!1;x.hideMenu=!1;x.isCommentNotificationOnProfileCard=!1;x.scrolledByTouch=!1;x.disableBackdropFilter=_.u("web_disable_backdrop_filter");x.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return x};
_.p(Ts,_.e);_.K=Ts.prototype;
_.K.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"}}}};
_.K.ready=function(){var x=this;this.JSC$20249_containerElement.addEventListener("scroll",function(){x.ytRendererBehavior.markDirty()})};
_.K.attributeChanged=function(x,L){x==="menu-style"&&_.dg(this.hostElement,"yt-multi-page-menu-closed-action",[L])};
_.K.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.p$(this,this.focusOnStampFinished))};
_.K.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.p$(this,this.focusOnStampFinished))};
_.K.reset=function(){this.closeJobId&&(_.WW.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.K.focusOnStampFinished=function(x){x.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.p$(this,this.focusOnStampFinished)),this.doFocus())};
_.K.doFocus=function(){var x=_.erh(this.sectionsElement);x.length&&x[0].focus()};
_.K.computeMenuStyle=function(x){return x?x.toLowerCase().replace(/_/g,"-"):""};
_.K.computeIsCommentNotificationOnProfileCard=function(x){return _.u("enable_profile_cards_on_comments")&&x.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.K.computeHideMenu=function(x,L){return x||!(!L||!L.showLoadingSpinner)};
_.K.onPopupClosed=function(){this.isPopUpOpen=!1;_.dg(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.K.onPopupOpened=function(x,L){this.isPopUpOpen=!0;L.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.MF(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.MU({type:"CHANNEL_REPORT_RESET"})))};
_.K.onYtNavigate=function(x,L){this.shouldCloseOnNavigateEvent(L.endpoint)&&_.dg(this.hostElement,"yt-close-all-popups-action")};
_.K.handleEndpoint=function(x){x=_.g(x,_.JM);!this.isCommentNotificationOnProfileCard&&x&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$20249_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.K.handleActions=function(x){for(var L=0,D=x.length;L<D;L++){var S=_.g(x[L],TUG);S&&this.handleGetMultiPageMenuAction(S);(S=_.g(x[L],_.YxA))&&this.handleAppendContinuationItemsAction(S)}};
_.K.onServiceRequestSentOrCompleted=function(x,L){x.detail&&x.detail.endpoint&&this.handleEndpoint(x.detail.endpoint);L.actions&&this.handleActions(L.actions)};
_.K.handleGetMultiPageMenuAction=function(x){var L=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.jr(this.submenuElement).appendChild(L);(x=x.menu.multiPageMenuRenderer)&&this.logSubmenu(x);L.data=x;L.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.K.handleAppendContinuationItemsAction=function(x){if(this.data&&x.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&x.continuationItems&&this.data.sections){var L=this.data.sections.length-1;this.data.sections[L].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),L--);if(this.data.sections[L].multiPageMenuNotificationSectionRenderer&&x.continuationItems){x=_.O(x==null?void 0:x.continuationItems);for(var D=x.next();!D.done;D=x.next())if(D=D.value,_.g(D,DXX)){var S=
void 0,Q=void 0,J=void 0,Z=void 0,y=void 0;((S=this)==null?0:(Q=S.data)==null?0:(J=Q.sections)==null?0:(Z=J[L])==null?0:(y=Z.multiPageMenuNotificationSectionRenderer)==null?0:y.items)&&this.push("data.sections."+L+".multiPageMenuNotificationSectionRenderer.items",D)}else if(_.g(D,_.voQ)||_.g(D,_.SK))this.push("data.sections",D),L++}}};
_.K.logSubmenu=function(x){if(!_.u("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var L=this.ytRendererBehavior.getScreenLayer(),D=_.A3(L),S=_.qu(L);if((x=x.trackingParams)&&D&&S){var Q=_.CI(x);_.u("combine_ve_grafts")?_.sk().graftServerVe(x,S,L):_.XI(D,S,Q)}}};
_.K.emptySubmenuContainer=function(){for(var x=_.jr(this.submenuElement);x.firstChild;)x.removeChild(x.firstChild)};
_.K.onMenuBackTap=function(x){_.MF(this.hostElement,"yt-submenu-closed");x.stopPropagation()};
_.K.onSubmenuClosed=function(x){_.K$(x)!==this.hostElement&&(this.covered=!1,_.MF(this.hostElement,"yt-refit"),x.stopPropagation())};
_.K.onRetrieveLocation=function(x,L){L.hasComments&&(L.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),x.stopPropagation())};
_.K.shouldCloseOnNavigateEvent=function(x){if(!x)return!0;if(_.g(x,_.iSr)||_.g(x,_.fFh)||_.g(x,_.N1B)||_.g(x,_.oR))return!1;var L;return((L=_.g(x==null?void 0:x.commandMetadata,_.gg))==null?0:L.ignoreNavigation)?!1:!0};
_.K.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.K.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.K.refitAfterRender=function(){var x=this;_.So(this,function(){_.MF(x.hostElement,"yt-refit")})};
Ts.prototype.refitAfterRender=Ts.prototype.refitAfterRender;Ts.prototype.onRetrieveLocation=Ts.prototype.onRetrieveLocation;Ts.prototype.onSubmenuClosed=Ts.prototype.onSubmenuClosed;Ts.prototype.onMenuBackTap=Ts.prototype.onMenuBackTap;Ts.prototype.onServiceRequestSentOrCompleted=Ts.prototype.onServiceRequestSentOrCompleted;Ts.prototype.onYtNavigate=Ts.prototype.onYtNavigate;Ts.prototype.onPopupOpened=Ts.prototype.onPopupOpened;Ts.prototype.onPopupClosed=Ts.prototype.onPopupClosed;
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Ts.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.nE.YtEventForwardingBehavior),_.r("design:type",Object)],Ts.prototype,"ytEventForwardingBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Ts.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],Ts.prototype,"ytdReduxBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Ts.prototype,"data",void 0);
_.A([_.F(),_.r("design:type",Object)],Ts.prototype,"enableFocusFix",void 0);_.A([_.F(),_.r("design:type",Object)],Ts.prototype,"covered",void 0);_.A([_.F({computed:"computeHideMenu(covered, data)"}),_.r("design:type",Object)],Ts.prototype,"hideMenu",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.r("design:type",String)],Ts.prototype,"menuStyle",void 0);
_.A([_.F({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.r("design:type",Object)],Ts.prototype,"isCommentNotificationOnProfileCard",void 0);_.A([_.F(),_.r("design:type",Boolean)],Ts.prototype,"isPopUpOpen",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Ts.prototype,"scrolledByTouch",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Ts.prototype,"disableBackdropFilter",void 0);
_.A([_.F1("#sections"),_.r("design:type",HTMLElement)],Ts.prototype,"sectionsElement",void 0);_.A([_.F1("#spinner"),_.r("design:type",HTMLElement)],Ts.prototype,"spinnerElement",void 0);_.A([_.F1("#header"),_.r("design:type",HTMLElement)],Ts.prototype,"headerElement",void 0);_.A([_.F1("#container"),_.r("design:type",HTMLElement)],Ts.prototype,"JSC$20249_containerElement",void 0);_.A([_.F1("#submenu"),_.r("design:type",HTMLElement)],Ts.prototype,"submenuElement",void 0);
_.A([_.mX("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Ts.prototype,"onPopupClosed",null);_.A([_.mX("yt-popup-opened"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],Ts.prototype,"onPopupOpened",null);_.A([_.mX("yt-navigate"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],Ts.prototype,"onYtNavigate",null);
_.A([_.mX("yt-service-request-completed"),_.mX("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.S2]),_.r("design:returntype")],Ts.prototype,"onServiceRequestSentOrCompleted",null);_.A([_.mX("yt-menu-back-tapped"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Ts.prototype,"onMenuBackTap",null);
_.A([_.mX("yt-submenu-closed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Ts.prototype,"onSubmenuClosed",null);_.A([_.mX("yt-retrieve-location"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],Ts.prototype,"onRetrieveLocation",null);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Ts.prototype,"refitAfterRender",null);
_.A([_.w({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],Ts);
_.q(Ts,"ytd-multi-page-menu-renderer",function(){if(kfu!==void 0)return kfu;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return kfu=x},{mode:1});var Sd$;var es=function(){var x=_.e.apply(this,arguments)||this;x.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return x};
_.p(es,_.e);_.K=es.prototype;_.K.created=function(){this.showTooltips=!0};
_.K.computeAccessibility_=function(x){return this.get("accessibility.accessibilityData",x)||null};
_.K.onTap=function(){var x=_.P$(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(x&&x.length===1&&x[0])_.dg(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var L;if((L=this.data)==null?0:L.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var D;((D=this.data)==null?0:D.menuRequest)&&_.jq(this.hostElement,[this.data.menuRequest])}}};
_.K.handleTopbarMenuClosedAction=function(x){var L,D;(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(x)===((L=this.data)==null?void 0:(D=L.icon)==null?void 0:D.iconType)&&this.toggleIconState(!1)};
_.K.toggleIconState=function(x){_.u("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=x)};
_.K.handleUpdateTopbarAvatarAction=function(x){var L;x=(L=_.g(x,kMl))==null?void 0:L.avatarUrl;var D,S;L=(D=this.data)==null?void 0:(S=D.avatar)==null?void 0:S.thumbnails;x&&L&&(D={thumbnails:[Object.assign({},L[0],{url:x})]},this.set("data.avatar",D))};
_.J3.Object.defineProperties(es.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.jr(this.hostElement).querySelector("#button")}}});
es.prototype.onTap=es.prototype.onTap;_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],es.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],es.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.Fz),_.r("design:type",Object)],es.prototype,"ytdOpenPopupBehavior",void 0);_.A([_.b(_.sLB.YtButtonBehavior),_.r("design:type",Object)],es.prototype,"ytButtonBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],es.prototype,"data",void 0);
_.A([_.F1("yt-icon-button#button"),_.r("design:type",Object)],es.prototype,"iconButton",void 0);_.A([_.mX("tap"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],es.prototype,"onTap",null);_.A([_.w({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],es);
_.vp()(es,"ytd-topbar-menu-button-renderer",function(){if(Sd$===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);Sd$=x}x=Sd$;return x},{allowedProps:["data"],
mode:1});var Qgq;var Rh=function(){return _.e.apply(this,arguments)||this};
_.p(Rh,_.e);Rh.prototype.getSelected=function(){return this.reasons.selected};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Rh.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Rh.prototype,"data",void 0);_.A([_.F1("#reasons"),_.r("design:type",Object)],Rh.prototype,"reasons",void 0);_.A([_.w({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],Rh);
_.q(Rh,"ytd-ad-feedback-content",function(){if(Qgq!==void 0)return Qgq;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Qgq=x},{mode:1});var Jfg;var Gs=function(){return _.e.apply(this,arguments)||this};
_.p(Gs,_.e);_.K=Gs.prototype;_.K.onPopupOpened=function(){_.dg(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.K.computeConfirmButton=function(x){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:x.confirmLabel}};
_.K.computeCancelButton=function(x){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:x.cancelLabel}};
_.K.onConfirmTap=function(){var x=this.content.getSelected();x!==void 0&&(x=this.data.reasons[x].endpoint)&&(_.yY().resolve(_.E2).resolveCommand(x,{form:{element:this.hostElement}}),_.dg(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.K.sendFeedbackSubmitToastAction=function(){var x;(x=this.data)!=null&&x.completionMessage&&(x=_.Zv(this.data.completionMessage),_.dg(this.hostElement,"yt-open-popup-action",[x,this]))};
_.K.onCancelTap=function(){_.dg(this.hostElement,"yt-close-popup-action")};
Gs.prototype.onPopupOpened=Gs.prototype.onPopupOpened;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Gs.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Gs.prototype,"data",void 0);_.A([_.F1("#content"),_.r("design:type",Object)],Gs.prototype,"content",void 0);_.A([_.mX("yt-popup-opened"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Gs.prototype,"onPopupOpened",null);
_.A([_.w({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],Gs);
_.q(Gs,"ytd-ad-feedback-renderer",function(){if(Jfg!==void 0)return Jfg;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Jfg=x},{mode:1});var K45;var Cs=function(){return _.e.apply(this,arguments)||this};
_.p(Cs,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Cs.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Cs.prototype,"data",void 0);_.A([_.w({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],Cs);
_.q(Cs,"ytd-ad-info-dialog-content",function(){if(K45!==void 0)return K45;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return K45=x},{mode:1});var O5l;var lU=function(){return _.e.apply(this,arguments)||this};
_.p(lU,_.e);lU.prototype.computeConfirmButton=function(x){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:x.confirmLabel}};
lU.prototype.onConfirmTap=function(){_.dg(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
lU.prototype.computeShouldShowTitle=function(){var x;return!((x=this.data)==null||!x.title)};
lU.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.yY().resolve(_.E2).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
lU.prototype.onPopupClosed=lU.prototype.onPopupClosed;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],lU.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],lU.prototype,"data",void 0);_.A([_.mX("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],lU.prototype,"onPopupClosed",null);_.A([_.w({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],lU);
_.q(lU,"ytd-ad-info-dialog-renderer",function(){if(O5l!==void 0)return O5l;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return O5l=x},{mode:1});var Z5I;var Ui=function(){var x=_.e.apply(this,arguments)||this;x.actionButtonClass="action-button";x.dismissButtonId="dismiss-button";x.dialogDismiss=!0;return x};
_.p(Ui,_.e);_.K=Ui.prototype;_.K.computeInPlayer=function(x){return(x==null?void 0:x.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.K.computedLogo=function(){var x,L;return this.isDarkTheme()?(x=this.data)==null?void 0:x.logoDark:(L=this.data)==null?void 0:L.logo};
_.K.computedHeaderImage=function(){var x,L;return this.isDarkTheme()?(x=this.data)==null?void 0:x.headerImageDark:(L=this.data)==null?void 0:L.headerImage};
_.K.computeLogoIconId=function(){var x,L,D,S=(x=this.computedLogo())==null?void 0:(L=x.sources)==null?void 0:(D=L[0])==null?void 0:D.height;return S&&S%31===0?"logo-icon-with-padding":"logo-icon"};
_.K.computeLogoIconHeight=function(){var x,L,D,S=(x=this.computedLogo())==null?void 0:(L=x.sources)==null?void 0:(D=L[0])==null?void 0:D.height;return S&&S%31===0?"31":"24"};
_.K.onPopupClosed=function(){_.yY().resolve(_.fR).dispose()};
_.K.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.K.onShow=function(){this.inPlayer&&_.k8(6);this.titleElement.focus()};
_.K.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var x=0;x<this.data.impressionEndpoints.length;x++){var L=_.g(this.data.impressionEndpoints[x],_.ii);L&&this.ytComponentBehavior.resolveCommand(L)}};
_.K.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.dg(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.J3.Object.defineProperties(Ui.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var x,L;return!((x=this.data)==null||!x.headerImageDark)&&!((L=this.data)==null||!L.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.secondaryButton)}}});
Ui.prototype.onPopupClosed=Ui.prototype.onPopupClosed;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Ui.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],Ui.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.hz.YtVisibilityBehavior),_.r("design:type",Object)],Ui.prototype,"ytVisibilityBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Ui.prototype,"data",void 0);
_.A([_.F(),_.r("design:type",Object)],Ui.prototype,"actionButtonClass",void 0);_.A([_.F(),_.r("design:type",Object)],Ui.prototype,"dismissButtonId",void 0);_.A([_.F(),_.r("design:type",Object)],Ui.prototype,"dialogDismiss",void 0);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Ui.prototype,"hasHeaderImage",null);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Ui.prototype,"hasPremiumButton",null);
_.A([_.F({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.r("design:type",Boolean)],Ui.prototype,"inPlayer",void 0);_.A([_.F1("#dismiss-button"),_.r("design:type",HTMLElement)],Ui.prototype,"dismissButton",void 0);_.A([_.F1("#title"),_.r("design:type",HTMLElement)],Ui.prototype,"titleElement",void 0);_.A([_.mX("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Ui.prototype,"onPopupClosed",null);
_.A([_.w({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],Ui);
_.q(Ui,"ytd-enforcement-message-view-model",function(){if(Z5I!==void 0)return Z5I;var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Z5I=x},{mode:1});var yfl;var IIg;var w7=function(){var x=_.e.apply(this,arguments)||this;x.TEST_ONLY={immediateValidation:function(){x.immediateValidation()},
onValidationResponse:function(L){x.onValidationResponse(L)},
onGenerateHandleFromNameResponse:function(L){x.onGenerateHandleFromNameResponse(L)}};
return x};
_.p(w7,_.e);_.K=w7.prototype;_.K.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.K.validate=function(){this.immediateValidation()};
_.K.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.K.setHandleInputValue=function(x){this.handleDir=this.getHandleDir(x);this.handleInput.value=x;this.validationState={status:"PENDING"};this.immediateValidation()};
_.K.getHandleDir=function(x){var L=x===""&&!1;return(L=_.Pvd.test.call(_.Pvd,x))?"rtl":"ltr"};
_.K.onDataChanged=function(){var x,L;this.handleDir=this.getHandleDir((L=(x=this.data)==null?void 0:x.handle)!=null?L:"");var D;this.validationState=((D=this.data)==null?0:D.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var S;((S=this.data)==null?0:S.validateOnInit)&&this.immediateValidation()};
_.K.stopPropagation=function(x){x.stopPropagation()};
_.K.onInput=function(){var x;this.handleDir=this.getHandleDir((x=this.handleInput.value)!=null?x:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.K.onFocusout=function(x){this.handleInput.contains(x.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.K.delayedValidation=function(){var x,L;this.debouncedValidation((L=(x=this.data)==null?void 0:x.validationDelayMs)!=null?L:1E3)};
_.K.immediateValidation=function(){this.debouncedValidation(0)};
_.K.debouncedValidation=function(x){var L=this;_.LI(this,"debouncedValidation",function(){var D,S=L.staticValidation((D=L.handleInput.value)!=null?D:"");if(S!==void 0)L.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:S};else{var Q;if((Q=L.data)!=null&&Q.validateChannelHandleCommand){L.validationState={status:"LOADING"};var J;L.ytComponentBehavior.resolveCommand(L.data.validateChannelHandleCommand,{form:{handle:(J=L.handleInput.value)!=null?J:""},commandController:{onSuccess:function(Z,
y){L.onValidationResponse(y)},
onServerError:function(Z,y){L.onValidationServerError(y)}}})}else L.handleUnexpectedValidationError(new _.RZ("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",L.data))}},x)};
_.K.staticValidation=function(x){var L;if(((L=this.data)==null?void 0:L.channelHandleStaticValidationParams)!==void 0){L=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(x)&&L.validValueRegexpErrorMessage!==void 0)return L.validValueRegexpErrorMessage;if(L.minLength!==void 0&&x.length<L.minLength&&L.minLengthErrorMessage!==void 0)return L.minLengthErrorMessage;if(L.maxLength!==void 0&&x.length>L.maxLength&&L.maxLengthErrorMessage!==void 0)return L.maxLengthErrorMessage}};
_.K.onValidationResponse=function(x){var L=_.g(x.result,pGY);L===void 0?this.handleUnexpectedValidationError(new _.RZ("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",x)):this.handleValidationResultRenderer(L)};
_.K.onValidationServerError=function(x){this.handleUnexpectedValidationError(new _.RZ("ValidateChannelHandle request failed.",x))};
_.K.handleValidationResultRenderer=function(x){if(x.handle===void 0)this.handleUnexpectedValidationError(new _.RZ("ChannelHandleValidationResultRenderer does not contain handle.",x));else if(x.handle===this.handleInput.value)switch(x.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:x.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:x.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.RZ("Unrecognized ChannelHandleValidationResult",x));break;default:_.Nh(x.result)}};
_.K.handleUnexpectedValidationError=function(x){var L;this.validationState={status:"UNKNOWN",handle:(L=this.handleInput.value)!=null?L:""};_.qy(x)};
_.K.stopEventPropagation=function(x){x.stopPropagation()};
_.K.updateHandleOnChannelNameInputChange=function(x){if(!this.wasEdited){var L,D;this.debouncedGenerateHandleFromName(x,(D=(L=this.data)==null?void 0:L.validationDelayMs)!=null?D:1E3)}};
_.K.debouncedGenerateHandleFromName=function(x,L){var D=this;_.LI(this,"debouncedGenerateHandleFromName",function(){var S;(S=D.data)!=null&&S.validateChannelHandleCommand?D.ytComponentBehavior.resolveCommand(D.data.validateChannelHandleCommand,{form:{name:x},commandController:{onSuccess:function(Q,J){D.onGenerateHandleFromNameResponse(J)},
onServerError:function(Q,J){_.qy(new _.RZ("Error calling GenerateHandleFromName",J))}}}):_.qy(new _.RZ("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",D.data))},L)};
_.K.onGenerateHandleFromNameResponse=function(x){this.wasEdited||((x=_.g(x.result,mKl))?this.setHandleInputValue(x.handle):_.qy(new _.RZ("Invalid results when generate handle from name")))};
_.J3.Object.defineProperties(w7.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var x;if(x=this.validationState)x=this.validationState,x=x.status==="OK"||x.status==="UNKNOWN";if(x)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var x;if(((x=this.validationState)==null?void 0:x.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 x,L=(x=this.channelHandleEntity)==null?void 0:x.handleEdit;this.handleDir=this.getHandleDir(L!=null?L:"");return L}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var x,L;if(((x=this.data)==null?void 0:(L=x.channelHandleStaticValidationParams)==null?void 0:L.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
w7.prototype.stopEventPropagation=w7.prototype.stopEventPropagation;w7.prototype.onDataChanged=w7.prototype.onDataChanged;w7.prototype.applyHandleEdit=w7.prototype.applyHandleEdit;w7.prototype.onValueChanged=w7.prototype.onValueChanged;_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],w7.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],w7.prototype,"ytdReduxBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],w7.prototype,"data",void 0);
_.A([_.F(),_.r("design:type",Boolean)],w7.prototype,"wasEdited",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",String)],w7.prototype,"handleDir",void 0);_.A([_.F1("#handle-input"),_.r("design:type",Object)],w7.prototype,"handleInput",void 0);_.A([_.F(),_.Y("validationState"),_.r("design:type",Object),_.r("design:paramtypes",[])],w7.prototype,"value",null);
_.A([_.bN("value"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],w7.prototype,"onValueChanged",null);_.A([_.Y("validationState"),_.r("design:type",Object),_.r("design:paramtypes",[])],w7.prototype,"errorIndicator",null);_.A([_.F({reflectToAttribute:!0}),_.Y("errorIndicator"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],w7.prototype,"borderErrorIndicator",null);
_.A([_.F({selectorArgs:["data.channelHandleEntityKey"],selector:function(x,L){return _.u6(x.entities,"channelHandle",L)}}),
_.r("design:type",Object)],w7.prototype,"channelHandleEntity",void 0);_.A([_.Y("channelHandleEntity"),_.r("design:type",Object),_.r("design:paramtypes",[])],w7.prototype,"handleEdit",null);_.A([_.bN("handleEdit"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],w7.prototype,"applyHandleEdit",null);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],w7.prototype,"onDataChanged",null);
_.A([_.Y("data.channelHandleStaticValidationParams.validValueRegexp"),_.r("design:type",Object),_.r("design:paramtypes",[])],w7.prototype,"validValueRegexp",null);_.A([_.mX("yt-service-request-sent"),_.mX("yt-service-request-completed"),_.mX("yt-service-request-error"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],w7.prototype,"stopEventPropagation",null);_.A([_.w({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],w7);
_.q(w7,"ytd-channel-handle-input-renderer",function(){if(IIg!==void 0)return IIg;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return IIg=x},{mode:_.Vm("kevlar_poly_si_batch_j025")?1:2});var Bl=function(){var x=_.e.apply(this,arguments)||this;x.data=null;x.errorMessage=null;x.isLoading=!0;x.hideContainer=!1;x.enableNewChannelCreationOnIdForAll=_.u("enable_new_channel_creation_for_id4all");x.actionMap={"yt-image-updated-action":"handleImageUpdatedAction","yt-image-selection-error-action":"handleImageSelectionErrorAction","yt-image-selection-reset-error-action":"handleImageSelectionResetErrorAction","yt-show-caller-popup-action":"showContainer"};x.testOnly={setErrorMessage:function(L){x.resetErrorState();
x.setErrorState(L)}};
return x};
_.p(Bl,_.e);_.K=Bl.prototype;_.K.created=function(){this.logScreenVe()};
_.K.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")};
_.K.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var x;((x=this.zeroStepErrorMessageEntity)==null?0:x.value)&&this.set("errorMessage",_.Dv(this.zeroStepErrorMessageEntity.value))};
_.K.onCreateTap=function(){var x=this;if(this.data&&this.data.channelCreationEndpoint){var L,D;if(!((L=this.data.createChannelButton)==null?0:(D=L.buttonRenderer)==null?0:D.isDisabled)){var S;if((S=this.nameInput)!=null&&S.value){this.setLoadingState();var Q,J;L=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(Q=this.handleInput)==null?void 0:Q.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((J=this.handleInput)==null?void 0:J.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:L,commandController:{onSuccess:function(Z,y){x.onChannelCreationEndpointSuccess(y);x.obakeImageSource&&_.Uh("channelCreatedWithObakeImage",{imageSourceType:x.obakeImageSource})},
onServerError:function(){x.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.K.endpointRequiresServiceRequestAction=function(x){return!!_.g(x,_.ly)||!!_.g(x,kMl)};
_.K.isNavigateAction=function(x){var L;return!!_.g(x,_.Be)||!!_.g((L=_.g(x,FwG))==null?void 0:L.command,_.Be)};
_.K.isPlaylistAction=function(x){return!!_.g(x,_.Kv)||!!_.g(x,_.MJ)};
_.K.onChannelCreationEndpointSuccess=function(x){if(x.createChannelError){var L;this.setErrorState((L=x.createChannelError)==null?void 0:L.errorMessage);this.handleInput&&this.handleInput.validate()}else{x.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(x.navigationEndpoint);if(x.actions){L=_.O(x.actions);for(var D=L.next();!D.done;D=L.next())if(D=D.value,this.endpointRequiresServiceRequestAction(D)&&this.ytComponentBehavior.resolveCommand(D),this.isNavigateAction(D)){var S=void 0;D=_.g((S=
_.g(D,FwG))==null?void 0:S.command,_.Be);S=void 0;this.isPlaylistAction((S=D)==null?void 0:S.endpoint)&&(_.dg(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),S=void 0,this.ytComponentBehavior.resolveCommand((S=D)==null?void 0:S.endpoint))}}x.actions&&x.actions.some(function(Q){var J;return _.g(Q,_.Be)||_.g((J=_.g(Q,FwG))==null?void 0:J.command,_.Be)})||_.dg(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.K.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.K.onCancelTap=function(){var x,L,D;if(!((x=this.data)==null?0:(L=x.cancelButton)==null?0:(D=L.buttonRenderer)==null?0:D.isDisabled)){var S,Q,J;x=(S=this.data)==null?void 0:(Q=S.cancelButton)==null?void 0:(J=Q.buttonRenderer)==null?void 0:J.command;if(!x||!_.g(x,_.PXw)){var Z;this.nameInput&&((Z=this.data)==null?0:Z.name)&&(this.nameInput.value=this.data.name);var y;this.handleInput&&((y=this.data)==null?0:y.channelHandleInput)&&(this.handleInput.data=_.g(this.data.channelHandleInput,bfq));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.K.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.K.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.K.onClearProfilePhotoTap=function(){var x,L,D;((x=this.data)==null?0:(L=x.clearProfilePhotoButton)==null?0:(D=L.buttonRenderer)==null?0:D.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.K.onEditAvatarTap=function(){var x,L,D;((x=this.data)==null?0:(L=x.editAvatarButton)==null?0:(D=L.buttonRenderer)==null?0:D.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.K.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)};
_.K.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var x;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((x=this.data)==null?0:x.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.K.setErrorState=function(x){this.resetErrorState();if(x)this.set("errorMessage",x);else{var L;if((L=this.zeroStepErrorMessageEntity)==null?0:L.value)this.set("errorMessage",_.Dv(this.zeroStepErrorMessageEntity.value));else{var D;((D=this.data)==null?0:D.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.K.fetchImageBlobWithAlr=function(x,L){L=L===void 0?5:L;var D=this,S,Q,J,Z,y;return _.I(function(E){switch(E.nextAddress){case 1:return E.yield(fetch(x,{method:"GET",mode:"cors"}),2);case 2:S=E.yieldResult;if(S.ok){E.jumpTo(3);break}if(L===0)throw Error();Q=D.addJitter(Math.pow(2,5-L));return E.yield(new Promise(function(P){setTimeout(P,Q*1E3)}),4);
case 4:return E.return(D.fetchImageBlobWithAlr(x,L-1));case 3:if(!S.headers.get("content-type").split(";").some(function(P){return P.trim()==="text/plain"})){E.jumpTo(5);
break}J=D;Z=J.fetchImageBlobWithAlr;return E.yield(S.text(),6);case 6:return E.return(Z.call(J,E.yieldResult,L-1));case 5:return E.yield(S.blob(),7);case 7:return y=E.yieldResult,E.return(y)}})};
_.K.addJitter=function(x){var L=x*.3*Math.random();Math.random()>.5&&(L*=-1);return x+L};
_.K.openProfilePicturePicker=function(){var x=this,L,D,S,Q,J,Z;return _.I(function(y){if(y.nextAddress==1){L=x.data.scottyUploadUrl;if(!L)return y.return();D=document.documentElement.hasAttribute("dark");S=document.body.style.colorScheme;D&&(document.body.style.colorScheme="dark");Q=eju(RjG(T_I(kP$(D?"dark":"light")),function(E){var P,v,V,h,H;return _.I(function(k){if(k.nextAddress==1)return P=_.D9(aw3(new Tx(E.photoUrl,!1)).build(),"alr","yes"),x.obakeImageSource=x.pictureChangeSourceToObakeImageSourceType(E.photoSource),
_.HH(k,2),x.setLoadingState(),k.yield(x.fetchImageBlobWithAlr(P),4);if(k.nextAddress!=2)return v=k.yieldResult,V=new FileReader,V.addEventListener("load",function(){var T,G,U,l,X,f;return _.I(function(N){if(N.nextAddress==1){if(v.size>15728640)return x.setErrorState((T=x.data)==null?void 0:T.imageSizeErrorMessage),_.qy(Error("Al")),N.return();if(!V.result)return x.setErrorState((G=x.data)==null?void 0:G.genericImageLoadErrorMessage),_.qy(Error("Bl")),N.return();U=V.result;_.HH(N,2);return N.yield(ZX9(v,
L),4)}if(N.nextAddress!=2)return l=N.yieldResult,x.handleImageUpdatedAction(U,l),x.resetErrorState(),_.nH(N,0);X=_.mW(N);x.setErrorState((f=x.data)==null?void 0:f.uploadErrorMessage);if(X instanceof Error)_.BI(X);else{var z=new _.RZ(JSON.stringify(X));_.BI(z)}_.Y2(N)})}),V.readAsDataURL(v),_.nH(k,0);
h=_.mW(k);x.setErrorState((H=x.data)==null?void 0:H.genericImageLoadErrorMessage);h instanceof Error?_.BI(h):_.WI(new _.RZ(JSON.stringify(h)));_.Y2(k)})}),function(){x.hideContainer=!1;
document.body.style.colorScheme=S});
_.HH(y,2);return((J=x.data)==null?0:J.shouldViewChannelCreationFormForSupex)?y.yield(Q.openPicker("profile-picture/art-selection"),5):y.yield(Q.openPicker(),5)}if(y.nextAddress!=2)return _.nH(y,0);_.mW(y);x.setErrorState((Z=x.data)==null?void 0:Z.selectImageErrorMessage);_.Y2(y)})};
_.K.pictureChangeSourceToObakeImageSourceType=function(x){switch(x){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.K.logScreenVe=function(){_.we(_.sk(),124448)};
_.K.graftServerVe=function(){var x=_.qu(),L,D,S=(L=this.data)==null?void 0:(D=L.loggingDirectives)==null?void 0:D.trackingParams;S&&x&&(this.channelCreationFormVe=_.sk().graftServerVe(S,x),x={visualElement:this.channelCreationFormVe},_.Yi().reportShown(x))};
_.K.isNameChanged=function(x){var L;return((L=this.data)==null?void 0:L.name)!==x};
_.K.isHandleChanged=function(x){var L,D=_.g((L=this.data)==null?void 0:L.channelHandleInput,bfq);return D&&x?D.handle!==x:!1};
_.K.handleImageUpdatedAction=function(x,L){this.hideContainer=!1;this.previewDataUrl=x;this.encryptedBlobId=L};
_.K.handleImageSelectionErrorAction=function(x){this.hideContainer=!1;this.setErrorState(x)};
_.K.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.K.showContainer=function(){this.hideContainer=!1};
_.K.maybeWipeZeroStepErrorMessage=function(){var x,L=(x=this.data)==null?void 0:x.zeroStepErrorMessageEntityKey,D;L&&((D=this.zeroStepErrorMessageEntity)==null?0:D.value)&&this.ytdReduxBehavior.dispatch(_.TR("stringEntity",L,{key:L,value:""}))};
_.J3.Object.defineProperties(Bl.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 x;return((x=this.photoThumbnail)==null?0:x.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 x;return!((x=this.data)==null||!x.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null?void 0:x.descriptionInfo}}});
Bl.prototype.dataChanged=Bl.prototype.dataChanged;_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],Bl.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],Bl.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],Bl.prototype,"ytdReduxBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Bl.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],Bl.prototype,"errorMessage",void 0);
_.A([_.F(),_.r("design:type",Object)],Bl.prototype,"isLoading",void 0);_.A([_.F(),_.r("design:type",String)],Bl.prototype,"previewDataUrl",void 0);_.A([_.F(),_.r("design:type",Number)],Bl.prototype,"obakeImageSource",void 0);_.A([_.F(),_.r("design:type",Object)],Bl.prototype,"hideContainer",void 0);_.A([_.F1("#title-input"),_.r("design:type",Object)],Bl.prototype,"nameInput",void 0);_.A([_.F1("#handle-input"),_.r("design:type",Object)],Bl.prototype,"handleInput",void 0);
_.A([_.F(),_.r("design:type",Boolean)],Bl.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.A([_.F({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.cOw}),_.r("design:type",Object)],Bl.prototype,"zeroStepErrorMessageEntity",void 0);_.A([_.Y("data","data.isDefaultProfilePhoto","previewDataUrl"),_.r("design:type",Object),_.r("design:paramtypes",[])],Bl.prototype,"photoThumbnail",null);
_.A([_.Y("data","data.isDefaultProfilePhoto","photoThumbnail"),_.r("design:type",Object),_.r("design:paramtypes",[])],Bl.prototype,"userSetPhotoThumbnailUrl",null);_.A([_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Bl.prototype,"hideProfilePhotoButtonLayer",null);_.A([_.F({reflectToAttribute:!0}),_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Bl.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.A([_.GV("data","zeroStepErrorMessageEntity"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Bl.prototype,"dataChanged",null);_.A([_.F({reflectToAttribute:!0}),_.Y("data.descriptionInfo","zeroStepErrorMessageEntity"),_.r("design:type",Object),_.r("design:paramtypes",[])],Bl.prototype,"description",null);_.A([_.w({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],Bl);
_.q(Bl,"ytd-channel-creation-dialog-renderer",function(){if(yfl!==void 0)return yfl;var x=document.createElement("template");_.m(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-creation-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-channel-creation-dialog-renderer" hidden$="[[hideContainer]]">\n  <div class="popup-header style-scope ytd-channel-creation-dialog-renderer">\n    <yt-formatted-string id="title" class="popup-header-title style-scope ytd-channel-creation-dialog-renderer" text="[[data.title]]">\n    </yt-formatted-string>\n  </div>\n  <div class="channel-creation-description style-scope ytd-channel-creation-dialog-renderer" hidden="[[!enableNewChannelCreationOnIdForAll]]">\n    <yt-formatted-string id="description-info" hidden="[[!description]]" text="[[description]]" class="style-scope ytd-channel-creation-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div class="profile-picture-container style-scope ytd-channel-creation-dialog-renderer">\n    <div class="profile-picture style-scope ytd-channel-creation-dialog-renderer">\n      <yt-img-shadow class="profile-photo style-scope ytd-channel-creation-dialog-renderer" height="128" thumbnail="[[photoThumbnail]]" width="128">\n      </yt-img-shadow>\n    </div>\n  </div>\n  <div class="profile-photo-button-layer style-scope ytd-channel-creation-dialog-renderer" hidden="[[hideProfilePhotoButtonLayer]]">\n    <div class="profile-photo-button-container style-scope ytd-channel-creation-dialog-renderer">\n      <ytd-button-renderer data="[[data.clearProfilePhotoButton.buttonRenderer]]" on-click="onClearProfilePhotoTap" class="style-scope ytd-channel-creation-dialog-renderer">\n      </ytd-button-renderer>\n      <ytd-button-renderer data="[[data.editAvatarButton.buttonRenderer]]" hidden="[[!data.editAvatarButton]]" on-click="onEditAvatarTap" class="style-scope ytd-channel-creation-dialog-renderer">\n      </ytd-button-renderer>\n    </div>\n    <yt-formatted-string class="optional-tag style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.profilePhotoOptionalTag]]" text="[[data.profilePhotoOptionalTag]]">\n    </yt-formatted-string>\n  </div>\n  <div class="name-and-disclaimer-container style-scope ytd-channel-creation-dialog-renderer">\n    <div class="profile-name style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.isNameEditable]]">\n      <tp-yt-paper-input id="title-input" class="input style-scope ytd-channel-creation-dialog-renderer" label="[[data.nameLabel]]" maxlength="50" required="" use-v2-underline="" value="[[data.name]]" on-input="onChannelNameInput"></tp-yt-paper-input>\n      <template is="dom-if" restamp="" if="[[data.channelHandleInput]]" on-dom-change="toggleCreateChannelButton" class="style-scope ytd-channel-creation-dialog-renderer">\n        <ytd-channel-handle-input-renderer id="handle-input" data="[[data.channelHandleInput.channelHandleInputRenderer]]" on-value-changed="toggleCreateChannelButton" class="style-scope ytd-channel-creation-dialog-renderer">\n        </ytd-channel-handle-input-renderer>\n      </template>\n    </div>\n    <div class="readonly-profile-name style-scope ytd-channel-creation-dialog-renderer" hidden="[[data.isNameEditable]]">\n      [[data.name]]\n    </div>\n    <div class="error-container style-scope ytd-channel-creation-dialog-renderer" hidden="[[!errorMessage]]">\n      <yt-formatted-string class="error style-scope ytd-channel-creation-dialog-renderer" text="[[errorMessage]]"></yt-formatted-string>\n    </div>\n    <div class="disclaimer-layer style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.additionalInfos]]">\n      <div class="disclaimer-layer-paragraphs-container style-scope ytd-channel-creation-dialog-renderer">\n        <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope ytd-channel-creation-dialog-renderer">\n          <yt-formatted-string respect-html-dir="" text="[[item]]" class="style-scope ytd-channel-creation-dialog-renderer"></yt-formatted-string>\n        </template>\n      </div>\n    </div>\n    <div class="disclaimer-layer style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.disclaimer]]">\n      <div class="style-scope ytd-channel-creation-dialog-renderer">\n        <yt-formatted-string class="warm-welcome-disclaimer style-scope ytd-channel-creation-dialog-renderer" respect-html-dir="" text="[[data.disclaimer]]">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div hidden="[[!data.infos]]" class="style-scope ytd-channel-creation-dialog-renderer">\n      <template is="dom-repeat" items="[[data.infos]]" class="style-scope ytd-channel-creation-dialog-renderer">\n        <div class="disclaimer-layer disclaimer-layer-no-icon style-scope ytd-channel-creation-dialog-renderer">\n          <yt-formatted-string respect-html-dir="" text="[[item]]" class="style-scope ytd-channel-creation-dialog-renderer"></yt-formatted-string>\n        </div>\n      </template>\n    </div>\n  </div>\n  <div class="button-layer style-scope ytd-channel-creation-dialog-renderer">\n    <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="onCancelTap" class="style-scope ytd-channel-creation-dialog-renderer">\n    </ytd-button-renderer>\n    <ytd-button-renderer id="create-channel-button" data="[[data.createChannelButton.buttonRenderer]]" on-click="onCreateTap" class="style-scope ytd-channel-creation-dialog-renderer">\n    </ytd-button-renderer>\n  </div>\n  <div class="spinner-container style-scope ytd-channel-creation-dialog-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-creation-dialog-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return yfl=x},{mode:1});var EMl;var $b=function(){var x=_.e.apply(this,arguments)||this;x.isLoading=!1;x.isDisabled=!1;return x};
_.p($b,_.e);$b.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
$b.prototype.updateDisabled=function(){var x;this.isDisabled=this.isLoading||((x=this.handleInput)==null?void 0:x.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
$b.prototype.onSaveClick=function(){var x=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var L;((L=this.data)==null?void 0:L.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 D;if((D=x.data)==null?0:D.nextEndpoint){var S;x.ytComponentBehavior.resolveCommand((S=x.data)==null?void 0:S.nextEndpoint)}else x.isLoading=
!1,x.closeDialog()},
onServerError:function(){x.isLoading=!1;x.handleInput.validate();var D;x.errorMessage=(D=x.data)==null?void 0:D.errorMessage}}}))}};
$b.prototype.closeDialog=function(){_.dg(this.hostElement,"yt-close-popup-action",[this.is])};
$b.prototype.updateDisabled=$b.prototype.updateDisabled;_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],$b.prototype,"ytComponentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],$b.prototype,"data",void 0);_.A([_.F1("#handle-input"),_.r("design:type",Object)],$b.prototype,"handleInput",void 0);_.A([_.bN("isLoading"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],$b.prototype,"updateDisabled",null);
_.A([_.w({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],$b);
_.q($b,"ytd-channel-handle-edit-dialog-renderer",function(){if(EMl!==void 0)return EMl;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return EMl=x},{mode:1});var MM$;var r7=function(){return _.e.apply(this,arguments)||this};
_.p(r7,_.e);r7.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],r7.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],r7.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],r7.prototype,"data",void 0);_.A([_.w({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],r7);
_.q(r7,"ytd-channel-switcher-footer-renderer",function(){if(MM$!==void 0)return MM$;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return MM$=x},{mode:1});var dA9;var P$I;var N7=function(){return _.e.apply(this,arguments)||this};
_.p(N7,_.e);N7.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
N7.prototype.onIronChange=N7.prototype.onIronChange;_.A([_.F(),_.r("design:type",Object)],N7.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!1}),_.r("design:type",Function)],N7.prototype,"onDontAskAgainChanged",void 0);_.A([_.F1("#checkbox"),_.r("design:type",Object)],N7.prototype,"checkbox",void 0);_.A([_.mX("iron-change"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],N7.prototype,"onIronChange",null);
_.A([_.w({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],N7);
_.q(N7,"ytd-identity-prompt-footer-renderer",function(){if(P$I!==void 0)return P$I;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return P$I=x},{mode:1});var iU=function(){var x=_.e.apply(this,arguments)||this;x.dontAskAgain=!1;x.showPopup=!1;x.boundDontAskAgainChanged=function(L){x.dontAskAgainChanged(L)};
x.boundOnAccountItemTap=function(L){x.onAccountItemTap(L)};
return x};
_.p(iU,_.e);_.K=iU.prototype;
_.K.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]]"}}}}}};
_.K.ready=function(){var x=this;_.jr(this.hostElement).querySelector("#container").addEventListener("scroll",function(){x.ytRendererBehavior.markDirty()})};
_.K.dontAskAgainChanged=function(x){this.dontAskAgain=x};
_.K.onAccountItemTap=function(x){if(x){var L={};this.dontAskAgain&&(L={dont_ask_again:this.dontAskAgain});_.x9(x,L)}};
_.K.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.K.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.K.redirectOnlyAccount=function(x){x.sections&&x.sections.length>0&&(x=_.g(x.sections[0],_.jwQ),(x==null?0:x.contents)&&(x==null?void 0:x.contents.length)<=1?(x=_.xQ(window.location.href),(x==null?0:x.next)&&_.r_b(x.next)?_.x9(x.next):_.x9("/")):this.showPopup=!0)};
iU.prototype.dataChanged=iU.prototype.dataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],iU.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],iU.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],iU.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!1}),_.r("design:type",Object)],iU.prototype,"dontAskAgain",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],iU.prototype,"showPopup",void 0);_.A([_.F({reflectToAttribute:!1}),_.r("design:type",Object)],iU.prototype,"boundDontAskAgainChanged",void 0);_.A([_.F({reflectToAttribute:!1}),_.r("design:type",Object)],iU.prototype,"boundOnAccountItemTap",void 0);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],iU.prototype,"dataChanged",null);
_.A([_.w({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],iU);
_.q(iU,"ytd-channel-switcher-renderer",function(){if(dA9!==void 0)return dA9;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return dA9=x},{mode:1});var jg9;var oh=function(){return _.e.apply(this,arguments)||this};
_.p(oh,_.e);_.J3.Object.defineProperties(oh.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.A([_.F(),_.r("design:type",Object)],oh.prototype,"data",void 0);_.A([_.Y("data"),_.r("design:type",Array),_.r("design:paramtypes",[])],oh.prototype,"steps",null);_.A([_.w({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],oh);
_.q(oh,"ytd-channel-transfer-stepper-renderer",function(){if(jg9!==void 0)return jg9;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return jg9=x},{mode:1});var vM3;var ah=function(){var x=_.e.apply(this,arguments)||this;x.data=null;x.isError=!1;x.isLoading=!1;return x};
_.p(ah,_.e);_.K=ah.prototype;_.K.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"}}}};
_.K.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.K.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.K.computeProfileName=function(x){return x?x.givenNameValue+" "+x.familyNameValue:""};
_.K.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)};
_.K.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)};
ah.prototype.onYtServiceRequestError=ah.prototype.onYtServiceRequestError;ah.prototype.onYtServiceRequestSent=ah.prototype.onYtServiceRequestSent;ah.prototype.dataChanged=ah.prototype.dataChanged;_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],ah.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],ah.prototype,"data",void 0);
_.A([_.F({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.r("design:type",String)],ah.prototype,"profileName",void 0);_.A([_.F(),_.r("design:type",Object)],ah.prototype,"isError",void 0);_.A([_.F(),_.r("design:type",Object)],ah.prototype,"isLoading",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ah.prototype,"dataChanged",null);
_.A([_.mX("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.zQ]),_.r("design:returntype")],ah.prototype,"onYtServiceRequestSent",null);_.A([_.mX("yt-service-request-error"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.zQ]),_.r("design:returntype")],ah.prototype,"onYtServiceRequestError",null);_.A([_.w({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],ah);
_.q(ah,"ytd-channel-warm-welcome-cont-renderer",function(){if(vM3!==void 0)return vM3;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return vM3=x},{mode:1});var VMq;var zs=function(){var x=_.e.apply(this,arguments)||this;x.data=null;return x};
_.p(zs,_.e);zs.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
zs.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],zs.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],zs.prototype,"data",void 0);_.A([_.w({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],zs);
_.q(zs,"ytd-channel-warm-welcome-renderer",function(){if(VMq!==void 0)return VMq;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return VMq=x},{mode:1});var h4W;var Xc=function(){return _.e.apply(this,arguments)||this};
_.p(Xc,_.e);_.J3.Object.defineProperties(Xc.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.authorThumbnail)||{}}}});
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Xc.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Xc.prototype,"data",void 0);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Xc.prototype,"thumbnailDetails",null);_.A([_.w({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],Xc);
_.q(Xc,"ytd-comment-preview-renderer",function(){if(h4W!==void 0)return h4W;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return h4W=x},{mode:1});var H5q;var cl=function(){return _.e.apply(this,arguments)||this};
_.p(cl,_.e);cl.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.J3.Object.defineProperties(cl.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null?void 0:x.submitButton}}});
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],cl.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],cl.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],cl.prototype,"data",void 0);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],cl.prototype,"submitButton",null);_.A([_.w({is:"ytd-notice-renderer",disableElementRegistration:!0})],cl);
_.q(cl,"ytd-notice-renderer",function(){if(H5q!==void 0)return H5q;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return H5q=x},{mode:1});var upX;var ns=function(){return _.e.apply(this,arguments)||this};
_.p(ns,_.e);ns.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],ns.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],ns.prototype,"data",void 0);_.A([_.w({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],ns);
_.q(ns,"ytd-preview-comment-dialog-content",function(){if(upX!==void 0)return upX;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return upX=x},{mode:1});var gMq;var tJ=function(){return _.e.apply(this,arguments)||this};
_.p(tJ,_.e);tJ.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
tJ.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],tJ.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],tJ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],tJ.prototype,"data",void 0);_.A([_.w({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],tJ);
_.q(tJ,"ytd-preview-comment-dialog-renderer",function(){if(gMq!==void 0)return gMq;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return gMq=x},{mode:1});var k_5;var pk9=_.u("web_button_rework")&&_.rO("BUTTON_REWORK")||_.u("web_button_rework_with_live"),xF=function(){var x=_.e.apply(this,arguments)||this;x.closeLabel=_.p6("CLOSE");x.selectedAmountIndex=1;x.privacyCheckboxValue=!1;x.useAmsterdamStyle=pk9;x.amountPlaceholderIndex=-1;return x};
_.p(xF,_.e);_.K=xF.prototype;_.K.onAmountClick=function(x){this.selectedAmountIndex=_.jr(this.hostElement).querySelector("#amounts").indexForElement(x.currentTarget)};
_.K.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.dg(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.K.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.dg(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.dg(this.hostElement,"yt-close-popup-action",[this.is]);var x;(x=_.Zs())==null||x.getPlayerPromise().then(function(L){L.pauseVideo()})}};
_.K.donationCallback=function(x){x.success?(this.hostElement.hasAttribute("live-chat")&&x.response&&x.response.data&&x.response.data.actions&&_.dg(this.hostElement,"yt-live-chat-open-popup",[x.response.data.actions[0]]),_.dg(this.hostElement,"yt-close-popup-action",[this.is]),_.dg(this.hostElement,"yt-live-chat-close-buy-flow")):x.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(x.errorMessageRenderer)};
_.K.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.jr(this.hostElement).querySelector("#custom-amount-input").focus()};
_.K.updateConfirmationDialogTextWithAmount=function(x){var L=this.getConfirmDialogRuns();L&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(L),"text"],this.getFormattedAmount(x))};
_.K.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.K.getAmountPlaceholderIndex=function(x){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=x.findIndex(function(L){return L.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.K.getFormattedAmount=function(x){var L;return(new _.ca(4,((L=this.data)==null?void 0:L.currencyCode)||"")).format(x)};
_.K.isAmountValid=function(x){if(x==="")return!1;x=Number(x)*1E6;var L=this.get("minAmountMicros",this.data),D=this.get("maxAmountMicros",this.data);return L&&x<L||D&&x>D?!1:!0};
_.K.setInputError=function(){this.shouldShowValidationError?_.jr(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.jr(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.K.setInitialCheckboxValue=function(){var x;this.privacyCheckboxValue=!((x=this.data)==null||!x.privacyCheckboxInitialState)};
_.K.updateCustomAmountInputFromBinding=function(x){this.customAmountInput=x.detail.value};
_.K.updatePrivacyCheckboxValueFromBinding=function(x){this.privacyCheckboxValue=x.detail.value};
_.J3.Object.defineProperties(xF.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var x=this,L,D;return((L=this.data)==null?void 0:(D=L.suggestedAmounts)==null?void 0:D.map(function(S,Q){return{buttonRenderer:{style:x.selectedAmountIndex===Q?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:S.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 x;return!((x=this.data)==null||!x.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 x=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(x&&this.amountMicros!==null)return Object.assign({},x,{ypcGetCartEndpoint:Object.assign({},x.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 x=this.get("confirmLargeAmount",this.data);if(x&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),x}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var x=this.get("donateButton.buttonRenderer",this.data);if(x)return Object.assign({},x,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
xF.prototype.setInitialCheckboxValue=xF.prototype.setInitialCheckboxValue;xF.prototype.setInputError=xF.prototype.setInputError;xF.prototype.setFocusOnCustomAmountInput=xF.prototype.setFocusOnCustomAmountInput;_.A([_.b(RpG),_.r("design:type",Object)],xF.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],xF.prototype,"ytRendererBehavior",void 0);
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],xF.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],xF.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],xF.prototype,"closeLabel",void 0);_.A([_.F(),_.r("design:type",Object)],xF.prototype,"selectedAmountIndex",void 0);_.A([_.F(),_.r("design:type",String)],xF.prototype,"customAmountInput",void 0);_.A([_.F(),_.r("design:type",Object)],xF.prototype,"privacyCheckboxValue",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],xF.prototype,"useAmsterdamStyle",void 0);_.A([_.bN("customAmount"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],xF.prototype,"setFocusOnCustomAmountInput",null);_.A([_.Y("data","selectedAmountIndex"),_.r("design:type",Array),_.r("design:paramtypes",[])],xF.prototype,"suggestedAmountButtons",null);
_.A([_.Y("data","selectedAmountIndex"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],xF.prototype,"isCustomAmountSelected",null);_.A([_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],xF.prototype,"showPrivacyCheckbox",null);_.A([_.Y("data","selectedAmountIndex","customAmount"),_.r("design:type",Object),_.r("design:paramtypes",[])],xF.prototype,"amountMicros",null);
_.A([_.Y("isCustomAmountSelected","customAmountInput"),_.r("design:type",Object),_.r("design:paramtypes",[])],xF.prototype,"customAmount",null);_.A([_.Y("customAmount"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],xF.prototype,"shouldShowValidationError",null);_.A([_.Y("customAmount"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],xF.prototype,"isDonateButtonEnabled",null);
_.A([_.Y("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.r("design:type",Object),_.r("design:paramtypes",[])],xF.prototype,"donateCommand",null);_.A([_.Y("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.r("design:type",Object),_.r("design:paramtypes",[])],xF.prototype,"donateCommandWithConfirmation",null);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],xF.prototype,"largeDonationThreshold",null);
_.A([_.Y("customAmount","donateCommand","amountMicros"),_.r("design:type",Object),_.r("design:paramtypes",[])],xF.prototype,"confirmLargeAmountCommand",null);_.A([_.Y("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.r("design:type",Object),_.r("design:paramtypes",[])],xF.prototype,"donateButtonRenderer",null);_.A([_.bN("shouldShowValidationError"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],xF.prototype,"setInputError",null);
_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],xF.prototype,"setInitialCheckboxValue",null);_.A([_.w({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],xF);
_.q(xF,"ytd-donation-amount-picker-renderer",function(){if(k_5!==void 0)return k_5;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return k_5=x},{mode:1});var mA3;var LY=function(){return _.e.apply(this,arguments)||this};
_.p(LY,_.e);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],LY.prototype,"ytComponentBehavior",void 0);_.A([_.F({}),_.r("design:type",Object)],LY.prototype,"data",void 0);_.A([_.w({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],LY);
_.q(LY,"ytd-donation-post-transaction-content",function(){if(mA3!==void 0)return mA3;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return mA3=x},{mode:1});var b5l;var DG=function(){return _.e.apply(this,arguments)||this};
_.p(DG,_.e);DG.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],DG.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],DG.prototype,"ytRendererBehavior",void 0);_.A([_.F({}),_.r("design:type",Object)],DG.prototype,"data",void 0);_.A([_.w({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],DG);
_.q(DG,"ytd-donation-post-transaction-renderer",function(){if(b5l!==void 0)return b5l;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return b5l=x},{mode:1});var Ydu;var F4g;var St=function(){return _.e.apply(this,arguments)||this};
_.p(St,_.e);St.prototype.computeIsStreamingProvider=function(x){return!!x.isStreamingShelf};
St.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],St.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],St.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],St.prototype,"data",void 0);_.A([_.F({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],St.prototype,"isStreamingProvider",void 0);
_.A([_.w({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],St);
_.q(St,"ytd-media-provider-renderer",function(){if(F4g!==void 0)return F4g;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return F4g=x},{mode:1});var sgu;var QX=function(){return _.e.apply(this,arguments)||this};
_.p(QX,_.e);QX.prototype.observeLightsourcePalette=function(){var x,L=(x=this.data)==null?void 0:x.vibrantsourceColorPaletteData;L&&_.UI(this.hostElement,L)};
QX.prototype.observeLightsourcePalette=QX.prototype.observeLightsourcePalette;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],QX.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],QX.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],QX.prototype,"data",void 0);
_.A([_.bN("data.vibrantsourceColorPaletteData"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],QX.prototype,"observeLightsourcePalette",null);_.A([_.w({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],QX);
_.q(QX,"ytd-streaming-pop-up-dialog",function(){if(sgu!==void 0)return sgu;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return sgu=x},{mode:1});var J0=function(){return _.e.apply(this,arguments)||this};
_.p(J0,_.e);J0.prototype.onPopupOpened_=function(){var x;((x=this.data)==null?0:x.serviceEndpoint)&&_.yY().resolve(_.E2).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
J0.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
J0.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"}}}}};
J0.prototype.onPopupOpened_=J0.prototype.onPopupOpened_;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],J0.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],J0.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.HS),_.r("design:type",Object)],J0.prototype,"ytContinuationHandlerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],J0.prototype,"data",void 0);
_.A([_.mX("yt-popup-opened"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],J0.prototype,"onPopupOpened_",null);_.A([_.w({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],J0);
_.q(J0,"ytd-brandconnect-popup-renderer",function(){if(Ydu!==void 0)return Ydu;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Ydu=x},{mode:1});var TXl;var KY=function(){return _.e.apply(this,arguments)||this};
_.p(KY,_.e);_.K=KY.prototype;_.K.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.K.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.K.dataChanged=function(){for(var x=0;x<this.getOptionRenderers().length;x++)this.notifyPath("data.options."+x+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+x+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.K.updateSubmitButton=function(x){this.set("data.submitButton.buttonRenderer.isDisabled",!x)};
_.K.computeAlt=function(x){return _.SR(x)};
_.K.onDismissTap=function(){_.dg(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.yY().resolve(_.E2).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.K.getOptionRenderers=function(x){return(x=x||this.data)&&x.options?x.options.reduce(function(L,D){D.checkboxSurveyOptionRenderer&&L.push(D.checkboxSurveyOptionRenderer);return L},[]):[]};
_.K.onOptionChange=function(x){var L=this,D=!1;if(x.detail.checked)for(var S=this.getOptionRenderers().find(function(y){return y.value===x.detail.value}),Q=this.getOptionRenderers(),J=0;J<Q.length;J++){var Z=Q[J];
this.notifyPath("data.options."+J+".checkboxSurveyOptionRenderer.checked");Z.checked&&((S==null?0:S.isExclusiveOption)?!Z.isExclusiveOption:Z.isExclusiveOption)?this.set("data.options."+J+".checkboxSurveyOptionRenderer.checked",!1):Z.checked&&(D=!0)}else D=this.getOptionRenderers().some(function(y,E){L.notifyPath("data.options."+E+".checkboxSurveyOptionRenderer.checked");return y.checked});
this.updateSubmitButton(D)};
_.K.onSubmitTap=function(){var x=this.getOptionRenderers().filter(function(J){return J.checked});
if(x.length!==0){var L=x.map(function(J){return J.responseEndpoint});
x=[];for(var D=1;D<L.length;D++){var S=void 0,Q=(S=_.g(L[D],_.Uy))==null?void 0:S.feedbackToken;Q&&x.push(Q)}L=[L[0]];x.length&&L.push({extra_feedback_tokens:x});_.jq(this.hostElement,L);_.dg(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);x=this.data&&this.data.submitActions||[];if(_.u("kevlar_command_handler_migration_killswitch"))_.v$(this.hostElement,x,this.hostElement);else for(x=_.O(x),L=x.next();!L.done;L=x.next())this.ytComponentBehavior.resolveCommand(L.value)}};
KY.prototype.onOptionChange=KY.prototype.onOptionChange;KY.prototype.dataChanged=KY.prototype.dataChanged;_.A([_.b(_.nE.YtEventForwardingBehavior),_.r("design:type",Object)],KY.prototype,"ytEventForwardingBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],KY.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],KY.prototype,"ytComponentBehavior",void 0);
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],KY.prototype,"ytRendererBehavior",void 0);_.A([_.b(XEg),_.r("design:type",Object)],KY.prototype,"ytdHatsSurveyBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],KY.prototype,"data",void 0);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],KY.prototype,"dataChanged",null);
_.A([_.mX("ytd-checkbox-survey-option-changed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],KY.prototype,"onOptionChange",null);_.A([_.w({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],KY);
_.q(KY,"ytd-checkbox-survey-renderer",function(){if(TXl!==void 0)return TXl;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return TXl=x},{mode:1});var e4u;var R4q;var OJ=function(){return _.e.apply(this,arguments)||this};
_.p(OJ,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],OJ.prototype,"ytRendererBehavior",void 0);_.A([_.b(zp5),_.r("design:type",Object)],OJ.prototype,"ytdDismissalReasonBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],OJ.prototype,"data",void 0);_.A([_.w({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],OJ);
_.q(OJ,"ytd-dismissal-reason-text-renderer",function(){if(R4q!==void 0)return R4q;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return R4q=x},{mode:1});var G_$;var ZG=function(){return _.e.apply(this,arguments)||this};
_.p(ZG,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],ZG.prototype,"ytRendererBehavior",void 0);_.A([_.b(zp5),_.r("design:type",Object)],ZG.prototype,"ytdDismissalReasonBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],ZG.prototype,"data",void 0);_.A([_.w({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],ZG);
_.q(ZG,"ytd-dismissal-reason-video-renderer",function(){if(G_$!==void 0)return G_$;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return G_$=x},{mode:1});var yX=function(){var x=_.e.apply(this,arguments)||this;x.darkerDarkTheme=_.u("web_darker_dark_theme");return x};
_.p(yX,_.e);_.K=yX.prototype;_.K.created=function(){this.selectedFeedbackTokens=new Lo};
_.K.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.K.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.K.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.K.onDismissalReasonSelected=function(x,L){_.MF(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(L);this.hasReasonsSelected=!0};
_.K.onDismissalReasonDeselected=function(x,L){_.MF(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(L);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.K.onCancelTap=function(){_.dg(this.hostElement,"yt-close-popup-action")};
_.K.onSubmitTap=function(){var x=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(x={feedback_tokens:x},_.yY().resolve(_.E2).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},x,{element:this.hostElement})}));_.dg(this.hostElement,"yt-close-popup-action")};
yX.prototype.onDismissalReasonDeselected=yX.prototype.onDismissalReasonDeselected;yX.prototype.onDismissalReasonSelected=yX.prototype.onDismissalReasonSelected;yX.prototype.dataChanged=yX.prototype.dataChanged;_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],yX.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],yX.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],yX.prototype,"data",void 0);
_.A([_.F(),_.r("design:type",Boolean)],yX.prototype,"hasReasonsSelected",void 0);_.A([_.F(),_.r("design:type",Lo)],yX.prototype,"selectedFeedbackTokens",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],yX.prototype,"darkerDarkTheme",void 0);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],yX.prototype,"dataChanged",null);
_.A([_.mX("yt-dismissal-reason-selected"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,String]),_.r("design:returntype")],yX.prototype,"onDismissalReasonSelected",null);_.A([_.mX("yt-dismissal-reason-deselected"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,String]),_.r("design:returntype")],yX.prototype,"onDismissalReasonDeselected",null);_.A([_.w({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],yX);
_.q(yX,"ytd-dismissal-follow-up-renderer",function(){if(e4u!==void 0)return e4u;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return e4u=x},{mode:1});var C$u;var Iy=function(){return _.e.apply(this,arguments)||this};
_.p(Iy,_.e);_.K=Iy.prototype;_.K.onCheckedChange=function(){this.multiselect||_.MF(this.hostElement,"yt-feedback-single-select-changed");_.jr(this.hostElement).querySelector("#freeform").focus();_.MF(this.hostElement,"yt-refit")};
_.K.showTextBox=function(x,L){return x&&L};
_.K.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))};
_.K.updateDataCheckedFromBinding=function(x){this.set("data.checked",x.detail.value)};
_.K.updateDataResultTextFromBinding=function(x){this.set("data.resultText",x.detail.value)};
Iy.prototype.dataChanged=Iy.prototype.dataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Iy.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Iy.prototype,"data",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],Iy.prototype,"multiselect",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Iy.prototype,"dataChanged",null);
_.A([_.w({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],Iy);
_.q(Iy,"ytd-feedback-option-renderer",function(){if(C$u!==void 0)return C$u;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return C$u=x},{mode:1});var lIg;var EJ=function(){return _.e.apply(this,arguments)||this};
_.p(EJ,_.e);EJ.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
EJ.prototype.onSingleSelectCheckedChanged=function(x){x=_.K$(x);for(var L=0;L<this.data.options.length;L++)if(x.data!==_.g(this.data.options[L],Ejs)){var D="data.options."+L+".feedbackOptionRenderer.checked";this.notifyPath(D);this.set(D,!1)}};
EJ.prototype.onSingleSelectCheckedChanged=EJ.prototype.onSingleSelectCheckedChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],EJ.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],EJ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],EJ.prototype,"data",void 0);
_.A([_.mX("yt-feedback-single-select-changed"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],EJ.prototype,"onSingleSelectCheckedChanged",null);_.A([_.w({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],EJ);
_.q(EJ,"ytd-feedback-question-renderer",function(){if(lIg!==void 0)return lIg;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return lIg=x},{mode:1});var UA9;var Mt=function(){return _.e.apply(this,arguments)||this};
_.p(Mt,_.e);Mt.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
Mt.prototype.getSelectedFeedbackResults=function(){for(var x={},L=0;L<this.data.questions.length;L++)for(var D=_.g(this.data.questions[L],IQY),S=0;S<D.options.length;S++){var Q=_.g(D.options[S],Ejs);Q&&Q.checked&&(x[Q.optionKey]=Q.resultText)}return x};
Mt.prototype.onKeyUp=function(){var x=this;_.hD(_.WW,function(){_.MF(x.hostElement,"yt-refit")});
_.WW.start()};
Mt.prototype.submitSurvey=function(){var x=this.getSelectedFeedbackResults();Object.keys(x).length>0&&this.data.submitFeedbackEndpoint&&(x={survey_results:x,is_feedback_token_unencrypted:!0},_.yY().resolve(_.E2).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},x,{element:this.hostElement})}))};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Mt.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Mt.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Mt.prototype,"data",void 0);_.A([_.w({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],Mt);
_.q(Mt,"ytd-feedback-survey-renderer",function(){if(UA9!==void 0)return UA9;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return UA9=x},{mode:1});var wkl;var BXl;var dL=function(){return _.e.apply(this,arguments)||this};
_.p(dL,_.e);dL.prototype.computeAlt=function(x){return _.SR(x)};
dL.prototype.submitResponse=function(){var x,L;(x=this.data)!=null&&x.feedbackToken&&((L=this.data)==null?void 0:L.nextStageIndex)!==void 0&&(_.P$(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.P$(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
dL.prototype.onClick=function(){this.submitResponse()};
dL.prototype.onClick=dL.prototype.onClick;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],dL.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],dL.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],dL.prototype,"vertical",void 0);_.A([_.mX("click"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],dL.prototype,"onClick",null);
_.A([_.w({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],dL);
_.q(dL,"ytd-single-select-answer-option-renderer",function(){if(BXl!==void 0)return BXl;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return BXl=x},{mode:1});var W4G;var Ph=function(){var x=_.e.apply(this,arguments)||this;x.darkerDarkTheme=_.u("web_darker_dark_theme");x.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return x};
_.p(Ph,_.e);Ph.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
Ph.prototype.dataChanged=function(){var x,L;this.vertical=((L=(x=this.data)==null?void 0:x.answerOrientation)!=null?L:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
Ph.prototype.submitFeedback=function(x){var L;((L=this.data)==null?0:L.responseEndpoint)&&x&&_.jq(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[x]}])};
Ph.prototype.dataChanged=Ph.prototype.dataChanged;_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],Ph.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.nE.YtEventForwardingBehavior),_.r("design:type",Object)],Ph.prototype,"eventForwardingBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Ph.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Ph.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.F(),_.r("design:type",Object)],Ph.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],Ph.prototype,"vertical",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Ph.prototype,"darkerDarkTheme",void 0);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Ph.prototype,"dataChanged",null);_.A([_.w({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],Ph);
_.q(Ph,"ytd-single-select-question-renderer",function(){if(W4G!==void 0)return W4G;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return W4G=x},{mode:1});var jt=function(){var x=_.e.apply(this,arguments)||this;x.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return x};
_.p(jt,_.e);_.K=jt.prototype;_.K.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"}}}};
_.K.dataChanged=function(){this.jumpToStage(0)};
_.K.jumpToStage=function(x){var L,D;if((L=this.data)==null?0:(D=L.stages)==null?0:D[x])this.currentStage=this.data.stages[x],this.refitAfterRender()};
_.K.computeAlt=function(x){return _.SR(x)};
_.K.computeSimpleMessage=function(x){var L;return(L=_.g(x,PMW))==null?void 0:L.messageText};
_.K.computeHideDismiss=function(x){var L;return(L=_.g(x,ATs))==null?void 0:L.hideParentDismissButton};
_.K.onDismissTap=function(){_.dg(this.hostElement,"yt-close-popup-action");_.g(this.currentStage,PMW)||this.data.dismissalEndpoint&&_.yY().resolve(_.E2).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.K.refitAfterRender=function(){var x=this;_.So(this,function(){_.MF(x.hostElement,"yt-refit")})};
jt.prototype.dataChanged=jt.prototype.dataChanged;_.A([_.b(_.nE.YtEventForwardingBehavior),_.r("design:type",Object)],jt.prototype,"eventForwardingBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],jt.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],jt.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],jt.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.b(XEg),_.r("design:type",Object)],jt.prototype,"ytdHatsSurveyBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],jt.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],jt.prototype,"currentStage",void 0);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],jt.prototype,"dataChanged",null);_.A([_.w({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],jt);
_.q(jt,"ytd-multi-stage-survey-renderer",function(){if(wkl!==void 0)return wkl;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return wkl=x},{mode:1});var qdI;var vh=function(){return _.e.apply(this,arguments)||this};
_.p(vh,_.e);vh.prototype.computeAlt=function(x){return _.SR(x)};
vh.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.yY().resolve(_.E2).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.dg(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.Plg(!1)))};
vh.prototype.onTap=function(){this.vertical&&this.submitResponse()};
vh.prototype.onTap=vh.prototype.onTap;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],vh.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],vh.prototype,"ytdReduxBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],vh.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],vh.prototype,"vertical",void 0);
_.A([_.mX("tap"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],vh.prototype,"onTap",null);_.A([_.w({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],vh);
_.q(vh,"ytd-single-option-survey-option-renderer",function(){if(qdI!==void 0)return qdI;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return qdI=x},{mode:1});var Af3;var VX=function(){return _.e.apply(this,arguments)||this};
_.p(VX,_.e);_.K=VX.prototype;_.K.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.K.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.K.dataChanged=function(){var x,L;this.vertical=(((x=this.data)==null?void 0:(L=x.surveyOrientation)==null?void 0:L.type)||"HORIZONTAL")==="VERTICAL"};
_.K.computeAlt=function(x){return _.SR(x)};
_.K.onDismissTap=function(){_.dg(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.yY().resolve(_.E2).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.Plg(!1))};
VX.prototype.dataChanged=VX.prototype.dataChanged;_.A([_.b(_.nE.YtEventForwardingBehavior),_.r("design:type",Object)],VX.prototype,"eventForwardingBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],VX.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],VX.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(XEg),_.r("design:type",Object)],VX.prototype,"ytdHatsSurveyBehavior",void 0);
_.A([_.b(_.EG),_.r("design:type",Object)],VX.prototype,"ytdReduxBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],VX.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],VX.prototype,"vertical",void 0);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],VX.prototype,"dataChanged",null);_.A([_.w({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],VX);
_.q(VX,"ytd-single-option-survey-renderer",function(){if(Af3!==void 0)return Af3;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return Af3=x},{mode:1});var $Al;var h0=function(){var x=_.e.apply(this,arguments)||this;x.darkerDarkTheme=_.u("web_darker_dark_theme");return x};
_.p(h0,_.e);h0.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
h0.prototype.onDismissTap=function(){_.dg(this.hostElement,"yt-close-popup-action")};
h0.prototype.onNavigate=function(){_.dg(this.hostElement,"yt-close-popup-action")};
h0.prototype.onNavigate=h0.prototype.onNavigate;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],h0.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.nE.YtEventForwardingBehavior),_.r("design:type",Object)],h0.prototype,"ytEventForwardingBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],h0.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],h0.prototype,"darkerDarkTheme",void 0);
_.A([_.mX("yt-navigate"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],h0.prototype,"onNavigate",null);_.A([_.w({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],h0);
_.q(h0,"ytd-survey-follow-up-renderer",function(){if($Al!==void 0)return $Al;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return $Al=x},{mode:1});var rfq;var NX9;var i59;var Hh=function(){var x=_.e.apply(this,arguments)||this;x.polymer2="Element"in Polymer;return x};
_.p(Hh,_.e);_.K=Hh.prototype;_.K.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.K.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.K.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.K.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.gU("minutes-changed",this.minutes))};
_.K.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.gU("seconds-changed",this.seconds))};
_.K.updateMinutesFromBinding=function(x){this.minutes=x.detail.value};
_.K.updateSecondsFromBinding=function(x){this.seconds=x.detail.value};
Hh.prototype.secondsChangedForBinding=Hh.prototype.secondsChangedForBinding;Hh.prototype.minutesChangedForBinding=Hh.prototype.minutesChangedForBinding;Hh.prototype.secondsChanged=Hh.prototype.secondsChanged;_.A([_.F(),_.r("design:type",String)],Hh.prototype,"minutes",void 0);_.A([_.F(),_.r("design:type",String)],Hh.prototype,"seconds",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],Hh.prototype,"polymer2",void 0);
_.A([_.F1("#seconds"),_.r("design:type",Object)],Hh.prototype,"secondsEl",void 0);_.A([_.bN("seconds"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Hh.prototype,"secondsChanged",null);_.A([_.bN("minutes"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Hh.prototype,"minutesChangedForBinding",null);
_.A([_.bN("seconds"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Hh.prototype,"secondsChangedForBinding",null);_.A([_.oW({is:"yt-timestamp-input",disableElementRegistration:!0})],Hh);
_.q(Hh,"yt-timestamp-input",function(){if(i59===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;NX9===void 0&&(NX9=document.createElement("template"));var S=NX9;D.call(L,S.content.cloneNode(!0),x.content.firstChild);i59=x}x=i59;return x},{mode:2});var u9=function(){return _.e.apply(this,arguments)||this};
_.p(u9,_.e);_.K=u9.prototype;_.K.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$20421_scroller.dialogElement=this.hostElement.parentNode};
_.K.dataChanged=function(){var x=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.yC().getPlayerPromise().then(function(L){L=L.getCurrentTime();x.minutes=Math.floor(L/60).toString();x.seconds=(Math.floor(L)%60).toString()})};
_.K.onTapSubmit=function(x){x.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(x={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(x.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(x.minutes=this.minutes,x.seconds=this.seconds),_.yY().resolve(_.E2).resolveCommand(this.serviceEndpoint,{form:Object.assign({},x,{element:this.hostElement})}))};
_.K.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.K.onYtServiceRequestCompleted=function(x,L){L=L.actions;if(Array.isArray(L))for(var D=0,S=L.length;D<S;D++)_.g(L[D],_.fS)&&(x.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(L[D]))};
_.K.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.K.toggleSubmitButton=function(x){this.set("submitButton.isDisabled",!x)};
_.K.handleInput=function(){var x=this.issueType,L=this.affiliation,D=this.minutes,S=this.seconds;D=!this.showTimestamp||!!D&&!!S;this.toggleSubmitButton(!!this.descriptionText&&!!x&&!!L&&D)};
_.K.computeServiceEndpoint=function(x){return this.get("submitButton.buttonRenderer.serviceEndpoint",x)};
_.K.computeSubmitButton=function(x){(x=this.get("submitButton.buttonRenderer",x))&&(x=Object.assign({},x,{serviceEndpoint:void 0}));return x};
_.K.computeShowTimestamp=function(x){return!!x};
_.K.onValueChangedForIssueType=function(x){this.issueType=x.detail.value};
_.K.onValueChangedForAffiliation=function(x){this.affiliation=x.detail.value};
_.K.updateDescriptionTextFromBinding=function(x){this.descriptionText=x.detail.value};
_.K.updateFullNameTextFromBinding=function(x){this.fullNameText=x.detail.value};
_.K.updateMinutesFromBinding=function(x){this.minutes=x.detail.value};
_.K.updateSecondsFromBinding=function(x){this.seconds=x.detail.value};
u9.prototype.handleInput=u9.prototype.handleInput;u9.prototype.onYtServiceRequestError=u9.prototype.onYtServiceRequestError;u9.prototype.onYtServiceRequestCompleted=u9.prototype.onYtServiceRequestCompleted;u9.prototype.onYtServiceRequestSent=u9.prototype.onYtServiceRequestSent;u9.prototype.dataChanged=u9.prototype.dataChanged;_.A([_.b(_.rs.YtOpenPopupBehavior),_.r("design:type",Object)],u9.prototype,"ytOpenPopupBehavior",void 0);
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],u9.prototype,"ytRendererBehavior",void 0);_.A([_.F1("#scroller"),_.r("design:type",Object)],u9.prototype,"JSC$20421_scroller",void 0);_.A([_.F1("#description"),_.r("design:type",HTMLInputElement)],u9.prototype,"description",void 0);_.A([_.F1("#full-name"),_.r("design:type",Object)],u9.prototype,"fullName",void 0);_.A([_.F(),_.r("design:type",Object)],u9.prototype,"data",void 0);
_.A([_.F({computed:"computeShowTimestamp(data.timestampLabel)"}),_.r("design:type",Boolean)],u9.prototype,"showTimestamp",void 0);_.A([_.F({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.r("design:type",Object)],u9.prototype,"serviceEndpoint",void 0);_.A([_.F({computed:"computeSubmitButton(data)"}),_.r("design:type",Object)],u9.prototype,"submitButton",void 0);_.A([_.F(),_.r("design:type",String)],u9.prototype,"descriptionText",void 0);
_.A([_.F(),_.r("design:type",Number)],u9.prototype,"issueType",void 0);_.A([_.F(),_.r("design:type",Number)],u9.prototype,"affiliation",void 0);_.A([_.F(),_.r("design:type",String)],u9.prototype,"fullNameText",void 0);_.A([_.F(),_.r("design:type",String)],u9.prototype,"minutes",void 0);_.A([_.F(),_.r("design:type",String)],u9.prototype,"seconds",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],u9.prototype,"dataChanged",null);
_.A([_.mX("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.zQ]),_.r("design:returntype")],u9.prototype,"onYtServiceRequestSent",null);_.A([_.mX("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.S2]),_.r("design:returntype")],u9.prototype,"onYtServiceRequestCompleted",null);
_.A([_.mX("yt-service-request-error"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],u9.prototype,"onYtServiceRequestError",null);_.A([_.bN("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],u9.prototype,"handleInput",null);_.A([_.w({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],u9);
_.q(u9,"ytd-legal-report-details-form-renderer",function(){if(rfq!==void 0)return rfq;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return rfq=x},{mode:1});var fIl;var gL=function(){var x=_.e.apply(this,arguments)||this;x.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return x};
_.p(gL,_.e);gL.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
gL.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var x=this.formRenderer.getForm();x&&this.data.submitEndpoint&&(_.yY().resolve(_.E2).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},x,{element:this.hostElement})}),_.dg(this.hostElement,"yt-close-popup-action"))}};
gL.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.dg(this.hostElement,"yt-close-popup-action"))};
gL.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
gL.prototype.onPopupClosed=gL.prototype.onPopupClosed;_.A([_.b(_.nE.YtEventForwardingBehavior),_.r("design:type",Object)],gL.prototype,"ytEventForwardingBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],gL.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],gL.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],gL.prototype,"ytRendererBehavior",void 0);
_.A([_.F1("yt-form-renderer"),_.r("design:type",Object)],gL.prototype,"formRenderer",void 0);_.A([_.F(),_.r("design:type",Object)],gL.prototype,"data",void 0);_.A([_.mX("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],gL.prototype,"onPopupClosed",null);_.A([_.w({is:"ytd-form-popup-content",disableElementRegistration:!0})],gL);
_.q(gL,"ytd-form-popup-content",function(){if(fIl!==void 0)return fIl;var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return fIl=x},{mode:1});var oM9;var kF=function(){return _.e.apply(this,arguments)||this};
_.p(kF,_.e);kF.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
kF.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
kF.prototype.onPopupOpened=function(){_.MF(this.hostElement,"yt-invalidate-popup-tabbables")};
kF.prototype.onYtServiceRequestCompleted=function(x,L){L.data&&L.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.MF(this.hostElement,"yt-invalidate-popup-tabbables"))};
kF.prototype.onYtServiceRequestCompleted=kF.prototype.onYtServiceRequestCompleted;kF.prototype.onPopupOpened=kF.prototype.onPopupOpened;_.A([_.b(_.nE.YtEventForwardingBehavior),_.r("design:type",Object)],kF.prototype,"ytEventForwardingBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],kF.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],kF.prototype,"ytRendererBehavior",void 0);
_.A([_.F(),_.r("design:type",Object)],kF.prototype,"data",void 0);_.A([_.mX("yt-popup-opened"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],kF.prototype,"onPopupOpened",null);_.A([_.mX("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.S2]),_.r("design:returntype")],kF.prototype,"onYtServiceRequestCompleted",null);_.A([_.w({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],kF);
_.q(kF,"ytd-form-popup-renderer",function(){if(oM9!==void 0)return oM9;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return oM9=x},{mode:1});var aIs;var pY=function(){var x=_.e.apply(this,arguments)||this;x.isLoading=!1;return x};
_.p(pY,_.e);_.K=pY.prototype;_.K.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");Y4I(this.hostElement)};
_.K.onYtServiceRequestSent=function(){this.isLoading=!0};
_.K.onYtServiceRequestCompleted=function(){_.dg(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.K.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.v$(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.K.closePopupHandler=function(){this.fireOnCloseActions()};
_.K.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var x=this.get("data.headerImage.thumbnails");x&&(x=_.PD(x,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+x+")")}};
_.K.onYtNavigate=function(x){(x=_.K$(x))&&x.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
pY.prototype.onYtNavigate=pY.prototype.onYtNavigate;pY.prototype.onHeaderImageChanged=pY.prototype.onHeaderImageChanged;pY.prototype.closePopupHandler=pY.prototype.closePopupHandler;pY.prototype.onYtServiceRequestCompleted=pY.prototype.onYtServiceRequestCompleted;pY.prototype.onYtServiceRequestSent=pY.prototype.onYtServiceRequestSent;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],pY.prototype,"ytRendererBehavior",void 0);
_.A([_.b(_.nE.YtEventForwardingBehavior),_.r("design:type",Object)],pY.prototype,"ytEventForwardingBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],pY.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],pY.prototype,"isLoading",void 0);_.A([_.F1("#header"),_.r("design:type",HTMLDivElement)],pY.prototype,"header",void 0);_.A([_.F1("#confirm-button"),_.r("design:type",_.Lf)],pY.prototype,"confirmButton",void 0);
_.A([_.mX("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],pY.prototype,"onYtServiceRequestSent",null);_.A([_.mX("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],pY.prototype,"onYtServiceRequestCompleted",null);
_.A([_.mX("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],pY.prototype,"closePopupHandler",null);_.A([_.bN("data.headerImage"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],pY.prototype,"onHeaderImageChanged",null);_.A([_.mX("yt-navigate"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],pY.prototype,"onYtNavigate",null);
_.A([_.w({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],pY);
_.q(pY,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(aIs!==void 0)return aIs;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return aIs=x},{mode:1});var z4u;var mZ=function(){var x=_.e.apply(this,arguments)||this;x.isLoading=!1;return x};
_.p(mZ,_.e);_.K=mZ.prototype;_.K.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"}}}};
_.K.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);Y4I(this.hostElement)};
_.K.onYtServiceRequestCompleted=function(){_.dg(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.K.onYtServiceRequestError=function(x){_.nX(this.hostElement,x.detail.error.message)};
_.K.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.K.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.dg(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.K.onDataChanged=function(){this.isLoading=!1;var x=this.get("data.headerImage.thumbnails");x&&(x=_.PD(x,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+x+")");x=_.A3();var L=_.qu(),D=this.get("data.trackingParams");D&&L&&x&&_.XI(x,L,_.CI(D))};
_.J3.Object.defineProperties(mZ.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
mZ.prototype.onDataChanged=mZ.prototype.onDataChanged;mZ.prototype.onDomChange=mZ.prototype.onDomChange;mZ.prototype.onYtServiceRequestError=mZ.prototype.onYtServiceRequestError;mZ.prototype.onYtServiceRequestCompleted=mZ.prototype.onYtServiceRequestCompleted;_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],mZ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],mZ.prototype,"ytRendererBehavior",void 0);
_.A([_.F(),_.r("design:type",Object)],mZ.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],mZ.prototype,"isLoading",void 0);_.A([_.F({reflectToAttribute:!0}),_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],mZ.prototype,"hasDescription",null);_.A([_.F1("tp-yt-paper-dialog-scrollable"),_.r("design:type",Object)],mZ.prototype,"scrollable",void 0);_.A([_.F1("#header"),_.r("design:type",HTMLElement)],mZ.prototype,"header",void 0);
_.A([_.mX("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],mZ.prototype,"onYtServiceRequestCompleted",null);_.A([_.mX("yt-service-request-error"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],mZ.prototype,"onYtServiceRequestError",null);
_.A([_.mX("dom-change"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],mZ.prototype,"onDomChange",null);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],mZ.prototype,"onDataChanged",null);_.A([_.w({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],mZ);
_.q(mZ,"ytd-gaming-account-link-setting-renderer",function(){if(z4u!==void 0)return z4u;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return z4u=x},{mode:1});var Xkg;var cfI;var b9=function(){var x=_.e.apply(this,arguments)||this;x.isHeader=!1;x.getEndpointForm=function(){return PkI(x.data)};
return x};
_.p(b9,_.e);_.K=b9.prototype;_.K.triggerHintActions=function(){var x=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var L=_.P$(x.hostElement,"yt-get-opened-popups-action");!(L&&L.length===1?L[0]:[]).some(function(D){D=D.openPopupAction.popupType;return D==="SURVEY"||D==="MEALBAR"||D==="HINT"})&&x.data.hintActions&&x.guideOpened&&(_.v$(x.hostElement,x.data.hintActions,x.hostElement),x.data.hintActions=void 0)})};
_.K.getBadgeIconType=function(x){return x&&x.liveBroadcasting?"live":null};
_.K.onDown=function(){this.interaction.triggerDown()};
_.K.onUp=function(){this.interaction.triggerUp()};
_.K.onTap=function(x){if(this.data.serviceEndpoint){var L;_.u("shorts_controller_retrieve_seedless_sequence_v2")&&((L=_.g(this.data.serviceEndpoint,_.TF))==null?void 0:L.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):db3(this.data.serviceEndpoint,this);x.preventDefault()}else this.data.navigationEndpoint&&!_.QC(_.Jq(x),this.hostElement,["A".toString()])&&_.MF(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.K.computeActive=function(x,L){if(!x)return!1;var D=x.navigationEndpoint;x=x.serviceEndpoint;if(!D&&!x||!L)return!1;if(D){x=(x=_.pB(L))&&["subscriptions","filteredsubscriptions"].includes(x);if(_.g(D,_.mt)&&_.g(L,_.mt)&&!x){var S=_.g(D,_.mt).browseId;L=_.g(L,_.mt).browseId;return S!==void 0&&L!==void 0&&(S===L||S==="VLWL"&&L==="FEwatch_later"||S==="FEwatch_later"&&L==="VLWL")}var Q;D=(Q=_.g(D.commandMetadata,_.gg))==null?void 0:Q.url;L=(S=_.g(L.commandMetadata,_.gg))==null?void 0:S.url;return!(!D||
!L||D!==L&&D!==_.gE(L))}return this.isActiveShortsTab(x,L)};
_.K.isActiveShortsTab=function(x,L){L=!!_.g(L,_.TF)||!!_.g(L,_.O6);return(!!_.g(x,_.TF)||!!_.g(x,_.O6))&&L};
_.K.computeIsPrimary=function(x){return!!x};
_.J3.Object.defineProperties(b9.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 x=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&x)return x}}});
b9.prototype.onTap=b9.prototype.onTap;b9.prototype.onUp=b9.prototype.onUp;b9.prototype.onDown=b9.prototype.onDown;b9.prototype.triggerHintActions=b9.prototype.triggerHintActions;_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],b9.prototype,"componentBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],b9.prototype,"rendererBehavior",void 0);_.A([_.b(_.sB.YtTaskEmitterBehavior),_.r("design:type",Object)],b9.prototype,"taskEmitterBehavior",void 0);
_.A([_.F(),_.r("design:type",Object)],b9.prototype,"activeEndpoint",void 0);_.A([_.F(),_.r("design:type",Object)],b9.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Boolean)],b9.prototype,"guideOpened",void 0);_.A([_.F(),_.r("design:type",String)],b9.prototype,"type",void 0);_.A([_.F1("yt-interaction"),_.r("design:type",Object)],b9.prototype,"interaction",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],b9.prototype,"isHeader",void 0);
_.A([_.F({reflectToAttribute:!0}),_.Y("data","activeEndpoint"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],b9.prototype,"active",null);_.A([_.F({reflectToAttribute:!0}),_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],b9.prototype,"isPrimary",null);_.A([_.F({reflectToAttribute:!0}),_.Y("data.count","data.presentationStyle","data.badges.*"),_.r("design:type",String),_.r("design:paramtypes",[])],b9.prototype,"lineEndStyle",null);
_.A([_.Y("lineEndStyle"),_.r("design:type",Object),_.r("design:paramtypes",[])],b9.prototype,"ariaLabel",null);_.A([_.bN("data.hintActions","guideOpened"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],b9.prototype,"triggerHintActions",null);_.A([_.mX("down"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],b9.prototype,"onDown",null);
_.A([_.mX("up"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],b9.prototype,"onUp",null);_.A([_.mX("tap"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],b9.prototype,"onTap",null);_.A([_.w({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],b9);
_.q(b9,"ytd-guide-entry-renderer",function(){if(cfI!==void 0)return cfI;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return cfI=x},{mode:1});var YF=function(){var x=_.e.apply(this,arguments)||this;x.userToggled=!1;return x};
_.p(YF,_.e);_.K=YF.prototype;_.K.getItemsPath=function(){return"data.expandableItems"};
_.K.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.K.onExpanderItemTapped=function(x){var L=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.u("kevlar_guide_expandable_items_killswitch")&&_.So(this,function(){_.LV(L.expandableItems)});
x.preventDefault()};
_.K.onCollapserItemTapped=function(x){var L=this;this._setExpanded(!1);this.userToggled=!0;x.preventDefault();this.expandableItems&&!_.u("kevlar_guide_collapsible_items_killswitch")&&_.So(this,function(){_.xZ(L.hostElement)})};
_.K.observeActiveEndpoint=function(){for(var x=this.activeEndpoint,L=this.data,D=this.expandableItems.children,S=0,Q=D.length;S<Q;S++)D[S].activeEndpoint=x;L&&L.autoExpandCommand&&x&&!this.userToggled&&(D=this.data.autoExpandCommand,L=!(!_.g(D,_.mt)||!_.g(x,_.mt)||_.g(D,_.mt).browseId!==_.g(x,_.mt).browseId),x=this.get("commandMetadata.webCommandMetadata.url",x),D=this.get("commandMetadata.webCommandMetadata.url",D),L=L||!!(x&&D&&x.includes(D)),this._setExpanded(L),L&&this.ytLazyListBehavior.fillRemainingListItems())};
YF.prototype.observeActiveEndpoint=YF.prototype.observeActiveEndpoint;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],YF.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],YF.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.Gz.YtLazyListBehavior),_.r("design:type",Object)],YF.prototype,"ytLazyListBehavior",void 0);_.A([_.F1("#expandable-items"),_.r("design:type",HTMLElement)],YF.prototype,"expandableItems",void 0);
_.A([_.F(),_.r("design:type",Object)],YF.prototype,"data",void 0);_.A([_.F({readOnly:!0,reflectToAttribute:!0}),_.r("design:type",Boolean)],YF.prototype,"expanded",void 0);_.A([_.F({value:0}),_.r("design:type",Number)],YF.prototype,"initialCount",void 0);_.A([_.F(),_.r("design:type",Object)],YF.prototype,"activeEndpoint",void 0);_.A([_.bN("data","activeEndpoint","canShowMore"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],YF.prototype,"observeActiveEndpoint",null);
_.A([_.w({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],YF);
_.q(YF,"ytd-guide-collapsible-entry-renderer",function(){if(Xkg!==void 0)return Xkg;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Xkg=x},{mode:_.Vm("kevlar_poly_si_batch_j079")?1:2});var nMu;var tM9;var FH=function(){var x=_.e.apply(this,arguments)||this;x.allVideosCount=0;x.renderGuideEntry=!1;return x};
_.p(FH,_.e);FH.prototype.observeRenderEntry=function(){var x;this.renderGuideEntry=!((x=this.data)==null||!x.alwaysShow)||!!this.allVideosCount};
FH.prototype.observeRenderEntry=FH.prototype.observeRenderEntry;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],FH.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],FH.prototype,"ytdReduxBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],FH.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],FH.prototype,"activeEndpoint",void 0);_.A([_.F({selector:_.Yj4}),_.r("design:type",Object)],FH.prototype,"allVideosCount",void 0);
_.A([_.F(),_.r("design:type",Object)],FH.prototype,"renderGuideEntry",void 0);_.A([_.GV("allVideosCount","data.alwaysShow"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],FH.prototype,"observeRenderEntry",null);_.A([_.w({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],FH);
_.q(FH,"ytd-guide-downloads-entry-renderer",function(){if(tM9===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);tM9=x}x=tM9;return x},{mode:1});var sJ=function(){var x=_.e.apply(this,arguments)||this;x.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return x};
_.p(sJ,_.e);_.K=sJ.prototype;_.K.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]]"}}}}}};
_.K.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var x=this.sectionItems.children,L=0,D=x.length;L<D;L++)x[L].activeEndpoint=this.activeEndpoint}};
_.K.handleAddToGuideSectionAction=function(x){var L=_.g(x,eT9);if(L&&this.data&&(x=L.items,L=L.handlerData,x&&L&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(L)>-1)){L=0;for(var D=x.length;L<D;L++)x[L].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,x[L])}};
_.K.handleRemoveFromGuideSectionAction=function(x){var L=_.g(x,RT9);L&&this.data&&(x=L.guideEntryId,L=L.handlerData,x&&L&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(L)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(x,this.data.sectionItems),this.removeFromCollapsedSection(x,this.data.sectionItems)))};
_.K.removeFromExpandedSection=function(x,L){x=this.getEntryIndexMatchingId(x,L);x!==-1&&this.splice("data.sectionItems",x,1)};
_.K.removeFromCollapsedSection=function(x,L){var D=L.findIndex(function(S){return!!_.g(S,adY)});
D&&D!==-1&&L[D]&&_.g(L[D],adY)&&(L=_.g(L[D],adY).expandableItems)&&(x=this.getEntryIndexMatchingId(x,L),x!==-1&&this.splice("data.sectionItems."+D+".guideCollapsibleEntryRenderer.expandableItems",x,1))};
_.K.getEntryIndexMatchingId=function(x,L){var D=this;return L.findIndex(function(S){return D.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",S)===x})};
sJ.prototype.activeEndpointChanged=sJ.prototype.activeEndpointChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],sJ.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],sJ.prototype,"actionHandlerBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],sJ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F1("#section-items"),_.r("design:type",HTMLDivElement)],sJ.prototype,"sectionItems",void 0);
_.A([_.F1("#header-entry"),_.r("design:type",Object)],sJ.prototype,"headerEntry",void 0);_.A([_.F(),_.r("design:type",Object)],sJ.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],sJ.prototype,"activeEndpoint",void 0);_.A([_.bN("activeEndpoint"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],sJ.prototype,"activeEndpointChanged",null);_.A([_.w({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],sJ);
_.q(sJ,"ytd-guide-collapsible-section-entry-renderer",function(){if(nMu===void 0){var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);nMu=x}x=nMu;return x},{mode:1});var xZW;var Lnq;var Tw=function(){var x=_.e.apply(this,arguments)||this;x.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 x};
_.p(Tw,_.e);_.K=Tw.prototype;
_.K.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}}}}};
_.K.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var x=_.P$(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);x&&x.length===1&&x[0]&&_.P$(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.K.handleResetChannelUnreadCountCommand=function(x){var L;(x=(L=_.g(x,CH9))==null?void 0:L.channelId)&&this.data&&this.data.items&&(L=this.getPathToEntryMatchingId(x))&&(this.set(L+".guideEntryRenderer.count",0),this.set(L+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.K.handleResetSubscriptionsUnreadDotCommand=function(x){var L,D=(L=_.g(x,ldg))==null?void 0:L.targetId,S;D&&(S=this.data)!=null&&S.items&&(x=this.data.items.findIndex(function(Q){var J;return((J=Q.guideEntryRenderer)==null?void 0:J.targetId)===D}),x<0||this.set("data.items."+x+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.K.getPathToEntryMatchingId=function(x){if(this.data&&this.data.items){var L=this.getEntryIndexMatchingId(x,this.data.items);if(L>-1)return"data.items."+L;for(var D=0;D<this.data.items.length;D++)if(L=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[D]))if(L=this.getEntryIndexMatchingId(x,L),L>-1)return"data.items."+D+".guideCollapsibleEntryRenderer.expandableItems."+L}};
_.K.handleAddToGuideSectionAction=function(x){var L=this;if(_.g(x,eT9)){var D=_.g(x,eT9).items;x=_.g(x,eT9).handlerData;var S,Q;if(D&&x&&((S=this.data)==null?void 0:(Q=S.handlerDatas)==null?void 0:Q.indexOf(x))>-1){D=D.filter(function(Z){return(Z=L.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",Z))&&!L.isGuideItemPresent(Z)});
var J;if(x==="GUIDE_ACTION_ADD_TO_SUBSCRIPTIONS"&&((J=this.data)==null?0:J.items)&&(S=this.getHeaderEntryIndexMatchingIdFromCollapsibleSection("subscriptions-channels-header",this.data.items),S>-1)){this.splice.apply(this,["data.items",S+1,0].concat(_.lP(D)));return}this.unshift.apply(this,["data.items"].concat(_.lP(D)))}}};
_.K.isGuideItemPresent=function(x){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(x,this.data.items)!==-1)return!0;var L=this.data.items.find(function(D){return!!D.guideCollapsibleEntryRenderer});
if((L==null?0:L.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(x,L.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.K.getEntryIndexMatchingId=function(x,L){var D=this;return L.findIndex(function(S){return D.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",S)===x})};
_.K.getHeaderEntryIndexMatchingIdFromCollapsibleSection=function(x,L){var D=this;return L.findIndex(function(S){return D.get("guideCollapsibleSectionEntryRenderer.headerEntry.guideEntryRenderer.entryData.guideEntryData.guideEntryId",S)===x})};
_.K.handleRemoveFromGuideSectionAction=function(x){if(_.g(x,RT9)){var L=_.g(x,RT9).guideEntryId;x=_.g(x,RT9).handlerData;var D,S;L&&x&&((D=this.data)==null?void 0:(S=D.handlerDatas)==null?void 0:S.indexOf(x))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(L,this.data.items),this.removeFromCollapsedSection(L,this.data.items))}};
_.K.removeFromExpandedSection=function(x,L){x=this.getEntryIndexMatchingId(x,L);x!==-1&&this.splice("data.items",x,1)};
_.K.removeFromCollapsedSection=function(x,L){var D=L.findIndex(function(S){return!!S.guideCollapsibleEntryRenderer});
D!==-1&&(L=L[D].guideCollapsibleEntryRenderer.expandableItems)&&(x=this.getEntryIndexMatchingId(x,L),x!==-1&&this.splice("data.items."+D+".guideCollapsibleEntryRenderer.expandableItems",x,1))};
_.K.activeEndpointChanged=function(){for(var x=_.jr(this.hostElement).querySelector("#items").children,L=0,D=x.length;L<D;L++)x[L].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.K.guideOpenedChanged=function(){for(var x=_.jr(this.hostElement).querySelector("#items").children,L=0,D=x.length;L<D;L++)x[L].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
Tw.prototype.guideOpenedChanged=Tw.prototype.guideOpenedChanged;Tw.prototype.activeEndpointChanged=Tw.prototype.activeEndpointChanged;Tw.prototype.persistentGuideChanged=Tw.prototype.persistentGuideChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Tw.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Tw.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],Tw.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.Gz.YtLazyListBehavior),_.r("design:type",Object)],Tw.prototype,"ytLazyListBehavior",void 0);_.A([_.b(_.Vi.YtdGuideStateAwareBehavior),_.r("design:type",Object)],Tw.prototype,"ytdGuideStateAwareBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],Tw.prototype,"ytComponentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Tw.prototype,"data",void 0);
_.A([_.F(),_.r("design:type",String)],Tw.prototype,"type",void 0);_.A([_.F({value:20}),_.r("design:type",Number)],Tw.prototype,"initialCount",void 0);_.A([_.F({value:10}),_.r("design:type",Number)],Tw.prototype,"targetFramerate",void 0);_.A([_.F({value:!0}),_.r("design:type",Boolean)],Tw.prototype,"autoFill",void 0);_.A([_.F({value:50}),_.r("design:type",Number)],Tw.prototype,"renderDelay",void 0);
_.A([_.bN("guidePersistentAndVisible"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Tw.prototype,"persistentGuideChanged",null);_.A([_.GV("activeEndpoint"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Tw.prototype,"activeEndpointChanged",null);_.A([_.GV("guideOpened"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Tw.prototype,"guideOpenedChanged",null);
_.A([_.w({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],Tw);
_.q(Tw,"ytd-guide-section-renderer",function(){if(Lnq!==void 0)return Lnq;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Lnq=x},{mode:_.Vm("kevlar_poly_si_batch_j073")?1:2});var DZI;var et=function(){return _.e.apply(this,arguments)||this};
_.p(et,_.e);_.J3.Object.defineProperties(et.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],et.prototype,"rendererBehaviors",void 0);_.A([_.F(),_.r("design:type",Object)],et.prototype,"data",void 0);_.A([_.F(),_.Y("data.signInButton.buttonRenderer.style"),_.r("design:type",Object),_.r("design:paramtypes",[])],et.prototype,"alignByText",null);_.A([_.w({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],et);
_.q(et,"ytd-guide-signin-promo-renderer",function(){if(DZI===void 0){var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);DZI=x}x=DZI;return x},{mode:1});var Ry=function(){var x=_.e.apply(this,arguments)||this;x.showFooter=!1;return x};
_.p(Ry,_.e);Ry.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}}}}};
Ry.prototype.attached=function(){var x=this,L;return _.I(function(D){if(D.nextAddress==1){L=_.yY().resolve(_.ZN(_.vV));if(!L)return D.jumpTo(0);L.setGuideData(x.hostElement);return D.yield(0,3)}x.ytLazyListBehavior.initialCount=2;return D.return()})};
Ry.prototype.onMouseExit=function(){_.u("web_guide_hover_expansion")&&_.P$(this.hostElement,"yt-guide-mouseleaved",[])};
Ry.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
Ry.prototype.dataChanged=Ry.prototype.dataChanged;Ry.prototype.onMouseExit=Ry.prototype.onMouseExit;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Ry.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],Ry.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.Gz.YtLazyListBehavior),_.r("design:type",Object)],Ry.prototype,"ytLazyListBehavior",void 0);
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Ry.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Ry.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],Ry.prototype,"showFooter",void 0);_.A([_.F({value:!0}),_.r("design:type",Boolean)],Ry.prototype,"autoFill",void 0);_.A([_.mX("mouseleave"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Ry.prototype,"onMouseExit",null);
_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Ry.prototype,"dataChanged",null);_.A([_.w({is:"ytd-guide-renderer",disableElementRegistration:!0})],Ry);
_.q(Ry,"ytd-guide-renderer",function(){if(xZW!==void 0)return xZW;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return xZW=x},{mode:_.Vm("kevlar_poly_si_batch_j073")?1:2});var SgX;var Gw=function(){var x=_.e.apply(this,arguments)||this;x.systemIcons=_.u("kevlar_system_icons");x.frostedGlass=_.u("web_frosted_glass");x.getEndpointForm=function(){return PkI(x.data)};
return x};
_.p(Gw,_.e);_.K=Gw.prototype;_.K.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.K.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.SR(this.data.formattedTitle))};
_.K.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.K.onDown=function(){this.interaction.triggerDown()};
_.K.onUp=function(){this.interaction.triggerUp()};
_.K.onTap=function(x){if(this.data.serviceEndpoint){var L;_.u("shorts_controller_retrieve_seedless_sequence_v2")&&((L=_.g(this.data.serviceEndpoint,_.TF))==null?void 0:L.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):db3(this.data.serviceEndpoint,this);x.preventDefault()}else{var D;((D=this.data)==null?0:D.navigationEndpoint)&&!_.QC(_.Jq(x),this.hostElement,["A".toString()])&&_.MF(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.K.computeActive=function(x,L){if(!x)return!1;var D=x.navigationEndpoint;x=x.serviceEndpoint;if(!D&&!x||!L)return!1;if(D){x=_.g(D,_.mt);var S=_.g(L,_.mt);if(x&&S)return x.browseId===S.browseId&&x.params===S.params;var Q;D=(Q=_.g(D.commandMetadata,_.gg))==null?void 0:Q.url;var J;L=(J=_.g(L.commandMetadata,_.gg))==null?void 0:J.url;return!(!D||!L||D!==L&&D!==_.gE(L))}return this.isActiveShortsTab(x,L)};
_.K.isActiveShortsTab=function(x,L){L=!!_.g(L,_.TF)||!!_.g(L,_.O6);return(!!_.g(x,_.TF)||!!_.g(x,_.O6))&&L};
_.K.computeTitle=function(x,L){return L?"":_.SR(x)};
_.J3.Object.defineProperties(Gw.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
Gw.prototype.onTap=Gw.prototype.onTap;Gw.prototype.onUp=Gw.prototype.onUp;Gw.prototype.onDown=Gw.prototype.onDown;Gw.prototype.onActiveStateChange=Gw.prototype.onActiveStateChange;Gw.prototype.dataChanged=Gw.prototype.dataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Gw.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],Gw.prototype,"ytComponentBehavior",void 0);
_.A([_.b(_.n1),_.r("design:type",Object)],Gw.prototype,"ironButtonState",void 0);_.A([_.F(),_.r("design:type",Object)],Gw.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],Gw.prototype,"activeEndpoint",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],Gw.prototype,"noLabels",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.r("design:type",Boolean)],Gw.prototype,"isActive",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Gw.prototype,"systemIcons",void 0);_.A([_.F1("yt-interaction"),_.r("design:type",Object)],Gw.prototype,"interaction",void 0);_.A([_.Y("isActive"),_.r("design:type",Object),_.r("design:paramtypes",[])],Gw.prototype,"ariaSelected",null);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Gw.prototype,"frostedGlass",void 0);
_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Gw.prototype,"dataChanged",null);_.A([_.bN("isActive"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Gw.prototype,"onActiveStateChange",null);_.A([_.mX("down"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Gw.prototype,"onDown",null);
_.A([_.mX("up"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Gw.prototype,"onUp",null);_.A([_.mX("tap"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Gw.prototype,"onTap",null);_.A([_.w({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],Gw);
_.q(Gw,"ytd-mini-guide-entry-renderer",function(){if(SgX!==void 0)return SgX;var x=document.createElement("template");_.m(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-guide-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" tabindex="-1" class="yt-simple-endpoint style-scope ytd-mini-guide-entry-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" title="[[computeTitle(data.formattedTitle, noLabels)]]" get-form="[[getEndpointForm]]">\n  <yt-icon id="icon" class="guide-icon style-scope ytd-mini-guide-entry-renderer" active="[[isActive]]" disable-upgrade$="[[data.thumbnail]]" hidden="[[data.thumbnail]]" icon="[[data.icon.iconType]]">\n  </yt-icon>\n  <span class="title style-scope ytd-mini-guide-entry-renderer" hidden="[[noLabels]]">[[getSimpleString(data.formattedTitle)]]</span>\n  <tp-yt-paper-tooltip animation-delay="0" hidden="[[!noLabels]]" offset="4" position="right" class="style-scope ytd-mini-guide-entry-renderer">\n    [[getSimpleString(data.formattedTitle)]]\n  </tp-yt-paper-tooltip>\n  <yt-interaction class="style-scope ytd-mini-guide-entry-renderer"></yt-interaction>\n</a>\n');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return SgX=x},{mode:_.Vm("kevlar_poly_si_batch_j063")?1:2});var Qv5;var CY=function(){var x=_.e.apply(this,arguments)||this;x.allVideosCount=0;x.noLabels=_.u("kevlar_mini_guide_no_labels")||_.u("kevlar_modern_mini_guide");x.frostedGlass=_.u("web_frosted_glass");return x};
_.p(CY,_.e);_.K=CY.prototype;_.K.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.K.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation");this.registerWithViewTransitionManager()};
_.K.onMouseEnter=function(){_.u("web_guide_hover_expansion")&&_.P$(this.hostElement,"yt-mini-guide-mouseentered",[])};
_.K.visibleChanged=function(){if(this.visible&&!this.data){var x=_.yY().resolve(_.ZN(_.vV));x&&x.setGuideData(this.hostElement)}};
_.K.dataChanged=function(){var x=_.u("kevlar_modern_mini_guide"),L;var D=(L=this.data)==null?void 0:L.items;L=this.allVideosCount;var S=[];if(D){for(var Q=[],J=_.O(D),Z=J.next();!Z.done;Z=J.next())if(Z=Z.value,Z.guideSubscriptionsSectionRenderer){var y=void 0;Q=((y=Z.guideSubscriptionsSectionRenderer)==null?void 0:y.items)||[]}D=_.O(D);for(J=D.next();!J.done;J=D.next())if(J=J.value,Z=void 0,(Z=J.guideSectionRenderer)==null?0:Z.items)for(Z=void 0,J=_.O((Z=J.guideSectionRenderer)==null?void 0:Z.items),
Z=J.next();!Z.done;Z=J.next()){Z=Z.value;var E=void 0,P=void 0;y=Z.guideEntryRenderer||_.g((E=Z)==null?void 0:(P=E.guideCollapsibleSectionEntryRenderer)==null?void 0:P.headerEntry,jB5);E=[];P=[];var v=void 0;if(((v=y)==null?void 0:v.targetId)==="subscriptions-guide-item")E=Q;else{var V=v=void 0;if((v=Z)==null?0:(V=v.guideCollapsibleSectionEntryRenderer)==null?0:V.sectionItems)P=E=Z.guideCollapsibleSectionEntryRenderer.sectionItems}veq(S,y,x?E:[]);if(P.length>0)for(Z=_.O(P),y=Z.next();!y.done;y=Z.next())y=
y.value,P=_.g(y,zTW),E=void 0,P=P&&(P.alwaysShow||L)?_.g((E=P)==null?void 0:E.entryRenderer,jB5):_.g(y,jB5),veq(S,P,[])}}this.miniGuideItems=S};
_.K.activeEndpointChanged=function(){for(var x=this.items.children,L=0;L<x.length;L++)x[L].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.K.registerWithViewTransitionManager=function(){var x=this;_.TG(_.WW,function(){var L=_.yY().resolve(_.ZN(_.og));if(L&&L.isAnyTransitionEnabled){var D={};L.viewTransitionCoordinator.registerElement(x.hostElement,(D.slide="mini-guide-page-transition",D))}})};
CY.prototype.activeEndpointChanged=CY.prototype.activeEndpointChanged;CY.prototype.dataChanged=CY.prototype.dataChanged;CY.prototype.visibleChanged=CY.prototype.visibleChanged;CY.prototype.onMouseEnter=CY.prototype.onMouseEnter;_.A([_.b(_.EG),_.r("design:type",Object)],CY.prototype,"ytdReduxBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],CY.prototype,"ytRendererBehavior",void 0);
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],CY.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.Vi.YtdGuideStateAwareBehavior),_.r("design:type",Object)],CY.prototype,"ytdGuideStateAwareBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],CY.prototype,"ytComponentBehavior",void 0);_.A([_.F1("#items"),_.r("design:type",Object)],CY.prototype,"items",void 0);_.A([_.F(),_.r("design:type",Object)],CY.prototype,"data",void 0);
_.A([_.F(),_.r("design:type",Boolean)],CY.prototype,"visible",void 0);_.A([_.F(),_.r("design:type",Object)],CY.prototype,"miniGuideItems",void 0);_.A([_.F({selector:_.Yj4}),_.r("design:type",Object)],CY.prototype,"allVideosCount",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],CY.prototype,"noLabels",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],CY.prototype,"frostedGlass",void 0);
_.A([_.mX("mouseenter"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],CY.prototype,"onMouseEnter",null);_.A([_.GV("visible"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],CY.prototype,"visibleChanged",null);_.A([_.GV("data","allVideosCount"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],CY.prototype,"dataChanged",null);
_.A([_.GV("activeEndpoint"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],CY.prototype,"activeEndpointChanged",null);_.A([_.w({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],CY);
_.q(CY,"ytd-mini-guide-renderer",function(){if(Qv5===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);Qv5=x}x=Qv5;return x},{mode:1});var JNq;var Knl=/^[\x00-\x7F]+$/,l9=function(){var x=_.e.apply(this,arguments)||this;x.darkerDarkTheme=_.u("web_darker_dark_theme");return x};
_.p(l9,_.e);_.J3.Object.defineProperties(l9.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var x,L=_.SR((x=this.data)==null?void 0:x.handle);if(L)return _.Dv("@"+L)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var x=_.SR(this.displayHandle),L,D=_.SR((L=this.data)==null?void 0:L.handleUrl);if(x&&D)return _.Dv(D+x)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var x=_.SR(this.displayHandle);if(x&&!Knl.test(x)){var L;return(L=this.data)==null?void 0:L.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var x=_.SR(this.displayHandleUrl),L,D=_.SR((L=this.data)==null?void 0:L.urlInfoText);if(x&&D)return _.Dv(D+" "+x)}}});
_.A([_.F(),_.r("design:type",Object)],l9.prototype,"data",void 0);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],l9.prototype,"displayHandle",null);_.A([_.Y("displayHandle"),_.r("design:type",Object),_.r("design:paramtypes",[])],l9.prototype,"displayHandleUrl",null);_.A([_.Y("displayHandle"),_.r("design:type",Object),_.r("design:paramtypes",[])],l9.prototype,"warningText",null);
_.A([_.Y("displayHandleUrl"),_.r("design:type",Object),_.r("design:paramtypes",[])],l9.prototype,"urlInfoTextWithUrl",null);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],l9.prototype,"darkerDarkTheme",void 0);_.A([_.w({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],l9);
_.q(l9,"ytd-handles-claiming-confirm-dialog-content",function(){if(JNq!==void 0)return JNq;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return JNq=x},{mode:1});var O4I;var UJ=function(){var x=_.e.apply(this,arguments)||this;x.okButtonOverride={style:"mono",type:"outline",size:"M"};return x};
_.p(UJ,_.e);UJ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
UJ.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],UJ.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],UJ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],UJ.prototype,"okButtonOverride",void 0);_.A([_.F(),_.r("design:type",Object)],UJ.prototype,"data",void 0);_.A([_.w({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],UJ);
_.q(UJ,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(O4I!==void 0)return O4I;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return O4I=x},{mode:1});var Z4q;var yNG=/^[\x00-\x7F]+$/,wL=function(){var x=_.e.apply(this,arguments)||this;x.isLoading=!1;x.darkerDarkTheme=_.u("web_darker_dark_theme");return x};
_.p(wL,_.e);wL.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var x;this.selectedHandle=(x=this.handleInput)==null?void 0:x.value;this.onSelectedHandleChanged(this.selectedHandle);_.P$(this.hostElement,"yt-refit-popups-action")}};
_.J3.Object.defineProperties(wL.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var x;return(x=this.data)==null?void 0:x.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.Dv("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.Dv(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!yNG.test(this.selectedHandle)){var x;return(x=this.data)==null?void 0:x.warningText}}}});
_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],wL.prototype,"ytComponentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],wL.prototype,"data",void 0);_.A([_.F(),_.r("design:type",String)],wL.prototype,"selectedHandle",void 0);_.A([_.F(),_.r("design:type",Object)],wL.prototype,"isLoading",void 0);_.A([_.F(),_.r("design:type",Function)],wL.prototype,"onSelectedHandleChanged",void 0);_.A([_.F1("#channel-handle-input"),_.r("design:type",Object)],wL.prototype,"handleInput",void 0);
_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],wL.prototype,"handleUrlPrefix",null);_.A([_.Y("selectedHandle"),_.r("design:type",Object),_.r("design:paramtypes",[])],wL.prototype,"displayHandle",null);_.A([_.Y("selectedHandle"),_.r("design:type",Object),_.r("design:paramtypes",[])],wL.prototype,"displayHandleUrl",null);_.A([_.Y("selectedHandle"),_.r("design:type",Object),_.r("design:paramtypes",[])],wL.prototype,"warningText",null);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],wL.prototype,"darkerDarkTheme",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],wL.prototype,"ytRendererBehavior",void 0);_.A([_.w({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],wL);
_.q(wL,"ytd-handles-claiming-edit-dialog-content",function(){if(Z4q!==void 0)return Z4q;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Z4q=x},{mode:1});var IMX;var Bh=function(){var x=_.e.apply(this,arguments)||this;x.actionButtonOverride={style:"mono",type:"filled",size:"M"};x.cancelButtonOverride={style:"mono",type:"text",size:"M"};x.selectButtonDisabled=!1;x.isLoading=!1;x.hasSelectedHandleEventListener=!1;x.selectedHandleChanged=function(L){x.selectedHandle=L};
return x};
_.p(Bh,_.e);_.K=Bh.prototype;_.K.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.K.onDataChanged=function(){var x,L;this.selectedHandle=(L=_.g((x=this.data)==null?void 0:x.inputField,bfq))==null?void 0:L.handle};
_.K.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.K.onCancel=function(){this.selectedHandle="";_.dg(this.hostElement,"yt-close-popup-action",[this.is])};
_.K.onSelectHandle=function(){var x=this;if(this.selectedHandle!==void 0){var L;((L=this.data)==null?void 0:L.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(D,S){if(S.newHandleUpdateStatus!==void 0&&S.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&S.newHandleUpdateStatus.errorMessage)_.nX(x.hostElement,_.SR(S.newHandleUpdateStatus.errorMessage)),
x.isLoading=!1;else{var Q;if((Q=x.data)==null?0:Q.onChannelUpdateSuccess){D=x.data.onChannelUpdateSuccess;var J,Z;if(S=(J=_.g(D,_.fS))==null?void 0:(Z=J.popup)==null?void 0:Z.handlesClaimingConfirmDialogRenderer)S.handle=_.Dv(x.selectedHandle);x.ytComponentBehavior.resolveCommand(D);_.dg(x.hostElement,"yt-close-popup-action",[x.is])}else x.isLoading=!1}},
onServerError:function(){var D;x.content&&((D=x.content)==null?0:D.handleInput)&&x.content.handleInput.validate();x.isLoading=!1;_.nX(x.hostElement,_.p6("TRY_AGAIN_LATER"))}}}))}};
_.K.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
Bh.prototype.onDataChanged=Bh.prototype.onDataChanged;Bh.prototype.onSelectedHandleChanged=Bh.prototype.onSelectedHandleChanged;_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],Bh.prototype,"ytComponentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Bh.prototype,"actionButtonOverride",void 0);_.A([_.F(),_.r("design:type",Object)],Bh.prototype,"cancelButtonOverride",void 0);_.A([_.F(),_.r("design:type",Object)],Bh.prototype,"data",void 0);
_.A([_.F(),_.r("design:type",String)],Bh.prototype,"selectedHandle",void 0);_.A([_.F(),_.r("design:type",Object)],Bh.prototype,"selectButtonDisabled",void 0);_.A([_.F(),_.r("design:type",Object)],Bh.prototype,"isLoading",void 0);_.A([_.F(),_.r("design:type",Object)],Bh.prototype,"hasSelectedHandleEventListener",void 0);_.A([_.F(),_.r("design:type",Object)],Bh.prototype,"handleInput",void 0);
_.A([_.bN("selectedHandle"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Bh.prototype,"onSelectedHandleChanged",null);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Bh.prototype,"onDataChanged",null);_.A([_.F1("ytd-handles-claiming-edit-dialog-content"),_.r("design:type",Object)],Bh.prototype,"content",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Bh.prototype,"ytRendererBehavior",void 0);
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Bh.prototype,"ytRendererstamperBehavior",void 0);_.A([_.w({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],Bh);
_.q(Bh,"ytd-handles-claiming-edit-dialog-renderer",function(){if(IMX!==void 0)return IMX;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return IMX=x},{mode:1});var E$l;var Wh=function(){return _.e.apply(this,arguments)||this};
_.p(Wh,_.e);_.J3.Object.defineProperties(Wh.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var x;if((x=this.data)==null?0:x.handle){var L;return _.Dv("@"+_.SR((L=this.data)==null?void 0:L.handle))}}}});
_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Wh.prototype,"formattedHandle",null);_.A([_.F(),_.r("design:type",Object)],Wh.prototype,"data",void 0);_.A([_.w({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],Wh);
_.q(Wh,"ytd-handles-claiming-radio-option-renderer",function(){if(E$l!==void 0)return E$l;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return E$l=x},{mode:1});var MbG;var dZY=/^[\x00-\x7F]+$/,qt=function(){var x=_.e.apply(this,arguments)||this;x.initialRadioIndex="-1";x.isLoading=!1;x.darkerDarkTheme=_.u("web_darker_dark_theme");x.maybeSubmitFeedback=function(){x.feedbackSurveyRenderer.submitSurvey()};
return x};
_.p(qt,_.e);qt.prototype.updateSelectedHandleIndexFromBinding=function(x){this.selectedRadioIndex=+x.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(x)};
qt.prototype.selectedHandleChanged=function(x){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var L;this.selectedHandle=(L=this.handleInput)==null?void 0:L.value;this.onSelectedHandleChanged(x)}};
_.J3.Object.defineProperties(qt.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var x;return(((x=this.data)==null?void 0:x.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var x;return this.ytRendererBehavior.getSimpleString((x=this.data)==null?void 0:x.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.Dv("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.Dv(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!dZY.test(this.selectedHandle)){var x;return(x=this.data)==null?void 0:x.warningText}}}});
_.A([_.F(),_.r("design:type",Object)],qt.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],qt.prototype,"initialRadioIndex",void 0);_.A([_.F(),_.r("design:type",Number)],qt.prototype,"selectedRadioIndex",void 0);_.A([_.F(),_.r("design:type",String)],qt.prototype,"selectedHandle",void 0);_.A([_.F(),_.r("design:type",Object)],qt.prototype,"isLoading",void 0);_.A([_.F(),_.r("design:type",Function)],qt.prototype,"onSelectedHandleChanged",void 0);
_.A([_.F(),_.r("design:type",Function)],qt.prototype,"onSelectedRadioIndexChanged",void 0);_.A([_.F1("#channel-handle-input"),_.r("design:type",Object)],qt.prototype,"handleInput",void 0);_.A([_.F1("ytd-feedback-survey-renderer"),_.r("design:type",Object)],qt.prototype,"feedbackSurveyRenderer",void 0);_.A([_.Y("data"),_.r("design:type",Number),_.r("design:paramtypes",[])],qt.prototype,"radioButtonLength",null);
_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],qt.prototype,"handleUrlPrefix",null);_.A([_.Y("selectedHandle"),_.r("design:type",Object),_.r("design:paramtypes",[])],qt.prototype,"displayHandle",null);_.A([_.Y("selectedHandle"),_.r("design:type",Object),_.r("design:paramtypes",[])],qt.prototype,"displayHandleUrl",null);_.A([_.Y("selectedHandle"),_.r("design:type",Object),_.r("design:paramtypes",[])],qt.prototype,"warningText",null);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],qt.prototype,"darkerDarkTheme",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],qt.prototype,"ytRendererBehavior",void 0);_.A([_.w({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],qt);
_.q(qt,"ytd-handles-claiming-select-dialog-content",function(){if(MbG!==void 0)return MbG;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return MbG=x},{mode:1});var PCX;var A0=function(){var x=_.e.apply(this,arguments)||this;x.actionButtonOverride={style:"mono",type:"filled",size:"M"};x.cancelButtonOverride={style:"mono",type:"text",size:"M"};x.initialRadioIndex="-1";x.selectButtonDisabled=!1;x.isLoading=!1;x.selectedRadioIndexChanged=function(L){x.selectedRadioIndex=Number(L.detail.value)};
x.selectedHandleChanged=function(L){x.selectedHandle=L.detail.value};
x.darkerDarkTheme=_.u("web_darker_dark_theme");return x};
_.p(A0,_.e);_.K=A0.prototype;_.K.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.K.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.K.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.P$(this.hostElement,"yt-refit-popups-action")};
_.K.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.K.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.dg(this.hostElement,"yt-close-popup-action",[this.is])};
_.K.onSelectHandle=function(){var x=this;if(this.selectedHandle!==void 0){var L;((L=this.data)==null?void 0:L.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(D,S){if(S.newHandleUpdateStatus!==void 0&&S.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&S.newHandleUpdateStatus.errorMessage)_.nX(x.hostElement,_.SR(S.newHandleUpdateStatus.errorMessage)),
x.isLoading=!1;else{var Q;if((Q=x.data)==null?0:Q.onChannelUpdateSuccess){D=x.data.onChannelUpdateSuccess;S=_.g(D,_.fS);var J;if(S==null?0:(J=S.popup)==null?0:J.handlesClaimingConfirmDialogRenderer)S.popup.handlesClaimingConfirmDialogRenderer.handle=_.Dv(x.selectedHandle);x.ytComponentBehavior.resolveCommand(D);_.dg(x.hostElement,"yt-close-popup-action",[x.is])}else x.isLoading=!1}},
onServerError:function(){if(x.selectedRadioIndex===x.radioButtonLength){var D;x.content&&((D=x.content)==null?0:D.handleInput)&&x.content.handleInput.validate()}x.isLoading=!1;_.nX(x.hostElement,_.p6("TRY_AGAIN_LATER"))}}}))}};
_.K.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var x,L;this.selectedHandle=(x=this.content)==null?void 0:(L=x.handleInput)==null?void 0:L.value}else this.selectedRadioIndex>=0&&((x=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(x==null?void 0:x.handle):this.selectedHandle=void 0)};
_.K.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.K.getRadioItem=function(x){if(this.radioButtonLength>x&&x>=0)return _.g(this.data.radioButton[x],$KX)};
_.J3.Object.defineProperties(A0.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var x;return(((x=this.data)==null?void 0:x.radioButton)||[]).length}}});
A0.prototype.onSelectedHandleChanged=A0.prototype.onSelectedHandleChanged;A0.prototype.onSelectedHandleIndexChanged=A0.prototype.onSelectedHandleIndexChanged;A0.prototype.onDataChanged=A0.prototype.onDataChanged;_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],A0.prototype,"ytComponentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],A0.prototype,"actionButtonOverride",void 0);_.A([_.F(),_.r("design:type",Object)],A0.prototype,"cancelButtonOverride",void 0);
_.A([_.F(),_.r("design:type",Object)],A0.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],A0.prototype,"initialRadioIndex",void 0);_.A([_.F(),_.r("design:type",Number)],A0.prototype,"selectedRadioIndex",void 0);_.A([_.F(),_.r("design:type",String)],A0.prototype,"selectedHandle",void 0);_.A([_.F(),_.r("design:type",Object)],A0.prototype,"selectButtonDisabled",void 0);_.A([_.F(),_.r("design:type",Object)],A0.prototype,"isLoading",void 0);
_.A([_.Y("data"),_.r("design:type",Number),_.r("design:paramtypes",[])],A0.prototype,"radioButtonLength",null);_.A([_.F1("ytd-handles-claiming-select-dialog-content"),_.r("design:type",Object)],A0.prototype,"content",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],A0.prototype,"onDataChanged",null);
_.A([_.bN("selectedRadioIndex"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],A0.prototype,"onSelectedHandleIndexChanged",null);_.A([_.bN("selectedHandle"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],A0.prototype,"onSelectedHandleChanged",null);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],A0.prototype,"darkerDarkTheme",void 0);
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],A0.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],A0.prototype,"ytRendererstamperBehavior",void 0);_.A([_.w({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],A0);
_.q(A0,"ytd-handles-claiming-select-dialog-renderer",function(){if(PCX!==void 0)return PCX;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return PCX=x},{mode:1});var jvl;var v$9;var $F=function(){return _.e.apply(this,arguments)||this};
_.p($F,_.e);$F.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],$F.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],$F.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],$F.prototype,"data",void 0);_.A([_.w({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],$F);
_.q($F,"ytd-hotkey-dialog-section-option-renderer",function(){if(v$9!==void 0)return v$9;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return v$9=x},{mode:1});var Vb9;var rL=function(){return _.e.apply(this,arguments)||this};
_.p(rL,_.e);rL.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],rL.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],rL.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],rL.prototype,"data",void 0);_.A([_.w({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],rL);
_.q(rL,"ytd-hotkey-dialog-section-renderer",function(){if(Vb9!==void 0)return Vb9;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return Vb9=x},{mode:1});var Nt=function(){var x=_.e.apply(this,arguments)||this;x.darkerDarkTheme=_.u("web_darker_dark_theme");return x};
_.p(Nt,_.e);Nt.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Nt.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Nt.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Nt.prototype,"darkerDarkTheme",void 0);_.A([_.w({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],Nt);
_.q(Nt,"ytd-hotkey-dialog-content",function(){if(jvl!==void 0)return jvl;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return jvl=x},{mode:1});var hq9;var i9=function(){return _.e.apply(this,arguments)||this};
_.p(i9,_.e);i9.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var x=document.querySelector("ytd-hotkey-dialog-content #scrollable");x&&(x.dialogElement=this.hostElement.parentElement)};
i9.prototype.onCloseTap=function(){_.dg(this.hostElement,"yt-close-popup-action")};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],i9.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],i9.prototype,"data",void 0);_.A([_.w({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],i9);
_.q(i9,"ytd-hotkey-dialog-renderer",function(){if(hq9!==void 0)return hq9;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return hq9=x},{mode:1});var H4l;var fY=function(){return _.e.apply(this,arguments)||this};
_.p(fY,_.e);fY.prototype.onYtServiceRequestError=function(){if(this.blocked){var x;var L=(x=this.data)==null?void 0:x.defaultServiceEndpoint}else{var D;L=(D=this.data)==null?void 0:D.toggledServiceEndpoint}var S;(L=(S=_.g(L,_.u4B))==null?void 0:S.onFailureAction)&&this.ytComponentBehavior.resolveCommand(L);this.updateBlockState(!this.blocked)};
fY.prototype.onYtToggleButton=function(x){this.updateBlockState(x.detail.toggled)};
fY.prototype.updateBlockState=function(x){if(x!==this.blocked){var L=this.blockedEntityKey;L&&this.ytdReduxBehavior.dispatch(_.TR("blockStateEntity",L,{key:L,blocked:x}));this.set("data.isToggled",x)}};
_.J3.Object.defineProperties(fY.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)}}});
fY.prototype.onYtToggleButton=fY.prototype.onYtToggleButton;fY.prototype.onYtServiceRequestError=fY.prototype.onYtServiceRequestError;_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],fY.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],fY.prototype,"ytdReduxBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],fY.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],fY.prototype,"blockedEntityKey",void 0);
_.A([_.F({selectorArgs:["blockedEntityKey"],selector:function(x,L){return _.u6(x.entities,"blockStateEntity",L)}}),
_.r("design:type",Object)],fY.prototype,"blockStateEntity",void 0);_.A([_.Y("data","blockStateEntity"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],fY.prototype,"blocked",null);_.A([_.mX("yt-service-request-error"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],fY.prototype,"onYtServiceRequestError",null);
_.A([_.mX("yt-toggle-button"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],fY.prototype,"onYtToggleButton",null);_.A([_.w({is:"ytd-block-button",disableElementRegistration:!0})],fY);
_.q(fY,"ytd-block-button",function(){if(H4l!==void 0)return H4l;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return H4l=x},
{mode:1});var u7l;var g$3;var oy=function(){return _.e.apply(this,arguments)||this};
_.p(oy,_.e);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],oy.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],oy.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],oy.prototype,"data",void 0);_.A([_.w({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],oy);
_.q(oy,"ytd-kids-blocklist-picker-item-renderer",function(){if(g$3!==void 0)return g$3;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return g$3=x},{mode:1});var ay=function(){return _.e.apply(this,arguments)||this};
_.p(ay,_.e);ay.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],ay.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],ay.prototype,"data",void 0);_.A([_.w({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],ay);
_.q(ay,"ytd-kids-blocklist-picker-content",function(){if(u7l!==void 0)return u7l;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return u7l=
x},{mode:_.Vm("kevlar_poly_si_batch_j025")?1:2});var k95;var zw=function(){var x=_.e.apply(this,arguments)||this;x.hasAnyRequestSucceeded=!1;x.hasAnyRequestFailed=!1;x.numPendingRequests=0;return x};
_.p(zw,_.e);_.K=zw.prototype;_.K.attached=function(){this.hostElement.setAttribute("dialog","")};
_.K.onDoneButtonTap=function(){_.dg(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.K.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.K.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.K.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.K.onPopupClosed=function(x){var L,D;if(((L=x.detail)==null?void 0:(D=L.popup)==null?void 0:D.is)==="tp-yt-paper-dialog"){var S;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((S=this.data)==null?0:S.successfulToastActionMessage)&&(x=_.Zv(this.data.successfulToastActionMessage),this.ytComponentBehavior.resolveCommand(x));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
zw.prototype.onPopupClosed=zw.prototype.onPopupClosed;zw.prototype.onYtServiceRequestError=zw.prototype.onYtServiceRequestError;zw.prototype.onYtServiceRequestCompleted=zw.prototype.onYtServiceRequestCompleted;zw.prototype.onYtServiceRequestSent=zw.prototype.onYtServiceRequestSent;_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],zw.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],zw.prototype,"ytRendererBehavior",void 0);
_.A([_.F(),_.r("design:type",Object)],zw.prototype,"data",void 0);_.A([_.mX("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],zw.prototype,"onYtServiceRequestSent",null);_.A([_.mX("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],zw.prototype,"onYtServiceRequestCompleted",null);
_.A([_.mX("yt-service-request-error"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],zw.prototype,"onYtServiceRequestError",null);_.A([_.mX("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],zw.prototype,"onPopupClosed",null);_.A([_.w({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],zw);
_.q(zw,"ytd-kids-blocklist-picker-renderer",function(){if(k95!==void 0)return k95;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return k95=x},{mode:1});var pUW;var mZg;var XH=function(){return _.e.apply(this,arguments)||this};
_.p(XH,_.e);XH.prototype.setTip=function(x){var L=this;this.data&&(this.tip=drl(Eq9.getInstance(),x,this.data),_.So(this,function(){_.MF(L.hostElement,"yt-refit")}))};
XH.prototype.clearTip=function(){this.tip=void 0};
XH.prototype.computeHidden=function(x){return!x};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],XH.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],XH.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.r("design:type",Boolean)],XH.prototype,"hidden",void 0);_.A([_.F(),_.r("design:type",Object)],XH.prototype,"tip",void 0);_.A([_.w({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],XH);
_.q(XH,"ytd-menu-popup-tip-renderer",function(){if(mZg!==void 0)return mZg;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);
return mZg=x},{mode:1});var b4l;var ch=function(){var x=_.e.apply(this,arguments)||this;x.useIcons=!1;x.systemIcons=_.u("kevlar_system_icons");x.useListItemStyles=_.u("web_list_item_style_for_menu_items");return x};
_.p(ch,_.e);_.K=ch.prototype;_.K.onFocus=function(){var x;(x=_.jr(this.hostElement).querySelector("tp-yt-paper-item"))==null||x.focus()};
_.K.onTap=function(){var x=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(x&&_.g(x,_.h_))this.componentBehavior.resolveCommand(x),this.updateToggledStateInEntity();else if(x){this.componentBehavior.resolveCommand(x)||_.yY().resolve(_.E2).resolveCommand(x,{form:{element:this.hostElement}});var L;((L=_.g(x,_.ul))==null?void 0:L.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.K.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.K.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.K.updateToggledStateInEntity=function(){var x=this.data.toggleMenuServiceItemEntityKey,L=!this.data.isToggled;x&&this.ytdReduxBehavior.dispatch(_.TR("toggleMenuServiceItemEntity",x,{key:x,isToggled:L}))};
_.K.computeIcon=function(x,L,D){return(x=x?D:L)&&x.iconType?_.gB(x.iconType):""};
_.K.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.K.isIconActive=function(x){return!_.u("toggle_menu_active_icon_killswitch")&&x};
_.J3.Object.defineProperties(ch.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var x,L,D;return((x=this.data)==null?0:x.isToggled)?(L=this.data)==null?void 0:L.toggledText:(D=this.data)==null?void 0:D.defaultText}}});
ch.prototype.toggledStateEntityChanged=ch.prototype.toggledStateEntityChanged;ch.prototype.onYtServiceRequestCompleted=ch.prototype.onYtServiceRequestCompleted;ch.prototype.onTap=ch.prototype.onTap;ch.prototype.onFocus=ch.prototype.onFocus;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],ch.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],ch.prototype,"componentBehavior",void 0);
_.A([_.b(_.EG),_.r("design:type",Object)],ch.prototype,"ytdReduxBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],ch.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],ch.prototype,"useIcons",void 0);_.A([_.F({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.r("design:type",String)],ch.prototype,"icon",void 0);
_.A([_.F({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(x,L){return _.u6(x.entities,"toggleMenuServiceItemEntity",L)}}),
_.r("design:type",Object)],ch.prototype,"toggleMenuServiceItemEntity",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],ch.prototype,"systemIcons",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],ch.prototype,"useListItemStyles",void 0);_.A([_.mX("focus"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ch.prototype,"onFocus",null);
_.A([_.Y("data.isToggled"),_.r("design:type",Object),_.r("design:paramtypes",[])],ch.prototype,"toggleButtonText",null);_.A([_.mX("tap"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ch.prototype,"onTap",null);_.A([_.mX("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ch.prototype,"onYtServiceRequestCompleted",null);
_.A([_.bN("toggleMenuServiceItemEntity.isToggled","data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ch.prototype,"toggledStateEntityChanged",null);_.A([_.w({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],ch);
_.q(ch,"ytd-toggle-menu-service-item-renderer",function(){if(b4l!==void 0)return b4l;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return b4l=x},{mode:1});var YgW;var nY=function(){return _.e.apply(this,arguments)||this};
_.p(nY,_.e);nY.prototype.onFocus=function(){var x;(x=_.jr(this.hostElement).querySelector("tp-yt-paper-item"))==null||x.focus()};
_.J3.Object.defineProperties(nY.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.$z(this.data.iconUrl)}}});
nY.prototype.onFocus=nY.prototype.onFocus;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],nY.prototype,"rendererBehavior",void 0);_.A([_.b(_.NP.YtEndpointBehavior),_.r("design:type",Object)],nY.prototype,"ytEndpointBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],nY.prototype,"data",void 0);_.A([_.mX("focus"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],nY.prototype,"onFocus",null);
_.A([_.Y("data.iconUrl"),_.r("design:type",Object),_.r("design:paramtypes",[])],nY.prototype,"imageSource",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],nY);
_.q(nY,"ytd-menu-custom-icon-item-renderer",function(){if(YgW!==void 0)return YgW;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return YgW=x},{mode:_.Vm("kevlar_poly_si_batch_j028")?1:2});_.dF(_.Ij,"yt-list-item-view-model",{props:{data:_.pJ,isMenuItem:_.pJ,isCompact:_.pJ,onTap:_.Il,trailingAccessory:_.Il,hideSelectionTextChevron:_.pJ,disabled:_.pJ,inPopup:_.pJ,disableHorizontalPadding:_.pJ,isOverlay:_.pJ,isToggled:_.pJ,ariaLabel:_.pJ,ariaPressed:_.pJ}});var t0=function(){var x=_.e.apply(this,arguments)||this;x.disableBackdropFilter=_.u("web_disable_backdrop_filter");return x};
_.p(t0,_.e);_.K=t0.prototype;
_.K.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"}}}};
_.K.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.K.computeAriaLabel=function(x){return x};
_.K.onPopupOpened=function(){this.items.selected=0;for(var x=_.O(_.jr(this.items).children),L=x.next();!L.done;L=x.next())L.value.popupPositionTarget=this.positionTarget;if(x=this.popupTip||void 0)x.setTip(this.source||""),this.source=void 0;this.veData&&(x=_.A3())&&_.t_(x,[this.veData])};
_.K.onPopupClosed=function(){var x=this.popupTip||void 0;x&&x.clearTip()};
_.K.onIronActivate=function(x){this.shouldPersist(x)||_.dg(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(x=_.A3())&&_.L7(x,this.veData)};
_.K.shouldPersist=function(x){var L,D;if(((L=x.detail)==null?void 0:L.selected)===void 0||(D=this.data)==null||!D.items)return!1;var S,Q;return!((Q=(S=this.data.items[x.detail.selected])==null?void 0:S.toggleMenuServiceItemRenderer)==null||!Q.persistentOnMenuPopup)};
_.K.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(x){return x.menuNavigationItemRenderer?!!x.menuNavigationItemRenderer.icon:x.menuServiceItemRenderer?!!x.menuServiceItemRenderer.icon:x.menuConditionalServiceItemRenderer?!!x.menuConditionalServiceItemRenderer.icon:x.menuConditionalNavigationItemRenderer?!!x.menuConditionalNavigationItemRenderer.icon:x.toggleMenuServiceItemRenderer?!!x.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
t0.prototype.onPopupClosed=t0.prototype.onPopupClosed;t0.prototype.onPopupOpened=t0.prototype.onPopupOpened;_.A([_.b(_.nE.YtEventForwardingBehavior),_.r("design:type",Object)],t0.prototype,"ytEventForwardingBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],t0.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],t0.prototype,"ytRendererBehavior",void 0);
_.A([_.F(),_.r("design:type",Object)],t0.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],t0.prototype,"veData",void 0);_.A([_.F({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.r("design:type",String)],t0.prototype,"ariaLabel",void 0);_.A([_.F({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],t0.prototype,"useIcons",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],t0.prototype,"disableBackdropFilter",void 0);_.A([_.F1("#items"),_.r("design:type",Object)],t0.prototype,"items",void 0);_.A([_.F1("ytd-menu-popup-tip-renderer"),_.r("design:type",Object)],t0.prototype,"popupTip",void 0);_.A([_.mX("yt-popup-opened"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],t0.prototype,"onPopupOpened",null);
_.A([_.mX("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],t0.prototype,"onPopupClosed",null);_.A([_.w({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],t0);
_.q(t0,"ytd-menu-popup-renderer",function(){if(pUW!==void 0)return pUW;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return pUW=x},{mode:1});var Fns;var svX=_.B(function(x){x=_.ym(x,{icon:void 0});var L=x.data;x=x.icon;var D=function(){return L().iconBadgeText},S={},Q=_.gF("yt-spec-icon-badge-shape",function(){a:switch(L().iconBadgeType){case "notification":var J="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":J="yt-spec-icon-badge-shape--type-cart";break a;default:J=""}return J},function(){a:switch(L().iconBadgeStyle){case "overlay":var J="yt-spec-icon-badge-shape--style-overlay";
break a;default:J=""}return J},(S["yt-spec-icon-badge-shape--text-size-small"]=function(){var J=D();
return!!((J==null?0:J.length)&&J.length>2)},S));
return _.M("yt-icon-badge-shape",null,_.M(_.d,{cond:x,then:function(J){return _.M("div",{class:Q},_.M("div",{class:"yt-spec-icon-badge-shape__icon"},_.M(_.YO,{icon:J})),_.M(_.d,{cond:D,then:function(Z){return _.M("div",{class:"yt-spec-icon-badge-shape__badge"},Z)}}))}}))},"Vi");
svX.idomCompat=!0;_.dF(svX,"yt-icon-badge-shape",{props:{data:_.pJ,icon:_.pJ}});var xn=function(){var x=_.e.apply(this,arguments)||this;x.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};x.unseenCount=0;x.isOverlay=!1;return x};
_.p(xn,_.e);_.K=xn.prototype;_.K.attached=function(){var x=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(L){x.onServiceWorkerMessage(L)})};
_.K.onDataChanged=function(){this.isAttached&&!this.JSC$20556_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$20556_lastData=this.data};
_.K.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.K.computeIcon=function(){var x,L;return(x=this.data)==null?void 0:(L=x.icon)==null?void 0:L.iconType};
_.K.onServiceWorkerMessage=function(x){x.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.K.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.g(this.data.updateUnseenCountEndpoint,_.ul)&&_.g(this.data.updateUnseenCountEndpoint,_.ul).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.K.handleUpdateNotificationsUnseenCountAction=function(x){var L=this;x=_.g(x,GMl);x!=null&&x.unseenCount&&x.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(x.unseenCount),_.WW.addLowPriorityJob(function(){L.data.updateUnseenCountEndpoint&&L.ytComponentBehavior.resolveCommand(L.data.updateUnseenCountEndpoint)},x.timeoutMs))};
_.K.onClick=function(){_.MF(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var x=_.P$(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),L=this.data.menuRequest;x&&x.length===1&&x[0]?_.dg(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):L&&this.ytComponentBehavior.resolveCommand(L)};
_.K.handleTopbarMenuClosedAction=function(x){x==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.K.toggleIconState=function(x){this.iconButton&&(this.iconButton.pressed=x)};
_.K.sendUnseenCountRequest=function(x){var L=this;_.TG(_.WW,function(){L.ytComponentBehavior.resolveCommand(x)})};
_.K.updateCountUI=function(x){this.set("unseenCount",x<9?x:"9+")};
_.J3.Object.defineProperties(xn.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
xn.prototype.handleUpdateNotificationsUnseenCountAction=xn.prototype.handleUpdateNotificationsUnseenCountAction;xn.prototype.onDataChanged=xn.prototype.onDataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],xn.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],xn.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.Fz),_.r("design:type",Object)],xn.prototype,"ytdOpenPopupBehavior",void 0);
_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],xn.prototype,"ytActionHandlerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],xn.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],xn.prototype,"unseenCount",void 0);_.A([_.F(),_.r("design:type",Object)],xn.prototype,"isOverlay",void 0);_.A([_.F({value:!0}),_.r("design:type",Boolean)],xn.prototype,"showTooltips",void 0);_.A([_.F1("yt-icon-button"),_.r("design:type",Object)],xn.prototype,"iconButton",void 0);
_.A([_.Y("unseenCount"),_.r("design:type",Object),_.r("design:paramtypes",[])],xn.prototype,"showNotificationCount",null);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],xn.prototype,"onDataChanged",null);_.A([_.mX("yt-update-notifications-unseen-count-action"),_.r("design:type",Function),_.r("design:paramtypes",[Object]),_.r("design:returntype")],xn.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.A([_.w({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],xn);
_.q(xn,"ytd-notification-topbar-button-renderer",function(){if(Fns!==void 0)return Fns;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Fns=x},{mode:_.Vm("kevlar_poly_si_batch_j025")?1:2});var TSu;var L_=function(){var x=_.e.apply(this,arguments)||this;x.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return x};
_.p(L_,_.e);L_.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}}}}}};
L_.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
L_.prototype.onDarkModeToggled=function(x){this.dark=x};
_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],L_.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],L_.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],L_.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],L_.prototype,"data",void 0);_.A([_.F({value:!0,reflectToAttribute:!0}),_.r("design:type",Boolean)],L_.prototype,"dark",void 0);
_.A([_.w({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],L_);
_.q(L_,"yt-pdg-buy-flow-header-renderer",function(){if(TSu!==void 0)return TSu;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return TSu=x},{mode:1});var eqY;var RqX;var DL=function(){var x=_.e.apply(this,arguments)||this;x.immediateValue=0;x.isDarkTheme=!1;x.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return x};
_.p(DL,_.e);_.K=DL.prototype;_.K.created=function(){_.KS.requestAvailability()};
_.K.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.K.dataChanged=function(){var x=_.jr(this.hostElement).querySelector("#color-slider");x.immediateValue&&this.updateSliderKnobAndGradientStyles(x.immediateValue);this.data.notches[0].knobColorArgb&&_.uN(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.XA(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.$6("HTML_DIR")==="rtl"&&_.jr(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.K.onSliderImmediateChange=function(){var x=_.jr(this.hostElement).querySelector("#color-slider");x.dragging&&(x.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(x.immediateValue),this.updateSliderKnobAndGradientStyles(x.immediateValue)),this.updateSliderAria())};
_.K.onSliderChange=function(){var x=_.jr(this.hostElement).querySelector("#color-slider");x.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(x.immediateValue),this.updateSliderKnobAndGradientStyles(x.immediateValue));this.updateSliderAria()};
_.K.updateSliderAria=function(){var x=_.jr(this.hostElement).querySelector("#color-slider"),L=_.jr(this.hostElement).querySelector("#color-slider");L=_.SR(this.data.notches[L.immediateValue].tierValue);_.hO3()&&_.MF(this.hostElement,"iron-announce",{text:L});x.setAttribute("aria-valuetext",L)};
_.K.updateSuperThanksSelectedTierEntity=function(x){if(x!==this.immediateValue){var L,D,S=this==null?void 0:(L=this.data)==null?void 0:(D=L.superThanksSelectedTierEntity)==null?void 0:D.key;S&&S.length>0&&this.ytdReduxBehavior.dispatch(_.TR("superThanksSelectedTierEntity",S,{key:S,index:x}))}};
_.K.onDarkModeToggledAction=function(x){this.isDarkTheme=x};
_.K.updateSliderKnobAndGradientStyles=function(x){this.immediateValue=x;x=this.data.notches[x];if(x==null?0:x.knobColorArgb)var L={"--ytd-pdg-color-slider-knob-color":_.XA(x.knobColorArgb)};(x==null?0:x.linearGradientCssStyle)&&L!==null&&(L=Object.assign({},L,{"--ytd-pdg-color-slider-active-color":x==null?void 0:x.linearGradientCssStyle}));L!==null&&_.uN(this.hostElement,L)};
DL.prototype.onSliderChange=DL.prototype.onSliderChange;DL.prototype.onSliderImmediateChange=DL.prototype.onSliderImmediateChange;DL.prototype.dataChanged=DL.prototype.dataChanged;_.A([_.F(),_.r("design:type",Object)],DL.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],DL.prototype,"immediateValue",void 0);_.A([_.F(),_.r("design:type",Number)],DL.prototype,"maxMarkers",void 0);
_.A([_.F({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:C1s}),_.r("design:type",Object)],DL.prototype,"superThanksSelectedTierEntity",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],DL.prototype,"isDarkTheme",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],DL.prototype,"ytdReduxBehavior",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],DL.prototype,"dataChanged",null);
_.A([_.mX("immediate-value-change"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],DL.prototype,"onSliderImmediateChange",null);_.A([_.mX("change"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],DL.prototype,"onSliderChange",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],DL);
_.q(DL,"ytd-pdg-color-slider-renderer",function(){if(RqX!==void 0)return RqX;var x=document.createElement("template");_.m(x,'\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>');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return RqX=x},{mode:1});var G9u;var CCl;var Sz=null;
_.q$({is:"ytd-comment-input",_template:function(){if(CCl!==void 0)return CCl;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return CCl=x},
behaviors:[_.oA3.YtHostElementBehavior,_.A4,_.jZ.YtComponentBehavior,_.GZ.YtRendererstamperBehavior,_.ONW.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 _.VT}},
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",_.p$(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;_.R4();this.focus()},
detached:function(){document.removeEventListener("tap",_.p$(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(x){x=x.detail;x=x.isCustomEmoji?x.shortcuts[0]:x.emojiId;var L=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(L,x);this.maybeUpdateTextDirection_();_.MF(this.hostElement,"input")},
getInputRange_:function(){var x=_.j8();if(x){x=x.getBrowserRangeObject();for(var L=x.commonAncestorContainer;L;){if(L===this.getEditableTextArea_())return x;L=L.parentNode}}x=this.getEditableTextArea_();x=_.L1(x,x.childNodes.length);x.select();return x.getBrowserRangeObject()},
insertTextWithEmojis_:function(x,L,D){(L=this.emojiManager.createDocumentFragment(L,!0,!1,D===void 0?!0:D))&&L.childNodes.length!==0&&(x.collapsed||x.deleteContents(),D=L.lastChild,x.insertNode(L),_.YYA(D).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var x=_.j8();if(x){var L=x.JSC$11351_getStartNode(),D=x.JSC$11351_getEndNode();if(V2q(L)&&V2q(D)){var S=x.JSC$11351_getStartOffset(),Q;if(_.HN&&L.nodeType===Node.ELEMENT_NODE&&(Q=_.blC(L)))_.L1(Q,0).select();else{Q=Ee(L)?L:_.rk(L,Ee);var J=Ee(D)?D:_.rk(D,Ee);if(Q||J)if(x.isCollapsed()){if(L.nodeType===Node.TEXT_NODE){x=!0;S===L.length&&(x=!1);if(Sz==="end"||Sz==="right")x=!1;L=L.parentNode;x=[].concat(_.lP(L.parentNode.childNodes)).indexOf(L)+(x?0:1);_.L1(L.parentNode,
x).select()}}else Q?Q.previousSibling&&Q.previousSibling.length>0?_.Dz(D,x.JSC$11351_getEndOffset(),Q.previousSibling,Q.previousSibling.length-1).select():(L=document.createTextNode("\u200b"),Q.parentNode.insertBefore(L,Q),_.Dz(D,x.JSC$11351_getEndOffset(),L,0).select()):J&&(J.nextSibling&&J.nextSibling.length>0?_.Dz(L,x.JSC$11351_getStartOffset(),J.nextSibling,1).select():(D=document.createTextNode("\u200b"),J.parentNode.insertBefore(D,J.nextSibling),_.Dz(L,x.JSC$11351_getStartOffset(),D,D.length).select()));
Sz=null}}else Sz=null}else Sz=null},
leftKeyPressed_:function(){Sz="left"},
rightKeyPressed_:function(){Sz="right"},
endKeyPressed_:function(){Sz="end"},
maybeDeleteChip_:function(){var x=pX$(!0);if(x){var L=_.j8(),D=L.JSC$11351_getStartNode();L=L.JSC$11351_getStartOffset();_.X4(D,L,x,x.childNodes.length).select()}},
maybeBackspaceChip_:function(){var x=pX$(!1);if(x){var L=_.j8(),D=L.JSC$11351_getStartNode();L=L.JSC$11351_getStartOffset();_.X4(D,L,x,0).select()}},
maybeBackspaceChipWordMode_:function(x){var L=_.j8();if(L.isCollapsed()){var D=L.JSC$11351_getStartNode();L=L.JSC$11351_getStartOffset();var S=mbl(D,L,!0);S&&(_.X4(D,L,S,0).select(),document.execCommand("delete"),x.preventDefault(),x.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(x){var L=_.j8();if(L.isCollapsed()){var D=L.JSC$11351_getStartNode();L=L.JSC$11351_getStartOffset();var S=mbl(D,L,!1);S&&(_.X4(D,L,S,S.childNodes.length).select(),document.execCommand("delete"),x.preventDefault(),x.stopImmediatePropagation())}},
onContentClick:function(x){x.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(x){x.defaultPrevented||x.currentTarget.tagName==="YTD-COMMENT-INPUT"&&Ee(x.target)&&x.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.jr(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.jr(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(x,L){x=HXX(x,this.emojiManager,L).cloneNode(!0);for(L=x.firstChild;L;)if(L.nodeType!==1)L=L.nextSibling;else switch(L.tagName){case "BR":var D=_.$l();_.Cq2(D,L);L=D.nextSibling;break;case "DIV":(D=L.lastChild)&&L.nextSibling&&_.ft(_.$l(),D);L.previousSibling&&(L.previousSibling.nodeType===1||L.previousSibling.nodeType===3&&!L.previousSibling.textContent.endsWith("\n"))&&_.iW(_.$l(),L);D&&D.nodeName==="BR"&&_.mg(D);D=L;L.hasChildNodes()?(L=L.firstChild,
_.lY2(D)):(L=L.nextSibling,_.mg(D));break;default:L=L.nextSibling}return bXl(x)},
setTextAreaValue:function(x){x||(x="");var L=this.getEditableFormattedString_();L.text="";this.getEditableTextArea_().innerText="";typeof x==="string"&&(x={runs:[{text:x}]});L.text=x},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();Sz=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var x=this.getEditableTextArea_();x&&(_.L1(x,x.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.$6("HTML_DIR")==="rtl"){var x=this.getEditableTextArea_(),L=this.getTextAreaValue()!==""?"auto":"rtl";x.setAttribute("dir",L)}},
handleInputEvent_:function(){var x=null;if(this.isEmojiButtonDisplayed){var L=this.getInputRange_();L&&(x=this.emojiInput.retrieveTextBeforeRange(L))}this.insertText_(x,!0);this.updateCharCount_();x=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=x.scrollHeight>x.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var x=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:x})},
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(x){this.isEmojiButtonDisplayed&&(x.preventDefault(),x.stopImmediatePropagation(),x=x.clipboardData.getData("text/plain"),this.insertText_(x,!1,!1),_.MF(this.hostElement,"input"))},
insertText_:function(x,L,D){L=L===void 0?!1:L;D=D===void 0?!0:D;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&x){var S=this.getInputRange_().cloneRange();this.emojiManager&&S&&(L&&this.emojiInput.offsetStartOfRangeBy(S,x.length),this.insertTextWithEmojis_(S,x,D),h6q(this.getEditableTextArea_().lastChild)||(S=this.getInputRange_().cloneRange()),S&&(this.emojiInput.updateSuggestions(S,x),this.updateSuggestionOffset_(S)))}},
getSimpleString:_.SR,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(x){return x?"focused":"not-focused"},
computePlaceholderText_:function(x){return this.getSimpleString(x)},
computeEditableText_:function(x){return this.getSimpleString(x)},
onPrefilledContentDismissed_:function(x){x.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(x,L){x?this.fire("yt-autonav-pause-focus"):L!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(x){var L=this.getEditableTextArea_();[].concat(_.lP(x.dataTransfer.items)).forEach(function(D){D.kind==="string"&&D.type.match("^text/plain")&&D.getAsString(function(S){L.appendChild(document.createTextNode(S))})});
x.preventDefault()},
preventDefault_:function(x){x.preventDefault()},
onSuggestionInsert_:function(x){this.insertTextWithEmojis_(x.detail.range,x.detail.text)},
onEmojiSuggestionClick_:function(x){this.emojiInput.insertSuggestion(x.detail)},
updateSuggestionOffset_:function(x){if(this.emojiInput&&_.jr(this.emojiInput).querySelector("#dropdown")){var L=this.getEditableTextArea_().getBoundingClientRect().bottom,D=x.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(L-D)+5;L=this.getEditableTextArea_().getBoundingClientRect().left;x=x.getBoundingClientRect().left-L;_.jr(this.emojiInput).querySelector("#dropdown").style.marginLeft=x+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.Ng("yt-post"));return this.localStorage}});var QZ=function(){var x=_.e.apply(this,arguments)||this;x.currentCommentOptionIndex=0;x.isEmojiPickerDisplayed=!1;x.emojiManager=_.VT;x.isUgcEmpty=!1;x.userGeneratedCommentChangedHandler=function(){_.MF(x.hostElement,"ytd-pdg-user-generated-comment-changed");x.isEmojiYtdCommentInputEnabled&&(x.isUgcEmpty=!x.ytdCommentInputEl.getTextAreaValue())};
x.pasteHandler=function(L){L.preventDefault();L.stopImmediatePropagation();var D;if(L=(D=L.clipboardData)==null?void 0:D.getData("text/plain"))D=document.getSelection().getRangeAt(0),D.collapsed||D.deleteContents(),L=document.createTextNode(L),D.insertNode(L),D.selectNodeContents(L),D.collapse(!1),L=window.getSelection(),L.removeAllRanges(),L.addRange(D)};
x.onDocumentClick=function(L){if(x.isEmojiPickerDisplayed){var D,S,Q;!(L.target instanceof Node)||(D=L.composedPath())!=null&&D.includes(x.editableTextEl)||(S=L.composedPath())!=null&&S.includes(x.emojiButtonEl)||(Q=L.composedPath())!=null&&Q.includes(x.emojiPickerEl)||(x.isEmojiPickerDisplayed=!1)}};
return x};
_.p(QZ,_.e);_.K=QZ.prototype;_.K.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.K.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.K.detached=function(){var x;(x=this.contentEl)==null||x.removeEventListener("input",this.userGeneratedCommentChangedHandler);var L;(L=this.contentEl)==null||L.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.K.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.K.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var x;this.contentEl.textContent=this.rendererBehavior.getSimpleString((x=this.data)==null?void 0:x.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.K.reloadEmojis=function(){this.emojiPickerEl&&_.g(this.emojiPicker,_.xYB)&&this.emojiPickerEl.updateEmojiCategories()};
_.K.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.uN(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.K.handleBackgroundColorStyling=function(){var x;if((x=this.currentCommentOption)==null?0:x.commentBackgroundColorArgb){var L;_.uN(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.XA((L=this.currentCommentOption)==null?void 0:L.commentBackgroundColorArgb)})}else _.uN(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.K.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var x;(x=this.contentEl)==null||x.focus()}};
_.K.onEditButtonClick=function(x){var L=document.getSelection();L&&this.contentEl&&(x.stopPropagation(),x.preventDefault(),L.selectAllChildren(this.contentEl),L.collapseToEnd())};
_.K.onContentDrop=function(x){var L=this;if(x.dataTransfer){x=_.O(x.dataTransfer.items);for(var D=x.next();!D.done;D=x.next())D=D.value,D.kind==="string"&&D.type.match("^text/plain")&&D.getAsString(function(S){var Q;(Q=L.contentEl)==null||Q.appendChild(document.createTextNode(S))})}};
_.K.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.K.getUserGeneratedCommentText=function(){var x,L=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(x=this.contentEl)==null?void 0:x.textContent;return L?L.trim():""};
_.K.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.K.onEmojiSelect=function(x){this.ytdCommentInputEl.onEmojiSelect(x)};
_.J3.Object.defineProperties(QZ.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.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 x;return!((x=this.currentCommentOption)==null||!x.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var x;if(_.g((x=this.currentCommentOption)==null?void 0:x.chipRenderer,_.urQ)){var L;return _.g((L=this.currentCommentOption)==null?void 0:L.chipRenderer,_.urQ)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var x,L;return((x=this.data)==null?0:x.commentOptionRenderers)?_.g((L=this.data)==null?void 0:L.commentOptionRenderers[this.superThanksSelectedTierEntity.index],JQY):void 0}var D,S;return((D=this.data)==null?0:D.commentOptionRenderers)?_.g((S=this.data)==null?void 0:S.commentOptionRenderers[this.currentCommentOptionIndex],JQY):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var x;return this.rendererBehavior.getSimpleString((x=this.data)==null?void 0:x.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var x;return this.rendererBehavior.getSimpleString((x=this.data)==null?void 0:x.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var x,L;return(L=_.g((x=this.data)==null?void 0:x.commentDialog,_.HrQ))==null?void 0:L.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var x,L;return(L=_.g((x=this.data)==null?void 0:x.commentDialog,_.HrQ))==null?void 0:L.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var x,L;return(L=_.g((x=this.data)==null?void 0:x.commentDialog,_.HrQ))==null?void 0:L.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var x,L,D=(L=_.g((x=this.data)==null?void 0:x.commentDialog,_.HrQ))==null?void 0:L.emojiPicker;if(!_.g(D,_.xYB)||!_.g(D,_.xYB).categories)return!1;x=function(J){return J.emojiPickerCategoryRenderer?J.emojiPickerCategoryRenderer.emojiIds&&J.emojiPickerCategoryRenderer.emojiIds.length>0:J.emojiPickerUpsellCategoryRenderer?J.emojiPickerUpsellCategoryRenderer.emojis&&J.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var S,Q;return((S=_.g(D,_.xYB))==null?0:(Q=S.categories)==null?0:Q.find(x))?!0:!1}}});
QZ.prototype.onEmojiSelect=QZ.prototype.onEmojiSelect;QZ.prototype.dataChanged=QZ.prototype.dataChanged;QZ.prototype.currentCommentOptionChanged=QZ.prototype.currentCommentOptionChanged;_.A([_.b(_.EG),_.r("design:type",Object)],QZ.prototype,"ytdReduxBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],QZ.prototype,"rendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],QZ.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.F1("#content-dom-if"),_.r("design:type",_.$9)],QZ.prototype,"contentDomIfEl",void 0);_.A([_.F1("#content-no-emojis"),_.r("design:type",HTMLElement)],QZ.prototype,"contentEl",void 0);_.A([_.F1("#container"),_.r("design:type",HTMLElement)],QZ.prototype,"containerEl",void 0);_.A([_.F1("#comment-chip-container"),_.r("design:type",HTMLElement)],QZ.prototype,"paidCommentChipContainerEl",void 0);_.A([_.F1("#text-input"),_.r("design:type",HTMLElement)],QZ.prototype,"editableTextEl",void 0);
_.A([_.F1("#emoji-button"),_.r("design:type",HTMLElement)],QZ.prototype,"emojiButtonEl",void 0);_.A([_.F1("#emoji-picker > yt-emoji-picker-renderer"),_.r("design:type",Object)],QZ.prototype,"emojiPickerEl",void 0);_.A([_.F1("#text-input > ytd-comment-input"),_.r("design:type",Object)],QZ.prototype,"ytdCommentInputEl",void 0);_.A([_.F(),_.r("design:type",Object)],QZ.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],QZ.prototype,"currentCommentOptionIndex",void 0);
_.A([_.F({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:C1s}),_.r("design:type",Object)],QZ.prototype,"superThanksSelectedTierEntity",void 0);_.A([_.F(),_.r("design:type",Object)],QZ.prototype,"isEmojiPickerDisplayed",void 0);_.A([_.F(),_.r("design:type",Object)],QZ.prototype,"emojiManager",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],QZ.prototype,"isUgcEmpty",void 0);
_.A([_.bN("currentCommentOption"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],QZ.prototype,"currentCommentOptionChanged",null);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],QZ.prototype,"dataChanged",null);_.A([_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],QZ.prototype,"isEmojiYtdCommentInputEnabled",null);
_.A([_.Y("data.title"),_.r("design:type",Object),_.r("design:paramtypes",[])],QZ.prototype,"title",null);_.A([_.Y("data.authorText"),_.r("design:type",Object),_.r("design:paramtypes",[])],QZ.prototype,"channelName",null);_.A([_.Y("data.commentOptionRenderers","currentCommentOption"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],QZ.prototype,"shouldShowPaidCommentChipRenderer",null);
_.A([_.Y("data.commentOptionRenderers","currentCommentOption"),_.r("design:type",Object),_.r("design:paramtypes",[])],QZ.prototype,"paidCommentChipRenderer",null);_.A([_.Y("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.r("design:type",Object),_.r("design:paramtypes",[])],QZ.prototype,"currentCommentOption",null);
_.A([_.Y("data.defaultCommentText","superThanksSelectedTierEntity"),_.r("design:type",Object),_.r("design:paramtypes",[])],QZ.prototype,"commentText",null);_.A([_.Y("data.placeholderText"),_.r("design:type",Object),_.r("design:paramtypes",[])],QZ.prototype,"placeholderText",null);_.A([_.Y("data.commentDialog.commentDialogRenderer.editableText"),_.r("design:type",Object),_.r("design:paramtypes",[])],QZ.prototype,"editableText",null);
_.A([_.Y("data.commentDialog.commentDialogRenderer.emojiButton"),_.r("design:type",Object),_.r("design:paramtypes",[])],QZ.prototype,"emojiButton",null);_.A([_.Y("data.commentDialog.commentDialogRenderer.emojiPicker"),_.r("design:type",Object),_.r("design:paramtypes",[])],QZ.prototype,"emojiPicker",null);
_.A([_.Y("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],QZ.prototype,"isEmojiButtonDisplayed",null);_.A([_.mX("yt-emoji-select"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],QZ.prototype,"onEmojiSelect",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],QZ);
_.q(QZ,"ytd-pdg-comment-preview-renderer",function(){if(G9u!==void 0)return G9u;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return G9u=x},{mode:2});var lMG;var Jp=function(){var x=_.e.apply(this,arguments)||this;x.selected=!1;return x};
_.p(Jp,_.e);_.K=Jp.prototype;_.K.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.K.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.K.dataChanged=function(){this.data&&(_.vP(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.uN(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.XA(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.XA(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.K.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.K.onClick=function(){this.logClick()};
_.K.onKeyboardSelect=function(){_.MF(this.hostElement,"tap");this.onClick()};
_.K.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Jp.prototype.onClick=Jp.prototype.onClick;Jp.prototype.selectedChanged=Jp.prototype.selectedChanged;Jp.prototype.dataChanged=Jp.prototype.dataChanged;_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],Jp.prototype,"componentBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Jp.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.A4),_.r("design:type",Object)],Jp.prototype,"ironA11yKeysBehavior",void 0);
_.A([_.b(_.SO),_.r("design:type",Object)],Jp.prototype,"ironSelectableBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Jp.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],Jp.prototype,"shownThumbnail",void 0);_.A([_.F(),_.r("design:type",Object)],Jp.prototype,"basePriceText",void 0);_.A([_.F(),_.r("design:type",Object)],Jp.prototype,"purchaseCommand",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Jp.prototype,"selected",void 0);
_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Jp.prototype,"dataChanged",null);_.A([_.bN("selected"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Jp.prototype,"selectedChanged",null);_.A([_.mX("click"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Jp.prototype,"onClick",null);
_.A([_.w({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],Jp);
_.q(Jp,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(lMG!==void 0)return lMG;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return lMG=x},{mode:1});var K_=function(){var x=_.e.apply(this,arguments)||this;x.selectedItemIndex=0;x.buyButtonDisabled=!1;return x};
_.p(K_,_.e);_.K=K_.prototype;
_.K.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]]"}}}}}};
_.K.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var x;var L=(x=_.g(this.data.colorSlider,QFu))==null?void 0:x.notches[this.selectedItemIndex].purchaseCommand}else{var D;L=(D=_.g(this.data.selectableItemButtons[this.selectedItemIndex],OOl))==null?void 0:D.purchaseCommand}if(L){x=_.g(L,_.JQh);x.productData||(x.productData={});var S;x.productData={pdgData:{commentMessageText:(S=this.commentPreviewRenderer)==null?void 0:S.getUserGeneratedCommentText()}};
_.MF(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(L)}}};
_.K.dataChanged=function(){if(this.data){_.VT.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.w_d(_.VT,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.VT.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var x;this.buyButtonDisabled=!((x=_.g(this.data.commentPreview,KPu))==null||!x.placeholderText);this.updatePriceSelectorStatus();var L;if((L=this.data)==null?0:L.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;x=[];this.data.preloadImages&&(x=this.data.preloadImages);
x=x.map(function(D){return _.PD(D.thumbnails,1920)});
x=_.O(x);for(L=x.next();!L.done;L=x.next())(L=L.value)&&_.bCf(L).thenCatch(function(){_.qy(Error("Cl"))})}};
_.K.superThanksSelectedTierEntityChanged=function(){var x;(this==null?void 0:(x=this.superThanksSelectedTierEntity)==null?void 0:x.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.K.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.K.updatePriceSelectorStatus=function(){this.isColorSlider?(_.jr(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.jr(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.jr(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.jr(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.K.closeBuyFlow=function(){_.dg(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.K.onUserGeneratedContentChanged=function(){var x;this.buyButtonDisabled=!((x=this.commentPreviewRenderer)==null?0:x.getUserGeneratedCommentText())};
_.K.updateSelectedItemIndexFromBinding=function(x){this.selectedItemIndex=x.detail.value};
_.J3.Object.defineProperties(K_.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var x;return!((x=this.data)==null||!x.disclaimerText)}}});
K_.prototype.onUserGeneratedContentChanged=K_.prototype.onUserGeneratedContentChanged;K_.prototype.closeBuyFlow=K_.prototype.closeBuyFlow;K_.prototype.selectedItemIndexChanged=K_.prototype.selectedItemIndexChanged;K_.prototype.superThanksSelectedTierEntityChanged=K_.prototype.superThanksSelectedTierEntityChanged;K_.prototype.dataChanged=K_.prototype.dataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],K_.prototype,"ytRendererBehavior",void 0);
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],K_.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],K_.prototype,"ytComponentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],K_.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],K_.prototype,"selectedItemIndex",void 0);_.A([_.F(),_.r("design:type",Boolean)],K_.prototype,"isColorSlider",void 0);
_.A([_.F(),_.r("design:type",Object)],K_.prototype,"buyButtonDisabled",void 0);_.A([_.F({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:C1s}),_.r("design:type",Object)],K_.prototype,"superThanksSelectedTierEntity",void 0);_.A([_.F1("ytd-pdg-comment-preview-renderer"),_.r("design:type",Object)],K_.prototype,"commentPreviewRenderer",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],K_.prototype,"ytdReduxBehavior",void 0);
_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],K_.prototype,"dataChanged",null);_.A([_.bN("superThanksSelectedTierEntity"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],K_.prototype,"superThanksSelectedTierEntityChanged",null);_.A([_.bN("selectedItemIndex"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],K_.prototype,"selectedItemIndexChanged",null);
_.A([_.mX("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],K_.prototype,"closeBuyFlow",null);_.A([_.mX("ytd-pdg-user-generated-comment-changed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],K_.prototype,"onUserGeneratedContentChanged",null);_.A([_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],K_.prototype,"isDisclaimerTextShown",null);
_.A([_.w({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],K_);
_.q(K_,"yt-super-vod-buy-flow-content-renderer",function(){if(eqY!==void 0)return eqY;var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return eqY=x},{mode:1});var UZI;var OQ=function(){var x=_.e.apply(this,arguments)||this;x.lottieAnimationRef={};return x};
_.p(OQ,_.e);_.K=OQ.prototype;_.K.created=function(){_.KS.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.p$(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.K.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.MF(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.K.detached=function(){this.autoCloseJobId&&_.WW.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.p$(this,this.onPopupIronOverlayOpened))};
_.K.dataChanged=function(){var x=this;this.data&&this.data.autoCloseDelay&&(_.dg(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.hD(_.WW,function(){x.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.uN(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.K.onDOMLoadedLottie=function(){var x=this,L,D,S=Number((L=this.data)==null?void 0:(D=L.autoCloseDelay)==null?void 0:D.seconds)||0;this.fadeOutJobId=_.hD(_.WW,function(){x.lottiePlayerEl.classList.add("fadeout")},(S-.25)*1E3);
this.autoCloseJobId=_.hD(_.WW,function(){x.closePopup()},S*1E3)};
_.K.openPopup=function(){this.ironOverlayBehavior.open()};
_.K.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.dg(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.v$(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.yY().resolve(_.E2).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.WW.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.WW.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.K.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var x,L;(x=this.lottieAnimationRef)==null||(L=x.lottieEl)==null||L.destroy();x=this.data.lottie;var D,S;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:x.url+"_"+Math.random(),path:x.url,autoplay:!0,loop:(S=(D=x.settings)==null?void 0:D.loop)!=null?S:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.J3.Object.defineProperties(OQ.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var x,L;return!!((x=this.data)==null?0:(L=x.lottie)==null?0:L.url)}}});
OQ.prototype.maybeInitializeLottie=OQ.prototype.maybeInitializeLottie;OQ.prototype.dataChanged=OQ.prototype.dataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],OQ.prototype,"rendererBehavior",void 0);_.A([_.b(_.EW),_.r("design:type",Object)],OQ.prototype,"ironOverlayBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],OQ.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],OQ.prototype,"lottiePlayerProps",void 0);
_.A([_.F(),_.r("design:type",Object)],OQ.prototype,"lottieAnimationRef",void 0);_.A([_.F1("ytd-lottie-player"),_.r("design:type",HTMLElement)],OQ.prototype,"lottiePlayerEl",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],OQ.prototype,"dataChanged",null);_.A([_.Y("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],OQ.prototype,"hasLottieAnimation",null);
_.A([_.bN("data.lottie.url"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],OQ.prototype,"maybeInitializeLottie",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],OQ);
_.q(OQ,"ytd-desktop-image-overlay-renderer",function(){if(UZI!==void 0)return UZI;var x=document.createElement("template");_.m(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-desktop-image-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-desktop-image-overlay-renderer">\n  <yt-img-shadow hidden$="[[hasLottieAnimation]]" thumbnail="[[data.image]]" width="1920" class="style-scope ytd-desktop-image-overlay-renderer"></yt-img-shadow>\n  <ytd-lottie-player class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" hidden$="[[!hasLottieAnimation]]" class="style-scope ytd-desktop-image-overlay-renderer">\n</ytd-lottie-player></div>\n');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return UZI=x},{mode:1});var wUl;var ZL=function(){return _.e.apply(this,arguments)||this};
_.p(ZL,_.e);_.K=ZL.prototype;_.K.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"}}}}};
_.K.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",_.p$(this,this.closePopup))};
_.K.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.p$(this,this.closePopup))};
_.K.dataChanged=function(){_.P$(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.g(this.data.header,SGY)&&(this.hasBackgroundBanner=!!_.g(this.data.header,SGY).backgroundBanner)};
_.K.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.p$(this,this.closePopup))};
_.K.closePopup=function(){this.data&&this.data.onCloseCommand&&_.jq(this.hostElement,[this.data.onCloseCommand])};
ZL.prototype.handleBuyflowSelectionSubmitted=ZL.prototype.handleBuyflowSelectionSubmitted;ZL.prototype.dataChanged=ZL.prototype.dataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],ZL.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],ZL.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],ZL.prototype,"data",void 0);
_.A([_.F({value:!0,reflectToAttribute:!0}),_.r("design:type",Boolean)],ZL.prototype,"hasBackgroundBanner",void 0);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ZL.prototype,"dataChanged",null);_.A([_.mX("yt-pdg-buy-flow-selection-submitted"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ZL.prototype,"handleBuyflowSelectionSubmitted",null);
_.A([_.w({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],ZL);
_.q(ZL,"ytd-pdg-buy-flow-renderer",function(){if(wUl!==void 0)return wUl;var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return wUl=x},{mode:1});var BSY;var yZ=function(){var x=_.e.apply(this,arguments)||this;x.isOpen=!1;x.isPlaylistCreated=!1;return x};
_.p(yZ,_.e);_.K=yZ.prototype;_.K.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.K.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.MF(this.hostElement,"yt-refit")};
_.K.onCreateTap=function(){var x=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.jq(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(L,D){if(!_.u("killswitch_ep_in_create_playlist_response")&&(D==null?0:D.actions))for(L=_.O(D.actions),D=L.next();!D.done;D=L.next())D=D.value,_.g(D,_.ly)&&x.ytComponentBehavior.resolveCommand(D)}}]),this.isPlaylistCreated=!0)};
_.K.onKeydown=function(x){if(x.keyCode===13)this.onCreateTap()};
_.K.onServiceRequestCompleted=function(x){x.stopPropagation();_.dg(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.K.computePrivacyBadge=function(x){return x?[{metadataBadgeRenderer:x}]:[]};
yZ.prototype.onServiceRequestCompleted=yZ.prototype.onServiceRequestCompleted;yZ.prototype.onKeydown=yZ.prototype.onKeydown;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],yZ.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],yZ.prototype,"ytComponentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],yZ.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],yZ.prototype,"isOpen",void 0);
_.A([_.F(),_.r("design:type",Object)],yZ.prototype,"isPlaylistCreated",void 0);_.A([_.F({value:{REQUIRED_LABEL:_.p6("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.p6("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.r("design:type",Object)],yZ.prototype,"addToStrings",void 0);_.A([_.F({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.r("design:type",Array)],yZ.prototype,"privacyBadge",void 0);
_.A([_.F1("#privacy-input"),_.r("design:type",Object)],yZ.prototype,"privacyInput",void 0);_.A([_.F1("#name-input"),_.r("design:type",Object)],yZ.prototype,"nameInput",void 0);_.A([_.mX("keydown"),_.r("design:type",Function),_.r("design:paramtypes",[KeyboardEvent]),_.r("design:returntype")],yZ.prototype,"onKeydown",null);_.A([_.mX("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],yZ.prototype,"onServiceRequestCompleted",null);
_.A([_.w({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],yZ);
_.q(yZ,"ytd-add-to-playlist-create-renderer",function(){if(BSY!==void 0)return BSY;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return BSY=x},{mode:1});var Wnu;var qgu;var Ir=function(){var x=_.e.apply(this,arguments)||this;x.transferState="TRANSFER_STATE_UNKNOWN";return x};
_.p(Ir,_.e);Ir.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
Ir.prototype.onCheckboxChange=function(x){var L=this;this.data&&_.LI(this,"yt-playlist-checkbox-changed",function(){var D=_.K$(x).checked?L.data.addToPlaylistServiceEndpoint:L.data.removeFromPlaylistServiceEndpoint;D&&_.yY().resolve(_.E2).resolveCommand(D,{form:{element:L.hostElement}});_.u("dl_playlist_killswitch")||L.transferState!=="TRANSFER_STATE_UNKNOWN"&&L.transferState!=="TRANSFER_STATE_FAILED"&&L.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:L.data.playlistId,action:"ACTION_SYNC"}})},
100)};
Ir.prototype.computeIconType=function(x){return x?"yt-icons:"+x.toLowerCase():null};
Ir.prototype.dataChanged=Ir.prototype.dataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Ir.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Ir.prototype,"data",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],Ir.prototype,"ytdReduxBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],Ir.prototype,"ytComponentBehavior",void 0);_.A([_.F1("#checkbox"),_.r("design:type",HTMLInputElement)],Ir.prototype,"checkbox",void 0);
_.A([_.F({selector:_.f7,selectorArgs:["data.playlistId"]}),_.r("design:type",String)],Ir.prototype,"transferState",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Ir.prototype,"dataChanged",null);_.A([_.w({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],Ir);
_.q(Ir,"ytd-playlist-add-to-option-renderer",function(){if(qgu!==void 0)return qgu;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return qgu=x},{mode:1});var ANI=_.B(function(x){var L=x.data;return _.M("ytd-menu-title-renderer",{class:"ytdMenuTitleRendererHost"},_.M("div",null,_.M(_.kP,{text:function(){return L().title}})),_.M(_.d,{cond:function(){return L().subtitle},
then:function(D){return _.M("div",{class:"ytdMenuTitleRendererSubtitle"},_.M(_.kP,{text:D}))}}))},"Wi");
ANI.idomCompat=!0;_.dF(ANI,"ytd-menu-title-renderer",{props:{data:_.pJ}});var EQ=function(){var x=_.e.apply(this,arguments)||this;x.addToStrings={ADD_TO_DROPDOWN_LABEL:_.p6("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};x.closeButtonAriaLabel=_.p6("SBOX_INAPPROPRIATE_CANCEL");x.dialog=_.u("desktop_add_to_playlist_renderer_dialog_popup");return x};
_.p(EQ,_.e);_.K=EQ.prototype;_.K.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"}}}};
_.K.onPopupOpened=function(){_.VA(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.K.onPopupClosed=function(){_.VA(this.playlists,"scrollable",!1)};
_.K.computeAriaLabel=function(){var x;if(this==null?0:(x=this.data)==null?0:x.actions){x=_.O(this.data.actions);for(var L=x.next();!L.done;L=x.next())if(L=L.value,L.menuTitleRenderer)return _.SR(L.menuTitleRenderer.title)}};
_.K.onTapClose=function(){_.dg(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.J3.Object.defineProperties(EQ.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var x;if(this==null?0:(x=this.data)==null?0:x.actions){x=_.O(this.data.actions);for(var L=x.next();!L.done;L=x.next())if(L=L.value,L.menuTitleRenderer)return L.menuTitleRenderer}return!1}}});
EQ.prototype.onPopupClosed=EQ.prototype.onPopupClosed;EQ.prototype.onPopupOpened=EQ.prototype.onPopupOpened;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],EQ.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.nE.YtEventForwardingBehavior),_.r("design:type",Object)],EQ.prototype,"ytEventForwardingBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],EQ.prototype,"ytRendererStamperBehavior",void 0);
_.A([_.F(),_.r("design:type",Object)],EQ.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],EQ.prototype,"addToStrings",void 0);_.A([_.F({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.r("design:type",String)],EQ.prototype,"ariaLabel",void 0);_.A([_.F(),_.r("design:type",String)],EQ.prototype,"closeButtonAriaLabel",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],EQ.prototype,"dialog",void 0);
_.A([_.F1("#playlists"),_.r("design:type",HTMLElement)],EQ.prototype,"playlists",void 0);_.A([_.F1("ytd-add-to-playlist-create-renderer"),_.r("design:type",Object)],EQ.prototype,"createRenderer",void 0);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],EQ.prototype,"menuTitleRenderer",null);_.A([_.mX("yt-popup-opened"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],EQ.prototype,"onPopupOpened",null);
_.A([_.mX("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],EQ.prototype,"onPopupClosed",null);_.A([_.w({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],EQ);
_.q(EQ,"ytd-add-to-playlist-renderer",function(){if(Wnu!==void 0)return Wnu;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Wnu=x},{mode:1});var $Zl;var Mm=function(){var x=_.e.apply(this,arguments)||this;x.isPlaylistEditComplete=!1;x.isCollabEngagementDisabled=!1;x.closeButtonAriaLabel=_.p6("SBOX_INAPPROPRIATE_CANCEL");x.saveButton={title:_.p6("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"};x.onValueChanged=function(){x.updateSaveButtonState();x.computeCollabEngagementDisabled()};
return x};
_.p(Mm,_.e);_.K=Mm.prototype;_.K.attached=function(){this.JSC$20610_scroller&&(this.JSC$20610_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20610_scroller.attached&&typeof this.JSC$20610_scroller.attached==="function"&&this.JSC$20610_scroller.attached())};
_.K.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.K.onPopupClosed=function(){this.reset()};
_.K.close=function(){_.dg(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.K.onClickSave=function(){var x=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var L=[];this.nameInput.value!==null&&L.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&L.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var D=Number(this.privacyInput.value);isNaN(D)||L.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:D})}this.votingInput.value!==null&&(D=this.votingInput.value)&&L.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:D});if(L.length>0){var S;_.g((S=this.data)==null?void 0:S.updateSettingsEndpoint,_.Kv).actions=L;var Q;if((Q=this.data)==null?0:Q.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){x.close()}}}),this.isPlaylistEditComplete=!0}}};
_.K.computePrivacyBadge=function(x){return x?[{metadataBadgeRenderer:x}]:[]};
_.K.computeEditorData=function(x){var L,D;return x==null?void 0:(L=x.sections)==null?void 0:(D=L[0])==null?void 0:D.playlistSettingsEditorCasualSectionRenderer};
_.K.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.K.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}}}}}};
_.K.computeAriaLabel=function(){var x,L,D,S=(x=this.data)==null?void 0:(L=x.sections)==null?void 0:(D=L[0])==null?void 0:D.playlistSettingsEditorCasualSectionRenderer;return _.SR(S==null?void 0:S.title)};
_.K.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"}))};
_.K.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.K.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.K.isNameChanged=function(){var x,L,D;return(((x=this.editorData)==null?void 0:(L=x.name)==null?void 0:(D=L.textInputFormFieldRenderer)==null?void 0:D.value)||"")!==(this.nameInput.value||"")};
_.K.isDescriptionChanged=function(){var x,L,D;return(((x=this.editorData)==null?void 0:(L=x.description)==null?void 0:(D=L.textInputFormFieldRenderer)==null?void 0:D.value)||"")!==(this.descriptionInput.value||"")};
_.K.isPrivacyChanged=function(){var x,L,D,S,Q,J,Z,y;return((Z=(x=this.editorData)==null?void 0:(L=x.privacy)==null?void 0:(D=L.dropdownFormFieldRenderer)==null?void 0:(S=D.dropdown)==null?void 0:(Q=S.dropdownRenderer)==null?void 0:(J=Q.entries)==null?void 0:J.find(function(E){var P;return E==null?void 0:(P=E.privacyDropdownItemRenderer)==null?void 0:P.isSelected}))==null?void 0:(y=Z.privacyDropdownItemRenderer)==null?void 0:y.int32Value)!==this.privacyInput.value};
_.K.isVotingChanged=function(){var x,L,D,S,Q,J,Z,y;return((Z=(x=this.editorData)==null?void 0:(L=x.voting)==null?void 0:(D=L.dropdownFormFieldRenderer)==null?void 0:(S=D.dropdown)==null?void 0:(Q=S.dropdownRenderer)==null?void 0:(J=Q.entries)==null?void 0:J.find(function(E){var P;return E==null?void 0:(P=E.privacyDropdownItemRenderer)==null?void 0:P.isSelected}))==null?void 0:(y=Z.privacyDropdownItemRenderer)==null?void 0:y.int32Value)!==this.votingInput.value};
Mm.prototype.onPopupClosed=Mm.prototype.onPopupClosed;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Mm.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],Mm.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.nE.YtEventForwardingBehavior),_.r("design:type",Object)],Mm.prototype,"ytEventForwardingBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Mm.prototype,"ytRendererStamperBehavior",void 0);
_.A([_.F(),_.r("design:type",Object)],Mm.prototype,"data",void 0);_.A([_.F({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.r("design:type",Array)],Mm.prototype,"privacyBadge",void 0);_.A([_.F({computed:"computeEditorData(data)"}),_.r("design:type",Object)],Mm.prototype,"editorData",void 0);_.A([_.F(),_.r("design:type",Object)],Mm.prototype,"isPlaylistEditComplete",void 0);_.A([_.F(),_.r("design:type",Object)],Mm.prototype,"isCollabEngagementDisabled",void 0);
_.A([_.F({value:{REQUIRED_LABEL:_.p6("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.p6("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.r("design:type",Object)],Mm.prototype,"addToStrings",void 0);_.A([_.F({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.r("design:type",String)],Mm.prototype,"ariaLabel",void 0);_.A([_.F(),_.r("design:type",String)],Mm.prototype,"closeButtonAriaLabel",void 0);
_.A([_.F(),_.r("design:type",Object)],Mm.prototype,"saveButton",void 0);_.A([_.F1("#name-input"),_.r("design:type",Object)],Mm.prototype,"nameInput",void 0);_.A([_.F1("#description-input"),_.r("design:type",Object)],Mm.prototype,"descriptionInput",void 0);_.A([_.F1("#privacy-input"),_.r("design:type",Object)],Mm.prototype,"privacyInput",void 0);_.A([_.F1("#voting-input"),_.r("design:type",Object)],Mm.prototype,"votingInput",void 0);
_.A([_.F1("#scroller"),_.r("design:type",Object)],Mm.prototype,"JSC$20610_scroller",void 0);_.A([_.mX("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Mm.prototype,"onPopupClosed",null);_.A([_.F(),_.r("design:type",Object)],Mm.prototype,"onValueChanged",void 0);_.A([_.w({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],Mm);
_.q(Mm,"ytd-playlist-settings-editor-renderer",function(){if($Zl===void 0){var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);$Zl=x}x=$Zl;return x},{mode:1});var rNq;_.BD("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var di=function(){return _.e.apply(this,arguments)||this};
_.p(di,_.e);_.K=di.prototype;_.K.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}}}}}};
_.K.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.K.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 x=this.get("data.nextButton.buttonRenderer.navigationEndpoint");x&&(this.nextNavigationEndpoint=x,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.K.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 x={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",x)}}};
_.K.onPopupOpened=function(x){x.detail!==this&&x.detail!==this.hostElement||!_.u("enable_premium_voluntary_pause")||_.dg(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.K.onNextButtonTap=function(){var x=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);x&&this.ytdOpenPopupBehavior.openPopup(x)};
_.K.updateSelectedResponseIndexFromBinding=function(x){this.selectedResponseIndex=x.detail.value};
di.prototype.onPopupOpened=di.prototype.onPopupOpened;di.prototype.onSelectedResponseIndexChange=di.prototype.onSelectedResponseIndexChange;di.prototype.dataChanged=di.prototype.dataChanged;_.A([_.b(_.Fz),_.r("design:type",Object)],di.prototype,"ytdOpenPopupBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],di.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],di.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.F(),_.r("design:type",Object)],di.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Number)],di.prototype,"selectedResponseIndex",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],di.prototype,"dataChanged",null);_.A([_.bN("selectedResponseIndex"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],di.prototype,"onSelectedResponseIndexChange",null);
_.A([_.mX("yt-popup-opened"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],di.prototype,"onPopupOpened",null);_.A([_.w({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],di);
_.q(di,"ytd-red-cancel-survey-renderer",function(){if(rNq!==void 0)return rNq;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return rNq=x},{mode:1});var NSl;var P7=function(){var x=_.e.apply(this,arguments)||this;x.closeButtonAriaLabel=_.p6("SBOX_INAPPROPRIATE_CANCEL");return x};
_.p(P7,_.e);P7.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
P7.prototype.onClickClose=function(){_.dg(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],P7.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],P7.prototype,"rendererStamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],P7.prototype,"data",void 0);_.A([_.F(),_.r("design:type",String)],P7.prototype,"closeButtonAriaLabel",void 0);_.A([_.w({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],P7);
_.q(P7,"ytd-search-filter-options-dialog-renderer",function(){if(NSl!==void 0)return NSl;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return NSl=x},{mode:1});var i4G;var sBq=function(){return function(x){x=x.availabilityType;return x===void 0||x==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||x==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var jz=function(){var x=_.e.apply(this,arguments)||this;x.qualityOptions=[];x.upsellOptions=[];x.showUpsellSection=!1;x.darkerDarkTheme=_.u("web_darker_dark_theme");x.rememberSettingsChecked=!1;return x};
_.p(jz,_.e);_.K=jz.prototype;_.K.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}}}}};
_.K.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.K.updateQualityOptions=function(){if(this.formats===void 0)_.dg(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var x=[],L=[];this.showUpsellSection=!1;for(var D=_.O(this.formats),S=D.next();!S.done;S=D.next())(S=S.value)&&(S.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?L.push(S):x.push(S));x.length&&(this.qualityOptions=FFq(x));L.length&&(this.showUpsellSection=!0,this.upsellOptions=FFq(L))}};
_.K.updateRememberString=function(){if(this.downloadQualityPickerEntity)var x=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var L;x=(L=this.data)==null?void 0:L.premiumRememberSettingString}else{var D;x=(D=this.data)==null?void 0:D.rememberSettingString}x=x===void 0?_.p6("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):x;this.rememberSettingsCheckboxRenderer={title:_.ya(x),disabled:!1}};
_.K.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.J3.Object.defineProperties(jz.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var x;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(x=this.data)==null?void 0:x.qualityFormats}}});
jz.prototype.updateRememberString=jz.prototype.updateRememberString;jz.prototype.updateQualityOptions=jz.prototype.updateQualityOptions;jz.prototype.dataChanged=jz.prototype.dataChanged;_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],jz.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],jz.prototype,"ytComponentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],jz.prototype,"data",void 0);
_.A([_.b(_.EG),_.r("design:type",Object)],jz.prototype,"ytdReduxBehavior",void 0);_.A([_.F(),_.r("design:type",Boolean)],jz.prototype,"selectedUpsellQuality",void 0);_.A([_.F({computed:"computeIcon_(data.premiumIcon)",value:""}),_.r("design:type",String)],jz.prototype,"premiumIcon",void 0);_.A([_.F({selector:e$q,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.r("design:type",Object)],jz.prototype,"downloadQualityPickerEntity",void 0);
_.A([_.F(),_.r("design:type",Array)],jz.prototype,"qualityOptions",void 0);_.A([_.F(),_.r("design:type",Array)],jz.prototype,"upsellOptions",void 0);_.A([_.F(),_.r("design:type",Object)],jz.prototype,"showUpsellSection",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],jz.prototype,"darkerDarkTheme",void 0);_.A([_.F(),_.r("design:type",Object)],jz.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.A([_.F1("#remember-settings"),_.r("design:type",HTMLInputElement)],jz.prototype,"rememberSettingsCheckbox",void 0);_.A([_.F(),_.r("design:type",Object)],jz.prototype,"rememberSettingsChecked",void 0);_.A([_.F(),_.r("design:type",Function)],jz.prototype,"onRememberSettingsCheckedChanged",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],jz.prototype,"dataChanged",null);
_.A([_.bN("downloadQualityPickerEntity"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],jz.prototype,"updateQualityOptions",null);_.A([_.bN("selectedUpsellQuality"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],jz.prototype,"updateRememberString",null);_.A([_.w({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],jz);
_.q(jz,"ytd-download-quality-selector-content",function(){if(i4G!==void 0)return i4G;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return i4G=x},{mode:1});var fMY;var v7=function(){var x=_.e.apply(this,arguments)||this;x.selectedUpsellQuality=!1;x.qualityOptions=[];x.darkerDarkTheme=_.u("web_darker_dark_theme");x.useUpsellDismissAlternate=_.u("use_not_now_dl_upsell_dismiss_cta");x.shouldShowAlternateUpsellDimiss=!1;x.rememberSettings=!1;x.rememberSettingsChecked=!1;x.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};x.rememberSettingsCheckedChanged=function(L){x.rememberSettingsChecked=L};
return x};
_.p(v7,_.e);_.K=v7.prototype;
_.K.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.ya(_.p6("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.ya(_.p6("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.ya(_.p6("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.ya(_.p6("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.K.updateQualityOptions=function(){this.formats===void 0?_.dg(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=FFq(this.formats)};
_.K.onQualityOptionsSelect=function(x){if(this.qualityOptions&&x){x!==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 L=_.O(this.qualityOptions.entries()),D=L.next();!D.done;D=
L.next()){D=_.O(D.value);var S=D.next().value;D=D.next().value;var Q=void 0,J=void 0;if(((Q=D)==null?void 0:(J=Q.settingsRadioOptionRenderer)==null?void 0:J.id)===x){this.selectedQualityIndex=S;x=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((x=this.formats[S])==null?void 0:x.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.K.onClickSubmit=function(){var x;if((x=this.downloadButtonRenderer)==null||!x.isDisabled){var L,D;x=(D=(L=this.data)==null?void 0:L.onSubmitEndpoint)!=null?D:{};var S,Q;if(this.formats&&(((S=_.g(x,_.ke))==null?0:S.videoId)||((Q=_.g(x,_.pX))==null?0:Q.playlistId))){var J,Z,y,E,P,v;L={formatType:(E=(J=this.formats)==null?void 0:(Z=J[(y=this.selectedQualityIndex)!=null?y:0])==null?void 0:Z.format)!=null?E:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(P=this.getOfflineEndpoint(x))==null?void 0:(v=P.actionParams)==null?void 0:v.settingsAction)};this.getOfflineEndpoint(x).actionParams=L;this.ytComponentBehavior.resolveCommand(x)}_.dg(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.K.onClickUpsell=function(){var x;if((x=this.upsellButtonRenderer)==null||!x.isDisabled){var L,D;x=(D=(L=this.data)==null?void 0:L.upsellEndpoint)!=null?D:{};this.ytComponentBehavior.resolveCommand(x);_.dg(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);L="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var S,Q,J,Z;L=(Z=(S=this.formats)==null?void 0:(Q=S[(J=this.selectedQualityIndex)!=null?J:0])==null?void 0:Q.format)!=null?Z:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:L}})}};
_.K.onClickClose=function(){_.dg(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.K.getOfflineSettingsAction=function(x,L){return x?L===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":L:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.K.getOfflineEndpoint=function(x){return _.g(x,_.ke)?_.g(x,_.ke):_.g(x,_.pX)};
_.J3.Object.defineProperties(v7.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.ya(_.p6("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var x;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(x=this.data)==null?void 0:x.qualityFormats}}});
v7.prototype.updateQualityOptions=v7.prototype.updateQualityOptions;v7.prototype.dataChanged=v7.prototype.dataChanged;_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],v7.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],v7.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],v7.prototype,"ytRendererBehavior",void 0);
_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],v7.prototype,"ytActionHandlerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],v7.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Number)],v7.prototype,"selectedQualityIndex",void 0);_.A([_.F(),_.r("design:type",Object)],v7.prototype,"selectedUpsellQuality",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],v7.prototype,"ytdReduxBehavior",void 0);
_.A([_.F({selector:e$q,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.r("design:type",Object)],v7.prototype,"downloadQualityPickerEntity",void 0);_.A([_.F(),_.r("design:type",Array)],v7.prototype,"qualityOptions",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],v7.prototype,"darkerDarkTheme",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],v7.prototype,"useUpsellDismissAlternate",void 0);
_.A([_.F(),_.r("design:type",Object)],v7.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.A([_.F(),_.r("design:type",Object)],v7.prototype,"downloadButtonRenderer",void 0);_.A([_.F(),_.r("design:type",Object)],v7.prototype,"upsellButtonRenderer",void 0);_.A([_.F(),_.r("design:type",Object)],v7.prototype,"cancelButtonRenderer",void 0);_.A([_.F(),_.r("design:type",Object)],v7.prototype,"upsellCancelButtonRenderer",void 0);_.A([_.F(),_.r("design:type",Object)],v7.prototype,"rememberSettings",void 0);
_.A([_.F(),_.r("design:type",Object)],v7.prototype,"rememberSettingsChecked",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],v7.prototype,"dataChanged",null);_.A([_.bN("downloadQualityPickerEntity"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],v7.prototype,"updateQualityOptions",null);_.A([_.w({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],v7);
_.q(v7,"ytd-download-quality-selector-renderer",function(){if(fMY!==void 0)return fMY;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return fMY=x},{mode:1});var o$G;var VZ=function(){var x=_.e.apply(this,arguments)||this;x.darkerDarkTheme=_.u("web_darker_dark_theme");return x};
_.p(VZ,_.e);VZ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
VZ.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"}}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],VZ.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],VZ.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],VZ.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],VZ.prototype,"darkerDarkTheme",void 0);_.A([_.F({computed:"computeIcon_(data.infoIcon)"}),_.r("design:type",Object)],VZ.prototype,"infoIcon",void 0);
_.A([_.F({computed:"computeIcon_(data.warningIcon)"}),_.r("design:type",Object)],VZ.prototype,"warningIcon",void 0);_.A([_.w({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],VZ);
_.q(VZ,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(o$G!==void 0)return o$G;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return o$G=x},{mode:1});var aMG;var hp=function(){var x=_.e.apply(this,arguments)||this;x.darkerDarkTheme=_.u("web_darker_dark_theme");return x};
_.p(hp,_.e);hp.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
hp.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"}}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],hp.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],hp.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],hp.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],hp.prototype,"darkerDarkTheme",void 0);_.A([_.w({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],hp);
_.q(hp,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(aMG!==void 0)return aMG;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return aMG=x},{mode:1});var zqu;var H7=function(){var x=_.e.apply(this,arguments)||this;x.darkerDarkTheme=_.u("web_darker_dark_theme");return x};
_.p(H7,_.e);H7.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
H7.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"}}}}};
H7.prototype.onServiceRequestSentOrCompleted=function(x,L){L&&L.actions&&L.actions.length>0&&_.dg(this.hostElement,"yt-close-popup-action",[this.is])};
H7.prototype.onServiceRequestSentOrCompleted=H7.prototype.onServiceRequestSentOrCompleted;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],H7.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],H7.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],H7.prototype,"darkerDarkTheme",void 0);_.A([_.F(),_.r("design:type",Object)],H7.prototype,"data",void 0);
_.A([_.mX("yt-service-request-completed"),_.mX("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.S2]),_.r("design:returntype")],H7.prototype,"onServiceRequestSentOrCompleted",null);_.A([_.w({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],H7);
_.q(H7,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(zqu!==void 0)return zqu;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return zqu=x},{mode:1});var XU3;var uD=function(){var x=_.e.apply(this,arguments)||this;x.darkerDarkTheme=_.u("web_darker_dark_theme");x.submitButtonDisabled=!0;return x};
_.p(uD,_.e);_.K=uD.prototype;_.K.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.K.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.K.onDataChanged=function(){var x,L,D;if(((x=this.data)==null?void 0:(L=x.confirmButton)==null?void 0:(D=L.buttonRenderer)==null?void 0:D.isDisabled)!==void 0){var S,Q,J;this.submitButtonDisabled=(S=this.data)==null?void 0:(Q=S.confirmButton)==null?void 0:(J=Q.buttonRenderer)==null?void 0:J.isDisabled}};
_.K.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.K.updateSubmitButtonDisabledFromBinding=function(x){this.submitButtonDisabled=x.detail.value};
_.K.updateSubmitButtonDisabledFromConfirmCheckbox=function(x){this.submitButtonDisabled=!x.detail.value};
uD.prototype.onDataChanged=uD.prototype.onDataChanged;_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],uD.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],uD.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],uD.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],uD.prototype,"darkerDarkTheme",void 0);
_.A([_.F(),_.r("design:type",Object)],uD.prototype,"submitButtonDisabled",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],uD.prototype,"onDataChanged",null);_.A([_.w({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],uD);
_.q(uD,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(XU3!==void 0)return XU3;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return XU3=x},{mode:1});var cNg;var gi=function(){return _.e.apply(this,arguments)||this};
_.p(gi,_.e);_.J3.Object.defineProperties(gi.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var x,L,D;return((x=this.data)==null?void 0:x.title)+" "+((L=this.data)==null?void 0:L.metadataPrimary)+" "+((D=this.data)==null?void 0:D.metadataSecondary)}}});
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],gi.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],gi.prototype,"ytComponentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],gi.prototype,"data",void 0);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],gi.prototype,"ariaLabel",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],gi);
_.q(gi,"ytd-compact-product-list-item-renderer",function(){if(cNg!==void 0)return cNg;var x=document.createElement("template");_.m(x,'\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>');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return cNg=x},{mode:1});var n$l;var kn=function(){return _.e.apply(this,arguments)||this};
_.p(kn,_.e);kn.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]]"}}}}}};
_.J3.Object.defineProperties(kn.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],kn.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],kn.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],kn.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],kn.prototype,"data",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],kn);
_.q(kn,"ytd-compact-product-list-renderer",function(){if(n$l!==void 0)return n$l;var x=document.createElement("template");_.m(x,'\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>');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return n$l=x},{mode:1});var tbs;var p_=function(){var x=_.e.apply(this,arguments)||this;x.darkerDarkTheme=_.u("web_darker_dark_theme");return x};
_.p(p_,_.e);_.K=p_.prototype;_.K.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.K.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.K.getBackgroundUrl=function(){var x=this.get("data.headerImage.thumbnails");return x?"url("+_.PD(x,this.hostElement.clientWidth)+")":""};
_.K.onDataChanged=function(){var x=this.getBackgroundUrl();x&&(this.header.style.backgroundImage=x);x=_.A3();var L=_.qu(),D=this.get("data.trackingParams");D&&L&&x&&_.XI(x,L,_.CI(D));x=_.O(this.hostElement.querySelectorAll("yt-img-shadow"));for(L=x.next();!L.done;L=x.next())L.value.onShow()};
_.K.onPopupClosed=function(x){_.K$(x).localName==="ytd-membership-post-cancel-renderer"&&_.dg(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
p_.prototype.onPopupClosed=p_.prototype.onPopupClosed;p_.prototype.onDataChanged=p_.prototype.onDataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],p_.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],p_.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],p_.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],p_.prototype,"darkerDarkTheme",void 0);
_.A([_.F1("#header"),_.r("design:type",HTMLDivElement)],p_.prototype,"header",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],p_.prototype,"onDataChanged",null);_.A([_.mX("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],p_.prototype,"onPopupClosed",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],p_);
_.q(p_,"ytd-membership-post-cancel-renderer",function(){if(tbs!==void 0)return tbs;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return tbs=x},{mode:1});var xGW;var m2=function(){var x=_.e.apply(this,arguments)||this;x.darkerDarkTheme=_.u("web_darker_dark_theme");return x};
_.p(m2,_.e);m2.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
m2.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],m2.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],m2.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],m2.prototype,"darkerDarkTheme",void 0);_.A([_.F1("ytd-feedback-survey-renderer"),_.r("design:type",Object)],m2.prototype,"feedbackSurveyRenderer",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],m2);
_.q(m2,"ytd-sponsorship-confirm-cancel-content",function(){if(xGW!==void 0)return xGW;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return xGW=x},{mode:1});var Ldq;var bD=function(){var x=_.e.apply(this,arguments)||this;x.darkerDarkTheme=_.u("web_darker_dark_theme");x.maybeSubmitFeedback=function(){x.content&&x.content.maybeSubmitFeedback()};
return x};
_.p(bD,_.e);_.K=bD.prototype;_.K.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.K.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.K.onYtPopupOpened=function(x,L){L===this&&this.data&&this.data.onOpenCommands&&_.v$(this.hostElement,this.data.onOpenCommands,this.hostElement);_.dg(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.K.onYtPopupClosed=function(x,L){(L&&L.canceled===!0||L&&L.canceled===!1&&L.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.v$(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.K.onYtServiceRequestCompleted=function(){_.dg(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.K.onYtServiceRequestError=function(x){_.nX(this.hostElement,x.detail.error.message)};
_.K.onDataChanged=function(){if(this.isAttached){var x=this.backgroundUrl;x&&(_.jr(this.hostElement).querySelector("#header").style.backgroundImage=x)}};
_.J3.Object.defineProperties(bD.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var x=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return x?"url("+_.PD(x,this.hostElement.clientWidth)+")":""}}});
bD.prototype.onDataChanged=bD.prototype.onDataChanged;bD.prototype.onYtServiceRequestError=bD.prototype.onYtServiceRequestError;bD.prototype.onYtServiceRequestCompleted=bD.prototype.onYtServiceRequestCompleted;bD.prototype.onYtPopupClosed=bD.prototype.onYtPopupClosed;bD.prototype.onYtPopupOpened=bD.prototype.onYtPopupOpened;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],bD.prototype,"ytRendererBehavior",void 0);
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],bD.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],bD.prototype,"data",void 0);_.A([_.F({value:function(){return _.p6("SBOX_INAPPROPRIATE_CANCEL")}}),
_.r("design:type",String)],bD.prototype,"closeButtonAriaLabel",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],bD.prototype,"darkerDarkTheme",void 0);_.A([_.F1("#scrollable"),_.r("design:type",Object)],bD.prototype,"scrollable",void 0);_.A([_.F1("ytd-sponsorship-confirm-cancel-content"),_.r("design:type",Object)],bD.prototype,"content",void 0);
_.A([_.mX("yt-popup-opened"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],bD.prototype,"onYtPopupOpened",null);_.A([_.mX("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],bD.prototype,"onYtPopupClosed",null);
_.A([_.mX("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],bD.prototype,"onYtServiceRequestCompleted",null);_.A([_.mX("yt-service-request-error"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],bD.prototype,"onYtServiceRequestError",null);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],bD.prototype,"onDataChanged",null);
_.A([_.w({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],bD);
_.q(bD,"ytd-sponsorship-confirm-cancel-renderer",function(){if(Ldq!==void 0)return Ldq;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Ldq=x},{mode:_.Vm("kevlar_poly_si_batch_j081")?1:2});var DG3;var Yn=function(){var x=_.e.apply(this,arguments)||this;x.darkerDarkTheme=_.u("web_darker_dark_theme");return x};
_.p(Yn,_.e);Yn.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Yn.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Yn.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],Yn.prototype,"darkerDarkTheme",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],Yn);
_.q(Yn,"ytd-sponsorships-celebration-content",function(){if(DG3!==void 0)return DG3;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return DG3=
x},{mode:1});var SNq;var Qjs=_.xI(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),F_=function(){var x=_.e.apply(this,arguments)||this;x.scriptsAppended=!1;x.useFullWidthPrimaryButton=!1;x.buttonOverrides={type:"tonal",style:"overlay-dark"};return x};
_.p(F_,_.e);_.K=F_.prototype;_.K.dataChanged=function(){var x;this.useFullWidthPrimaryButton=!((x=this.data)==null||!x.useFullWidthPrimaryButton)};
_.K.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:_.u("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.K.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.K.onDataChanged=function(){var x;(x=this.header)==null||x.style.setProperty("background-color",this.backgroundColor);if(x=this.headerImageUrl){var L;(L=this.header)==null||L.style.setProperty("background-image",x)}L=_.A3(4);x=_.qu(4);var D=this.get("data.trackingParams");if(D&&x&&L){var S=_.CI(D);_.XI(L,x,S);_.u("combine_ve_grafts")?_.sk().graftServerVe(D,x,4):_.XI(L,x,S)}L=_.O(this.hostElement.querySelectorAll("yt-img-shadow"));for(x=L.next();!x.done;x=L.next())x.value.onShow();if(L=this.get("data.gtmId"))_.SZ(L,
_.$6("GL","")),this.setupConversionTracking()};
_.K.setupConversionTracking=function(){if(!this.scriptsAppended){var x=document.createElement("script");var L=_.DE(Qjs.join(""));_.Sf(x,L);document.head.appendChild(x);x=document.createElement("noscript");x.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(x);this.scriptsAppended=!0}};
_.K.onPopupClosed=function(x){if(_.K$(x).localName==="ytd-sponsorships-celebration-renderer"){_.dg(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var L;this.data&&((L=this.data)==null?0:L.dismissCommand)&&_.pI.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.J3.Object.defineProperties(F_.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var x=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.XA(x)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var x=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return x?"url("+_.PD(x,this.hostElement.getBoundingClientRect().width)+")":""}}});
F_.prototype.onPopupClosed=F_.prototype.onPopupClosed;F_.prototype.onDataChanged=F_.prototype.onDataChanged;F_.prototype.dataChanged=F_.prototype.dataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],F_.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],F_.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],F_.prototype,"data",void 0);
_.A([_.F1("#header"),_.r("design:type",HTMLElement)],F_.prototype,"header",void 0);_.A([_.F(),_.r("design:type",Object)],F_.prototype,"scriptsAppended",void 0);_.A([_.F({type:Boolean,reflectToAttribute:!0}),_.r("design:type",Object)],F_.prototype,"useFullWidthPrimaryButton",void 0);_.A([_.F(),_.r("design:type",Object)],F_.prototype,"buttonOverrides",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],F_.prototype,"dataChanged",null);
_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],F_.prototype,"onDataChanged",null);_.A([_.mX("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],F_.prototype,"onPopupClosed",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],F_);
_.q(F_,"ytd-sponsorships-celebration-renderer",function(){if(SNq!==void 0)return SNq;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return SNq=x},{mode:1});var J1s;var sQ=function(){var x=_.e.apply(this,arguments)||this;x.isToggleChecked=!1;return x};
_.p(sQ,_.e);sQ.prototype.onDataChanged=function(){var x;this.isToggleChecked=((x=this.data)==null?void 0:x.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
sQ.prototype.close=function(){var x;((x=this.data)==null?0:x.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
sQ.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var x,L=_.g((x=this.data)==null?void 0:x.switchButton,ZOY);L&&(this.isToggleChecked&&L.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(L.switchOnInnertubeCommand),!this.isToggleChecked&&L.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(L.switchOffInnertubeCommand))};
sQ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
sQ.prototype.onDataChanged=sQ.prototype.onDataChanged;_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],sQ.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],sQ.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],sQ.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],sQ.prototype,"isToggleChecked",void 0);_.A([_.F({value:_.p6("CLOSE")}),_.r("design:type",String)],sQ.prototype,"closeButtonAriaLabel",void 0);
_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],sQ.prototype,"onDataChanged",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],sQ);
_.q(sQ,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(J1s!==void 0)return J1s;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return J1s=x},{mode:1});var KdX;var TA=function(){return _.e.apply(this,arguments)||this};
_.p(TA,_.e);_.K=TA.prototype;_.K.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"}}}}};
_.K.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.K.detached=function(){this.playerElement.stop()};
_.K.onYtServiceRequestCompleted=function(){_.dg(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.K.onYtServiceRequestError=function(x){_.nX(this.hostElement,x.detail.error.message)};
_.K.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.K.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.K.getTier=function(x,L){return!x||!x.tiers||L<0?null:_.g(x.tiers[L],MCg)};
_.K.moreThanOne=function(x){return!!(x&&x.length>1)};
_.K.tierOverviewTap=function(x){var L=this;this.selectedTier=x.model.index;_.So(this,function(){_.MF(L.hostElement,"yt-refit")})};
_.K.computeSelectedClass=function(x,L){return this.isSelected(x,L)?"selected":""};
_.K.computeButtonAriaPressed=function(x,L){return this.isSelected(x,L)?"true":"false"};
_.K.isSelected=function(x,L){return x===L};
_.K.onDataChanged=function(){_.jr(this.hostElement).querySelector("#header-overlay").style.visibility="";_.jr(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 x=_.O(this.hostElement.querySelectorAll("yt-img-shadow")),
L=x.next();!L.done;L=x.next())L.value.onShow();var D;this.set("selectedTier",(D=this.get("data.targetTierIndex"))!=null?D:0);var S;(x=(S=this.data)==null?void 0:S.onVisible)&&this.ytComponentBehavior.resolveCommand(x)};
_.K.initializeVe=function(x){var L=_.A3(),D=_.qu(),S=this.get("data.trackingParams");D&&L&&(this.screenLayer=4,L=_.fm(_.z_3)(void 0,69877,{clientScreenNonce:L,visualElement:D},void 0,void 0,void 0),_.rr(L,69877,4),D=_.qu(4),S&&D&&(S=_.CI(S),_.XI(L,D,S),x&&(this.offerVideoVe=_.VC(74659),_.XI(L,S,this.offerVideoVe))))};
_.K.setHeaderBackground=function(){var x=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.jr(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.XA(x);if(x=this.getHeaderImage())x=_.PD(x,screen.width),_.jr(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+x+")"};
_.K.getHeaderImage=function(){var x=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&x?x:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.K.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.K.setupVideoPlayer=function(x){var L=this,D,S,Q,J;return _.I(function(Z){if(Z.nextAddress==1)return D=L.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),S=L.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.u("kevlar_player_update_killswitch")?L.playerElement.update({args:{autoplay:D,video_id:x,player_params:S}}):L.playerElement.loadVideoWithPlayerVars({autoplay:D,video_id:x,player_params:S}),
Z.yield(L.playerElement.getPlayerPromise(),2);Q=Z.yieldResult;Q.addEventListener("onStateChange",function(y){L.onPlayerStateChange(y)});
Q.setScreenLayer(L.screenLayer);(J=_.A3(4))&&L.offerVideoVe&&_.n6(J,L.offerVideoVe);D&&(L.pauseOtherPlayers(),L.playerElement.focusOnPlayer(),L.playerElement.getPlayer().hideControls(),_.TG(_.WW,function(){L.fadeOutHeaderOverlay()},4E3));
_.Y2(Z)})};
_.K.onPlayerStateChange=function(x){x===1?this.backgroundPlayerElement&&(x=this.backgroundPlayerElement.player_.getPlayerState(),x!==1&&x!==3||this.backgroundPlayerElement.pause()):x===0&&(_.jr(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.jr(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.K.fadeOutHeaderOverlay=function(){_.jr(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.K.onHeaderTap=function(){if(this.offerVideo){_.jr(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var x;((x=this.playerElement.player_)==null?void 0:x.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(x=_.A3(4))&&this.offerVideoVe&&_.L7(x,this.offerVideoVe)}};
_.K.getBackgroundImageLayerClass=function(x){return x?"background-image-layer-with-video":""};
_.K.getHeaderClass=function(x){return x?"header-with-video":""};
_.K.getHeaderOverlayClass=function(x){return x?"header-overlay-with-video":""};
_.K.getTitleContainerClass=function(x,L){return x?"title-container-with-video":L?"title-container-without-video-flexible":"title-container-without-video"};
_.K.tierTitleDisplayStatus=function(x){return this.moreThanOne(x)?"hide":"show"};
_.K.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.yY().resolve(_.iy).getPlayerElement():this.backgroundPlayerElement=_.Zs();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var x=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=x===1||x===3;this.backgroundPlayerElement.pause()}};
_.K.isMiniplayerActive=function(){return _.yY().resolve(_.iy).isMiniplayerActive()};
_.K.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.gU("selected-tier-changed",this.selectedTier))};
TA.prototype.selectedTierChangedForBinding=TA.prototype.selectedTierChangedForBinding;TA.prototype.onDataChanged=TA.prototype.onDataChanged;TA.prototype.onYtPopupClosed=TA.prototype.onYtPopupClosed;TA.prototype.onYtPopupOpened=TA.prototype.onYtPopupOpened;TA.prototype.onYtServiceRequestError=TA.prototype.onYtServiceRequestError;TA.prototype.onYtServiceRequestCompleted=TA.prototype.onYtServiceRequestCompleted;
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],TA.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],TA.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],TA.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],TA.prototype,"data",void 0);_.A([_.F({value:0}),_.r("design:type",Number)],TA.prototype,"selectedTier",void 0);
_.A([_.F({value:""}),_.r("design:type",String)],TA.prototype,"offerVideo",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],TA.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.A([_.F({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.zN(this)}}),
_.r("design:type",String)],TA.prototype,"playerId",void 0);_.A([_.F1("tp-yt-paper-dialog-scrollable"),_.r("design:type",Object)],TA.prototype,"scrollable",void 0);_.A([_.F1("ytd-sponsorships-tier-renderer"),_.r("design:type",Object)],TA.prototype,"tierRenderer",void 0);_.A([_.F1("#player"),_.r("design:type",Object)],TA.prototype,"playerElement",void 0);
_.A([_.mX("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],TA.prototype,"onYtServiceRequestCompleted",null);_.A([_.mX("yt-service-request-error"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],TA.prototype,"onYtServiceRequestError",null);
_.A([_.mX("yt-popup-opened"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],TA.prototype,"onYtPopupOpened",null);_.A([_.mX("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],TA.prototype,"onYtPopupClosed",null);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],TA.prototype,"onDataChanged",null);
_.A([_.bN("selectedTier"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],TA.prototype,"selectedTierChangedForBinding",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],TA);
_.q(TA,"ytd-sponsorships-offer-renderer",function(){if(KdX!==void 0)return KdX;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return KdX=x},{mode:_.Vm("kevlar_poly_si_batch_j077")?1:2});var OTg;var ez=function(){var x=_.e.apply(this,arguments)||this;x.buttonOverrides={type:"filled",style:"mono"};return x};
_.p(ez,_.e);ez.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}}}}}};
ez.prototype.backgroundColorChanged=function(){var x,L,D,S=(L=_.g((x=this.data)==null?void 0:x.content,dXl))==null?void 0:(D=L.backgroundColor)==null?void 0:D.backgroundColor;S&&(x=_.zF(S),_.jr(this.hostElement).querySelector("#banner").style.backgroundColor=x,_.jr(this.hostElement).querySelector("#abstract-art").style.backgroundColor=x)};
ez.prototype.attached=function(){this.JSC$20696_scroller&&(this.JSC$20696_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20696_scroller.attached&&typeof this.JSC$20696_scroller.attached==="function"&&this.JSC$20696_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
ez.prototype.backgroundColorChanged=ez.prototype.backgroundColorChanged;_.A([_.F(),_.r("design:type",Object)],ez.prototype,"data",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],ez.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F1("#scroller"),_.r("design:type",Object)],ez.prototype,"JSC$20696_scroller",void 0);_.A([_.F(),_.r("design:type",Object)],ez.prototype,"buttonOverrides",void 0);
_.A([_.bN("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ez.prototype,"backgroundColorChanged",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],ez);
_.q(ez,"ytd-sponsorships-promotion-celebration-renderer",function(){if(OTg!==void 0)return OTg;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return OTg=x},{mode:_.Vm("kevlar_poly_si_batch_j077")?1:2});var ZTG;var y19;var Rr=function(){return _.e.apply(this,arguments)||this};
_.p(Rr,_.e);Rr.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
Rr.prototype.computeIsInitiallyChecked=function(x){return x===1};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Rr.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Rr.prototype,"data",void 0);_.A([_.F1("#checkbox"),_.r("design:type",Object)],Rr.prototype,"checkbox",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],Rr);
_.q(Rr,"ytd-subscription-toggle-option-renderer",function(){if(y19!==void 0)return y19;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return y19=x},{mode:1});var GA=function(){var x=_.e.apply(this,arguments)||this;x.darkerDarkTheme=_.u("web_darker_dark_theme");x.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return x};
_.p(GA,_.e);GA.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"}}}};
GA.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
GA.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var x=_.jr(this.hostElement).querySelector("#options").selected;x=this.data.options[x].subscriptionRadioOptionRenderer.serviceEndpoint;var L=_.jr(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");L&&x&&x.modifyChannelNotificationPreferenceEndpoint&&(L=L.getValue())&&(x.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[L]);_.yY().resolve(_.E2).resolveCommand(x,{form:{element:this.hostElement}});
_.dg(this.hostElement,"yt-close-popup-action")};
_.J3.Object.defineProperties(GA.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var x=this.data.options,L=0;L<x.length;L++){var D=x[L].subscriptionRadioOptionRenderer;if(D&&D.selected)return L}return null}}});
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],GA.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],GA.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.nE.YtEventForwardingBehavior),_.r("design:type",Object)],GA.prototype,"eventForwardingBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],GA.prototype,"ytRendererBehavior",void 0);
_.A([_.F(),_.r("design:type",Object)],GA.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],GA.prototype,"darkerDarkTheme",void 0);_.A([_.Y("data.options"),_.r("design:type",Object),_.r("design:paramtypes",[])],GA.prototype,"initialIndex",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],GA);
_.q(GA,"ytd-subscription-notification-options-renderer",function(){if(ZTG!==void 0)return ZTG;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return ZTG=x},{mode:1});var Iyu;var C_=function(){return _.e.apply(this,arguments)||this};
_.p(C_,_.e);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],C_.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],C_.prototype,"data",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],C_);
_.q(C_,"ytd-tvfilm-offer-groups-renderer",function(){if(Iyu!==void 0)return Iyu;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Iyu=x},{mode:1});var EDW;var lD=function(){var x=_.e.apply(this,arguments)||this;x.darkerDarkTheme=_.u("web_darker_dark_theme");return x};
_.p(lD,_.e);_.K=lD.prototype;_.K.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"}}}};
_.K.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.K.computeThumbnailClass=function(x){return x.thumbnailOverlays?x.isShow?"thumbnail-show":"thumbnail-movie":x.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.K.computeCommerceSectionClass=function(x){return x.offers&&x.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.K.computeTitleClass=function(x){return x.offers&&x.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.K.onDataChanged=function(){[].concat(_.lP(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(x){x.onShow()})};
lD.prototype.onDataChanged=lD.prototype.onDataChanged;_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],lD.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],lD.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],lD.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],lD.prototype,"darkerDarkTheme",void 0);
_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],lD.prototype,"onDataChanged",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],lD);
_.q(lD,"ytd-ypc-offers-overlay-renderer",function(){if(EDW!==void 0)return EDW;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return EDW=x},{mode:_.Vm("kevlar_poly_si_batch_j028")?1:2});var MUq;var dGl=function(){this.usedMethods=new Set};
dGl.prototype.add=function(x){this.usedMethods.add(x)};
dGl.prototype.reset=function(){this.usedMethods.clear()};var vDY=function(x,L){this.query=x;this.previousSearchQuery=L;this.id=Pt3++;if(!jjq){L=_.$6("SBOX_SETTINGS");x="https://"+((L==null?void 0:L.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var D=L==null?void 0:L.REQUEST_LANGUAGE;D&&(x+="&hl="+D);(D=L==null?void 0:L.REQUEST_DOMAIN)&&(x+="&gl="+D);x+="&client=youtube&gs_ri=youtube";(D=L==null?void 0:L.SUGG_EXP_ID)&&(x+="&sugexp="+encodeURIComponent(D));(D=L==null?void 0:L.PSUGGEST_TOKEN)&&(x+="&tok="+D);(L=
L==null?void 0:L.SESSION_INDEX)&&(x+="&authuser="+L);_.u("desktop_enable_visual_suggest")&&(x+="&h=180&w=320&ytvs=1");jjq=x}},VU3=function(x){var L="q="+encodeURIComponent(x.query);
x.previousSearchQuery&&(L+="&pq="+encodeURIComponent(x.previousSearchQuery));return L},hLs=function(){var x=_.$6("SBOX_SETTINGS"),L={};
if(x==null?0:x.SEND_VISITOR_DATA)L["X-Goog-Visitor-Id"]=x==null?void 0:x.VISITOR_DATA;return L},HTs=function(x){var L=jjq;
L+="&gs_id="+x.id.toString(36);L+="&q="+encodeURIComponent(x.query);L+="&cp="+x.query.length;x.previousSearchQuery&&(L+="&pq="+encodeURIComponent(x.previousSearchQuery));(x=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(L+="&video_id="+x);return L},Pt3=0,jjq="";var uXg=_.N5.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,gDq=_.N5.SEARCH_ENTITY_SUGGESTION_MOVIE,kbl=_.N5.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,p6l=_.N5.SEARCH_ENTITY_SUGGESTION_TV_SHOW,mGs=function(x,L){this.text=x;this.bold=L},bTu=function(x,L,D){this.input=L;
this.index=D;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=x[0];this.type=x[1];this.subtypes=x[2];var S;this.displayText=dn((S=x[3])==null?void 0:S.b);var Q;this.ignoredPrefix=dn((Q=x[3])==null?void 0:Q.a);var J,Z;this.hasNewVideo=((J=x[3])==null?void 0:(Z=J.zam)==null?void 0:Z.toString())==="true"?!0:!1;var y;this.visualSuggestUrl=(y=x[3])==null?void 0:y.zai;var E;this.entityType=dn((E=x[3])==null?void 0:E.zap);var P;this.entityName=dn((P=x[3])==null?void 0:P.zao);var v;L=dn((v=
x[3])==null?void 0:v.zaf);var V;this.entityMid=(V=x[3])==null?void 0:V.zae;v=e6q(this.subtypes,this.entityMid);if(L&&v){if(L){V="";switch(v){case "YOUTUBE_ENTITY_TYPE_SONG":V=kbl;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":V=uXg;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":V=p6l;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":V=gDq}v=v==="YOUTUBE_ENTITY_TYPE_SONG"||v==="YOUTUBE_ENTITY_TYPE_ALBUM"?V+" \u2022  \u2022 "+L:L}else v="";this.entitySubtitle=v}var h;this.externalChannelId=(h=x[3])==null?void 0:h.zav;var H;
this.entityThumbnailAttributionUrl=(H=x[3])==null?void 0:H.zaq},Fds=function(x,L){var D=[],S,Q=(S=x.displayText)!=null?S:x.text;
(L==null?0:L.useEntityName)&&YNs(x)&&x.entityName&&(Q=x.entityName);if(x.type===33)return D.push(new mGs(Q,!1)),D;if(Q.length>=x.input.length&&Q.substring(0,x.input.length)===x.input)D.push(new mGs(x.input,!1)),D.push(new mGs(Q.substring(x.input.length),!0));else{var J=new Set(x.input.split(/\s/)),Z=Q.split(/\s/);D=Z.map(function(y,E){return new mGs(y.trim()+(E===Z.length-1?"":" "),!J.has(y))})}return D},YNs=function(x){var L=!!e6q(x.subtypes);
x=!!x.entityMid;return L||x};var sj3=function(x){this.rawResponse=["",[],{}];this.suggestions=[];try{var L=JSON.parse(R6q(x));if(typeof L==="object"&&L!==null)this.rawResponse=L;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(S){console.log("Suggest: Failed to parse SuggestResponse!");return}var D=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(S,Q){return new bTu(S,D,Q)})};var TC$=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new dGl;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$20733_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},eL9,RLl=function(){eL9||(eL9=new TC$);
return eL9};
TC$.prototype.updateSuggestions=function(x){var L=this;this.availableSuggestions.forEach(function(D){L.previousSuggestions[D]=!0});
this.availableSuggestions=x.map(function(D){var S=D.type.toString();D.subtypes.length>0&&(S+="i"+D.subtypes.join("i"),S+="k"+D.suggestionSources.COMPLETE_SERVER.toString());return S})};
var Gb5=function(x,L){var D=Date.now();x.firstEditTime<0&&(x.firstEditTime=D);L&&(x.lastQueryBuildTime=D);x.lastEditTime=D};
TC$.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$20733_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var CtW=function(x){var L="";x.availableSuggestions.forEach(function(Q){delete x.previousSuggestions[Q]});
for(var D=_.O(Object.keys(x.previousSuggestions)),S=D.next();!S.done;S=D.next())S=S.value,x.previousSuggestions[S]&&(L+=(L?"j":"")+S);return L},lyX=function(x,L){var D=[];
L&&(D[1]=L.toString());D[0]="youtube";D[7]=Date.now()-x.startTime;D[6]=x.sessionNumber;x.zeroPrefixSuggestionCount>=0&&(D[33]=x.zeroPrefixSuggestionCount);D[13]=x.outOfSyncResponseCount;if(x.availableSuggestions.length>0){for(var S=L="",Q=0,J=_.O(x.availableSuggestions),Z=J.next();!Z.done;Z=J.next())Z=Z.value,Z!==S&&(Q>1&&(L+="l"+Q),L+=(S?"j":"")+Z,Q=0,S=Z),Q+=1;Q>1&&(L+="l"+Q);D[3]=L}D[35]=CtW(x);x.selectedSuggestionIndex>=0&&(D[2]=x.selectedSuggestionIndex);var y;if(L=(y=_.$6("SBOX_SETTINGS"))==
null?void 0:y.SUGG_EXP_ID)D[19]=x.normalize(L),y=0,x.experimentTriggeredBeforeFinal&&(y|=1),x.experimentTriggeredFinal&&(y|=2),D[20]=y;D[26]=Array.from(x.inputMethodsTracker.usedMethods).join("j");if(x.JSC$20733_totalRoundTripTime>0){D[15]=x.JSC$20733_totalRoundTripTime;D[14]=x.maxRoundTripTime;y=[];for(Q=L=0;Q<10;Q++)S=x.roundTripTimeHistogram[Q],S===0?L++:(L>1?y.push(Q+"-"+S):L===1?y.push("0j"+S):y.push(S.toString()),L=0);y=y.join("j");D[16]=y}x.zeroPrefixRoundTripTime>0&&(D[36]=x.zeroPrefixRoundTripTime);
x.lastQueryBuildTime>0&&(D[18]=x.lastQueryBuildTime-x.startTime);x.firstEditTime>0&&(D[4]=x.firstEditTime-x.startTime);x.lastEditTime>0&&(D[5]=x.lastEditTime-x.startTime);return D.join(".")};
TC$.prototype.normalize=function(x){return x.replaceAll(".","-")};
var UGI=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var UQ=function(){var x=_.e.apply(this,arguments)||this;x.microphoneSpinnerActive=!1;x.noAnimations=!1;x.boundExitClick=function(){x.onExitButtonClick()};
x.speechOverlayClassName="";x.isLevelAnimating=!1;x.playCloseDialogAudioFeedback=!0;x.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return x};
_.p(UQ,_.e);_.K=UQ.prototype;_.K.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.K.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=Haq()};
_.K.dataChanged=function(){this.logDialog()};
_.K.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var x;(x=this.manager.audioPlayer)!=null&&(x.JSC$20050_audioEnabled=!1)}this.manager.stop();(x=this.manager.audioPlayer)!=null&&(x.JSC$20050_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.K.handleSpeechQueryCompleteAction=function(x){var L=x.navigationAction;L&&(x.trackingParams&&_.sk().graftServerVe(x.trackingParams,this.dialogVe,5),_.MF(this.hostElement,"yt-navigate",{endpoint:L,tempData:this.getNavigationParams(L),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.K.onExitButtonClick=function(){this.closeDialog()};
_.K.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var x;if((x=this.manager)!=null){var L;(L=x.audioPlayer)==null||WK(L,"failure");x.setState("microphone-off");x.stop()}}else(x=this.manager)==null||x.start()};
_.K.transcriptionChanged=function(){var x,L;(((x=this.transcription)==null?0:x.low)||((L=this.transcription)==null?0:L.high))&&this.setState("transcribing",this.transcription)};
_.K.stateChanged=function(){this.setState(this.state,this.transcription)};
_.K.logDialog=function(){var x;(x=this.data)!=null&&x.trackingParams&&(x=_.sk(),_.we(x,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=x.graftServerVe(this.data.trackingParams,void 0,5))};
_.K.getNavigationParams=function(x){var L={};if(_.u("web_yt_searchbox")){var D=RLl();D.inputMethodsTracker.add(6);D=lyX(D,15);L.gs_l=D;var S;L.oq=((S=_.g(x,_.b1))==null?void 0:S.query)||""}else if(x=window.ytvoicesearchloggingparams){if(x=x())L.oq=x.oq,L.gs_l=x.gs_l}else _.X0(Error("Dl"));return L};
_.K.closeDialog=function(){_.dg(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.K.setState=function(x,L){if(this.data){var D=this.data,S={};switch(x){case "listening":S={headerText:D.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:D.microphoneButtonAriaLabel};break;case "timeout":S={headerText:D.promptHeader,microphoneState:"try-again",microphoneLabel:D.promptMicrophoneLabel,microphoneAriaLabel:D.promptMicrophoneLabel};break;case "microphone-off":S={headerText:D.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:D.promptMicrophoneLabel,
microphoneAriaLabel:D.promptMicrophoneLabel};break;case "transcribing":(L==null?0:L.low)||(L==null?0:L.high)?S={transcriptionLow:L==null?void 0:L.low,transcriptionHigh:L==null?void 0:L.high,microphoneState:"speaking",microphoneAriaLabel:D.microphoneButtonAriaLabel}:S={headerText:D.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:D.microphoneButtonAriaLabel};break;case "processing":S={headerText:D.loadingHeader,microphoneState:"processing",microphoneAriaLabel:D.microphoneButtonAriaLabel};
break;case "offline":S={headerText:D.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:D.connectionErrorMicrophoneLabel,microphoneAriaLabel:D.connectionErrorMicrophoneLabel};break;case "permission":S={headerText:D.permissionsHeader,bodyLine1:D.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:D.permissionsSubtext};break;case "permission-denied":S={headerText:D.disabledHeader,bodyLine1:D.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:D.disabledSubtext}}S.className=
x;this.speechOverlayState=S;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.K.setMicrophoneState=function(x){var L=this.isLevelAnimating;this.isLevelAnimating=x==="speaking";!L&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=x==="processing"&&!this.noAnimations};
_.K.setClass=function(x){this.speechOverlayClassName&&_.VA(this.hostElement,this.speechOverlayClassName,!1);x&&(this.speechOverlayClassName=x,_.VA(this.hostElement,x,!0))};
_.K.runLevelAnimation=function(){var x=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var L=1+Math.random()*.75,D=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+D/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+L+")");_.WW.addJob(function(){x.runLevelAnimation()},3,D)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
UQ.prototype.stateChanged=UQ.prototype.stateChanged;UQ.prototype.transcriptionChanged=UQ.prototype.transcriptionChanged;UQ.prototype.onPopupClosed=UQ.prototype.onPopupClosed;UQ.prototype.dataChanged=UQ.prototype.dataChanged;_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],UQ.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],UQ.prototype,"ytRendererBehavior",void 0);
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],UQ.prototype,"rendererStamperBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],UQ.prototype,"ytdReduxBehavior",void 0);_.A([_.b(_.nE.YtEventForwardingBehavior),_.r("design:type",Object)],UQ.prototype,"eventForwardingBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],UQ.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],UQ.prototype,"speechOverlayState",void 0);
_.A([_.F(),_.r("design:type",Object)],UQ.prototype,"microphoneSpinnerActive",void 0);_.A([_.F({type:_.u("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.r("design:type",Object)],UQ.prototype,"noAnimations",void 0);_.A([_.F({selector:function(x){var L;return(L=x.voiceSearch)==null?void 0:L.transcription}}),
_.r("design:type",Object)],UQ.prototype,"transcription",void 0);_.A([_.F({selector:function(x){var L;return(L=x.voiceSearch)==null?void 0:L.overlay}}),
_.r("design:type",String)],UQ.prototype,"state",void 0);_.A([_.F(),_.r("design:type",Object)],UQ.prototype,"boundExitClick",void 0);_.A([_.F1("#microphone-levels"),_.r("design:type",HTMLElement)],UQ.prototype,"level",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],UQ.prototype,"dataChanged",null);_.A([_.mX("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],UQ.prototype,"onPopupClosed",null);
_.A([_.GV("transcription"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],UQ.prototype,"transcriptionChanged",null);_.A([_.GV("state"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],UQ.prototype,"stateChanged",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],UQ);
_.q(UQ,"ytd-voice-search-dialog-renderer",function(){if(MUq!==void 0)return MUq;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return MUq=x},{mode:1});var w6l;var wi=function(){var x=_.e.apply(this,arguments)||this;x.isOverlay=!1;x.hidden=!1;return x};
_.p(wi,_.e);_.K=wi.prototype;_.K.onPopupClosed=function(){this.toggleIconState(!1)};
_.K.computeIcon=function(){var x,L,D;return(L=_.g((x=this.data)==null?void 0:x.icon,h8l))==null?void 0:(D=L.icon)==null?void 0:D.iconType};
_.K.computeIconBadgeShape=function(){var x;return{iconBadgeType:"cart",iconBadgeText:(x=this.iconBadgeEntity)==null?void 0:x.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.K.onClick=function(){var x;(x=this.data)!=null&&x.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.K.computeHidden=function(x){return!x};
_.K.toggleIconState=function(x){this.iconButton&&(this.iconButton.pressed=x)};
wi.prototype.onPopupClosed=wi.prototype.onPopupClosed;_.A([_.b(_.EG),_.r("design:type",Object)],wi.prototype,"ytdReduxBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],wi.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],wi.prototype,"ytComponentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],wi.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],wi.prototype,"isOverlay",void 0);
_.A([_.F({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.r("design:type",Object)],wi.prototype,"hidden",void 0);_.A([_.F({selectorArgs:["data.iconBadgeEntityKey"],selector:function(x,L){return _.u6(x.entities,"iconBadgeEntity",L)}}),
_.r("design:type",Object)],wi.prototype,"iconBadgeEntity",void 0);_.A([_.F1("yt-icon-button"),_.r("design:type",HTMLButtonElement)],wi.prototype,"iconButton",void 0);_.A([_.mX("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],wi.prototype,"onPopupClosed",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],wi);
_.q(wi,"ytd-icon-badge-topbar-button-renderer",function(){if(w6l!==void 0)return w6l;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return w6l=x},{mode:1});var BCY;var B7=function(){var x=_.e.apply(this,arguments)||this;x.premiumOptions=[];x.darkerDarkTheme=_.u("web_darker_dark_theme");return x};
_.p(B7,_.e);B7.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.J3.Object.defineProperties(B7.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],B7.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],B7.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Array)],B7.prototype,"premiumOptions",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],B7.prototype,"darkerDarkTheme",void 0);_.A([_.Y("premiumOptions"),_.r("design:type",Object),_.r("design:paramtypes",[])],B7.prototype,"hasPremiumOptions",null);
_.A([_.w({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],B7);
_.q(B7,"ytd-offline-promo-content",function(){if(BCY!==void 0)return BCY;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return BCY=x},{mode:1});var Wd5;var W7=function(){var x=_.e.apply(this,arguments)||this;x.premiumOptions=[];return x};
_.p(W7,_.e);W7.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var x;this.premiumOptions=T4X((x=this.data)==null?void 0:x.formats)};
W7.prototype.onClickSubmit=function(){_.dg(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var x;(x=_.Zs())==null||x.pause()};
W7.prototype.attached=function(){this.JSC$20753_scroller&&(this.JSC$20753_scroller.dialogElement=this.hostElement.parentNode)};
_.J3.Object.defineProperties(W7.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
W7.prototype.dataChanged=W7.prototype.dataChanged;_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],W7.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],W7.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],W7.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],W7.prototype,"data",void 0);
_.A([_.F({computed:"computeIcon_(data.headersIcon)",value:""}),_.r("design:type",String)],W7.prototype,"headersIcon",void 0);_.A([_.F(),_.r("design:type",Array)],W7.prototype,"premiumOptions",void 0);_.A([_.F1("#scroller"),_.r("design:type",Object)],W7.prototype,"JSC$20753_scroller",void 0);_.A([_.Y("headersIcon"),_.r("design:type",Object),_.r("design:paramtypes",[])],W7.prototype,"showIcon",null);
_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],W7.prototype,"dataChanged",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],W7);
_.q(W7,"ytd-offline-promo-renderer",function(){if(Wd5!==void 0)return Wd5;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return Wd5=x},{mode:1});var qNs;var qm=function(){var x=_.e.apply(this,arguments)||this;x.playbackPauseInterval=NaN;x.isLoading=!1;x.hasError=!1;x.dialogClass="";x.youtubeLabel=_.p6("LOGO_ALT_LABEL",{},"YouTube Home");x.logoName="yt-logos-ext:yt-logo-updated";x.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return x};
_.p(qm,_.e);_.K=qm.prototype;_.K.onDataChange=function(){var x;if(this.showEOMV1Text=!((x=this.data)==null||!x.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.K.attached=function(){this.pausePlayer()};
_.K.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.K.handleLangSelect=function(x){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[x.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.K.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.K.handleSaveConsent=function(x){var L=this;this.showLoadingSpinner();this.showLoadingSpinner();H7W(_.g(x,Hfq)).catch(function(D){_.qy(new _.RZ("Something went wrong when save consent "+(D.message?D.message:D)+"."));L.hideLoadingSpinner();L.showErrorMessage()})};
_.K.handleDisablePersonalization=function(x){var L=this;this.showLoadingSpinner();utX(_.g(x,hT3)).then(function(){L.dialog.close();L.resumePlayer()}).catch(function(D){_.qy(new _.RZ("Something went wrong when disable personalization "+(D.message?D.message:D)+"."));
L.hideLoadingSpinner();L.showErrorMessage()})};
_.K.showLoadingSpinner=function(){var x=this;this.showSpinnerJobId=_.WW.addLowPriorityJob(function(){x.isLoading=!0},500)};
_.K.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.WW.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.K.showErrorMessage=function(){var x=this;this.hasError=!0;_.WW.addLowPriorityJob(function(){x.hasError=!1},2E3)};
_.K.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.h8(function(){try{var x=_.Zs();x&&x.pause()}catch(L){}},100))};
_.K.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var x=_.Zs();x&&x.play()}catch(L){}};
_.J3.Object.defineProperties(qm.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var x;if((x=this.data)==null||!x.eomV1Text)return[];x=[];for(var L=["SHIELD","WARNING","BAR_CHART"],D=this.data.eomV1Text.essentialCookieMsg.items,S=0;S<L.length&&S<D.length;S++)x.push({icon:L[S],text:D[S]});return x}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var x;if((x=this.data)==null||!x.eomV1Text)return[];x=[];for(var L=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],D=this.data.eomV1Text.nonEssentialCookieMsg.items,S=0;S<L.length&&S<D.length;S++)x.push({icon:L[S],text:D[S]});return x}}});
qm.prototype.onDataChange=qm.prototype.onDataChange;_.A([_.F(),_.r("design:type",Object)],qm.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Boolean)],qm.prototype,"showEOMV1Text",void 0);_.A([_.F(),_.r("design:type",Object)],qm.prototype,"isLoading",void 0);_.A([_.F(),_.r("design:type",Object)],qm.prototype,"hasError",void 0);_.A([_.F(),_.r("design:type",Number)],qm.prototype,"showSpinnerJobId",void 0);_.A([_.F(),_.r("design:type",Object)],qm.prototype,"dialogClass",void 0);
_.A([_.F1("#dialog"),_.r("design:type",Object)],qm.prototype,"dialog",void 0);_.A([_.F1("#cb-header"),_.r("design:type",HTMLElement)],qm.prototype,"header",void 0);_.A([_.F1("#lang-select"),_.r("design:type",HTMLElement)],qm.prototype,"langSelect",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],qm.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],qm.prototype,"ytComponentBehavior",void 0);
_.A([_.F(),_.r("design:type",String)],qm.prototype,"youtubeLabel",void 0);_.A([_.F(),_.r("design:type",Object)],qm.prototype,"logoName",void 0);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],qm.prototype,"onDataChange",null);_.A([_.Y("data"),_.r("design:type",Array),_.r("design:paramtypes",[])],qm.prototype,"eomEssentialCookieMsgItems",null);
_.A([_.Y("data"),_.r("design:type",Array),_.r("design:paramtypes",[])],qm.prototype,"eomNonEssentialCookieMsgItems",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],qm);
_.q(qm,"ytd-consent-bump-v2-lightbox",function(){if(qNs!==void 0)return qNs;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return qNs=x},{mode:1});var A1Y;var Ap=function(){return _.e.apply(this,arguments)||this};
_.p(Ap,_.e);Ap.prototype.ready=function(){if(!_.s2()||CW5)var x=!0;else CW5=!0,x=!1;x||(x=document.querySelector("ytd-app"),x||(x=document.body),this.internalLightBox=_.jr(x).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.A([_.F(),_.r("design:type",Object)],Ap.prototype,"data",void 0);_.A([_.F1("#lightbox"),_.r("design:type",Object)],Ap.prototype,"lightBox",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],Ap);
_.q(Ap,"ytd-consent-bump-v2-renderer",function(){if(A1Y!==void 0)return A1Y;var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return A1Y=x},{mode:1});var $GY;var r1$;var NCl;var $n=function(){return _.e.apply(this,arguments)||this};
_.p($n,_.e);_.K=$n.prototype;_.K.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&oIq(this.toastManager,this.toastType)};
_.K.open=function(x){this.toast&&(this.ephemeralAction&&_.yY().resolve(_.Op).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=x!=null?x:0,this.toastManager.enqueue(this.toast,x)):this.toast.open())};
_.K.close=function(x){var L;(L=this.toast)==null||L.close();this.toastManager&&x===1&&oIq(this.toastManager,x)};
_.K.refit=function(){var x;(x=this.toast)==null||x.refit()};
_.K.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var x;(x=this.toast)==null||x.close()}};
_.K.setVerticalOffset=function(x){this.toast&&(this.toast.verticalOffset=x,this.toast.fit())};
_.K.computeButtonClass_=function(x){return x?"toast-button":""};
_.K.computeText_=function(x){return _.SR(x)};
_.K.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.gU("toast-opened-changed",this.toastOpened))};
_.K.updateToastOpenedFromBinding=function(x){this.toastOpened=x.detail.value};
_.J3.Object.defineProperties($n.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var x,L,D=(x=this.data)==null?void 0:(L=x.actionButton)==null?void 0:L.buttonRenderer;return(D==null?void 0:D.command)||(D==null?void 0:D.serviceEndpoint)||(D==null?void 0:D.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 x=[],L;((L=this.data)==null?0:L.responseText)&&x.push(_.SR(this.data.responseText));var D;((D=this.data)==null?0:D.subText)&&x.push(_.SR(this.data.subText));var S,Q;if((S=this.data)==null?0:(Q=S.actionButton)==null?0:Q.buttonRenderer){var J,Z;x.push(((J=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(Z=J.accessibilityData)==null?void 0:Z.label)||_.SR(this.data.actionButton.buttonRenderer.text))}return x.filter(function(y){return y}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var x,L;return(L=(x=this.toast)==null?void 0:x.opened)!=null?L:!1}}});
$n.prototype.toastOpenedChangedForBinding=$n.prototype.toastOpenedChangedForBinding;$n.prototype.toastOpenedChanged=$n.prototype.toastOpenedChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],$n.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.nE.YtEventForwardingBehavior),_.r("design:type",Object)],$n.prototype,"ytEventForwardingBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],$n.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],$n.prototype,"duration",void 0);
_.A([_.F(),_.r("design:type",Number)],$n.prototype,"toastType",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],$n.prototype,"useCloseButton",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],$n.prototype,"closeToastOnActionButtonClick",void 0);_.A([_.F({value:function(){return _.p6("SBOX_INAPPROPRIATE_CANCEL")}}),
_.r("design:type",String)],$n.prototype,"closeButtonAriaLabel",void 0);_.A([_.F(),_.r("design:type",Boolean)],$n.prototype,"toastOpened",void 0);_.A([_.F(),_.r("design:type",Boolean)],$n.prototype,"hasOpened",void 0);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],$n.prototype,"command",null);_.A([_.Y("labelText","command","duration"),_.r("design:type",Object),_.r("design:paramtypes",[])],$n.prototype,"ephemeralAction",null);
_.A([_.Y("ephemeralAction"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],$n.prototype,"hasEphemeralAction",null);_.A([_.F1("#toast"),_.r("design:type",Object)],$n.prototype,"toast",void 0);_.A([_.F({value:function(){return{style:"call-to-action-inverse"}}}),
_.r("design:type",Object)],$n.prototype,"buttonOverrides",void 0);_.A([_.F({value:{style:"mono-inverse"}}),_.r("design:type",Object)],$n.prototype,"closeButtonOverrides",void 0);_.A([_.F({value:function(){return _.yY().resolve(_.ZN(_.Du))}}),
_.r("design:type",Object)],$n.prototype,"toastManager",void 0);_.A([_.Y("data.responseText","data.subText","data.actionButton"),_.r("design:type",Object),_.r("design:paramtypes",[])],$n.prototype,"labelText",null);_.A([_.bN("toastOpened"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],$n.prototype,"toastOpenedChanged",null);
_.A([_.bN("toastOpened"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],$n.prototype,"toastOpenedChangedForBinding",null);_.A([_.oW({is:"yt-notification-action-renderer",disableElementRegistration:!0})],$n);
_.q($n,"yt-notification-action-renderer",function(){if(NCl===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;r1$===void 0&&(r1$=document.createElement("template"));var S=r1$;D.call(L,S.content.cloneNode(!0),x.content.firstChild);NCl=x}x=NCl;return x},{mode:2});var ri=function(){var x=_.e.apply(this,arguments)||this;x.duration=4E3;x.downloadingCount=0;x.downloadedCount=0;x.downloadingOnlySmartDownloads=!1;x.sessionTotalDownloads=0;x.sessionDownloaded=0;x.previousSessionsDownloaded=0;x.totalDownloadPercentage=0;x.currentDownloadProgress=0;x.currentDownloadPercentage=0;x.isLeaderTab=!0;x.isFullScreen=!1;x.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};x.boundBeforeUnload=function(L){x.isLeaderTab&&x.downloadingCount>0&&(L.preventDefault(),
L.returnValue=!0)};
return x};
_.p(ri,_.e);_.K=ri.prototype;
_.K.open=function(){this.updateDownloadState();if(this.data){var x=this.sessionDownloaded+1,L=this.sessionTotalDownloads>1?_.p6("VIDEOS_DOWNLOADING_RATIO",{downloaded:x.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+x+"/"+this.sessionTotalDownloads):_.p6("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(L=this.sessionTotalDownloads>1?_.p6("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:x.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
x+"/"+this.sessionTotalDownloads):_.p6("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));x=this.isLeaderTab?_.p6("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.SR(this.data.responseText)!==L||_.SR(this.data.subText)!==x)this.set("data.responseText",_.Dv(L)),this.set("data.subText",_.Dv(x)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.K.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.K.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.K.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.K.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var x=this.downloadedCount-this.previousSessionsDownloaded;x<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-x);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.K.handleFullscreenChange=function(x){(this.isFullScreen=x)||this.updatePopup()};
ri.prototype.updateCurrentDownloadProgress=ri.prototype.updateCurrentDownloadProgress;ri.prototype.updatePopup=ri.prototype.updatePopup;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],ri.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],ri.prototype,"ytdReduxBehavior",void 0);_.A([_.b(_.nE.YtEventForwardingBehavior),_.r("design:type",Object)],ri.prototype,"ytEventForwardingBehavior",void 0);
_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],ri.prototype,"actionHandlerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],ri.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],ri.prototype,"duration",void 0);_.A([_.F({selector:function(x){return _.bvb(x.entities).length}}),
_.r("design:type",Object)],ri.prototype,"downloadingCount",void 0);_.A([_.F({selector:TDY}),_.r("design:type",Object)],ri.prototype,"downloadedCount",void 0);_.A([_.F({selector:function(x){var L=_.bvb(x.entities);return stq(x.entities,L)}}),
_.r("design:type",Object)],ri.prototype,"downloadingOnlySmartDownloads",void 0);_.A([_.F(),_.r("design:type",Object)],ri.prototype,"sessionTotalDownloads",void 0);_.A([_.F(),_.r("design:type",Object)],ri.prototype,"sessionDownloaded",void 0);_.A([_.F(),_.r("design:type",Object)],ri.prototype,"previousSessionsDownloaded",void 0);_.A([_.F(),_.r("design:type",Object)],ri.prototype,"totalDownloadPercentage",void 0);
_.A([_.F({selector:function(x){var L;x=(L=_.bvb(x.entities))!=null?L:[];return x.length>0?_.PeO(x.slice(-1)):0}}),
_.r("design:type",Object)],ri.prototype,"currentDownloadProgress",void 0);_.A([_.F(),_.r("design:type",Object)],ri.prototype,"currentDownloadPercentage",void 0);_.A([_.F({selector:_.eyb}),_.r("design:type",Object)],ri.prototype,"isLeaderTab",void 0);_.A([_.F1("yt-notification-action-renderer"),_.r("design:type",Object)],ri.prototype,"notificationActionRenderer",void 0);
_.A([_.GV("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ri.prototype,"updatePopup",null);_.A([_.GV("currentDownloadProgress"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ri.prototype,"updateCurrentDownloadProgress",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],ri);
_.q(ri,"ytd-video-download-toast-renderer",function(){if($GY!==void 0)return $GY;var x=document.createElement("template");_.m(x,'\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>');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return $GY=x},{mode:1});var iTq;var fyG;var Nm=function(){return _.e.apply(this,arguments)||this};
_.p(Nm,_.e);Nm.prototype.computeIsRedLogo=function(x,L){!x&&L&&(x=L);return x==="YOUTUBE_RED_LOGO"||x==="YOUTUBE_PREMIUM_LOGO"};
Nm.prototype.computeLogoName=function(x){x=this.componentBehavior.computeIcon_(x);return x===""?"yt-logos-ext:yt-logo-updated":x};
_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],Nm.prototype,"componentBehavior",void 0);_.A([_.F({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.r("design:type",Boolean)],Nm.prototype,"isRedLogo",void 0);_.A([_.F({computed:"computeLogoName(data)"}),_.r("design:type",String)],Nm.prototype,"logoName",void 0);_.A([_.F({value:{}}),_.r("design:type",Object)],Nm.prototype,"data",void 0);
_.A([_.F(),_.r("design:type",Object)],Nm.prototype,"logoType",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-logo"})],Nm);
_.q(Nm,"ytd-logo",function(){if(fyG!==void 0)return fyG;var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return fyG=x},{mode:_.Vm("kevlar_poly_si_batch_j074")?1:2});var iD=function(){var x=_.e.apply(this,arguments)||this;x.animationRef={};return x};
_.p(iD,_.e);_.K=iD.prototype;_.K.attached=function(){document.addEventListener("yt-navigate-finish",_.p$(this,this.logYoodle))};
_.K.detached=function(){document.removeEventListener("yt-navigate-finish",_.p$(this,this.logYoodle))};
_.K.logYoodle=function(){var x,L;if((x=this.data)==null?0:(L=x.loggingDirectives)==null?0:L.trackingParams)this.ytRendererBehavior.markDirty(),_.sk().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.K.computeHideImg=function(x,L){return!!x||!!L};
_.K.computeHideYtdLogo=function(x,L){return!x||!!L};
_.K.computeHideLottie=function(x){return!x};
_.K.computeIsRedLogo=function(x){return x==="YOUTUBE_RED_LOGO"||x==="YOUTUBE_PREMIUM_LOGO"};
_.K.renderLogoEntity=function(){var x=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),L=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),D=this.getLogoTitleText(this.data),S=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==x&&(this.url=x);this.animatedUrl!==L&&(this.animatedUrl=L);this.logoTitleText!==D&&(this.logoTitleText=D);this.lottieUrl!==S&&(this.lottieUrl=S,this.lottiePlayerProps=this.computeLottiePlayerProps(S))};
_.K.getSanitizedThumbnail=function(x){return x&&x.thumbnails?_.Bmb(x.thumbnails,122)||"":""};
_.K.getThumbnailUrl=function(x,L){if(!L)return"";var D,S;x=x?(D=L.darkThemeLogo)==null?void 0:D.thumbnail:(S=L.lightThemeLogo)==null?void 0:S.thumbnail;return this.getSanitizedThumbnail(x)};
_.K.getAnimatedThumbnailUrl=function(x,L){return L?this.getSanitizedThumbnail(x?L.darkThemeAnimatedLogo:L.lightThemeAnimatedLogo):""};
_.K.getLogoTitleText=function(x){if(x)return _.SR(x.tooltipText)};
_.K.computeLogoIcon=function(x,L){if(L){var D,S;return x?(D=L.darkThemeLogo)==null?void 0:D.icon:(S=L.lightThemeLogo)==null?void 0:S.icon}};
_.K.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.K.getLottieUrl=function(x,L){var D,S,Q,J;return x?L==null?void 0:(D=L.darkThemeLogo)==null?void 0:(S=D.lottieAnimation)==null?void 0:S.url:L==null?void 0:(Q=L.lightThemeLogo)==null?void 0:(J=Q.lottieAnimation)==null?void 0:J.url};
_.K.computeLottiePlayerProps=function(x){if(x){var L;if((L=this.animationRef)==null?0:L.lottieEl){var D;(D=this.animationRef)==null||D.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:x,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.K.onLottieError=function(){this.data&&this.lottieUrl&&_.MF(this.hostElement,"yoodle-error")};
_.K.onImgError=function(){this.data&&!this.lottieUrl&&_.MF(this.hostElement,"yoodle-error")};
iD.prototype.playAnimation=iD.prototype.playAnimation;iD.prototype.renderLogoEntity=iD.prototype.renderLogoEntity;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],iD.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],iD.prototype,"data",void 0);_.A([_.F({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.r("design:type",Boolean)],iD.prototype,"hideImg",void 0);
_.A([_.F({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.r("design:type",Boolean)],iD.prototype,"hideYtdLogo",void 0);_.A([_.F({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.r("design:type",Boolean)],iD.prototype,"hideLottie",void 0);_.A([_.F({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.r("design:type",Boolean)],iD.prototype,"isRedLogo",void 0);
_.A([_.F(),_.r("design:type",Boolean)],iD.prototype,"useDarkThemeYoodle",void 0);_.A([_.F(),_.r("design:type",String)],iD.prototype,"url",void 0);_.A([_.F(),_.r("design:type",String)],iD.prototype,"animatedUrl",void 0);_.A([_.F(),_.r("design:type",String)],iD.prototype,"logoTitleText",void 0);_.A([_.F({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.r("design:type",Object)],iD.prototype,"logoIcon",void 0);_.A([_.F(),_.r("design:type",Object)],iD.prototype,"logoType",void 0);
_.A([_.F(),_.r("design:type",String)],iD.prototype,"lottieUrl",void 0);_.A([_.F(),_.r("design:type",Object)],iD.prototype,"lottiePlayerProps",void 0);_.A([_.F(),_.r("design:type",Object)],iD.prototype,"animationRef",void 0);_.A([_.bN("data"),_.bN("useDarkThemeYoodle"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],iD.prototype,"renderLogoEntity",null);
_.A([_.mX("click"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],iD.prototype,"playAnimation",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],iD);
_.q(iD,"ytd-yoodle-renderer",function(){if(iTq!==void 0)return iTq;var x=document.createElement("template");_.m(x,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-yoodle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<picture hidden="[[hideImg]]" class="style-scope ytd-yoodle-renderer">\n  <source srcset$="[[animatedUrl]]" type="image/webp" class="style-scope ytd-yoodle-renderer">\n  <img src$="[[url]]" alt="[[logoTitleText]]" on-error="onImgError" class="style-scope ytd-yoodle-renderer">\n</picture>\n<ytd-logo data="[[logoIcon]]" hidden="[[hideYtdLogo]]" logo-type="[[logoType]]" class="style-scope ytd-yoodle-renderer">\n</ytd-logo>\n<ytd-lottie-player aria-label="[[logoTitleText]]" class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" class="style-scope ytd-yoodle-renderer">\n</ytd-lottie-player>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return iTq=x},{mode:_.Vm("kevlar_poly_si_batch_j074")?1:2});var oDg;var ays;var zLs=_.aB.currentPageTypeSelector,X6l=_.aB.currentPageSubTypeSelector,f_=function(){var x=_.e.apply(this,arguments)||this;x.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return x};
_.p(f_,_.e);_.K=f_.prototype;_.K.onYoodleError=function(){_.u("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.K.computeLogoName=function(x){x=this.componentBehavior.computeIcon_(x);return x===""?"yt-logos-ext:yt-logo-updated":x};
_.K.computeTitle=function(x,L,D){return D&&(L==null?0:L.tooltipText)?_.SR(L.tooltipText):_.SR(x)};
_.K.computeAriaLabel=function(x,L,D){return D&&(L==null?0:L.tooltipText)?_.SR(x):""};
_.K.computeShowYoodle=function(x,L,D){return!x||!L&&!!D&&!_.wk.isEmpty(D)};
_.K.onNavigateHomeAction=function(){if(_.u("kevlar_miniplayer_navigate_home_from_app_killswitch")){var x;(x=_.jr(this.hostElement).querySelector(".yt-simple-endpoint"))==null||x.click()}};
_.K.computeLogoHref=function(x,L,D){var S;(D==null?0:D.onTapCommand)?S=this.componentBehavior.computeHref_(D.onTapCommand):x&&(S=this.componentBehavior.computeHref_(x));return S?S:L};
_.K.computeCommand=function(x,L){return(L==null?void 0:L.onTapCommand)||x};
_.K.getEndpointForm=function(){if(_.u("kevlar_topbar_disable_cache_only_home")){var x=_.yY().resolve(_.MP),L=zLs(x.getState())||"";x=X6l(x.getState())||"";return{disableCache:L==="ytd-browse"&&x==="home"}}return{disableCache:!0}};
f_.prototype.onYoodleError=f_.prototype.onYoodleError;_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],f_.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],f_.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],f_.prototype,"componentBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],f_.prototype,"ytdReduxBehavior",void 0);
_.A([_.F(),_.r("design:type",Object)],f_.prototype,"data",void 0);_.A([_.F(),_.r("design:type",String)],f_.prototype,"countryCode",void 0);_.A([_.F({selectorArgs:["data.overrideEntityKey"],selector:function(x,L){return _.u6(x.entities,"logoEntity",L)}}),
_.r("design:type",Object)],f_.prototype,"logoEntity",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.r("design:type",Boolean)],f_.prototype,"showYoodle",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],f_.prototype,"yoodleError",void 0);_.A([_.F({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.r("design:type",String)],f_.prototype,"titleText",void 0);
_.A([_.F({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.r("design:type",String)],f_.prototype,"ariaLabelText",void 0);_.A([_.F({value:"/"}),_.r("design:type",String)],f_.prototype,"defaultEndpointUrl",void 0);_.A([_.F({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.r("design:type",String)],f_.prototype,"endpointUrl",void 0);
_.A([_.F({computed:"computeCommand(data.endpoint, logoEntity)"}),_.r("design:type",String)],f_.prototype,"command",void 0);_.A([_.F(),_.r("design:type",Object)],f_.prototype,"logoType",void 0);_.A([_.F({}),_.r("design:type",Boolean)],f_.prototype,"useDarkThemeYoodle",void 0);_.A([_.mX("yoodle-error"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],f_.prototype,"onYoodleError",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],f_);
_.q(f_,"ytd-topbar-logo-renderer",function(){if(ays!==void 0)return ays;var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return ays=x},{mode:_.Vm("kevlar_poly_si_batch_j027")?1:2});var c1I=0;var nDW=_.N5.SEARCH_APPEND_LABEL,tU9=_.N5.SUGGESTION_NEW_VIDEOS_TEXT,xs9=_.N5.SUGGESTION_THUMBNAIL_LABEL,LLX=_.N5.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,DsW=_.B(function(x){function L(uG){var h5,x2;return _.I(function(YX){if(YX.nextAddress==1)return h5=new Request(uG),_.HH(YX,2),YX.yield(fetch(h5,{credentials:"include"}),4);if(YX.nextAddress!=2)return X9(!0),_.nH(YX,0);x2=_.mW(YX);_.qy(x2);_.Y2(YX)})}
var D=x.isHighlighted;var S=x.suggestion;var Q=x.onClickCallback;var J=x.onHoverUpdateCallback;var Z=x.labels;var y=x.queryBuilderFunction;var E=x.onRemoveCallback;var P=x.suggestionIndex;var v=x.generateUniqueId;var V=x.highlightedId;var h=x.useScrollMargin;var H=x.isKeyboardMode;var k=null,T=null,G=_.x3("div"),U=_.x3("span");x=_.O(_.HB(!1,void 0,"mxSc0e"));var l=x.next().value,X=x.next().value,f=_.Sc("a",function(uG){uG&&_.Tk(237477,uG,T,function(h5){T=h5})}),N=_.Sc("button",function(uG){uG&&_.Tk(237477,
uG,T,function(h5){T=h5})}),z=_.kO(function(uG){if((uG==null?void 0:uG.button)===2)return uG.preventDefault(),!1;
var h5=_.A3();h5&&k&&_.Do(h5,k,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var x2;Q(uG,S().text,S().index,S().entityMid,uG==null?void 0:(x2=uG.detail)==null?void 0:x2.wasSelectedByKeyboard);return!1}),xf=function(){return S().type===35},K3=function(){return _.u("desktop_enable_single_suggestion_highlight")},P4=function(){return _.dE("desktop_suggestions_panel_row_height")||0},kf=function(){var uG;
return _.u("desktop_enable_new_video_metadata")&&((uG=S())==null?void 0:uG.hasNewVideo)===!0},H4=function(){return _.u("desktop_enable_visual_suggest")},p3=function(){return _.u("desktop_enable_entity_suggest")&&YNs(S())},w0=function(){return S().entitySubtitle},Rn=function(){return K3()?(D==null?void 0:D())||K2()&&!(H==null?0:H()):(D==null?void 0:D())||K2()},lG=function(){var uG=_.$6("SBOX_SETTINGS");
return xf()&&!(uG==null?0:uG.HIDE_REMOVE_LINK)},xX=function(){return Fds(S(),{useEntityName:p3()})},UR,c4=!((UR=_.yY().resolve(_.ZN(_.Dt)))==null||!UR()),hr=function(){return xf()?_.u("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},GB=function(){return Z==null?void 0:Z().SUGGESTION_DISMISS_LABEL},C2=function(){return Z==null?void 0:Z().SUGGESTION_DISMISSED_LABEL};
x=_.O(_.HB(!1,void 0,"WMms1e"));UR=x.next().value;var X9=x.next().value;x=_.O(_.HB(!1,void 0,"PyL0t"));var vs=x.next().value,Zp=x.next().value,K2=vs,F2=_.kO(function(){y(U.value.innerText);return!1}),II=_.kO(function(uG){uG.preventDefault();
return!1}),jW=_.kO(function(uG){var h5=S().text,x2=_.$6("SBOX_SETTINGS"),YX="https://"+(x2.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
YX+="&delq="+encodeURIComponent(h5);(h5=x2==null?void 0:x2.PSUGGEST_TOKEN)&&(YX+="&tok="+h5);(x2=x2==null?void 0:x2.SESSION_INDEX)&&(YX+="&authuser="+x2);L(YX);uG.preventDefault();(uG=_.A3())&&T&&_.Do(uG,T,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");E(P==null?void 0:P());return!1}),J5=_.kO(function(){if(K3()&&(H==null?0:H()))return!1;
Zp(!0);J(!0);return!1}),Eq=_.kO(function(){Zp(!1);
J(!1);return!1}),zB=_.kO(function(){X(!0);
return!1}),ER=_.kO(function(){X(!1);
return!1}),qh=_.kO(function(uG){uG.preventDefault();
if(S().entityThumbnailAttributionUrl){uG=S().entityThumbnailAttributionUrl;var h5=S().entityName,x2={urlEndpoint:{url:uG},commandMetadata:{webCommandMetadata:{url:uG}}};uG={buttonViewModel:{title:_.p6("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:{dismissDialogEndpoint:{}}}}};x2={buttonViewModel:{title:_.p6("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_BUTTON_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:x2}}};
h5={dialogHeaderViewModel:{headline:{content:h5!=null?h5:_.p6("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_TITLE"),alignment:"TEXT_ALIGNMENT_CENTER"}}};var YX={basicContentViewModel:{paragraphs:[{text:{content:_.p6("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_DESCRIPTION"),alignment:"TEXT_ALIGNMENT_CENTER"}}]}};uG={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:h5,footer:{panelFooterViewModel:{primaryButton:x2,secondaryButton:uG,shouldHideDivider:!0}},content:YX}}}}};_.yY().resolve(_.E2).resolveCommand(uG)}return!1});
x=_.O(_.HB("",void 0,"yG5Sx"));var g$=x.next().value,p2=x.next().value;_.UX(function(){lG()&&p2(v==null?void 0:v(P==null?void 0:P()));G.value&&_.Tk(12453,G.value,k,function(uG){k=uG})});
return _.M(_.d,{cond:UR,then:function(){var uG={};return _.M("div",{class:_.gF("ytSuggestionComponentRemovedText",(uG.ytSuggestionComponentLargerRemovedText=function(){return H4()},uG)),
style:function(){return P4()>0?"height: "+P4()+"px;":""},
role:"button"},C2)},
else:function(){var uG={},h5={};return _.M("div",{class:_.gF("ytSuggestionComponentSuggestion",(uG.ytSuggestionComponentSuggestionHover=function(){return!K3()},uG.ytSuggestionComponentHighlighted=Rn,uG.ytSuggestionComponentPersonalizedSuggestion=xf,uG.ytSuggestionComponentMweb=!1,uG.ytSuggestionComponentLargerSuggestion=function(){return kf()||H4()},uG.ytSuggestionComponentThumbnailSuggestion=function(){return H4()},uG.ytSuggestionComponentRoundedSuggestion=function(){return _.u("desktop_enable_scrollable_suggestions_panel")&&
_.u("desktop_enable_suggestions_panel_padding")},uG.ytSuggestionComponentThumbnailPadding=function(){return H4()&&!xf()},uG)),
style:function(){return P4()>0?"height: "+P4()+"px;":""},
role:"presentation","on:mousedown":z,"on:mouseover":J5,"on:mouseout":Eq,el:G},_.M("div",{class:_.gF("ytSuggestionComponentText",(h5.ytSuggestionComponentScrollMargin=h,h5)),"aria-label":function(){return kf()?S().text+" "+tU9:S().text},
id:function(){return v==null?void 0:v(P==null?void 0:P())},
"on:mousedown":z,role:"option"},_.M(_.d,{cond:function(){return S().type!==33},
then:function(){return _.M(_.YO,{icon:hr,className:"ytSuggestionComponentIcon"})}}),_.M("div",{class:"ytSuggestionComponentLeftContainer"},_.M("span",{el:U,
role:"button",tabindex:0},_.M(_.R1,{each:xX},function(x2){return x2.bold?_.M("span",{class:"ytSuggestionComponentBold"},x2.text):_.M("span",null,x2.text)})),_.M(_.d,{cond:function(){return p3()&&!!S().entitySubtitle||kf()},
then:function(){return _.M("div",{class:"ytSuggestionComponentMetadataContainer"},_.M(_.d,{cond:function(){return p3()&&!!S().entitySubtitle},
then:function(){return _.M("div",{class:"ytSuggestionComponentEntitySubtitle"},w0)}}),_.M(_.d,{cond:function(){return kf()},
then:function(){return _.M("div",{class:"ytSuggestionComponentNewVideoContainer"},_.M("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.M("div",{class:"ytSuggestionComponentNewVideoText"},tU9))}}))}}))),_.M("div",{class:"ytSuggestionComponentRightContainer"},_.M(_.d,{cond:function(){return H4()&&S().visualSuggestUrl!==void 0},
then:function(){var x2={};return _.M("div",{class:"ytSuggestionComponentThumbnailContainer"},_.M("img",{"aria-label":xs9,class:_.gF("ytSuggestionComponentVisualSuggestThumbnail",(x2.ytSuggestionComponentCircularFrame=function(){return p3()&&S().subtypes.includes(790)},x2.ytSuggestionComponentEntitySuggestThumbnail=function(){return p3()},x2)),
src:function(){return S().visualSuggestUrl}}),_.M(_.d,{cond:function(){return p3()&&!!S().entityThumbnailAttributionUrl},
then:function(){var YX={};return _.M("span",{title:LLX,role:"tooltip"},_.M("div",{"on:mouseover":zB,"on:mouseout":ER,"on:mousedown":qh,class:_.gF("ytSuggestionComponentThumbnailOverlay",(YX.ytSuggestionComponentThumbnailOverlayHidden=function(){return!l()},YX))},_.M(_.YO,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.M(_.GS,null,_.M(_.TS,{when:function(){return H4()&&lG()}},function(){var x2={};
return _.M("button",{class:_.gF("ytSuggestionComponentRemoveLinkClearButton",(x2.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return g$()&&g$()===(V==null?void 0:V())},x2.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!Rn()},x2)),
el:N,"on:mousedown":jW,"aria-label":GB,id:function(){return g$()}},_.M(_.YO,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.M(_.TS,{when:function(){return!(H4()&&S().visualSuggestUrl!==void 0)&&lG()}},function(){var x2={};
return _.M("a",{class:_.gF("ytSuggestionComponentRemoveLink",(x2.ytSuggestionComponentRemoveLinkDark=c4,x2.ytSuggestionComponentRemoveLinkSelected=function(){return g$()&&g$()===(V==null?void 0:V())},x2)),
el:f,"on:mousedown":jW,"aria-label":GB,tabindex:0,role:"button",id:function(){return g$()}},GB)}),_.M(_.TS,{when:function(){return!1}},function(){return _.M("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":F2,"on:mousedown":II,role:"button","aria-label":nDW},_.M(_.YO,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"Yi");var SEu=_.xI(["//www.google.com/textinputassistant/","/","_tia.js"]),Qol=_.B(function(){return _.M("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.M("button",{class:"ytdTextInputAssistantButton","on:click":_.kO(function(){RLl().inputMethodsTracker.add(3);var x,L=(x=_.$6("SBOX_SETTINGS"))==null?void 0:x.REQUEST_LANGUAGE;if(L)return _.ac(_.Pn(SEu,14,L)),!1})},_.M("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"Zi");var Jh$=function(){this.cache=new Map},KLs=function(x){for(var L=_.O(x.cache.entries()),D=L.next();!D.done;D=L.next()){var S=_.O(D.value);
D=S.next().value;S=S.next().value;S.suggestions.some(function(Q){return Q.type===35})&&x.cache.delete(D)}};var ORG=_.N5.SEARCH,ZRq=_.N5.SEARCH_CLEAR_LABEL,yh5=new _.vx("FAKE_SUGGEST_RESPONSE");_.dF(_.B(function(x){function L(){zB||(zB=setTimeout(function(){qh()},1E3))}
function D(HC,VQ,w$){if(HC.trim()){Eq=HC;_.Au("REFINEMENTS_TUPLE",void 0);jW=!0;var Hi;VQ=lyX(vs,VQ);var dA=(Hi=x.searchEndpoint)==null?void 0:Hi.call(x);_.Ckq(HC,VQ,dA,hr.value.value,w$);qh();hr.value.value=HC;hr.value.blur();vs.reset()}}
function S(HC){return _.I(function(VQ){return VQ.return(new Promise(function(w$){var Hi=new XMLHttpRequest;Hi.open("GET",HTs(HC),!0);Hi.withCredentials=!0;var dA=_.$6("SBOX_SETTINGS");(dA==null?0:dA.SEND_VISITOR_DATA)&&Hi.setRequestHeader("X-Goog-Visitor-Id",dA==null?void 0:dA.VISITOR_DATA);Hi.onload=function(){w$(Hi.responseText)};
Hi.onerror=function(){_.qy(Error("Fl"));w$(null)};
setTimeout(function(){Hi.abort()},1E4);
Hi.send(null)}))})}
function Q(HC){var VQ,w$,Hi,dA;return _.I(function(sq){switch(sq.nextAddress){case 1:return VQ={credentials:"include",headers:hLs()},window.AbortController&&(w$=new AbortController,setTimeout(function(){w$.abort("ytsbox-suggest-timeout")},1E4),VQ.signal=w$.signal),_.HH(sq,2),sq.yield(fetch(HTs(HC),VQ),4);
case 4:Hi=sq.yieldResult.text();_.nH(sq,3);break;case 2:return dA=_.mW(sq),dA!=="ytsbox-abort-last"&&dA!=="ytsbox-suggest-timeout"&&_.qy(dA),sq.return(null);case 3:return sq.return(Hi)}})}
function J(HC){var VQ,w$,Hi;return _.I(function(dA){switch(dA.nextAddress){case 1:if(VQ=_.yY().resolve(_.ZN(yh5)))return dA.return(VQ);w$=Date.now();L();return _.u("yt_searchbox_xhr")?dA.yield(S(HC),5):dA.yield(Q(HC),4);case 4:Hi=dA.yieldResult;dA.jumpTo(3);break;case 5:Hi=dA.yieldResult;case 3:if(Hi){zB&&(clearTimeout(zB),zB=null);var sq=vs,tx=w$,qe=HC.query.length===0;tx=Date.now()-tx;qe?sq.zeroPrefixRoundTripTime=tx:(sq.JSC$20733_totalRoundTripTime+=tx,sq.maxRoundTripTime=Math.max(sq.maxRoundTripTime,
tx),qe=Math.floor(tx/100),qe>=UGI.length?++sq.roundTripTimeHistogram[9]:++sq.roundTripTimeHistogram[UGI[qe]])}return dA.return(Hi)}})}
function Z(HC){var VQ,w$,Hi;return _.I(function(dA){if(dA.nextAddress==1)return(VQ=X9.cache.get(VU3(HC)))?dA.return(VQ):dA.yield(J(HC),2);w$=dA.yieldResult;if(w$===null)return dA.return(null);Hi=new sj3(w$);HC.query.length===0&&Hi.suggestions.length===0||X9.cache.set(VU3(HC),Hi);return dA.return(Hi)})}
function y(HC){var VQ,w$;return _.I(function(Hi){if(Hi.nextAddress==1){J5=!1;var dA=Eq;dA=_.ZkN()==="search"?(_.om(location.href,"search_query")||_.om(location.href,"q"))===dA:!1;VQ=new vDY(HC,dA?Eq:null);return Hi.yield(Z(VQ),2)}w$=Hi.yieldResult;if(w$===null)return Hi.return();VQ.query.length===0&&(vs.zeroPrefixSuggestionCount=w$.suggestions.length);if(VQ.id<=ER)return vs.outOfSyncResponseCount++,Hi.return();if(document.activeElement!==hr.value)return Hi.return();ER=VQ.id;var sq=vs,tx=w$.rawResponse[2]||
{};sq.experimentTriggeredBeforeFinal||(sq.experimentTriggeredBeforeFinal=sq.experimentTriggeredFinal);sq.experimentTriggeredFinal=!!tx.e;vs.updateSuggestions(w$.suggestions);G(-1);lG([]);w$.suggestions!==H()&&nw(w$.suggestions.length);k(w$.suggestions);K3(w$.suggestions.length>0&&w$.suggestions[0].type===33);C2&&(C2.hidden=w$.suggestions.length===0,xf()?(C2.style.minWidth="",sq=C2.style,tx=(dA=H()[0])==null?void 0:dA.ignoredPrefix,sq.marginLeft=(tx?Math.min(tx.length*6,GB.value.offsetWidth):0).toString()+
"px"):(C2.style.minWidth=GB.value.offsetWidth+"px",C2.style.marginLeft="0"),nZ());_.Y2(Hi)})}
function E(){if(!jW)return!1;var HC=_.$6("REFINEMENTS_TUPLE");return HC?(HC=HC[1].map(function(VQ,w$){return new bTu([VQ,0,[71]],hr.value.value,w$)}),H()!==HC&&nw(HC.length),lG([]),k(HC),vs.updateSuggestions(HC),jW=!1,C2.hidden=HC.length===0,J5=HC.length>0,!0):!1}
function P(){var HC=hr.value.value;(typeof HC==="string"||HC instanceof String)&&HC!==""?f(!0):f(!1)}
function v(){if(_.ZkN()==="search"){var HC=window.location.href;try{var VQ=_.om(HC,"search_query")||_.om(HC,"q")||""}catch(w$){VQ=""}VQ&&(hr.value.value=VQ,f(!0))}}
var V=_.O(_.HB([],void 0,"OC8EPc")),h=V.next().value;V=V.next().value;var H=h,k=V;h=_.O(_.HB(-1,void 0,"t2tVQb"));var T=h.next().value,G=h.next().value;h=_.O(_.HB(-1,void 0,"v0RZCe"));var U=h.next().value,l=h.next().value;h=_.O(_.HB(!1,void 0,"rjAnI"));var X=h.next().value,f=h.next().value;h=_.O(_.HB(!1,void 0,"SyGLvb"));var N=h.next().value,z=h.next().value;V=_.O(_.HB(!1,void 0,"tL09Cb"));h=V.next().value;V=V.next().value;var xf=h,K3=V;V=_.O(_.HB(!1,void 0,"FlH7mc"));h=V.next().value;var P4=V.next().value;
V=_.O(_.HB(!1,void 0,"ea3fwe"));var kf=V.next().value,H4=V.next().value;V=_.O(_.HB(1,void 0,"vSK1xe"));var p3=V.next().value,w0=V.next().value;V=_.O(_.HB([],void 0,"ijlw4b"));var Rn=V.next().value,lG=V.next().value;V=_.O(_.HB(!1,void 0,"HcRey"));var xX=V.next().value,UR=V.next().value;V=_.u("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var c4=_.x3("yt-searchbox"),hr=_.x3("input"),GB=_.x3("div"),C2,X9=
new Jh$,vs=RLl(),Zp=_.yY().resolve(_.ZN(_.Dt)),K2=function(){var HC;return((HC=x.forceDarkMode)==null?void 0:HC.call(x))||!(Zp==null||!Zp())},F2=function(){return _.u("desktop_enable_scrollable_suggestions_panel")},II="i"+c1I++,jW=!1,J5=!1,Eq="",zB=null,ER=-1,qh=function(){lG([]);
k([]);K3(!1);C2&&(C2.hidden=!0);zB&&(clearTimeout(zB),zB=null);G(-1)},g$=function(HC,VQ){HC.preventDefault();
UR(!0);C2&&(C2.hidden=!1);var w$=T();HC=H();var Hi=Rn();VQ=lsl(VQ);w$+=VQ;for(w$>=HC.length?w$=-1:w$<-1&&(w$=HC.length-1);w$!==-1&&(Hi.includes(w$)||w$>=HC.length||w$<0);)w$+=VQ,w$>=HC.length&&(w$=-1);G(w$);T()>=0&&(hr.value.value=H()[T()].text,l(0),P(),HC=T(),Hi=U(),(Hi=document.getElementById(hx[HC][Hi]))&&F2()&&(HC===H().length-1?C2.scrollTop=C2.scrollHeight:Hi.scrollIntoView({block:"nearest",inline:"start"})))},p2=_.kO(function(HC){if(!(HC.relatedTarget instanceof Element&&HC.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){z(!0);
var VQ;(VQ=x.focusCallback)==null||VQ.call(x,!0);E()||(J5?C2.hidden=!1:(_.MF(c4.value,"yt-autonav-pause-focus",{}),y(HC.target.value)))}}),uG=_.kO(function(HC){if(!(HC.relatedTarget instanceof Element&&HC.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){z(!1);
var VQ;(VQ=x.focusCallback)==null||VQ.call(x,!1);C2.scrollTop=0;C2.hidden=!0;_.MF(c4.value,"yt-autonav-pause-blur",{})}}),h5=function(HC){HC=lsl(HC);
var VQ;((VQ=hx[T()])==null?0:VQ[U()+HC])&&l(U()+HC)},x2=_.kO(function(HC){var VQ=HC.target;
switch(HC.keyCode){case 13:HC.preventDefault();var w$;if((w$=hx[T()])==null?0:w$[U()]){var Hi;(Hi=document.getElementById(hx[T()][U()]))==null||Hi.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}HC=HC.shiftKey?4:3;w$=vs;Hi=T();w$.selectedSuggestionIndex=Hi;D(VQ.value,HC);break;case 27:C2&&(C2.hidden=!0);break;case 40:g$(HC,40);break;case 38:g$(HC,38);break;case 39:h5(39);break;case 37:h5(37);break;case 229:vs.inputMethodsTracker.add(4);break;default:vs.inputMethodsTracker.add(1),
Gb5(vs)}return!1}),YX=_.kO(function(HC){y(HC.target.value);
P();F2()&&C2&&(C2.scrollTop=0);return!1}),$2=_.kO(function(){vs.inputMethodsTracker.add(2);
Gb5(vs);return!1});
_.UX(function(){if(C2){vs.reset();if(window.ResizeObserver){var HC=new ResizeObserver(function(){xf()||(C2.style.minWidth=GB.value.offsetWidth+"px")});
HC.observe(GB.value);(new ResizeObserver(function(){nZ()})).observe(C2);
_.wH(function(){HC.disconnect()})}v();
window.addEventListener("yt-navigate-finish",v);window.addEventListener("yt-focus-searchbox",function(){hr.value.focus()});
var VQ;P4((VQ=_.$6("SBOX_SETTINGS"))==null?void 0:VQ.HAS_ON_SCREEN_KEYBOARD)}else _.BI(new _.RZ("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var zG=_.kO(function(HC){HC.preventDefault();D(hr.value.value,12);return!1}),K8=_.kO(function(HC){HC.preventDefault();
var VQ,w$;(VQ=hr)==null||(w$=VQ.value)==null||w$.focus();var Hi,dA;((Hi=hr)==null?void 0:(dA=Hi.value)==null?void 0:dA.value)!==""&&(hr.value.value="",hr.value.dispatchEvent(new Event("input")));return!1}),oi=_.kO(function(){var HC=lvu(hr.value.value,H().filter(function(VQ){return VQ.type!==35}).map(function(VQ){return{label:VQ.text}}));
_.dg(c4.value,"yt-open-popup-action",[{openPopupAction:HC},document.body]);return!1}),kX=_.kO(function(){hr.value.focus();
return!1}),n2=function(HC,VQ,w$,Hi,dA){vs.selectedSuggestionIndex=w$;
D(VQ,dA?3:1,Hi)},Vo=function(HC){hr.value.value=HC;
hr.value.dispatchEvent(new Event("input"));vs.inputMethodsTracker.add(5);Gb5(vs,!0)},hx=[[]],Ge=function(HC){var VQ="searchbox-suggestion"+_.zp(_.KT);
hx[HC].push(VQ);return VQ},nw=function(HC){if(H()){hx=[[]];
for(var VQ=0;VQ<HC;VQ++)hx.push([])}},nZ=function(){if(F2()){var HC=C2,VQ=HC.scrollTop;
HC=HC.scrollHeight-HC.clientHeight;H4(VQ>=HC);VQ=Math.abs(HC-VQ);VQ<=40?w0(1-(40-VQ)/40):w0(1)}},OO=function(){return"opacity: "+p3()*100+"%"},sw=_.kO(function(){nZ();
return!1}),W4=_.kO(function(){UR(!1);
return!1}),f3,vC={},Ps={},eN={},F9={};
return _.M("yt-searchbox",{class:_.gF("ytSearchboxComponentHost",(vC.ytSearchboxComponentMweb=!1,vC.ytSearchboxComponentDesktop=!0,vC["yt-searchbox-filled-query"]=function(){return X()},vC["ytd-masthead"]=function(){return!N()},vC.ytSearchboxComponentHostDark=K2,vC)),
role:"search",el:c4,"client-ve-type":10349},_.M("div",{el:GB,"on:click":kX,class:_.gF("ytSearchboxComponentInputBox",(Ps.ytSearchboxComponentInputBoxDark=K2,Ps.ytSearchboxComponentInputBoxHasFocus=N,Ps))},_.M("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":zG},_.M(_.d,{cond:N,then:function(){return _.M("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.M(_.YO,{icon:"SEARCH"}))}}),_.M("input",{el:hr,
class:_.gF("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":II,"aria-expanded":!((f3=C2)==null?0:f3.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:"false","on:blur":uG,"on:focus":p2,"on:input":YX,"on:keydown":x2,"on:paste":$2,placeholder:x.placeholderText,"aria-activedescendant":function(){var HC;return(HC=hx[T()])==null?void 0:HC[U()]},
"aria-autocomplete":"list",role:"combobox"})),_.M(_.d,{cond:h,then:function(){return _.M("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.M(Qol,null))}}),_.M(_.d,{cond:X,
then:function(){return _.M("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.M("button",{class:"ytSearchboxComponentClearButton","on:click":K8,"aria-label":x.clearButtonAriaLabel||ZRq},_.M(_.YO,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.M(_.UB,{model:{}})))}})),_.M("button",{class:_.gF("ytSearchboxComponentSearchButton",(eN.ytSearchboxComponentSearchButtonDark=K2,eN)),
"on:click":zG,"aria-label":ORG,title:x.placeholderText},_.M(_.YO,{icon:"SEARCH"})),_.M(_.d,{cond:function(){if(KF$()&&_.u("mweb_voice_search")&&x.voiceSearchButton)return x.voiceSearchButton()},
then:function(HC){var VQ={};return _.M("div",{class:_.gF("ytSearchboxComponentVoiceSearchWrapper",(VQ.ytSearchboxComponentHideVoiceSearchButton=function(){return X()},VQ))},_.M(_.Fj,{data:HC},{buttonRenderer:function(w$){return _.M(_.pD,{data:w$.data,
onButtonClickCallback:function(){}})}}))}}),_.M("div",{el:_.Zt(function(HC){return void(C2=HC)}),
id:II,class:_.gF("ytSearchboxComponentSuggestionsContainer",(F9.ytSearchboxComponentSuggestionsContainerDark=K2,F9["yt-searchbox-suggestions-container"]=!1,F9.ytSearchboxComponentSuggestionsContainerScrollable=F2(),F9.ytSearchboxComponentSuggestionsContainerAnimated=V,F9)),"on:scroll":sw,"on:mousemove":W4,role:"listbox",hidden:!0},_.M(_.R1,{each:H},function(HC,VQ){return _.M(DsW,{suggestion:HC,isHighlighted:function(){return VQ()===T()},
onClickCallback:n2,onHoverUpdateCallback:function(w$){if(_.u("desktop_enable_single_suggestion_highlight")){var Hi=VQ();w$&&(l(0),G(Hi))}},
onRemoveCallback:function(w$){KLs(X9);w$===void 0||w$<0||Rn().includes(w$)||lG([].concat(_.lP(Rn()),[w$]))},
labels:x.labels,queryBuilderFunction:Vo,suggestionIndex:VQ,generateUniqueId:Ge,highlightedId:function(){var w$;return(w$=hx[T()])==null?void 0:w$[U()]},
useScrollMargin:F2(),isKeyboardMode:xX})}),_.M(_.d,{cond:function(){return!xf()&&H().find(function(HC){return HC.type!==35})&&_.u("searchbox_reporting")},
then:function(){return _.M("button",{class:"ytSearchboxComponentReportButton","on:mousedown":oi},_.p6("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.M(_.d,{cond:function(){return!kf()&&F2()},
then:function(){return _.M("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.M("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:OO}))}})))},"aj"),"yt-searchbox",{props:{searchEndpoint:_.pJ,
placeholderText:_.pJ,labels:_.pJ,voiceSearchButton:_.pJ,focusCallback:_.Il,clearButtonAriaLabel:_.pJ,forceDarkMode:_.pJ}});var or=function(){var x=_.e.apply(this,arguments)||this;x.menuButtonTargetId="topbar-guide-menu";x.narrow=!1;x.menuStrings={BACK_ALT_LABEL:_.p6("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.p6("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.p6("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.p6("SBOX_PLACEHOLDER",void 0,"Search")};x.pageDarkTheme=document.documentElement.hasAttribute("dark");x.watchPageScrollTop=0;x.theater=!1;x.fullscreen=!1;x.disableFrostedGlassDuringViewTransition=
!1;x.desktopUnifiedSearchPanelMode=_.u("desktop_enable_unified_search_panel");x.cinematicTheaterMode=_.u("web_cinematic_theater_mode");x.aiCompanionEnabled=_.u("enable_ai_companion");x.ytSearchboxFocused=!1;x.searchboxLabels=_.$6("SBOX_LABELS");x.topbarIsAboveChipbar=!1;x.isDarkThemeForced=!1;x.areGhostCardsHidden=!1;x.guideKeyboardToggle=!1;x.voiceSearchManager=Haq();x.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};x.setYtSearchboxFocused=
function(L){x.ytSearchboxFocused=L};
x.toggleFrostedGlassDuringViewTransition=function(L){x.disableFrostedGlassDuringViewTransition=L};
return x};
_.p(or,_.e);_.K=or.prototype;_.K.computeSimpleText=function(x){return _.SR(x)};
_.K.onDarkChanged=function(){for(var x=_.O(this.buttons||[]),L=x.next();!L.done;L=x.next())L.value.isOverlay=!!this.dark;x=_.O(this.buttonRenderers||[]);for(L=x.next();!L.done;L=x.next())L.value.overrides=this.computeButtonOverride()};
_.K.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.K.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"}}}};
_.K.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var x=_.vy(_.jP(),"aa");_.VA(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||x||(this.isDarkThemeForced=this.dark=!0);this.logoType?(x=this.hostElement.querySelector("#masthead-logo"))&&(_.u("polymer_on_demand_shady_dom")?x.setAttribute("slot","masthead-logo-old"):_.mg(x)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.p$(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.p$(this,this.onSetTheaterModeEnabled));this.registerWithViewTransitionManager()};
_.K.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.p$(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.p$(this,this.onSetTheaterModeEnabled))};
_.K.dataChanged=function(){var x=this.data;x&&(this.voiceEnabled=x.voiceSearchButton?Haq().isSupported():!1,_.Af_(_.tY(),this.menuButtonTargetId,this.guideButton),x.onReceivedActions&&x.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.v$(this.hostElement,x.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&x&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.VA(this.hostElement,"dark",!1),_.VA(this.hostElement,"theater",!1),
(x=this.hostElement.querySelector("#masthead-logo"))&&(_.u("polymer_on_demand_shady_dom")?x.setAttribute("slot","masthead-logo-old"):_.mg(x))))};
_.K.computeCenterHidden=function(){var x;return this.data&&!((x=this.data.searchbox)==null?0:x.fusionSearchboxRenderer)};
_.K.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.VA(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.K.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.K.onWatchScroll=function(x){this.watchPageScrollTop=x.detail||0;this.updateMastheadBackgroundOpacity()};
_.K.onFullscreenChangeAction=function(x){x||(this.watchPageScrollTop=0);this.fullscreen=x;this.updateMastheadBackgroundOpacity()};
_.K.onSetTheaterModeEnabled=function(x){this.theater=x.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.K.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.K.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.K.setBackgroundOpacity=function(x){x=this.calculateBackgroundOpacity(x);this.background.style.opacity=""+x};
_.K.calculateBackgroundOpacity=function(x){var L=this.theater&&this.cinematicTheaterMode?.6:0,D=this.hostElement.clientHeight/2;return Math.min(Math.max(x,0),D)/D*(1-L)+L};
_.K.shouldShowCinematicMastHead=function(){var x=_.u("kevlar_watch_grid")&&!_.u("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(x||this.pageDarkTheme)};
_.K.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.K.focusGuide=function(){this.guideButton.focus()};
_.K.onGuideToggleTap=function(){_.MF(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.K.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.K.onGuideToggleHover=function(){_.MF(this.hostElement,"yt-guide-hover")};
_.K.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.K.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.K.closeOnOutsideClickCondition=function(x){for(x=_.Jq(x);x[0];){var L=x.shift();if(L instanceof Element&&L.id==="kbd")return!1}return!0};
_.K.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.K.pausePlayer=function(){var x;(x=_.Zs())==null||x.pause();this.pauseMiniplayer()};
_.K.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var x;(x=_.yY().resolve(_.iy).getPlayerElement())==null||x.pause()}};
_.K.isMiniplayerActive=function(){return _.yY().resolve(_.iy).isMiniplayerActive()};
_.K.updateNarrowFromBinding=function(x){this.narrow=x.detail.value};
_.K.onYtSendFeedbackAction=function(){_.dg(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.K.registerWithViewTransitionManager=function(){JoY(_.yY().resolve(_.og),this.hostElement,this.toggleFrostedGlassDuringViewTransition)};
_.J3.Object.defineProperties(or.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.u("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 x;return!!(this.aiCompanionEnabled&&((x=this.data)==null?0:x.aiCompanionButton))}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var x;return(x=this.data)==null?void 0:x.voiceSearchButton}}},
narrowQuery:{configurable:!0,enumerable:!0,get:function(){return"max-width: "+(this.aiCompanionEnabled?750:656)+"px"}}});
or.prototype.narrowChanged=or.prototype.narrowChanged;or.prototype.onWatchPageChange=or.prototype.onWatchPageChange;or.prototype.onRendererStamperFinished=or.prototype.onRendererStamperFinished;or.prototype.dataChanged=or.prototype.dataChanged;or.prototype.onDarkChanged=or.prototype.onDarkChanged;_.A([_.b(_.XO),_.r("design:type",Object)],or.prototype,"ironResizableBehavior",void 0);_.A([_.b(_.jZW),_.r("design:type",Object)],or.prototype,"ytdExpandableInputBehavior",void 0);
_.A([_.b(_.Vi.YtdGuideStateAwareBehavior),_.r("design:type",Object)],or.prototype,"ytdGuideStateAwareBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],or.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],or.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],or.prototype,"ytRendererBehavior",void 0);
_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],or.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.EG),_.r("design:type",Object)],or.prototype,"ytdReduxBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],or.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],or.prototype,"narrow",void 0);_.A([_.F(),_.r("design:type",Object)],or.prototype,"logoType",void 0);_.A([_.F(),_.r("design:type",Boolean)],or.prototype,"voiceEnabled",void 0);
_.A([_.F(),_.r("design:type",Object)],or.prototype,"menuStrings",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],or.prototype,"dark",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],or.prototype,"pageDarkTheme",void 0);_.A([_.F(),_.r("design:type",Object)],or.prototype,"watchPageScrollTop",void 0);_.A([_.F({reflectToAttribute:!0,selector:_.hyG}),_.r("design:type",Boolean)],or.prototype,"isWatchPage",void 0);
_.A([_.F({reflectToAttribute:!0,selector:_.HpG}),_.r("design:type",Boolean)],or.prototype,"isShortsPage",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],or.prototype,"theater",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],or.prototype,"fullscreen",void 0);_.A([_.F({reflectToAttribute:!0,selector:_.py3}),_.r("design:type",String)],or.prototype,"frostedGlassMode",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],or.prototype,"disableFrostedGlassDuringViewTransition",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],or.prototype,"aiCompanionEnabled",void 0);_.A([_.F(),_.r("design:type",Object)],or.prototype,"ytSearchboxFocused",void 0);_.A([_.sY("#buttons > *"),_.r("design:type",Array)],or.prototype,"buttons",void 0);_.A([_.sY("ytd-button-renderer"),_.r("design:type",Array)],or.prototype,"buttonRenderers",void 0);
_.A([_.F1("#background"),_.r("design:type",HTMLDivElement)],or.prototype,"background",void 0);_.A([_.F1("#guide-button"),_.r("design:type",Object)],or.prototype,"guideButton",void 0);_.A([_.F1("#logo"),_.r("design:type",Object)],or.prototype,"logo",void 0);_.A([_.F({computed:"computeButtonOverride(dark)"}),_.r("design:type",Object)],or.prototype,"buttonOverrides",void 0);
_.A([_.GV("dark"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],or.prototype,"onDarkChanged",null);_.A([_.F({value:function(){return this.onVoiceTap.bind(this)}}),
_.r("design:type",Function)],or.prototype,"boundOnTapVoiceButton",void 0);_.A([_.F(),_.r("design:type",Object)],or.prototype,"topbarIsAboveChipbar",void 0);_.A([_.F(),_.r("design:type",String),_.r("design:paramtypes",[])],or.prototype,"guideIcon",null);_.A([_.Y("voiceEnabled"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],or.prototype,"shouldShowVoiceSearchButton",null);
_.A([_.Y("data.aiCompanionButton","aiCompanionEnabled"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],or.prototype,"shouldShowAiCompanionButton",null);_.A([_.Y("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],or.prototype,"voiceSearchButton",null);_.A([_.Y("aiCompanionEnabled"),_.r("design:type",String),_.r("design:paramtypes",[])],or.prototype,"narrowQuery",null);
_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],or.prototype,"dataChanged",null);_.A([_.mX("yt-rendererstamper-finished"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],or.prototype,"onRendererStamperFinished",null);_.A([_.GV("isWatchPage"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],or.prototype,"onWatchPageChange",null);
_.A([_.GV("narrow"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],or.prototype,"narrowChanged",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-masthead"})],or);
_.q(or,"ytd-masthead",function(){if(oDg!==void 0)return oDg;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return oDg=x},{mode:_.Vm("kevlar_poly_si_batch_j036")?1:2});var I_u;var Emq={},MJq={},dsW={},PKX={},jo5=(PKX.OFFLINE=(Emq["publicytnetworkstatus-online"]="BACK_ONLINE",Emq),PKX.ONLINE=(MJq["publicytnetworkstatus-offline"]="OFFLINE",MJq),PKX.BACK_ONLINE=(dsW["publicytnetworkstatus-offline"]="OFFLINE",dsW.TIMER_TRIGGER="ONLINE",dsW),PKX),ar=function(){var x=_.e.apply(this,arguments)||this;x.currentState="ONLINE";x.scheduledJobId=0;x.bannerString="";x.bannerVe=null;x.networkStatusManagerInstance=new _.cW;return x};
_.p(ar,_.e);_.K=ar.prototype;_.K.attached=function(){var x=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){x.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){x.stateChangeHandler("publicytnetworkstatus-offline")})};
_.K.detached=function(){var x=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){x.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){x.stateChangeHandler("publicytnetworkstatus-offline")})};
_.K.enterState=function(x){var L=this;this.scheduledJobId&&_.WW.cancelJob(this.scheduledJobId);x==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):x==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.p6("NO_INTERNET_CONNECTION",void 0,"No internet connection")):x==="BACK_ONLINE"&&(this.bannerString=_.p6("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.TG(_.WW,function(){L.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=x};
_.K.stateChangeHandler=function(x){(x=jo5[this.currentState][x])&&this.enterState(x)};
_.K.logVisibility=function(x){var L=_.A3();this.createBannerVe(x);L&&this.bannerVe&&(x?_.t_(L,[this.bannerVe]):_.xN(L,[this.bannerVe]))};
_.K.createBannerVe=function(x){!this.bannerVe&&x&&(this.bannerVe=_.VC(37929),_.W5(_.sk(),this.bannerVe))};
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",String)],ar.prototype,"currentState",void 0);_.A([_.F(),_.r("design:type",Object)],ar.prototype,"scheduledJobId",void 0);_.A([_.F(),_.r("design:type",Object)],ar.prototype,"bannerString",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-network-status-banner"})],ar);
_.q(ar,"ytd-network-status-banner",function(){if(I_u!==void 0)return I_u;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return I_u=
x},{mode:1});var vm5;var zA=function(){var x=_.e.apply(this,arguments)||this;x.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};x.hidden=!0;x.frostedGlass=_.u("web_frosted_glass");return x};
_.p(zA,_.e);zA.prototype.computeHidden=function(x){return x&&x.status?!1:!0};
zA.prototype.handleUpdatePermissionRoleCommand=function(x){if(x=_.g(x,_.kuG))if(x=_.g(x.renderer,_.ghC))this.data=x};
_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],zA.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],zA.prototype,"componentBehavior",void 0);_.A([_.F({value:!0,computed:"computeHidden(data)"}),_.r("design:type",Object)],zA.prototype,"hidden",void 0);_.A([_.F(),_.r("design:type",Object)],zA.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],zA.prototype,"frostedGlass",void 0);
_.A([_.w({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],zA);
_.q(zA,"ytd-permission-role-bottom-bar-renderer",function(){if(vm5!==void 0)return vm5;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return vm5=x},{mode:1});var VJq;var h23;var Ub3={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var X_=function(){return _.e.apply(this,arguments)||this};
_.p(X_,_.e);_.K=X_.prototype;_.K.attached=function(){this.JSC$20849_scroller&&(this.JSC$20849_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20849_scroller.attached&&typeof this.JSC$20849_scroller.attached==="function"&&this.JSC$20849_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.K.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(D){D.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var x=_.jr(this.hostElement);x.querySelector("tp-yt-paper-radio-group").selected="";var L=x.querySelector("#reason-text");L&&(L.value="");x.querySelector("#description-text").value=""}};
_.K.canSubmit=function(x,L){_.MF(this.hostElement,"yt-invalidate-popup-tabbables");return!(x&&L)};
_.K.onCancel=function(){_.dg(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.K.onSubmit=function(){var x=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(J){return J.active}).map(function(J){return J.innerText.trim()}),L=this.hostElement.querySelector("tp-yt-paper-radio-group"),D=L.selectedItem,S=D.name;
D=D.innerText.trim();var Q=L.querySelector("#reason-text");L=void 0;Q&&(L=Q.value);(Q=this.descriptionText.value)&&(Q=Q.trim());wXl(this.data.searchQuery,x,S,D,Q,L);_.dg(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.K.sendFormSubmitToast=function(){var x=_.yy(_.p6("SBOX_INAPPROPRIATE_TOAST"));_.dg(this.hostElement,"yt-open-popup-action",[x,this])};
_.K.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(x){return x.active})};
_.K.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
X_.prototype.onIronSelect=X_.prototype.onIronSelect;X_.prototype.onIronChange=X_.prototype.onIronChange;X_.prototype.dataChanged=X_.prototype.dataChanged;_.A([_.F(),_.r("design:type",Object)],X_.prototype,"data",void 0);_.A([_.F({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.r("design:type",Boolean)],X_.prototype,"submitDisabled",void 0);_.A([_.F(),_.r("design:type",Boolean)],X_.prototype,"suggestionSelected",void 0);
_.A([_.F(),_.r("design:type",Boolean)],X_.prototype,"catagorySelected",void 0);_.A([_.F1("#scroller"),_.r("design:type",Object)],X_.prototype,"JSC$20849_scroller",void 0);_.A([_.F1("#description-text"),_.r("design:type",Object)],X_.prototype,"descriptionText",void 0);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],X_.prototype,"dataChanged",null);
_.A([_.mX("iron-change"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],X_.prototype,"onIronChange",null);_.A([_.mX("iron-select"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],X_.prototype,"onIronSelect",null);_.A([_.w({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],X_);
_.q(X_,"ytd-search-suggestion-report-dialog",function(){if(h23!==void 0)return h23;var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);return h23=x},{mode:1});var c7=function(x){var L=x.openPopupAction;var D=x.target;var S=x.container;var Q=x.popupContainerConfig;var J=x.getElement;x=x.removeWhenClosed===void 0?!1:x.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=L;this.target=D;this.container=S;this.popupContainerConfig=Q;this.getElement=J;this.JSC$20855_popupConfig=this.popupContainerConfig.JSC$19985_popupConfig[this.openPopupAction.popupType];this.rendererName=(L=this.getName())?_.D13(L,cAG(this.popupContainerConfig,
L)):"";_.u("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=x);this.createPopup()};
c7.prototype.updatePopup=function(x){this.openPopupAction=x;this.JSC$20855_popupConfig=this.popupContainerConfig.JSC$19985_popupConfig[this.openPopupAction.popupType];HR$(this);_.u("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
c7.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var kIl=function(x,L,D){(L=L&&x.JSC$20855_popupConfig.narrowProperties?x.JSC$20855_popupConfig.narrowProperties:x.JSC$20855_popupConfig.properties)&&D!==void 0&&(L.isAriaModal=D);uSl(x,L);x.isRtl()&&uSl(x,x.JSC$20855_popupConfig.rtlProperties);gmX(x)};
c7.prototype.createPopup=function(){var x=this.JSC$20855_popupConfig.component;if(this.popupContent=pQW(this,this.rendererName)){if(x){this.popup=pQW(this,x);var L=this.popupContent;_.u("web_enable_wrapper_for_cow_component_in_popup")&&(L=document.createElement("div"),L.appendChild(this.popupContent));_.u("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$20855_popupConfig.slotName&&L.setAttribute("slot",this.JSC$20855_popupConfig.slotName);x=this.popup;var D=this.container.tagName.toLowerCase(),
S=_.OY(L);_.zpG(_.yA(x),_.M$(L,D,S));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.u("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.jr(this.container).appendChild(this.popup)}};
var HR$=function(x){var L,D,S=(L=x.openPopupAction.accessibilityData)==null?void 0:(D=L.accessibilityData)==null?void 0:D.label;S&&(x.popup.ariaLabel=S);var Q;((Q=x.popupContent.polymerController)!=null?Q:x.popupContent).data=(0,_.wk.unsafeClone)(x.openPopupAction.popup[x.getName()]);x.popupContent.duration=mss(x);x.popupContent.positionType=x.openPopupAction.position;var J=x.openPopupAction.properties;J&&Object.keys(J).forEach(function(Z){x.popupContent[Z]=J[Z]})},uSl=function(x,L){if(L)for(var D=
_.O(Object.keys(L)),S=D.next();!S.done;S=D.next())S=S.value,x.popup[S]=L[S]},gmX=function(x){if(x.openPopupAction.position){var L=x.JSC$20855_popupConfig.positionalProperties&&x.JSC$20855_popupConfig.positionalProperties[x.openPopupAction.position],D=x.JSC$20855_popupConfig.rtlPositionalProperties&&x.JSC$20855_popupConfig.rtlPositionalProperties[x.openPopupAction.position];
L=x.isRtl()&&D?D:L;L.shiftedHorizontalOffset&&(D=x.popup.style.display,x.popup.style.display="block",x.popupContent&&x.popup.positionTarget&&x.popupContent.clientWidth>x.popup.positionTarget.clientWidth&&(L.horizontalOffset=x.popup.positionTarget.clientWidth/2-L.shiftedHorizontalOffset),x.popup.style.display=D);uSl(x,L)}},bRu=function(x,L){if(L)for(var D=_.O(Object.keys(L)),S=D.next();!S.done;S=D.next())S=S.value,x.popup.style[S]=L[S]};
c7.prototype.getName=function(){return _.Wd(this.openPopupAction.popup,"renderer")||_.Wd(this.openPopupAction.popup,"dialog")||_.Wd(this.openPopupAction.popup,"model")||void 0};
var mss=function(x){x=x.openPopupAction.durationHintMs;return x===0?x:Math.max(4E3,x||4E3)};
c7.prototype.isRtl=function(){return _.$6("HTML_DIR")==="rtl"};
var pQW=function(x,L){x=x.getElement(L,x.target);x==null&&_.qy(new _.RZ("popup getElement returned null",L));return x};var YEW={};
YEW.YtPopupContainerBehavior=[_.jZ.YtComponentBehavior,_.ir.YtActionHandlerBehavior,{created:function(){this.popupContainerConfig=null;this.popups_={};this.shownPopupKeys_=new Set;this.popupContainerActionMap_={"yt-close-popup-action":"handleClosePopupAction_","yt-close-popup-command":"handleClosePopupCommand_","yt-close-popups-action":"handleClosePopupsAction_","yt-close-all-popups-action":"handleCloseAllPopupsAction_","yt-get-popup-opened-action":"handleGetPopupOpenedAction_","yt-get-opened-popups-action":"handleGetOpenedPopupsAction_","yt-open-popup-action":"handleOpenPopupAction",
"yt-signal-action-close-popup":"handleSignalActionClosePopup_","yt-window-scrolled":"windowResizedOrScrolled_","yt-window-resized":"windowResizedOrScrolled_","yt-refit-popups-action":"refitPopups_"};this.narrowMediaQuery_=void 0;this.repositionEventsBound_=!1;this.setPopupVisibilityJobId_=this.setPopupPositioningJobId_=0;this.dynamicallyPositionedElements_=new Set;this.isAriaModal=!1},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.y0(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.I8(this.hostElement)},
closePopup:function(x){var L=this.createCacheKey(void 0,x);this.popups_[L]&&this.handleClosePopupAction_(void 0,x)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.WW.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.WW.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(x){x.opened&&x.keepBelowPlayer&&this.ensurePopupBelowPlayer(x)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var x in this.popups_){var L=this.popups_[x];if(L.popup.scrollAction==="refit"){var D=L.popup.positionTarget.getBoundingClientRect(),S=L.popup;D=D.top;var Q=L;if(!Q.naturalHeight){Q.popup.hidden=!1;Q.popup.style.position="fixed";Q.popup.style.top="0px";Q.popup.style.left="0px";var J=Q.popup.getBoundingClientRect();Q.naturalHeight=J.bottom-J.top;Q.popup.refit()}S.hidden=!(D>=Q.naturalHeight+60);L.popupContent.clientHeight===0&&L.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(x){this.popupContainerConfig=x},
handleOpenPopupAction:function(x,L){var D=x.openPopupAction,S=_.yY().resolve(_.ZN(_.Du))&&D.popupType==="TOAST";S&&!D.uniqueId&&(D.uniqueId=_.pN());if(!_.u("popup_container_parent_target_killswitch")){var Q;L=(Q=this.getParentTarget(L))!=null?Q:L}var J=this.ensurePopup_(D,L);return new _.HI(function(Z){J.then(function(y){if(!y)return Z();this.maybeCreateNarrowMediaQuery_();var E=this.createCacheKey(y.rendererName,y.openPopupAction.uniqueId);if(D.showOncePerUniqueId){if(this.shownPopupKeys_.has(E))return Z();
this.shownPopupKeys_.add(E)}E=this.popups_[E];var P=!(!E||!E.openPopupAction.beReused);P=!!D.reusePopup||P;if(y.popup.opened&&!P){S&&!y.openPopupAction.replacePopup||this.handleClosePopupAction_(y.rendererName,y.openPopupAction.uniqueId);P=D.popupType==="DIALOG"&&!_.u("popup_container_dialog_reopen_killswitch");if(!S&&!P&&E&&E.target==L&&!y.openPopupAction.replacePopup)return Z();_.So(y.popup,function(){this.completeOpenPopupAction_(D,L,y);Z()}.bind(this))}else y.popup.opened?y.updatePopup(D):this.completeOpenPopupAction_(D,
L,y),Z()}.bind(this))}.bind(this))},
getParentTarget:function(x){if(x&&x instanceof HTMLElement)for(var L=_.O(Object.entries(this.popups_)),D=L.next();!D.done;D=L.next())if(D=_.O(D.value),D.next(),D=D.next().value,this.popupClosesOnClick(D)&&D.popup.contains(x))return D.target},
popupClosesOnClick:function(x){return x.popup.tagName!=="TP-YT-IRON-DROPDOWN"?!1:!["YTD-MULTI-PAGE-MENU-RENDERER"].includes(x.rendererName.toUpperCase())},
completeOpenPopupAction_:function(x,L,D){D.updatePopup(x);x=this.narrowMediaQuery_.queryMatches;var S=this.isAriaModal;D.target=L;var Q;L=((Q=D.target.polymerController)!=null?Q:D.target).popupPositionTarget||D.target;D.JSC$20855_popupConfig.targetContainer&&(L=D.container);D.popup.positionTarget=L;D.popupContent.positionTarget=L;gmX(D);D.JSC$20855_popupConfig.forceFocus&&(D.popupContent.style.outline="none");D.popupContent.tabIndex=-1;D.JSC$20855_popupConfig.narrowProperties&&(D.popup.style.position=
"static");D.JSC$20855_popupConfig.preventAutonav&&D.popup.setAttribute("prevent-autonav",!0);D.JSC$20855_popupConfig.forceCloseOnOutsideClick&&D.popup.setAttribute("force-close-on-outside-click",!0);kIl(D,x,S);bRu(D,D.JSC$20855_popupConfig.styles);D.isRtl()&&bRu(D,D.JSC$20855_popupConfig.rtlStyles);if(!D.openPopupAction.shouldStopParentSignal){var J;Q=(J=D.target.polymerController)!=null?J:D.target;(D.popupContent.startForwardingEvents||D.popupContainerConfig.forwardingEnabledPopups.has(D.rendererName))&&
Q.parentComponent!==D.popupContent&&D.popupContent!==D.target&&D.target!==document.body&&(D.popupContent.startForwardingEvents?D.popupContent.startForwardingEvents(D.popupContainerConfig.forwardedEvents,D.target):(D.JSC$20855_eventForwarder||(D.JSC$20855_eventForwarder=new _.Ey(D.popupContent)),D.JSC$20855_eventForwarder.start(D.popupContainerConfig.forwardedEvents,D.target)))}D=D.popup;D.addEventListener("iron-overlay-opened",_.p$(this,this.onPopupIronOverlayOpened_));D.addEventListener("iron-overlay-closed",
_.p$(this,this.onPopupIronOverlayClosed_));D.addEventListener("iron-overlay-canceled",_.p$(this,this.onPopupIronOverlayCanceled_));D.addEventListener("yt-refit",_.p$(this,this.refitPopup_));D.addEventListener("yt-invalidate-popup-tabbables",_.p$(this,this.handleInvalidatePopupTabbables_));D.open()},
getPopupDurationMs_:function(x){return x.durationHintMs===0?x.durationHintMs:Math.max(4E3,x.durationHintMs||4E3)},
handleClosePopupAction_:function(x,L){var D=_.u("web_popup_cache_key_killswitch")||!!L;if(x||D){var S=this.createCacheKey(x,L);x=(x=this.popups_[S])&&x.popup}else x=_.CyC(_.yj);if(x&&x.close){if(L=_.yY().resolve(_.ZN(_.CJ)))x.restoreFocusOnClose=L.isKeyBoardInUse();x.close();this.removePopup_(x,S)}},
handleClosePopupCommand_:function(x){x.closePopupCommand&&x.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,x.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(x){var L={},D;for(D in this.popups_)if(L={key$jscomp$1210:L.key$jscomp$1210},L.key$jscomp$1210=D,!x||!x.some(function(J){return function(Z){return Z==J.key$jscomp$1210}}(L))){var S=this.popups_[L.key$jscomp$1210],Q=S.popup;
_.yY().resolve(_.ZN(_.Du))&&S.openPopupAction.popupType==="TOAST"||(Q&&Q.close&&Q.close(),this.removePopup_(Q,L.key$jscomp$1210))}},
handleClosePopupsAction_:function(x){x.forEach(function(L){var D=this.popups_[L];D&&((D=D.popup)&&D.close&&D.close(),this.removePopup_(D,L))}.bind(this))},
handleGetPopupOpenedAction_:function(x,L){return(L=this.createCacheKey(x,L))&&this.popups_[L]?this.popups_[x].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var x=[],L;for(L in this.popups_){var D=this.popups_[L];D.popup.opened&&x.push(D)}return x},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(x,L){_.u("ytpopup_disable_default_html_caching")&&x&&x.removeWhenClosed&&(_.jr(this.hostElement).removeChild(x),L&&this.popups_[L]&&delete this.popups_[L])},
shouldReusePopup_:function(x){return!(!x||!x.reusePopup)||!(!x||!x.beReused)},
ensurePopup_:function(x,L){this.maybeCreateNarrowMediaQuery_();var D=_.Wd(x.popup,"renderer")||_.Wd(x.popup,"dialog")||_.Wd(x.popup,"model");if(!D)return _.V0();D=_.D13(D,cAG(this.popupContainerConfig,D));return _.V0(this.getAndMaybeCreatePopup_(x,D,L))},
getAndMaybeCreatePopup_:function(x,L,D){var S=this.createCacheKey(L,x.uniqueId);if(this.popups_[S])return this.popups_[S];x=new c7({openPopupAction:x,target:D,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(L)});return this.popups_[S]=x},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(x){return _.u("ytpopup_disable_default_html_caching")?x&&x.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",_.p$(this,this.openPopupQueryMatchesChanged_)),_.jr(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(x){x=x.detail.value;for(var L in this.popups_)kIl(this.popups_[L],x)},
onPopupIronOverlayClosed_:function(x){var L=x.currentTarget,D=_.jYp(L);D=D.length>0?D[0]:L;if(D.is!=="ytd-reel-watch-while-dialog-renderer"||x.target.is!=="tp-yt-iron-dropdown"){x.detail.popup=L;x.detail.popupRenderer=D;var S,Q={context:{openingElement:((S=this.popups_[(D==null?void 0:D.is)||""])==null?void 0:S.target)||void 0}};Object.assign(Q,x.detail);var J;_.MF((J=D.hostElement)!=null?J:D,"yt-popup-closed",Q);L.removeEventListener("yt-refit",_.p$(this,this.refitPopup_));L.removeEventListener("yt-invalidate-popup-tabbables",
_.p$(this,this.handleInvalidatePopupTabbables_));L.removeEventListener("iron-overlay-canceled",_.p$(this,this.onPopupIronOverlayCanceled_));L.removeEventListener("iron-overlay-closed",_.p$(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(L)}},
onPopupIronOverlayCanceled_:function(x,L){var D=x.currentTarget,S=_.jYp(D);S=S.length>0?S[0]:D;if(S.is!=="ytd-reel-watch-while-dialog-renderer"||x.target.is!=="tp-yt-iron-dropdown"){var Q;_.MF((Q=S.hostElement)!=null?Q:S,"yt-popup-canceled",x.detail);Q=L?_.Jq(L):null;(!L||["click","tap"].includes(L.type))&&!D.hasAttribute("force-close-on-outside-click")&&D.positionTarget&&Q&&Q.includes(D.positionTarget)&&x.preventDefault();D.restoreFocusOnClose=_.A4.keyboardEventMatchesKeys(L,"esc")}},
onPopupIronOverlayOpened_:function(x){x=x.currentTarget;var L=_.jYp(x);L=L.length>0?L[0]:x;var D,S;_.MF((D=L.hostElement)!=null?D:L,"yt-popup-opened",(S=L.hostElement)!=null?S:L);x.keepBelowPlayer&&(this.ensurePopupBelowPlayer(x,!0),this.dynamicallyPositionedElements_.add(x));D=_.yY().resolve(_.ZN(_.CJ));S=!!L.querySelector("#toast");D&&D.isKeyBoardInUse()&&!S&&(typeof L.focusFirstItem==="function"?L.focusFirstItem():(L=_.erh(x),L.length&&L[0].focus()));x.removeEventListener("iron-overlay-opened",
_.p$(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(x){x=x.currentTarget;x.refit&&x.refit()},
refitPopups_:function(){for(var x in this.popups_)this.popups_[x].refit()},
handleInvalidatePopupTabbables_:function(x){x=x.currentTarget;x.invalidateTabbables&&x.invalidateTabbables()},
createCacheKey:function(x,L){return _.u("web_popup_cache_key_killswitch")?L?x+"#"+L:x:L?"#"+L:x},
openSheet:function(x,L){var D=x==null?void 0:x.openPopupActionCommand;!D&&(x==null?0:x.viewModel)&&(D={openPopupAction:{popup:{sheetViewModel:x.viewModel},popupType:"CONTEXTUAL_SHEET"}});D&&this.handleOpenPopupAction(D,L)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var x=this;return _.I(function(L){return L.return(x.handleGetOpenedPopupsAction_().filter(function(D){var S;return((S=D.openPopupAction)==null?void 0:S.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(x,L,D){if(_.u("web_dialog_utils_killswitch")){var S=x==null?void 0:x.openPopupActionCommand,Q=(D==null?0:D.ariaLabel)?{accessibilityData:{accessibilityData:{label:D.ariaLabel}}}:void 0;!S&&(x==null?0:x.viewModel)&&(S={openPopupAction:Object.assign({},{popup:{dialogViewModel:x.viewModel},popupType:(D==null?0:D.isModal)?"MODAL":"DIALOG"},Q&&Q)});S&&this.handleOpenPopupAction(S,L)}else{if(Q=x==null?void 0:x.viewModel){var J=D=D===void 0?{}:D;D=J.ariaLabel;Q={popup:{dialogViewModel:Q},
popupType:J.isModal?"MODAL":"DIALOG"};J={accessibilityData:{label:D}};D&&(Q.accessibilityData=J);Q={openPopupAction:Q}}else Q=void 0;if(Q=(S=Q)!=null?S:x==null?void 0:x.openPopupActionCommand)this.isAriaModal=_.u("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(Q,L)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var x=this;return _.I(function(L){return L.return(x.handleGetOpenedPopupsAction_().filter(function(D){var S;return((S=D.openPopupAction)==null?void 0:S.popupType)==="DIALOG"}).length>0)})}}];var FLG;var sog;var Txl=_.xI(["about:blank"]),n_=function(){var x=_.e.apply(this,arguments)||this;x.isMuted=!1;x.pageLoadTimeoutId=void 0;return x};
_.p(n_,_.e);_.K=n_.prototype;_.K.dataChanged=function(){var x=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var L=this.data.url,D=_.qg(L);_.u("enable_yt_ata_iframe_authuser")?(D=_.qg(L),_.ci(this.iframe,B4G(D))):_.ci(this.iframe,D);this.pageLoadTimeoutId=_.TG(_.RP(),function(){return void x.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.dT({destination:window,iframe:this.iframe,origin:_.HUr(D.toString()),channelName:"ataiframe",onMessage:_.Ywh(uzq,function(S){gs3(S.data)?(S=_.zg(S.data,1,_.DY,_.Zb()),S.length!==1?_.qy(Error("Gl")):(S=S[0],S===3?(x.isMuted=!0,x.logStateChanged({adMuteRequested:!0})):S===1&&x.close())):_.qy(Error("Hl"))}),
onEstablished:function(){x.cancelPageLoadTimeout();x.logStateChanged({pageLoadSucceeded:!0})}})}};
_.K.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.RP().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.K.logStateChanged=function(x){var L;if((L=this.data)==null?0:L.trackingParams)x={adsClientData:{aboutThisAdData:x}},_.sk().stateChanged(this.data.trackingParams,x)};
_.K.close=function(){_.dg(this.hostElement,"yt-close-popup-action",[this.is])};
_.K.handlesPopupClosed=function(x,L){var D=this,S,Q;return _.I(function(J){if(J.nextAddress==1)return _.$6("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.dg(D.hostElement,"on-about-this-ad-popup-closed",[D.isMuted,L]),J.jumpTo(0)):x&&WF3(x)?J.yield(qvI(x),4):(D.isMuted&&_.dg(D.hostElement,"yt-mute-ad-action",[D.is,D]),J.jumpTo(0));if(S=J.yieldResult){var Z=Q=new _.DO(S),y=D.isMuted;Z.getOptions().includes("onAboutThisAdPopupClosed")?_.Ho_(Z,"onAboutThisAdPopupClosed",{isMuted:y,layoutId:L}):_.Xj("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.Y2(J)})};
_.K.onPopupClosed=function(x){var L=this,D,S;return _.I(function(Q){D=_.Pn(Txl);_.ci(L.iframe,D);L.cancelPageLoadTimeout();if(!L.data)return Q.jumpTo(0);L.ytRendererBehavior.markDirty();S=x.detail.context.openingElement;return Q.yield(L.handlesPopupClosed(S,L.data.layoutId),0)})};
_.K.detached=function(){this.cancelPageLoadTimeout()};
_.K.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
n_.prototype.onPopupClosed=n_.prototype.onPopupClosed;n_.prototype.dataChanged=n_.prototype.dataChanged;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],n_.prototype,"ytRendererBehavior",void 0);_.A([_.F1("#iframe"),_.r("design:type",HTMLIFrameElement)],n_.prototype,"iframe",void 0);_.A([_.F(),_.r("design:type",Object)],n_.prototype,"data",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],n_.prototype,"dataChanged",null);
_.A([_.mX("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype",Promise)],n_.prototype,"onPopupClosed",null);_.A([_.oW({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],n_);
_.q(n_,"yt-about-this-ad-renderer",function(){if(sog===void 0){var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;FLG===void 0&&(FLG=document.createElement("template"));var S=FLG;D.call(L,S.content.cloneNode(!0),x.content.firstChild);sog=x}x=sog;return x},{mode:2});var e2q;var R2u;var tp=function(x){var L=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=L.message;"stack"in L&&(this.stack=L.stack);this.maxFileSizeMB=x;Object.setPrototypeOf(this,tp.prototype)};
_.p(tp,Error);var GII=function(x,L){var D=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=D.message;"stack"in D&&(this.stack=D.stack);this.minWidth=x;this.minHeight=L;Object.setPrototypeOf(this,GII.prototype)};
_.p(GII,Error);var CKG=function(x){this.requirements=x;this.JSC$20882_maxFileSize=x.maxFileSizeMB*1024*1024},l_s=function(x,L){if(L.size>x.JSC$20882_maxFileSize)throw new tp(x.requirements.maxFileSizeMB);
};var Us3=function(x,L){this.canvas=x;this.imageEditorBuilder=L};
Us3.prototype.addEventListeners=function(x){var L=function(Q){wQ$(x,Q)};
this.JSC$20888_mouseDownEvent=L;var D=function(Q){BxG(x,Q)};
this.JSC$20888_mouseMoveEvent=D;var S=function(){WL$(x)};
this.JSC$20888_mouseUpEvent=S;this.canvas.addEventListener("mousedown",L);this.canvas.addEventListener("mousemove",D);document.addEventListener("mouseup",S)};
Us3.prototype.removeEventListeners=function(){this.JSC$20888_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$20888_mouseDownEvent);this.JSC$20888_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$20888_mouseMoveEvent);this.JSC$20888_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$20888_mouseUpEvent)};
var qEq=function(x,L){x.removeEventListeners();return new Promise(function(D){var S=new Image;S.crossOrigin="anonymous";S.onload=function(){var Q=x.imageEditorBuilder(x.canvas,S);x.addEventListeners(Q);D(Q)};
S.src=L})},xG=function(x,L,D,S,Q,J,Z,y){this.canvas=x;
this.image=L;this.requiredRatio=D;this.minImageCropDimension=S;this.minOutputImageResolution=Q;this.component=J;this.styleFocusedCorner=y===void 0?!0:y;this.action=2;this.focusedCorner=this.resizeCorner=0;x=this.canvas.getContext("2d");if(!x)throw Error("Il");this.ctx=x;this.canvasMargin=Z!=null?Z:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;Z=this.image;x=this.canvasInnerWidth/Z.width;Z.height*x>912&&(x=Z.width/Z.height*912/Z.width);Z=x;this.scaledImageWidth=this.canvas.width%2?
$bs(this.image.width*Z):ALI(this.image.width*Z);this.scaledImageHeight=Math.round(this.image.height*Z);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$20891_overlayMarginBottom=this.JSC$20891_overlayMarginTop=this.canvasMargin;this.JSC$20891_overlayMarginRight=this.JSC$20891_overlayMarginLeft=this.horizontalMargin;this.JSC$20891_overlayWidth=this.scaledImageWidth;this.JSC$20891_overlayHeight=this.scaledImageHeight;
x=this.image.width/this.image.height;x>this.requiredRatio?(this.JSC$20891_overlayWidth=this.canvas.width%2?$bs(this.scaledImageHeight*this.requiredRatio):ALI(this.scaledImageHeight*this.requiredRatio),this.JSC$20891_overlayMarginRight=this.JSC$20891_overlayMarginLeft=(this.canvas.width-this.JSC$20891_overlayWidth)/2):x<this.requiredRatio&&(this.JSC$20891_overlayHeight=this.canvas.height%2?$bs(this.scaledImageWidth/this.requiredRatio):ALI(this.scaledImageWidth/this.requiredRatio),this.JSC$20891_overlayMarginBottom=
this.JSC$20891_overlayMarginTop=(this.canvas.height-this.JSC$20891_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*Z,this.scaledImageWidth);AhW(this)};
xG.prototype.getContext=function(){return this.ctx};
var wQ$=function(x,L){L={x:Math.round(L.pageX-x.canvas.getBoundingClientRect().left),y:Math.round(L.pageY-x.canvas.getBoundingClientRect().top)};x.dragStart=L;$sI(x,L)!==0?(x.action=1,rhl(x,L),x.resizeCorner=$sI(x,L)):L.x>x.JSC$20891_overlayMarginLeft&&L.x<x.JSC$20891_overlayMarginLeft+x.JSC$20891_overlayWidth&&L.y>x.JSC$20891_overlayMarginTop&&L.y<x.JSC$20891_overlayMarginTop+x.JSC$20891_overlayHeight&&(x.action=0)},Nxq=function(x,L){switch(L){case 1:return{x:x.JSC$20891_overlayMarginLeft,
y:x.JSC$20891_overlayMarginTop};case 2:return{x:x.JSC$20891_overlayMarginLeft,y:x.JSC$20891_overlayMarginTop+x.JSC$20891_overlayHeight};case 3:return{x:x.JSC$20891_overlayMarginLeft+x.JSC$20891_overlayWidth,y:x.JSC$20891_overlayMarginTop};case 4:return{x:x.JSC$20891_overlayMarginLeft+x.JSC$20891_overlayWidth,y:x.JSC$20891_overlayMarginTop+x.JSC$20891_overlayHeight};default:throw Error("Jl");}},f_q=function(x,L){if(x.focusedCorner!==0){x.dragStart=Nxq(x,x.focusedCorner);
x.action=1;x.resizeCorner=x.focusedCorner;var D=x.dragStart.x,S=x.dragStart.y;switch(L){case 0:x.focusedCorner===1||x.focusedCorner===4?(D-=10,S-=10):(D-=10,S+=10);break;case 1:x.focusedCorner===1||x.focusedCorner===4?(D+=10,S+=10):(D+=10,S-=10);break;case 2:D=x.focusedCorner===1||x.focusedCorner===4?D-10:D+10;S-=10;break;case 3:D=x.focusedCorner===1||x.focusedCorner===4?D+10:D-10;S+=10;break;default:throw Error("Kl");}iRs(x,{x:D,y:S});AhW(x);x.action=2;x.dragStart=void 0}},BxG=function(x,L){L={x:Math.round(L.pageX-
x.canvas.getBoundingClientRect().left),
y:Math.round(L.pageY-x.canvas.getBoundingClientRect().top)};rhl(x,L);switch(x.action){case 1:iRs(x,L);break;case 0:x.dragStart&&(x.JSC$20891_overlayMarginLeft=Math.max(x.horizontalMargin,Math.min(x.JSC$20891_overlayMarginLeft-(x.dragStart.x-L.x),x.horizontalMargin+x.scaledImageWidth-x.JSC$20891_overlayWidth)),x.JSC$20891_overlayMarginRight=x.canvas.width-x.JSC$20891_overlayMarginLeft-x.JSC$20891_overlayWidth,x.JSC$20891_overlayMarginTop=Math.max(x.canvasMargin,Math.min(x.JSC$20891_overlayMarginTop-
(x.dragStart.y-L.y),x.scaledImageHeight-x.JSC$20891_overlayHeight+x.canvasMargin)),x.JSC$20891_overlayMarginBottom=x.canvas.height-(x.JSC$20891_overlayMarginTop+x.JSC$20891_overlayHeight));break;default:return}AhW(x);x.dragStart=L},WL$=function(x){x.action=2;
x.dragStart=void 0;document.body.style.cursor="auto"},rhl=function(x,L){switch($sI(x,L)){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:x.action!==1&&(document.body.style.cursor="auto")}},$sI=function(x,L){var D=x.JSC$20891_overlayMarginLeft-5,S=x.JSC$20891_overlayMarginTop-5,Q=x.JSC$20891_overlayMarginLeft+x.JSC$20891_overlayWidth-5;
x=x.JSC$20891_overlayMarginTop+x.JSC$20891_overlayHeight-5;return oml(L,{x:D,y:S})?1:oml(L,{x:Q,y:S})?3:oml(L,{x:D,y:x})?2:oml(L,{x:Q,y:x})?4:0},oml=function(x,L){return x.x>=L.x&&x.x<=L.x+10&&x.y>=L.y&&x.y<=L.y+10},iRs=function(x,L){if(x.dragStart)switch(x.resizeCorner){case 2:Math.abs((x.JSC$20891_overlayMarginLeft+x.JSC$20891_overlayWidth-L.x)/(L.y-x.JSC$20891_overlayMarginTop))>=x.requiredRatio?a_W(x,L.x):z2l(x,L.y);
break;case 1:Math.abs((x.JSC$20891_overlayMarginLeft+x.JSC$20891_overlayWidth-L.x)/(x.JSC$20891_overlayMarginTop+x.JSC$20891_overlayHeight-L.y))>=x.requiredRatio?XQq(x,L.x):z2l(x,L.y);break;case 4:Math.abs((L.x-x.JSC$20891_overlayMarginLeft)/(L.y-x.JSC$20891_overlayMarginTop))>=x.requiredRatio?a_W(x,L.x):ch5(x,L.y);break;case 3:Math.abs((L.x-x.JSC$20891_overlayMarginLeft)/(x.JSC$20891_overlayMarginTop+x.JSC$20891_overlayHeight-L.y))>=x.requiredRatio?XQq(x,L.x):ch5(x,L.y);break;default:throw Error("Ll");
}},a_W=function(x,L){var D=x.JSC$20891_overlayMarginTop;
x.JSC$20891_overlayMarginBottom=nm9(x,L);x.JSC$20891_overlayHeight=x.canvas.height-x.JSC$20891_overlayMarginBottom-D;x.JSC$20891_overlayWidth=Math.round(x.JSC$20891_overlayHeight*x.requiredRatio);tJ3(x)},XQq=function(x,L){var D=x.JSC$20891_overlayMarginTop+x.JSC$20891_overlayHeight;
x.JSC$20891_overlayMarginTop=nm9(x,L);x.JSC$20891_overlayHeight=D-x.JSC$20891_overlayMarginTop;x.JSC$20891_overlayWidth=Math.round(x.JSC$20891_overlayHeight*x.requiredRatio);tJ3(x)},tJ3=function(x){switch(x.resizeCorner){case 2:case 1:x.JSC$20891_overlayMarginLeft=x.canvas.width-x.JSC$20891_overlayMarginRight-x.JSC$20891_overlayWidth;
break;case 4:case 3:x.JSC$20891_overlayMarginRight=x.canvas.width-x.JSC$20891_overlayMarginLeft-x.JSC$20891_overlayWidth;break;default:throw Error("Ll");}},z2l=function(x,L){var D=x.JSC$20891_overlayMarginLeft+x.JSC$20891_overlayWidth;
x.JSC$20891_overlayMarginLeft=xHl(x,L);x.JSC$20891_overlayWidth=D-x.JSC$20891_overlayMarginLeft;x.JSC$20891_overlayHeight=Math.round(x.JSC$20891_overlayWidth/x.requiredRatio);LTg(x)},ch5=function(x,L){var D=x.JSC$20891_overlayMarginLeft;
x.JSC$20891_overlayMarginRight=xHl(x,L);x.JSC$20891_overlayWidth=x.canvas.width-x.JSC$20891_overlayMarginRight-D;x.JSC$20891_overlayHeight=Math.round(x.JSC$20891_overlayWidth/x.requiredRatio);LTg(x)},LTg=function(x){switch(x.resizeCorner){case 2:case 4:x.JSC$20891_overlayMarginBottom=x.canvas.height-x.JSC$20891_overlayMarginTop-x.JSC$20891_overlayHeight;
break;case 1:case 3:x.JSC$20891_overlayMarginTop=x.canvas.height-x.JSC$20891_overlayMarginBottom-x.JSC$20891_overlayHeight;break;default:throw Error("Ll");}},nm9=function(x,L){switch(x.resizeCorner){case 2:L=x.canvas.height-(x.JSC$20891_overlayMarginTop+DHl(x,L));
break;case 4:L=x.canvas.height-(x.JSC$20891_overlayMarginTop+SAY(x,L));break;case 1:L=x.JSC$20891_overlayMarginTop+x.JSC$20891_overlayHeight-DHl(x,L);break;case 3:L=x.JSC$20891_overlayMarginTop+x.JSC$20891_overlayHeight-SAY(x,L);break;default:throw Error("Ll");}return Math.max(L,x.canvasMargin)},DHl=function(x,L){L=x.JSC$20891_overlayMarginLeft+x.JSC$20891_overlayWidth-Math.max(L,x.horizontalMargin);
L=L<0?x.JSC$20891_overlayWidth:Math.max(L,x.minOverlayWidth);return Math.round(L/x.requiredRatio)},SAY=function(x,L){L=x.canvas.width-Math.max(x.canvas.width-L,x.horizontalMargin)-x.JSC$20891_overlayMarginLeft;
L=L<0?x.JSC$20891_overlayWidth:Math.max(L,x.minOverlayWidth);return Math.round(L/x.requiredRatio)},xHl=function(x,L){switch(x.resizeCorner){case 2:L=x.canvas.width-x.JSC$20891_overlayMarginRight-QL5(x,L);
break;case 4:L=x.canvas.width-x.JSC$20891_overlayMarginLeft-QL5(x,L);break;case 1:L=x.canvas.width-x.JSC$20891_overlayMarginRight-JFs(x,L);break;case 3:L=x.canvas.width-x.JSC$20891_overlayMarginLeft-JFs(x,L);break;default:throw Error("Ll");}return Math.max(L,x.horizontalMargin)},QL5=function(x,L){L=x.canvas.height-Math.max(x.canvas.height-L,x.canvasMargin)-x.JSC$20891_overlayMarginTop;
return L<0?x.JSC$20891_overlayWidth:Math.max(Math.round(L*x.requiredRatio),x.minOverlayWidth)},JFs=function(x,L){L=x.JSC$20891_overlayMarginTop+x.JSC$20891_overlayHeight-Math.max(L,x.canvasMargin);
return L<0?x.JSC$20891_overlayWidth:Math.max(Math.round(L*x.requiredRatio),x.minOverlayWidth)},AhW=function(x){x.ctx.clearRect(0,0,x.canvas.width,x.canvas.height);
x.ctx.drawImage(x.image,0,0,x.image.width,x.image.height,x.horizontalMargin,x.canvasMargin,x.canvas.width-2*x.horizontalMargin,x.scaledImageHeight);x.ctx.fillStyle="rgba(0, 0, 0, 0.7)";x.ctx.fillRect(x.horizontalMargin,x.JSC$20891_overlayMarginTop,x.JSC$20891_overlayMarginLeft-x.horizontalMargin,x.JSC$20891_overlayHeight);x.ctx.fillRect(x.JSC$20891_overlayMarginLeft+x.JSC$20891_overlayWidth,x.JSC$20891_overlayMarginTop,x.JSC$20891_overlayMarginRight-x.horizontalMargin,x.JSC$20891_overlayHeight);x.ctx.fillRect(x.horizontalMargin,
x.canvasMargin,x.scaledImageWidth,x.JSC$20891_overlayMarginTop-x.canvasMargin);x.ctx.fillRect(x.horizontalMargin,x.JSC$20891_overlayMarginTop+x.JSC$20891_overlayHeight,x.scaledImageWidth,x.JSC$20891_overlayMarginBottom-x.canvasMargin);x.drawOverlay();x.component&&_.MF(x.component,"image-updated")};
xG.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$20891_overlayMarginLeft,this.JSC$20891_overlayMarginTop,this.JSC$20891_overlayWidth,this.JSC$20891_overlayHeight);KTq(this)};
var KTq=function(x){var L=x.JSC$20891_overlayMarginLeft-5,D=x.JSC$20891_overlayMarginTop-5,S=x.JSC$20891_overlayMarginLeft+x.JSC$20891_overlayWidth-5,Q=x.JSC$20891_overlayMarginTop+x.JSC$20891_overlayHeight-5;x.ctx.fillStyle="#FFF";x.ctx.fillRect(L,D,10,10);x.ctx.strokeRect(L,D,10,10);x.ctx.fillRect(S,D,10,10);x.ctx.strokeRect(S,D,10,10);x.ctx.fillRect(L,Q,10,10);x.ctx.strokeRect(L,Q,10,10);x.ctx.fillRect(S,Q,10,10);x.ctx.strokeRect(S,Q,10,10);if(x.focusedCorner!==0&&x.styleFocusedCorner){x.ctx.lineWidth=
4;x.ctx.strokeStyle="#3EA6FF";switch(x.focusedCorner){case 1:--L;--D;break;case 2:--L;D=Q-1;break;case 3:L=S-1;--D;break;case 4:L=S-1;D=Q-1;break;default:return}x.ctx.strokeRect(L,D,12,12)}};
xG.prototype.crop=function(x,L){L=L===void 0?!0:L;var D=this.image.width/this.scaledImageWidth,S=document.createElement("canvas"),Q=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],J=this.JSC$20891_overlayWidth*D,Z=this.JSC$20891_overlayHeight*D;S.width=Math.max(J,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);S.height=Math.max(Z,Q);x&&(S.width=Math.min(S.width,S.height),S.height=Math.min(S.width,S.height));
x=S.getContext("2d");if(!x)throw Error("zl");Q=(this.JSC$20891_overlayMarginLeft-this.horizontalMargin)*D;D*=this.JSC$20891_overlayMarginTop-this.canvasMargin;L||(x.fillStyle="white",x.fillRect(0,0,S.width,S.height));x.drawImage(this.image,Q,D,J,Z,0,0,S.width,S.height);return S};var OgX=function(x,L,D,S,Q){xG.call(this,x,L,D,S,void 0,Q,8,!1)};
_.p(OgX,xG);OgX.prototype.drawOverlay=function(){var x=this.getContext(),L=this.JSC$20891_overlayWidth,D=this.JSC$20891_overlayHeight,S=this.JSC$20891_overlayMarginTop,Q=this.JSC$20891_overlayMarginLeft;x.lineWidth=2;x.strokeStyle="#3EA6FF";x.beginPath();x.arc(Q+L/2,S+D/2,L/2,0,2*Math.PI);x.stroke();x.strokeRect(Q,S,L,D);KTq(this)};
var Zgl={maxFileSizeMB:15,minWidth:98,minHeight:98},yFs=["image/png","image/jpeg","image/gif"],Lx=function(){var x=_.e.apply(this,arguments)||this;x.fileSelectorFocusListener=null;x.errorMessage=null;x.isLoading=!0;x.hideContainer=!0;x.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return x};
_.p(Lx,_.e);_.K=Lx.prototype;_.K.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.K.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.K.computePlaylistThumbnail=function(x){return x==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.K.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.dg(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.K.setErrorState=function(x){this.resetErrorState();x&&(this.errorMessage=x)};
_.K.showPopup=function(){var x=this;this.hideContainer=!1;_.TG(_.WW,function(){_.MF(x.hostElement,"yt-refit")});
this.isLoading=!1};
_.K.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.K.closePopup=function(){this.resetFileSelector();_.dg(this.hostElement,"yt-close-popup-action",[this.is])};
_.K.onCancelTap=function(){this.isPlaylistThumbnail||_.dg(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.K.openFileSelector=function(){var x=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.TG(_.WW,function(){setTimeout(function(){if(!x.fileSelector.files||x.fileSelector.files.length===0)x.onCancelTap();x.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(L){L instanceof Error?_.BI(L):_.WI(new _.RZ(JSON.stringify(L)))}};
_.K.handleFileSelection=function(){var x=this,L,D,S,Q,J,Z;return _.I(function(y){switch(y.nextAddress){case 1:_.HH(y,2);if(!x.fileSelector.files||!x.imageEditorCanvas)return x.onCancelTap(),y.return();L=x.fileSelector.files[0];l_s(x.imageChecker,L);_.HH(y,4);return y.yield(Is$(L),6);case 6:x.mimeType=y.yieldResult;_.nH(y,5,2);break;case 4:_.mW(y,2),_.dg(x.hostElement,"yt-image-selection-error-action",[(D=x.data)==null?void 0:D.genericImageLoadErrorMessage]),x.onCancelTap();case 5:S=new FileReader;
S.addEventListener("load",function(){var E,P;return _.I(function(v){if(v.nextAddress==1){if(!S.result)return _.qy(Error("Bl")),v.return();E=S.result;P=new Image;P.src=E;P.onload=function(){try{var V=x.imageChecker;if(P.width<V.requirements.minWidth||P.height<V.requirements.minHeight)throw new GII(V.requirements.minWidth,V.requirements.minHeight);}catch(H){if(H instanceof GII){var h;_.dg(x.hostElement,"yt-image-selection-error-action",[(h=x.data)==null?void 0:h.imageDimensionErrorMessage]);x.logImageDimensionErrorVe()}else H instanceof
Error?_.BI(H):(V=new _.RZ(JSON.stringify(H)),_.BI(V));x.onCancelTap()}x.showPopup()};
P.onerror=function(){var V;_.dg(x.hostElement,"yt-image-selection-error-action",[(V=x.data)==null?void 0:V.genericImageLoadErrorMessage]);x.onCancelTap()};
return v.yield(qEq(x.imageEditorCanvas,E),2)}x.imageEditor=v.yieldResult;x.updatePositionOfAllCorners();x.addEventListeners(x.imageEditor);_.Y2(v)})},!1);
S.readAsDataURL(L);_.nH(y,0);break;case 2:Q=_.mW(y),Q instanceof tp?_.dg(x.hostElement,"yt-image-selection-error-action",[(J=x.data)==null?void 0:J.imageSizeErrorMessage]):(Q instanceof Error?_.BI(Q):_.WI(new _.RZ(JSON.stringify(Q))),_.dg(x.hostElement,"yt-image-selection-error-action",[(Z=x.data)==null?void 0:Z.genericImageLoadErrorMessage])),x.onCancelTap(),_.Y2(y)}})};
_.K.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var x=_.Ff(_.sk(),{veType:232707,visualElement:_.VC(232707)});x&&(x={visualElement:x},_.Yi().reportShown(x))}};
_.K.handleImageSelectionErrorAction=function(x){this.isPlaylistThumbnail&&_.LQf(this.hostElement,x)};
_.K.convertToImageFormatBundle=function(x){var L=this,D,S,Q;return _.I(function(J){switch(J.nextAddress){case 1:return D=x.toDataURL(L.outputMimeType,1),J.yield(Ee5(D),2);case 2:S=J.yieldResult;_.HH(J,3);l_s(L.imageChecker,S);_.nH(J,4);break;case 3:Q=_.mW(J);if(!(Q instanceof tp))throw Q;_.qy(new _.RZ("Output size is bigger than input size for image",L.mimeType,L.outputMimeType,S.size));D=x.toDataURL("image/jpeg",.95);return J.yield(Ee5(D),6);case 6:S=J.yieldResult;case 4:return J.return({dataUrl:D,
imageFile:S})}})};
_.K.handleUploadImageToScottyCommand=function(x){var L=this,D,S,Q,J,Z,y,E,P,v,V;return _.I(function(h){switch(h.nextAddress){case 1:if(!L.imageEditor||!_.g(x,wGY))return h.return();D=_.g(x,wGY).scottyUploadUrl;if(!D){var H=new _.RZ("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.BI(H);return h.return()}_.HH(h,2);L.setLoadingState();S=L.imageEditor.crop(!1,!1);return h.yield(L.convertToImageFormatBundle(S),4);case 4:return Q=h.yieldResult,h.yield(ZX9(Q.imageFile,D),5);
case 5:J=h.yieldResult;((Z=L.data)==null?0:Z.onUploadEndpoint)?(y=L.buildUploadServiceEndpoint(J),L.ytComponentBehavior.resolveCommand(y),E=_.g(y,_.Kv),((P=E)==null?0:P.params)?L.closePopup():L.resetFileSelector()):(_.dg(L.hostElement,"yt-image-updated-action",[Q.dataUrl,J]),L.closePopup());_.nH(h,0);break;case 2:v=_.mW(h),L.setErrorState((V=L.data)==null?void 0:V.uploadErrorMessage),v instanceof Error?_.BI(v):(H=new _.RZ(JSON.stringify(v)),_.BI(H)),_.Y2(h)}})};
_.K.buildUploadServiceEndpoint=function(x){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",x),this.data.onUploadEndpoint):null};
_.K.dataChanged=function(){var x=this,L;return _.I(function(D){if(D.nextAddress==1){if(!x.data||!x.canvasElement)return D.return();x.data.imageRatio&&x.data.minImageCropWidth||_.WI(new _.RZ("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));L=function(S,Q){return x.data.imageType==="IMAGE_TYPE_AVATAR"?new OgX(S,Q,x.data.imageRatio,[x.data.minImageCropWidth,x.data.minImageCropWidth/x.data.imageRatio],x.hostElement):new xG(S,Q,x.data.imageRatio,[x.data.minImageCropWidth,
x.data.minImageCropWidth/x.data.imageRatio],void 0,x.hostElement,8,!1)};
x.imageEditorCanvas=new Us3(x.canvasElement,L);return x.data.url?D.yield(qEq(x.imageEditorCanvas,x.data.url),3):(x.hideContainer=!0,x.openFileSelector(),D.jumpTo(0))}x.imageEditor=D.yieldResult;x.showPopup();x.addEventListeners(x.imageEditor);_.Y2(D)})};
_.K.addEventListeners=function(x){this.removeEventListeners();var L=function(Q){wQ$(x,Q)};
this.JSC$20899_mouseDownEvent=L;var D=function(Q){BxG(x,Q)};
this.JSC$20899_mouseMoveEvent=D;var S=function(){WL$(x)};
this.JSC$20899_mouseUpEvent=S;this.topLeftCorner.addEventListener("mousedown",L);this.topLeftCorner.addEventListener("mousemove",D);this.topLeftCorner.addEventListener("mouseup",S);this.topRightCorner.addEventListener("mousedown",L);this.topRightCorner.addEventListener("mousemove",D);this.topRightCorner.addEventListener("mouseup",S);this.bottomLeftCorner.addEventListener("mousedown",L);this.bottomLeftCorner.addEventListener("mousemove",D);this.bottomLeftCorner.addEventListener("mouseup",S);this.bottomRightCorner.addEventListener("mousedown",
L);this.bottomRightCorner.addEventListener("mousemove",D);this.bottomRightCorner.addEventListener("mouseup",S)};
_.K.removeEventListeners=function(){this.JSC$20899_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$20899_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$20899_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$20899_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$20899_mouseDownEvent));this.JSC$20899_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$20899_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$20899_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$20899_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$20899_mouseMoveEvent));this.JSC$20899_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$20899_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$20899_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$20899_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$20899_mouseUpEvent))};
_.K.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var x=document.activeElement;x&&x.shadowRoot&&x.shadowRoot.activeElement;)x=x.shadowRoot.activeElement;switch(x){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};
_.K.updatePositionOfCorner=function(x,L){var D=x.y-L.offsetHeight/2+4;L.style.left=x.x-L.offsetWidth/2+16+"px";L.style.top=D+"px"};
_.K.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var x=_.O([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),L=x.next();!L.done;L=x.next()){L=L.value;var D=Nxq(this.imageEditor,L.corner);this.updatePositionOfCorner(D,L.div)}};
_.K.onLeft=function(x){this.imageEditor&&this.setFocusInImageEditor()&&(f_q(this.imageEditor,0),this.updatePositionOfAllCorners(),x.preventDefault())};
_.K.onRight=function(x){this.imageEditor&&this.setFocusInImageEditor()&&(f_q(this.imageEditor,1),this.updatePositionOfAllCorners(),x.preventDefault())};
_.K.onUp=function(x){this.imageEditor&&this.setFocusInImageEditor()&&(f_q(this.imageEditor,2),this.updatePositionOfAllCorners(),x.preventDefault())};
_.K.onDown=function(x){this.imageEditor&&this.setFocusInImageEditor()&&(f_q(this.imageEditor,3),this.updatePositionOfAllCorners(),x.preventDefault())};
_.K.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.K.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.K.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.J3.Object.defineProperties(Lx.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&yFs.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var x,L,D;((L=this.data)==null?0:L.imageRatio)&&((D=this.data)==null?0:D.minImageCropWidth)?x={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:x=Zgl;return new CKG(x)}}});
Lx.prototype.updatePositionOfAllCorners=Lx.prototype.updatePositionOfAllCorners;Lx.prototype.dataChanged=Lx.prototype.dataChanged;_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],Lx.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],Lx.prototype,"ytComponentBehavior",void 0);_.A([_.b(_.A4),_.r("design:type",Object)],Lx.prototype,"ironA11yKeysBehavior",void 0);
_.A([_.F1("#canvas"),_.r("design:type",HTMLCanvasElement)],Lx.prototype,"canvasElement",void 0);_.A([_.F1("#file-selector"),_.r("design:type",HTMLInputElement)],Lx.prototype,"fileSelector",void 0);_.A([_.F1("#top-left-corner"),_.r("design:type",HTMLDivElement)],Lx.prototype,"topLeftCorner",void 0);_.A([_.F1("#top-right-corner"),_.r("design:type",HTMLDivElement)],Lx.prototype,"topRightCorner",void 0);
_.A([_.F1("#bottom-left-corner"),_.r("design:type",HTMLDivElement)],Lx.prototype,"bottomLeftCorner",void 0);_.A([_.F1("#bottom-right-corner"),_.r("design:type",HTMLDivElement)],Lx.prototype,"bottomRightCorner",void 0);_.A([_.F(),_.r("design:type",Object)],Lx.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],Lx.prototype,"errorMessage",void 0);_.A([_.F(),_.r("design:type",Object)],Lx.prototype,"isLoading",void 0);_.A([_.F(),_.r("design:type",Object)],Lx.prototype,"hideContainer",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.r("design:type",Boolean)],Lx.prototype,"isPlaylistThumbnail",void 0);_.A([_.GV("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype",Promise)],Lx.prototype,"dataChanged",null);_.A([_.mX("image-updated"),_.mX("yt-refit"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Lx.prototype,"updatePositionOfAllCorners",null);
_.A([_.oW({is:"yt-image-editor-renderer",disableElementRegistration:!0})],Lx);
_.q(Lx,"yt-image-editor-renderer",function(){if(R2u===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;e2q===void 0&&(e2q=document.createElement("template"));var S=e2q;D.call(L,S.content.cloneNode(!0),x.content.firstChild);R2u=x}x=R2u;return x},{mode:2});var I2s;var EyX;var DX=function(){return _.e.apply(this,arguments)||this};
_.p(DX,_.e);DX.prototype.updateMinutesFromBinding=function(x){this.handleMinutesChanged&&this.handleMinutesChanged(x)};
DX.prototype.updateSecondsFromBinding=function(x){this.handleSecondsChanged&&this.handleSecondsChanged(x)};
DX.prototype.updateDescriptionFromBinding=function(x){this.handleDescriptionChanged&&this.handleDescriptionChanged(x)};
_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],DX.prototype,"ytComponentBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],DX.prototype,"data",void 0);_.A([_.F(),_.r("design:type",String)],DX.prototype,"minutes",void 0);_.A([_.F(),_.r("design:type",String)],DX.prototype,"seconds",void 0);_.A([_.F(),_.r("design:type",String)],DX.prototype,"description",void 0);_.A([_.F(),_.r("design:type",Function)],DX.prototype,"handleMinutesChanged",void 0);
_.A([_.F(),_.r("design:type",Function)],DX.prototype,"handleSecondsChanged",void 0);_.A([_.F(),_.r("design:type",Function)],DX.prototype,"handleDescriptionChanged",void 0);_.A([_.F(),_.r("design:type",Number)],DX.prototype,"characterLimit",void 0);_.A([_.F(),_.r("design:type",Number)],DX.prototype,"textNumRows",void 0);_.A([_.oW({is:"yt-report-details-form-content",disableElementRegistration:!0})],DX);
_.q(DX,"yt-report-details-form-content",function(){if(EyX===void 0){var x=document.createElement("template");_.m(x,'\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>');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;I2s===void 0&&(I2s=document.createElement("template"));var S=I2s;D.call(L,S.content.cloneNode(!0),x.content.firstChild);EyX=x}x=EyX;return x},{mode:2});var Myq;var dHW;var Sh=function(){var x=_.e.apply(this,arguments)||this;x.updateMinutesFromBinding=function(L){x.minutes=L.detail.value};
x.updateSecondsFromBinding=function(L){x.seconds=L.detail.value};
x.updateDescriptionFromBinding=function(L){x.description=L.detail.value};
return x};
_.p(Sh,_.e);_.K=Sh.prototype;_.K.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.K.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"}}}};
_.K.ready=function(){_.jr(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.K.onSubmitYtAction=function(x){var L=x.detail;L.actionName==="yt-service-request"&&(L=L.args[1],L.flagEndpoint&&(x.stopPropagation(),this.refireAction(L)))};
_.K.refireAction=function(x){var L={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(L.vss_id=this.vssId);_.jq(this.hostElement,[x,L]);this.submitDisabled=!0};
_.K.dataChanged=function(){var x=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var L=_.Zs();L&&L.getPlayerPromise().then(function(D){var S=D.getOption("cc","track")||D.getOption("captions","track");S&&(x.vssId=S.vss_id);D=D.getCurrentTime();x.minutes=Math.floor(D/60).toString();x.seconds=(Math.floor(D)%60).toString()})};
_.K.updateSubmitButtonState=function(){var x;((x=this.data)==null?0:x.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==="")};
_.K.onYtServiceRequestCompleted=function(){_.dg(this.hostElement,"yt-close-popup-action")};
_.K.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.J3.Object.defineProperties(Sh.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var x;return((x=this.data)==null?void 0:x.textNumRows)||4}}});
Sh.prototype.onYtServiceRequestError=Sh.prototype.onYtServiceRequestError;Sh.prototype.onYtServiceRequestCompleted=Sh.prototype.onYtServiceRequestCompleted;Sh.prototype.updateSubmitButtonState=Sh.prototype.updateSubmitButtonState;_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Sh.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Sh.prototype,"ytRendererBehavior",void 0);
_.A([_.F({observer:"dataChanged"}),_.r("design:type",Object)],Sh.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Boolean)],Sh.prototype,"submitDisabled",void 0);_.A([_.F(),_.r("design:type",String)],Sh.prototype,"minutes",void 0);_.A([_.F(),_.r("design:type",String)],Sh.prototype,"seconds",void 0);_.A([_.F(),_.r("design:type",String)],Sh.prototype,"description",void 0);_.A([_.F(),_.r("design:type",String)],Sh.prototype,"vssId",void 0);
_.A([_.F({value:_.$6("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.r("design:type",Boolean)],Sh.prototype,"isMusic",void 0);_.A([_.Y("data"),_.r("design:type",Number),_.r("design:paramtypes",[])],Sh.prototype,"characterLimit",null);_.A([_.Y("data"),_.r("design:type",Number),_.r("design:paramtypes",[])],Sh.prototype,"textNumRows",null);
_.A([_.GV("minutes","seconds","description","submitDisabled"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Sh.prototype,"updateSubmitButtonState",null);_.A([_.mX("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Sh.prototype,"onYtServiceRequestCompleted",null);
_.A([_.mX("yt-service-request-error"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Sh.prototype,"onYtServiceRequestError",null);_.A([_.oW({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],Sh);
_.q(Sh,"yt-report-details-form-renderer",function(){if(dHW===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;Myq===void 0&&(Myq=document.createElement("template"));var S=Myq;D.call(L,S.content.cloneNode(!0),x.content.firstChild);dHW=x}x=dHW;return x});var PbG;var jLW;var vyl;var VyG;var Qu=function(){return _.e.apply(this,arguments)||this};
_.p(Qu,_.e);
Qu.prototype.onCheckedChanged_=function(){if(this.data){var x=_.jr(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.dg(this.hostElement,"yt-additional-detail-checkbox-update",[x]):this.data.identifier==="yt-hide-user-checkbox"?_.dg(this.hostElement,"yt-hide-user-checkbox-update",[x]):x&&this.data.enableCommand?_.dg(this.hostElement,"yt-modify-report-form-command",[_.g(this.data.enableCommand,NUG)]):!x&&this.data.disableCommand&&_.dg(this.hostElement,
"yt-modify-report-form-command",[_.g(this.data.enableCommand,NUG)])}};
Qu.prototype.onLabelTap_=function(x){x.target.tagName!="A"&&(_.jr(this.hostElement).querySelector("#checkbox").checked=!_.jr(this.hostElement).querySelector("#checkbox").checked)};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Qu.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Qu.prototype,"data",void 0);_.A([_.oW({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],Qu);
_.q(Qu,"yt-boolean-form-field-v2-renderer",function(){if(VyG===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;vyl===void 0&&(vyl=document.createElement("template"));var S=vyl;D.call(L,S.content.cloneNode(!0),x.content.firstChild);VyG=x}x=VyG;return x});var Jn=function(){var x=_.e.apply(this,arguments)||this;x.canShowAdditionalDetailCheckbox=!1;x.canShowCheckbox=!1;x.keepDropdownFocusedAfterSelection=!0;return x};
_.p(Jn,_.e);Jn.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}}}}};
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Jn.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Jn.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],Jn.prototype,"canShowAdditionalDetailCheckbox",void 0);_.A([_.F(),_.r("design:type",Object)],Jn.prototype,"canShowCheckbox",void 0);_.A([_.F(),_.r("design:type",Object)],Jn.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.A([_.oW({is:"yt-report-form-modal-content",disableElementRegistration:!0})],Jn);
_.q(Jn,"yt-report-form-modal-content",function(){if(jLW===void 0){var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;PbG===void 0&&(PbG=document.createElement("template"));var S=PbG;D.call(L,S.content.cloneNode(!0),x.content.firstChild);jLW=x}x=jLW;return x},{mode:2});var hWg;var Hgs;var Kx=function(){var x=_.e.apply(this,arguments)||this;x.submitting=!1;x.submitButtonDisabled=!0;x.command=null;x.canShowCheckbox=!1;x.canShowAdditionalDetailCheckbox=!1;x.canShowNextButton=!1;x.additionalDetailCheckboxChecked=!1;x.refitJob=0;x.keepDropdownFocusedAfterSelection=!0;x.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 x};
_.p(Kx,_.e);_.K=Kx.prototype;_.K.created=function(){this.refitJob=0};
_.K.attached=function(){this.JSC$20922_scroller&&(this.JSC$20922_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20922_scroller.attached&&typeof this.JSC$20922_scroller.attached==="function"&&this.JSC$20922_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.K.dataChanged=function(x){x&&(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,x.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),x.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.K.onYtPopupOpened=function(){var x=_.Zs();x&&x.getPlayerPromise().then(function(L){L.pauseVideo()})};
_.K.onYtNavigate=function(x){_.g(x.detail.endpoint,_.a9A)&&(x.stopPropagation(),this.hideReportForm=!0)};
_.K.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.K.onYtServiceRequestCompleted=function(x,L){var D=L.actions;if(D){if(D.length===1&&_.g(D[0],_.h_)){var S;D=((S=_.g(D[0],_.h_))==null?void 0:S.commands)||[]}S=0;for(var Q=D.length;S<Q;S++)_.g(D[S],_.fS)&&(x.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(D[S]))}if(L.data&&(x=this.get("feedbackResponses",L.data)))for(L=0;L<x.length;L++)if(x[L].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.K.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.K._onDescendantIronResize=function(x){x.stopPropagation();return!1};
_.K.handleReportFormEndpointUpdateAction=function(x){if(x.submitEndpoint){var L=this.command=x.submitEndpoint;L=_.g(L,_.id2);if(L==null?0:L.additionalDetailCheckboxChecked)L.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else x.submitNavigationEndpoint?(this.command=x.submitNavigationEndpoint,this.toggleSubmitButton(!1)):x.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:x.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;x.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",x));this.refit()};
_.K.handleConfirmDialogCloseAction=function(x){x.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.K.submitButtonDisabledChanged=function(){var x=this.hostElement.parentElement;x&&x.invalidateTabbables&&x.invalidateTabbables()};
_.K.handleModifyReportFormCommand=function(x){x=this.get("action",x);x==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:x==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:x==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:x==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:x==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:x==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.K.updateDialogStyling=function(){var x,L,D,S,Q,J=((Q=(x=this.data)==null?void 0:(L=x.optionsSupportedRenderers)==null?void 0:(D=L.optionsRenderer)==null?void 0:(S=D.items)==null?void 0:S.length)!=null?Q:0)<=2?0:240;_.uN(this.hostElement,{"--yt-report-form-modal-renderer-min-width":J+"px"})};
_.K.toggleSubmitButton=function(x){this.submitButtonDisabled=!x;this.submitButtonDisabled=x};
_.K.computeSubmitButtonData=function(x,L){var D={};_.g(L,_.a9A)?D.navigationEndpoint=L:D.command=L||void 0;x&&x.buttonRenderer&&_.wk.extend(D,x.buttonRenderer);return D};
_.K.computeNextButtonData=function(x,L){var D={};if(!x||!x.buttonRenderer)return D;_.wk.extend(D,x.buttonRenderer);if(!L)return D;if(_.g(L,_.a9A))D.navigationEndpoint=M9g(L);else if(D.command=M9g(L),x=_.g(D.command,_.id2))x.legalCheckboxChecked=!0;return D};
_.K.computeShowNextButton=function(x,L,D){return!!x&&L&&D};
_.K.refit=function(){var x=this;this.refitJob||(this.refitJob=_.WW.addLowPriorityJob(function(){_.MF(x.hostElement,"yt-refit");x.refitJob=0}))};
_.K.handleAdditionalDetailCheckboxUpdateAction=function(x){this.additionalDetailCheckboxChecked=x;_.g(this.command,_.id2).additionalDetailCheckboxChecked=x};
_.J3.Object.defineProperties(Kx,{template:{configurable:!0,enumerable:!0,get:function(){if(Hgs===void 0){var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;hWg===void 0&&(hWg=document.createElement("template"));var S=hWg;D.call(L,S.content.cloneNode(!0),x.content.firstChild);Hgs=x}x=Hgs;return x}}});
Kx.prototype.onYtServiceRequestError=Kx.prototype.onYtServiceRequestError;Kx.prototype.onYtServiceRequestCompleted=Kx.prototype.onYtServiceRequestCompleted;Kx.prototype.onYtServiceRequestSent=Kx.prototype.onYtServiceRequestSent;Kx.prototype.onYtNavigate=Kx.prototype.onYtNavigate;Kx.prototype.onYtPopupOpened=Kx.prototype.onYtPopupOpened;_.A([_.b(_.rs.YtOpenPopupBehavior),_.r("design:type",Object)],Kx.prototype,"openPopupBehavior",void 0);
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Kx.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],Kx.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.nE.YtEventForwardingBehavior),_.r("design:type",Object)],Kx.prototype,"eventForwardingBehavior",void 0);_.A([_.b(_.XO),_.r("design:type",Object)],Kx.prototype,"ironResizableBehavior",void 0);_.A([_.F({observer:"dataChanged"}),_.r("design:type",Object)],Kx.prototype,"data",void 0);
_.A([_.F(),_.r("design:type",Object)],Kx.prototype,"submitting",void 0);_.A([_.F({observer:"submitButtonDisabledChanged"}),_.r("design:type",Object)],Kx.prototype,"submitButtonDisabled",void 0);_.A([_.F(),_.r("design:type",Object)],Kx.prototype,"command",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],Kx.prototype,"hideReportForm",void 0);_.A([_.F(),_.r("design:type",Object)],Kx.prototype,"canShowCheckbox",void 0);
_.A([_.F(),_.r("design:type",Object)],Kx.prototype,"canShowAdditionalDetailCheckbox",void 0);_.A([_.F(),_.r("design:type",Object)],Kx.prototype,"canShowNextButton",void 0);_.A([_.F(),_.r("design:type",Object)],Kx.prototype,"additionalDetailCheckboxChecked",void 0);_.A([_.F(),_.r("design:type",Object)],Kx.prototype,"refitJob",void 0);_.A([_.F(),_.r("design:type",Object)],Kx.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.A([_.F1("#scroller"),_.r("design:type",Object)],Kx.prototype,"JSC$20922_scroller",void 0);_.A([_.mX("yt-popup-opened"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Kx.prototype,"onYtPopupOpened",null);_.A([_.mX("yt-navigate"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Kx.prototype,"onYtNavigate",null);
_.A([_.mX("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.zQ]),_.r("design:returntype")],Kx.prototype,"onYtServiceRequestSent",null);_.A([_.mX("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.S2]),_.r("design:returntype")],Kx.prototype,"onYtServiceRequestCompleted",null);
_.A([_.mX("yt-service-request-error"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Kx.prototype,"onYtServiceRequestError",null);_.A([_.oW({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],Kx);var u$$;var gyY;var Of=function(){return _.e.apply(this,arguments)||this};
_.p(Of,_.e);_.K=Of.prototype;_.K.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.K.onVisible=function(){var x,L;(L=_.yY().resolve(_.ZN(_.Op)))==null||L.enqueue({label:_.SR((x=this.data)==null?void 0:x.messageTitle),elementToFocus:this.hostElement})};
_.K.onThumbnailLoaded=function(){_.MF(this.hostElement,"yt-refit")};
_.K.onDismissTap=function(){_.dg(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.K.computeAlternateIcon=function(x){return x?x==="BACKSTAGE_ARTWORK"?"backstage:artwork":x:null};
_.K.computeFontFamily=function(x){return x==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.K.computeBackgroundStyle=function(x,L){if(x=this.computeBackgroundImage(x,L))if(x=_.jn(x.thumbnails))return'background-image: url("'+x+'");'};
_.K.computeHasFullHeightImage=function(x){return!(!(x&&x.thumbnails&&x.thumbnails.length>0)||this.modern)};
_.K.isModernStyle=function(x){return x.style==="STYLE_MODERN"};
_.K.computeIcon=function(x,L){if(x&&x.icon)return L?x.iconDark:x.icon};
_.K.computeBackgroundImage=function(x,L){if(x&&x.backgroundImage)return L?x.backgroundImageDark:x.backgroundImage};
_.K.computeLogo=function(x,L){if(x&&x.logo)return L?x.logoDark:x.logo};
_.K.computeShouldShowModernIcon=function(x,L){return x&&!!L};
_.K.getLogoContainerClassName=function(x){return this.logoWithPadding(x)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.K.getLogoImageId=function(x){return this.logoWithPadding(x)?"mealbar-logo-with-padding":"mealbar-logo"};
_.K.logoWithPadding=function(x){var L,D,S;return(x=(L=this.computeLogo(x,this.isDarkTheme))==null?void 0:(D=L.thumbnails)==null?void 0:(S=D[0])==null?void 0:S.height)&&x%31===0?!0:!1};
Of.prototype.onThumbnailLoaded=Of.prototype.onThumbnailLoaded;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Of.prototype,"ytRendererBehavior",void 0);_.A([_.F({}),_.r("design:type",Object)],Of.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.r("design:type",Boolean)],Of.prototype,"modern",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],Of.prototype,"isDarkTheme",void 0);
_.A([_.F({computed:"computeIcon(data, isDarkTheme)"}),_.r("design:type",Object)],Of.prototype,"icon",void 0);_.A([_.F({computed:"computeLogo(data, isDarkTheme)"}),_.r("design:type",Object)],Of.prototype,"logo",void 0);_.A([_.F({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.r("design:type",Object)],Of.prototype,"backgroundStyle",void 0);_.A([_.F({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.r("design:type",Object)],Of.prototype,"alternateIcon",void 0);
_.A([_.F({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.r("design:type",Boolean)],Of.prototype,"hasFullHeightImage",void 0);_.A([_.F({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.r("design:type",Boolean)],Of.prototype,"useYoutubeSans",void 0);_.A([_.F({computed:"computeShouldShowModernIcon(modern, icon)"}),_.r("design:type",Boolean)],Of.prototype,"shouldShowModernIcon",void 0);
_.A([_.mX("yt-img-shadow-loaded"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Of.prototype,"onThumbnailLoaded",null);_.A([_.oW({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],Of);
_.q(Of,"yt-mealbar-promo-renderer",function(){if(gyY===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;u$$===void 0&&(u$$=document.createElement("template"));var S=u$$;D.call(L,S.content.cloneNode(!0),x.content.firstChild);gyY=x}x=gyY;return x},{mode:2});var kH$;var p1q;var ZX=function(){return _.e.apply(this,arguments)||this};
_.p(ZX,_.e);_.K=ZX.prototype;_.K.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]]"}}}}}};
_.K.computeHasButtons_=function(x){return!(!x.dismissButton&&!x.acceptButton)};
_.K.computeStyle_=function(x){return x||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.K.observeImpressionEndpoints_=function(){var x=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(L){L.clickTrackingParams&&delete L.clickTrackingParams;_.jq(x.hostElement,[L])})};
_.K.onTap_=function(){_.dg(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
ZX.prototype.observeImpressionEndpoints_=ZX.prototype.observeImpressionEndpoints_;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],ZX.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.nE.YtEventForwardingBehavior),_.r("design:type",Object)],ZX.prototype,"ytEventForwardingBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],ZX.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],ZX.prototype,"data",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],ZX.prototype,"positionType",void 0);_.A([_.F({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.r("design:type",Boolean)],ZX.prototype,"hasButtons_",void 0);_.A([_.F({value:function(){return this.onTap_.bind(this)}}),
_.r("design:type",Function)],ZX.prototype,"boundOnTap_",void 0);_.A([_.F({value:{style:"mono-inverse"}}),_.r("design:type",Object)],ZX.prototype,"buttonOverride",void 0);_.A([_.bN("data.promoConfig.impressionEndpoints"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ZX.prototype,"observeImpressionEndpoints_",null);_.A([_.oW({is:"yt-tooltip-renderer",disableElementRegistration:!0})],ZX);
_.q(ZX,"yt-tooltip-renderer",function(){if(p1q===void 0){var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;kH$===void 0&&(kH$=document.createElement("template"));var S=kH$;D.call(L,S.content.cloneNode(!0),x.content.firstChild);p1q=x}x=p1q;return x},{mode:2});var mHY;var bgq;var YAY={},FTl=(YAY.WEB_REMIX="music.youtube.com",YAY),yu=function(){var x=_.e.apply(this,arguments)||this;x.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return x};
_.p(yu,_.e);_.K=yu.prototype;_.K.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.K.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.K.created=function(){this.embedHost_=FTl[_.$6("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.K.ready=function(){_.jr(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.K.computeEmbedCode_=function(x,L,D,S,Q){if(!x)return"";var J=x.videoId,Z=x.fullListId,y=[];x.attributionId&&y.push("si="+x.attributionId);S||y.push("controls=0");D&&Number(L)>0&&y.push("start="+L);Z&&(J="videoseries",y.push("list="+Z));D="https://"+(Q?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+J;x.clipId&&(y.push("clip="+x.clipId),y.push("clipt="+x.clipTiming));L=y.length>0?D+"?"+y.join("&amp;"):D;x.encryptedEmbedConfig&&y.push("embed_config="+JSON.stringify({enc:x.encryptedEmbedConfig}));
y=y.length>0?D+"?"+y.join("&amp;"):D;_.u("web_sharing_embed_preview_killswitch")?_.jr(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(y,x.previewWidth||854,x.previewHeight||480):(_.NC(this.videoPreviewContainer),_.jr(this.videoPreviewContainer).appendChild(this.buildIframeElement(y)));return this.getEmbedCode_(L,x.width||560,x.height||315)};
_.K.buildIframeElement=function(x){var L=document.createElement("iframe"),D,S;L.width=""+((S=(D=this.data)==null?void 0:D.previewWidth)!=null?S:854);var Q,J;L.height=""+((J=(Q=this.data)==null?void 0:Q.previewHeight)!=null?J:480);_.Mff(L,2,x);L.title="YouTube video player";L.frameBorder="0";L.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";L.referrerPolicy="strict-origin-when-cross-origin";L.allowFullscreen=!0;return L};
_.K.computeIsSquareAspectRatio_=function(x){return x.previewHeight&&x.previewWidth?x.previewHeight==x.previewWidth:!1};
_.K.computeShowEmbedOptions_=function(x){return!!x.enablePrivacyModeOptionLabel||!!x.showPlayerControlsOptionLabel};
_.K.getEmbedCode_=function(x,L,D){return'<iframe width="'+L+'" height="'+D+'" src="'+x+'" 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>'};
_.K.handleSignalActionCopyShareEmbedUrl_=function(){_.jr(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.K.handleSetTimestamp_=function(x){this.startAtTimeStamp_=(this.startAtChecked_=x.isSet)?x.timestamp:0};
_.K.closePanel_=function(){_.dg(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.K.onEmbedCode_=function(){_.jr(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.K.onYtPopupClosed_=function(){_.NC(_.jr(this.hostElement).querySelector("#video-preview"))};
_.K.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.g(this.data.actionButtons[0],_.y4)&&this.ytRendererBehavior.logExplicitClick(_.g(this.data.actionButtons[0],_.y4))};
yu.prototype.onYtPopupClosed_=yu.prototype.onYtPopupClosed_;_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],yu.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],yu.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],yu.prototype,"ytActionHandlerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],yu.prototype,"data",void 0);
_.A([_.F({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.r("design:type",String)],yu.prototype,"embedCode_",void 0);_.A([_.F({value:!0}),_.r("design:type",Boolean)],yu.prototype,"isPlayerControlsOptionChecked_",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],yu.prototype,"isPrivacyModeOptionChecked_",void 0);_.A([_.F({value:!1,notify:!0}),_.r("design:type",Boolean)],yu.prototype,"startAtChecked_",void 0);
_.A([_.F({value:0}),_.r("design:type",Number)],yu.prototype,"startAtTimeStamp_",void 0);_.A([_.F({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],yu.prototype,"isSquareAspectRatio_",void 0);_.A([_.F1("#video-preview"),_.r("design:type",HTMLElement)],yu.prototype,"videoPreviewContainer",void 0);_.A([_.mX("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],yu.prototype,"onYtPopupClosed_",null);
_.A([_.oW({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],yu);
_.q(yu,"yt-sharing-embed-renderer",function(){if(bgq===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;mHY===void 0&&(mHY=document.createElement("template"));var S=mHY;D.call(L,S.content.cloneNode(!0),x.content.firstChild);bgq=x}x=bgq;return x},{mode:2});var sLg={};
sLg.YtUnlimitedFamilyInterstitialBehavior=[_.rs.YtOpenPopupBehavior,_.ir.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(x){x=_.zlA(_.K$(x),"yt-button-renderer");return x?x.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(x){this.dialogHistory_.push(x)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var x=this.popFromHistory();if(x){var L={openPopupAction:{popupType:"DIALOG",popup:{}}};L.openPopupAction.popup[x.renderer]=x.data;this.showingPreviousDialog_=!0;this.openPopup(L)}},
handleOpenPopupAction_:function(x){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var L=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(S){return!!x.openPopupAction.popup[S]}),D=this.getElementName_();
L&&this.data&&(this.pushToHistory({renderer:D,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(x){if(x=_.g(x,VCX))this.loading=!0,_.dg(this.hostElement,"yt-open-create-family-dialog",[x,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var x=this.hostElement.nodeName.split("-").slice(1).map(function(L){return""+L[0].toUpperCase()+L.slice(1).toLowerCase()}).join("");
return x[0].toLowerCase()+x.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var Tm$;var eWu;var I$=function(){return _.e.apply(this,arguments)||this};
_.p(I$,_.e);_.K=I$.prototype;_.K.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}}}}}};
_.K.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.dg(this.hostElement,"yt-register-create-family-dialog");_.jr(this.hostElement).querySelector("#thumbnail").onShow()};
_.K.fireOnCloseCommand_=function(){var x;((x=this.data)==null?0:x.onCloseCommand)&&_.v$(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.K.onYtServiceRequestSent_=function(x,L){L&&L.endpoint&&_.g(L.endpoint,_.ul)||(this.loading=!0)};
_.K.onYtServiceRequestCompleted_=function(){var x=this.hostElement.parentElement;x.close&&x.close();this.loading=!1};
_.K.openPopupHandler_=function(x){if(x.detail==this){var L;((L=this.data)==null?0:L.onOpenCommands)&&_.v$(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.K.closePopupHandler_=function(x,L){this.fireOnCloseCommand_();if(L&&L.canceled===!0||L&&L.canceled===!1&&L.confirmed===!1){var D;((D=this.data)==null?0:D.onDismissCommands)&&_.v$(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.K.dataChanged_=function(){this.loading=!1};
I$.prototype.dataChanged_=I$.prototype.dataChanged_;I$.prototype.closePopupHandler_=I$.prototype.closePopupHandler_;I$.prototype.openPopupHandler_=I$.prototype.openPopupHandler_;I$.prototype.onYtServiceRequestCompleted_=I$.prototype.onYtServiceRequestCompleted_;I$.prototype.onYtServiceRequestSent_=I$.prototype.onYtServiceRequestSent_;_.A([_.b(_.nE.YtEventForwardingBehavior),_.r("design:type",Object)],I$.prototype,"ytEventForwardingBehavior",void 0);
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],I$.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(sLg.YtUnlimitedFamilyInterstitialBehavior),_.r("design:type",Object)],I$.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],I$.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],I$.prototype,"data",void 0);
_.A([_.F({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],I$.prototype,"loading",void 0);_.A([_.mX("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.zQ]),_.r("design:returntype")],I$.prototype,"onYtServiceRequestSent_",null);_.A([_.mX("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.S2]),_.r("design:returntype")],I$.prototype,"onYtServiceRequestCompleted_",null);
_.A([_.mX("yt-popup-opened"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],I$.prototype,"openPopupHandler_",null);_.A([_.mX("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],I$.prototype,"closePopupHandler_",null);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],I$.prototype,"dataChanged_",null);
_.A([_.oW({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],I$);
_.q(I$,"yt-unlimited-family-message-interstitial-renderer",function(){if(eWu===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;Tm$===void 0&&(Tm$=document.createElement("template"));var S=Tm$;D.call(L,S.content.cloneNode(!0),x.content.firstChild);eWu=x}x=eWu;return x},{mode:2});var RW$;var GHl;var Ef=function(){return _.e.apply(this,arguments)||this};
_.p(Ef,_.e);Ef.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"}}}};
Ef.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.jr(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(x){x.onShow()});
_.jr(this.hostElement).querySelector("#main-thumbnail").onShow()};
Ef.prototype.onButtonTap_=function(x){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(x)};
Ef.prototype.computeMainThumbnailWidth_=function(x){return x&&x.length!==0?72:96};
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Ef.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Ef.prototype,"ytRendererBehavior",void 0);_.A([_.b(sLg.YtUnlimitedFamilyInterstitialBehavior),_.r("design:type",Object)],Ef.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Ef.prototype,"data",void 0);
_.A([_.F({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.r("design:type",Number)],Ef.prototype,"mainThumbnailWidth_",void 0);_.A([_.F({value:function(){return this.onButtonTap_.bind(this)}}),
_.r("design:type",Function)],Ef.prototype,"boundButtonTap_",void 0);_.A([_.oW({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],Ef);
_.q(Ef,"yt-unlimited-family-profile-interstitial-renderer",function(){if(GHl===void 0){var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;RW$===void 0&&(RW$=document.createElement("template"));var S=RW$;D.call(L,S.content.cloneNode(!0),x.content.firstChild);GHl=x}x=GHl;return x},{mode:2});var Cbl;var l2W;var Mx=function(){var x=_.e.apply(this,arguments)||this;x.sliderAriaValueText_=null;x.selectedIndex_=0;x.messages={PAUSE_SLIDER:_.p6("PAUSE_SLIDER",void 0,"Pause Duration")};return x};
_.p(Mx,_.e);_.K=Mx.prototype;_.K.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_]]"}}}}}};
_.K.onPopupOpened_=function(x){x.detail==this&&_.u("enable_premium_voluntary_pause")&&(_.dg(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.K.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.K.setDialogData=function(x){this.data=x;this.resetSlider_()};
_.K.dataChanged_=function(){this.data&&this.resetSlider_()};
_.K.onSubmitTap_=function(){if(this.data.confirmCommand){var x=this.data.confirmCommand;_.g(x,_.NUW)&&_.jq(this.hostElement,[x,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.K.onExitButtonTap_=function(){_.dg(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.K.closePopupHandler_=function(x,L){(L&&L.canceled===!0||L.canceled===!1&&L.confirmed===!1)&&this.handleOnDismissCommands_()};
_.K.onSliderChange_=function(){this.selectedIndex_=_.jr(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.K.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.K.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.K.resetSlider_=function(){if(this.data){var x=this.data.defaultEndOptionIndex||0,L=_.jr(this.hostElement).querySelector("#id-pause-slider");if(L.immediateValue<x)for(;L.immediateValue!=x;)L.increment();else if(x<L.immediateValue)for(;L.immediateValue!=x;)L.decrement();this.selectedIndex_=x;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.K.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.v$(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.K.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.v$(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.K.onYtServiceRequestSent=function(){this.loading=!0};
_.K.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
Mx.prototype.onYtServiceRequestCompleted=Mx.prototype.onYtServiceRequestCompleted;Mx.prototype.onYtServiceRequestSent=Mx.prototype.onYtServiceRequestSent;Mx.prototype.closePopupHandler_=Mx.prototype.closePopupHandler_;Mx.prototype.dataChanged_=Mx.prototype.dataChanged_;Mx.prototype.onPopupOpened_=Mx.prototype.onPopupOpened_;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Mx.prototype,"ytRendererBehavior",void 0);
_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Mx.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],Mx.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],Mx.prototype,"loading",void 0);_.A([_.F(),_.r("design:type",Number)],Mx.prototype,"selectIndexMax_",void 0);_.A([_.F(),_.r("design:type",Object)],Mx.prototype,"selectedData_",void 0);
_.A([_.F(),_.r("design:type",Object)],Mx.prototype,"sliderAriaValueText_",void 0);_.A([_.F({value:function(){return this.onSubmitTap_.bind(this)}}),
_.r("design:type",Function)],Mx.prototype,"onButtonTap_",void 0);_.A([_.F({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.r("design:type",Function)],Mx.prototype,"onSecondaryTap_",void 0);_.A([_.F(),_.r("design:type",Object)],Mx.prototype,"messages",void 0);_.A([_.mX("yt-popup-opened"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],Mx.prototype,"onPopupOpened_",null);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Mx.prototype,"dataChanged_",null);
_.A([_.mX("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],Mx.prototype,"closePopupHandler_",null);_.A([_.mX("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.zQ]),_.r("design:returntype")],Mx.prototype,"onYtServiceRequestSent",null);
_.A([_.mX("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.S2]),_.r("design:returntype")],Mx.prototype,"onYtServiceRequestCompleted",null);_.A([_.oW({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],Mx);
_.q(Mx,"yt-unplugged-pause-membership-dialog-renderer",function(){if(l2W===void 0){var x=document.createElement("template");_.m(x,'\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>');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;Cbl===void 0&&(Cbl=document.createElement("template"));var S=Cbl;D.call(L,S.content.cloneNode(!0),x.content.firstChild);l2W=x}x=l2W;return x},{mode:2});var UHl;var w13;var d2=function(){return _.e.apply(this,arguments)||this};
_.p(d2,_.e);d2.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.WD("vcBalanceRenderer")}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],d2.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],d2.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],d2.prototype,"data",void 0);_.A([_.oW({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],d2);
_.q(d2,"yt-vc-offer-layout-header-renderer",function(){if(w13===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;UHl===void 0&&(UHl=document.createElement("template"));var S=UHl;D.call(L,S.content.cloneNode(!0),x.content.firstChild);w13=x}x=w13;return x},{mode:2});var BmW;var WT9;var qAl;var AFs;var P0=function(){return _.e.apply(this,arguments)||this};
_.p(P0,_.e);P0.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.J3.Object.defineProperties(P0.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)}}});
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],P0.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],P0.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.mRA.YtTappableItemBehavior),_.r("design:type",Object)],P0.prototype,"ytTappableItemBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],P0.prototype,"data",void 0);
_.A([_.F({reflectToAttribute:!0}),_.Y("data.accessibilityText"),_.r("design:type",String),_.r("design:paramtypes",[])],P0.prototype,"ariaLabel",null);_.A([_.F({reflectToAttribute:!0}),_.Y("data.style"),_.r("design:type",String),_.r("design:paramtypes",[])],P0.prototype,"vcOfferStyle",null);_.A([_.Y("data.style","data.titleText"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],P0.prototype,"showTitleText",null);_.A([_.oW({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],P0);
_.q(P0,"yt-vc-offer-renderer",function(){if(AFs===void 0){var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;qAl===void 0&&(qAl=document.createElement("template"));var S=qAl;D.call(L,S.content.cloneNode(!0),x.content.firstChild);AFs=x}x=AFs;return x},{mode:2});var jh=function(){return _.e.apply(this,arguments)||this};
_.p(jh,_.e);jh.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}}}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],jh.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],jh.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],jh.prototype,"data",void 0);_.A([_.oW({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],jh);
_.q(jh,"yt-vc-offer-layout-renderer",function(){if(WT9===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;BmW===void 0&&(BmW=document.createElement("template"));var S=BmW;D.call(L,S.content.cloneNode(!0),x.content.firstChild);WT9=x}x=WT9;return x},{mode:2});var $Hl;var rFl;var Nml;var igl;var v0=function(){return _.e.apply(this,arguments)||this};
_.p(v0,_.e);v0.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}}}}}};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],v0.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],v0.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],v0.prototype,"data",void 0);_.A([_.oW({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],v0);
_.q(v0,"yt-ypc-offers-modal-top-bar-renderer",function(){if(igl===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;Nml===void 0&&(Nml=document.createElement("template"));var S=Nml;D.call(L,S.content.cloneNode(!0),x.content.firstChild);igl=x}x=igl;return x},{mode:2});var Vu=function(){return _.e.apply(this,arguments)||this};
_.p(Vu,_.e);Vu.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"}}}}};
Vu.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
Vu.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var x=this.scrollable;x.attached&&typeof x.attached==="function"&&x.attached()};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],Vu.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],Vu.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F1("#scrollable"),_.r("design:type",Object)],Vu.prototype,"scrollable",void 0);_.A([_.F(),_.r("design:type",Object)],Vu.prototype,"data",void 0);_.A([_.oW({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],Vu);
_.q(Vu,"yt-ypc-offers-modal-renderer",function(){if(rFl===void 0){var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;$Hl===void 0&&($Hl=document.createElement("template"));var S=$Hl;D.call(L,S.content.cloneNode(!0),x.content.firstChild);rFl=x}x=rFl;return x},{mode:2});var f2W;var oy9;var hn=function(){return _.e.apply(this,arguments)||this};
_.p(hn,_.e);_.K=hn.prototype;_.K.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}}}}}};
_.K.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.jr(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.K.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.dg(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.K.onYtPopupOpened_=function(x,L){(L==null?void 0:L.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.v$(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.K.onYtPopupClosed_=function(x,L){this.continueButtonTapped||L&&(L.canceled===!0||L.canceled===!1&&L.confirmed===!1)&&this.data.onDismissCommands&&_.v$(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.K.onYtServiceRequestError_=function(x){this.set("showSpinner",!1);_.nX(this.hostElement,x.detail.error.message)};
_.K.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.u("enable_ypc_spinners")?_.dg(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
hn.prototype.onYtServiceRequestError_=hn.prototype.onYtServiceRequestError_;hn.prototype.onYtPopupClosed_=hn.prototype.onYtPopupClosed_;hn.prototype.onYtPopupOpened_=hn.prototype.onYtPopupOpened_;hn.prototype.onYtServiceRequestCompleted_=hn.prototype.onYtServiceRequestCompleted_;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],hn.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],hn.prototype,"ytRendererstamperBehavior",void 0);
_.A([_.F(),_.r("design:type",Object)],hn.prototype,"data",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],hn.prototype,"showSpinner",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],hn.prototype,"continueButtonTapped",void 0);_.A([_.F({value:function(){return this.onContinueTapped_.bind(this)}}),
_.r("design:type",Function)],hn.prototype,"bindOnContinueTapped_",void 0);_.A([_.mX("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],hn.prototype,"onYtServiceRequestCompleted_",null);_.A([_.mX("yt-popup-opened"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],hn.prototype,"onYtPopupOpened_",null);
_.A([_.mX("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],hn.prototype,"onYtPopupClosed_",null);_.A([_.mX("yt-service-request-error"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],hn.prototype,"onYtServiceRequestError_",null);_.A([_.oW({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],hn);
_.q(hn,"yt-ypc-upgrade-dialog-renderer",function(){if(oy9===void 0){var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;f2W===void 0&&(f2W=document.createElement("template"));var S=f2W;D.call(L,S.content.cloneNode(!0),x.content.firstChild);oy9=x}x=oy9;return x},{mode:2});var a2X;var zWY;var H0=function(){return _.e.apply(this,arguments)||this};
_.p(H0,_.e);H0.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
H0.prototype.computeHasButtons_=function(x){return!(!x.dismissButton&&!x.confirmButton)};
H0.prototype.computeStyle_=function(x){return x||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],H0.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.nE.YtEventForwardingBehavior),_.r("design:type",Object)],H0.prototype,"ytEventForwardingBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],H0.prototype,"ytRendererstamperBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],H0.prototype,"data",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],H0.prototype,"positionType",void 0);
_.A([_.F({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.r("design:type",Boolean)],H0.prototype,"hasButtons_",void 0);_.A([_.F({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.r("design:type",Boolean)],H0.prototype,"style_",void 0);_.A([_.oW({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],H0);
_.q(H0,"yt-bubble-hint-renderer",function(){if(zWY===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;a2X===void 0&&(a2X=document.createElement("template"));var S=a2X;D.call(L,S.content.cloneNode(!0),x.content.firstChild);zWY=x}x=zWY;return x},{mode:2});var X1q;var cFs;var uL=function(){var x=_.KL.apply(this,arguments)||this;x.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return x};
_.p(uL,_.KL);_.K=uL.prototype;_.K.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.K.attached=function(){var x=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){x.$.thumbnail.onShow();x.$["header-image"].onShow()})};
_.K.handleCheckBoxUpdateAction_=function(x){this.canShowCheckboxEnabledConfirmButton=x};
_.K.computeUseOverlayForSpinner_=function(x,L){return!!x&&L};
_.K.computeShowSpinner_=function(x,L){return x||!!L};
_.K.fireOnCloseActions_=function(){var x,L=_.O(((x=this.data)==null?void 0:x.onClosedActions)||[]);for(x=L.next();!x.done;x=L.next())this.ytRendererBehavior.resolveCommand(x.value)};
_.K.fireOnOpenCommands_=function(x){var L,D=(L=this.data)==null?void 0:L.onOpenCommands;if(D)for(x.stopImmediatePropagation(),x=_.O(D),L=x.next();!L.done;L=x.next())this.ytRendererBehavior.resolveCommand(L.value)};
_.K.fireOnDismissCommands_=function(x){var L,D=(L=this.data)==null?void 0:L.onDismissCommands;if(D)for(x.stopImmediatePropagation(),x=_.O(D),L=x.next();!L.done;L=x.next())this.ytRendererBehavior.resolveCommand(L.value)};
_.K.openPopupHandler_=function(x){x.detail==this&&this.fireOnOpenCommands_(x)};
_.K.closePopupHandler_=function(x,L){_.P$(this,"yt-confirm-dialog-close-action",[L]);this.fireOnCloseActions_();(L&&L.canceled===!0||L&&L.canceled===!1&&L.confirmed===!1)&&this.fireOnDismissCommands_(x)};
_.K.onHeaderImageChanged_=function(){var x;((x=this.data)==null?0:x.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.K.computeHasHeaderImageWidth_=function(x){return x!=void 0};
_.K.computeHasLoadingMessage=function(x){return!!x};
_.K.onHeaderImageWidthChanged_=function(){var x,L=(x=this.data)==null?void 0:x.headerImageWidth;if(L){if(x=1.25*L*2+L,this.$.main.style.width=x+"px",L=this.$.scroller.firstElementChild)L.style.minWidth=x+"px"}else this.$.main.style.width="100%"};
_.K.onThumbnailChanged_=function(){var x;((x=this.data)==null?0:x.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")};
_.K.onYtNavigate_=function(x){x=_.K$(x);x instanceof Node&&_.vP(this.$["confirm-button"]).contains(x)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.K.computePrimaryIsCancel_=function(x){return x};
_.K.computeIsCancelButtonHidden_=function(x){return x.skipCancelButton||!x.cancelButton};
_.K.computeIsCheckboxHidden_=function(x){return!x.checkbox};
_.K.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.K.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.K.onYtServiceRequestCompleted_=function(){var x;((x=this.data)==null?0:x.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.J3.Object.defineProperties(uL,{template:{configurable:!0,enumerable:!0,get:function(){if(cFs===void 0){var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;X1q===void 0&&(X1q=document.createElement("template"));var S=X1q;D.call(L,S.content.cloneNode(!0),x.content.firstChild);cFs=x}x=cFs;return x}}});
uL.prototype.onYtServiceRequestCompleted_=uL.prototype.onYtServiceRequestCompleted_;uL.prototype.onYtServiceRequestSent_=uL.prototype.onYtServiceRequestSent_;uL.prototype.onThumbnailLoaded_=uL.prototype.onThumbnailLoaded_;uL.prototype.onYtNavigate_=uL.prototype.onYtNavigate_;uL.prototype.onThumbnailChanged_=uL.prototype.onThumbnailChanged_;uL.prototype.onHeaderImageWidthChanged_=uL.prototype.onHeaderImageWidthChanged_;uL.prototype.onHeaderImageChanged_=uL.prototype.onHeaderImageChanged_;
uL.prototype.closePopupHandler_=uL.prototype.closePopupHandler_;uL.prototype.openPopupHandler_=uL.prototype.openPopupHandler_;_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],uL.prototype,"ytActionHandlerBehavior",void 0);_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],uL.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],uL.prototype,"ytRendererBehavior",void 0);
_.A([_.b(_.nE.YtEventForwardingBehavior),_.r("design:type",Object)],uL.prototype,"ytEventForwardingBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],uL.prototype,"data",void 0);_.A([_.F({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.r("design:type",Boolean)],uL.prototype,"primaryIsCancel",void 0);_.A([_.F({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.r("design:type",Boolean)],uL.prototype,"isCancelButtonHidden",void 0);
_.A([_.F({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.r("design:type",Boolean)],uL.prototype,"isCheckboxHidden",void 0);_.A([_.F({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],uL.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.A([_.F({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.r("design:type",Boolean)],uL.prototype,"useOverlayForSpinner_",void 0);
_.A([_.F({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.r("design:type",Boolean)],uL.prototype,"showSpinner_",void 0);_.A([_.F({value:!1}),_.r("design:type",Boolean)],uL.prototype,"isActionInProgress_",void 0);_.A([_.F({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.r("design:type",Boolean)],uL.prototype,"hasHeaderImageWidth_",void 0);
_.A([_.F({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.r("design:type",Boolean)],uL.prototype,"hasLoadingMessage",void 0);_.A([_.mX("yt-popup-opened"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],uL.prototype,"openPopupHandler_",null);_.A([_.mX("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],uL.prototype,"closePopupHandler_",null);
_.A([_.bN("data.headerImage"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],uL.prototype,"onHeaderImageChanged_",null);_.A([_.bN("data.headerImageWidth"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],uL.prototype,"onHeaderImageWidthChanged_",null);_.A([_.bN("data.thumbnail"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],uL.prototype,"onThumbnailChanged_",null);
_.A([_.mX("yt-navigate"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],uL.prototype,"onYtNavigate_",null);_.A([_.mX("yt-img-shadow-loaded"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],uL.prototype,"onThumbnailLoaded_",null);_.A([_.mX("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.zQ]),_.r("design:returntype")],uL.prototype,"onYtServiceRequestSent_",null);
_.A([_.mX("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.S2]),_.r("design:returntype")],uL.prototype,"onYtServiceRequestCompleted_",null);_.A([_.oW({is:"yt-confirm-dialog-renderer",noInjection:!0})],uL);var nyu;var tyX;var g2=function(){return _.e.apply(this,arguments)||this};
_.p(g2,_.e);g2.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.jr(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
g2.prototype.computeConfirmButton_=function(x){var L={text:x.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};x.confirmNavigationEndpoint?L.navigationEndpoint=x.confirmNavigationEndpoint:x.confirmServiceEndpoint&&(L.serviceEndpoint=x.confirmServiceEndpoint);return L};
g2.prototype.computeShowTitle_=function(x){return!(x==null||!x.title)};
_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],g2.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],g2.prototype,"data",void 0);_.A([_.F({computed:"computeShowTitle_(data)"}),_.r("design:type",Boolean)],g2.prototype,"showTitle",void 0);_.A([_.oW({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],g2);
_.q(g2,"yt-fancy-dismissible-dialog-renderer",function(){if(tyX===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;nyu===void 0&&(nyu=document.createElement("template"));var S=nyu;D.call(L,S.content.cloneNode(!0),x.content.firstChild);tyX=x}x=tyX;return x});var xWq;var Lbu;var kG=function(){var x=_.e.apply(this,arguments)||this;x.spinnerActive=!1;return x};
_.p(kG,_.e);kG.prototype.created=function(){lS5(2201)};
kG.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
kG.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
kG.prototype.onIronOverlayClosed=kG.prototype.onIronOverlayClosed;kG.prototype.onIronOverlayOpened=kG.prototype.onIronOverlayOpened;_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],kG.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.EW),_.r("design:type",Object)],kG.prototype,"tpYtIronOverlayBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],kG.prototype,"data",void 0);_.A([_.F(),_.r("design:type",Object)],kG.prototype,"spinnerActive",void 0);
_.A([_.mX("iron-overlay-opened"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],kG.prototype,"onIronOverlayOpened",null);_.A([_.mX("iron-overlay-closed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],kG.prototype,"onIronOverlayClosed",null);_.A([_.oW({is:"yt-loading-renderer",disableElementRegistration:!0})],kG);
_.q(kG,"yt-loading-renderer",function(){if(Lbu===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;xWq===void 0&&(xWq=document.createElement("template"));var S=xWq;D.call(L,S.content.cloneNode(!0),x.content.firstChild);Lbu=x}x=Lbu;return x},{mode:2});var DWg;var Sr3;var px=function(){var x=_.e.apply(this,arguments)||this;x.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);x.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);x.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";x.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return x};
_.p(px,_.e);_.K=px.prototype;_.K.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.K.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.K.onDarkModeToggledAction=function(x){this.isDarkTheme=x};
_.K.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.K.openPopupHandler_=function(x){x.detail===this.hostElement&&this.hostElement.hidden&&_.dg(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.K.onDismissButtonTap_=function(){var x;this.closeOnDismissButton_.has(((x=this.data)==null?void 0:x.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.dg(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.K.onAcceptButtonTap_=function(){var x;this.closeOnAcceptButton_.has(((x=this.data)==null?void 0:x.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.dg(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.K.computeHasHeader_=function(x){return!!x.headerBackgroundImage};
_.K.computeLayoutStyle_=function(x){return x};
_.K.computePopupSize_=function(x){return x};
_.K.computeIconType_=function(x){return x.dialogIcon&&x.dialogIcon.iconType?x.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":x.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":x.dialogIcon.iconType:""};
_.K.computeIsLogo_=function(x){return!!x.dialogIcon&&!!x.dialogIcon.iconType&&(x.dialogIcon.iconType==="YOUTUBE_LOGO"||x.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||x.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.K.computeHasCustomLogo=function(x){return!(x==null||!x.headerForegroundImage)};
_.K.computeCustomLogo=function(x,L){if(x!=null&&x.headerForegroundImage)return x.headerForegroundImageDark?L?x.headerForegroundImageDark:x.headerForegroundImage:x.headerForegroundImage};
_.K.computeHeaderBackgroundImage=function(x,L){if(x!=null&&x.headerBackgroundImage)return L&&(x==null?0:x.headerBackgroundImageDark)?x.headerBackgroundImageDark:x.headerBackgroundImage};
_.K.shouldShowIconContainer=function(x,L){return x&&!L};
_.K.shouldShowNonYouTubeIcon=function(x,L){return!x&&!L};
_.K.getLogoImageId=function(x){var L,D,S;return(x=(L=this.computeCustomLogo(x,this.isDarkTheme))==null?void 0:(D=L.thumbnails)==null?void 0:(S=D[0])==null?void 0:S.height)&&x%31===0?"custom-logo-with-padding":"custom-logo"};
px.prototype.openPopupHandler_=px.prototype.openPopupHandler_;px.prototype.dataChanged_=px.prototype.dataChanged_;_.A([_.b(_.GZ.YtRendererstamperBehavior),_.r("design:type",Object)],px.prototype,"ytRendererstamperBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],px.prototype,"ytRendererBehavior",void 0);_.A([_.F(),_.r("design:type",Boolean)],px.prototype,"isDarkTheme",void 0);
_.A([_.F({computed:"computeCustomLogo(data, isDarkTheme)"}),_.r("design:type",Object)],px.prototype,"customLogo",void 0);_.A([_.F({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.r("design:type",Object)],px.prototype,"headerBackgroundImage",void 0);_.A([_.F(),_.r("design:type",Object)],px.prototype,"data",void 0);_.A([_.F({computed:"computeHasHeader_(data)"}),_.r("design:type",Boolean)],px.prototype,"hasHeader",void 0);
_.A([_.F({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.r("design:type",Object)],px.prototype,"layoutStyle",void 0);_.A([_.F({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.r("design:type",Object)],px.prototype,"popupSize",void 0);_.A([_.F({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],px.prototype,"hasLogo",void 0);
_.A([_.F({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],px.prototype,"hasCustomLogo",void 0);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],px.prototype,"dataChanged_",null);_.A([_.mX("yt-popup-opened"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],px.prototype,"openPopupHandler_",null);
_.A([_.oW({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],px);
_.q(px,"yt-upsell-dialog-renderer",function(){if(Sr3===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;DWg===void 0&&(DWg=document.createElement("template"));var S=DWg;D.call(L,S.content.cloneNode(!0),x.content.firstChild);Sr3=x}x=Sr3;return x},{mode:2});var QX3=_.B(function(x){return _.M("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogHeader"},_.M(_.d,{cond:x.title,then:function(L){return _.M("h2",{class:"miniAppGameInfoDialogViewModelHeaderTitle"},L)}}))},"bj"),JlI=_.B(function(x){return _.M("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogFooter"},_.M(_.Fj,{data:x.closeButton},{buttonViewModel:function(L){return _.M("div",null,_.M(_.qP,{data:L.data}))}}))},"cj"),Kbu=_.B(function(x){var L=x.data;
return _.M(_.I1,null,_.M("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfoDetails"},_.M("div",{class:"miniAppGameInfoDialogViewModelGameImageWrapper"},_.M(_.d,{cond:function(){return!!L().image&&!!L().title},
then:function(){return _.M(_.Ku,{data:function(){return L().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.M("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfo"},_.M(_.d,{cond:function(){return L().title},
then:function(D){return _.M("h3",{class:"miniAppGameInfoDialogViewModelTitle"},D)}}),_.M(_.d,{cond:function(){return L().primaryGenre},
then:function(D){return _.M("span",{class:"miniAppGameInfoDialogViewModelGenre"},D)}}))),_.M(_.d,{cond:function(){var D=L().description;
return D&&D.length<=150},
then:function(){return _.M("div",{class:"miniAppGameInfoDialogViewModelGameDescriptionWrapper"},_.M("span",{class:"miniAppGameInfoDialogViewModelGameDescription"},function(){return L().description}))}}))},"dj"),Oys=_.B(function(x){x=x.infoRows;
var L=_.yY().resolve(_.HQ),D=_.u("enable_displaying_ppn");return _.M("div",{class:"miniAppGameInfoDialogViewModelGameInfoRowsWrapper"},_.M(_.R1,{each:x},function(S){return _.M("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.M(_.d,{cond:function(){return S.label},
then:function(Q){return _.M("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},Q)}}),_.M(_.d,{cond:function(){return S.attributedLabel},
then:function(Q){return _.M("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},_.M(_.kP,{text:Q,noPreWrap:!0}))}}),_.M(_.d,{cond:function(){return S.value},
then:function(Q){return _.M("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},Q)}}),_.M(_.d,{cond:function(){return S.attributedValue},
then:function(Q){return _.M("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},_.M(_.kP,{text:Q,noPreWrap:!0}))}}))}),_.M(_.d,{cond:function(){return D&&L.clientData.has("post_play_nonce")},
then:function(){return _.M("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.M("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},"Post Play Nonce"),_.M("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},L.getData("post_play_nonce")))}}))},"ej"),Zy3=_.B(function(x){var L=x.data;
return _.M("yt-mini-app-game-info-dialog-view-model",{class:"miniAppGameInfoDialogViewModelHost"},_.M(QX3,{title:function(){return L().dialogTitle}}),_.M(Kbu,{data:L}),_.M(_.d,{cond:function(){return L().infoRow},
then:function(D){return _.M(Oys,{infoRows:D})}}),_.M(JlI,{closeButton:function(){return L().closeButton}}))},"fj");
Zy3.idomCompat=!0;_.dF(Zy3,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.pJ}});_.dF(_.B(function(x){var L=x.data;return _.M("yt-gulp-triggering-dialog-view-model",{class:_.gF("ytGulpTriggeringDialogViewModelHost","ytGulpTriggeringDialogViewModelResetSpacing"),dialog:!0},_.M(_.Ku,{data:function(){return L().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.M("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.M("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.M(_.d,{cond:function(){var D=L().ytLogo;return D?D.iconType:null},
then:function(D){return _.M(_.YO,{icon:D,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.M("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.M("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.M(_.kP,{text:function(){return L().title}})),_.M("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.M(_.kP,{text:function(){return L().body}})),_.M("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.M(_.kP,{text:function(){return L().verifyStateText}}))),
_.M("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.M("div",null,_.M(_.Fj,{data:function(){return L().dismissButton}},{buttonViewModel:_.qP})),_.M("div",null,_.M(_.Fj,{data:function(){return L().linkParentButton}},{buttonViewModel:_.qP})))))},"gj"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.pJ}});var yl5=_.B(function(x){var L=x.data;x=_.ZH(function(){return L().agreements},[]);
return _.M("installment-agreements-view-model",{class:_.gF("ytInstallmentAgreementsViewModelHost")},_.M(_.R1,{each:x},function(D){return _.M("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.M("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.M(_.kP,{text:D.label})),_.M("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.M(_.Fj,{data:function(){return D.openButton}},{buttonViewModel:_.qP})))}))},"hj");
yl5.idomCompat=!0;var I0G=_.B(function(x){var L=_.O(_.mU(function(){var z,xf;return((z=x.data().createPlaylistDialogFormSchema)==null?0:(xf=z.initialValues)==null?0:xf.title)?x.data().createPlaylistDialogFormSchema.initialValues.title:""})),D=L.next().value,S=L.next().value;
L=_.O(_.mU(function(){x.data();return!1}));
var Q=L.next().value,J=L.next().value;L=_.O(_.mU(function(){x.data();return!1}));
var Z=L.next().value,y=L.next().value;L=_.O(_.mU(function(){var z,xf;return(z=x.data().createPlaylistDialogFormSchema)==null?void 0:(xf=z.initialValues)==null?void 0:xf.visibility}));
var E=L.next().value,P=L.next().value;L=_.O(_.mU(function(){x.data();return!1}));
var v=L.next().value,V=L.next().value;L=_.O(_.mU(function(){var z,xf;return(z=x.data().createPlaylistDialogFormSchema)==null?void 0:(xf=z.initialValues)==null?void 0:xf.isCollaborative}));
var h=L.next().value,H=L.next().value,k=_.x3("div");_.Us(function(){var z=k.value.querySelector("textarea");z&&(z.value=D())},"axFRaf");
_.wO(function(){var z;_.CjX((z=x.data().createPlaylistDialogFormSchema)==null?void 0:z.id,{onSubmit:function(){var xf=D();var K3=E(),P4=h(),kf=x.data();xf={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:xf,privacyStatus:K3,videoIds:kf.videoIds,sourcePlaylistId:kf.sourcePlaylistId,params:P4?kf.createPlaylistParamsCollaborationEnabled:kf.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.yY().resolve(_.E2).resolveCommand(xf)},
isValid:function(){return Q()&&!Z()&&!v()}})});
var T=function(z){if(z!==void 0&&(S(z),!Q()&&z.length>0&&J(!0),Q())){var xf=rLu(x.data());if(xf){var K3=xf.minLength;xf=xf.maxLength;K3&&z.length<K3?y(!0):xf&&z.length>xf?y(!0):y(!1)}}},G=function(){var z=!(!h()||E()!=="PRIVATE");
V(z)},U=function(z){z!==void 0&&(P(z),G())},l=function(){if(v())return iX3(x.data())},X=function(){H(!h());
G()},f=function(){return{validate:function(z){if(Q()){var xf=rLu(x.data());
if(xf){var K3=xf.minLength;xf=xf.translations;if(K3&&z.length<K3)return xf==null?void 0:xf.minLengthErrorMessage}}}}},N=function(){var z=rLu(x.data()),xf=z==null?void 0:z.maxLength,K3;
z=z==null?void 0:(K3=z.translations)==null?void 0:K3.maxLengthErrorMessage;if(xf&&z)return{maxChars:xf,errorMessage:z}};
return _.M("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.M("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:k},_.M(_.Fj,{data:function(){return x.data().playlistTitle}},{textFormFieldViewModel:function(z){return _.M(_.bL3,{data:z.data,
text:D,onInput:T,validation:f,characterLimit:N})},
textFieldViewModel:function(z){return _.M(_.muI,{data:z.data,text:D,onInput:T,validation:f,characterLimit:N})}})),_.M("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.M(_.Fj,{data:function(){return x.data().playlistVisibility}},{dropdownViewModel:function(z){return _.M(_.wo$,{data:z.data,
onSelected:U,error:l})}})),_.M(_.d,{cond:function(){return!!x.data().playlistCollaborate},
then:function(){return _.M("div",null,_.M(_.Fj,{data:function(){return x.data().playlistCollaborate}},{switchListItemViewModel:function(z){return _.M(_.uFH,{data:z.data,
onTap:X})}}))}}))},"jj");var E1W=_.B(function(x){var L=x.data;return _.M("upsell-offer-table-cell-content-view-model",null,_.M("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},_.M(_.GS,null,_.M(_.TS,{when:function(){return L().iconType}},function(){return _.M("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},_.M(_.YO,{icon:function(){return L().iconType.toString()}}))}),_.M(_.TS,{when:function(){return L().title}},function(){return _.M(_.kP,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle",
text:function(){return L().title}})}),_.M(_.TS,{when:function(){return L().subtitle}},function(){return _.M(_.kP,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle",
text:function(){return L().subtitle}})}),_.M(_.TS,{when:function(){return L().infoText}},function(){return _.M(_.kP,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText",
text:function(){return L().infoText}})}),_.M(_.TS,{when:function(){return L().featureDescription}},function(){return _.M(_.kP,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription",
text:function(){return L().featureDescription}})}),_.M(_.TS,{when:function(){return L().note}},function(){return _.M(_.kP,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote",
text:function(){return L().note}})}))))},"kj");
E1W.idomCompat=!0;var MYl=_.B(function(x){var L=x.data;return _.M("upsell-offer-table-cell-view-model",null,_.M("div",{class:_.gF("ytUpsellOfferTableCellViewModelCellWrapper",function(){return L().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"})},_.M(_.Fj,{data:function(){return L().contents}},{upsellOfferTableCellContentViewModel:E1W})))},"lj");
MYl.idomCompat=!0;var dWl=_.B(function(x){var L=x.data;var D=x.upsellTableIsFirstRow;var S=function(){return(D==null?0:D())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},Q=function(){return(D==null?0:D())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"};
return _.M("ytm-upsell-offer-table-row-view-model",null,_.M("div",{class:"ytUpsellOfferTableRowViewModelHost"},_.M(_.Fj,{data:function(){return L().rowHeaderCell}},{upsellOfferTableCellViewModel:function(J){return _.M("div",{class:S},_.M(MYl,{data:J.data}))}}),_.M(_.Fj,{data:function(){return L().contentCells}},{upsellOfferTableCellViewModel:function(J){return _.M("div",{class:Q},_.M(MYl,{data:J.data}))}})))},"mj");
dWl.idomCompat=!0;var P2l=_.B(function(x){var L=x.data;return _.M("ytm-upsell-offer-table-view-model",null,_.M("div",{class:"ytUpsellOfferTableViewModelHost"},_.M("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},_.M(_.Fj,{data:function(){return L().rows}},{upsellOfferTableRowViewModel:function(D,S){return _.M(dWl,{data:D.data,
upsellTableIsFirstRow:function(){return S()===0}})}}))))},"nj");
P2l.idomCompat=!0;var jXI=_.B(function(x){var L=_.ZH(x.noPadding,!1),D=function(){var J,Z;return(Z=(J=x.data().logo.accessibilityData)==null?void 0:J.label)!=null?Z:""},S=function(){return x.data().offerTable},Q={};
return _.M("upsell-view-model",{class:_.gF("ytUpsellViewModelHost",(Q.ytUpsellViewModelHostNoPadding=function(){return L()},Q.ytUpsellViewModelHostWide=function(){return S()!==void 0},Q))},_.M("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.M(_.d,{cond:function(){return _.oB(x.data().logo)},
then:function(J){return _.M(_.Ku,{data:J,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:D})}})),_.M("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.M(_.kP,{text:function(){return x.data().title}})),_.M("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.M(_.R1,{each:function(){var J;
return(J=x.data().subtitles)!=null?J:[]},
keyBy:"INDEX"},function(J){var Z={};return _.M("div",{class:_.gF("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(Z.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return S()!==void 0},Z))},_.M(_.kP,{text:J}))})),_.M("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.M(_.R1,{each:function(){var J;
return(J=x.data().benefitInfos)!=null?J:[]},
keyBy:"INDEX"},function(J){return _.M(_.d,{cond:function(){return J().info},
then:function(Z){return _.M("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.M(_.YO,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.M(_.kP,{text:Z}))}})})),_.M(_.d,{cond:function(){return S()!==void 0},
then:function(){return _.M("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},_.M(P2l,{data:S}))}}),_.M("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.M(_.R1,{each:function(){var J;
return(J=x.data().legalInfos)!=null?J:[]},
keyBy:"INDEX"},function(J){var Z={};return _.M("div",{class:_.gF("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(Z.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return S()!==void 0},Z))},_.M(_.kP,{text:J}))})))},"oj");var v13=_.B(function(x){var L=x.data;x={};x=(x.ytMiniAppScoreChallengeViewModelScoreRadial=!0,x.ytMiniAppScoreChallengeViewModelDarkScoreRadial=fsu(),x);return _.M("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.M("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return L().title}),_.M("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return L().subtitle}),_.M("div",{class:_.Uv(x)},_.M("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return L().score})),_.M("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return L().prompt}))},"pj");var VYq=function(){this.store=_.KI();this.formId=""};
VYq.prototype.onInit=function(x){x.formId&&(this.formId=x.formId,this.store.dispatch(_.MU({type:"SET_CURRENT_FORM_ID",payload:{formId:this.formId}})))};var hAq=_.B(function(x){function L(y){if(y&&(y=_.g(y,_.RB)))return Object.assign({},y,{isSelected:J()})}
var D=_.O(_.mU(function(){var y,E;return(E=(y=_.g(x.data().option,_.RB))==null?void 0:y.isSelected)!=null?E:!1})),S=D.next().value,Q=D.next().value,J=S;
_.wO(function(){var y;_.CjX((y=x.data().formSchema)==null?void 0:y.id,{onSubmit:function(){var E=_.yY().resolve(_.E2),P=!!x.data().selectedCommand,v=!!x.data().unselectedCommand;if(J()){if(P)var V=x.data().selectedCommand}else v&&(V=x.data().unselectedCommand);V=_.fI(V);L(x.data().option)&&!V?(E="",!P&&v?E="selected ":P&&!v&&(E="unselected "),P=new _.RZ("No "+E+"command found for SelectionListItemFormViewModel"),_.BI(P)):V&&E.resolveCommand(V)},
isValid:function(){return!0}})});
var Z=function(){Q(!J())};
_.wH(function(){var y,E,P=(y=x.data())==null?void 0:(E=y.formSchema)==null?void 0:E.id;P&&_.bk()().delete(P)});
return _.M("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.M("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.M(_.kP,{text:function(){return x.data().paragraph}})),_.M(_.d,{cond:function(){return L(x.data().option)},
then:function(y){return _.M(_.Ij,{data:y,isCompact:!0,hideSelectionTextChevron:!0,onTap:Z,disableHorizontalPadding:!0})}}))},"qj");var HyG=_.B(function(x){var L=x.data;var D=x.disablePadding;var S=x.className;var Q=_.x3("yt-dialog-header-view-model"),J=function(){var y=L().imageBanner;a:switch(L().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var E="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:E="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:y,style:E,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},Z=function(){return L().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.wO(function(){var y=function(){_.dg(Q.value,"yt-refit-popups-action")},E;
(E=Q.value)==null||E.addEventListener("image-loaded",y);_.wH(function(){var P;(P=Q.value)==null||P.removeEventListener("image-loaded",y)})});
x={};return _.M("yt-dialog-header-view-model",{el:Q,class:_.gF(S,(x.ytDialogHeaderViewModelHost=!0,x.ytDialogHeaderViewModelHostDisablePadding=D,x))},_.M(_.d,{cond:function(){return L().imageBanner},
then:function(){var y={};return _.M("div",{class:_.gF(S,(y.ytDialogHeaderViewModelBanner=!0,y.ytDialogHeaderViewModelBannerFullBleed=Z,y)),style:_.bc({"max-height":function(){return L().assetContainerMaxHeight!==void 0?L().assetContainerMaxHeight+"px":void 0}})},_.M(_.CD,{data:J,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.M(_.d,{cond:function(){return L().headerBlock},
then:function(){return _.M("div",{class:"ytDialogHeaderViewModelHeaderBlock"},_.M(_.Fj,{data:function(){return L().headerBlock}},{contentPreviewImageViewModel:function(y){return _.M(_.CD,{data:y.data,
notifyOnLoaded:!0})}}))}}),_.M(_.d,{cond:function(){return L().customBanner},
then:function(y){return _.M("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.M(_.Fj,{data:y},{avatarStackViewModel:_.yn}))}}),_.M(_.d,{cond:function(){return L().headline},
then:function(y){return _.M("h2",null,_.M(_.kP,{text:y,className:"ytDialogHeaderViewModelText"}))}}))},"rj");
HyG.idomCompat=!0;var u3q=_.B(function(x){var L=_.OAb(function(){return x.data().formId}),D=L.submitForm,S=L.isValid;
return _.M("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.M(_.Fj,{data:function(){return x.data().panelFooter}},{panelFooterViewModel:function(Q){return _.M(_.Bb,{data:Q.data,
disablePadding:!0,disablePrimaryButton:function(){return!S()},
onClickPrimaryButton:function(){D()}})}}))},"sj");var g1Y=_.B(function(x){var L=function(){var D,S;return(S=(D=_.g(x.data().rendererContext,_.Fm))==null?void 0:D.label)!=null?S:""};
return _.M("yt-dialog-image-content-view-model",{class:_.gF("ytDialogImageContentViewModelHost",x.className)},_.M(_.d,{cond:function(){return _.oB(x.data().image)},
then:function(D){var S={};return _.M("div",{style:_.bc((S.width=(0,_.ON)(function(){var Q;return(Q=x.data().imageMaxWidth)!=null?Q:""}),S)),
class:"ytDialogImageContentViewModelImage"},_.M(_.Ku,{data:D,alt:L,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"}))}}),_.M(_.kP,{text:function(){return x.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"tj");var mWW=_.B(function(x){var L=_.ym(x,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),D=L.elRefCallback;x=L.iconWiz;var S=L.assetWiz,Q=L.assetType,J=L.titleWiz,Z=L.leadingActionHeaderWiz,y=L.trailingActionHeaderWiz,E=L.headerPosition,P=L.contentWiz,v=L.buttonLayout,V=L.buttonStyle,h=L.primaryButtonWiz,H=L.secondaryButtonWiz,k=L.contentAlignment,T=L.isFullscreen,G=L.width,U=L.maxHeight,l=L.isHeaderWizDefined,
X=L.headerWiz,f=L.isFooterWizDefined,N=L.footerWiz;L=_.x3("dialog-layout",function(Rn){D==null||D(Rn)});
var z=S?function(){return S({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,xf=h?function(){var Rn={};
return h({buttonOverrides:function(){return{style:(V==null?void 0:V())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.gF((Rn["yt-spec-dialog-layout__dialog-layout-button"]=!0,Rn["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(v==null?void 0:v())===0||(v==null?void 0:v())===2},Rn))})}:void 0,K3=H?function(){var Rn={};
return H({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.gF((Rn["yt-spec-dialog-layout__dialog-layout-button"]=!0,Rn["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(v==null?void 0:v())===0||(v==null?void 0:v())===2},Rn))})}:void 0,P4=function(){return(!!J||!!Z||!!y)&&E()===0},kf={},H4={},p3={},w0={};
return _.M("dialog-layout",{el:L,class:_.gF((kf["yt-spec-dialog-layout"]=!0,kf["yt-spec-dialog-layout--dialog-layout-fullscreen"]=T,kf["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!T()},kf["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return U()===1},kf["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(Q==null?void 0:Q())===1},kf)),
style:function(){return(G==null?void 0:G())!==void 0?"width: "+G+"px;":""}},x?_.M("div",{class:_.gF((H4["yt-spec-dialog-layout__dialog-layout-icon"]=!0,H4["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!S&&E()===1},H4["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return k()===1},H4))},_.M(x,null)):null,_.M(_.d,{cond:l,
then:function(){return X?_.M("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.M(X,null)):null},
else:function(){return _.M(_.I1,null,_.M(_.d,{cond:P4,then:function(){return _.M(kOq,{contentAlignment:k,LeadingActionHeader:Z,TrailingActionHeader:y,Title:J,isAboveAsset:!!z})}}),z?_.M("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.M(z,null)):null)}}),_.M("div",{class:_.gF((p3["yt-spec-dialog-layout__dialog-layout-container"]=!0,p3["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(k==null?void 0:k())===1},p3["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-top-padding"]=
function(){return!J&&!(X&&l())||!!z&&(E==null?void 0:E())===0},p3))},_.M(_.d,{cond:function(){return J&&!X&&(E==null?void 0:E())===1},
then:function(){return _.M(kOq,{contentAlignment:k,LeadingActionHeader:Z,TrailingActionHeader:y,Title:J,isAboveAsset:!1})}}),P?_.M("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.M("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.M(P,null))):null,_.M(_.d,{cond:f,
then:function(){return N?_.M("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.M(N,null)):null}}),xf||K3?_.M(p_$,{footerClasses:_.gF((w0["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,w0["yt-spec-dialog-layout__dialog-layout-footer"]=!0,w0["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(v==null?void 0:v())===2},w0["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(v==null?void 0:v())===1},w0)),
PrimaryButton:xf,SecondaryButton:K3}):null))},"uj"),kOq=_.B(function(x){var L=_.ym(x,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),D=L.contentAlignment,S=L.LeadingActionHeader;x=L.Title;var Q=L.TrailingActionHeader,J=L.isAboveAsset,Z=L.enableLeadingActionHeader;L={};return _.M("div",{class:_.gF((L["yt-spec-dialog-layout__dialog-header-container"]=!0,L["yt-spec-dialog-layout__dialog-header"]=!0,L["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=J,L["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(D==null?void 0:D())===1&&Z()},L))},_.M(_.d,{cond:function(){return Z()},
then:function(){return S?_.M("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.M(S,null)):null}}),x?_.M("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.M(x,null)):null,Q?_.M("div",null,_.M(Q,null)):null)},"vj"),p_$=_.B(function(x){var L=x.footerClasses;
var D=x.PrimaryButton;x=x.SecondaryButton;return _.M("div",{class:L},x?_.M(x,null):null,D?_.M(D,null):null)},"wj");var bys=_.B(function(x){var L=x.data;return _.M("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.M("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.M(_.Fj,{data:function(){return L().avatar}},{avatarViewModel:_.O0})),_.M("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.M(_.kP,{text:function(){return L().title}})),_.M(_.kP,{text:function(){return L().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"xj");var Yr$=_.B(function(x){return _.M("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.M("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.M(_.kP,{text:function(){return x.data().inviteMessage}})),_.M("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.M(_.kP,{text:function(){return x.data().attributedAccountSectionHeaderText}})),_.M("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.M(_.Fj,{data:function(){return x.data().accountAvatar}},{avatarViewModel:_.O0}),_.M("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.M(_.kP,{text:function(){return x.data().accountName}}),_.M("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.M(_.kP,{text:function(){return x.data().handle}}))),_.M(_.Fj,{data:function(){return x.data().trailingButton}},{buttonViewModel:_.qP})),_.M("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.M(_.kP,{text:function(){return x.data().termsOfService}})))},"yj");var Fbg=_.B(function(x){var L=x.data;return _.M("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.M("div",{class:"ytAccessConfirmationViewModelContent"},_.M(_.Fj,{data:function(){var D;return(D=L().avatar)!=null?D:L().dualAvatar}},{dualAvatarViewModel:function(D){return _.M(_.yGI,{data:D.data,
className:"ytAccessConfirmationViewModelAvatar"})},
decoratedAvatarViewModel:function(D){return _.M(_.Z6,{data:D.data,className:"ytAccessConfirmationViewModelAvatar"})}}),_.M("h2",{class:"ytAccessConfirmationViewModelTitle"},_.M(_.kP,{text:function(){return L().title}})),_.M(_.kP,{text:function(){return L().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"zj");var sXu=_.B(function(x){var L=x.data;var D=void 0;x=_.O(_.mU(function(){var P;return((P=_.g(L().content,_.KA))==null?void 0:P.defaultSelectedKey)||""}));
var S=x.next().value,Q=x.next().value,J,Z=function(){Q("");var P;(P=D)!=null&&P.store.dispatch(_.MU({type:"RESET_COMMAND_MAP"}))};
_.wO(function(){D=new VYq;window.addEventListener("yt-popup-closed",Z)});
_.Us(function(){if(D&&J!==L().formId&&(D.onInit(L()),(J=L().formId)&&S())){var P=D,v={key:S()};v.command&&P.store.dispatch(lVu(J,v.command))}},"c2n8Gf");
_.wH(function(){window.removeEventListener("yt-popup-closed",Z)});
var y=function(P,v,V){v.key&&V&&v.key!==S()&&(Q(v.key),D&&v.command&&D.store.dispatch(lVu(V,v.command)))},E=function(){if(_.g(L().content,_.KA))return!(S==null?0:S())};
return _.M("yt-dialog-view-model",{class:_.gF("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.M(mWW,{headerWiz:function(){return _.M("span",{skip:!0},_.M(_.Fj,{data:function(){return L().header}},{dialogHeaderViewModel:function(P){return _.M(HyG,{data:P.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!L().header},
contentWiz:function(){return _.M("span",{skip:!0},_.M(_.Fj,{data:function(){return L().customContent?L().customContent:L().content}},{basicContentViewModel:_.yv_,
createPlaylistDialogFormViewModel:I0G,collaborativePlaylistInviteMessageViewModel:Yr$,miniAppScoreChallengeViewModel:v13,radioButtonGroupViewModel:function(P){var v=P.data;return _.M(_.uYq,{data:v,selectedKey:S,onSelected:y,groupName:function(){return v().formId}})},
selectionListItemFormViewModel:hAq,upsellViewModel:function(P){return _.M(jXI,{data:P.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:bys,installmentAgreementsViewModel:yl5,accessConfirmationViewModel:Fbg,listViewModel:function(P){return _.M(_.sxA,{data:P.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:g1Y}))},
footerWiz:function(){return _.M("span",{skip:!0},_.M(_.Fj,{data:function(){return L().footer}},{panelFooterViewModel:function(P){return _.M(_.Bb,{data:P.data,
disablePadding:!0,disablePrimaryButton:E})},
formPanelFooterViewModel:u3q,formFooterViewModel:function(P){return _.M(_.jc5,{data:P.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!L().footer}}))},"Bj");
sXu.idomCompat=!0;_.dF(sXu,"yt-dialog-view-model",{props:{data:_.pJ},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var Tpg=_.B(function(x){var L=x.data;var D=_.sh4(function(){return L().rendererContext});
x={};return _.M("yt-panel-header-view-model",{class:_.gF("ytPanelHeaderViewModelHost",(x.ytPanelHeaderViewModelHostHideDivider=function(){return!!L().shouldHideDivider},x.ytPanelHeaderViewModelHostCompact=function(){return!!L().subtitle},x)),
"aria-label":function(){var S;return(S=D())==null?void 0:S.label}},_.M("div",{class:"ytPanelHeaderViewModelTitleWrapper"},_.M(_.d,{cond:function(){return L().title},
then:function(S){return _.M("h2",{class:"ytPanelHeaderViewModelTitleHeader"},_.M(_.kP,{text:S,className:"ytPanelHeaderViewModelTitle"}))}}),_.M(_.d,{cond:function(){return L().subtitle},
then:function(S){return _.M(_.kP,{text:S,className:"ytPanelHeaderViewModelSubtitle"})}})),_.M("div",{class:"ytPanelHeaderViewModelTrailingButtons"},_.M(_.Fj,{data:function(){return L().trailingButtons}},{buttonViewModel:function(S){return _.M(_.qP,{data:S.data,
className:"ytPanelHeaderViewModelButton"})}})))},"Cj");
Tpg.idomCompat=!0;var eAs=_.B(function(x){var L=_.kO(function(J){var Z;if((Z=x.skipContentClick)==null?0:Z.call(x))return!1;x.onContentWrapperClick(J);return!0}),D,S,Q;
return _.M("div",{class:_.gF("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return x.isAnimating()?"transform: translateY("+x.currentY()+"px);transition: 0.2s":""}},(D=x.header)==null?void 0:D.call(x),_.M("div",{id:x.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.bc({"max-height":(0,_.ON)(x.maxHeightForContentWrapper)}),"on:scroll":XX9(x.onScroll),"on:touchmove":XX9(function(J){return void J.stopPropagation()})},_.M("div",{el:{onRender:x.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":L},(S=x.body)==null?void 0:S.call(x))),(Q=x.footer)==null?void 0:Q.call(x))},"Dj");
eAs.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var RA3=_.B(function(x){var L=_.ZH(x.leadingLabel),D=_.ZH(x.trailingLabel),S=_.ZH(x.footerButtonType),Q=function(){return L()||D()||x.hasPrimaryButton()||x.hasSecondaryButton()},J={},Z=_.gF("yt-spec-bottom-sheet-layout__primary-button",(J["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return S()===0&&x.hasPrimaryButton()},J["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return S()===1&&x.hasPrimaryButton()},J["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return S()===2&&x.hasPrimaryButton()},J["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return S()===3&&x.hasPrimaryButton()},J));
J={};var y=_.gF("yt-spec-bottom-sheet-layout__secondary-button",(J["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return S()===1&&x.hasSecondaryButton()},J["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return S()===2&&x.hasSecondaryButton()},J["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return S()===3&&x.hasPrimaryButton()},J));
return _.M(_.d,{cond:x.hasFooterOverride,then:function(){var E;return _.M(_.I1,null,(E=x.footerOverride)==null?void 0:E.call(x))},
else:function(){return _.M(_.d,{cond:Q,then:function(){return _.M("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.M(_.d,{cond:function(){return L()||D()},
then:function(){var E={};return _.M("div",{class:_.gF("yt-spec-bottom-sheet-layout__footer-label-wrapper",(E["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!x.hasPrimaryButton()},E))},_.M(_.d,{cond:L,
then:function(){return _.M("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},L)}}),_.M(_.d,{cond:D,
then:function(){return _.M("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},D)}}))}}),_.M(_.d,{cond:function(){return x.hasPrimaryButton()||x.hasSecondaryButton()},
then:function(){var E={};return _.M("div",{class:_.gF("yt-spec-bottom-sheet-layout__footer-button-wrapper",(E["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.MJh,E))},_.M(_.d,{cond:function(){return x.hasSecondaryButton()&&S()!==0},
then:function(){var P;return _.M("div",{class:y},(P=x.secondaryButton)==null?void 0:P.call(x))}}),_.M(_.d,{cond:x.hasPrimaryButton,
then:function(){var P;return _.M("div",{class:Z},(P=x.primaryButton)==null?void 0:P.call(x))}}))}}))}})}})},"Ej");
RA3.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var GOg=_.B(function(x){var L=_.ZH(x.title),D=_.ZH(x.subtitle);return _.M("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:x.headerId,"on:touchstart":_.kO(function(S){var Q;(Q=x.touchstart)==null||Q.call(x,S);return!1}),
"on:touchmove":_.kO(function(S){var Q;(Q=x.touchmove)==null||Q.call(x,S);return!1}),
"on:touchend":_.kO(function(S){var Q;(Q=x.touchend)==null||Q.call(x,S);return!1})},_.M("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.M(_.d,{cond:x.hasHeaderOverride,
then:function(){var S;return _.M(_.I1,null,(S=x.headerOverride)==null?void 0:S.call(x))},
else:function(){var S={};return _.M("div",{class:_.gF((S["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,S["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=L,S))},_.M("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.M(_.d,{cond:L,then:function(){return _.M(_.I1,null,_.M("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},L),_.M(_.d,{cond:D,then:function(){return _.M("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
D)}}))}})),_.M(_.d,{cond:function(){return L()&&x.hasActionHeader()},
then:function(){var Q;return _.M("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(Q=x.actionHeader)==null?void 0:Q.call(x))}}))}}))},"Fj");
GOg.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.B(function(x){function L(z){if(!U&&typeof MutationObserver!=="undefined"){var xf={childList:!0};"MutationObserver"in window&&(U=new MutationObserver(D.bind(void 0,z)),U.observe(z,xf))}}
function D(z){typeof U!=="undefined"&&(l["content-wrapper"]===void 0&&(l["content-wrapper"]=z.children[0].clientHeight),H(l["content-wrapper"]),h()>k()||T(h()))}
function S(){V(window.innerHeight);h()>k()||T(h());X.isFullScreen[0]()&&h()>k()?f().dispatch("Snap To Full Screen",{maxHeight:G()}):f().dispatch("Snap To Neutral Position",{maxHeight:k()})}
function Q(z){document.body.style.overscrollBehavior="none";z.preventDefault();f().dispatch("Touch Start",{event:z})}
function J(z){z.preventDefault();f().dispatch("Touch Move",{event:z,contentScrollable:h()>k(),fullContentWrapperHeight:G(),contentWrapperHeight:k(),contentHeightMap:l,contentWrapperId:"content-wrapper",header:ne3(x),footer:ne3(x)})}
function Z(){document.body.style.overscrollBehavior="";X.isFullScreen[0]()?X.currentY[0]()>=60?f().dispatch("Snap To Neutral Position",{maxHeight:k()}):f().dispatch("Snap To Full Screen",{maxHeight:G()}):X.currentY[0]()>=60?y():X.currentY[0]()<=-60&&h()>k()?f().dispatch("Snap To Full Screen",{maxHeight:G()}):f().dispatch("Snap To Neutral Position",{maxHeight:k()})}
function y(){f().dispatch("Close Sheet",{clientHeight:v(),maxHeight:0});setTimeout(function(){cLq()},250)}
var E=_.O(_.HB(window.innerHeight,void 0,"Q6Nekc")),P=E.next().value;E=E.next().value;var v=P,V=E;E=_.O(_.HB(0,void 0,"vjnlmb"));P=E.next().value;E=E.next().value;var h=P,H=E;E=_.O(_.mU(function(){var z=ne3(x);return.6*v()-oel(z)-ass(z)}));
P=E.next().value;E=E.next().value;var k=P,T=E,G=function(){var z=ne3(x);return v()-oel(z)-ass(z)-24-24},U=null,l={},X={initialY:_.HB(0,void 0,"B0aY2c"),
currentY:_.HB(0,void 0,"nLPMcf"),isAnimating:_.HB(!1,void 0,"lXnnZ"),isFullScreen:_.HB(!1,void 0,"rZZoFe"),maxHeightForContentWrapper:_.mU(k)},f=function(){var z=null;return function(){if(!z){var xf={initialY:X.initialY[0](),currentY:X.currentY[0](),isAnimating:X.isAnimating[0](),isFullScreen:X.isFullScreen[0](),maxHeightForContentWrapper:X.maxHeightForContentWrapper[0]()};z=z6u(xf)}return z}}();
_.wO(function(){window.addEventListener("resize",S);f().subscribe(function(z){X.initialY[1](z.initialY);X.currentY[1](z.currentY);X.isAnimating[1](z.isAnimating);X.isFullScreen[1](z.isFullScreen);X.maxHeightForContentWrapper[1](z.maxHeightForContentWrapper)})});
_.wH(function(){window.removeEventListener("resize",S);U&&(U.disconnect(),U=null)});
var N=_.gF({"bottom-sheet-content-without-icon":function(){var z;return!((z=x.shouldShowIcons)==null?0:z.call(x))}});
return _.M("bottom-sheet-layout",null,_.M(eAs,{contentWrapperId:"content-wrapper",isAnimating:function(){return X.isAnimating[0]()},
currentY:function(){return X.currentY[0]()},
maxHeightForContentWrapper:function(){return X.maxHeightForContentWrapper[0]()},
shouldShowIcons:x.shouldShowIcons,skipContentClick:x.skipContentClick,onScroll:function(){var z=document.getElementById("header-wrapper"),xf=document.getElementById("content-wrapper");if(z&&xf){var K3={};K3=(K3["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,K3["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,K3);z.className=xf.scrollTop>1?_.Uv(K3):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:cLq,contentWrapperEl:function(z){L(z);requestAnimationFrame(function(){D(z)})},
header:function(){return _.M(GOg,{touchstart:Q,touchmove:J,touchend:Z,title:x.headerTitle,subtitle:x.headerSubtitle,headerId:"header-wrapper",headerOverride:x.headerFn,hasHeaderOverride:x.hasHeaderFn,actionHeader:x.headerActionHeader,hasActionHeader:x.hasHeaderActionHeader})},
footer:function(){return _.M(RA3,{footerButtonType:x.footerButtonType,leadingLabel:x.footerLeadingLabel,trailingLabel:x.footerTrailingLabel,primaryButton:x.footerPrimaryButton,hasPrimaryButton:x.hasFooterPrimaryButton,secondaryButton:x.footerSecondaryButton,hasSecondaryButton:x.hasFooterSecondaryButton,footerOverride:x.footerFn,hasFooterOverride:x.hasFooterFn})},
body:function(){return _.M(_.d,{cond:x.hasContentFn,then:function(){var z;return _.M("div",{class:N},(z=x.contentFn)==null?void 0:z.call(x))}})}}))},"Gj").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var C2Y=_.B(function(x){var L=_.yY().resolve(_.SE);return _.M("yt-contextual-sheet-layout",{class:"ytContextualSheetLayoutHost","on:click":_.kO(function(){return void L.closeSheet()})},_.M(_.d,{cond:function(){return!!x.header},
then:function(){return _.M("div",{class:"ytContextualSheetLayoutHeaderContainer"},x.header())}}),_.M(_.d,{cond:function(){return!!x.content},
then:function(){return _.M("div",{class:"ytContextualSheetLayoutContentContainer"},x.content())}}),_.M(_.d,{cond:function(){return!!x.footer},
then:function(){return _.M("div",{class:"ytContextualSheetLayoutFooterContainer"},x.footer())}}))},"Hj");
C2Y.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var l09=_.B(function(x){x=x.data;var L=_.x3("yt-sheet-view-model",function(S){if(_.u("web_focus_first_element_sheet")||!_.u("sheet_focus_first_killswitch"))return S.addEventListener("focus",function(){zDs(S)}),function(){S.removeEventListener("focus",function(){zDs(S)})}}),D={};
return _.M("yt-sheet-view-model",{"on:mousedown":_.kO(function(S){_.u("sheet_focus_first_killswitch")||S.currentTarget!==S.target&&S.preventDefault()}),
"on:focus":_.kO(function(){_.u("sheet_focus_first_killswitch")||zDs(L.value)}),
class:_.gF("ytSheetViewModelHost",(D.ytSheetViewModelContextual=!0,D.ytSheetViewModelDisableBackdropFilter=_.u("web_disable_backdrop_filter"),D)),el:L,tabindex:-1},_.M(_.d,{cond:x,then:function(S){return _.M(C2Y,{header:function(){return _.M(_.Fj,{data:function(){return S().header}},{panelHeaderViewModel:Tpg})},
content:function(){return _.M(_.Fj,{data:function(){return S().content}},{listViewModel:function(Q){return _.M(_.sxA,{data:Q.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:jXI,miniAppScoreChallengeViewModel:v13})},
footer:function(){return _.M(_.Fj,{data:function(){return S().footer}},{panelFooterViewModel:_.Bb})}})}}))},"Ij");
l09.idomCompat=!0;_.dF(l09,"yt-sheet-view-model",{props:{data:_.pJ}});var w_l=_.B(function(x){var L=function(){var D;return(D=x.data().enableDebuggingFeatures)!=null?D:!1};
return _.M("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.M(_.R1,{each:function(){var D;return(D=x.data().stickers)!=null?D:[]}},function(D){return _.M(UW9,{data:function(){return D},
debugMode:L})}))},"Jj"),UW9=_.B(function(x){var L=_.ym(x,{debugMode:!1}).debugMode,D=_.ZH(function(){var E;
return(E=x.data().region)==null?void 0:E.w},0),S=_.ZH(function(){var E;
return(E=x.data().region)==null?void 0:E.h},0),Q=_.ZH(function(){var E;
return(E=x.data().region)==null?void 0:E.x},0),J=_.ZH(function(){var E;
return(E=x.data().region)==null?void 0:E.y},0),Z=_.kO(function(){var E=x.data().onTap;
E&&_.Xf(E)}),y={};
return _.M("div",{class:_.gF("ytStoriesStickerLayerViewModelSticker",(y.ytStoriesStickerLayerViewModelDebugMode=L,y)),style:_.bc({width:function(){return 100*D()+"%"},
height:function(){return 100*S()+"%"},
left:function(){return 100*Q()+"%"},
top:function(){return 100*J()+"%"},
"flex-direction":function(){return t29(x.data().flexDirection)},
"justify-content":function(){return x1G(x.data().justifyContent)},
"align-items":function(){return LBG(x.data().alignItems)}}),
"on:click":Z},_.M(_.Fj,{data:function(){return x.data().button||x.data().toggleButton}},{buttonViewModel:function(E){return _.M(_.qP,{data:E.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(E){return _.M(_.JT,{data:E.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"Kj");var Wbl=_.B(function(x){var L=function(){return x.data()},D={},S=_.O(_.HB(!1,void 0,"Adcqrf")),Q=S.next().value,J=S.next().value,Z=_.ZH(function(){return L().backgroundColor},0);
S=_.ZH(function(){return L().actionButtons},[]);
var y=_.ZH(function(){return L().stickerLayer},{}),E=function(){var v,V;
return{animationRef:D,animationConfig:{autoplay:!1,loop:!1,path:(V=(v=L().foregroundAnimation)==null?void 0:v.url)!=null?V:"",name:"stories_item_foreground_animation"},listeners:{data_ready:function(){J(!0)},
complete:function(){x.navigateToNextItemOnLottieComplete()}}}},P=function(){var v,V,h,H,k,T,G,U;
return{animationConfig:{autoplay:(T=(v=L().backgroundAnimation)==null?void 0:(V=v.settings)==null?void 0:V.autoplay)!=null?T:!1,loop:(G=(h=L().backgroundAnimation)==null?void 0:(H=h.settings)==null?void 0:H.loop)!=null?G:!1,path:(U=(k=L().backgroundAnimation)==null?void 0:k.url)!=null?U:"",name:"stories_item_background_animation"}}};
_.Us(function(){if(x.isVisible()&&Q()){var v;(v=D.lottieEl)==null||v.play();x.animationRef()&&(x.animationRef().lottieEl=D.lottieEl)}else{var V;(V=D.lottieEl)==null||V.stop()}},"yCE6kf");
return _.M("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.bc({"background-color":function(){return _.XA(Z())+";"}})},_.M("div",{class:"ytStoriesItemViewModelAssetContent"},_.M(_.d,{cond:function(){return!!L().backgroundAnimation},
then:function(){return _.M(_.fJ,{data:P,animationName:function(){return P().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.M(_.d,{cond:function(){return!!L().backgroundImage},
then:function(){return _.M(_.Ku,{data:function(){return L().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.M(_.d,{cond:function(){return!!L().foregroundAnimation},
then:function(){return _.M(_.fJ,{data:E,animationName:function(){return E().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.M(_.d,{cond:function(){return!!L().foregroundImage},
then:function(){return _.M(_.Ku,{data:function(){return L().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.M("div",{class:"ytStoriesItemViewModelTopShadow"}),_.M(_.Fj,{data:function(){return y()}},{storiesStickerLayerViewModel:w_l})),_.M("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.bc({"background-color":function(){return _.XA(Z())}})},_.M("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.M(_.R1,{each:S},function(v){return _.M(Bpl,{data:function(){return v},
pauseAutoNavigation:x.pauseAutoNavigation})}))))},"Mj"),qru={style:"overlay",
type:"outline"},Bpl=_.B(function(x){var L={};return _.M("div",{class:_.gF("ytStoriesItemViewModelActionButton",(L.ytStoriesItemViewModelStretchedActionButton=function(){return x.data().size==="STORIES_BUTTON_SIZE_STRETCH"},L)),
"on:click":_.kO(x.pauseAutoNavigation)},_.M(_.Fj,{data:function(){return x.data().button}},{buttonViewModel:function(D){return _.M(_.qP,{data:D.data,
buttonOverrides:qru})}}))},"Nj");var Als={sources:[{url:"https://www.gstatic.com/music/image_composition/dna_recap/youtube_logo_full_color_278x60.png"}]};_.dF(_.B(function(x){var L=function(){var H4;return(H4=x.data().startIndex)!=null?H4:0},D=_.O(_.mU(L)),S=D.next().value,Q=D.next().value;
D=_.O(_.HB(!1,void 0,"hu8VSd"));var J=D.next().value,Z=D.next().value,y=function(){var H4;return(H4=x.data().storyItems)!=null?H4:[]},E={},P=_.x3("yt-stories-viewer-view-model"),v=function(){return x.data().dismissButton},V=function(){var H4;
return _.fI((H4=_.g(v(),_.de))==null?void 0:H4.onTap)},h=_.x3("div"),H,k,T=!1,G=function(){var H4;
(H4=H)==null||H4.cancel();H=U(S()).animate([{transform:"scaleX(0)"},{transform:"scaleX(1)"}],{duration:9E3,easing:"linear",fill:"forwards"});H.onfinish=function(){var p3=_.g(y()[S()],nsg),w0,Rn;p3!=null&&p3.foregroundAnimation&&((p3==null?0:(w0=p3.foregroundAnimation)==null?0:w0.url)||(p3==null?0:(Rn=p3.foregroundAnimation)==null?0:Rn.payload))||(S()!==y().length-1?(Q(S()+1),G()):V()&&_.o6(V()))}},U=function(H4){return h.value.children[H4].children[0]},l=function(){for(var H4=0;H4<S();H4++)U(H4).style.transform=
"scaleX(1)"},X=function(){T||(J()?Z(!1):(S()===y().length-1&&V()&&_.o6(V()),U(S()).style.transform="scaleX(1)",S()!==y().length-1&&(Q(S()+1),G())))},f=function(){T||(J()?Z(!1):(U(S()).style.transform="scaleX(0)",S()!==0&&Q(S()-1),G()))},N=function(){Z(!0)},z=function(){U(S()).style.transform="scaleX(1)";
S()!==y().length-1?(Q(S()+1),G()):V()&&_.o6(V())};
D=function(){T=!1;k=setTimeout(function(){Z(!0);T=!0},300)};
var xf=function(){clearTimeout(k);T&&J()&&Z(!1)};
_.Us(function(){if(J()){var H4;(H4=H)==null||H4.pause();var p3;(p3=E.lottieEl)==null||p3.pause()}else{var w0;(w0=H)==null||w0.play();var Rn;(Rn=E.lottieEl)==null||Rn.play()}},"iO2i3d");
_.Us(function(){l();S()===L()&&G()},"lE01H");
var K3=function(H4){H4.key==="ArrowLeft"?f():H4.key==="ArrowRight"&&X()},P4=function(H4){if(H4.target===P.value){(H4=V())&&_.o6(H4);
clearTimeout(k);var p3;(p3=H)==null||p3.cancel();window.removeEventListener("keydown",K3);window.removeEventListener("yt-popup-closed",P4)}},kf=function(H4){H4.target===P.value&&(window.addEventListener("keydown",K3),window.addEventListener("yt-popup-closed",P4))};
_.wO(function(){l();G();window.addEventListener("yt-popup-opened",kf)});
return _.M("yt-stories-viewer-view-model",{el:P,class:_.gF("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.M("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.M("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":_.kO(f),"on:mousedown":_.kO(D),"on:mouseup":_.kO(xf),"on:mouseleave":_.kO(xf)}),_.M("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":_.kO(X),"on:mousedown":_.kO(D),"on:mouseup":_.kO(xf),"on:mouseleave":_.kO(xf)})),
_.M("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},_.M(_.Fj,{data:y},{storiesItemViewModel:function(H4,p3){var w0=H4.data;return _.M(_.d,{cond:function(){return Math.abs(p3()-S())<=1},
then:function(){var Rn={};return _.M("div",{class:_.gF("ytStoriesViewerViewModelStoryItem",(Rn.ytStoriesViewerViewModelActiveStoryItem=function(){return p3()===S()},Rn))},_.M(Wbl,{data:w0,
pauseAutoNavigation:N,navigateToNextItemOnLottieComplete:z,isVisible:function(){return p3()===S()},
animationRef:E}))}})}})),_.M("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:h},_.M(_.R1,{each:y},function(){return _.M("div",{class:"ytStoriesViewerViewModelProgressBar"},_.M("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.M("div",{class:"ytStoriesViewerViewModelTopBarContainer"},_.M(_.Ku,{data:Als,
alt:"YouTube Logo",className:"ytStoriesViewerViewModelYouTubeLogo"}),_.M("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.M(_.Fj,{data:v},{buttonViewModel:_.qP}))))},"Qj"),"yt-stories-viewer-view-model",{props:{data:_.pJ}});_.dF(_.B(function(x){var L=x.data;var D=_.x3("yt-gen-ai-feedback-form-view-model"),S=[];return _.M("yt-gen-ai-feedback-form-view-model",{el:D,class:"ytGenAiFeedbackFormViewModelHost"},_.M(_.kP,{text:function(){return L().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.M("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.M(_.Fj,{data:function(){return L().feedbackChips}},{toggleButtonViewModel:function(Q){var J=Q.data;
return _.M(_.JT,{data:J,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(Z){var y=J();y=_.g(y,_.j3);y=_.g(y==null?void 0:y.defaultButtonViewModel,_.de).trackingParams;Z?S.push(y):(Z=S.indexOf(y),Z>-1&&S.splice(Z,1))}})}})),_.M(_.kP,{text:function(){return L().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.M("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.M(_.Fj,{data:function(){return L().submitButton}},{buttonViewModel:function(Q){return _.M(_.qP,{data:Q.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){D1l(D.value,S,L().uniqueId)}})}}),_.M(_.Fj,{data:function(){return L().moreFeedbackButton}},{buttonViewModel:function(Q){return _.M(_.qP,{data:Q.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"Rj"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.pJ},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var mE=function(){return _.e.apply(this,arguments)||this};
_.p(mE,_.e);mE.prototype.created=function(){lS5(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(tg9);var x=_.yY().resolve(_.nzg);x&&(x.container=this.ytPopupContainerBehavior);if(x=_.yY().resolve(_.SE))x.container=this.ytPopupContainerBehavior;if(x=_.yY().resolve(_.Qw)){var L=this.ytPopupContainerBehavior;x.containerWasInjected?_.qy(Error("mj")):x.container=L}};
mE.prototype.ensurePopupBelowPlayer=function(x,L){var D=_.yY().resolve(_.ZN(_.KX));if(!D||!D.isOnWatch()||!_.Zs())return!1;D=D.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.sO().height>D+this.getPopupHeight(x,L)?(x.style.top="auto",x.style.bottom="0px"):(x.style.top=D+"px",x.style.bottom="auto");return!0};
mE.prototype.getPopupHeight=function(x,L){L&&(x.cachedPopupHeight=0);if(!x.cachedPopupHeight){L=0;var D=x.clientHeight,S=window.getComputedStyle(x);L+=parseInt(S.marginTop,10);L+=parseInt(S.marginBottom,10);x.cachedPopupHeight=D+L}return x.cachedPopupHeight};
mE.prototype.getElement=function(x){return document.createElement(x)};
_.A([_.b(YEW.YtPopupContainerBehavior),_.r("design:type",Object)],mE.prototype,"ytPopupContainerBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],mE.prototype,"ytComponentBehavior",void 0);_.A([_.w({disableElementRegistration:!0,is:"ytd-popup-container"})],mE);
_.q(mE,"ytd-popup-container",function(){if(VJq!==void 0)return VJq;var x=document.createElement("template");_.m(x,"\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");x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);return VJq=x},{mode:1});var $WY;var rlX={};rlX.YtLogYpcFlowCommandsBehavior=[_.ir.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(x){_.g(x,vju)&&(x=_.g(x,vju))&&(x.serializedTransactionFlowLoggingParams?_.jds(x.serializedTransactionFlowLoggingParams):x.serializedYpcCancelFlowLoggingParams?(x=x.serializedYpcCancelFlowLoggingParams)&&_.YC("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",x):x.serializedYpcResumeFlowLoggingParams?(x=x.serializedYpcResumeFlowLoggingParams)&&_.YC("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",x):x.serializedYpcPauseFlowLoggingParams?(x=x.serializedYpcPauseFlowLoggingParams)&&
_.YC("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",x):x.serializedYpcRefundFlowLoggingParams?(x=x.serializedYpcRefundFlowLoggingParams)&&bBq("YPC_EVENT_TYPE_START",x):x.serializedYpcDeactivateFlowLoggingParams?(x=x.serializedYpcDeactivateFlowLoggingParams)&&_.YC("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",x):x.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(x=x.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.YC("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",x))},
handleLogYpcFlowDismiss_:function(x){_.g(x,jFl)&&(x=_.g(x,jFl),x.serializedTransactionFlowLoggingParams?_.vq3(x.serializedTransactionFlowLoggingParams):x.serializedYpcCancelFlowLoggingParams?(x=x.serializedYpcCancelFlowLoggingParams)&&_.YC("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",x):x.serializedYpcResumeFlowLoggingParams?(x=x.serializedYpcResumeFlowLoggingParams)&&_.YC("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",x):x.serializedYpcPauseFlowLoggingParams?(x=
x.serializedYpcPauseFlowLoggingParams)&&_.YC("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",x):x.serializedYpcRefundFlowLoggingParams&&(x=x.serializedYpcRefundFlowLoggingParams)&&bBq("YPC_EVENT_TYPE_CANCEL",x))}}];var NpW={};NpW.YtCancelRecurrenceBehavior=[_.jZ.YtComponentBehavior,_.QKG,{attached:function(){var x=this;V_X(this,function(L,D){return x.ypcCancelRecurrenceHandler(L,D)})},
ypcCancelRecurrenceHandler:function(x,L){var D=this;if(!L||!L.ypcCancelRecurrenceEndpoint)return!1;if(!L.ypcCancelRecurrenceEndpoint.params)return _.N9(Error("Ml")),!0;_.fF(this.hostElement);var S=_.cD.instance,Q=_.yY().resolve(_.ZN(_.NB));S&&_.nu(S,L)?_.tD(S,L).then(function(J){D.ypcCancelRecurrenceSuccess_(x,L,{data:J})},function(J){D.ypcCancelRecurrenceFailure_(x,L,J)}).thenCatch(function(){_.N9(Error("Nl"))}):Q?Q.requestDataForServiceEndpoint(L).then(function(J){D.ypcCancelRecurrenceSuccess_(x,
L,J)},function(J){D.ypcCancelRecurrenceFailure_(x,L,J)}).thenCatch(function(){_.N9(Error("Nl"))}):_.N9(Error("Ol"));
return!0},
ypcCancelRecurrenceSuccess_:function(x,L,D){_.oS(this.hostElement);D.data||(D={data:D});D.data&&D.data.actions&&_.v$(this.hostElement,D.data.actions,this.hostElement);D.data.messageRenderer?Ft9(L.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(L=L.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.YC("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",L);_.MF(x,"yt-service-request-completed",D)},
ypcCancelRecurrenceFailure_:function(x,L,D){_.oS(this.hostElement);Ft9(L.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.MF(x,"yt-service-request-error",{error:D,params:[x,L]})}}];var iyq=function(x,L){_.Dp.call(this,L)};
_.p(iyq,olu);var f0l={};f0l.YtCompleteTransactionBehavior=[_.jZ.YtComponentBehavior,_.QKG,{attached:function(){var x=this;V_X(this,function(L,D){return x.ypcCompleteTransactionHandler(L,D)})},
completeTransaction:function(x,L){var D=this;L={payments_payload:window.btoa(L.integratorData),buybucket_params:x.data.buybucketParams,offer_params:x.data.offerParams};var S=_.yY().resolve(_.NB),Q=x.data.completeTransactionEndpoint,J=this.get("ypcCompleteTransactionEndpoint.actions",Q);J&&_.v$(this.hostElement,J,this.hostElement);return(J=_.cD.instance)&&_.nu(J,Q)?_.tD(J,Q,L).then(function(Z){return!Z||(Z==null?0:Z.error)?(Z=D.get("data.serializedTransactionFlowLoggingParams",x),_.Bp(new Pm("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
Z))):{data:Z}}).then(function(Z){return D.handleCompleteTransactionSuccess_(Z,x)},function(){return D.handleCompleteTransactionFailure_(x)}):S.requestDataForServiceEndpoint(Q,L).then(function(Z){return D.handleCompleteTransactionSuccess_(Z,x)},function(){return D.handleCompleteTransactionFailure_(x)})},
handleCompleteTransactionSuccess_:function(x,L){x.data||(x={data:x});if(x.data.messageRenderer)return _.Bp(new iyq(x.data.messageRenderer));if(x.data.trackingParams){var D=_.A3(),S=_.qu();D&&S&&_.XI(D,S,_.CI(x.data.trackingParams))}L=this.get("data.serializedTransactionFlowLoggingParams",L);YOq(L);return _.V0(x)},
handleCompleteTransactionFailure_:function(x){x=this.get("data.serializedTransactionFlowLoggingParams",x);_.Sr("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",x);return _.Bp(new Pm("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",x))},
ypcCompleteTransactionHandler:function(x,L){var D=this;if(!L.ypcCompleteTransactionEndpoint)return!1;if(!L.ypcCompleteTransactionEndpoint.transactionParams)return _.N9(Error("Pl")),!0;L.ypcCompleteTransactionEndpoint&&L.ypcCompleteTransactionEndpoint.gtmData&&_.Q$(L.ypcCompleteTransactionEndpoint.gtmData);var S=_.yY().resolve(_.ZN(_.NB));if(S){_.fF(this.hostElement);var Q=_.cD.instance;Q&&_.nu(Q,L)?_.tD(Q,L).then(function(J){return!J||(J==null?0:J.error)?(J=D.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
L),_.Bp(new Pm("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",J))):{data:J}}).then(function(J){_.MF(x,"yt-service-request-completed");
D.ypcCompleteTransactionSuccess_(L,J)},function(){return D.ypcCompleteTransactionFailure_(L)}):S.requestDataForServiceEndpoint(L).then(function(J){_.MF(x,"yt-service-request-completed");
D.ypcCompleteTransactionSuccess_(L,J)},function(){return D.ypcCompleteTransactionFailure_(L)})}return!0},
ypcCompleteTransactionSuccess_:function(x,L){_.oS(this.hostElement);L.data||(L={data:L});_.dg(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);L.data.messageRenderer||L.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(x):(_.Q$('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",x));L.data.actions&&(x=atl(L.data.actions),L=zuq(L.data.actions),x.length&&_.jq(this.hostElement,
x),L.length&&_.v$(this.hostElement,L,this.hostElement))},
ypcCompleteTransactionFailure_:function(x){_.oS(this.hostElement);_.dg(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",x,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(x,L,D){if(L=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",L))L={serializedTransactionFlowLoggingParams:L},D&&(L.errorType=D),_.Uh(x,L),_.wz()}}];var o1W={};o1W.YtEndpointHandlerWithYpcBehavior=[_.QKG,_.ir.YtActionHandlerBehavior,[{openWalletDialog:function(x,L,D,S,Q,J,Z){var y=this,E=_.xe();L=L.replace(/-/g,"+").replace(/_/g,"/");var P=_.FI().get("hl");_.Vh0(_.JK(_.QA),L,E.resolve,Q,function(v){J&&J();E.reject(v)},P,function(v){return y.onServerBackendAnalyticEvent_(x,D,v)},this.onDialogClose_.bind(this),S,Z);
return E.promise},
openFixFlowDialog:function(x,L,D,S){x=x.replace(/-/g,"+").replace(/_/g,"/");_.JK(_.QA).openFixFlowDialog(x,L,D,S)},
onDialogClose_:function(){_.dg(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(x,L,D){_.MF(x,"yt-commerce-action-init-done");L&&_.jq(this.hostElement,[L,{backend_analytics:D}])}}],
_.rs.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(x,L){x=this.get("data.nativeFlowEndpoint",L);L=this.get("data.fallbackEndpoint",L);x?_.jq(this.hostElement,[x]):L&&_.MF(this.hostElement,"yt-navigate",{endpoint:L})}}],
NpW.YtCancelRecurrenceBehavior,f0l.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 x=this;V_X(this,function(L,D,S){return x.handleYPCEndpoint(L,D,S)});
this.ypcRegisterActionMapJobId_=_.TG(_.WW,function(){x.registerActionMap(x.buyFlowActionMap_)})},
detached:function(){var x=this;_.WW.cancelJob(this.ypcRegisterActionMapJobId_);_.TG(_.WW,function(){x.unregisterActionMap(x.buyFlowActionMap_)})},
handleYPCEndpoint:function(x,L,D){var S=L.ypcGetCartEndpoint;if(S){_.A_("commerce_transaction");var Q=S.gtmId;Q&&_.SZ(Q);(S=S.gtmData)&&_.Q$(S)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",L)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(x,L),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",L)!=null?(this.handleYPCFixInstrumentEndpoint_(x,L),!0):L.ypcPauseSubscriptionCommand?(Ecl(this.hostElement,x,L,D),
!0):L.ypcResumeSubscriptionCommand?(PSX(this.hostElement,x,L),!0):L.getPaymentInstrumentsParamsCommand?(ZFl(this.hostElement,x,L),!0):L.ypcHandleTransactionEndpoint?(KBl(this.hostElement,x,L,D),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(x,L){var D=this;_.$T("ttcr",void 0,"commerce_transaction");L=L.ypcGetCartEndpoint;var S=L.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,Q=S.encryptedPurchaseParams,J=S.serializedTransactionFlowLoggingParams,Z=S.serializedPaymentsClientParams,y=this.createGetCartResponseFromParams_(S,L.offerParams,J);this.changeButtonState(x,!0);_.$x(this.openWalletDialog(x,Q,S.ypcLogWalletAnalyticDataEndpoint,J,function(){D.changeButtonState(x,!1)},function(){D.changeButtonState(x,
!1)},Z).then(function(E){return D.handleBuyFlowCompleteCallback_(x,y,E)},function(){return D.handleOnLoadError(y)}).then(function(E){return void D.handlePostPurchaseSuccess_(x,y,E)},function(E){return void D.handlePostPurchaseError_(E)}),function(){D.changeButtonState(x,!1);
x instanceof Element&&_.MF(x,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(x,L,D){var S=x.completeTransactionEndpoint,Q=x.handleTransactionEndpoint;L={data:{offerParams:window.btoa(L),serializedTransactionFlowLoggingParams:D}};Q?L.data.handleTransactionEndpoint=Q:L.data.completeTransactionEndpoint=S;x.onCartDismissCommand&&(L.data.onCartDismissCommand=x.onCartDismissCommand);return L},
onGetCartServiceRequestCompleted_:function(x,L){var D=this,S=x.target;if(L&&L.data&&L.data.messageRenderer)_.oS(this.hostElement),this.handleMessageRenderer_(L.data.messageRenderer),this.changeButtonState(S,!1);else{var Q=this.get("data.encryptedPurchaseParams",L),J=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",L),Z=this.get("data.ypcLogWalletAnalyticDataEndpoint",L),y=this.get("data.serializedPaymentsClientParams",L),E=this.getLoggingParams_(L);if(E||Q||J)x.stopPropagation(),_.$T("ttcr",
void 0,"commerce_transaction"),Q||_.oS(this.hostElement),this.changeButtonState(S,!1),J?_.dg(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.$6("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:J}}},this]):Q&&(this.changeButtonState(S,!0),x=null,x=this.openWalletDialog(S,Q,Z,E,function(){_.oS(D.hostElement);D.changeButtonState(S,!1)},function(){_.oS(D.hostElement);
D.changeButtonState(S,!1)},y),_.$x(x.then(function(P){return D.handleBuyFlowCompleteCallback_(S,L,P)},function(){return D.handleOnLoadError(L)}).then(function(P){return D.handlePostPurchaseSuccess_(S,L,P)},function(P){return D.handlePostPurchaseError_(P)}),function(){D.changeButtonState(S,!1);
_.MF(S,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(x,L){L&&L.endpoint&&L.endpoint.ypcGetCartEndpoint&&!L.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",L.endpoint.ypcGetCartEndpoint)&&_.v$(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",L.endpoint.ypcGetCartEndpoint)],x.target),_.fF(this.hostElement),this.changeButtonState(x.target,!0))},
onServiceRequestError_:function(x,L){if(L&&L.params&&L.params.length){L=_.O(L.params);for(var D=L.next();!D.done;D=L.next())if((D=D.value)&&D.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",D.ypcGetCartEndpoint)&&_.v$(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",D.ypcGetCartEndpoint)],x.target);_.oS(this.hostElement);this.changeButtonState(x.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(x,L,D){var S=D.integratorData;return S==null||S===""||D.error!=null?(S=this.getLoggingParams_(L),String(D.error)==="-1"?(L.data.onCartDismissCommand&&_.v$(this.hostElement,[L.data.onCartDismissCommand],x),_.Bp(new Pm("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",S,!0))):_.Bp(new Pm("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",S))):L.data.handleTransactionEndpoint?OFI(this.hostElement,L.data.handleTransactionEndpoint,{payments_payload:S,funds_guarantee_callback_client_data:D.integratorClientCallbackData}):
this.completeTransaction(L,D)},
handlePostPurchaseSuccess_:function(x,L,D){L=D.data;var S=!1,Q,J;if(L&&((Q=L.command)==null?0:(J=Q.commandExecutorCommand)==null?0:J.commands)){var Z,y;Q=(Z=L.command)==null?void 0:(y=Z.commandExecutorCommand)==null?void 0:y.commands;for(Z=0;Z<Q.length;Z++)if(_.g(Q[Z],_.$KH)){S=!0;break}}S||(L&&L.gtmDatas&&L.gtmDatas.length?_.Q$(L.gtmDatas[0]):_.Q$('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));D.data&&D.data.actions&&(L=atl(D.data.actions),D=zuq(D.data.actions),L.length&&
_.jq(this.hostElement,L),D.length&&_.v$(this.hostElement,D,x))},
handlePostPurchaseError_:function(x){x&&x.payload&&x.payload.isUserDismiss||_.BI(Error("Rl"))},
handleOnLoadError:function(x){x=this.getLoggingParams_(x);return _.Bp(new Pm("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",x))},
getLoggingParams_:function(x){return this.get("data.serializedTransactionFlowLoggingParams",x)},
handleMessageRenderer_:function(x){var L=_.Wd(x,"renderer"),D=_.$6("openPopupConfig");L==="confirmDialogRenderer"&&D&&_.dg(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:D.popupTypeMap[L],popup:x}},this])},
handleYPCFixInstrumentEndpoint_:function(x,L){var D=this,S=L.ypcFixInstrumentEndpoint;L=S.encryptedFixInstrumentParameters;this.logFixFopEvent_(S,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(x,!0);this.openFixFlowDialog(L,function(Q,J){D.onFixFlowCompleteCallback_(S,Q,J)},function(){return D.changeButtonState(x,!1)},function(){D.changeButtonState(x,!1);
D.logFixFopEvent_(S,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(x,L,D){var S=_.o1("payments.business.integration.scenario.FixInstrument");if(L==S.IntegratorCallbackType.ON_COMPLETE){L="FIX_FOP_EVENT_TYPE_CANCEL";var Q=null;D.error!=null?D.error!=S.OnCompleteCallbackError.USER_CANCELLED&&(_.v$(this.hostElement,[x.errorAction],this.hostElement),L="FIX_FOP_EVENT_TYPE_FAILURE",Q="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.v$(this.hostElement,[x.successAction],this.hostElement),L="FIX_FOP_EVENT_TYPE_SUCCESS");_.v$(this.hostElement,[x.onFinishAction],
this.hostElement);this.logFixFopEvent_(x,L,Q)}},
logFixFopEvent_:function(x,L,D){(x=x.serializedFixFopLoggingParams)?(L={eventType:L,serializedFixFopLoggingParams:x},D!=null&&(L.errorType=D),_.Uh("fixFopFlow",L),_.wz()):_.BI(Error("Sl"))},
changeButtonState:function(x,L){_.u("enable_ypc_spinners")&&x&&(x.is==="yt-button-renderer"||x.is==="ytd-button-renderer")&&(x.disabled=L)}}];var a0u=function(x){this.JSC$32430_clientRoot=x;this.feedbackCollectorActionMap={"yt-help-dialog-requested":vc3,"yt-feedback-dialog-requested":jSs,"yt-signal-action-help":V83,"yt-signal-action-send-feedback":hMq,"yt-send-feedback-action":uml,"yt-user-feedback-endpoint":gcl};_.cI(_.aR.getInstance(),this.feedbackCollectorActionMap,this.JSC$32430_clientRoot)},zAX;var X_3=function(x){this.JSC$32435_clientRoot=x;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":kku.bind(null,this.JSC$32435_clientRoot),"yt-signal-action-delete-all-downloads":m1G,"yt-signal-action-delete-download":bFW,"yt-signal-action-delete-playlist-download":FBG,"yt-signal-action-install-pwa":CSW,"yt-signal-action-refresh-downloads":RMg,"yt-offline-video-endpoint":U1q,"yt-offline-playlist-endpoint":Bq$,"yt-update-local-app-setting-command":q3s,"yt-offline-orchestration-action-command":$1I,
"yt-signal-action-undo-delete-download":Tqs,"yt-local-watch-history-command":iFG};_.cI(_.aR.getInstance(),this.downloadManagerActionMap,this.JSC$32435_clientRoot);_.wY.instance=new _.wY},clW;var bL=function(){var x=_.e.apply(this,arguments)||this;x.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_"};x.remoteApi_=null;return x};
_.p(bL,_.e);_.K=bL.prototype;
_.K.ready=function(){_.u("polymer_enable_mdx")&&(YIY({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.u("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.u("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.u("enable_cast_short_lived_lounge_token")}),_.My("yt-remote-connection-change",this.handleConnectionChange_,this),_.My("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=ltg())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.K.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.K.handleConnectionChange_=function(x){(this.mdxConnected=x)?(x=TF$(),!x&&dj$()&&Pc$()&&(x={key:"cast-selector-receiver",name:Pc$()}),x=x.name):x=null;this.receiverName=x;_.Q1(this.remoteApi_);(this.remoteApi_=ltg())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.K.handleReceiverAvailabilityChange_=function(){var x=slX();dj$()&&_.Ad("yt-remote-cast-available")&&x.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=x.length>0};
_.K.handleRemoteQueueChange_=function(){var x=this.currentVideoId_,L=this.currentListId_,D=vK(this.remoteApi_);this.currentVideoId_=D.videoId;this.currentListId_=D.listId;this.currentVideoId_&&_.dg(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.u("polymer_enable_mdx_queue")?this.currentListId_:null,x,L])};
_.K.handleAddToQueueAction_=function(x){x=_.g(x,tQ5);this.remoteApi_&&(x.videoId?this.remoteApi_.addVideo(x.videoId):x.playlistId&&this.remoteApi_.addPlaylist(x.playlistId))};
_.K.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.K.handleInsertInQueueAction_=function(x){x=_.g(x,xXI);this.remoteApi_&&x.videoId&&this.remoteApi_.JSC$19890_insertVideo(x.videoId)};
_.K.handleRemoveFromQueueAction_=function(x){x=_.g(x,LPs);this.remoteApi_&&x.videoId&&this.remoteApi_.JSC$19890_removeVideo(x.videoId)};
_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],bL.prototype,"ytActionHandlerBehavior",void 0);_.A([_.F(),_.r("design:type",Object)],bL.prototype,"appId",void 0);_.A([_.F(),_.r("design:type",Boolean)],bL.prototype,"mdxConnected",void 0);_.A([_.F(),_.r("design:type",Boolean)],bL.prototype,"receiverAvailable",void 0);_.A([_.F(),_.r("design:type",Object)],bL.prototype,"receiverName",void 0);_.A([_.F(),_.r("design:type",Object)],bL.prototype,"currentVideoId_",void 0);
_.A([_.F(),_.r("design:type",Object)],bL.prototype,"currentListId_",void 0);_.A([_.oW({is:"yt-mdx-manager",disableElementRegistration:!0})],bL);_.q(bL,"yt-mdx-manager",void 0,{mode:2});var n1s;var tY5;var YG=function(){var x=_.e.apply(this,arguments)||this;x.APP_IDS={ytr:3,ytm:5};x.JSC$21113_timeoutId_=0;x.actionMap={"yt-open-create-family-dialog":"open"};return x};
_.p(YG,_.e);_.K=YG.prototype;_.K.created=function(){lS5(2200)};
_.K.detached=function(){this.observer_&&this.observer_.disconnect()};
_.K.open=function(x,L){var D=this,S=x.serializedYpcFamilyCreateLoggingParams;this.JSC$21113_timeoutId_=setTimeout(this.abort_.bind(this,x.postFlowErrorEndpoint,S),3E4);L&&(this.onReadyCallback_=L);var Q=_.jr(this.hostElement).querySelector("#unicorn-iframe");S&&S&&mBg("ypcFamilyCreateFlowStarted",S);_.zjp("family_creation",function(){var J=_.o1("gapi.family_creation.render");_.o1("gapi.config.update")("iframes/family_creation/url",D.getFamilyCreationUrlWithUnicornParams_());var Z=3;x.appId&&x.appId in
D.APP_IDS&&(Z=D.APP_IDS[x.appId]);Z={authUser:_.$6("SESSION_INDEX")||0,clientId:Z,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.$6("HL"),initialflow:[4,5,6,7],m:D.isMobile?1:0,onFlowComplete:D.onUnicornFlowComplete_.bind(D,x.postFlowSuccessEndpoint,S),onError:D.onUnicornFlowError_.bind(D,x.postFlowErrorEndpoint,S),onReady:D.onUnicornFlowReady_.bind(D,x.referencePcidParams)};J(Q,Z)})};
_.K.close=function(){_.jr(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.K.onUnicornFlowComplete_=function(x,L){this.close();L&&L&&mBg("ypcFamilyCreateFlowSucceeded",L);_.MF(this.hostElement,"yt-navigate",{endpoint:x})};
_.K.onUnicornFlowError_=function(x,L){this.close();L&&mBg("ypcFamilyCreateFlowCancelled",L);_.MF(this.hostElement,"yt-navigate",{endpoint:x})};
_.K.onUnicornFlowReady_=function(x){var L=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();x&&_.o1("gapi.family_creation.setConfig")(0,x);this.observer_=new MutationObserver(function(){_.jr(L.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.jr(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.jr(this.hostElement).querySelector("#dialog").open()};
_.K.getFamilyCreationUrlWithUnicornParams_=function(){return _.$6("YTR_FAMILY_CREATION_URL")};
_.K.getCurrentUrl_=function(){return document.location.href};
_.K.abort_=function(x,L){this.clearTimeout_();this.onUnicornFlowError_(x,L)};
_.K.clearTimeout_=function(){clearTimeout(this.JSC$21113_timeoutId_)};
_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],YG.prototype,"ytActionHandlerBehavior",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],YG.prototype,"isMobile",void 0);_.A([_.F(),_.r("design:type",Object)],YG.prototype,"onReadyCallback_",void 0);_.A([_.F(),_.r("design:type",Object)],YG.prototype,"observer_",void 0);_.A([_.oW({is:"yt-create-family-dialog",disableElementRegistration:!0})],YG);
_.q(YG,"yt-create-family-dialog",function(){if(tY5===void 0){var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);var L=x.content,D=L.insertBefore;n1s===void 0&&(n1s=document.createElement("template"));var S=n1s;D.call(L,S.content.cloneNode(!0),x.content.firstChild);tY5=x}x=tY5;return x},{mode:2});var xil;var LKG;var F8=function(){var x=_.e.apply(this,arguments)||this;x.STEP=1;x.BLOCK_ON=80;x.MIN_PROGESS=0;x.MAX_PROGESS=100;return x};
_.p(F8,_.e);_.K=F8.prototype;_.K.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.K.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));_.yY().addProvider({provide:wEl,useValue:this})};
_.K.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.K.finish=function(){var x=this;this.progress=this.MAX_PROGESS;fnW(function(){x.progress==x.MAX_PROGESS&&(x.hostElement.hidden=!0)})};
_.K.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.J3.Object.defineProperties(F8.prototype,{progress:{configurable:!0,enumerable:!0,set:function(x){this.progress_=x;var L="scaleX("+x/this.MAX_PROGESS+")",D=_.jr(this.hostElement).querySelector("#progress").style;D.transform=L;D.webkitTransform=L;this.hostElement.setAttribute("aria-valuenow",String(x))},
get:function(){return this.progress_}}});
_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],F8.prototype,"ytComponentBehavior",void 0);_.A([_.oW({is:"yt-page-navigation-progress",disableElementRegistration:!0})],F8);
_.q(F8,"yt-page-navigation-progress",function(){if(LKG===void 0){var x=document.createElement("template");_.m(x,'\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');x.content.insertBefore(_.a().content.cloneNode(!0),
x.content.firstChild);var L=x.content,D=L.insertBefore;xil===void 0&&(xil=document.createElement("template"));var S=xil;D.call(L,S.content.cloneNode(!0),x.content.firstChild);LKG=x}x=LKG;return x},{mode:2});var Diq={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"},So3={"font-size":"12px","font-style":"italic"},QKq={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.X2$=function(){return _.I(function(x){_.Y2(x)})};var JOu=_.B(function(x){var L=function(){return x.data().subtext},D={};
return _.M("snackbar-view-model",{class:_.gF("snackbarViewModelHost",x.className)},_.M("div",{class:_.gF("snackbarViewModelEngagementBarWrapper",x.className)},_.M(_.d,{cond:function(){return x.data().image},
then:function(S){return _.M(_.Ku,{data:S,alt:"",targetWidth:86,preserveWidth:!0,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",className:"snackbarViewModelImageContainer"})}}),_.M(_.d,{cond:function(){return x.data().imageContent},
then:function(){return _.M("div",{class:"snackbarViewModelAvatarContainer"},_.M(_.Fj,{data:function(){return x.data().imageContent}},{decoratedAvatarViewModel:_.Z6}))}}),_.M("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.M("div",{class:_.gF((D.snackbarViewModelTitle=!0,D.snackbarViewModelTitleWithSubtext=L,D))},_.M(_.kP,{text:function(){return x.data().text}})),_.M(_.d,{cond:L,
then:function(){return _.M("div",{class:"snackbarViewModelSubtext"},_.M(_.kP,{text:function(){return L()}}))}})),_.M(_.d,{cond:function(){return x.data().buttons},
then:function(){return _.M("div",{class:"snackbarViewModelButtonClassWrapper"},_.M(_.Fj,{data:function(){return x.data().buttons}},{buttonViewModel:function(S){return _.M(_.qP,{data:S.data,
buttonOverrides:function(){return{style:"mono-inverse"}},
target:x.target})}}))}})))},"Sj");_.dF(_.B(function(){function x(l,X,f){k(l);G(f);h("in");v(!0);L(l,X);Z=setTimeout(function(){D()},X)}
function L(l,X){var f,N=(f=l.text)==null?void 0:f.content;l=_.WX(l.rendererContext);N&&(X={label:N,command:l,durationMs:X},_.yY().resolve(_.Op).enqueue(X))}
function D(l){h("out");l&&clearTimeout(Z)}
function S(){D(!0)}
function Q(l){if(l){var X=l.snackbarViewModel,f=l.durationMs,N=l.target;f||(f=3E3);X&&(l=_.yY().resolve(_.ZN(_.Du)))&&l.enqueue({isOpened:P,open:function(){x(X,f,N)},
close:D},0)}}
var J=_.Sc("snackbar-container"),Z=void 0,y=_.O(_.HB(!1,void 0,"mDc5N")),E=y.next().value;y=y.next().value;var P=E,v=y;E=_.O(_.HB("out",void 0,"FpOs5e"));var V=E.next().value,h=E.next().value;E=_.O(_.HB(void 0,void 0,"jIDRob"));var H=E.next().value,k=E.next().value;E=_.O(_.HB(void 0,void 0,"kOA3Mb"));var T=E.next().value,G=E.next().value,U=_.kO(function(){if(V()==="out"){v(!1);k(void 0);G(void 0);var l=_.yY().resolve(_.ZN(_.Du));l&&oIq(l,0)}});
_.wO(function(){var l=_.yY().resolve(_.ZN(_.vXW));l&&(l.showSnackbarFn=Q,l.closeSnackbarFn=S)});
return _.M("snackbar-container",{class:"ytSnackbarContainerHost",el:J},_.M(_.d,{cond:function(){return P()&&!!H()},
then:function(){var l={};return _.M("div",{class:_.gF("ytSnackbarContainerSnackbarContainer",(l.ytSnackbarContainerMobile=!1,l.ytSnackbarContainerPivotBar=function(){var X;return!((X=_.yY().resolve(_.ZN(_.VG9)))==null||!X())},l.ytSnackbarContainerOpened=function(){return P()&&V()==="in"},l.ytSnackbarContainerClosed=function(){return P()&&V()==="out"},l)),
"on:animationend":U},_.M(JOu,{data:function(){return H()},
target:function(){return T()}}))}}))},"Tj"),"snackbar-container");_.dF(_.QLr,"yt-tooltip");var KKl=_.wiX.ephemeralActionSelector;_.dF(_.B(function(){var x=_.ic(KKl);return _.M("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var L;return(L=x())==null?void 0:L.announcement})},"Uj"),"yt-ephemeral-actions");var PyI=new Map;var J2u=function(x,L){var D=this;this.handleError=x;this.logEventInternal=L;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){D.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
J2u.prototype.logError=function(x){this.handleError(x)};
J2u.prototype.logEvent=function(x,L){switch(x){case "IDB_DATA_CORRUPTED":_.u("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",L);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",L);break;case "IS_SUPPORTED_COMPLETED":_.u("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",L);break;case "QUOTA_EXCEEDED":O9W(this,L);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",L);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":x=Object.assign({},L,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",x)}};
var O9W=function(x,L){_.ys.getInstance().estimate().then(function(D){D=Object.assign({},L,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:vv5(D==null?void 0:D.usage),deviceStorageQuotaMbytes:vv5(D==null?void 0:D.quota)});x.logEventInternal("idbQuotaExceeded",D)})};var Z93=_.B(function(x){var L=_.x3("yt-draggable"),D=x.onDrag,S=x.onDragStart,Q=x.onDragEnd,J=_.ym(x,{allowClicks:!1,dragThreshold:5}),Z=J.dragThreshold,y=J.allowClicks;x=J.children;J=J.className;var E=void 0,P=void 0,v=new _.Wn(0,0),V=!1;_.wO(function(){E=new _.tm(L.value);P=new _.ZR(H);h(E,P);if(y()){_.ogH(E,Z());var T;(T=L.value)==null||T.addEventListener("click",k,{capture:!0})}_.wH(function(){var G;(G=E)==null||G.dispose();if(y()){var U;(U=L.value)==null||U.removeEventListener("click",k,{capture:!0})}})});
var h=function(T,G){_.Uk(T,"earlycancel",function(){y()&&(V=!1)});
_.Uk(T,"start",function(U){S==null||S(U);U.defaultPrevented||y()&&(V=!0)});
_.Uk(T,"beforedrag",function(U){E&&P&&(U.preventDefault(),v=new _.Wn(U.clientX-E.startX,U.clientY-E.startY),P.start())});
_.Uk(T,"end",function(){G.stop();Q==null||Q();v=new _.Wn(0,0)})},H=function(){v&&D(v)},k=function(T){V&&(V=!1,T.stopPropagation(),T.preventDefault())};
return _.M("yt-draggable",{el:L,class:_.gF("ytDraggableComponentHost",J)},x)},"Vj");var yOs=_.B(function(x){var L=_.O(_.HB(0,void 0,"Qf0tbc")),D=L.next().value,S=L.next().value;L=function(Q){var J={},Z={};return _.M(Z93,{className:_.gF("ytdMiniplayerComponentResizer",(J.ytdMiniplayerComponentResizerDisabled=function(){return Q===x.horizontalAlignment()||Q===x.verticalAlignment()},J.ytdMiniplayerComponentResizerNorth=Q==="north",J.ytdMiniplayerComponentResizerEast=Q==="east",J.ytdMiniplayerComponentResizerSouth=Q==="south",J.ytdMiniplayerComponentResizerWest=Q==="west",J)),
onDragStart:function(){S(x.currentMiniplayerSize());if(x.onResizeStart)x.onResizeStart()},
onDrag:function(y){Q!=="north"&&Q!=="west"||y.scale(-1);var E;y=(E=Q==="north"||Q==="south")?y.y:y.x;var P=x.currentAspectRatio();E&&P>=1?y*=P:!E&&P<1&&(y/=P);E=y;x.onResize(D()+E)}},_.M("div",{class:_.gF("ytdMiniplayerComponentResizerCorner",(Z.ytdMiniplayerComponentResizerNorthCorner=Q==="north",Z.ytdMiniplayerComponentResizerEastCorner=Q==="east",Z.ytdMiniplayerComponentResizerSouthCorner=Q==="south",Z.ytdMiniplayerComponentResizerWestCorner=Q==="west",Z))}))};
return _.M("div",{class:"ytdMiniplayerComponentResizers"},L("north"),L("east"),L("south"),L("west"))},"Wj");var IZg=16/9;_.dF(_.B(function(){var x=_.x3("ytd-miniplayer"),L=_.O(_.HB(new _.b8(NaN,NaN),void 0,"NHaFyc")),D=L.next().value,S=L.next().value;L=_.O(_.HB(!1,void 0,"a0rwG"));var Q=L.next().value,J=L.next().value;L=_.O(_.HB(!1,void 0,"f1jSeb"));var Z=L.next().value,y=L.next().value;L=_.O(_.HB(!1,void 0,"JojXKc"));var E=L.next().value,P=L.next().value;L=_.O(_.HB(!1,void 0,"FjS8Db"));var v=L.next().value,V=L.next().value;L=_.O(_.HB(!1,void 0,"z5WG9e"));var h=L.next().value,H=L.next().value;L=_.O(_.HB(!1,void 0,"eUzZd"));
var k=L.next().value,T=L.next().value;L=_.O(_.HB(IZg,void 0,"XsBIy"));var G=L.next().value,U=L.next().value,l=_.O(_.HB(!1,void 0,"FJSvse"));L=l.next().value;var X=l.next().value;l=_.O(_.HB(!1,void 0,"VDUFL"));var f=l.next().value,N=l.next().value;l=_.O(_.HB(void 0,void 0,"nFeh4b"));var z=l.next().value,xf=l.next().value;l=_.O(_.HB(gn()?"west":"east",void 0,"T7co7c"));var K3=l.next().value,P4=l.next().value;l=_.O(_.HB("south",void 0,"QDUsLb"));var kf=l.next().value,H4=l.next().value;l=_.O(_.HB(400,
void 0,"F7Vdze"));var p3=l.next().value,w0=l.next().value,Rn=_.yY().resolve(_.iy).miniplayerPropSignalMap[0],lG=Rn.data,xX=Rn.externalPlaylistData;l=Rn.toastData;var UR=Rn.playabilityStatus,c4=Rn.isReadyToResume,hr=Rn.isDisabled,GB=Rn.watchWhile,C2=Rn.playerVe,X9=Rn.expandVe,vs=Rn.closeVe,Zp=Rn.readyToResumeVe,K2=Rn.readyToResumeCloseVe,F2=Rn.repositionVe,II=Rn.resizeVe;Rn=_.O(_.mU(c4));var jW=Rn.next().value,J5=Rn.next().value,Eq=_.ic(_.aB.persistentPanelVisibleSelector),zB=!1,ER=!1,qh;_.wO(function(){S(_.sO());
x.value.addEventListener("animationend",function(oi){oi.target===x.value&&(H(!1),T(!1))});
kn$(x.value)});
_.t7("yt-window-resized",function(oi){oi&&S(oi)});
var g$=function(){qh&&U(qh.getVideoAspectRatio())},p2=function(){if(qh){var oi=qh.getPlayerState()===1;
jW()&&oi&&J5(!1)}},uG=function(){var oi=X9();
if(oi){var kX=_.A3(3);kX&&_.L7(kX,oi)}},h5=function(){var oi=vs(),kX=K2();
oi&&_.L7(_.A3(3),oi);c4()&&kX&&_.L7(_.A3(3),kX)};
_.t7("yt-activate-miniplayer",function(oi){var kX;return _.I(function(n2){if(n2.nextAddress==1)return Q()?n2.return():n2.yield((kX=_.yY().resolve(_.iy).getPlayerElement())==null?void 0:kX.getPlayerPromise(),2);qh=n2.yieldResult;if(!qh)return n2.return();!f()&&_.u("kevlar_watch_while_v2")&&(H4(oi&&!_.u("kevlar_watch_while_bottom_align")?"north":"south"),P4(gn()?"west":"east"));var Vo=qh;Vo.addEventListener("onVideoDataChange",g$);Vo.addEventListener("onStateChange",p2);Vo.addEventListener("onExpandMiniplayer",
uG);Vo.addEventListener("onCloseMiniplayer",h5);U(qh.getVideoAspectRatio());J(!0);gvu()||H(!0);_.Y2(n2)})});
_.t7("yt-deactivate-miniplayer",function(oi){return _.I(function(kX){if(!Q())return kX.return();J(!1);J5(!1);T(oi);V(!1);y(!1);if(qh){var n2=qh;n2.removeEventListener("onVideoDataChange",g$);n2.removeEventListener("onStateChange",p2);n2.removeEventListener("onExpandMiniplayer",uG);n2.removeEventListener("onCloseMiniplayer",h5)}gvu()||H(!0);_.Y2(kX)})});
var x2=function(){return!(GB()&&_.u("kevlar_watch_while_modern"))},YX=function(){var oi;
return!((oi=xX())==null||!oi.contents)},$2=function(){var oi=p3();
var kX=D();kX=Math.min(Math.min(kX.width,kX.height)-32,720);var n2=G(),Vo=x2(),hx=YX()&&Z(),Ge=Math.min(oi,kX);oi=new _.b8(192,Vo?116:192);n2=new _.b8(hx?IZg:n2,1);Ge=new _.b8(Ge,Vo?Ge-76:Ge);Ge=n2.aspectRatio()>Ge.aspectRatio()?Ge.width/n2.width:Ge.height/n2.height;n2=n2.scale(Ge);oi.width<=n2.width&&oi.height<=n2.height||(oi=n2.aspectRatio()<=oi.aspectRatio()?oi.width/n2.width:oi.height/n2.height,n2.scale(oi),n2.width=Math.min(n2.width,kX),n2.height=Math.min(n2.height,kX));return new _.b8(n2.width,
_.BF(192,n2.height+Yyq(Vo,hx),720))},zG=function(){var oi=$2(),kX=x2(),n2=YX()&&Z();
return new _.b8(oi.width,oi.height-Yyq(kX,n2))},K8=function(){var oi=function(kX){kX.target===x.value&&v()&&(V(!1),x.value.removeEventListener("transitionend",oi))};
gvu()||(x.value.addEventListener("transitionend",oi),V(!0));y(!Z())};
_.Us(function(){var oi=C2(),kX=_.A3(3),n2=_.qu(3);if(kX&&n2&&oi){_.XI(kX,n2,oi);n2=F2();var Vo=II(),hx=X9(),Ge=vs(),nw=K2();hx&&Ge&&nw&&(_.c$(kX,oi,[hx,Ge,nw]),_.t_(kX,[hx,Ge]));n2&&Vo&&_.c$(kX,oi,[n2,Vo])}},"crCasb");
_.Us(function(){var oi=Zp();if(oi){var kX=_.A3(0),n2=_.qu(0);kX&&n2&&(_.XI(kX,n2,oi),_.t_(kX,[oi]))}},"JitqQ");
Rn={};return _.M("ytd-miniplayer",{el:x,class:_.gF("ytdMiniplayerComponentHost",(Rn.ytdMiniplayerComponentVisible=function(){return Q()||h()},Rn.ytdMiniplayerComponentAnimatingSnap=E,Rn.ytdMiniplayerComponentAnimatingPlaylistExpand=v,Rn.ytdMiniplayerComponentAnimatingFade=h,Rn),function(){if(h()){var oi=kf();
var kX=Q(),n2=k();oi=kX?oi==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":n2?oi==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":oi==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else oi="";return oi}),
style:_.bc({top:function(){return kf()==="north"?"16px":""},
right:function(){var oi=K3(),kX=Eq();kX=(kX===void 0?0:kX)&&!gn()?400:0;return oi==="east"?16+kX+"px":""},
bottom:function(){return kf()==="south"?"16px":""},
left:function(){var oi=K3(),kX=Eq();kX=(kX===void 0?0:kX)&&gn()?400:0;return oi==="west"?16+kX+"px":""},
width:function(){return $2().width+"px"},
height:function(){return $2().height+"px"},
transform:function(){var oi=z();return oi?"translate("+oi.x+"px, "+oi.y+"px)":""}})},_.M("div",{class:"ytdMiniplayerComponentContent"},_.M(Z93,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(oi){var kX=bGI(K3(),kf(),D(),$2(),z()),n2=zG();Math.abs(oi.clientY-(kX.y+n2.height))>15?(X(!0),oi=_.A3(3),kX=F2(),zB||(zB=!0,oi&&kX&&_.t_(oi,[kX])),oi&&kX&&_.L7(oi,kX)):oi.preventDefault()},
onDrag:function(oi){xf(oi)},
onDragEnd:function(){var oi=pF5(bGI(K3(),kf(),D(),$2(),z()),D(),$2()),kX=mk9(K3(),kf(),D(),$2(),Eq()),n2=mk9(oi.horizontalAlignment,oi.verticalAlignment,D(),$2(),Eq());n2=new _.Wn(n2.x-kX.x,n2.y-kX.y);var Vo;kX=kX.y+(((Vo=z())==null?void 0:Vo.y)||0)+$2().height/2;var hx=function(){K3()===oi.horizontalAlignment&&kf()===oi.verticalAlignment||N(!0);P4(oi.horizontalAlignment);H4(oi.verticalAlignment);xf(void 0)},Ge=function(nw){nw.target===x.value&&E()&&(P(!1),hx(),x.value.removeEventListener("transitionend",
Ge))};
X(!1);kf()==="south"&&kX>D().height?(hx(),_.yY().resolve(_.iy).close()):(x.value.addEventListener("transitionend",Ge),P(!0),xf(n2))}},_.M(_.d,{cond:Q,
then:function(){return _.M(_.WgX,{isDisabled:hr,playabilityStatus:UR,size:zG})}}),_.M(_.d,{cond:x2,
then:function(){return _.M(_.wfX,{isReadyToResume:jW,data:lG,expanded:Z,onExpandClick:K8,playlistData:xX})}}),_.M(_.d,{cond:L,
then:function(){return _.M("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.M(_.d,{cond:function(){return YX()&&Z()||v()},
then:function(){return _.M(_.kNW,{className:"ytdMiniplayerComponentPlaylistPanel",data:xX,hideHeaderText:!0,withinMiniplayer:!0})}}),_.M("div",{class:"ytdMiniplayerComponentToast"},_.M(_.q7g,{toastData:l}))),_.M(yOs,{onResize:function(oi){w0(_.BF(192,oi,720))},
onResizeStart:function(){var oi=_.A3(3),kX=II();ER||(ER=!0,oi&&kX&&_.t_(oi,[kX]));oi&&kX&&_.L7(oi,kX)},
currentAspectRatio:G,currentMiniplayerSize:p3,horizontalAlignment:K3,verticalAlignment:kf}))},"Zj"),"ytd-miniplayer",{});var EYY=_.aB.persistentPanelVisibleSelector,sf=function(){var x=_.e.apply(this,arguments)||this;x.tabGesturesIsActive=!1;x.persistentPanelEnabled=_.u("enable_ai_companion");x.hasDelegation=!1;x.darkerDarkTheme=_.u("web_darker_dark_theme");x.isFrostedGlassInitialized=!1;x.frostedGlassExp=_.u("web_frosted_glass");x.hasPendingWatchNavigation=!1;x.mastheadHiddenFocusWithinKillswitch=_.u("web_masthead_hidden_focus_within_killswitch");x.clientOnlyWizTooltipsEnabled=_.u("enable_client_only_wiz_tooltips")&&
HTMLElement.prototype.hasOwnProperty("popover");x.scrollAtTop=!0;x.guideScrollTop=0;x.isTheaterModeSession=_.rO("START_IN_THEATER_MODE");x.iMaxTheaterMode=_.u("web_watch_imax_theater_mode");x.isFullWindowSession=_.rO("START_IN_FULL_WINDOW_MODE");x.hasCreateFamilyDialog=!1;x.mastheadHeight=56;x.networkStatusManager=new _.cW;x.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"};x.dynamicActionMap={"yt-run-attestation-command":function(L){var D=
_.yr9.instance,S=_.g(L,_.Exr);return S?_.u("use_rta_manager_for_async")&&Ngu()?pNl(D,S,L.clickTrackingParams):kE5(D,S,L.clickTrackingParams):_.Bp(Error("ui"))}};
x.isFrostedGlassDisabled=!1;x.isChannelOrPlaylistPage=!1;return x};
_.p(sf,_.e);_.K=sf.prototype;_.K.created=function(){var x=_.yY();_.u("kevlar_clear_duplicate_pref_cookie")&&_.TG(_.WW,function(){var L=_.YQ.get("PREF");L&&!/f\d=/.test(L)&&(L=_.PY("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=L?"PREF=null;domain="+L+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.u("gzip_gel_with_worker")&&_.n9w();_.u("jspb_serialize_with_worker")&&jtq();_.u("web_worker_availability_check")&&jPI();_.u("nwl_init_killswitch")||dU$().then(function(){_.WW.addLowPriorityJob(qIu)});
this.pageManagerAttachedPromise=_.xe();this.ytdAppBehavior.loadDepsPromise=_.AR([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.zR(this.onThrottledScroll,200,this);_.u("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);KH3();fVl=!!_.o1("ytappsettings.initialized");jx=_.o1("ytappsettings.previousValue");q4$=_.o1("ytappsettings.previousSnapshotTime");fVl||(fVl=!0,A2$());fts();oOq();_.Au("DEFERRED_DETACH",
_.u("kevlar_tuner_should_defer_detach"));_.Au("REUSE_COMPONENTS",!0);_.Au("STAMPER_STABLE_LIST",!0);_.Au("SCHEDULED_LAZY_LIST",!0);_.Au("openPopupConfig",nql);_.Au("useClickHandler",!0);_.u("kevlar_shell_cleanup")&&_.WW.addLowPriorityJob(Xa3.bind(this,_.Qb.caches));_.rO("IS_SHELL_LOAD")&&_.W$({shellStartupDurationMs:Math.round((0,_.y5)()-_.C6())});xkl(this.networkStatusManager);_.u("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",ocG(Diq)),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!",
ocG(So3)),console.log("%cVisit http://go/join-youtube-web to apply today.",ocG(QKq)));_.sRG(x.resolve(_.Jt),1E3)};
_.K.ready=function(){var x=this;this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var L=b7q();L&&!_.u("external_fullscreen_killswitch")&&document.addEventListener(L,this.setFullscreen.bind(this));(L=window.matchMedia("(prefers-color-scheme: dark)"))&&L.addEventListener&&L.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged();if(L=_.yY().resolve(_.ZN(_.HA2)))L.subscribe("navigation-start",
function(D){D.destinationPageSubtype==="watch"&&(x.hasPendingWatchNavigation=!0)}),L.subscribe("navigation-end",function(D){D.destinationPageSubtype==="watch"&&(x.hasPendingWatchNavigation=!1)})};
_.K.attached=function(){var x=this;_.jP().processSignal("ci");_.u("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.uh2?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.jK(_.j44(),"SUCCESS");this.updateIconSet();_.y0(this.guideInnerContent,!1);_.tY().initVisibilityObserver();this.guideService.guideElement=this.guide;var L=document.createElement("ytd-miniplayer"),D=_.jr(this.hostElement).querySelector("#content");
_.jr(this.hostElement).insertBefore(L,D);_.jP().processSignal("ma");_.yY().resolve(_.iy).init(L);this.persistentPanelEnabled&&_.TOu(_.yY().resolve(_.Jy),this.persistentPanelContainer,"APP");_.rO("IS_SHELL_LOAD")&&(D=document.createElement("ytd-network-status-banner"),_.jr(this.hostElement).insertBefore(D,L));_.u("kevlar_right_click_on_lockups")&&_.yj._onCaptureClick&&document.addEventListener("contextmenu",_.yj._onCaptureClick.bind(_.yj),!0);var S=function(){var Q=_.TZ("yt-page-navigation-progress");
_.jr(x.hostElement).appendChild(Q)};
setTimeout(function(){_.jP().parkOrScheduleJob(S,0,"eocs",16)},0);
_.u("service_worker_push_enabled")&&_.TG(_.WW,pql);_.cI(_.aR.getInstance(),this.dynamicActionMap,this.hostElement);_.MF(this.hostElement,"ytd-app-attached");_.jP().processSignal("aa");WH3(this.hostElement);_.KK("gapi.load",_.zjp);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.TG(_.WW,
function(){var Q=document.createElement("ytd-video-preview");_.jr(_.jr(x.hostElement).querySelector("#video-preview")).appendChild(Q)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.TG(_.WW,function(){ciG();x.registerWithViewTransitionManager()});
if(_.UO()&&this.isAppDarkTheme()!==_.CB())this.onDarkModeToggledAction();else L=_.l1()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==L&&(_.u("enable_dark_theme_only_on_shorts")?_.x9(_.u("enable_dark_theme_only_on_shorts_control")?window.location.href:_.LH(window.location.href,{theme:"dark"})):_.qy(new _.RZ("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(DM$=new Lxq(this.hostElement)),clW=new X_3(this.hostElement),zAX=new a0u(this.hostElement),gAq=new uJ$(this.hostElement)};
_.K.getThemeSettingsToLog=function(){var x=_.l1()==="USER_INTERFACE_THEME_DARK";x=_.UO()?_.CB()?"os-dark":"os-light":x?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:x,cookiesEnabled:_.s2()}};
_.K.detached=function(){_.I8(this.guideInnerContent);_.WW.cancelJob(MQ);MQ=0;_.WW.cancelJob(Pj);Pj=0;_.EOh(BDW);BDW.length=0;loW=_.XVp=null;_.tY().dispose();_.u("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.nV(_.aR.getInstance(),DM$.playlistHandlerActionMap,DM$.JSC$32144_clientRoot);_.nV(_.aR.getInstance(),clW.downloadManagerActionMap,clW.JSC$32435_clientRoot);_.nV(_.aR.getInstance(),zAX.feedbackCollectorActionMap,zAX.JSC$32430_clientRoot);
for(var x=_.O(gAq.eventListeners),L=x.next();!L.done;L=x.next()){var D=_.O(L.value);L=D.next().value;D=D.next().value;D=_.O(D);for(var S=D.next();!S.done;S=D.next()){var Q=_.O(S.value);S=Q.next().value;Q=Q.next().value;L.removeEventListener(S,Q)}}_.nV(_.aR.getInstance(),gAq.autonavPauseActionMap,gAq.JSC$20072_clientRoot)};
_.K.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.FI().getFlag(186)};
_.K.computeIsInlinePreviewEnabled=function(x,L,D){return!D&&_.HVq({miniplayerIsActive:x,miniplayerPlaybackState:L})};
_.K.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.MU({type:"SET_FROSTED_GLASS_MODE",payload:!_.u("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"}))};
_.K.computeIsFrostedGlassDisabled=function(x,L,D,S){return x||L||D||S&&_.u("web_frosted_glass_disable_watch")};
_.K.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.u("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.K.computeIsHomePage=function(x,L){if(!x||L==null||!L.endpoint)return!1;var D;return((D=_.g(L.endpoint,_.mt))==null?void 0:D.browseId)==="FEwhat_to_watch"};
_.K.updateIsChannelOrPlaylistPage=function(){if(_.u("web_frosted_glass")){var x,L,D=(L=(x=_.yY().resolve(_.ZN(_.KX)))==null?void 0:x.getCurrentPage())==null?void 0:L.pageSubtype;this.isChannelOrPlaylistPage=D?["channel","channels","playlist"].includes(D):!1}};
_.K.scheduleFrostedGlassInitialization=function(){var x=this;_.u("web_frosted_glass")&&_.jP().parkOrScheduleJob(function(){x.isFrostedGlassInitialized=!0},0,_.Fl(["eocs",
"cr"]),300)};
_.K.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.Ae2(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.MU({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.MU({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.K.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(wM3(!0))};
_.K.onYtSignalActionRequestPersistentStorage=function(){if(!_.u("request_persistent_storage_killswitch")){var x=_.yY().resolve(_.jT3);x.cachedPersistStatePromise||(x.cachedPersistStatePromise=Scl())}};
_.K.handleYtChannelCreationFormEndpoints=function(x){x&&this.ytComponentBehavior.resolveCommand(x)};
_.K.handleShowEngagementPanelEndpoint=function(x){x&&this.ytComponentBehavior.resolveCommand(x)};
_.K.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(wM3(!1))};
_.K.initIconDefs=function(x,L){var D=document.createElement("iron-iconset-svg");D.name=x;x=document.createElementNS("http://www.w3.org/2000/svg","svg");D.appendChild(x);x.appendChild(L);document.body.appendChild(D);return D};
_.K.onWindowResized=function(){_.dg(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var x=_.RO.getInstance();x.documentWidth_=document.body.clientWidth;XFl(x)};
_.K.onWindowScrolled=function(){var x=_.yY().resolve(_.KX).getCurrentPage();if(x!=null&&x.getScrollTop){var L=this.ytdReduxBehavior,D=L.dispatch;x=x.getScrollTop()<=0;D.call(L,_.MU({type:"SET_SCROLL_AT_TOP",payload:x}))}};
_.K.guideIsVisibleButNotPersistentSelectorChanged=function(){var x=_.yY().resolve(_.KX).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=x.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"),
x.setScrollTop(this.guideScrollTop));_.P$(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.K.getCurrentPageScrollableElementType=function(){var x=_.yY().resolve(_.KX).getCurrentPage();if(x&&x.getPageScrollingElement())return x.getPageScrollingElement().nodeName};
_.K.observeGuideVisibility=function(){var x=_.RO.getInstance(),L=this.miniGuideVisible;x.guidePersistentAndVisible_=this.guidePersistentAndVisible;x.miniGuideVisible_=L;XFl(x)};
_.K.observePersistentPanelVisibility=function(){var x=_.RO.getInstance();x.persistentPanelVisible_=this.persistentPanelVisible;XFl(x)};
_.K.handleEduDismissAction=function(x){x&&x.eduDismissAction&&(_.dg(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.iz_.getInstance(),_.Ty.set(x.eduDismissAction.key+"-dismissed",!0))};
_.K.handleEduImpressionAction=function(x){if(x&&x.eduImpressionAction){var L=_.iz_.getInstance();x=x.eduImpressionAction.key;L.JSC$13027_eduDisplayedThisLoad_[_.NJr[x].setKey||x]=!0;_.Ty.set(x+"-impression",parseInt(_.Ty.get(x+"-impression")||0,10)+1)}};
_.K.onYtSignalActionConfirmMentionsEdu=function(){_.dg(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.Cp.getInstance();_.Gy.set("edu-dismissed",!0)};
_.K.onYtSignalActionRecordMentionsEduImpression=function(){_.Cp.getInstance();var x=_.Gy.set,L=parseInt(_.Gy.get("edu-impressions"),10);x.call(_.Gy,"edu-impressions",(isFinite(L)?L:0)+1)};
_.K.onYtPageManagerAttached=function(x){var L;((L=_.K$(x))==null?void 0:L.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.K.onInvokeInstrumentManagerAction=function(x,L){uos(L,x)};
_.K.updateIconSet=function(){var x=this.hostElement.querySelector("#masthead");if(x){var L=_.vP(x),D=L.querySelector("g#yt-logo-updated");D&&(x=document.createElementNS("http://www.w3.org/2000/svg","defs"),x.appendChild(D.cloneNode(!0)),(L=L.querySelector("g#yt-logo-red-updated"))&&x.appendChild(L.cloneNode(!0)),this.initIconDefs("yt-logos-ext",x))}};
_.K.updateMastheadData=function(){var x=this,L,D,S,Q,J;return _.I(function(Z){if(Z.nextAddress==1){L=x.data;D=x.hostElement.querySelector("#masthead");if(!D)return Z.return();_.So(x,function(){D.data=x.topbarData});
if(!x.get("response.topbar",L)||x.get("response.topbar.responseContext.maxAgeSeconds",L)===0)return Z.jumpTo(0);if(S=_.yY().resolve(_.W3))return Z.yield(S(),6);Q=_.yY().resolve(_.WV);return Z.yield(Q.put("service:topbar:fallback",new _.qX({innertubeResponse:x.get("response.topbar",L)})),0)}return(J=Z.yieldResult)?Z.yield(J.put("service:topbar:fallback",new _.qX({innertubeResponse:x.get("response.topbar",L)})),0):Z.jumpTo(0)})};
_.K.computeTopbarData=function(x){if(!x)return null;var L;return this.isShortsPage&&this.topbarData&&!_.g((L=x.response)==null?void 0:L.topbar,qVs)?this.topbarData:x.response&&"topbar"in x.response?_.g(x.response.topbar,qVs)||null:null};
_.K.onSetTheaterModeEnabled=function(x,L){this.isTheaterModeSession=L.enabled;this.setTheaterModeStyles(L.enabled)};
_.K.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.K.onDarkModeToggledAction=function(){var x=_.gE(window.location.href);if(!_.OE0(x)){(x=!!_.xQ(window.location.href).themeRefresh)&&_.qy(new _.RZ("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!x){A2$();x={themeRefresh:1};var L=_.yY().resolve(_.KX);if(L.isOnWatch()){var D,S;L=((D=L.getPlayerFromWatch())==null?void 0:(S=D.getPlayer())==null?void 0:S.getCurrentTime())||0;L>=1&&(x.time_continue=Math.floor(L))}_.s2()||_.l1()!=="USER_INTERFACE_THEME_DARK"||(x.theme="dark");_.x9(_.LH(window.location.href,
x))}_.u("web_appshell_refresh_trigger")&&_.Qb.caches&&this.refreshAppShellResponse();D=_.XY(window.location.href);_.NX(_.yY().resolve(_.iM),_.K6(D,"theme"))}};
_.K.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.K.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.K.onPlayerFullscreen=function(x){_.O8();this.playerFullscreen=x};
_.K.setRestrictedMode=function(x){var L=_.FI();_.s8(0,58,x);L.save();_.yY().resolve(_.np).reload()};
_.K.onPageChanged=function(x){x.detail.newPageType==="ytd-watch-flexy"||x.detail.newPageType==="ytd-watch-fixie"||x.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.Gn("WEB_PAGE_TYPE_WATCH")):x.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.Gn("WEB_PAGE_TYPE_SHORTS")):x.detail.newPageType==="ytd-browse"&&x.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.Gn("WEB_PAGE_TYPE_MINI_APP")):_.u("web_frosted_glass")&&x.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.Gn("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.Gn("WEB_PAGE_TYPE_UNKNOWN"));x.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.K.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.K.onGuideToggleTap=function(){_.MF(this.hostElement,"yt-guide-toggle")};
_.K.onGuideToggleHover=function(){_.MF(this.hostElement,"yt-guide-hover")};
_.K.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.K.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.K.setMastheadTheme=function(){var x=_.vP(this.hostElement).querySelector("#masthead");x&&(x.dark=x.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),x.isDarkThemeForced=!1)};
_.K.onRequestPanelModeChange=function(x,L){this.hideHeaderShadow=L.mode!=="seamed"};
_.K.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.K.onDrawerIronSelect=function(x){_.K$(x).id==="guide"&&this.processDrawerIronSelect()};
_.K.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var x="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(x="opened"));_.MF(this.hostElement,"yt-autonav-pause-guide-"+x)};
_.K.onAddElementToApp=function(x){_.jr(this.hostElement).appendChild(x.detail)};
_.K.onThrottledScroll=function(){var x=_.yY().resolve(_.KX).getCurrentPage();x&&(this.scrollAtTop=x.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.K.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.K.setFullscreen=function(){if(_.u("external_fullscreen")||!this.isWatchPage){var x=_.u("kevlar_fullerscreen_root_only_killswitch")?!!_.O8():!!_.O8()&&_.O8()===document.documentElement;x=(this.isWatchPage||_.u("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(x||this.isFullWindowSession);this.fullscreen!==x&&((this.fullscreen=x)&&_.P$(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.Jd().dispatch(_.TWH(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.updateScrollAndMasthead(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.dg(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.K.setFullscreenLoggingForShorts=function(x){var L,D,S;return _.I(function(Q){if(Q.nextAddress==1)return Q.yield((L=_.Zs())==null?void 0:L.getPlayerPromise(),2);D=Q.yieldResult;(S=D)==null||S.setAppFullscreen(x);_.Y2(Q)})};
_.K.updateMastheadCssHeight=function(){var x=this.mastheadHeight;this.fullscreen&&(x=0);_.uN(this.hostElement,{"--ytd-masthead-height":x+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.K.updateNetworkStatusBannerDisplayStatus=function(){var x="unset";this.fullscreen&&(x="none");_.uN(this.hostElement,{"--ytd-network-status-banner-display":x})};
_.K.updateNetworkStatusBannerCssHeight=function(){var x="unset";this.fullscreen&&(x="0px");_.uN(this.hostElement,{"--ytd-network-status-banner-max-height":x})};
_.K.updateScrollAndMasthead=function(x,L,D,S){this.iMaxTheaterMode||(S=!1);var Q=_.yY().resolve(_.KX).getCurrentPage();x||L||S?(document.body.classList.add("no-scroll"),Q.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.p$(this,this.onScroll)),Q.setScrollTop(0),_.uN(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.ma()+"px"})):D?_.MF(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.MF(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
Q.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.p$(this,this.onScroll)));this.mastheadHidden=x||L||D;this.updateMastheadCssHeight();_.u("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.K.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.K.onYtNavigateAction=function(x){x=this.get("navigateAction.endpoint",x);_.MF(this.hostElement,"yt-navigate",{endpoint:x})};
_.K.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var x=document.createElement("yt-create-family-dialog");_.jr(this.hostElement).appendChild(x);this.hasCreateFamilyDialog=!0}};
_.K.onSetPushNotificationsEnabledCommand=function(x){var L=this,D=_.g(x,WwY);D&&typeof D.enabled==="boolean"&&(Notification.permission!=="granted"?hNl().then(function(){Notification.permission==="granted"?(SOX(!D.enabled).then(Ktq),D.successAction&&_.jq(L.hostElement,[D.successAction])):D.failureAction&&_.jq(L.hostElement,[D.failureAction])}):(SOX(!D.enabled).then(Ktq),D.successAction&&_.jq(this.hostElement,[D.successAction])))};
_.K.onYtSignalActionEnableChromeNotifications=function(){HBu(!0)};
_.K.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.g(this.topbarData.hotkeyDialog,rTW)}}})};
_.K.onYtSignalActionShowKeyboardShortcutDialog=function(){_.dg(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.K.onYtEndpointChangeHandler=function(x,L){var D=_.JK(_.cy);D.pendingPrefetchJob_&&(L=!(!L||L.autonav!="1"),D.pendingPrefetchJob_.resolve(x&&_.cQh(x)?_.njp(x,L):""),D.pendingPrefetchJob_=null);_.dg(this.hostElement,"yt-pause-active-page-context");_.dg(this.hostElement,"ytd-log-youthere-nav");_.dg(this.hostElement,"yt-prepare-page-dispose")};
_.K.handleCommandWithCommandHandler=function(x,L){_.pI.instance.resolveCommand(x,{form:{element:L}})};
_.K.onYtTimedCommand=function(x){var L=this;x=_.g(x,FwG);var D=x.command;D&&_.VG(_.WW,function(){var S=_.g(D,_.JYB);S?(_.pI.instance.resolveCommand(D),L.maybeLogGetAnswerRequestTick(S)):_.v$(L.hostElement,[D],L.hostElement)},x.timeoutMs||0)};
_.K.maybeLogGetAnswerRequestTick=function(x){x&&x.isFirstRequest&&(_.A_("search_overview_answer"),_.$T("so_rq",void 0,"search_overview_answer"))};
_.K.onYtSignalActionSkipNavigation=function(){var x=_.yY().resolve(_.KX).getCurrentPage();_.LV(x)};
_.K.onYtSignalActionCopyDebugData=function(){GFI()};
_.K.handleEntityUpdateCommand=function(x){_.b6(_.g(x,_.Gv0).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.K.logFlowLoggingEventCommand=function(x){if(x=_.g(x,_.WdG))if(x.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var L=x.flowEventNamespace,D=x.flowEventType,S=x.flowType;S&&L&&D&&_.rQ0(_.u1(L,D,x.flowEventMetadata),S)}else{L=_.gY();D=x.flowEventNamespace;S=x.flowEventType;var Q=x.flowType;Q&&D&&S&&L.logFlowEvent(_.u1(D,S,x.flowEventMetadata),Q,x.flowNonce)}};
_.K.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.K.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.K.onTouchStart=function(){var x=_.xP();_.A3()&&_.XT(x.JSC$13255_screenManager,{visualElement:x.ve})};
_.K.handleSelectLanguageCommand=function(x){if(x=_.g(x,UKq).hl){var L=_.FI();L.set("hl",x);L.save();_.yY().resolve(_.np).reload()}};
_.K.handleConfirmDialogEndpoint=function(x){(x=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(x))&&this.ytOpenPopupBehavior.openPopup(x)};
_.K.handleOpenPopupNavigationEndpoints=function(x,L){_.u("web_button_rework")&&(x=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(x))&&this.ytOpenPopupBehavior.openPopup(x,L)};
_.K.handleSaveCommandToSessionStorage=function(x){if(x=_.g(x,_.VS2)){var L=x.key;L&&x.command&&window.sessionStorage.setItem(L,JSON.stringify(x.command))}};
_.K.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(x){x&&x.active&&x.active.postMessage({type:"refresh_shell"})}).catch(function(x){x.name!=="SecurityError"&&_.BI(x)})};
_.K.onDeviceThemeChanged=function(){var x=_.CB();_.s8(_.FI(),185,x);_.FI().save()};
_.K.handleYtRegisterPromoCommand=function(x){if(_.g(x,BU$)){var L=_.yY().resolve(_.KX).getCurrentPage()||this.hostElement;eps().registerPromoCommand(_.g(x,BU$),L)}};
_.K.onYtNavigateHomeAction=function(){if(!_.u("kevlar_miniplayer_navigate_home_from_app_killswitch")){var x,L,D,S,Q=(S=(x=this.topbarData)==null?void 0:(L=x.logo)==null?void 0:(D=L.topbarLogoRenderer)==null?void 0:D.endpoint)!=null?S:_.fv;this.ytComponentBehavior.resolveCommand(Q)}};
_.K.onYtLocationCollectionCommand=function(x){zMX(_.g(x,cTX))};
_.K.onYtGetLocationCommand=function(x){cDu(_.g(x,XGG),this)};
_.K.updateRenderGuideFromBinding=function(x){this.renderGuide=x.detail.value};
_.K.updateGuidePersistentAndVisibleFromBinding=function(x){this.guidePersistentAndVisible=x.detail.value};
_.K.updateMiniGuideVisibleFromBinding=function(x){this.miniGuideVisible=x.detail.value};
_.K.onThemeSelected=function(x,L){var D=_.FI(),S=x||L?x:_.CB(),Q=(S&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!S&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.OE0(_.gE(window.location.href));_.s8(0,165,x);_.s8(0,174,L);D.save();Q&&_.dg(this.hostElement,"yt-dark-mode-toggled-action",[S]);_.dg(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.K.getCurrentTheme=function(){return _.UO()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.l1()};
_.K.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.K.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.K.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.K.handleShowConsentPrimitive=function(x){var L=this,D,S;return _.I(function(Q){if(Q.nextAddress==1){try{D=(S=_.Zs())==null?void 0:S.getPlayerPromise()}catch(J){}return Q.yield(dkl(x,D),2)}_.dg(L.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.Y2(Q)})};
_.K.handleSelectActiveIdentityEndpointInternal=function(x){_.nB();x=_.g(x,_.gri);if(x!=null&&x.supportedTokens){x=_.O(x.supportedTokens);for(var L=x.next();!L.done;L=x.next())L=L.value,L.accountSigninToken&&_.x9(L.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.K.handleUpdatePermissionRoleCommand=function(x){if(x=_.g(x,_.kuG)){var L;this.hasDelegation=!((L=_.g(x.renderer,_.ghC))==null||!L.status)}};
_.K.registerWithViewTransitionManager=function(){var x=_.yY().resolve(_.ZN(_.og));if(x){var L,D=(L=this.guide)==null?void 0:L.querySelector("#scrim"),S;L=(S=this.guide)==null?void 0:S.querySelector("#contentContainer");D&&L&&x.isAnyTransitionEnabled&&(S={},x.viewTransitionCoordinator.registerElement(D,(S.slide="app-drawer-scrim-page-transition",S["lockup-to-watch"]="app-drawer-scrim-page-transition",S["learning-journey"]="app-drawer-scrim-page-transition",S)),D={},x.viewTransitionCoordinator.registerElement(L,
(D.slide="app-drawer-container-page-transition",D["lockup-to-watch"]="app-drawer-container-page-transition",D["learning-journey"]="app-drawer-container-page-transition",D)))}};
_.J3.Object.defineProperties(sf.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.u("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.J3.Object.defineProperties(sf,{template:{configurable:!0,enumerable:!0,get:function(){if($WY===void 0){var x=document.createElement("template");_.m(x,'\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');
x.content.insertBefore(_.a().content.cloneNode(!0),x.content.firstChild);$WY=x}x=$WY;return x}}});
sf.prototype.onOpenHotkeyDialog=sf.prototype.onOpenHotkeyDialog;sf.prototype.setFullscreen=sf.prototype.setFullscreen;sf.prototype.onAddElementToApp=sf.prototype.onAddElementToApp;sf.prototype.onDrawerIronSelect=sf.prototype.onDrawerIronSelect;sf.prototype.onGuideOpenButtonHover=sf.prototype.onGuideOpenButtonHover;sf.prototype.onRequestPanelModeChange=sf.prototype.onRequestPanelModeChange;sf.prototype.onPageDataUpdated=sf.prototype.onPageDataUpdated;sf.prototype.onPageChanged=sf.prototype.onPageChanged;
sf.prototype.onSetTheaterModeEnabled=sf.prototype.onSetTheaterModeEnabled;sf.prototype.updateMastheadData=sf.prototype.updateMastheadData;sf.prototype.onYtPageManagerAttached=sf.prototype.onYtPageManagerAttached;sf.prototype.observePersistentPanelVisibility=sf.prototype.observePersistentPanelVisibility;sf.prototype.observeGuideVisibility=sf.prototype.observeGuideVisibility;sf.prototype.guideIsVisibleButNotPersistentSelectorChanged=sf.prototype.guideIsVisibleButNotPersistentSelectorChanged;
sf.prototype.isInlinePreviewEnabledChanged=sf.prototype.isInlinePreviewEnabledChanged;sf.prototype.isWatchPageChanged=sf.prototype.isWatchPageChanged;sf.prototype.dispatchFrostedGlassMode=sf.prototype.dispatchFrostedGlassMode;_.A([_.b(_.EG),_.r("design:type",Object)],sf.prototype,"ytdReduxBehavior",void 0);_.A([_.b(_.nE.YtEventForwardingBehavior),_.r("design:type",Object)],sf.prototype,"ytEventForwardingBehavior",void 0);
_.A([_.b(_.rs.YtOpenPopupBehavior),_.r("design:type",Object)],sf.prototype,"ytOpenPopupBehavior",void 0);_.A([_.b(_.ir.YtActionHandlerBehavior),_.r("design:type",Object)],sf.prototype,"ytActionHandlerBehavior",void 0);
_.A([_.b({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.aR.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.u("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var x;((x=this.actionRouterNode.hostElement)!=null?x:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var x;((x=this.actionRouterNode.hostElement)!=null?x:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(x){this.actionRouter_.handleAction(x.detail)}}),
_.r("design:type",Object)],sf.prototype,"ytActionRouterBehavior",void 0);_.A([_.b(BNg.YtdAppBehavior),_.r("design:type",Object)],sf.prototype,"ytdAppBehavior",void 0);_.A([_.b(_.NP.YtEndpointBehavior),_.r("design:type",Object)],sf.prototype,"ytEndpointBehavior",void 0);_.A([_.b(o1W.YtEndpointHandlerWithYpcBehavior),_.r("design:type",Object)],sf.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.A([_.b(rlX.YtLogYpcFlowCommandsBehavior),_.r("design:type",Object)],sf.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.A([_.b(_.c.YtRendererBehavior),_.r("design:type",Object)],sf.prototype,"ytRendererBehavior",void 0);_.A([_.b(_.jZ.YtComponentBehavior),_.r("design:type",Object)],sf.prototype,"ytComponentBehavior",void 0);_.A([_.F({selector:_.DwG}),_.r("design:type",Object)],sf.prototype,"tabGesturesIsActive",void 0);_.A([_.F(),_.r("design:type",Boolean)],sf.prototype,"renderGuide",void 0);
_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],sf.prototype,"guidePersistentAndVisible",void 0);_.A([_.F({selector:_.Lvl}),_.r("design:type",Boolean)],sf.prototype,"guideIsVisibleButNotPersistent",void 0);_.A([_.F({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],sf.prototype,"standalone",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],sf.prototype,"miniGuideVisible",void 0);
_.A([_.F(),_.r("design:type",Object)],sf.prototype,"persistentPanelEnabled",void 0);_.A([_.F({selector:EYY,reflectToAttribute:!0}),_.r("design:type",Boolean)],sf.prototype,"persistentPanelVisible",void 0);_.A([_.F({selector:_.ky0}),_.r("design:type",Number)],sf.prototype,"miniplayerPlaybackState",void 0);_.A([_.F({selector:_.$N,reflectToAttribute:!0}),_.r("design:type",Boolean)],sf.prototype,"miniplayerIsActive",void 0);
_.A([_.F({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.r("design:type",Boolean)],sf.prototype,"isInlinePreviewEnabled",void 0);_.A([_.F(),_.r("design:type",Boolean)],sf.prototype,"isInlinePreviewDisabled",void 0);_.A([_.F({reflectToAttribute:!0,value:function(){return _.rO("START_IN_FULL_WINDOW_MODE")}}),
_.r("design:type",Boolean)],sf.prototype,"mastheadHidden",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],sf.prototype,"playerFullscreen",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],sf.prototype,"fullscreen",void 0);_.A([_.F({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],sf.prototype,"hideHeaderShadow",void 0);
_.A([_.F({value:{GUIDE_ALT_LABEL:_.p6("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.r("design:type",Object)],sf.prototype,"menuStrings",void 0);_.A([_.F({computed:"computeTopbarData(data)"}),_.r("design:type",Object)],sf.prototype,"topbarData",void 0);_.A([_.F({selector:_.hyG,reflectToAttribute:!0}),_.r("design:type",Boolean)],sf.prototype,"isWatchPage",void 0);_.A([_.F({selector:_.HpG,reflectToAttribute:!0}),_.r("design:type",Boolean)],sf.prototype,"isShortsPage",void 0);
_.A([_.F({selector:function(x){return _.rD(x)==="WEB_PAGE_TYPE_MINI_APP"}}),
_.r("design:type",Boolean)],sf.prototype,"isMiniAppPage",void 0);_.A([_.F({selector:function(x){return _.rD(x)==="WEB_PAGE_TYPE_BROWSE"}}),
_.r("design:type",Boolean)],sf.prototype,"isBrowsePage",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Boolean)],sf.prototype,"scrolling",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],sf.prototype,"hasDelegation",void 0);_.A([_.F({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],sf.prototype,"guideScrolledByTouch",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],sf.prototype,"darkerDarkTheme",void 0);
_.A([_.F(),_.r("design:type",Object)],sf.prototype,"isFrostedGlassInitialized",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],sf.prototype,"frostedGlassExp",void 0);_.A([_.F({selector:function(x){return x.ui.chipBarIsSticky}}),
_.r("design:type",Boolean)],sf.prototype,"chipBarIsSticky",void 0);_.A([_.F({computed:"computeIsHomePage(isBrowsePage, data)"}),_.r("design:type",Boolean)],sf.prototype,"isHomePage",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],sf.prototype,"hasPendingWatchNavigation",void 0);_.A([_.F({reflectToAttribute:!0}),_.r("design:type",Object)],sf.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);
_.A([_.F(),_.r("design:type",Object)],sf.prototype,"clientOnlyWizTooltipsEnabled",void 0);_.A([_.zt("guide"),_.r("design:type",Object)],sf.prototype,"guide",void 0);_.A([_.zt("guide-service"),_.r("design:type",ba3)],sf.prototype,"guideService",void 0);_.A([_.zt("guide-inner-content"),_.r("design:type",HTMLDivElement)],sf.prototype,"guideInnerContent",void 0);_.A([_.F1("#persistent-panel-container"),_.r("design:type",HTMLElement)],sf.prototype,"persistentPanelContainer",void 0);
_.A([_.F({selector:_.py3}),_.r("design:type",String)],sf.prototype,"frostedGlassMode",void 0);_.A([_.bN("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],sf.prototype,"dispatchFrostedGlassMode",null);_.A([_.F({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.r("design:type",Object)],sf.prototype,"isFrostedGlassDisabled",void 0);
_.A([_.bN("isWatchPage"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],sf.prototype,"isWatchPageChanged",null);_.A([_.Y("isHomePage","chipBarIsSticky"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],sf.prototype,"applyFrostedGlassToChipBar",null);_.A([_.F(),_.r("design:type",Object)],sf.prototype,"isChannelOrPlaylistPage",void 0);
_.A([_.GV("isInlinePreviewEnabled"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],sf.prototype,"isInlinePreviewEnabledChanged",null);_.A([_.bN("guideIsVisibleButNotPersistent"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],sf.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.A([_.bN("guidePersistentAndVisible","miniGuideVisible"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],sf.prototype,"observeGuideVisibility",null);_.A([_.bN("persistentPanelVisible"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],sf.prototype,"observePersistentPanelVisibility",null);
_.A([_.mX("attached"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],sf.prototype,"onYtPageManagerAttached",null);_.A([_.bN("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype",Promise)],sf.prototype,"updateMastheadData",null);_.A([_.mX("yt-set-theater-mode-enabled"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],sf.prototype,"onSetTheaterModeEnabled",null);
_.A([_.mX("yt-page-type-changed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],sf.prototype,"onPageChanged",null);_.A([_.mX("yt-page-data-updated"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],sf.prototype,"onPageDataUpdated",null);_.A([_.mX("yt-request-panel-mode-change"),_.r("design:type",Function),_.r("design:paramtypes",[Event,Object]),_.r("design:returntype")],sf.prototype,"onRequestPanelModeChange",null);
_.A([_.mX("yt-guide-hover"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],sf.prototype,"onGuideOpenButtonHover",null);_.A([_.mX("app-drawer-transitioned"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],sf.prototype,"onDrawerIronSelect",null);_.A([_.mX("yt-add-element-to-app"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],sf.prototype,"onAddElementToApp",null);
_.A([_.mX("yt-set-fullerscreen-styles"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],sf.prototype,"setFullscreen",null);_.A([_.mX("yt-open-hotkey-dialog"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],sf.prototype,"onOpenHotkeyDialog",null);_.A([_.w({is:"ytd-app"})],sf);_.jP().processSignal("eor");
_.Wf();
}catch(e){_._DumpException(e)}
try{
_.Bf("NSzT5");
var Tg5;_.Lj=function(x){var L=document.createElement("link");_.Ot(L,x,"stylesheet");document.head.appendChild(L)};
_.DT=function(x,L){var D,S;return _.I(function(Q){D=document.createElement("div");D.id=x.id;x.className&&(D.className=x.className);S=x.element;if(!S)throw Error("ak");if(x.location==="prepend")S.prepend(D);else if(x.location==="appendChild")S.appendChild(D);else if(x.location==="after")S.after(D);else throw Error("bk");return Q.return(_.lf(D,L,"Ci"))})};
_.Sx=function(x){var L;return _.I(function(D){(L=document.getElementById(x))&&L.remove();_.Y2(D)})};
_.QE=function(x,L){var D=document.querySelector(x);D?L(D):setTimeout(function(){_.QE(x,L)},1E3)};
_.eDg=function(x,L,D){var S;_.I(function(Q){if(Q.nextAddress==1)return(S=document.getElementById(x))?Q.jumpTo(2):Q.yield(Tg5(x,L,D),2);if(S=document.getElementById(x))S.style.display="block";_.Y2(Q)})};
Tg5=function(x,L,D){return _.I(function(S){return S.return(new Promise(function(Q){_.QE("div #panels",function(J){_.DT({element:J,location:"appendChild",id:x,className:"ytprototypesEngagementPanelComponentEngagementPanelMountPoint "+D},L);Q()})}))})};
_.lgg=function(x){x=x===void 0?"":x;_.Sx("creator_chatbots-entry-point");_.Sx("creator_chatbots-panel");_.Lj(RDW);_.QE("ytd-watch-metadata #top-level-buttons-computed",function(L){document.getElementById("creator_chatbots-entry-point")||(_.DT({element:L,location:"appendChild",id:"creator_chatbots-entry-point",className:"ytprotoCreatorChatbotsExtensionExtensionMountPoint"},function(){return _.M(G89,{creatorChannelId:x})}),_.eDg("creator_chatbots-panel",function(){return _.M(ClY,{usePlayerHeight:!0,
creatorChannelId:x})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint"))})};_.Jg=_.B(function(x){var L=x.text;var D=x.onClick;var S=x.color;var Q=x.backgroundColor;var J=x.buttonSize;var Z=x.disabled;var y=x.iconName;var E=x.iconSize;x=x.className;var P=_.kO(function(V){D(V)}),v={};
return _.M("button",{class:_.gF("ytpStandardButtonsHost",(v.ytpStandardButtonsLarge=function(){return(J==null?void 0:J())==="large"},v),x),
"on:click":P,style:_.bc({color:S,"background-color":Q}),disabled:Z}," ",_.M(_.d,{cond:y,then:function(){return _.M(_.YO,{className:"ytpStandardButtonsIconContainer",icon:y,size:E})}}),L)},"Bi");_.UF9=_.B(function(x){var L;return _.M("div",{class:_.gF("ytprototypesEngagementPanelComponentHost",x.className),id:x.id},_.M("div",{class:_.gF("ytprototypesEngagementPanelComponentEngagementPanelHeader",x.headerClassName)},_.M("div",null,x.header()),_.M("div",{class:"ytprototypesEngagementPanelComponentHeaderButtons"},_.M("div",{class:"ytprototypesEngagementPanelComponentHeaderButtonProp"},(L=x.HeaderButton)==null?void 0:L.call(x)),_.M(_.Jg,{iconName:"close",buttonSize:"large",iconSize:24,className:"yt-icon-button",
onClick:function(){var D;(D=x.onHide)==null||D.call(x);D=x.id();if(D=document.getElementById(D))D.style.display="none"}}))),_.M("div",{class:_.gF("ytprototypesEngagementPanelComponentEngagementPanelContent",x.contentClassName),
style:function(){var D;return"height: "+(((D=x.height)==null?void 0:D.call(x))||"800px")+";"}},x.content()))},"Di");var w$g=_.xI(["https://portraits.google.com"]),Bg$=_.xI(["https://labs-characters.teams.x20web.corp.google.com"]),Wm3=_.xI(["https://portraits.google.com/gallery?ytChannelId=",""]),q8I=_.Pn(w$g),Kj=_.Pn(Bg$),ClY=_.B(function(x){function L(h){var H;if(h=(H=h.detail)==null?void 0:H.endpoint){H=_.g(h,_.mt);var k;H&&((k=H.browseId)==null?0:k.startsWith("UC"))&&H.browseId!==Q()&&(_.Sx("creator_chatbots-panel-persistent"),v.removeEventListener("yt-navigate-start",L))}}
var D=x.usePlayerHeight;var S=x.isPersistentPanel;var Q=x.creatorChannelId;var J=_.u("enable_creator_chatbots_extension_dev_server"),Z=document.createElement("iframe"),y=J?Kj:q8I;_.UX(function(){var h=Q();h=J?Kj:_.Pn(Wm3,h);_.Mff(Z,1,h)});
Z.className="ytprotoCreatorChatbotsAppLabsIframe";Z.allow="microphone; clipboard-read; clipboard-write self "+y;var E=function(){var h;return _.I(function(H){if(H.nextAddress==1)return H.yield(_.yY().resolve(_.d4),2);(h=H.yieldResult)&&h.pauseVideo();_.Y2(H)})},P=function(){var h,H,k;
return _.I(function(T){return T.nextAddress==1?T.yield(_.yY().resolve(_.d4),2):(h=T.yieldResult)?T.return({video_id:(k=(H=h.getVideoData())==null?void 0:H.video_id)!=null?k:"",timestamp_sec:h.getCurrentTime().toString()}):T.return({})})};
window.addEventListener("message",function(h){var H,k,T,G,U,l;return _.I(function(X){if(X.nextAddress==1){H=J?Kj.toString():q8I.toString();if(h.origin!==H)return console.warn("Received message from untrusted origin:",h.origin),X.return();k=h.data;if(typeof k!=="object"||k===null||!k.action)return X.return();if(k.action==="pause")return X.yield(E(),0);if(k.action!=="getYouTubeContext"||!h.source)return X.jumpTo(0);T=h.source;G=T.postMessage;U=JSON;l=U.stringify;return X.yield(P(),7)}G.call(T,l.call(U,
{youTubeContext:X.yieldResult}),{targetOrigin:h.origin});return X.jumpTo(0)})});
_.OU("yt-page-type-changed",function(){if(S==null?0:S()){var h;((h=_.yY().resolve(_.KX).getCurrentPage())==null?void 0:h.pageSubtype)!=="channels"&&(h=document.getElementById("creator_chatbots-panel-persistent"))&&(h.style.display="none")}});
var v=_.yY().resolve(_.np),V;(V=v)==null||V.addEventListener("yt-navigate-start",L);_.wH(function(){var h;(h=v)==null||h.removeEventListener("yt-navigate-start",L)});
return _.M("div",{class:"ytprotoCreatorChatbotsAppHost",style:function(){return(D==null?0:D())?"height: var(--ytd-watch-flexy-panel-max-height);":"height: 100%;"}},_.M(_.UF9,{id:function(){return(S==null?0:S())?"creator_chatbots-panel-persistent":"creator_chatbots-panel"},
height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",onHide:function(){var h=J?Kj.toString():q8I.toString(),H;(H=Z.contentWindow)==null||H.postMessage("ep_closed",h)},
header:function(){return _.M("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.M("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},"Talk to the Creator"),_.M(_.dd,{data:{text:"AI experiment",type:0}}))},
HeaderButton:function(){return _.M(_.Jg,{iconName:"OPEN_IN_NEW",buttonSize:"large",iconSize:24,className:"yt-icon-button",onClick:function(){_.nU(window,_.Wi(J?Kj.toString():y.toString()+"/gallery?ytChannelId="+Q()),"_blank")}})},
content:function(){return Z}}))},"Fi");var A_$,RDW,G89;A_$=_.xI(["https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wdth,wght@8..144,25..151,100..1000&display=swap"]);RDW=_.Pn(A_$);G89=_.B(function(x){var L=x.creatorChannelId;var D=function(){_.eDg("creator_chatbots-panel",function(){return _.M(ClY,{usePlayerHeight:!0,creatorChannelId:L})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")};
return _.M("div",{class:"ytd-menu-renderer"},_.M(_.W9,{data:function(){return{style:"mono",type:"tonal",state:"active",iconPosition:"leading",size:"M",buttonText:"Chat now",onTap:D}},
icon:function(){return _.M(_.YO,{icon:"SPARK"})}}))},"Gi");
_.yx9=function(x){x=x===void 0?"":x;var L;return _.I(function(D){return(L=document.getElementById("creator_chatbots-panel-persistent"))?(L.style.display==="none"&&(L.style.display="block"),D.jumpTo(0)):D.yield(new Promise(function(S){_.QE("ytd-app",function(Q){_.DT({element:Q,location:"appendChild",id:"creator_chatbots-panel-persistent",className:"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint ytprotoCreatorChatbotsExtensionPersistentEngagementPanel"},function(){return _.M(ClY,{isPersistentPanel:!0,
creatorChannelId:x})});
S()})}),0)})};
_.Wf();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
